summaryrefslogtreecommitdiffstats
path: root/languages
diff options
context:
space:
mode:
Diffstat (limited to 'languages')
-rw-r--r--languages/ada/AdaStoreWalker.hpp28
-rw-r--r--languages/ada/ada_utils.cpp44
-rw-r--r--languages/ada/ada_utils.hpp10
-rw-r--r--languages/ada/adasupportpart.cpp114
-rw-r--r--languages/ada/adasupportpart.h18
-rw-r--r--languages/ada/addclass.cpp56
-rw-r--r--languages/ada/addclass.h22
-rw-r--r--languages/ada/backgroundparser.cpp10
-rw-r--r--languages/ada/backgroundparser.h12
-rw-r--r--languages/ada/problemreporter.cpp108
-rw-r--r--languages/ada/problemreporter.h16
-rw-r--r--languages/bash/bashsupport_part.cpp128
-rw-r--r--languages/bash/bashsupport_part.h24
-rw-r--r--languages/cpp/KDevCppSupportIface.cpp2
-rw-r--r--languages/cpp/KDevCppSupportIface.h4
-rw-r--r--languages/cpp/addattributedialog.cpp92
-rw-r--r--languages/cpp/addattributedialog.h10
-rw-r--r--languages/cpp/addmethoddialog.cpp156
-rw-r--r--languages/cpp/addmethoddialog.h12
-rw-r--r--languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.cpp146
-rw-r--r--languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.h12
-rw-r--r--languages/cpp/app_templates/cmakeqt3app/main.cpp6
-rw-r--r--languages/cpp/app_templates/dcopservice/dcopservice.cpp12
-rw-r--r--languages/cpp/app_templates/dcopservice/dcopservice.h14
-rw-r--r--languages/cpp/app_templates/kapp/app.cpp52
-rw-r--r--languages/cpp/app_templates/kapp/app.h8
-rw-r--r--languages/cpp/app_templates/kapp/app_client.cpp14
-rw-r--r--languages/cpp/app_templates/kapp/appiface.h2
-rw-r--r--languages/cpp/app_templates/kapp/appview.cpp28
-rw-r--r--languages/cpp/app_templates/kapp/appview.h20
-rw-r--r--languages/cpp/app_templates/kapp/pref.cpp22
-rw-r--r--languages/cpp/app_templates/kapp/pref.h6
-rw-r--r--languages/cpp/app_templates/kateplugin/plugin_app.cpp6
-rw-r--r--languages/cpp/app_templates/kateplugin/plugin_app.h6
-rw-r--r--languages/cpp/app_templates/kateplugin2/plugin_app.cpp22
-rw-r--r--languages/cpp/app_templates/kateplugin2/plugin_app.h16
-rw-r--r--languages/cpp/app_templates/kcmodule/module.cpp8
-rw-r--r--languages/cpp/app_templates/kcmodule/module.h4
-rw-r--r--languages/cpp/app_templates/kconfig35/app.cpp24
-rw-r--r--languages/cpp/app_templates/kconfig35/app.h4
-rw-r--r--languages/cpp/app_templates/kconfig35/appview.cpp6
-rw-r--r--languages/cpp/app_templates/kconfig35/appview.h8
-rw-r--r--languages/cpp/app_templates/kde4app/kapp4.cpp16
-rw-r--r--languages/cpp/app_templates/kde4app/kapp4view.cpp12
-rw-r--r--languages/cpp/app_templates/kde4app/kapp4view.h10
-rw-r--r--languages/cpp/app_templates/kdedcop/app.cpp2
-rw-r--r--languages/cpp/app_templates/kdedcop/app_iface.h4
-rw-r--r--languages/cpp/app_templates/kdedcop/mainclass.cpp4
-rw-r--r--languages/cpp/app_templates/kdedcop/mainclass.h6
-rw-r--r--languages/cpp/app_templates/kdevlang/kdevlang_part.cpp46
-rw-r--r--languages/cpp/app_templates/kdevlang/kdevlang_part.h8
-rw-r--r--languages/cpp/app_templates/kdevpart/globalconfig.cpp2
-rw-r--r--languages/cpp/app_templates/kdevpart/globalconfig.h2
-rw-r--r--languages/cpp/app_templates/kdevpart/kdevpart_part.cpp36
-rw-r--r--languages/cpp/app_templates/kdevpart/kdevpart_part.h10
-rw-r--r--languages/cpp/app_templates/kdevpart/kdevpart_widget.cpp2
-rw-r--r--languages/cpp/app_templates/kdevpart/kdevpart_widget.h4
-rw-r--r--languages/cpp/app_templates/kdevpart/projectconfig.cpp2
-rw-r--r--languages/cpp/app_templates/kdevpart/projectconfig.h2
-rw-r--r--languages/cpp/app_templates/kdevpart2/globalconfig.cpp2
-rw-r--r--languages/cpp/app_templates/kdevpart2/globalconfig.h2
-rw-r--r--languages/cpp/app_templates/kdevpart2/kdevpart_part.cpp36
-rw-r--r--languages/cpp/app_templates/kdevpart2/kdevpart_part.h10
-rw-r--r--languages/cpp/app_templates/kdevpart2/kdevpart_widget.cpp2
-rw-r--r--languages/cpp/app_templates/kdevpart2/kdevpart_widget.h4
-rw-r--r--languages/cpp/app_templates/kdevpart2/projectconfig.cpp2
-rw-r--r--languages/cpp/app_templates/kdevpart2/projectconfig.h2
-rw-r--r--languages/cpp/app_templates/kfileplugin/kfile_plugin.cpp14
-rw-r--r--languages/cpp/app_templates/kfileplugin/kfile_plugin.h2
-rw-r--r--languages/cpp/app_templates/khello/app.cpp4
-rw-r--r--languages/cpp/app_templates/khello2/widget.cpp4
-rw-r--r--languages/cpp/app_templates/khello2/widget.h2
-rw-r--r--languages/cpp/app_templates/kicker/applet.cpp10
-rw-r--r--languages/cpp/app_templates/kicker/applet.h10
-rw-r--r--languages/cpp/app_templates/kioslave/slave.cpp18
-rw-r--r--languages/cpp/app_templates/kioslave/slave.h6
-rw-r--r--languages/cpp/app_templates/kmake/mainviewimp.cpp4
-rw-r--r--languages/cpp/app_templates/kmake/mainviewimp.h2
-rw-r--r--languages/cpp/app_templates/kofficepart/kopart_factory.cpp4
-rw-r--r--languages/cpp/app_templates/kofficepart/kopart_factory.h4
-rw-r--r--languages/cpp/app_templates/kofficepart/kopart_part.cpp18
-rw-r--r--languages/cpp/app_templates/kofficepart/kopart_part.h14
-rw-r--r--languages/cpp/app_templates/kofficepart/kopart_view.cpp14
-rw-r--r--languages/cpp/app_templates/kofficepart/kopart_view.h4
-rw-r--r--languages/cpp/app_templates/konqnavpanel/konqnavpanel.cpp14
-rw-r--r--languages/cpp/app_templates/konqnavpanel/konqnavpanel.h10
-rw-r--r--languages/cpp/app_templates/kpartapp/app.cpp20
-rw-r--r--languages/cpp/app_templates/kpartapp/app_part.cpp54
-rw-r--r--languages/cpp/app_templates/kpartapp/app_part.h12
-rw-r--r--languages/cpp/app_templates/kpartplugin/plugin_app.cpp16
-rw-r--r--languages/cpp/app_templates/kpartplugin/plugin_app.h4
-rw-r--r--languages/cpp/app_templates/kscons_kmdi/app_part.cpp46
-rw-r--r--languages/cpp/app_templates/kscons_kmdi/app_part.h6
-rw-r--r--languages/cpp/app_templates/kscons_kmdi/appkmdi.cpp64
-rw-r--r--languages/cpp/app_templates/kscons_kmdi/appkmdi.h10
-rw-r--r--languages/cpp/app_templates/kscons_kmdi/appkmdiView.cpp12
-rw-r--r--languages/cpp/app_templates/kscons_kmdi/appkmdiView.h2
-rw-r--r--languages/cpp/app_templates/kscons_kmdi/kmdikonsole.cpp18
-rw-r--r--languages/cpp/app_templates/kscons_kmdi/kmdikonsole.h8
-rw-r--r--languages/cpp/app_templates/kscons_kxt/app.cpp40
-rw-r--r--languages/cpp/app_templates/kscons_kxt/app.h4
-rw-r--r--languages/cpp/app_templates/kscons_kxt/appview.cpp6
-rw-r--r--languages/cpp/app_templates/kscons_kxt/appview.h8
-rw-r--r--languages/cpp/app_templates/kscreensaver/kscreensaver.cpp18
-rw-r--r--languages/cpp/app_templates/kscreensaver/kscreensaver.h2
-rw-r--r--languages/cpp/app_templates/kxt/app.cpp36
-rw-r--r--languages/cpp/app_templates/kxt/app.h4
-rw-r--r--languages/cpp/app_templates/kxt/appview.cpp6
-rw-r--r--languages/cpp/app_templates/kxt/appview.h8
-rw-r--r--languages/cpp/app_templates/noatunui/plugin_impl.cpp120
-rw-r--r--languages/cpp/app_templates/noatunui/plugin_impl.h28
-rw-r--r--languages/cpp/app_templates/opieapp/example.cpp6
-rw-r--r--languages/cpp/app_templates/opieapp/example.h6
-rw-r--r--languages/cpp/app_templates/opieapplet/simpleimpl.cpp26
-rw-r--r--languages/cpp/app_templates/opieapplet/simpleimpl.h18
-rw-r--r--languages/cpp/app_templates/opieinput/simpleimpl.cpp64
-rw-r--r--languages/cpp/app_templates/opieinput/simpleimpl.h18
-rw-r--r--languages/cpp/app_templates/opiemenu/simpleimpl.cpp22
-rw-r--r--languages/cpp/app_templates/opiemenu/simpleimpl.h16
-rw-r--r--languages/cpp/app_templates/opienet/simmplemodule.h16
-rw-r--r--languages/cpp/app_templates/opienet/simpleiface.cpp4
-rw-r--r--languages/cpp/app_templates/opienet/simpleiface.h2
-rw-r--r--languages/cpp/app_templates/opienet/simplemodule.cpp14
-rw-r--r--languages/cpp/app_templates/opienet/simplemodule.h16
-rw-r--r--languages/cpp/app_templates/opietoday/exampleplugin.cpp18
-rw-r--r--languages/cpp/app_templates/opietoday/exampleplugin.h18
-rw-r--r--languages/cpp/app_templates/opietoday/examplepluginwidget.cpp8
-rw-r--r--languages/cpp/app_templates/opietoday/examplepluginwidget.h8
-rw-r--r--languages/cpp/app_templates/qmakeapp/main.cpp6
-rw-r--r--languages/cpp/app_templates/qmakeapp/qmakeapp.cpp146
-rw-r--r--languages/cpp/app_templates/qmakeapp/qmakeapp.h12
-rw-r--r--languages/cpp/app_templates/qt4makeapp/main.cpp4
-rw-r--r--languages/cpp/app_templates/qt4makeapp/qt4makeapp.cpp124
-rw-r--r--languages/cpp/app_templates/qt4makeapp/qt4makeapp.h42
-rw-r--r--languages/cpp/app_templates/qtopia4app/example.cpp10
-rw-r--r--languages/cpp/app_templates/qtopia4app/example.h6
-rw-r--r--languages/cpp/app_templates/qtopiaapp/example.cpp6
-rw-r--r--languages/cpp/app_templates/qtopiaapp/example.h2
-rw-r--r--languages/cpp/ast_utils.cpp50
-rw-r--r--languages/cpp/ast_utils.h8
-rw-r--r--languages/cpp/backgroundparser.cpp142
-rw-r--r--languages/cpp/backgroundparser.h50
-rw-r--r--languages/cpp/ccconfigwidget.cpp138
-rw-r--r--languages/cpp/ccconfigwidget.h14
-rw-r--r--languages/cpp/classgeneratorconfig.cpp48
-rw-r--r--languages/cpp/classgeneratorconfig.h46
-rw-r--r--languages/cpp/codeinformationrepository.cpp82
-rw-r--r--languages/cpp/codeinformationrepository.h24
-rw-r--r--languages/cpp/compiler/gccoptions/gccoptionsplugin.cpp160
-rw-r--r--languages/cpp/compiler/gccoptions/gccoptionsplugin.h14
-rw-r--r--languages/cpp/completiondebug.h10
-rw-r--r--languages/cpp/computerecoverypoints.h34
-rw-r--r--languages/cpp/configproblemreporter.ui.h18
-rw-r--r--languages/cpp/cpp_tags.h48
-rw-r--r--languages/cpp/cppcodecompletion.cpp774
-rw-r--r--languages/cpp/cppcodecompletion.h126
-rw-r--r--languages/cpp/cppcodecompletionconfig.cpp8
-rw-r--r--languages/cpp/cppcodecompletionconfig.h20
-rw-r--r--languages/cpp/cppevaluation.cpp68
-rw-r--r--languages/cpp/cppevaluation.h64
-rw-r--r--languages/cpp/cppimplementationwidget.cpp56
-rw-r--r--languages/cpp/cppimplementationwidget.h4
-rw-r--r--languages/cpp/cppnewclassdlg.cpp776
-rw-r--r--languages/cpp/cppnewclassdlg.h214
-rw-r--r--languages/cpp/cppsplitheadersourceconfig.cpp10
-rw-r--r--languages/cpp/cppsplitheadersourceconfig.h14
-rw-r--r--languages/cpp/cppsupport_events.h22
-rw-r--r--languages/cpp/cppsupport_utils.cpp42
-rw-r--r--languages/cpp/cppsupport_utils.h12
-rw-r--r--languages/cpp/cppsupportpart.cpp812
-rw-r--r--languages/cpp/cppsupportpart.h232
-rw-r--r--languages/cpp/creategettersetterconfiguration.cpp8
-rw-r--r--languages/cpp/creategettersetterconfiguration.h34
-rw-r--r--languages/cpp/creategettersetterdialog.cpp24
-rw-r--r--languages/cpp/creategettersetterdialog.h2
-rw-r--r--languages/cpp/createpcsdialog.cpp72
-rw-r--r--languages/cpp/createpcsdialog.h8
-rw-r--r--languages/cpp/debugger/breakpoint.cpp94
-rw-r--r--languages/cpp/debugger/breakpoint.h88
-rw-r--r--languages/cpp/debugger/dbgcontroller.h14
-rw-r--r--languages/cpp/debugger/dbgpsdlg.cpp46
-rw-r--r--languages/cpp/debugger/dbgpsdlg.h8
-rw-r--r--languages/cpp/debugger/dbgtoolbar.cpp212
-rw-r--r--languages/cpp/debugger/dbgtoolbar.h10
-rw-r--r--languages/cpp/debugger/debuggerconfigwidget.cpp14
-rw-r--r--languages/cpp/debugger/debuggerconfigwidget.h6
-rw-r--r--languages/cpp/debugger/debuggerdcopinterface.h2
-rw-r--r--languages/cpp/debugger/debuggerpart.cpp320
-rw-r--r--languages/cpp/debugger/debuggerpart.h40
-rw-r--r--languages/cpp/debugger/debuggertracingdialog.cpp22
-rw-r--r--languages/cpp/debugger/debuggertracingdialog.h2
-rw-r--r--languages/cpp/debugger/disassemblewidget.cpp32
-rw-r--r--languages/cpp/debugger/disassemblewidget.h12
-rw-r--r--languages/cpp/debugger/framestackwidget.cpp136
-rw-r--r--languages/cpp/debugger/framestackwidget.h36
-rw-r--r--languages/cpp/debugger/gdbbreakpointwidget.cpp212
-rw-r--r--languages/cpp/debugger/gdbbreakpointwidget.h54
-rw-r--r--languages/cpp/debugger/gdbcommand.cpp16
-rw-r--r--languages/cpp/debugger/gdbcommand.h68
-rw-r--r--languages/cpp/debugger/gdbcontroller.cpp176
-rw-r--r--languages/cpp/debugger/gdbcontroller.h70
-rw-r--r--languages/cpp/debugger/gdboutputwidget.cpp100
-rw-r--r--languages/cpp/debugger/gdboutputwidget.h48
-rw-r--r--languages/cpp/debugger/gdbparser.cpp24
-rw-r--r--languages/cpp/debugger/gdbparser.h8
-rw-r--r--languages/cpp/debugger/gdbtable.cpp16
-rw-r--r--languages/cpp/debugger/gdbtable.h8
-rw-r--r--languages/cpp/debugger/label_with_double_click.cpp6
-rw-r--r--languages/cpp/debugger/label_with_double_click.h6
-rw-r--r--languages/cpp/debugger/memviewdlg.cpp138
-rw-r--r--languages/cpp/debugger/memviewdlg.h30
-rw-r--r--languages/cpp/debugger/mi/gdbmi.cpp16
-rw-r--r--languages/cpp/debugger/mi/gdbmi.h38
-rw-r--r--languages/cpp/debugger/mi/milexer.cpp4
-rw-r--r--languages/cpp/debugger/mi/milexer.h24
-rw-r--r--languages/cpp/debugger/mi/miparser.cpp10
-rw-r--r--languages/cpp/debugger/mi/miparser.h6
-rw-r--r--languages/cpp/debugger/stty.cpp30
-rw-r--r--languages/cpp/debugger/stty.h14
-rw-r--r--languages/cpp/debugger/tests/print_pointers/print_pointers.cpp12
-rw-r--r--languages/cpp/debugger/tests/two_module/src/foo.cpp4
-rw-r--r--languages/cpp/debugger/variablewidget.cpp336
-rw-r--r--languages/cpp/debugger/variablewidget.h108
-rw-r--r--languages/cpp/declarationinfo.h22
-rw-r--r--languages/cpp/doxydoc.cpp60
-rw-r--r--languages/cpp/doxydoc.h28
-rw-r--r--languages/cpp/expressioninfo.h12
-rw-r--r--languages/cpp/includepathresolver.cpp120
-rw-r--r--languages/cpp/includepathresolver.h40
-rw-r--r--languages/cpp/kdevdeepcopy.h8
-rw-r--r--languages/cpp/kdevdriver.cpp46
-rw-r--r--languages/cpp/kdevdriver.h4
-rw-r--r--languages/cpp/main.cpp78
-rw-r--r--languages/cpp/pcsimporter/customimporter/kdevcustomimporter.cpp50
-rw-r--r--languages/cpp/pcsimporter/customimporter/kdevcustomimporter.h18
-rw-r--r--languages/cpp/pcsimporter/customimporter/settingsdialog.cpp36
-rw-r--r--languages/cpp/pcsimporter/customimporter/settingsdialog.h16
-rw-r--r--languages/cpp/pcsimporter/kdelibsimporter/kdevkdelibsimporter.cpp44
-rw-r--r--languages/cpp/pcsimporter/kdelibsimporter/kdevkdelibsimporter.h16
-rw-r--r--languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.cpp30
-rw-r--r--languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.h8
-rw-r--r--languages/cpp/pcsimporter/qt4importer/kdevqt4importer.cpp28
-rw-r--r--languages/cpp/pcsimporter/qt4importer/kdevqt4importer.h14
-rw-r--r--languages/cpp/pcsimporter/qt4importer/settingsdialog.cpp38
-rw-r--r--languages/cpp/pcsimporter/qt4importer/settingsdialog.h10
-rw-r--r--languages/cpp/pcsimporter/qtimporter/kdevqtimporter.cpp26
-rw-r--r--languages/cpp/pcsimporter/qtimporter/kdevqtimporter.h14
-rw-r--r--languages/cpp/pcsimporter/qtimporter/settingsdialog.cpp42
-rw-r--r--languages/cpp/pcsimporter/qtimporter/settingsdialog.h10
-rw-r--r--languages/cpp/problemreporter.cpp138
-rw-r--r--languages/cpp/problemreporter.h40
-rw-r--r--languages/cpp/qtbuildconfig.cpp72
-rw-r--r--languages/cpp/qtbuildconfig.h48
-rw-r--r--languages/cpp/qtdesignercppintegration.cpp50
-rw-r--r--languages/cpp/qtdesignercppintegration.h4
-rw-r--r--languages/cpp/setuphelper.cpp26
-rw-r--r--languages/cpp/setuphelper.h8
-rw-r--r--languages/cpp/simplecontext.cpp6
-rw-r--r--languages/cpp/simplecontext.h26
-rw-r--r--languages/cpp/simpletype.cpp78
-rw-r--r--languages/cpp/simpletype.h110
-rw-r--r--languages/cpp/simpletypecachebinder.h18
-rw-r--r--languages/cpp/simpletypecatalog.cpp74
-rw-r--r--languages/cpp/simpletypecatalog.h24
-rw-r--r--languages/cpp/simpletypefunction.cpp102
-rw-r--r--languages/cpp/simpletypefunction.h54
-rw-r--r--languages/cpp/simpletypenamespace.cpp20
-rw-r--r--languages/cpp/simpletypenamespace.h18
-rw-r--r--languages/cpp/store_walker.cpp176
-rw-r--r--languages/cpp/store_walker.h44
-rw-r--r--languages/cpp/storeconverter.cpp28
-rw-r--r--languages/cpp/storeconverter.h4
-rw-r--r--languages/cpp/stringhelpers.cpp52
-rw-r--r--languages/cpp/stringhelpers.h48
-rw-r--r--languages/cpp/subclassing_template/subclass_qt4_template.cpp2
-rw-r--r--languages/cpp/subclassing_template/subclass_qt4_template.h2
-rw-r--r--languages/cpp/subclassing_template/subclass_template.cpp2
-rw-r--r--languages/cpp/subclassing_template/subclass_template.h2
-rw-r--r--languages/cpp/subclassingdlg.cpp132
-rw-r--r--languages/cpp/subclassingdlg.h58
-rw-r--r--languages/cpp/tag_creator.cpp180
-rw-r--r--languages/cpp/tag_creator.h38
-rw-r--r--languages/cpp/typedecoration.h22
-rw-r--r--languages/cpp/typedesc.cpp56
-rw-r--r--languages/cpp/typedesc.h38
-rw-r--r--languages/csharp/csharpconfigwidget.cpp6
-rw-r--r--languages/csharp/csharpconfigwidget.h6
-rw-r--r--languages/csharp/csharpdoc.cpp22
-rw-r--r--languages/csharp/csharpdoc.h8
-rw-r--r--languages/csharp/csharpsupportpart.cpp100
-rw-r--r--languages/csharp/csharpsupportpart.h18
-rw-r--r--languages/fortran/compiler/pgioptions/pgioptionsfactory.cpp6
-rw-r--r--languages/fortran/compiler/pgioptions/pgioptionsfactory.h6
-rw-r--r--languages/fortran/compiler/pgioptions/pgioptionsplugin.cpp130
-rw-r--r--languages/fortran/compiler/pgioptions/pgioptionsplugin.h10
-rw-r--r--languages/fortran/fixedformparser.cpp22
-rw-r--r--languages/fortran/fixedformparser.h12
-rw-r--r--languages/fortran/fortransupportpart.cpp86
-rw-r--r--languages/fortran/fortransupportpart.h8
-rw-r--r--languages/fortran/ftnchekconfigwidget.cpp76
-rw-r--r--languages/fortran/ftnchekconfigwidget.h12
-rw-r--r--languages/java/JavaLexer.hpp10
-rw-r--r--languages/java/JavaRecognizer.hpp10
-rw-r--r--languages/java/JavaStoreWalker.cpp80
-rw-r--r--languages/java/JavaStoreWalker.hpp32
-rw-r--r--languages/java/KDevJavaSupportIface.cpp2
-rw-r--r--languages/java/KDevJavaSupportIface.h4
-rw-r--r--languages/java/backgroundparser.cpp98
-rw-r--r--languages/java/backgroundparser.h44
-rw-r--r--languages/java/driver.cpp56
-rw-r--r--languages/java/driver.h50
-rw-r--r--languages/java/javasupport_events.h22
-rw-r--r--languages/java/javasupport_utils.cpp18
-rw-r--r--languages/java/javasupport_utils.h4
-rw-r--r--languages/java/javasupportpart.cpp284
-rw-r--r--languages/java/javasupportpart.h64
-rw-r--r--languages/java/kdevdeepcopy.h8
-rw-r--r--languages/java/kdevdriver.cpp12
-rw-r--r--languages/java/problemreporter.cpp88
-rw-r--r--languages/java/problemreporter.h18
-rw-r--r--languages/kjssupport/jscodecompletion.cpp44
-rw-r--r--languages/kjssupport/jscodecompletion.h6
-rw-r--r--languages/kjssupport/kjsproblems.cpp16
-rw-r--r--languages/kjssupport/kjsproblems.h4
-rw-r--r--languages/kjssupport/kjssupport_part.cpp114
-rw-r--r--languages/kjssupport/kjssupport_part.h30
-rw-r--r--languages/kjssupport/subclassingdlg.cpp120
-rw-r--r--languages/kjssupport/subclassingdlg.h60
-rw-r--r--languages/lib/debugger/debugger.cpp24
-rw-r--r--languages/lib/debugger/debugger.h12
-rw-r--r--languages/lib/debugger/kdevdebugger.cpp24
-rw-r--r--languages/lib/debugger/kdevdebugger.h24
-rw-r--r--languages/lib/designer_integration/implementationwidget.cpp28
-rw-r--r--languages/lib/designer_integration/implementationwidget.h14
-rw-r--r--languages/lib/designer_integration/qtdesignerintegration.cpp48
-rw-r--r--languages/lib/designer_integration/qtdesignerintegration.h22
-rw-r--r--languages/lib/interfaces/kdevpcsimporter.cpp6
-rw-r--r--languages/lib/interfaces/kdevpcsimporter.h14
-rw-r--r--languages/pascal/PascalLexer.hpp2
-rw-r--r--languages/pascal/PascalParser.hpp2
-rw-r--r--languages/pascal/PascalStoreWalker.hpp14
-rw-r--r--languages/pascal/PascalStoreWalkerTokenTypes.hpp2
-rw-r--r--languages/pascal/PascalTokenTypes.hpp2
-rw-r--r--languages/pascal/backgroundparser.cpp10
-rw-r--r--languages/pascal/backgroundparser.h12
-rw-r--r--languages/pascal/compiler/dccoptions/dccoptionsplugin.cpp28
-rw-r--r--languages/pascal/compiler/dccoptions/dccoptionsplugin.h12
-rw-r--r--languages/pascal/compiler/dccoptions/optiontabs.cpp156
-rw-r--r--languages/pascal/compiler/dccoptions/optiontabs.h38
-rw-r--r--languages/pascal/compiler/fpcoptions/fpcoptionsplugin.cpp26
-rw-r--r--languages/pascal/compiler/fpcoptions/fpcoptionsplugin.h12
-rw-r--r--languages/pascal/compiler/fpcoptions/optiontabs.cpp246
-rw-r--r--languages/pascal/compiler/fpcoptions/optiontabs.h62
-rw-r--r--languages/pascal/pascalsupport_part.cpp98
-rw-r--r--languages/pascal/pascalsupport_part.h22
-rw-r--r--languages/pascal/problemreporter.cpp100
-rw-r--r--languages/pascal/problemreporter.h16
-rw-r--r--languages/perl/perlconfigwidget.cpp8
-rw-r--r--languages/perl/perlconfigwidget.h6
-rw-r--r--languages/perl/perldoc.cpp22
-rw-r--r--languages/perl/perldoc.h8
-rw-r--r--languages/perl/perlparser.cpp122
-rw-r--r--languages/perl/perlparser.h50
-rw-r--r--languages/perl/perlsupportpart.cpp98
-rw-r--r--languages/perl/perlsupportpart.h18
-rw-r--r--languages/php/phpcodecompletion.cpp174
-rw-r--r--languages/php/phpcodecompletion.h38
-rw-r--r--languages/php/phpconfigdata.cpp4
-rw-r--r--languages/php/phpconfigdata.h44
-rw-r--r--languages/php/phpconfigwidget.cpp30
-rw-r--r--languages/php/phpconfigwidget.h8
-rw-r--r--languages/php/phperrorview.cpp128
-rw-r--r--languages/php/phperrorview.h32
-rw-r--r--languages/php/phpfile.cpp142
-rw-r--r--languages/php/phpfile.h66
-rw-r--r--languages/php/phpnewclassdlg.cpp62
-rw-r--r--languages/php/phpnewclassdlg.h8
-rw-r--r--languages/php/phpparser.cpp36
-rw-r--r--languages/php/phpparser.h26
-rw-r--r--languages/php/phpsupport_event.h42
-rw-r--r--languages/php/phpsupportpart.cpp164
-rw-r--r--languages/php/phpsupportpart.h38
-rw-r--r--languages/python/pydoc.cpp12
-rw-r--r--languages/python/pydoc.h14
-rw-r--r--languages/python/pythonconfigwidget.cpp6
-rw-r--r--languages/python/pythonconfigwidget.h6
-rw-r--r--languages/python/pythonimplementationwidget.cpp36
-rw-r--r--languages/python/pythonimplementationwidget.h4
-rw-r--r--languages/python/pythonsupportpart.cpp120
-rw-r--r--languages/python/pythonsupportpart.h20
-rw-r--r--languages/python/qtdesignerpythonintegration.cpp10
-rw-r--r--languages/ruby/app_templates/dcopservice/app.cpp12
-rw-r--r--languages/ruby/app_templates/kapp/app.cpp12
-rw-r--r--languages/ruby/app_templates/kxt/app.cpp12
-rw-r--r--languages/ruby/debugger/breakpoint.cpp64
-rw-r--r--languages/ruby/debugger/breakpoint.h82
-rw-r--r--languages/ruby/debugger/dbgcommand.cpp4
-rw-r--r--languages/ruby/debugger/dbgcommand.h12
-rw-r--r--languages/ruby/debugger/dbgcontroller.h26
-rw-r--r--languages/ruby/debugger/dbgpsdlg.cpp42
-rw-r--r--languages/ruby/debugger/dbgpsdlg.h10
-rw-r--r--languages/ruby/debugger/dbgtoolbar.cpp186
-rw-r--r--languages/ruby/debugger/dbgtoolbar.h10
-rw-r--r--languages/ruby/debugger/debuggerpart.cpp250
-rw-r--r--languages/ruby/debugger/debuggerpart.h34
-rw-r--r--languages/ruby/debugger/framestackwidget.cpp50
-rw-r--r--languages/ruby/debugger/framestackwidget.h24
-rw-r--r--languages/ruby/debugger/rdbbreakpointwidget.cpp178
-rw-r--r--languages/ruby/debugger/rdbbreakpointwidget.h38
-rw-r--r--languages/ruby/debugger/rdbcommand.cpp8
-rw-r--r--languages/ruby/debugger/rdbcommand.h8
-rw-r--r--languages/ruby/debugger/rdbcontroller.cpp210
-rw-r--r--languages/ruby/debugger/rdbcontroller.h70
-rw-r--r--languages/ruby/debugger/rdboutputwidget.cpp44
-rw-r--r--languages/ruby/debugger/rdboutputwidget.h14
-rw-r--r--languages/ruby/debugger/rdbparser.cpp36
-rw-r--r--languages/ruby/debugger/rdbparser.h4
-rw-r--r--languages/ruby/debugger/rdbtable.cpp16
-rw-r--r--languages/ruby/debugger/rdbtable.h8
-rw-r--r--languages/ruby/debugger/stty.cpp30
-rw-r--r--languages/ruby/debugger/stty.h16
-rw-r--r--languages/ruby/debugger/variablewidget.cpp200
-rw-r--r--languages/ruby/debugger/variablewidget.h78
-rw-r--r--languages/ruby/qtdesignerrubyintegration.cpp8
-rw-r--r--languages/ruby/rubyconfigwidget.cpp6
-rw-r--r--languages/ruby/rubyconfigwidget.h4
-rw-r--r--languages/ruby/rubyimplementationwidget.cpp34
-rw-r--r--languages/ruby/rubyimplementationwidget.h4
-rw-r--r--languages/ruby/rubysupport_part.cpp310
-rw-r--r--languages/ruby/rubysupport_part.h36
-rw-r--r--languages/sql/sqlactions.cpp30
-rw-r--r--languages/sql/sqlactions.h8
-rw-r--r--languages/sql/sqlconfigwidget.ui.h82
-rw-r--r--languages/sql/sqloutputwidget.cpp70
-rw-r--r--languages/sql/sqloutputwidget.h16
-rw-r--r--languages/sql/sqlsupport_part.cpp104
-rw-r--r--languages/sql/sqlsupport_part.h16
437 files changed, 9745 insertions, 9745 deletions
diff --git a/languages/ada/AdaStoreWalker.hpp b/languages/ada/AdaStoreWalker.hpp
index 6f108ff6..c18f5dcd 100644
--- a/languages/ada/AdaStoreWalker.hpp
+++ b/languages/ada/AdaStoreWalker.hpp
@@ -3,9 +3,9 @@
#line 1 "expandedada.store.g"
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qfileinfo.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqfileinfo.h>
#include <codemodel.h>
#include "AdaAST.hpp"
@@ -28,10 +28,10 @@ class CUSTOM_API AdaStoreWalker : public ANTLR_USE_NAMESPACE(antlr)TreeParser, p
#line 25 "expandedada.store.g"
private:
- QString m_fileName;
- QValueList<NamespaceDom> m_scopeStack;
+ TQString m_fileName;
+ TQValueList<NamespaceDom> m_scopeStack;
CodeModel* m_model;
- QValueList<QStringList> m_imports;
+ TQValueList<TQStringList> m_imports;
NamespaceDom m_currentContainer;
int m_currentAccess;
bool m_addToStore; /* auxiliary variable: for the moment, this is `true'
@@ -44,8 +44,8 @@ public:
CodeModel* codeModel () { return m_model; }
const CodeModel* codeModel () const { return m_model; }
- QString fileName () const { return m_fileName; }
- void setFileName (const QString& fileName) { m_fileName = fileName; }
+ TQString fileName () const { return m_fileName; }
+ void setFileName (const TQString& fileName) { m_fileName = fileName; }
void init () {
m_scopeStack.clear ();
@@ -64,13 +64,13 @@ public:
void wipeout () { m_model->wipeout (); }
// void out () { m_store->out (); }
- void removeWithReferences (const QString& fileName) {
+ void removeWithReferences (const TQString& fileName) {
m_model->removeFile (m_model->fileByName(fileName));
}
NamespaceDom insertScopeContainer
- (NamespaceDom scope, const QStringList & scopes ) {
- QStringList::ConstIterator it = scopes.begin();
- QString prefix( *it );
+ (NamespaceDom scope, const TQStringList & scopes ) {
+ TQStringList::ConstIterator it = scopes.begin();
+ TQString prefix( *it );
NamespaceDom ns = scope->namespaceByName( prefix );
// kdDebug() << "insertScopeContainer begin with prefix " << prefix << endl;
if (!ns.data()) {
@@ -87,7 +87,7 @@ public:
}
// kdDebug() << "insertScopeContainer: while" << endl;
while ( ++it != scopes.end() ) {
- QString nameSegment( *it );
+ TQString nameSegment( *it );
prefix += "." + nameSegment;
// kdDebug() << "insertScopeContainer: while prefix = " << prefix << endl;
NamespaceDom inner = scope->namespaceByName( prefix );
@@ -104,7 +104,7 @@ public:
return ns;
}
NamespaceDom defineScope( RefAdaAST namenode ) {
- QStringList scopes( qnamelist( namenode ) );
+ TQStringList scopes( qnamelist( namenode ) );
// kdDebug() << "defineScope: " << scopes.join(" ") << endl;
NamespaceDom psc = insertScopeContainer( m_currentContainer, scopes );
// kdDebug() << "defineScope psc created" << endl;
diff --git a/languages/ada/ada_utils.cpp b/languages/ada/ada_utils.cpp
index 9630f058..6e4bea13 100644
--- a/languages/ada/ada_utils.cpp
+++ b/languages/ada/ada_utils.cpp
@@ -4,56 +4,56 @@
#include <unistd.h>
#include <iostream>
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qfile.h>
-#include <qregexp.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqfile.h>
+#include <tqregexp.h>
#include <kdebug.h>
#include "ada_utils.hpp"
#include "adasupport.hpp"
-QString qtext (const RefAdaAST& n)
+TQString qtext (const RefAdaAST& n)
{
- return QString::fromLatin1 (text (n).c_str ());
+ return TQString::fromLatin1 (text (n).c_str ());
}
-QStringList qnamelist (const RefAdaAST& n)
+TQStringList qnamelist (const RefAdaAST& n)
{
- QString txt = qtext (n);
+ TQString txt = qtext (n);
// kdDebug() << "qnamelist: input is " << txt << endl;
- return QStringList::split ('.', txt);
+ return TQStringList::split ('.', txt);
}
-QString ada_spec_filename (const QString& comp_unit_name)
+TQString ada_spec_filename (const TQString& comp_unit_name)
{
- QString fn (comp_unit_name.lower ());
+ TQString fn (comp_unit_name.lower ());
- fn.replace (QRegExp("."), "-");
+ fn.replace (TQRegExp("."), "-");
fn += ".ads";
return fn;
}
-QString fq_specfilename (const QString& comp_unit_name)
+TQString fq_specfilename (const TQString& comp_unit_name)
{
- QString fname = ada_spec_filename (comp_unit_name);
+ TQString fname = ada_spec_filename (comp_unit_name);
- if (QFile::exists (fname))
+ if (TQFile::exists (fname))
return fname;
- QString adaincpath = getenv ("ADA_INCLUDE_PATH");
+ TQString adaincpath = getenv ("ADA_INCLUDE_PATH");
if (adaincpath.isNull ())
- return QString::null;
+ return TQString::null;
- QStringList dirs = QStringList::split (':', adaincpath);
- QString fq_filename;
- for (QStringList::Iterator it = dirs.begin (); it != dirs.end (); it++) {
+ TQStringList dirs = TQStringList::split (':', adaincpath);
+ TQString fq_filename;
+ for (TQStringList::Iterator it = dirs.begin (); it != dirs.end (); it++) {
fq_filename = *it;
if (! fq_filename.endsWith ("/"))
fq_filename += "/";
fq_filename += fname;
- if (QFile::exists (fq_filename))
+ if (TQFile::exists (fq_filename))
return fq_filename;
}
if (fname.startsWith ("ada-") ||
@@ -64,6 +64,6 @@ QString fq_specfilename (const QString& comp_unit_name)
} else {
kdDebug () << "Cannot find file " << fname << endl;
}
- return QString::null;
+ return TQString::null;
}
diff --git a/languages/ada/ada_utils.hpp b/languages/ada/ada_utils.hpp
index b1df43dd..25c9fabd 100644
--- a/languages/ada/ada_utils.hpp
+++ b/languages/ada/ada_utils.hpp
@@ -3,13 +3,13 @@
#ifndef ADA_UTILS_H
#define ADA_UTILS_H
-#include <qstring.h>
+#include <tqstring.h>
#include "AdaAST.hpp"
-QString qtext (const RefAdaAST& n);
-QStringList qnamelist (const RefAdaAST& n);
-QString ada_spec_filename (const QString& comp_unit_name);
-QString fq_specfilename (const QString& comp_unit_name);
+TQString qtext (const RefAdaAST& n);
+TQStringList qnamelist (const RefAdaAST& n);
+TQString ada_spec_filename (const TQString& comp_unit_name);
+TQString fq_specfilename (const TQString& comp_unit_name);
#endif
diff --git a/languages/ada/adasupportpart.cpp b/languages/ada/adasupportpart.cpp
index 39ead02a..7c7f4198 100644
--- a/languages/ada/adasupportpart.cpp
+++ b/languages/ada/adasupportpart.cpp
@@ -1,11 +1,11 @@
-#include <qfileinfo.h>
-#include <qlistview.h>
-#include <qstringlist.h>
-#include <qtimer.h>
-#include <qvbox.h>
-#include <qprogressbar.h>
-#include <qwhatsthis.h>
+#include <tqfileinfo.h>
+#include <tqlistview.h>
+#include <tqstringlist.h>
+#include <tqtimer.h>
+#include <tqvbox.h>
+#include <tqprogressbar.h>
+#include <tqwhatsthis.h>
#include <kgenericfactory.h>
#include <kapplication.h>
@@ -50,35 +50,35 @@ struct AdaSupportPartData {
AdaSupportPartData () : problemReporter (0) {}
};
-AdaSupportPart::AdaSupportPart (QObject *parent, const char *name, const QStringList &)
+AdaSupportPart::AdaSupportPart (TQObject *parent, const char *name, const TQStringList &)
: KDevLanguageSupport (&data, parent, name ? name : "AdaSupportPart"), d (new AdaSupportPartData())
{
setInstance (AdaSupportPartFactory::instance ());
d->problemReporter = new ProblemReporter (this);
-// connect (core (), SIGNAL (configWidget (KDialogBase*)),
-// d->problemReporter, SLOT (configWidget (KDialogBase*)));
+// connect (core (), TQT_SIGNAL (configWidget (KDialogBase*)),
+// d->problemReporter, TQT_SLOT (configWidget (KDialogBase*)));
d->problemReporter->setIcon( SmallIcon("info") );
mainWindow( )->embedOutputView( d->problemReporter, i18n("Problems"), i18n("Problem reporter"));
- QWhatsThis::add(d->problemReporter, i18n("<b>Problem reporter</b><p>This window shows various \"problems\" in your project. "
+ TQWhatsThis::add(d->problemReporter, i18n("<b>Problem reporter</b><p>This window shows various \"problems\" in your project. "
"It displays errors reported by a language parser."));
setXMLFile ("adasupportpart.rc");
- connect (core (), SIGNAL (projectOpened ()), this, SLOT (projectOpened ()));
- connect (core (), SIGNAL (projectClosed ()), this, SLOT (projectClosed ()));
+ connect (core (), TQT_SIGNAL (projectOpened ()), this, TQT_SLOT (projectOpened ()));
+ connect (core (), TQT_SIGNAL (projectClosed ()), this, TQT_SLOT (projectClosed ()));
- connect (partController (), SIGNAL (savedFile (const KURL&)),
- this, SLOT (savedFile (const KURL&)));
+ connect (partController (), TQT_SIGNAL (savedFile (const KURL&)),
+ this, TQT_SLOT (savedFile (const KURL&)));
-// connect (core (), SIGNAL (configWidget (KDialogBase*)), this, SLOT (configWidget (KDialogBase*)));
- connect( core(), SIGNAL(configWidget(KDialogBase*)),
- d->problemReporter, SLOT(configWidget(KDialogBase*)) );
+// connect (core (), TQT_SIGNAL (configWidget (KDialogBase*)), this, TQT_SLOT (configWidget (KDialogBase*)));
+ connect( core(), TQT_SIGNAL(configWidget(KDialogBase*)),
+ d->problemReporter, TQT_SLOT(configWidget(KDialogBase*)) );
// a small hack (robe)
//classStore ()->globalScope ()->setName ("(default packages)");
//classStore ()->addScope (classStore ()->globalScope ());
- //classStore ()->globalScope ()->setName (QString::null);
+ //classStore ()->globalScope ()->setName (TQString::null);
}
@@ -102,14 +102,14 @@ KDevLanguageSupport::Features AdaSupportPart::features ()
void AdaSupportPart::projectOpened ()
{
- connect (project (), SIGNAL (addedFilesToProject (const QStringList &)),
- this, SLOT (addedFilesToProject (const QStringList &)));
- connect (project (), SIGNAL (removedFilesFromProject (const QStringList &)),
- this, SLOT (removedFilesFromProject (const QStringList &)));
- connect( project( ), SIGNAL( changedFilesInProject( const QStringList & ) ),
- this, SLOT( changedFilesInProject( const QStringList & ) ) );
-
- QTimer::singleShot (0, this, SLOT (initialParse ()));
+ connect (project (), TQT_SIGNAL (addedFilesToProject (const TQStringList &)),
+ this, TQT_SLOT (addedFilesToProject (const TQStringList &)));
+ connect (project (), TQT_SIGNAL (removedFilesFromProject (const TQStringList &)),
+ this, TQT_SLOT (removedFilesFromProject (const TQStringList &)));
+ connect( project( ), TQT_SIGNAL( changedFilesInProject( const TQStringList & ) ),
+ this, TQT_SLOT( changedFilesInProject( const TQStringList & ) ) );
+
+ TQTimer::singleShot (0, this, TQT_SLOT (initialParse ()));
}
@@ -130,18 +130,18 @@ void AdaSupportPart::initialParse ()
kapp->setOverrideCursor (waitCursor);
int n = 0;
- QStringList files = project ()->allFiles ();
+ TQStringList files = project ()->allFiles ();
- QProgressBar* bar = new QProgressBar( files.count( ), mainWindow( )->statusBar( ) );
+ TQProgressBar* bar = new TQProgressBar( files.count( ), mainWindow( )->statusBar( ) );
bar->setMinimumWidth( 120 );
bar->setCenterIndicator( true );
mainWindow( )->statusBar( )->addWidget( bar );
bar->show( );
- for (QStringList::Iterator it = files.begin (); it != files.end (); ++it) {
+ for (TQStringList::Iterator it = files.begin (); it != files.end (); ++it) {
bar->setProgress( n++ );
- QString fn = project ()->projectDirectory () + "/" + *it;
+ TQString fn = project ()->projectDirectory () + "/" + *it;
maybeParse (fn);
kapp->processEvents (500);
}
@@ -158,16 +158,16 @@ void AdaSupportPart::initialParse ()
}
}
-QStringList AdaSupportPart::fileExtensions ()
+TQStringList AdaSupportPart::fileExtensions ()
{
- return QStringList () << "ads" << "adb";
+ return TQStringList () << "ads" << "adb";
}
-void AdaSupportPart::maybeParse (const QString &fileName)
+void AdaSupportPart::maybeParse (const TQString &fileName)
{
kdDebug () << "AdaSupportPart::maybeParse: " << fileName << endl;
- if (!fileExtensions ().contains (QFileInfo (fileName).extension ()))
+ if (!fileExtensions ().contains (TQFileInfo (fileName).extension ()))
return;
// mainWindow ()->statusBar ()->message (i18n ("Parsing file: %1").arg (fileName));
@@ -175,27 +175,27 @@ void AdaSupportPart::maybeParse (const QString &fileName)
}
-void AdaSupportPart::addedFilesToProject (const QStringList &fileList)
+void AdaSupportPart::addedFilesToProject (const TQStringList &fileList)
{
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for (it = fileList.begin (); it != fileList.end (); ++it)
{
- QString path = project ()->projectDirectory () + "/" + (*it);
+ TQString path = project ()->projectDirectory () + "/" + (*it);
maybeParse (path);
emit addedSourceInfo( path );
}
}
-void AdaSupportPart::removedFilesFromProject (const QStringList &fileList)
+void AdaSupportPart::removedFilesFromProject (const TQStringList &fileList)
{
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for (it = fileList.begin (); it != fileList.end (); ++it)
{
kdDebug () << "AdaSupportPart::removedFileFromProject () -- " << (*it) << endl;
- QString path = project ()->projectDirectory () + "/" + (*it);
+ TQString path = project ()->projectDirectory () + "/" + (*it);
if( codeModel()->hasFile(path) )
{
@@ -208,12 +208,12 @@ void AdaSupportPart::removedFilesFromProject (const QStringList &fileList)
}
-void AdaSupportPart::parse (const QString &fileName)
+void AdaSupportPart::parse (const TQString &fileName)
{
kdDebug () << "AdaSupportPart::parse () -- " << fileName << endl;
- std::ifstream stream (QFile::encodeName( fileName ).data());
- QCString _fn = fileName.utf8 ();
+ std::ifstream stream (TQFile::encodeName( fileName ).data());
+ TQCString _fn = fileName.utf8 ();
std::string fn (_fn.data ());
AdaLexer lexer (stream);
@@ -250,21 +250,21 @@ void AdaSupportPart::parse (const QString &fileName)
}
} catch (antlr::ANTLRException& ex) {
kdDebug () << "*exception*: " << ex.toString ().c_str () << endl;
- d->problemReporter->reportError (QString::fromLatin1( ex.getMessage ().c_str() ),
+ d->problemReporter->reportError (TQString::fromLatin1( ex.getMessage ().c_str() ),
fileName,
lexer.getLine (),
lexer.getColumn ());
}
}
-void AdaSupportPart::parseContents (const QString& contents, const QString& fileName)
+void AdaSupportPart::parseContents (const TQString& contents, const TQString& fileName)
{
kdDebug () << "AdaSupportPart::parseContents () -- " << fileName << endl;
- QCString _fn = QFile::encodeName (fileName);
+ TQCString _fn = TQFile::encodeName (fileName);
std::string fn (_fn.data ());
- QCString text = contents.utf8 ();
+ TQCString text = contents.utf8 ();
std::istringstream stream ((const char *)text);
AdaLexer lexer (stream);
@@ -285,7 +285,7 @@ void AdaSupportPart::parseContents (const QString& contents, const QString& file
} catch (antlr::ANTLRException& ex) {
kdDebug () << "*exception*: " << ex.toString ().c_str () << endl;
- d->problemReporter->reportError (QString::fromLatin1( ex.getMessage().c_str() ),
+ d->problemReporter->reportError (TQString::fromLatin1( ex.getMessage().c_str() ),
fileName,
lexer.getLine (),
lexer.getColumn ());
@@ -323,14 +323,14 @@ void AdaSupportPart::saveProjectSourceInfo( )
if( !project() || fileList.isEmpty() )
return;
- QFile f( project()->projectDirectory() + "/" + project()->projectName() + ".pcs" );
+ TQFile f( project()->projectDirectory() + "/" + project()->projectName() + ".pcs" );
if( !f.open( IO_WriteOnly ) )
return;
- QDataStream stream( &f );
- QMap<QString, Q_ULONG> offsets;
+ TQDataStream stream( &f );
+ TQMap<TQString, Q_ULONG> offsets;
- QString pcs( "PCS" );
+ TQString pcs( "PCS" );
stream << pcs << KDEV_PCS_VERSION;
stream << int( fileList.size() );
@@ -359,13 +359,13 @@ void AdaSupportPart::saveProjectSourceInfo( )
}*/
}
-void AdaSupportPart::changedFilesInProject( const QStringList & fileList )
+void AdaSupportPart::changedFilesInProject( const TQStringList & fileList )
{
- QStringList files = fileList;
+ TQStringList files = fileList;
- for ( QStringList::ConstIterator it = files.begin(); it != files.end(); ++it )
+ for ( TQStringList::ConstIterator it = files.begin(); it != files.end(); ++it )
{
- QString path = project ()->projectDirectory () + "/" + *it ;
+ TQString path = project ()->projectDirectory () + "/" + *it ;
maybeParse( path );
emit addedSourceInfo( path );
diff --git a/languages/ada/adasupportpart.h b/languages/ada/adasupportpart.h
index d9f2c45d..968b1d34 100644
--- a/languages/ada/adasupportpart.h
+++ b/languages/ada/adasupportpart.h
@@ -4,7 +4,7 @@
#include "kdevlanguagesupport.h"
-#include <qwaitcondition.h>
+#include <tqwaitcondition.h>
class AdaSupportPartData;
class KDialogBase;
@@ -14,30 +14,30 @@ class AdaSupportPart : public KDevLanguageSupport
{
Q_OBJECT
public:
- AdaSupportPart (QObject *parent, const char *name, const QStringList &);
+ AdaSupportPart (TQObject *parent, const char *name, const TQStringList &);
~AdaSupportPart ();
- void parseContents (const QString& contents, const QString& fileName);
+ void parseContents (const TQString& contents, const TQString& fileName);
protected:
Features features ();
KMimeType::List mimeTypes ();
- QStringList fileExtensions ();
+ TQStringList fileExtensions ();
private slots:
void projectOpened ();
void projectClosed ();
- void addedFilesToProject (const QStringList &fileList);
- void removedFilesFromProject (const QStringList &fileList);
- void changedFilesInProject( const QStringList &fileList );
+ void addedFilesToProject (const TQStringList &fileList);
+ void removedFilesFromProject (const TQStringList &fileList);
+ void changedFilesInProject( const TQStringList &fileList );
void initialParse ();
void savedFile (const KURL&);
private:
- void maybeParse (const QString &fileName);
- void parse (const QString &fileName);
+ void maybeParse (const TQString &fileName);
+ void parse (const TQString &fileName);
void saveProjectSourceInfo( );
private:
diff --git a/languages/ada/addclass.cpp b/languages/ada/addclass.cpp
index 5a5ccb13..ee28ff93 100644
--- a/languages/ada/addclass.cpp
+++ b/languages/ada/addclass.cpp
@@ -2,13 +2,13 @@
#include <sys/types.h>
-#include <qcheckbox.h>
-#include <qradiobutton.h>
-#include <qtextedit.h>
-#include <qtextstream.h>
-#include <qregexp.h>
-#include <qfile.h>
-#include <qfileinfo.h>
+#include <tqcheckbox.h>
+#include <tqradiobutton.h>
+#include <tqtextedit.h>
+#include <tqtextstream.h>
+#include <tqregexp.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
#include <klineedit.h>
@@ -30,10 +30,10 @@ AddClassInfo::AddClassInfo()
}
-QString AddClassInfo::adaFileName() const
+TQString AddClassInfo::adaFileName() const
{
- QString dest = className;
- dest.replace(QRegExp("\\."), "/");
+ TQString dest = className;
+ dest.replace(TQRegExp("\\."), "/");
return sourceDir + "/" + dest + ".ada";
}
@@ -55,7 +55,7 @@ AddClassInfo &AddClass::info()
}
-void AddClass::setBaseClasses(const QStringList &classes)
+void AddClass::setBaseClasses(const TQStringList &classes)
{
m_baseClasses = classes;
}
@@ -65,7 +65,7 @@ bool AddClass::showDialog()
{
AddClassDlg dlg;
- QString dir = m_info.projectDir;
+ TQString dir = m_info.projectDir;
if (m_info.sourceDir.isEmpty())
m_info.sourceDir = "src";
if (dir.isEmpty())
@@ -100,7 +100,7 @@ bool AddClass::showDialog()
dlg.Documentation->setText(m_info.documentation);
dlg.License->setEditText(m_info.license);
- if (dlg.exec() == QDialog::Accepted)
+ if (dlg.exec() == TQDialog::Accepted)
{
m_info.projectDir = "";
m_info.sourceDir = dlg.SourcePath->text();
@@ -130,17 +130,17 @@ bool AddClass::showDialog()
}
-static bool makeDirs(const QString &dest)
+static bool makeDirs(const TQString &dest)
{
- QStringList dirs = QStringList::split("/", dest);
+ TQStringList dirs = TQStringList::split("/", dest);
- QString d = "";
+ TQString d = "";
- for (QStringList::Iterator it=dirs.begin(); it != dirs.end(); ++it)
+ for (TQStringList::Iterator it=dirs.begin(); it != dirs.end(); ++it)
{
d = d + "/" + *it;
- QFileInfo fi(d);
+ TQFileInfo fi(d);
if (fi.exists() && !fi.isDir())
{
@@ -149,7 +149,7 @@ static bool makeDirs(const QString &dest)
}
if (!fi.exists())
- if (::mkdir(QFile::encodeName(d), 0755) != 0)
+ if (::mkdir(TQFile::encodeName(d), 0755) != 0)
return false;
}
@@ -159,7 +159,7 @@ static bool makeDirs(const QString &dest)
bool AddClass::generate()
{
- QString code;
+ TQString code;
// license
@@ -204,7 +204,7 @@ bool AddClass::generate()
}
// find class and package name
- QString className, packageName;
+ TQString className, packageName;
int i = m_info.className.findRev('.');
if (i == -1)
@@ -228,7 +228,7 @@ bool AddClass::generate()
{
code += "/**\n";
- QTextStream ts(&m_info.documentation, IO_ReadOnly);
+ TQTextStream ts(&m_info.documentation, IO_ReadOnly);
while (!ts.eof())
code += " * " + ts.readLine() + "\n";
@@ -283,7 +283,7 @@ bool AddClass::generate()
{
code += " implements ";
unsigned int c=0;
- for (QStringList::Iterator it = m_info.implements.begin(); it != m_info.implements.end(); ++it, c++)
+ for (TQStringList::Iterator it = m_info.implements.begin(); it != m_info.implements.end(); ++it, c++)
{
code += *it;
if (c+1 < m_info.implements.count())
@@ -321,8 +321,8 @@ bool AddClass::generate()
// create directories
- QString dest = packageName;
- dest.replace(QRegExp("\\."), "/");
+ TQString dest = packageName;
+ dest.replace(TQRegExp("\\."), "/");
dest = m_info.sourceDir + "/" + dest;
if (!makeDirs(dest))
@@ -330,19 +330,19 @@ bool AddClass::generate()
// write out the file
- if (QFile::exists(m_info.adaFileName()))
+ if (TQFile::exists(m_info.adaFileName()))
{
/// @todo ask before overwriting!
}
- QFile of(m_info.adaFileName());
+ TQFile of(m_info.adaFileName());
if (!of.open(IO_WriteOnly))
{
/// @todo message to user
return false;
}
- QTextStream os(&of);
+ TQTextStream os(&of);
os << code;
of.close();
diff --git a/languages/ada/addclass.h b/languages/ada/addclass.h
index 7bcfd370..e3ce8858 100644
--- a/languages/ada/addclass.h
+++ b/languages/ada/addclass.h
@@ -2,8 +2,8 @@
#define __ADDCLASS_H__
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
class AddClassInfo
@@ -14,17 +14,17 @@ public:
enum Visibility { PublicClass, ProtectedClass, PrivateClass};
- QString className;
- QString extends;
+ TQString className;
+ TQString extends;
bool interfaceOpt, abstractOpt, finalOpt;
- QString projectDir, sourceDir;
+ TQString projectDir, sourceDir;
Visibility visibility;
- QStringList implements;
+ TQStringList implements;
bool createConstructor, createMain;
- QString documentation;
- QString license;
+ TQString documentation;
+ TQString license;
- QString adaFileName() const;
+ TQString adaFileName() const;
};
@@ -38,7 +38,7 @@ public:
void setInfo(const AddClassInfo &info);
AddClassInfo &info();
- void setBaseClasses(const QStringList &classes);
+ void setBaseClasses(const TQStringList &classes);
bool showDialog();
bool generate();
@@ -47,7 +47,7 @@ public:
private:
AddClassInfo m_info;
- QStringList m_baseClasses;
+ TQStringList m_baseClasses;
};
diff --git a/languages/ada/backgroundparser.cpp b/languages/ada/backgroundparser.cpp
index f94f3216..68607851 100644
--- a/languages/ada/backgroundparser.cpp
+++ b/languages/ada/backgroundparser.cpp
@@ -15,15 +15,15 @@
#include "AdaParser.hpp"
#include "AdaAST.hpp"
#include <kdebug.h>
-#include <qfile.h>
+#include <tqfile.h>
#include <config.h>
#include <sstream>
BackgroundParser::BackgroundParser( ProblemReporter* reporter,
- const QString& source,
- const QString& filename )
+ const TQString& source,
+ const TQString& filename )
: m_reporter( reporter ),
m_source( source.unicode(), source.length() ),
m_fileName( filename )
@@ -36,7 +36,7 @@ BackgroundParser::~BackgroundParser()
void BackgroundParser::run()
{
- QCString _fn = QFile::encodeName(m_fileName);
+ TQCString _fn = TQFile::encodeName(m_fileName);
std::string fn( _fn.data() );
std::istringstream stream( m_source.utf8().data() );
@@ -64,7 +64,7 @@ void BackgroundParser::run()
} catch( antlr::ANTLRException& ex ){
kdDebug() << "*exception*: " << ex.toString().c_str() << endl;
- m_reporter->reportError( QString::fromLatin1( ex.getMessage().c_str() ),
+ m_reporter->reportError( TQString::fromLatin1( ex.getMessage().c_str() ),
m_fileName,
lexer.getLine(),
lexer.getColumn() );
diff --git a/languages/ada/backgroundparser.h b/languages/ada/backgroundparser.h
index 0b4eef16..3c41d450 100644
--- a/languages/ada/backgroundparser.h
+++ b/languages/ada/backgroundparser.h
@@ -13,8 +13,8 @@
#ifndef BACKGROUNDPARSER_H
#define BACKGROUNDPARSER_H
-#include <qthread.h>
-#include <qstring.h>
+#include <tqthread.h>
+#include <tqstring.h>
#include <kdebug.h>
class ProblemReporter;
@@ -22,16 +22,16 @@ class ProblemReporter;
class BackgroundParser: public QThread{
public:
BackgroundParser( ProblemReporter* reporter,
- const QString& source,
- const QString& filename );
+ const TQString& source,
+ const TQString& filename );
virtual ~BackgroundParser();
virtual void run();
private:
ProblemReporter* m_reporter;
- QString m_source;
- QString m_fileName;
+ TQString m_source;
+ TQString m_fileName;
};
#endif
diff --git a/languages/ada/problemreporter.cpp b/languages/ada/problemreporter.cpp
index 61109775..652d5a6b 100644
--- a/languages/ada/problemreporter.cpp
+++ b/languages/ada/problemreporter.cpp
@@ -24,7 +24,7 @@
#include "configproblemreporter.h"
#include "backgroundparser.h"
-#include <qfileinfo.h>
+#include <tqfileinfo.h>
#include <kdeversion.h>
#include <kparts/part.h>
@@ -43,24 +43,24 @@
#include <kconfig.h>
-#include <qtimer.h>
-#include <qregexp.h>
-#include <qvbox.h>
-#include <qwhatsthis.h>
+#include <tqtimer.h>
+#include <tqregexp.h>
+#include <tqvbox.h>
+#include <tqwhatsthis.h>
#include <kdialogbase.h>
class ProblemItem: public QListViewItem{
public:
- ProblemItem( QListView* parent, const QString& level, const QString& problem,
- const QString& file, const QString& line, const QString& column )
- : QListViewItem( parent, level, problem, file, line, column ) {}
+ ProblemItem( TQListView* parent, const TQString& level, const TQString& problem,
+ const TQString& file, const TQString& line, const TQString& column )
+ : TQListViewItem( parent, level, problem, file, line, column ) {}
- ProblemItem( QListViewItem* parent, const QString& level, const QString& problem,
- const QString& file, const QString& line, const QString& column )
- : QListViewItem( parent, level, problem, file, line, column ) {}
+ ProblemItem( TQListViewItem* parent, const TQString& level, const TQString& problem,
+ const TQString& file, const TQString& line, const TQString& column )
+ : TQListViewItem( parent, level, problem, file, line, column ) {}
- int compare( QListViewItem* item, int column, bool ascending ) const {
+ int compare( TQListViewItem* item, int column, bool ascending ) const {
if( column == 3 || column == 4 ){
int a = text( column ).toInt();
int b = item->text( column ).toInt();
@@ -68,20 +68,20 @@ public:
return 0;
return( a > b ? -1 : 1 );
}
- return QListViewItem::compare( item, column, ascending );
+ return TQListViewItem::compare( item, column, ascending );
}
};
-ProblemReporter::ProblemReporter( AdaSupportPart* part, QWidget* parent, const char* name )
- : QListView( parent, name ),
+ProblemReporter::ProblemReporter( AdaSupportPart* part, TQWidget* parent, const char* name )
+ : TQListView( parent, name ),
m_adaSupport( part ),
m_editor( 0 ),
m_document( 0 ),
m_markIface( 0 ),
m_bgParser( 0 )
{
- QWhatsThis::add(this, i18n("<b>Problem reporter</b><p>This window shows errors reported by a language parser."));
+ TQWhatsThis::add(this, i18n("<b>Problem reporter</b><p>This window shows errors reported by a language parser."));
addColumn( i18n("Level") );
addColumn( i18n("Problem") );
@@ -90,21 +90,21 @@ ProblemReporter::ProblemReporter( AdaSupportPart* part, QWidget* parent, const c
//addColumn( i18n("Column") );
setAllColumnsShowFocus( TRUE );
- m_timer = new QTimer( this );
+ m_timer = new TQTimer( this );
- connect( part->partController(), SIGNAL(activePartChanged(KParts::Part*)),
- this, SLOT(slotActivePartChanged(KParts::Part*)) );
- connect( part->partController(), SIGNAL(partAdded(KParts::Part*)),
- this, SLOT(slotPartAdded(KParts::Part*)) );
- connect( part->partController(), SIGNAL(partRemoved(KParts::Part*)),
- this, SLOT(slotPartRemoved(KParts::Part*)) );
+ connect( part->partController(), TQT_SIGNAL(activePartChanged(KParts::Part*)),
+ this, TQT_SLOT(slotActivePartChanged(KParts::Part*)) );
+ connect( part->partController(), TQT_SIGNAL(partAdded(KParts::Part*)),
+ this, TQT_SLOT(slotPartAdded(KParts::Part*)) );
+ connect( part->partController(), TQT_SIGNAL(partRemoved(KParts::Part*)),
+ this, TQT_SLOT(slotPartRemoved(KParts::Part*)) );
- connect( m_timer, SIGNAL(timeout()), this, SLOT(reparse()) );
+ connect( m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(reparse()) );
- connect( this, SIGNAL(doubleClicked(QListViewItem*)),
- this, SLOT(slotSelected(QListViewItem*)) );
- connect( this, SIGNAL(returnPressed(QListViewItem*)),
- this, SLOT(slotSelected(QListViewItem*)) );
+ connect( this, TQT_SIGNAL(doubleClicked(TQListViewItem*)),
+ this, TQT_SLOT(slotSelected(TQListViewItem*)) );
+ connect( this, TQT_SIGNAL(returnPressed(TQListViewItem*)),
+ this, TQT_SLOT(slotSelected(TQListViewItem*)) );
configure();
}
@@ -134,7 +134,7 @@ void ProblemReporter::slotActivePartChanged( KParts::Part* part )
m_editor = dynamic_cast<KTextEditor::EditInterface*>( part );
if( m_editor )
- connect( m_document, SIGNAL(textChanged()), this, SLOT(slotTextChanged()) );
+ connect( m_document, TQT_SIGNAL(textChanged()), this, TQT_SLOT(slotTextChanged()) );
m_markIface = dynamic_cast<KTextEditor::MarkInterface*>( part );
@@ -166,9 +166,9 @@ void ProblemReporter::reparse()
m_bgParser = 0;
}
- QListViewItem* current = firstChild();
+ TQListViewItem* current = firstChild();
while( current ){
- QListViewItem* i = current;
+ TQListViewItem* i = current;
current = current->nextSibling();
if( i->text(2) == m_filename )
@@ -176,8 +176,8 @@ void ProblemReporter::reparse()
}
if( m_markIface ){
- QPtrList<KTextEditor::Mark> marks = m_markIface->marks();
- QPtrListIterator<KTextEditor::Mark> it( marks );
+ TQPtrList<KTextEditor::Mark> marks = m_markIface->marks();
+ TQPtrListIterator<KTextEditor::Mark> it( marks );
while( it.current() ){
m_markIface->removeMark( it.current()->line, KTextEditor::MarkInterface::markType07 );
++it;
@@ -185,7 +185,7 @@ void ProblemReporter::reparse()
}
/* Temporarily deactivated (crashes)*/
- if (!m_adaSupport->fileExtensions ().contains (QFileInfo (m_filename).extension ()))
+ if (!m_adaSupport->fileExtensions ().contains (TQFileInfo (m_filename).extension ()))
{
m_bgParser = new BackgroundParser( this, m_editor->text(), m_filename );
m_bgParser->start();
@@ -193,7 +193,7 @@ void ProblemReporter::reparse()
/**/
}
-void ProblemReporter::slotSelected( QListViewItem* item )
+void ProblemReporter::slotSelected( TQListViewItem* item )
{
KURL url( item->text(2) );
int line = item->text( 3 ).toInt();
@@ -201,8 +201,8 @@ void ProblemReporter::slotSelected( QListViewItem* item )
m_adaSupport->partController()->editDocument( url, line-1 );
}
-void ProblemReporter::reportError( QString message,
- QString filename,
+void ProblemReporter::reportError( TQString message,
+ TQString filename,
int line, int column )
{
if( m_markIface ){
@@ -211,34 +211,34 @@ void ProblemReporter::reportError( QString message,
new ProblemItem( this,
"error",
- message.replace( QRegExp("\n"), "" ),
+ message.replace( TQRegExp("\n"), "" ),
filename,
- QString::number( line ),
- QString::number( column ) );
+ TQString::number( line ),
+ TQString::number( column ) );
}
-void ProblemReporter::reportWarning( QString message,
- QString filename,
+void ProblemReporter::reportWarning( TQString message,
+ TQString filename,
int line, int column )
{
new ProblemItem( this,
"warning",
- message.replace( QRegExp("\n"), "" ),
+ message.replace( TQRegExp("\n"), "" ),
filename,
- QString::number( line ),
- QString::number( column ) );
+ TQString::number( line ),
+ TQString::number( column ) );
}
-void ProblemReporter::reportMessage( QString message,
- QString filename,
+void ProblemReporter::reportMessage( TQString message,
+ TQString filename,
int line, int column )
{
- new QListViewItem( this,
+ new TQListViewItem( this,
"message",
- message.replace( QRegExp("\n"), "" ),
+ message.replace( TQRegExp("\n"), "" ),
filename,
- QString::number( line ),
- QString::number( column ) );
+ TQString::number( line ),
+ TQString::number( column ) );
}
void ProblemReporter::configure()
@@ -253,10 +253,10 @@ void ProblemReporter::configure()
void ProblemReporter::configWidget( KDialogBase* dlg )
{
kdDebug() << "ProblemReporter::configWidget()" << endl;
- QVBox *vbox = dlg->addVBoxPage(i18n("Ada Parsing"), i18n("Ada Parsing"), BarIcon( "source", KIcon::SizeMedium ));
+ TQVBox *vbox = dlg->addVBoxPage(i18n("Ada Parsing"), i18n("Ada Parsing"), BarIcon( "source", KIcon::SizeMedium ));
ConfigureProblemReporter* w = new ConfigureProblemReporter( vbox );
- connect(dlg, SIGNAL(okClicked()), w, SLOT(accept()));
- connect(dlg, SIGNAL(okClicked()), this, SLOT(configure()));
+ connect(dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()));
+ connect(dlg, TQT_SIGNAL(okClicked()), this, TQT_SLOT(configure()));
}
void ProblemReporter::slotPartAdded( KParts::Part* part )
diff --git a/languages/ada/problemreporter.h b/languages/ada/problemreporter.h
index a3d70135..c2a112aa 100644
--- a/languages/ada/problemreporter.h
+++ b/languages/ada/problemreporter.h
@@ -20,7 +20,7 @@
#ifndef PROBLEMSREPORTER_H
#define PROBLEMSREPORTER_H
-#include <qlistview.h>
+#include <tqlistview.h>
class AdaSupportPart;
class QTimer;
@@ -40,16 +40,16 @@ namespace KTextEditor{
class ProblemReporter: public QListView{
Q_OBJECT
public:
- ProblemReporter( AdaSupportPart* part, QWidget* parent=0, const char* name=0 );
+ ProblemReporter( AdaSupportPart* part, TQWidget* parent=0, const char* name=0 );
virtual ~ProblemReporter();
- virtual void reportError( QString message, QString filename,
+ virtual void reportError( TQString message, TQString filename,
int line, int column );
- virtual void reportWarning( QString message, QString filename,
+ virtual void reportWarning( TQString message, TQString filename,
int line, int column );
- virtual void reportMessage( QString message, QString filename,
+ virtual void reportMessage( TQString message, TQString filename,
int line, int column );
public slots:
@@ -62,15 +62,15 @@ private slots:
void slotPartRemoved( KParts::Part* );
void slotActivePartChanged( KParts::Part* );
void slotTextChanged();
- void slotSelected( QListViewItem* );
+ void slotSelected( TQListViewItem* );
private:
AdaSupportPart* m_adaSupport;
KTextEditor::EditInterface* m_editor;
KTextEditor::Document* m_document;
KTextEditor::MarkInterface* m_markIface;
- QTimer* m_timer;
- QString m_filename;
+ TQTimer* m_timer;
+ TQString m_filename;
int m_active;
int m_delay;
BackgroundParser* m_bgParser;
diff --git a/languages/bash/bashsupport_part.cpp b/languages/bash/bashsupport_part.cpp
index 389c0a70..1420356d 100644
--- a/languages/bash/bashsupport_part.cpp
+++ b/languages/bash/bashsupport_part.cpp
@@ -3,14 +3,14 @@
*/
#include "bashsupport_part.h"
-#include <qwhatsthis.h>
+#include <tqwhatsthis.h>
-#include <qfileinfo.h>
-#include <qstringlist.h>
-#include <qtextstream.h>
-#include <qtimer.h>
+#include <tqfileinfo.h>
+#include <tqstringlist.h>
+#include <tqtextstream.h>
+#include <tqtimer.h>
#include <kapplication.h>
-#include <qregexp.h>
+#include <tqregexp.h>
#include <kiconloader.h>
#include <klocale.h>
@@ -36,26 +36,26 @@ typedef KDevGenericFactory<BashSupportPart> BashSupportFactory;
static const KDevPluginInfo data("kdevbashsupport");
K_EXPORT_COMPONENT_FACTORY( libkdevbashsupport, BashSupportFactory( data ) )
-BashSupportPart::BashSupportPart(QObject *parent, const char *name, const QStringList& )
+BashSupportPart::BashSupportPart(TQObject *parent, const char *name, const TQStringList& )
: KDevLanguageSupport (&data, parent, name ? name : "BashSupportPart" )
{
setInstance(BashSupportFactory::instance());
setXMLFile("kdevbashsupport.rc");
KAction *action;
- action = new KAction( i18n("&Run"), "exec",Key_F9,this, SLOT(slotRun()),actionCollection(), "build_execute" );
+ action = new KAction( i18n("&Run"), "exec",Key_F9,this, TQT_SLOT(slotRun()),actionCollection(), "build_execute" );
action->setToolTip(i18n("Run"));
action->setWhatsThis(i18n("<b>Run</b><p>Starts an application."));
kdDebug() << "Creating BashSupportPart" << endl;
- connect( core(), SIGNAL(projectConfigWidget(KDialogBase*)),
- this, SLOT(projectConfigWidget(KDialogBase*)) );
- connect( core(), SIGNAL(projectOpened()), this, SLOT(projectOpened()) );
- connect( core(), SIGNAL(projectClosed()), this, SLOT(projectClosed()) );
- connect( partController(), SIGNAL(savedFile(const KURL&)), this, SLOT(savedFile(const KURL&)) );
- connect(partController(), SIGNAL(activePartChanged(KParts::Part*)),
- this, SLOT(slotActivePartChanged(KParts::Part *)));
+ connect( core(), TQT_SIGNAL(projectConfigWidget(KDialogBase*)),
+ this, TQT_SLOT(projectConfigWidget(KDialogBase*)) );
+ connect( core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(projectOpened()) );
+ connect( core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(projectClosed()) );
+ connect( partController(), TQT_SIGNAL(savedFile(const KURL&)), this, TQT_SLOT(savedFile(const KURL&)) );
+ connect(partController(), TQT_SIGNAL(activePartChanged(KParts::Part*)),
+ this, TQT_SLOT(slotActivePartChanged(KParts::Part *)));
m_cc = new BashCodeCompletion();
}
@@ -71,23 +71,23 @@ BashSupportPart::~BashSupportPart()
void BashSupportPart::projectConfigWidget(KDialogBase *dlg)
{
Q_UNUSED( dlg );
-// QVBox *vbox = dlg->addVBoxPage(i18n("Bash"));
-// RubyConfigWidget *w = new RubyConfigWidget(*projectDom(), (QWidget *)vbox, "Bash config widget");
-// connect( dlg, SIGNAL(okClicked()), w, SLOT(accept()) );
+// TQVBox *vbox = dlg->addVBoxPage(i18n("Bash"));
+// RubyConfigWidget *w = new RubyConfigWidget(*projectDom(), (TQWidget *)vbox, "Bash config widget");
+// connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()) );
}
void BashSupportPart::projectOpened()
{
kdDebug(9014) << "projectOpened()" << endl;
- connect( project(), SIGNAL(addedFilesToProject(const QStringList &)),
- this, SLOT(addedFilesToProject(const QStringList &)) );
- connect( project(), SIGNAL(removedFilesFromProject(const QStringList &)),
- this, SLOT(removedFilesFromProject(const QStringList &)) );
+ connect( project(), TQT_SIGNAL(addedFilesToProject(const TQStringList &)),
+ this, TQT_SLOT(addedFilesToProject(const TQStringList &)) );
+ connect( project(), TQT_SIGNAL(removedFilesFromProject(const TQStringList &)),
+ this, TQT_SLOT(removedFilesFromProject(const TQStringList &)) );
// We want to parse only after all components have been
// properly initialized
- QTimer::singleShot(0, this, SLOT(parse()));
+ TQTimer::singleShot(0, this, TQT_SLOT(parse()));
}
@@ -98,18 +98,18 @@ void BashSupportPart::projectClosed()
void BashSupportPart::slotRun ()
{
- QString file;
+ TQString file;
KParts::ReadOnlyPart *ro_part = dynamic_cast<KParts::ReadOnlyPart*>(partController()->activePart());
if(ro_part)
file = ro_part->url().path();
- QString cmd = interpreter() + " " + file;
+ TQString cmd = interpreter() + " " + file;
startApplication(cmd);
}
-QString BashSupportPart::interpreter()
+TQString BashSupportPart::interpreter()
{
- QString prog = DomUtil::readEntry(*projectDom(), "/kdevrbashsupport/run/interpreter");
+ TQString prog = DomUtil::readEntry(*projectDom(), "/kdevrbashsupport/run/interpreter");
if (prog.isEmpty())
prog = "bash";
return prog;
@@ -122,8 +122,8 @@ void BashSupportPart::parse()
if (project())
{
kapp->setOverrideCursor(waitCursor);
- QStringList files = project()->allFiles();
- for (QStringList::Iterator it = files.begin(); it != files.end() ;++it)
+ TQStringList files = project()->allFiles();
+ for (TQStringList::Iterator it = files.begin(); it != files.end() ;++it)
{
kdDebug(9014) << "maybe parse " << project()->projectDirectory() + "/" + (*it) << endl;
parse(project()->projectDirectory() + "/" + *it);
@@ -135,11 +135,11 @@ void BashSupportPart::parse()
}
}
-void BashSupportPart::addedFilesToProject(const QStringList &fileList)
+void BashSupportPart::addedFilesToProject(const TQStringList &fileList)
{
kdDebug(9014) << "addedFilesToProject()" << endl;
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = fileList.begin(); it != fileList.end(); ++it )
{
@@ -150,15 +150,15 @@ kdDebug(9014) << "addedFilesToProject()" << endl;
}
-void BashSupportPart::removedFilesFromProject(const QStringList &fileList)
+void BashSupportPart::removedFilesFromProject(const TQStringList &fileList)
{
kdDebug(9014) << "removedFilesFromProject()" << endl;
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = fileList.begin(); it != fileList.end(); ++it )
{
- QString fileName = project()->projectDirectory() + "/" + ( *it );
+ TQString fileName = project()->projectDirectory() + "/" + ( *it );
if( codeModel()->hasFile(fileName) ){
emit aboutToRemoveSourceInfo( fileName );
codeModel()->removeFile( codeModel()->fileByName(fileName) );
@@ -179,11 +179,11 @@ void BashSupportPart::savedFile(const KURL &fileName)
}
}
-void BashSupportPart::startApplication(const QString &program)
+void BashSupportPart::startApplication(const TQString &program)
{
kdDebug() << "starting application" << program << endl;
if (KDevAppFrontend *appFrontend = extension<KDevAppFrontend>("KDevelop/AppFrontend"))
- appFrontend->startAppCommand(QString::QString(), program, TRUE);
+ appFrontend->startAppCommand(TQString::TQString(), program, TRUE);
}
@@ -192,9 +192,9 @@ KDevLanguageSupport::Features BashSupportPart::features()
return Features(Variables | Functions);
}
-void BashSupportPart::parse(const QString &fileName)
+void BashSupportPart::parse(const TQString &fileName)
{
- QFileInfo fi(fileName);
+ TQFileInfo fi(fileName);
m_vars.clear();
if (fi.extension() == "sh")
{
@@ -207,19 +207,19 @@ void BashSupportPart::parse(const QString &fileName)
m_file->setName( fileName );
m_vars.clear();
- QFile f(QFile::encodeName(fileName));
+ TQFile f(TQFile::encodeName(fileName));
if (!f.open(IO_ReadOnly))
return;
- QString rawline;
- QString line;
+ TQString rawline;
+ TQString line;
uint lineNo = 0;
//KRegExp methodre("\\b([\\d\\w]+[\\s]*)\\([\\s]*\\)");
- QRegExp methodre("^\\s*(\\w+)\\s*\\(\\s*\\)");
- QRegExp varre( "^\\s*(\\w+)[=]" );
- QRegExp expvarre( "^export\\s*(\\w+)[=]" );
- QRegExp forvarre("\\bfor[\\s]+([\\d\\w]+)[\\s]+in[\\s]+");
+ TQRegExp methodre("^\\s*(\\w+)\\s*\\(\\s*\\)");
+ TQRegExp varre( "^\\s*(\\w+)[=]" );
+ TQRegExp expvarre( "^export\\s*(\\w+)[=]" );
+ TQRegExp forvarre("\\bfor[\\s]+([\\d\\w]+)[\\s]+in[\\s]+");
- QTextStream stream(&f);
+ TQTextStream stream(&f);
while (!stream.atEnd())
{
rawline = stream.readLine();
@@ -274,7 +274,7 @@ void BashSupportPart::slotActivePartChanged(KParts::Part *part)
m_cc->setActiveEditorPart(part);
}
-void BashSupportPart::addAttribute(const QString &name, FileDom file, uint lineNo)
+void BashSupportPart::addAttribute(const TQString &name, FileDom file, uint lineNo)
{
VariableDom var = codeModel()->create<VariableModel>();
var->setName(name);
@@ -332,26 +332,26 @@ void BashCodeCompletion::setActiveEditorPart(KParts::Part *part)
}
disconnect(part->widget(), 0, this, 0 ); // to make sure that it is't connected twice
- connect(part->widget(), SIGNAL(cursorPositionChanged()),
- this, SLOT(cursorPositionChanged()));
- connect(part->widget(), SIGNAL(argHintHidden()), this, SLOT(argHintHidden()));
- connect(part->widget(), SIGNAL(completionAborted()), this, SLOT(completionBoxAbort()));
- connect(part->widget(), SIGNAL(completionDone()), this, SLOT(completionBoxHidden()));
+ connect(part->widget(), TQT_SIGNAL(cursorPositionChanged()),
+ this, TQT_SLOT(cursorPositionChanged()));
+ connect(part->widget(), TQT_SIGNAL(argHintHidden()), this, TQT_SLOT(argHintHidden()));
+ connect(part->widget(), TQT_SIGNAL(completionAborted()), this, TQT_SLOT(completionBoxAbort()));
+ connect(part->widget(), TQT_SIGNAL(completionDone()), this, TQT_SLOT(completionBoxHidden()));
}
-void BashCodeCompletion::setVars(QStringList lst)
+void BashCodeCompletion::setVars(TQStringList lst)
{
m_vars = lst;
}
-QValueList<KTextEditor::CompletionEntry> BashCodeCompletion::getVars(const QString &startText)
+TQValueList<KTextEditor::CompletionEntry> BashCodeCompletion::getVars(const TQString &startText)
{
kdDebug() << "getVars for " << startText << endl;
- QValueList<KTextEditor::CompletionEntry> varList;
- QValueList<QString>::ConstIterator it;
+ TQValueList<KTextEditor::CompletionEntry> varList;
+ TQValueList<TQString>::ConstIterator it;
for (it = m_vars.begin(); it != m_vars.end(); ++it) {
- QString var = "$" + (*it);
+ TQString var = "$" + (*it);
kdDebug() << "Compair " << var << endl;
if( var.startsWith( startText ))
{
@@ -373,15 +373,15 @@ void BashCodeCompletion::cursorPositionChanged()
m_cursorInterface->cursorPositionReal(&line, &col);
kdDebug() << "BashCodeCompletion::cursorPositionChanged:" << line << ":" << col << endl;
- QString lineStr = m_editInterface->textLine(line);
+ TQString lineStr = m_editInterface->textLine(line);
if(lineStr.isNull() || lineStr.isEmpty()){
kdDebug() << "No Text..." << endl;
return; // nothing to do
}
// if(m_config->getCodeCompletion())
// {
- QString restLine = lineStr.mid(col);
- QString prevText = lineStr.mid(0,col);
+ TQString restLine = lineStr.mid(col);
+ TQString prevText = lineStr.mid(0,col);
if(restLine.left(1) != " " && restLine.left(1) != "\t" && !restLine.isNull())
{
@@ -389,13 +389,13 @@ void BashCodeCompletion::cursorPositionChanged()
return;
}
- QRegExp prevReg("[$][\\d\\w]*\\b$");
+ TQRegExp prevReg("[$][\\d\\w]*\\b$");
int pos = prevReg.search( prevText );
if (pos > -1 )
{
// We are in completion mode
- QString startMatch = prevReg.cap(0);
+ TQString startMatch = prevReg.cap(0);
kdDebug() << "Matching: " << startMatch << endl;
m_completionBoxShow=true;
m_codeInterface->showCompletionBox(getVars(startMatch),2);
@@ -416,9 +416,9 @@ void BashCodeCompletion::completionBoxHidden()
m_completionBoxShow=false;
/* uint line, col, start;
m_cursorInterface->cursorPositionReal(&line, &col);
- QString lineStr = m_editInterface->textLine(line);
+ TQString lineStr = m_editInterface->textLine(line);
- start = lineStr.findRev(QRegExp("[$][\\d\\w]*\\b$"));
+ start = lineStr.findRev(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 20c11c4e..4b3219fa 100644
--- a/languages/bash/bashsupport_part.h
+++ b/languages/bash/bashsupport_part.h
@@ -7,7 +7,7 @@
#define __KDEVPART_BASHSUPPORT_H__
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
#include <kprocess.h>
#include <kdialogbase.h>
@@ -29,8 +29,8 @@ class BashCodeCompletion : QObject
BashCodeCompletion();
~BashCodeCompletion();
void setActiveEditorPart(KParts::Part*);
- void setVars(QStringList);
- QValueList<KTextEditor::CompletionEntry> getVars(const QString& textHint);
+ void setVars(TQStringList);
+ TQValueList<KTextEditor::CompletionEntry> getVars(const TQString& textHint);
public slots:
void cursorPositionChanged();
@@ -38,7 +38,7 @@ class BashCodeCompletion : QObject
void completionBoxAbort();
private:
- QStringList m_vars;
+ TQStringList m_vars;
bool m_argWidgetShow;
bool m_completionBoxShow;
KTextEditor::EditInterface *m_editInterface;
@@ -50,7 +50,7 @@ class BashSupportPart : public KDevLanguageSupport
{
Q_OBJECT
public:
- BashSupportPart(QObject *parent, const char *name, const QStringList &);
+ BashSupportPart(TQObject *parent, const char *name, const TQStringList &);
virtual ~BashSupportPart();
protected:
@@ -63,18 +63,18 @@ class BashSupportPart : public KDevLanguageSupport
void projectOpened();
void projectClosed();
void savedFile(const KURL &fileName);
- void addedFilesToProject(const QStringList &fileList);
- void removedFilesFromProject(const QStringList &fileList);
+ void addedFilesToProject(const TQStringList &fileList);
+ void removedFilesFromProject(const TQStringList &fileList);
void parse();
void slotActivePartChanged(KParts::Part *part);
private:
- void startApplication(const QString &program);
- QString interpreter();
- void parse(const QString &fileName);
- void addAttribute(const QString &name, FileDom file, uint line);
+ void startApplication(const TQString &program);
+ TQString interpreter();
+ void parse(const TQString &fileName);
+ void addAttribute(const TQString &name, FileDom file, uint line);
BashCodeCompletion *m_cc;
- QStringList m_vars;
+ TQStringList m_vars;
};
diff --git a/languages/cpp/KDevCppSupportIface.cpp b/languages/cpp/KDevCppSupportIface.cpp
index f5af83c9..793516ca 100644
--- a/languages/cpp/KDevCppSupportIface.cpp
+++ b/languages/cpp/KDevCppSupportIface.cpp
@@ -3,7 +3,7 @@
#include "cppsupportpart.h"
KDevCppSupportIface::KDevCppSupportIface( CppSupportPart* cppSupport )
- : QObject( cppSupport ), DCOPObject( "KDevCppSupport" ), m_cppSupport( cppSupport )
+ : TQObject( cppSupport ), DCOPObject( "KDevCppSupport" ), m_cppSupport( cppSupport )
{
}
diff --git a/languages/cpp/KDevCppSupportIface.h b/languages/cpp/KDevCppSupportIface.h
index 34780d8c..8aed7e94 100644
--- a/languages/cpp/KDevCppSupportIface.h
+++ b/languages/cpp/KDevCppSupportIface.h
@@ -2,12 +2,12 @@
#ifndef KDEVCPPSUPPORTIFACE_H
#define KDEVCPPSUPPORTIFACE_H
-#include <qobject.h>
+#include <tqobject.h>
#include <dcopobject.h>
class CppSupportPart;
-class KDevCppSupportIface : public QObject, public DCOPObject
+class KDevCppSupportIface : public TQObject, public DCOPObject
{
Q_OBJECT
K_DCOP
diff --git a/languages/cpp/addattributedialog.cpp b/languages/cpp/addattributedialog.cpp
index 7f5712a2..42031f59 100644
--- a/languages/cpp/addattributedialog.cpp
+++ b/languages/cpp/addattributedialog.cpp
@@ -32,24 +32,24 @@
#include <ktexteditor/editinterface.h>
#include <klineedit.h>
-#include <qfileinfo.h>
-#include <qcombobox.h>
-#include <qlistview.h>
-#include <qcheckbox.h>
-#include <qpushbutton.h>
-#include <qtoolbutton.h>
-#include <qtextstream.h>
+#include <tqfileinfo.h>
+#include <tqcombobox.h>
+#include <tqlistview.h>
+#include <tqcheckbox.h>
+#include <tqpushbutton.h>
+#include <tqtoolbutton.h>
+#include <tqtextstream.h>
AddAttributeDialog::AddAttributeDialog( CppSupportPart* cppSupport, ClassDom klass,
- QWidget* parent, const char* name, bool modal, WFlags fl )
+ TQWidget* parent, const char* name, bool modal, WFlags fl )
: AddAttributeDialogBase( parent, name, modal, fl ), m_cppSupport( cppSupport ), m_klass( klass ), m_count( 0 )
{
- access->insertStringList( QStringList() << "Public" << "Protected" << "Private" );
+ access->insertStringList( TQStringList() << "Public" << "Protected" << "Private" );
- storage->insertStringList( QStringList() << "Normal" << "Static" );
+ storage->insertStringList( TQStringList() << "Normal" << "Static" );
returnType->setAutoCompletion( true );
- returnType->insertStringList( QStringList()
+ returnType->insertStringList( TQStringList()
<< "void"
<< "char"
<< "wchar_t"
@@ -73,7 +73,7 @@ AddAttributeDialog::~AddAttributeDialog()
void AddAttributeDialog::reject()
{
- QDialog::reject();
+ TQDialog::reject();
}
void AddAttributeDialog::accept()
@@ -83,7 +83,7 @@ void AddAttributeDialog::accept()
if ( !editIface )
{
/// @todo show messagebox
- QDialog::accept();
+ TQDialog::accept();
return ;
}
@@ -91,15 +91,15 @@ void AddAttributeDialog::accept()
m_klass->getEndPosition( &line, &column );
// compute the insertion point map
- QMap<QString, QPair<int, int> > points;
- QStringList accessList;
+ TQMap<TQString, QPair<int, int> > points;
+ TQStringList accessList;
const VariableList variableList = m_klass->variableList();
for ( VariableList::ConstIterator it = variableList.begin(); it != variableList.end(); ++it )
{
int varEndLine, varEndColumn;
( *it ) ->getEndPosition( &varEndLine, &varEndColumn );
- QString access = accessID( *it );
+ TQString access = accessID( *it );
QPair<int, int> varEndPoint = qMakePair( varEndLine, varEndColumn );
if ( !points.contains( access ) || points[ access ] < varEndPoint )
@@ -115,21 +115,21 @@ void AddAttributeDialog::accept()
accessList += newAccessList( accessList );
- for ( QStringList::iterator it = accessList.begin(); it != accessList.end(); ++it )
+ for ( TQStringList::iterator it = accessList.begin(); it != accessList.end(); ++it )
{
- QListViewItem* item = attributes->firstChild();
+ TQListViewItem* item = attributes->firstChild();
while ( item )
{
- QListViewItem * currentItem = item;
+ TQListViewItem * currentItem = item;
item = item->nextSibling();
if ( currentItem->text( 0 ) != *it )
continue;
- QString access = ( *it ).lower();
+ TQString access = ( *it ).lower();
- QString str = variableDeclaration( currentItem );
+ TQString str = variableDeclaration( currentItem );
QPair<int, int> pt;
if ( points.contains( *it ) )
@@ -144,21 +144,21 @@ void AddAttributeDialog::accept()
}
editIface->insertText( pt.first + insertedLine + 1, 0 /*pt.second*/, str );
- insertedLine += str.contains( QChar( '\n' ) );
+ insertedLine += str.contains( TQChar( '\n' ) );
}
}
m_cppSupport->backgroundParser() ->addFile( m_klass->fileName() );
- QDialog::accept();
+ TQDialog::accept();
}
-QString AddAttributeDialog::variableDeclaration( QListViewItem* item ) const
+TQString AddAttributeDialog::variableDeclaration( TQListViewItem* item ) const
{
- QString str;
- QTextStream stream( &str, IO_WriteOnly );
- QString ind;
- ind.fill( QChar( ' ' ), 4 );
+ TQString str;
+ TQTextStream stream( &str, IO_WriteOnly );
+ TQString ind;
+ ind.fill( TQChar( ' ' ), 4 );
stream << ind;
if ( item->text( 1 ) == "Static" )
@@ -183,7 +183,7 @@ void AddAttributeDialog::updateGUI()
if ( enable )
{
- QListViewItem * item = attributes->selectedItem();
+ TQListViewItem * item = attributes->selectedItem();
item->setText( 0, access->currentText() );
item->setText( 1, storage->currentText() );
item->setText( 2, returnType->currentText() );
@@ -193,8 +193,8 @@ void AddAttributeDialog::updateGUI()
void AddAttributeDialog::addAttribute()
{
- QListViewItem * item = new QListViewItem( attributes, "Protected", "Normal",
- "int", QString( "attribute_%1" ).arg( ++m_count ) );
+ TQListViewItem * item = new TQListViewItem( attributes, "Protected", "Normal",
+ "int", TQString( "attribute_%1" ).arg( ++m_count ) );
attributes->setCurrentItem( item );
attributes->setSelected( item, true );
@@ -206,14 +206,14 @@ void AddAttributeDialog::deleteCurrentAttribute()
delete( attributes->currentItem() );
}
-void AddAttributeDialog::currentChanged( QListViewItem* item )
+void AddAttributeDialog::currentChanged( TQListViewItem* item )
{
if ( item )
{
- QString _access = item->text( 0 );
- QString _storage = item->text( 1 );
- QString _returnType = item->text( 2 );
- QString _declarator = item->text( 3 );
+ TQString _access = item->text( 0 );
+ TQString _storage = item->text( 1 );
+ TQString _returnType = item->text( 2 );
+ TQString _declarator = item->text( 3 );
access->setCurrentText( _access );
storage->setCurrentText( _storage );
@@ -224,18 +224,18 @@ void AddAttributeDialog::currentChanged( QListViewItem* item )
updateGUI();
}
-QStringList AddAttributeDialog::newAccessList( const QStringList& accessList ) const
+TQStringList AddAttributeDialog::newAccessList( const TQStringList& accessList ) const
{
- QStringList newAccessList;
+ TQStringList newAccessList;
- QListViewItem* item = attributes->firstChild();
+ TQListViewItem* item = attributes->firstChild();
while ( item )
{
- QListViewItem * currentItem = item;
+ TQListViewItem * currentItem = item;
item = item->nextSibling();
- QString access = currentItem->text( 0 );
+ TQString access = currentItem->text( 0 );
if ( !( accessList.contains( access ) || newAccessList.contains( access ) ) )
newAccessList.push_back( access );
}
@@ -243,21 +243,21 @@ QStringList AddAttributeDialog::newAccessList( const QStringList& accessList ) c
return newAccessList;
}
-QString AddAttributeDialog::accessID( VariableDom var ) const
+TQString AddAttributeDialog::accessID( VariableDom var ) const
{
switch ( var->access() )
{
case CodeModelItem::Public:
- return QString::fromLatin1( "Public" );
+ return TQString::fromLatin1( "Public" );
case CodeModelItem::Protected:
- return QString::fromLatin1( "Protected" );
+ return TQString::fromLatin1( "Protected" );
case CodeModelItem::Private:
- return QString::fromLatin1( "Private" );
+ return TQString::fromLatin1( "Private" );
}
- return QString::null;
+ return TQString::null;
}
#include "addattributedialog.moc"
diff --git a/languages/cpp/addattributedialog.h b/languages/cpp/addattributedialog.h
index 8e160f2a..54d917b1 100644
--- a/languages/cpp/addattributedialog.h
+++ b/languages/cpp/addattributedialog.h
@@ -31,12 +31,12 @@ class AddAttributeDialog : public AddAttributeDialogBase
Q_OBJECT
public:
AddAttributeDialog( CppSupportPart* cppSupport, ClassDom klass,
- QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+ TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~AddAttributeDialog();
virtual void addAttribute();
virtual void deleteCurrentAttribute();
- virtual void currentChanged( QListViewItem* item );
+ virtual void currentChanged( TQListViewItem* item );
virtual void updateGUI();
protected:
@@ -44,9 +44,9 @@ protected:
virtual void accept();
private:
- QString accessID( VariableDom var ) const;
- QStringList newAccessList( const QStringList& accessList ) const;
- QString variableDeclaration( QListViewItem* item ) const;
+ TQString accessID( VariableDom var ) const;
+ TQStringList newAccessList( const TQStringList& accessList ) const;
+ TQString variableDeclaration( TQListViewItem* item ) const;
private:
CppSupportPart* m_cppSupport;
diff --git a/languages/cpp/addmethoddialog.cpp b/languages/cpp/addmethoddialog.cpp
index 2b53868c..ae4e1738 100644
--- a/languages/cpp/addmethoddialog.cpp
+++ b/languages/cpp/addmethoddialog.cpp
@@ -34,28 +34,28 @@
#include <kdebug.h>
#include <klineedit.h>
-#include <qregexp.h>
-#include <qfileinfo.h>
-#include <qcombobox.h>
-#include <qlistview.h>
-#include <qcheckbox.h>
-#include <qpushbutton.h>
-#include <qtoolbutton.h>
-#include <qtextstream.h>
+#include <tqregexp.h>
+#include <tqfileinfo.h>
+#include <tqcombobox.h>
+#include <tqlistview.h>
+#include <tqcheckbox.h>
+#include <tqpushbutton.h>
+#include <tqtoolbutton.h>
+#include <tqtextstream.h>
AddMethodDialog::AddMethodDialog( CppSupportPart* cppSupport, ClassDom klass,
- QWidget* parent, const char* name, bool modal, WFlags fl )
+ TQWidget* parent, const char* name, bool modal, WFlags fl )
: AddMethodDialogBase( parent, name, modal, fl ), m_cppSupport( cppSupport ), m_klass( klass ), m_count( 0 )
{
- QString fileName = m_klass->fileName();
+ TQString fileName = m_klass->fileName();
- access->insertStringList( QStringList() << "Public" << "Protected" << "Private" << "Signals" <<
+ access->insertStringList( TQStringList() << "Public" << "Protected" << "Private" << "Signals" <<
"Public Slots" << "Protected Slots" << "Private Slots" );
- storage->insertStringList( QStringList() << "Normal" << "Static" << "Virtual" << "Pure Virtual" << "Friend" );
+ storage->insertStringList( TQStringList() << "Normal" << "Static" << "Virtual" << "Pure Virtual" << "Friend" );
// setup sourceFile combo
- QMap<QString, bool> m;
+ TQMap<TQString, bool> m;
#if 0 /// \FIXME ROBE
FunctionList l = m_klass->functionList();
@@ -69,12 +69,12 @@ AddMethodDialog::AddMethodDialog( CppSupportPart* cppSupport, ClassDom klass,
#endif
{
- QStringList headers = QStringList::split( ",", "h,H,hh,hxx,hpp,inl,tlh,diff,ui.h" );
- QStringList fileList;
- QMap<QString, bool>::Iterator it = m.begin();
+ TQStringList headers = TQStringList::split( ",", "h,H,hh,hxx,hpp,inl,tlh,diff,ui.h" );
+ TQStringList fileList;
+ TQMap<TQString, bool>::Iterator it = m.begin();
while ( it != m.end() )
{
- QString ext = QFileInfo( it.key() ).extension();
+ TQString ext = TQFileInfo( it.key() ).extension();
if ( !headers.contains( ext ) )
sourceFile->insertItem( it.key() );
++it;
@@ -82,14 +82,14 @@ AddMethodDialog::AddMethodDialog( CppSupportPart* cppSupport, ClassDom klass,
if ( sourceFile->count() == 0 )
{
- QFileInfo info( fileName );
- QString impl = DomUtil::readEntry( *cppSupport->projectDom(), "/cppsupportpart/filetemplates/implementationsuffix", "cpp" );
+ TQFileInfo info( fileName );
+ TQString impl = DomUtil::readEntry( *cppSupport->projectDom(), "/cppsupportpart/filetemplates/implementationsuffix", "cpp" );
sourceFile->insertItem( info.dirPath( true ) + "/" + info.baseName() + impl );
}
}
returnType->setAutoCompletion( true );
- returnType->insertStringList( QStringList()
+ returnType->insertStringList( TQStringList()
<< "void"
<< "char"
<< "wchar_t"
@@ -113,33 +113,33 @@ AddMethodDialog::~AddMethodDialog()
void AddMethodDialog::reject()
{
- QDialog::reject();
+ TQDialog::reject();
}
-QString AddMethodDialog::accessID( FunctionDom fun ) const
+TQString AddMethodDialog::accessID( FunctionDom fun ) const
{
if ( fun->isSignal() )
- return QString::fromLatin1( "Signals" );
+ return TQString::fromLatin1( "Signals" );
switch ( fun->access() )
{
case CodeModelItem::Public:
if ( fun->isSlot() )
- return QString::fromLatin1( "Public Slots" );
- return QString::fromLatin1( "Public" );
+ return TQString::fromLatin1( "Public Slots" );
+ return TQString::fromLatin1( "Public" );
case CodeModelItem::Protected:
if ( fun->isSlot() )
- return QString::fromLatin1( "Protected Slots" );
- return QString::fromLatin1( "Protected" );
+ return TQString::fromLatin1( "Protected Slots" );
+ return TQString::fromLatin1( "Protected" );
case CodeModelItem::Private:
if ( fun->isSlot() )
- return QString::fromLatin1( "Private Slots" );
- return QString::fromLatin1( "Private" );
+ return TQString::fromLatin1( "Private Slots" );
+ return TQString::fromLatin1( "Private" );
}
- return QString::null;
+ return TQString::null;
}
void AddMethodDialog::accept()
@@ -149,7 +149,7 @@ void AddMethodDialog::accept()
if ( !editIface )
{
/// @todo show messagebox
- QDialog::accept();
+ TQDialog::accept();
return ;
}
@@ -157,15 +157,15 @@ void AddMethodDialog::accept()
m_klass->getEndPosition( &line, &column );
// compute the insertion point map
- QMap<QString, QPair<int, int> > points;
- QStringList accessList;
+ TQMap<TQString, QPair<int, int> > points;
+ TQStringList accessList;
const FunctionList functionList = m_klass->functionList();
for ( FunctionList::ConstIterator it = functionList.begin(); it != functionList.end(); ++it )
{
int funEndLine, funEndColumn;
( *it ) ->getEndPosition( &funEndLine, &funEndColumn );
- QString access = accessID( *it );
+ TQString access = accessID( *it );
QPair<int, int> funEndPoint = qMakePair( funEndLine, funEndColumn );
if ( !points.contains( access ) || points[ access ] < funEndPoint )
@@ -181,22 +181,22 @@ void AddMethodDialog::accept()
accessList += newAccessList( accessList );
- for ( QStringList::iterator it = accessList.begin(); it != accessList.end(); ++it )
+ for ( TQStringList::iterator it = accessList.begin(); it != accessList.end(); ++it )
{
- QListViewItem* item = methods->firstChild();
+ TQListViewItem* item = methods->firstChild();
while ( item )
{
- QListViewItem * currentItem = item;
+ TQListViewItem * currentItem = item;
item = item->nextSibling();
if ( currentItem->text( 1 ) != *it )
continue;
- QString access = ( *it ).lower();
+ TQString access = ( *it ).lower();
bool isInline = currentItem->text( 0 ) == "True";
- QString str = isInline ? functionDefinition( currentItem ) : functionDeclaration( currentItem );
+ TQString str = isInline ? functionDefinition( currentItem ) : functionDeclaration( currentItem );
QPair<int, int> pt;
if ( points.contains( *it ) )
@@ -211,30 +211,30 @@ void AddMethodDialog::accept()
}
editIface->insertText( pt.first + insertedLine + 1, 0 /*pt.second*/, str );
- insertedLine += str.contains( QChar( '\n' ) );
+ insertedLine += str.contains( TQChar( '\n' ) );
}
}
m_cppSupport->backgroundParser() ->addFile( m_klass->fileName() );
- QString str;
- QListViewItem* item = methods->firstChild();
+ TQString str;
+ TQListViewItem* item = methods->firstChild();
while ( item )
{
- QListViewItem * currentItem = item;
+ TQListViewItem * currentItem = item;
item = item->nextSibling();
- QString str = functionDefinition( currentItem );
+ TQString str = functionDefinition( currentItem );
if ( str.isEmpty() )
continue;
- QString implementationFile = currentItem->text( 5 );
+ TQString implementationFile = currentItem->text( 5 );
if ( currentItem->text( 0 ) == "True" )
implementationFile = m_klass->fileName();
- QFileInfo fileInfo( implementationFile );
- if ( !QFile::exists( fileInfo.absFilePath() ) )
+ TQFileInfo fileInfo( implementationFile );
+ if ( !TQFile::exists( fileInfo.absFilePath() ) )
{
if ( KDevCreateFile * createFileSupp = m_cppSupport->extension<KDevCreateFile>( "KDevelop/CreateFile" ) )
createFileSupp->createNewFile( fileInfo.extension(), fileInfo.dirPath( true ), fileInfo.baseName() );
@@ -248,13 +248,13 @@ void AddMethodDialog::accept()
bool isInline = currentItem->text( 0 ) == "True";
if ( !isInline )
{
- editIface->insertLine( editIface->numLines(), QString::fromLatin1( "" ) );
+ editIface->insertLine( editIface->numLines(), TQString::fromLatin1( "" ) );
editIface->insertText( editIface->numLines() - 1, 0, str );
m_cppSupport->backgroundParser() ->addFile( implementationFile );
}
}
- QDialog::accept();
+ TQDialog::accept();
}
void AddMethodDialog::updateGUI()
@@ -274,7 +274,7 @@ void AddMethodDialog::updateGUI()
if ( enable )
{
- QListViewItem * item = methods->selectedItem();
+ TQListViewItem * item = methods->selectedItem();
item->setText( 0, isInline->isChecked() ? "True" : "False" );
item->setText( 1, access->currentText() );
item->setText( 2, storage->currentText() );
@@ -292,8 +292,8 @@ void AddMethodDialog::updateGUI()
void AddMethodDialog::addMethod()
{
- QListViewItem * item = new QListViewItem( methods, "False", "Public", "Normal",
- "void", QString( "method_%1()" ).arg( ++m_count ),
+ TQListViewItem * item = new TQListViewItem( methods, "False", "Public", "Normal",
+ "void", TQString( "method_%1()" ).arg( ++m_count ),
sourceFile->currentText() );
methods->setCurrentItem( item );
methods->setSelected( item, true );
@@ -307,16 +307,16 @@ void AddMethodDialog::deleteCurrentMethod()
updateGUI();
}
-void AddMethodDialog::currentChanged( QListViewItem* item )
+void AddMethodDialog::currentChanged( TQListViewItem* item )
{
if ( item )
{
- QString _isInline = item->text( 0 );
- QString _access = item->text( 1 );
- QString _storage = item->text( 2 );
- QString _returnType = item->text( 3 );
- QString _declarator = item->text( 4 );
- QString _sourceFile = item->text( 5 );
+ TQString _isInline = item->text( 0 );
+ TQString _access = item->text( 1 );
+ TQString _storage = item->text( 2 );
+ TQString _returnType = item->text( 3 );
+ TQString _declarator = item->text( 4 );
+ TQString _sourceFile = item->text( 5 );
isInline->setChecked( _isInline == "True" ? true : false );
access->setCurrentText( _access );
@@ -331,17 +331,17 @@ void AddMethodDialog::currentChanged( QListViewItem* item )
void AddMethodDialog::browseImplementationFile()
{
- QString fileName = KFileDialog::getOpenFileName();
+ TQString fileName = KFileDialog::getOpenFileName();
sourceFile->setCurrentText( fileName );
updateGUI();
}
-QString AddMethodDialog::functionDeclaration( QListViewItem * item ) const
+TQString AddMethodDialog::functionDeclaration( TQListViewItem * item ) const
{
- QString str;
- QTextStream stream( &str, IO_WriteOnly );
+ TQString str;
+ TQTextStream stream( &str, IO_WriteOnly );
- QString access = item->text( 1 ).lower();
+ TQString access = item->text( 1 ).lower();
stream << " "; /// @todo use AStyle
if ( item->text( 2 ) == "Virtual" || item->text( 2 ) == "Pure Virtual" )
@@ -358,28 +358,28 @@ QString AddMethodDialog::functionDeclaration( QListViewItem * item ) const
return str;
}
-QString AddMethodDialog::functionDefinition( QListViewItem* item ) const
+TQString AddMethodDialog::functionDefinition( TQListViewItem* item ) const
{
if ( item->text( 1 ) == "Signals" || item->text( 2 ) == "Pure Virtual" ||
item->text( 2 ) == "Friend" )
{
- return QString::null;
+ return TQString::null;
}
- QString className = m_klass->name();
- QString fullName = m_klass->scope().join( "::" );
+ TQString className = m_klass->name();
+ TQString fullName = m_klass->scope().join( "::" );
if ( !fullName.isEmpty() )
fullName += "::";
fullName += className;
- QString str;
- QTextStream stream( &str, IO_WriteOnly );
+ TQString str;
+ TQTextStream stream( &str, IO_WriteOnly );
bool isInline = item->text( 0 ) == "True";
- QString ind;
+ TQString ind;
if ( isInline )
- ind.fill( QChar( ' ' ), 4 );
+ ind.fill( TQChar( ' ' ), 4 );
stream << "\n"
<< ind << "/*!\n"
@@ -387,7 +387,7 @@ QString AddMethodDialog::functionDefinition( QListViewItem* item ) const
<< ind << " */\n";
stream
- << ind << item->text( 3 ) << " " << ( isInline ? QString::fromLatin1( "" ) : fullName + "::" )
+ << ind << item->text( 3 ) << " " << ( isInline ? TQString::fromLatin1( "" ) : fullName + "::" )
<< item->text( 4 ) << "\n"
<< ind << "{\n"
<< ind << " /// @todo implement me\n"
@@ -396,18 +396,18 @@ QString AddMethodDialog::functionDefinition( QListViewItem* item ) const
return str;
}
-QStringList AddMethodDialog::newAccessList( const QStringList& accessList ) const
+TQStringList AddMethodDialog::newAccessList( const TQStringList& accessList ) const
{
- QStringList newAccessList;
+ TQStringList newAccessList;
- QListViewItem* item = methods->firstChild();
+ TQListViewItem* item = methods->firstChild();
while ( item )
{
- QListViewItem * currentItem = item;
+ TQListViewItem * currentItem = item;
item = item->nextSibling();
- QString access = currentItem->text( 1 );
+ TQString access = currentItem->text( 1 );
if ( !( accessList.contains( access ) || newAccessList.contains( access ) ) )
newAccessList.push_back( access );
}
diff --git a/languages/cpp/addmethoddialog.h b/languages/cpp/addmethoddialog.h
index 0b196c19..badfe537 100644
--- a/languages/cpp/addmethoddialog.h
+++ b/languages/cpp/addmethoddialog.h
@@ -31,12 +31,12 @@ class AddMethodDialog : public AddMethodDialogBase
Q_OBJECT
public:
AddMethodDialog( CppSupportPart* cppSupport, ClassDom klass,
- QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+ TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~AddMethodDialog();
virtual void addMethod();
virtual void deleteCurrentMethod();
- virtual void currentChanged( QListViewItem* item );
+ virtual void currentChanged( TQListViewItem* item );
virtual void updateGUI();
virtual void browseImplementationFile();
@@ -45,10 +45,10 @@ protected:
virtual void accept();
private:
- QString accessID( FunctionDom fun ) const;
- QString functionDeclaration( QListViewItem* item ) const;
- QString functionDefinition( QListViewItem* item ) const;
- QStringList newAccessList( const QStringList& accessList ) const;
+ TQString accessID( FunctionDom fun ) const;
+ TQString functionDeclaration( TQListViewItem* item ) const;
+ TQString functionDefinition( TQListViewItem* item ) const;
+ TQStringList newAccessList( const TQStringList& accessList ) const;
private:
CppSupportPart* m_cppSupport;
diff --git a/languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.cpp b/languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.cpp
index 841f88d4..973aee2c 100644
--- a/languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.cpp
+++ b/languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.cpp
@@ -2,120 +2,120 @@
#include "%{APPNAMELC}.h"
-#include <qimage.h>
-#include <qpixmap.h>
-#include <qtoolbar.h>
-#include <qtoolbutton.h>
-#include <qpopupmenu.h>
-#include <qmenubar.h>
-#include <qtextedit.h>
-#include <qfile.h>
-#include <qfiledialog.h>
-#include <qstatusbar.h>
-#include <qmessagebox.h>
-#include <qprinter.h>
-#include <qapplication.h>
-#include <qaccel.h>
-#include <qtextstream.h>
-#include <qpainter.h>
-#include <qpaintdevicemetrics.h>
-#include <qwhatsthis.h>
+#include <tqimage.h>
+#include <tqpixmap.h>
+#include <tqtoolbar.h>
+#include <tqtoolbutton.h>
+#include <tqpopupmenu.h>
+#include <tqmenubar.h>
+#include <tqtextedit.h>
+#include <tqfile.h>
+#include <tqfiledialog.h>
+#include <tqstatusbar.h>
+#include <tqmessagebox.h>
+#include <tqprinter.h>
+#include <tqapplication.h>
+#include <tqaccel.h>
+#include <tqtextstream.h>
+#include <tqpainter.h>
+#include <tqpaintdevicemetrics.h>
+#include <tqwhatsthis.h>
#include "filesave.xpm"
#include "fileopen.xpm"
#include "fileprint.xpm"
%{APPNAME}::%{APPNAME}()
- : QMainWindow( 0, "%{APPNAME}", WDestructiveClose )
+ : TQMainWindow( 0, "%{APPNAME}", WDestructiveClose )
{
printer = new QPrinter;
- QPixmap openIcon, saveIcon, printIcon;
+ TQPixmap openIcon, saveIcon, printIcon;
- QToolBar * fileTools = new QToolBar( this, "file operations" );
+ TQToolBar * fileTools = new TQToolBar( this, "file operations" );
fileTools->setLabel( tr("File Operations") );
- openIcon = QPixmap( fileopen );
- QToolButton * fileOpen
- = new QToolButton( openIcon, tr("Open File"), QString::null,
- this, SLOT(choose()), fileTools, "open file" );
+ openIcon = TQPixmap( fileopen );
+ TQToolButton * fileOpen
+ = new TQToolButton( openIcon, tr("Open File"), TQString::null,
+ this, TQT_SLOT(choose()), fileTools, "open file" );
- saveIcon = QPixmap( filesave );
- QToolButton * fileSave
- = new QToolButton( saveIcon, tr("Save File"), QString::null,
- this, SLOT(save()), fileTools, "save file" );
+ saveIcon = TQPixmap( filesave );
+ TQToolButton * fileSave
+ = new TQToolButton( saveIcon, tr("Save File"), TQString::null,
+ this, TQT_SLOT(save()), fileTools, "save file" );
- printIcon = QPixmap( fileprint );
- QToolButton * filePrint
- = new QToolButton( printIcon, tr("Print File"), QString::null,
- this, SLOT(print()), fileTools, "print file" );
+ printIcon = TQPixmap( fileprint );
+ TQToolButton * filePrint
+ = new TQToolButton( printIcon, tr("Print File"), TQString::null,
+ this, TQT_SLOT(print()), fileTools, "print file" );
- (void)QWhatsThis::whatsThisButton( fileTools );
+ (void)TQWhatsThis::whatsThisButton( fileTools );
- QString fileOpenText = tr("<p><img source=\"fileopen\"> "
+ TQString fileOpenText = tr("<p><img source=\"fileopen\"> "
"Click this button to open a <em>new file</em>. <br>"
"You can also select the <b>Open</b> command "
"from the <b>File</b> menu.</p>");
- QWhatsThis::add( fileOpen, fileOpenText );
+ TQWhatsThis::add( fileOpen, fileOpenText );
- QMimeSourceFactory::defaultFactory()->setPixmap( "fileopen", openIcon );
+ TQMimeSourceFactory::defaultFactory()->setPixmap( "fileopen", openIcon );
- QString fileSaveText = tr("<p>Click this button to save the file you "
+ TQString fileSaveText = tr("<p>Click this button to save the file you "
"are editing. You will be prompted for a file name.\n"
"You can also select the <b>Save</b> command "
"from the <b>File</b> menu.</p>");
- QWhatsThis::add( fileSave, fileSaveText );
+ TQWhatsThis::add( fileSave, fileSaveText );
- QString filePrintText = tr("Click this button to print the file you "
+ TQString filePrintText = tr("Click this button to print the file you "
"are editing.\n You can also select the Print "
"command from the File menu.");
- QWhatsThis::add( filePrint, filePrintText );
+ TQWhatsThis::add( filePrint, filePrintText );
- QPopupMenu * file = new QPopupMenu( this );
+ TQPopupMenu * file = new TQPopupMenu( this );
menuBar()->insertItem( tr("&File"), file );
- file->insertItem( tr("&New"), this, SLOT(newDoc()), CTRL+Key_N );
+ file->insertItem( tr("&New"), this, TQT_SLOT(newDoc()), CTRL+Key_N );
int id;
id = file->insertItem( openIcon, tr("&Open..."),
- this, SLOT(choose()), CTRL+Key_O );
+ this, TQT_SLOT(choose()), CTRL+Key_O );
file->setWhatsThis( id, fileOpenText );
id = file->insertItem( saveIcon, tr("&Save"),
- this, SLOT(save()), CTRL+Key_S );
+ this, TQT_SLOT(save()), CTRL+Key_S );
file->setWhatsThis( id, fileSaveText );
- id = file->insertItem( tr("Save &As..."), this, SLOT(saveAs()) );
+ id = file->insertItem( tr("Save &As..."), this, TQT_SLOT(saveAs()) );
file->setWhatsThis( id, fileSaveText );
file->insertSeparator();
id = file->insertItem( printIcon, tr("&Print..."),
- this, SLOT(print()), CTRL+Key_P );
+ this, TQT_SLOT(print()), CTRL+Key_P );
file->setWhatsThis( id, filePrintText );
file->insertSeparator();
- file->insertItem( tr("&Close"), this, SLOT(close()), CTRL+Key_W );
+ file->insertItem( tr("&Close"), this, TQT_SLOT(close()), CTRL+Key_W );
- file->insertItem( tr("&Quit"), qApp, SLOT( closeAllWindows() ), CTRL+Key_Q );
+ file->insertItem( tr("&Quit"), qApp, TQT_SLOT( closeAllWindows() ), CTRL+Key_Q );
menuBar()->insertSeparator();
- QPopupMenu * help = new QPopupMenu( this );
+ TQPopupMenu * help = new TQPopupMenu( this );
menuBar()->insertItem( tr("&Help"), help );
- help->insertItem( tr("&About"), this, SLOT(about()), Key_F1 );
- help->insertItem( tr("About &Qt"), this, SLOT(aboutQt()) );
+ help->insertItem( tr("&About"), this, TQT_SLOT(about()), Key_F1 );
+ help->insertItem( tr("About &Qt"), this, TQT_SLOT(aboutQt()) );
help->insertSeparator();
- help->insertItem( tr("What's &This"), this, SLOT(whatsThis()), SHIFT+Key_F1 );
+ help->insertItem( tr("What's &This"), this, TQT_SLOT(whatsThis()), SHIFT+Key_F1 );
- e = new QTextEdit( this, "editor" );
+ e = new TQTextEdit( this, "editor" );
e->setFocus();
setCentralWidget( e );
statusBar()->message( tr("Ready"), 2000 );
@@ -140,7 +140,7 @@ void %{APPNAME}::newDoc()
void %{APPNAME}::choose()
{
- QString fn = QFileDialog::getOpenFileName( QString::null, QString::null,
+ TQString fn = TQFileDialog::getOpenFileName( TQString::null, TQString::null,
this);
if ( !fn.isEmpty() )
load( fn );
@@ -149,13 +149,13 @@ void %{APPNAME}::choose()
}
-void %{APPNAME}::load( const QString &fileName )
+void %{APPNAME}::load( const TQString &fileName )
{
- QFile f( fileName );
+ TQFile f( fileName );
if ( !f.open( IO_ReadOnly ) )
return;
- QTextStream ts( &f );
+ TQTextStream ts( &f );
e->setText( ts.read() );
e->setModified( FALSE );
setCaption( fileName );
@@ -170,15 +170,15 @@ void %{APPNAME}::save()
return;
}
- QString text = e->text();
- QFile f( filename );
+ TQString text = e->text();
+ TQFile f( filename );
if ( !f.open( IO_WriteOnly ) ) {
statusBar()->message( tr("Could not write to %1").arg(filename),
2000 );
return;
}
- QTextStream t( &f );
+ TQTextStream t( &f );
t << text;
f.close();
@@ -192,7 +192,7 @@ void %{APPNAME}::save()
void %{APPNAME}::saveAs()
{
- QString fn = QFileDialog::getSaveFileName( QString::null, QString::null,
+ TQString fn = TQFileDialog::getSaveFileName( TQString::null, TQString::null,
this );
if ( !fn.isEmpty() ) {
filename = fn;
@@ -205,25 +205,25 @@ void %{APPNAME}::saveAs()
void %{APPNAME}::print()
{
- // ###### Rewrite to use QSimpleRichText to print here as well
+ // ###### Rewrite to use TQSimpleRichText to print here as well
const int Margin = 10;
int pageNo = 1;
if ( printer->setup(this) ) { // printer dialog
statusBar()->message( tr("Printing...") );
- QPainter p;
+ TQPainter p;
if( !p.begin( printer ) ) // paint on printer
return;
p.setFont( e->font() );
int yPos = 0; // y-position for each line
- QFontMetrics fm = p.fontMetrics();
- QPaintDeviceMetrics metrics( printer ); // need width/height
+ TQFontMetrics fm = p.fontMetrics();
+ TQPaintDeviceMetrics metrics( printer ); // need width/height
// of printer surface
for( int i = 0 ; i < e->lines() ; i++ ) {
if ( Margin + yPos > metrics.height() - Margin ) {
- QString msg( "Printing (page " );
- msg += QString::number( ++pageNo );
+ TQString msg( "Printing (page " );
+ msg += TQString::number( ++pageNo );
msg += ")...";
statusBar()->message( msg );
printer->newPage(); // no more room on this page
@@ -242,14 +242,14 @@ void %{APPNAME}::print()
}
}
-void %{APPNAME}::closeEvent( QCloseEvent* ce )
+void %{APPNAME}::closeEvent( TQCloseEvent* ce )
{
if ( !e->isModified() ) {
ce->accept();
return;
}
- switch( QMessageBox::information( this, tr("Qt Application Example"),
+ switch( TQMessageBox::information( this, tr("Qt 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( QCloseEvent* ce )
void %{APPNAME}::about()
{
- QMessageBox::about( this, tr("Qt Application Example"),
+ TQMessageBox::about( this, tr("Qt Application Example"),
tr("This example demonstrates simple use of "
- "QMainWindow,\nQMenuBar and QToolBar."));
+ "TQMainWindow,\nQMenuBar and TQToolBar."));
}
void %{APPNAME}::aboutQt()
{
- QMessageBox::aboutQt( this, tr("Qt Application Example") );
+ TQMessageBox::aboutQt( this, tr("Qt Application Example") );
}
diff --git a/languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.h b/languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.h
index 2d372da9..48bf459a 100644
--- a/languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.h
+++ b/languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.h
@@ -3,7 +3,7 @@
#ifndef %{APPNAMEUC}_H
#define %{APPNAMEUC}_H
-#include <qmainwindow.h>
+#include <tqmainwindow.h>
class QTextEdit;
@@ -16,12 +16,12 @@ public:
~%{APPNAME}();
protected:
- void closeEvent( QCloseEvent* );
+ void closeEvent( TQCloseEvent* );
private slots:
void newDoc();
void choose();
- void load( const QString &fileName );
+ void load( const TQString &fileName );
void save();
void saveAs();
void print();
@@ -30,9 +30,9 @@ private slots:
void aboutQt();
private:
- QPrinter *printer;
- QTextEdit *e;
- QString filename;
+ TQPrinter *printer;
+ TQTextEdit *e;
+ TQString filename;
};
diff --git a/languages/cpp/app_templates/cmakeqt3app/main.cpp b/languages/cpp/app_templates/cmakeqt3app/main.cpp
index bd26f19a..8938adc5 100644
--- a/languages/cpp/app_templates/cmakeqt3app/main.cpp
+++ b/languages/cpp/app_templates/cmakeqt3app/main.cpp
@@ -1,13 +1,13 @@
%{CPP_TEMPLATE}
-#include <qapplication.h>
+#include <tqapplication.h>
#include "%{APPNAMELC}.h"
int main( int argc, char ** argv ) {
- QApplication a( argc, argv );
+ TQApplication a( argc, argv );
%{APPNAME} * mw = new %{APPNAME}();
mw->setCaption( "%{APPNAME}" );
mw->show();
- a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) );
+ a.connect( &a, TQT_SIGNAL(lastWindowClosed()), &a, TQT_SLOT(quit()) );
return a.exec();
}
diff --git a/languages/cpp/app_templates/dcopservice/dcopservice.cpp b/languages/cpp/app_templates/dcopservice/dcopservice.cpp
index a23da01b..32f32c65 100644
--- a/languages/cpp/app_templates/dcopservice/dcopservice.cpp
+++ b/languages/cpp/app_templates/dcopservice/dcopservice.cpp
@@ -7,7 +7,7 @@
%{APPNAME}::%{APPNAME}() : DCOPObject("serviceInterface")
{
kdDebug() << "Starting new service... " << endl;
- m_List = QStringList();
+ m_List = TQStringList();
}
%{APPNAME}::~%{APPNAME}()
@@ -15,25 +15,25 @@
kdDebug() << "Going away... " << endl;
}
-QString %{APPNAME}::string(int idx)
+TQString %{APPNAME}::string(int idx)
{
return *m_List.at(idx);
}
-QStringList %{APPNAME}::list()
+TQStringList %{APPNAME}::list()
{
return m_List;
}
-void %{APPNAME}::add(QString arg)
+void %{APPNAME}::add(TQString arg)
{
kdDebug() << "Adding " << arg << " to the list" << endl;
m_List << arg;
}
-bool %{APPNAME}::remove(QString arg)
+bool %{APPNAME}::remove(TQString arg)
{
- QStringList::Iterator it = m_List.find(arg);
+ TQStringList::Iterator it = m_List.find(arg);
if (it != m_List.end())
{
m_List.remove(it);
diff --git a/languages/cpp/app_templates/dcopservice/dcopservice.h b/languages/cpp/app_templates/dcopservice/dcopservice.h
index 4e9eda87..59aa3c28 100644
--- a/languages/cpp/app_templates/dcopservice/dcopservice.h
+++ b/languages/cpp/app_templates/dcopservice/dcopservice.h
@@ -3,8 +3,8 @@
#ifndef _%{APPNAME}_H
#define _%{APPNAME}_H
-#include <qstringlist.h>
-#include <qstring.h>
+#include <tqstringlist.h>
+#include <tqstring.h>
#include <dcopobject.h>
class %{APPNAME} : public DCOPObject
@@ -12,7 +12,7 @@ class %{APPNAME} : public DCOPObject
K_DCOP
private:
- QStringList m_List;
+ TQStringList m_List;
public:
%{APPNAME}();
@@ -20,13 +20,13 @@ class %{APPNAME} : public DCOPObject
~%{APPNAME}();
k_dcop:
- QString string(int);
+ TQString string(int);
- QStringList list();
+ TQStringList list();
- void add(QString);
+ void add(TQString);
- bool remove(QString);
+ bool remove(TQString);
bool exit();
diff --git a/languages/cpp/app_templates/kapp/app.cpp b/languages/cpp/app_templates/kapp/app.cpp
index 5460bba9..6388f452 100644
--- a/languages/cpp/app_templates/kapp/app.cpp
+++ b/languages/cpp/app_templates/kapp/app.cpp
@@ -3,10 +3,10 @@
#include "%{APPNAMELC}.h"
#include "pref.h"
-#include <qdragobject.h>
+#include <tqdragobject.h>
#include <kprinter.h>
-#include <qpainter.h>
-#include <qpaintdevicemetrics.h>
+#include <tqpainter.h>
+#include <tqpaintdevicemetrics.h>
#include <kglobal.h>
#include <klocale.h>
@@ -49,10 +49,10 @@
setupGUI();
// allow the view to change the statusbar and caption
- connect(m_view, SIGNAL(signalChangeStatusbar(const QString&)),
- this, SLOT(changeStatusbar(const QString&)));
- connect(m_view, SIGNAL(signalChangeCaption(const QString&)),
- this, SLOT(changeCaption(const QString&)));
+ connect(m_view, TQT_SIGNAL(signalChangeStatusbar(const TQString&)),
+ this, TQT_SLOT(changeStatusbar(const TQString&)));
+ connect(m_view, TQT_SIGNAL(signalChangeCaption(const TQString&)),
+ this, TQT_SLOT(changeCaption(const TQString&)));
}
@@ -62,7 +62,7 @@
void %{APPNAME}::load(const KURL& url)
{
- QString target;
+ TQString target;
// the below code is what you should normally do. in this
// example case, we want the url to our own. you probably
// want to use this code instead for your app
@@ -88,19 +88,19 @@ void %{APPNAME}::load(const KURL& url)
void %{APPNAME}::setupActions()
{
- KStdAction::openNew(this, SLOT(fileNew()), actionCollection());
- KStdAction::open(this, SLOT(fileOpen()), actionCollection());
- KStdAction::save(this, SLOT(fileSave()), actionCollection());
- KStdAction::saveAs(this, SLOT(fileSaveAs()), actionCollection());
- KStdAction::print(this, SLOT(filePrint()), actionCollection());
- KStdAction::quit(kapp, SLOT(quit()), actionCollection());
+ KStdAction::openNew(this, TQT_SLOT(fileNew()), actionCollection());
+ KStdAction::open(this, TQT_SLOT(fileOpen()), actionCollection());
+ KStdAction::save(this, TQT_SLOT(fileSave()), actionCollection());
+ KStdAction::saveAs(this, TQT_SLOT(fileSaveAs()), actionCollection());
+ KStdAction::print(this, TQT_SLOT(filePrint()), actionCollection());
+ KStdAction::quit(kapp, TQT_SLOT(quit()), actionCollection());
- KStdAction::preferences(this, SLOT(optionsPreferences()), actionCollection());
+ KStdAction::preferences(this, TQT_SLOT(optionsPreferences()), actionCollection());
// this doesn't do anything useful. it's just here to illustrate
// how to insert a custom menu and menu item
KAction *custom = new KAction(i18n("Cus&tom Menuitem"), 0,
- this, SLOT(optionsPreferences()),
+ this, TQT_SLOT(optionsPreferences()),
actionCollection(), "custom_action");
}
@@ -126,19 +126,19 @@ void %{APPNAME}::readProperties(KConfig *config)
// the app is being restored. read in here whatever you wrote
// in 'saveProperties'
- QString url = config->readPathEntry("lastURL");
+ TQString url = config->readPathEntry("lastURL");
if (!url.isEmpty())
m_view->openURL(KURL(url));
}
-void %{APPNAME}::dragEnterEvent(QDragEnterEvent *event)
+void %{APPNAME}::dragEnterEvent(TQDragEnterEvent *event)
{
// accept uri drops only
event->accept(KURLDrag::canDecode(event));
}
-void %{APPNAME}::dropEvent(QDropEvent *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*
@@ -173,10 +173,10 @@ void %{APPNAME}::fileOpen()
// button is clicked
/*
// this brings up the generic open dialog
- KURL url = KURLRequesterDlg::getURL(QString::null, this, i18n("Open Location") );
+ KURL url = KURLRequesterDlg::getURL(TQString::null, this, i18n("Open Location") );
*/
// standard filedialog
- KURL url = KFileDialog::getOpenURL(QString::null, QString::null, this, i18n("Open Location"));
+ KURL url = KFileDialog::getOpenURL(TQString::null, TQString::null, this, i18n("Open Location"));
if (!url.isEmpty())
m_view->openURL(url);
}
@@ -209,13 +209,13 @@ void %{APPNAME}::filePrint()
if (m_printer->setup(this))
{
// setup the printer. with Qt, you always "print" to a
- // QPainter.. whether the output medium is a pixmap, a screen,
+ // TQPainter.. whether the output medium is a pixmap, a screen,
// or paper
- QPainter p;
+ TQPainter p;
p.begin(m_printer);
// we let our view do the actual printing
- QPaintDeviceMetrics metrics(m_printer);
+ TQPaintDeviceMetrics metrics(m_printer);
m_view->print(&p, metrics.height(), metrics.width());
// and send the result to the printer
@@ -233,13 +233,13 @@ void %{APPNAME}::optionsPreferences()
}
}
-void %{APPNAME}::changeStatusbar(const QString& text)
+void %{APPNAME}::changeStatusbar(const TQString& text)
{
// display the text on the statusbar
statusBar()->message(text);
}
-void %{APPNAME}::changeCaption(const QString& text)
+void %{APPNAME}::changeCaption(const TQString& text)
{
// display the text on the caption
setCaption(text);
diff --git a/languages/cpp/app_templates/kapp/app.h b/languages/cpp/app_templates/kapp/app.h
index 45c65f4b..1c92feb8 100644
--- a/languages/cpp/app_templates/kapp/app.h
+++ b/languages/cpp/app_templates/kapp/app.h
@@ -46,8 +46,8 @@ protected:
/**
* Overridden virtuals for Qt drag 'n drop (XDND)
*/
- virtual void dragEnterEvent(QDragEnterEvent *event);
- virtual void dropEvent(QDropEvent *event);
+ virtual void dragEnterEvent(TQDragEnterEvent *event);
+ virtual void dropEvent(TQDropEvent *event);
protected:
/**
@@ -72,8 +72,8 @@ private slots:
void filePrint();
void optionsPreferences();
- void changeStatusbar(const QString& text);
- void changeCaption(const QString& text);
+ void changeStatusbar(const TQString& text);
+ void changeCaption(const TQString& text);
private:
void setupAccel();
diff --git a/languages/cpp/app_templates/kapp/app_client.cpp b/languages/cpp/app_templates/kapp/app_client.cpp
index 5c062077..ecde60fb 100644
--- a/languages/cpp/app_templates/kapp/app_client.cpp
+++ b/languages/cpp/app_templates/kapp/app_client.cpp
@@ -2,8 +2,8 @@
#include <kapplication.h>
#include <dcopclient.h>
-#include <qdatastream.h>
-#include <qstring.h>
+#include <tqdatastream.h>
+#include <tqstring.h>
int main(int argc, char **argv)
{
@@ -14,13 +14,13 @@ int main(int argc, char **argv)
client->attach();
// do a 'send' for now
- QByteArray data;
- QDataStream ds(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream ds(data, IO_WriteOnly);
if (argc > 1)
- ds << QString(argv[1]);
+ ds << TQString(argv[1]);
else
- ds << QString("http://www.kde.org");
- client->send("%{APPNAMELC}", "%{APPNAME}Iface", "openURL(QString)", data);
+ ds << TQString("http://www.kde.org");
+ client->send("%{APPNAMELC}", "%{APPNAME}Iface", "openURL(TQString)", data);
return app.exec();
}
diff --git a/languages/cpp/app_templates/kapp/appiface.h b/languages/cpp/app_templates/kapp/appiface.h
index 4a24ae7f..9fa7cd1b 100644
--- a/languages/cpp/app_templates/kapp/appiface.h
+++ b/languages/cpp/app_templates/kapp/appiface.h
@@ -11,7 +11,7 @@ class %{APPNAME}Iface : virtual public DCOPObject
public:
k_dcop:
- virtual void openURL(QString url) = 0;
+ virtual void openURL(TQString url) = 0;
};
#endif // _%{APPNAMEUC}IFACE_H_
diff --git a/languages/cpp/app_templates/kapp/appview.cpp b/languages/cpp/app_templates/kapp/appview.cpp
index a57adbf3..32afca2e 100644
--- a/languages/cpp/app_templates/kapp/appview.cpp
+++ b/languages/cpp/app_templates/kapp/appview.cpp
@@ -2,8 +2,8 @@
#include "%{APPNAMELC}view.h"
-#include <qpainter.h>
-#include <qlayout.h>
+#include <tqpainter.h>
+#include <tqlayout.h>
#include <kurl.h>
@@ -13,12 +13,12 @@
#include <krun.h>
#include <klocale.h>
-%{APPNAME}View::%{APPNAME}View(QWidget *parent)
- : QWidget(parent),
+%{APPNAME}View::%{APPNAME}View(TQWidget *parent)
+ : TQWidget(parent),
DCOPObject("%{APPNAME}Iface")
{
// setup our layout manager to automatically add our widgets
- QHBoxLayout *top_layout = new QHBoxLayout(this);
+ TQHBoxLayout *top_layout = new TQHBoxLayout(this);
top_layout->setAutoAdd(true);
// we want to look for all components that satisfy our needs. the
@@ -63,10 +63,10 @@
return;
}
- connect(m_html, SIGNAL(setWindowCaption(const QString&)),
- this, SLOT(slotSetTitle(const QString&)));
- connect(m_html, SIGNAL(setStatusBarText(const QString&)),
- this, SLOT(slotOnURL(const QString&)));
+ connect(m_html, TQT_SIGNAL(setWindowCaption(const TQString&)),
+ this, TQT_SLOT(slotSetTitle(const TQString&)));
+ connect(m_html, TQT_SIGNAL(setStatusBarText(const TQString&)),
+ this, TQT_SLOT(slotOnURL(const TQString&)));
}
@@ -74,18 +74,18 @@
{
}
-void %{APPNAME}View::print(QPainter *p, int height, int width)
+void %{APPNAME}View::print(TQPainter *p, int height, int width)
{
// do the actual printing, here
// p->drawText(etc..)
}
-QString %{APPNAME}View::currentURL()
+TQString %{APPNAME}View::currentURL()
{
return m_html->url().url();
}
-void %{APPNAME}View::openURL(QString url)
+void %{APPNAME}View::openURL(TQString url)
{
openURL(KURL(url));
}
@@ -95,12 +95,12 @@ void %{APPNAME}View::openURL(const KURL& url)
m_html->openURL(url);
}
-void %{APPNAME}View::slotOnURL(const QString& url)
+void %{APPNAME}View::slotOnURL(const TQString& url)
{
emit signalChangeStatusbar(url);
}
-void %{APPNAME}View::slotSetTitle(const QString& title)
+void %{APPNAME}View::slotSetTitle(const TQString& title)
{
emit signalChangeCaption(title);
}
diff --git a/languages/cpp/app_templates/kapp/appview.h b/languages/cpp/app_templates/kapp/appview.h
index ae0c6b6d..236749bc 100644
--- a/languages/cpp/app_templates/kapp/appview.h
+++ b/languages/cpp/app_templates/kapp/appview.h
@@ -3,7 +3,7 @@
#ifndef _%{APPNAMEUC}VIEW_H_
#define _%{APPNAMEUC}VIEW_H_
-#include <qwidget.h>
+#include <tqwidget.h>
#include <kparts/part.h>
#include <%{APPNAMELC}iface.h>
@@ -21,14 +21,14 @@ class KURL;
* @author %{AUTHOR} <%{EMAIL}>
* @version %{VERSION}
*/
-class %{APPNAME}View : public QWidget, public %{APPNAME}Iface
+class %{APPNAME}View : public TQWidget, public %{APPNAME}Iface
{
Q_OBJECT
public:
/**
* Default constructor
*/
- %{APPNAME}View(QWidget *parent);
+ %{APPNAME}View(TQWidget *parent);
/**
* Destructor
@@ -38,12 +38,12 @@ public:
/**
* Random 'get' function
*/
- QString currentURL();
+ TQString currentURL();
/**
* Random 'set' function accessed by DCOP
*/
- virtual void openURL(QString url);
+ virtual void openURL(TQString url);
/**
* Random 'set' function
@@ -53,22 +53,22 @@ public:
/**
* Print this view to any medium -- paper or not
*/
- void print(QPainter *, int height, int width);
+ void print(TQPainter *, int height, int width);
signals:
/**
* Use this signal to change the content of the statusbar
*/
- void signalChangeStatusbar(const QString& text);
+ void signalChangeStatusbar(const TQString& text);
/**
* Use this signal to change the content of the caption
*/
- void signalChangeCaption(const QString& text);
+ void signalChangeCaption(const TQString& text);
private slots:
- void slotOnURL(const QString& url);
- void slotSetTitle(const QString& title);
+ void slotOnURL(const TQString& url);
+ void slotSetTitle(const TQString& title);
private:
KParts::ReadOnlyPart *m_html;
diff --git a/languages/cpp/app_templates/kapp/pref.cpp b/languages/cpp/app_templates/kapp/pref.cpp
index ee647b1c..ff83190f 100644
--- a/languages/cpp/app_templates/kapp/pref.cpp
+++ b/languages/cpp/app_templates/kapp/pref.cpp
@@ -4,8 +4,8 @@
#include <klocale.h>
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
%{APPNAME}Preferences::%{APPNAME}Preferences()
: KDialogBase(TreeList, i18n("%{APPNAME} Preferences"),
@@ -14,7 +14,7 @@
// this is the base class for your preferences dialog. it is now
// a Treelist dialog.. but there are a number of other
// possibilities (including Tab, Swallow, and just Plain)
- QFrame *frame;
+ TQFrame *frame;
frame = addPage(i18n("First Page"), i18n("Page One Options"));
m_pageOne = new %{APPNAME}PrefPageOne(frame);
@@ -22,21 +22,21 @@
m_pageTwo = new %{APPNAME}PrefPageTwo(frame);
}
-%{APPNAME}PrefPageOne::%{APPNAME}PrefPageOne(QWidget *parent)
- : QFrame(parent)
+%{APPNAME}PrefPageOne::%{APPNAME}PrefPageOne(TQWidget *parent)
+ : TQFrame(parent)
{
- QHBoxLayout *layout = new QHBoxLayout(this);
+ TQHBoxLayout *layout = new TQHBoxLayout(this);
layout->setAutoAdd(true);
- new QLabel(i18n("Add something here"), this);
+ new TQLabel(i18n("Add something here"), this);
}
-%{APPNAME}PrefPageTwo::%{APPNAME}PrefPageTwo(QWidget *parent)
- : QFrame(parent)
+%{APPNAME}PrefPageTwo::%{APPNAME}PrefPageTwo(TQWidget *parent)
+ : TQFrame(parent)
{
- QHBoxLayout *layout = new QHBoxLayout(this);
+ TQHBoxLayout *layout = new TQHBoxLayout(this);
layout->setAutoAdd(true);
- new QLabel(i18n("Add something here"), this);
+ new TQLabel(i18n("Add something here"), this);
}
#include "pref.moc"
diff --git a/languages/cpp/app_templates/kapp/pref.h b/languages/cpp/app_templates/kapp/pref.h
index 11aec821..93859cfd 100644
--- a/languages/cpp/app_templates/kapp/pref.h
+++ b/languages/cpp/app_templates/kapp/pref.h
@@ -4,7 +4,7 @@
#define _%{APPNAMEUC}PREF_H_
#include <kdialogbase.h>
-#include <qframe.h>
+#include <tqframe.h>
class %{APPNAME}PrefPageOne;
class %{APPNAME}PrefPageTwo;
@@ -24,14 +24,14 @@ class %{APPNAME}PrefPageOne : public QFrame
{
Q_OBJECT
public:
- %{APPNAME}PrefPageOne(QWidget *parent = 0);
+ %{APPNAME}PrefPageOne(TQWidget *parent = 0);
};
class %{APPNAME}PrefPageTwo : public QFrame
{
Q_OBJECT
public:
- %{APPNAME}PrefPageTwo(QWidget *parent = 0);
+ %{APPNAME}PrefPageTwo(TQWidget *parent = 0);
};
#endif // _%{APPNAMEUC}PREF_H_
diff --git a/languages/cpp/app_templates/kateplugin/plugin_app.cpp b/languages/cpp/app_templates/kateplugin/plugin_app.cpp
index 9fd4a694..1a40df32 100644
--- a/languages/cpp/app_templates/kateplugin/plugin_app.cpp
+++ b/languages/cpp/app_templates/kateplugin/plugin_app.cpp
@@ -33,14 +33,14 @@ KatePluginFactory::~KatePluginFactory()
delete s_instance;
}
-QObject* KatePluginFactory::createObject( QObject* parent, const char* name, const char*, const QStringList & )
+TQObject* KatePluginFactory::createObject( TQObject* parent, const char* name, const char*, const TQStringList & )
{
return new KatePlugin%{APPNAME}( parent, name );
}
KInstance* KatePluginFactory::s_instance = 0L;
-KatePlugin%{APPNAME}::KatePlugin%{APPNAME}( QObject* parent, const char* name )
+KatePlugin%{APPNAME}::KatePlugin%{APPNAME}( TQObject* parent, const char* name )
: Kate::Plugin ( (Kate::Application*)parent, name )
{
}
@@ -55,7 +55,7 @@ void KatePlugin%{APPNAME}::addView(Kate::MainWindow *win)
PluginView *view = new PluginView ();
(void) new KAction ( i18n("Insert Hello World"), 0, this,
- SLOT( slotInsertHello() ), view->actionCollection(),
+ TQT_SLOT( slotInsertHello() ), view->actionCollection(),
"edit_insert_%{APPNAMELC}" );
view->setInstance (new KInstance("kate"));
diff --git a/languages/cpp/app_templates/kateplugin/plugin_app.h b/languages/cpp/app_templates/kateplugin/plugin_app.h
index 8cc5b237..879ff967 100644
--- a/languages/cpp/app_templates/kateplugin/plugin_app.h
+++ b/languages/cpp/app_templates/kateplugin/plugin_app.h
@@ -22,7 +22,7 @@ class KatePluginFactory : public KLibFactory
KatePluginFactory();
virtual ~KatePluginFactory();
- virtual QObject* createObject( QObject* parent = 0, const char* pname = 0, const char* name = "QObject", const QStringList &args = QStringList() );
+ virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0, const char* name = "TQObject", const TQStringList &args = TQStringList() );
private:
static KInstance* s_instance;
@@ -33,7 +33,7 @@ class KatePlugin%{APPNAME} : public Kate::Plugin, Kate::PluginViewInterface
Q_OBJECT
public:
- KatePlugin%{APPNAME}( QObject* parent = 0, const char* name = 0 );
+ KatePlugin%{APPNAME}( TQObject* parent = 0, const char* name = 0 );
virtual ~KatePlugin%{APPNAME}();
void addView (Kate::MainWindow *win);
@@ -43,7 +43,7 @@ class KatePlugin%{APPNAME} : public Kate::Plugin, Kate::PluginViewInterface
void slotInsertHello();
private:
- QPtrList<class PluginView> m_views;
+ TQPtrList<class PluginView> m_views;
};
#endif // _PLUGIN_%{APPNAMEUC}_H_
diff --git a/languages/cpp/app_templates/kateplugin2/plugin_app.cpp b/languages/cpp/app_templates/kateplugin2/plugin_app.cpp
index 99d78eff..18595d10 100644
--- a/languages/cpp/app_templates/kateplugin2/plugin_app.cpp
+++ b/languages/cpp/app_templates/kateplugin2/plugin_app.cpp
@@ -7,8 +7,8 @@
#include <kstandarddirs.h>
#include <kfiledialog.h>
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
class PluginView : public KXMLGUIClient
{
@@ -37,14 +37,14 @@ KatePluginFactory::~KatePluginFactory()
delete s_instance;
}
-QObject* KatePluginFactory::createObject( QObject* parent, const char* name, const char*, const QStringList & )
+TQObject* KatePluginFactory::createObject( TQObject* parent, const char* name, const char*, const TQStringList & )
{
return new KatePlugin%{APPNAME}( parent, name );
}
KInstance* KatePluginFactory::s_instance = 0L;
-KatePlugin%{APPNAME}::KatePlugin%{APPNAME}( QObject* parent, const char* name )
+KatePlugin%{APPNAME}::KatePlugin%{APPNAME}( TQObject* parent, const char* name )
: Kate::Plugin ( (Kate::Application*)parent, name )
{
}
@@ -59,7 +59,7 @@ void KatePlugin%{APPNAME}::addView(Kate::MainWindow *win)
PluginView *view = new PluginView ();
(void) new KAction ( i18n("Insert Hello World"), 0, this,
- SLOT( slotInsertHello() ), view->actionCollection(),
+ TQT_SLOT( slotInsertHello() ), view->actionCollection(),
"edit_insert_%{APPNAMELC}" );
view->setInstance (new KInstance("kate"));
@@ -90,11 +90,11 @@ void KatePlugin%{APPNAME}::slotInsertHello()
kv->insertText ("Hello World");
}
-Kate::PluginConfigPage* KatePlugin%{APPNAME}::configPage (uint, QWidget *w, const char* name)
+Kate::PluginConfigPage* KatePlugin%{APPNAME}::configPage (uint, TQWidget *w, const char* name)
{
%{APPNAME}ConfigPage* p = new %{APPNAME}ConfigPage(this, w);
initConfigPage( p );
- connect( p, SIGNAL(configPageApplyRequest(%{APPNAME}ConfigPage*)), this, SLOT(slotApplyConfig(%{APPNAME}ConfigPage*)) );
+ connect( p, TQT_SIGNAL(configPageApplyRequest(%{APPNAME}ConfigPage*)), this, TQT_SLOT(slotApplyConfig(%{APPNAME}ConfigPage*)) );
return (Kate::PluginConfigPage*)p;
}
@@ -114,17 +114,17 @@ void KatePlugin%{APPNAME}::slotApplyConfig( %{APPNAME}ConfigPage* p )
/**
* %{APPNAME}ConfigPage
*/
-%{APPNAME}ConfigPage::%{APPNAME}ConfigPage (QObject* parent /*= 0L*/, QWidget *parentWidget /*= 0L*/)
+%{APPNAME}ConfigPage::%{APPNAME}ConfigPage (TQObject* parent /*= 0L*/, TQWidget *parentWidget /*= 0L*/)
: Kate::PluginConfigPage( parentWidget )
{
- QVBoxLayout* lo = new QVBoxLayout( this, 0, 0, "config_page_layout" );
+ TQVBoxLayout* lo = new TQVBoxLayout( this, 0, 0, "config_page_layout" );
lo->setSpacing(KDialogBase::spacingHint());
- QLabel* lab = new QLabel("KatePlugin%{APPNAME}'s config page", this);
+ TQLabel* lab = new TQLabel("KatePlugin%{APPNAME}'s config page", this);
lo->addWidget(lab);
- // TODO: add connection to emit SLOT( changed() )
+ // TODO: add connection to emit TQT_SLOT( changed() )
}
%{APPNAME}ConfigPage::~%{APPNAME}ConfigPage()
diff --git a/languages/cpp/app_templates/kateplugin2/plugin_app.h b/languages/cpp/app_templates/kateplugin2/plugin_app.h
index e4f97d00..6ad068d4 100644
--- a/languages/cpp/app_templates/kateplugin2/plugin_app.h
+++ b/languages/cpp/app_templates/kateplugin2/plugin_app.h
@@ -26,7 +26,7 @@ public:
KatePluginFactory();
virtual ~KatePluginFactory();
- virtual QObject* createObject( QObject* parent = 0, const char* pname = 0, const char* name = "QObject", const QStringList &args = QStringList() );
+ virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0, const char* name = "TQObject", const TQStringList &args = TQStringList() );
private:
static KInstance* s_instance;
@@ -37,7 +37,7 @@ class KatePlugin%{APPNAME} : public Kate::Plugin, Kate::PluginViewInterface, Kat
Q_OBJECT
public:
- KatePlugin%{APPNAME}( QObject* parent = 0, const char* name = 0 );
+ KatePlugin%{APPNAME}( TQObject* parent = 0, const char* name = 0 );
virtual ~KatePlugin%{APPNAME}();
void addView (Kate::MainWindow *win);
@@ -45,10 +45,10 @@ public:
/** overwrite some functions */
uint configPages () const { return 1; }
- Kate::PluginConfigPage *configPage (uint , QWidget *w, const char *name=0);
- QString configPageName(uint) const { return i18n("%{APPNAME}"); };
- QString configPageFullName(uint) const { return i18n("Configure KatePlugin%{APPNAME}"); };
- QPixmap configPagePixmap (uint number = 0, int size = KIcon::SizeSmall) const { return 0L; };
+ Kate::PluginConfigPage *configPage (uint , TQWidget *w, const char *name=0);
+ TQString configPageName(uint) const { return i18n("%{APPNAME}"); };
+ TQString configPageFullName(uint) const { return i18n("Configure KatePlugin%{APPNAME}"); };
+ TQPixmap configPagePixmap (uint number = 0, int size = KIcon::SizeSmall) const { return 0L; };
public slots:
void slotInsertHello();
@@ -58,7 +58,7 @@ private:
void initConfigPage( %{APPNAME}ConfigPage* );
private:
- QPtrList<class PluginView> m_views;
+ TQPtrList<class PluginView> m_views;
};
@@ -68,7 +68,7 @@ class %{APPNAME}ConfigPage : public Kate::PluginConfigPage
friend class KatePlugin%{APPNAME};
public:
- %{APPNAME}ConfigPage (QObject* parent = 0L, QWidget *parentWidget = 0L);
+ %{APPNAME}ConfigPage (TQObject* parent = 0L, TQWidget *parentWidget = 0L);
~%{APPNAME}ConfigPage ();
/** Reimplemented from Kate::PluginConfigPage; just emits configPageApplyRequest( this ). */
diff --git a/languages/cpp/app_templates/kcmodule/module.cpp b/languages/cpp/app_templates/kcmodule/module.cpp
index 69e87692..bb15b923 100644
--- a/languages/cpp/app_templates/kcmodule/module.cpp
+++ b/languages/cpp/app_templates/kcmodule/module.cpp
@@ -1,6 +1,6 @@
%{CPP_TEMPLATE}
-#include <qlayout.h>
+#include <tqlayout.h>
#include <klocale.h>
#include <kglobal.h>
@@ -8,10 +8,10 @@
#include "%{APPNAMELC}.h"
-typedef KGenericFactory<%{APPNAME}, QWidget> %{APPNAME}Factory;
+typedef KGenericFactory<%{APPNAME}, TQWidget> %{APPNAME}Factory;
K_EXPORT_COMPONENT_FACTORY( kcm_%{APPNAME}, %{APPNAME}Factory("kcm%{APPNAMELC}"))
-%{APPNAME}::%{APPNAME}(QWidget *parent, const char *name, const QStringList&)
+%{APPNAME}::%{APPNAME}(TQWidget *parent, const char *name, const TQStringList&)
: KCModule(parent, name), myAboutData(0)
{
// place widgets here
@@ -57,7 +57,7 @@ void %{APPNAME}::configChanged()
}
-QString %{APPNAME}::quickHelp() const
+TQString %{APPNAME}::quickHelp() const
{
return i18n("Helpful information about the %{APPNAMELC} module.");
}
diff --git a/languages/cpp/app_templates/kcmodule/module.h b/languages/cpp/app_templates/kcmodule/module.h
index cebf0f48..7f539c60 100644
--- a/languages/cpp/app_templates/kcmodule/module.h
+++ b/languages/cpp/app_templates/kcmodule/module.h
@@ -11,14 +11,14 @@ class %{APPNAME}: public KCModule
Q_OBJECT
public:
- %{APPNAME}( QWidget *parent=0, const char *name=0, const QStringList& = QStringList() );
+ %{APPNAME}( TQWidget *parent=0, const char *name=0, const TQStringList& = TQStringList() );
~%{APPNAME}();
virtual void load();
virtual void save();
virtual void defaults();
virtual int buttons();
- virtual QString quickHelp() const;
+ virtual TQString quickHelp() const;
virtual const KAboutData *aboutData()const
{ return myAboutData; };
diff --git a/languages/cpp/app_templates/kconfig35/app.cpp b/languages/cpp/app_templates/kconfig35/app.cpp
index e32e28b5..e18b4148 100644
--- a/languages/cpp/app_templates/kconfig35/app.cpp
+++ b/languages/cpp/app_templates/kconfig35/app.cpp
@@ -4,7 +4,7 @@
#include "settings.h"
#include "prefs.h"
-#include <qdragobject.h>
+#include <tqdragobject.h>
#include <kaction.h>
#include <kconfigdialog.h>
@@ -34,10 +34,10 @@
setAutoSaveSettings();
// allow the view to change the statusbar and caption
- connect(m_view, SIGNAL(signalChangeStatusbar(const QString&)),
- this, SLOT(changeStatusbar(const QString&)));
- connect(m_view, SIGNAL(signalChangeCaption(const QString&)),
- this, SLOT(changeCaption(const QString&)));
+ connect(m_view, TQT_SIGNAL(signalChangeStatusbar(const TQString&)),
+ this, TQT_SLOT(changeStatusbar(const TQString&)));
+ connect(m_view, TQT_SIGNAL(signalChangeCaption(const TQString&)),
+ this, TQT_SLOT(changeCaption(const TQString&)));
}
@@ -47,14 +47,14 @@
void %{APPNAMELC}::setupActions()
{
- KStdAction::openNew(this, SLOT(fileNew()), actionCollection());
- KStdAction::quit(kapp, SLOT(quit()), actionCollection());
+ KStdAction::openNew(this, TQT_SLOT(fileNew()), actionCollection());
+ KStdAction::quit(kapp, TQT_SLOT(quit()), actionCollection());
- KStdAction::preferences(this, SLOT(optionsPreferences()), actionCollection());
+ KStdAction::preferences(this, TQT_SLOT(optionsPreferences()), actionCollection());
// custom menu and menu item
KAction *custom = new KAction(i18n("Swi&tch Colors"), 0,
- m_view, SLOT(switchColors()),
+ m_view, TQT_SLOT(switchColors()),
actionCollection(), "switch_action");
setupGUI();
@@ -75,17 +75,17 @@ void %{APPNAMELC}::optionsPreferences()
// to the names of the variables in the .kcfg file
KConfigDialog *dialog = new KConfigDialog(this, "settings", Settings::self(), KDialogBase::Swallow);
dialog->addPage(new Prefs(), i18n("General"), "package_settings");
- connect(dialog, SIGNAL(settingsChanged()), m_view, SLOT(settingsChanged()));
+ connect(dialog, TQT_SIGNAL(settingsChanged()), m_view, TQT_SLOT(settingsChanged()));
dialog->show();
}
-void %{APPNAMELC}::changeCaption(const QString& text)
+void %{APPNAMELC}::changeCaption(const TQString& text)
{
// display the text on the caption
setCaption(text);
}
-void %{APPNAMELC}::changeStatusbar(const QString& text)
+void %{APPNAMELC}::changeStatusbar(const TQString& text)
{
// display the text on the statusbar
statusBar()->message(text);
diff --git a/languages/cpp/app_templates/kconfig35/app.h b/languages/cpp/app_templates/kconfig35/app.h
index abfd6c09..0174aa1b 100644
--- a/languages/cpp/app_templates/kconfig35/app.h
+++ b/languages/cpp/app_templates/kconfig35/app.h
@@ -43,8 +43,8 @@ private slots:
void optionsPreferences();
void newToolbarConfig();
- void changeStatusbar(const QString& text);
- void changeCaption(const QString& text);
+ void changeStatusbar(const TQString& text);
+ void changeCaption(const TQString& text);
private:
diff --git a/languages/cpp/app_templates/kconfig35/appview.cpp b/languages/cpp/app_templates/kconfig35/appview.cpp
index 35e23682..30d627fe 100644
--- a/languages/cpp/app_templates/kconfig35/appview.cpp
+++ b/languages/cpp/app_templates/kconfig35/appview.cpp
@@ -4,9 +4,9 @@
#include "settings.h"
#include <klocale.h>
-#include <qlabel.h>
+#include <tqlabel.h>
-%{APPNAMELC}View::%{APPNAMELC}View(QWidget *parent)
+%{APPNAMELC}View::%{APPNAMELC}View(TQWidget *parent)
: %{APPNAMELC}view_base(parent)
{
settingsChanged();
@@ -20,7 +20,7 @@
void %{APPNAMELC}View::switchColors()
{
// switch the foreground/background colors of the label
- QColor color = Settings::col_background();
+ TQColor color = Settings::col_background();
Settings::setCol_background( Settings::col_foreground() );
Settings::setCol_foreground( color );
diff --git a/languages/cpp/app_templates/kconfig35/appview.h b/languages/cpp/app_templates/kconfig35/appview.h
index 45a10de7..5b69ae24 100644
--- a/languages/cpp/app_templates/kconfig35/appview.h
+++ b/languages/cpp/app_templates/kconfig35/appview.h
@@ -3,7 +3,7 @@
#ifndef _%{APPNAMEUC}VIEW_H_
#define _%{APPNAMEUC}VIEW_H_
-#include <qwidget.h>
+#include <tqwidget.h>
#include "%{APPNAMELC}view_base.h"
@@ -26,7 +26,7 @@ public:
/**
* Default constructor
*/
- %{APPNAMELC}View(QWidget *parent);
+ %{APPNAMELC}View(TQWidget *parent);
/**
* Destructor
@@ -37,12 +37,12 @@ signals:
/**
* Use this signal to change the content of the statusbar
*/
- void signalChangeStatusbar(const QString& text);
+ void signalChangeStatusbar(const TQString& text);
/**
* Use this signal to change the content of the caption
*/
- void signalChangeCaption(const QString& text);
+ void signalChangeCaption(const TQString& text);
private slots:
void switchColors();
diff --git a/languages/cpp/app_templates/kde4app/kapp4.cpp b/languages/cpp/app_templates/kde4app/kapp4.cpp
index c11a58d1..b8849a58 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/QDropEvent>
-#include <QtGui/QPainter>
+#include <QtGui/TQDropEvent>
+#include <QtGui/TQPainter>
#include <kconfigdialog.h>
#include <kstatusbar.h>
@@ -47,15 +47,15 @@
void %{APPNAME}::setupActions()
{
- KStandardAction::openNew(this, SLOT(fileNew()), actionCollection());
- KStandardAction::quit(qApp, SLOT(quit()), actionCollection());
+ KStandardAction::openNew(this, TQT_SLOT(fileNew()), actionCollection());
+ KStandardAction::quit(qApp, TQT_SLOT(quit()), actionCollection());
- KStandardAction::preferences(this, SLOT(optionsPreferences()), 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 );
- connect(custom, SIGNAL(triggered(bool)), m_view, SLOT(switchColors()));
+ connect(custom, TQT_SIGNAL(triggered(bool)), m_view, TQT_SLOT(switchColors()));
}
void %{APPNAME}::fileNew()
@@ -79,10 +79,10 @@ void %{APPNAME}::optionsPreferences()
return;
}
KConfigDialog *dialog = new KConfigDialog(this, "settings", Settings::self());
- QWidget *generalSettingsDlg = new QWidget;
+ TQWidget *generalSettingsDlg = new QWidget;
ui_prefs_base.setupUi(generalSettingsDlg);
dialog->addPage(generalSettingsDlg, i18n("General"), "package_setting");
- connect(dialog, SIGNAL(settingsChanged(QString)), m_view, SLOT(settingsChanged()));
+ connect(dialog, TQT_SIGNAL(settingsChanged(TQString)), m_view, TQT_SLOT(settingsChanged()));
dialog->setAttribute( Qt::WA_DeleteOnClose );
dialog->show();
}
diff --git a/languages/cpp/app_templates/kde4app/kapp4view.cpp b/languages/cpp/app_templates/kde4app/kapp4view.cpp
index 256f6bcb..785a6858 100644
--- a/languages/cpp/app_templates/kde4app/kapp4view.cpp
+++ b/languages/cpp/app_templates/kde4app/kapp4view.cpp
@@ -3,9 +3,9 @@
#include "settings.h"
#include <klocale.h>
-#include <QtGui/QLabel>
+#include <QtGui/TQLabel>
-%{APPNAME}View::%{APPNAME}View(QWidget *)
+%{APPNAME}View::%{APPNAME}View(TQWidget *)
{
ui_%{APPNAMELC}view_base.setupUi(this);
settingsChanged();
@@ -20,7 +20,7 @@
void %{APPNAME}View::switchColors()
{
// switch the foreground/background colors of the label
- QColor color = Settings::col_background();
+ TQColor color = Settings::col_background();
Settings::setCol_background( Settings::col_foreground() );
Settings::setCol_foreground( color );
@@ -29,9 +29,9 @@ void %{APPNAME}View::switchColors()
void %{APPNAME}View::settingsChanged()
{
- QPalette pal;
- pal.setColor( QPalette::Window, Settings::col_background());
- pal.setColor( QPalette::WindowText, Settings::col_foreground());
+ TQPalette pal;
+ pal.setColor( TQPalette::Window, Settings::col_background());
+ pal.setColor( TQPalette::WindowText, Settings::col_foreground());
ui_%{APPNAMELC}view_base.kcfg_sillyLabel->setPalette( pal );
// i18n : internationalization
diff --git a/languages/cpp/app_templates/kde4app/kapp4view.h b/languages/cpp/app_templates/kde4app/kapp4view.h
index ab08445f..9572b914 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/QWidget>
+#include <QtGui/TQWidget>
#include "ui_%{APPNAMELC}view_base.h"
@@ -19,14 +19,14 @@ class KUrl;
* @version %{VERSION}
*/
-class %{APPNAME}View : public QWidget, public Ui::%{APPNAMELC}view_base
+class %{APPNAME}View : public TQWidget, public Ui::%{APPNAMELC}view_base
{
Q_OBJECT
public:
/**
* Default constructor
*/
- %{APPNAME}View(QWidget *parent);
+ %{APPNAME}View(TQWidget *parent);
/**
* Destructor
@@ -40,12 +40,12 @@ signals:
/**
* Use this signal to change the content of the statusbar
*/
- void signalChangeStatusbar(const QString& text);
+ void signalChangeStatusbar(const TQString& text);
/**
* Use this signal to change the content of the caption
*/
- void signalChangeCaption(const QString& text);
+ void signalChangeCaption(const TQString& text);
private slots:
void switchColors();
diff --git a/languages/cpp/app_templates/kdedcop/app.cpp b/languages/cpp/app_templates/kdedcop/app.cpp
index e295253a..e4fa554f 100644
--- a/languages/cpp/app_templates/kdedcop/app.cpp
+++ b/languages/cpp/app_templates/kdedcop/app.cpp
@@ -2,7 +2,7 @@
#include "%{APPNAMELC}.h"
-#include <qlabel.h>
+#include <tqlabel.h>
#include <kmainwindow.h>
#include <klocale.h>
diff --git a/languages/cpp/app_templates/kdedcop/app_iface.h b/languages/cpp/app_templates/kdedcop/app_iface.h
index 57bfb059..7049c712 100644
--- a/languages/cpp/app_templates/kdedcop/app_iface.h
+++ b/languages/cpp/app_templates/kdedcop/app_iface.h
@@ -10,10 +10,10 @@ class DCOPDemoIface : virtual public DCOPObject
// Here you should place your DCOP interface.
// Below are four example methods.
- virtual QString strVal() const = 0;
+ virtual TQString strVal() const = 0;
virtual int intVal() const = 0;
virtual void setIntVal( int num ) = 0;
- virtual void setStrVal( const QString &str ) = 0;
+ virtual void setStrVal( const TQString &str ) = 0;
};
diff --git a/languages/cpp/app_templates/kdedcop/mainclass.cpp b/languages/cpp/app_templates/kdedcop/mainclass.cpp
index 8f334114..a5e0d6a5 100644
--- a/languages/cpp/app_templates/kdedcop/mainclass.cpp
+++ b/languages/cpp/app_templates/kdedcop/mainclass.cpp
@@ -14,7 +14,7 @@ MainClass::~MainClass()
{
}
-void MainClass::setStrVal(const QString & str) {
+void MainClass::setStrVal(const TQString & str) {
m_strValue = str;
}
@@ -22,7 +22,7 @@ void MainClass::setIntVal(int val) {
m_intValue = val;
}
-QString MainClass::strVal() const {
+TQString MainClass::strVal() const {
return m_strValue;
}
diff --git a/languages/cpp/app_templates/kdedcop/mainclass.h b/languages/cpp/app_templates/kdedcop/mainclass.h
index ca37f2ad..13504f82 100644
--- a/languages/cpp/app_templates/kdedcop/mainclass.h
+++ b/languages/cpp/app_templates/kdedcop/mainclass.h
@@ -18,13 +18,13 @@ public:
// Here is the implementation of the example DCOP interface methods.
- virtual void setStrVal(const QString &);
+ virtual void setStrVal(const TQString &);
virtual void setIntVal(int);
- virtual QString strVal() const;
+ virtual TQString strVal() const;
virtual int intVal() const;
private:
- QString m_strValue;
+ TQString m_strValue;
int m_intValue;
};
diff --git a/languages/cpp/app_templates/kdevlang/kdevlang_part.cpp b/languages/cpp/app_templates/kdevlang/kdevlang_part.cpp
index 9d5cadcf..364ec0d7 100644
--- a/languages/cpp/app_templates/kdevlang/kdevlang_part.cpp
+++ b/languages/cpp/app_templates/kdevlang/kdevlang_part.cpp
@@ -1,7 +1,7 @@
%{CPP_TEMPLATE}
-#include <qwhatsthis.h>
-#include <qtimer.h>
+#include <tqwhatsthis.h>
+#include <tqtimer.h>
#include <kiconloader.h>
#include <klocale.h>
@@ -21,24 +21,24 @@ 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(QObject *parent, const char *name, const QStringList& )
+%{APPNAME}Part::%{APPNAME}Part(TQObject *parent, const char *name, const TQStringList& )
: KDevLanguageSupport(&data, parent, name ? name : "%{APPNAME}Part" )
{
setInstance(%{APPNAME}Factory::instance());
setXMLFile("kdevlang_%{APPNAMELC}.rc");
- m_build = new KAction( i18n("&Run"), "exec",Key_F9,this, SLOT(slotRun()),actionCollection(), "build_execute" );
+ m_build = new KAction( i18n("&Run"), "exec",Key_F9,this, TQT_SLOT(slotRun()),actionCollection(), "build_execute" );
kdDebug() << "Creating %{APPNAMELC} Part" << endl;
- connect( core(), SIGNAL(projectConfigWidget(KDialogBase*)),
- this, SLOT(projectConfigWidget(KDialogBase*)) );
- connect( core(), SIGNAL(projectOpened()), this, SLOT(projectOpened()) );
- connect( core(), SIGNAL(projectClosed()), this, SLOT(projectClosed()) );
- connect( partController(), SIGNAL(savedFile(const KURL&)), this, SLOT(savedFile(const KURL&)) );
- connect(partController(), SIGNAL(activePartChanged(KParts::Part*)),
- this, SLOT(slotActivePartChanged(KParts::Part *)));
+ connect( core(), TQT_SIGNAL(projectConfigWidget(KDialogBase*)),
+ this, TQT_SLOT(projectConfigWidget(KDialogBase*)) );
+ connect( core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(projectOpened()) );
+ connect( core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(projectClosed()) );
+ connect( partController(), TQT_SIGNAL(savedFile(const KURL&)), this, TQT_SLOT(savedFile(const KURL&)) );
+ connect(partController(), TQT_SIGNAL(activePartChanged(KParts::Part*)),
+ this, TQT_SLOT(slotActivePartChanged(KParts::Part *)));
}
@@ -74,14 +74,14 @@ void %{APPNAME}Part::projectOpened()
{
kdDebug(9014) << "projectOpened()" << endl;
- connect( project(), SIGNAL(addedFilesToProject(const QStringList &)),
- this, SLOT(addedFilesToProject(const QStringList &)) );
- connect( project(), SIGNAL(removedFilesFromProject(const QStringList &)),
- this, SLOT(removedFilesFromProject(const QStringList &)) );
+ connect( project(), TQT_SIGNAL(addedFilesToProject(const TQStringList &)),
+ this, TQT_SLOT(addedFilesToProject(const TQStringList &)) );
+ connect( project(), TQT_SIGNAL(removedFilesFromProject(const TQStringList &)),
+ this, TQT_SLOT(removedFilesFromProject(const TQStringList &)) );
// We want to parse only after all components have been
// properly initialized
- QTimer::singleShot(0, this, SLOT(parse()));
+ TQTimer::singleShot(0, this, TQT_SLOT(parse()));
}
void %{APPNAME}Part::projectClosed()
{
@@ -97,11 +97,11 @@ void %{APPNAME}Part::savedFile(const KURL &fileName)
emit addedSourceInfo( fileName.path() );
}
}
-void %{APPNAME}Part::addedFilesToProject(const QStringList &fileList)
+void %{APPNAME}Part::addedFilesToProject(const TQStringList &fileList)
{
kdDebug(9014) << "addedFilesToProject()" << endl;
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = fileList.begin(); it != fileList.end(); ++it )
{
@@ -110,15 +110,15 @@ void %{APPNAME}Part::addedFilesToProject(const QStringList &fileList)
emit updatedSourceInfo();
}
-void %{APPNAME}Part::removedFilesFromProject(const QStringList &fileList)
+void %{APPNAME}Part::removedFilesFromProject(const TQStringList &fileList)
{
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = fileList.begin(); it != fileList.end(); ++it )
{
- QString fileName = project()->projectDirectory() + "/" + ( *it );
+ TQString fileName = project()->projectDirectory() + "/" + ( *it );
if( codeModel()->hasFile(fileName) )
{
kdDebug(9014) << "removed " << fileName << endl;
@@ -135,8 +135,8 @@ void %{APPNAME}Part::parse()
if (project())
{
kapp->setOverrideCursor(waitCursor);
- QStringList files = project()->allFiles();
- for (QStringList::Iterator it = files.begin(); it != files.end() ;++it)
+ TQStringList files = project()->allFiles();
+ for (TQStringList::Iterator it = files.begin(); it != files.end() ;++it)
{
kdDebug(9014) << "maybe parse " << project()->projectDirectory() + "/" + (*it) << endl;
}
diff --git a/languages/cpp/app_templates/kdevlang/kdevlang_part.h b/languages/cpp/app_templates/kdevlang/kdevlang_part.h
index 25721d64..d6d92ff6 100644
--- a/languages/cpp/app_templates/kdevlang/kdevlang_part.h
+++ b/languages/cpp/app_templates/kdevlang/kdevlang_part.h
@@ -7,7 +7,7 @@
#include <kdevplugin.h>
#include <codemodel.h>
#include <kdevlanguagesupport.h>
-#include <qstringlist.h>
+#include <tqstringlist.h>
#include <kdialogbase.h>
class KAction;
@@ -19,7 +19,7 @@ class %{APPNAME}Part : public KDevLanguageSupport
{
Q_OBJECT
public:
- %{APPNAME}Part(QObject *parent, const char *name, const QStringList &);
+ %{APPNAME}Part(TQObject *parent, const char *name, const TQStringList &);
~%{APPNAME}Part();
protected:
virtual Features features();
@@ -31,8 +31,8 @@ class %{APPNAME}Part : public KDevLanguageSupport
void projectOpened();
void projectClosed();
void savedFile(const KURL &fileName);
- void addedFilesToProject(const QStringList &fileList);
- void removedFilesFromProject(const QStringList &fileList);
+ void addedFilesToProject(const TQStringList &fileList);
+ void removedFilesFromProject(const TQStringList &fileList);
void parse();
void slotActivePartChanged(KParts::Part *part);
private:
diff --git a/languages/cpp/app_templates/kdevpart/globalconfig.cpp b/languages/cpp/app_templates/kdevpart/globalconfig.cpp
index 12396fec..cddf3e7e 100644
--- a/languages/cpp/app_templates/kdevpart/globalconfig.cpp
+++ b/languages/cpp/app_templates/kdevpart/globalconfig.cpp
@@ -3,7 +3,7 @@
#include "%{APPNAMELC}part.h"
-%{APPNAME}GlobalConfig::%{APPNAME}GlobalConfig(%{APPNAME}Part *part, QWidget *parent, const char *name)
+%{APPNAME}GlobalConfig::%{APPNAME}GlobalConfig(%{APPNAME}Part *part, TQWidget *parent, const char *name)
: %{APPNAME}GlobalConfigBase(parent, name), m_part(part)
{
}
diff --git a/languages/cpp/app_templates/kdevpart/globalconfig.h b/languages/cpp/app_templates/kdevpart/globalconfig.h
index 1b321cd2..aea1cbea 100644
--- a/languages/cpp/app_templates/kdevpart/globalconfig.h
+++ b/languages/cpp/app_templates/kdevpart/globalconfig.h
@@ -10,7 +10,7 @@ class %{APPNAME}GlobalConfig: public %{APPNAME}GlobalConfigBase
{
Q_OBJECT
public:
- %{APPNAME}GlobalConfig(%{APPNAME}Part *part, QWidget *parent = 0, const char *name = 0);
+ %{APPNAME}GlobalConfig(%{APPNAME}Part *part, TQWidget *parent = 0, const char *name = 0);
public slots:
void accept();
diff --git a/languages/cpp/app_templates/kdevpart/kdevpart_part.cpp b/languages/cpp/app_templates/kdevpart/kdevpart_part.cpp
index dd86843d..082549c4 100644
--- a/languages/cpp/app_templates/kdevpart/kdevpart_part.cpp
+++ b/languages/cpp/app_templates/kdevpart/kdevpart_part.cpp
@@ -1,9 +1,9 @@
%{CPP_TEMPLATE}
#include "%{APPNAMELC}part.h"
-#include <qtimer.h>
-#include <qpopupmenu.h>
-#include <qwhatsthis.h>
+#include <tqtimer.h>
+#include <tqpopupmenu.h>
+#include <tqwhatsthis.h>
#include <klocale.h>
#include <kaction.h>
@@ -28,7 +28,7 @@ K_EXPORT_COMPONENT_FACTORY( libkdev%{APPNAMELC}, %{APPNAME}Factory( data ) );
#define GLOBALDOC_OPTIONS 1
#define PROJECTDOC_OPTIONS 2
-%{APPNAME}Part::%{APPNAME}Part(QObject *parent, const char *name, const QStringList &/*args*/)
+%{APPNAME}Part::%{APPNAME}Part(TQObject *parent, const char *name, const TQStringList &/*args*/)
: KDevPlugin(&data, parent, name ? name : "%{APPNAME}Part")
{
setInstance(%{APPNAME}Factory::instance());
@@ -38,7 +38,7 @@ K_EXPORT_COMPONENT_FACTORY( libkdev%{APPNAMELC}, %{APPNAME}Factory( data ) );
m_widget->setCaption("widget caption");
m_widget->setIcon(SmallIcon(info()->icon()));
- QWhatsThis::add(m_widget, i18n("WHAT DOES THIS PART DO?"));
+ TQWhatsThis::add(m_widget, i18n("WHAT DOES THIS PART DO?"));
// now you decide what should happen to the widget. Take a look at kdevcore.h
// or at other plugins how to embed it.
@@ -60,16 +60,16 @@ K_EXPORT_COMPONENT_FACTORY( libkdev%{APPNAMELC}, %{APPNAME}Factory( data ) );
m_configProxy = new ConfigWidgetProxy(core());
m_configProxy->createGlobalConfigPage(i18n("%{APPNAME}"), GLOBALDOC_OPTIONS, info()->icon());
m_configProxy->createProjectConfigPage(i18n("%{APPNAME}"), PROJECTDOC_OPTIONS, info()->icon());
- connect(m_configProxy, SIGNAL(insertConfigWidget(const KDialogBase*, QWidget*, unsigned int )),
- this, SLOT(insertConfigWidget(const KDialogBase*, QWidget*, unsigned int)));
+ connect(m_configProxy, TQT_SIGNAL(insertConfigWidget(const KDialogBase*, TQWidget*, unsigned int )),
+ this, TQT_SLOT(insertConfigWidget(const KDialogBase*, TQWidget*, unsigned int)));
- connect(core(), SIGNAL(contextMenu(QPopupMenu *, const Context *)),
- this, SLOT(contextMenu(QPopupMenu *, const Context *)));
- connect(core(), SIGNAL(projectOpened()), this, SLOT(projectOpened()));
- connect(core(), SIGNAL(projectClosed()), this, SLOT(projectClosed()));
+ connect(core(), TQT_SIGNAL(contextMenu(TQPopupMenu *, const Context *)),
+ this, TQT_SLOT(contextMenu(TQPopupMenu *, const Context *)));
+ connect(core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(projectOpened()));
+ connect(core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(projectClosed()));
- QTimer::singleShot(0, this, SLOT(init()));
+ TQTimer::singleShot(0, this, TQT_SLOT(init()));
}
%{APPNAME}Part::~%{APPNAME}Part()
@@ -92,12 +92,12 @@ void %{APPNAME}Part::setupActions()
{
// create XMLGUI actions here
action = new KAction(i18n("&Do Something..."), 0,
- this, SLOT(doSomething()), actionCollection(), "plugin_action" );
+ this, TQT_SLOT(doSomething()), actionCollection(), "plugin_action" );
action->setToolTip(i18n("Do something"));
action->setWhatsThis(i18n("<b>Do something</b><p>Describe here what does this action do."));
}
-void %{APPNAME}Part::insertConfigWidget(const KDialogBase *dlg, QWidget *page, unsigned int pageNo)
+void %{APPNAME}Part::insertConfigWidget(const KDialogBase *dlg, TQWidget *page, unsigned int pageNo)
{
// create configuraton dialogs here
switch (pageNo)
@@ -105,19 +105,19 @@ void %{APPNAME}Part::insertConfigWidget(const KDialogBase *dlg, QWidget *page, u
case GLOBALDOC_OPTIONS:
{
%{APPNAME}GlobalConfig *w = new %{APPNAME}GlobalConfig(this, page, "global config");
- connect(dlg, SIGNAL(okClicked()), w, SLOT(accept()));
+ connect(dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()));
break;
}
case PROJECTDOC_OPTIONS:
{
%{APPNAME}ProjectConfig *w = new %{APPNAME}ProjectConfig(this, page, "project config");
- connect(dlg, SIGNAL(okClicked()), w, SLOT(accept()));
+ connect(dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()));
break;
}
}
}
-void %{APPNAME}Part::contextMenu(QPopupMenu *popup, const Context *context)
+void %{APPNAME}Part::contextMenu(TQPopupMenu *popup, const Context *context)
{
// put actions into the context menu here
if (context->hasType(Context::EditorContext))
@@ -131,7 +131,7 @@ void %{APPNAME}Part::contextMenu(QPopupMenu *popup, const Context *context)
// or create menu items on the fly
// int id = -1;
// id = popup->insertItem(i18n("Do Something Here"),
- // this, SLOT(doSomething()) );
+ // this, TQT_SLOT(doSomething()) );
// popup->setWhatsThis(id, i18n("<b>Do something here</b><p>Describe here what does this action do."
}
else if (context->hasType(Context::FileContext))
diff --git a/languages/cpp/app_templates/kdevpart/kdevpart_part.h b/languages/cpp/app_templates/kdevpart/kdevpart_part.h
index 168b8a40..246e539d 100644
--- a/languages/cpp/app_templates/kdevpart/kdevpart_part.h
+++ b/languages/cpp/app_templates/kdevpart/kdevpart_part.h
@@ -4,7 +4,7 @@
#include <kdevplugin.h>
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
class QPopupMenu;
class KAction;
@@ -20,14 +20,14 @@ class %{APPNAME}Part: public KDevPlugin
{
Q_OBJECT
public:
- %{APPNAME}Part(QObject *parent, const char *name, const QStringList &args);
+ %{APPNAME}Part(TQObject *parent, const char *name, const TQStringList &args);
~%{APPNAME}Part();
private slots:
void init();
- void insertConfigWidget(const KDialogBase *dlg, QWidget *page, unsigned int pageNo);
- void contextMenu(QPopupMenu *popup, const Context *context);
+ void insertConfigWidget(const KDialogBase *dlg, TQWidget *page, unsigned int pageNo);
+ void contextMenu(TQPopupMenu *popup, const Context *context);
void projectOpened();
void projectClosed();
@@ -38,7 +38,7 @@ private:
KAction *action;
- QGuardedPtr<%{APPNAME}Widget> m_widget;
+ TQGuardedPtr<%{APPNAME}Widget> m_widget;
ConfigWidgetProxy *m_configProxy;
};
diff --git a/languages/cpp/app_templates/kdevpart/kdevpart_widget.cpp b/languages/cpp/app_templates/kdevpart/kdevpart_widget.cpp
index 0c05b976..1fe3558c 100644
--- a/languages/cpp/app_templates/kdevpart/kdevpart_widget.cpp
+++ b/languages/cpp/app_templates/kdevpart/kdevpart_widget.cpp
@@ -10,7 +10,7 @@
#include "%{APPNAMELC}part.h"
%{APPNAME}Widget::%{APPNAME}Widget(%{APPNAME}Part *part)
- : QWidget(0, "%{APPNAMELC} widget"), m_part(part)
+ : TQWidget(0, "%{APPNAMELC} widget"), m_part(part)
{
}
diff --git a/languages/cpp/app_templates/kdevpart/kdevpart_widget.h b/languages/cpp/app_templates/kdevpart/kdevpart_widget.h
index e29e29d2..308c3e7e 100644
--- a/languages/cpp/app_templates/kdevpart/kdevpart_widget.h
+++ b/languages/cpp/app_templates/kdevpart/kdevpart_widget.h
@@ -2,8 +2,8 @@
#ifndef %{APPNAMEUC}_WIDGET_H
#define %{APPNAMEUC}_WIDGET_H
-#include <qwidget.h>
-#include <qstring.h>
+#include <tqwidget.h>
+#include <tqstring.h>
class KDevProject;
class %{APPNAME}Part;
diff --git a/languages/cpp/app_templates/kdevpart/projectconfig.cpp b/languages/cpp/app_templates/kdevpart/projectconfig.cpp
index 5f07993b..42a9f3e7 100644
--- a/languages/cpp/app_templates/kdevpart/projectconfig.cpp
+++ b/languages/cpp/app_templates/kdevpart/projectconfig.cpp
@@ -3,7 +3,7 @@
#include "%{APPNAMELC}part.h"
-%{APPNAME}ProjectConfig::%{APPNAME}ProjectConfig(%{APPNAME}Part *part, QWidget *parent, const char *name)
+%{APPNAME}ProjectConfig::%{APPNAME}ProjectConfig(%{APPNAME}Part *part, TQWidget *parent, const char *name)
: %{APPNAME}ProjectConfigBase(parent, name), m_part(part)
{
}
diff --git a/languages/cpp/app_templates/kdevpart/projectconfig.h b/languages/cpp/app_templates/kdevpart/projectconfig.h
index ec3ff4df..0ab0cb35 100644
--- a/languages/cpp/app_templates/kdevpart/projectconfig.h
+++ b/languages/cpp/app_templates/kdevpart/projectconfig.h
@@ -10,7 +10,7 @@ class %{APPNAME}ProjectConfig: public %{APPNAME}ProjectConfigBase
{
Q_OBJECT
public:
- %{APPNAME}ProjectConfig(%{APPNAME}Part *part, QWidget *parent = 0, const char *name = 0);
+ %{APPNAME}ProjectConfig(%{APPNAME}Part *part, TQWidget *parent = 0, const char *name = 0);
public slots:
void accept();
diff --git a/languages/cpp/app_templates/kdevpart2/globalconfig.cpp b/languages/cpp/app_templates/kdevpart2/globalconfig.cpp
index 12396fec..cddf3e7e 100644
--- a/languages/cpp/app_templates/kdevpart2/globalconfig.cpp
+++ b/languages/cpp/app_templates/kdevpart2/globalconfig.cpp
@@ -3,7 +3,7 @@
#include "%{APPNAMELC}part.h"
-%{APPNAME}GlobalConfig::%{APPNAME}GlobalConfig(%{APPNAME}Part *part, QWidget *parent, const char *name)
+%{APPNAME}GlobalConfig::%{APPNAME}GlobalConfig(%{APPNAME}Part *part, TQWidget *parent, const char *name)
: %{APPNAME}GlobalConfigBase(parent, name), m_part(part)
{
}
diff --git a/languages/cpp/app_templates/kdevpart2/globalconfig.h b/languages/cpp/app_templates/kdevpart2/globalconfig.h
index 1b321cd2..aea1cbea 100644
--- a/languages/cpp/app_templates/kdevpart2/globalconfig.h
+++ b/languages/cpp/app_templates/kdevpart2/globalconfig.h
@@ -10,7 +10,7 @@ class %{APPNAME}GlobalConfig: public %{APPNAME}GlobalConfigBase
{
Q_OBJECT
public:
- %{APPNAME}GlobalConfig(%{APPNAME}Part *part, QWidget *parent = 0, const char *name = 0);
+ %{APPNAME}GlobalConfig(%{APPNAME}Part *part, TQWidget *parent = 0, const char *name = 0);
public slots:
void accept();
diff --git a/languages/cpp/app_templates/kdevpart2/kdevpart_part.cpp b/languages/cpp/app_templates/kdevpart2/kdevpart_part.cpp
index dd86843d..082549c4 100644
--- a/languages/cpp/app_templates/kdevpart2/kdevpart_part.cpp
+++ b/languages/cpp/app_templates/kdevpart2/kdevpart_part.cpp
@@ -1,9 +1,9 @@
%{CPP_TEMPLATE}
#include "%{APPNAMELC}part.h"
-#include <qtimer.h>
-#include <qpopupmenu.h>
-#include <qwhatsthis.h>
+#include <tqtimer.h>
+#include <tqpopupmenu.h>
+#include <tqwhatsthis.h>
#include <klocale.h>
#include <kaction.h>
@@ -28,7 +28,7 @@ K_EXPORT_COMPONENT_FACTORY( libkdev%{APPNAMELC}, %{APPNAME}Factory( data ) );
#define GLOBALDOC_OPTIONS 1
#define PROJECTDOC_OPTIONS 2
-%{APPNAME}Part::%{APPNAME}Part(QObject *parent, const char *name, const QStringList &/*args*/)
+%{APPNAME}Part::%{APPNAME}Part(TQObject *parent, const char *name, const TQStringList &/*args*/)
: KDevPlugin(&data, parent, name ? name : "%{APPNAME}Part")
{
setInstance(%{APPNAME}Factory::instance());
@@ -38,7 +38,7 @@ K_EXPORT_COMPONENT_FACTORY( libkdev%{APPNAMELC}, %{APPNAME}Factory( data ) );
m_widget->setCaption("widget caption");
m_widget->setIcon(SmallIcon(info()->icon()));
- QWhatsThis::add(m_widget, i18n("WHAT DOES THIS PART DO?"));
+ TQWhatsThis::add(m_widget, i18n("WHAT DOES THIS PART DO?"));
// now you decide what should happen to the widget. Take a look at kdevcore.h
// or at other plugins how to embed it.
@@ -60,16 +60,16 @@ K_EXPORT_COMPONENT_FACTORY( libkdev%{APPNAMELC}, %{APPNAME}Factory( data ) );
m_configProxy = new ConfigWidgetProxy(core());
m_configProxy->createGlobalConfigPage(i18n("%{APPNAME}"), GLOBALDOC_OPTIONS, info()->icon());
m_configProxy->createProjectConfigPage(i18n("%{APPNAME}"), PROJECTDOC_OPTIONS, info()->icon());
- connect(m_configProxy, SIGNAL(insertConfigWidget(const KDialogBase*, QWidget*, unsigned int )),
- this, SLOT(insertConfigWidget(const KDialogBase*, QWidget*, unsigned int)));
+ connect(m_configProxy, TQT_SIGNAL(insertConfigWidget(const KDialogBase*, TQWidget*, unsigned int )),
+ this, TQT_SLOT(insertConfigWidget(const KDialogBase*, TQWidget*, unsigned int)));
- connect(core(), SIGNAL(contextMenu(QPopupMenu *, const Context *)),
- this, SLOT(contextMenu(QPopupMenu *, const Context *)));
- connect(core(), SIGNAL(projectOpened()), this, SLOT(projectOpened()));
- connect(core(), SIGNAL(projectClosed()), this, SLOT(projectClosed()));
+ connect(core(), TQT_SIGNAL(contextMenu(TQPopupMenu *, const Context *)),
+ this, TQT_SLOT(contextMenu(TQPopupMenu *, const Context *)));
+ connect(core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(projectOpened()));
+ connect(core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(projectClosed()));
- QTimer::singleShot(0, this, SLOT(init()));
+ TQTimer::singleShot(0, this, TQT_SLOT(init()));
}
%{APPNAME}Part::~%{APPNAME}Part()
@@ -92,12 +92,12 @@ void %{APPNAME}Part::setupActions()
{
// create XMLGUI actions here
action = new KAction(i18n("&Do Something..."), 0,
- this, SLOT(doSomething()), actionCollection(), "plugin_action" );
+ this, TQT_SLOT(doSomething()), actionCollection(), "plugin_action" );
action->setToolTip(i18n("Do something"));
action->setWhatsThis(i18n("<b>Do something</b><p>Describe here what does this action do."));
}
-void %{APPNAME}Part::insertConfigWidget(const KDialogBase *dlg, QWidget *page, unsigned int pageNo)
+void %{APPNAME}Part::insertConfigWidget(const KDialogBase *dlg, TQWidget *page, unsigned int pageNo)
{
// create configuraton dialogs here
switch (pageNo)
@@ -105,19 +105,19 @@ void %{APPNAME}Part::insertConfigWidget(const KDialogBase *dlg, QWidget *page, u
case GLOBALDOC_OPTIONS:
{
%{APPNAME}GlobalConfig *w = new %{APPNAME}GlobalConfig(this, page, "global config");
- connect(dlg, SIGNAL(okClicked()), w, SLOT(accept()));
+ connect(dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()));
break;
}
case PROJECTDOC_OPTIONS:
{
%{APPNAME}ProjectConfig *w = new %{APPNAME}ProjectConfig(this, page, "project config");
- connect(dlg, SIGNAL(okClicked()), w, SLOT(accept()));
+ connect(dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()));
break;
}
}
}
-void %{APPNAME}Part::contextMenu(QPopupMenu *popup, const Context *context)
+void %{APPNAME}Part::contextMenu(TQPopupMenu *popup, const Context *context)
{
// put actions into the context menu here
if (context->hasType(Context::EditorContext))
@@ -131,7 +131,7 @@ void %{APPNAME}Part::contextMenu(QPopupMenu *popup, const Context *context)
// or create menu items on the fly
// int id = -1;
// id = popup->insertItem(i18n("Do Something Here"),
- // this, SLOT(doSomething()) );
+ // this, TQT_SLOT(doSomething()) );
// popup->setWhatsThis(id, i18n("<b>Do something here</b><p>Describe here what does this action do."
}
else if (context->hasType(Context::FileContext))
diff --git a/languages/cpp/app_templates/kdevpart2/kdevpart_part.h b/languages/cpp/app_templates/kdevpart2/kdevpart_part.h
index 168b8a40..246e539d 100644
--- a/languages/cpp/app_templates/kdevpart2/kdevpart_part.h
+++ b/languages/cpp/app_templates/kdevpart2/kdevpart_part.h
@@ -4,7 +4,7 @@
#include <kdevplugin.h>
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
class QPopupMenu;
class KAction;
@@ -20,14 +20,14 @@ class %{APPNAME}Part: public KDevPlugin
{
Q_OBJECT
public:
- %{APPNAME}Part(QObject *parent, const char *name, const QStringList &args);
+ %{APPNAME}Part(TQObject *parent, const char *name, const TQStringList &args);
~%{APPNAME}Part();
private slots:
void init();
- void insertConfigWidget(const KDialogBase *dlg, QWidget *page, unsigned int pageNo);
- void contextMenu(QPopupMenu *popup, const Context *context);
+ void insertConfigWidget(const KDialogBase *dlg, TQWidget *page, unsigned int pageNo);
+ void contextMenu(TQPopupMenu *popup, const Context *context);
void projectOpened();
void projectClosed();
@@ -38,7 +38,7 @@ private:
KAction *action;
- QGuardedPtr<%{APPNAME}Widget> m_widget;
+ TQGuardedPtr<%{APPNAME}Widget> m_widget;
ConfigWidgetProxy *m_configProxy;
};
diff --git a/languages/cpp/app_templates/kdevpart2/kdevpart_widget.cpp b/languages/cpp/app_templates/kdevpart2/kdevpart_widget.cpp
index 0c05b976..1fe3558c 100644
--- a/languages/cpp/app_templates/kdevpart2/kdevpart_widget.cpp
+++ b/languages/cpp/app_templates/kdevpart2/kdevpart_widget.cpp
@@ -10,7 +10,7 @@
#include "%{APPNAMELC}part.h"
%{APPNAME}Widget::%{APPNAME}Widget(%{APPNAME}Part *part)
- : QWidget(0, "%{APPNAMELC} widget"), m_part(part)
+ : TQWidget(0, "%{APPNAMELC} widget"), m_part(part)
{
}
diff --git a/languages/cpp/app_templates/kdevpart2/kdevpart_widget.h b/languages/cpp/app_templates/kdevpart2/kdevpart_widget.h
index e29e29d2..308c3e7e 100644
--- a/languages/cpp/app_templates/kdevpart2/kdevpart_widget.h
+++ b/languages/cpp/app_templates/kdevpart2/kdevpart_widget.h
@@ -2,8 +2,8 @@
#ifndef %{APPNAMEUC}_WIDGET_H
#define %{APPNAMEUC}_WIDGET_H
-#include <qwidget.h>
-#include <qstring.h>
+#include <tqwidget.h>
+#include <tqstring.h>
class KDevProject;
class %{APPNAME}Part;
diff --git a/languages/cpp/app_templates/kdevpart2/projectconfig.cpp b/languages/cpp/app_templates/kdevpart2/projectconfig.cpp
index 5f07993b..42a9f3e7 100644
--- a/languages/cpp/app_templates/kdevpart2/projectconfig.cpp
+++ b/languages/cpp/app_templates/kdevpart2/projectconfig.cpp
@@ -3,7 +3,7 @@
#include "%{APPNAMELC}part.h"
-%{APPNAME}ProjectConfig::%{APPNAME}ProjectConfig(%{APPNAME}Part *part, QWidget *parent, const char *name)
+%{APPNAME}ProjectConfig::%{APPNAME}ProjectConfig(%{APPNAME}Part *part, TQWidget *parent, const char *name)
: %{APPNAME}ProjectConfigBase(parent, name), m_part(part)
{
}
diff --git a/languages/cpp/app_templates/kdevpart2/projectconfig.h b/languages/cpp/app_templates/kdevpart2/projectconfig.h
index ec3ff4df..0ab0cb35 100644
--- a/languages/cpp/app_templates/kdevpart2/projectconfig.h
+++ b/languages/cpp/app_templates/kdevpart2/projectconfig.h
@@ -10,7 +10,7 @@ class %{APPNAME}ProjectConfig: public %{APPNAME}ProjectConfigBase
{
Q_OBJECT
public:
- %{APPNAME}ProjectConfig(%{APPNAME}Part *part, QWidget *parent = 0, const char *name = 0);
+ %{APPNAME}ProjectConfig(%{APPNAME}Part *part, TQWidget *parent = 0, const char *name = 0);
public slots:
void accept();
diff --git a/languages/cpp/app_templates/kfileplugin/kfile_plugin.cpp b/languages/cpp/app_templates/kfileplugin/kfile_plugin.cpp
index 3e6b849a..db259cb3 100644
--- a/languages/cpp/app_templates/kfileplugin/kfile_plugin.cpp
+++ b/languages/cpp/app_templates/kfileplugin/kfile_plugin.cpp
@@ -6,15 +6,15 @@
#include <kgenericfactory.h>
//#include <kio/global.h>
-//#include <qfileinfo.h>
-//#include <qdir.h>
+//#include <tqfileinfo.h>
+//#include <tqdir.h>
typedef KGenericFactory<%{APPNAME}Plugin> %{APPNAME}Factory;
K_EXPORT_COMPONENT_FACTORY(kfile_%{APPNAME}, %{APPNAME}Factory( "kfile_%{APPNAMELC}" ))
-%{APPNAME}Plugin::%{APPNAME}Plugin(QObject *parent, const char *name,
- const QStringList &args)
+%{APPNAME}Plugin::%{APPNAME}Plugin(TQObject *parent, const char *name,
+ const TQStringList &args)
: KFilePlugin(parent, name, args)
{
//add the mimetype here - example:
@@ -28,12 +28,12 @@ K_EXPORT_COMPONENT_FACTORY(kfile_%{APPNAME}, %{APPNAME}Factory( "kfile_%{APPNAME
KFileMimeTypeInfo::ItemInfo* item;
// our new items in the group
- item = addItemInfo(group, "Items", i18n("Items"), QVariant::Int);
- item = addItemInfo(group, "Size", i18n("Size"), QVariant::Int);
+ item = addItemInfo(group, "Items", i18n("Items"), TQVariant::Int);
+ item = addItemInfo(group, "Size", i18n("Size"), TQVariant::Int);
setUnit(item, KFileMimeTypeInfo::KiloBytes);
// strings are possible, too:
- //addItemInfo(group, "Text", i18n("Document Type"), QVariant::String);
+ //addItemInfo(group, "Text", i18n("Document Type"), TQVariant::String);
}
bool %{APPNAME}Plugin::readInfo( KFileMetaInfo& info, uint /*what*/)
diff --git a/languages/cpp/app_templates/kfileplugin/kfile_plugin.h b/languages/cpp/app_templates/kfileplugin/kfile_plugin.h
index 358b4dcb..8a0355f1 100644
--- a/languages/cpp/app_templates/kfileplugin/kfile_plugin.h
+++ b/languages/cpp/app_templates/kfileplugin/kfile_plugin.h
@@ -15,7 +15,7 @@ class %{APPNAME}Plugin: public KFilePlugin
Q_OBJECT
public:
- %{APPNAME}Plugin( QObject *parent, const char *name, const QStringList& args );
+ %{APPNAME}Plugin( TQObject *parent, const char *name, const TQStringList& args );
virtual bool readInfo( KFileMetaInfo& info, uint what);
};
diff --git a/languages/cpp/app_templates/khello/app.cpp b/languages/cpp/app_templates/khello/app.cpp
index 44332685..811f9337 100644
--- a/languages/cpp/app_templates/khello/app.cpp
+++ b/languages/cpp/app_templates/khello/app.cpp
@@ -2,7 +2,7 @@
#include "%{APPNAMELC}.h"
-#include <qlabel.h>
+#include <tqlabel.h>
#include <kmainwindow.h>
#include <klocale.h>
@@ -13,7 +13,7 @@
// set the shell's ui resource file
setXMLFile("%{APPNAMELC}ui.rc");
- new QLabel( "Hello World", this, "hello label" );
+ new TQLabel( "Hello World", this, "hello label" );
}
%{APPNAME}::~%{APPNAME}()
diff --git a/languages/cpp/app_templates/khello2/widget.cpp b/languages/cpp/app_templates/khello2/widget.cpp
index 6775ac39..266e894f 100644
--- a/languages/cpp/app_templates/khello2/widget.cpp
+++ b/languages/cpp/app_templates/khello2/widget.cpp
@@ -1,10 +1,10 @@
%{CPP_TEMPLATE}
-#include <qlabel.h>
+#include <tqlabel.h>
#include "%{APPNAMELC}widget.h"
-%{APPNAME}Widget::%{APPNAME}Widget(QWidget* parent, const char* name, WFlags fl)
+%{APPNAME}Widget::%{APPNAME}Widget(TQWidget* parent, const char* name, WFlags fl)
: %{APPNAME}WidgetBase(parent,name,fl)
{}
diff --git a/languages/cpp/app_templates/khello2/widget.h b/languages/cpp/app_templates/khello2/widget.h
index 275e13c7..50d7a721 100644
--- a/languages/cpp/app_templates/khello2/widget.h
+++ b/languages/cpp/app_templates/khello2/widget.h
@@ -10,7 +10,7 @@ class %{APPNAME}Widget : public %{APPNAME}WidgetBase
Q_OBJECT
public:
- %{APPNAME}Widget(QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ %{APPNAME}Widget(TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~%{APPNAME}Widget();
/*$PUBLIC_FUNCTIONS$*/
diff --git a/languages/cpp/app_templates/kicker/applet.cpp b/languages/cpp/app_templates/kicker/applet.cpp
index 5345ac0c..29ec3d1d 100644
--- a/languages/cpp/app_templates/kicker/applet.cpp
+++ b/languages/cpp/app_templates/kicker/applet.cpp
@@ -1,6 +1,6 @@
%{CPP_TEMPLATE}
-#include <qlcdnumber.h>
+#include <tqlcdnumber.h>
#include <kglobal.h>
#include <klocale.h>
#include <kconfig.h>
@@ -10,12 +10,12 @@
#include "%{APPNAMELC}.h"
-%{APPNAME}::%{APPNAME}(const QString& configFile, Type type, int actions, QWidget *parent, const char *name)
+%{APPNAME}::%{APPNAME}(const TQString& configFile, Type type, int actions, TQWidget *parent, const char *name)
: KPanelApplet(configFile, type, actions, parent, name)
{
// Get the current application configuration handle
ksConfig = config();
- QLCDNumber *w = new QLCDNumber(this);
+ TQLCDNumber *w = new TQLCDNumber(this);
w->display(42);
mainView = w;
@@ -55,14 +55,14 @@ int %{APPNAME}::heightForWidth(int width) const
return height();
}
-void %{APPNAME}::resizeEvent(QResizeEvent *e)
+void %{APPNAME}::resizeEvent(TQResizeEvent *e)
{
}
extern "C"
{
- KPanelApplet* init( QWidget *parent, const QString& configFile)
+ KPanelApplet* init( TQWidget *parent, const TQString& configFile)
{
KGlobal::locale()->insertCatalogue("%{APPNAMELC}");
return new %{APPNAME}(configFile, KPanelApplet::Normal,
diff --git a/languages/cpp/app_templates/kicker/applet.h b/languages/cpp/app_templates/kicker/applet.h
index b078b2a4..ba4d6cd4 100644
--- a/languages/cpp/app_templates/kicker/applet.h
+++ b/languages/cpp/app_templates/kicker/applet.h
@@ -8,7 +8,7 @@
#endif
#include <kpanelapplet.h>
-#include <qstring.h>
+#include <tqstring.h>
#include <kconfig.h>
@@ -26,8 +26,8 @@ public:
* @param parent The pointer to the parent widget handed over in the factory function.
* @param name A Qt object name for your applet.
**/
- %{APPNAME}(const QString& configFile, Type t = Normal, int actions = 0,
- QWidget *parent = 0, const char *name = 0);
+ %{APPNAME}(const TQString& configFile, Type t = Normal, int actions = 0,
+ TQWidget *parent = 0, const char *name = 0);
/** destructor */
~%{APPNAME}();
@@ -97,11 +97,11 @@ public:
virtual void preferences();
protected:
- void resizeEvent(QResizeEvent *);
+ void resizeEvent(TQResizeEvent *);
private:
KConfig *ksConfig;
- QWidget *mainView;
+ TQWidget *mainView;
};
#endif
diff --git a/languages/cpp/app_templates/kioslave/slave.cpp b/languages/cpp/app_templates/kioslave/slave.cpp
index df32aebf..c8dc5d81 100644
--- a/languages/cpp/app_templates/kioslave/slave.cpp
+++ b/languages/cpp/app_templates/kioslave/slave.cpp
@@ -1,8 +1,8 @@
-#include <qcstring.h>
-#include <qsocket.h>
-#include <qdatetime.h>
-#include <qbitarray.h>
+#include <tqcstring.h>
+#include <tqsocket.h>
+#include <tqdatetime.h>
+#include <tqbitarray.h>
#include <stdlib.h>
#include <math.h>
@@ -26,7 +26,7 @@
using namespace KIO;
-kio_%{APPNAMELC}Protocol::kio_%{APPNAMELC}Protocol(const QCString &pool_socket, const QCString &app_socket)
+kio_%{APPNAMELC}Protocol::kio_%{APPNAMELC}Protocol(const TQCString &pool_socket, const TQCString &app_socket)
: SlaveBase("kio_%{APPNAMELC}", pool_socket, app_socket)
{
kdDebug() << "kio_%{APPNAMELC}Protocol::kio_%{APPNAMELC}Protocol()" << endl;
@@ -44,7 +44,7 @@ void kio_%{APPNAMELC}Protocol::get(const KURL& url )
kdDebug() << "kio_%{APPNAMELC}::get(const KURL& url)" << endl ;
kdDebug() << "Seconds: " << url.query() << endl;
- QString remoteServer = url.host();
+ TQString remoteServer = url.host();
int remotePort = url.port();
kdDebug() << "myURL: " << url.prettyURL() << endl;
@@ -52,9 +52,9 @@ void kio_%{APPNAMELC}Protocol::get(const KURL& url )
// Send the mimeType as soon as it is known
mimeType("text/plain");
// Send the data
- QString theData = "This is a test of kio_%{APPNAMELC}";
- data(QCString(theData.local8Bit()));
- data(QByteArray()); // empty array means we're done sending the data
+ TQString theData = "This is a test of kio_%{APPNAMELC}";
+ data(TQCString(theData.local8Bit()));
+ data(TQByteArray()); // empty array means we're done sending the data
finished();
}
diff --git a/languages/cpp/app_templates/kioslave/slave.h b/languages/cpp/app_templates/kioslave/slave.h
index 649ead8c..d094a23a 100644
--- a/languages/cpp/app_templates/kioslave/slave.h
+++ b/languages/cpp/app_templates/kioslave/slave.h
@@ -2,8 +2,8 @@
#ifndef _%{APPNAMELC}_H_
#define _%{APPNAMELC}_H_
-#include <qstring.h>
-#include <qcstring.h>
+#include <tqstring.h>
+#include <tqcstring.h>
#include <kurl.h>
#include <kio/global.h>
@@ -14,7 +14,7 @@ class QCString;
class kio_%{APPNAMELC}Protocol : public KIO::SlaveBase
{
public:
- kio_%{APPNAMELC}Protocol(const QCString &pool_socket, const QCString &app_socket);
+ kio_%{APPNAMELC}Protocol(const TQCString &pool_socket, const TQCString &app_socket);
virtual ~kio_%{APPNAMELC}Protocol();
virtual void mimetype(const KURL& url);
virtual void get(const KURL& url);
diff --git a/languages/cpp/app_templates/kmake/mainviewimp.cpp b/languages/cpp/app_templates/kmake/mainviewimp.cpp
index 68cb262a..8a0de706 100644
--- a/languages/cpp/app_templates/kmake/mainviewimp.cpp
+++ b/languages/cpp/app_templates/kmake/mainviewimp.cpp
@@ -1,9 +1,9 @@
#include "mainviewimp.h"
-#include <qlabel.h>
+#include <tqlabel.h>
#include <klocale.h>
-MainViewImp::MainViewImp(QWidget* parent, const char* name, WFlags fl)
+MainViewImp::MainViewImp(TQWidget* parent, const char* name, WFlags fl)
: MainView(parent,name,fl)
{
}
diff --git a/languages/cpp/app_templates/kmake/mainviewimp.h b/languages/cpp/app_templates/kmake/mainviewimp.h
index 51af1957..190a26e3 100644
--- a/languages/cpp/app_templates/kmake/mainviewimp.h
+++ b/languages/cpp/app_templates/kmake/mainviewimp.h
@@ -8,7 +8,7 @@ class MainViewImp : public MainView
Q_OBJECT
public:
- MainViewImp(QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ MainViewImp(TQWidget* parent = 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 bd79c317..86287a3f 100644
--- a/languages/cpp/app_templates/kofficepart/kopart_factory.cpp
+++ b/languages/cpp/app_templates/kofficepart/kopart_factory.cpp
@@ -23,7 +23,7 @@ extern "C"
KInstance* %{APPNAME}Factory::s_global = 0L;
KAboutData* %{APPNAME}Factory::s_aboutData = 0L;
-%{APPNAME}Factory::%{APPNAME}Factory( QObject* parent, const char* name )
+%{APPNAME}Factory::%{APPNAME}Factory( TQObject* parent, const char* name )
: KoFactory( parent, name )
{
global();
@@ -37,7 +37,7 @@ KAboutData* %{APPNAME}Factory::s_aboutData = 0L;
s_global = 0L;
}
-KParts::Part* %{APPNAME}Factory::createPartObject( QWidget *parentWidget, const char *widgetName, QObject* parent, const char* name, const char* classname, const QStringList & )
+KParts::Part* %{APPNAME}Factory::createPartObject( TQWidget *parentWidget, const char *widgetName, TQObject* parent, 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.
diff --git a/languages/cpp/app_templates/kofficepart/kopart_factory.h b/languages/cpp/app_templates/kofficepart/kopart_factory.h
index 45f1f649..58061af3 100644
--- a/languages/cpp/app_templates/kofficepart/kopart_factory.h
+++ b/languages/cpp/app_templates/kofficepart/kopart_factory.h
@@ -15,10 +15,10 @@ class %{APPNAME}Factory : public KoFactory
{
Q_OBJECT
public:
- %{APPNAME}Factory( QObject* parent = 0, const char* name = 0 );
+ %{APPNAME}Factory( TQObject* parent = 0, const char* name = 0 );
~%{APPNAME}Factory();
- virtual KParts::Part *createPartObject( QWidget *parentWidget = 0, const char *widgetName = 0, QObject *parent = 0, const char *name = 0, const char *classname = "KoDocument", const QStringList &args = QStringList() );
+ 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() );
static KInstance* global();
diff --git a/languages/cpp/app_templates/kofficepart/kopart_part.cpp b/languages/cpp/app_templates/kofficepart/kopart_part.cpp
index 500179f3..c12b5fd7 100644
--- a/languages/cpp/app_templates/kofficepart/kopart_part.cpp
+++ b/languages/cpp/app_templates/kofficepart/kopart_part.cpp
@@ -6,40 +6,40 @@
#include "%{APPNAMELC}_part.h"
#include "%{APPNAMELC}_view.h"
-#include <qpainter.h>
+#include <tqpainter.h>
-%{APPNAME}Part::%{APPNAME}Part( QWidget *parentWidget, const char *widgetName, QObject* parent, const char* name, bool singleViewMode )
+%{APPNAME}Part::%{APPNAME}Part( TQWidget *parentWidget, const char *widgetName, TQObject* parent, const char* name, bool singleViewMode )
: KoDocument( parentWidget, widgetName, parent, name, singleViewMode )
{
}
-bool %{APPNAME}Part::initDoc( InitDocFlags flags, QWidget* parentWidget )
+bool %{APPNAME}Part::initDoc( InitDocFlags flags, TQWidget* parentWidget )
{
// If nothing is loaded, do initialize here
return TRUE;
}
-KoView* %{APPNAME}Part::createViewInstance( QWidget* parent, const char* name )
+KoView* %{APPNAME}Part::createViewInstance( TQWidget* parent, const char* name )
{
return new %{APPNAME}View( this, parent, name );
}
-bool %{APPNAME}Part::loadOasis( const QDomDocument & doc, KoOasisStyles& oasisStyles, const QDomDocument & settings, KoStore* store )
+bool %{APPNAME}Part::loadOasis( const TQDomDocument & doc, KoOasisStyles& oasisStyles, const TQDomDocument & settings, KoStore* store )
{
/// @todo load the document using the OASIS format
return true;
}
-bool %{APPNAME}Part::loadXML( QIODevice *, const QDomDocument & )
+bool %{APPNAME}Part::loadXML( TQIODevice *, const TQDomDocument & )
{
/// @todo load the document from the QDomDocument
return true;
}
-QDomDocument %{APPNAME}Part::saveXML()
+TQDomDocument %{APPNAME}Part::saveXML()
{
/// @todo save the document into a QDomDocument
- return QDomDocument();
+ return TQDomDocument();
}
bool %{APPNAME}Part::saveOasis( KoStore* store, KoXmlWriter* manifestWriter )
@@ -49,7 +49,7 @@ bool %{APPNAME}Part::saveOasis( KoStore* store, KoXmlWriter* manifestWriter )
}
-void %{APPNAME}Part::paintContent( QPainter& painter, const QRect& rect, bool /*transparent*/,
+void %{APPNAME}Part::paintContent( TQPainter& painter, const TQRect& rect, bool /*transparent*/,
double /*zoomX*/, double /*zoomY*/ )
{
// ####### handle transparency
diff --git a/languages/cpp/app_templates/kofficepart/kopart_part.h b/languages/cpp/app_templates/kofficepart/kopart_part.h
index 03361ca7..95ebb3f6 100644
--- a/languages/cpp/app_templates/kofficepart/kopart_part.h
+++ b/languages/cpp/app_templates/kofficepart/kopart_part.h
@@ -12,19 +12,19 @@ class %{APPNAME}Part : public KoDocument
{
Q_OBJECT
public:
- %{APPNAME}Part( QWidget *parentWidget = 0, const char *widgetName = 0, QObject* parent = 0, const char* name = 0, bool singleViewMode = false );
+ %{APPNAME}Part( TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject* parent = 0, const char* name = 0, bool singleViewMode = false );
- virtual void paintContent( QPainter& painter, const QRect& rect, bool transparent = FALSE, double zoomX = 1.0, double zoomY = 1.0 );
+ virtual void paintContent( TQPainter& painter, const TQRect& rect, bool transparent = FALSE, double zoomX = 1.0, double zoomY = 1.0 );
- virtual bool initDoc( InitDocFlags flags, QWidget* parentWidget = 0 );
+ virtual bool initDoc( InitDocFlags flags, TQWidget* parentWidget = 0 );
- virtual bool loadOasis( const QDomDocument & doc, KoOasisStyles& oasisStyles, const QDomDocument & settings, KoStore* store );
- virtual bool loadXML( QIODevice *, const QDomDocument & );
- virtual QDomDocument saveXML();
+ virtual bool loadOasis( const TQDomDocument & doc, KoOasisStyles& oasisStyles, const TQDomDocument & settings, KoStore* store );
+ virtual bool loadXML( TQIODevice *, const TQDomDocument & );
+ virtual TQDomDocument saveXML();
virtual bool saveOasis( KoStore* store, KoXmlWriter* manifestWriter );
protected:
- virtual KoView* createViewInstance( QWidget* parent, const char* name );
+ virtual KoView* createViewInstance( TQWidget* parent, 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 28c0b42f..f32707a8 100644
--- a/languages/cpp/app_templates/kofficepart/kopart_view.cpp
+++ b/languages/cpp/app_templates/kofficepart/kopart_view.cpp
@@ -6,27 +6,27 @@
#include "%{APPNAMELC}_factory.h"
#include "%{APPNAMELC}_part.h"
-#include <qpainter.h>
-#include <qiconset.h>
+#include <tqpainter.h>
+#include <tqiconset.h>
#include <kaction.h>
#include <kstdaction.h>
#include <klocale.h>
#include <kdebug.h>
-%{APPNAME}View::%{APPNAME}View( %{APPNAME}Part* part, QWidget* parent, const char* name )
+%{APPNAME}View::%{APPNAME}View( %{APPNAME}Part* part, TQWidget* parent, const char* name )
: KoView( part, parent, name )
{
setInstance( %{APPNAME}Factory::global() );
setXMLFile( "%{APPNAMELC}.rc" );
- KStdAction::cut(this, SLOT( cut() ), actionCollection(), "cut" );
+ KStdAction::cut(this, TQT_SLOT( cut() ), actionCollection(), "cut" );
// Note: Prefer KStdAction::* to any custom action if possible.
- //m_cut = new KAction( i18n("&Cut"), "editcut", 0, this, SLOT( cut() ),
+ //m_cut = new KAction( i18n("&Cut"), "editcut", 0, this, TQT_SLOT( cut() ),
// actionCollection(), "cut");
}
-void %{APPNAME}View::paintEvent( QPaintEvent* ev )
+void %{APPNAME}View::paintEvent( TQPaintEvent* ev )
{
- QPainter painter;
+ TQPainter painter;
painter.begin( this );
/// @todo Scaling
diff --git a/languages/cpp/app_templates/kofficepart/kopart_view.h b/languages/cpp/app_templates/kofficepart/kopart_view.h
index eb14763f..bab3d89e 100644
--- a/languages/cpp/app_templates/kofficepart/kopart_view.h
+++ b/languages/cpp/app_templates/kofficepart/kopart_view.h
@@ -17,13 +17,13 @@ class %{APPNAME}View : public KoView
{
Q_OBJECT
public:
- %{APPNAME}View( %{APPNAME}Part* part, QWidget* parent = 0, const char* name = 0 );
+ %{APPNAME}View( %{APPNAME}Part* part, TQWidget* parent = 0, const char* name = 0 );
protected slots:
void cut();
protected:
- void paintEvent( QPaintEvent* );
+ void paintEvent( TQPaintEvent* );
virtual void updateReadWrite( bool readwrite );
diff --git a/languages/cpp/app_templates/konqnavpanel/konqnavpanel.cpp b/languages/cpp/app_templates/konqnavpanel/konqnavpanel.cpp
index 34515ce2..ae9a85a6 100644
--- a/languages/cpp/app_templates/konqnavpanel/konqnavpanel.cpp
+++ b/languages/cpp/app_templates/konqnavpanel/konqnavpanel.cpp
@@ -1,16 +1,16 @@
-#include <qlabel.h>
+#include <tqlabel.h>
#include <kinstance.h>
-#include <qstring.h>
-#include <qwidget.h>
+#include <tqstring.h>
+#include <tqwidget.h>
#include "%{APPNAMELC}.h"
#include "%{APPNAMELC}.moc"
-%{APPNAME}::%{APPNAME}(KInstance *inst,QObject *parent,QWidget *widgetParent, QString &desktopName, const char* name):
+%{APPNAME}::%{APPNAME}(KInstance *inst,TQObject *parent,TQWidget *widgetParent, TQString &desktopName, const char* name):
KonqSidebarPlugin(inst,parent,widgetParent,desktopName,name)
{
- widget=new QLabel("Init Value",widgetParent);
+ widget=new TQLabel("Init Value",widgetParent);
}
@@ -20,14 +20,14 @@
void %{APPNAME}::handleURL(const KURL &url)
{
- widget->setText(QString("%{APPNAME}")+"::"+url.url());
+ widget->setText(TQString("%{APPNAME}")+"::"+url.url());
}
extern "C"
{
- void* create_konqsidebar_%{APPNAME}(KInstance *instance,QObject *par,QWidget *widp,QString &desktopname,const char *name)
+ void* create_konqsidebar_%{APPNAME}(KInstance *instance,TQObject *par,TQWidget *widp,TQString &desktopname,const char *name)
{
return new %{APPNAME}(instance,par,widp,desktopname,name);
}
diff --git a/languages/cpp/app_templates/konqnavpanel/konqnavpanel.h b/languages/cpp/app_templates/konqnavpanel/konqnavpanel.h
index 949c68d3..9599b530 100644
--- a/languages/cpp/app_templates/konqnavpanel/konqnavpanel.h
+++ b/languages/cpp/app_templates/konqnavpanel/konqnavpanel.h
@@ -7,7 +7,7 @@
#endif
#include <konqsidebarplugin.h>
-#include <qstring.h>
+#include <tqstring.h>
#include <kconfig.h>
@@ -25,17 +25,17 @@ public:
* @param desktopName The filename of the configuration file.
* @param name A Qt object name for your plugin.
**/
- %{APPNAME}(KInstance *inst,QObject *parent,QWidget *widgetParent, QString &desktopName, const char* name=0);
+ %{APPNAME}(KInstance *inst,TQObject *parent,TQWidget *widgetParent, TQString &desktopName, const char* name=0);
/** destructor */
~%{APPNAME}();
- virtual QWidget *getWidget(){return widget;}
- virtual void *provides(const QString &) {return 0;}
+ virtual TQWidget *getWidget(){return widget;}
+ virtual void *provides(const TQString &) {return 0;}
protected:
/*Example widget only. You use whichever widget you want. You onl have to care that getWidget returns some kind of widget */
- QLabel *widget;
+ TQLabel *widget;
virtual void handleURL(const KURL &url);
};
diff --git a/languages/cpp/app_templates/kpartapp/app.cpp b/languages/cpp/app_templates/kpartapp/app.cpp
index 68c34ab3..3a8a2274 100644
--- a/languages/cpp/app_templates/kpartapp/app.cpp
+++ b/languages/cpp/app_templates/kpartapp/app.cpp
@@ -76,16 +76,16 @@ void %{APPNAME}::load(const KURL& url)
void %{APPNAME}::setupActions()
{
- KStdAction::openNew(this, SLOT(fileNew()), actionCollection());
- KStdAction::open(this, SLOT(fileOpen()), actionCollection());
+ KStdAction::openNew(this, TQT_SLOT(fileNew()), actionCollection());
+ KStdAction::open(this, TQT_SLOT(fileOpen()), actionCollection());
- KStdAction::quit(kapp, SLOT(quit()), actionCollection());
+ KStdAction::quit(kapp, TQT_SLOT(quit()), actionCollection());
- m_toolbarAction = KStdAction::showToolbar(this, SLOT(optionsShowToolbar()), actionCollection());
- m_statusbarAction = KStdAction::showStatusbar(this, SLOT(optionsShowStatusbar()), actionCollection());
+ m_toolbarAction = KStdAction::showToolbar(this, TQT_SLOT(optionsShowToolbar()), actionCollection());
+ m_statusbarAction = KStdAction::showStatusbar(this, TQT_SLOT(optionsShowStatusbar()), actionCollection());
- KStdAction::keyBindings(this, SLOT(optionsConfigureKeys()), actionCollection());
- KStdAction::configureToolbars(this, SLOT(optionsConfigureToolbars()), actionCollection());
+ KStdAction::keyBindings(this, TQT_SLOT(optionsConfigureKeys()), actionCollection());
+ KStdAction::configureToolbars(this, TQT_SLOT(optionsConfigureToolbars()), actionCollection());
}
void %{APPNAME}::saveProperties(KConfig* /*config*/)
@@ -159,8 +159,8 @@ void %{APPNAME}::optionsConfigureToolbars()
// use the standard toolbar editor
KEditToolbar dlg(factory());
- connect(&dlg, SIGNAL(newToolbarConfig()),
- this, SLOT(applyNewToolbarConfig()));
+ connect(&dlg, TQT_SIGNAL(newToolbarConfig()),
+ this, TQT_SLOT(applyNewToolbarConfig()));
dlg.exec();
}
@@ -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( QString::null, QString::null, this );
+ KFileDialog::getOpenURL( TQString::null, TQString::null, this );
if (url.isEmpty() == false)
{
diff --git a/languages/cpp/app_templates/kpartapp/app_part.cpp b/languages/cpp/app_templates/kpartapp/app_part.cpp
index bf63557f..809d642a 100644
--- a/languages/cpp/app_templates/kpartapp/app_part.cpp
+++ b/languages/cpp/app_templates/kpartapp/app_part.cpp
@@ -8,27 +8,27 @@
#include <kglobal.h>
#include <klocale.h>
-#include <qfile.h>
-#include <qtextstream.h>
-#include <qmultilineedit.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
+#include <tqmultilineedit.h>
-%{APPNAME}Part::%{APPNAME}Part( QWidget *parentWidget, const char *widgetName,
- QObject *parent, const char *name )
+%{APPNAME}Part::%{APPNAME}Part( TQWidget *parentWidget, const char *widgetName,
+ TQObject *parent, const char *name )
: KParts::ReadWritePart(parent, name)
{
// we need an instance
setInstance( %{APPNAME}PartFactory::instance() );
// this should be your custom internal widget
- m_widget = new QMultiLineEdit( parentWidget, widgetName );
+ m_widget = new TQMultiLineEdit( parentWidget, widgetName );
// notify the part that this is our internal widget
setWidget(m_widget);
// create our actions
- KStdAction::open(this, SLOT(fileOpen()), actionCollection());
- KStdAction::saveAs(this, SLOT(fileSaveAs()), actionCollection());
- KStdAction::save(this, SLOT(save()), actionCollection());
+ KStdAction::open(this, TQT_SLOT(fileOpen()), actionCollection());
+ KStdAction::saveAs(this, TQT_SLOT(fileSaveAs()), actionCollection());
+ KStdAction::save(this, TQT_SLOT(save()), actionCollection());
// set our XML-UI resource file
setXMLFile("%{APPNAMELC}_part.rc");
@@ -49,12 +49,12 @@ void %{APPNAME}Part::setReadWrite(bool rw)
// notify your internal widget of the read-write state
m_widget->setReadOnly(!rw);
if (rw)
- connect(m_widget, SIGNAL(textChanged()),
- this, SLOT(setModified()));
+ connect(m_widget, TQT_SIGNAL(textChanged()),
+ this, TQT_SLOT(setModified()));
else
{
- disconnect(m_widget, SIGNAL(textChanged()),
- this, SLOT(setModified()));
+ disconnect(m_widget, TQT_SIGNAL(textChanged()),
+ this, TQT_SLOT(setModified()));
}
ReadWritePart::setReadWrite(rw);
@@ -80,15 +80,15 @@ void %{APPNAME}Part::setModified(bool modified)
bool %{APPNAME}Part::openFile()
{
- // m_file is always local so we can use QFile on it
- QFile file(m_file);
+ // m_file is always local so we can use TQFile on it
+ TQFile file(m_file);
if (file.open(IO_ReadOnly) == false)
return false;
- // our example widget is text-based, so we use QTextStream instead
+ // our example widget is text-based, so we use TQTextStream instead
// of a raw QDataStream
- QTextStream stream(&file);
- QString str;
+ TQTextStream stream(&file);
+ TQString str;
while (!stream.eof())
str += stream.readLine() + "\n";
@@ -110,12 +110,12 @@ bool %{APPNAME}Part::saveFile()
return false;
// m_file is always local, so we use QFile
- QFile file(m_file);
+ TQFile file(m_file);
if (file.open(IO_WriteOnly) == false)
return false;
- // use QTextStream to dump the text to the file
- QTextStream stream(&file);
+ // use TQTextStream to dump the text to the file
+ TQTextStream stream(&file);
stream << m_widget->text();
file.close();
@@ -128,7 +128,7 @@ void %{APPNAME}Part::fileOpen()
// this slot is called whenever the File->Open menu is selected,
// the Open shortcut is pressed (usually CTRL+O) or the Open toolbar
// button is clicked
- QString file_name = KFileDialog::getOpenFileName();
+ TQString file_name = KFileDialog::getOpenFileName();
if (file_name.isEmpty() == false)
openURL(file_name);
@@ -137,7 +137,7 @@ void %{APPNAME}Part::fileOpen()
void %{APPNAME}Part::fileSaveAs()
{
// this slot is called whenever the File->Save As menu is selected,
- QString file_name = KFileDialog::getSaveFileName();
+ TQString file_name = KFileDialog::getSaveFileName();
if (file_name.isEmpty() == false)
saveAs(file_name);
}
@@ -164,15 +164,15 @@ KAboutData* %{APPNAME}PartFactory::s_about = 0L;
s_instance = 0L;
}
-KParts::Part* %{APPNAME}PartFactory::createPartObject( QWidget *parentWidget, const char *widgetName,
- QObject *parent, const char *name,
- const char *classname, const QStringList &args )
+KParts::Part* %{APPNAME}PartFactory::createPartObject( TQWidget *parentWidget, const char *widgetName,
+ TQObject *parent, 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 );
// See if we are to be read-write or not
- if (QCString(classname) == "KParts::ReadOnlyPart")
+ if (TQCString(classname) == "KParts::ReadOnlyPart")
obj->setReadWrite(false);
return obj;
diff --git a/languages/cpp/app_templates/kpartapp/app_part.h b/languages/cpp/app_templates/kpartapp/app_part.h
index 37c30189..6b56c36a 100644
--- a/languages/cpp/app_templates/kpartapp/app_part.h
+++ b/languages/cpp/app_templates/kpartapp/app_part.h
@@ -25,8 +25,8 @@ public:
/**
* Default constructor
*/
- %{APPNAME}Part(QWidget *parentWidget, const char *widgetName,
- QObject *parent, const char *name);
+ %{APPNAME}Part(TQWidget *parentWidget, const char *widgetName,
+ TQObject *parent, const char *name);
/**
* Destructor
@@ -61,7 +61,7 @@ protected slots:
void fileSaveAs();
private:
- QMultiLineEdit *m_widget;
+ TQMultiLineEdit *m_widget;
};
class KInstance;
@@ -73,9 +73,9 @@ class %{APPNAME}PartFactory : public KParts::Factory
public:
%{APPNAME}PartFactory();
virtual ~%{APPNAME}PartFactory();
- virtual KParts::Part* createPartObject( QWidget *parentWidget, const char *widgetName,
- QObject *parent, const char *name,
- const char *classname, const QStringList &args );
+ virtual KParts::Part* createPartObject( TQWidget *parentWidget, const char *widgetName,
+ TQObject *parent, const char *name,
+ const char *classname, const TQStringList &args );
static KInstance* instance();
private:
diff --git a/languages/cpp/app_templates/kpartplugin/plugin_app.cpp b/languages/cpp/app_templates/kpartplugin/plugin_app.cpp
index a9ee55a3..61e3ca0e 100644
--- a/languages/cpp/app_templates/kpartplugin/plugin_app.cpp
+++ b/languages/cpp/app_templates/kpartplugin/plugin_app.cpp
@@ -8,13 +8,13 @@
#include <klocale.h>
#include <kglobal.h>
-Plugin%{APPNAME}::Plugin%{APPNAME}( QObject* parent, const char* name )
+Plugin%{APPNAME}::Plugin%{APPNAME}( TQObject* parent, const char* name )
: Plugin( parent, name )
{
// Instantiate all of your actions here. These will appear in
// Konqueror's menu and toolbars.
(void) new KAction( i18n("&Plugin Action"), "%{APPNAMELC}", 0,
- this, SLOT(slotAction()),
+ this, TQT_SLOT(slotAction()),
actionCollection(), "plugin_action" );
}
@@ -29,8 +29,8 @@ void Plugin%{APPNAME}::slotAction()
// change the following block.
if ( !parent()->inherits("KHTMLPart") )
{
- QString title( i18n( "Cannot Translate Source" ) );
- QString text( i18n( "You cannot translate anything except web pages "
+ TQString title( i18n( "Cannot Translate Source" ) );
+ TQString text( i18n( "You cannot translate anything except web pages "
"with this plugin." ) );
KMessageBox::sorry( 0, text, title );
@@ -49,8 +49,8 @@ void Plugin%{APPNAME}::slotAction()
// valid URL
if ( !url.isValid() )
{
- QString title( i18n( "Malformed URL" ) );
- QString text( i18n( "The URL you entered is not valid, please "
+ TQString title( i18n( "Malformed URL" ) );
+ TQString text( i18n( "The URL you entered is not valid, please "
"correct it and try again" ) );
KMessageBox::sorry( 0, text, title );
@@ -63,7 +63,7 @@ void Plugin%{APPNAME}::slotAction()
// BEGIN
KURL work( "http://babel.altavista.com/translate.dyn" );
- QString query( "urltext=" );
+ TQString query( "urltext=" );
query += KURL::encode_string( url.url() );
work.setQuery( query );
// END
@@ -83,7 +83,7 @@ void Plugin%{APPNAME}::slotAction()
s_instance = 0;
}
-QObject* %{APPNAME}Factory::createObject( QObject* parent, const char* name, const char*, const QStringList & )
+TQObject* %{APPNAME}Factory::createObject( TQObject* parent, const char* name, const char*, const TQStringList & )
{
return new Plugin%{APPNAME}( parent, name );
}
diff --git a/languages/cpp/app_templates/kpartplugin/plugin_app.h b/languages/cpp/app_templates/kpartplugin/plugin_app.h
index e70ad1c1..7c7bfc0c 100644
--- a/languages/cpp/app_templates/kpartplugin/plugin_app.h
+++ b/languages/cpp/app_templates/kpartplugin/plugin_app.h
@@ -9,7 +9,7 @@ class Plugin%{APPNAME} : public KParts::Plugin
{
Q_OBJECT
public:
- Plugin%{APPNAME}( QObject* parent = 0, const char* name = 0 );
+ Plugin%{APPNAME}( TQObject* parent = 0, const char* name = 0 );
virtual ~Plugin%{APPNAME}();
public slots:
@@ -23,7 +23,7 @@ public:
%{APPNAME}Factory();
virtual ~%{APPNAME}Factory();
- virtual QObject* createObject( QObject* parent = 0, const char* pname = 0, const char* name = "QObject", const QStringList &args = QStringList() );
+ virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0, const char* name = "TQObject", const TQStringList &args = TQStringList() );
static KInstance* instance();
diff --git a/languages/cpp/app_templates/kscons_kmdi/app_part.cpp b/languages/cpp/app_templates/kscons_kmdi/app_part.cpp
index 71155138..a851f02a 100644
--- a/languages/cpp/app_templates/kscons_kmdi/app_part.cpp
+++ b/languages/cpp/app_templates/kscons_kmdi/app_part.cpp
@@ -10,30 +10,30 @@
#include <kglobal.h>
#include <klocale.h>
-#include <qfile.h>
-#include <qtextstream.h>
-#include <qmultilineedit.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
+#include <tqmultilineedit.h>
typedef KParts::GenericFactory<%{APPNAMELC}Part> %{APPNAMELC}PartFactory;
K_EXPORT_COMPONENT_FACTORY( lib%{APPNAMELC}part, %{APPNAMELC}PartFactory );
-%{APPNAMELC}Part::%{APPNAMELC}Part( QWidget *parentWidget, const char *widgetName,
- QObject *parent, const char *name, const QStringList & /*args*/)
+%{APPNAMELC}Part::%{APPNAMELC}Part( TQWidget *parentWidget, const char *widgetName,
+ TQObject *parent, const char *name, const TQStringList & /*args*/)
: KParts::ReadWritePart(parent)
{
// we need an instance
setInstance( %{APPNAMELC}PartFactory::instance() );
// this should be your custom internal widget
- m_widget = new QMultiLineEdit( parentWidget, widgetName );
+ m_widget = new TQMultiLineEdit( parentWidget, widgetName );
// notify the part that this is our internal widget
setWidget(m_widget);
// create our actions
- KStdAction::open(this, SLOT(fileOpen()), actionCollection());
- KStdAction::saveAs(this, SLOT(fileSaveAs()), actionCollection());
- KStdAction::save(this, SLOT(save()), actionCollection());
+ KStdAction::open(this, TQT_SLOT(fileOpen()), actionCollection());
+ KStdAction::saveAs(this, TQT_SLOT(fileSaveAs()), actionCollection());
+ KStdAction::save(this, TQT_SLOT(save()), actionCollection());
// set our XML-UI resource file
setXMLFile("%{APPNAMELC}_part.rc");
@@ -63,12 +63,12 @@ void %{APPNAMELC}Part::setReadWrite(bool rw)
// notify your internal widget of the read-write state
m_widget->setReadOnly(!rw);
if (rw)
- connect(m_widget, SIGNAL(textChanged()),
- this, SLOT(setModified()));
+ connect(m_widget, TQT_SIGNAL(textChanged()),
+ this, TQT_SLOT(setModified()));
else
{
- disconnect(m_widget, SIGNAL(textChanged()),
- this, SLOT(setModified()));
+ disconnect(m_widget, TQT_SIGNAL(textChanged()),
+ this, TQT_SLOT(setModified()));
}
ReadWritePart::setReadWrite(rw);
@@ -94,15 +94,15 @@ void %{APPNAMELC}Part::setModified(bool modified)
bool %{APPNAMELC}Part::openFile()
{
- // m_file is always local so we can use QFile on it
- QFile file(m_file);
+ // m_file is always local so we can use TQFile on it
+ TQFile file(m_file);
if (file.open(IO_ReadOnly) == false)
return false;
- // our example widget is text-based, so we use QTextStream instead
+ // our example widget is text-based, so we use TQTextStream instead
// of a raw QDataStream
- QTextStream stream(&file);
- QString str;
+ TQTextStream stream(&file);
+ TQString str;
while (!stream.eof())
str += stream.readLine() + "\n";
@@ -124,12 +124,12 @@ bool %{APPNAMELC}Part::saveFile()
return false;
// m_file is always local, so we use QFile
- QFile file(m_file);
+ TQFile file(m_file);
if (file.open(IO_WriteOnly) == false)
return false;
- // use QTextStream to dump the text to the file
- QTextStream stream(&file);
+ // use TQTextStream to dump the text to the file
+ TQTextStream stream(&file);
stream << m_widget->text();
file.close();
@@ -142,7 +142,7 @@ void %{APPNAMELC}Part::fileOpen()
// this slot is called whenever the File->Open menu is selected,
// the Open shortcut is pressed (usually CTRL+O) or the Open toolbar
// button is clicked
- QString file_name = KFileDialog::getOpenFileName();
+ TQString file_name = KFileDialog::getOpenFileName();
if (file_name.isEmpty() == false)
openURL(file_name);
@@ -151,7 +151,7 @@ void %{APPNAMELC}Part::fileOpen()
void %{APPNAMELC}Part::fileSaveAs()
{
// this slot is called whenever the File->Save As menu is selected,
- QString file_name = KFileDialog::getSaveFileName();
+ TQString file_name = KFileDialog::getSaveFileName();
if (file_name.isEmpty() == false)
saveAs(file_name);
}
diff --git a/languages/cpp/app_templates/kscons_kmdi/app_part.h b/languages/cpp/app_templates/kscons_kmdi/app_part.h
index e1dd002b..2d4ea947 100644
--- a/languages/cpp/app_templates/kscons_kmdi/app_part.h
+++ b/languages/cpp/app_templates/kscons_kmdi/app_part.h
@@ -27,8 +27,8 @@ public:
/**
* Default constructor
*/
- %{APPNAMELC}Part(QWidget *parentWidget, const char *widgetName,
- QObject *parent, const char *name, const QStringList & /*args*/);
+ %{APPNAMELC}Part(TQWidget *parentWidget, const char *widgetName,
+ TQObject *parent, const char *name, const TQStringList & /*args*/);
/**
* Destructor
@@ -68,7 +68,7 @@ protected slots:
void fileSaveAs();
private:
- QMultiLineEdit *m_widget;
+ TQMultiLineEdit *m_widget;
};
#endif // _%{APPNAMEUC}PART_H_
diff --git a/languages/cpp/app_templates/kscons_kmdi/appkmdi.cpp b/languages/cpp/app_templates/kscons_kmdi/appkmdi.cpp
index be5d8862..4286053a 100644
--- a/languages/cpp/app_templates/kscons_kmdi/appkmdi.cpp
+++ b/languages/cpp/app_templates/kscons_kmdi/appkmdi.cpp
@@ -1,11 +1,11 @@
%{CPP_TEMPLATE}
-#include <qdragobject.h>
-#include <qpainter.h>
-#include <qpaintdevicemetrics.h>
-#include <qdragobject.h>
-#include <qstatusbar.h>
-#include <qtoolbutton.h>
+#include <tqdragobject.h>
+#include <tqpainter.h>
+#include <tqpaintdevicemetrics.h>
+#include <tqdragobject.h>
+#include <tqstatusbar.h>
+#include <tqtoolbutton.h>
#include <kdebug.h>
#include <kglobal.h>
@@ -53,8 +53,8 @@
setStandardMDIMenuEnabled(false);
m_manager = new KParts::PartManager(this);
- connect(m_manager, SIGNAL(activePartChanged(KParts::Part*)),
- this, SLOT(createGUI(KParts::Part*)) );
+ connect(m_manager, TQT_SIGNAL(activePartChanged(KParts::Part*)),
+ this, TQT_SLOT(createGUI(KParts::Part*)) );
#if KDE_IS_VERSION(3, 3, 0)
setToolviewStyle( KMdi::TextAndIcon );
@@ -77,7 +77,7 @@
// and a status bar
statusBar()->show();
- connect( this, SIGNAL( viewActivated( KMdiChildView * ) ), this, SLOT( currentChanged( KMdiChildView * ) ) );
+ connect( this, TQT_SIGNAL( viewActivated( KMdiChildView * ) ), this, TQT_SLOT( currentChanged( KMdiChildView * ) ) );
m_console = new kmdikonsole(this, "konsole");
m_console->setIcon( SmallIcon("konsole") );
@@ -88,11 +88,11 @@
#if KDE_IS_VERSION(3, 3, 0)
if (Settings::showCloseTabsButton())
{
- QToolButton *but = new QToolButton(tabWidget());
+ TQToolButton *but = new TQToolButton(tabWidget());
but->setIconSet(SmallIcon("tab_remove"));
but->adjustSize();
but->hide();
- connect(but, SIGNAL(clicked()), actionCollection()->action( "file_close" ), SIGNAL(activated()));
+ connect(but, TQT_SIGNAL(clicked()), actionCollection()->action( "file_close" ), TQT_SIGNAL(activated()));
tabWidget()->setCornerWidget(but, TopRight);
}
#endif
@@ -124,29 +124,29 @@ void %{APPNAMELC}kmdi::setupActions()
{
setXMLFile("%{APPNAMELC}_shell.rc");
- KStdAction::openNew(this, SLOT(slotFileNew()), actionCollection());
+ KStdAction::openNew(this, TQT_SLOT(slotFileNew()), actionCollection());
- KStdAction::tipOfDay( this, SLOT( showTip() ), actionCollection()
+ KStdAction::tipOfDay( this, TQT_SLOT( showTip() ), actionCollection()
)->setWhatsThis(i18n("This shows useful tips on the use of this application."));
- KStdAction::close(this, SLOT(slotFileClose()), actionCollection());
- KStdAction::quit(this, SLOT(slotFileQuit()), actionCollection());
+ KStdAction::close(this, TQT_SLOT(slotFileClose()), actionCollection());
+ KStdAction::quit(this, TQT_SLOT(slotFileQuit()), actionCollection());
- m_toolbarAction = KStdAction::showToolbar(this, SLOT(optionsShowToolbar()), actionCollection());
- m_statusbarAction = KStdAction::showStatusbar(this, SLOT(optionsShowStatusbar()), actionCollection());
+ m_toolbarAction = KStdAction::showToolbar(this, TQT_SLOT(optionsShowToolbar()), actionCollection());
+ m_statusbarAction = KStdAction::showStatusbar(this, TQT_SLOT(optionsShowStatusbar()), actionCollection());
- KStdAction::keyBindings(this, SLOT(optionsConfigureKeys()), actionCollection());
- KStdAction::preferences(this, SLOT(optionsPreferences()), actionCollection());
+ KStdAction::keyBindings(this, TQT_SLOT(optionsConfigureKeys()), actionCollection());
+ KStdAction::preferences(this, TQT_SLOT(optionsPreferences()), actionCollection());
KAction* action = KStdAction::configureToolbars(this,
- SLOT(optionsConfigureToolbars()), actionCollection());
+ TQT_SLOT(optionsConfigureToolbars()), actionCollection());
createGUI( NULL );
}
void %{APPNAMELC}kmdi::showTip()
{
- KTipDialog::showTip(this,QString::null,true);
+ KTipDialog::showTip(this,TQString::null,true);
}
void %{APPNAMELC}kmdi::showTipOnStart()
@@ -170,8 +170,8 @@ void %{APPNAMELC}kmdi::slotFileNew()
void %{APPNAMELC}kmdi::openURL(const KURL & url)
{
// check if the url is not already opened first
- QValueList<%{APPNAMELC}kmdiView*>::iterator it = m_views.begin();
- QValueList<%{APPNAMELC}kmdiView*>::iterator end = m_views.end();
+ TQValueList<%{APPNAMELC}kmdiView*>::iterator it = m_views.begin();
+ TQValueList<%{APPNAMELC}kmdiView*>::iterator end = m_views.end();
for (; it != end; ++it)
{
%{APPNAMELC}kmdiView *view = *it;
@@ -283,9 +283,9 @@ void %{APPNAMELC}kmdi::optionsConfigureKeys()
{
//KKeyDialog::configure(actionCollection());
KKeyDialog dlg( false, this );
- QPtrList<KXMLGUIClient> clients = guiFactory()->clients();
+ TQPtrList<KXMLGUIClient> clients = guiFactory()->clients();
- for( QPtrListIterator<KXMLGUIClient> it( clients ); it.current(); ++it )
+ for( TQPtrListIterator<KXMLGUIClient> it( clients ); it.current(); ++it )
dlg.insert ( (*it)->actionCollection(), (*it)->instance()->aboutData()->programName() );
dlg.configure();
@@ -320,15 +320,15 @@ void %{APPNAMELC}kmdi::optionsPreferences()
KConfigDialog *dialog = new KConfigDialog(this, "settings", Settings::self(), KDialogBase::Swallow);
dialog->addPage(new prefs(), i18n("General"), "package_settings");
- connect(dialog, SIGNAL(settingsChanged()), this, SLOT(settingsChanged()));
+ connect(dialog, TQT_SIGNAL(settingsChanged()), this, TQT_SLOT(settingsChanged()));
dialog->show();
}
void %{APPNAMELC}kmdi::settingsChanged()
{
// propagate the changes to our views
- /*QValueList<%{APPNAMELC}kmdiView*>::iterator it = m_views.begin();
- QValueList<%{APPNAMELC}kmdiView*>::iterator end = m_views.end();
+ /*TQValueList<%{APPNAMELC}kmdiView*>::iterator it = m_views.begin();
+ TQValueList<%{APPNAMELC}kmdiView*>::iterator end = m_views.end();
for (; it != end; ++it)
{
%{APPNAMELC}kmdiView *view = *it;
@@ -336,19 +336,19 @@ void %{APPNAMELC}kmdi::settingsChanged()
}*/
}
-void %{APPNAMELC}kmdi::changeStatusbar(const QString& text)
+void %{APPNAMELC}kmdi::changeStatusbar(const TQString& text)
{
// display the text on the statusbar
statusBar()->message(text, 2000);
}
-void %{APPNAMELC}kmdi::dragEnterEvent(QDragEnterEvent *event)
+void %{APPNAMELC}kmdi::dragEnterEvent(TQDragEnterEvent *event)
{
// accept uri drops only
event->accept(KURLDrag::canDecode(event));
}
-void %{APPNAMELC}kmdi::dropEvent(QDropEvent *event)
+void %{APPNAMELC}kmdi::dropEvent(TQDropEvent *event)
{
KURL::List urls;
@@ -365,7 +365,7 @@ void %{APPNAMELC}kmdi::dropEvent(QDropEvent *event)
bool %{APPNAMELC}kmdi::queryClose()
{
- QValueList<%{APPNAMELC}kmdiView*>::iterator it;
+ TQValueList<%{APPNAMELC}kmdiView*>::iterator it;
// check if we can close all documents
for (it = m_views.begin(); it != m_views.end(); ++it)
diff --git a/languages/cpp/app_templates/kscons_kmdi/appkmdi.h b/languages/cpp/app_templates/kscons_kmdi/appkmdi.h
index 370a3034..8ff90205 100644
--- a/languages/cpp/app_templates/kscons_kmdi/appkmdi.h
+++ b/languages/cpp/app_templates/kscons_kmdi/appkmdi.h
@@ -3,7 +3,7 @@
#ifndef _%{APPNAMEUC}KMDI_H
#define _%{APPNAMEUC}KMDI_H
-#include <qvaluelist.h>
+#include <tqvaluelist.h>
#include <kapplication.h>
#include <kmdimainfrm.h>
@@ -37,8 +37,8 @@ class %{APPNAMELC}kmdi : public KMdiMainFrm
void openURL( const KURL& );
protected:
- virtual void dragEnterEvent(QDragEnterEvent *event);
- virtual void dropEvent(QDropEvent *event);
+ virtual void dragEnterEvent(TQDragEnterEvent *event);
+ virtual void dropEvent(TQDropEvent *event);
virtual bool queryClose();
private slots:
@@ -57,7 +57,7 @@ class %{APPNAMELC}kmdi : public KMdiMainFrm
void newToolbarConfig();
- void changeStatusbar(const QString& text);
+ void changeStatusbar(const TQString& text);
void currentChanged( KMdiChildView *current );
bool requestClose(KMdiChildView* view);
@@ -68,7 +68,7 @@ class %{APPNAMELC}kmdi : public KMdiMainFrm
void setupAccel();
void setupActions();
- QValueList<%{APPNAMELC}kmdiView*> m_views;
+ TQValueList<%{APPNAMELC}kmdiView*> m_views;
KToggleAction *m_toolbarAction;
KToggleAction *m_statusbarAction;
diff --git a/languages/cpp/app_templates/kscons_kmdi/appkmdiView.cpp b/languages/cpp/app_templates/kscons_kmdi/appkmdiView.cpp
index c4cfbf65..d7c00001 100644
--- a/languages/cpp/app_templates/kscons_kmdi/appkmdiView.cpp
+++ b/languages/cpp/app_templates/kscons_kmdi/appkmdiView.cpp
@@ -1,7 +1,7 @@
%{CPP_TEMPLATE}
-#include <qpixmap.h>
-#include <qlayout.h>
+#include <tqpixmap.h>
+#include <tqlayout.h>
#include <kiconloader.h>
#include <klocale.h>
@@ -13,7 +13,7 @@
#include "%{APPNAMELC}kmdiView.h"
- %{APPNAMELC}kmdiView::%{APPNAMELC}kmdiView( QWidget *parentWidget, const char *name )
+ %{APPNAMELC}kmdiView::%{APPNAMELC}kmdiView( TQWidget *parentWidget, const char *name )
: KMdiChildView( parentWidget, name )
{
m_part = NULL;
@@ -35,11 +35,11 @@
part()->widget()->setFocus();
setFocusProxy(part()->widget());
- QBoxLayout* layout = new QHBoxLayout(this, 0, -1, "kdissertviewlayout" );
- part()->widget()->reparent( this, QPoint(0, 0) );
+ TQBoxLayout* layout = new TQHBoxLayout(this, 0, -1, "kdissertviewlayout" );
+ part()->widget()->reparent( this, TQPoint(0, 0) );
layout->addWidget( part()->widget() );
- // connect( m_part, SIGNAL(stateChanged()), this, SLOT(updateCaption()) );
+ // connect( m_part, TQT_SIGNAL(stateChanged()), this, TQT_SLOT(updateCaption()) );
}
else
{
diff --git a/languages/cpp/app_templates/kscons_kmdi/appkmdiView.h b/languages/cpp/app_templates/kscons_kmdi/appkmdiView.h
index 66e5203b..af05df48 100644
--- a/languages/cpp/app_templates/kscons_kmdi/appkmdiView.h
+++ b/languages/cpp/app_templates/kscons_kmdi/appkmdiView.h
@@ -16,7 +16,7 @@ class %{APPNAMELC}kmdiView : public KMdiChildView
{
Q_OBJECT
public:
- %{APPNAMELC}kmdiView( QWidget *parentWidget=0L, const char *name=0L );
+ %{APPNAMELC}kmdiView( TQWidget *parentWidget=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 da41685f..8171c6b8 100644
--- a/languages/cpp/app_templates/kscons_kmdi/kmdikonsole.cpp
+++ b/languages/cpp/app_templates/kscons_kmdi/kmdikonsole.cpp
@@ -1,7 +1,7 @@
%{CPP_TEMPLATE}
-#include <qfileinfo.h>
-#include <qframe.h>
+#include <tqfileinfo.h>
+#include <tqframe.h>
#include <kparts/part.h>
#include <kate/document.h>
@@ -12,7 +12,7 @@
#include "kmdikonsole.h"
-kmdikonsole::kmdikonsole(QWidget *parent, const char *name) : QVBox(parent, name)
+kmdikonsole::kmdikonsole(TQWidget *parent, const char *name) : TQVBox(parent, name)
{
m_haskonsole = false;
respawn();
@@ -31,17 +31,17 @@ void kmdikonsole::respawn()
if (!m_part) return;
- if (m_part->widget()->inherits("QFrame"))
- ((QFrame*)m_part->widget())->setFrameStyle(QFrame::Panel|QFrame::Sunken);
+ if (m_part->widget()->inherits("TQFrame"))
+ ((TQFrame*)m_part->widget())->setFrameStyle(TQFrame::Panel|TQFrame::Sunken);
m_haskonsole=true;
- connect( m_part, SIGNAL(destroyed()), this, SLOT(slotDestroyed()) );
+ connect( m_part, TQT_SIGNAL(destroyed()), this, TQT_SLOT(slotDestroyed()) );
m_part->widget()->show();
show();
}
-void kmdikonsole::setDirectory(const QString &dirname)
+void kmdikonsole::setDirectory(const TQString &dirname)
{
if (m_haskonsole)
{
@@ -51,9 +51,9 @@ void kmdikonsole::setDirectory(const QString &dirname)
}
}
-void kmdikonsole::showEvent(QShowEvent *ev)
+void kmdikonsole::showEvent(TQShowEvent *ev)
{
- QWidget::showEvent(ev);
+ TQWidget::showEvent(ev);
activate();
}
diff --git a/languages/cpp/app_templates/kscons_kmdi/kmdikonsole.h b/languages/cpp/app_templates/kscons_kmdi/kmdikonsole.h
index 83adb417..ef5a2c1e 100644
--- a/languages/cpp/app_templates/kscons_kmdi/kmdikonsole.h
+++ b/languages/cpp/app_templates/kscons_kmdi/kmdikonsole.h
@@ -3,18 +3,18 @@
#ifndef KMDIKONSOLE_H
#define KMDIKONSOLE_H
-#include <qvbox.h>
+#include <tqvbox.h>
class kmdikonsole : public QVBox
{
Q_OBJECT
public:
- kmdikonsole( QWidget* parent, const char* name=0);
+ kmdikonsole( TQWidget* parent, const char* name=0);
~kmdikonsole();
public slots:
- void setDirectory(const QString & dir);
+ void setDirectory(const TQString & dir);
void activate();
private slots:
@@ -22,7 +22,7 @@ class kmdikonsole : public QVBox
void respawn();
protected:
- void showEvent(QShowEvent *ev);
+ void showEvent(TQShowEvent *ev);
private:
KParts::ReadOnlyPart *m_part;
diff --git a/languages/cpp/app_templates/kscons_kxt/app.cpp b/languages/cpp/app_templates/kscons_kxt/app.cpp
index bc343554..2a696ea0 100644
--- a/languages/cpp/app_templates/kscons_kxt/app.cpp
+++ b/languages/cpp/app_templates/kscons_kxt/app.cpp
@@ -4,10 +4,10 @@
#include "settings.h"
#include "prefs.h"
-#include <qdragobject.h>
+#include <tqdragobject.h>
#include <kprinter.h>
-#include <qpainter.h>
-#include <qpaintdevicemetrics.h>
+#include <tqpainter.h>
+#include <tqpaintdevicemetrics.h>
#include <kconfigdialog.h>
#include <kglobal.h>
@@ -48,10 +48,10 @@
setAutoSaveSettings();
// allow the view to change the statusbar and caption
- connect(m_view, SIGNAL(signalChangeStatusbar(const QString&)),
- this, SLOT(changeStatusbar(const QString&)));
- connect(m_view, SIGNAL(signalChangeCaption(const QString&)),
- this, SLOT(changeCaption(const QString&)));
+ connect(m_view, TQT_SIGNAL(signalChangeStatusbar(const TQString&)),
+ this, TQT_SLOT(changeStatusbar(const TQString&)));
+ connect(m_view, TQT_SIGNAL(signalChangeCaption(const TQString&)),
+ this, TQT_SLOT(changeCaption(const TQString&)));
showTipOnStart();
}
@@ -62,22 +62,22 @@
void %{APPNAME}::setupActions()
{
- KStdAction::openNew(this, SLOT(fileNew()), actionCollection());
- KStdAction::quit(kapp, SLOT(quit()), actionCollection());
+ KStdAction::openNew(this, TQT_SLOT(fileNew()), actionCollection());
+ KStdAction::quit(kapp, TQT_SLOT(quit()), actionCollection());
- m_toolbarAction = KStdAction::showToolbar(this, SLOT(optionsShowToolbar()), actionCollection());
- m_statusbarAction = KStdAction::showStatusbar(this, SLOT(optionsShowStatusbar()), actionCollection());
+ m_toolbarAction = KStdAction::showToolbar(this, TQT_SLOT(optionsShowToolbar()), actionCollection());
+ m_statusbarAction = KStdAction::showStatusbar(this, TQT_SLOT(optionsShowStatusbar()), actionCollection());
- KStdAction::tipOfDay( this, SLOT( showTip() ), actionCollection()
+ KStdAction::tipOfDay( this, TQT_SLOT( showTip() ), actionCollection()
)->setWhatsThis(i18n("This shows useful tips on the use of this application."));
- KStdAction::keyBindings(this, SLOT(optionsConfigureKeys()), actionCollection());
- KStdAction::configureToolbars(this, SLOT(optionsConfigureToolbars()), actionCollection());
- KStdAction::preferences(this, SLOT(optionsPreferences()), actionCollection());
+ KStdAction::keyBindings(this, TQT_SLOT(optionsConfigureKeys()), actionCollection());
+ KStdAction::configureToolbars(this, TQT_SLOT(optionsConfigureToolbars()), actionCollection());
+ KStdAction::preferences(this, TQT_SLOT(optionsPreferences()), actionCollection());
// custom menu and menu item - the slot is in the class %{APPNAME}View
KAction *custom = new KAction(i18n("Swi&tch Colors"), 0,
- m_view, SLOT(switchColors()),
+ m_view, TQT_SLOT(switchColors()),
actionCollection(), "switch_action");
createGUI();
@@ -140,17 +140,17 @@ void %{APPNAME}::optionsPreferences()
// to the names of the variables in the .kcfg file
KConfigDialog *dialog = new KConfigDialog(this, "settings", Settings::self(), KDialogBase::Swallow);
dialog->addPage(new Prefs(), i18n("General"), "package_settings");
- connect(dialog, SIGNAL(settingsChanged()), m_view, SLOT(settingsChanged()));
+ connect(dialog, TQT_SIGNAL(settingsChanged()), m_view, TQT_SLOT(settingsChanged()));
dialog->show();
}
-void %{APPNAME}::changeStatusbar(const QString& text)
+void %{APPNAME}::changeStatusbar(const TQString& text)
{
// display the text on the statusbar
statusBar()->message(text, 2000);
}
-void %{APPNAME}::changeCaption(const QString& text)
+void %{APPNAME}::changeCaption(const TQString& text)
{
// display the text on the caption
setCaption(text);
@@ -158,7 +158,7 @@ void %{APPNAME}::changeCaption(const QString& text)
void %{APPNAME}::showTip()
{
- KTipDialog::showTip(this,QString::null,true);
+ KTipDialog::showTip(this,TQString::null,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 4f855793..e812716d 100644
--- a/languages/cpp/app_templates/kscons_kxt/app.h
+++ b/languages/cpp/app_templates/kscons_kxt/app.h
@@ -53,8 +53,8 @@ private slots:
void newToolbarConfig();
void showTip();
- void changeStatusbar(const QString& text);
- void changeCaption(const QString& text);
+ void changeStatusbar(const TQString& text);
+ void changeCaption(const TQString& text);
private:
void setupAccel();
diff --git a/languages/cpp/app_templates/kscons_kxt/appview.cpp b/languages/cpp/app_templates/kscons_kxt/appview.cpp
index 7dc99f61..2bcc9c6a 100644
--- a/languages/cpp/app_templates/kscons_kxt/appview.cpp
+++ b/languages/cpp/app_templates/kscons_kxt/appview.cpp
@@ -4,9 +4,9 @@
#include "settings.h"
#include <klocale.h>
-#include <qlabel.h>
+#include <tqlabel.h>
-%{APPNAME}View::%{APPNAME}View(QWidget *parent)
+%{APPNAME}View::%{APPNAME}View(TQWidget *parent)
: %{APPNAME}view_base(parent)
{
settingsChanged();
@@ -20,7 +20,7 @@
void %{APPNAME}View::switchColors()
{
// switch the foreground/background colors of the label
- QColor color = Settings::col_background();
+ TQColor color = Settings::col_background();
Settings::setCol_background( Settings::col_foreground() );
Settings::setCol_foreground( color );
diff --git a/languages/cpp/app_templates/kscons_kxt/appview.h b/languages/cpp/app_templates/kscons_kxt/appview.h
index 86d097a4..96f0845f 100644
--- a/languages/cpp/app_templates/kscons_kxt/appview.h
+++ b/languages/cpp/app_templates/kscons_kxt/appview.h
@@ -3,7 +3,7 @@
#ifndef _%{APPNAMEUC}VIEW_H_
#define _%{APPNAMEUC}VIEW_H_
-#include <qwidget.h>
+#include <tqwidget.h>
#include "%{APPNAMELC}view_base.h"
@@ -26,7 +26,7 @@ public:
/**
* Default constructor
*/
- %{APPNAME}View(QWidget *parent);
+ %{APPNAME}View(TQWidget *parent);
/**
* Destructor
@@ -37,12 +37,12 @@ signals:
/**
* Use this signal to change the content of the statusbar
*/
- void signalChangeStatusbar(const QString& text);
+ void signalChangeStatusbar(const TQString& text);
/**
* Use this signal to change the content of the caption
*/
- void signalChangeCaption(const QString& text);
+ void signalChangeCaption(const TQString& text);
public slots:
void switchColors();
diff --git a/languages/cpp/app_templates/kscreensaver/kscreensaver.cpp b/languages/cpp/app_templates/kscreensaver/kscreensaver.cpp
index f4418571..efdbf40b 100644
--- a/languages/cpp/app_templates/kscreensaver/kscreensaver.cpp
+++ b/languages/cpp/app_templates/kscreensaver/kscreensaver.cpp
@@ -1,8 +1,8 @@
%{CPP_TEMPLATE}
#include <stdlib.h>
-#include <qcheckbox.h>
-#include <qcolor.h>
+#include <tqcheckbox.h>
+#include <tqcolor.h>
#include <kapplication.h>
#include <klocale.h>
#include <kpushbutton.h>
@@ -24,7 +24,7 @@ extern "C"
return new %{APPNAME}( id );
}
- QDialog *kss_setup()
+ TQDialog *kss_setup()
{
KGlobal::locale()->insertCatalogue("%{APPNAMELC}");
return new %{APPNAME}Setup();
@@ -33,15 +33,15 @@ extern "C"
//-----------------------------------------------------------------------------
//! dialog to setup screen saver parameters
-%{APPNAME}Setup::%{APPNAME}Setup( QWidget *parent, const char *name )
+%{APPNAME}Setup::%{APPNAME}Setup( TQWidget *parent, const char *name )
: %{APPNAME}UI( parent, name, TRUE )
{
/// @todo
//Connect your signals and slots here to configure the screen saver.
- connect( OkayPushButton, SIGNAL( released() ),
- SLOT( slotOkPressed() ) );
- connect( CancelPushButton, SIGNAL( released() ),
- SLOT( slotCancelPressed() ) );
+ connect( OkayPushButton, TQT_SIGNAL( released() ),
+ TQT_SLOT( slotOkPressed() ) );
+ connect( CancelPushButton, TQT_SIGNAL( released() ),
+ TQT_SLOT( slotCancelPressed() ) );
}
@@ -101,7 +101,7 @@ void %{APPNAME}::blank()
{
/// @todo
//Add your code to render the screen.
- setBackgroundColor( QColor(black) );
+ setBackgroundColor( TQColor(black) );
//
erase();
}
diff --git a/languages/cpp/app_templates/kscreensaver/kscreensaver.h b/languages/cpp/app_templates/kscreensaver/kscreensaver.h
index 1301083d..a5d252a5 100644
--- a/languages/cpp/app_templates/kscreensaver/kscreensaver.h
+++ b/languages/cpp/app_templates/kscreensaver/kscreensaver.h
@@ -21,7 +21,7 @@ class %{APPNAME}Setup : public %{APPNAME}UI
{
Q_OBJECT
public:
- %{APPNAME}Setup( QWidget *parent = NULL, const char *name = NULL );
+ %{APPNAME}Setup( TQWidget *parent = NULL, const char *name = NULL );
private slots:
void slotOkPressed();
diff --git a/languages/cpp/app_templates/kxt/app.cpp b/languages/cpp/app_templates/kxt/app.cpp
index 6e2ce524..ce5577cb 100644
--- a/languages/cpp/app_templates/kxt/app.cpp
+++ b/languages/cpp/app_templates/kxt/app.cpp
@@ -4,10 +4,10 @@
#include "settings.h"
#include "prefs.h"
-#include <qdragobject.h>
+#include <tqdragobject.h>
#include <kprinter.h>
-#include <qpainter.h>
-#include <qpaintdevicemetrics.h>
+#include <tqpainter.h>
+#include <tqpaintdevicemetrics.h>
#include <kconfigdialog.h>
#include <kglobal.h>
@@ -47,10 +47,10 @@
setAutoSaveSettings();
// allow the view to change the statusbar and caption
- connect(m_view, SIGNAL(signalChangeStatusbar(const QString&)),
- this, SLOT(changeStatusbar(const QString&)));
- connect(m_view, SIGNAL(signalChangeCaption(const QString&)),
- this, SLOT(changeCaption(const QString&)));
+ connect(m_view, TQT_SIGNAL(signalChangeStatusbar(const TQString&)),
+ this, TQT_SLOT(changeStatusbar(const TQString&)));
+ connect(m_view, TQT_SIGNAL(signalChangeCaption(const TQString&)),
+ this, TQT_SLOT(changeCaption(const TQString&)));
}
@@ -60,19 +60,19 @@
void %{APPNAMELC}::setupActions()
{
- KStdAction::openNew(this, SLOT(fileNew()), actionCollection());
- KStdAction::quit(kapp, SLOT(quit()), actionCollection());
+ KStdAction::openNew(this, TQT_SLOT(fileNew()), actionCollection());
+ KStdAction::quit(kapp, TQT_SLOT(quit()), actionCollection());
- m_toolbarAction = KStdAction::showToolbar(this, SLOT(optionsShowToolbar()), actionCollection());
- m_statusbarAction = KStdAction::showStatusbar(this, SLOT(optionsShowStatusbar()), actionCollection());
+ m_toolbarAction = KStdAction::showToolbar(this, TQT_SLOT(optionsShowToolbar()), actionCollection());
+ m_statusbarAction = KStdAction::showStatusbar(this, TQT_SLOT(optionsShowStatusbar()), actionCollection());
- KStdAction::keyBindings(this, SLOT(optionsConfigureKeys()), actionCollection());
- KStdAction::configureToolbars(this, SLOT(optionsConfigureToolbars()), actionCollection());
- KStdAction::preferences(this, SLOT(optionsPreferences()), actionCollection());
+ KStdAction::keyBindings(this, TQT_SLOT(optionsConfigureKeys()), actionCollection());
+ KStdAction::configureToolbars(this, TQT_SLOT(optionsConfigureToolbars()), actionCollection());
+ KStdAction::preferences(this, TQT_SLOT(optionsPreferences()), actionCollection());
// custom menu and menu item - the slot is in the class %{APPNAMELC}View
KAction *custom = new KAction(i18n("Swi&tch Colors"), 0,
- m_view, SLOT(switchColors()),
+ m_view, TQT_SLOT(switchColors()),
actionCollection(), "switch_action");
createGUI();
@@ -135,17 +135,17 @@ void %{APPNAMELC}::optionsPreferences()
// to the names of the variables in the .kcfg file
KConfigDialog *dialog = new KConfigDialog(this, "settings", Settings::self(), KDialogBase::Swallow);
dialog->addPage(new Prefs(), i18n("General"), "package_settings");
- connect(dialog, SIGNAL(settingsChanged()), m_view, SLOT(settingsChanged()));
+ connect(dialog, TQT_SIGNAL(settingsChanged()), m_view, TQT_SLOT(settingsChanged()));
dialog->show();
}
-void %{APPNAMELC}::changeStatusbar(const QString& text)
+void %{APPNAMELC}::changeStatusbar(const TQString& text)
{
// display the text on the statusbar
statusBar()->message(text, 2000);
}
-void %{APPNAMELC}::changeCaption(const QString& text)
+void %{APPNAMELC}::changeCaption(const TQString& text)
{
// display the text on the caption
setCaption(text);
diff --git a/languages/cpp/app_templates/kxt/app.h b/languages/cpp/app_templates/kxt/app.h
index 22037de2..09f031c4 100644
--- a/languages/cpp/app_templates/kxt/app.h
+++ b/languages/cpp/app_templates/kxt/app.h
@@ -47,8 +47,8 @@ private slots:
void optionsPreferences();
void newToolbarConfig();
- void changeStatusbar(const QString& text);
- void changeCaption(const QString& text);
+ void changeStatusbar(const TQString& text);
+ void changeCaption(const TQString& text);
private:
void setupAccel();
diff --git a/languages/cpp/app_templates/kxt/appview.cpp b/languages/cpp/app_templates/kxt/appview.cpp
index 35e23682..30d627fe 100644
--- a/languages/cpp/app_templates/kxt/appview.cpp
+++ b/languages/cpp/app_templates/kxt/appview.cpp
@@ -4,9 +4,9 @@
#include "settings.h"
#include <klocale.h>
-#include <qlabel.h>
+#include <tqlabel.h>
-%{APPNAMELC}View::%{APPNAMELC}View(QWidget *parent)
+%{APPNAMELC}View::%{APPNAMELC}View(TQWidget *parent)
: %{APPNAMELC}view_base(parent)
{
settingsChanged();
@@ -20,7 +20,7 @@
void %{APPNAMELC}View::switchColors()
{
// switch the foreground/background colors of the label
- QColor color = Settings::col_background();
+ TQColor color = Settings::col_background();
Settings::setCol_background( Settings::col_foreground() );
Settings::setCol_foreground( color );
diff --git a/languages/cpp/app_templates/kxt/appview.h b/languages/cpp/app_templates/kxt/appview.h
index 45a10de7..5b69ae24 100644
--- a/languages/cpp/app_templates/kxt/appview.h
+++ b/languages/cpp/app_templates/kxt/appview.h
@@ -3,7 +3,7 @@
#ifndef _%{APPNAMEUC}VIEW_H_
#define _%{APPNAMEUC}VIEW_H_
-#include <qwidget.h>
+#include <tqwidget.h>
#include "%{APPNAMELC}view_base.h"
@@ -26,7 +26,7 @@ public:
/**
* Default constructor
*/
- %{APPNAMELC}View(QWidget *parent);
+ %{APPNAMELC}View(TQWidget *parent);
/**
* Destructor
@@ -37,12 +37,12 @@ signals:
/**
* Use this signal to change the content of the statusbar
*/
- void signalChangeStatusbar(const QString& text);
+ void signalChangeStatusbar(const TQString& text);
/**
* Use this signal to change the content of the caption
*/
- void signalChangeCaption(const QString& text);
+ void signalChangeCaption(const TQString& text);
private slots:
void switchColors();
diff --git a/languages/cpp/app_templates/noatunui/plugin_impl.cpp b/languages/cpp/app_templates/noatunui/plugin_impl.cpp
index 1b5eea45..7f4cda15 100644
--- a/languages/cpp/app_templates/noatunui/plugin_impl.cpp
+++ b/languages/cpp/app_templates/noatunui/plugin_impl.cpp
@@ -9,12 +9,12 @@
#include <noatun/controls.h>
#include <noatun/effects.h>
-#include <qpushbutton.h>
-#include <qdragobject.h>
-#include <qlayout.h>
-#include <qtooltip.h>
-#include <qobjectlist.h>
-#include <qobjectdict.h>
+#include <tqpushbutton.h>
+#include <tqdragobject.h>
+#include <tqlayout.h>
+#include <tqtooltip.h>
+#include <tqobjectlist.h>
+#include <tqobjectdict.h>
#include <kpopupmenu.h>
#include <kstatusbar.h>
@@ -25,53 +25,53 @@
//#include <kfiledialog.h>
//#include <kconfig.h>
-%{APPNAME}UI::%{APPNAME}UI() : QWidget(0,"%{APPNAME}UI"), UserInterface()
+%{APPNAME}UI::%{APPNAME}UI() : TQWidget(0,"%{APPNAME}UI"), UserInterface()
{
setAcceptDrops(true);
static const int buttonSize=32;
- mBack=new QPushButton(this);
+ mBack=new TQPushButton(this);
mBack->setFixedSize(buttonSize,buttonSize);
mBack->setPixmap(BarIcon("noatunback"));
- connect(mBack, SIGNAL(clicked()), napp->player(), SLOT(back()));
- QToolTip::add(mBack,i18n("Back"));
+ connect(mBack, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(back()));
+ TQToolTip::add(mBack,i18n("Back"));
- mStop=new QPushButton(this);
+ mStop=new TQPushButton(this);
mStop->setFixedSize(buttonSize,buttonSize);
mStop->setPixmap(BarIcon("noatunstop"));
- connect(mStop, SIGNAL(clicked()), napp->player(), SLOT(stop()));
- QToolTip::add(mStop, i18n("Stop"));
+ connect(mStop, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(stop()));
+ TQToolTip::add(mStop, i18n("Stop"));
- mPlay=new QPushButton(this);
+ mPlay=new TQPushButton(this);
mPlay->setToggleButton(true);
mPlay->setFixedSize(buttonSize,buttonSize);
mPlay->setPixmap(BarIcon("noatunplay"));
- connect(mPlay, SIGNAL(clicked()), napp->player(), SLOT(playpause()));
- QToolTip::add(mPlay, i18n("Play"));
+ connect(mPlay, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(playpause()));
+ TQToolTip::add(mPlay, i18n("Play"));
- mForward=new QPushButton(this);
+ mForward=new TQPushButton(this);
mForward->setFixedSize(buttonSize,buttonSize);
mForward->setPixmap(BarIcon("noatunforward"));
- connect(mForward, SIGNAL(clicked()), napp->player(), SLOT(forward()));
- QToolTip::add(mForward, i18n("Forward"));
+ connect(mForward, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(forward()));
+ TQToolTip::add(mForward, i18n("Forward"));
- mPlaylist=new QPushButton(this);
+ mPlaylist=new TQPushButton(this);
mPlaylist->setToggleButton(true);
mPlaylist->setFixedSize(buttonSize,buttonSize);
mPlaylist->setPixmap(BarIcon("noatunplaylist"));
- connect(mPlaylist, SIGNAL(clicked()), napp->player(), SLOT(toggleListView()));
- QToolTip::add(mPlaylist, i18n("Playlist"));
+ connect(mPlaylist, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(toggleListView()));
+ TQToolTip::add(mPlaylist, i18n("Playlist"));
- mLoop=new QPushButton(this);
+ mLoop=new TQPushButton(this);
mLoop->setFixedSize(buttonSize,buttonSize);
mLoop->setPixmap(BarIcon("noatunloopnone"));
- connect(mLoop, SIGNAL(clicked()), napp->player(), SLOT(loop()));
- QToolTip::add(mLoop, i18n("Change loop style"));
+ connect(mLoop, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(loop()));
+ TQToolTip::add(mLoop, i18n("Change loop style"));
- mPopup=new QPushButton(this);
+ mPopup=new TQPushButton(this);
mPopup->setFixedSize(buttonSize,buttonSize);
mPopup->setPixmap(BarIcon("noatun"));
- connect(mPopup, SIGNAL(clicked()), SLOT(popup()));
+ connect(mPopup, TQT_SIGNAL(clicked()), TQT_SLOT(popup()));
mVolume=new L33tSlider(0,100,10,0, Horizontal, this);
@@ -81,7 +81,7 @@
mStatusBar=new KStatusBar(this);
- QGridLayout *l=new QGridLayout(this);
+ TQGridLayout *l=new TQGridLayout(this);
l->addWidget(mBack,0,0);
l->addWidget(mStop,0,1);
l->addWidget(mPlay,0,2);
@@ -98,33 +98,33 @@
statusBar()->message(i18n("No File Loaded"));
statusBar()->insertItem("--:--/--:--", 1, 0, true);
- connect(napp, SIGNAL(hideYourself()), this, SLOT(hide()) );
- connect(napp, SIGNAL(showYourself()), this, SLOT(show()) );
+ connect(napp, TQT_SIGNAL(hideYourself()), this, TQT_SLOT(hide()) );
+ connect(napp, TQT_SIGNAL(showYourself()), this, TQT_SLOT(show()) );
- connect(napp->player(), SIGNAL(playing()), this, SLOT(slotPlaying()));
- connect(napp->player(), SIGNAL(stopped()), this, SLOT(slotStopped()));
- connect(napp->player(), SIGNAL(paused()), this, SLOT(slotPaused()));
+ connect(napp->player(), TQT_SIGNAL(playing()), this, TQT_SLOT(slotPlaying()));
+ connect(napp->player(), TQT_SIGNAL(stopped()), this, TQT_SLOT(slotStopped()));
+ connect(napp->player(), TQT_SIGNAL(paused()), this, TQT_SLOT(slotPaused()));
napp->player()->handleButtons();
- connect(napp->player(), SIGNAL(timeout()), this, SLOT(slotTimeout()));
- connect(napp->player(), SIGNAL(loopTypeChange(int)), this, SLOT(changeLoopType(int)));
+ connect(napp->player(), TQT_SIGNAL(timeout()), this, TQT_SLOT(slotTimeout()));
+ connect(napp->player(), TQT_SIGNAL(loopTypeChange(int)), this, TQT_SLOT(changeLoopType(int)));
/* This skipToWrapper is needed to pass milliseconds to Player() as everybody
* below the GUI is based on milliseconds instead of some unprecise thingy
* like seconds or mille */
- connect(seeker(), SIGNAL(userChanged(int)), this, SLOT(skipToWrapper(int)));
- connect(this, SIGNAL(skipTo(int)), napp->player(), SLOT(skipTo(int)));
- connect(seeker(), SIGNAL(sliderMoved(int)), SLOT(sliderMoved(int)));
+ connect(seeker(), TQT_SIGNAL(userChanged(int)), this, TQT_SLOT(skipToWrapper(int)));
+ connect(this, TQT_SIGNAL(skipTo(int)), napp->player(), TQT_SLOT(skipTo(int)));
+ connect(seeker(), TQT_SIGNAL(sliderMoved(int)), TQT_SLOT(sliderMoved(int)));
- connect(mVolume, SIGNAL(sliderMoved(int)), napp->player(), SLOT(setVolume(int)));
- connect(mVolume, SIGNAL(userChanged(int)), napp->player(), SLOT(setVolume(int)));
+ connect(mVolume, TQT_SIGNAL(sliderMoved(int)), napp->player(), TQT_SLOT(setVolume(int)));
+ connect(mVolume, TQT_SIGNAL(userChanged(int)), napp->player(), TQT_SLOT(setVolume(int)));
- connect(napp->player(), SIGNAL(playlistShown()), SLOT(playlistShown()));
- connect(napp->player(), SIGNAL(playlistHidden()), SLOT(playlistHidden()));
+ connect(napp->player(), TQT_SIGNAL(playlistShown()), TQT_SLOT(playlistShown()));
+ connect(napp->player(), TQT_SIGNAL(playlistHidden()), TQT_SLOT(playlistHidden()));
// Event Filter for the RMB
- for (QPtrListIterator<QObject> i(*children()); i.current(); ++i)
+ for (TQPtrListIterator<TQObject> i(*children()); i.current(); ++i)
(*i)->installEventFilter(this);
setCaption("Noatun");
@@ -140,23 +140,23 @@
/** save settings here */
}
-void %{APPNAME}UI::closeEvent(QCloseEvent*)
+void %{APPNAME}UI::closeEvent(TQCloseEvent*)
{
unload();
}
-void %{APPNAME}UI::showEvent(QShowEvent*e)
+void %{APPNAME}UI::showEvent(TQShowEvent*e)
{
- QWidget::showEvent(e);
+ TQWidget::showEvent(e);
}
-void %{APPNAME}UI::dragEnterEvent(QDragEnterEvent *event)
+void %{APPNAME}UI::dragEnterEvent(TQDragEnterEvent *event)
{
// accept uri drops only
event->accept(KURLDrag::canDecode(event));
}
-void %{APPNAME}UI::dropEvent(QDropEvent *event)
+void %{APPNAME}UI::dropEvent(TQDropEvent *event)
{
KURL::List uri;
if (KURLDrag::decode(event, uri))
@@ -166,14 +166,14 @@ void %{APPNAME}UI::dropEvent(QDropEvent *event)
}
}
-void %{APPNAME}UI::mouseReleaseEvent(QMouseEvent *e)
+void %{APPNAME}UI::mouseReleaseEvent(TQMouseEvent *e)
{
- QWidget::mouseReleaseEvent(e);
+ TQWidget::mouseReleaseEvent(e);
if (e->button()!=RightButton) return;
NoatunStdAction::ContextMenu::showContextMenu();
}
-void %{APPNAME}UI::changeStatusbar(const QString& text, const QString &text2)
+void %{APPNAME}UI::changeStatusbar(const TQString& text, const TQString &text2)
{
if (!text2.isNull())
statusBar()->changeItem(text2, 1);
@@ -181,7 +181,7 @@ void %{APPNAME}UI::changeStatusbar(const QString& text, const QString &text2)
statusBar()->message(!text.isNull() ? text : napp->player()->current().title());
}
-void %{APPNAME}UI::changeCaption(const QString& text)
+void %{APPNAME}UI::changeCaption(const TQString& text)
{
setCaption(text);
}
@@ -265,21 +265,21 @@ void %{APPNAME}UI::changeLoopType(int t)
}
}
-bool %{APPNAME}UI::eventFilter(QObject *o, QEvent *e)
+bool %{APPNAME}UI::eventFilter(TQObject *o, TQEvent *e)
{
- if ((e->type() == QEvent::MouseButtonRelease)
- && ((static_cast<QMouseEvent*>(e))->button()==RightButton))
+ if ((e->type() == TQEvent::MouseButtonRelease)
+ && ((static_cast<TQMouseEvent*>(e))->button()==RightButton))
{
- mouseReleaseEvent(static_cast<QMouseEvent*>(e));
+ mouseReleaseEvent(static_cast<TQMouseEvent*>(e));
return true;
}
- if (e->type() == QEvent::Wheel)
+ if (e->type() == TQEvent::Wheel)
{
- wheelEvent(static_cast<QWheelEvent*>(e));
+ wheelEvent(static_cast<TQWheelEvent*>(e));
return true;
}
- return QWidget::eventFilter(o, e);
+ return TQWidget::eventFilter(o, e);
}
void %{APPNAME}UI::playlistShown()
@@ -292,7 +292,7 @@ void %{APPNAME}UI::playlistHidden()
mPlaylist->setOn(false);
}
-void %{APPNAME}UI::wheelEvent(QWheelEvent *e)
+void %{APPNAME}UI::wheelEvent(TQWheelEvent *e)
{
int delta=e->delta();
mVolume->setValue(mVolume->value()+(delta/120));
diff --git a/languages/cpp/app_templates/noatunui/plugin_impl.h b/languages/cpp/app_templates/noatunui/plugin_impl.h
index 970246d4..e918f925 100644
--- a/languages/cpp/app_templates/noatunui/plugin_impl.h
+++ b/languages/cpp/app_templates/noatunui/plugin_impl.h
@@ -23,27 +23,27 @@ class KStatusBar;
* @version 0.1
* Note: You can user _every_ widget for implementing your userinterface.
*/
-class %{APPNAME}UI : public QWidget, public UserInterface
+class %{APPNAME}UI : public TQWidget, public UserInterface
{
Q_OBJECT
public:
%{APPNAME}UI();
virtual ~%{APPNAME}UI();
- void load(const QString& url);
+ void load(const TQString& url);
protected:
- virtual void dragEnterEvent(QDragEnterEvent *event);
- virtual void dropEvent(QDropEvent *event);
- virtual void closeEvent(QCloseEvent*);
- virtual void showEvent(QShowEvent*e);
+ virtual void dragEnterEvent(TQDragEnterEvent *event);
+ virtual void dropEvent(TQDropEvent *event);
+ virtual void closeEvent(TQCloseEvent*);
+ virtual void showEvent(TQShowEvent*e);
/** RMB -> context menu */
- virtual void mouseReleaseEvent(QMouseEvent *);
- virtual bool eventFilter(QObject*, QEvent*);
+ virtual void mouseReleaseEvent(TQMouseEvent *);
+ virtual bool eventFilter(TQObject*, TQEvent*);
/** volume control */
- virtual void wheelEvent(QWheelEvent *e);
+ virtual void wheelEvent(TQWheelEvent *e);
protected:
- QSlider *seeker() const { return mSeeker; }
+ TQSlider *seeker() const { return mSeeker; }
KStatusBar *statusBar() const { return mStatusBar; }
public slots:
@@ -64,13 +64,13 @@ signals:
void skipTo( int ); // emitted by skipToWrapper()
private slots:
- void changeStatusbar(const QString& text, const QString &text2=0);
- void changeCaption(const QString& text);
+ void changeStatusbar(const TQString& text, const TQString &text2=0);
+ void changeCaption(const TQString& text);
void popup();
private:
- QPushButton *mBack, *mStop, *mPlay, *mForward, *mPlaylist, *mPopup, *mLoop;
- QSlider *mSeeker, *mVolume;
+ TQPushButton *mBack, *mStop, *mPlay, *mForward, *mPlaylist, *mPopup, *mLoop;
+ TQSlider *mSeeker, *mVolume;
KStatusBar *mStatusBar;
};
diff --git a/languages/cpp/app_templates/opieapp/example.cpp b/languages/cpp/app_templates/opieapp/example.cpp
index 84f3f9d5..ebb4233c 100644
--- a/languages/cpp/app_templates/opieapp/example.cpp
+++ b/languages/cpp/app_templates/opieapp/example.cpp
@@ -1,5 +1,5 @@
#include "%{APPNAMELC}.h"
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
#include <opie/oapplicationfactory.h>
typedef OApplicationFactory<%{APPNAME}> %{APPNAME}Factory;
@@ -9,10 +9,10 @@ OPIE_EXPORT_APP( %{APPNAME}Factory )
* Constructs a %{APPNAME} which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*/
-%{APPNAME}::%{APPNAME}( QWidget* parent, const char* name, WFlags fl )
+%{APPNAME}::%{APPNAME}( TQWidget* parent, const char* name, WFlags fl )
: %{APPNAME}Base( parent, name, fl )
{
- connect(quit, SIGNAL(clicked()), this, SLOT(goodBye()));
+ connect(quit, TQT_SIGNAL(clicked()), this, TQT_SLOT(goodBye()));
}
/*
diff --git a/languages/cpp/app_templates/opieapp/example.h b/languages/cpp/app_templates/opieapp/example.h
index 1ba8ead7..2a9c9efa 100644
--- a/languages/cpp/app_templates/opieapp/example.h
+++ b/languages/cpp/app_templates/opieapp/example.h
@@ -7,10 +7,10 @@ class %{APPNAME} : public %{APPNAME}Base
Q_OBJECT
public:
- static QString appName() {
- return QString::fromLatin1("%{APPNAMELC}" );
+ static TQString appName() {
+ return TQString::fromLatin1("%{APPNAMELC}" );
}
- %{APPNAME}( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ %{APPNAME}( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~%{APPNAME}();
private slots:
diff --git a/languages/cpp/app_templates/opieapplet/simpleimpl.cpp b/languages/cpp/app_templates/opieapplet/simpleimpl.cpp
index 1474a0e4..3264314c 100644
--- a/languages/cpp/app_templates/opieapplet/simpleimpl.cpp
+++ b/languages/cpp/app_templates/opieapplet/simpleimpl.cpp
@@ -1,6 +1,6 @@
-#include <qlabel.h>
-#include <qpainter.h>
-#include <qmessagebox.h>
+#include <tqlabel.h>
+#include <tqpainter.h>
+#include <tqmessagebox.h>
#include <qpe/applnk.h> // for AppLnk
#include <qpe/resource.h> // for Resource loading
@@ -8,8 +8,8 @@
#include "%{APPNAMELC}.h"
-%{APPNAME}::%{APPNAME}(QWidget *parent)
- : QWidget( parent, "%{APPNAME} Applet" ) {
+%{APPNAME}::%{APPNAME}(TQWidget *parent)
+ : TQWidget( parent, "%{APPNAME} Applet" ) {
/*
* we will load an Image, scale it for the right usage
* remember your applet might be used by different
@@ -19,7 +19,7 @@
* the only class that allows scaling.
*/
- QImage image = Resource::loadImage("%{APPNAMELC}/%{APPNAMELC}");
+ TQImage image = Resource::loadImage("%{APPNAMELC}/%{APPNAMELC}");
/*
* smooth scale to AppLnk smallIconSize for applest
* smallIconSize gets adjusted to the resolution
@@ -32,7 +32,7 @@
* now we need to convert the Image to a Pixmap cause these
* can be drawn more easily
*/
- m_pix = new QPixmap();
+ m_pix = new TQPixmap();
m_pix->convertFromImage( image );
/*
@@ -56,15 +56,15 @@
* global with mapToGlobal(). Then you might also need to
* move the widgets so it is visible
*/
-void %{APPNAME}::mousePressEvent(QMouseEvent* ) {
- QMessageBox::information(this, tr("No action taken"),
+void %{APPNAME}::mousePressEvent(TQMouseEvent* ) {
+ TQMessageBox::information(this, tr("No action taken"),
tr("<qt>This Plugin does not yet support anything usefule aye.</qt>"),
- QMessageBox::Ok );
+ TQMessageBox::Ok );
}
-void %{APPNAME}::paintEvent( QPaintEvent* ) {
- QPainter p(this);
+void %{APPNAME}::paintEvent( TQPaintEvent* ) {
+ TQPainter p(this);
/* simpy draw the pixmap from the start of this widget */
p.drawPixmap(0, 0, *m_pix );
@@ -89,7 +89,7 @@ void %{APPNAME}::paintEvent( QPaintEvent* ) {
/*
* For the taskbar interface return a Widget
*/
-QWidget* %{APPNAME}Impl::applet( QWidget* parent ) {
+TQWidget* %{APPNAME}Impl::applet( TQWidget* parent ) {
/*
* There are problems with ownership. So we add
* our ownlist and clear this;
diff --git a/languages/cpp/app_templates/opieapplet/simpleimpl.h b/languages/cpp/app_templates/opieapplet/simpleimpl.h
index 19475367..7cca8ee7 100644
--- a/languages/cpp/app_templates/opieapplet/simpleimpl.h
+++ b/languages/cpp/app_templates/opieapplet/simpleimpl.h
@@ -26,8 +26,8 @@
* luckiy there is a macro for the reference counting
* We provide an Implementation of the interface.
*/
-#include <qwidget.h>
-#include <qptrlist.h>
+#include <tqwidget.h>
+#include <tqptrlist.h>
#include <qpe/taskbarappletinterface.h>
@@ -35,18 +35,18 @@
/*
* Because we only draw an Icon in a fixed width and height
* we declare and define %{APPNAME} here and you could use QLabel
- * setPixmap or use QWidget and draw yourself.
+ * setPixmap or use TQWidget and draw yourself.
* You might also want to reimplement mouse*Event to use some simple actions
*/
-class %{APPNAME} : public QWidget {
+class %{APPNAME} : public TQWidget {
Q_OBJECT
public:
- %{APPNAME}(QWidget *parent);
+ %{APPNAME}(TQWidget *parent);
~%{APPNAME}();
private:
- void mousePressEvent( QMouseEvent* );
- void paintEvent( QPaintEvent* );
- QPixmap *m_pix;
+ void mousePressEvent( TQMouseEvent* );
+ void paintEvent( TQPaintEvent* );
+ TQPixmap *m_pix;
};
class %{APPNAME}Impl : public TaskbarAppletInterface {
@@ -57,7 +57,7 @@ public:
QRESULT queryInterface( const QUuid&, QUnknownInterface** );
- QWidget *applet( QWidget* parent );
+ TQWidget *applet( TQWidget* parent );
int position()const;
/*
diff --git a/languages/cpp/app_templates/opieinput/simpleimpl.cpp b/languages/cpp/app_templates/opieinput/simpleimpl.cpp
index 6da986eb..db2e4285 100644
--- a/languages/cpp/app_templates/opieinput/simpleimpl.cpp
+++ b/languages/cpp/app_templates/opieinput/simpleimpl.cpp
@@ -1,43 +1,43 @@
-#include <qwidget.h>
-#include <qcheckbox.h>
-#include <qlabel.h>
-#include <qsignalmapper.h>
-#include <qpushbutton.h>
+#include <tqwidget.h>
+#include <tqcheckbox.h>
+#include <tqlabel.h>
+#include <tqsignalmapper.h>
+#include <tqpushbutton.h>
#include <qpe/resource.h>
#include "%{APPNAMELC}.h"
-%{APPNAME}::%{APPNAME}(QWidget* par, WFlags fl )
- : QHBox(par, "name", fl )
+%{APPNAME}::%{APPNAME}(TQWidget* par, WFlags fl )
+ : TQHBox(par, "name", fl )
{
- QCheckBox *box1 = new QCheckBox(tr("Alt"),this);
- connect(box1,SIGNAL(toggled(bool)),
- this,SLOT(slotAlt(bool)));
+ TQCheckBox *box1 = new TQCheckBox(tr("Alt"),this);
+ connect(box1,TQT_SIGNAL(toggled(bool)),
+ this,TQT_SLOT(slotAlt(bool)));
m_alt = box1;
- box1 = new QCheckBox(tr("Shift"),this );
- connect(box1,SIGNAL(toggled(bool)),
- this,SLOT(slotShift(bool)));
+ box1 = new TQCheckBox(tr("Shift"),this );
+ connect(box1,TQT_SIGNAL(toggled(bool)),
+ this,TQT_SLOT(slotShift(bool)));
m_shi = box1;
- box1 = new QCheckBox(tr("Ctrl","Control Shortcut on keyboard"),this );
- connect(box1,SIGNAL(toggled(bool)),
- this,SLOT(slotCtrl(bool)));
+ box1 = new TQCheckBox(tr("Ctrl","Control Shortcut on keyboard"),this );
+ connect(box1,TQT_SIGNAL(toggled(bool)),
+ this,TQT_SLOT(slotCtrl(bool)));
m_ctrl = box1;
- QSignalMapper *map = new QSignalMapper(this);
- QPushButton *btn = new QPushButton("a",this);
+ TQSignalMapper *map = new TQSignalMapper(this);
+ TQPushButton *btn = new TQPushButton("a",this);
map->setMapping(btn,0);
- connect(btn,SIGNAL(clicked()),map,SLOT(map()));
+ connect(btn,TQT_SIGNAL(clicked()),map,TQT_SLOT(map()));
- btn = new QPushButton("b",this);
+ btn = new TQPushButton("b",this);
map->setMapping(btn,1);
- connect(btn,SIGNAL(clicked()),map,SLOT(map()));
+ connect(btn,TQT_SIGNAL(clicked()),map,TQT_SLOT(map()));
- btn = new QPushButton("c",this);
+ btn = new TQPushButton("c",this);
map->setMapping(btn,2);
- connect(btn,SIGNAL(clicked()),map,SLOT(map()));
+ connect(btn,TQT_SIGNAL(clicked()),map,TQT_SLOT(map()));
- connect(map,SIGNAL(mapped(int)),
- this,SLOT(slotKey(int)));
+ connect(map,TQT_SIGNAL(mapped(int)),
+ this,TQT_SLOT(slotKey(int)));
resetState();
}
@@ -102,7 +102,7 @@ void %{APPNAME}::slotCtrl(bool b){
delete m_icn;
}
-QWidget *%{APPNAME}Impl::inputMethod( QWidget *parent, Qt::WFlags f )
+TQWidget *%{APPNAME}Impl::inputMethod( TQWidget *parent, Qt::WFlags f )
{
if ( !m_pickboard )
m_pickboard = new %{APPNAME}( parent, f );
@@ -115,22 +115,22 @@ void %{APPNAME}Impl::resetState()
m_pickboard->resetState();
}
-QPixmap *%{APPNAME}Impl::icon()
+TQPixmap *%{APPNAME}Impl::icon()
{
if ( !m_icn )
- m_icn = new QPixmap(Resource::loadPixmap("Tux"));
+ m_icn = new TQPixmap(Resource::loadPixmap("Tux"));
return m_icn;
}
-QString %{APPNAME}Impl::name()
+TQString %{APPNAME}Impl::name()
{
- return QObject::tr("Example Input");
+ return TQObject::tr("Example Input");
}
-void %{APPNAME}Impl::onKeyPress( QObject *receiver, const char *slot )
+void %{APPNAME}Impl::onKeyPress( TQObject *receiver, const char *slot )
{
if ( m_pickboard )
- QObject::connect( m_pickboard, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot );
+ TQObject::connect( m_pickboard, TQT_SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot );
}
#ifndef QT_NO_COMPONENT
diff --git a/languages/cpp/app_templates/opieinput/simpleimpl.h b/languages/cpp/app_templates/opieinput/simpleimpl.h
index 362e59b3..17972b29 100644
--- a/languages/cpp/app_templates/opieinput/simpleimpl.h
+++ b/languages/cpp/app_templates/opieinput/simpleimpl.h
@@ -1,16 +1,16 @@
#ifndef %{APPNAME}IMPL_H
#define %{APPNAME}IMPL_H
-#include <qhbox.h>
+#include <tqhbox.h>
#include <qpe/inputmethodinterface.h>
class QPixmap;
class QCheckBox;
-class %{APPNAME} : public QHBox {
+class %{APPNAME} : public TQHBox {
Q_OBJECT
public:
- %{APPNAME}( QWidget *par, WFlags f );
+ %{APPNAME}( TQWidget *par, WFlags f );
~%{APPNAME}();
void resetState();
private slots:
@@ -22,7 +22,7 @@ signals:
void key(ushort,ushort,ushort,bool,bool);
private:
int m_state;
- QCheckBox *m_alt,*m_shi,*m_ctrl;
+ TQCheckBox *m_alt,*m_shi,*m_ctrl;
};
class %{APPNAME}Impl : public InputMethodInterface
@@ -36,15 +36,15 @@ public:
Q_REFCOUNT
#endif
- virtual QWidget *inputMethod( QWidget *parent, Qt::WFlags f );
+ virtual TQWidget *inputMethod( TQWidget *parent, Qt::WFlags f );
virtual void resetState();
- virtual QPixmap *icon();
- virtual QString name();
- virtual void onKeyPress( QObject *receiver, const char *slot );
+ virtual TQPixmap *icon();
+ virtual TQString name();
+ virtual void onKeyPress( TQObject *receiver, const char *slot );
private:
%{APPNAME} *m_pickboard;
- QPixmap *m_icn;
+ TQPixmap *m_icn;
};
#endif
diff --git a/languages/cpp/app_templates/opiemenu/simpleimpl.cpp b/languages/cpp/app_templates/opiemenu/simpleimpl.cpp
index 95245661..17b59a3e 100644
--- a/languages/cpp/app_templates/opiemenu/simpleimpl.cpp
+++ b/languages/cpp/app_templates/opiemenu/simpleimpl.cpp
@@ -4,13 +4,13 @@
#include <qpe/resource.h>
/* QT */
-#include <qiconset.h>
-#include <qpopupmenu.h>
-#include <qmessagebox.h>
+#include <tqiconset.h>
+#include <tqpopupmenu.h>
+#include <tqmessagebox.h>
%{APPNAME}::%{APPNAME}()
- :QObject( 0, "%{APPNAME}" )
+ :TQObject( 0, "%{APPNAME}" )
{
}
@@ -22,27 +22,27 @@ int %{APPNAME}::position() const
return 3;
}
-QString %{APPNAME}::name() const
+TQString %{APPNAME}::name() const
{
return tr( "MenuApplet Example Name" );
}
-QString %{APPNAME}::text() const
+TQString %{APPNAME}::text() const
{
return tr( "Click the white rabbit" );
}
-QIconSet %{APPNAME}::icon() const
+TQIconSet %{APPNAME}::icon() const
{
- QPixmap pix;
- QImage img = Resource::loadImage( "Tux" );
+ TQPixmap pix;
+ TQImage img = Resource::loadImage( "Tux" );
if ( !img.isNull() )
pix.convertFromImage( img.smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) );
return pix;
}
-QPopupMenu* %{APPNAME}::popup(QWidget*) const
+TQPopupMenu* %{APPNAME}::popup(TQWidget*) const
{
/* no subdir */
return 0;
@@ -50,7 +50,7 @@ QPopupMenu* %{APPNAME}::popup(QWidget*) const
void %{APPNAME}::activated()
{
- QMessageBox::information(0,tr("No white rabbit found"),
+ TQMessageBox::information(0,tr("No white rabbit found"),
tr("<qt>No white rabbit was seen near Opie."
"Only the beautiful OpieZilla is available"
"for your pleassure</qt>"));
diff --git a/languages/cpp/app_templates/opiemenu/simpleimpl.h b/languages/cpp/app_templates/opiemenu/simpleimpl.h
index 3961e3c4..b384ee2d 100644
--- a/languages/cpp/app_templates/opiemenu/simpleimpl.h
+++ b/languages/cpp/app_templates/opiemenu/simpleimpl.h
@@ -3,9 +3,9 @@
#include <qpe/menuappletinterface.h>
-#include <qobject.h>
+#include <tqobject.h>
-class %{APPNAME} : public QObject, public MenuAppletInterface
+class %{APPNAME} : public TQObject, public MenuAppletInterface
{
Q_OBJECT
@@ -19,13 +19,13 @@ public:
virtual int position() const;
- virtual QString name ( ) const;
- virtual QIconSet icon ( ) const;
- virtual QString text ( ) const;
- /* virtual QString tr( const char* ) const;
- virtual QString tr( const char*, const char* ) const;
+ virtual TQString name ( ) const;
+ virtual TQIconSet icon ( ) const;
+ virtual TQString text ( ) const;
+ /* virtual TQString tr( const char* ) const;
+ virtual TQString tr( const char*, const char* ) const;
*/
- virtual QPopupMenu *popup ( QWidget *parent ) const;
+ virtual TQPopupMenu *popup ( TQWidget *parent ) const;
virtual void activated ( );
};
diff --git a/languages/cpp/app_templates/opienet/simmplemodule.h b/languages/cpp/app_templates/opienet/simmplemodule.h
index 9158a7c8..7a8882b4 100644
--- a/languages/cpp/app_templates/opienet/simmplemodule.h
+++ b/languages/cpp/app_templates/opienet/simmplemodule.h
@@ -12,17 +12,17 @@ public:
VirtualModule();
~VirtualModule();
- const QString type() {return QString::fromLatin1("vpn" );}
- void setProfile( const QString& ) {}
+ const TQString type() {return TQString::fromLatin1("vpn" );}
+ void setProfile( const TQString& ) {}
bool isOwner( Interface* );
- QWidget *configure( Interface* );
- QWidget *information( Interface* );
+ TQWidget *configure( Interface* );
+ TQWidget *information( Interface* );
QList<Interface> getInterfaces();
- void possibleNewInterfaces( QMap<QString, QString>& );
- Interface *addNewInterface( const QString& );
+ void possibleNewInterfaces( TQMap<TQString, TQString>& );
+ Interface *addNewInterface( const TQString& );
bool remove( Interface* iface );
- QString getPixmapName( Interface* ) {return QString::fromLatin1("Tux"); }
- void receive( const QCString&, const QByteArray& ar ) {} // don't listen
+ TQString getPixmapName( Interface* ) {return TQString::fromLatin1("Tux"); }
+ void receive( const TQCString&, const TQByteArray& ar ) {} // don't listen
private:
QList<Interface> m_interfaces;
};
diff --git a/languages/cpp/app_templates/opienet/simpleiface.cpp b/languages/cpp/app_templates/opienet/simpleiface.cpp
index 9182a2f9..bbabcbda 100644
--- a/languages/cpp/app_templates/opienet/simpleiface.cpp
+++ b/languages/cpp/app_templates/opienet/simpleiface.cpp
@@ -1,6 +1,6 @@
#include "%{APPNAMELC}iface.h"
-%{APPNAME}Interface::%{APPNAME}Interface( QObject* parent,
+%{APPNAME}Interface::%{APPNAME}Interface( TQObject* parent,
const char* name,
bool status )
: Interface(parent, name, status )
@@ -16,7 +16,7 @@ bool %{APPNAME}Interface::refresh() {
* something actual existing
* I take wlan0 in my case
*/
- QString old = getInterfaceName();
+ TQString old = getInterfaceName();
qWarning("Interface name was " + old );
setInterfaceName( "wlan0" );
diff --git a/languages/cpp/app_templates/opienet/simpleiface.h b/languages/cpp/app_templates/opienet/simpleiface.h
index f235c160..ef514697 100644
--- a/languages/cpp/app_templates/opienet/simpleiface.h
+++ b/languages/cpp/app_templates/opienet/simpleiface.h
@@ -7,7 +7,7 @@ class %{APPNAME}Interface : public Interface {
Q_OBJECT
public:
- %{APPNAME}Interface(QObject* parent, const char* name = "vpn", bool up = false );
+ %{APPNAME}Interface(TQObject* parent, 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 a67974a8..0a96c844 100644
--- a/languages/cpp/app_templates/opienet/simplemodule.cpp
+++ b/languages/cpp/app_templates/opienet/simplemodule.cpp
@@ -1,4 +1,4 @@
-#include <qwidget.h>
+#include <tqwidget.h>
#include <interfaces/interfaceinformationimp.h>
@@ -32,12 +32,12 @@ bool %{APPNAME}Module::isOwner( Interface* iface ) {
return m_interfaces.find( iface ) != -1;
}
-QWidget* %{APPNAME}Module::configure( Interface* ) {
+TQWidget* %{APPNAME}Module::configure( Interface* ) {
/* We don't have any Config for now */
return 0l;
}
-QWidget* %{APPNAME}Module::information( Interface* iface ) {
+TQWidget* %{APPNAME}Module::information( Interface* iface ) {
return new InterfaceInformationImp(0, "Interface info", iface );
}
@@ -45,13 +45,13 @@ QList<Interface> %{APPNAME}Module::getInterfaces() {
return m_interfaces;
}
-void %{APPNAME}Module::possibleNewInterfaces( QMap<QString, QString>& map) {
- map.insert( QObject::tr("VPN PPTP"),
- QObject::tr("Add new Point to Point Tunnel Protocol connection" ) );
+void %{APPNAME}Module::possibleNewInterfaces( TQMap<TQString, TQString>& map) {
+ map.insert( TQObject::tr("VPN PPTP"),
+ TQObject::tr("Add new Point to Point Tunnel Protocol connection" ) );
}
-Interface* %{APPNAME}Module::addNewInterface( const QString& ) {
+Interface* %{APPNAME}Module::addNewInterface( const TQString& ) {
/* check the str if we support more interfaces */
/*
Interface* iface = new %{APPNAME}Interface( 0 );
diff --git a/languages/cpp/app_templates/opienet/simplemodule.h b/languages/cpp/app_templates/opienet/simplemodule.h
index 1b02b688..4120d811 100644
--- a/languages/cpp/app_templates/opienet/simplemodule.h
+++ b/languages/cpp/app_templates/opienet/simplemodule.h
@@ -12,17 +12,17 @@ public:
%{APPNAME}Module();
~%{APPNAME}Module();
- const QString type() {return QString::fromLatin1("vpn" );}
- void setProfile( const QString& ) {}
+ const TQString type() {return TQString::fromLatin1("vpn" );}
+ void setProfile( const TQString& ) {}
bool isOwner( Interface* );
- QWidget *configure( Interface* );
- QWidget *information( Interface* );
+ TQWidget *configure( Interface* );
+ TQWidget *information( Interface* );
QList<Interface> getInterfaces();
- void possibleNewInterfaces( QMap<QString, QString>& );
- Interface *addNewInterface( const QString& );
+ void possibleNewInterfaces( TQMap<TQString, TQString>& );
+ Interface *addNewInterface( const TQString& );
bool remove( Interface* iface );
- QString getPixmapName( Interface* ) {return QString::fromLatin1("Tux"); }
- void receive( const QCString&, const QByteArray& ar ) {} // don't listen
+ TQString getPixmapName( Interface* ) {return TQString::fromLatin1("Tux"); }
+ void receive( const TQCString&, const TQByteArray& ar ) {} // don't listen
private:
QList<Interface> m_interfaces;
};
diff --git a/languages/cpp/app_templates/opietoday/exampleplugin.cpp b/languages/cpp/app_templates/opietoday/exampleplugin.cpp
index 3d32b274..c7df8069 100644
--- a/languages/cpp/app_templates/opietoday/exampleplugin.cpp
+++ b/languages/cpp/app_templates/opietoday/exampleplugin.cpp
@@ -9,8 +9,8 @@
delete (%{APPNAME}Widget*)m_widget;
}
-QString %{APPNAME}::pluginName() const {
- return QObject::tr( "%{APPNAME}" );
+TQString %{APPNAME}::pluginName() const {
+ return TQObject::tr( "%{APPNAME}" );
}
double %{APPNAME}::versionNumber() const {
@@ -18,11 +18,11 @@ double %{APPNAME}::versionNumber() const {
}
// this sets the image that will be shown on the left side of the plugin
-QString %{APPNAME}::pixmapNameWidget() const {
- return QString::fromLatin1("%{APPNAMELC}/%{APPNAMELC}");
+TQString %{APPNAME}::pixmapNameWidget() const {
+ return TQString::fromLatin1("%{APPNAMELC}/%{APPNAMELC}");
}
-QWidget* %{APPNAME}::widget( QWidget * wid ) {
+TQWidget* %{APPNAME}::widget( TQWidget * wid ) {
if(!m_widget) {
m_widget = new %{APPNAME}Widget( wid, "%{APPNAME}" );
}
@@ -31,18 +31,18 @@ QWidget* %{APPNAME}::widget( QWidget * wid ) {
// that would be the icon of the config widget in todays config view
-QString %{APPNAME}::pixmapNameConfig() const {
+TQString %{APPNAME}::pixmapNameConfig() const {
return 0l;
}
// No config widget yet, look at the datebook plugin for an example of that
-TodayConfigWidget* %{APPNAME}::configWidget( QWidget* /*parent*/ ) {
+TodayConfigWidget* %{APPNAME}::configWidget( TQWidget* /*parent*/ ) {
return 0l;
}
// add the binary name of the app to launch here
-QString %{APPNAME}::appName() const {
- return QString::null;
+TQString %{APPNAME}::appName() const {
+ return TQString::null;
}
// 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/exampleplugin.h b/languages/cpp/app_templates/opietoday/exampleplugin.h
index b321f434..ebd44ba5 100644
--- a/languages/cpp/app_templates/opietoday/exampleplugin.h
+++ b/languages/cpp/app_templates/opietoday/exampleplugin.h
@@ -1,8 +1,8 @@
#ifndef %{APPNAME}_PLUGIN_H
#define %{APPNAME}_PLUGIN_H
-#include <qwidget.h>
-#include <qguardedptr.h>
+#include <tqwidget.h>
+#include <tqguardedptr.h>
#include <opie/todayplugininterface.h>
#include <opie/todayconfigwidget.h>
@@ -16,19 +16,19 @@ public:
%{APPNAME}();
~%{APPNAME}();
- QString pluginName() const;
+ TQString pluginName() const;
double versionNumber() const;
- QString pixmapNameWidget() const;
- QWidget* widget(QWidget *);
- QString pixmapNameConfig() const;
- TodayConfigWidget* configWidget(QWidget *);
- QString appName() const;
+ TQString pixmapNameWidget() const;
+ TQWidget* widget(TQWidget *);
+ TQString pixmapNameConfig() const;
+ TodayConfigWidget* configWidget(TQWidget *);
+ TQString appName() const;
bool excludeFromRefresh() const;
void refresh();
void reinitialize();
private:
- QGuardedPtr<%{APPNAME}Widget> m_widget;
+ TQGuardedPtr<%{APPNAME}Widget> m_widget;
};
#endif
diff --git a/languages/cpp/app_templates/opietoday/examplepluginwidget.cpp b/languages/cpp/app_templates/opietoday/examplepluginwidget.cpp
index b0cb0dcc..a80dad81 100644
--- a/languages/cpp/app_templates/opietoday/examplepluginwidget.cpp
+++ b/languages/cpp/app_templates/opietoday/examplepluginwidget.cpp
@@ -3,8 +3,8 @@
#include "%{APPNAMELC}widget.h"
-%{APPNAME}Widget::%{APPNAME}Widget( QWidget *parent, const char* name)
- : QWidget(parent, name ) {
+%{APPNAME}Widget::%{APPNAME}Widget( TQWidget *parent, const char* name)
+ : TQWidget(parent, name ) {
m_exampleLabel = 0l;
m_layout = 0l;
@@ -17,12 +17,12 @@
// that should be triggered when clicked are defined in slotClicked()
// of course also normal widgets can be used.
m_exampleLabel = new OClickableLabel( this );
- connect( m_exampleLabel, SIGNAL( clicked() ), this, SLOT( slotClicked() ) );
+ connect( m_exampleLabel, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotClicked() ) );
if ( m_layout ) {
delete m_layout;
}
- m_layout = new QHBoxLayout( this );
+ m_layout = new TQHBoxLayout( this );
m_layout->setAutoAdd( true );
readConfig();
diff --git a/languages/cpp/app_templates/opietoday/examplepluginwidget.h b/languages/cpp/app_templates/opietoday/examplepluginwidget.h
index 26a72128..53a67b18 100644
--- a/languages/cpp/app_templates/opietoday/examplepluginwidget.h
+++ b/languages/cpp/app_templates/opietoday/examplepluginwidget.h
@@ -1,16 +1,16 @@
#ifndef %{APPNAME}_PLUGIN_WIDGET_H
#define %{APPNAME}_PLUGIN_WIDGET_H
-#include <qlayout.h>
+#include <tqlayout.h>
#include <opie/oclickablelabel.h>
-class %{APPNAME}Widget : public QWidget {
+class %{APPNAME}Widget : public TQWidget {
Q_OBJECT
public:
- %{APPNAME}Widget( QWidget *parent, const char *name );
+ %{APPNAME}Widget( TQWidget *parent, const char *name );
~%{APPNAME}Widget();
void refresh();
@@ -20,7 +20,7 @@ private slots:
private:
OClickableLabel* m_exampleLabel;
- QHBoxLayout* m_layout;
+ TQHBoxLayout* m_layout;
void readConfig();
void getInfo();
};
diff --git a/languages/cpp/app_templates/qmakeapp/main.cpp b/languages/cpp/app_templates/qmakeapp/main.cpp
index bd26f19a..8938adc5 100644
--- a/languages/cpp/app_templates/qmakeapp/main.cpp
+++ b/languages/cpp/app_templates/qmakeapp/main.cpp
@@ -1,13 +1,13 @@
%{CPP_TEMPLATE}
-#include <qapplication.h>
+#include <tqapplication.h>
#include "%{APPNAMELC}.h"
int main( int argc, char ** argv ) {
- QApplication a( argc, argv );
+ TQApplication a( argc, argv );
%{APPNAME} * mw = new %{APPNAME}();
mw->setCaption( "%{APPNAME}" );
mw->show();
- a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) );
+ a.connect( &a, TQT_SIGNAL(lastWindowClosed()), &a, TQT_SLOT(quit()) );
return a.exec();
}
diff --git a/languages/cpp/app_templates/qmakeapp/qmakeapp.cpp b/languages/cpp/app_templates/qmakeapp/qmakeapp.cpp
index 841f88d4..973aee2c 100644
--- a/languages/cpp/app_templates/qmakeapp/qmakeapp.cpp
+++ b/languages/cpp/app_templates/qmakeapp/qmakeapp.cpp
@@ -2,120 +2,120 @@
#include "%{APPNAMELC}.h"
-#include <qimage.h>
-#include <qpixmap.h>
-#include <qtoolbar.h>
-#include <qtoolbutton.h>
-#include <qpopupmenu.h>
-#include <qmenubar.h>
-#include <qtextedit.h>
-#include <qfile.h>
-#include <qfiledialog.h>
-#include <qstatusbar.h>
-#include <qmessagebox.h>
-#include <qprinter.h>
-#include <qapplication.h>
-#include <qaccel.h>
-#include <qtextstream.h>
-#include <qpainter.h>
-#include <qpaintdevicemetrics.h>
-#include <qwhatsthis.h>
+#include <tqimage.h>
+#include <tqpixmap.h>
+#include <tqtoolbar.h>
+#include <tqtoolbutton.h>
+#include <tqpopupmenu.h>
+#include <tqmenubar.h>
+#include <tqtextedit.h>
+#include <tqfile.h>
+#include <tqfiledialog.h>
+#include <tqstatusbar.h>
+#include <tqmessagebox.h>
+#include <tqprinter.h>
+#include <tqapplication.h>
+#include <tqaccel.h>
+#include <tqtextstream.h>
+#include <tqpainter.h>
+#include <tqpaintdevicemetrics.h>
+#include <tqwhatsthis.h>
#include "filesave.xpm"
#include "fileopen.xpm"
#include "fileprint.xpm"
%{APPNAME}::%{APPNAME}()
- : QMainWindow( 0, "%{APPNAME}", WDestructiveClose )
+ : TQMainWindow( 0, "%{APPNAME}", WDestructiveClose )
{
printer = new QPrinter;
- QPixmap openIcon, saveIcon, printIcon;
+ TQPixmap openIcon, saveIcon, printIcon;
- QToolBar * fileTools = new QToolBar( this, "file operations" );
+ TQToolBar * fileTools = new TQToolBar( this, "file operations" );
fileTools->setLabel( tr("File Operations") );
- openIcon = QPixmap( fileopen );
- QToolButton * fileOpen
- = new QToolButton( openIcon, tr("Open File"), QString::null,
- this, SLOT(choose()), fileTools, "open file" );
+ openIcon = TQPixmap( fileopen );
+ TQToolButton * fileOpen
+ = new TQToolButton( openIcon, tr("Open File"), TQString::null,
+ this, TQT_SLOT(choose()), fileTools, "open file" );
- saveIcon = QPixmap( filesave );
- QToolButton * fileSave
- = new QToolButton( saveIcon, tr("Save File"), QString::null,
- this, SLOT(save()), fileTools, "save file" );
+ saveIcon = TQPixmap( filesave );
+ TQToolButton * fileSave
+ = new TQToolButton( saveIcon, tr("Save File"), TQString::null,
+ this, TQT_SLOT(save()), fileTools, "save file" );
- printIcon = QPixmap( fileprint );
- QToolButton * filePrint
- = new QToolButton( printIcon, tr("Print File"), QString::null,
- this, SLOT(print()), fileTools, "print file" );
+ printIcon = TQPixmap( fileprint );
+ TQToolButton * filePrint
+ = new TQToolButton( printIcon, tr("Print File"), TQString::null,
+ this, TQT_SLOT(print()), fileTools, "print file" );
- (void)QWhatsThis::whatsThisButton( fileTools );
+ (void)TQWhatsThis::whatsThisButton( fileTools );
- QString fileOpenText = tr("<p><img source=\"fileopen\"> "
+ TQString fileOpenText = tr("<p><img source=\"fileopen\"> "
"Click this button to open a <em>new file</em>. <br>"
"You can also select the <b>Open</b> command "
"from the <b>File</b> menu.</p>");
- QWhatsThis::add( fileOpen, fileOpenText );
+ TQWhatsThis::add( fileOpen, fileOpenText );
- QMimeSourceFactory::defaultFactory()->setPixmap( "fileopen", openIcon );
+ TQMimeSourceFactory::defaultFactory()->setPixmap( "fileopen", openIcon );
- QString fileSaveText = tr("<p>Click this button to save the file you "
+ TQString fileSaveText = tr("<p>Click this button to save the file you "
"are editing. You will be prompted for a file name.\n"
"You can also select the <b>Save</b> command "
"from the <b>File</b> menu.</p>");
- QWhatsThis::add( fileSave, fileSaveText );
+ TQWhatsThis::add( fileSave, fileSaveText );
- QString filePrintText = tr("Click this button to print the file you "
+ TQString filePrintText = tr("Click this button to print the file you "
"are editing.\n You can also select the Print "
"command from the File menu.");
- QWhatsThis::add( filePrint, filePrintText );
+ TQWhatsThis::add( filePrint, filePrintText );
- QPopupMenu * file = new QPopupMenu( this );
+ TQPopupMenu * file = new TQPopupMenu( this );
menuBar()->insertItem( tr("&File"), file );
- file->insertItem( tr("&New"), this, SLOT(newDoc()), CTRL+Key_N );
+ file->insertItem( tr("&New"), this, TQT_SLOT(newDoc()), CTRL+Key_N );
int id;
id = file->insertItem( openIcon, tr("&Open..."),
- this, SLOT(choose()), CTRL+Key_O );
+ this, TQT_SLOT(choose()), CTRL+Key_O );
file->setWhatsThis( id, fileOpenText );
id = file->insertItem( saveIcon, tr("&Save"),
- this, SLOT(save()), CTRL+Key_S );
+ this, TQT_SLOT(save()), CTRL+Key_S );
file->setWhatsThis( id, fileSaveText );
- id = file->insertItem( tr("Save &As..."), this, SLOT(saveAs()) );
+ id = file->insertItem( tr("Save &As..."), this, TQT_SLOT(saveAs()) );
file->setWhatsThis( id, fileSaveText );
file->insertSeparator();
id = file->insertItem( printIcon, tr("&Print..."),
- this, SLOT(print()), CTRL+Key_P );
+ this, TQT_SLOT(print()), CTRL+Key_P );
file->setWhatsThis( id, filePrintText );
file->insertSeparator();
- file->insertItem( tr("&Close"), this, SLOT(close()), CTRL+Key_W );
+ file->insertItem( tr("&Close"), this, TQT_SLOT(close()), CTRL+Key_W );
- file->insertItem( tr("&Quit"), qApp, SLOT( closeAllWindows() ), CTRL+Key_Q );
+ file->insertItem( tr("&Quit"), qApp, TQT_SLOT( closeAllWindows() ), CTRL+Key_Q );
menuBar()->insertSeparator();
- QPopupMenu * help = new QPopupMenu( this );
+ TQPopupMenu * help = new TQPopupMenu( this );
menuBar()->insertItem( tr("&Help"), help );
- help->insertItem( tr("&About"), this, SLOT(about()), Key_F1 );
- help->insertItem( tr("About &Qt"), this, SLOT(aboutQt()) );
+ help->insertItem( tr("&About"), this, TQT_SLOT(about()), Key_F1 );
+ help->insertItem( tr("About &Qt"), this, TQT_SLOT(aboutQt()) );
help->insertSeparator();
- help->insertItem( tr("What's &This"), this, SLOT(whatsThis()), SHIFT+Key_F1 );
+ help->insertItem( tr("What's &This"), this, TQT_SLOT(whatsThis()), SHIFT+Key_F1 );
- e = new QTextEdit( this, "editor" );
+ e = new TQTextEdit( this, "editor" );
e->setFocus();
setCentralWidget( e );
statusBar()->message( tr("Ready"), 2000 );
@@ -140,7 +140,7 @@ void %{APPNAME}::newDoc()
void %{APPNAME}::choose()
{
- QString fn = QFileDialog::getOpenFileName( QString::null, QString::null,
+ TQString fn = TQFileDialog::getOpenFileName( TQString::null, TQString::null,
this);
if ( !fn.isEmpty() )
load( fn );
@@ -149,13 +149,13 @@ void %{APPNAME}::choose()
}
-void %{APPNAME}::load( const QString &fileName )
+void %{APPNAME}::load( const TQString &fileName )
{
- QFile f( fileName );
+ TQFile f( fileName );
if ( !f.open( IO_ReadOnly ) )
return;
- QTextStream ts( &f );
+ TQTextStream ts( &f );
e->setText( ts.read() );
e->setModified( FALSE );
setCaption( fileName );
@@ -170,15 +170,15 @@ void %{APPNAME}::save()
return;
}
- QString text = e->text();
- QFile f( filename );
+ TQString text = e->text();
+ TQFile f( filename );
if ( !f.open( IO_WriteOnly ) ) {
statusBar()->message( tr("Could not write to %1").arg(filename),
2000 );
return;
}
- QTextStream t( &f );
+ TQTextStream t( &f );
t << text;
f.close();
@@ -192,7 +192,7 @@ void %{APPNAME}::save()
void %{APPNAME}::saveAs()
{
- QString fn = QFileDialog::getSaveFileName( QString::null, QString::null,
+ TQString fn = TQFileDialog::getSaveFileName( TQString::null, TQString::null,
this );
if ( !fn.isEmpty() ) {
filename = fn;
@@ -205,25 +205,25 @@ void %{APPNAME}::saveAs()
void %{APPNAME}::print()
{
- // ###### Rewrite to use QSimpleRichText to print here as well
+ // ###### Rewrite to use TQSimpleRichText to print here as well
const int Margin = 10;
int pageNo = 1;
if ( printer->setup(this) ) { // printer dialog
statusBar()->message( tr("Printing...") );
- QPainter p;
+ TQPainter p;
if( !p.begin( printer ) ) // paint on printer
return;
p.setFont( e->font() );
int yPos = 0; // y-position for each line
- QFontMetrics fm = p.fontMetrics();
- QPaintDeviceMetrics metrics( printer ); // need width/height
+ TQFontMetrics fm = p.fontMetrics();
+ TQPaintDeviceMetrics metrics( printer ); // need width/height
// of printer surface
for( int i = 0 ; i < e->lines() ; i++ ) {
if ( Margin + yPos > metrics.height() - Margin ) {
- QString msg( "Printing (page " );
- msg += QString::number( ++pageNo );
+ TQString msg( "Printing (page " );
+ msg += TQString::number( ++pageNo );
msg += ")...";
statusBar()->message( msg );
printer->newPage(); // no more room on this page
@@ -242,14 +242,14 @@ void %{APPNAME}::print()
}
}
-void %{APPNAME}::closeEvent( QCloseEvent* ce )
+void %{APPNAME}::closeEvent( TQCloseEvent* ce )
{
if ( !e->isModified() ) {
ce->accept();
return;
}
- switch( QMessageBox::information( this, tr("Qt Application Example"),
+ switch( TQMessageBox::information( this, tr("Qt 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( QCloseEvent* ce )
void %{APPNAME}::about()
{
- QMessageBox::about( this, tr("Qt Application Example"),
+ TQMessageBox::about( this, tr("Qt Application Example"),
tr("This example demonstrates simple use of "
- "QMainWindow,\nQMenuBar and QToolBar."));
+ "TQMainWindow,\nQMenuBar and TQToolBar."));
}
void %{APPNAME}::aboutQt()
{
- QMessageBox::aboutQt( this, tr("Qt Application Example") );
+ TQMessageBox::aboutQt( this, tr("Qt Application Example") );
}
diff --git a/languages/cpp/app_templates/qmakeapp/qmakeapp.h b/languages/cpp/app_templates/qmakeapp/qmakeapp.h
index 2d372da9..48bf459a 100644
--- a/languages/cpp/app_templates/qmakeapp/qmakeapp.h
+++ b/languages/cpp/app_templates/qmakeapp/qmakeapp.h
@@ -3,7 +3,7 @@
#ifndef %{APPNAMEUC}_H
#define %{APPNAMEUC}_H
-#include <qmainwindow.h>
+#include <tqmainwindow.h>
class QTextEdit;
@@ -16,12 +16,12 @@ public:
~%{APPNAME}();
protected:
- void closeEvent( QCloseEvent* );
+ void closeEvent( TQCloseEvent* );
private slots:
void newDoc();
void choose();
- void load( const QString &fileName );
+ void load( const TQString &fileName );
void save();
void saveAs();
void print();
@@ -30,9 +30,9 @@ private slots:
void aboutQt();
private:
- QPrinter *printer;
- QTextEdit *e;
- QString filename;
+ TQPrinter *printer;
+ TQTextEdit *e;
+ TQString filename;
};
diff --git a/languages/cpp/app_templates/qt4makeapp/main.cpp b/languages/cpp/app_templates/qt4makeapp/main.cpp
index 3416347e..4f6295a2 100644
--- a/languages/cpp/app_templates/qt4makeapp/main.cpp
+++ b/languages/cpp/app_templates/qt4makeapp/main.cpp
@@ -1,12 +1,12 @@
%{CPP_TEMPLATE}
-#include <QApplication>
+#include <TQApplication>
#include "%{APPNAMELC}.h"
int main(int argc, char *argv[])
{
Q_INIT_RESOURCE(application);
- QApplication app(argc, argv);
+ TQApplication app(argc, argv);
%{APPNAME} * mw = new %{APPNAME}();
mw->show();
return app.exec();
diff --git a/languages/cpp/app_templates/qt4makeapp/qt4makeapp.cpp b/languages/cpp/app_templates/qt4makeapp/qt4makeapp.cpp
index af16391f..11bcf85f 100644
--- a/languages/cpp/app_templates/qt4makeapp/qt4makeapp.cpp
+++ b/languages/cpp/app_templates/qt4makeapp/qt4makeapp.cpp
@@ -3,10 +3,10 @@
#include <QtGui>
#include "%{APPNAMELC}.h"
-#include <QTextEdit>
-#include <QTextStream>
-#include <QCloseEvent>
-#include <QFileDialog>
+#include <TQTextEdit>
+#include <TQTextStream>
+#include <TQCloseEvent>
+#include <TQFileDialog>
%{APPNAME}::%{APPNAME}()
{
@@ -20,13 +20,13 @@
readSettings();
- connect(textEdit->document(), SIGNAL(contentsChanged()),
- this, SLOT(documentWasModified()));
+ connect(textEdit->document(), TQT_SIGNAL(contentsChanged()),
+ this, TQT_SLOT(documentWasModified()));
setCurrentFile("");
}
-void %{APPNAME}::closeEvent(QCloseEvent *event)
+void %{APPNAME}::closeEvent(TQCloseEvent *event)
{
if (maybeSave()) {
writeSettings();
@@ -47,7 +47,7 @@ void %{APPNAME}::newFile()
void %{APPNAME}::open()
{
if (maybeSave()) {
- QString fileName = QFileDialog::getOpenFileName(this);
+ TQString fileName = TQFileDialog::getOpenFileName(this);
if (!fileName.isEmpty())
loadFile(fileName);
}
@@ -64,7 +64,7 @@ bool %{APPNAME}::save()
bool %{APPNAME}::saveAs()
{
- QString fileName = QFileDialog::getSaveFileName(this);
+ TQString fileName = TQFileDialog::getSaveFileName(this);
if (fileName.isEmpty())
return false;
@@ -73,7 +73,7 @@ bool %{APPNAME}::saveAs()
void %{APPNAME}::about()
{
- QMessageBox::about(this, tr("About Application"),
+ 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, "
"toolbars, and a status bar."));
@@ -86,62 +86,62 @@ void %{APPNAME}::documentWasModified()
void %{APPNAME}::createActions()
{
- newAct = new QAction(QIcon(":/filenew.xpm"), tr("&New"), this);
+ newAct = new TQAction(QIcon(":/filenew.xpm"), tr("&New"), this);
newAct->setShortcut(tr("Ctrl+N"));
newAct->setStatusTip(tr("Create a new file"));
- connect(newAct, SIGNAL(triggered()), this, SLOT(newFile()));
+ connect(newAct, TQT_SIGNAL(triggered()), this, TQT_SLOT(newFile()));
- openAct = new QAction(QIcon(":/fileopen.xpm"), tr("&Open..."), this);
+ openAct = new TQAction(QIcon(":/fileopen.xpm"), tr("&Open..."), this);
openAct->setShortcut(tr("Ctrl+O"));
openAct->setStatusTip(tr("Open an existing file"));
- connect(openAct, SIGNAL(triggered()), this, SLOT(open()));
+ connect(openAct, TQT_SIGNAL(triggered()), this, TQT_SLOT(open()));
- saveAct = new QAction(QIcon(":/filesave.xpm"), tr("&Save"), this);
+ saveAct = new TQAction(QIcon(":/filesave.xpm"), tr("&Save"), this);
saveAct->setShortcut(tr("Ctrl+S"));
saveAct->setStatusTip(tr("Save the document to disk"));
- connect(saveAct, SIGNAL(triggered()), this, SLOT(save()));
+ connect(saveAct, TQT_SIGNAL(triggered()), this, TQT_SLOT(save()));
- saveAsAct = new QAction(tr("Save &As..."), this);
+ saveAsAct = new TQAction(tr("Save &As..."), this);
saveAsAct->setStatusTip(tr("Save the document under a new name"));
- connect(saveAsAct, SIGNAL(triggered()), this, SLOT(saveAs()));
+ connect(saveAsAct, TQT_SIGNAL(triggered()), this, TQT_SLOT(saveAs()));
- exitAct = new QAction(tr("E&xit"), this);
+ exitAct = new TQAction(tr("E&xit"), this);
exitAct->setShortcut(tr("Ctrl+Q"));
exitAct->setStatusTip(tr("Exit the application"));
- connect(exitAct, SIGNAL(triggered()), this, SLOT(close()));
+ connect(exitAct, TQT_SIGNAL(triggered()), this, TQT_SLOT(close()));
- cutAct = new QAction(QIcon(":/editcut.xpm"), tr("Cu&t"), this);
+ cutAct = new TQAction(QIcon(":/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, SIGNAL(triggered()), textEdit, SLOT(cut()));
+ connect(cutAct, TQT_SIGNAL(triggered()), textEdit, TQT_SLOT(cut()));
- copyAct = new QAction(QIcon(":/editcopy.xpm"), tr("&Copy"), this);
+ copyAct = new TQAction(QIcon(":/editcopy.xpm"), tr("&Copy"), this);
copyAct->setShortcut(tr("Ctrl+C"));
copyAct->setStatusTip(tr("Copy the current selection's contents to the "
"clipboard"));
- connect(copyAct, SIGNAL(triggered()), textEdit, SLOT(copy()));
+ connect(copyAct, TQT_SIGNAL(triggered()), textEdit, TQT_SLOT(copy()));
- pasteAct = new QAction(QIcon(":/editpaste.xpm"), tr("&Paste"), this);
+ pasteAct = new TQAction(QIcon(":/editpaste.xpm"), tr("&Paste"), this);
pasteAct->setShortcut(tr("Ctrl+V"));
pasteAct->setStatusTip(tr("Paste the clipboard's contents into the current "
"selection"));
- connect(pasteAct, SIGNAL(triggered()), textEdit, SLOT(paste()));
+ connect(pasteAct, TQT_SIGNAL(triggered()), textEdit, TQT_SLOT(paste()));
- aboutAct = new QAction(tr("&About"), this);
+ aboutAct = new TQAction(tr("&About"), this);
aboutAct->setStatusTip(tr("Show the application's About box"));
- connect(aboutAct, SIGNAL(triggered()), this, SLOT(about()));
+ connect(aboutAct, TQT_SIGNAL(triggered()), this, TQT_SLOT(about()));
- aboutQtAct = new QAction(tr("About &Qt"), this);
+ aboutQtAct = new TQAction(tr("About &Qt"), this);
aboutQtAct->setStatusTip(tr("Show the Qt library's About box"));
- connect(aboutQtAct, SIGNAL(triggered()), qApp, SLOT(aboutQt()));
+ connect(aboutQtAct, TQT_SIGNAL(triggered()), qApp, TQT_SLOT(aboutQt()));
cutAct->setEnabled(false);
copyAct->setEnabled(false);
- connect(textEdit, SIGNAL(copyAvailable(bool)),
- cutAct, SLOT(setEnabled(bool)));
- connect(textEdit, SIGNAL(copyAvailable(bool)),
- copyAct, SLOT(setEnabled(bool)));
+ connect(textEdit, TQT_SIGNAL(copyAvailable(bool)),
+ cutAct, TQT_SLOT(setEnabled(bool)));
+ connect(textEdit, TQT_SIGNAL(copyAvailable(bool)),
+ copyAct, TQT_SLOT(setEnabled(bool)));
}
void %{APPNAME}::createMenus()
@@ -186,16 +186,16 @@ void %{APPNAME}::createStatusBar()
void %{APPNAME}::readSettings()
{
- QSettings settings("Trolltech", "Application Example");
- QPoint pos = settings.value("pos", QPoint(200, 200)).toPoint();
- QSize size = settings.value("size", QSize(400, 400)).toSize();
+ TQSettings settings("Trolltech", "Application Example");
+ TQPoint pos = settings.value("pos", TQPoint(200, 200)).toPoint();
+ TQSize size = settings.value("size", TQSize(400, 400)).toSize();
resize(size);
move(pos);
}
void %{APPNAME}::writeSettings()
{
- QSettings settings("Trolltech", "Application Example");
+ TQSettings settings("Trolltech", "Application Example");
settings.setValue("pos", pos());
settings.setValue("size", size());
}
@@ -203,68 +203,68 @@ void %{APPNAME}::writeSettings()
bool %{APPNAME}::maybeSave()
{
if (textEdit->document()->isModified()) {
- int ret = QMessageBox::warning(this, tr("Application"),
+ int ret = TQMessageBox::warning(this, tr("Application"),
tr("The document has been modified.\n"
"Do you want to save your changes?"),
- QMessageBox::Yes | QMessageBox::Default,
- QMessageBox::No,
- QMessageBox::Cancel | QMessageBox::Escape);
- if (ret == QMessageBox::Yes)
+ TQMessageBox::Yes | TQMessageBox::Default,
+ TQMessageBox::No,
+ TQMessageBox::Cancel | TQMessageBox::Escape);
+ if (ret == TQMessageBox::Yes)
return save();
- else if (ret == QMessageBox::Cancel)
+ else if (ret == TQMessageBox::Cancel)
return false;
}
return true;
}
-void %{APPNAME}::loadFile(const QString &fileName)
+void %{APPNAME}::loadFile(const TQString &fileName)
{
- QFile file(fileName);
- if (!file.open(QFile::ReadOnly | QFile::Text)) {
- QMessageBox::warning(this, tr("Application"),
+ TQFile file(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()));
return;
}
- QTextStream in(&file);
- QApplication::setOverrideCursor(Qt::WaitCursor);
+ TQTextStream in(&file);
+ TQApplication::setOverrideCursor(Qt::WaitCursor);
textEdit->setPlainText(in.readAll());
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
setCurrentFile(fileName);
statusBar()->showMessage(tr("File loaded"), 2000);
}
-bool %{APPNAME}::saveFile(const QString &fileName)
+bool %{APPNAME}::saveFile(const TQString &fileName)
{
- QFile file(fileName);
- if (!file.open(QFile::WriteOnly | QFile::Text)) {
- QMessageBox::warning(this, tr("Application"),
+ TQFile file(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()));
return false;
}
- QTextStream out(&file);
- QApplication::setOverrideCursor(Qt::WaitCursor);
+ TQTextStream out(&file);
+ TQApplication::setOverrideCursor(Qt::WaitCursor);
out << textEdit->toPlainText();
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
setCurrentFile(fileName);
statusBar()->showMessage(tr("File saved"), 2000);
return true;
}
-void %{APPNAME}::setCurrentFile(const QString &fileName)
+void %{APPNAME}::setCurrentFile(const TQString &fileName)
{
curFile = fileName;
textEdit->document()->setModified(false);
setWindowModified(false);
- QString shownName;
+ TQString shownName;
if (curFile.isEmpty())
shownName = "untitled.txt";
else
@@ -273,9 +273,9 @@ void %{APPNAME}::setCurrentFile(const QString &fileName)
setWindowTitle(tr("%1[*] - %2").arg(shownName).arg(tr("Application")));
}
-QString %{APPNAME}::strippedName(const QString &fullFileName)
+TQString %{APPNAME}::strippedName(const TQString &fullFileName)
{
- return QFileInfo(fullFileName).fileName();
+ return TQFileInfo(fullFileName).fileName();
}
%{APPNAME}::~%{APPNAME}()
diff --git a/languages/cpp/app_templates/qt4makeapp/qt4makeapp.h b/languages/cpp/app_templates/qt4makeapp/qt4makeapp.h
index cd470d00..8140766b 100644
--- a/languages/cpp/app_templates/qt4makeapp/qt4makeapp.h
+++ b/languages/cpp/app_templates/qt4makeapp/qt4makeapp.h
@@ -3,8 +3,8 @@
#ifndef %{APPNAMEUC}_H
#define %{APPNAMEUC}_H
-#include <QMainWindow>
-#include <QCloseEvent>
+#include <TQMainWindow>
+#include <TQCloseEvent>
class QAction;
class QMenu;
@@ -19,7 +19,7 @@ public:
~%{APPNAME}();
protected:
- void closeEvent(QCloseEvent *event);
+ void closeEvent(TQCloseEvent *event);
private slots:
void newFile();
@@ -37,29 +37,29 @@ private:
void readSettings();
void writeSettings();
bool maybeSave();
- void loadFile(const QString &fileName);
- bool saveFile(const QString &fileName);
- void setCurrentFile(const QString &fileName);
- QString strippedName(const QString &fullFileName);
+ void loadFile(const TQString &fileName);
+ bool saveFile(const TQString &fileName);
+ void setCurrentFile(const TQString &fileName);
+ TQString strippedName(const TQString &fullFileName);
- QTextEdit *textEdit;
- QString curFile;
+ TQTextEdit *textEdit;
+ TQString curFile;
QMenu *fileMenu;
QMenu *editMenu;
QMenu *helpMenu;
- QToolBar *fileToolBar;
- QToolBar *editToolBar;
- QAction *newAct;
- QAction *openAct;
- QAction *saveAct;
- QAction *saveAsAct;
- QAction *exitAct;
- QAction *cutAct;
- QAction *copyAct;
- QAction *pasteAct;
- QAction *aboutAct;
- QAction *aboutQtAct;
+ TQToolBar *fileToolBar;
+ TQToolBar *editToolBar;
+ TQAction *newAct;
+ TQAction *openAct;
+ TQAction *saveAct;
+ TQAction *saveAsAct;
+ TQAction *exitAct;
+ TQAction *cutAct;
+ TQAction *copyAct;
+ TQAction *pasteAct;
+ TQAction *aboutAct;
+ TQAction *aboutQtAct;
};
#endif
diff --git a/languages/cpp/app_templates/qtopia4app/example.cpp b/languages/cpp/app_templates/qtopia4app/example.cpp
index a35d57cb..45331649 100644
--- a/languages/cpp/app_templates/qtopia4app/example.cpp
+++ b/languages/cpp/app_templates/qtopia4app/example.cpp
@@ -1,9 +1,9 @@
#include "%{APPNAMELC}.h"
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
-%{APPNAME}Base::%{APPNAME}Base( QWidget *parent, Qt::WFlags f )
- : QWidget( parent, f )
+%{APPNAME}Base::%{APPNAME}Base( TQWidget *parent, Qt::WFlags f )
+ : TQWidget( parent, f )
{
setupUi( this );
}
@@ -16,10 +16,10 @@
* Constructs a %{APPNAME} which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*/
-%{APPNAME}::%{APPNAME}( QWidget *parent, Qt::WFlags f )
+%{APPNAME}::%{APPNAME}( TQWidget *parent, Qt::WFlags f )
: %{APPNAME}Base( parent, f )
{
- connect(quit, SIGNAL(clicked()), this, SLOT(goodBye()));
+ connect(quit, TQT_SIGNAL(clicked()), this, TQT_SLOT(goodBye()));
}
/*
diff --git a/languages/cpp/app_templates/qtopia4app/example.h b/languages/cpp/app_templates/qtopia4app/example.h
index 7d58c7d8..5bfc69ba 100644
--- a/languages/cpp/app_templates/qtopia4app/example.h
+++ b/languages/cpp/app_templates/qtopia4app/example.h
@@ -3,10 +3,10 @@
#define %{APPNAMEUC}_H
#include "ui_%{APPNAMELC}base.h"
-class %{APPNAME}Base : public QWidget, public Ui_%{APPNAME}Base
+class %{APPNAME}Base : public TQWidget, public Ui_%{APPNAME}Base
{
public:
- %{APPNAME}Base( QWidget *parent = 0, Qt::WFlags f = 0 );
+ %{APPNAME}Base( TQWidget *parent = 0, Qt::WFlags f = 0 );
virtual ~%{APPNAME}Base();
};
@@ -14,7 +14,7 @@ class %{APPNAME} : public %{APPNAME}Base
{
Q_OBJECT
public:
- %{APPNAME}( QWidget *parent = 0, Qt::WFlags f = 0 );
+ %{APPNAME}( TQWidget *parent = 0, Qt::WFlags f = 0 );
virtual ~%{APPNAME}();
private slots:
diff --git a/languages/cpp/app_templates/qtopiaapp/example.cpp b/languages/cpp/app_templates/qtopiaapp/example.cpp
index 939f708e..a849977d 100644
--- a/languages/cpp/app_templates/qtopiaapp/example.cpp
+++ b/languages/cpp/app_templates/qtopiaapp/example.cpp
@@ -1,15 +1,15 @@
#include "%{APPNAMELC}.h"
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
/*
* Constructs a %{APPNAME} which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*/
-%{APPNAME}::%{APPNAME}( QWidget* parent, const char* name, WFlags fl )
+%{APPNAME}::%{APPNAME}( TQWidget* parent, const char* name, WFlags fl )
: %{APPNAME}Base( parent, name, fl )
{
- connect(quit, SIGNAL(clicked()), this, SLOT(goodBye()));
+ connect(quit, TQT_SIGNAL(clicked()), this, TQT_SLOT(goodBye()));
}
/*
diff --git a/languages/cpp/app_templates/qtopiaapp/example.h b/languages/cpp/app_templates/qtopiaapp/example.h
index 883cb27d..42dfc2dd 100644
--- a/languages/cpp/app_templates/qtopiaapp/example.h
+++ b/languages/cpp/app_templates/qtopiaapp/example.h
@@ -8,7 +8,7 @@ class %{APPNAME} : public %{APPNAME}Base
Q_OBJECT
public:
- %{APPNAME}( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ %{APPNAME}( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~%{APPNAME}();
private slots:
diff --git a/languages/cpp/ast_utils.cpp b/languages/cpp/ast_utils.cpp
index d21f4782..a6ef1a2b 100644
--- a/languages/cpp/ast_utils.cpp
+++ b/languages/cpp/ast_utils.cpp
@@ -12,8 +12,8 @@
#include "ast_utils.h"
#include "ast.h"
-#include <qstringlist.h>
-#include <qregexp.h>
+#include <tqstringlist.h>
+#include <tqregexp.h>
#include <klocale.h>
#include <kdebug.h>
@@ -40,8 +40,8 @@ AST* findNodeAt( AST* node, int line, int column )
( line < endLine || ( line == endLine && column < endColumn ) ) )
{
- QPtrList<AST> children = node->children();
- QPtrListIterator<AST> it( children );
+ TQPtrList<AST> children = node->children();
+ TQPtrListIterator<AST> it( children );
while ( it.current() )
{
AST * a = it.current();
@@ -58,7 +58,7 @@ AST* findNodeAt( AST* node, int line, int column )
return 0;
}
-void scopeOfNode( AST* ast, QStringList& scope )
+void scopeOfNode( AST* ast, TQStringList& scope )
{
if ( !ast )
return ;
@@ -66,14 +66,14 @@ void scopeOfNode( AST* ast, QStringList& scope )
if ( ast->parent() )
scopeOfNode( ast->parent(), scope );
- QString s;
+ TQString s;
switch ( ast->nodeType() )
{
case NodeType_ClassSpecifier:
if ( ( ( ClassSpecifierAST* ) ast ) ->name() )
{
s = ( ( ClassSpecifierAST* ) ast ) ->name() ->text();
- s = s.isEmpty() ? QString::fromLatin1( "<unnamed>" ) : s;
+ s = s.isEmpty() ? TQString::fromLatin1( "<unnamed>" ) : s;
scope.push_back( s );
}
break;
@@ -81,7 +81,7 @@ void scopeOfNode( AST* ast, QStringList& scope )
case NodeType_Namespace:
{
AST* namespaceName = ( ( NamespaceAST* ) ast ) ->namespaceName();
- s = namespaceName ? namespaceName->text() : QString::fromLatin1( "<unnamed>" );
+ s = namespaceName ? namespaceName->text() : TQString::fromLatin1( "<unnamed>" );
scope.push_back( s );
}
break;
@@ -95,8 +95,8 @@ void scopeOfNode( AST* ast, QStringList& scope )
if ( !d->declaratorId() )
break;
- QPtrList<ClassOrNamespaceNameAST> l = d->declaratorId() ->classOrNamespaceNameList();
- QPtrListIterator<ClassOrNamespaceNameAST> nameIt( l );
+ TQPtrList<ClassOrNamespaceNameAST> l = d->declaratorId() ->classOrNamespaceNameList();
+ TQPtrListIterator<ClassOrNamespaceNameAST> nameIt( l );
while ( nameIt.current() )
{
AST * name = nameIt.current() ->name();
@@ -113,25 +113,25 @@ void scopeOfNode( AST* ast, QStringList& scope )
}
-QString typeSpecToString( TypeSpecifierAST* typeSpec ) /// @todo remove
+TQString typeSpecToString( TypeSpecifierAST* typeSpec ) /// @todo remove
{
if ( !typeSpec )
- return QString::null;
+ return TQString::null;
- return typeSpec->text().replace( QRegExp( " :: " ), "::" );
+ return typeSpec->text().replace( TQRegExp( " :: " ), "::" );
}
-QString declaratorToString( DeclaratorAST* declarator, const QString& scope, bool skipPtrOp )
+TQString declaratorToString( DeclaratorAST* declarator, const TQString& scope, bool skipPtrOp )
{
if ( !declarator )
- return QString::null;
+ return TQString::null;
- QString text;
+ TQString text;
if ( !skipPtrOp )
{
- QPtrList<AST> ptrOpList = declarator->ptrOpList();
- for ( QPtrListIterator<AST> it( ptrOpList ); it.current(); ++it )
+ TQPtrList<AST> ptrOpList = declarator->ptrOpList();
+ for ( TQPtrListIterator<AST> it( ptrOpList ); it.current(); ++it )
{
text += it.current() ->text();
}
@@ -141,13 +141,13 @@ QString declaratorToString( DeclaratorAST* declarator, const QString& scope, boo
text += scope;
if ( declarator->subDeclarator() )
- text += QString::fromLatin1( "(" ) + declaratorToString( declarator->subDeclarator() ) + QString::fromLatin1( ")" );
+ text += TQString::fromLatin1( "(" ) + declaratorToString( declarator->subDeclarator() ) + TQString::fromLatin1( ")" );
if ( declarator->declaratorId() )
text += declarator->declaratorId() ->text();
- QPtrList<AST> arrays = declarator->arrayDimensionList();
- QPtrListIterator<AST> it( arrays );
+ TQPtrList<AST> arrays = declarator->arrayDimensionList();
+ TQPtrListIterator<AST> it( arrays );
while ( it.current() )
{
text += "[]";
@@ -161,12 +161,12 @@ QString declaratorToString( DeclaratorAST* declarator, const QString& scope, boo
ParameterDeclarationListAST* l = declarator->parameterDeclarationClause() ->parameterDeclarationList();
if ( l != 0 )
{
- QPtrList<ParameterDeclarationAST> params = l->parameterList();
- QPtrListIterator<ParameterDeclarationAST> it( params );
+ TQPtrList<ParameterDeclarationAST> params = l->parameterList();
+ TQPtrListIterator<ParameterDeclarationAST> it( params );
while ( it.current() )
{
- QString type = typeSpecToString( it.current() ->typeSpec() );
+ TQString type = typeSpecToString( it.current() ->typeSpec() );
text += type;
if ( !type.isEmpty() )
text += " ";
@@ -185,6 +185,6 @@ QString declaratorToString( DeclaratorAST* declarator, const QString& scope, boo
text += " const";
}
- return text.replace( QRegExp( " :: " ), "::" ).simplifyWhiteSpace();
+ return text.replace( 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 ce9ec99f..1a1c1813 100644
--- a/languages/cpp/ast_utils.h
+++ b/languages/cpp/ast_utils.h
@@ -12,7 +12,7 @@
#ifndef __ast_utils_h
#define __ast_utils_h
-#include <qstring.h>
+#include <tqstring.h>
class AST;
class DeclaratorAST;
@@ -25,9 +25,9 @@ namespace KTextEditor
}
AST* findNodeAt( AST* unit, int line, int column );
-void scopeOfNode( AST* ast, QStringList& );
-QString typeSpecToString( TypeSpecifierAST* typeSpec );
-QString declaratorToString( DeclaratorAST* declarator, const QString& scope = QString::null, bool skipPtrOp = false );
+void scopeOfNode( AST* ast, TQStringList& );
+TQString typeSpecToString( TypeSpecifierAST* typeSpec );
+TQString declaratorToString( DeclaratorAST* declarator, const TQString& scope = TQString::null, 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 ed51d0c6..d3f9c2ee 100644
--- a/languages/cpp/backgroundparser.cpp
+++ b/languages/cpp/backgroundparser.cpp
@@ -18,7 +18,7 @@
#include "kdevdeepcopy.h"
#include "kdevdriver.h"
-#include <qmutex.h>
+#include <tqmutex.h>
#include <kparts/part.h>
#include <ktexteditor/editinterface.h>
@@ -32,11 +32,11 @@
#include <kdebug.h>
#include <kapplication.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qtextstream.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqtextstream.h>
#include <list>
-#include <qdatastream.h>
+#include <tqdatastream.h>
class BackgroundKDevDriver : public KDevDriver {
@@ -44,7 +44,7 @@ public:
BackgroundKDevDriver( CppSupportPart* cppSupport, BackgroundParser* bp ) : KDevDriver( cppSupport, false ), m_backgroundParser(bp) {
}
virtual void fileParsed( ParsedFile& fileName );
- virtual void addDependence( const QString& fileName, const Dependence& dep );
+ virtual void addDependence( const TQString& fileName, const Dependence& dep );
private:
BackgroundParser* m_backgroundParser;
};
@@ -53,8 +53,8 @@ private:
class KDevSourceProvider: public SourceProvider
{
public:
- //Deadlock is a mutex that is locked when KDevSourceProvider::contents(..) is used, and that should be unlocked before QApplication 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)
- KDevSourceProvider( CppSupportPart* cppSupport, QMutex& deadlock )
+ //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)
+ KDevSourceProvider( CppSupportPart* cppSupport, TQMutex& deadlock )
: m_cppSupport( cppSupport ),
m_readFromDisk( false ),
m_deadlock(deadlock)
@@ -69,9 +69,9 @@ public:
return m_readFromDisk;
}
- virtual QString contents( const QString& fileName )
+ virtual TQString contents( const TQString& fileName )
{
- QString contents = QString::null;
+ TQString contents = TQString::null;
if ( !m_readFromDisk )
{
@@ -81,8 +81,8 @@ public:
//kdDebug(9007) << "-------> kapp locked" << endl;
- QPtrList<KParts::Part> parts( *m_cppSupport->partController() ->parts() );
- QPtrListIterator<KParts::Part> it( parts );
+ TQPtrList<KParts::Part> parts( *m_cppSupport->partController() ->parts() );
+ TQPtrListIterator<KParts::Part> it( parts );
while ( it.current() )
{
KTextEditor::Document * doc = dynamic_cast<KTextEditor::Document*>( it.current() );
@@ -92,7 +92,7 @@ public:
if ( !doc || !editIface || doc->url().path() != fileName )
continue;
- contents = QString( editIface->text().ascii() ); // deep copy
+ contents = TQString( editIface->text().ascii() ); // deep copy
//kdDebug(9007) << "-------> kapp unlocked" << endl;
@@ -105,12 +105,12 @@ public:
//kdDebug(9007) << "-------> kapp unlocked" << endl;
}
- if( m_readFromDisk || contents == QString::null )
+ if( m_readFromDisk || contents == TQString::null )
{
- QFile f( fileName );
+ TQFile f( fileName );
if ( f.open( IO_ReadOnly ) )
{
- QTextStream stream( &f );
+ TQTextStream stream( &f );
contents = stream.read();
f.close();
}
@@ -119,7 +119,7 @@ public:
return contents;
}
- virtual bool isModified( const QString& fileName )
+ virtual bool isModified( const TQString& fileName )
{
bool ret = false;
m_deadlock.unlock();
@@ -139,7 +139,7 @@ public:
private:
CppSupportPart* m_cppSupport;
bool m_readFromDisk;
- QMutex& m_deadlock;
+ TQMutex& m_deadlock;
private:
KDevSourceProvider( const KDevSourceProvider& source );
void operator = ( const KDevSourceProvider& source );
@@ -156,52 +156,52 @@ public:
bool isEmpty() const
{
- QMutexLocker locker( &m_mutex );
+ TQMutexLocker locker( &m_mutex );
return m_fileList.empty();
}
uint count() const
{
- QMutexLocker locker( &m_mutex );
+ TQMutexLocker locker( &m_mutex );
return m_fileList.size();
}
QPair<SafeString, bool> front() const
{
- QMutexLocker locker( &m_mutex );
+ TQMutexLocker locker( &m_mutex );
return m_fileList.front();
}
void clear()
{
- QMutexLocker locker( &m_mutex );
+ TQMutexLocker locker( &m_mutex );
m_fileList.clear();
}
- void push_front( const QString& fileName, bool readFromDisk = false )
+ void push_front( const TQString& fileName, bool readFromDisk = false )
{
SafeString s( fileName.ascii() );
- QMutexLocker locker( &m_mutex );
+ TQMutexLocker locker( &m_mutex );
m_fileList.push_front( qMakePair( s, readFromDisk ) );
}
- void push_back( const QString& fileName, bool readFromDisk = false )
+ void push_back( const TQString& fileName, bool readFromDisk = false )
{
SafeString s( fileName.ascii() );
- QMutexLocker locker( &m_mutex );
+ TQMutexLocker locker( &m_mutex );
m_fileList.push_back( qMakePair( s, readFromDisk ) );
}
void pop_front()
{
- QMutexLocker locker( &m_mutex );
+ TQMutexLocker locker( &m_mutex );
m_fileList.pop_front();
}
- int count( const QString& fileName ) const {
+ int count( const TQString& fileName ) const {
int c = 0;
- QMutexLocker locker( &m_mutex );
+ TQMutexLocker locker( &m_mutex );
ListType::const_iterator it = m_fileList.begin();
while ( it != m_fileList.end() )
{
@@ -214,15 +214,15 @@ public:
QPair<SafeString, bool> takeFront()
{
- QMutexLocker locker( &m_mutex );
+ TQMutexLocker locker( &m_mutex );
QPair<SafeString, bool> ret = m_fileList.front();
m_fileList.pop_front();
return ret;
}
- bool contains( const QString& fileName ) const
+ bool contains( const TQString& fileName ) const
{
- QMutexLocker locker( &m_mutex );
+ TQMutexLocker locker( &m_mutex );
ListType::const_iterator it = m_fileList.begin();
while ( it != m_fileList.end() )
{
@@ -233,9 +233,9 @@ public:
return false;
}
- void remove( const QString& fileName )
+ void remove( const TQString& fileName )
{
- QMutexLocker locker( &m_mutex );
+ TQMutexLocker locker( &m_mutex );
ListType::iterator it = m_fileList.begin();
while ( it != m_fileList.end() )
{
@@ -247,20 +247,20 @@ public:
}
private:
- mutable QMutex m_mutex;
+ mutable TQMutex m_mutex;
ListType m_fileList;
};
-BackgroundParser::BackgroundParser( CppSupportPart* part, QWaitCondition* consumed )
+BackgroundParser::BackgroundParser( CppSupportPart* part, TQWaitCondition* consumed )
: m_consumed( consumed ), m_cppSupport( part ), m_close( false ), m_saveMemory( false )
{
m_fileList = new SynchronizedFileList();
m_driver = new BackgroundKDevDriver( m_cppSupport, this );
m_driver->setSourceProvider( new KDevSourceProvider( m_cppSupport, m_mutex ) );
- QString conf_file_name = m_cppSupport->specialHeaderName();
+ TQString conf_file_name = m_cppSupport->specialHeaderName();
m_mutex.lock();
- if ( QFile::exists( conf_file_name ) )
+ if ( TQFile::exists( conf_file_name ) )
m_driver->parseFile( conf_file_name, true, true, true );
m_mutex.unlock();
@@ -278,9 +278,9 @@ BackgroundParser::~BackgroundParser()
m_fileList = 0;
}
-void BackgroundParser::addFile( const QString& fileName, bool readFromDisk )
+void BackgroundParser::addFile( const TQString& fileName, bool readFromDisk )
{
- QString fn = deepCopy( fileName );
+ TQString fn = deepCopy( fileName );
//bool added = false;
/*if ( !m_fileList->contains( fn ) )
@@ -294,9 +294,9 @@ void BackgroundParser::addFile( const QString& fileName, bool readFromDisk )
m_canParse.wakeAll();
}
-void BackgroundParser::addFileFront( const QString& fileName, bool readFromDisk )
+void BackgroundParser::addFileFront( const TQString& fileName, bool readFromDisk )
{
- QString fn = deepCopy( fileName );
+ TQString fn = deepCopy( fileName );
bool added = false;
/*if ( m_fileList->contains( fn ) )
@@ -312,9 +312,9 @@ void BackgroundParser::addFileFront( const QString& fileName, bool readFromDisk
void BackgroundParser::removeAllFiles()
{
kdDebug( 9007 ) << "BackgroundParser::removeAllFiles()" << endl;
- QMutexLocker locker( &m_mutex );
+ TQMutexLocker locker( &m_mutex );
- QMap<QString, Unit*>::Iterator it = m_unitDict.begin();
+ TQMap<TQString, Unit*>::Iterator it = m_unitDict.begin();
while ( it != m_unitDict.end() )
{
Unit * unit = it.data();
@@ -329,9 +329,9 @@ void BackgroundParser::removeAllFiles()
m_isEmpty.wakeAll();
}
-void BackgroundParser::removeFile( const QString& fileName )
+void BackgroundParser::removeFile( const TQString& fileName )
{
- QMutexLocker locker( &m_mutex );
+ TQMutexLocker locker( &m_mutex );
Unit* unit = findUnit( fileName );
if ( unit )
@@ -347,7 +347,7 @@ void BackgroundParser::removeFile( const QString& fileName )
m_isEmpty.wakeAll();
}
-void BackgroundKDevDriver::addDependence( const QString& fileName, const Dependence& dep ) {
+void BackgroundKDevDriver::addDependence( const TQString& fileName, const Dependence& dep ) {
//give waiting threads a chance to perform their actions
m_backgroundParser->m_mutex.unlock();
m_backgroundParser->m_mutex.lock();
@@ -358,7 +358,7 @@ void BackgroundKDevDriver::fileParsed( ParsedFile& fileName ) {
m_backgroundParser->fileParsed( fileName );
}
-void BackgroundParser::parseFile( const QString& fileName, bool readFromDisk, bool lock )
+void BackgroundParser::parseFile( const TQString& fileName, bool readFromDisk, bool lock )
{
if( lock )
m_mutex.lock();
@@ -374,9 +374,9 @@ void BackgroundParser::parseFile( const QString& fileName, bool readFromDisk, bo
m_mutex.unlock();
}
-QValueList<Problem> cloneProblemList( const QValueList<Problem>& list ) {
- QValueList<Problem> ret;
- for( QValueList<Problem>::const_iterator it = list.begin(); it != list.end(); ++it ) {
+TQValueList<Problem> cloneProblemList( const TQValueList<Problem>& list ) {
+ TQValueList<Problem> ret;
+ for( TQValueList<Problem>::const_iterator it = list.begin(); it != list.end(); ++it ) {
ret << Problem( *it, true );
}
return ret;
@@ -389,13 +389,13 @@ void BackgroundParser::fileParsed( ParsedFile& file ) {
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
//serializing and deserializing the whole thing(the serialization does not respect the AST, but that can be copied later because that's safe)
- QMemArray<char> data;
+ TQMemArray<char> data;
{
- QDataStream stream( data, IO_WriteOnly );
+ TQDataStream stream( data, IO_WriteOnly );
translationUnitUnsafe->write( stream );
}
{
- QDataStream stream( data, IO_ReadOnly );
+ TQDataStream stream( data, IO_ReadOnly );
translationUnit = new ParsedFile( stream );
}
@@ -422,24 +422,24 @@ void BackgroundParser::fileParsed( ParsedFile& file ) {
KApplication::postEvent( m_cppSupport, new FileParsedEvent( file.fileName(), unit->problems, m_readFromDisk ) );
- m_currentFile = QString::null;
+ m_currentFile = TQString::null;
if ( m_fileList->isEmpty() )
m_isEmpty.wakeAll();
}
-Unit* BackgroundParser::findUnit( const QString& fileName )
+Unit* BackgroundParser::findUnit( const TQString& fileName )
{
- QMap<QString, Unit*>::Iterator it = m_unitDict.find( fileName );
+ TQMap<TQString, Unit*>::Iterator it = m_unitDict.find( fileName );
return it != m_unitDict.end() ? *it : 0;
}
-bool BackgroundParser::hasTranslationUnit( const QString& fileName ) {
- QMap<QString, Unit*>::Iterator it = m_unitDict.find( fileName );
+bool BackgroundParser::hasTranslationUnit( const TQString& fileName ) {
+ TQMap<TQString, Unit*>::Iterator it = m_unitDict.find( fileName );
return it != m_unitDict.end();
}
-ParsedFilePointer BackgroundParser::translationUnit( const QString& fileName )
+ParsedFilePointer BackgroundParser::translationUnit( const TQString& fileName )
{
Unit * u = findUnit( fileName );
if ( u == 0 )
@@ -453,7 +453,7 @@ ParsedFilePointer BackgroundParser::translationUnit( const QString& fileName )
return u->translationUnit;
}
-QValueList<Problem> BackgroundParser::problems( const QString& fileName, bool readFromDisk, bool forceParse )
+TQValueList<Problem> BackgroundParser::problems( const TQString& fileName, bool readFromDisk, bool forceParse )
{
Q_UNUSED(readFromDisk);
Unit * u = findUnit( fileName );
@@ -465,13 +465,13 @@ QValueList<Problem> BackgroundParser::problems( const QString& fileName, bool re
u = parseFile( fileName, readFromDisk ); */
}
- return u ? u->problems : QValueList<Problem>();
+ return u ? u->problems : TQValueList<Problem>();
}
void BackgroundParser::close()
{
{
- QMutexLocker locker( &m_mutex );
+ TQMutexLocker locker( &m_mutex );
m_close = true;
m_canParse.wakeAll();
}
@@ -484,28 +484,28 @@ void BackgroundParser::close()
bool BackgroundParser::filesInQueue()
{
- QMutexLocker locker( &m_mutex );
+ TQMutexLocker locker( &m_mutex );
return m_fileList->count() || !m_currentFile.isEmpty();
}
-int BackgroundParser::countInQueue( const QString& file ) const {
+int BackgroundParser::countInQueue( const TQString& file ) const {
return m_fileList->count( file );
}
void BackgroundParser::updateParserConfiguration()
{
- QMutexLocker locker( &m_mutex );
+ TQMutexLocker locker( &m_mutex );
m_driver->setup();
- QString conf_file_name = m_cppSupport->specialHeaderName();
+ TQString conf_file_name = m_cppSupport->specialHeaderName();
m_driver->removeAllMacrosInFile( conf_file_name );
m_driver->parseFile( conf_file_name, true, true, true );
}
void BackgroundParser::run()
{
- // (void) m_cppSupport->codeCompletion()->repository()->getEntriesInScope( QStringList(), false );
+ // (void) m_cppSupport->codeCompletion()->repository()->getEntriesInScope( TQStringList(), false );
while ( !m_close )
{
@@ -527,20 +527,20 @@ void BackgroundParser::run()
break;
QPair<SafeString, bool> entry = m_fileList->takeFront();
- QString fileName = entry.first.c_str();
+ TQString fileName = entry.first.c_str();
bool readFromDisk = entry.second;
m_currentFile = deepCopy(fileName);
( void ) parseFile( fileName, readFromDisk, true );
- m_currentFile = QString::null;
+ m_currentFile = TQString::null;
}
kdDebug( 9007 ) << "!!!!!!!!!!!!!!!!!! BG PARSER DESTROYED !!!!!!!!!!!!" << endl;
// adymo: commented to fix #88091
-// QThread::exit();
+// TQThread::exit();
}
void BackgroundParser::saveMemory() {
diff --git a/languages/cpp/backgroundparser.h b/languages/cpp/backgroundparser.h
index 2bbf1173..6bbec3fc 100644
--- a/languages/cpp/backgroundparser.h
+++ b/languages/cpp/backgroundparser.h
@@ -15,10 +15,10 @@
#include "ast.h"
#include "driver.h"
-#include <qthread.h>
-#include <qwaitcondition.h>
-#include <qmutex.h>
-#include <qmap.h>
+#include <tqthread.h>
+#include <tqwaitcondition.h>
+#include <tqmutex.h>
+#include <tqmap.h>
#include <kdebug.h>
class CppSupportPart;
@@ -35,8 +35,8 @@ public:
translationUnit = 0;
}
- QString fileName;
- QValueList<Problem> problems;
+ TQString fileName;
+ TQValueList<Problem> problems;
ParsedFilePointer translationUnit;
protected:
@@ -47,10 +47,10 @@ protected:
class BackgroundParser: public QThread
{
public:
- BackgroundParser( CppSupportPart*, QWaitCondition* consumed );
+ BackgroundParser( CppSupportPart*, TQWaitCondition* consumed );
virtual ~BackgroundParser();
- QMutex& mutex()
+ TQMutex& mutex()
{
return m_mutex;
}
@@ -63,27 +63,27 @@ public:
m_mutex.unlock();
}
- QWaitCondition& canParse()
+ TQWaitCondition& canParse()
{
return m_canParse;
}
- QWaitCondition& isEmpty()
+ TQWaitCondition& isEmpty()
{
return m_isEmpty;
}
bool filesInQueue();
- int countInQueue( const QString& file ) const;
+ int countInQueue( const TQString& file ) const;
- void addFile( const QString& fileName, bool readFromDisk = false );
- void addFileFront( const QString& fileName, bool readFromDisk = false );
- void removeFile( const QString& fileName );
+ void addFile( const TQString& fileName, bool readFromDisk = false );
+ void addFileFront( const TQString& fileName, bool readFromDisk = false );
+ void removeFile( const TQString& fileName );
void removeAllFiles();
- bool hasTranslationUnit( const QString& fileName );
- ParsedFilePointer translationUnit( const QString& fileName );
- QValueList<Problem> problems( const QString& fileName , bool readFromDisk = false, bool forceParse = false );
+ bool hasTranslationUnit( const TQString& fileName );
+ ParsedFilePointer translationUnit( const TQString& fileName );
+ TQValueList<Problem> problems( const TQString& fileName , bool readFromDisk = false, bool forceParse = false );
void updateParserConfiguration();
///Should be run on a regular basis(every X minutes). It reduces some caches etc. BackgroundParser must be locked before.
@@ -96,21 +96,21 @@ public:
protected:
friend class BackgroundKDevDriver;
void fileParsed( ParsedFile& fileName );
- Unit* findUnit( const QString& fileName );
- void parseFile( const QString& fileName, bool readFromDisk, bool lock = false )
+ Unit* findUnit( const TQString& fileName );
+ void parseFile( const TQString& fileName, bool readFromDisk, bool lock = false )
;
private:
class KDevDriver* m_driver;
- QString m_currentFile;
- QWaitCondition m_canParse;
- QWaitCondition m_isEmpty;
- QWaitCondition* m_consumed;
- QMutex m_mutex;
+ TQString m_currentFile;
+ TQWaitCondition m_canParse;
+ TQWaitCondition m_isEmpty;
+ TQWaitCondition* m_consumed;
+ TQMutex m_mutex;
SynchronizedFileList* m_fileList;
CppSupportPart* m_cppSupport;
bool m_close;
- QMap<QString, Unit*> m_unitDict;
+ TQMap<TQString, Unit*> m_unitDict;
bool m_saveMemory; //used to prevent blocking
//State of parseFile(..):
diff --git a/languages/cpp/ccconfigwidget.cpp b/languages/cpp/ccconfigwidget.cpp
index 09b13938..44ce91c2 100644
--- a/languages/cpp/ccconfigwidget.cpp
+++ b/languages/cpp/ccconfigwidget.cpp
@@ -10,19 +10,19 @@
* *
***************************************************************************/
// qt includes
-#include <qtabwidget.h>
-#include <qbuttongroup.h>
-#include <qcheckbox.h>
-#include <qlineedit.h>
-#include <qspinbox.h>
-#include <qradiobutton.h>
-#include <qcombobox.h>
-#include <qmultilineedit.h>
-#include <qslider.h>
-#include <qheader.h>
-#include <qcolor.h>
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqtabwidget.h>
+#include <tqbuttongroup.h>
+#include <tqcheckbox.h>
+#include <tqlineedit.h>
+#include <tqspinbox.h>
+#include <tqradiobutton.h>
+#include <tqcombobox.h>
+#include <tqmultilineedit.h>
+#include <tqslider.h>
+#include <tqheader.h>
+#include <tqcolor.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
// kde includes
#include <kdevproject.h>
@@ -60,19 +60,19 @@
using namespace std;
-CCConfigWidget::CCConfigWidget( CppSupportPart* part, QWidget* parent, const char* name )
+CCConfigWidget::CCConfigWidget( CppSupportPart* part, TQWidget* parent, const char* name )
: CCConfigWidgetBase( parent, name )
{
m_pPart = part;
- connect( m_pPart->codeRepository(), SIGNAL( catalogRegistered( Catalog* ) ),
- this, SLOT( catalogRegistered( Catalog* ) ) );
- connect( m_pPart->codeRepository(), SIGNAL( catalogUnregistered( Catalog* ) ),
- this, SLOT( catalogUnregistered( Catalog* ) ) );
+ connect( m_pPart->codeRepository(), TQT_SIGNAL( catalogRegistered( Catalog* ) ),
+ this, TQT_SLOT( catalogRegistered( Catalog* ) ) );
+ connect( m_pPart->codeRepository(), TQT_SIGNAL( catalogUnregistered( Catalog* ) ),
+ this, TQT_SLOT( catalogUnregistered( Catalog* ) ) );
- connect( m_qtDir, SIGNAL(urlSelected(const QString &)),
- this, SLOT(isValidQtDir(const QString &)));
- connect( m_qtDir, SIGNAL(textChanged(const QString &)),
- this, SLOT(isValidQtDir(const QString &)));
+ connect( m_qtDir, TQT_SIGNAL(urlSelected(const TQString &)),
+ this, TQT_SLOT(isValidQtDir(const TQString &)));
+ connect( m_qtDir, TQT_SIGNAL(textChanged(const TQString &)),
+ this, TQT_SLOT(isValidQtDir(const TQString &)));
initGeneralTab( );
initQtTab();
@@ -85,7 +85,7 @@ CCConfigWidget::CCConfigWidget( CppSupportPart* part, QWidget* parent, const cha
void CCConfigWidget::initGeneralTab( )
{
- QDomDocument dom = *m_pPart->projectDom();
+ TQDomDocument dom = *m_pPart->projectDom();
interface_suffix->setText( DomUtil::readEntry( dom, "/cppsupportpart/filetemplates/interfacesuffix", ".h" ) );
implementation_suffix->setText( DomUtil::readEntry( dom, "/cppsupportpart/filetemplates/implementationsuffix", ".cpp" ) );
@@ -112,7 +112,7 @@ void CCConfigWidget::accept( )
void CCConfigWidget::saveFileTemplatesTab( )
{
- QDomDocument dom = *m_pPart->projectDom();
+ TQDomDocument dom = *m_pPart->projectDom();
DomUtil::writeEntry( dom, "/cppsupportpart/filetemplates/interfacesuffix", interface_suffix->text() );
DomUtil::writeEntry( dom, "/cppsupportpart/filetemplates/implementationsuffix", implementation_suffix->text() );
@@ -157,12 +157,12 @@ void CCConfigWidget::initCodeCompletionTab( )
break;
}*/
- QValueList<Catalog*> catalogs = m_pPart->codeRepository() ->registeredCatalogs();
- for ( QValueList<Catalog*>::Iterator it = catalogs.begin(); it != catalogs.end(); ++it )
+ TQValueList<Catalog*> catalogs = m_pPart->codeRepository() ->registeredCatalogs();
+ for ( TQValueList<Catalog*>::Iterator it = catalogs.begin(); it != catalogs.end(); ++it )
{
Catalog* c = *it;
- QFileInfo dbInfo( c->dbName() );
- QCheckListItem* item = new QCheckListItem( advancedOptions, KURL::decode_string( dbInfo.baseName(true) ), QCheckListItem::CheckBox );
+ TQFileInfo dbInfo( c->dbName() );
+ TQCheckListItem* item = new TQCheckListItem( advancedOptions, KURL::decode_string( dbInfo.baseName(true) ), TQCheckListItem::CheckBox );
item->setOn( c->enabled() );
m_catalogs[ item ] = c;
@@ -203,7 +203,7 @@ void CCConfigWidget::saveCodeCompletionTab( )
if( radioGroupByAlphabet->isChecked() )
c->setCompletionBoxItemOrder( CppCodeCompletionConfig::ByAlphabet );*/
- for ( QMap<QCheckListItem*, Catalog*>::Iterator it = m_catalogs.begin(); it != m_catalogs.end(); ++it )
+ for ( TQMap<TQCheckListItem*, Catalog*>::Iterator it = m_catalogs.begin(); it != m_catalogs.end(); ++it )
{
it.data() ->setEnabled( it.key() ->isOn() );
}
@@ -229,11 +229,11 @@ void CCConfigWidget::slotRemovePCS()
if ( !advancedOptions->selectedItem() )
return ;
- QString db = advancedOptions->selectedItem() ->text( 0 );
- QString question = i18n( "Are you sure you want to delete the \"%1\" database?" ).arg( db );
+ TQString db = advancedOptions->selectedItem() ->text( 0 );
+ TQString question = i18n( "Are you sure you want to delete the \"%1\" database?" ).arg( db );
KStandardDirs *dirs = m_pPart->instance() ->dirs();
- QString dbName = dirs->saveLocation( "data", "kdevcppsupport/pcs" ) + KURL::encode_string_no_slash( db ) + ".db";
+ TQString dbName = dirs->saveLocation( "data", "kdevcppsupport/pcs" ) + KURL::encode_string_no_slash( db ) + ".db";
if ( KMessageBox::Continue == KMessageBox::warningContinueCancel( 0, question, i18n( "Delete Database" ), KStdGuiItem::del() ) )
{
@@ -243,8 +243,8 @@ void CCConfigWidget::slotRemovePCS()
void CCConfigWidget::catalogRegistered( Catalog * c )
{
- QFileInfo dbInfo( c->dbName() );
- QCheckListItem* item = new QCheckListItem( advancedOptions, KURL::decode_string( dbInfo.baseName(true) ), QCheckListItem::CheckBox );
+ TQFileInfo dbInfo( c->dbName() );
+ TQCheckListItem* item = new TQCheckListItem( advancedOptions, KURL::decode_string( dbInfo.baseName(true) ), TQCheckListItem::CheckBox );
item->setOn( c->enabled() );
m_catalogs[ item ] = c;
@@ -252,11 +252,11 @@ void CCConfigWidget::catalogRegistered( Catalog * c )
void CCConfigWidget::catalogUnregistered( Catalog * c )
{
- for ( QMap<QCheckListItem*, Catalog*>::Iterator it = m_catalogs.begin(); it != m_catalogs.end(); ++it )
+ for ( TQMap<TQCheckListItem*, Catalog*>::Iterator it = m_catalogs.begin(); it != m_catalogs.end(); ++it )
{
if ( it.data() == c )
{
- QCheckListItem * item = it.key();
+ TQCheckListItem * item = it.key();
delete( item );
m_catalogs.remove( it );
break;
@@ -284,16 +284,16 @@ void CCConfigWidget::slotGetterSetterValuesChanged( )
bool hasError = false;
if ( m_edtParameterName->text().isEmpty() )
{
- m_lblParameterName->setPaletteForegroundColor( QColor( "red" ) );
+ m_lblParameterName->setPaletteForegroundColor( TQColor( "red" ) );
m_edtExampleGet->setText( "error, missing parametername" );
m_edtExampleSet->setText( "error, missing parametername" );
hasError = true;
}
- QString name = m_edtVariableName->text();
+ TQString name = m_edtVariableName->text();
if ( name.isEmpty() )
{
- m_lblVariableName->setPaletteForegroundColor( QColor( "red" ) );
+ m_lblVariableName->setPaletteForegroundColor( TQColor( "red" ) );
m_edtExampleGet->setText( "error, missing variablename" );
m_edtExampleSet->setText( "error, missing variablename" );
hasError = true;
@@ -301,23 +301,23 @@ void CCConfigWidget::slotGetterSetterValuesChanged( )
if ( hasError )
{
- m_edtExampleGet->setPaletteForegroundColor( QColor( "red" ) );
- m_edtExampleSet->setPaletteForegroundColor( QColor( "red" ) );
+ m_edtExampleGet->setPaletteForegroundColor( TQColor( "red" ) );
+ m_edtExampleSet->setPaletteForegroundColor( TQColor( "red" ) );
return ;
}
else
{
- m_lblVariableName->setPaletteForegroundColor( QColor( "black" ) );
- m_lblParameterName->setPaletteForegroundColor( QColor( "black" ) );
- m_edtExampleGet->setPaletteForegroundColor( QColor( "black" ) );
- m_edtExampleSet->setPaletteForegroundColor( QColor( "black" ) );
+ m_lblVariableName->setPaletteForegroundColor( TQColor( "black" ) );
+ m_lblParameterName->setPaletteForegroundColor( TQColor( "black" ) );
+ m_edtExampleGet->setPaletteForegroundColor( TQColor( "black" ) );
+ m_edtExampleSet->setPaletteForegroundColor( TQColor( "black" ) );
}
- QStringList prefixes = QStringList::split( ",", m_edtRemovePrefix->text().replace( " ", "" ) );
+ TQStringList prefixes = TQStringList::split( ",", m_edtRemovePrefix->text().replace( " ", "" ) );
unsigned int len = 0;
- QStringList::ConstIterator theend = prefixes.end();
- for ( QStringList::ConstIterator ci = prefixes.begin(); ci != theend; ++ci )
+ TQStringList::ConstIterator theend = prefixes.end();
+ for ( TQStringList::ConstIterator ci = prefixes.begin(); ci != theend; ++ci )
{
if ( name.startsWith( *ci ) && ( *ci ).length() > len )
len = ( *ci ).length();
@@ -326,14 +326,14 @@ void CCConfigWidget::slotGetterSetterValuesChanged( )
if ( len > 0 )
name.remove( 0, len );
- QString getName = name;
+ TQString getName = name;
if ( !m_edtGet->text().isEmpty() )
{
getName[ 0 ] = getName[ 0 ].upper();
getName.prepend( m_edtGet->text() );
}
- QString setName = name;
+ TQString setName = name;
if ( !m_edtSet->text().isEmpty() )
{
setName[ 0 ] = setName[ 0 ].upper();
@@ -355,7 +355,7 @@ void CCConfigWidget::saveGetterSetterTab( )
config->setPrefixGet( m_edtGet->text() );
config->setPrefixSet( m_edtSet->text() );
- config->setPrefixVariable( QStringList::split( ",", m_edtRemovePrefix->text().replace( " ", "" ) ) );
+ config->setPrefixVariable( TQStringList::split( ",", m_edtRemovePrefix->text().replace( " ", "" ) ) );
config->setParameterName( m_edtParameterName->text() );
config->store();
}
@@ -370,7 +370,7 @@ void CCConfigWidget::initSplitTab( )
m_splitEnable->setChecked( config->splitEnabled() );
m_splitSync->setChecked( config->autoSync() );
- QString o = config->orientation();
+ TQString o = config->orientation();
m_splitVertical->setChecked( o == "Vertical" );
m_splitHorizontal->setChecked( o == "Horizontal" );
}
@@ -453,29 +453,29 @@ void CCConfigWidget::initQtTab()
}
}
-bool CCConfigWidget::isExecutable( const QString& path )
+bool CCConfigWidget::isExecutable( const TQString& path )
{
- QFileInfo fi(path);
+ TQFileInfo fi(path);
return ( fi.exists() && fi.isExecutable() );
}
-void CCConfigWidget::isQMakeExecutable( const QString& path )
+void CCConfigWidget::isQMakeExecutable( const TQString& path )
{
if( !isExecutable( path ) )
{
- m_qmakePath->lineEdit()->setPaletteForegroundColor(QColor("#ff0000"));
+ m_qmakePath->lineEdit()->setPaletteForegroundColor(TQColor("#ff0000"));
}else
{
m_qmakePath->lineEdit()->unsetPalette();
}
}
-void CCConfigWidget::isDesignerExecutable( const QString& path )
+void CCConfigWidget::isDesignerExecutable( const TQString& path )
{
if( !isExecutable( path ) )
{
- m_designerPath->lineEdit()->setPaletteForegroundColor(QColor("#ff0000"));
+ m_designerPath->lineEdit()->setPaletteForegroundColor(TQColor("#ff0000"));
}else
{
m_designerPath->lineEdit()->unsetPalette();
@@ -519,14 +519,14 @@ void CCConfigWidget::saveQtTab()
c->store();
}
-void CCConfigWidget::isValidQtDir( const QString &dir )
+void CCConfigWidget::isValidQtDir( const TQString &dir )
{
- QFileInfo inc( dir + QString( QChar( QDir::separator() ) )+
- "include"+QString( QChar( QDir::separator() ) )+
- "qt.h" );
+ TQFileInfo inc( dir + TQString( TQChar( TQDir::separator() ) )+
+ "include"+TQString( TQChar( TQDir::separator() ) )+
+ "tqt.h" );
if ( !m_versionQt4->isChecked() && !inc.exists() )
{
- m_qtDir->lineEdit()->setPaletteForegroundColor(QColor("#ff0000"));
+ m_qtDir->lineEdit()->setPaletteForegroundColor(TQColor("#ff0000"));
}else
{
m_qtDir->lineEdit()->unsetPalette();
@@ -561,13 +561,13 @@ void CCConfigWidget::openPluginPaths()
kdDebug(9024) << "Plugin paths opened" << endl;
QtBuildConfig* c = m_pPart->qtBuildConfig();
KDialog d( this );
- QVBoxLayout* mainlayout = new QVBoxLayout( &d );
+ TQVBoxLayout* mainlayout = new TQVBoxLayout( &d );
KPushButton* ok = new KPushButton( KStdGuiItem::ok(), &d );
- connect( ok, SIGNAL(clicked()), &d, SLOT(accept()));
+ connect( ok, TQT_SIGNAL(clicked()), &d, TQT_SLOT(accept()));
KPushButton* cancel = new KPushButton( KStdGuiItem::cancel(), &d );
- connect( cancel, SIGNAL(clicked()), &d, SLOT(reject()));
- QHBoxLayout* btns = new QHBoxLayout( &d );
- btns->addItem( new QSpacerItem(10,10,QSizePolicy::Expanding) );
+ connect( cancel, TQT_SIGNAL(clicked()), &d, TQT_SLOT(reject()));
+ TQHBoxLayout* btns = new TQHBoxLayout( &d );
+ btns->addItem( new TQSpacerItem(10,10,TQSizePolicy::Expanding) );
btns->addWidget(ok);
btns->addWidget(cancel);
@@ -579,7 +579,7 @@ void CCConfigWidget::openPluginPaths()
mainlayout->addWidget( p );
mainlayout->addLayout( btns );
d.resize( 450, 250 );
- if( d.exec() == QDialog::Accepted)
+ if( d.exec() == TQDialog::Accepted)
{
c->setDesignerPluginPaths( p->items() );
}
diff --git a/languages/cpp/ccconfigwidget.h b/languages/cpp/ccconfigwidget.h
index b8874ed2..8dd8c9a3 100644
--- a/languages/cpp/ccconfigwidget.h
+++ b/languages/cpp/ccconfigwidget.h
@@ -13,7 +13,7 @@
#define _CCCONFIGWIDGET_H_
#include "ccconfigwidgetbase.h"
-#include <qmap.h>
+#include <tqmap.h>
class CppSupportPart;
class Catalog;
@@ -25,7 +25,7 @@ class CCConfigWidget : public CCConfigWidgetBase
Q_OBJECT
public:
- CCConfigWidget( CppSupportPart* part, QWidget* parent = 0, const char* name = 0 );
+ CCConfigWidget( CppSupportPart* part, TQWidget* parent = 0, const char* name = 0 );
virtual ~CCConfigWidget( );
public slots:
@@ -39,14 +39,14 @@ protected slots:
private slots:
void catalogRegistered( Catalog* c );
void catalogUnregistered( Catalog* c );
- void isValidQtDir( const QString & );
- void isDesignerExecutable( const QString& );
- void isQMakeExecutable( const QString& );
+ void isValidQtDir( const TQString & );
+ void isDesignerExecutable( const TQString& );
+ void isQMakeExecutable( const TQString& );
void toggleQtVersion( bool );
void openPluginPaths( );
private:
- bool isExecutable( const QString & );
+ bool isExecutable( const TQString & );
void initGeneralTab();
void saveFileTemplatesTab();
@@ -65,7 +65,7 @@ private:
private:
CppSupportPart* m_pPart;
- QMap<QCheckListItem*, Catalog*> m_catalogs;
+ TQMap<TQCheckListItem*, Catalog*> m_catalogs;
KEditListBox* m_designerPluginPaths;
};
diff --git a/languages/cpp/classgeneratorconfig.cpp b/languages/cpp/classgeneratorconfig.cpp
index c6049801..70ad5d10 100644
--- a/languages/cpp/classgeneratorconfig.cpp
+++ b/languages/cpp/classgeneratorconfig.cpp
@@ -9,11 +9,11 @@
* *
***************************************************************************/
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qtextedit.h>
-#include <qfile.h>
-#include <qfileinfo.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
+#include <tqtextedit.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
#include <kstandarddirs.h>
#include <kconfig.h>
@@ -21,7 +21,7 @@
#include "cppsupportfactory.h"
#include "classgeneratorconfig.h"
-ClassGeneratorConfig::ClassGeneratorConfig( QWidget* parent, const char* name, WFlags fl )
+ClassGeneratorConfig::ClassGeneratorConfig( TQWidget* parent, const char* name, WFlags fl )
: ClassGeneratorConfigBase( parent, name, fl )
{
readConfig();
@@ -29,12 +29,12 @@ ClassGeneratorConfig::ClassGeneratorConfig( QWidget* parent, const char* name, W
template_edit->setText( *currTemplate );
}
-ClassGeneratorConfig::ClassGeneratorConfig( QString v_cppHeaderText, QString v_cppSourceText,
- QString v_objcHeaderText, QString v_objcSourceText,
- QString v_gtkHeaderText, QString v_gtkSourceText,
+ClassGeneratorConfig::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,
- QWidget* parent, const char* name, WFlags fl )
+ TQWidget* parent, const char* name, WFlags fl )
: ClassGeneratorConfigBase( parent, name, fl ),
cppHeaderText( v_cppHeaderText ), cppSourceText( v_cppSourceText ),
objcHeaderText( v_objcHeaderText ), objcSourceText( v_objcSourceText ),
@@ -62,42 +62,42 @@ void ClassGeneratorConfig::templateTypeChanged( int type )
template_edit->setText( *currTemplate );
}
-QString ClassGeneratorConfig::cppHeader()
+TQString ClassGeneratorConfig::cppHeader()
{
if ( currTemplate == &cppHeaderText )
* currTemplate = template_edit->text();
return cppHeaderText;
}
-QString ClassGeneratorConfig::cppSource()
+TQString ClassGeneratorConfig::cppSource()
{
if ( currTemplate == &cppSourceText )
* currTemplate = template_edit->text();
return cppSourceText;
}
-QString ClassGeneratorConfig::objcHeader()
+TQString ClassGeneratorConfig::objcHeader()
{
if ( currTemplate == &objcHeaderText )
* currTemplate = template_edit->text();
return objcHeaderText;
}
-QString ClassGeneratorConfig::objcSource()
+TQString ClassGeneratorConfig::objcSource()
{
if ( currTemplate == &objcSourceText )
* currTemplate = template_edit->text();
return objcSourceText;
}
-QString ClassGeneratorConfig::gtkHeader()
+TQString ClassGeneratorConfig::gtkHeader()
{
if ( currTemplate == &gtkHeaderText )
* currTemplate = template_edit->text();
return gtkHeaderText;
}
-QString ClassGeneratorConfig::gtkSource()
+TQString ClassGeneratorConfig::gtkSource()
{
if ( currTemplate == &gtkSourceText )
* currTemplate = template_edit->text();
@@ -129,7 +129,7 @@ bool ClassGeneratorConfig::genDoc()
return doc_box->isChecked();
}
-QString *ClassGeneratorConfig::identifyTemplate( int value )
+TQString *ClassGeneratorConfig::identifyTemplate( int value )
{
switch ( value )
{
@@ -177,15 +177,15 @@ void ClassGeneratorConfig::readConfig()
}
-QString ClassGeneratorConfig::templateText( QString path )
+TQString ClassGeneratorConfig::templateText( TQString path )
{
- QFileInfo f( path );
+ TQFileInfo f( path );
if ( f.exists() )
{
- QFile file( path );
+ TQFile file( path );
if ( file.open( IO_ReadOnly ) )
{
- QTextStream stream( &file );
+ TQTextStream stream( &file );
return stream.read();
}
else
@@ -222,12 +222,12 @@ void ClassGeneratorConfig::storeConfig()
}
}
-void ClassGeneratorConfig::saveTemplateText( QString path, QString content )
+void ClassGeneratorConfig::saveTemplateText( TQString path, TQString content )
{
- QFile f( path );
+ TQFile f( path );
if ( f.open( IO_WriteOnly ) )
{
- QTextStream stream( &f );
+ TQTextStream stream( &f );
stream << content;
f.close();
}
diff --git a/languages/cpp/classgeneratorconfig.h b/languages/cpp/classgeneratorconfig.h
index b9cb08a3..783934d4 100644
--- a/languages/cpp/classgeneratorconfig.h
+++ b/languages/cpp/classgeneratorconfig.h
@@ -21,26 +21,26 @@ class ClassGeneratorConfig : public ClassGeneratorConfigBase
public:
enum NameCase { LowerCase, UpperCase, SameAsClassCase, SameAsFileCase };
- ClassGeneratorConfig( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ ClassGeneratorConfig( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
- ClassGeneratorConfig( QString v_cppHeaderText, QString v_cppSourceText,
- QString v_objcHeaderText, QString v_objcSourceText,
- QString v_gtkHeaderText, QString v_gtkSourceText,
+ 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,
- QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~ClassGeneratorConfig();
/*$PUBLIC_FUNCTIONS$*/
void readConfig();
- QString cppHeader();
- QString cppSource();
- QString objcHeader();
- QString objcSource();
- QString gtkHeader();
- QString gtkSource();
+ TQString cppHeader();
+ TQString cppSource();
+ TQString objcHeader();
+ TQString objcSource();
+ TQString gtkHeader();
+ TQString gtkSource();
NameCase fileCase();
NameCase defCase();
@@ -61,18 +61,18 @@ protected slots:
virtual void templateTypeChanged( int type );
private:
- QString *identifyTemplate( int value );
- QString templateText( QString path );
- void saveTemplateText( QString path, QString content );
-
- QString cppHeaderText;
- QString cppSourceText;
- QString objcHeaderText;
- QString objcSourceText;
- QString gtkHeaderText;
- QString gtkSourceText;
-
- QString *currTemplate;
+ TQString *identifyTemplate( int value );
+ TQString templateText( TQString path );
+ void saveTemplateText( TQString path, TQString content );
+
+ TQString cppHeaderText;
+ TQString cppSourceText;
+ TQString objcHeaderText;
+ TQString objcSourceText;
+ TQString gtkHeaderText;
+ TQString gtkSourceText;
+
+ TQString *currTemplate;
};
#endif
diff --git a/languages/cpp/codeinformationrepository.cpp b/languages/cpp/codeinformationrepository.cpp
index 5bb22a68..e71f3a66 100644
--- a/languages/cpp/codeinformationrepository.cpp
+++ b/languages/cpp/codeinformationrepository.cpp
@@ -16,17 +16,17 @@
#include <kdebug.h>
/// @todo move in utils.cpp
-static QValueList<KTextEditor::CompletionEntry>
-my_unique( const QValueList<KTextEditor::CompletionEntry>& entryList )
+static TQValueList<KTextEditor::CompletionEntry>
+my_unique( const TQValueList<KTextEditor::CompletionEntry>& entryList )
{
- QValueList< KTextEditor::CompletionEntry > l;
- QMap<QString, bool> map;
- QValueList< KTextEditor::CompletionEntry >::ConstIterator it = entryList.begin();
+ TQValueList< KTextEditor::CompletionEntry > l;
+ TQMap<TQString, bool> map;
+ TQValueList< KTextEditor::CompletionEntry >::ConstIterator it = entryList.begin();
while ( it != entryList.end() )
{
KTextEditor::CompletionEntry e = *it++;
- QString key = e.type + " " +
+ TQString key = e.type + " " +
e.text + " " +
e.prefix + " " +
e.postfix + " ";
@@ -46,14 +46,14 @@ CodeInformationRepository::CodeInformationRepository( KDevCodeRepository* rep )
CodeInformationRepository::~CodeInformationRepository()
{}
-QValueList<Tag> CodeInformationRepository::query( const QValueList<Catalog :: QueryArgument> & args )
+TQValueList<Tag> CodeInformationRepository::query( const TQValueList<Catalog :: QueryArgument> & args )
{
// kdDebug( 9007 ) << "CodeInformationRepository::query()" << endl;
- QValueList<Tag> tags;
+ TQValueList<Tag> tags;
- QValueList<Catalog*> catalogs = m_rep->registeredCatalogs();
- QValueList<Catalog*>::Iterator it = catalogs.begin();
+ TQValueList<Catalog*> catalogs = m_rep->registeredCatalogs();
+ TQValueList<Catalog*>::Iterator it = catalogs.begin();
while ( it != catalogs.end() )
{
Catalog * catalog = *it;
@@ -68,36 +68,36 @@ QValueList<Tag> CodeInformationRepository::query( const QValueList<Catalog :: Qu
return tags;
}
-QValueList<Tag> CodeInformationRepository::getTagsInFile( const QString & fileName )
+TQValueList<Tag> CodeInformationRepository::getTagsInFile( const TQString & fileName )
{
kdDebug( 9007 ) << "CodeInformationRepository::getTagsInFile()" << endl;
- QValueList<Catalog::QueryArgument> args;
+ TQValueList<Catalog::QueryArgument> args;
args << Catalog::QueryArgument( "fileName", fileName );
- QValueList<Catalog*> catalogs = m_rep->registeredCatalogs();
- QValueList<Catalog*>::Iterator it = catalogs.begin();
+ TQValueList<Catalog*> catalogs = m_rep->registeredCatalogs();
+ TQValueList<Catalog*>::Iterator it = catalogs.begin();
while ( it != catalogs.end() )
{
Catalog * catalog = *it;
++it;
- QValueList<Tag> tags = catalog->query( args );
+ TQValueList<Tag> tags = catalog->query( args );
if ( tags.size() )
return tags;
}
- return QValueList<Tag>();
+ return TQValueList<Tag>();
}
-QValueList<Tag> CodeInformationRepository::getTagsInScope( const QStringList & scope, bool // isInstance
+TQValueList<Tag> CodeInformationRepository::getTagsInScope( const TQStringList & scope, bool // isInstance
)
{
kdDebug( 9007 ) << "CodeInformationRepository::getTagsInScope()" << endl;
- QValueList<Tag> tags;
- QValueList<Catalog::QueryArgument> args;
+ TQValueList<Tag> tags;
+ TQValueList<Catalog::QueryArgument> args;
#if 0
@@ -133,7 +133,7 @@ QValueList<Tag> CodeInformationRepository::getTagsInScope( const QStringList & s
return tags;
}
-QValueList<KTextEditor::CompletionEntry> CodeInformationRepository::getEntriesInScope( const QStringList & scope, bool isInstance, bool recompute )
+TQValueList<KTextEditor::CompletionEntry> CodeInformationRepository::getEntriesInScope( const TQStringList & scope, bool isInstance, bool recompute )
{
kdDebug( 9007 ) << "CodeInformationRepository::getEntriesInScope()" << endl;
@@ -149,14 +149,14 @@ QValueList<KTextEditor::CompletionEntry> CodeInformationRepository::getEntriesIn
}
-QValueList<Tag> CodeInformationRepository::getBaseClassList( const QString& className )
+TQValueList<Tag> CodeInformationRepository::getBaseClassList( const TQString& className )
{
// kdDebug( 9007 ) << "CodeInformationRepository::getBaseClassList()" << endl;
if ( className.isEmpty() )
- return QValueList<Tag>();
+ return TQValueList<Tag>();
- QValueList<Catalog::QueryArgument> args;
+ TQValueList<Catalog::QueryArgument> args;
args << Catalog::QueryArgument( "kind", Tag::Kind_Base_class );
/* if( className.length() >= 2 )
args << Catalog::QueryArgument( "prefix", className.left(2) );*/
@@ -164,12 +164,12 @@ QValueList<Tag> CodeInformationRepository::getBaseClassList( const QString& clas
return query( args );
}
-QValueList<Tag> CodeInformationRepository::getClassOrNamespaceList( const QStringList & scope )
+TQValueList<Tag> CodeInformationRepository::getClassOrNamespaceList( const TQStringList & scope )
{
kdDebug( 9007 ) << "CodeInformationRepository::getClassOrNamespaceList()" << endl;
- QValueList<Tag> tags;
- QValueList<Catalog::QueryArgument> args;
+ TQValueList<Tag> tags;
+ TQValueList<Catalog::QueryArgument> args;
args << Catalog::QueryArgument( "kind", Tag::Kind_Namespace )
<< Catalog::QueryArgument( "scope", scope );
@@ -183,10 +183,10 @@ QValueList<Tag> CodeInformationRepository::getClassOrNamespaceList( const QStrin
return tags;
}
-QValueList<Tag> CodeInformationRepository::getTagsInScope( const QString & name, const QStringList & scope )
+TQValueList<Tag> CodeInformationRepository::getTagsInScope( const TQString & name, const TQStringList & scope )
{
- QValueList<Tag> tags;
- QValueList<Catalog::QueryArgument> args;
+ TQValueList<Tag> tags;
+ TQValueList<Catalog::QueryArgument> args;
args.clear();
args << Catalog::QueryArgument( "scope", scope );
@@ -233,8 +233,8 @@ KTextEditor::CompletionEntry CodeInformationRepository::toEntry( Tag & tag, CppC
{
CppFunction<Tag> tagInfo( tag );
- QStringList arguments = tagInfo.arguments();
- QStringList argumentNames = tagInfo.argumentNames();
+ TQStringList arguments = tagInfo.arguments();
+ TQStringList argumentNames = tagInfo.argumentNames();
if ( completionMode == CppCodeCompletion::VirtualDeclCompletion )
{
@@ -252,7 +252,7 @@ KTextEditor::CompletionEntry CodeInformationRepository::toEntry( Tag & tag, CppC
else
entry.text += "( ";
- QString signature;
+ TQString signature;
for ( uint i = 0; i < arguments.size(); ++i )
{
if( !proc )
@@ -263,9 +263,9 @@ KTextEditor::CompletionEntry CodeInformationRepository::toEntry( Tag & tag, CppC
if ( completionMode == CppCodeCompletion::NormalCompletion ||
completionMode == CppCodeCompletion::VirtualDeclCompletion )
{
- QString argName = argumentNames[ i ];
+ TQString argName = argumentNames[ i ];
if ( !argName.isEmpty() )
- signature += QString::fromLatin1( " " ) + argName;
+ signature += TQString::fromLatin1( " " ) + argName;
}
@@ -286,15 +286,15 @@ KTextEditor::CompletionEntry CodeInformationRepository::toEntry( Tag & tag, CppC
if ( completionMode == CppCodeCompletion::VirtualDeclCompletion )
{
entry.text += entry.postfix + ";";
- entry.postfix = QString::null;
+ entry.postfix = TQString::null;
}
else if ( completionMode != CppCodeCompletion::NormalCompletion )
{
entry.text += entry.postfix;
- entry.postfix = QString::null;
+ entry.postfix = TQString::null;
}
- QString comment = tag.attribute( "description" ).toString();
+ TQString comment = tag.attribute( "description" ).toString();
if ( !comment.isNull() )
entry.comment = comment;
//else
@@ -317,12 +317,12 @@ KTextEditor::CompletionEntry CodeInformationRepository::toEntry( Tag & tag, CppC
return entry;
}
-QValueList<KTextEditor :: CompletionEntry> CodeInformationRepository::toEntryList( const QValueList<Tag> & tags, CppCodeCompletion::CompletionMode completionMode )
+TQValueList<KTextEditor :: CompletionEntry> CodeInformationRepository::toEntryList( const TQValueList<Tag> & tags, CppCodeCompletion::CompletionMode completionMode )
{
- QValueList<KTextEditor :: CompletionEntry> entryList;
- QMap<QString, bool> ns;
+ TQValueList<KTextEditor :: CompletionEntry> entryList;
+ TQMap<TQString, bool> ns;
- QValueList<Tag>::ConstIterator it = tags.begin();
+ TQValueList<Tag>::ConstIterator it = tags.begin();
while ( it != tags.end() )
{
Tag tag = *it;
diff --git a/languages/cpp/codeinformationrepository.h b/languages/cpp/codeinformationrepository.h
index f7fa712a..2c5f4cb2 100644
--- a/languages/cpp/codeinformationrepository.h
+++ b/languages/cpp/codeinformationrepository.h
@@ -14,13 +14,13 @@
#include "catalog.h"
#include "cppcodecompletion.h"
-#include <qmap.h>
+#include <tqmap.h>
#include <ktexteditor/codecompletioninterface.h>
struct TypeProcessor {
- virtual QString processType( const QString& type ) = 0;
- virtual QString parentType() = 0;
+ virtual TQString processType( const TQString& type ) = 0;
+ virtual TQString parentType() = 0;
};
class KDevCodeRepository;
@@ -31,21 +31,21 @@ public:
CodeInformationRepository( KDevCodeRepository* rep );
virtual ~CodeInformationRepository();
- static QValueList<KTextEditor::CompletionEntry> toEntryList( const QValueList<Tag>& tags,
+ static TQValueList<KTextEditor::CompletionEntry> toEntryList( const TQValueList<Tag>& tags,
CppCodeCompletion::CompletionMode mode = CppCodeCompletion::NormalCompletion );
static KTextEditor::CompletionEntry toEntry( Tag& tag, CppCodeCompletion::CompletionMode mode = CppCodeCompletion::NormalCompletion, TypeProcessor* proc = 0 );
- QValueList<KTextEditor::CompletionEntry> getEntriesInScope( const QStringList& scope, bool isInstance, bool recompute = false );
+ TQValueList<KTextEditor::CompletionEntry> getEntriesInScope( const TQStringList& scope, bool isInstance, bool recompute = false );
- QValueList<Tag> query( const QValueList<Catalog::QueryArgument>& args );
- QValueList<Tag> getTagsInScope( const QStringList& scope, bool isInstance );
- QValueList<Tag> getTagsInScope( const QString& name, const QStringList& scope );
+ TQValueList<Tag> query( const TQValueList<Catalog::QueryArgument>& args );
+ TQValueList<Tag> getTagsInScope( const TQStringList& scope, bool isInstance );
+ TQValueList<Tag> getTagsInScope( const TQString& name, const TQStringList& scope );
- QValueList<Tag> getTagsInFile( const QString& fileName );
- QValueList<Tag> getBaseClassList( const QString& className );
- QValueList<Tag> getClassOrNamespaceList( const QStringList& scope );
+ TQValueList<Tag> getTagsInFile( const TQString& fileName );
+ TQValueList<Tag> getBaseClassList( const TQString& className );
+ TQValueList<Tag> getClassOrNamespaceList( const TQStringList& scope );
private:
- QValueList<KTextEditor::CompletionEntry> m_globalEntries;
+ TQValueList<KTextEditor::CompletionEntry> m_globalEntries;
KDevCodeRepository* m_rep;
private:
diff --git a/languages/cpp/compiler/gccoptions/gccoptionsplugin.cpp b/languages/cpp/compiler/gccoptions/gccoptionsplugin.cpp
index ac547fc7..8f632d69 100644
--- a/languages/cpp/compiler/gccoptions/gccoptionsplugin.cpp
+++ b/languages/cpp/compiler/gccoptions/gccoptionsplugin.cpp
@@ -9,14 +9,14 @@
* *
***************************************************************************/
-#include <qapplication.h>
-#include <qlabel.h>
-#include <qvbuttongroup.h>
-#include <qradiobutton.h>
-#include <qvaluelist.h>
-#include <qtabwidget.h>
-#include <qlayout.h>
-#include <qvbox.h>
+#include <tqapplication.h>
+#include <tqlabel.h>
+#include <tqvbuttongroup.h>
+#include <tqradiobutton.h>
+#include <tqvaluelist.h>
+#include <tqtabwidget.h>
+#include <tqlayout.h>
+#include <tqvbox.h>
#include <kdialog.h>
#include <klocale.h>
#include <kgenericfactory.h>
@@ -29,11 +29,11 @@ K_EXPORT_COMPONENT_FACTORY( libkdevgccoptions, KGenericFactory<GccOptionsPlugin>
class GeneralTab : public QWidget
{
public:
- GeneralTab( GccOptionsPlugin::Type type, QWidget *parent = 0, const char *name = 0 );
+ GeneralTab( GccOptionsPlugin::Type type, TQWidget *parent = 0, const char *name = 0 );
~GeneralTab();
- void readFlags( QStringList *str );
- void writeFlags( QStringList *str );
+ void readFlags( TQStringList *str );
+ void writeFlags( TQStringList *str );
private:
FlagCheckBoxController *controller;
@@ -43,14 +43,14 @@ private:
class OptimizationTab : public QWidget
{
public:
- OptimizationTab( GccOptionsPlugin::Type type, QWidget *parent = 0, const char *name = 0 );
+ OptimizationTab( GccOptionsPlugin::Type type, TQWidget *parent = 0, const char *name = 0 );
~OptimizationTab();
- void readFlags( QStringList *str );
- void writeFlags( QStringList *str );
+ void readFlags( TQStringList *str );
+ void writeFlags( TQStringList *str );
private:
- QRadioButton *Odefault, *O0, *O1, *O2;
+ TQRadioButton *Odefault, *O0, *O1, *O2;
FlagListBox *optBox;
};
@@ -58,11 +58,11 @@ private:
class G77Tab : public QWidget
{
public:
- G77Tab( QWidget *parent = 0, const char *name = 0 );
+ G77Tab( TQWidget *parent = 0, const char *name = 0 );
~G77Tab();
- void readFlags( QStringList *str );
- void writeFlags( QStringList *str );
+ void readFlags( TQStringList *str );
+ void writeFlags( TQStringList *str );
private:
FlagCheckBoxController *controller;
@@ -72,11 +72,11 @@ private:
class Warnings1Tab : public QWidget
{
public:
- Warnings1Tab( GccOptionsPlugin::Type type, QWidget *parent = 0, const char *name = 0 );
+ Warnings1Tab( GccOptionsPlugin::Type type, TQWidget *parent = 0, const char *name = 0 );
~Warnings1Tab();
- void readFlags( QStringList *str );
- void writeFlags( QStringList *str );
+ void readFlags( TQStringList *str );
+ void writeFlags( TQStringList *str );
private:
FlagCheckBoxController *controller;
@@ -87,25 +87,25 @@ private:
class Warnings2Tab : public QWidget
{
public:
- Warnings2Tab( GccOptionsPlugin::Type type, QWidget *parent = 0, const char *name = 0 );
+ Warnings2Tab( GccOptionsPlugin::Type type, TQWidget *parent = 0, const char *name = 0 );
~Warnings2Tab();
- void readFlags( QStringList *str );
- void writeFlags( QStringList *str );
+ void readFlags( TQStringList *str );
+ void writeFlags( TQStringList *str );
private:
FlagListBox *wrestBox;
};
-GeneralTab::GeneralTab( GccOptionsPlugin::Type type, QWidget *parent, const char *name )
- : QWidget( parent, name ), controller( new FlagCheckBoxController )
+GeneralTab::GeneralTab( GccOptionsPlugin::Type type, TQWidget *parent, const char *name )
+ : TQWidget( parent, name ), controller( new FlagCheckBoxController )
{
- QBoxLayout * layout = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
+ TQBoxLayout * layout = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
layout->setAutoAdd( true );
layout->addSpacing( 10 );
- QVButtonGroup *output_group = new QVButtonGroup( i18n( "Output" ), this );
+ TQVButtonGroup *output_group = new TQVButtonGroup( i18n( "Output" ), this );
new FlagCheckBox( output_group, controller,
"-fsyntax-only", i18n( "Only check the code for syntax errors, do not produce object code" ) );
new FlagCheckBox( output_group, controller,
@@ -113,10 +113,10 @@ GeneralTab::GeneralTab( GccOptionsPlugin::Type type, QWidget *parent, const char
new FlagCheckBox( output_group, controller,
"-save-temps", i18n( "Do not delete intermediate output like assembler files" ) );
- QApplication::sendPostedEvents( this, QEvent::ChildInserted );
+ TQApplication::sendPostedEvents( this, TQEvent::ChildInserted );
layout->addSpacing( 10 );
- QVButtonGroup *codegen_group = new QVButtonGroup( i18n( "Code Generation" ), this );
+ TQVButtonGroup *codegen_group = new TQVButtonGroup( i18n( "Code Generation" ), this );
if ( type != GccOptionsPlugin::GPP )
{
new FlagCheckBox( codegen_group, controller,
@@ -141,7 +141,7 @@ GeneralTab::GeneralTab( GccOptionsPlugin::Type type, QWidget *parent, const char
new FlagCheckBox( codegen_group, controller,
"-short-double", i18n( "Make 'double' the same as 'float'" ) );
- QApplication::sendPostedEvents( this, QEvent::ChildInserted );
+ TQApplication::sendPostedEvents( this, TQEvent::ChildInserted );
layout->addStretch();
}
@@ -152,30 +152,30 @@ GeneralTab::~GeneralTab()
}
-void GeneralTab::readFlags( QStringList *list )
+void GeneralTab::readFlags( TQStringList *list )
{
controller->readFlags( list );
}
-void GeneralTab::writeFlags( QStringList *list )
+void GeneralTab::writeFlags( TQStringList *list )
{
controller->writeFlags( list );
}
-OptimizationTab::OptimizationTab( GccOptionsPlugin::Type type, QWidget *parent, const char *name )
- : QWidget( parent, name )
+OptimizationTab::OptimizationTab( GccOptionsPlugin::Type type, TQWidget *parent, const char *name )
+ : TQWidget( parent, name )
{
- QBoxLayout * layout = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
+ TQBoxLayout * layout = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
layout->setAutoAdd( true );
- QVButtonGroup *group = new QVButtonGroup( i18n( "Optimization Level" ), this );
- Odefault = new QRadioButton( i18n( "Default" ), group );
+ TQVButtonGroup *group = new TQVButtonGroup( i18n( "Optimization Level" ), this );
+ Odefault = new TQRadioButton( i18n( "Default" ), group );
Odefault->setChecked( true );
- O0 = new QRadioButton( i18n( "No optimization" ), group );
- O1 = new QRadioButton( i18n( "Level 1" ), group );
- O2 = new QRadioButton( i18n( "Level 2" ), group );
+ O0 = new TQRadioButton( i18n( "No optimization" ), group );
+ O1 = new TQRadioButton( i18n( "Level 1" ), group );
+ O2 = new TQRadioButton( i18n( "Level 2" ), group );
optBox = new FlagListBox( this );
@@ -210,7 +210,7 @@ OptimizationTab::OptimizationTab( GccOptionsPlugin::Type type, QWidget *parent,
"-fdefault-inline" );
}
- QApplication::sendPostedEvents( this, QEvent::ChildInserted );
+ TQApplication::sendPostedEvents( this, TQEvent::ChildInserted );
layout->addStretch();
}
@@ -219,11 +219,11 @@ OptimizationTab::~OptimizationTab()
{}
-void OptimizationTab::readFlags( QStringList *list )
+void OptimizationTab::readFlags( TQStringList *list )
{
optBox->readFlags( list );
- QStringList::Iterator sli;
+ TQStringList::Iterator sli;
sli = list->find( "-O0" );
if ( sli != list->end() )
{
@@ -248,7 +248,7 @@ void OptimizationTab::readFlags( QStringList *list )
}
-void OptimizationTab::writeFlags( QStringList *list )
+void OptimizationTab::writeFlags( TQStringList *list )
{
optBox->writeFlags( list );
@@ -261,14 +261,14 @@ void OptimizationTab::writeFlags( QStringList *list )
}
-G77Tab::G77Tab( QWidget *parent, const char *name )
- : QWidget( parent, name ), controller( new FlagCheckBoxController )
+G77Tab::G77Tab( TQWidget *parent, const char *name )
+ : TQWidget( parent, name ), controller( new FlagCheckBoxController )
{
- QBoxLayout * layout = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
+ TQBoxLayout * layout = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
layout->setAutoAdd( true );
layout->addSpacing( 10 );
- QVButtonGroup *dialect_group = new QVButtonGroup( i18n( "Dialect" ), this );
+ TQVButtonGroup *dialect_group = new TQVButtonGroup( i18n( "Dialect" ), this );
new FlagCheckBox( dialect_group, controller,
"-ffree-form", i18n( "Interpret source code as Fortran 90 free form" ),
"-fno-exception" );
@@ -282,10 +282,10 @@ G77Tab::G77Tab( QWidget *parent, const char *name )
new FlagCheckBox( dialect_group, controller,
"-fonetrip", i18n( "DO loops are executed at least once" ) );
- QApplication::sendPostedEvents( this, QEvent::ChildInserted );
+ TQApplication::sendPostedEvents( this, TQEvent::ChildInserted );
layout->addSpacing( 10 );
- QVButtonGroup *codegen_group = new QVButtonGroup( i18n( "Code Generation" ), this );
+ TQVButtonGroup *codegen_group = new TQVButtonGroup( i18n( "Code Generation" ), this );
new FlagCheckBox( codegen_group, controller,
"-fno-automatic", i18n( "Treat local variables as if SAVE statement had been specified" ) );
new FlagCheckBox( codegen_group, controller,
@@ -293,7 +293,7 @@ G77Tab::G77Tab( QWidget *parent, const char *name )
new FlagCheckBox( codegen_group, controller,
"-fbounds-check", i18n( "Generate run-time checks for array subscripts" ) );
- QApplication::sendPostedEvents( this, QEvent::ChildInserted );
+ TQApplication::sendPostedEvents( this, TQEvent::ChildInserted );
layout->addStretch();
}
@@ -304,22 +304,22 @@ G77Tab::~G77Tab()
}
-void G77Tab::readFlags( QStringList *list )
+void G77Tab::readFlags( TQStringList *list )
{
controller->readFlags( list );
}
-void G77Tab::writeFlags( QStringList *list )
+void G77Tab::writeFlags( TQStringList *list )
{
controller->writeFlags( list );
}
-Warnings1Tab::Warnings1Tab( GccOptionsPlugin::Type type, QWidget *parent, const char *name )
- : QWidget( parent, name ), controller( new FlagCheckBoxController )
+Warnings1Tab::Warnings1Tab( GccOptionsPlugin::Type type, TQWidget *parent, const char *name )
+ : TQWidget( parent, name ), controller( new FlagCheckBoxController )
{
- QBoxLayout * layout = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
+ TQBoxLayout * layout = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
layout->setAutoAdd( true );
new FlagCheckBox( this, controller,
@@ -400,24 +400,24 @@ Warnings1Tab::~Warnings1Tab()
}
-void Warnings1Tab::readFlags( QStringList *list )
+void Warnings1Tab::readFlags( TQStringList *list )
{
controller->readFlags( list );
wallBox->readFlags( list );
}
-void Warnings1Tab::writeFlags( QStringList *list )
+void Warnings1Tab::writeFlags( TQStringList *list )
{
controller->writeFlags( list );
wallBox->writeFlags( list );
}
-Warnings2Tab::Warnings2Tab( GccOptionsPlugin::Type type, QWidget *parent, const char *name )
- : QWidget( parent, name )
+Warnings2Tab::Warnings2Tab( GccOptionsPlugin::Type type, TQWidget *parent, const char *name )
+ : TQWidget( parent, name )
{
- QBoxLayout * layout = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
+ TQBoxLayout * layout = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
layout->setAutoAdd( true );
wrestBox = new FlagListBox( this );
@@ -559,23 +559,23 @@ Warnings2Tab::~Warnings2Tab()
{}
-void Warnings2Tab::readFlags( QStringList *list )
+void Warnings2Tab::readFlags( TQStringList *list )
{
wrestBox->readFlags( list );
}
-void Warnings2Tab::writeFlags( QStringList *list )
+void Warnings2Tab::writeFlags( TQStringList *list )
{
wrestBox->writeFlags( list );
}
// Last but not least... :-)
-GccOptionsDialog::GccOptionsDialog( GccOptionsPlugin::Type type, QWidget *parent, const char *name )
+GccOptionsDialog::GccOptionsDialog( GccOptionsPlugin::Type type, TQWidget *parent, const char *name )
: KDialogBase( Tabbed, GccOptionsPlugin::captionForType( type ), Ok | Cancel, Ok, parent, name, true )
{
- QVBox * vbox;
+ TQVBox * vbox;
vbox = addVBoxPage( i18n( "General" ) );
general = new GeneralTab( type, vbox, "general tab" );
@@ -603,9 +603,9 @@ GccOptionsDialog::~GccOptionsDialog()
{}
-void GccOptionsDialog::setFlags( const QString &flags )
+void GccOptionsDialog::setFlags( const TQString &flags )
{
- QStringList flaglist = QStringList::split( " ", flags );
+ TQStringList flaglist = TQStringList::split( " ", flags );
// Hand them to 'general' at last, so it can make a line edit
// with the unprocessed items
@@ -619,9 +619,9 @@ void GccOptionsDialog::setFlags( const QString &flags )
}
-QString GccOptionsDialog::flags() const
+TQString GccOptionsDialog::flags() const
{
- QStringList flaglist;
+ TQStringList flaglist;
if ( g77 )
g77->writeFlags( &flaglist );
@@ -630,8 +630,8 @@ QString GccOptionsDialog::flags() const
warnings2->writeFlags( &flaglist );
general->writeFlags( &flaglist );
- QString flags;
- QStringList::ConstIterator li;
+ TQString flags;
+ TQStringList::ConstIterator li;
for ( li = flaglist.begin(); li != flaglist.end(); ++li )
{
flags += ( *li );
@@ -649,7 +649,7 @@ QString GccOptionsDialog::flags() const
}
-GccOptionsPlugin::GccOptionsPlugin( QObject *parent, const char *name, const QStringList &args )
+GccOptionsPlugin::GccOptionsPlugin( TQObject *parent, const char *name, const TQStringList &args )
: KDevCompilerOptions( parent, name )
{
gcctype = Unknown;
@@ -657,7 +657,7 @@ GccOptionsPlugin::GccOptionsPlugin( QObject *parent, const char *name, const QSt
if ( args.count() == 0 )
return ;
- QString typeStr = args[ 0 ];
+ TQString typeStr = args[ 0 ];
if ( typeStr == "gcc" )
gcctype = GccOptionsPlugin::GCC;
@@ -672,7 +672,7 @@ GccOptionsPlugin::~GccOptionsPlugin()
{}
-QString GccOptionsPlugin::captionForType( Type type )
+TQString GccOptionsPlugin::captionForType( Type type )
{
switch ( type )
{
@@ -683,19 +683,19 @@ QString GccOptionsPlugin::captionForType( Type type )
case G77:
return i18n( "GNU Fortran 77 Compiler Options" );
default:
- return QString::null;
+ return TQString::null;
}
}
-QString GccOptionsPlugin::exec( QWidget *parent, const QString &flags )
+TQString GccOptionsPlugin::exec( TQWidget *parent, const TQString &flags )
{
if ( gcctype == Unknown )
- return QString::null;
+ return TQString::null;
GccOptionsDialog *dlg = new GccOptionsDialog( gcctype, parent, "gcc options dialog" );
- QString newFlags = flags;
+ TQString newFlags = flags;
dlg->setFlags( flags );
- if ( dlg->exec() == QDialog::Accepted )
+ if ( dlg->exec() == TQDialog::Accepted )
newFlags = dlg->flags();
delete dlg;
return newFlags;
diff --git a/languages/cpp/compiler/gccoptions/gccoptionsplugin.h b/languages/cpp/compiler/gccoptions/gccoptionsplugin.h
index a3b8cd70..e5144e01 100644
--- a/languages/cpp/compiler/gccoptions/gccoptionsplugin.h
+++ b/languages/cpp/compiler/gccoptions/gccoptionsplugin.h
@@ -30,12 +30,12 @@ class GccOptionsPlugin : public KDevCompilerOptions
public:
enum Type { GCC, GPP, G77, Unknown };
- GccOptionsPlugin( QObject *parent, const char *name, const QStringList &args );
+ GccOptionsPlugin( TQObject *parent, const char *name, const TQStringList &args );
~GccOptionsPlugin();
- static QString captionForType(Type type);
+ static TQString captionForType(Type type);
- virtual QString exec(QWidget *parent, const QString &flags);
+ virtual TQString exec(TQWidget *parent, const TQString &flags);
private:
Type gcctype;
@@ -45,11 +45,11 @@ private:
class GccOptionsDialog : public KDialogBase
{
public:
- GccOptionsDialog( GccOptionsPlugin::Type type, QWidget *parent=0, const char *name=0 );
+ GccOptionsDialog( GccOptionsPlugin::Type type, TQWidget *parent=0, const char *name=0 );
~GccOptionsDialog();
- void setFlags(const QString &flags);
- QString flags() const;
+ void setFlags(const TQString &flags);
+ TQString flags() const;
private:
GeneralTab *general;
@@ -57,7 +57,7 @@ private:
G77Tab *g77;
Warnings1Tab *warnings1;
Warnings2Tab *warnings2;
- QStringList unrecognizedFlags;
+ TQStringList unrecognizedFlags;
};
#endif
diff --git a/languages/cpp/completiondebug.h b/languages/cpp/completiondebug.h
index 088b3b99..325ad193 100644
--- a/languages/cpp/completiondebug.h
+++ b/languages/cpp/completiondebug.h
@@ -20,7 +20,7 @@ email : david.nolden.kdevelop@art-master.de
///When defined, a backtrace is printed the first time the maximum depth is reached for the first time.
//#define DEPTHBACKTRACE
-#include <qstringlist.h>
+#include <tqstringlist.h>
#include <kdebug.h>
namespace CompletionDebug {
@@ -29,7 +29,7 @@ class KDDebugState {
private:
StreamType m_stream;
kndbgstream m_nstream;
- QStringList m_prefixStack;
+ TQStringList m_prefixStack;
int m_counter;
int m_depth;
bool m_enabled;
@@ -41,7 +41,7 @@ class KDDebugState {
KDDebugState( StreamType stream ) : m_stream( stream ), m_counter( 0 ), m_depth( 0 ), m_enabled( true ), m_hadWarning( false ) {}
- void push( const QString & txt ) {
+ void push( const TQString & txt ) {
m_prefixStack.push_back( txt );
pushDepth();
}
@@ -74,7 +74,7 @@ class KDDebugState {
#endif
m_stream << "(" << m_counter << ")";
- for ( QStringList::iterator it = m_prefixStack.begin(); it != m_prefixStack.end() ; ++it )
+ for ( TQStringList::iterator it = m_prefixStack.begin(); it != m_prefixStack.end() ; ++it )
m_stream << *it;
m_counter++;
@@ -92,7 +92,7 @@ class KDDebugState {
#ifndef NDEBUG
void outputPrefix( kdbgstream& target ) {
target << "(" << m_counter << ")";
- for ( QStringList::iterator it = m_prefixStack.begin(); it != m_prefixStack.end() ; ++it )
+ for ( TQStringList::iterator it = m_prefixStack.begin(); it != m_prefixStack.end() ; ++it )
target << *it;
m_counter++;
diff --git a/languages/cpp/computerecoverypoints.h b/languages/cpp/computerecoverypoints.h
index eccd44f6..4e2056d5 100644
--- a/languages/cpp/computerecoverypoints.h
+++ b/languages/cpp/computerecoverypoints.h
@@ -22,20 +22,20 @@
#ifndef __COMPUTERECOVERYPOINTS_H__
#define __COMPUTERECOVERYPOINTS_H__
-#include <qvaluestack.h>
+#include <tqvaluestack.h>
#include "simpletype.h"
#include "simpletypenamespace.h"
#include "tree_parser.h"
-static QString toSimpleName( NameAST* name )
+static TQString toSimpleName( NameAST* name )
{
if ( !name )
- return QString::null;
+ return TQString::null;
- QString s;
- QPtrList<ClassOrNamespaceNameAST> l = name->classOrNamespaceNameList();
- QPtrListIterator<ClassOrNamespaceNameAST> nameIt( l );
+ TQString s;
+ TQPtrList<ClassOrNamespaceNameAST> l = name->classOrNamespaceNameList();
+ TQPtrListIterator<ClassOrNamespaceNameAST> nameIt( l );
while ( nameIt.current() )
{
if ( nameIt.current() ->name() )
@@ -55,8 +55,8 @@ static QString toSimpleName( NameAST* name )
struct RecoveryPoint
{
int kind;
- QStringList scope;
- QValueList<QStringList> imports;
+ TQStringList scope;
+ TQValueList<TQStringList> imports;
int startLine, startColumn;
int endLine, endColumn;
@@ -67,15 +67,15 @@ struct RecoveryPoint
{}
///Registers the recovery-points imports into the given namespace
- void registerImports( SimpleType ns, QString hardCodedAliases ) {
+ void registerImports( SimpleType ns, TQString hardCodedAliases ) {
SimpleTypeNamespace* n = dynamic_cast<SimpleTypeNamespace*>( &(*ns) );
if( !n ) {
kdDebug( 9007 ) << "the global namespace was not resolved correctly " << endl;
} else {
///put the imports into the global namespace
- for( QValueList<QStringList>::iterator it = imports.begin(); it != imports.end(); ++it ) {
+ for( TQValueList<TQStringList>::iterator it = imports.begin(); it != imports.end(); ++it ) {
kdDebug( 9007 ) << "inserting import " << *it << " into the global scope" << endl;
- n->addAliasMap( QString(""), (*it).join("::"), IncludeFiles() ); ///@TODO: remove this
+ n->addAliasMap( TQString(""), (*it).join("::"), IncludeFiles() ); ///@TODO: remove this
}
n->addAliases( hardCodedAliases );
}
@@ -91,13 +91,13 @@ private:
class ComputeRecoveryPoints: public TreeParser
{
public:
- ComputeRecoveryPoints( QPtrList<RecoveryPoint>& points )
+ ComputeRecoveryPoints( TQPtrList<RecoveryPoint>& points )
: recoveryPoints( points )
{}
virtual void parseTranslationUnit( const ParsedFile& ast )
{
- QValueList<QStringList> dummy;
+ TQValueList<TQStringList> dummy;
m_imports.push( dummy );
TreeParser::parseTranslationUnit( ast );
@@ -111,7 +111,7 @@ public:
if ( !ast->name() )
return ;
- //QStringList type = CppCodeCompletion::typeName( ast->name() ->text() ).scope();
+ //TQStringList type = CppCodeCompletion::typeName( ast->name() ->text() ).scope();
m_imports.top().push_back( ast->name() ->text() );
}
@@ -181,9 +181,9 @@ public:
}
private:
- QPtrList<RecoveryPoint>& recoveryPoints;
- QValueStack< QValueList<QStringList> > m_imports;
- QStringList m_currentScope;
+ TQPtrList<RecoveryPoint>& recoveryPoints;
+ TQValueStack< TQValueList<TQStringList> > m_imports;
+ TQStringList m_currentScope;
};
#endif
diff --git a/languages/cpp/configproblemreporter.ui.h b/languages/cpp/configproblemreporter.ui.h
index d5952b95..842e0c69 100644
--- a/languages/cpp/configproblemreporter.ui.h
+++ b/languages/cpp/configproblemreporter.ui.h
@@ -15,8 +15,8 @@
#include <klocale.h>
#include <kdebug.h>
-#include <qfile.h>
-#include <qtextstream.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
void ConfigureProblemReporter::init()
{
@@ -39,13 +39,13 @@ void ConfigureProblemReporter::setPart( CppSupportPart* part )
if ( !m_part )
return ;
- QString conf_file_name = m_part->specialHeaderName();
- if ( QFile::exists( conf_file_name ) )
+ TQString conf_file_name = m_part->specialHeaderName();
+ if ( TQFile::exists( conf_file_name ) )
{
- QFile f( conf_file_name );
+ TQFile f( conf_file_name );
if ( f.open( IO_ReadOnly ) )
{
- QTextStream stream( &f );
+ TQTextStream stream( &f );
specialHeader->setText( stream.read() );
f.close();
}
@@ -67,11 +67,11 @@ void ConfigureProblemReporter::accept()
if ( m_part && specialHeader->isModified() )
{
- QString conf_file_name = m_part->specialHeaderName( true );
- QFile f( conf_file_name );
+ TQString conf_file_name = m_part->specialHeaderName( true );
+ TQFile f( conf_file_name );
if ( f.open( IO_WriteOnly ) )
{
- QTextStream stream( &f );
+ TQTextStream stream( &f );
stream << specialHeader->text();
f.close();
diff --git a/languages/cpp/cpp_tags.h b/languages/cpp/cpp_tags.h
index 077fbd82..a82ac758 100644
--- a/languages/cpp/cpp_tags.h
+++ b/languages/cpp/cpp_tags.h
@@ -13,8 +13,8 @@
#ifndef CPP_TAGS_H
#define CPP_TAGS_H
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
template <class Tag>
class CppBaseClass
@@ -44,9 +44,9 @@ public:
return m_tag;
}
- static QString format( const Tag& tag )
+ static TQString format( const Tag& tag )
{
- return QString::null;
+ return TQString::null;
}
int access() const
@@ -71,22 +71,22 @@ public:
m_tag.setFlags( m_info.flags );
}
- QString name() const
+ TQString name() const
{
return m_tag.name();
}
- void setName( const QString& name )
+ void setName( const TQString& name )
{
m_tag.setName( name );
}
- QString baseClass() const
+ TQString baseClass() const
{
return m_tag.attribute( "b" ).toString();
}
- void setBaseClass( const QString& baseClass )
+ void setBaseClass( const TQString& baseClass )
{
m_tag.setAttribute( "b", baseClass );
}
@@ -135,9 +135,9 @@ public:
return m_tag;
}
- static QString format( const Tag& tag )
+ static TQString format( const Tag& tag )
{
- return QString::null;
+ return TQString::null;
}
int access() const
@@ -173,22 +173,22 @@ public:
m_tag.setFlags( m_info.flags );
}
- QString type() const
+ TQString type() const
{
return m_tag.attribute( "t" ).toString();
}
- void setType( const QString& type )
+ void setType( const TQString& type )
{
m_tag.setAttribute( "t", type );
}
- QString name() const
+ TQString name() const
{
return m_tag.name();
}
- void setName( const QString& name )
+ void setName( const TQString& name )
{
m_tag.setName( name );
}
@@ -239,9 +239,9 @@ public:
return m_tag;
}
- static QString format( const Tag& tag )
+ static TQString format( const Tag& tag )
{
- return QString::null;
+ return TQString::null;
}
int access() const
@@ -355,42 +355,42 @@ public:
}
- QString type() const
+ TQString type() const
{
return m_tag.attribute( "t" ).toString();
}
- void setType( const QString& type )
+ void setType( const TQString& type )
{
m_tag.setAttribute( "t", type );
}
- QString name() const
+ TQString name() const
{
return m_tag.name();
}
- void setName( const QString& name )
+ void setName( const TQString& name )
{
m_tag.setName( name );
}
- QStringList arguments() const
+ TQStringList arguments() const
{
return m_tag.attribute( "a" ).toStringList();
}
- void setArguments( const QStringList args )
+ void setArguments( const TQStringList args )
{
m_tag.setAttribute( "a", args );
}
- QStringList argumentNames() const
+ TQStringList argumentNames() const
{
return m_tag.attribute( "an" ).toStringList();
}
- void setArgumentNames( const QStringList args )
+ void setArgumentNames( const TQStringList args )
{
m_tag.setAttribute( "an", args );
}
diff --git a/languages/cpp/cppcodecompletion.cpp b/languages/cpp/cppcodecompletion.cpp
index 27cc9009..266c3878 100644
--- a/languages/cpp/cppcodecompletion.cpp
+++ b/languages/cpp/cppcodecompletion.cpp
@@ -37,7 +37,7 @@ email : david.nolden.kdevelop@art-master.de
#include <typeinfo>
-#include <qpopupmenu.h>
+#include <tqpopupmenu.h>
#include <kapplication.h>
#include <kdebug.h>
@@ -49,15 +49,15 @@ email : david.nolden.kdevelop@art-master.de
#include <ktexteditor/document.h>
#include <kaction.h>
-#include <qdatastream.h>
-#include <qfile.h>
-#include <qmap.h>
-#include <qregexp.h>
-#include <qstatusbar.h>
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qpair.h>
-#include <qvaluestack.h>
+#include <tqdatastream.h>
+#include <tqfile.h>
+#include <tqmap.h>
+#include <tqregexp.h>
+#include <tqstatusbar.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqpair.h>
+#include <tqvaluestack.h>
#include <kdevpartcontroller.h>
#include <kdevmainwindow.h>
@@ -99,14 +99,14 @@ const char* destructorPrefix = "<destructor>";
-- TODO: The documentation shown in the calltips looks very bad, a better solution must be found(maybe an additional tooltip)
*/
- void statusBarText( const QString& str, int time ) {
+ void statusBarText( const TQString& str, int time ) {
CppCodeCompletion* c = CppCodeCompletion::instance();
if( c )
c->addStatusText( str, time );
}
TypePointer CppCodeCompletion::createGlobalNamespace() {
- KSharedPtr<SimpleTypeCachedNamespace> n = new SimpleTypeCachedNamespace( QStringList(), QStringList() );
+ KSharedPtr<SimpleTypeCachedNamespace> n = new SimpleTypeCachedNamespace( TQStringList(), TQStringList() );
n->addAliases(m_pSupport->codeCompletionConfig()->namespaceAliases() );
return n.data();
}
@@ -133,16 +133,16 @@ SafetyCounter safetyCounter;
CppCodeCompletion* cppCompletionInstance = 0;
//file global functions, must be before any "using namespace"
-QString cleanForMenu( QString txt ) {
+TQString cleanForMenu( TQString txt ) {
return txt.replace( "&", "&&" ).replace( " ", " " );
}
-QString buildSignature( TypePointer currType ) {
+TQString buildSignature( TypePointer currType ) {
SimpleTypeFunctionInterface * f = currType->asFunction();
if ( !f )
return "";
- QString ret;
+ TQString ret;
LocateResult rtt = currType->locateDecType( f->getReturnType() );
if ( rtt->resolved() || rtt.resolutionCount() > 1 )
ret = rtt->fullNameChain();
@@ -153,7 +153,7 @@ QString buildSignature( TypePointer currType ) {
TypeDesc desc = currType->desc();
desc.decreaseFunctionDepth();
- QString sig = ret + " " + desc.fullNameChain() + f->signature();
+ TQString sig = ret + " " + desc.fullNameChain() + f->signature();
if ( f->isConst() )
sig += " const";
return sig;
@@ -164,10 +164,10 @@ PopupTracker* PopupTracker::pt = 0;
/** Multiple empty lines are reduced to one, too long lines wrapped over, and the beginnings of the lines are normalized
*/
-QStringList maximumLength( const QStringList& in, int length ) {
- QStringList ret;
+TQStringList maximumLength( const TQStringList& in, int length ) {
+ TQStringList ret;
uint firstNonSpace = 50000;
- for ( QStringList::const_iterator it = in.begin(); it != in.end(); ++it )
+ for ( TQStringList::const_iterator it = in.begin(); it != in.end(); ++it )
for ( uint a = 0; a < ( *it ).length(); a++ )
if ( !( *it ) [ a ].isSpace() ) {
if ( firstNonSpace > a )
@@ -175,17 +175,17 @@ QStringList maximumLength( const QStringList& in, int length ) {
break;
}
if ( firstNonSpace == 50000 )
- return QStringList();
+ return TQStringList();
bool hadEmptyLine = false;
- for ( QStringList::const_iterator it = in.begin(); it != in.end(); ++it ) {
+ for ( TQStringList::const_iterator it = in.begin(); it != in.end(); ++it ) {
if ( ( *it ).length() <= firstNonSpace ) {
if ( !hadEmptyLine )
ret << " ";
hadEmptyLine = true;
} else {
hadEmptyLine = false;
- QString str = ( *it ).mid( firstNonSpace );
+ TQString str = ( *it ).mid( firstNonSpace );
while ( !str.isEmpty() ) {
if ( (int)str.length() < length ) {
ret << str;
@@ -200,10 +200,10 @@ QStringList maximumLength( const QStringList& in, int length ) {
return ret;
}
-QStringList prepareTextForMenu( const QString& comment, int maxLines, int maxLength ) {
- QStringList in = QStringList::split( "\n", comment );
- QStringList out;
- for ( QStringList::iterator it = in.begin(); it != in.end(); ++it ) {
+TQStringList prepareTextForMenu( const TQString& comment, int maxLines, int maxLength ) {
+ TQStringList in = TQStringList::split( "\n", comment );
+ TQStringList out;
+ for ( TQStringList::iterator it = in.begin(); it != in.end(); ++it ) {
out << cleanForMenu( *it );
if ( (int)out.count() >= maxLines ) {
out << "[...]";
@@ -214,15 +214,15 @@ QStringList prepareTextForMenu( const QString& comment, int maxLines, int maxLen
return maximumLength( out, maxLength );
}
-QStringList formatComment( const QString& comment, int maxCols = 120 ) {
- QStringList ret;
+TQStringList formatComment( const TQString& comment, int maxCols = 120 ) {
+ TQStringList ret;
SafetyCounter s( 14 ); ///maximum of 14 lines
- QStringList lines = QStringList::split( "\n", comment );
- for ( QStringList::iterator it = lines.begin(); it != lines.end(); ++it ) {
- QStringList words = QStringList::split( " ", *it );
+ TQStringList lines = TQStringList::split( "\n", comment );
+ for ( TQStringList::iterator it = lines.begin(); it != lines.end(); ++it ) {
+ TQStringList words = TQStringList::split( " ", *it );
while ( !words.isEmpty() && s ) {
- QString line = "? ";
+ TQString line = "? ";
int len = 0;
while ( !words.isEmpty() && len < maxCols ) {
len += words.front().length();
@@ -243,14 +243,14 @@ bool operator < ( const CodeCompletionEntry& e1, const CodeCompletionEntry& e2 )
}
template <class ItemType>
-static QValueList<ItemType> unique( const QValueList<ItemType>& entryList ) {
+static TQValueList<ItemType> unique( const TQValueList<ItemType>& entryList ) {
- QValueList< ItemType > l;
- QMap<QString, bool> map;
- typename QValueList< ItemType >::ConstIterator it = entryList.begin();
+ TQValueList< ItemType > l;
+ TQMap<TQString, bool> map;
+ typename TQValueList< ItemType >::ConstIterator it = entryList.begin();
while ( it != entryList.end() ) {
CodeCompletionEntry e = *it++;
- QString key = ( e.type + " " +
+ TQString key = ( e.type + " " +
e.prefix + " " +
e.text + " " +
e.postfix + " " ).simplifyWhiteSpace().stripWhiteSpace();
@@ -262,13 +262,13 @@ static QValueList<ItemType> unique( const QValueList<ItemType>& entryList ) {
return l;
}
-static QStringList unique( const QStringList& entryList ) {
+static TQStringList unique( const TQStringList& entryList ) {
- QStringList l;
- QMap<QString, bool> map;
- QStringList::ConstIterator it = entryList.begin();
+ TQStringList l;
+ TQMap<TQString, bool> map;
+ TQStringList::ConstIterator it = entryList.begin();
while ( it != entryList.end() ) {
- QString e = *it++;
+ TQString e = *it++;
if ( map.find( e ) == map.end() ) {
map[ e ] = TRUE;
l << e;
@@ -277,14 +277,14 @@ static QStringList unique( const QStringList& entryList ) {
return l;
}
-static QStringList unique( const QValueList<QStringList>& entryList ) {
+static TQStringList unique( const TQValueList<TQStringList>& entryList ) {
- QStringList l;
- QMap<QString, bool> map;
- QValueList<QStringList>::ConstIterator it = entryList.begin();
+ TQStringList l;
+ TQMap<TQString, bool> map;
+ TQValueList<TQStringList>::ConstIterator it = entryList.begin();
while ( it != entryList.end() ) {
- QStringList li = ( *it++ );
- QString e = li.join( "\n" );
+ TQStringList li = ( *it++ );
+ TQString e = li.join( "\n" );
if ( map.find( e ) == map.end() ) {
map[ e ] = TRUE;
l += li;
@@ -295,7 +295,7 @@ static QStringList unique( const QValueList<QStringList>& entryList ) {
}
-bool tokenAt( const QString& text, const QString& token, int textPos ) {
+bool tokenAt( const TQString& text, const TQString& token, int textPos ) {
if ( text.isEmpty() )
return false;
@@ -311,7 +311,7 @@ bool tokenAt( const QString& text, const QString& token, int textPos ) {
if ( tokenPos == 0 || textPos == 0 ) {
if ( tokenPos == 0 ) {
if ( textPos >= 1 && text[ textPos ] == token[ tokenPos ] ) {
- QChar c = text[ textPos - 1 ];
+ TQChar c = text[ textPos - 1 ];
return c.isSpace() || c == '{' || c == '}' || c == ';';
} else {
return false;
@@ -346,26 +346,26 @@ struct PopupFillerHelpStruct {
return true;
}
- QMap<QString, QPopupMenu*> m_namespacePopupCache;
+ TQMap<TQString, TQPopupMenu*> m_namespacePopupCache;
- void insertItem( QPopupMenu* parent, SimpleTypeImpl::MemberInfo d , QString prefix ) {
+ void insertItem( TQPopupMenu* parent, SimpleTypeImpl::MemberInfo d , TQString prefix ) {
Q_UNUSED(prefix);
- QString memType = d.memberTypeToString();
+ TQString memType = d.memberTypeToString();
if ( d.memberType == SimpleTypeImpl::MemberInfo::Typedef && d.type->fullName() == "const int" )
memType = "enum";
- QString txt = i18n( "Jump to %1 %2" ).arg( memType ).arg( cleanForMenu( d.name ) );
- int id = parent->insertItem( txt, receiver, SLOT( popupAction( int ) ) );
+ TQString txt = i18n( "Jump to %1 %2" ).arg( memType ).arg( cleanForMenu( d.name ) );
+ int id = parent->insertItem( txt, receiver, TQT_SLOT( popupAction( int ) ) );
receiver->m_popupActions.insert( id, d.decl );
}
- void insertItem ( QPopupMenu* parent, TypeDesc d , QString prefix ) {
+ void insertItem ( TQPopupMenu* parent, TypeDesc d , TQString prefix ) {
Debug dbg( "#insert# ", 10 );
- QString txt1, txt2;
+ TQString txt1, txt2;
if ( d.resolved() && d.resolved() ->isNamespace() ) {
SimpleTypeCachedNamespace * ns = dynamic_cast<SimpleTypeCachedNamespace*>( d.resolved().data() );
@@ -374,9 +374,9 @@ 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() ) {
- QPopupMenu * m = PopupTracker::createPopup( parent );
- QString scope = cm->scope().join("::");
- QMap< QString, QPopupMenu* >::iterator it = m_namespacePopupCache.find( scope );
+ TQPopupMenu * m = PopupTracker::createPopup( parent );
+ TQString scope = cm->scope().join("::");
+ TQMap< TQString, TQPopupMenu* >::iterator it = m_namespacePopupCache.find( scope );
if( it != m_namespacePopupCache.end() ) {
parent->insertItem( "Imported Namespace " + scope, *it );
delete m;
@@ -402,13 +402,13 @@ struct PopupFillerHelpStruct {
if ( SimpleTypeCachedCodeModel * item = dynamic_cast<SimpleTypeCachedCodeModel*>( d.resolved().data() ) ) { ///(1)
if ( item->item() && item->item() ->isNamespace() ) {
NamespaceModel* ns = dynamic_cast<NamespaceModel*>( item->item().data() );
- QStringList wholeScope = ns->scope();
+ TQStringList wholeScope = ns->scope();
wholeScope << ns->name();
for( FileList::iterator it = files.begin(); it != files.end(); ++it ) {
// if( !safetyCounter ) break;
NamespaceModel* ns = (*it).data();
- for( QStringList::iterator it2 = wholeScope.begin(); it2 != wholeScope.end(); ++it2 ) {
+ for( TQStringList::iterator it2 = wholeScope.begin(); it2 != wholeScope.end(); ++it2 ) {
if( ns->hasNamespace( (*it2) ) ) {
ns = ns->namespaceByName( *it2 );
if( !ns ) break;
@@ -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() + QString(" (%1 Lines): ").arg( eLine - sLine ) ); ///SimpleTypeCodeModel is used instead of SimpleTypeCachedNodeModel, so the detection at (1) does not trigger, this avoids endless recursion.
+ 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.
}
}
@@ -447,19 +447,19 @@ struct PopupFillerHelpStruct {
}
}
- int id = parent->insertItem( txt1, receiver, SLOT( popupAction( int ) ) );
+ int id = parent->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, SLOT( popupDefinitionAction( int ) ) );
+ int id2 = parent->insertItem( txt2, receiver, TQT_SLOT( popupDefinitionAction( int ) ) );
if ( d.resolved() )
receiver->m_popupDefinitionActions.insert( id2, d.resolved() ->getDeclarationInfo() );
}
}
};
-ItemDom itemFromScope( const QStringList& scope, NamespaceDom startNamespace ) {
+ItemDom itemFromScope( const TQStringList& scope, NamespaceDom startNamespace ) {
if ( scope.isEmpty() )
return ItemDom();
@@ -469,7 +469,7 @@ ItemDom itemFromScope( const QStringList& scope, NamespaceDom startNamespace ) {
ClassModel* curr = glob ;
- QStringList::const_iterator mit = scope.begin();
+ TQStringList::const_iterator mit = scope.begin();
while ( curr->isNamespace() && mit != scope.end() && ( ( NamespaceModel* ) curr ) ->hasNamespace( *mit ) ) {
curr = &( *( ( ( NamespaceModel* ) curr ) ->namespaceByName( *mit ) ) );
@@ -523,29 +523,29 @@ struct PopupClassViewFillerHelpStruct {
return false;
}
- void insertItem( QPopupMenu* parent, SimpleTypeImpl::MemberInfo d , QString prefix ) {
+ void insertItem( TQPopupMenu* parent, SimpleTypeImpl::MemberInfo d , TQString prefix ) {
Q_UNUSED(prefix);
FileDom f = receiver->m_pSupport->codeModel() ->fileByName( d.decl.file );
if ( !f )
return ;
- ItemDom dom = itemFromScope( QStringList::split( "::", d.name ), model_cast<NamespaceDom>( f ) );
+ ItemDom dom = itemFromScope( TQStringList::split( "::", d.name ), model_cast<NamespaceDom>( f ) );
- QString memType = d.memberTypeToString();
+ TQString memType = d.memberTypeToString();
if ( d.memberType == SimpleTypeImpl::MemberInfo::Typedef && d.type->fullName() == "const int" )
memType = "enum";
- QString txt = i18n( "Show %1 %2" ).arg( memType ).arg( cleanForMenu( d.name ) );
- int id = parent->insertItem( txt, receiver, SLOT( popupClassViewAction( int ) ) );
+ TQString txt = i18n( "Show %1 %2" ).arg( memType ).arg( cleanForMenu( d.name ) );
+ int id = parent->insertItem( txt, receiver, TQT_SLOT( popupClassViewAction( int ) ) );
receiver->m_popupClassViewActions.insert( id, dom );
}
- void insertItem ( QPopupMenu* parent, TypeDesc d , QString prefix ) {
+ void insertItem ( TQPopupMenu* parent, TypeDesc d , TQString prefix ) {
Debug dbg( "#insert# ", 10 );
- QString txt;
+ TQString txt;
if ( !d.resolved() )
return ;
@@ -578,8 +578,8 @@ struct PopupClassViewFillerHelpStruct {
}
} else {
if ( dom ) {
- QString n = d.resolved() ->scope().join( "::" );
- //QString n = d.fullNameChain();
+ TQString n = d.resolved() ->scope().join( "::" );
+ //TQString n = d.fullNameChain();
if ( d.resolved() ->asFunction() ) {
n = buildSignature( d.resolved() );
}
@@ -596,7 +596,7 @@ struct PopupClassViewFillerHelpStruct {
}
}
- int id = parent->insertItem( txt, receiver, SLOT( popupClassViewAction( int ) ) );
+ int id = parent->insertItem( txt, receiver, TQT_SLOT( popupClassViewAction( int ) ) );
if ( dom )
receiver->m_popupClassViewActions.insert( id, dom );
@@ -606,27 +606,27 @@ struct PopupClassViewFillerHelpStruct {
template <class HelpStruct = PopupFillerHelpStruct>
class PopupFiller {
HelpStruct struk;
- QString depthAdd;
+ TQString depthAdd;
SafetyCounter s;
public:
- PopupFiller( HelpStruct str , QString dAdd, int maxCount = 100 ) : struk( str ), depthAdd( dAdd ), s( maxCount ) {}
+ PopupFiller( HelpStruct str , TQString dAdd, int maxCount = 100 ) : struk( str ), depthAdd( dAdd ), s( maxCount ) {}
- void fillIncludes( const DeclarationInfo& decl, QPopupMenu* parent, bool& needSeparator ) {
+ void fillIncludes( const DeclarationInfo& decl, TQPopupMenu* parent, bool& needSeparator ) {
if( !struk.receiver->getIncludeFiles()[ HashedString( decl.file ) ] ) {
- QString file = decl.file;
+ TQString file = decl.file;
//The include-file seems to be missing
if( needSeparator ) {
needSeparator = false;
parent->insertSeparator();
}
- QString includeFile = file;
- QFileInfo info( file );
+ TQString includeFile = file;
+ TQFileInfo info( file );
Driver* driver = struk.receiver->cppSupport()->driver();
if( driver ) {
- QStringList elements = QStringList::split( "/", file );
+ TQStringList elements = TQStringList::split( "/", file );
includeFile = elements.back();
elements.pop_back();
@@ -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, SLOT( popupAction( int ) ) );
+ int id = parent->insertItem( i18n( "#include \"%1\" ( defines %2 )" ).arg ( includeFile ).arg( 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( QPopupMenu * parent, LocateResult d, QString prefix = "", const DeclarationInfo & sourceVariable = DeclarationInfo() ) {
+ void fill( TQPopupMenu * parent, LocateResult d, TQString prefix = "", const DeclarationInfo & sourceVariable = DeclarationInfo() ) {
Debug dbg( "#fl# ", 10 )
;
@@ -670,7 +670,7 @@ 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, SLOT( popupAction( int ) ) );
+ /*int id = m->insertItem( i18n("jump to variable-declaration \"%1\"").arg( type.sourceVariable.name ) , this, TQT_SLOT( popupAction( int ) ) );
m_popupActions.insert( id, type.sourceVariable );*/
struk.insertItem( parent, f, prefix );
@@ -678,11 +678,11 @@ class PopupFiller {
parent->insertSeparator();
if ( !sourceVariable.comment.isEmpty() ) {
- QPopupMenu * m = PopupTracker::createPopup( parent );
+ TQPopupMenu * m = PopupTracker::createPopup( parent );
parent->insertItem( i18n( "Comment on %1" ).arg( sourceVariable.name ), m );
- QStringList ls = prepareTextForMenu( sourceVariable.comment, 15, 100 );
- for ( QStringList::iterator it = ls.begin(); it != ls.end(); ++it ) {
- m->insertItem( *it, 0, SLOT( popupClassViewAction( int ) ) );
+ 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();
}
@@ -694,7 +694,7 @@ class PopupFiller {
SimpleType p = d->resolved()->parent();
LocateResult r = p->locateDecType( d->name() );
if( r ) {
- QPopupMenu * m = PopupTracker::createPopup( parent );
+ TQPopupMenu * m = PopupTracker::createPopup( parent );
parent->insertItem( i18n( "Specialized from \"%1\"" ).arg( cleanForMenu( r->fullNameChain() ) ), m );
fill( m, r );
}
@@ -703,7 +703,7 @@ class PopupFiller {
TypeDesc::TemplateParams p = d->templateParams();
for ( TypeDesc::TemplateParams::iterator it = p.begin(); it != p.end(); ++it ) {
//if( (*it)->resolved() ) {
- QPopupMenu * m = PopupTracker::createPopup( parent );
+ TQPopupMenu * m = PopupTracker::createPopup( parent );
parent->insertItem( i18n( "Template-param \"%1\"" ).arg( cleanForMenu( ( *it ) ->fullNameChain() ) ), m );
fill( m, **it );
/*} else {
@@ -715,25 +715,25 @@ class PopupFiller {
if ( d->resolved() ->asFunction() ) {
LocateResult rt = d->resolved() ->locateDecType( d->resolved() ->asFunction() ->getReturnType() );
if ( rt ) {
- QPopupMenu * m = PopupTracker::createPopup( parent );
+ TQPopupMenu * m = PopupTracker::createPopup( parent );
parent->insertItem( i18n( "Return-type \"%1\"" ).arg( cleanForMenu( rt->fullNameChain() ) ), m );
fill( m, rt );
}
- QValueList<TypeDesc> args = d->resolved() ->asFunction() ->getArgumentTypes();
- QStringList argNames = d->resolved() ->asFunction() ->getArgumentNames();
+ TQValueList<TypeDesc> args = d->resolved() ->asFunction() ->getArgumentTypes();
+ TQStringList argNames = d->resolved() ->asFunction() ->getArgumentNames();
if ( !args.isEmpty() ) {
- QPopupMenu * m = PopupTracker::createPopup( parent );
+ TQPopupMenu * m = PopupTracker::createPopup( parent );
parent->insertItem( i18n( "Argument-types" ), m );
- QStringList::iterator it2 = argNames.begin();
- for ( QValueList<TypeDesc>::iterator it = args.begin(); it != args.end(); ++it ) {
+ TQStringList::iterator it2 = argNames.begin();
+ for ( TQValueList<TypeDesc>::iterator it = args.begin(); it != args.end(); ++it ) {
LocateResult at = d->resolved() ->locateDecType( *it );
- QString name = "";
+ TQString name = "";
if ( it2 != argNames.end() ) {
name = *it2;
++it2;
}
- QPopupMenu * mo = PopupTracker::createPopup( m );
+ TQPopupMenu * mo = PopupTracker::createPopup( m );
m->insertItem( i18n( "Argument \"%1\"" ).arg( cleanForMenu( at->fullNameChain() + " " + name ) ), mo );
fill( mo, at );
@@ -743,14 +743,14 @@ class PopupFiller {
}
#ifndef DISABLE_TRACING
if ( d.trace() ) {
- QValueList<QPair<SimpleTypeImpl::MemberInfo, TypeDesc> > trace = d.trace() ->trace();
+ TQValueList<QPair<SimpleTypeImpl::MemberInfo, TypeDesc> > trace = d.trace() ->trace();
if ( !trace.isEmpty() ) {
- QPopupMenu * m = PopupTracker::createPopup( parent );
+ TQPopupMenu * m = PopupTracker::createPopup( parent );
parent->insertItem( i18n( "Trace" ), m );
- for ( QValueList<QPair<SimpleTypeImpl::MemberInfo, TypeDesc> >::iterator it = trace.begin(); it != trace.end(); ++it ) {
- QPopupMenu * mo = PopupTracker::createPopup( m );
- QString tail = ( *it ).second.fullNameChain();
+ for ( TQValueList<QPair<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 );
@@ -759,16 +759,16 @@ class PopupFiller {
if ( !( *it ).first.decl.comment.isEmpty() ) {
mo->insertSeparator();
- QPopupMenu * m = PopupTracker::createPopup( mo );
+ TQPopupMenu * m = PopupTracker::createPopup( mo );
mo->insertItem( i18n( "Comment" ), m );
- QStringList ls = prepareTextForMenu( ( *it ).first.decl.comment, 15, 100 );
- for ( QStringList::iterator it = ls.begin(); it != ls.end(); ++it ) {
- m->insertItem( *it, 0, SLOT( popupClassViewAction( int ) ) );
+ TQStringList ls = prepareTextForMenu( ( *it ).first.decl.comment, 15, 100 );
+ for ( TQStringList::iterator it = ls.begin(); it != ls.end(); ++it ) {
+ m->insertItem( *it, 0, TQT_SLOT( popupClassViewAction( int ) ) );
}
}
/*bool needSeparator = true;
- if( struk.shouldShowIncludeMenu() && struk.receiver->cppSupport()->codeCompletionConfig()->preProcessAllHeaders() && !(*it).first.decl.file.operator QString().isEmpty() )
+ if( struk.shouldShowIncludeMenu() && struk.receiver->cppSupport()->codeCompletionConfig()->preProcessAllHeaders() && !(*it).first.decl.file.operator TQString().isEmpty() )
fillIncludes( (*it).first.decl, mo, needSeparator );*/
}
}
@@ -776,26 +776,26 @@ class PopupFiller {
#endif
if ( d->resolved() ) {
- QValueList<LocateResult> bases = d->resolved() ->getBases();
- for ( QValueList<LocateResult>::iterator it = bases.begin(); it != bases.end(); ++it ) {
- QPopupMenu * m = PopupTracker::createPopup( parent );
+ 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 );
fill( m, *it );
}
if ( d->resolved() ->parent() && d->resolved() ->parent() ->desc() ) {
- QPopupMenu * m = PopupTracker::createPopup( parent );
+ 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() ->comment().isEmpty() ) {
parent->insertSeparator();
- QPopupMenu * m = PopupTracker::createPopup( parent );
+ TQPopupMenu * m = PopupTracker::createPopup( parent );
parent->insertItem( i18n( "Comment on %1" ).arg( cleanForMenu( d->name() ) ), m );
- QStringList ls = prepareTextForMenu( d->resolved() ->comment(), 15, 100 );
- for ( QStringList::iterator it = ls.begin(); it != ls.end(); ++it ) {
- m->insertItem( *it, 0, SLOT( popupClassViewAction( int ) ) );
+ 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,10 +805,10 @@ 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() ) {
- QValueList<QPair<SimpleTypeImpl::MemberInfo, TypeDesc> > trace = d.trace() ->trace();
+ TQValueList<QPair<SimpleTypeImpl::MemberInfo, TypeDesc> > trace = d.trace() ->trace();
if ( !trace.isEmpty() ) {
- for ( QValueList<QPair<SimpleTypeImpl::MemberInfo, TypeDesc> >::iterator it = trace.begin(); it != trace.end(); ++it ) {
- if( struk.shouldShowIncludeMenu() && struk.receiver->cppSupport()->codeCompletionConfig()->preProcessAllHeaders() && !(*it).first.decl.file.operator QString().isEmpty() )
+ for ( TQValueList<QPair<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 );
}
}
@@ -828,11 +828,11 @@ struct CompTypeProcessor : public TypeProcessor {
CompTypeProcessor( SimpleType scope, bool processArguments ) : m_scope( scope ), m_processArguments( processArguments ) {}
- virtual QString parentType() {
+ virtual TQString parentType() {
return m_scope->fullType();
}
- virtual QString processType( const QString& type ) {
+ virtual TQString processType( const TQString& type ) {
if ( !m_processArguments )
return type;
LocateResult t = m_scope->locateDecType( type );
@@ -844,8 +844,8 @@ struct CompTypeProcessor : public TypeProcessor {
};
struct CppCodeCompletionData {
- QPtrList<RecoveryPoint> recoveryPoints;
- //QStringList classNameList;
+ TQPtrList<RecoveryPoint> recoveryPoints;
+ //TQStringList classNameList;
CppCodeCompletionData() {
recoveryPoints.setAutoDelete( true );
@@ -857,7 +857,7 @@ struct CppCodeCompletionData {
QPair<int, int> pt = qMakePair( line, column );
- QPtrListIterator<RecoveryPoint> it( recoveryPoints );
+ TQPtrListIterator<RecoveryPoint> it( recoveryPoints );
RecoveryPoint* recPt = 0;
while ( it.current() ) {
@@ -895,29 +895,29 @@ m_codeCompleteCh2Rx( "(->)|(\\:\\:)" ) {
m_pSupport = part;
- connect( m_pSupport->codeCompletionConfig(), SIGNAL( stored() ), this, SLOT( emptyCache() ) );
+ connect( m_pSupport->codeCompletionConfig(), TQT_SIGNAL( stored() ), this, TQT_SLOT( emptyCache() ) );
m_activeCursor = 0;
m_activeEditor = 0;
m_activeCompletion = 0;
m_activeHintInterface = 0;
m_activeView = 0;
- m_ccTimer = new QTimer( this );
- m_showStatusTextTimer = new QTimer( this );
+ m_ccTimer = new TQTimer( this );
+ m_showStatusTextTimer = new TQTimer( this );
m_ccLine = 0;
m_ccColumn = 0;
- connect( m_ccTimer, SIGNAL( timeout() ), this, SLOT( slotTimeout() ) );
- connect( m_showStatusTextTimer, SIGNAL( timeout() ), this, SLOT( slotStatusTextTimeout() ) );
+ connect( m_ccTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( slotTimeout() ) );
+ connect( m_showStatusTextTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( slotStatusTextTimeout() ) );
computeFileEntryList();
CppSupportPart* cppSupport = m_pSupport;
- connect( cppSupport->project(), SIGNAL( addedFilesToProject( const QStringList& ) ),
- this, SLOT( computeFileEntryList() ) );
- connect( cppSupport->project(), SIGNAL( removedFilesFromProject( const QStringList& ) ),
- this, SLOT( computeFileEntryList() ) );
- connect( cppSupport, SIGNAL( synchronousParseReady( const QString&, ParsedFilePointer ) ), this, SLOT( synchronousParseReady( const QString&, ParsedFilePointer ) ) );
+ connect( cppSupport->project(), TQT_SIGNAL( addedFilesToProject( const TQStringList& ) ),
+ this, TQT_SLOT( computeFileEntryList() ) );
+ connect( cppSupport->project(), TQT_SIGNAL( removedFilesFromProject( const TQStringList& ) ),
+ this, TQT_SLOT( computeFileEntryList() ) );
+ connect( cppSupport, TQT_SIGNAL( synchronousParseReady( const TQString&, ParsedFilePointer ) ), this, TQT_SLOT( synchronousParseReady( const TQString&, ParsedFilePointer ) ) );
m_bArgHintShow = false;
m_bCompletionBoxShow = false;
@@ -927,14 +927,14 @@ m_codeCompleteCh2Rx( "(->)|(\\:\\:)" ) {
m_repository = new CodeInformationRepository( cppSupport->codeRepository() );
- connect( cppSupport->codeRepository(), SIGNAL(catalogRegistered( Catalog* )), this, SLOT( emptyCache() ) );
- connect( cppSupport->codeRepository(), SIGNAL(catalogUnregistered( Catalog* )), this, SLOT( emptyCache() ) );
- connect( cppSupport->codeRepository(), SIGNAL(catalogChanged( Catalog* )), this, SLOT( emptyCache() ) );
+ connect( cppSupport->codeRepository(), TQT_SIGNAL(catalogRegistered( Catalog* )), this, TQT_SLOT( emptyCache() ) );
+ connect( cppSupport->codeRepository(), TQT_SIGNAL(catalogUnregistered( Catalog* )), this, TQT_SLOT( emptyCache() ) );
+ connect( cppSupport->codeRepository(), TQT_SIGNAL(catalogChanged( Catalog* )), this, TQT_SLOT( emptyCache() ) );
setupCodeInformationRepository();
if ( part->partController() ->parts() ) {
- QPtrListIterator<KParts::Part> it( *part->partController() ->parts() );
+ TQPtrListIterator<KParts::Part> it( *part->partController() ->parts() );
while ( KParts::Part * part = it.current() ) {
integratePart( part );
++it;
@@ -944,22 +944,22 @@ m_codeCompleteCh2Rx( "(->)|(\\:\\:)" ) {
if ( part->partController() ->activePart() )
slotActivePartChanged( part->partController() ->activePart() );
- connect( part->partController( ), SIGNAL( partAdded( KParts::Part* ) ),
- this, SLOT( slotPartAdded( KParts::Part* ) ) );
- connect( part->partController( ), SIGNAL( activePartChanged( KParts::Part* ) ),
- this, SLOT( slotActivePartChanged( KParts::Part* ) ) );
+ connect( part->partController( ), TQT_SIGNAL( partAdded( KParts::Part* ) ),
+ this, TQT_SLOT( slotPartAdded( KParts::Part* ) ) );
+ connect( part->partController( ), TQT_SIGNAL( activePartChanged( KParts::Part* ) ),
+ this, TQT_SLOT( slotActivePartChanged( KParts::Part* ) ) );
- connect( part, SIGNAL( fileParsed( const QString& ) ),
- this, SLOT( slotFileParsed( const QString& ) ) );
- connect( part, SIGNAL( codeModelUpdated( const QString& ) ),
- this, SLOT( slotCodeModelUpdated( const QString& ) ) );
+ connect( part, TQT_SIGNAL( fileParsed( const TQString& ) ),
+ this, TQT_SLOT( slotFileParsed( const TQString& ) ) );
+ connect( part, TQT_SIGNAL( codeModelUpdated( const TQString& ) ),
+ this, TQT_SLOT( slotCodeModelUpdated( const TQString& ) ) );
KAction * action = new KAction( i18n("Jump to declaration under cursor"), 0, CTRL + Key_Comma,
- this, SLOT(slotJumpToDeclCursorContext()), part->actionCollection(), "jump_to_declaration_cursor_context" );
+ this, TQT_SLOT(slotJumpToDeclCursorContext()), part->actionCollection(), "jump_to_declaration_cursor_context" );
action->plug( &m_DummyActionWidget );
action = new KAction( i18n("Jump to definition under cursor"), 0, CTRL + Key_Period,
- this, SLOT(slotJumpToDefCursorContext()), part->actionCollection(), "jump_to_defintion_cursor_context" );
+ this, TQT_SLOT(slotJumpToDefCursorContext()), part->actionCollection(), "jump_to_defintion_cursor_context" );
action->plug( &m_DummyActionWidget );
}
@@ -968,8 +968,8 @@ CppCodeCompletion::~CppCodeCompletion( ) {
delete d;
}
-void CppCodeCompletion::addStatusText( QString text, int timeout ) {
- m_statusTextList.append( QPair<int, QString>( timeout, text ) );
+void CppCodeCompletion::addStatusText( TQString text, int timeout ) {
+ m_statusTextList.append( QPair<int, TQString>( timeout, text ) );
if ( !m_showStatusTextTimer->isActive() ) {
slotStatusTextTimeout();
}
@@ -998,8 +998,8 @@ void CppCodeCompletion::slotTimeout() {
if ( nLine != m_ccLine || nCol != m_ccColumn )
return ;
- QString textLine = m_activeEditor->textLine( nLine );
- QChar ch = textLine[ nCol ];
+ TQString textLine = m_activeEditor->textLine( nLine );
+ TQChar ch = textLine[ nCol ];
if ( ch.isLetterOrNumber() || ch == '_' )
return ;
@@ -1027,13 +1027,13 @@ void CppCodeCompletion::integratePart( KParts::Part * part ) {
if ( m_pSupport ) { //The slot should connected even when automatic completion is disabled, so it can be enabled any time
kdDebug( 9007 ) << k_funcinfo << "enabling code completion" << endl;
- connect( part, SIGNAL( textChanged() ), this, SLOT( slotTextChanged() ) );
- connect( part->widget(), SIGNAL( completionDone() ), this,
- SLOT( slotCompletionBoxHidden() ) );
- connect( part->widget(), SIGNAL( completionAborted() ), this,
- SLOT( slotCompletionBoxHidden() ) );
- connect( part->widget(), SIGNAL( argHintHidden() ), this,
- SLOT( slotArgHintHidden() ) );
+ connect( part, TQT_SIGNAL( textChanged() ), this, TQT_SLOT( slotTextChanged() ) );
+ connect( part->widget(), TQT_SIGNAL( completionDone() ), this,
+ TQT_SLOT( slotCompletionBoxHidden() ) );
+ connect( part->widget(), TQT_SIGNAL( completionAborted() ), this,
+ TQT_SLOT( slotCompletionBoxHidden() ) );
+ connect( part->widget(), TQT_SIGNAL( argHintHidden() ), this,
+ TQT_SLOT( slotArgHintHidden() ) );
}
}
}
@@ -1046,7 +1046,7 @@ void CppCodeCompletion::slotActivePartChanged( KParts::Part * part ) {
emptyCache();
this->d->recoveryPoints.clear();
if ( m_activeHintInterface && m_activeView ) {
- disconnect( m_activeView , SIGNAL( needTextHint( int, int, QString & ) ), this, SLOT( slotTextHint( int, int, QString& ) ) );
+ disconnect( m_activeView , TQT_SIGNAL( needTextHint( int, int, TQString & ) ), this, TQT_SLOT( slotTextHint( int, int, TQString& ) ) );
m_activeHintInterface = 0;
}
@@ -1055,7 +1055,7 @@ void CppCodeCompletion::slotActivePartChanged( KParts::Part * part ) {
kdDebug( 9007 ) << k_funcinfo << endl;
- m_activeFileName = QString::null;
+ m_activeFileName = TQString::null;
KTextEditor::Document* doc = dynamic_cast<KTextEditor::Document*>( part );
if ( !doc )
@@ -1093,7 +1093,7 @@ void CppCodeCompletion::slotActivePartChanged( KParts::Part * part ) {
if ( m_activeHintInterface ) {
#ifndef DISABLETOOLTIPS
m_activeHintInterface->enableTextHints( 500 );
- connect( m_activeView, SIGNAL( needTextHint( int, int, QString & ) ), this, SLOT( slotTextHint( int, int, QString& ) ) );
+ connect( m_activeView, TQT_SIGNAL( needTextHint( int, int, TQString & ) ), this, TQT_SLOT( slotTextHint( int, int, TQString& ) ) );
#endif
} else {
@@ -1112,9 +1112,9 @@ void CppCodeCompletion::slotTextChanged() {
unsigned int nLine, nCol;
m_activeCursor->cursorPositionReal( &nLine, &nCol );
- QString strCurLine = m_activeEditor->textLine( nLine );
- QString ch = strCurLine.mid( nCol - 1, 1 );
- QString ch2 = strCurLine.mid( nCol - 2, 2 );
+ TQString strCurLine = m_activeEditor->textLine( nLine );
+ TQString ch = strCurLine.mid( nCol - 1, 1 );
+ TQString ch2 = strCurLine.mid( nCol - 2, 2 );
// Tell the completion box to _go_away_ when the completion char
// becomes empty or whitespace and the box is already showing.
@@ -1123,7 +1123,7 @@ void CppCodeCompletion::slotTextChanged() {
if ( ch.simplifyWhiteSpace().isEmpty() &&
!strCurLine.simplifyWhiteSpace().contains( "virtual" ) &&
m_bCompletionBoxShow ) {
- QValueList<KTextEditor::CompletionEntry> entryList;
+ TQValueList<KTextEditor::CompletionEntry> entryList;
m_bCompletionBoxShow = true;
m_activeCompletion->showCompletionBox( entryList, 0 );
}
@@ -1227,14 +1227,14 @@ void CppCodeCompletion::fitContextItem( int nLine, int nCol ) {
enum { T_ACCESS, T_PAREN, T_BRACKET, T_IDE, T_UNKNOWN, T_TEMP };
-QString CppCodeCompletion::replaceCppComments( const QString& contents ) {
- QString text = contents;
+TQString CppCodeCompletion::replaceCppComments( const TQString& contents ) {
+ TQString text = contents;
int pos = 0;
while ( ( pos = m_cppCodeCommentsRx.search( text, pos ) ) != -1 ) {
if ( m_cppCodeCommentsRx.cap( 1 ).startsWith( "//" ) ) {
- QString before = m_cppCodeCommentsRx.cap( 1 );
- QString after;
+ TQString before = m_cppCodeCommentsRx.cap( 1 );
+ TQString after;
after.fill( ' ', before.length() - 5 );
after.prepend( "/*" );
after.append( "*/" );
@@ -1247,14 +1247,14 @@ QString CppCodeCompletion::replaceCppComments( const QString& contents ) {
return text;
}
-int CppCodeCompletion::expressionAt( const QString& contents, int index ) {
+int CppCodeCompletion::expressionAt( const TQString& contents, int index ) {
kdDebug( 9007 ) << k_funcinfo << endl;
/* C++ style comments present issues with finding the expr so I'm
matching for them and replacing them with empty C style comments
of the same length for purposes of finding the expr. */
- QString text = clearComments( contents );
+ TQString text = clearComments( contents );
int last = T_UNKNOWN;
int start = index;
@@ -1265,8 +1265,8 @@ int CppCodeCompletion::expressionAt( const QString& contents, int index ) {
--index;
}
- QChar ch = text[ index ];
- QString ch2 = text.mid( index - 1, 2 );
+ TQChar ch = text[ index ];
+ TQString ch2 = text.mid( index - 1, 2 );
if ( ( last != T_IDE ) && ( ch.isLetterOrNumber() || ch == '_' ) ) {
while ( index > 0 && ( text[ index ].isLetterOrNumber() || text[ index ] == '_' ) ) {
--index;
@@ -1275,7 +1275,7 @@ int CppCodeCompletion::expressionAt( const QString& contents, int index ) {
} else if ( last != T_IDE && ch == ')' ) {
int count = 0;
while ( index > 0 ) {
- QChar ch = text[ index ];
+ TQChar ch = text[ index ];
if ( ch == '(' ) {
++count;
} else if ( ch == ')' ) {
@@ -1290,7 +1290,7 @@ int CppCodeCompletion::expressionAt( const QString& contents, int index ) {
} else if ( last != T_IDE && ch == '>' && ch2 != "->" ) {
int count = 0;
while ( index > 0 ) {
- QChar ch = text[ index ];
+ TQChar ch = text[ index ];
if ( ch == '<' ) {
++count;
} else if ( ch == '>' ) {
@@ -1305,7 +1305,7 @@ int CppCodeCompletion::expressionAt( const QString& contents, int index ) {
} else if ( ch == ']' ) {
int count = 0;
while ( index > 0 ) {
- QChar ch = text[ index ];
+ TQChar ch = text[ index ];
if ( ch == '[' ) {
++count;
} else if ( ch == ']' ) {
@@ -1344,16 +1344,16 @@ int CppCodeCompletion::expressionAt( const QString& contents, int index ) {
return index;
}
-QStringList CppCodeCompletion::splitExpression( const QString& text ) {
+TQStringList CppCodeCompletion::splitExpression( const TQString& text ) {
#define ADD_CURRENT()\
if( current.length() ) { l << current; /*kdDebug(9007) << "add word " << current << endl;*/ current = ""; }
- QStringList l;
+ TQStringList l;
uint index = 0;
- QString current;
+ TQString current;
while ( index < text.length() ) {
- QChar ch = text[ index ];
- QString ch2 = text.mid( index, 2 );
+ TQChar ch = text[ index ];
+ TQString ch2 = text.mid( index, 2 );
if ( ch == '.' ) {
current += ch;
@@ -1362,7 +1362,7 @@ QStringList CppCodeCompletion::splitExpression( const QString& text ) {
} else if ( ch == '(' ) {
int count = 0;
while ( index < text.length() ) {
- QChar ch = text[ index ];
+ TQChar ch = text[ index ];
if ( ch == '(' ) {
++count;
} else if ( ch == ')' ) {
@@ -1376,7 +1376,7 @@ QStringList CppCodeCompletion::splitExpression( const QString& text ) {
} else if ( ch == '[' ) {
int count = 0;
while ( index < text.length() ) {
- QChar ch = text[ index ];
+ TQChar ch = text[ index ];
if ( ch == '[' ) {
++count;
} else if ( ch == ']' ) {
@@ -1418,7 +1418,7 @@ EvaluationResult CppCodeCompletion::evaluateExpressionAt( int line, int column ,
return EvaluationResult();
{
- QString curLine = m_activeEditor->textLine( line );
+ TQString curLine = m_activeEditor->textLine( line );
///move column to the last letter of the pointed word
while ( column + 1 < ( int ) curLine.length() && isValidIdentifierSign( curLine[ column ] ) && isValidIdentifierSign( curLine[ column + 1 ] ) )
@@ -1429,7 +1429,7 @@ EvaluationResult CppCodeCompletion::evaluateExpressionAt( int line, int column ,
if ( column >= ( int ) curLine.length() || curLine[ column ].isSpace() )
return EvaluationResult();
- QString expr = curLine.left( column + 1 );
+ TQString expr = curLine.left( column + 1 );
kdDebug( 9007 ) << "evaluating line \"" << expr.stripWhiteSpace() << "\"" << endl;
if ( curLine[ column ] == '-' || curLine[ column ] == ';' )
@@ -1446,10 +1446,10 @@ EvaluationResult CppCodeCompletion::evaluateExpressionAt( int line, int column ,
void CppCodeCompletion::popupAction( int number ) {
PopupActions::iterator it = m_popupActions.find( number );
if ( it != m_popupActions.end() ) {
- QString fileName = ( *it ).file == "current_file" ? m_activeFileName : ( *it ).file.operator QString();
+ 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, QString("#include \"%1\" /* defines %2 */").arg( fileName ).arg( (*it).name ) );
+ m_activeEditor->insertLine( 0, TQString("#include \"%1\" /* defines %2 */").arg( fileName ).arg( (*it).name ) );
} else {
m_pSupport->partController() ->editDocument( fileName, ( *it ).startLine );
}
@@ -1461,7 +1461,7 @@ void CppCodeCompletion::popupAction( int number ) {
void CppCodeCompletion::popupDefinitionAction( int number ) {
PopupActions::iterator it = m_popupDefinitionActions.find( number );
if ( it != m_popupDefinitionActions.end() ) {
- QString fileName = ( *it ).file == "current_file" ? m_activeFileName : ( *it ).file.operator QString();
+ TQString fileName = ( *it ).file == "current_file" ? m_activeFileName : ( *it ).file.operator TQString();
if ( !m_pSupport->switchHeaderImpl( fileName, ( *it ).startLine, ( *it ).startCol ) )
m_pSupport->partController() ->editDocument( fileName, ( *it ).startLine );
} else {
@@ -1490,7 +1490,7 @@ void CppCodeCompletion::popupClassViewAction( int number ) {
}
}
-void CppCodeCompletion::contextEvaluationMenus ( QPopupMenu *popup, const Context *context, int line, int column ) {
+void CppCodeCompletion::contextEvaluationMenus ( TQPopupMenu *popup, const Context *context, int line, int column ) {
clearStatusText();
Q_UNUSED(context);
if ( !m_pSupport->codeCompletionConfig() ->showEvaluationContextMenu() )
@@ -1529,15 +1529,15 @@ void CppCodeCompletion::contextEvaluationMenus ( QPopupMenu *popup, const Contex
///Test if it is a macro
if( type.isMacro ) {
- QPopupMenu * m = PopupTracker::createPopup( popup );
+ 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++ );
else
gid = popup->insertItem( i18n( "Navigate by Macro \"%1\"" ).arg( cleanForMenu( type.macro.name() ) ), m );
- int id = m->insertItem( i18n( "Jump to %1" ).arg( cleanForMenu( type.macro.name() ) ), this, SLOT( popupAction( int ) ) );
- QPopupMenu * b = PopupTracker::createPopup( m );
+ int id = m->insertItem( i18n( "Jump to %1" ).arg( cleanForMenu( type.macro.name() ) ), this, TQT_SLOT( popupAction( int ) ) );
+ TQPopupMenu * b = PopupTracker::createPopup( m );
m->insertItem( i18n( "Body" ), b );
DeclarationInfo i;
@@ -1548,27 +1548,27 @@ void CppCodeCompletion::contextEvaluationMenus ( QPopupMenu *popup, const Contex
i.endLine = type.macro.line();
m_popupActions.insert( id, i );
- QStringList ls = prepareTextForMenu( type.macro.body(), 20, 100 );
- for ( QStringList::iterator it = ls.begin(); it != ls.end(); ++it ) {
- b->insertItem( *it, 0, SLOT( popupClassViewAction( int ) ) );
+ TQStringList ls = prepareTextForMenu( type.macro.body(), 20, 100 );
+ for ( TQStringList::iterator it = ls.begin(); it != ls.end(); ++it ) {
+ b->insertItem( *it, 0, TQT_SLOT( popupClassViewAction( int ) ) );
}
}
///Test if it is an include-directive
- QString includeFileName, includeFilePath;
+ TQString includeFileName, includeFilePath;
bool simpleAlgorithm = false;
bool isIncludeDirective = getIncludeInfo( line, includeFileName, includeFilePath, simpleAlgorithm );
if( isIncludeDirective ) {
///Add menu entry
if( !includeFilePath.isEmpty() ) {
int gid;
- QPopupMenu * m = PopupTracker::createPopup( popup );
+ TQPopupMenu * m = PopupTracker::createPopup( popup );
if ( contextMenuEntriesAtTop )
gid = popup->insertItem( i18n( "Goto Include File: %1" ).arg( cleanForMenu( includeFileName ) ), m, 5, cpos++ );
else
gid = popup->insertItem( i18n( "Goto Include File: %1" ).arg( cleanForMenu( includeFileName ) ), m );
- int id = m->insertItem( i18n( "Jump to %1" ).arg( cleanForMenu( includeFilePath ) ), this, SLOT( popupAction( int ) ) );
+ int id = m->insertItem( i18n( "Jump to %1" ).arg( cleanForMenu( includeFilePath ) ), this, TQT_SLOT( popupAction( int ) ) );
DeclarationInfo i;
i.file = includeFilePath;
@@ -1595,7 +1595,7 @@ void CppCodeCompletion::contextEvaluationMenus ( QPopupMenu *popup, const Contex
if ( isIncludeDirective || (!type->resolved() && !type.sourceVariable && ( !type.resultType.trace() || type.resultType.trace() ->trace().isEmpty() ) && !BuiltinTypes::isBuiltin( type.resultType ) ) )
return ;
- QString name = type->fullNameChain();
+ TQString name = type->fullNameChain();
if ( type.sourceVariable )
name += " " + type.sourceVariable.name;
if ( type.resultType->resolved() && type.resultType->resolved() ->asFunction() )
@@ -1606,7 +1606,7 @@ void CppCodeCompletion::contextEvaluationMenus ( QPopupMenu *popup, const Contex
PopupFillerHelpStruct h( this );
PopupFiller<PopupFillerHelpStruct> filler( h, "" );
- QPopupMenu * m = PopupTracker::createPopup( popup );
+ TQPopupMenu * m = PopupTracker::createPopup( popup );
int gid;
if ( contextMenuEntriesAtTop )
gid = popup->insertItem( i18n( "Navigate by \"%1\"" ).arg( cleanForMenu( name ) ), m, 5, cpos++ );
@@ -1616,7 +1616,7 @@ void CppCodeCompletion::contextEvaluationMenus ( QPopupMenu *popup, const Contex
popup->setWhatsThis( 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, SLOT( popupAction( int ) ) );
+ int id = m->insertItem( i18n("jump to variable-declaration \"%1\"").arg( type.sourceVariable.name ) , this, TQT_SLOT( popupAction( int ) ) );
m_popupActions.insert( id, type.sourceVariable );
}*/
@@ -1626,7 +1626,7 @@ void CppCodeCompletion::contextEvaluationMenus ( QPopupMenu *popup, const Contex
if ( type->resolved() ) {
///Now fill the class-view-browsing-stuff
{
- QPopupMenu * m = PopupTracker::createPopup( popup );
+ TQPopupMenu * m = PopupTracker::createPopup( popup );
int gid;
if ( contextMenuEntriesAtTop )
gid = popup->insertItem( i18n( "Navigate Class-View by \"%1\"" ).arg( cleanForMenu( name ) ), m, 6, cpos++ );
@@ -1646,7 +1646,7 @@ void CppCodeCompletion::contextEvaluationMenus ( QPopupMenu *popup, const Contex
popup->insertSeparator( cpos );
}
-void CppCodeCompletion::slotTextHint( int line, int column, QString &text ) {
+void CppCodeCompletion::slotTextHint( int line, int column, TQString &text ) {
if ( ! m_pSupport->codeCompletionConfig() ->statusBarTypeEvaluation() )
return ;
@@ -1654,12 +1654,12 @@ void CppCodeCompletion::slotTextHint( int line, int column, QString &text ) {
clearStatusText();
- if ( m_lastHintTime.msecsTo( QTime::currentTime() ) < 300 ) {
+ if ( m_lastHintTime.msecsTo( TQTime::currentTime() ) < 300 ) {
kdDebug( 9007 ) << "slotNeedTextHint called too often" << endl;
return ;
}
- m_lastHintTime = QTime::currentTime();
+ m_lastHintTime = TQTime::currentTime();
clearStatusText();
text = "";
@@ -1682,9 +1682,9 @@ void CppCodeCompletion::slotTextHint( int line, int column, QString &text ) {
if( f ) {
text += "function: \"" + buildSignature( type->resolved() ) + "\"";
} else {
- QValueList<TypeDesc> trace = type.resultType->trace();
+ TQValueList<TypeDesc> trace = type.resultType->trace();
if( !trace.isEmpty() ) {
- for( QValueList<TypeDesc>::iterator it = trace.begin(); it != trace.end(); ++it ) {
+ for( TQValueList<TypeDesc>::iterator it = trace.begin(); it != trace.end(); ++it ) {
text += (*it).fullNameChain() + " --> ";
}
text += "\n";
@@ -1731,19 +1731,19 @@ void CppCodeCompletion::slotTextHint( int line, int column, QString &text ) {
}
///not good..
-bool CppCodeCompletion::isTypeExpression( const QString& expr ) {
+bool CppCodeCompletion::isTypeExpression( const TQString& expr ) {
TypeDesc d( expr );
if ( !d.isValidType() )
return false;
- QString ex = d.fullNameChain();
- QStringList lex = QStringList::split( " ", ex );
- QStringList lexpr = QStringList::split( " ", expr );
+ TQString ex = d.fullNameChain();
+ TQStringList lex = TQStringList::split( " ", ex );
+ TQStringList lexpr = TQStringList::split( " ", expr );
return lex.join( " " ) == lexpr.join( " " );
}
-bool CppCodeCompletion::mayBeTypeTail( int line, int column, QString& append, bool inFunction ) {
- QString tail = clearComments( m_activeEditor->text( line, column + 1, line + 10 > ( int ) m_activeEditor->numLines() ? ( int ) m_activeEditor->numLines() : line + 10, 0 ) );
+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", " " );
SafetyCounter s ( 100 );
bool hadSpace = false;
@@ -1776,7 +1776,7 @@ bool CppCodeCompletion::mayBeTypeTail( int line, int column, QString& append, bo
return false;
}
-bool CppCodeCompletion::canBeTypePrefix( const QString& prefix, bool inFunction ) {
+bool CppCodeCompletion::canBeTypePrefix( const TQString& prefix, bool inFunction ) {
for ( int p = prefix.length() - 1 ; p >= 0; --p ) {
if ( prefix[ p ].isSpace() ) {
@@ -1802,13 +1802,13 @@ bool CppCodeCompletion::canBeTypePrefix( const QString& prefix, bool inFunction
ExpressionInfo CppCodeCompletion::findExpressionAt( int line, int column, int startLine, int startCol, bool inFunction ) {
ExpressionInfo ret;
- QString contents = clearComments( getText( startLine, startCol, line, column ) );
+ TQString contents = clearComments( getText( startLine, startCol, line, column ) );
int start_expr = expressionAt( contents, contents.length() );
if ( start_expr != int( contents.length() ) ) {
- QString str = contents.mid( start_expr, contents.length() - start_expr ).stripWhiteSpace();
+ TQString str = contents.mid( start_expr, contents.length() - start_expr ).stripWhiteSpace();
if ( str.startsWith( "new " ) ) {
str = str.mid( 4 ).stripWhiteSpace();
}
@@ -1820,7 +1820,7 @@ ExpressionInfo CppCodeCompletion::findExpressionAt( int line, int column, int st
if ( ret ) {
///Check whether it may be a type-expression
bool mayBeType = true;
- QString append;
+ TQString append;
if ( !mayBeTypeTail( line, column - 1, append, inFunction ) )
mayBeType = false;
if ( mayBeType ) {
@@ -1829,7 +1829,7 @@ ExpressionInfo CppCodeCompletion::findExpressionAt( int line, int column, int st
}
//make this a regexp
- QString e = ret.expr();
+ TQString e = ret.expr();
if ( e.contains( "." ) || e.contains( "->" ) || e.contains( "(" ) || e.contains( ")" ) || e.contains( "=" ) || e.contains( "-" ) )
mayBeType = false;
@@ -1863,10 +1863,10 @@ SimpleContext* CppCodeCompletion::computeFunctionContext( FunctionDom f, int lin
f->getStartPosition( &modelStartLine, &modelStartColumn );
f->getEndPosition( &modelEndLine, &modelEndColumn );
- QString textLine = m_activeEditor->textLine( modelStartLine );
+ TQString textLine = m_activeEditor->textLine( modelStartLine );
kdDebug( 9007 ) << "startLine = " << textLine << endl;
- QString contents = getText( modelStartLine, modelStartColumn, line, col );
+ TQString contents = getText( modelStartLine, modelStartColumn, line, col );
Driver d;
Lexer lexer( &d );
@@ -1900,13 +1900,13 @@ SimpleContext* CppCodeCompletion::computeFunctionContext( FunctionDom f, int lin
if ( !ctx )
return 0;
- QStringList scope = f->scope();
+ TQStringList scope = f->scope();
if ( !scope.isEmpty() ) {
SimpleType parentType;
/* if( !m_cachedFromContext ) {
- TypePointer t = SimpleType(QStringList())->locateDecType( scope.join("") ).desc().resolved();;
+ TypePointer t = SimpleType(TQStringList())->locateDecType( scope.join("") ).desc().resolved();;
if( t )
parentType = SimpleType( t.data() );
else
@@ -1922,8 +1922,8 @@ SimpleContext* CppCodeCompletion::computeFunctionContext( FunctionDom f, int lin
if( dynamic_cast<SimpleTypeNamespace*>( &(*global) ) ) {
SimpleTypeNamespace* globalNs = static_cast <SimpleTypeNamespace*>( &(*global) );
- QValueList<QPair<QString, QString> > localImports = ctx->imports();
- for( QValueList<QPair<QString, QString> >::const_iterator it = localImports.begin(); it != localImports.end(); ++it )
+ TQValueList<QPair<TQString, TQString> > localImports = ctx->imports();
+ for( TQValueList<QPair<TQString, TQString> >::const_iterator it = localImports.begin(); it != localImports.end(); ++it )
globalNs->addAliasMap( (*it).first, (*it).second );
}
@@ -1984,7 +1984,7 @@ bool CppCodeCompletion::functionContains( FunctionDom f , int line, int col ) {
int sl, sc, el, ec;
f->getStartPosition( &sl, &sc );
f->getEndPosition( &el, &ec );
- QString t = clearComments( getText( sl, sc, el, ec ) );
+ TQString t = clearComments( getText( sl, sc, el, ec ) );
if ( t.isEmpty() )
return false;
@@ -2013,7 +2013,7 @@ void CppCodeCompletion::getFunctionBody( FunctionDom f , int& line, int& col ) {
int sl, sc, el, ec;
f->getStartPosition( &sl, &sc );
f->getEndPosition( &el, &ec );
- QString t = clearComments( getText( sl, sc, el, ec ) );
+ TQString t = clearComments( getText( sl, sc, el, ec ) );
if ( t.isEmpty() )
return;
@@ -2095,10 +2095,10 @@ EvaluationResult CppCodeCompletion::evaluateExpressionType( int line, int column
// emptyCache();
fitContextItem( line, column );
- QString strCurLine = m_activeEditor->textLine( nLine );
+ TQString strCurLine = m_activeEditor->textLine( nLine );
- QString ch = strCurLine.mid( nCol - 1, 1 );
- QString ch2 = strCurLine.mid( nCol - 2, 2 );
+ TQString ch = strCurLine.mid( nCol - 1, 1 );
+ TQString ch2 = strCurLine.mid( nCol - 2, 2 );
while ( ch[ 0 ].isSpace() && nCol >= 3 ) {
nCol -= 1;
@@ -2108,7 +2108,7 @@ EvaluationResult CppCodeCompletion::evaluateExpressionType( int line, int column
if ( ch2 == "->" || ch == "." || ch == "(" ) {
int pos = ch2 == "->" ? nCol - 3 : nCol - 2;
- QChar c = strCurLine[ pos ];
+ TQChar c = strCurLine[ pos ];
while ( pos > 0 && c.isSpace() )
c = strCurLine[ --pos ];
@@ -2126,7 +2126,7 @@ EvaluationResult CppCodeCompletion::evaluateExpressionType( int line, int column
showArguments = true;
}
- QString word;
+ TQString word;
{
ExpressionInfo exp_ = findExpressionAt( line, column , line, 0 );
@@ -2196,7 +2196,7 @@ EvaluationResult CppCodeCompletion::evaluateExpressionType( int line, int column
} else {
///Remove the not completely typed last word while normal completion
if ( !showArguments && ( opt & CompletionOption ) ) {
- QString e = exp.expr();
+ TQString e = exp.expr();
int idx = e.length() - 1;
while ( e[ idx ].isLetterOrNumber() || e[ idx ] == '_' )
--idx;
@@ -2229,7 +2229,7 @@ EvaluationResult CppCodeCompletion::evaluateExpressionType( int line, int column
RecoveryPoint* recoveryPoint = this->d->findRecoveryPoint( line, column );
- QStringList scope;
+ TQStringList scope;
if ( !currentClass ) {
kdDebug( 9007 ) << "no container-class found" << endl;
@@ -2251,7 +2251,7 @@ EvaluationResult CppCodeCompletion::evaluateExpressionType( int line, int column
if ( m_cachedFromContext ) {
TypeDesc d( scope.join( "::" ) );
d.setIncludeFiles( getIncludeFiles() );
- SimpleTypeImpl * i = SimpleType( QStringList(), getIncludeFiles() ) ->locateDecType( d ).desc().resolved().data();
+ SimpleTypeImpl * i = SimpleType( TQStringList(), getIncludeFiles() ) ->locateDecType( d ).desc().resolved().data();
if ( i )
container = i;
else
@@ -2287,13 +2287,13 @@ EvaluationResult CppCodeCompletion::evaluateExpressionType( int line, int column
return ret;
}
-bool isAfterKeyword( const QString& str, int column ) {
- QStringList keywords;
+bool isAfterKeyword( const TQString& str, int column ) {
+ TQStringList keywords;
keywords << "new";
keywords << "throw";
keywords << "return";
keywords << "emit"; ///This could be done even better by only showing signals for completion..
- for ( QStringList::iterator it = keywords.begin(); it != keywords.end(); ++it ) {
+ for ( TQStringList::iterator it = keywords.begin(); it != keywords.end(); ++it ) {
int len = ( *it ).length();
if ( column >= len && str.mid( column - len, len ) == *it )
return true;
@@ -2345,10 +2345,10 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
surroundingEndLine = m_activeEditor->numLines() - 1;
int surroundingEndCol = m_activeEditor->lineLength( surroundingEndLine );
- QString pre = getText( surroundingStartLine, 0, line, column );
+ TQString pre = getText( surroundingStartLine, 0, line, column );
int pos = pre.length();
pre += getText( line, column, surroundingEndLine, surroundingEndCol );
- QString cleared = clearComments( pre );
+ TQString cleared = clearComments( pre );
if ( cleared[ pos ] != pre[ pos ] ) {
kdDebug( 9007 ) << "stopping completion because we're in a coment" << endl;
return ;
@@ -2356,10 +2356,10 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
int nLine = line, nCol = column;
- QString strCurLine = clearComments( m_activeEditor->textLine( nLine ) );
+ TQString strCurLine = clearComments( m_activeEditor->textLine( nLine ) );
- QString ch = strCurLine.mid( nCol - 1, 1 );
- QString ch2 = strCurLine.mid( nCol - 2, 2 );
+ TQString ch = strCurLine.mid( nCol - 1, 1 );
+ TQString ch2 = strCurLine.mid( nCol - 2, 2 );
while ( ch[ 0 ].isSpace() && nCol >= 3 ) {
nCol -= 1;
@@ -2381,7 +2381,7 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
if ( ch2 == "->" || ch == "." || ch == "(" ) {
int pos = ch2 == "->" ? nCol - 3 : nCol - 2;
- QChar c = strCurLine[ pos ];
+ TQChar c = strCurLine[ pos ];
while ( pos > 0 && c.isSpace() )
c = strCurLine[ --pos ];
@@ -2412,7 +2412,7 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
if ( isAfterKeyword( strCurLine, column ) ) {
///Maybe a constructor using "new", or "throw", "return", ...
} else {
- ///it is a local constructor like "QString name("David");"
+ ///it is a local constructor like "TQString name("David");"
nCol = column;
}
}
@@ -2424,7 +2424,7 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
EvaluationResult type;
SimpleType this_type;
- QString expr, word;
+ TQString expr, word;
DeclarationAST::Node recoveredDecl;
TypeSpecifierAST::Node recoveredTypeSpec;
@@ -2442,7 +2442,7 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
RecoveryPoint * recoveryPoint = d->findRecoveryPoint( line, column );
if ( recoveryPoint || currentFunction ) {
contextItem = currentFunction.data();
- QStringList scope;
+ TQStringList scope;
int startLine, startColumn;
if ( currentFunction ) { ///maybe change the priority of these
@@ -2456,12 +2456,12 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
scope = recoveryPoint->scope;
}
- QString textLine = m_activeEditor->textLine( startLine );
+ TQString textLine = m_activeEditor->textLine( startLine );
kdDebug( 9007 ) << "startLine = " << textLine << endl;
if ( currentFunction || recoveryPoint->kind == NodeType_FunctionDefinition ) {
- QString textToReparse = clearComments( getText( startLine, startColumn, line, showArguments ? nCol : column ) );
+ TQString textToReparse = clearComments( getText( startLine, startColumn, line, showArguments ? nCol : column ) );
kdDebug( 9007 ) << "-------------> reparse text" << endl << textToReparse << endl
<< "--------------------------------------------" << endl;
@@ -2492,7 +2492,7 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
/// @todo remove code duplication
- QString contents = textToReparse;
+ TQString contents = textToReparse;
int start_expr = expressionAt( contents, contents.length() );
// kdDebug(9007) << "start_expr = " << start_expr << endl;
@@ -2508,7 +2508,7 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
--end_expr;
if ( contents[ end_expr ] != ',' ) {
- expr = QString::null;
+ expr = TQString::null;
} else {
start_expr = expressionAt( contents, end_expr );
expr = contents.mid( start_expr, end_expr - start_expr ).stripWhiteSpace();
@@ -2531,14 +2531,14 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
DeclaratorAST* d = def->initDeclarator() ->declarator();
NameAST* name = d->declaratorId();
- QStringList nested;
+ TQStringList nested;
- QPtrList<ClassOrNamespaceNameAST> l;
+ TQPtrList<ClassOrNamespaceNameAST> l;
if ( name ) {
l = name->classOrNamespaceNameList();
}
- // QPtrList<ClassOrNamespaceNameAST> l = name->classOrNamespaceNameList();
- QPtrListIterator<ClassOrNamespaceNameAST> nameIt( l );
+ // TQPtrList<ClassOrNamespaceNameAST> l = name->classOrNamespaceNameList();
+ TQPtrListIterator<ClassOrNamespaceNameAST> nameIt( l );
while ( nameIt.current() ) {
if ( nameIt.current() ->name() ) {
nested << nameIt.current() ->name() ->text();
@@ -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() );
- QValueList<QPair<QString, QString> > localImports = ctx->imports();
- for( QValueList<QPair<QString, QString> >::const_iterator it = localImports.begin(); it != localImports.end(); ++it )
+ TQValueList<QPair<TQString, TQString> > localImports = ctx->imports();
+ for( TQValueList<QPair<TQString, TQString> >::const_iterator it = localImports.begin(); it != localImports.end(); ++it )
globalNs->addAliasMap( (*it).first, (*it).second );
}
} else {
@@ -2571,7 +2571,7 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
conf.setGlobalNamespace( t );
SimpleTypeNamespace * n = dynamic_cast<SimpleTypeNamespace*>( t.data() );
if ( !n ) {
- QString str = QString( "the global namespace was not resolved correctly , real type: " ) + typeid( n ).name() + QString( " name: " ) + n->scope().join( "::" ) + " scope-size: " + n->scope().count();
+ TQString str = TQString( "the global namespace was not resolved correctly , real type: " ) + typeid( n ).name() + TQString( " name: " ) + n->scope().join( "::" ) + " scope-size: " + n->scope().count();
kdDebug( 9007 ) << str << endl;
m_pSupport->mainWindow() ->statusBar() ->message( str , 1000 );
} else {
@@ -2582,7 +2582,7 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
if ( m_cachedFromContext ) {
TypeDesc d( scope.join( "::" ) );
d.setIncludeFiles( getIncludeFiles() );
- SimpleTypeImpl * i = SimpleType( QStringList(), getIncludeFiles() ) ->locateDecType( d ).desc().resolved().data();
+ SimpleTypeImpl * i = SimpleType( TQStringList(), getIncludeFiles() ) ->locateDecType( d ).desc().resolved().data();
if ( i ) {
parentType = i;
} else {
@@ -2633,7 +2633,7 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
kdDebug( 9007 ) << "no valid declaration to recover!!!" << endl;
}
} else if ( recoveryPoint->kind == NodeType_ClassSpecifier ) {
- QString textToReparse = getText( recoveryPoint->startLine, recoveryPoint->startColumn,
+ TQString textToReparse = getText( recoveryPoint->startLine, recoveryPoint->startColumn,
recoveryPoint->endLine, recoveryPoint->endColumn, line );
// kdDebug(9007) << "-------------> please reparse only text" << endl << textToReparse << endl
// << "--------------------------------------------" << endl;
@@ -2651,7 +2651,7 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
//ClassSpecifierAST * clazz = static_cast<ClassSpecifierAST*>( recoveredTypeSpec.get() );
- QString keyword = getText( line, 0, line, column ).simplifyWhiteSpace();
+ TQString keyword = getText( line, 0, line, column ).simplifyWhiteSpace();
kdDebug( 9007 ) << "===========================> keyword is: " << keyword << endl;
@@ -2659,8 +2659,8 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
BaseClauseAST *baseClause = clazz->baseClause();
if ( baseClause )
{
- QPtrList<BaseSpecifierAST> baseList = baseClause->baseSpecifierList();
- QPtrList<BaseSpecifierAST>::iterator it = baseList.begin();
+ TQPtrList<BaseSpecifierAST> baseList = baseClause->baseSpecifierList();
+ TQPtrList<BaseSpecifierAST>::iterator it = baseList.begin();
for ( ; it != baseList.end(); ++it )
type.append( ( *it )->name()->text() );
@@ -2673,7 +2673,7 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
kdDebug(9007) << "------> found virtual keyword for class specifier '"
<< clazz->text() << "'" << endl;
}*/
- } else if ( QString( "virtual" ).find( keyword ) != -1 )
+ } else if ( TQString( "virtual" ).find( keyword ) != -1 )
m_blockForKeyword = true;
else
m_blockForKeyword = false;
@@ -2694,7 +2694,7 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
int startLine, startColumn;
def->getStartPosition( &startLine, &startColumn );
- QString contents = getText( startLine, startColumn, line, showArguments ? nCol : column );
+ TQString contents = getText( startLine, startColumn, line, showArguments ? nCol : column );
/// @todo remove code duplication
@@ -2713,7 +2713,7 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
--end_expr;
if ( contents[ end_expr ] != ',' ) {
- expr = QString::null;
+ expr = TQString::null;
} else {
start_expr = expressionAt( contents, end_expr );
expr = contents.mid( start_expr, end_expr - start_expr ).stripWhiteSpace();
@@ -2732,7 +2732,7 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
ctx = computeContext( def, line, column, startLine, startColumn );
- QStringList scope;
+ TQStringList scope;
scopeOfNode( def, scope );
this_type = SimpleType( scope, getIncludeFiles() );
@@ -2755,12 +2755,12 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
return ;
if ( ch2 == "::" ) {
- QString str = clearComments( expr );
+ TQString str = clearComments( expr );
if ( !str.contains( '.' ) && !str.contains( "->" ) ) ///Necessary, because the expression may also be like user->BaseUser::
isInstance = false;
}
- QString resolutionType = "(resolved)";
+ TQString resolutionType = "(resolved)";
if( !type->resolved() ) {
if( BuiltinTypes::isBuiltin( type.resultType ) ) {
resolutionType = "(builtin " + BuiltinTypes::comment( type.resultType ) + ")";
@@ -2773,7 +2773,7 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
kdDebug( 9007 ) << "===========================> word is: " << word << endl;
if ( !showArguments ) {
- QValueList<CodeCompletionEntry> entryList;
+ TQValueList<CodeCompletionEntry> entryList;
if ( !type && this_type && ( expr.isEmpty() || expr.endsWith( ";" ) ) ) {
@@ -2817,9 +2817,9 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
if( ctx ) computeCompletionEntryList( entryList, ctx, isInstance );
// if ( m_pSupport->codeCompletionConfig() ->includeGlobalFunctions() )
- // computeCompletionEntryList( type, entryList, QStringList(), false );
+ // computeCompletionEntryList( type, entryList, TQStringList(), false );
- computeCompletionEntryList( type, entryList, QStringList(), false );
+ computeCompletionEntryList( type, entryList, TQStringList(), false );
if ( this_type.scope().size() )
computeCompletionEntryList( this_type, entryList, this_type.scope(), isInstance );
@@ -2829,11 +2829,11 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
computeCompletionEntryList( type, entryList, type->resolved() ->scope() , isInstance );
}
- QStringList trueMatches;
+ TQStringList trueMatches;
if ( invokedOnDemand ) {
// find matching words
- QValueList<CodeCompletionEntry>::Iterator it;
+ TQValueList<CodeCompletionEntry>::Iterator it;
for ( it = entryList.begin(); it != entryList.end(); ++it ) {
if ( ( *it ).text.startsWith( word ) ) {
trueMatches << ( *it ).text;
@@ -2860,14 +2860,14 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
m_bCompletionBoxShow = true;
///Warning: the conversion is only possible because CodeCompletionEntry is binary compatible with KTextEditor::CompletionEntry,
///never change that!
- m_activeCompletion->showCompletionBox( *( ( QValueList<KTextEditor::CompletionEntry>* ) ( &entryList ) ), word.length() );
+ m_activeCompletion->showCompletionBox( *( ( TQValueList<KTextEditor::CompletionEntry>* ) ( &entryList ) ), word.length() );
}
} else {
- QValueList<QStringList> signatureList;
+ TQValueList<TQStringList> signatureList;
signatureList = computeSignatureList( type );
- QString methodName = type->name();
+ TQString methodName = type->name();
///Search for variables with ()-operator in the context
if ( ctx ) {
@@ -2911,7 +2911,7 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
}
-QValueList<QStringList> CppCodeCompletion::computeSignatureList( EvaluationResult result ) {
+TQValueList<TQStringList> CppCodeCompletion::computeSignatureList( EvaluationResult result ) {
SimpleType type = result;
if ( result.expr.t == ExpressionInfo::TypeExpression ) {
@@ -2920,7 +2920,7 @@ QValueList<QStringList> CppCodeCompletion::computeSignatureList( EvaluationResul
type = type->typeOf( d, SimpleTypeImpl::MemberInfo::Function ); ///Compute the signature of the constructor
}
- QValueList<QStringList> retList;
+ TQValueList<TQStringList> retList;
SimpleTypeFunctionInterface* f = type->asFunction();
SimpleType currType = type;
@@ -2934,10 +2934,10 @@ QValueList<QStringList> CppCodeCompletion::computeSignatureList( EvaluationResul
}
while ( f ) {
- QStringList lst;
- QString sig = buildSignature( currType.get() );
- QString comment = currType->comment();
- QStringList commentList;
+ TQStringList lst;
+ TQString sig = buildSignature( currType.get() );
+ TQString comment = currType->comment();
+ TQStringList commentList;
if ( m_pSupport->codeCompletionConfig() ->showCommentWithArgumentHint() ) {
if ( !comment.isEmpty() ) {
@@ -2962,13 +2962,13 @@ QValueList<QStringList> CppCodeCompletion::computeSignatureList( EvaluationResul
return retList;
}
-void CppCodeCompletion::synchronousParseReady( const QString& file, ParsedFilePointer unit ) {
+void CppCodeCompletion::synchronousParseReady( const TQString& file, ParsedFilePointer unit ) {
if ( file == m_activeFileName ) {
computeRecoveryPoints( unit );
}
}
-void CppCodeCompletion::slotCodeModelUpdated( const QString& fileName ) {
+void CppCodeCompletion::slotCodeModelUpdated( const TQString& fileName ) {
if ( fileName != m_activeFileName || !m_pSupport || !m_activeEditor )
return ;
@@ -2977,7 +2977,7 @@ void CppCodeCompletion::slotCodeModelUpdated( const QString& fileName ) {
computeRecoveryPointsLocked();
}
-void CppCodeCompletion::slotFileParsed( const QString& fileName ) {
+void CppCodeCompletion::slotFileParsed( const TQString& fileName ) {
if ( fileName != m_activeFileName || !m_pSupport || !m_activeEditor )
return ;
@@ -2999,24 +2999,24 @@ SimpleContext* CppCodeCompletion::computeContext( FunctionDefinitionAST * ast, i
DeclaratorAST * d = ast->initDeclarator() ->declarator();
if ( ParameterDeclarationClauseAST * clause = d->parameterDeclarationClause() ) {
if ( ParameterDeclarationListAST * params = clause->parameterDeclarationList() ) {
- QPtrList<ParameterDeclarationAST> l( params->parameterList() );
- QPtrListIterator<ParameterDeclarationAST> it( l );
+ TQPtrList<ParameterDeclarationAST> l( params->parameterList() );
+ TQPtrListIterator<ParameterDeclarationAST> it( l );
while ( it.current() ) {
ParameterDeclarationAST * param = it.current();
++it;
SimpleVariable var;
- QStringList ptrList;
- QPtrList<AST> ptrOpList = param->declarator() ->ptrOpList();
- QPtrList<AST>::iterator it = ptrOpList.begin();
+ TQStringList ptrList;
+ TQPtrList<AST> ptrOpList = param->declarator() ->ptrOpList();
+ TQPtrList<AST>::iterator it = ptrOpList.begin();
for ( ; it != ptrOpList.end(); ++it ) {
ptrList.append( ( *it ) ->text() );
}
var.ptrList = ptrList;
var.type = param->typeSpec() ->text() + ptrList.join( "" );
- var.name = declaratorToString( param->declarator(), QString::null, true );
+ var.name = declaratorToString( param->declarator(), TQString::null, true );
var.comment = param->comment();
param->getStartPosition( &var.startLine, &var.startCol );
param->getEndPosition( &var.endLine, &var.endCol );
@@ -3080,8 +3080,8 @@ void CppCodeCompletion::computeContext( SimpleContext*& ctx, StatementListAST* a
if ( !inContextScope( ast, line, col, false, true ) )
return ;
- QPtrList<StatementAST> l( ast->statementList() );
- QPtrListIterator<StatementAST> it( l );
+ TQPtrList<StatementAST> l( ast->statementList() );
+ TQPtrListIterator<StatementAST> it( l );
while ( it.current() ) {
StatementAST * stmt = it.current();
++it;
@@ -3144,8 +3144,8 @@ void CppCodeCompletion::computeContext( SimpleContext*& ctx, CatchStatementListA
/*if ( !inContextScope( ast, line, col, false, true ) )
return;*/
- QPtrList<CatchStatementAST> l( ast->statementList() );
- QPtrListIterator<CatchStatementAST> it( l );
+ TQPtrList<CatchStatementAST> l( ast->statementList() );
+ TQPtrListIterator<CatchStatementAST> it( l );
while ( it.current() ) {
CatchStatementAST * stmt = it.current();
++it;
@@ -3168,21 +3168,21 @@ void CppCodeCompletion::computeContext( SimpleContext*& ctx, DeclarationStatemen
///@todo respect NodeType_Typedef
if( ast->declaration() && ast->declaration() ->nodeType() == NodeType_UsingDirective ) {
UsingDirectiveAST* usingDecl = static_cast<UsingDirectiveAST*>( ast->declaration() );
- QString name;
+ TQString name;
if( usingDecl->name() ) {
name = usingDecl->name()->text();
if( !name.isNull() )
- ctx->addImport( QPair<QString, QString>( "", name ) );
+ ctx->addImport( QPair<TQString, TQString>( "", name ) );
}
}
if( ast->declaration() && ast->declaration() ->nodeType() == NodeType_NamespaceAlias ) {
NamespaceAliasAST* namespaceAlias = static_cast<NamespaceAliasAST*>( ast->declaration() );
- QString name;
+ TQString name;
if( namespaceAlias ->namespaceName() && namespaceAlias->aliasName() ) {
- ctx->addImport( QPair<QString, QString>( namespaceAlias->namespaceName()->text(), namespaceAlias->aliasName()->text() ) );
+ ctx->addImport( QPair<TQString, TQString>( namespaceAlias->namespaceName()->text(), namespaceAlias->aliasName()->text() ) );
}
}
@@ -3199,8 +3199,8 @@ void CppCodeCompletion::computeContext( SimpleContext*& ctx, DeclarationStatemen
if ( !initDeclListAST )
return ;
- QPtrList<InitDeclaratorAST> l = initDeclListAST->initDeclaratorList();
- QPtrListIterator<InitDeclaratorAST> it( l );
+ TQPtrList<InitDeclaratorAST> l = initDeclListAST->initDeclaratorList();
+ TQPtrListIterator<InitDeclaratorAST> it( l );
while ( it.current() ) {
DeclaratorAST * d = it.current() ->declarator();
++it;
@@ -3208,9 +3208,9 @@ void CppCodeCompletion::computeContext( SimpleContext*& ctx, DeclarationStatemen
if ( d->declaratorId() ) {
SimpleVariable var;
- QStringList ptrList;
- QPtrList<AST> ptrOpList = d->ptrOpList();
- QPtrList<AST>::iterator it = ptrOpList.begin();
+ TQStringList ptrList;
+ TQPtrList<AST> ptrOpList = d->ptrOpList();
+ TQPtrList<AST>::iterator it = ptrOpList.begin();
for ( ; it != ptrOpList.end(); ++it ) {
ptrList.append( ( *it ) ->text() );
}
@@ -3241,9 +3241,9 @@ void CppCodeCompletion::computeContext( SimpleContext*& ctx, ConditionAST* ast,
SimpleVariable var;
- QStringList ptrList;
- QPtrList<AST> ptrOpList = ast->declarator() ->ptrOpList();
- QPtrList<AST>::iterator it = ptrOpList.begin();
+ TQStringList ptrList;
+ TQPtrList<AST> ptrOpList = ast->declarator() ->ptrOpList();
+ TQPtrList<AST>::iterator it = ptrOpList.begin();
for ( ; it != ptrOpList.end(); ++it ) {
ptrList.append( ( *it ) ->text() );
}
@@ -3298,19 +3298,19 @@ FunctionDefinitionAST * CppCodeCompletion::functionDefinition( AST* node ) {
return 0;
}
-QString CppCodeCompletion::getText( int startLine, int startColumn, int endLine, int endColumn, int omitLine ) {
+TQString CppCodeCompletion::getText( int startLine, int startColumn, int endLine, int endColumn, int omitLine ) {
if ( startLine == endLine ) {
- QString textLine = m_activeEditor->textLine( startLine );
+ TQString textLine = m_activeEditor->textLine( startLine );
return textLine.mid( startColumn, endColumn - startColumn );
}
- QStringList contents;
+ TQStringList contents;
for ( int line = startLine; line <= endLine; ++line ) {
if ( line == omitLine )
continue;
- QString textLine = m_activeEditor->textLine( line );
+ TQString textLine = m_activeEditor->textLine( line );
if ( line == startLine )
textLine = textLine.mid( startColumn );
@@ -3344,7 +3344,7 @@ void CppCodeCompletion::computeRecoveryPoints( ParsedFilePointer unit ) {
walker.parseTranslationUnit( *unit );
}
-QString codeModelAccessToString( CodeModelItem::Access access ) {
+TQString codeModelAccessToString( CodeModelItem::Access access ) {
switch ( access ) {
case CodeModelItem::Public:
return "public";
@@ -3360,13 +3360,13 @@ QString codeModelAccessToString( CodeModelItem::Access access ) {
#define MAXCOMMENTCOLUMNS 45
-QString CppCodeCompletion::commentFromItem( const SimpleType& parent, const ItemDom& item ) {
+TQString CppCodeCompletion::commentFromItem( const SimpleType& parent, const ItemDom& item ) {
--m_maxComments;
- static QString maxReached = " ";
+ static TQString maxReached = " ";
if( m_maxComments < 0 ) {
return maxReached;
}
- QString ret;
+ TQString ret;
int line, col;
item->getStartPosition( &line, &col );
@@ -3397,7 +3397,7 @@ QString CppCodeCompletion::commentFromItem( const SimpleType& parent, const Item
const FunctionModel * f = dynamic_cast<const FunctionModel*>( item.data() );
ret += "\nKind: Function";
if ( f ) {
- QString state;
+ TQString state;
if ( f->isStatic() )
state += "static ";
if ( f->isVirtual() )
@@ -3463,22 +3463,22 @@ QString CppCodeCompletion::commentFromItem( const SimpleType& parent, const Item
ret += "\nKind: Class";
}
- ret += QString( "\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" ).arg( prepareTextForMenu( item->fileName(), 3, MAXCOMMENTCOLUMNS ).join( "\n" ) ).arg( line ).arg( col );
if ( !item->comment().isEmpty() )
ret += "\n\n" + prepareTextForMenu( item->comment(), 3, MAXCOMMENTCOLUMNS ).join( "\n" );
return ret;
}
-QString CppCodeCompletion::commentFromTag( const SimpleType& parent, Tag& tag ) {
+TQString CppCodeCompletion::commentFromTag( const SimpleType& parent, Tag& tag ) {
--m_maxComments;
- static QString maxReached = " ";
+ static TQString maxReached = " ";
if( m_maxComments < 0 ) {
return maxReached;
}
int line, col;
tag.getStartPosition( &line, &col );
- QString ret; // = tag.comment();
+ TQString ret; // = tag.comment();
if ( !parent->scope().isEmpty() ) {
ret += "Container: " + parent->fullTypeResolvedWithScope();
@@ -3508,7 +3508,7 @@ QString CppCodeCompletion::commentFromTag( const SimpleType& parent, Tag& tag )
ret += "\nKind: Function";
- QString state;
+ TQString state;
if ( function.isStatic() )
state += "static ";
if ( function.isVirtual() )
@@ -3585,14 +3585,14 @@ QString CppCodeCompletion::commentFromTag( const SimpleType& parent, Tag& tag )
ret += "\nKind: Struct";
}
- ret += QString( "\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" ).arg( prepareTextForMenu( tag.fileName(), 3, MAXCOMMENTCOLUMNS ).join( "\n" ) ).arg( line ).arg( col );
if ( !tag.comment().isEmpty() ) {
ret += "\n\n" + prepareTextForMenu( tag.comment(), 20, MAXCOMMENTCOLUMNS ).join( "\n" );
}
return ret;
}
-void CppCodeCompletion::computeCompletionEntryList( SimpleType typeR, QValueList<CodeCompletionEntry>& entryList, const QStringList& type, SimpleTypeNamespace* ns, std::set<HashedString>& ignore, bool isInstance, int depth ) {
+void CppCodeCompletion::computeCompletionEntryList( SimpleType typeR, TQValueList<CodeCompletionEntry>& entryList, const TQStringList& type, SimpleTypeNamespace* ns, std::set<HashedString>& ignore, bool isInstance, int depth ) {
HashedString myName = HashedString( ns->scope().join("::") +"%"+typeid(*ns).name() );
if ( ignore.find( myName ) != ignore.end() )
return ;
@@ -3608,7 +3608,7 @@ void CppCodeCompletion::computeCompletionEntryList( SimpleType typeR, QValueList
}
}
-void CppCodeCompletion::computeCompletionEntryList( SimpleType typeR, QValueList< CodeCompletionEntry > & entryList, const QStringList & type, bool isInstance, int depth ) {
+void CppCodeCompletion::computeCompletionEntryList( SimpleType typeR, TQValueList< CodeCompletionEntry > & entryList, const TQStringList & type, bool isInstance, int depth ) {
dbgState.setState( disableVerboseForCompletionList );
Debug d( "#cel#" );
@@ -3625,12 +3625,12 @@ void CppCodeCompletion::computeCompletionEntryList( SimpleType typeR, QValueList
if ( ClassModel * mod = dynamic_cast<ClassModel*> ( &( *item ) ) )
computeCompletionEntryList( typeR, entryList, ClassDom( mod ) , isInstance, depth );
} else {
- QValueList<Catalog::QueryArgument> args;
- QValueList<Tag> tags;
+ TQValueList<Catalog::QueryArgument> args;
+ TQValueList<Tag> tags;
- QStringList ts = type;
+ TQStringList ts = type;
if( !ts.isEmpty() ) {
- QString s = ts.back() + typeR->specialization();
+ TQString s = ts.back() + typeR->specialization();
ts.pop_back();
ts.push_back( s );
}
@@ -3681,14 +3681,14 @@ void CppCodeCompletion::computeCompletionEntryList( SimpleType typeR, QValueList
args.clear();
args << Catalog::QueryArgument( "kind", Tag::Kind_Base_class );
- QString fullname = type.join( "::" )+typeR->specialization();
+ TQString fullname = type.join( "::" )+typeR->specialization();
/* if( fullname.length() >=2 )
args << Catalog::QueryArgument( "prefix", fullname.left(2) );*/
args << Catalog::QueryArgument( "name", fullname );
- QValueList<LocateResult> parents = typeR->getBases( );
- for ( QValueList<LocateResult>::Iterator it = parents.begin(); it != parents.end(); ++it ) {
+ TQValueList<LocateResult> parents = typeR->getBases( );
+ for ( TQValueList<LocateResult>::Iterator it = parents.begin(); it != parents.end(); ++it ) {
if ( !( *it ) ->resolved() )
continue;
SimpleType tp = SimpleType( ( *it ) ->resolved() );
@@ -3700,18 +3700,18 @@ void CppCodeCompletion::computeCompletionEntryList( SimpleType typeR, QValueList
}
-void CppCodeCompletion::computeCompletionEntryList( SimpleType type, QValueList< CodeCompletionEntry > & entryList, QValueList< Tag > & tags, bool isInstance, int depth ) {
+void CppCodeCompletion::computeCompletionEntryList( SimpleType type, TQValueList< CodeCompletionEntry > & entryList, TQValueList< Tag > & tags, bool isInstance, int depth ) {
Debug d( "#cel#" );
if ( !safetyCounter || !d )
return ;
- QString className = type->desc().name();
+ TQString className = type->desc().name();
bool isNs = type->isNamespace();
CompTypeProcessor proc( type, m_pSupport->codeCompletionConfig() ->processFunctionArguments() && type->usingTemplates() );
bool resolve = m_pSupport->codeCompletionConfig() ->processPrimaryTypes() && type->usingTemplates();
- QValueList<Tag>::Iterator it = tags.begin();
+ TQValueList<Tag>::Iterator it = tags.begin();
while ( it != tags.end() ) {
Tag & tag = *it;
++it;
@@ -3753,7 +3753,7 @@ void CppCodeCompletion::computeCompletionEntryList( SimpleType type, QValueList<
fl.flags = tag.flags();
int num = fl.data.access;
- QString str = "public";
+ TQString str = "public";
if ( num != 0 ) {
str = TagUtils::accessToString( num );
} else {
@@ -3807,7 +3807,7 @@ void CppCodeCompletion::computeCompletionEntryList( SimpleType type, QValueList<
break;
}
- e.userdata = QString( "%1%2%3%4%5" ).arg( num ).arg( depth ).arg( className ).arg( sortPosition ).arg( subSorting );
+ e.userdata = TQString( "%1%2%3%4%5" ).arg( num ).arg( depth ).arg( className ).arg( sortPosition ).arg( subSorting );
if ( m_completionMode != SignalCompletion ) {
if ( !type->isNamespace() ) {
@@ -3819,7 +3819,7 @@ void CppCodeCompletion::computeCompletionEntryList( SimpleType type, QValueList<
}
- QString prefix = tagType( tag ).stripWhiteSpace();
+ TQString prefix = tagType( tag ).stripWhiteSpace();
if ( tag.kind() == Tag::Kind_Enumerator && tag.hasAttribute( "enum" ) ) {
prefix = tag.attribute( "enum" ).asString();
@@ -3867,7 +3867,7 @@ void CppCodeCompletion::computeCompletionEntryList( SimpleType type, QValueList<
}
}
-void CppCodeCompletion::computeCompletionEntryList( SimpleType type, QValueList< CodeCompletionEntry > & entryList, ClassDom klass, bool isInstance, int depth ) {
+void CppCodeCompletion::computeCompletionEntryList( SimpleType type, TQValueList< CodeCompletionEntry > & entryList, ClassDom klass, bool isInstance, int depth ) {
Debug d( "#cel#" );
if ( !safetyCounter || !d )
return ;
@@ -3878,7 +3878,7 @@ void CppCodeCompletion::computeCompletionEntryList( SimpleType type, QValueList<
FunctionDefinitionList definitions = klass->functionDefinitionList();
FunctionList l;
- QStringList classScope = klass->scope();
+ TQStringList classScope = klass->scope();
classScope << klass->name();
for ( FunctionDefinitionList::iterator it = definitions.begin(); it != definitions.end(); ++it ) {
@@ -3930,9 +3930,9 @@ void CppCodeCompletion::computeCompletionEntryList( SimpleType type, QValueList<
computeCompletionEntryList( klass->name(), type, entryList, klass->typeAliasList(), isInstance, depth );
}
- QValueList<LocateResult> parents = type->getBases( );
+ TQValueList<LocateResult> parents = type->getBases( );
- for ( QValueList<LocateResult>::Iterator it = parents.begin(); it != parents.end(); ++it ) {
+ for ( TQValueList<LocateResult>::Iterator it = parents.begin(); it != parents.end(); ++it ) {
if ( !( *it ) ->resolved() )
continue;
@@ -3950,7 +3950,7 @@ void CppCodeCompletion::computeCompletionEntryList( SimpleType type, QValueList<
}
}
-void CppCodeCompletion::computeCompletionEntryList( SimpleType type, QValueList< CodeCompletionEntry > & entryList, NamespaceDom scope, bool isInstance, int depth ) {
+void CppCodeCompletion::computeCompletionEntryList( SimpleType type, TQValueList< CodeCompletionEntry > & entryList, NamespaceDom scope, bool isInstance, int depth ) {
Debug d( "#cel#" );
if ( !safetyCounter || !d )
return ;
@@ -3962,7 +3962,7 @@ void CppCodeCompletion::computeCompletionEntryList( SimpleType type, QValueList<
computeCompletionEntryList( type, entryList, scope->namespaceList(), isInstance, depth );
}
-void CppCodeCompletion::computeCompletionEntryList( QString parent, SimpleType type, QValueList< CodeCompletionEntry > & entryList, const ClassList & lst, bool isInstance, int depth ) {
+void CppCodeCompletion::computeCompletionEntryList( TQString parent, 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( QString parent, SimpleType t
if ( isInstance )
continue;
- entry.userdata = QString( "%1%2%3%4%5" ).arg( CodeModelItem::Public ).arg( depth ).arg( parent ).arg( 6 );
+ entry.userdata = TQString( "%1%2%3%4%5" ).arg( CodeModelItem::Public ).arg( depth ).arg( parent ).arg( 6 );
entryList << entry;
@@ -3993,7 +3993,7 @@ void CppCodeCompletion::computeCompletionEntryList( QString parent, SimpleType t
}
}
-void CppCodeCompletion::computeCompletionEntryList( QString parent, SimpleType type, QValueList< CodeCompletionEntry > & entryList, const TypeAliasList & lst, bool isInstance, int depth ) {
+void CppCodeCompletion::computeCompletionEntryList( TQString parent, SimpleType type, TQValueList< CodeCompletionEntry > & entryList, const TypeAliasList & lst, bool isInstance, int depth ) {
Debug d( "#cel#" );
if ( !safetyCounter || !d )
return ;
@@ -4015,11 +4015,11 @@ void CppCodeCompletion::computeCompletionEntryList( QString parent, SimpleType t
entry.prefix = stringMult( depth, " " ) + entry.prefix.stripWhiteSpace();
entry.text = klass->name();
entry.comment = commentFromItem( type, klass.data() );
- entry.userdata = QString( "%1%2%3%4%5" ).arg( CodeModelItem::Public ).arg( depth ).arg( parent ).arg( 5 );
+ entry.userdata = TQString( "%1%2%3%4%5" ).arg( CodeModelItem::Public ).arg( depth ).arg( parent ).arg( 5 );
entryList << entry;
}
}
-void CppCodeCompletion::computeCompletionEntryList( SimpleType type, QValueList< CodeCompletionEntry > & entryList, const NamespaceList & lst, bool /*isInstance*/, int depth ) {
+void CppCodeCompletion::computeCompletionEntryList( SimpleType type, TQValueList< CodeCompletionEntry > & entryList, const NamespaceList & lst, bool /*isInstance*/, int depth ) {
Debug d( "#cel#" );
if ( !safetyCounter || !d )
return ;
@@ -4038,11 +4038,11 @@ void CppCodeCompletion::computeCompletionEntryList( SimpleType type, QValueList<
}
}
-void CppCodeCompletion::computeCompletionEntryList( SimpleType type, QValueList< CodeCompletionEntry > & entryList, const FunctionList & methods, bool isInstance, int depth ) {
+void CppCodeCompletion::computeCompletionEntryList( SimpleType type, TQValueList< CodeCompletionEntry > & entryList, const FunctionList & methods, bool isInstance, int depth ) {
Debug d( "#cel#" );
if ( !safetyCounter || !d )
return ;
- QString className = type->desc().name();
+ TQString className = type->desc().name();
bool isNs = type->isNamespace();
bool resolve = type->usingTemplates() && m_pSupport->codeCompletionConfig() ->processPrimaryTypes();
@@ -4073,7 +4073,7 @@ void CppCodeCompletion::computeCompletionEntryList( SimpleType type, QValueList<
if ( ! resolve ) {
entry.prefix = meth->resultType();
} else {
- QString tt = meth->resultType();
+ TQString tt = meth->resultType();
LocateResult t = type->locateDecType( tt );
if ( t ) {
entry.prefix = t->fullNameChain();
@@ -4087,7 +4087,7 @@ void CppCodeCompletion::computeCompletionEntryList( SimpleType type, QValueList<
entry.prefix = destructorPrefix;
entry.prefix = stringMult( depth, " " ) + entry.prefix.stripWhiteSpace();
- QString text;
+ TQString text;
ArgumentList args = meth->argumentList();
ArgumentList::Iterator argIt = args.begin();
@@ -4112,7 +4112,7 @@ void CppCodeCompletion::computeCompletionEntryList( SimpleType type, QValueList<
text += proc.processType( arg->type() );
if ( m_completionMode == NormalCompletion ||
m_completionMode == VirtualDeclCompletion )
- text += QString( " " ) + arg->name();
+ text += TQString( " " ) + arg->name();
if ( argIt != args.end() )
text += ", ";
@@ -4136,7 +4136,7 @@ void CppCodeCompletion::computeCompletionEntryList( SimpleType type, QValueList<
if ( meth->isStatic() )
subSorting = 5;
- entry.userdata += QString( "%1%2%3%4%5" ).arg( meth->access() ).arg( depth ).arg( className ).arg( 1 ).arg( subSorting );
+ entry.userdata += TQString( "%1%2%3%4%5" ).arg( meth->access() ).arg( depth ).arg( className ).arg( 1 ).arg( subSorting );
if ( m_completionMode == VirtualDeclCompletion )
entry.text += text + ";";
@@ -4162,9 +4162,9 @@ void CppCodeCompletion::computeCompletionEntryList( SimpleType type, QValueList<
}
}
-void CppCodeCompletion::computeCompletionEntryList( SimpleType type, QValueList< CodeCompletionEntry > & entryList, const VariableList & attributes, bool isInstance, int depth ) {
+void CppCodeCompletion::computeCompletionEntryList( SimpleType type, TQValueList< CodeCompletionEntry > & entryList, const VariableList & attributes, bool isInstance, int depth ) {
Debug d( "#cel#" );
- QString className = type->desc().name();
+ TQString className = type->desc().name();
bool isNs = type->isNamespace();
if ( !safetyCounter || !d )
@@ -4187,14 +4187,14 @@ void CppCodeCompletion::computeCompletionEntryList( SimpleType type, QValueList<
CodeCompletionEntry entry;
entry.text = attr->name();
entry.comment = commentFromItem( type, model_cast<ItemDom>( attr ) );
- entry.userdata += QString( "%1%2%3%4" ).arg( attr->access() ).arg( depth ).arg( className ).arg( 2 );
+ entry.userdata += TQString( "%1%2%3%4" ).arg( attr->access() ).arg( depth ).arg( className ).arg( 2 );
if ( !attr->isEnumeratorVariable() ) {
if ( ! resolve ) {
entry.prefix = attr->type();
} else {
- QString tt = attr->type();
+ TQString tt = attr->type();
LocateResult t = type->locateDecType( tt );
//SimpleType t = type->typeOf( attr->name() );
if ( t )
@@ -4217,14 +4217,14 @@ void CppCodeCompletion::computeCompletionEntryList( SimpleType type, QValueList<
}
}
-void CppCodeCompletion::computeCompletionEntryList( QValueList< CodeCompletionEntry > & entryList, SimpleContext * ctx, bool /*isInstance*/, int depth ) {
+void CppCodeCompletion::computeCompletionEntryList( TQValueList< CodeCompletionEntry > & entryList, SimpleContext * ctx, bool /*isInstance*/, int depth ) {
Debug d( "#cel#" );
if ( !safetyCounter || !d )
return ;
while ( ctx ) {
- QValueList<SimpleVariable> vars = ctx->vars();
- QValueList<SimpleVariable>::ConstIterator it = vars.begin();
+ TQValueList<SimpleVariable> vars = ctx->vars();
+ TQValueList<SimpleVariable>::ConstIterator it = vars.begin();
while ( it != vars.end() ) {
const SimpleVariable & var = *it;
++it;
@@ -4252,7 +4252,7 @@ EvaluationResult CppCodeCompletion::evaluateExpression( ExpressionInfo expr, Sim
EvaluationResult res;
res = obj.evaluate();
- QString resolutionType = "(resolved)";
+ TQString resolutionType = "(resolved)";
if( !res->resolved() ) {
if( BuiltinTypes::isBuiltin( res.resultType ) ) {
resolutionType = "(builtin " + BuiltinTypes::comment( res.resultType ) + ")";
@@ -4269,13 +4269,13 @@ EvaluationResult CppCodeCompletion::evaluateExpression( ExpressionInfo expr, Sim
void CppCodeCompletion::computeFileEntryList( ) {
m_fileEntryList.clear();
- QStringList fileList = m_pSupport->project() ->allFiles();
- for ( QStringList::Iterator it = fileList.begin(); it != fileList.end(); ++it ) {
+ TQStringList fileList = m_pSupport->project() ->allFiles();
+ for ( TQStringList::Iterator it = fileList.begin(); it != fileList.end(); ++it ) {
if ( !m_pSupport->isHeader( *it ) )
continue;
CodeCompletionEntry entry;
- entry.text = QFileInfo( *it ).fileName();
+ entry.text = TQFileInfo( *it ).fileName();
m_fileEntryList.push_back( entry );
}
@@ -4283,8 +4283,8 @@ void CppCodeCompletion::computeFileEntryList( ) {
m_fileEntryList = unique( m_fileEntryList );
}
-HashedStringSet CppCodeCompletion::getIncludeFiles( const QString& fi ) {
- QString file = fi;
+HashedStringSet CppCodeCompletion::getIncludeFiles( const TQString& fi ) {
+ TQString file = fi;
if( file.isEmpty() )
file = m_activeFileName;
@@ -4328,7 +4328,7 @@ void CppCodeCompletion::jumpCursorContext( FunctionType f )
// Determine the declaration info based on the type of item we are dealing with.
DeclarationInfo d;
- QString includeFileName, includeFilePath;
+ TQString includeFileName, includeFilePath;
bool unused;
if ( result.isMacro ) {
@@ -4354,12 +4354,12 @@ void CppCodeCompletion::jumpCursorContext( FunctionType f )
SimpleTypeCachedCodeModel * item = dynamic_cast<SimpleTypeCachedCodeModel*>( ( *slaves.begin() ).first.first.resolved().data() );
if ( item && item->item() && item->item()->isNamespace() ) {
NamespaceModel* ns = dynamic_cast<NamespaceModel*>( item->item().data() );
- QStringList wholeScope = ns->scope();
+ TQStringList wholeScope = ns->scope();
wholeScope << ns->name();
FileList files = cppSupport()->codeModel()->fileList();
for ( FileList::iterator it = files.begin(); it != files.end(); ++it ) {
NamespaceModel* ns = (*it).data();
- for ( QStringList::iterator it2 = wholeScope.begin(); it2 != wholeScope.end(); ++it2 ) {
+ for ( TQStringList::iterator it2 = wholeScope.begin(); it2 != wholeScope.end(); ++it2 ) {
if ( ns->hasNamespace( (*it2) ) ) {
ns = ns->namespaceByName( *it2 );
if ( !ns ) break;
@@ -4386,7 +4386,7 @@ void CppCodeCompletion::jumpCursorContext( FunctionType f )
}
// Unresolved, maybe its a named enumeration?
else if ( type && type.trace() ) {
- QValueList< QPair<SimpleTypeImpl::MemberInfo, TypeDesc> > trace = type.trace()->trace();
+ TQValueList< QPair<SimpleTypeImpl::MemberInfo, TypeDesc> > trace = type.trace()->trace();
if ( !trace.isEmpty() ) {
if ( trace.begin() != trace.end() ) {
d = ( *trace.begin() ).first.decl;
@@ -4395,16 +4395,16 @@ void CppCodeCompletion::jumpCursorContext( FunctionType f )
}
}
if ( d ) {
- QString fileName = d.file == "current_file" ? m_activeFileName : d.file.operator QString();
+ TQString fileName = d.file == "current_file" ? m_activeFileName : d.file.operator TQString();
if ( f == Definition && cppSupport()->switchHeaderImpl( fileName, d.startLine, d.startCol ) )
return;
cppSupport()->partController()->editDocument( fileName, d.startLine );
}
}
-QString CppCodeCompletion::createTypeInfoString( int line, int column )
+TQString CppCodeCompletion::createTypeInfoString( int line, int column )
{
- QString typeInfoString;
+ TQString typeInfoString;
SimpleTypeConfiguration conf( m_activeFileName );
EvaluationResult type = evaluateExpressionAt( line, column, conf );
@@ -4412,11 +4412,11 @@ QString CppCodeCompletion::createTypeInfoString( int line, int column )
if ( type.expr.expr().stripWhiteSpace().isEmpty() )
return typeInfoString;
- typeInfoString += type.expr.expr() + QString(" : " );
+ typeInfoString += type.expr.expr() + TQString(" : " );
if ( type->resolved() )
{
- QString scope = type->resolved()->scope().join("::");
+ TQString scope = type->resolved()->scope().join("::");
int pos = scope.findRev("::");
if ( scope.isEmpty() || pos == -1 )
{
@@ -4427,7 +4427,7 @@ QString CppCodeCompletion::createTypeInfoString( int line, int column )
scope.truncate( pos + 2 );
}
- typeInfoString += scope + type->fullNameChain() + QString( i18n(" (resolved) ") );
+ typeInfoString += scope + type->fullNameChain() + TQString( i18n(" (resolved) ") );
}
else
{
@@ -4435,16 +4435,16 @@ QString CppCodeCompletion::createTypeInfoString( int line, int column )
{
if( !BuiltinTypes::isBuiltin( type.resultType ) )
{
- typeInfoString += type->fullNameChain() + QString( i18n(" (unresolved) ") );
+ typeInfoString += type->fullNameChain() + TQString( i18n(" (unresolved) ") );
}
else
{
- typeInfoString += type->fullNameChain() + ", " + BuiltinTypes::comment( type.resultType ) + QString( i18n(" (builtin type) ") );
+ typeInfoString += type->fullNameChain() + ", " + BuiltinTypes::comment( type.resultType ) + TQString( i18n(" (builtin type) ") );
}
}
else
{
- typeInfoString += QString( i18n(" (unresolved) ") );
+ typeInfoString += TQString( i18n(" (unresolved) ") );
}
}
@@ -4458,16 +4458,16 @@ QString CppCodeCompletion::createTypeInfoString( int line, int column )
return typeInfoString;
}
-bool CppCodeCompletion::getIncludeInfo( int line, QString& includeFileName, QString& includeFilePath, bool& usedProjectFiles )
+bool CppCodeCompletion::getIncludeInfo( int line, TQString& includeFileName, TQString& includeFilePath, bool& usedProjectFiles )
{
bool isIncludeDirective = false;
- QString lineText = getText( line, 0, line+1, 0 );
- QRegExp includeRx( "(?:#include[\\s]*(?:\\\"|\\<))([^\\n]*)(\\\"|\\>)" );
+ TQString lineText = getText( line, 0, line+1, 0 );
+ TQRegExp includeRx( "(?:#include[\\s]*(?:\\\"|\\<))([^\\n]*)(\\\"|\\>)" );
if( includeRx.search( lineText ) != -1 ) {
//It is an include-directive. The regular expression captures the string, and the closing sign('"' or '>').
isIncludeDirective = true;
usedProjectFiles = false;
- QStringList captured = includeRx.capturedTexts();
+ TQStringList captured = includeRx.capturedTexts();
if( captured.size() == 3 ) {
Dependence d;
d.first = captured[1];
diff --git a/languages/cpp/cppcodecompletion.h b/languages/cpp/cppcodecompletion.h
index 0eb49908..67f7b10b 100644
--- a/languages/cpp/cppcodecompletion.h
+++ b/languages/cpp/cppcodecompletion.h
@@ -34,28 +34,28 @@
#include <ktexteditor/cursorinterface.h>
#include <ktexteditor/view.h>
-#include <qobject.h>
-#include <qmutex.h>
-#include <qstringlist.h>
-#include <qtimer.h>
-#include <qguardedptr.h>
-#include <qregexp.h>
+#include <tqobject.h>
+#include <tqmutex.h>
+#include <tqstringlist.h>
+#include <tqtimer.h>
+#include <tqguardedptr.h>
+#include <tqregexp.h>
#include "driver.h"
///A little debugging class
-#include <qpopupmenu.h>
-class PopupTracker : public QObject {
+#include <tqpopupmenu.h>
+class PopupTracker : public TQObject {
Q_OBJECT
public:
static PopupTracker* pt;
static uint pendingPopups;
- static QPopupMenu* createPopup( QWidget* parent ) {
+ static TQPopupMenu* createPopup( TQWidget* parent ) {
if( !pt ) pt = new PopupTracker();
- QPopupMenu* m = new QPopupMenu( parent );
+ TQPopupMenu* m = new TQPopupMenu( parent );
++pendingPopups;
- connect( m, SIGNAL(destroyed()), pt, SLOT(destroyedPopup()) );
+ connect( m, TQT_SIGNAL(destroyed()), pt, TQT_SLOT(destroyedPopup()) );
return m;
}
@@ -123,31 +123,31 @@ public:
return m_completionMode;
}
- QString createTypeInfoString( int line, int column );
+ TQString createTypeInfoString( int line, int column );
- QString replaceCppComments( const QString& contents );
- int expressionAt( const QString& text, int index );
- QStringList splitExpression( const QString& text );
+ TQString replaceCppComments( const TQString& contents );
+ int expressionAt( const TQString& text, int index );
+ TQStringList splitExpression( const TQString& text );
CppEvaluation::EvaluationResult evaluateExpression( ExpressionInfo expr, SimpleContext* ctx );
CppEvaluation::EvaluationResult evaluateExpressionAt( int line, int column, SimpleTypeConfiguration& conf, bool ifUnknownSetType = false );
- void contextEvaluationMenus ( QPopupMenu *popup, const Context *context, int line, int col );
+ void contextEvaluationMenus ( TQPopupMenu *popup, const Context *context, int line, int col );
CppSupportPart* cppSupport() const;
- HashedStringSet getIncludeFiles( const QString& file = QString() );
+ HashedStringSet getIncludeFiles( const TQString& file = TQString() );
static CppCodeCompletion* instance() {
return m_instance;
}
///Adds a string that will be ticked through the status-bar
- void addStatusText( QString text, int timeout );
+ void addStatusText( TQString text, int timeout );
void clearStatusText();
- QString activeFileName() const {
+ TQString activeFileName() const {
return m_activeFileName;
}
@@ -166,17 +166,17 @@ private slots:
void slotArgHintHidden();
void slotCompletionBoxHidden();
void slotTextChanged();
- void slotFileParsed( const QString& fileName );
- void slotCodeModelUpdated( const QString& fileName );
+ void slotFileParsed( const TQString& fileName );
+ void slotCodeModelUpdated( const TQString& fileName );
void slotTimeout();
void slotStatusTextTimeout();
void computeFileEntryList();
- bool isTypeExpression( const QString& expr );
- void slotTextHint( int line, int col, QString &text );
+ bool isTypeExpression( const TQString& expr );
+ void slotTextHint( int line, int col, TQString &text );
void popupAction( int number );
void popupDefinitionAction( int number );
void popupClassViewAction( int number );
- void synchronousParseReady( const QString& file, ParsedFilePointer unit );
+ void synchronousParseReady( const TQString& file, ParsedFilePointer unit );
void slotJumpToDefCursorContext();
void slotJumpToDeclCursorContext();
@@ -187,16 +187,16 @@ private:
bool functionContains( FunctionDom f , int line, int col );
void getFunctionBody( FunctionDom f , int& line, int& col );
void selectItem( ItemDom item );
- void addTypePopups( QPopupMenu* parent, TypeDesc d, QString depthAdd, QString prefix = "" );
- void addTypeClassPopups( QPopupMenu* parent, TypeDesc d, QString depthAdd, QString prefix = "" );
- QValueList<QStringList> computeSignatureList( CppEvaluation::EvaluationResult function );
+ void addTypePopups( TQPopupMenu* parent, TypeDesc d, TQString depthAdd, TQString prefix = "" );
+ void addTypeClassPopups( TQPopupMenu* parent, TypeDesc d, TQString depthAdd, TQString prefix = "" );
+ TQValueList<TQStringList> computeSignatureList( CppEvaluation::EvaluationResult function );
void integratePart( KParts::Part* part );
void setupCodeInformationRepository();
FunctionDefinitionAST* functionDefinition( AST* node );
void computeRecoveryPoints( ParsedFilePointer unit );
void computeRecoveryPointsLocked();
void jumpCursorContext( FunctionType );
- bool getIncludeInfo( int line, QString& includeFileName, QString& includeFilePath, bool& usedProjectFiles );
+ bool getIncludeInfo( int line, TQString& includeFileName, TQString& includeFilePath, bool& usedProjectFiles );
enum EvaluateExpressionOptions {
IncludeStandardExpressions = 1,
@@ -209,33 +209,33 @@ private:
DefaultCompletionOptions = 1 | 4 | 8 | 16
};
- bool mayBeTypeTail( int line, int column, QString& append, bool inFunction = false );
- bool canBeTypePrefix( const QString& prefix, bool inFunction = false );
+ bool mayBeTypeTail( int line, int column, TQString& append, bool inFunction = false );
+ bool canBeTypePrefix( const TQString& prefix, bool inFunction = false );
ExpressionInfo findExpressionAt( int line, int col, int startLine, int startCol, bool inFunction = false );
SimpleContext* computeFunctionContext( FunctionDom f, int line, int col, SimpleTypeConfiguration& conf );
CppEvaluation::EvaluationResult evaluateExpressionType( int line, int column, SimpleTypeConfiguration& conf, EvaluateExpressionOptions opt = DefaultCompletionOptions );
- SimpleType unTypeDef( SimpleType scope , QMap<QString, QString>& typedefs );
+ SimpleType unTypeDef( SimpleType scope , TQMap<TQString, TQString>& typedefs );
- // QString buildSignature( TypePointer currType );
- SimpleType typeOf( QValueList<Tag>& tags, MemberAccessOp accessOp );
+ // TQString buildSignature( TypePointer currType );
+ SimpleType typeOf( TQValueList<Tag>& tags, MemberAccessOp accessOp );
/// @todo remove isInstance
- void computeCompletionEntryList( QValueList<CodeCompletionEntry>& entryList, SimpleContext* ctx, bool isInstance, int depth = 0 );
- void computeCompletionEntryList( SimpleType type, QValueList<CodeCompletionEntry>&
- entryList, const QStringList& typeList, SimpleTypeNamespace* ns, std::set<HashedString>& ignore, bool isInstance, int depth = 0 );
- void computeCompletionEntryList( SimpleType type, QValueList<CodeCompletionEntry>&
- entryList, const QStringList& typeList, bool isInstance, int depth = 0 );
- void computeCompletionEntryList( SimpleType type, QValueList<CodeCompletionEntry>& entryList, QValueList<Tag>& tags, bool isInstance, int depth );
- void computeCompletionEntryList( SimpleType type, QValueList<CodeCompletionEntry>& entryList, ClassDom klass, bool isInstance, int depth );
- void computeCompletionEntryList( SimpleType type, QValueList<CodeCompletionEntry>& entryList, NamespaceDom scope, bool isInstance, int depth );
- void computeCompletionEntryList( SimpleType type, QValueList<CodeCompletionEntry>& entryList, const FunctionList& methods, bool isInstance, int depth );
- void computeCompletionEntryList( SimpleType type, QValueList<CodeCompletionEntry>& entryList, const VariableList& attributes, bool isInstance, int depth );
- void computeCompletionEntryList( QString parent, SimpleType type, QValueList<CodeCompletionEntry>& entryList, const ClassList& lst, bool isInstance, int depth );
- void computeCompletionEntryList( QString parent, SimpleType type, QValueList<CodeCompletionEntry>& entryList, const TypeAliasList& lst, bool isInstance, int depth );
- void computeCompletionEntryList( SimpleType type, QValueList<CodeCompletionEntry>& entryList, const NamespaceList& lst, bool isInstance, int depth );
+ void computeCompletionEntryList( TQValueList<CodeCompletionEntry>& entryList, SimpleContext* ctx, bool isInstance, int depth = 0 );
+ void computeCompletionEntryList( SimpleType type, TQValueList<CodeCompletionEntry>&
+ entryList, const TQStringList& typeList, SimpleTypeNamespace* ns, std::set<HashedString>& ignore, bool isInstance, int depth = 0 );
+ void computeCompletionEntryList( SimpleType type, TQValueList<CodeCompletionEntry>&
+ entryList, const TQStringList& typeList, bool isInstance, int depth = 0 );
+ void computeCompletionEntryList( SimpleType type, TQValueList<CodeCompletionEntry>& entryList, TQValueList<Tag>& tags, bool isInstance, int depth );
+ void computeCompletionEntryList( SimpleType type, TQValueList<CodeCompletionEntry>& entryList, ClassDom klass, bool isInstance, int depth );
+ 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( SimpleType type, TQValueList<CodeCompletionEntry>& entryList, const NamespaceList& lst, bool isInstance, int depth );
SimpleContext* computeContext( FunctionDefinitionAST* ast, int line, int col, int lineOffset, int colOffset );
void computeContext( SimpleContext*& ctx, StatementAST* ast, int line, int col );
@@ -252,7 +252,7 @@ private:
void computeContext( SimpleContext*& ctx, ConditionAST* ast, int line, int col );
bool inContextScope( AST* ast, int line, int col, bool checkStart = true, bool checkEnd = true );
- QString getText( int startLine, int startColumn, int endLine, int endColumn, int omitLine = -1 );
+ TQString getText( int startLine, int startColumn, int endLine, int endColumn, int omitLine = -1 );
private:
@@ -263,15 +263,15 @@ private:
friend class ExpressionEvaluation;
friend class PopupFillerHelpStruct;
friend class PopupClassViewFillerHelpStruct;
- QGuardedPtr<CppSupportPart> m_pSupport;
- QTimer* m_ccTimer;
- QTimer* m_showStatusTextTimer;
- QValueList<QPair<int, QString> > m_statusTextList;
+ TQGuardedPtr<CppSupportPart> m_pSupport;
+ TQTimer* m_ccTimer;
+ TQTimer* m_showStatusTextTimer;
+ TQValueList<QPair<int, TQString> > m_statusTextList;
void fitContextItem( int nLine, int nColumn );
void needRecoveryPoints();
- QString m_activeFileName;
+ TQString m_activeFileName;
KTextEditor::ViewCursorInterface* m_activeCursor;
KTextEditor::EditInterface* m_activeEditor;
KTextEditor::TextHintInterface* m_activeHintInterface;
@@ -291,33 +291,33 @@ private:
CppCodeCompletionData* d;
CompletionMode m_completionMode;
- QTime m_lastHintTime;
+ TQTime m_lastHintTime;
//If more then the given count of comments were requested, all following ones will be blank.(Performance-reasons)
void setMaxComments( int count );
- QString commentFromItem( const SimpleType& parent, const ItemDom& item );
- QString commentFromTag( const SimpleType& parent, Tag& tag );
+ TQString commentFromItem( const SimpleType& parent, const ItemDom& item );
+ TQString commentFromTag( const SimpleType& parent, 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.
- QRegExp m_includeRx;
- QRegExp m_cppCodeCommentsRx;
- QRegExp m_codeCompleteChRx;
- QRegExp m_codeCompleteCh2Rx;
- QValueList<KTextEditor::CompletionEntry> m_fileEntryList;
+ TQRegExp m_includeRx;
+ TQRegExp m_cppCodeCommentsRx;
+ TQRegExp m_codeCompleteChRx;
+ TQRegExp m_codeCompleteCh2Rx;
+ TQValueList<KTextEditor::CompletionEntry> m_fileEntryList;
int m_maxComments;
- typedef QMap<int, DeclarationInfo> PopupActions;
- typedef QMap<int, ItemDom> PopupClassViewActions;
+ typedef TQMap<int, DeclarationInfo> PopupActions;
+ typedef TQMap<int, ItemDom> PopupClassViewActions;
PopupActions m_popupActions;
PopupActions m_popupDefinitionActions;
PopupClassViewActions m_popupClassViewActions;
// we need something to plug actions that are not in any menu
// into in order for their shortcuts to work
- QWidget m_DummyActionWidget;
+ TQWidget m_DummyActionWidget;
};
#endif
diff --git a/languages/cpp/cppcodecompletionconfig.cpp b/languages/cpp/cppcodecompletionconfig.cpp
index 2c394858..9ecca5f4 100644
--- a/languages/cpp/cppcodecompletionconfig.cpp
+++ b/languages/cpp/cppcodecompletionconfig.cpp
@@ -16,12 +16,12 @@
#include <domutil.h>
#include <kdebug.h>
-#include <qdom.h>
+#include <tqdom.h>
-QString CppCodeCompletionConfig::defaultPath = QString::fromLatin1( "/kdevcppsupport/codecompletion" );
+TQString CppCodeCompletionConfig::defaultPath = TQString::fromLatin1( "/kdevcppsupport/codecompletion" );
-CppCodeCompletionConfig::CppCodeCompletionConfig( CppSupportPart * part, QDomDocument* dom )
- : QObject( part ), m_part( part ), m_dom( dom )
+CppCodeCompletionConfig::CppCodeCompletionConfig( CppSupportPart * part, TQDomDocument* dom )
+ : TQObject( part ), m_part( part ), m_dom( dom )
{
init();
}
diff --git a/languages/cpp/cppcodecompletionconfig.h b/languages/cpp/cppcodecompletionconfig.h
index 13b23ccf..4fbf2d1b 100644
--- a/languages/cpp/cppcodecompletionconfig.h
+++ b/languages/cpp/cppcodecompletionconfig.h
@@ -13,7 +13,7 @@
#ifndef CPPCODECOMPLETIONCONFIG_H
#define CPPCODECOMPLETIONCONFIG_H
-#include <qobject.h>
+#include <tqobject.h>
class CppSupportPart;
class QDomDocument;
@@ -26,7 +26,7 @@ class CppCodeCompletionConfig : public QObject
{
Q_OBJECT
public:
- CppCodeCompletionConfig( CppSupportPart* part, QDomDocument* dom );
+ CppCodeCompletionConfig( CppSupportPart* part, TQDomDocument* dom );
virtual ~CppCodeCompletionConfig();
// bool includeGlobalFunctions() const
@@ -93,7 +93,7 @@ public:
}
///Additional include-paths defined by the user
- void setCustomIncludePaths(QString str) {
+ void setCustomIncludePaths(TQString str) {
m_includePaths = str;
}
@@ -116,7 +116,7 @@ public:
}
///Additional include-paths defined by the user
- QString customIncludePaths() const {
+ TQString customIncludePaths() const {
return m_includePaths;
}
@@ -160,7 +160,7 @@ public:
return m_statusBarTypeEvaluation;
}
- QString namespaceAliases() const {
+ TQString namespaceAliases() const {
///used
return m_namespaceAliases;
}
@@ -201,7 +201,7 @@ public:
m_statusBarTypeEvaluation = b;
}
- void setNamespaceAliases( QString n ) {
+ void setNamespaceAliases( TQString n ) {
///used
m_namespaceAliases = n;
}
@@ -274,7 +274,7 @@ private:
private:
CppSupportPart* m_part;
- QDomDocument* m_dom;
+ TQDomDocument* m_dom;
/* bool m_includeGlobalFunctions;
bool m_includeTypes;
bool m_includeEnums;
@@ -292,18 +292,18 @@ private:
bool m_alwaysIncludeNamespaces;
bool m_alwaysParseInBackground;
bool m_usePermanentCaching;
- QString m_includePaths;
+ TQString m_includePaths;
bool m_showOnlyAccessibleItems;
CompletionBoxItemOrder m_completionBoxItemOrder;
bool m_showEvaluationContextMenu;
bool m_showCommentWithArgumentHint;
bool m_statusBarTypeEvaluation;
- QString m_namespaceAliases;
+ TQString m_namespaceAliases;
bool m_processPrimaryTypes;
bool m_processFunctionArguments;
- static QString defaultPath;
+ static TQString defaultPath;
};
#endif
diff --git a/languages/cpp/cppevaluation.cpp b/languages/cpp/cppevaluation.cpp
index ff1f4ab9..b84185f5 100644
--- a/languages/cpp/cppevaluation.cpp
+++ b/languages/cpp/cppevaluation.cpp
@@ -27,7 +27,7 @@ extern SafetyCounter safetyCounter;
namespace CppEvaluation {
-void statusLog( const QString& str ) {
+void statusLog( const TQString& str ) {
ifVerboseMajor( dbgMajor() << str << endl );
statusBarText( str, 2000 );
}
@@ -43,41 +43,41 @@ RegisterOperator< IndexOperator > IndexReg( AllOperators );
RegisterOperator< ParenOperator > ParenReg( AllOperators );
template<class To, class From>
-QValueList<To> convertList( const QValueList<From>& from ) {
- QValueList<To> ret;
- for( typename QValueList<From>::const_iterator it = from.begin(); it != from.end(); ++it ) {
+TQValueList<To> convertList( const TQValueList<From>& from ) {
+ TQValueList<To> ret;
+ for( typename TQValueList<From>::const_iterator it = from.begin(); it != from.end(); ++it ) {
ret << (To)*it;
}
return ret;
}
-QString nameFromType( SimpleType t ) {
+TQString nameFromType( SimpleType t ) {
return t->fullTypeResolved();
}
-QString Operator::printTypeList( QValueList<EvaluationResult>& lst )
+TQString Operator::printTypeList( TQValueList<EvaluationResult>& lst )
{
- QString ret;
- for( QValueList<EvaluationResult>::iterator it = lst.begin(); it != lst.end(); ++it ) {
+ TQString ret;
+ for( TQValueList<EvaluationResult>::iterator it = lst.begin(); it != lst.end(); ++it ) {
ret += "\"" + (*it)->fullNameChain() + "\", ";
}
ret.truncate( ret.length() - 3 );
return ret;
}
-void Operator::log( const QString& msg ) {
+void Operator::log( const TQString& msg ) {
statusLog( "\"" + name() + "\": " + msg );
//ifVerboseMajor( dbgMajor() << "\"" << name() << "\": " << msg << endl );
}
OperatorSet::~OperatorSet() {
- for( QValueList< Operator* >::iterator it = m_operators.begin(); it != m_operators.end(); ++it ) {
+ for( TQValueList< Operator* >::iterator it = m_operators.begin(); it != m_operators.end(); ++it ) {
delete *it;
}
}
-OperatorIdentification OperatorSet::identifyOperator( const QString& str_ , Operator::BindingSide allowedBindings) {
- QString str = str_.stripWhiteSpace();
+OperatorIdentification OperatorSet::identifyOperator( const TQString& str_ , Operator::BindingSide allowedBindings) {
+ TQString str = str_.stripWhiteSpace();
for( OperatorList::iterator it = m_operators.begin(); it != m_operators.end(); ++it ) {
if( ((*it)->binding() & allowedBindings) == (*it)->binding() ) {
if( OperatorIdentification ident = (*it)->identify( str ) ) {
@@ -89,7 +89,7 @@ OperatorIdentification OperatorSet::identifyOperator( const QString& str_ , Oper
return OperatorIdentification();
}
-OperatorIdentification UnaryOperator::identify( QString& str ) {
+OperatorIdentification UnaryOperator::identify( TQString& str ) {
OperatorIdentification ret;
if( str.startsWith( m_identString ) ) {
ret.start = 0;
@@ -100,9 +100,9 @@ OperatorIdentification UnaryOperator::identify( QString& str ) {
return ret;
}
-EvaluationResult UnaryOperator::apply( QValueList<EvaluationResult> params, QValueList<EvaluationResult> innerParams ) {
+EvaluationResult UnaryOperator::apply( TQValueList<EvaluationResult> params, TQValueList<EvaluationResult> innerParams ) {
if( !checkParams( params ) ) {
- log( QString("parameter-check failed: %1 params: ").arg( params.size() ) + printTypeList( params ) );
+ log( TQString("parameter-check failed: %1 params: ").arg( params.size() ) + printTypeList( params ) );
return EvaluationResult();
} else {
EvaluationResult t = unaryApply( params.front(), innerParams );
@@ -116,11 +116,11 @@ EvaluationResult UnaryOperator::apply( QValueList<EvaluationResult> params, QVal
}
}
-EvaluationResult NestedTypeOperator::unaryApply( EvaluationResult param, const QValueList<EvaluationResult>& /*innerParams*/ ) {
+EvaluationResult NestedTypeOperator::unaryApply( EvaluationResult param, const TQValueList<EvaluationResult>& /*innerParams*/ ) {
return param;
}
-EvaluationResult DotOperator::unaryApply( EvaluationResult param, const QValueList<EvaluationResult>& /*innerParams*/ ) {
+EvaluationResult DotOperator::unaryApply( EvaluationResult param, const TQValueList<EvaluationResult>& /*innerParams*/ ) {
if( param->totalPointerDepth() == 0 ) {
return param;
} else {
@@ -130,7 +130,7 @@ EvaluationResult DotOperator::unaryApply( EvaluationResult param, const QValueLi
}
-EvaluationResult ArrowOperator::unaryApply( EvaluationResult param, const QValueList<EvaluationResult>& innerParams ) {
+EvaluationResult ArrowOperator::unaryApply( EvaluationResult param, const TQValueList<EvaluationResult>& innerParams ) {
if( param->totalPointerDepth() == 1 ) {
param->setTotalPointerDepth( param->totalPointerDepth() - 1 );
return param;
@@ -149,7 +149,7 @@ EvaluationResult ArrowOperator::unaryApply( EvaluationResult param, const QValue
};
}
-EvaluationResult StarOperator::unaryApply( EvaluationResult param, const QValueList<EvaluationResult>& /*innerParams*/ ) {
+EvaluationResult StarOperator::unaryApply( EvaluationResult param, const TQValueList<EvaluationResult>& /*innerParams*/ ) {
if( param->totalPointerDepth() > 0 ) {
param->setTotalPointerDepth( param->totalPointerDepth() - 1 );
return param;
@@ -163,14 +163,14 @@ EvaluationResult StarOperator::unaryApply( EvaluationResult param, const QValueL
};
}
-EvaluationResult AddressOperator::unaryApply( EvaluationResult param, const QValueList<EvaluationResult>& /*innerParams*/ ) {
+EvaluationResult AddressOperator::unaryApply( EvaluationResult param, const TQValueList<EvaluationResult>& /*innerParams*/ ) {
param->setTotalPointerDepth( param->totalPointerDepth() + 1 );
return param;
}
-OperatorIdentification UnaryParenOperator::identify( QString& str ) {
+OperatorIdentification UnaryParenOperator::identify( TQString& str ) {
OperatorIdentification ret;
- if( str.startsWith( QString( identString()[0] ) ) ) {
+ if( str.startsWith( TQString( identString()[0] ) ) ) {
ret.start = 0;
ret.end = findClose( str, 0 );
if( ret.end == -1 ) {
@@ -200,7 +200,7 @@ OperatorIdentification UnaryParenOperator::identify( QString& str ) {
}
-EvaluationResult IndexOperator::unaryApply( EvaluationResult param, const QValueList<EvaluationResult>& innerParams ) {
+EvaluationResult IndexOperator::unaryApply( EvaluationResult param, const TQValueList<EvaluationResult>& innerParams ) {
if( param->totalPointerDepth() > 0 ) {
param->setTotalPointerDepth( param->totalPointerDepth() - 1 );
return param;
@@ -214,7 +214,7 @@ EvaluationResult IndexOperator::unaryApply( EvaluationResult param, const QValue
};
}
-EvaluationResult ParenOperator::unaryApply( EvaluationResult param, const QValueList<EvaluationResult>& innerParams ) {
+EvaluationResult ParenOperator::unaryApply( EvaluationResult param, const TQValueList<EvaluationResult>& innerParams ) {
if( param ) {
if( param->resolved() ) {
return param->resolved()->applyOperator( SimpleTypeImpl::ParenOp, convertList<LocateResult>(innerParams) );
@@ -253,7 +253,7 @@ EvaluationResult ExpressionEvaluation::evaluate() {
return res;
}
-EvaluationResult ExpressionEvaluation::evaluateExpressionInternal( QString expr, EvaluationResult scope, SimpleContext * ctx, SimpleContext* innerCtx , bool canBeTypeExpression) {
+EvaluationResult ExpressionEvaluation::evaluateExpressionInternal( TQString expr, EvaluationResult scope, SimpleContext * ctx, SimpleContext* innerCtx , bool canBeTypeExpression) {
LogDebug d( "#evl#" );
if( expr.isEmpty() || !safetyCounter ) {
scope.expr.t = ExpressionInfo::NormalExpression;
@@ -270,9 +270,9 @@ EvaluationResult ExpressionEvaluation::evaluateExpressionInternal( QString expr,
expr = expr.stripWhiteSpace();
///Find the rightmost operator with the lowest priority, for the first split.
- QValueList<OperatorIdentification> idents;
+ TQValueList<OperatorIdentification> idents;
for( uint a = 0; a < expr.length(); ++a ) {
- QString part = expr.mid( a );
+ TQString part = expr.mid( a );
OperatorIdentification ident = m_operators.identifyOperator( part );
if( ident ) {
ifVerboseMajor( dbgMajor() << "identified \"" << ident.op->name() << "\" in string " << part << endl );
@@ -292,7 +292,7 @@ EvaluationResult ExpressionEvaluation::evaluateExpressionInternal( QString expr,
if( !idents.isEmpty() ) {
OperatorIdentification lowest;
- for( QValueList<OperatorIdentification>::iterator it = idents.begin(); it != idents.end(); ++it ) {
+ for( TQValueList<OperatorIdentification>::iterator it = idents.begin(); it != idents.end(); ++it ) {
if( lowest ) {
if( lowest.op->priority() >= (*it).op->priority() )
lowest = *it;
@@ -302,8 +302,8 @@ EvaluationResult ExpressionEvaluation::evaluateExpressionInternal( QString expr,
}
if( lowest ) {
- QString leftSide = expr.left( lowest.start ).stripWhiteSpace();
- QString rightSide = expr.right( expr.length() - lowest.end ).stripWhiteSpace();
+ TQString leftSide = expr.left( lowest.start ).stripWhiteSpace();
+ TQString rightSide = expr.right( expr.length() - lowest.end ).stripWhiteSpace();
EvaluationResult left, right;
if( !leftSide.isEmpty() ) {
@@ -323,12 +323,12 @@ EvaluationResult ExpressionEvaluation::evaluateExpressionInternal( QString expr,
ifVerboseMajor( dbgMajor() << "problem while evaluating expression \"" << expr << "\", the operator \"" << lowest.op->name() << "\" has a binding to the right side, but no right side could be evaluated: \"" << rightSide << "\"" << endl );
}
- QValueList<EvaluationResult> innerParams;
- QValueList<EvaluationResult> params;
+ TQValueList<EvaluationResult> innerParams;
+ TQValueList<EvaluationResult> params;
if( lowest.op->binding() & Operator::Left ) params << left;
if( lowest.op->binding() & Operator::Right ) params << right;
- for( QValueList<QString>::iterator it = lowest.innerParams.begin(); it != lowest.innerParams.end(); ++it ) {
+ for( TQValueList<TQString>::iterator it = lowest.innerParams.begin(); it != lowest.innerParams.end(); ++it ) {
ifVerboseMajor(dbgMajor() << "evaluating inner parameter \"" + *it + "\"" );
innerParams << evaluateExpressionInternal( (*it), SimpleType(), innerCtx, innerCtx, lowest.op->canBeType( Operator::Neutral ) );
}
@@ -465,7 +465,7 @@ EvaluationResult ExpressionEvaluation::evaluateAtomicExpression( TypeDesc expr,
}
/*} else {
bestRet = EvaluationResult( type );
- QStringList s = split+exprList;
+ TQStringList s = split+exprList;
s.pop_front();
if( !s.isEmpty() )
bestRet->append( new TypeDescShared( s.join("::") ) );
diff --git a/languages/cpp/cppevaluation.h b/languages/cpp/cppevaluation.h
index e4adeb28..97924b0a 100644
--- a/languages/cpp/cppevaluation.h
+++ b/languages/cpp/cppevaluation.h
@@ -22,7 +22,7 @@
#ifndef CPPEVALUATION_H
#define CPPEVALUATION_H
-#include <qvaluelist.h>
+#include <tqvaluelist.h>
#include "expressioninfo.h"
#include "simpletype.h"
@@ -31,19 +31,19 @@
class SimpleContext;
-void statusBarText( const QString& str, int time = 1000 );
+void statusBarText( const TQString& str, int time = 1000 );
namespace CppEvaluation {
template <class To, class From>
-extern QValueList<To> convertList( const QValueList<From>& from );
+extern TQValueList<To> convertList( const TQValueList<From>& from );
-extern QString nameFromType( SimpleType t );
+extern TQString nameFromType( SimpleType t );
class Operator;
struct OperatorIdentification {
- QValueList<QString> innerParams; /** Inner parameters of the operator( for the vec["hello"] the "hello" ) */
+ TQValueList<TQString> innerParams; /** Inner parameters of the operator( for the vec["hello"] the "hello" ) */
int start, end; /** Range the operator occupies */
bool found;
Operator* op; ///Can be 0 !
@@ -139,12 +139,12 @@ class Operator {
virtual BindingSide binding() = 0; ///The side to which the operator binds
///When this returns true, the ident-structure must be filled correctly
- virtual OperatorIdentification identify( QString& str ) = 0;
+ virtual OperatorIdentification identify( TQString& str ) = 0;
///params
- virtual EvaluationResult apply( QValueList<EvaluationResult> params, QValueList<EvaluationResult> innerParams ) = 0;
+ virtual EvaluationResult apply( TQValueList<EvaluationResult> params, TQValueList<EvaluationResult> innerParams ) = 0;
- virtual QString name() = 0;
+ virtual TQString name() = 0;
///Should return whether the item it the given side can be a type(Neutral stands for the inner paremeters)
virtual bool canBeType( BindingSide side ) {
@@ -152,14 +152,14 @@ class Operator {
}
protected:
- void log( const QString& msg );
- QString printTypeList( QValueList<EvaluationResult>& lst );
+ void log( const TQString& msg );
+ TQString printTypeList( TQValueList<EvaluationResult>& lst );
};
class OperatorSet {
private:
- typedef QValueList< Operator* > OperatorList;
+ typedef TQValueList< Operator* > OperatorList;
OperatorList m_operators;
public:
OperatorSet() {}
@@ -170,7 +170,7 @@ class OperatorSet {
m_operators << op;
}
- OperatorIdentification identifyOperator( const QString& str_ , Operator::BindingSide allowedBindings = ( Operator::BindingSide ) ( Operator::Left | Operator::Right | Operator::Neutral ) );
+ OperatorIdentification identifyOperator( const TQString& str_ , Operator::BindingSide allowedBindings = ( Operator::BindingSide ) ( Operator::Left | Operator::Right | Operator::Neutral ) );
};
extern OperatorSet AllOperators;
@@ -190,7 +190,7 @@ class RegisterOperator {
class UnaryOperator : public Operator {
public:
- UnaryOperator( int priority , QString identString, QString description, Operator::BindingSide binding ) : Operator(), m_priority( priority ), m_identString( identString ), m_name( description ), m_binding( binding ) {}
+ UnaryOperator( int priority , TQString identString, TQString description, Operator::BindingSide binding ) : Operator(), m_priority( priority ), m_identString( identString ), m_name( description ), m_binding( binding ) {}
virtual int priority() {
return m_priority;
@@ -208,28 +208,28 @@ class UnaryOperator : public Operator {
return 1;
}
- virtual OperatorIdentification identify( QString& str );
+ virtual OperatorIdentification identify( TQString& str );
- virtual EvaluationResult unaryApply( EvaluationResult param, const QValueList<EvaluationResult>& innerParams ) = 0;
+ virtual EvaluationResult unaryApply( EvaluationResult param, const TQValueList<EvaluationResult>& innerParams ) = 0;
- virtual bool checkParams( const QValueList<EvaluationResult>& params ) {
+ virtual bool checkParams( const TQValueList<EvaluationResult>& params ) {
return !params.isEmpty() && params[ 0 ];
}
- virtual EvaluationResult apply( QValueList<EvaluationResult> params, QValueList<EvaluationResult> innerParams );
+ virtual EvaluationResult apply( TQValueList<EvaluationResult> params, TQValueList<EvaluationResult> innerParams );
- virtual QString name() {
+ virtual TQString name() {
return m_name;
}
private:
int m_priority;
- QString m_identString;
- QString m_name;
+ TQString m_identString;
+ TQString m_name;
Operator::BindingSide m_binding;
protected:
- QString identString() const {
+ TQString identString() const {
return m_identString;
}
@@ -240,7 +240,7 @@ class NestedTypeOperator : public UnaryOperator {
public:
NestedTypeOperator() : UnaryOperator( 18, "::", "nested-type-operator", Operator::Left ) {}
- virtual EvaluationResult unaryApply( EvaluationResult param, const QValueList<EvaluationResult>& /*innerParams*/ );
+ virtual EvaluationResult unaryApply( EvaluationResult param, const TQValueList<EvaluationResult>& /*innerParams*/ );
};
//RegisterOperator< NestedTypeOperator > NestedTypeReg( AllOperators ); ///This registers the operator to the list of all operators
@@ -249,7 +249,7 @@ class DotOperator : public UnaryOperator {
public:
DotOperator() : UnaryOperator( 17, ".", "dot-operator", Operator::Left ) {}
- virtual EvaluationResult unaryApply( EvaluationResult param, const QValueList<EvaluationResult>& /*innerParams*/ );
+ virtual EvaluationResult unaryApply( EvaluationResult param, const TQValueList<EvaluationResult>& /*innerParams*/ );
virtual bool canBeType( BindingSide side ) {
return false;
@@ -260,7 +260,7 @@ class ArrowOperator : public UnaryOperator {
public:
ArrowOperator() : UnaryOperator( 17, "->", "arrow-operator", Operator::Left ) {}
- virtual EvaluationResult unaryApply( EvaluationResult param, const QValueList<EvaluationResult>& innerParams );
+ virtual EvaluationResult unaryApply( EvaluationResult param, const TQValueList<EvaluationResult>& innerParams );
virtual bool canBeType( BindingSide side ) {
return false;
@@ -273,7 +273,7 @@ class StarOperator : public UnaryOperator {
StarOperator() : UnaryOperator( 15, "*", "star-operator", Operator::Right ) { ///Normally this should have a priority of 16, but that would need changes to the expression-parsin g-loop
}
- virtual EvaluationResult unaryApply( EvaluationResult param, const QValueList<EvaluationResult>& /*innerParams*/ );
+ virtual EvaluationResult unaryApply( EvaluationResult param, const TQValueList<EvaluationResult>& /*innerParams*/ );
virtual bool canBeType( BindingSide side ) {
return false;
@@ -285,7 +285,7 @@ class AddressOperator : public UnaryOperator {
public:
AddressOperator() : UnaryOperator( 16, "&", "address-operator", Operator::Right ) {}
- virtual EvaluationResult unaryApply( EvaluationResult param, const QValueList<EvaluationResult>& /*innerParams*/ );
+ virtual EvaluationResult unaryApply( EvaluationResult param, const TQValueList<EvaluationResult>& /*innerParams*/ );
virtual bool canBeType( BindingSide side ) {
return false;
@@ -296,9 +296,9 @@ class AddressOperator : public UnaryOperator {
class UnaryParenOperator : public UnaryOperator {
public:
///Identstring should be both parens, for Example "[]" or "()"
- UnaryParenOperator( int priority , QString identString, QString description, Operator::BindingSide binding ) : UnaryOperator( priority, identString, description, binding ) {}
+ UnaryParenOperator( int priority , TQString identString, TQString description, Operator::BindingSide binding ) : UnaryOperator( priority, identString, description, binding ) {}
- virtual OperatorIdentification identify( QString& str );
+ virtual OperatorIdentification identify( TQString& str );
virtual bool canBeType( BindingSide side ) {
return false;
@@ -309,7 +309,7 @@ class IndexOperator : public UnaryParenOperator {
public:
IndexOperator() : UnaryParenOperator( 17, "[]", "index-operator", Operator::Left ) {}
- virtual EvaluationResult unaryApply( EvaluationResult param, const QValueList<EvaluationResult>& innerParams );
+ virtual EvaluationResult unaryApply( EvaluationResult param, const TQValueList<EvaluationResult>& innerParams );
virtual bool canBeType( BindingSide side ) {
return false;
@@ -321,11 +321,11 @@ class ParenOperator : public UnaryParenOperator {
public:
ParenOperator() : UnaryParenOperator( 16, "()", "paren-operator", Operator::Left ) {}
- virtual bool checkParams( const QValueList<EvaluationResult>& params ) {
+ virtual bool checkParams( const TQValueList<EvaluationResult>& params ) {
return !params.isEmpty();
}
- virtual EvaluationResult unaryApply( EvaluationResult param, const QValueList<EvaluationResult>& innerParams );
+ virtual EvaluationResult unaryApply( EvaluationResult param, const TQValueList<EvaluationResult>& innerParams );
virtual bool canBeType( BindingSide side ) {
return false;
@@ -354,7 +354,7 @@ class ExpressionEvaluation {
vector[ (*it)->position ]().
*/
- virtual EvaluationResult evaluateExpressionInternal( QString expr, EvaluationResult scope, SimpleContext * ctx, SimpleContext* innerCtx , bool canBeTypeExpression = true );
+ virtual EvaluationResult evaluateExpressionInternal( TQString expr, EvaluationResult scope, SimpleContext * ctx, SimpleContext* innerCtx , bool canBeTypeExpression = true );
///Locates types or members
EvaluationResult evaluateAtomicExpression( TypeDesc expr, EvaluationResult scope, SimpleContext * ctx = 0, bool canBeTypeExpression = true );
diff --git a/languages/cpp/cppimplementationwidget.cpp b/languages/cpp/cppimplementationwidget.cpp
index f5961a7a..7b2d98cd 100644
--- a/languages/cpp/cppimplementationwidget.cpp
+++ b/languages/cpp/cppimplementationwidget.cpp
@@ -19,12 +19,12 @@
***************************************************************************/
#include "cppimplementationwidget.h"
-#include <qfileinfo.h>
-#include <qtextstream.h>
-#include <qfile.h>
-#include <qdir.h>
-#include <qregexp.h>
-#include <qdom.h>
+#include <tqfileinfo.h>
+#include <tqtextstream.h>
+#include <tqfile.h>
+#include <tqdir.h>
+#include <tqregexp.h>
+#include <tqdom.h>
#include <klocale.h>
#include <kmessagebox.h>
@@ -37,60 +37,60 @@
#include <filetemplate.h>
CppImplementationWidget::CppImplementationWidget( KDevLanguageSupport *part,
- QWidget *parent, const char *name, bool modal )
+ TQWidget *parent, const char *name, bool modal )
: ImplementationWidget( part, parent, name, modal )
{}
-QStringList CppImplementationWidget::createClassFiles()
+TQStringList CppImplementationWidget::createClassFiles()
{
- QString template_h = "#ifndef $DEFTEXT$_H\n#define $DEFTEXT$_H\n\n#include \"$BASEINCLUDE$\"\n\nclass $CLASSNAME$: public $BASECLASSNAME$ {\nQ_OBJECT\npublic:\n $CLASSNAME$(QWidget *parent = 0, const char *name = 0);\n};\n\n#endif\n";
- QString template_cpp = "#include \"$CLASSINCLUDE$\"\n\n$CLASSNAME$::$CLASSNAME$(QWidget *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$ {\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";
if ( m_part->project() ->options() == KDevProject::UsesAutotoolsBuildSystem )
template_cpp += "\n#include \"$MOCINCLUDE$\"\n";
- QFileInfo formInfo( m_formName );
- template_h.replace( QRegExp( "\\$BASEINCLUDE\\$" ), formInfo.baseName() + ".h" );
- template_h.replace( QRegExp( "\\$CLASSNAME\\$" ), classNameEdit->text() );
- template_h.replace( QRegExp( "\\$BASECLASSNAME\\$" ), m_baseClassName );
- template_h.replace( QRegExp( "\\$DEFTEXT\\$" ), fileNameEdit->text().upper() );
+ 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_cpp.replace( QRegExp( "\\$CLASSINCLUDE\\$" ), fileNameEdit->text() + ".h" );
- template_cpp.replace( QRegExp( "\\$CLASSNAME\\$" ), classNameEdit->text() );
- template_cpp.replace( QRegExp( "\\$BASECLASSNAME\\$" ), m_baseClassName );
- template_cpp.replace( QRegExp( "\\$MOCINCLUDE\\$" ), fileNameEdit->text() + ".moc" );
+ 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_h = FileTemplate::read( m_part, "h" ) + template_h;
template_cpp = FileTemplate::read( m_part, "cpp" ) + template_cpp;
- QString file_h = fileNameEdit->text() + ".h";
- QString file_cpp = fileNameEdit->text() + ".cpp";
+ TQString file_h = fileNameEdit->text() + ".h";
+ TQString file_cpp = fileNameEdit->text() + ".cpp";
if ( !m_part->project() ->activeDirectory().isEmpty() )
{
file_h = m_part->project() ->activeDirectory() + "/" + file_h;
file_cpp = m_part->project() ->activeDirectory() + "/" + file_cpp;
}
- QFile ifile( QDir::cleanDirPath( m_part->project() ->projectDirectory() + "/" + file_cpp ) );
+ TQFile ifile( TQDir::cleanDirPath( m_part->project() ->projectDirectory() + "/" + file_cpp ) );
if ( !ifile.open( IO_WriteOnly ) )
{
KMessageBox::error( this, i18n( "Cannot write to implementation file" ) );
- return QStringList();
+ return TQStringList();
}
- QTextStream istream( &ifile );
+ TQTextStream istream( &ifile );
istream << template_cpp;
ifile.close();
- QFile hfile( QDir::cleanDirPath( m_part->project() ->projectDirectory() + "/" + file_h ) );
+ TQFile hfile( TQDir::cleanDirPath( m_part->project() ->projectDirectory() + "/" + file_h ) );
if ( !hfile.open( IO_WriteOnly ) )
{
KMessageBox::error( this, i18n( "Cannot write to header file" ) );
- return QStringList();
+ return TQStringList();
}
- QTextStream hstream( &hfile );
+ TQTextStream hstream( &hfile );
hstream << template_h;
hfile.close();
- QStringList fileList;
+ TQStringList fileList;
fileList.append( file_h );
fileList.append( file_cpp );
diff --git a/languages/cpp/cppimplementationwidget.h b/languages/cpp/cppimplementationwidget.h
index 0fc9d306..b79b0aff 100644
--- a/languages/cpp/cppimplementationwidget.h
+++ b/languages/cpp/cppimplementationwidget.h
@@ -31,10 +31,10 @@ class CppImplementationWidget : public ImplementationWidget
{
Q_OBJECT
public:
- CppImplementationWidget( KDevLanguageSupport *part, QWidget* parent = 0, const char* name = 0, bool modal = false );
+ CppImplementationWidget( KDevLanguageSupport *part, TQWidget* parent = 0, const char* name = 0, bool modal = false );
protected:
- virtual QStringList createClassFiles();
+ virtual TQStringList createClassFiles();
};
#endif
diff --git a/languages/cpp/cppnewclassdlg.cpp b/languages/cpp/cppnewclassdlg.cpp
index b941b46e..fc338900 100644
--- a/languages/cpp/cppnewclassdlg.cpp
+++ b/languages/cpp/cppnewclassdlg.cpp
@@ -19,23 +19,23 @@
#include "cppnewclassdlg.h"
-#include <qcheckbox.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qradiobutton.h>
-#include <qregexp.h>
-#include <qtextedit.h>
-#include <qrect.h>
-#include <qstyle.h>
+#include <tqcheckbox.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqradiobutton.h>
+#include <tqregexp.h>
+#include <tqtextedit.h>
+#include <tqrect.h>
+#include <tqstyle.h>
#include <kdebug.h>
#include <klocale.h>
#include <kmessagebox.h>
-#include <qcombobox.h>
-#include <qlistview.h>
-#include <qpopupmenu.h>
-#include <qpushbutton.h>
-#include <qtabwidget.h>
+#include <tqcombobox.h>
+#include <tqlistview.h>
+#include <tqpopupmenu.h>
+#include <tqpushbutton.h>
+#include <tqtabwidget.h>
#include <klineedit.h>
#include <kdeversion.h>
@@ -52,14 +52,14 @@
#include "classgeneratorconfig.h"
-QString QRegExp_escape( const QString& str )
+TQString QRegExp_escape( const TQString& str )
{
#if QT_VERSION >= 0x030100
- return QRegExp::escape( str );
+ return TQRegExp::escape( str );
#else
// this block is copyrighted by Trolltech AS (GPL)
static const char meta[] = "$()*+.?[\\]^{|}";
- QString quoted = str;
+ TQString quoted = str;
int i = 0;
while ( i < ( int ) quoted.length() )
@@ -72,7 +72,7 @@ QString QRegExp_escape( const QString& str )
#endif
}
-CppNewClassDialog::CppNewClassDialog( CppSupportPart *part, QWidget *parent, const char *name )
+CppNewClassDialog::CppNewClassDialog( CppSupportPart *part, TQWidget *parent, const char *name )
: CppNewClassDialogBase( parent, name ), myModel( 0 )
{
headerModified = false;
@@ -81,7 +81,7 @@ CppNewClassDialog::CppNewClassDialog( CppSupportPart *part, QWidget *parent, con
m_part = part;
// read file template configuration
// KDevProject *project = part->project();
- QDomDocument &dom = *part->projectDom();
+ TQDomDocument &dom = *part->projectDom();
interface_url = DomUtil::readEntry( dom, "/cppsupportpart/filetemplates/interfaceURL" );
implementation_url = DomUtil::readEntry( dom, "/cppsupportpart/filetemplates/implementationURL" );
interface_suffix = DomUtil::readEntry( dom, "/cppsupportpart/filetemplates/interfacesuffix", ".h" );
@@ -92,22 +92,22 @@ CppNewClassDialog::CppNewClassDialog( CppSupportPart *part, QWidget *parent, con
baseclasses_view->setSorting( -1 );
constructors_view->setSorting( -1 );
- accessMenu = new QPopupMenu( this );
+ accessMenu = new TQPopupMenu( this );
accessMenu->insertItem( i18n( "Use as Private" ),
- this, SLOT( changeToPrivate() ), 0, 1 );
+ this, TQT_SLOT( changeToPrivate() ), 0, 1 );
accessMenu->insertItem( i18n( "Use as Protected" ),
- this, SLOT( changeToProtected() ), 0, 2 );
+ this, TQT_SLOT( changeToProtected() ), 0, 2 );
accessMenu->insertItem( i18n( "Use as Public" ),
- this, SLOT( changeToPublic() ), 0, 3 );
+ this, TQT_SLOT( changeToPublic() ), 0, 3 );
accessMenu->insertSeparator();
accessMenu->insertItem( i18n( "Unset" ),
- this, SLOT( changeToInherited() ), 0, 5 );
+ this, TQT_SLOT( changeToInherited() ), 0, 5 );
- overMenu = new QPopupMenu( this );
+ overMenu = new TQPopupMenu( this );
overMenu->insertItem( i18n( "Extend Base Class Functionality" ),
- this, SLOT( extendFunctionality() ), 0, 11 );
+ this, TQT_SLOT( extendFunctionality() ), 0, 11 );
overMenu->insertItem( i18n( "Replace Base Class Method" ),
- this, SLOT( replaceFunctionality() ), 0, 12 );
+ this, TQT_SLOT( replaceFunctionality() ), 0, 12 );
compBasename = basename_edit->completionObject();
setCompletionBasename( m_part->codeModel() );
@@ -135,7 +135,7 @@ void CppNewClassDialog::setCompletionBasename( CodeModel *model )
// Import selected namespace without qualifier
NamespaceDom namespaceDom = model->globalNamespace();
- QStringList::const_iterator it = currNamespace.begin();
+ TQStringList::const_iterator it = currNamespace.begin();
for ( ; it != currNamespace.end() ; ++it )
{
if ( ! namespaceDom->hasNamespace( *it ) )
@@ -149,16 +149,16 @@ void CppNewClassDialog::setCompletionBasename( CodeModel *model )
addCompletionBasenameNamespacesRecursive( model->globalNamespace() );
- QStringList compItems = compBasename->items();
+ TQStringList compItems = compBasename->items();
it = compItems.begin();
for ( int i = 0;
it != compItems.end(); ++it, ++i )
kdDebug( 9007 ) << "compBasename->items()[" << i << "] = \"" << *it << "\"" << endl;
}
-QStringList& gres( QStringList &list, const QRegExp & rx, const QString & after )
+TQStringList& gres( TQStringList &list, const TQRegExp & rx, const TQString & after )
{
- QStringList::Iterator it = list.begin();
+ TQStringList::Iterator it = list.begin();
while ( it != list.end() )
{
( *it ).replace( rx, after );
@@ -168,18 +168,18 @@ QStringList& gres( QStringList &list, const QRegExp & rx, const QString & after
}
void CppNewClassDialog::addCompletionBasenameNamespacesRecursive( const NamespaceDom & namespaceDom,
- const QString & namespaceParent )
+ const TQString & namespaceParent )
{
// Add classes of this namespace
- QStringList classList = sortedNameList( namespaceDom -> classList() );
+ TQStringList classList = sortedNameList( namespaceDom -> classList() );
if ( ! namespaceParent.isEmpty() )
{
#if QT_VERSION >= 0x030200
- classList.gres( QRegExp( "^" ), namespaceParent + "::" );
+ classList.gres( TQRegExp( "^" ), namespaceParent + "::" );
#else
- gres( classList, QRegExp( "^" ), namespaceParent + "::" );
+ gres( classList, TQRegExp( "^" ), namespaceParent + "::" );
#endif
}
@@ -193,7 +193,7 @@ void CppNewClassDialog::addCompletionBasenameNamespacesRecursive( const Namespac
for ( ; it != namespaceList.end() ; ++it )
{
- QString fullNamespace;
+ TQString fullNamespace;
if ( ! namespaceParent.isEmpty() )
fullNamespace = namespaceParent + "::";
@@ -204,13 +204,13 @@ void CppNewClassDialog::addCompletionBasenameNamespacesRecursive( const Namespac
}
-void CppNewClassDialog::setCompletionNamespaceRecursive( const NamespaceDom & namespaceDom, const QString & namespaceParent )
+void CppNewClassDialog::setCompletionNamespaceRecursive( const NamespaceDom & namespaceDom, const TQString & namespaceParent )
{
NamespaceList namespaceList = namespaceDom->namespaceList();
NamespaceList::const_iterator it = namespaceList.begin();
for ( ; it != namespaceList.end() ; ++it )
{
- QString fullNamespace;
+ TQString fullNamespace;
if ( ! namespaceParent.isEmpty() )
fullNamespace = namespaceParent + "::";
@@ -222,20 +222,20 @@ void CppNewClassDialog::setCompletionNamespaceRecursive( const NamespaceDom & na
}
}
-void CppNewClassDialog::nameHandlerChanged( const QString &text )
+void CppNewClassDialog::nameHandlerChanged( const TQString &text )
{
DomUtil::writeEntry( *m_part->projectDom(), "/cppsupportpart/newclass/filenamesetting", text );
m_parse = text;
classNameChanged( classname_edit->text() );
}
-void CppNewClassDialog::classNameChanged( const QString &text )
+void CppNewClassDialog::classNameChanged( const TQString &text )
{
- QString str = text;
+ TQString str = text;
if ( !headerModified )
{
- QString header = str + interface_suffix;
+ TQString header = str + interface_suffix;
switch ( gen_config->fileCase() )
{
case ClassGeneratorConfig::LowerCase:
@@ -247,12 +247,12 @@ void CppNewClassDialog::classNameChanged( const QString &text )
default:
;
}
- header = header.replace( QRegExp( "(template *<.*> *)?(class +)?" ), "" );
+ header = header.replace( TQRegExp( "(template *<.*> *)?(class +)?" ), "" );
header_edit->setText( header );
}
if ( !implementationModified )
{
- QString implementation;
+ TQString implementation;
if ( str.contains( "template" ) )
implementation = str + "_impl" + interface_suffix;
else
@@ -268,23 +268,23 @@ void CppNewClassDialog::classNameChanged( const QString &text )
default:
;
}
- implementation = implementation.replace( QRegExp( "(template *<.*> *)?(class +)?" ), "" );
+ implementation = implementation.replace( TQRegExp( "(template *<.*> *)?(class +)?" ), "" );
implementation_edit->setText( implementation );
}
}
-void CppNewClassDialog::classNamespaceChanged( const QString &text )
+void CppNewClassDialog::classNamespaceChanged( const TQString &text )
{
- currNamespace = QStringList::split( QString( "::" ), text );
+ currNamespace = TQStringList::split( TQString( "::" ), text );
setCompletionBasename( m_part -> codeModel() );
reloadAdvancedInheritance( true );
}
-void CppNewClassDialog::baseclassname_changed( const QString &text )
+void CppNewClassDialog::baseclassname_changed( const TQString &text )
{
if ( ( basename_edit->hasFocus() ) && ( !baseincludeModified ) )
{
- QString header = text;
+ TQString header = text;
// handle Qt classes in a special way.
if( m_part->qtBuildConfig()->isUsed() && header.startsWith( "Q" ) )
@@ -295,14 +295,14 @@ void CppNewClassDialog::baseclassname_changed( const QString &text )
}
else if( m_part->qtBuildConfig()->version() == 4 )
{
- // 1:1, e.g QObject is #include <QObject>
+ // 1:1, e.g TQObject is #include <TQObject>
}
}
else
{
- if ( header.contains( QRegExp( "::" ) ) )
- header = header.mid( header.findRev( QRegExp( "::" ) ) + 2 );
- header = header.replace( QRegExp( " *<.*>" ), "" );
+ if ( header.contains( TQRegExp( "::" ) ) )
+ header = header.mid( header.findRev( TQRegExp( "::" ) ) + 2 );
+ header = header.replace( TQRegExp( " *<.*>" ), "" );
header += interface_suffix;
switch ( gen_config->superCase() )
@@ -322,7 +322,7 @@ void CppNewClassDialog::baseclassname_changed( const QString &text )
}
}
-void CppNewClassDialog::baseIncludeChanged( const QString &text )
+void CppNewClassDialog::baseIncludeChanged( const TQString &text )
{
if ( baseinclude_edit->hasFocus() )
{
@@ -395,17 +395,17 @@ void CppNewClassDialog::checkQWidgetInheritance( int val )
if ( baseclasses_view->childCount() == 0 )
{
addBaseClass();
- basename_edit->setText( "QWidget" );
+ basename_edit->setText( "TQWidget" );
}
/* constructors_cpp_edit->append(classname_edit->text() + "::" + classname_edit->text() +
- "(QWidget *parent, const char *name):\n QWidget(parent, name)\n{\n}\n");
- constructors_h_edit->append(classname_edit->text() + "(QWidget *parent, const char *name);\n");*/
+ "(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");*/
}
if ( val && ( baseclasses_view->childCount() > 1 ) )
if ( KMessageBox::warningContinueCancel( this,
- i18n( "Multiple inheritance requires QObject derivative to be first and unique in base class list." ),
- i18n( "Warning" ), KStdGuiItem::cont(), "Check QWidget inheritance rules" ) == KMessageBox::Cancel )
+ i18n( "Multiple inheritance requires TQObject derivative to be first and unique in base class list." ),
+ i18n( "Warning" ), KStdGuiItem::cont(), "Check TQWidget inheritance rules" ) == KMessageBox::Cancel )
childclass_box->setChecked( false );
}
@@ -417,7 +417,7 @@ void CppNewClassDialog::qobject_box_stateChanged( int val )
if ( baseclasses_view->childCount() == 0 )
{
addBaseClass();
- basename_edit->setText( "QObject" );
+ basename_edit->setText( "TQObject" );
}
@@ -451,7 +451,7 @@ void CppNewClassDialog::accept()
{
ClassGenerator generator( *this );
if ( generator.generate() )
- QDialog::accept();
+ TQDialog::accept();
}
@@ -481,12 +481,12 @@ void CppNewClassDialog::addBaseClass()
baseincludeModified = false;
if ( baseclasses_view->selectedItem() )
baseclasses_view->selectedItem() ->setSelected( false );
- QListViewItem* it = new QListViewItem( baseclasses_view, baseclasses_view->lastItem(),
- QString::null, "public", QString( "%1" ).arg( scope_box->currentItem() ), QString::null, "false" );
+ TQListViewItem* it = new TQListViewItem( baseclasses_view, baseclasses_view->lastItem(),
+ TQString::null, "public", TQString( "%1" ).arg( scope_box->currentItem() ), TQString::null, "false" );
setStateOfInheritanceEditors( true );
public_button->setChecked( true );
virtual_box->setChecked( false );
- basename_edit->setText( QString::null );
+ basename_edit->setText( TQString::null );
basename_edit->setFocus();
baseclasses_view->setSelected( it, true );
}
@@ -501,7 +501,7 @@ void CppNewClassDialog::remBaseClass()
}
if ( baseclasses_view->selectedItem() )
{
- QListViewItem * it = baseclasses_view->selectedItem();
+ TQListViewItem * it = baseclasses_view->selectedItem();
remClassFromAdv( it->text( 0 ) );
baseclasses_view->selectedItem() ->setSelected( false );
if ( it->itemBelow() )
@@ -521,7 +521,7 @@ void CppNewClassDialog::remBaseClassOnly()
{
if ( baseclasses_view->selectedItem() )
{
- QListViewItem * it = baseclasses_view->selectedItem();
+ TQListViewItem * it = baseclasses_view->selectedItem();
baseclasses_view->selectedItem() ->setSelected( false );
if ( it->itemBelow() )
baseclasses_view->setSelected( it->itemBelow(), true );
@@ -534,14 +534,14 @@ void CppNewClassDialog::remBaseClassOnly()
}
}
-void CppNewClassDialog::remClassFromAdv( QString text )
+void CppNewClassDialog::remClassFromAdv( TQString text )
{
// Strip off namespace qualification
if ( text.contains( "::" ) )
text = text.mid( text.findRev( "::" ) + 2 );
removeTemplateParams( text );
- QListViewItem *it = 0;
+ TQListViewItem *it = 0;
if ( ( it = access_view->findItem( text, 0 ) ) )
delete it;
if ( ( it = methods_view->findItem( text, 0 ) ) )
@@ -562,7 +562,7 @@ void CppNewClassDialog::remClassFromAdv( QString text )
}
}
-void CppNewClassDialog::currBaseNameChanged( const QString &text )
+void CppNewClassDialog::currBaseNameChanged( const TQString &text )
{
if ( baseclasses_view->selectedItem() && ( basename_edit->hasFocus() ) )
{
@@ -584,7 +584,7 @@ void CppNewClassDialog::currBasePrivateSet()
if ( baseclasses_view->selectedItem() )
{
setAccessForBase( baseclasses_view->selectedItem() ->text( 0 ), "private" );
- baseclasses_view->selectedItem() ->setText( 1, ( virtual_box->isChecked() ? "virtual " : "" ) + QString( "private" ) );
+ baseclasses_view->selectedItem() ->setText( 1, ( virtual_box->isChecked() ? "virtual " : "" ) + TQString( "private" ) );
}
}
@@ -593,7 +593,7 @@ void CppNewClassDialog::currBaseProtectedSet()
if ( baseclasses_view->selectedItem() )
{
setAccessForBase( baseclasses_view->selectedItem() ->text( 0 ), "protected" );
- baseclasses_view->selectedItem() ->setText( 1, ( virtual_box->isChecked() ? "virtual " : "" ) + QString( "protected" ) );
+ baseclasses_view->selectedItem() ->setText( 1, ( virtual_box->isChecked() ? "virtual " : "" ) + TQString( "protected" ) );
}
}
@@ -602,7 +602,7 @@ void CppNewClassDialog::currBasePublicSet()
if ( baseclasses_view->selectedItem() )
{
setAccessForBase( baseclasses_view->selectedItem() ->text( 0 ), "public" );
- baseclasses_view->selectedItem() ->setText( 1, ( virtual_box->isChecked() ? "virtual " : "" ) + QString( "public" ) );
+ baseclasses_view->selectedItem() ->setText( 1, ( virtual_box->isChecked() ? "virtual " : "" ) + TQString( "public" ) );
}
}
@@ -610,7 +610,7 @@ void CppNewClassDialog::scopeboxActivated( int value )
{
if ( baseclasses_view->selectedItem() )
{
- baseclasses_view->selectedItem() ->setText( 2, QString( "%1" ).arg( value ) );
+ baseclasses_view->selectedItem() ->setText( 2, TQString( "%1" ).arg( value ) );
}
}
@@ -618,14 +618,14 @@ void CppNewClassDialog::currBaseVirtualChanged( int val )
{
if ( baseclasses_view->selectedItem() )
{
- baseclasses_view->selectedItem() ->setText( 1, QString( val ? "virtual " : "" ) +
- QString( private_button->isChecked() ? "private" : "" ) +
- QString( protected_button->isChecked() ? "protected" : "" ) +
- QString( public_button->isChecked() ? "public" : "" ) );
+ baseclasses_view->selectedItem() ->setText( 1, TQString( val ? "virtual " : "" ) +
+ TQString( private_button->isChecked() ? "private" : "" ) +
+ TQString( protected_button->isChecked() ? "protected" : "" ) +
+ TQString( public_button->isChecked() ? "public" : "" ) );
}
}
-void CppNewClassDialog::currBaseSelected( QListViewItem *it )
+void CppNewClassDialog::currBaseSelected( TQListViewItem *it )
{
if ( it == 0 )
{
@@ -671,15 +671,15 @@ void CppNewClassDialog::upbaseclass_button_clicked()
}
if ( baseclasses_view->selectedItem() )
{
- QListViewItem * it = baseclasses_view->selectedItem();
+ TQListViewItem * it = baseclasses_view->selectedItem();
if ( it->itemAbove() )
{
- QListViewItem * newit;
+ TQListViewItem * newit;
if ( it->itemAbove() ->itemAbove() )
- newit = new QListViewItem( baseclasses_view, it->itemAbove() ->itemAbove(),
+ newit = new TQListViewItem( baseclasses_view, it->itemAbove() ->itemAbove(),
it->text( 0 ), it->text( 1 ), it->text( 2 ), it->text( 3 ), it->text( 4 ) );
else
- newit = new QListViewItem( baseclasses_view, it->text( 0 ), it->text( 1 ),
+ newit = new TQListViewItem( baseclasses_view, it->text( 0 ), it->text( 1 ),
it->text( 2 ), it->text( 3 ), it->text( 4 ) );
remBaseClassOnly();
baseclasses_view->setSelected( newit, true );
@@ -701,10 +701,10 @@ void CppNewClassDialog::downbaseclass_button_clicked()
}
if ( baseclasses_view->selectedItem() )
{
- QListViewItem * it = baseclasses_view->selectedItem();
+ TQListViewItem * it = baseclasses_view->selectedItem();
if ( it->itemBelow() )
{
- QListViewItem * newit = new QListViewItem( baseclasses_view, it->itemBelow(),
+ TQListViewItem * newit = new TQListViewItem( baseclasses_view, it->itemBelow(),
it->text( 0 ), it->text( 1 ), it->text( 2 ), it->text( 3 ), it->text( 3 ) );
remBaseClassOnly();
baseclasses_view->setSelected( newit, true );
@@ -719,9 +719,9 @@ void CppNewClassDialog::downbaseclass_button_clicked()
void CppNewClassDialog::updateConstructorsOrder()
{
- QListViewItemIterator it( baseclasses_view );
- QListViewItem *c_it;
- QListViewItem *fc_it = 0;
+ TQListViewItemIterator it( baseclasses_view );
+ TQListViewItem *c_it;
+ TQListViewItem *fc_it = 0;
while ( it.current() )
{
@@ -776,18 +776,18 @@ void CppNewClassDialog::changeToPublic()
void CppNewClassDialog::changeToInherited()
{
if ( access_view->selectedItem() )
- access_view->selectedItem() ->setText( 2, QString::null );
+ access_view->selectedItem() ->setText( 2, TQString::null );
}
-void CppNewClassDialog::newTabSelected( const QString& /*text*/ )
+void CppNewClassDialog::newTabSelected( const TQString& /*text*/ )
{
/* if (text == i18n("&Advanced Inheritance"))
reloadAdvancedInheritance(true);*/
}
-void CppNewClassDialog::newTabSelected( QWidget* /*w*/ )
+void CppNewClassDialog::newTabSelected( TQWidget* /*w*/ )
{
- /* if ( QString(w->name()) == QString("tab2"))
+ /* if ( TQString(w->name()) == TQString("tab2"))
{
reloadAdvancedInheritance(false);
}*/
@@ -800,7 +800,7 @@ void CppNewClassDialog::reloadAdvancedInheritance( bool clean )
clearMethodsList( clean );
clearUpgradeList( clean );
- QListViewItemIterator it( baseclasses_view );
+ TQListViewItemIterator it( baseclasses_view );
while ( it.current() )
{
if ( ! ( it.current() ->text( 0 ).isEmpty() ) )
@@ -811,10 +811,10 @@ void CppNewClassDialog::reloadAdvancedInheritance( bool clean )
}
}
-void CppNewClassDialog::parseClass( QString clName, QString inheritance )
+void CppNewClassDialog::parseClass( TQString clName, TQString inheritance )
{
// Determine namespace
- QStringList clNamespace = currNamespace;
+ TQStringList clNamespace = currNamespace;
bool clFullQualified = false;
if ( clName.contains( "::" ) )
@@ -822,26 +822,26 @@ void CppNewClassDialog::parseClass( QString clName, QString inheritance )
// Full qualified, override imported namespace
clFullQualified = true;
int splitpoint = clName.findRev( "::" );
- clNamespace = QStringList::split( "::", clName.left( splitpoint ) );
+ clNamespace = TQStringList::split( "::", clName.left( splitpoint ) );
clName = clName.mid( splitpoint + 2 );
}
kdDebug( 9007 ) << "clFullQualified = " << clFullQualified << endl;
kdDebug( 9007 ) << "clName = " << clName << endl;
- QString debMsg = "clNamespace = ";
- for ( QStringList::const_iterator it = clNamespace.begin();
+ TQString debMsg = "clNamespace = ";
+ for ( TQStringList::const_iterator it = clNamespace.begin();
it != clNamespace.end(); ++it )
debMsg += ( *it ) + "::";
kdDebug( 9007 ) << debMsg << endl;
- QString templateAdd = templateActualParamsFormatted( clName );
+ TQString templateAdd = templateActualParamsFormatted( clName );
removeTemplateParams( clName );
ClassList myClasses; // = m_part->codeModel()->globalNamespace()->classByName(clName);
NamespaceDom namespaceDom = m_part->codeModel() ->globalNamespace();
- QStringList::const_iterator namespaceIt = clNamespace.begin();
+ TQStringList::const_iterator namespaceIt = clNamespace.begin();
for ( ; namespaceIt != clNamespace.end(); ++namespaceIt )
{
if ( ! namespaceDom -> hasNamespace( *namespaceIt ) )
@@ -869,12 +869,12 @@ void CppNewClassDialog::parseClass( QString clName, QString inheritance )
it->templateAddition = templateAdd;
PListViewItem<ClassDom> *over = new PListViewItem<ClassDom>( *classIt, methods_view, ( *classIt ) ->name() );
over->templateAddition = templateAdd;
- QListViewItem *over_methods = new QListViewItem( over, i18n( "Methods" ) );
- QListViewItem *over_slots = new QListViewItem( over, i18n( "Slots (Qt-specific)" ) );
+ TQListViewItem *over_methods = new TQListViewItem( over, i18n( "Methods" ) );
+ TQListViewItem *over_slots = new TQListViewItem( over, i18n( "Slots (Qt-specific)" ) );
PListViewItem<ClassDom> *access = new PListViewItem<ClassDom>( *classIt, access_view, ( *classIt ) ->name() );
- QListViewItem *access_methods = new QListViewItem( access, i18n( "Methods" ) );
- QListViewItem *access_slots = new QListViewItem( access, i18n( "Slots (Qt-specific)" ) );
- QListViewItem *access_attrs = new QListViewItem( access, i18n( "Attributes" ) );
+ TQListViewItem *access_methods = new TQListViewItem( access, i18n( "Methods" ) );
+ TQListViewItem *access_slots = new TQListViewItem( access, i18n( "Slots (Qt-specific)" ) );
+ TQListViewItem *access_attrs = new TQListViewItem( access, i18n( "Attributes" ) );
FunctionList functionList = ( *classIt ) ->functionList();
for ( FunctionList::const_iterator methodIt = functionList.begin();
@@ -894,7 +894,7 @@ void CppNewClassDialog::parseClass( QString clName, QString inheritance )
{
addToMethodsList( over_slots, *methodIt );
- QString inhModifier;
+ TQString inhModifier;
//protected inheritance gives protected attributes
if ( inheritance.contains( "protected" ) )
inhModifier = "protected";
@@ -915,7 +915,7 @@ void CppNewClassDialog::parseClass( QString clName, QString inheritance )
addToMethodsList( over_methods, *methodIt );
// see what modifier is given for the base class
- QString inhModifier;
+ TQString inhModifier;
//protected inheritance gives protected methods
if ( inheritance.contains( "protected" ) )
inhModifier = "protected";
@@ -936,7 +936,7 @@ void CppNewClassDialog::parseClass( QString clName, QString inheritance )
{
if ( ( *varIt ) ->access() != CodeModelItem::Private )
{
- QString inhModifier;
+ TQString inhModifier;
//protected inheritance gives protected attributes
if ( inheritance.contains( "protected" ) )
inhModifier = "protected";
@@ -952,14 +952,14 @@ void CppNewClassDialog::parseClass( QString clName, QString inheritance )
}
}
-bool CppNewClassDialog::isConstructor( QString className, const FunctionDom &method )
+bool CppNewClassDialog::isConstructor( TQString className, const FunctionDom &method )
{
// regexp: myclass\\s*\\(\\s*(const)?\\s*myclass\\s*&[A-Za-z_0-9\\s]*\\) is for copy constructors
if ( ( className == method->name() ) )
{
qWarning( "1x" );
- if ( ( method->argumentList().count() == 1 ) && ( m_part->formatModelItem( method->argumentList() [ 0 ].data() ).contains( QRegExp( " *(const)? *" + className + " *& *" ) ) ) )
- // if ( method->asString().contains(QRegExp(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() ).contains( TQRegExp( " *(const)? *" + className + " *& *" ) ) ) )
+ // if ( method->asString().contains(TQRegExp(className + "\\s*\\(\\s*(const)?\\s*" + className + "\\s*&[A-Za-z_0-9\\s]*\\)", true, false)) )
return false;
else
return true;
@@ -968,34 +968,34 @@ bool CppNewClassDialog::isConstructor( QString className, const FunctionDom &met
return false;
}
-void CppNewClassDialog::addToConstructorsList( QCheckListItem *myClass, FunctionDom method )
+void CppNewClassDialog::addToConstructorsList( TQCheckListItem *myClass, FunctionDom method )
{
- new PCheckListItem<FunctionDom>( method, myClass, m_part->formatModelItem( method.data() ), QCheckListItem::RadioButton );
+ new PCheckListItem<FunctionDom>( method, myClass, m_part->formatModelItem( method.data() ), TQCheckListItem::RadioButton );
}
-void CppNewClassDialog::addToMethodsList( QListViewItem *parent, FunctionDom method )
+void CppNewClassDialog::addToMethodsList( TQListViewItem *parent, FunctionDom method )
{
- PCheckListItem<FunctionDom> *it = new PCheckListItem<FunctionDom>( method, parent, m_part->formatModelItem( method.data() ), QCheckListItem::CheckBox );
+ 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" ) );
}
-void CppNewClassDialog::addToUpgradeList( QListViewItem *parent, FunctionDom method, QString modifier )
+void CppNewClassDialog::addToUpgradeList( TQListViewItem *parent, FunctionDom method, TQString modifier )
{
PListViewItem<FunctionDom> *it = new PListViewItem<FunctionDom>( method, parent, m_part->formatModelItem( method.data() ) );
it->setText( 1, modifier );
}
-void CppNewClassDialog::addToUpgradeList( QListViewItem *parent, VariableDom attr, QString modifier )
+void CppNewClassDialog::addToUpgradeList( TQListViewItem *parent, VariableDom attr, TQString modifier )
{
PListViewItem<VariableDom> *it = new PListViewItem<VariableDom>( attr, parent, m_part->formatModelItem( attr.data() ) );
it->setText( 1, modifier );
}
-void CppNewClassDialog::parsePCSClass( QString clName, QString inheritance )
+void CppNewClassDialog::parsePCSClass( TQString clName, TQString inheritance )
{
// Determine namespace
- QStringList clNamespace = currNamespace;
+ TQStringList clNamespace = currNamespace;
bool clFullQualified = false;
if ( clName.contains( "::" ) )
@@ -1003,7 +1003,7 @@ void CppNewClassDialog::parsePCSClass( QString clName, QString inheritance )
// Full qualified, override imported namespace
clFullQualified = true;
int splitpoint = clName.findRev( "::" );
- clNamespace = QStringList::split( "::", clName.left( splitpoint ) );
+ clNamespace = TQStringList::split( "::", clName.left( splitpoint ) );
clName = clName.mid( splitpoint + 2 );
}
@@ -1011,7 +1011,7 @@ void CppNewClassDialog::parsePCSClass( QString clName, QString inheritance )
kdDebug( 9007 ) << "clName = " << clName << endl;
kdDebug( 9007 ) << "clNamespace = " << clNamespace.join( "." ) << endl;
- QString templateAdd = templateActualParamsFormatted( clName );
+ TQString templateAdd = templateActualParamsFormatted( clName );
removeTemplateParams( clName );
myModel = new CodeModel();
@@ -1028,12 +1028,12 @@ void CppNewClassDialog::parsePCSClass( QString clName, QString inheritance )
it->templateAddition = templateAdd;
PListViewItem<ClassDom> *over = new PListViewItem<ClassDom>( *classIt, methods_view, ( *classIt ) ->name() );
over->templateAddition = templateAdd;
- QListViewItem *over_methods = new QListViewItem( over, i18n( "Methods" ) );
- QListViewItem *over_slots = new QListViewItem( over, i18n( "Slots (Qt-specific)" ) );
+ TQListViewItem *over_methods = new TQListViewItem( over, i18n( "Methods" ) );
+ TQListViewItem *over_slots = new TQListViewItem( over, i18n( "Slots (Qt-specific)" ) );
PListViewItem<ClassDom> *access = new PListViewItem<ClassDom>( *classIt, access_view, ( *classIt ) ->name() );
- QListViewItem *access_methods = new QListViewItem( access, i18n( "Methods" ) );
- QListViewItem *access_slots = new QListViewItem( access, i18n( "Slots (Qt-specific)" ) );
- QListViewItem *access_attrs = new QListViewItem( access, i18n( "Attributes" ) );
+ TQListViewItem *access_methods = new TQListViewItem( access, i18n( "Methods" ) );
+ TQListViewItem *access_slots = new TQListViewItem( access, i18n( "Slots (Qt-specific)" ) );
+ TQListViewItem *access_attrs = new TQListViewItem( access, i18n( "Attributes" ) );
FunctionList functionList = ( *classIt ) ->functionList();
for ( FunctionList::const_iterator methodIt = functionList.begin();
@@ -1053,7 +1053,7 @@ void CppNewClassDialog::parsePCSClass( QString clName, QString inheritance )
{
addToMethodsList( over_slots, *methodIt );
- QString inhModifier;
+ TQString inhModifier;
//protected inheritance gives protected attributes
if ( inheritance.contains( "protected" ) )
inhModifier = "protected";
@@ -1074,7 +1074,7 @@ void CppNewClassDialog::parsePCSClass( QString clName, QString inheritance )
addToMethodsList( over_methods, *methodIt );
//see what modifier is given for the base class
- QString inhModifier;
+ TQString inhModifier;
//protected inheritance gives protected methods
if ( inheritance.contains( "protected" ) )
inhModifier = "protected";
@@ -1095,7 +1095,7 @@ void CppNewClassDialog::parsePCSClass( QString clName, QString inheritance )
{
if ( ( *varIt ) ->access() != CodeModelItem::Private )
{
- QString inhModifier;
+ TQString inhModifier;
//protected inheritance gives protected attributes
if ( inheritance.contains( "protected" ) )
inhModifier = "protected";
@@ -1113,7 +1113,7 @@ void CppNewClassDialog::parsePCSClass( QString clName, QString inheritance )
void CppNewClassDialog::clear_selection_button_clicked()
{
- QListViewItemIterator it( constructors_view );
+ TQListViewItemIterator it( constructors_view );
while ( it.current() )
{
PCheckListItem<FunctionDom> *curr;
@@ -1129,7 +1129,7 @@ void CppNewClassDialog::clearConstructorsList( bool clean )
constructors_view->clear();
/* else
{
- QListViewItemIterator it( constructors_view );
+ TQListViewItemIterator it( constructors_view );
while ( it.current() )
{
if ( ! currBaseClasses.contains(it.current().text(0)) )
@@ -1151,7 +1151,7 @@ void CppNewClassDialog::clearUpgradeList( bool clean )
access_view->clear();
}
-void CppNewClassDialog::setAccessForItem( QListViewItem *curr, QString newAccess, bool isPublic )
+void CppNewClassDialog::setAccessForItem( TQListViewItem *curr, TQString newAccess, bool isPublic )
{
if ( newAccess == "public" )
curr->setText( 1, isPublic ? "public" : "protected" );
@@ -1160,19 +1160,19 @@ void CppNewClassDialog::setAccessForItem( QListViewItem *curr, QString newAccess
if ( !curr->text( 2 ).isEmpty() )
{
if ( ( curr->text( 2 ) == "private" ) && ( ( newAccess == "public" ) || ( newAccess == "protected" ) ) )
- curr->setText( 2, QString::null );
+ curr->setText( 2, TQString::null );
if ( ( curr->text( 2 ) == "protected" ) && ( ( newAccess == "public" ) && ( isPublic ) ) )
- curr->setText( 2, QString::null );
+ curr->setText( 2, TQString::null );
}
}
-void CppNewClassDialog::setAccessForBase( QString baseclass, QString newAccess )
+void CppNewClassDialog::setAccessForBase( TQString baseclass, TQString newAccess )
{
- QListViewItem * base;
+ TQListViewItem * base;
if ( ( base = access_view->findItem( baseclass, 0 ) ) )
{
- QListViewItemIterator it( base );
+ TQListViewItemIterator it( base );
while ( it.current() )
{
if ( !it.current() ->text( 1 ).isEmpty() )
@@ -1190,7 +1190,7 @@ void CppNewClassDialog::setAccessForBase( QString baseclass, QString newAccess )
}
-void CppNewClassDialog::access_view_mouseButtonPressed( int button, QListViewItem * item, const QPoint &p, int /*c*/ )
+void CppNewClassDialog::access_view_mouseButtonPressed( int button, TQListViewItem * item, const TQPoint &p, int /*c*/ )
{
if ( item && ( ( button == LeftButton ) || ( button == RightButton ) ) && ( item->depth() > 1 ) )
{
@@ -1215,7 +1215,7 @@ void CppNewClassDialog::access_view_mouseButtonPressed( int button, QListViewIte
}
-void CppNewClassDialog::methods_view_mouseButtonPressed( int button , QListViewItem * item, const QPoint&p , int /*c*/ )
+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() ) )
{
@@ -1237,7 +1237,7 @@ void CppNewClassDialog::replaceFunctionality()
void CppNewClassDialog::selectall_button_clicked()
{
- QListViewItemIterator it( constructors_view );
+ TQListViewItemIterator it( constructors_view );
while ( it.current() )
{
PCheckListItem<FunctionDom> *curr;
@@ -1249,17 +1249,17 @@ void CppNewClassDialog::selectall_button_clicked()
void CppNewClassDialog::to_constructors_list_clicked()
{
- QString templateAdd = templateStrFormatted().isEmpty() ? QString::null : templateStrFormatted() + "\n";
- QString constructor_h = classNameFormatted();
- QString constructor_cpp = templateAdd + classNameFormatted() + templateParamsFormatted() + "::" + classNameFormatted();
+ TQString templateAdd = templateStrFormatted().isEmpty() ? TQString::null : templateStrFormatted() + "\n";
+ TQString constructor_h = classNameFormatted();
+ TQString constructor_cpp = templateAdd + classNameFormatted() + templateParamsFormatted() + "::" + classNameFormatted();
constructor_h += "(";
constructor_cpp += "(";
- QString params_h;
- QString params_cpp;
- QString base;
+ TQString params_h;
+ TQString params_cpp;
+ TQString base;
int unnamed = 1;
- QListViewItemIterator it( constructors_view );
+ TQListViewItemIterator it( constructors_view );
while ( it.current() )
{
PCheckListItem<FunctionDom> *curr;
@@ -1278,8 +1278,8 @@ void CppNewClassDialog::to_constructors_list_clicked()
params_h += params_h.isEmpty() ? "" : ", ";
//fill arguments for both constructor and base class initializer
- QString cparams;
- QString bparams;
+ TQString cparams;
+ TQString bparams;
ArgumentList argumentList = curr->item() ->argumentList();
for ( ArgumentList::const_iterator argIt = argumentList.begin();
argIt != argumentList.end(); ++argIt )
@@ -1289,8 +1289,8 @@ void CppNewClassDialog::to_constructors_list_clicked()
cparams += ( *argIt ) ->type() + " ";
if ( ( *argIt ) ->name().isEmpty() )
{
- cparams += QString( "arg%1" ).arg( unnamed );
- bparams += QString( "arg%1" ).arg( unnamed++ );
+ cparams += TQString( "arg%1" ).arg( unnamed );
+ bparams += TQString( "arg%1" ).arg( unnamed++ );
}
else
{
@@ -1308,7 +1308,7 @@ void CppNewClassDialog::to_constructors_list_clicked()
++it;
}
- constructor_cpp += params_cpp + ")" + base + QString( "\n{\n}\n\n\n" );
+ constructor_cpp += params_cpp + ")" + base + TQString( "\n{\n}\n\n\n" );
constructor_h += params_h + ");\n\n";
constructors_h_edit->append( constructor_h );
@@ -1333,14 +1333,14 @@ void CppNewClassDialog::to_constructors_list_clicked()
bool CppNewClassDialog::ClassGenerator::validateInput()
{
className = dlg.classname_edit->text().simplifyWhiteSpace();
- QString temp = className;
- className.replace( QRegExp( "template *<.*> *(class *)?" ), "" );
- templateStr = temp.replace( QRegExp( QRegExp_escape( className ) ), "" );
- templateStr.replace( QRegExp( " *class *$" ), "" );
+ TQString temp = className;
+ className.replace( TQRegExp( "template *<.*> *(class *)?" ), "" );
+ templateStr = temp.replace( TQRegExp( QRegExp_escape( className ) ), "" );
+ templateStr.replace( TQRegExp( " *class *$" ), "" );
templateParams = templateStr;
- templateParams.replace( QRegExp( "^ *template *" ), "" );
- templateParams.replace( QRegExp( " *class *" ), "" );
+ templateParams.replace( TQRegExp( "^ *template *" ), "" );
+ templateParams.replace( TQRegExp( " *class *" ), "" );
templateParams.simplifyWhiteSpace();
if ( className.isEmpty() )
@@ -1384,13 +1384,13 @@ bool CppNewClassDialog::ClassGenerator::generate()
subDir = project->projectDirectory() + "/";
if ( !project->activeDirectory().isEmpty() ){
subDir += project->activeDirectory();
- subDir = QDir::cleanDirPath(subDir);
+ subDir = TQDir::cleanDirPath(subDir);
subDir += "/";
}
headerPath = subDir + header;
implementationPath = subDir + implementation;
- if ( QFileInfo( headerPath ).exists() || QFileInfo( implementationPath ).exists() )
+ if ( TQFileInfo( headerPath ).exists() || TQFileInfo( implementationPath ).exists() )
{
KMessageBox::error( &dlg, i18n( "KDevelop is not able to add classes "
"to existing header or implementation files." ) );
@@ -1399,12 +1399,12 @@ bool CppNewClassDialog::ClassGenerator::generate()
if( ( dlg.m_part->project() ->options() & KDevProject::UsesQMakeBuildSystem) )
{
- QDir dir( QFileInfo( project->projectDirectory()+QString( QChar( QDir::separator() ) )+project->activeDirectory() + QString( QChar( QDir::separator() ) ) + header ).dirPath() );
+ 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;
if( dir.isRelative() )
dir.convertToAbs();
- QValueStack<QString> dirsToCreate;
+ TQValueStack<TQString> dirsToCreate;
while( !dir.exists() )
{
dirsToCreate.push( dir.dirName() );
@@ -1423,8 +1423,8 @@ bool CppNewClassDialog::ClassGenerator::generate()
gen_interface();
- QStringList fileList;
- QString file;
+ TQStringList fileList;
+ TQString file;
if( project->activeDirectory().isEmpty() )
file = header;
else
@@ -1449,7 +1449,7 @@ void CppNewClassDialog::ClassGenerator::common_text()
// common
namespaceStr = dlg.namespace_edit->text();
- namespaces = QStringList::split( QString( "::" ), namespaceStr );
+ namespaces = TQStringList::split( TQString( "::" ), namespaceStr );
childClass = dlg.childclass_box->isChecked();
objc = dlg.objc_box->isChecked();
@@ -1458,25 +1458,25 @@ void CppNewClassDialog::ClassGenerator::common_text()
headeronly = dlg.headeronly_box->isChecked();
if ( ( dlg.baseclasses_view->childCount() == 0 ) && childClass )
- new QListViewItem( dlg.baseclasses_view, "QWidget", "public" );
+ new TQListViewItem( dlg.baseclasses_view, "TQWidget", "public" );
if ( objc && ( dlg.baseclasses_view->childCount() == 0 ) )
- new QListViewItem( dlg.baseclasses_view, "NSObject", "public" );
+ new TQListViewItem( dlg.baseclasses_view, "NSObject", "public" );
if ( dlg.documentation_edit->text().isEmpty() && ( !dlg.gen_config->doc_box->isChecked() ) )
doc = "";
else
{
- doc = QString( "/**\n" );
+ doc = TQString( "/**\n" );
if ( !dlg.documentation_edit->text().isEmpty() )
{
doc.append( dlg.documentation_edit->text() );
if ( dlg.gen_config->author_box->isChecked() )
doc.append( "\n\n" );
}
- QString author = DomUtil::readEntry( *dlg.m_part->projectDom(), "/general/author" );
- QString email = DomUtil::readEntry( *dlg.m_part->projectDom(), "/general/email" );
+ TQString author = DomUtil::readEntry( *dlg.m_part->projectDom(), "/general/author" );
+ TQString email = DomUtil::readEntry( *dlg.m_part->projectDom(), "/general/email" );
if( !email.isEmpty() )
- author += QString( " <%1>" ).arg( email );
+ author += TQString( " <%1>" ).arg( email );
if ( dlg.gen_config->author_box->isChecked() )
doc.append( "\t@author " + author + "\n" );
@@ -1485,7 +1485,7 @@ void CppNewClassDialog::ClassGenerator::common_text()
if ( !namespaceStr.isEmpty() )
{
- for ( QStringList::Iterator it = namespaces.begin(); it != namespaces.end(); ++it )
+ for ( TQStringList::Iterator it = namespaces.begin(); it != namespaces.end(); ++it )
{
if ( !namespaceBeg.isEmpty() )
namespaceBeg += "\n\n";
@@ -1498,31 +1498,31 @@ void CppNewClassDialog::ClassGenerator::common_text()
//advanced constructor creation
- advConstructorsHeader = QString::null;
- advConstructorsSource = QString::null;
+ advConstructorsHeader = TQString::null;
+ advConstructorsSource = TQString::null;
if ( !dlg.constructors_h_edit->text().isEmpty() )
{
advConstructorsHeader = " " + dlg.constructors_h_edit->text();
- advConstructorsHeader.replace( QRegExp( "\n" ), "\n " );
+ advConstructorsHeader.replace( TQRegExp( "\n" ), "\n " );
}
if ( !dlg.constructors_cpp_edit->text().isEmpty() )
{
advConstructorsSource = dlg.constructors_cpp_edit->text();
}
- advConstructorsHeader.replace( QRegExp( "[\\n ]*$" ), QString::null );
- advConstructorsSource.replace( QRegExp( "[\\n ]*$" ), QString::null );
+ advConstructorsHeader.replace( TQRegExp( "[\\n ]*$" ), TQString::null );
+ advConstructorsSource.replace( TQRegExp( "[\\n ]*$" ), TQString::null );
//advanced method overriding
- advH_public = QString::null;
- advH_public_slots = QString::null;
- advH_protected = QString::null;
- advH_protected_slots = QString::null;
- advH_private = QString::null;
- advH_private_slots = QString::null;
- advCpp = QString::null;
+ 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;
- QListViewItemIterator it( dlg.methods_view );
+ TQListViewItemIterator it( dlg.methods_view );
while ( it.current() )
{
PCheckListItem<FunctionDom> *curr;
@@ -1530,7 +1530,7 @@ void CppNewClassDialog::ClassGenerator::common_text()
{
if ( curr->isOn() && ( curr->parent() ) && ( curr->parent() ->parent() ) )
{
- QString * adv_h = 0;
+ TQString * adv_h = 0;
if ( curr->item() ->access() == CodeModelItem::Private )
adv_h = curr->item() ->isSlot() ? &advH_private_slots : &advH_private;
if ( curr->item() ->access() == CodeModelItem::Protected )
@@ -1540,7 +1540,7 @@ void CppNewClassDialog::ClassGenerator::common_text()
// if (advCpp.isEmpty()) advCpp += "\n\n";
- QString bcName = curr->parent() ->parent() ->text( 0 );
+ TQString bcName = curr->parent() ->parent() ->text( 0 );
PListViewItem<ClassDom> *bc;
if ( ( bc = dynamic_cast<PListViewItem<ClassDom>* >( curr->parent() ->parent() ) ) )
{
@@ -1554,7 +1554,7 @@ void CppNewClassDialog::ClassGenerator::common_text()
}
//advanced access control and upgrading
- QListViewItemIterator ita( dlg.access_view );
+ TQListViewItemIterator ita( dlg.access_view );
while ( ita.current() )
{
PListViewItem<VariableDom> *curr;
@@ -1563,7 +1563,7 @@ void CppNewClassDialog::ClassGenerator::common_text()
{
if ( ( !curr->text( 2 ).isEmpty() ) && ( curr->parent() ) && ( curr->parent() ->parent() ) )
{
- QString * adv_h = 0;
+ TQString * adv_h = 0;
if ( curr->text( 2 ) == "private" )
adv_h = &advH_private;
if ( curr->text( 2 ) == "public" )
@@ -1574,14 +1574,14 @@ void CppNewClassDialog::ClassGenerator::common_text()
/* if ((*adv_h).isEmpty())
*adv_h += "\n\n";*/
if ( adv_h )
- *adv_h += QString( " using " ) + curr->parent() ->parent() ->text( 0 ) + "::" + curr->item() ->name() + ";\n";
+ *adv_h += TQString( " using " ) + curr->parent() ->parent() ->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() ) )
{
- QString * adv_h = 0;
+ TQString * adv_h = 0;
if ( curr_m->text( 2 ) == "private" )
adv_h = &advH_private;
if ( curr_m->text( 2 ) == "public" )
@@ -1592,8 +1592,8 @@ void CppNewClassDialog::ClassGenerator::common_text()
/* if ((*adv_h).isEmpty())
*adv_h += "\n\n";*/
- QString methodName = curr_m->item() ->name();
- if ( !methodName.contains( QRegExp( "^[a-zA-z_]" ) ) )
+ TQString methodName = curr_m->item() ->name();
+ if ( !methodName.contains( TQRegExp( "^[a-zA-z_]" ) ) )
methodName = "operator" + methodName;
*adv_h += " using " + curr_m->parent() ->parent() ->text( 0 ) + "::" + methodName + ";\n";
}
@@ -1601,33 +1601,33 @@ void CppNewClassDialog::ClassGenerator::common_text()
++ita;
}
- QRegExp e( "[\\n ]*$" );
- advH_public.replace( e, QString::null );
- advH_public_slots.replace( e, QString::null );
- advH_protected.replace( e, QString::null );
- advH_protected_slots.replace( e, QString::null );
- advH_private.replace( e, QString::null );
- advH_private_slots.replace( e, QString::null );
- advCpp.replace( e, QString::null );
+ 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 );
}
void CppNewClassDialog::ClassGenerator::genMethodDeclaration( FunctionDom method,
- QString className, QString templateStr, QString *adv_h, QString *adv_cpp, bool extend, QString baseClassName )
+ TQString className, TQString templateStr, TQString *adv_h, TQString *adv_cpp, bool extend, TQString baseClassName )
{
/* if ((*adv_h).isEmpty())
*adv_h += "\n\n";*/
- QString methodName = method->name();
- if ( !methodName.contains( QRegExp( "^[a-zA-z_]" ) ) )
+ TQString methodName = method->name();
+ if ( !methodName.contains( TQRegExp( "^[a-zA-z_]" ) ) )
methodName = "operator" + methodName;
- *adv_h += " " + ( method->isVirtual() ? QString( "virtual " ) : QString( "" ) )
- + ( method->isStatic() ? QString( "static " ) : QString( "" ) )
+ *adv_h += " " + ( method->isVirtual() ? TQString( "virtual " ) : TQString( "" ) )
+ + ( method->isStatic() ? TQString( "static " ) : TQString( "" ) )
+ method->resultType() + " " + methodName + "(";
if ( !templateStr.isEmpty() )
* adv_cpp += templateStr + "\n";
*adv_cpp += method->resultType() + " " + className + templateParams + "::" + methodName + "(";
- QString bparams;
- QString cparams;
+ TQString bparams;
+ TQString cparams;
int unnamed = 1;
ArgumentList argumentList = method->argumentList();
@@ -1639,8 +1639,8 @@ void CppNewClassDialog::ClassGenerator::genMethodDeclaration( FunctionDom method
cparams += ( *argIt ) ->type() + " ";
if ( ( *argIt ) ->name().isEmpty() )
{
- cparams += QString( "arg%1" ).arg( unnamed );
- bparams += QString( "arg%1" ).arg( unnamed++ );
+ cparams += TQString( "arg%1" ).arg( unnamed );
+ bparams += TQString( "arg%1" ).arg( unnamed++ );
}
else
{
@@ -1664,22 +1664,22 @@ void CppNewClassDialog::ClassGenerator::gen_implementation()
// implementation
- QString classImpl;
- QFileInfo fi( implementationPath );
- QString module = fi.baseName();
- QString basefilename = fi.baseName( true );
+ TQString classImpl;
+ TQFileInfo fi( implementationPath );
+ TQString module = fi.baseName();
+ TQString basefilename = fi.baseName( true );
if ( dlg.filetemplate_box->isChecked() )
{
- /* QDomDocument dom = *dlg.m_part->projectDom();
+ /* TQDomDocument dom = *dlg.m_part->projectDom();
if(DomUtil::readBoolEntry(dom,"/cppsupportpart/filetemplates/choosefiles",false))
classImpl = FileTemplate::read(dlg.m_part, DomUtil::readEntry(dom,"/cppsupportpart/filetemplates/implementationURL",""), FileTemplate::Custom);
else*/
classImpl = FileTemplate::read( dlg.m_part, fi.extension( true ) );
}
- classImpl.replace( QRegExp( "\\$MODULE\\$" ), module );
- classImpl.replace( QRegExp( "\\$FILENAME\\$" ), basefilename );
+ classImpl.replace( TQRegExp( "\\$MODULE\\$" ), module );
+ classImpl.replace( TQRegExp( "\\$FILENAME\\$" ), basefilename );
if ( objc )
{
@@ -1692,16 +1692,16 @@ void CppNewClassDialog::ClassGenerator::gen_implementation()
else
{
classImpl += dlg.gen_config->cppSource();
- /* classImpl += QString(
+ /* classImpl += TQString(
"#include \"$HEADER$\"\n"
"\n"
"\n")
+ namespaceBeg
- + ( advConstructorsSource.isEmpty() ? QString("$CLASSNAME$::$CLASSNAME$($ARGS$)\n"
+ + ( advConstructorsSource.isEmpty() ? TQString("$CLASSNAME$::$CLASSNAME$($ARGS$)\n"
"$BASEINITIALIZER$"
"{\n"
"}\n") : advConstructorsSource )
- + QString("\n"
+ + TQString("\n"
"$CLASSNAME$::~$CLASSNAME$()\n"
"{\n"
"}\n")
@@ -1709,15 +1709,15 @@ void CppNewClassDialog::ClassGenerator::gen_implementation()
+ namespaceEnd;*/
}
- QString relPath;
+ TQString relPath;
for ( int i = implementation.findRev( '/' ); i != -1; i = implementation.findRev( '/', --i ) )
relPath += "../";
- QString constructors = ( advConstructorsSource.isEmpty() ? QString( "$TEMPLATESTR$\n$CLASSNAME$$TEMPLATEPARAMS$::$CLASSNAME$($ARGS$)\n"
+ TQString constructors = ( advConstructorsSource.isEmpty() ? TQString( "$TEMPLATESTR$\n$CLASSNAME$$TEMPLATEPARAMS$::$CLASSNAME$($ARGS$)\n"
"$BASEINITIALIZER$"
"{\n"
"}" ) : advConstructorsSource )
- + QString( "\n\n\n"
+ + TQString( "\n\n\n"
"$TEMPLATESTR$\n$CLASSNAME$$TEMPLATEPARAMS$::~$CLASSNAME$()\n"
"{\n"
"}\n" );
@@ -1728,26 +1728,26 @@ void CppNewClassDialog::ClassGenerator::gen_implementation()
{
if( dlg.m_part->qtBuildConfig()->version() == 3 )
{
- argsH = "QWidget *parent = 0, const char *name = 0";
- argsCpp = "QWidget *parent, const char *name";
+ argsH = "TQWidget *parent = 0, const char *name = 0";
+ argsCpp = "TQWidget *parent, const char *name";
}
else
{
- argsH = "QWidget *parent = 0";
- argsCpp = "QWidget *parent";
+ argsH = "TQWidget *parent = 0";
+ argsCpp = "TQWidget *parent";
}
}
else if ( qobject )
{
if( dlg.m_part->qtBuildConfig()->version() == 3 )
{
- argsH = "QObject *parent = 0, const char *name = 0";
- argsCpp = "QObject *parent, const char *name";
+ argsH = "TQObject *parent = 0, const char *name = 0";
+ argsCpp = "TQObject *parent, const char *name";
}
else
{
- argsH = "QObject *parent = 0";
- argsCpp = "QObject *parent";
+ argsH = "TQObject *parent = 0";
+ argsCpp = "TQObject *parent";
}
}
else
@@ -1755,25 +1755,25 @@ void CppNewClassDialog::ClassGenerator::gen_implementation()
argsH = "";
argsCpp = "";
}
- QString baseInitializer;
+ TQString baseInitializer;
if ( childClass && ( dlg.baseclasses_view->childCount() == 0 ) )
{
if( dlg.m_part->qtBuildConfig()->version() == 3 )
- baseInitializer = " : QWidget(parent, name)";
+ baseInitializer = " : TQWidget(parent, name)";
else
- baseInitializer = " : QWidget(parent)";
+ baseInitializer = " : TQWidget(parent)";
}
else if ( qobject && ( dlg.baseclasses_view->childCount() == 0 ) )
{
if( dlg.m_part->qtBuildConfig()->version() == 3 )
- baseInitializer = " : QObject(parent, name)";
+ baseInitializer = " : TQObject(parent, name)";
else
- baseInitializer = " : QObject(parent)";
+ baseInitializer = " : TQObject(parent)";
}
else if ( dlg.baseclasses_view->childCount() != 0 )
{
- QListViewItemIterator it( dlg.baseclasses_view );
+ TQListViewItemIterator it( dlg.baseclasses_view );
baseInitializer += " : ";
while ( it.current() )
{
@@ -1808,41 +1808,41 @@ void CppNewClassDialog::ClassGenerator::gen_implementation()
baseInitializer += "\n";
}
- constructors.replace( QRegExp( "\\$BASEINITIALIZER\\$" ), baseInitializer );
- constructors.replace( QRegExp( "\\$CLASSNAME\\$" ), className );
+ constructors.replace( TQRegExp( "\\$BASEINITIALIZER\\$" ), baseInitializer );
+ constructors.replace( TQRegExp( "\\$CLASSNAME\\$" ), className );
// qWarning("NEW CLASS: constructors = %s", constructors.latin1());
if ( templateStr.isEmpty() )
{
- constructors.replace( QRegExp( "\\$TEMPLATESTR\\$\\n" ), "" );
- constructors.replace( QRegExp( "\\$TEMPLATEPARAMS\\$" ), "" );
+ constructors.replace( TQRegExp( "\\$TEMPLATESTR\\$\\n" ), "" );
+ constructors.replace( TQRegExp( "\\$TEMPLATEPARAMS\\$" ), "" );
}
else
{
- constructors.replace( QRegExp( "\\$TEMPLATESTR\\$" ), templateStr );
- constructors.replace( QRegExp( "\\$TEMPLATEPARAMS\\$" ), templateParams );
- classImpl.replace( QRegExp( "#include \"\\$HEADER\\$\"\\n" ), "" );
+ constructors.replace( TQRegExp( "\\$TEMPLATESTR\\$" ), templateStr );
+ constructors.replace( TQRegExp( "\\$TEMPLATEPARAMS\\$" ), templateParams );
+ classImpl.replace( TQRegExp( "#include \"\\$HEADER\\$\"\\n" ), "" );
}
// qWarning("NEW CLASS: constructors = %s", constructors.latin1());
- constructors.replace( QRegExp( "\\$ARGS\\$" ), argsCpp );
+ constructors.replace( TQRegExp( "\\$ARGS\\$" ), argsCpp );
// qWarning("NEW CLASS: constructors = %s", constructors.latin1());
//remove unnesessary carriadge returns
- QString hp = relPath + header;
+ TQString hp = relPath + header;
beautifySource( classImpl, hp, className, namespaceBeg, constructors, advCpp, namespaceEnd, implementation );
- classImpl.replace( QRegExp( "\\$HEADER\\$" ), relPath + header );
- classImpl.replace( QRegExp( "\\$CLASSNAME\\$" ), className );
- classImpl.replace( QRegExp( "\\$NAMESPACEBEG\\$" ), namespaceBeg );
- classImpl.replace( QRegExp( "\\$CONSTRUCTORDEFINITIONS\\$" ), constructors );
- classImpl.replace( QRegExp( "\\$DEFINITIONS\\$" ), advCpp );
- classImpl.replace( QRegExp( "\\$NAMESPACEEND\\$" ), namespaceEnd );
- classImpl.replace( QRegExp( "\\$FILENAME\\$" ), 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 );
if ( ( dlg.m_part->project() ) && ( childClass || qobject ) && ( dlg.m_part->project() ->options() & KDevProject::UsesAutotoolsBuildSystem ) )
{
- QString moc = header;
- moc.replace( QRegExp( "\\..*" ), ".moc" );
+ TQString moc = header;
+ moc.replace( TQRegExp( "\\..*" ), ".moc" );
classImpl += "#include \"" + moc + "\"\n";
}
@@ -1855,13 +1855,13 @@ void CppNewClassDialog::ClassGenerator::gen_implementation()
kdDebug( 9007 ) << "implementationPath = " << implementationPath << endl;
- QFile ifile( implementationPath );
+ TQFile ifile( implementationPath );
if ( !ifile.open( IO_WriteOnly ) )
{
KMessageBox::error( &dlg, i18n( "Cannot write to implementation file" ) );
return ;
}
- QTextStream istream( &ifile );
+ TQTextStream istream( &ifile );
istream << classImpl;
ifile.close();
@@ -1875,22 +1875,22 @@ void CppNewClassDialog::ClassGenerator::gen_interface()
{
// interface
- QString classIntf;
- QFileInfo fi( headerPath );
- QString module = fi.baseName();
- QString basefilename = fi.baseName( true );
+ TQString classIntf;
+ TQFileInfo fi( headerPath );
+ TQString module = fi.baseName();
+ TQString basefilename = fi.baseName( true );
if ( dlg.filetemplate_box->isChecked() )
{
- /* QDomDocument dom = *dlg.m_part->projectDom();
+ /* TQDomDocument dom = *dlg.m_part->projectDom();
if(DomUtil::readBoolEntry(dom,"/cppsupportpart/filetemplates/choosefiles",false))
classIntf = FileTemplate::read(dlg.m_part, DomUtil::readEntry(dom,"/cppsupportpart/filetemplates/interfaceURL",""), FileTemplate::Custom);
else*/
classIntf = FileTemplate::read( dlg.m_part, fi.extension( true ) );
}
- classIntf.replace( QRegExp( "\\$MODULE\\$" ), module );
- classIntf.replace( QRegExp( "\\$FILENAME\\$" ), basefilename );
+ classIntf.replace( TQRegExp( "\\$MODULE\\$" ), module );
+ classIntf.replace( TQRegExp( "\\$FILENAME\\$" ), basefilename );
if ( objc )
{
@@ -1903,32 +1903,32 @@ void CppNewClassDialog::ClassGenerator::gen_interface()
else
{
classIntf += dlg.gen_config->cppHeader();
- /* classIntf = QString("\n"
+ /* classIntf = TQString("\n"
"#ifndef $HEADERGUARD$\n"
"#define $HEADERGUARD$\n"
"\n"
"$INCLUDEBASEHEADER$\n"
"\n")
+ namespaceBeg
- + QString("class $CLASSNAME$$INHERITANCE$\n"
+ + TQString("class $CLASSNAME$$INHERITANCE$\n"
"{\n"
"$QOBJECT$"
"public:\n")
- + ( advConstructorsHeader.isEmpty() ? QString(" $CLASSNAME$($ARGS$);\n") : advConstructorsHeader )
- + QString("\n ~$CLASSNAME$();\n")
+ + ( advConstructorsHeader.isEmpty() ? TQString(" $CLASSNAME$($ARGS$);\n") : advConstructorsHeader )
+ + TQString("\n ~$CLASSNAME$();\n")
+ advH_public
- + (advH_public_slots.isEmpty() ? QString::fromLatin1("") : ("\n\npublic slots:" + advH_public_slots))
- + (advH_protected.isEmpty() ? QString::fromLatin1("") : ("\n\nprotected:" + advH_protected))
- + (advH_protected_slots.isEmpty() ? QString::fromLatin1("") : ("\n\nprotected slots:" + advH_protected_slots))
- + (advH_private.isEmpty() ? QString::fromLatin1("") : ("\n\nprivate:" + advH_private))
- + (advH_private_slots.isEmpty() ? QString::fromLatin1("") : ("\n\nprivate slots:" + advH_private_slots))
- + QString("};\n"
+ + (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))
+ + TQString("};\n"
"\n")
+ namespaceEnd
+ "#endif\n";*/
}
- QString headerGuard;
+ TQString headerGuard;
switch ( dlg.gen_config->defCase() )
{
case ClassGeneratorConfig::UpperCase:
@@ -1945,24 +1945,24 @@ void CppNewClassDialog::ClassGenerator::gen_interface()
break;
}
- headerGuard.replace( QRegExp( "\\." ), "_" );
- headerGuard.replace( QRegExp( "::" ), "_" );
- QString includeBaseHeader;
+ headerGuard.replace( TQRegExp( "\\." ), "_" );
+ headerGuard.replace( TQRegExp( "::" ), "_" );
+ TQString includeBaseHeader;
if( dlg.m_part->qtBuildConfig()->isUsed() )
{
if( childClass && ( dlg.baseclasses_view->childCount() == 0 ) )
{
if( dlg.m_part->qtBuildConfig()->version() == 3 )
- includeBaseHeader = "#include <qwidget.h>";
+ includeBaseHeader = "#include <tqwidget.h>";
else
- includeBaseHeader = "#include <QWidget>";
+ includeBaseHeader = "#include <TQWidget>";
}
else if( qobject && ( dlg.baseclasses_view->childCount() == 0 ) )
{
if( dlg.m_part->qtBuildConfig()->version() == 3 )
- includeBaseHeader = "#include <qobject.h>";
+ includeBaseHeader = "#include <tqobject.h>";
else
- includeBaseHeader = "#include <QObject>";
+ includeBaseHeader = "#include <TQObject>";
}
}
@@ -1972,37 +1972,37 @@ void CppNewClassDialog::ClassGenerator::gen_interface()
if ( dlg.baseclasses_view->firstChild() ->text( 0 ) != "NSObject" )
if ( !dlg.baseclasses_view->firstChild() ->text( 3 ).isEmpty() )
includeBaseHeader = "#include "
- + ( dlg.baseclasses_view->firstChild() ->text( 2 ).toInt() == 0 ? QString( "<" ) : QString( "\"" ) )
+ + ( dlg.baseclasses_view->firstChild() ->text( 2 ).toInt() == 0 ? TQString( "<" ) : TQString( "\"" ) )
+ dlg.baseclasses_view->firstChild() ->text( 3 )
- + ( dlg.baseclasses_view->firstChild() ->text( 2 ).toInt() == 0 ? QString( ">" ) : QString( "\"" ) );
+ + ( dlg.baseclasses_view->firstChild() ->text( 2 ).toInt() == 0 ? TQString( ">" ) : TQString( "\"" ) );
}
else
{
- QListViewItemIterator it( dlg.baseclasses_view );
+ TQListViewItemIterator it( dlg.baseclasses_view );
while ( it.current() )
{
if ( !it.current() ->text( 0 ).isEmpty() )
if ( !it.current() ->text( 3 ).isEmpty() )
- // if ((!childClass) || (it.current()->text(0) != "QWidget"))
- includeBaseHeader += ( includeBaseHeader.isEmpty() ? QString( "" ) : QString( "\n" ) ) + QString::fromLatin1( "#include " ) +
- ( it.current() ->text( 2 ).toInt() == 0 ? QString( "<" ) : QString( "\"" ) )
+ // if ((!childClass) || (it.current()->text(0) != "TQWidget"))
+ includeBaseHeader += ( includeBaseHeader.isEmpty() ? TQString( "" ) : TQString( "\n" ) ) + TQString::fromLatin1( "#include " ) +
+ ( it.current() ->text( 2 ).toInt() == 0 ? TQString( "<" ) : TQString( "\"" ) )
+ it.current() ->text( 3 )
- + ( it.current() ->text( 2 ).toInt() == 0 ? QString( ">" ) : QString( "\"" ) );
+ + ( it.current() ->text( 2 ).toInt() == 0 ? TQString( ">" ) : TQString( "\"" ) );
++it;
}
}
- QString author = DomUtil::readEntry( *dlg.m_part->projectDom(), "/general/author" );
- QString email = DomUtil::readEntry( *dlg.m_part->projectDom(), "/general/email" );
+ TQString author = DomUtil::readEntry( *dlg.m_part->projectDom(), "/general/author" );
+ TQString email = DomUtil::readEntry( *dlg.m_part->projectDom(), "/general/email" );
if( !email.isEmpty() )
- author += QString( " <%1>" ).arg( email );
+ author += TQString( " <%1>" ).arg( email );
- QString inheritance;
+ TQString inheritance;
if ( dlg.baseclasses_view->childCount() > 0 )
{
inheritance += " : ";
- QListViewItemIterator it( dlg.baseclasses_view );
+ TQListViewItemIterator it( dlg.baseclasses_view );
while ( it.current() )
{
if ( !it.current() ->text( 0 ).isEmpty() )
@@ -2023,21 +2023,21 @@ void CppNewClassDialog::ClassGenerator::gen_interface()
}
}
else if ( qobject )
- inheritance += ": public QObject";
+ inheritance += ": public TQObject";
- QString constructors = QString( advConstructorsHeader.isEmpty() ?
- QString( " $CLASSNAME$($ARGS$);" ) : advConstructorsHeader )
- + QString( "\n\n ~$CLASSNAME$();" );
+ TQString constructors = TQString( advConstructorsHeader.isEmpty() ?
+ TQString( " $CLASSNAME$($ARGS$);" ) : advConstructorsHeader )
+ + TQString( "\n\n ~$CLASSNAME$();" );
- constructors.replace( QRegExp( "\\$CLASSNAME\\$" ), className );
- constructors.replace( QRegExp( "\\$ARGS\\$" ), argsH );
+ constructors.replace( TQRegExp( "\\$CLASSNAME\\$" ), className );
+ constructors.replace( TQRegExp( "\\$ARGS\\$" ), argsH );
- QString qobjectStr;
+ TQString qobjectStr;
if ( childClass || qobject )
qobjectStr = "Q_OBJECT";
- QString baseclass;
+ TQString baseclass;
if ( dlg.baseclasses_view->childCount() > 0 )
baseclass = dlg.baseclasses_view->firstChild() ->text( 0 );
//remove unnesessary carriadge returns
@@ -2047,30 +2047,30 @@ void CppNewClassDialog::ClassGenerator::gen_interface()
advH_protected, advH_protected_slots, advH_private, advH_private_slots, namespaceEnd );
- classIntf.replace( QRegExp( "\\$HEADERGUARD\\$" ), headerGuard );
- classIntf.replace( QRegExp( "\\$INCLUDEBASEHEADER\\$" ), includeBaseHeader );
- classIntf.replace( QRegExp( "\\$AUTHOR\\$" ), author );
- classIntf.replace( QRegExp( "\\$DOC\\$" ), doc );
- classIntf.replace( QRegExp( "\\$TEMPLATE\\$" ), templateStr );
- classIntf.replace( QRegExp( "\\$CLASSNAME\\$" ), className );
+ 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 );
if ( dlg.baseclasses_view->childCount() > 0 )
- classIntf.replace( QRegExp( "\\$BASECLASS\\$" ), dlg.baseclasses_view->firstChild() ->text( 0 ) );
- classIntf.replace( QRegExp( "\\$INHERITANCE\\$" ), inheritance );
- classIntf.replace( QRegExp( "\\$QOBJECT\\$" ), qobjectStr );
- classIntf.replace( QRegExp( "\\$ARGS\\$" ), argsH );
- classIntf.replace( QRegExp( "\\$FILENAME\\$" ), header );
- classIntf.replace( QRegExp( "\\$NAMESPACEBEG\\$" ), namespaceBeg );
- classIntf.replace( QRegExp( "\\$CONSTRUCTORDECLARATIONS\\$" ), constructors );
- classIntf.replace( QRegExp( "\\$PUBLICDECLARATIONS\\$" ), advH_public );
- classIntf.replace( QRegExp( "\\$PUBLICSLOTS\\$" ), advH_public_slots );
- classIntf.replace( QRegExp( "\\$PROTECTEDDECLARATIONS\\$" ), QString( "protected:\n" ) + advH_protected );
- classIntf.replace( QRegExp( "\\$PROTECTEDSLOTS\\$" ), QString( "protected slots:\n" ) + advH_protected_slots );
- classIntf.replace( QRegExp( "\\$PRIVATEDECLARATIONS\\$" ), QString( "private:\n" ) + advH_private );
- classIntf.replace( QRegExp( "\\$PRIVATESLOTS\\$" ), QString( "private slots:\n" ) + advH_private_slots );
- classIntf.replace( QRegExp( "\\$NAMESPACEEND\\$" ), namespaceEnd );
+ 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 );
if ( !templateStr.isEmpty() && (!headeronly) )
- classIntf.replace( QRegExp( "#endif" ), "#include \"" + dlg.implementation_edit->text() + "\"\n\n#endif" );
+ classIntf.replace( TQRegExp( "#endif" ), "#include \"" + dlg.implementation_edit->text() + "\"\n\n#endif" );
if ( dlg.gen_config->reformat_box->isChecked() )
{
@@ -2079,13 +2079,13 @@ void CppNewClassDialog::ClassGenerator::gen_interface()
classIntf = fmt->formatSource( classIntf );
}
- QFile hfile( headerPath );
+ TQFile hfile( headerPath );
if ( !hfile.open( IO_WriteOnly ) )
{
KMessageBox::error( &dlg, i18n( "Cannot write to header file" ) );
return ;
}
- QTextStream hstream( &hfile );
+ TQTextStream hstream( &hfile );
hstream << classIntf;
hfile.close();
@@ -2094,140 +2094,140 @@ void CppNewClassDialog::ClassGenerator::gen_interface()
dlg.m_part->partController()->editDocument( u );
}
-void CppNewClassDialog::ClassGenerator::beautifyHeader( QString &templ, QString &headerGuard,
- QString &includeBaseHeader, QString &author, QString &doc, QString &className, QString &templateStr,
- QString &baseclass, QString &inheritance, QString &qobjectStr, QString &args,
- QString &header, QString &namespaceBeg, QString &constructors, QString &advH_public, QString &advH_public_slots,
- QString &advH_protected, QString &advH_protected_slots, QString &advH_private, QString &advH_private_slots,
- QString &namespaceEnd )
+void CppNewClassDialog::ClassGenerator::beautifyHeader( TQString &templ, TQString &headerGuard,
+ TQString &includeBaseHeader, TQString &author, TQString &doc, TQString &className, TQString &templateStr,
+ TQString &baseclass, TQString &inheritance, TQString &qobjectStr, TQString &args,
+ TQString &header, TQString &namespaceBeg, TQString &constructors, TQString &advH_public, TQString &advH_public_slots,
+ TQString &advH_protected, TQString &advH_protected_slots, TQString &advH_private, TQString &advH_private_slots,
+ TQString &namespaceEnd )
{
if ( headerGuard.isEmpty() )
- templ.replace( QRegExp( "\\$HEADERGUARD\\$[\\n ]*" ), QString::null );
+ templ.replace( TQRegExp( "\\$HEADERGUARD\\$[\\n ]*" ), TQString::null );
if ( includeBaseHeader.isEmpty() )
- templ.replace( QRegExp( "\\$INCLUDEBASEHEADER\\$[\\n ]*" ), QString::null );
+ templ.replace( TQRegExp( "\\$INCLUDEBASEHEADER\\$[\\n ]*" ), TQString::null );
if ( author.isEmpty() )
- templ.replace( QRegExp( "\\$AUTHOR\\$[\\n ]*" ), QString::null );
+ templ.replace( TQRegExp( "\\$AUTHOR\\$[\\n ]*" ), TQString::null );
if ( doc.isEmpty() )
- templ.replace( QRegExp( "\\$DOC\\$[\\n ]*" ), QString::null );
+ templ.replace( TQRegExp( "\\$DOC\\$[\\n ]*" ), TQString::null );
if ( className.isEmpty() )
- templ.replace( QRegExp( "\\$CLASSNAME\\$[\\n ]*" ), QString::null );
+ templ.replace( TQRegExp( "\\$CLASSNAME\\$[\\n ]*" ), TQString::null );
if ( templateStr.isEmpty() )
- templ.replace( QRegExp( "\\$TEMPLATE\\$[\\n ]*" ), QString::null );
+ templ.replace( TQRegExp( "\\$TEMPLATE\\$[\\n ]*" ), TQString::null );
if ( baseclass.isEmpty() )
- templ.replace( QRegExp( "\\$BASECLASS\\$[\\n ]*" ), QString::null );
+ templ.replace( TQRegExp( "\\$BASECLASS\\$[\\n ]*" ), TQString::null );
if ( inheritance.isEmpty() )
- templ.replace( QRegExp( "\\$INHERITANCE\\$[\\n ]*" ), QString::null );
+ templ.replace( TQRegExp( "\\$INHERITANCE\\$[\\n ]*" ), TQString::null );
if ( qobjectStr.isEmpty() )
- templ.replace( QRegExp( "\\$QOBJECT\\$[\\n ]*" ), QString::null );
+ templ.replace( TQRegExp( "\\$QOBJECT\\$[\\n ]*" ), TQString::null );
if ( args.isEmpty() )
- templ.replace( QRegExp( "\\$ARGS\\$[\\n ]*" ), QString::null );
+ templ.replace( TQRegExp( "\\$ARGS\\$[\\n ]*" ), TQString::null );
if ( header.isEmpty() )
- templ.replace( QRegExp( "\\$FILENAME\\$[\\n ]*" ), QString::null );
+ templ.replace( TQRegExp( "\\$FILENAME\\$[\\n ]*" ), TQString::null );
if ( namespaceBeg.isEmpty() )
- templ.replace( QRegExp( "\\$NAMESPACEBEG\\$[\\n ]*" ), QString::null );
+ templ.replace( TQRegExp( "\\$NAMESPACEBEG\\$[\\n ]*" ), TQString::null );
if ( constructors.isEmpty() )
- templ.replace( QRegExp( "\\$CONSTRUCTORDECLARATIONS\\$[\\n ]*" ), QString::null );
+ templ.replace( TQRegExp( "\\$CONSTRUCTORDECLARATIONS\\$[\\n ]*" ), TQString::null );
if ( advH_public.isEmpty() )
- templ.replace( QRegExp( "\\$PUBLICDECLARATIONS\\$[\\n ]*" ), QString::null );
+ templ.replace( TQRegExp( "\\$PUBLICDECLARATIONS\\$[\\n ]*" ), TQString::null );
if ( advH_public_slots.isEmpty() )
- templ.replace( QRegExp( "\\$PUBLICSLOTS\\$[\\n ]*" ), QString::null );
+ templ.replace( TQRegExp( "\\$PUBLICSLOTS\\$[\\n ]*" ), TQString::null );
if ( advH_protected.isEmpty() )
- templ.replace( QRegExp( "\\$PROTECTEDDECLARATIONS\\$[\\n ]*" ), QString::null );
+ templ.replace( TQRegExp( "\\$PROTECTEDDECLARATIONS\\$[\\n ]*" ), TQString::null );
if ( advH_protected_slots.isEmpty() )
- templ.replace( QRegExp( "\\$PROTECTEDSLOTS\\$[\\n ]*" ), QString::null );
+ templ.replace( TQRegExp( "\\$PROTECTEDSLOTS\\$[\\n ]*" ), TQString::null );
if ( advH_private.isEmpty() )
- templ.replace( QRegExp( "\\$PRIVATEDECLARATIONS\\$[\\n ]*" ), QString::null );
+ templ.replace( TQRegExp( "\\$PRIVATEDECLARATIONS\\$[\\n ]*" ), TQString::null );
if ( advH_private_slots.isEmpty() )
- templ.replace( QRegExp( "\\$PRIVATESLOTS\\$[\\n ]*" ), QString::null );
+ templ.replace( TQRegExp( "\\$PRIVATESLOTS\\$[\\n ]*" ), TQString::null );
if ( namespaceEnd.isEmpty() )
- templ.replace( QRegExp( "\\$NAMESPACEEND\\$[\\n ]*" ), QString::null );
+ templ.replace( TQRegExp( "\\$NAMESPACEEND\\$[\\n ]*" ), TQString::null );
}
-void CppNewClassDialog::ClassGenerator::beautifySource( QString &templ, QString &header, QString &className, QString &namespaceBeg,
- QString &constructors, QString &advCpp, QString &namespaceEnd, QString &implementation )
+void CppNewClassDialog::ClassGenerator::beautifySource( TQString &templ, TQString &header, TQString &className, TQString &namespaceBeg,
+ TQString &constructors, TQString &advCpp, TQString &namespaceEnd, TQString &implementation )
{
if ( header.isEmpty() )
- templ.replace( QRegExp( "\\$HEADER\\$[\\n ]*" ), QString::null );
+ templ.replace( TQRegExp( "\\$HEADER\\$[\\n ]*" ), TQString::null );
if ( className.isEmpty() )
- templ.replace( QRegExp( "\\$CLASSNAME\\$[\\n ]*" ), QString::null );
+ templ.replace( TQRegExp( "\\$CLASSNAME\\$[\\n ]*" ), TQString::null );
if ( namespaceBeg.isEmpty() )
- templ.replace( QRegExp( "\\$NAMESPACEBEG\\$[\\n ]*" ), QString::null );
+ templ.replace( TQRegExp( "\\$NAMESPACEBEG\\$[\\n ]*" ), TQString::null );
if ( constructors.isEmpty() )
- templ.replace( QRegExp( "\\$CONSTRUCTORDEFINITIONS\\$[\\n ]*" ), QString::null );
+ templ.replace( TQRegExp( "\\$CONSTRUCTORDEFINITIONS\\$[\\n ]*" ), TQString::null );
if ( advCpp.isEmpty() )
- templ.replace( QRegExp( "\\$DEFINITIONS\\$[\\n ]*" ), QString::null );
+ templ.replace( TQRegExp( "\\$DEFINITIONS\\$[\\n ]*" ), TQString::null );
if ( namespaceEnd.isEmpty() )
- templ.replace( QRegExp( "\\$NAMESPACEEND\\$[\\n ]*" ), QString::null );
+ templ.replace( TQRegExp( "\\$NAMESPACEEND\\$[\\n ]*" ), TQString::null );
if ( implementation.isEmpty() )
- templ.replace( QRegExp( "\\$FILENAME\\$[\\n ]*" ), QString::null );
+ templ.replace( TQRegExp( "\\$FILENAME\\$[\\n ]*" ), TQString::null );
}
-QString CppNewClassDialog::classNameFormatted( )
+TQString CppNewClassDialog::classNameFormatted( )
{
return classNameFormatted( classname_edit->text() );
}
-QString CppNewClassDialog::classNameFormatted( const QString &name )
+TQString CppNewClassDialog::classNameFormatted( const TQString &name )
{
- QString temp = name.simplifyWhiteSpace();
- return temp.replace( QRegExp( "template *<.*> *(class *)?" ), "" );
+ TQString temp = name.simplifyWhiteSpace();
+ return temp.replace( TQRegExp( "template *<.*> *(class *)?" ), "" );
}
-QString CppNewClassDialog::templateStrFormatted( )
+TQString CppNewClassDialog::templateStrFormatted( )
{
return templateStrFormatted( classname_edit->text() );
}
-QString CppNewClassDialog::templateStrFormatted( const QString &name )
+TQString CppNewClassDialog::templateStrFormatted( const TQString &name )
{
- QString className = name.simplifyWhiteSpace();
- QString temp = className;
- className.replace( QRegExp( "template *<.*> *(class *)?" ), "" );
- QString templateStr = temp.replace( QRegExp( QRegExp_escape( className ) ), "" );
- templateStr.replace( QRegExp( " *class *$" ), "" );
+ TQString className = name.simplifyWhiteSpace();
+ TQString temp = className;
+ className.replace( TQRegExp( "template *<.*> *(class *)?" ), "" );
+ TQString templateStr = temp.replace( TQRegExp( QRegExp_escape( className ) ), "" );
+ templateStr.replace( TQRegExp( " *class *$" ), "" );
return templateStr;
}
-QString CppNewClassDialog::templateParamsFormatted( )
+TQString CppNewClassDialog::templateParamsFormatted( )
{
return templateParamsFormatted( classname_edit->text() );
}
-QString CppNewClassDialog::templateParamsFormatted( const QString &name )
+TQString CppNewClassDialog::templateParamsFormatted( const TQString &name )
{
- QString className = name.simplifyWhiteSpace();
- QString temp = className;
- className.replace( QRegExp( "template *<.*> *(class *)?" ), "" );
- QString templateStr = temp.replace( QRegExp( QRegExp_escape( className ) ), "" );
- templateStr.replace( QRegExp( " *class *$" ), "" );
+ TQString className = name.simplifyWhiteSpace();
+ TQString temp = className;
+ className.replace( TQRegExp( "template *<.*> *(class *)?" ), "" );
+ TQString templateStr = temp.replace( TQRegExp( QRegExp_escape( className ) ), "" );
+ templateStr.replace( TQRegExp( " *class *$" ), "" );
- QString templateParams = templateStr;
- templateParams.replace( QRegExp( "^ *template *" ), "" );
- templateParams.replace( QRegExp( " *class *" ), "" );
+ TQString templateParams = templateStr;
+ templateParams.replace( TQRegExp( "^ *template *" ), "" );
+ templateParams.replace( TQRegExp( " *class *" ), "" );
templateParams.simplifyWhiteSpace();
return templateParams;
}
-QString CppNewClassDialog::templateActualParamsFormatted( const QString & name )
+TQString CppNewClassDialog::templateActualParamsFormatted( const TQString & name )
{
- QString className = name.simplifyWhiteSpace();
- QString temp = className;
- className.replace( QRegExp( "<.*> *" ), "" );
- QString templateStr = temp.replace( QRegExp( QRegExp_escape( className ) ), "" );
+ TQString className = name.simplifyWhiteSpace();
+ TQString temp = className;
+ className.replace( TQRegExp( "<.*> *" ), "" );
+ TQString templateStr = temp.replace( TQRegExp( QRegExp_escape( className ) ), "" );
return templateStr;
}
-void CppNewClassDialog::removeTemplateParams( QString & name )
+void CppNewClassDialog::removeTemplateParams( TQString & name )
{
- name.replace( QRegExp( "<.*> *" ), "" );
+ name.replace( TQRegExp( "<.*> *" ), "" );
}
-bool CppNewClassDialog::isDestructor( QString className, const FunctionDom &method )
+bool CppNewClassDialog::isDestructor( TQString className, const FunctionDom &method )
{
- if ( m_part->formatModelItem( method.data() ).contains( QRegExp( " *~ *" + className ) ) )
+ if ( m_part->formatModelItem( method.data() ).contains( TQRegExp( " *~ *" + className ) ) )
return true;
return false;
}
diff --git a/languages/cpp/cppnewclassdlg.h b/languages/cpp/cppnewclassdlg.h
index fb680921..18399d1c 100644
--- a/languages/cpp/cppnewclassdlg.h
+++ b/languages/cpp/cppnewclassdlg.h
@@ -16,9 +16,9 @@
#ifndef _CPPNEWCLASSDLG_H_
#define _CPPNEWCLASSDLG_H_
-#include <qlineedit.h>
-#include <qlistview.h>
-#include <qwidgetstack.h>
+#include <tqlineedit.h>
+#include <tqlistview.h>
+#include <tqwidgetstack.h>
#include "codemodel.h"
#include "cppnewclassdlgbase.h"
@@ -35,36 +35,36 @@ class PCheckListItem: public QCheckListItem
{
public:
- PCheckListItem ( T item, QCheckListItem * parent, const QString & text, Type tt = Controller ) :
- QCheckListItem ( parent, text, tt ), m_item( item )
+ PCheckListItem ( T item, TQCheckListItem * parent, const TQString & text, Type tt = Controller ) :
+ TQCheckListItem ( parent, text, tt ), m_item( item )
{}
- PCheckListItem ( T item, QCheckListItem * parent, QListViewItem * after, const QString & text, Type tt = Controller ) :
- QCheckListItem ( parent, after, 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, QListViewItem * parent, const QString & text, Type tt = Controller ) :
- QCheckListItem ( parent, 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, QListViewItem * parent, QListViewItem * after, const QString & text, Type tt = Controller ) :
- QCheckListItem ( parent, after, 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, QListView * parent, const QString & text, Type tt = Controller ) :
- QCheckListItem ( parent, 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, QListView * parent, QListViewItem * after, const QString & text, Type tt = Controller ) :
- QCheckListItem ( parent, after, 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, QListViewItem * parent, const QString & text, const QPixmap & p ) :
- QCheckListItem ( parent, text, p ), m_item( item )
+ PCheckListItem ( T item, TQListViewItem * parent, const TQString & text, const TQPixmap & p ) :
+ TQCheckListItem ( parent, text, p ), m_item( item )
{}
- PCheckListItem ( T item, QListView * parent, const QString & text, const QPixmap & p ) :
- QCheckListItem ( parent, text, p ), m_item( item )
+ PCheckListItem ( T item, TQListView * parent, const TQString & text, const TQPixmap & p ) :
+ TQCheckListItem ( parent, text, p ), m_item( item )
{}
T item()
@@ -72,7 +72,7 @@ public:
return m_item;
}
- QString templateAddition;
+ TQString templateAddition;
private:
T m_item;
@@ -83,20 +83,20 @@ class PListViewItem: public QListViewItem
{
public:
- PListViewItem ( T item, QListViewItem * parent, QListViewItem * after, const QString & text ) :
- QListViewItem ( parent, after, text ), m_item( item )
+ PListViewItem ( T item, TQListViewItem * parent, TQListViewItem * after, const TQString & text ) :
+ TQListViewItem ( parent, after, text ), m_item( item )
{}
- PListViewItem ( T item, QListViewItem * parent, const QString & text ) :
- QListViewItem ( parent, text ), m_item( item )
+ PListViewItem ( T item, TQListViewItem * parent, const TQString & text ) :
+ TQListViewItem ( parent, text ), m_item( item )
{}
- PListViewItem ( T item, QListView * parent, const QString & text ) :
- QListViewItem ( parent, text ), m_item( item )
+ PListViewItem ( T item, TQListView * parent, const TQString & text ) :
+ TQListViewItem ( parent, text ), m_item( item )
{}
- PListViewItem ( T item, QListView * parent, QListViewItem * after, const QString & text ) :
- QListViewItem ( parent, after, text ), m_item( item )
+ PListViewItem ( T item, TQListView * parent, TQListViewItem * after, const TQString & text ) :
+ TQListViewItem ( parent, after, text ), m_item( item )
{}
T item()
@@ -104,7 +104,7 @@ public:
return m_item;
}
- QString templateAddition;
+ TQString templateAddition;
private:
T m_item;
};
@@ -115,28 +115,28 @@ class CppNewClassDialog : public CppNewClassDialogBase
Q_OBJECT
public:
- CppNewClassDialog( CppSupportPart *part, QWidget *parent = 0, const char *name = 0 );
+ CppNewClassDialog( CppSupportPart *part, TQWidget *parent = 0, const char *name = 0 );
~CppNewClassDialog();
protected:
virtual void accept();
- virtual void classNameChanged( const QString &text );
- virtual void classNamespaceChanged( const QString &text );
+ virtual void classNameChanged( const TQString &text );
+ virtual void classNamespaceChanged( const TQString &text );
virtual void headerChanged();
virtual void implementationChanged();
- virtual void nameHandlerChanged( const QString &text );
- virtual void baseclassname_changed( const QString &text );
- virtual void baseIncludeChanged( const QString &text );
+ virtual void nameHandlerChanged( const TQString &text );
+ virtual void baseclassname_changed( const TQString &text );
+ virtual void baseIncludeChanged( const TQString &text );
virtual void addBaseClass();
virtual void remBaseClass();
virtual void remBaseClassOnly();
- virtual void currBaseNameChanged( const QString &text );
+ virtual void currBaseNameChanged( const TQString &text );
virtual void currBasePrivateSet();
virtual void currBaseProtectedSet();
virtual void currBasePublicSet();
virtual void currBaseVirtualChanged( int val );
- virtual void currBaseSelected( QListViewItem *it );
+ virtual void currBaseSelected( TQListViewItem *it );
virtual void scopeboxActivated( int value );
virtual void checkObjCInheritance( int val );
@@ -146,14 +146,14 @@ protected:
virtual void downbaseclass_button_clicked();
virtual void baseclasses_view_selectionChanged();
- virtual void newTabSelected( const QString &text );
- virtual void newTabSelected( QWidget *w );
- virtual void access_view_mouseButtonPressed( int button, QListViewItem * item, const QPoint &p, int c );
+ virtual void newTabSelected( const TQString &text );
+ virtual void newTabSelected( TQWidget *w );
+ virtual void access_view_mouseButtonPressed( int button, TQListViewItem * item, const TQPoint &p, int c );
virtual void changeToPrivate();
virtual void changeToProtected();
virtual void changeToPublic();
virtual void changeToInherited();
- virtual void methods_view_mouseButtonPressed( int button , QListViewItem * item, const QPoint&p , int c );
+ virtual void methods_view_mouseButtonPressed( int button , TQListViewItem * item, const TQPoint&p , int c );
virtual void extendFunctionality();
virtual void replaceFunctionality();
virtual void to_constructors_list_clicked();
@@ -164,59 +164,59 @@ protected:
virtual void headeronly_box_stateChanged(int val);
void reloadAdvancedInheritance( bool clean = false );
- void parseClass( QString clName, QString inheritance );
- void parsePCSClass( QString clName, QString inheritance );
- void addToConstructorsList( QCheckListItem *myClass, FunctionDom method );
- void addToMethodsList( QListViewItem *parent, FunctionDom method );
- void addToUpgradeList( QListViewItem *parent, FunctionDom method, QString modifier );
- void addToUpgradeList( QListViewItem *parent, VariableDom attr, QString modifier );
+ 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 clearConstructorsList( bool clean = false );
void clearMethodsList( bool clean = false );
void clearUpgradeList( bool clean = false );
- bool isConstructor( QString className, const FunctionDom &method );
- bool isDestructor( QString className, const FunctionDom &method );
+ bool isConstructor( TQString className, const FunctionDom &method );
+ bool isDestructor( TQString className, const FunctionDom &method );
private:
bool headerModified;
bool baseincludeModified;
bool implementationModified;
- QString m_parse;
- QPopupMenu *accessMenu;
- QPopupMenu *overMenu;
+ TQString m_parse;
+ TQPopupMenu *accessMenu;
+ TQPopupMenu *overMenu;
CppSupportPart *m_part;
CodeModel *myModel;
// configuration variables
- QString interface_url;
- QString implementation_url;
- QString interface_suffix;
- QString implementation_suffix;
- QStringList currNamespace;
+ TQString interface_url;
+ TQString implementation_url;
+ TQString interface_suffix;
+ TQString implementation_suffix;
+ TQStringList currNamespace;
bool lowercase_filenames;
- QStringList currBaseClasses;
+ TQStringList currBaseClasses;
KCompletion * compBasename;
KCompletion * compNamespace;
void setCompletionBasename( CodeModel *model );
- void addCompletionBasenameNamespacesRecursive( const NamespaceDom & namespaceDom, const QString & namespaceParent = "" );
- void setCompletionNamespaceRecursive( const NamespaceDom & namespaceDom, const QString & namespaceParent = "" );
+ void addCompletionBasenameNamespacesRecursive( const NamespaceDom & namespaceDom, const TQString & namespaceParent = "" );
+ void setCompletionNamespaceRecursive( const NamespaceDom & namespaceDom, const TQString & namespaceParent = "" );
void setStateOfInheritanceEditors( bool state, bool hideList = true );
- void setAccessForBase( QString baseclass, QString newAccess );
- void setAccessForItem( QListViewItem *curr, QString newAccess, bool isPublic );
- void remClassFromAdv( QString text );
+ void setAccessForBase( TQString baseclass, TQString newAccess );
+ void setAccessForItem( TQListViewItem *curr, TQString newAccess, bool isPublic );
+ void remClassFromAdv( TQString text );
void checkUpButtonState();
void checkDownButtonState();
void updateConstructorsOrder();
- QString classNameFormatted();
- QString templateStrFormatted();
- QString templateParamsFormatted();
- QString classNameFormatted( const QString & );
- QString templateStrFormatted( const QString & );
- QString templateParamsFormatted( const QString & );
- QString templateActualParamsFormatted( const QString & );
- void removeTemplateParams( QString & );
+ TQString classNameFormatted();
+ TQString templateStrFormatted();
+ TQString templateParamsFormatted();
+ TQString classNameFormatted( const TQString & );
+ TQString templateStrFormatted( const TQString & );
+ TQString templateParamsFormatted( const TQString & );
+ TQString templateActualParamsFormatted( const TQString & );
+ void removeTemplateParams( TQString & );
friend class ClassGenerator;
@@ -234,49 +234,49 @@ private:
void common_text();
void gen_implementation();
void gen_interface();
- void genMethodDeclaration( FunctionDom method, QString className, QString templateStr,
- QString *adv_h, QString *adv_cpp, bool extend, QString baseClassName );
-
- void beautifyHeader( QString &templ, QString &headerGuard,
- QString &includeBaseHeader, QString &author, QString &doc, QString &className, QString &templateStr,
- QString &baseclass, QString &inheritance, QString &qobjectStr, QString &args,
- QString &header, QString &namespaceBeg, QString &constructors, QString &advH_public,
- QString &advH_public_slots,
- QString &advH_protected, QString &advH_protected_slots, QString &advH_private, QString &advH_private_slots,
- QString &namespaceEnd );
- void beautifySource( QString &templ, QString &header, QString &className, QString &namespaceBeg,
- QString &constructors, QString &advCpp, QString &namespaceEnd, QString &implementation );
-
- QString className;
- QString templateStr;
- QString templateParams;
- QString header;
- QString implementation;
-
- QString advConstructorsHeader;
- QString advConstructorsSource;
+ void genMethodDeclaration( FunctionDom method, TQString className, TQString templateStr,
+ TQString *adv_h, TQString *adv_cpp, bool extend, TQString baseClassName );
+
+ void beautifyHeader( TQString &templ, TQString &headerGuard,
+ TQString &includeBaseHeader, TQString &author, TQString &doc, TQString &className, TQString &templateStr,
+ TQString &baseclass, TQString &inheritance, TQString &qobjectStr, TQString &args,
+ TQString &header, TQString &namespaceBeg, TQString &constructors, TQString &advH_public,
+ TQString &advH_public_slots,
+ TQString &advH_protected, TQString &advH_protected_slots, TQString &advH_private, TQString &advH_private_slots,
+ TQString &namespaceEnd );
+ void beautifySource( TQString &templ, TQString &header, TQString &className, TQString &namespaceBeg,
+ TQString &constructors, TQString &advCpp, TQString &namespaceEnd, TQString &implementation );
+
+ TQString className;
+ TQString templateStr;
+ TQString templateParams;
+ TQString header;
+ TQString implementation;
+
+ TQString advConstructorsHeader;
+ TQString advConstructorsSource;
KDevProject *project;
- QString subDir, headerPath, implementationPath;
- QString doc;
- QString namespaceStr;
+ TQString subDir, headerPath, implementationPath;
+ TQString doc;
+ TQString namespaceStr;
bool childClass;
bool objc;
bool qobject;
bool gtk;
bool headeronly;
- QStringList namespaces;
- QString namespaceBeg, namespaceEnd;
- QString argsH;
- QString argsCpp;
-
- QString advH_public;
- QString advH_public_slots;
- QString advH_protected;
- QString advH_protected_slots;
- QString advH_private;
- QString advH_private_slots;
- QString advCpp;
+ TQStringList namespaces;
+ TQString namespaceBeg, namespaceEnd;
+ TQString argsH;
+ TQString argsCpp;
+
+ TQString advH_public;
+ TQString advH_public_slots;
+ TQString advH_protected;
+ TQString advH_protected_slots;
+ TQString advH_private;
+ TQString advH_private_slots;
+ TQString advCpp;
CppNewClassDialog& dlg;
diff --git a/languages/cpp/cppsplitheadersourceconfig.cpp b/languages/cpp/cppsplitheadersourceconfig.cpp
index 68253368..7298354b 100644
--- a/languages/cpp/cppsplitheadersourceconfig.cpp
+++ b/languages/cpp/cppsplitheadersourceconfig.cpp
@@ -25,12 +25,12 @@
#include <domutil.h>
#include <kdebug.h>
-#include <qdom.h>
+#include <tqdom.h>
-QString CppSplitHeaderSourceConfig::defaultPath = QString::fromLatin1( "/kdevcppsupport/splitheadersource" );
+TQString CppSplitHeaderSourceConfig::defaultPath = TQString::fromLatin1( "/kdevcppsupport/splitheadersource" );
-CppSplitHeaderSourceConfig::CppSplitHeaderSourceConfig( CppSupportPart * part, QDomDocument* dom )
- : QObject( part ), m_part( part ), m_dom( dom )
+CppSplitHeaderSourceConfig::CppSplitHeaderSourceConfig( CppSupportPart * part, TQDomDocument* dom )
+ : TQObject( part ), m_part( part ), m_dom( dom )
{
init();
}
@@ -73,7 +73,7 @@ void CppSplitHeaderSourceConfig::setAutoSync( bool b )
m_splitSync = b;
}
-void CppSplitHeaderSourceConfig::setOrientation( const QString &o )
+void CppSplitHeaderSourceConfig::setOrientation( const TQString &o )
{
m_splitOrientation = o;
}
diff --git a/languages/cpp/cppsplitheadersourceconfig.h b/languages/cpp/cppsplitheadersourceconfig.h
index d975bc2c..52be4297 100644
--- a/languages/cpp/cppsplitheadersourceconfig.h
+++ b/languages/cpp/cppsplitheadersourceconfig.h
@@ -21,7 +21,7 @@
#ifndef CPPSPLITHEADERSOURCECONFIG_H
#define CPPSPLITHEADERSOURCECONFIG_H
-#include <qobject.h>
+#include <tqobject.h>
class CppSupportPart;
class QDomDocument;
@@ -30,7 +30,7 @@ class CppSplitHeaderSourceConfig : public QObject
{
Q_OBJECT
public:
- CppSplitHeaderSourceConfig( CppSupportPart* part, QDomDocument* dom );
+ CppSplitHeaderSourceConfig( CppSupportPart* part, TQDomDocument* dom );
virtual ~CppSplitHeaderSourceConfig();
bool splitEnabled() const
@@ -45,11 +45,11 @@ public:
}
void setAutoSync( bool b );
- QString orientation() const
+ TQString orientation() const
{
return m_splitOrientation;
}
- void setOrientation( const QString &o );
+ void setOrientation( const TQString &o );
public slots:
void store();
@@ -62,12 +62,12 @@ signals:
private:
CppSupportPart* m_part;
- QDomDocument* m_dom;
+ TQDomDocument* m_dom;
bool m_splitEnable;
bool m_splitSync;
- QString m_splitOrientation;
+ TQString m_splitOrientation;
- static QString defaultPath;
+ static TQString defaultPath;
};
#endif
diff --git a/languages/cpp/cppsupport_events.h b/languages/cpp/cppsupport_events.h
index 0c266726..2dbac39a 100644
--- a/languages/cpp/cppsupport_events.h
+++ b/languages/cpp/cppsupport_events.h
@@ -14,29 +14,29 @@
#include "kdevdeepcopy.h"
-#include <qevent.h>
-#include <qvaluelist.h>
+#include <tqevent.h>
+#include <tqvaluelist.h>
#if QT_VERSION < 0x030100
#include <kdevmutex.h>
#else
-#include <qmutex.h>
+#include <tqmutex.h>
#endif
enum
{
- Event_FileParsed = QEvent::User + 1000
+ Event_FileParsed = TQEvent::User + 1000
};
class FileParsedEvent: public QCustomEvent
{
public:
- FileParsedEvent( const QString& fileName, const QValueList<Problem>& problems, bool fromDisk = false )
- : QCustomEvent( Event_FileParsed ), m_fileName( deepCopy( fileName ) ), m_fromDisk( fromDisk )
+ FileParsedEvent( const TQString& fileName, const TQValueList<Problem>& problems, bool fromDisk = false )
+ : TQCustomEvent( Event_FileParsed ), m_fileName( deepCopy( fileName ) ), m_fromDisk( fromDisk )
{
// the members are deep copies
- QValueListConstIterator<Problem> it = problems.begin();
+ TQValueListConstIterator<Problem> it = problems.begin();
while ( it != problems.end() )
{
Problem p = *it;
@@ -46,11 +46,11 @@ public:
}
}
- QString fileName() const
+ TQString fileName() const
{
return m_fileName;
}
- QValueList<Problem> problems() const
+ TQValueList<Problem> problems() const
{
return m_problems;
}
@@ -60,8 +60,8 @@ public:
}
private:
- QString m_fileName;
- QValueList<Problem> m_problems;
+ TQString m_fileName;
+ TQValueList<Problem> m_problems;
bool m_fromDisk;
private:
diff --git a/languages/cpp/cppsupport_utils.cpp b/languages/cpp/cppsupport_utils.cpp
index e6f80abc..338fa724 100644
--- a/languages/cpp/cppsupport_utils.cpp
+++ b/languages/cpp/cppsupport_utils.cpp
@@ -1,4 +1,4 @@
-#include <qdir.h>
+#include <tqdir.h>
#include <kapplication.h>
#include <kconfig.h>
@@ -8,26 +8,26 @@
#include "cppsupport_utils.h"
-static void typeNameList( QStringList& path, QStringList & lst, const CodeModel * model );
-static void typeNameList( QStringList& path, QStringList & lst, NamespaceDom ns );
-static void typeNameList( QStringList & path, QStringList & lst, ClassDom klass );
+static void typeNameList( TQStringList& path, TQStringList & lst, const CodeModel * model );
+static void typeNameList( TQStringList& path, TQStringList & lst, NamespaceDom ns );
+static void typeNameList( TQStringList & path, TQStringList & lst, ClassDom klass );
-QStringList typeNameList( const CodeModel* model )
+TQStringList typeNameList( const CodeModel* model )
{
- QStringList lst;
- QStringList path;
+ TQStringList lst;
+ TQStringList path;
typeNameList( path, lst, model );
return lst;
}
-static void typeNameList( QStringList& path, QStringList & lst, const CodeModel * model )
+static void typeNameList( TQStringList& path, TQStringList & lst, const CodeModel * model )
{
const FileList fileList = model->fileList();
for( FileList::ConstIterator it=fileList.begin(); it!=fileList.end(); ++it )
typeNameList( path, lst, model_cast<NamespaceDom>(*it) );
}
-static void typeNameList( QStringList& path, QStringList & lst, NamespaceDom ns )
+static void typeNameList( TQStringList& path, TQStringList & lst, NamespaceDom ns )
{
if( !ns->isFile() )
path.push_back( ns->name() );
@@ -44,7 +44,7 @@ static void typeNameList( QStringList& path, QStringList & lst, NamespaceDom ns
path.pop_back();
}
-static void typeNameList( QStringList & path, QStringList & lst, ClassDom klass )
+static void typeNameList( TQStringList & path, TQStringList & lst, ClassDom klass )
{
path.push_back( klass->name() );
@@ -57,13 +57,13 @@ static void typeNameList( QStringList & path, QStringList & lst, ClassDom klass
path.pop_back();
}
-static void typedefMap( QMap<QString, QString> & map, const CodeModel * model );
-static void typedefMap( QMap<QString, QString> & map, NamespaceDom ns );
-static void typedefMap( QMap<QString, QString> & map, ClassDom klass );
+static void typedefMap( TQMap<TQString, TQString> & map, const CodeModel * model );
+static void typedefMap( TQMap<TQString, TQString> & map, NamespaceDom ns );
+static void typedefMap( TQMap<TQString, TQString> & map, ClassDom klass );
-QMap<QString, QString> typedefMap( const CodeModel* model )
+TQMap<TQString, TQString> typedefMap( const CodeModel* model )
{
- QMap<QString, QString> map;
+ TQMap<TQString, TQString> map;
typedefMap( map, model );
/*We need to flatten the typedefs to avoid circular aliases.
@@ -72,7 +72,7 @@ QMap<QString, QString> typedefMap( const CodeModel* model )
map["Bar"] = "Foo";
map["Baz"] = "Bar";*/
- QMap<QString, QString>::iterator it = map.begin();
+ TQMap<TQString, TQString>::iterator it = map.begin();
for ( ; it != map.end(); ++it )
{
while ( map.contains( map[ it.key() ] ) &&
@@ -85,14 +85,14 @@ QMap<QString, QString> typedefMap( const CodeModel* model )
return map;
}
-static void typedefMap( QMap<QString, QString> & map, const CodeModel * model )
+static void typedefMap( TQMap<TQString, TQString> & map, const CodeModel * model )
{
const FileList fileList = model->fileList();
for( FileList::ConstIterator it=fileList.begin(); it!=fileList.end(); ++it )
typedefMap( map, model_cast<NamespaceDom>(*it) );
}
-static void typedefMap( QMap<QString, QString> & map, NamespaceDom ns )
+static void typedefMap( TQMap<TQString, TQString> & map, NamespaceDom ns )
{
const TypeAliasList aliasList = ns->typeAliasList();
for( TypeAliasList::ConstIterator it=aliasList.begin(); it!=aliasList.end(); ++it )
@@ -107,7 +107,7 @@ static void typedefMap( QMap<QString, QString> & map, NamespaceDom ns )
typedefMap( map, *it );
}
-static void typedefMap( QMap<QString, QString> & map, ClassDom klass )
+static void typedefMap( TQMap<TQString, TQString> & map, ClassDom klass )
{
const TypeAliasList aliasList = klass->typeAliasList();
for( TypeAliasList::ConstIterator it=aliasList.begin(); it!=aliasList.end(); ++it )
@@ -118,7 +118,7 @@ static void typedefMap( QMap<QString, QString> & map, ClassDom klass )
typedefMap( map, *it );
}
-QString formattedOpeningParenthesis(bool suppressSpace)
+TQString formattedOpeningParenthesis(bool suppressSpace)
{
KConfig * config = kapp->config();
config->setGroup("AStyle");
@@ -127,7 +127,7 @@ QString formattedOpeningParenthesis(bool suppressSpace)
return "( ";
}
-QString formattedClosingParenthesis(bool suppressSpace)
+TQString formattedClosingParenthesis(bool suppressSpace)
{
KConfig * config = kapp->config();
config->setGroup("AStyle");
diff --git a/languages/cpp/cppsupport_utils.h b/languages/cpp/cppsupport_utils.h
index 9182dd08..37331eaa 100644
--- a/languages/cpp/cppsupport_utils.h
+++ b/languages/cpp/cppsupport_utils.h
@@ -12,16 +12,16 @@
#ifndef __cppsupport_utils_h
#define __cppsupport_utils_h
-#include <qmap.h>
-#include <qstringlist.h>
+#include <tqmap.h>
+#include <tqstringlist.h>
#include "codemodel.h"
-QStringList typeNameList( const CodeModel* model );
-QMap<QString, QString> typedefMap( const CodeModel* model );
+TQStringList typeNameList( const CodeModel* model );
+TQMap<TQString, TQString> typedefMap( const CodeModel* model );
-QString formattedOpeningParenthesis(bool suppressSpace = false);
-QString formattedClosingParenthesis(bool suppressSpace = false);
+TQString formattedOpeningParenthesis(bool suppressSpace = false);
+TQString formattedClosingParenthesis(bool suppressSpace = false);
#endif // __cppsupport_utils_h
// kate: indent-mode csands; tab-width 4;
diff --git a/languages/cpp/cppsupportpart.cpp b/languages/cpp/cppsupportpart.cpp
index f72b168c..334c7d6c 100644
--- a/languages/cpp/cppsupportpart.cpp
+++ b/languages/cpp/cppsupportpart.cpp
@@ -55,21 +55,21 @@
#include "configproblemreporter.h"
#include "codeinformationrepository.h"
-#include <qeventloop.h>
-#include <qheader.h>
-#include <qdir.h>
-#include <qdom.h>
-#include <qfileinfo.h>
-#include <qguardedptr.h>
-#include <qpopupmenu.h>
-#include <qprogressdialog.h>
-#include <qstringlist.h>
-#include <qtimer.h>
-#include <qstatusbar.h>
-#include <qprogressbar.h>
-#include <qregexp.h>
-#include <qlabel.h>
-#include <qvbox.h>
+#include <tqeventloop.h>
+#include <tqheader.h>
+#include <tqdir.h>
+#include <tqdom.h>
+#include <tqfileinfo.h>
+#include <tqguardedptr.h>
+#include <tqpopupmenu.h>
+#include <tqprogressdialog.h>
+#include <tqstringlist.h>
+#include <tqtimer.h>
+#include <tqstatusbar.h>
+#include <tqprogressbar.h>
+#include <tqregexp.h>
+#include <tqlabel.h>
+#include <tqvbox.h>
#include <kmessagebox.h>
#include <kaction.h>
#include <kapplication.h>
@@ -110,11 +110,11 @@ const bool alwaysParseInBackground = true;
enum { KDEV_DB_VERSION = 21 };
enum { KDEV_PCS_VERSION = 18 };
-QStringList CppSupportPart::m_sourceMimeTypes = QStringList() << "text/x-csrc" << "text/x-c++src";
-QStringList CppSupportPart::m_headerMimeTypes = QStringList() << "text/x-chdr" << "text/x-c++hdr";
+TQStringList CppSupportPart::m_sourceMimeTypes = TQStringList() << "text/x-csrc" << "text/x-c++src";
+TQStringList CppSupportPart::m_headerMimeTypes = TQStringList() << "text/x-chdr" << "text/x-c++hdr";
-QStringList CppSupportPart::m_sourceExtensions = QStringList::split( ",", "c,C,cc,cpp,c++,cxx,m,mm,M" );
-QStringList CppSupportPart::m_headerExtensions = QStringList::split( ",", "h,H,hh,h++,hxx,hpp,inl,tlh,diff,ui.h" );
+TQStringList CppSupportPart::m_sourceExtensions = TQStringList::split( ",", "c,C,cc,cpp,c++,cxx,m,mm,M" );
+TQStringList CppSupportPart::m_headerExtensions = TQStringList::split( ",", "h,H,hh,h++,hxx,hpp,inl,tlh,diff,ui.h" );
class CppDriver: public KDevDriver
{
@@ -132,8 +132,8 @@ public:
{
cppSupport() ->problemReporter() ->removeAllProblems( fileName.fileName() );
- QValueList<Problem> pl = problems( fileName.fileName() );
- QValueList<Problem>::ConstIterator it = pl.begin();
+ TQValueList<Problem> pl = problems( fileName.fileName() );
+ TQValueList<Problem>::ConstIterator it = pl.begin();
while ( it != pl.end() )
{
const Problem & p = *it++;
@@ -156,11 +156,11 @@ public:
if( cppSupport()->_jd ) {
cppSupport()->_jd->backgroundState ++;
- cppSupport()->_jd->lastParse = QTime::currentTime();
+ cppSupport()->_jd->lastParse = TQTime::currentTime();
}
- QFileInfo fileInfo( fileName.fileName() );
- QString path = URLUtil::canonicalPath( fileName.fileName() );
+ TQFileInfo fileInfo( fileName.fileName() );
+ TQString path = URLUtil::canonicalPath( fileName.fileName() );
cppSupport()->m_timestamp[ path ] = fileInfo.lastModified();
@@ -191,7 +191,7 @@ public:
};
-CppSupportPart::CppSupportPart( QObject *parent, const char *name, const QStringList &args )
+CppSupportPart::CppSupportPart( TQObject *parent, const char *name, const TQStringList &args )
: KDevLanguageSupport( CppSupportFactory::info(), parent, 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 ),
@@ -201,10 +201,10 @@ CppSupportPart::CppSupportPart( QObject *parent, const char *name, const QString
m_pCompletionConfig = new CppCodeCompletionConfig( this, projectDom() );
m_pSplitHeaderSourceConfig = new CppSplitHeaderSourceConfig( this, projectDom() );
- m_pCreateGetterSetterConfiguration = new CreateGetterSetterConfiguration( this ); connect( m_pSplitHeaderSourceConfig, SIGNAL( stored() ),
- this, SLOT( splitHeaderSourceConfigStored() ) );
- connect( m_pCompletionConfig, SIGNAL( stored() ),
- this, SLOT( codeCompletionConfigStored() ) );
+ m_pCreateGetterSetterConfiguration = new CreateGetterSetterConfiguration( this ); connect( m_pSplitHeaderSourceConfig, TQT_SIGNAL( stored() ),
+ this, TQT_SLOT( splitHeaderSourceConfigStored() ) );
+ connect( m_pCompletionConfig, TQT_SIGNAL( stored() ),
+ this, TQT_SLOT( codeCompletionConfigStored() ) );
m_qtBuildConfig = new QtBuildConfig( this, projectDom() );
m_qtBuildConfig->store();
@@ -214,45 +214,45 @@ CppSupportPart::CppSupportPart( QObject *parent, const char *name, const QString
m_driver = new CppDriver( this );
m_problemReporter = 0;
- m_textChangedTimer = new QTimer( this );
- connect( m_textChangedTimer, SIGNAL(timeout()), this, SLOT(slotParseCurrentFile()) );
+ m_textChangedTimer = new TQTimer( this );
+ connect( m_textChangedTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotParseCurrentFile()) );
- m_cursorMovedTimer = new QTimer( this );
- connect( m_cursorMovedTimer, SIGNAL(timeout()), this, SLOT(slotCursorPositionChanged()) );
+ m_cursorMovedTimer = new TQTimer( this );
+ connect( m_cursorMovedTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotCursorPositionChanged()) );
-// m_deleteParserStoreTimer = new QTimer( this );
- m_saveMemoryTimer = new QTimer( this );
- m_buildSafeFileSetTimer = new QTimer( this );
-// m_functionHintTimer = new QTimer( this );
- connect( m_buildSafeFileSetTimer, SIGNAL(timeout()), this, SLOT(buildSafeFileSet()) );
- connect( m_saveMemoryTimer, SIGNAL(timeout()), this, SLOT(slotSaveMemory()) );
-// connect( m_deleteParserStoreTimer, SIGNAL(timeout()), this, SLOT(slotDeleteParserStore()) );
+// m_deleteParserStoreTimer = new TQTimer( this );
+ m_saveMemoryTimer = new TQTimer( this );
+ m_buildSafeFileSetTimer = new TQTimer( this );
+// m_functionHintTimer = new TQTimer( this );
+ connect( m_buildSafeFileSetTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(buildSafeFileSet()) );
+ connect( m_saveMemoryTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotSaveMemory()) );
+// connect( m_deleteParserStoreTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotDeleteParserStore()) );
resetParserStoreTimer();
m_saveMemoryTimer->start( 240000, false ); //Free some memory every 4 minutes
- // connect( m_functionHintTimer, SIGNAL(timeout()), this, SLOT(slotFunctionHint()) );
+ // connect( m_functionHintTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotFunctionHint()) );
setXMLFile( "kdevcppsupport.rc" );
m_catalogList.setAutoDelete( true );
- connect( core(), SIGNAL( projectOpened() ), this, SLOT( projectOpened() ) );
- connect( core(), SIGNAL( projectClosed() ), this, SLOT( projectClosed() ) );
- connect( core(), SIGNAL( languageChanged() ), this, SLOT( projectOpened() ) );
- connect( partController(), SIGNAL( savedFile( const KURL& ) ),
- this, SLOT( savedFile( const KURL& ) ) );
- connect( core(), SIGNAL( contextMenu( QPopupMenu *, const Context * ) ),
- this, SLOT( contextMenu( QPopupMenu *, const Context * ) ) );
- connect( partController(), SIGNAL( activePartChanged( KParts::Part* ) ),
- this, SLOT( activePartChanged( KParts::Part* ) ) );
- connect( partController(), SIGNAL( partRemoved( KParts::Part* ) ),
- this, SLOT( partRemoved( KParts::Part* ) ) );
-
- connect( core(), SIGNAL( configWidget( KDialogBase* ) ),
- this, SLOT( configWidget( KDialogBase* ) ) );
+ connect( core(), TQT_SIGNAL( projectOpened() ), this, TQT_SLOT( projectOpened() ) );
+ connect( core(), TQT_SIGNAL( projectClosed() ), this, TQT_SLOT( projectClosed() ) );
+ connect( core(), TQT_SIGNAL( languageChanged() ), this, TQT_SLOT( projectOpened() ) );
+ connect( partController(), TQT_SIGNAL( savedFile( const KURL& ) ),
+ this, TQT_SLOT( savedFile( const KURL& ) ) );
+ connect( core(), TQT_SIGNAL( contextMenu( TQPopupMenu *, const Context * ) ),
+ this, TQT_SLOT( contextMenu( TQPopupMenu *, const Context * ) ) );
+ connect( partController(), TQT_SIGNAL( activePartChanged( KParts::Part* ) ),
+ this, TQT_SLOT( activePartChanged( KParts::Part* ) ) );
+ connect( partController(), TQT_SIGNAL( partRemoved( KParts::Part* ) ),
+ this, TQT_SLOT( partRemoved( KParts::Part* ) ) );
+
+ connect( core(), TQT_SIGNAL( configWidget( KDialogBase* ) ),
+ this, TQT_SLOT( configWidget( KDialogBase* ) ) );
m_switchHeaderSourceAction = new KAction( i18n( "Switch Header/Implementation" ), SHIFT + Key_F12,
- this, SLOT( slotSwitchHeader() ),
+ this, TQT_SLOT( slotSwitchHeader() ),
actionCollection(), "edit_switchheader" );
m_switchHeaderSourceAction->setToolTip( i18n( "Switch between header and implementation files" ) );
m_switchHeaderSourceAction->setWhatsThis( i18n( "<b>Switch Header/Implementation</b><p>"
@@ -265,7 +265,7 @@ CppSupportPart::CppSupportPart( QObject *parent, const char *name, const QString
KAction *action;
action = new KAction( i18n( "Complete Text" ), CTRL + Key_Space,
- this, SLOT( slotCompleteText() ),
+ this, TQT_SLOT( slotCompleteText() ),
actionCollection(), "edit_complete_text" );
action->setToolTip( i18n( "Complete current expression" ) );
action->setWhatsThis( i18n( "<b>Complete Text</p><p>Completes current expression using "
@@ -274,11 +274,11 @@ CppSupportPart::CppSupportPart( QObject *parent, const char *name, const QString
action->setEnabled( false );
m_createGetterSetterAction = new KAction( i18n( "Create Accessor Methods" ), 0,
- this, SLOT( slotCreateAccessMethods() ), actionCollection(),
+ this, TQT_SLOT( slotCreateAccessMethods() ), actionCollection(),
"edit_create_getter_setter" );
action = new KAction( i18n( "Make Member" ), 0, Key_F2,
- this, SLOT( slotMakeMember() ),
+ this, TQT_SLOT( slotMakeMember() ),
actionCollection(), "edit_make_member" );
action->setToolTip( i18n( "Make member" ) );
action->setWhatsThis( i18n( "<b>Make member</b><p>Creates a class member function in implementation file "
@@ -286,7 +286,7 @@ CppSupportPart::CppSupportPart( QObject *parent, const char *name, const QString
action->plug( &m_DummyActionWidget );
action = new KAction( i18n( "Navigation Menu" ), 0, CTRL + ALT + Key_Space,
- this, SLOT( slotNavigate() ),
+ this, TQT_SLOT( slotNavigate() ),
actionCollection(), "edit_navigate" );
action->setToolTip( i18n( "Show the navigation-menu" ) );
action->setWhatsThis( i18n( "<b>Navigate</b><p>Shows a navigation-menu based on the type-evaluation of the item under the cursor." ) );
@@ -294,7 +294,7 @@ CppSupportPart::CppSupportPart( QObject *parent, const char *name, const QString
action = new KAction( i18n( "New Class..." ), "classnew", 0,
- this, SLOT( slotNewClass() ),
+ this, TQT_SLOT( slotNewClass() ),
actionCollection(), "project_newclass" );
action->setToolTip( i18n( "Generate a new class" ) );
action->setWhatsThis( i18n( "<b>New Class</b><p>Calls the <b>New Class</b> wizard." ) );
@@ -306,8 +306,8 @@ CppSupportPart::CppSupportPart( QObject *parent, const char *name, const QString
withcpp = true;
// daniel
- connect( core( ), SIGNAL( projectConfigWidget( KDialogBase* ) ), this,
- SLOT( projectConfigWidget( KDialogBase* ) ) );
+ connect( core( ), TQT_SIGNAL( projectConfigWidget( KDialogBase* ) ), this,
+ TQT_SLOT( projectConfigWidget( KDialogBase* ) ) );
new KDevCppSupportIface( this );
//(void) dcopClient();
@@ -336,7 +336,7 @@ CppSupportPart::~CppSupportPart()
codeRepository() ->setMainCatalog( 0 );
- QPtrListIterator<Catalog> it( m_catalogList );
+ TQPtrListIterator<Catalog> it( m_catalogList );
while ( Catalog * catalog = it.current() )
{
++it;
@@ -361,11 +361,11 @@ CppSupportPart::~CppSupportPart()
}
-void CppSupportPart::customEvent( QCustomEvent* ev )
+void CppSupportPart::customEvent( TQCustomEvent* ev )
{
kdDebug( 9007 ) << "CppSupportPart::customEvent(" << ev->type() << ")" << endl;
- QTime t;
+ TQTime t;
t.start();
bool fromDisk = false;
@@ -375,14 +375,14 @@ void CppSupportPart::customEvent( QCustomEvent* ev )
FileParsedEvent * event = ( FileParsedEvent* ) ev;
fromDisk = event->fromDisk();
- QString fileName = event->fileName();
+ TQString fileName = event->fileName();
bool hasErrors = false;
if ( m_problemReporter )
{
m_problemReporter->removeAllProblems( fileName );
- QValueList<Problem> problems = event->problems();
- QValueList<Problem>::ConstIterator it = problems.begin();
+ TQValueList<Problem> problems = event->problems();
+ TQValueList<Problem>::ConstIterator it = problems.begin();
while ( it != problems.end() )
{
const Problem & p = *it++;
@@ -413,7 +413,7 @@ void CppSupportPart::customEvent( QCustomEvent* ev )
//Increase status-bar
if( p.hasFlag( ParseEmitWaiting::Silent ) && _jd ) {
_jd->backgroundState ++;
- _jd->lastParse = QTime::currentTime();
+ _jd->lastParse = TQTime::currentTime();
}
} else {
@@ -424,7 +424,7 @@ void CppSupportPart::customEvent( QCustomEvent* ev )
//Increase status-bar
if( p.hasFlag( ParseEmitWaiting::Silent ) && _jd ) {
_jd->backgroundState ++;
- _jd->lastParse = QTime::currentTime();
+ _jd->lastParse = TQTime::currentTime();
}
}
}
@@ -433,26 +433,26 @@ void CppSupportPart::customEvent( QCustomEvent* ev )
void CppSupportPart::projectConfigWidget( KDialogBase* dlg )
{
- QVBox * vbox = 0;
+ TQVBox * vbox = 0;
vbox = dlg->addVBoxPage( i18n( "C++ Support" ), i18n( "C++ Support" ),
BarIcon( info() ->icon(), KIcon::SizeMedium ) );
CCConfigWidget* w = new CCConfigWidget( this, vbox );
- connect( dlg, SIGNAL( okClicked( ) ), w, SLOT( accept( ) ) );
+ connect( dlg, TQT_SIGNAL( okClicked( ) ), w, TQT_SLOT( accept( ) ) );
}
void CppSupportPart::configWidget( KDialogBase *dlg )
{
- QVBox * vbox = dlg->addVBoxPage( i18n( "C++ Class Generator" ), i18n( "C++ Class Generator" ),
+ TQVBox * vbox = dlg->addVBoxPage( i18n( "C++ Class Generator" ), i18n( "C++ Class Generator" ),
BarIcon( info() ->icon(), KIcon::SizeMedium ) );
ClassGeneratorConfig *w = new ClassGeneratorConfig( vbox, "classgenerator config widget" );
- connect( dlg, SIGNAL( okClicked() ), w, SLOT( storeConfig() ) );
+ connect( dlg, TQT_SIGNAL( okClicked() ), w, TQT_SLOT( storeConfig() ) );
vbox = dlg->addVBoxPage(i18n("C++ Parsing"), i18n("C++ Parsing"),
BarIcon( "source_cpp", KIcon::SizeMedium) );
ConfigureProblemReporter* ww = new ConfigureProblemReporter( vbox );
ww->setPart( this );
- connect(dlg, SIGNAL(okClicked()), ww, SLOT(accept()));
+ connect(dlg, TQT_SIGNAL(okClicked()), ww, TQT_SLOT(accept()));
}
void CppSupportPart::activePartChanged( KParts::Part *part )
@@ -465,11 +465,11 @@ void CppSupportPart::activePartChanged( KParts::Part *part )
if ( m_activeView )
{
- disconnect( m_activeView, SIGNAL( cursorPositionChanged() ), this, 0 );
+ disconnect( m_activeView, TQT_SIGNAL( cursorPositionChanged() ), this, 0 );
}
if ( m_activeDocument )
{
- disconnect( m_activeDocument, SIGNAL(textChanged()), this, 0 );
+ disconnect( m_activeDocument, TQT_SIGNAL(textChanged()), this, 0 );
}
m_isTyping = false;
@@ -480,13 +480,13 @@ void CppSupportPart::activePartChanged( KParts::Part *part )
m_activeSelection = dynamic_cast<KTextEditor::SelectionInterface*>( part );
m_activeViewCursor = dynamic_cast<KTextEditor::ViewCursorInterface*>( m_activeView );
- m_activeFileName = QString::null;
+ m_activeFileName = TQString::null;
if ( m_activeDocument )
{
m_activeFileName = URLUtil::canonicalPath( m_activeDocument->url().path() );
- QFileInfo fi( m_activeFileName );
- QString ext = fi.extension();
+ TQFileInfo fi( m_activeFileName );
+ TQString ext = fi.extension();
if ( isSource( m_activeFileName ) || isHeader( m_activeFileName ) )
enabled = true;
}
@@ -500,14 +500,14 @@ void CppSupportPart::activePartChanged( KParts::Part *part )
if ( m_activeDocument )
{
- connect( m_activeDocument, SIGNAL(textChanged()), this, SLOT(slotTextChanged()) );
+ connect( m_activeDocument, TQT_SIGNAL(textChanged()), this, TQT_SLOT(slotTextChanged()) );
m_textChangedTimer->start( 250, true ); // kick the parse timer, we might want to parse the current file
}
if ( m_activeViewCursor )
{
- connect( m_activeView, SIGNAL( cursorPositionChanged() ), this, SLOT(slotCursorMoved()) );
-// this, SLOT( slotCursorPositionChanged() ) );
+ connect( m_activeView, TQT_SIGNAL( cursorPositionChanged() ), this, TQT_SLOT(slotCursorMoved()) );
+// this, TQT_SLOT( slotCursorPositionChanged() ) );
}
@@ -516,8 +516,8 @@ void CppSupportPart::activePartChanged( KParts::Part *part )
if ( !textHintIface )
return ;
- connect( view, SIGNAL( needTextHint( int, int, QString& ) ),
- this, SLOT( slotNeedTextHint( int, int, QString& ) ) );
+ connect( view, TQT_SIGNAL( needTextHint( int, int, TQString& ) ),
+ this, TQT_SLOT( slotNeedTextHint( int, int, TQString& ) ) );
textHintIface->enableTextHints( 1000 );
#endif
@@ -537,11 +537,11 @@ void CppSupportPart::projectOpened( )
kdDebug( 9007 ) << "projectOpened( )" << endl;
m_backgroundParser = new BackgroundParser( this, &m_eventConsumed );
- m_backgroundParser->start( QThread::IdlePriority );
+ m_backgroundParser->start( TQThread::IdlePriority );
// setup the driver
- QString conf_file_name = specialHeaderName();
- if ( QFile::exists( conf_file_name ) )
+ TQString conf_file_name = specialHeaderName();
+ if ( TQFile::exists( conf_file_name ) )
m_driver->parseFile( conf_file_name, true, true, true );
m_projectDirectory = URLUtil::canonicalPath( project() ->projectDirectory() );
@@ -551,17 +551,17 @@ void CppSupportPart::projectOpened( )
embedProblemReporter();
- connect( core(), SIGNAL( configWidget( KDialogBase* ) ),
- m_problemReporter, SLOT( configWidget( KDialogBase* ) ) );
+ connect( core(), TQT_SIGNAL( configWidget( KDialogBase* ) ),
+ m_problemReporter, TQT_SLOT( configWidget( KDialogBase* ) ) );
- connect( project( ), SIGNAL( addedFilesToProject( const QStringList & ) ),
- this, SLOT( addedFilesToProject( const QStringList & ) ) );
- connect( project( ), SIGNAL( removedFilesFromProject( const QStringList & ) ),
- this, SLOT( removedFilesFromProject( const QStringList & ) ) );
- connect( project( ), SIGNAL( changedFilesInProject( const QStringList & ) ),
- this, SLOT( changedFilesInProject( const QStringList & ) ) );
- connect( project(), SIGNAL( projectCompiled() ),
- this, SLOT( slotProjectCompiled() ) );
+ connect( project( ), TQT_SIGNAL( addedFilesToProject( const TQStringList & ) ),
+ this, TQT_SLOT( addedFilesToProject( const TQStringList & ) ) );
+ connect( project( ), TQT_SIGNAL( removedFilesFromProject( const TQStringList & ) ),
+ this, TQT_SLOT( removedFilesFromProject( const TQStringList & ) ) );
+ connect( project( ), TQT_SIGNAL( changedFilesInProject( const TQStringList & ) ),
+ this, TQT_SLOT( changedFilesInProject( const TQStringList & ) ) );
+ connect( project(), TQT_SIGNAL( projectCompiled() ),
+ this, TQT_SLOT( slotProjectCompiled() ) );
m_timestamp.clear();
m_parseEmitWaiting.clear();
@@ -573,7 +573,7 @@ void CppSupportPart::projectOpened( )
m_buildSafeFileSetTimer->start( 500, true );
updateParserConfiguration(); //Necessary to respect custom include-paths and such
- QTimer::singleShot( 500, this, SLOT( initialParse( ) ) );
+ TQTimer::singleShot( 500, this, TQT_SLOT( initialParse( ) ) );
}
void CppSupportPart::embedProblemReporter( bool force )
@@ -601,17 +601,17 @@ void CppSupportPart::projectClosed( )
m_projectClosing = true;
- QStringList enabledPCSs;
- QValueList<Catalog*> catalogs = codeRepository() ->registeredCatalogs();
- for ( QValueList<Catalog*>::Iterator it = catalogs.begin(); it != catalogs.end(); ++it )
+ TQStringList enabledPCSs;
+ TQValueList<Catalog*> catalogs = codeRepository() ->registeredCatalogs();
+ for ( TQValueList<Catalog*>::Iterator it = catalogs.begin(); it != catalogs.end(); ++it )
{
Catalog* c = *it;
if ( c->enabled() )
- enabledPCSs.push_back( QFileInfo( c->dbName() ).baseName(true) );
+ enabledPCSs.push_back( TQFileInfo( c->dbName() ).baseName(true) );
}
DomUtil::writeListEntry( *project() ->projectDom(), "kdevcppsupport/references", "pcs", enabledPCSs );
- for ( QMap<KInterfaceDesigner::DesignerType, KDevDesignerIntegration*>::const_iterator it = m_designers.begin();
+ for ( TQMap<KInterfaceDesigner::DesignerType, KDevDesignerIntegration*>::const_iterator it = m_designers.begin();
it != m_designers.end(); ++it )
{
kdDebug( 9007 ) << "calling save settings fro designer integration" << endl;
@@ -656,7 +656,7 @@ void CppSupportPart::slotNavigate() {
}
-void CppSupportPart::contextMenu( QPopupMenu *popup, const Context *context )
+void CppSupportPart::contextMenu( TQPopupMenu *popup, const Context *context )
{
m_activeClass = 0;
m_activeFunction = 0;
@@ -682,12 +682,12 @@ void CppSupportPart::contextMenu( QPopupMenu *popup, const Context *context )
}
}
- QString text;
+ TQString text;
int atline, atcol;
MakeMemberHelper( text, atline, atcol );
if ( !text.isEmpty() )
{
- id = popup->insertItem( i18n( "Make Member" ), this, SLOT( slotMakeMember() ) );
+ 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 "
"based on the member declaration at the current line." ) );
}
@@ -721,7 +721,7 @@ void CppSupportPart::contextMenu( QPopupMenu *popup, const Context *context )
if ( showContextMenuExplosion )
{
//kdDebug( 9007 ) << "CppSupportPart::contextMenu 1" << endl;
- QString candidate;
+ TQString candidate;
if ( isSource( m_activeFileName ) )
candidate = sourceOrHeaderCandidate();
else
@@ -735,7 +735,7 @@ void CppSupportPart::contextMenu( QPopupMenu *popup, const Context *context )
if ( !candidate.isEmpty() && codeModel() ->hasFile( candidate ) )
{
- QPopupMenu * m2 = new QPopupMenu( popup );
+ 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 "
"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." ) );
@@ -746,15 +746,15 @@ void CppSupportPart::contextMenu( QPopupMenu *popup, const Context *context )
FunctionList functionList2 = CodeModelUtils::allFunctions( file2 );
for ( FunctionList::ConstIterator it = functionList2.begin(); it != functionList2.end(); ++it )
{
- QString text = ( *it ) ->scope().join( "::" );
+ TQString text = ( *it ) ->scope().join( "::" );
//kdDebug( 9007 ) << "CppSupportPart::contextMenu 3 text: " << text << endl;
if ( !text.isEmpty() )
{
text += "::";
}
text += formatModelItem( *it, true );
- text = text.replace( QString::fromLatin1( "&" ), QString::fromLatin1( "&&" ) );
- int id = m2->insertItem( text, this, SLOT( gotoDeclarationLine( int ) ) );
+ text = text.replace( TQString::fromLatin1( "&" ), TQString::fromLatin1( "&&" ) );
+ int id = m2->insertItem( text, this, TQT_SLOT( gotoDeclarationLine( int ) ) );
int line, column;
( *it ) ->getStartPosition( &line, &column );
m2->setItemParameter( id, line );
@@ -767,7 +767,7 @@ void CppSupportPart::contextMenu( QPopupMenu *popup, const Context *context )
//kdDebug( 9007 ) << "CppSupportPart::contextMenu 4" << endl;
}
- QString candidate1;
+ TQString candidate1;
if ( isHeader( m_activeFileName ) )
{
candidate1 = sourceOrHeaderCandidate();
@@ -779,7 +779,7 @@ void CppSupportPart::contextMenu( QPopupMenu *popup, const Context *context )
//kdDebug( 9007 ) << "CppSupportPart::go to definition in " << candidate1 << endl;
if ( codeModel() ->hasFile( candidate1 ) )
{
- QPopupMenu * m = new QPopupMenu( popup );
+ 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 "
"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." ) );
@@ -788,14 +788,14 @@ void CppSupportPart::contextMenu( QPopupMenu *popup, const Context *context )
const FunctionDefinitionList functionDefinitionList = CodeModelUtils::allFunctionDefinitionsDetailed( file ).functionList;
for ( FunctionDefinitionList::ConstIterator it = functionDefinitionList.begin(); it != functionDefinitionList.end(); ++it )
{
- QString text = ( *it ) ->scope().join( "::" );
+ TQString text = ( *it ) ->scope().join( "::" );
if ( !text.isEmpty() )
{
text += "::";
}
text += formatModelItem( *it, true );
- text = text.replace( QString::fromLatin1( "&" ), QString::fromLatin1( "&&" ) );
- int id = m->insertItem( text, this, SLOT( gotoLine( int ) ) );
+ text = text.replace( TQString::fromLatin1( "&" ), TQString::fromLatin1( "&&" ) );
+ int id = m->insertItem( text, this, TQT_SLOT( gotoLine( int ) ) );
int line, column;
( *it ) ->getStartPosition( &line, &column );
m->setItemParameter( id, line );
@@ -810,7 +810,7 @@ void CppSupportPart::contextMenu( QPopupMenu *popup, const Context *context )
}
const EditorContext *econtext = static_cast<const EditorContext*>( context );
- QString str = econtext->currentLine();
+ TQString str = econtext->currentLine();
if ( str.isEmpty() )
return ;
}
@@ -821,7 +821,7 @@ void CppSupportPart::contextMenu( QPopupMenu *popup, const Context *context )
if ( mcontext->item() ->isClass() )
{
m_activeClass = ( ClassModel* ) mcontext->item();
- int id = popup->insertItem( i18n( "Extract Interface..." ), this, SLOT( slotExtractInterface() ) );
+ 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. "
"No implementation code is extracted and no implementation code is created." ) );
}
@@ -839,17 +839,17 @@ void CppSupportPart::contextMenu( QPopupMenu *popup, const Context *context )
if ( url.fileName().endsWith( ".ui" ) )
{
m_contextFileName = url.path();
- int id = popup->insertItem( i18n( "Create or Select Implementation..." ), this, SLOT( slotCreateSubclass() ) );
+ 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." ) );
}
}
}
-QStringList makeListUnique( const QStringList& rhs ) {
- QMap<QString, bool> map;
- QStringList ret;
- for( QStringList::const_iterator it = rhs.begin(); it != rhs.end(); ++it ) {
+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() ) {
ret << *it;
map.insert( *it, true );
@@ -859,18 +859,18 @@ QStringList makeListUnique( const QStringList& rhs ) {
}
// Makes sure that header files come first
-QStringList CppSupportPart::reorder( const QStringList &list )
+TQStringList CppSupportPart::reorder( const TQStringList &list )
{
- QStringList headers, others;
+ TQStringList headers, others;
- QStringList headerExtensions = QStringList::split( ",", "h,H,hh,hxx,hpp,tlh" );
+ TQStringList headerExtensions = TQStringList::split( ",", "h,H,hh,hxx,hpp,tlh" );
- QString projectPath = project()->projectDirectory();
+ TQString projectPath = project()->projectDirectory();
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = list.begin(); it != list.end(); ++it )
{
- QString filePath = *it;
+ TQString filePath = *it;
// brilliant stuff.. this method is apparently called both with
// relative and absolute paths..
if ( !filePath.startsWith("/") )
@@ -878,7 +878,7 @@ QStringList CppSupportPart::reorder( const QStringList &list )
filePath = projectPath + "/" + filePath;
}
if( !isValidSource( filePath ) ) continue;
- if ( headerExtensions.contains( QFileInfo( filePath ).extension() ) )
+ if ( headerExtensions.contains( TQFileInfo( filePath ).extension() ) )
headers << ( filePath );
else
others << ( filePath );
@@ -887,14 +887,14 @@ QStringList CppSupportPart::reorder( const QStringList &list )
return makeListUnique( headers + others );
}
-void CppSupportPart::addedFilesToProject( const QStringList &fileList )
+void CppSupportPart::addedFilesToProject( const TQStringList &fileList )
{
m_projectFileList = project() ->allFiles();
- QStringList files = reorder( fileList );
+ TQStringList files = reorder( fileList );
- for ( QStringList::ConstIterator it = files.begin(); it != files.end(); ++it )
+ for ( TQStringList::ConstIterator it = files.begin(); it != files.end(); ++it )
{
- QString path = *it;
+ TQString path = *it;
if (!path.startsWith("/"))
path = URLUtil::canonicalPath( m_projectDirectory + "/" + ( *it ) );
@@ -904,12 +904,12 @@ void CppSupportPart::addedFilesToProject( const QStringList &fileList )
m_buildSafeFileSetTimer->start( 500, true );
}
-void CppSupportPart::removedFilesFromProject( const QStringList &fileList )
+void CppSupportPart::removedFilesFromProject( const TQStringList &fileList )
{
m_projectFileList = project() ->allFiles();
- for ( QStringList::ConstIterator it = fileList.begin(); it != fileList.end(); ++it )
+ for ( TQStringList::ConstIterator it = fileList.begin(); it != fileList.end(); ++it )
{
- QString path = URLUtil::canonicalPath( m_projectDirectory + "/" + *it );
+ TQString path = URLUtil::canonicalPath( m_projectDirectory + "/" + *it );
kdDebug( 9007 ) << "=====================> remove file: " << path << endl;
removeWithReferences( path );
@@ -918,13 +918,13 @@ void CppSupportPart::removedFilesFromProject( const QStringList &fileList )
m_buildSafeFileSetTimer->start( 500, true );
}
-void CppSupportPart::changedFilesInProject( const QStringList & fileList )
+void CppSupportPart::changedFilesInProject( const TQStringList & fileList )
{
- QStringList files = reorder( fileList );
+ TQStringList files = reorder( fileList );
- for ( QStringList::ConstIterator it = files.begin(); it != files.end(); ++it )
+ for ( TQStringList::ConstIterator it = files.begin(); it != files.end(); ++it )
{
- QString path = URLUtil::canonicalPath( m_projectDirectory + "/" + *it );
+ TQString path = URLUtil::canonicalPath( m_projectDirectory + "/" + *it );
maybeParse( path );
//emit addedSourceInfo( path );
@@ -953,16 +953,16 @@ void CppSupportPart::savedFile( const KURL &file )
#endif
}
-QString CppSupportPart::findSourceFile()
+TQString CppSupportPart::findSourceFile()
{
// get the path of the currently active document
- QFileInfo fi( m_activeFileName );
- QString path = fi.filePath();
- QString ext = fi.extension();
+ TQFileInfo fi( m_activeFileName );
+ TQString path = fi.filePath();
+ TQString ext = fi.extension();
// extract the base path (full path without '.' and extension)
- QString base = path.left( path.length() - ext.length() - 1 );
- QStringList candidates;
- if ( QStringList::split( ',', "h,H,hh,hxx,hpp,tlh" ).contains( ext ) )
+ TQString base = path.left( path.length() - ext.length() - 1 );
+ TQStringList candidates;
+ if ( TQStringList::split( ',', "h,H,hh,hxx,hpp,tlh" ).contains( ext ) )
{
candidates << ( base + ".c" );
candidates << ( base + ".cc" );
@@ -977,11 +977,11 @@ QString CppSupportPart::findSourceFile()
candidates << ( base + "_impl.h" );
}
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = candidates.begin(); it != candidates.end(); ++it )
{
kdDebug( 9007 ) << "Trying " << ( *it ) << endl;
- if ( QFileInfo( *it ).exists() )
+ if ( TQFileInfo( *it ).exists() )
{
return * it;
}
@@ -989,15 +989,15 @@ QString CppSupportPart::findSourceFile()
return m_activeFileName;
}
-QString CppSupportPart::sourceOrHeaderCandidate( const KURL &url )
+TQString CppSupportPart::sourceOrHeaderCandidate( const KURL &url )
{
- QString urlPath;
+ TQString urlPath;
if ( url.isEmpty() )
{
KTextEditor::Document * doc =
dynamic_cast<KTextEditor::Document*>( partController() ->activePart() );
if ( !doc )
- return QString::null;
+ return TQString::null;
urlPath = doc->url().path();
}
else
@@ -1005,34 +1005,34 @@ QString CppSupportPart::sourceOrHeaderCandidate( const KURL &url )
urlPath = url.path();
}
// get the path of the currently active document
- QFileInfo fi( urlPath );
- QString path = fi.filePath();
+ TQFileInfo fi( urlPath );
+ TQString path = fi.filePath();
// extract the exension
- QString ext = fi.extension();
+ TQString ext = fi.extension();
if ( ext.isEmpty() )
- return QString::null;
+ return TQString::null;
// extract the base path (full path without '.' and extension)
- QString base = path.left( path.length() - ext.length() - 1 );
+ TQString base = path.left( path.length() - ext.length() - 1 );
//kdDebug( 9007 ) << "base: " << base << ", ext: " << ext << endl;
// just the filename without the extension
- QString fileNameWoExt = fi.fileName();
+ TQString fileNameWoExt = fi.fileName();
if ( !ext.isEmpty() )
fileNameWoExt.replace( "." + ext, "" );
- QString possibleExts;
+ TQString possibleExts;
// depending on the current extension assemble a list of
// candidate files to look for
- QStringList candidates;
+ TQStringList candidates;
// special case for template classes created by the new class dialog
if ( path.endsWith( "_impl.h" ) )
{
- QString headerpath = path;
+ TQString headerpath = path;
headerpath.replace( "_impl.h", ".h" );
candidates << headerpath;
fileNameWoExt.replace( "_impl", "" );
possibleExts = "h";
}
// if file is a header file search for implementation file
- else if ( QStringList::split( ',', "h,H,hh,hxx,hpp,tlh" ).contains( ext ) )
+ else if ( TQStringList::split( ',', "h,H,hh,hxx,hpp,tlh" ).contains( ext ) )
{
candidates << ( base + ".c" );
candidates << ( base + ".cc" );
@@ -1048,7 +1048,7 @@ QString 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 ( QStringList::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" ).contains( ext ) )
{
candidates << ( base + ".h" );
candidates << ( base + ".H" );
@@ -1059,12 +1059,12 @@ QString 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 QString::null if nothing is found.
- QStringList::ConstIterator it;
+ // candidate file that actually exists or TQString::null if nothing is found.
+ TQStringList::ConstIterator it;
for ( it = candidates.begin(); it != candidates.end(); ++it )
{
//kdDebug( 9007 ) << "Trying " << ( *it ) << endl;
- if ( QFileInfo( *it ).exists() )
+ if ( TQFileInfo( *it ).exists() )
{
kdDebug( 9007 ) << "using: " << *it << endl;
return * it;
@@ -1072,10 +1072,10 @@ QString CppSupportPart::sourceOrHeaderCandidate( const KURL &url )
}
//kdDebug( 9007 ) << "Now searching in project files." << endl;
// Our last resort: search the project file list for matching files
- QStringList::iterator fileIt;
- QFileInfo candidateFileWoExt;
- QString candidateFileWoExtString;
- QStringList possibleExtsList = QStringList::split( ',', possibleExts );
+ TQStringList::iterator fileIt;
+ TQFileInfo candidateFileWoExt;
+ TQString candidateFileWoExtString;
+ TQStringList possibleExtsList = TQStringList::split( ',', possibleExts );
for ( fileIt = m_projectFileList.begin(); fileIt != m_projectFileList.end(); ++fileIt )
{
candidateFileWoExt.setFile(*fileIt);
@@ -1087,13 +1087,13 @@ QString CppSupportPart::sourceOrHeaderCandidate( const KURL &url )
if ( possibleExtsList.contains( candidateFileWoExt.extension() ) || candidateFileWoExt.extension().isEmpty() )
{
//kdDebug( 9007 ) << "checking if " << *fileIt << " exists" << endl;
- if ( QFileInfo( *fileIt ).exists() )
+ if ( TQFileInfo( *fileIt ).exists() )
kdDebug( 9007 ) << "using: " << *fileIt << endl;
return *fileIt;
}
}
}
- return QString::null;
+ return TQString::null;
}
void CppSupportPart::slotSaveMemory() {
@@ -1137,7 +1137,7 @@ void CppSupportPart::slotSwitchHeader( bool scrollOnly )
partController() ->splitCurrentDocument( url );
}
-bool CppSupportPart::switchHeaderImpl( const QString& file, int line, int col, bool scrollOnly )
+bool CppSupportPart::switchHeaderImpl( const TQString& file, int line, int col, bool scrollOnly )
{
bool handled = false;
@@ -1181,10 +1181,10 @@ FunctionDom CppSupportPart::findFunction( const FunctionDom& def )
}
FunctionDom CppSupportPart::findFunctionInNamespace( const NamespaceDom& ns, const FunctionDom& def, const std::set<NamespaceImportModel>& nsImports,
- const QString& candidateFile, int scopeIndex, FunctionDom& bestMatch )
+ const TQString& candidateFile, int scopeIndex, FunctionDom& bestMatch )
{
FunctionDom d;
- QStringList scope = def->scope();
+ TQStringList scope = def->scope();
if ( !(scopeIndex >= (signed) scope.size()) ) {
NamespaceDom ns_next = ns->namespaceByName( scope[ scopeIndex ] );
if ( ns_next ) {
@@ -1231,10 +1231,10 @@ FunctionDom CppSupportPart::findFunctionInNamespace( const NamespaceDom& ns, con
}
FunctionDom CppSupportPart::findFunctionInClass( const ClassDom& cs, const FunctionDom& def, const std::set<NamespaceImportModel>& nsImports,
- const QString& candidateFile, int scopeIndex, FunctionDom& bestMatch )
+ const TQString& candidateFile, int scopeIndex, FunctionDom& bestMatch )
{
FunctionDom d;
- QStringList scope = def->scope();
+ TQStringList scope = def->scope();
if ( !(scopeIndex >= (signed) scope.size()) ) {
ClassList classList = cs->classByName( scope[ scopeIndex ] );
for ( ClassList::ConstIterator it_cs = classList.begin(); it_cs != classList.end(); ) {
@@ -1270,7 +1270,7 @@ FunctionDom CppSupportPart::findFunctionDefinition( const FunctionDom& decl )
// Since the definition can be the child of any namespace in its scope depending on syntax, we have to check every one.
FunctionDom def, bestMatch;
NamespaceDom ns = codeModel()->globalNamespace();
- QString candidateFile = sourceOrHeaderCandidate( decl->fileName() );
+ TQString candidateFile = sourceOrHeaderCandidate( decl->fileName() );
FunctionDefinitionList functionList = ns->functionDefinitionByName( decl->name() );
for ( FunctionDefinitionList::ConstIterator it_def = functionList.begin(); it_def != functionList.end() && !def; ++it_def ) {
if ( CodeModelUtils::compareDeclarationToDefinition( decl, *it_def, ns->namespaceImports() ) ) {
@@ -1288,8 +1288,8 @@ FunctionDom CppSupportPart::findFunctionDefinition( const FunctionDom& decl )
}
}
}
- QStringList scope = decl->scope();
- for ( QStringList::ConstIterator it_scope = scope.begin(); it_scope != scope.end() && !def; ++it_scope ) {
+ TQStringList scope = decl->scope();
+ for ( TQStringList::ConstIterator it_scope = scope.begin(); it_scope != scope.end() && !def; ++it_scope ) {
NamespaceDom ns_next = ns->namespaceByName( *it_scope );
if ( ns_next ) {
ns = ns_next;
@@ -1351,15 +1351,15 @@ KDevLanguageSupport::Features CppSupportPart::features()
return Features ( Structs | Functions | Variables | Declarations );
}
-QString CppSupportPart::formatClassName( const QString &name )
+TQString CppSupportPart::formatClassName( const TQString &name )
{
- QString n = name;
+ TQString n = name;
return n.replace( ".", "::" );
}
-QString CppSupportPart::unformatClassName( const QString &name )
+TQString CppSupportPart::unformatClassName( const TQString &name )
{
- QString n = name;
+ TQString n = name;
return n.replace( "::", "." );
}
@@ -1372,7 +1372,7 @@ bool CppSupportPart::shouldSplitDocument(const KURL &url)
KURL::List::ConstIterator it = list.begin();
while ( it != list.end() )
{
- QString candidate = sourceOrHeaderCandidate( ( *it ) );
+ TQString candidate = sourceOrHeaderCandidate( ( *it ) );
if ( candidate.isEmpty() )
{
++it;
@@ -1395,7 +1395,7 @@ bool CppSupportPart::shouldSplitDocument(const KURL &url)
Qt::Orientation CppSupportPart::splitOrientation() const
{
- QString o = splitHeaderSourceConfig()->orientation();
+ TQString o = splitHeaderSourceConfig()->orientation();
if ( o == "Vertical" )
return Qt::Vertical;
else
@@ -1467,29 +1467,29 @@ bool CppSupportPart::parseProject( bool force )
kapp->setOverrideCursor( waitCursor );
_jd = new JobData;
- if( QFileInfo( project() ->projectDirectory() + "/" + project()->projectName().lower()
+ if( TQFileInfo( project() ->projectDirectory() + "/" + project()->projectName().lower()
+ ".kdevelop.pcs" ).exists())
{
- QDir d( project() ->projectDirectory());
+ TQDir d( project() ->projectDirectory());
d.rename(project() ->projectName().lower() + ".kdevelop.pcs",
project() ->projectName() +".kdevelop.pcs");
}
_jd->file.setName( project() ->projectDirectory() + "/" + project()->projectName()
+ ".kdevelop.pcs" );
- QString skip_file_name = project() ->projectDirectory() + "/" +
+ TQString skip_file_name = project() ->projectDirectory() + "/" +
project() ->projectName() + ".kdevelop.ignore_pcs";
- QString skip_lower_file_name = project() ->projectDirectory() + "/" +
+ TQString skip_lower_file_name = project() ->projectDirectory() + "/" +
project() ->projectName().lower() + ".kdevelop.ignore_pcs";
- if ( !force && !QFile::exists( skip_file_name ) &&
- !QFile::exists( skip_lower_file_name ) && _jd->file.open( IO_ReadOnly ) )
+ if ( !force && !TQFile::exists( skip_file_name ) &&
+ !TQFile::exists( skip_lower_file_name ) && _jd->file.open( IO_ReadOnly ) )
{
_jd->stream.setDevice( &( _jd->file ) );
createIgnorePCSFile();
- QString sig;
+ TQString sig;
int pcs_version = 0;
_jd->stream >> sig >> pcs_version;
if ( sig == "PCS" && pcs_version == KDEV_PCS_VERSION )
@@ -1501,7 +1501,7 @@ bool CppSupportPart::parseProject( bool force )
for ( int i = 0; i < numFiles; ++i )
{
- QString fn;
+ TQString fn;
uint ts;
uint offset;
@@ -1513,7 +1513,7 @@ bool CppSupportPart::parseProject( bool force )
_jd->files = reorder( modifiedFileList() );
- QProgressBar* bar = new QProgressBar( _jd->files.count( ), mainWindow( ) ->statusBar( ) );
+ TQProgressBar* bar = new TQProgressBar( _jd->files.count( ), mainWindow( ) ->statusBar( ) );
bar->setMinimumWidth( 120 );
bar->setCenterIndicator( true );
mainWindow( ) ->statusBar( ) ->addWidget( bar );
@@ -1522,11 +1522,11 @@ bool CppSupportPart::parseProject( bool force )
_jd->progressBar = bar;
_jd->dir.setPath( m_projectDirectory );
_jd->it = _jd->files.begin();
- _jd->reparseList = QStringList();
+ _jd->reparseList = TQStringList();
_jd->backgroundCount = 0;
_jd->cycle = 0;
- QTimer::singleShot( 0, this, SLOT( slotParseFiles() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( slotParseFiles() ) );
m_saveMemoryTimer->stop(); //Do not regularly remove cached files that may still be needed while parsing(the cache anyway be full for the whole parsing-process)
return true;
@@ -1544,15 +1544,15 @@ void CppSupportPart::slotParseFiles()
{
_jd->progressBar->setProgress( _jd->progressBar->progress() + 1 );
- QFileInfo fileInfo( _jd->dir, *( _jd->it ) );
+ TQFileInfo fileInfo( _jd->dir, *( _jd->it ) );
if ( fileInfo.exists() && fileInfo.isFile() && fileInfo.isReadable() )
{
- QString absFilePath = URLUtil::canonicalPath( fileInfo.absFilePath() );
+ TQString absFilePath = URLUtil::canonicalPath( fileInfo.absFilePath() );
if ( isValidSource( absFilePath ) )
{
- QDateTime t = fileInfo.lastModified();
+ TQDateTime t = fileInfo.lastModified();
if ( ! ( m_timestamp.contains( absFilePath ) && m_timestamp[ absFilePath ] == t ) )
{
@@ -1583,7 +1583,7 @@ void CppSupportPart::slotParseFiles()
}
++( _jd->it );
- QTimer::singleShot( 0, this, SLOT( slotParseFiles() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( slotParseFiles() ) );
if( _jd->it == _jd->files.end()) {
if( _jd->reparseList.isEmpty() ) {
@@ -1603,7 +1603,7 @@ void CppSupportPart::slotParseFiles()
_jd->lastBackgroundState = -1;
_jd->backgroundState = 0;
_jd->cycle = 1;
- _jd->lastParse = QTime::currentTime();
+ _jd->lastParse = TQTime::currentTime();
kapp->restoreOverrideCursor( );
}
}
@@ -1618,10 +1618,10 @@ void CppSupportPart::slotParseFiles()
kapp->restoreOverrideCursor( );
emit updatedSourceInfo();
mainWindow( ) ->statusBar( ) ->message( i18n( "Done" ), 2000 );
- QFile::remove( project() ->projectDirectory()
+ TQFile::remove( project() ->projectDirectory()
+ "/" + project() ->projectName()
+ ".kdevelop.ignore_pcs" );
- QFile::remove( project() ->projectDirectory()
+ TQFile::remove( project() ->projectDirectory()
+ "/" + project() ->projectName().lower()
+ ".kdevelop.ignore_pcs" );
@@ -1637,13 +1637,13 @@ void CppSupportPart::slotParseFiles()
} else {
_jd->progressBar->setProgress( _jd->backgroundState ); ///restart
_jd->progressBar->setTotalSteps( _jd->backgroundCount );
- if( _jd->lastParse.msecsTo( QTime::currentTime()) > 60000 && !m_backgroundParser->filesInQueue()) {
+ if( _jd->lastParse.msecsTo( TQTime::currentTime()) > 60000 && !m_backgroundParser->filesInQueue()) {
_jd->backgroundCount = _jd->backgroundState; ///Stop waiting if there is no progress and no file in the background-parser
- QTimer::singleShot( 0, this, SLOT( slotParseFiles() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( slotParseFiles() ) );
} else {
int timeStep = 0;
if( alwaysParseInBackground ) {
- QTimer::singleShot( 10, this, SLOT( slotParseFiles() ) );
+ TQTimer::singleShot( 10, this, TQT_SLOT( slotParseFiles() ) );
} else {
if( _jd->it == _jd->reparseList.end() ) {
/*_jd->it = _jd->files.end();
@@ -1651,7 +1651,7 @@ void CppSupportPart::slotParseFiles()
timeStep = 1;
} else {
/*///Parse the files one by one
- if( _jd->lastParse.msecsTo( QTime::currentTime()) > 100 || _jd->backgroundState != _jd->lastBackgroundState ) {*/
+ if( _jd->lastParse.msecsTo( TQTime::currentTime()) > 100 || _jd->backgroundState != _jd->lastBackgroundState ) {*/
maybeParse( *_jd->it, false );
++(_jd->it);
_jd->lastBackgroundState = _jd->backgroundState;
@@ -1659,41 +1659,41 @@ void CppSupportPart::slotParseFiles()
timeStep = 1;
}*/
}
- QTimer::singleShot( timeStep, this, SLOT( slotParseFiles() ) );
+ TQTimer::singleShot( timeStep, this, TQT_SLOT( slotParseFiles() ) );
}
}
}
}
}
-void CppSupportPart::maybeParse( const QString& fn, bool background )
+void CppSupportPart::maybeParse( const TQString& fn, bool background )
{
if ( !isValidSource( fn ) )
return ;
- QFileInfo fileInfo( fn );
- QString path = URLUtil::canonicalPath( fn );
- QDateTime t = fileInfo.lastModified();
+ TQFileInfo fileInfo( fn );
+ TQString path = URLUtil::canonicalPath( fn );
+ TQDateTime t = fileInfo.lastModified();
if ( !fileInfo.exists() )
return;
- QMap<QString, QDateTime>::Iterator it = m_timestamp.find( path );
+ TQMap<TQString, TQDateTime>::Iterator it = m_timestamp.find( path );
if ( codeModel()->hasFile( fn ) && it != m_timestamp.end() && *it == t )
return;
- QStringList l;
+ TQStringList l;
l << fn;
parseFilesAndDependencies( l, background );
}
-bool CppSupportPart::isQueued( const QString& file ) const {
+bool CppSupportPart::isQueued( const TQString& file ) const {
//int c = m_backgroundParser->countInQueue( file );
//if( c == 0 ) return false;
return m_parseEmitWaiting.waiting( file, ParseEmitWaiting::Silent, 2 ); //Since it may be possible that the background-parser is currently parsing the file(in an obselete state), it is allowed to have the file in the queue twice.
}
-void CppSupportPart::slotNeedTextHint( int line, int column, QString& textHint )
+void CppSupportPart::slotNeedTextHint( int line, int column, TQString& textHint )
{
if ( 1 || !m_activeEditor )
return ;
@@ -1723,7 +1723,7 @@ void CppSupportPart::slotNeedTextHint( int line, int column, QString& textHint )
m_backgroundParser->unlock();
}
-void CppSupportPart::MakeMemberHelper( QString& text, int& atLine, int& atColumn )
+void CppSupportPart::MakeMemberHelper( TQString& text, int& atLine, int& atColumn )
{
if ( !m_activeViewCursor || !m_valid )
return ;
@@ -1731,7 +1731,7 @@ void CppSupportPart::MakeMemberHelper( QString& text, int& atLine, int& atColumn
atLine = -2;
atColumn = 0;
- QString implFile = findSourceFile();
+ TQString implFile = findSourceFile();
m_backgroundParser->lock();
TranslationUnitAST* translationUnit = *m_backgroundParser->translationUnit( m_activeFileName );
@@ -1767,33 +1767,33 @@ void CppSupportPart::MakeMemberHelper( QString& text, int& atLine, int& atColumn
if ( !fail && decl && declarator && declarator->parameterDeclarationClause() )
{
- QStringList scope;
+ TQStringList scope;
scopeOfNode( decl, scope );
- QString scopeStr = scope.join( "::" );
+ TQString scopeStr = scope.join( "::" );
if ( !scopeStr.isEmpty() )
scopeStr += "::";
- QString declStr = declaratorToString( declarator, scopeStr ).simplifyWhiteSpace();
+ TQString declStr = declaratorToString( declarator, scopeStr ).simplifyWhiteSpace();
if ( declarator->exceptionSpecification() )
{
- declStr += QString::fromLatin1( " throw( " );
- QPtrList<AST> l = declarator->exceptionSpecification() ->nodeList();
- QPtrListIterator<AST> type_it( l );
+ declStr += TQString::fromLatin1( " throw( " );
+ TQPtrList<AST> l = declarator->exceptionSpecification() ->nodeList();
+ TQPtrListIterator<AST> type_it( l );
while ( type_it.current() )
{
declStr += type_it.current() ->text();
++type_it;
if ( type_it.current() )
- declStr += QString::fromLatin1( ", " );
+ declStr += TQString::fromLatin1( ", " );
}
- declStr += QString::fromLatin1( " )" );
+ declStr += TQString::fromLatin1( " )" );
}
text += "\n\n";
- QString type = typeSpecToString( decl->typeSpec() );
+ TQString type = typeSpecToString( decl->typeSpec() );
text += type;
if ( !type.isNull() )
text += + " ";
@@ -1815,18 +1815,18 @@ void CppSupportPart::MakeMemberHelper( QString& text, int& atLine, int& atColumn
void CppSupportPart::slotMakeMember()
{
- QString text;
+ TQString text;
int atColumn, atLine;
MakeMemberHelper( text, atLine, atColumn );
if ( !text.isEmpty() )
{
- QString implFile = findSourceFile();
+ TQString implFile = findSourceFile();
if ( !implFile.isEmpty() )
{
partController() ->editDocument( KURL( implFile ) );
- kapp->eventLoop()->processEvents( QEventLoop::ExcludeUserInput | QEventLoop::ExcludeSocketNotifiers, 500 );
+ kapp->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput | TQEventLoop::ExcludeSocketNotifiers, 500 );
}
if ( atLine == -2 )
atLine = m_activeEditor->numLines() - 1;
@@ -1845,17 +1845,17 @@ void CppSupportPart::slotMakeMember()
}
}
-QStringList CppSupportPart::subclassWidget( const QString& formName )
+TQStringList CppSupportPart::subclassWidget( const TQString& formName )
{
- QStringList newFileNames;
+ TQStringList newFileNames;
SubclassingDlg *dlg = new SubclassingDlg( this, formName, newFileNames );
dlg->exec();
return newFileNames;
}
-QStringList CppSupportPart::updateWidget( const QString& formName, const QString& fileName )
+TQStringList CppSupportPart::updateWidget( const TQString& formName, const TQString& fileName )
{
- QStringList dummy;
+ TQStringList dummy;
SubclassingDlg *dlg = new SubclassingDlg( this, formName, fileName, dummy );
dlg->exec();
return dummy;
@@ -1868,11 +1868,11 @@ void CppSupportPart::partRemoved( KParts::Part* part )
if ( KTextEditor::Document * doc = dynamic_cast<KTextEditor::Document*>( part ) )
{
- QString fileName = doc->url().path();
+ TQString fileName = doc->url().path();
if ( !isValidSource( fileName ) )
return ;
- QString canonicalFileName = URLUtil::canonicalPath( fileName );
+ TQString canonicalFileName = URLUtil::canonicalPath( fileName );
m_backgroundParser->removeFile( canonicalFileName );
m_backgroundParser->addFile( canonicalFileName, true );
}
@@ -1884,26 +1884,26 @@ void CppSupportPart::slotProjectCompiled()
parseProject();
}
-QStringList CppSupportPart::modifiedFileList()
+TQStringList CppSupportPart::modifiedFileList()
{
- QStringList lst;
+ TQStringList lst;
- QStringList fileList = m_projectFileList;
- QStringList::Iterator it = fileList.begin();
+ TQStringList fileList = m_projectFileList;
+ TQStringList::Iterator it = fileList.begin();
while ( it != fileList.end() )
{
- QString fileName = *it;
+ TQString fileName = *it;
++it;
- QFileInfo fileInfo( m_projectDirectory, fileName );
- QString path = URLUtil::canonicalPath( fileInfo.absFilePath() );
+ TQFileInfo fileInfo( m_projectDirectory, fileName );
+ TQString path = URLUtil::canonicalPath( fileInfo.absFilePath() );
if ( !( isSource( path ) || isHeader( path ) ) )
continue;
- QDateTime t = fileInfo.lastModified();
+ TQDateTime t = fileInfo.lastModified();
- QMap<QString, QDateTime>::Iterator dictIt = m_timestamp.find( path );
+ TQMap<TQString, TQDateTime>::Iterator dictIt = m_timestamp.find( path );
if ( fileInfo.exists() && dictIt != m_timestamp.end() && *dictIt == t )
continue;
@@ -1918,8 +1918,8 @@ KTextEditor::Document * CppSupportPart::findDocument( const KURL & url )
if ( !partController() ->parts() )
return 0;
- QPtrList<KParts::Part> parts( *partController() ->parts() );
- QPtrListIterator<KParts::Part> it( parts );
+ TQPtrList<KParts::Part> parts( *partController() ->parts() );
+ TQPtrListIterator<KParts::Part> it( parts );
while ( KParts::Part * part = it.current() )
{
KTextEditor::Document * doc = dynamic_cast<KTextEditor::Document*>( part );
@@ -1936,16 +1936,16 @@ void CppSupportPart::setupCatalog( )
kdDebug( 9007 ) << "CppSupportPart::setupCatalog()" << endl;
KStandardDirs *dirs = CppSupportFactory::instance() ->dirs();
- QStringList pcsList = dirs->findAllResources( "pcs", "*.db", false, true );
- QStringList pcsIdxList = dirs->findAllResources( "pcs", "*.idx", false, true );
+ TQStringList pcsList = dirs->findAllResources( "pcs", "*.db", false, true );
+ TQStringList pcsIdxList = dirs->findAllResources( "pcs", "*.idx", false, true );
- QStringList enabledPCSs;
+ TQStringList enabledPCSs;
if ( DomUtil::elementByPath( *project() ->projectDom(), "kdevcppsupport/references" ).isNull() )
{
- for ( QStringList::Iterator it = pcsList.begin(); it != pcsList.end(); ++it )
+ for ( TQStringList::Iterator it = pcsList.begin(); it != pcsList.end(); ++it )
{
kdDebug( 9007 ) << "CppSupportPart::setupCatalog()1 " << *it << endl;
- enabledPCSs.push_back( QFileInfo( *it ).baseName(true) );
+ enabledPCSs.push_back( TQFileInfo( *it ).baseName(true) );
}
}
else
@@ -1953,18 +1953,18 @@ void CppSupportPart::setupCatalog( )
enabledPCSs = DomUtil::readListEntry( *project() ->projectDom(), "kdevcppsupport/references", "pcs" );
}
- QStringList indexList = QStringList() << "kind" << "name" << "scope" << "fileName" << "prefix";
+ TQStringList indexList = TQStringList() << "kind" << "name" << "scope" << "fileName" << "prefix";
if ( pcsList.size() && pcsVersion() < KDEV_DB_VERSION )
{
- QStringList l = pcsList + pcsIdxList;
+ TQStringList l = pcsList + pcsIdxList;
int rtn = KMessageBox::questionYesNoList( 0, i18n( "Persistent class store will be disabled: you have a wrong version of pcs installed.\nRemove old pcs files?" ), l, i18n( "C++ Support" ), KStdGuiItem::del(), KStdGuiItem::cancel() );
if ( rtn == KMessageBox::Yes )
{
- QStringList::Iterator it = l.begin();
+ TQStringList::Iterator it = l.begin();
while ( it != l.end() )
{
- QFile::remove
+ TQFile::remove
( *it );
++it;
}
@@ -1977,16 +1977,16 @@ void CppSupportPart::setupCatalog( )
}
}
- QStringList::Iterator it = pcsList.begin();
+ TQStringList::Iterator it = pcsList.begin();
while ( it != pcsList.end() )
{
kdDebug( 9007 ) << "CppSupportPart::setupCatalog()2 " << *it << endl;
Catalog * catalog = new Catalog();
catalog->open( *it );
- catalog->setEnabled( enabledPCSs.contains( QFileInfo( *it ).baseName(true) ) );
+ catalog->setEnabled( enabledPCSs.contains( TQFileInfo( *it ).baseName(true) ) );
++it;
- for ( QStringList::Iterator idxIt = indexList.begin(); idxIt != indexList.end(); ++idxIt )
+ for ( TQStringList::Iterator idxIt = indexList.begin(); idxIt != indexList.end(); ++idxIt )
catalog->addIndex( ( *idxIt ).utf8() );
m_catalogList.append( catalog );
@@ -1998,12 +1998,12 @@ void CppSupportPart::setupCatalog( )
KMimeType::List CppSupportPart::mimeTypes( )
{
- QStringList mimeList;
+ TQStringList mimeList;
mimeList += m_headerMimeTypes;
mimeList += m_sourceMimeTypes;
KMimeType::List list;
- for ( QStringList::Iterator it = mimeList.begin(); it != mimeList.end(); ++it )
+ for ( TQStringList::Iterator it = mimeList.begin(); it != mimeList.end(); ++it )
{
if ( KMimeType::Ptr mime = KMimeType::mimeType( *it ) )
list << mime;
@@ -2027,17 +2027,17 @@ void CppSupportPart::setPcsVersion( int version )
config->sync();
}
-QString CppSupportPart::formatTag( const Tag & inputTag )
+TQString CppSupportPart::formatTag( const Tag & inputTag )
{
Tag tag = inputTag;
switch ( tag.kind() )
{
case Tag::Kind_Namespace:
- return QString::fromLatin1( "namespace " ) + tag.name();
+ return TQString::fromLatin1( "namespace " ) + tag.name();
case Tag::Kind_Class:
- return QString::fromLatin1( "class " ) + tag.name();
+ return TQString::fromLatin1( "class " ) + tag.name();
case Tag::Kind_Function:
case Tag::Kind_FunctionDeclaration:
@@ -2075,14 +2075,14 @@ void CppSupportPart::codeCompletionConfigStored( )
void CppSupportPart::splitHeaderSourceConfigStored( )
{
- QString o = splitHeaderSourceConfig()->orientation();
+ TQString o = splitHeaderSourceConfig()->orientation();
if ( o == "Vertical" )
emit splitOrientationChanged( Qt::Vertical );
else if ( o == "Horizontal" )
emit splitOrientationChanged( Qt::Horizontal );
}
-void CppSupportPart::removeWithReferences( const QString & fileName )
+void CppSupportPart::removeWithReferences( const TQString & fileName )
{
kdDebug( 9007 ) << "remove with references: " << fileName << endl;
m_timestamp.remove( fileName );
@@ -2094,23 +2094,23 @@ kdDebug( 9007 ) << "remove with references: " << fileName << endl;
codeModel() ->removeFile( codeModel() ->fileByName( fileName ) );
}
-bool CppSupportPart::isValidSource( const QString& fileName ) const
+bool CppSupportPart::isValidSource( const TQString& fileName ) const
{
- QFileInfo fileInfo( fileName );
- QString path = URLUtil::canonicalPath( fileInfo.absFilePath() );
+ TQFileInfo fileInfo( fileName );
+ TQString path = URLUtil::canonicalPath( fileInfo.absFilePath() );
return /*project() && project() ->isProjectFile( path )
&&*/ ( isSource( path ) || isHeader( path ) )
- && !QFile::exists( fileInfo.dirPath( true ) + "/.kdev_ignore" );
+ && !TQFile::exists( fileInfo.dirPath( true ) + "/.kdev_ignore" );
}
-QString CppSupportPart::formatModelItem( const CodeModelItem *item, bool shortDescription )
+TQString CppSupportPart::formatModelItem( const CodeModelItem *item, bool shortDescription )
{
if ( item->isFunction() || item->isFunctionDefinition() )
{
const FunctionModel * model = static_cast<const FunctionModel*>( item );
- QString function;
- QString args;
+ TQString function;
+ TQString args;
ArgumentList argumentList = model->argumentList();
for ( ArgumentList::const_iterator it = argumentList.begin(); it != argumentList.end(); ++it )
{
@@ -2118,10 +2118,10 @@ QString CppSupportPart::formatModelItem( const CodeModelItem *item, bool shortDe
args += formatModelItem( ( *it ).data() );
}
if ( !shortDescription )
- function += ( model->isVirtual() ? QString( "virtual " ) : QString( "" ) ) + model->resultType() + " ";
+ function += ( model->isVirtual() ? TQString( "virtual " ) : TQString( "" ) ) + model->resultType() + " ";
- function += model->name() + "(" + args + ")" + ( model->isConstant() ? QString( " const" ) : QString( "" ) ) +
- ( model->isAbstract() ? QString( " = 0" ) : QString( "" ) );
+ function += model->name() + "(" + args + ")" + ( model->isConstant() ? TQString( " const" ) : TQString( "" ) ) +
+ ( model->isAbstract() ? TQString( " = 0" ) : TQString( "" ) );
return function;
}
@@ -2135,12 +2135,12 @@ QString CppSupportPart::formatModelItem( const CodeModelItem *item, bool shortDe
else if ( item->isArgument() )
{
const ArgumentModel * model = static_cast<const ArgumentModel*>( item );
- QString arg;
+ TQString arg;
if ( !shortDescription )
arg += model->type() + " ";
arg += model->name();
if ( !shortDescription )
- arg += model->defaultValue().isEmpty() ? QString( "" ) : QString( " = " ) + model->defaultValue();
+ arg += model->defaultValue().isEmpty() ? TQString( "" ) : TQString( " = " ) + model->defaultValue();
return arg.stripWhiteSpace();
}
else
@@ -2159,7 +2159,7 @@ void CppSupportPart::saveProjectSourceInfo()
if ( !project() || fileList.isEmpty() )
return ;
- QFile f( project() ->projectDirectory() + "/"
+ TQFile f( project() ->projectDirectory() + "/"
+ project() ->projectName() + ".kdevelop.pcs" );
if ( !f.open( IO_WriteOnly ) )
return ;
@@ -2168,10 +2168,10 @@ void CppSupportPart::saveProjectSourceInfo()
createIgnorePCSFile();
- QDataStream stream( &f );
- QMap<QString, uint> offsets;
+ TQDataStream stream( &f );
+ TQMap<TQString, uint> offsets;
- QString pcs( "PCS" );
+ TQString pcs( "PCS" );
stream << pcs << KDEV_PCS_VERSION;
stream << int( fileList.size() );
@@ -2200,22 +2200,22 @@ void CppSupportPart::saveProjectSourceInfo()
stream.device() ->at( end );
}
- QFile::remove( project() ->projectDirectory() + "/"
+ TQFile::remove( project() ->projectDirectory() + "/"
+ project() ->projectName() + ".kdevelop.ignore_pcs" );
- QFile::remove( project() ->projectDirectory() + "/"
+ TQFile::remove( project() ->projectDirectory() + "/"
+ project() ->projectName().lower() + ".kdevelop.ignore_pcs" );
m_backgroundParser->unlock();
}
-QString CppSupportPart::extractInterface( const ClassDom& klass )
+TQString CppSupportPart::extractInterface( const ClassDom& klass )
{
- QString txt;
- QTextStream stream( &txt, IO_WriteOnly );
+ TQString txt;
+ TQTextStream stream( &txt, IO_WriteOnly );
- QString name = klass->name() + "Interface";
- QString ind;
- ind.fill( QChar( ' ' ), 4 );
+ TQString name = klass->name() + "Interface";
+ TQString ind;
+ ind.fill( TQChar( ' ' ), 4 );
stream
<< "class " << name << "\n"
@@ -2255,21 +2255,21 @@ void CppSupportPart::slotExtractInterface( )
if ( !m_activeClass )
return ;
- QFileInfo fileInfo( m_activeClass->fileName() );
- QString ifaceFileName = fileInfo.dirPath( true ) + "/" + m_activeClass->name().lower() + "_interface.h";
- if ( QFile::exists( ifaceFileName ) )
+ TQFileInfo fileInfo( m_activeClass->fileName() );
+ 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 ),
i18n( "C++ Support" ) );
}
else
{
- QString text = extractInterface( m_activeClass );
+ TQString text = extractInterface( m_activeClass );
- QFile f( ifaceFileName );
+ TQFile f( ifaceFileName );
if ( f.open( IO_WriteOnly ) )
{
- QTextStream stream( &f );
+ TQTextStream stream( &f );
stream
<< "#ifndef __" << m_activeClass->name().upper() << "_INTERFACE_H" << "\n"
<< "#define __" << m_activeClass->name().upper() << "_INTERFACE_H" << "\n"
@@ -2298,19 +2298,19 @@ void CppSupportPart::gotoLine( int line )
m_activeViewCursor->setCursorPositionReal( line, 0 );
}
-FileDom CppSupportPart::fileByName( const QString& name) {
+FileDom CppSupportPart::fileByName( const TQString& name) {
return codeModel()->fileByName( name );
}
-int CppSupportPart::parseFilesAndDependencies( QStringList files, bool background, bool parseFirst, bool silent ) {
- QMap<QString, int> fileGroups;
+int CppSupportPart::parseFilesAndDependencies( TQStringList files, bool background, bool parseFirst, bool silent ) {
+ TQMap<TQString, int> fileGroups;
int nextGroup = 0;
- for( QStringList::iterator it = files.begin(); it != files.end(); ++it ) {
+ for( TQStringList::iterator it = files.begin(); it != files.end(); ++it ) {
FileDom d = fileByName( *it );
- QStringList lst;
+ TQStringList lst;
if( !d ) {
lst << *it;
}else{
@@ -2326,20 +2326,20 @@ int CppSupportPart::parseFilesAndDependencies( QStringList files, bool backgroun
if( fileGroups.find( *it ) != fileGroups.end() )
cgroup = fileGroups[*it];
- for( QStringList::iterator lit = lst.begin(); lit != lst.end(); ++lit )
+ for( TQStringList::iterator lit = lst.begin(); lit != lst.end(); ++lit )
fileGroups[*lit] = cgroup;
}
- QValueVector<QStringList> groups;
+ TQValueVector<TQStringList> groups;
groups.resize( nextGroup );
///put the groups together
- for( QMap<QString, int>::iterator it = fileGroups.begin(); it != fileGroups.end(); ++it ) {
+ for( TQMap<TQString, int>::iterator it = fileGroups.begin(); it != fileGroups.end(); ++it ) {
groups[*it] << it.key();
}
for( int a = 0; a < nextGroup; a++ ) {
- QStringList group = reorder( groups[a] );
+ TQStringList group = reorder( groups[a] );
/* kdDebug( 9007 ) << "reparsing the following group: " << ":\n" << group.join("\n") << "\n\n";*/
@@ -2361,7 +2361,7 @@ int CppSupportPart::parseFilesAndDependencies( QStringList files, bool backgroun
}
if( parseFirst && !group.empty() ) {
- for(QStringList::iterator it = --group.end(); it != group.end(); ) {
+ for(TQStringList::iterator it = --group.end(); it != group.end(); ) {
backgroundParser()->addFileFront(*it);
if( it == group.begin() ) {
it = group.end();
@@ -2370,7 +2370,7 @@ int CppSupportPart::parseFilesAndDependencies( QStringList files, bool backgroun
}
}
} else {
- for(QStringList::iterator it = group.begin(); it != group.end(); ++it) {
+ for(TQStringList::iterator it = group.begin(); it != group.end(); ++it) {
backgroundParser()->addFile(*it);
}
}
@@ -2378,7 +2378,7 @@ int CppSupportPart::parseFilesAndDependencies( QStringList files, bool backgroun
m_backgroundParser->unlock();
} else {
- for(QStringList::iterator it = group.begin(); it != group.end(); ++it) {
+ for(TQStringList::iterator it = group.begin(); it != group.end(); ++it) {
m_driver->parseFile( *it );
}
}
@@ -2387,7 +2387,7 @@ int CppSupportPart::parseFilesAndDependencies( QStringList files, bool backgroun
return fileGroups.count();
}
-int CppSupportPart::parseFileAndDependencies( const QString & fileName, bool background, bool parseFirst, bool silent ) {
+int CppSupportPart::parseFileAndDependencies( const TQString & fileName, bool background, bool parseFirst, bool silent ) {
if(! isValidSource( fileName ) ) return 0;
// kdDebug( 9007 ) << "reparsing dependencies of " << fileName << "\n";
@@ -2400,7 +2400,7 @@ void CppSupportPart::parseEmit( ParseEmitWaiting::Processed files ) {
bool modelHasFiles = true;
- for( QStringList::iterator it = files.res.begin(); it != files.res.end(); ++it ) {
+ for( TQStringList::iterator it = files.res.begin(); it != files.res.end(); ++it ) {
if( !codeModel()->hasFile( *it ) ) modelHasFiles = false;
}
@@ -2409,16 +2409,16 @@ void CppSupportPart::parseEmit( ParseEmitWaiting::Processed files ) {
if( (files.flag & ParseEmitWaiting::HadErrors) && modelHasFiles && !files.hasFlag( ParseEmitWaiting::Silent ) ) {
mainWindow() ->statusBar() ->message( "File parsed, but not updating code-model because of errors", 2000 );
kdDebug( 9007 ) << "not updating code-model because at least one file has errors" << endl;
- // for( QStringList::iterator it = files.res.begin(); it != files.res.end(); ++it )
+ // for( TQStringList::iterator it = files.res.begin(); it != files.res.end(); ++it )
// m_backgroundParser->removeFile( *it );
} else {
///update timestamps
- for( QStringList::iterator it = files.res.begin(); it != files.res.end(); ++it ) {
+ for( TQStringList::iterator it = files.res.begin(); it != files.res.end(); ++it ) {
if( !codeModel()->hasFile( *it ) ) modelHasFiles = false;
- QString& fileName = *it;
+ TQString& fileName = *it;
- QFileInfo fileInfo( fileName );
- QString path = URLUtil::canonicalPath( fileName );
+ TQFileInfo fileInfo( fileName );
+ TQString path = URLUtil::canonicalPath( fileName );
if ( !fileInfo.exists() ) {
removeWithReferences( path );
@@ -2433,15 +2433,15 @@ void CppSupportPart::parseEmit( ParseEmitWaiting::Processed files ) {
m_backgroundParser->lock();
- QStringList l = files.res;
+ TQStringList l = files.res;
- QMap<QString, bool> wholeResult;
- QStringList missing;
+ TQMap<TQString, bool> wholeResult;
+ TQStringList missing;
- QMap<QString, FileDom> newFiles;
+ TQMap<TQString, FileDom> newFiles;
while(!l.isEmpty() ) {
- QString fileName = l.front();
+ TQString fileName = l.front();
if( !m_backgroundParser->hasTranslationUnit( fileName ) ) {
kdDebug( 9007 ) << "error: translation-unit is missing: " << fileName << endl;
@@ -2462,8 +2462,8 @@ void CppSupportPart::parseEmit( ParseEmitWaiting::Processed files ) {
newFiles[fileName] = walker.file();
///update timestamps
- QFileInfo fileInfo( fileName );
- QString path = URLUtil::canonicalPath( fileName );
+ TQFileInfo fileInfo( fileName );
+ TQString path = URLUtil::canonicalPath( fileName );
m_timestamp[ path ] = fileInfo.lastModified();
} else {
@@ -2471,8 +2471,8 @@ void CppSupportPart::parseEmit( ParseEmitWaiting::Processed files ) {
}
if( walker.file() ) {
- QStringList grp = walker.file()->wholeGroupStrings();
- for( QStringList::const_iterator it = grp.begin(); it != grp.end(); ++it )
+ TQStringList grp = walker.file()->wholeGroupStrings();
+ for( TQStringList::const_iterator it = grp.begin(); it != grp.end(); ++it )
wholeResult[*it] = true;
}
}
@@ -2486,7 +2486,7 @@ void CppSupportPart::parseEmit( ParseEmitWaiting::Processed files ) {
}
bool canUpdate = true;
- for( QMap<QString, FileDom>::const_iterator it = newFiles.begin(); it != newFiles.end(); ++it ) {
+ for( TQMap<TQString, FileDom>::const_iterator it = newFiles.begin(); it != newFiles.end(); ++it ) {
FileDom oldFile = codeModel()->fileByName( it.key() );
if( !oldFile || !oldFile->canUpdate( *it ) ) {
@@ -2497,14 +2497,14 @@ void CppSupportPart::parseEmit( ParseEmitWaiting::Processed files ) {
if( canUpdate ) {
///Update the code-model
- for( QMap<QString, FileDom>::const_iterator it = newFiles.begin(); it != newFiles.end(); ++it ) {
+ for( TQMap<TQString, FileDom>::const_iterator it = newFiles.begin(); it != newFiles.end(); ++it ) {
FileDom oldFile = codeModel()->fileByName( it.key() );
oldFile->update( *it );
codeModel()->mergeGroups( oldFile->groupId(), (*it)->groupId() ); ///Merge parsing-groups together
}
} else {
///Remove the current files and replace them with the new ones
- for( QMap<QString, FileDom>::const_iterator it = newFiles.begin(); it != newFiles.end(); ++it ) {
+ for( TQMap<TQString, FileDom>::const_iterator it = newFiles.begin(); it != newFiles.end(); ++it ) {
removeWithReferences( it.key() );
codeModel()->addFile( *it );
}
@@ -2513,7 +2513,7 @@ void CppSupportPart::parseEmit( ParseEmitWaiting::Processed files ) {
///make the list unique
l.clear();
- for( QMap<QString, bool>::const_iterator it = wholeResult.begin(); it != wholeResult.end(); ++it )
+ for( TQMap<TQString, bool>::const_iterator it = wholeResult.begin(); it != wholeResult.end(); ++it )
l << it.key();*/
m_backgroundParser->unlock();
@@ -2526,11 +2526,11 @@ void CppSupportPart::parseEmit( ParseEmitWaiting::Processed files ) {
if( files.hasFlag( ParseEmitWaiting::Silent ) ) {
if( alwaysParseInBackground )
- for( QStringList::iterator it = files.res.begin(); it != files.res.end(); ++it )
+ for( TQStringList::iterator it = files.res.begin(); it != files.res.end(); ++it )
m_backgroundParser->removeFile( *it );
} else {
if( !canUpdate ) { ///If the current model could be updated, do not emit addedSourceInfo(..) and remove the units from the parser, because nobody will be using them
- QStringList l = files.res;
+ TQStringList l = files.res;
while(!l.isEmpty() ) {
emit aboutToRemoveSourceInfo( l.front() );
emit removedSourceInfo( l.front() );
@@ -2541,7 +2541,7 @@ void CppSupportPart::parseEmit( ParseEmitWaiting::Processed files ) {
if( !files.hasFlag( ParseEmitWaiting::Silent ) )
emitFileParsed( files );
} else {
- QStringList l = files.res;
+ TQStringList l = files.res;
while( !l.isEmpty() ) {
emit codeModelUpdated( l.front() );
emit aboutToRemoveSourceInfo( l.front() );
@@ -2555,16 +2555,16 @@ void CppSupportPart::parseEmit( ParseEmitWaiting::Processed files ) {
}
}
-/*void CppSupportPart::recomputeCodeModel( const QString& fileName )
+/*void CppSupportPart::recomputeCodeModel( const TQString& fileName )
{*/
//}
-void CppSupportPart::emitSynchronousParseReady( const QString& file, ParsedFilePointer unit ) {
+void CppSupportPart::emitSynchronousParseReady( const TQString& file, ParsedFilePointer unit ) {
emit synchronousParseReady( file, unit );
}
-void CppSupportPart::emitFileParsed( QStringList l )
+void CppSupportPart::emitFileParsed( TQStringList l )
{
while( !l.isEmpty() ) {
emit fileParsed( l.front() );
@@ -2572,22 +2572,22 @@ void CppSupportPart::emitFileParsed( QStringList l )
}
}
-bool CppSupportPart::isHeader( const QString& fileName ) const
+bool CppSupportPart::isHeader( const TQString& fileName ) const
{
/*KMimeType::Ptr ptr = KMimeType::findByPath( fileName );
if ( ptr && m_headerMimeTypes.contains( ptr->name() ) )
return true;*/
- return ( m_headerExtensions.findIndex( QFileInfo( fileName ).extension() ) != -1 );
+ return ( m_headerExtensions.findIndex( TQFileInfo( fileName ).extension() ) != -1 );
}
-bool CppSupportPart::isSource( const QString& fileName ) const
+bool CppSupportPart::isSource( const TQString& fileName ) const
{
/*KMimeType::Ptr ptr = KMimeType::findByPath( fileName );
if ( ptr && m_sourceMimeTypes.contains( ptr->name() ) )
return true;*/
- return ( m_sourceExtensions.findIndex( QFileInfo( fileName ).extension() ) != -1 );
+ return ( m_sourceExtensions.findIndex( TQFileInfo( fileName ).extension() ) != -1 );
}
void CppSupportPart::gotoDeclarationLine( int line )
@@ -2602,14 +2602,14 @@ void CppSupportPart::gotoDeclarationLine( int line )
}
}
-void CppSupportPart::removeCatalog( const QString & dbName )
+void CppSupportPart::removeCatalog( const TQString & dbName )
{
- if ( !QFile::exists( dbName ) )
+ if ( !TQFile::exists( dbName ) )
return ;
- QValueList<Catalog*> catalogs = codeRepository() ->registeredCatalogs();
+ TQValueList<Catalog*> catalogs = codeRepository() ->registeredCatalogs();
Catalog* c = 0;
- for ( QValueList<Catalog*>::Iterator it = catalogs.begin(); it != catalogs.end(); ++it )
+ for ( TQValueList<Catalog*>::Iterator it = catalogs.begin(); it != catalogs.end(); ++it )
{
if ( ( *it ) ->dbName() == dbName )
{
@@ -2624,15 +2624,15 @@ void CppSupportPart::removeCatalog( const QString & dbName )
m_catalogList.remove( c );
}
- QFileInfo fileInfo( dbName );
- QDir dir( fileInfo.dir( true ) );
- QStringList indexList = QStringList() << "kind" << "name" << "scope" << "fileName" << "prefix";
- for(QStringList::Iterator iter = indexList.begin(); iter != indexList.end(); iter++)
+ TQFileInfo fileInfo( dbName );
+ TQDir dir( fileInfo.dir( true ) );
+ TQStringList indexList = TQStringList() << "kind" << "name" << "scope" << "fileName" << "prefix";
+ for(TQStringList::Iterator iter = indexList.begin(); iter != indexList.end(); iter++)
{
- QStringList fileList = dir.entryList( fileInfo.baseName(true) +"." +(*iter) + ".idx" );
- for ( QStringList::Iterator it = fileList.begin(); it != fileList.end(); ++it )
+ TQStringList fileList = dir.entryList( fileInfo.baseName(true) +"." +(*iter) + ".idx" );
+ for ( TQStringList::Iterator it = fileList.begin(); it != fileList.end(); ++it )
{
- QString idxName = fileInfo.dirPath( true ) + "/" + *it;
+ TQString idxName = fileInfo.dirPath( true ) + "/" + *it;
kdDebug( 9007 ) << "=========> remove db index: " << idxName << endl;
dir.remove( *it );
}
@@ -2679,7 +2679,7 @@ void CppSupportPart::slotCursorPositionChanged()
unsigned int column = 0;
if ( KDevEditorUtil::currentPositionReal( &line, &column, dynamic_cast<KTextEditor::Document*>( partController()->activePart() ) ) )
{
- QString typeInfoString = codeCompletion()->createTypeInfoString( line, column );
+ TQString typeInfoString = codeCompletion()->createTypeInfoString( line, column );
mainWindow()->statusBar()->message( typeInfoString );
}
}
@@ -2697,8 +2697,8 @@ void CppSupportPart::slotFunctionHint( )
// m_functionHintTimer->stop();
if ( FunctionDefinitionDom fun = currentFunctionDefinition() )
{
- QStringList scope = fun->scope();
- QString funName = scope.join( "::" );
+ TQStringList scope = fun->scope();
+ TQString funName = scope.join( "::" );
if ( !funName.isEmpty() )
funName += "::";
@@ -2711,11 +2711,11 @@ void CppSupportPart::slotFunctionHint( )
void CppSupportPart::createIgnorePCSFile( )
{
- static QCString skip_me( "ignore me\n" );
+ static TQCString skip_me( "ignore me\n" );
- QString skip_file_name = project() ->projectDirectory() + "/"
+ TQString skip_file_name = project() ->projectDirectory() + "/"
+ project() ->projectName() + ".kdevelop.ignore_pcs";
- QFile skip_pcs_file( skip_file_name );
+ TQFile skip_pcs_file( skip_file_name );
if ( skip_pcs_file.open( IO_WriteOnly ) )
{
skip_pcs_file.writeBlock( skip_me );
@@ -2723,7 +2723,7 @@ void CppSupportPart::createIgnorePCSFile( )
}
}
-QString CppSupportPart::specialHeaderName( bool local ) const
+TQString CppSupportPart::specialHeaderName( bool local ) const
{
if ( local )
return ::locateLocal( "data", "kdevcppsupport/configuration", CppSupportFactory::instance() );
@@ -2735,7 +2735,7 @@ void CppSupportPart::updateParserConfiguration()
{
m_backgroundParser->updateParserConfiguration();
- QString conf_file_name = specialHeaderName();
+ TQString conf_file_name = specialHeaderName();
m_driver->removeAllMacrosInFile( conf_file_name );
dynamic_cast<KDevDriver*>(m_driver)->setup();
@@ -2788,7 +2788,7 @@ void CppSupportPart::slotDeleteParserStore() {
void CppSupportPart::slotCreateSubclass()
{
- QFileInfo fi( m_contextFileName );
+ TQFileInfo fi( m_contextFileName );
if ( fi.extension( false ) != "ui" )
return ;
QtDesignerCppIntegration *des = dynamic_cast<QtDesignerCppIntegration*>( designer( KInterfaceDesigner::QtDesigner ) );
@@ -2796,10 +2796,10 @@ void CppSupportPart::slotCreateSubclass()
des->selectImplementation( m_contextFileName );
}
-void CppSupportPart::addMethod( ClassDom aClass, const QString& name, const QString type,
- const QString& parameters, CodeModelItem::Access accessType,
+void CppSupportPart::addMethod( ClassDom aClass, const TQString& name, const TQString type,
+ const TQString& parameters, CodeModelItem::Access accessType,
bool isConst, bool isInline, bool isVirtual, bool isPureVirtual,
- const QString& implementation )
+ const TQString& implementation )
{
partController() ->editDocument( KURL( aClass->fileName() ) );
KTextEditor::EditInterface* editIface = dynamic_cast<KTextEditor::EditInterface*>( partController() ->activePart() );
@@ -2808,18 +2808,18 @@ void CppSupportPart::addMethod( ClassDom aClass, const QString& name, const QStr
/// @fixme show messagebox
return ;
}
- QString declarationString = type + " " + name + "(" + parameters + ")" + ( isConst ? " const" : "" );
+ TQString declarationString = type + " " + name + "(" + parameters + ")" + ( isConst ? " const" : "" );
KDevSourceFormatter* sourceFormatter = extension<KDevSourceFormatter>( "KDevelop/SourceFormatter" );
- QString finalDeclaration = ( ( isVirtual || isPureVirtual ) ? "\nvirtual " : "\n" + declarationString +
+ TQString finalDeclaration = ( ( isVirtual || isPureVirtual ) ? "\nvirtual " : "\n" + declarationString +
( isPureVirtual ? " = 0 " : "" ) +
( isInline ? "\n{\n" + implementation + "\n}\n" : ";" ) );
if ( sourceFormatter != 0 )
finalDeclaration = sourceFormatter->formatSource( finalDeclaration );
- QString indentString = "\t";
+ TQString indentString = "\t";
if ( sourceFormatter != 0 )
indentString = sourceFormatter->indentString();
@@ -2832,23 +2832,23 @@ void CppSupportPart::addMethod( ClassDom aClass, const QString& name, const QStr
return ;
// construct fully qualified name for method definition
- QString fullyQualifiedName = aClass->scope().join("::");
+ TQString fullyQualifiedName = aClass->scope().join("::");
if (! fullyQualifiedName.isEmpty())
{
fullyQualifiedName += "::";
}
fullyQualifiedName += aClass->name() + "::" + name;
- QString definitionString = "\n" + type + " " + fullyQualifiedName + "(" + parameters + ")" + ( isConst ? " const" : "" ) + "\n{\n" + implementation + "\n}\n";
+ TQString definitionString = "\n" + type + " " + fullyQualifiedName + "(" + parameters + ")" + ( isConst ? " const" : "" ) + "\n{\n" + implementation + "\n}\n";
if ( sourceFormatter != 0 )
definitionString = sourceFormatter->formatSource( definitionString );
- QFileInfo info( aClass->fileName() );
- QString implementationFile = info.dirPath( true ) + "/" + info.baseName() + ".cpp" ;
- QFileInfo fileInfo( implementationFile );
+ TQFileInfo info( aClass->fileName() );
+ TQString implementationFile = info.dirPath( true ) + "/" + info.baseName() + ".cpp" ;
+ TQFileInfo fileInfo( implementationFile );
KDevCreateFile* createFileSupport = extension<KDevCreateFile>( "KDevelop/CreateFile" );
- if ( !QFile::exists( fileInfo.absFilePath() ) && createFileSupport != 0 )
+ if ( !TQFile::exists( fileInfo.absFilePath() ) && createFileSupport != 0 )
createFileSupport->createNewFile( fileInfo.extension(), fileInfo.dirPath( true ), fileInfo.baseName() );
partController() ->editDocument( KURL( implementationFile ) );
@@ -2856,7 +2856,7 @@ void CppSupportPart::addMethod( ClassDom aClass, const QString& name, const QStr
if ( !editIface )
return ; //@fixme errorverdoedelung
- editIface->insertLine( editIface->numLines(), QString::fromLatin1( "" ) );
+ editIface->insertLine( editIface->numLines(), TQString::fromLatin1( "" ) );
editIface->insertText( editIface->numLines() - 1, 0, definitionString );
backgroundParser() ->addFile( implementationFile );
}
@@ -3011,42 +3011,42 @@ void CppSupportPart::buildSafeFileSet() {
SynchronizedFileSet::SetType files; //everything that goes into this set must be deep-copied
kdDebug( 9007 ) << "CppSupportPart:: rebuilding safe-file-set" << endl;
- for( QStringList::const_iterator it = m_projectFileList.begin(); it != m_projectFileList.end(); ++it ) {
- QFileInfo fi( *it );
- QString file = *it;
+ for( TQStringList::const_iterator it = m_projectFileList.begin(); it != m_projectFileList.end(); ++it ) {
+ TQFileInfo fi( *it );
+ TQString file = *it;
if( fi.isRelative() ) {
- fi.setFile( QDir(m_projectDirectory), *it );
+ fi.setFile( TQDir(m_projectDirectory), *it );
file = fi.absFilePath();
}
//deep-copy
- files.insert( QString::fromUtf8(file.utf8()) );
+ files.insert( TQString::fromUtf8(file.utf8()) );
}
///Now get all translation-units from the code-repository
- QValueList<Catalog::QueryArgument> args;
+ TQValueList<Catalog::QueryArgument> args;
args << Catalog::QueryArgument( "kind", Tag::Kind_TranslationUnit );
- QValueList<Tag> tags( codeCompletion()->repository()->query( args ) );
+ TQValueList<Tag> tags( codeCompletion()->repository()->query( args ) );
- for( QValueList<Tag>::const_iterator it = tags.begin(); it != tags.end(); ++it ) {
+ for( TQValueList<Tag>::const_iterator it = tags.begin(); it != tags.end(); ++it ) {
files.insert( (*it).fileName() + "||" + (*it).attribute("macroValueHash").toString() + "||" + (*it).attribute("macroIdHash").toString() );
}
m_safeProjectFiles.setFiles( files );
}
void CppSupportPart::addToRepository( ParsedFilePointer file ) {
- QString catalogString( "automatic_" + KURL::encode_string_no_slash(m_projectDirectory) );
+ TQString catalogString( "automatic_" + KURL::encode_string_no_slash(m_projectDirectory) );
KStandardDirs *dirs = CppSupportFactory::instance() ->dirs();
- QString dbName = dirs->saveLocation( "data", "kdevcppsupport/pcs" ) + catalogString + ".db";
+ TQString dbName = dirs->saveLocation( "data", "kdevcppsupport/pcs" ) + catalogString + ".db";
Catalog* catalog = 0;
///First check if the catalog is already there
- QValueList<Catalog*> catalogs = codeRepository()->registeredCatalogs();
- for( QValueList<Catalog*>::const_iterator it = catalogs.begin(); it != catalogs.end(); ++it ) {
+ TQValueList<Catalog*> catalogs = codeRepository()->registeredCatalogs();
+ for( TQValueList<Catalog*>::const_iterator it = catalogs.begin(); it != catalogs.end(); ++it ) {
if( (*it)->dbName() == dbName ) {
catalog = *it;
break;
@@ -3055,7 +3055,7 @@ void CppSupportPart::addToRepository( ParsedFilePointer file ) {
if( !catalog ) {
kdDebug( 9007 ) << "creating new catalog named " << catalogString << " for automatic filling" << endl;
- //QStringList indexList = QStringList() << "kind" << "name" << "scope" << "fileName" << "prefix";
+ //TQStringList indexList = TQStringList() << "kind" << "name" << "scope" << "fileName" << "prefix";
catalog = new Catalog;
catalog->open( dbName );
catalog->addIndex( "kind" );
@@ -3064,27 +3064,27 @@ void CppSupportPart::addToRepository( ParsedFilePointer file ) {
catalog->addIndex( "prefix" );
catalog->addIndex( "fileName" );
/*
- for ( QStringList::Iterator idxIt = indexList.begin(); idxIt != indexList.end(); ++idxIt )
+ for ( TQStringList::Iterator idxIt = indexList.begin(); idxIt != indexList.end(); ++idxIt )
catalog->addIndex( ( *idxIt ).utf8() );*/
addCatalog( catalog );
}
catalog->setEnabled( true );
///Now check if the file was already parsed with the same parameters, if yes don't parse again(auto-update is currently not supported, when major changes have been done in the libraries, the repository should be deleted)
- QValueList<Catalog::QueryArgument> args;
+ TQValueList<Catalog::QueryArgument> args;
bool compatibleParsed = false;
Tag compatibleParsedTag;
args << Catalog::QueryArgument( "kind", Tag::Kind_TranslationUnit );
args << Catalog::QueryArgument( "fileName", file->fileName() );
- QValueList<Tag> tags( catalog->query( args ) );
+ TQValueList<Tag> tags( catalog->query( args ) );
if( !tags.isEmpty() ) {
- for( QValueList<Tag>::const_iterator it = tags.begin(); it != tags.end(); ++it ) {
+ for( TQValueList<Tag>::const_iterator it = tags.begin(); it != tags.end(); ++it ) {
if( (*it).hasAttribute( "cppparsedfile" ) ) {
- QVariant v = (*it).attribute( "cppparsedfile" );
+ TQVariant v = (*it).attribute( "cppparsedfile" );
///@todo reenable this
- /*QByteArray b = v.toByteArray();
+ /*TQByteArray b = v.toByteArray();
if( !b.isEmpty() ) {
//Would be much more efficient not to do this deserialization
ParsedFile f(b);
@@ -3105,8 +3105,8 @@ void CppSupportPart::addToRepository( ParsedFilePointer file ) {
if( compatibleParsed ) {
///Add a Tag that makes sure that the file will not be parsed again
compatibleParsedTag.setAttribute( "includedFrom", file->includedFrom() );
- QByteArray data;
- QDataStream s( data, IO_WriteOnly );
+ TQByteArray data;
+ TQDataStream s( data, IO_WriteOnly );
file->write( s );
compatibleParsedTag.setAttribute( "cppparsedfile", data );
catalog->addItem( compatibleParsedTag );
@@ -3118,32 +3118,32 @@ void CppSupportPart::addToRepository( ParsedFilePointer file ) {
w.parseTranslationUnit( *file );
codeRepository()->touchCatalog( catalog );
- m_safeProjectFiles.insert( file->fileName() + "||" + QString("%1").arg(file->usedMacros().valueHash()) + "||" + QString("%1").arg(file->usedMacros().idHash()) );
+ m_safeProjectFiles.insert( file->fileName() + "||" + TQString("%1").arg(file->usedMacros().valueHash()) + "||" + TQString("%1").arg(file->usedMacros().idHash()) );
}
-QString CppSupportPart::findHeaderSimple( const QString &header )
+TQString CppSupportPart::findHeaderSimple( const TQString &header )
{
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = m_projectFileList.begin(); it != m_projectFileList.end(); ++it )
{
- QString s = *it;
+ TQString s = *it;
if (s == header)
return s;
if ( ( s.right( header.length() ) == header ) && ( s[s.length() - header.length() - 1] == '/' ) )
return s;
}
- return QString::null;
+ return TQString::null;
}
-UIBlockTester::UIBlockTesterThread::UIBlockTesterThread( UIBlockTester& parent ) : QThread(), m_parent( parent ), m_stop(false) {
+UIBlockTester::UIBlockTesterThread::UIBlockTesterThread( UIBlockTester& parent ) : TQThread(), m_parent( parent ), m_stop(false) {
}
void UIBlockTester::UIBlockTesterThread::run() {
while(!m_stop) {
msleep( m_parent.m_msecs / 10 );
m_parent.m_timeMutex.lock();
- QDateTime t = QDateTime::currentDateTime();
+ TQDateTime t = TQDateTime::currentDateTime();
uint msecs = m_parent.m_lastTime.time().msecsTo( t.time() );
if( msecs > m_parent.m_msecs ) {
m_parent.lockup();
@@ -3158,9 +3158,9 @@ void UIBlockTester::UIBlockTesterThread::stop() {
}
UIBlockTester::UIBlockTester( uint milliseconds ) : m_thread( *this ), m_msecs( milliseconds ) {
- m_timer = new QTimer( this );
+ m_timer = new TQTimer( this );
m_timer->start( milliseconds/10 );
- connect( m_timer, SIGNAL(timeout()), this, SLOT(timer()) );
+ connect( m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(timer()) );
timer();
m_thread.start();
}
@@ -3171,7 +3171,7 @@ UIBlockTester::~UIBlockTester() {
void UIBlockTester::timer() {
m_timeMutex.lock();
- m_lastTime = QDateTime::currentDateTime();
+ m_lastTime = TQDateTime::currentDateTime();
m_timeMutex.unlock();
}
diff --git a/languages/cpp/cppsupportpart.h b/languages/cpp/cppsupportpart.h
index e01d5115..fecfe2d1 100644
--- a/languages/cpp/cppsupportpart.h
+++ b/languages/cpp/cppsupportpart.h
@@ -21,25 +21,25 @@
#include <kdevcore.h>
#include <kdevlanguagesupport.h>
-#include <qthread.h>
-#include <qmutex.h>
-#include <qtimer.h>
+#include <tqthread.h>
+#include <tqmutex.h>
+#include <tqtimer.h>
#include <kdialogbase.h>
-#include <qguardedptr.h>
-#include <qstring.h>
-#include <qwaitcondition.h>
-#include <qdatetime.h>
-#include <qdir.h>
-#include <qprogressbar.h>
+#include <tqguardedptr.h>
+#include <tqstring.h>
+#include <tqwaitcondition.h>
+#include <tqdatetime.h>
+#include <tqdir.h>
+#include <tqprogressbar.h>
#include <kdebug.h>
#include <ext/hash_map>
#include "driver.h"
///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 QObject {
+class UIBlockTester : public TQObject {
Q_OBJECT
- class UIBlockTesterThread : public QThread {
+ class UIBlockTesterThread : public TQThread {
public:
UIBlockTesterThread( UIBlockTester& parent );
void run();
@@ -63,9 +63,9 @@ protected:
private:
UIBlockTesterThread m_thread;
- QDateTime m_lastTime;
- QMutex m_timeMutex;
- QTimer * m_timer;
+ TQDateTime m_lastTime;
+ TQMutex m_timeMutex;
+ TQTimer * m_timer;
uint m_msecs;
};
@@ -113,42 +113,42 @@ public:
bool isEmpty() const
{
- QMutexLocker locker( &m_mutex );
+ TQMutexLocker locker( &m_mutex );
return m_fileSet.empty();
}
uint count() const
{
- QMutexLocker locker( &m_mutex );
+ TQMutexLocker locker( &m_mutex );
return m_fileSet.size();
}
void clear()
{
- QMutexLocker locker( &m_mutex );
+ TQMutexLocker locker( &m_mutex );
m_fileSet.clear();
}
void setFiles( const SetType& files ) {
- QMutexLocker locker( &m_mutex );
+ TQMutexLocker locker( &m_mutex );
m_fileSet = files;
}
void insert( const HashedString& str )
{
- HashedString s( QString::fromUtf8(str.str().utf8()) );
- QMutexLocker locker( &m_mutex );
+ HashedString s( TQString::fromUtf8(str.str().utf8()) );
+ TQMutexLocker locker( &m_mutex );
m_fileSet.insert( s );
}
bool contains( const HashedString& str ) const {
- QMutexLocker locker( &m_mutex );
+ TQMutexLocker locker( &m_mutex );
return m_fileSet.find( str ) != m_fileSet.end();
}
private:
- mutable QMutex m_mutex;
+ mutable TQMutex m_mutex;
SetType m_fileSet;
};
@@ -157,7 +157,7 @@ class CppSupportPart : public KDevLanguageSupport
Q_OBJECT
public:
- CppSupportPart( QObject *parent, const char *name, const QStringList &args );
+ CppSupportPart( TQObject *parent, const char *name, const TQStringList &args );
virtual ~CppSupportPart();
bool isValid() const
@@ -165,7 +165,7 @@ public:
return m_valid;
}
- QString specialHeaderName( bool local = false ) const;
+ TQString specialHeaderName( bool local = false ) const;
void updateParserConfiguration();
void updateBackgroundParserConfig();
@@ -178,8 +178,8 @@ public:
}
/** parses the file and all files that belong to it using the background-parser */
- int parseFileAndDependencies( const QString& fileName, bool background = true, bool parseFirst = false, bool silent = false );
- int parseFilesAndDependencies( QStringList files, bool background = true, bool parseFirst = false, bool silent = false );
+ int parseFileAndDependencies( const TQString& fileName, bool background = true, bool parseFirst = false, bool silent = false );
+ int parseFilesAndDependencies( TQStringList files, bool background = true, bool parseFirst = false, bool silent = false );
BackgroundParser* backgroundParser() const
{
@@ -208,19 +208,19 @@ public:
*/
inline QtBuildConfig* qtBuildConfig() const { return m_qtBuildConfig; }
- const QPtrList<Catalog>& catalogList() const
+ const TQPtrList<Catalog>& catalogList() const
{
return m_catalogList;
}
void addCatalog( Catalog* catalog );
- void removeCatalog( const QString& dbName );
+ void removeCatalog( const TQString& dbName );
- bool isValidSource( const QString& fileName ) const;
+ bool isValidSource( const TQString& fileName ) const;
- virtual void customEvent( QCustomEvent* ev );
+ virtual void customEvent( TQCustomEvent* ev );
- virtual QStringList subclassWidget( const QString& formName );
- virtual QStringList updateWidget( const QString& formName, const QString& fileName );
+ virtual TQStringList subclassWidget( const TQString& formName );
+ virtual TQStringList updateWidget( const TQString& formName, const TQString& fileName );
FunctionDefinitionDom currentFunctionDefinition();
FunctionDefinitionDom functionDefinitionAt( int line, int column );
@@ -229,17 +229,17 @@ public:
KTextEditor::Document* findDocument( const KURL& url );
static KConfig *config();
- virtual QString formatTag( const Tag& tag );
- virtual QString formatModelItem( const CodeModelItem *item, bool shortDescription = false );
+ virtual TQString formatTag( const Tag& tag );
+ virtual TQString formatModelItem( const CodeModelItem *item, bool shortDescription = false );
virtual void addClass();
- QString extractInterface( const ClassDom& klass );
+ TQString extractInterface( const ClassDom& klass );
- bool isHeader( const QString& fileName ) const;
- bool isSource( const QString& fileName ) const;
+ bool isHeader( const TQString& fileName ) const;
+ bool isSource( const TQString& fileName ) const;
//uses the old simple algorithm to find the header
- QString findHeaderSimple( const QString &header );
+ TQString findHeaderSimple( const TQString &header );
virtual KDevDesignerIntegration *designer( KInterfaceDesigner::DesignerType type );
@@ -251,7 +251,7 @@ public:
* @param name The name of the method.
* @param type The return type of the method.
* @param parameters A string containing the parameters
- * (including names, default values, but no '(' , ')', e.g.: "int, const QString& aString").
+ * (including names, default values, but no '(' , ')', e.g.: "int, const TQString& aString").
* @param accessType The access specifier e.g. CodeModelItem::PUBLIC.
* @param isConst true if method is const.
* @param isInline true if method should be declared inline.
@@ -260,12 +260,12 @@ public:
* @param implementation a optional implementation, if this is not set the method body will be empty.
* @author Jonas Jacobi <j.jacobi@gmx.de>
*/
- virtual void addMethod( ClassDom aClass, const QString& name, const QString type, const QString& parameters, CodeModelItem::Access accessType, bool isConst, bool isInline, bool isVirtual, bool isPureVirtual, const QString& implementation = "" );
+ virtual void addMethod( ClassDom aClass, const TQString& name, const TQString type, const TQString& parameters, CodeModelItem::Access accessType, bool isConst, bool isInline, bool isVirtual, bool isPureVirtual, const TQString& implementation = "" );
void createAccessMethods( ClassDom theClass, VariableDom theVariable );
- bool isQueued( const QString& file ) const;
- bool switchHeaderImpl( const QString& file, int line, int col, bool scrollOnly = false );
+ bool isQueued( const TQString& file ) const;
+ bool switchHeaderImpl( const TQString& file, int line, int col, bool scrollOnly = false );
const Driver* driver() const;
@@ -275,17 +275,17 @@ public:
const SynchronizedFileSet& safeFileSet() const;
SynchronizedFileSet& safeFileSet();
signals:
- void fileParsed( const QString& fileName );
+ void fileParsed( const TQString& fileName );
///Emitted whenever a file was parsed, but the code-model could be updated(the file in the code-model did not have to be replaced)
- void codeModelUpdated( const QString& fileName );
+ void codeModelUpdated( const TQString& fileName );
///Emitted whenever a translation-unit was parsed in the main thread
- void synchronousParseReady( const QString& file, ParsedFilePointer unit );
+ void synchronousParseReady( const TQString& file, ParsedFilePointer unit );
protected:
virtual KDevLanguageSupport::Features features();
virtual KMimeType::List mimeTypes();
- virtual QString formatClassName( const QString &name );
- virtual QString unformatClassName( const QString &name );
+ virtual TQString formatClassName( const TQString &name );
+ virtual TQString unformatClassName( const TQString &name );
virtual bool shouldSplitDocument( const KURL &url );
virtual Qt::Orientation splitOrientation() const;
virtual void addMethod( ClassDom klass );
@@ -299,15 +299,15 @@ private slots:
void savedFile( const KURL &fileName );
void configWidget( KDialogBase *dlg );
void projectConfigWidget( KDialogBase *dlg );
- void contextMenu( QPopupMenu *popup, const Context *context );
- void addedFilesToProject( const QStringList &fileList );
- void removedFilesFromProject( const QStringList &fileList );
- void changedFilesInProject( const QStringList & fileList );
+ void contextMenu( TQPopupMenu *popup, const Context *context );
+ void addedFilesToProject( const TQStringList &fileList );
+ void removedFilesFromProject( const TQStringList &fileList );
+ void changedFilesInProject( const TQStringList & fileList );
void slotProjectCompiled();
void setupCatalog();
void codeCompletionConfigStored();
void splitHeaderSourceConfigStored();
- // void recomputeCodeModel( const QString& fileName );
+ // void recomputeCodeModel( const TQString& fileName );
void slotNavigate();
void slotNewClass();
void slotSwitchHeader( bool scrollOnly = false );
@@ -318,7 +318,7 @@ private slots:
// void slotFunctionHint();
void gotoLine( int line );
void gotoDeclarationLine( int line );
- void emitFileParsed( QStringList l );
+ void emitFileParsed( TQStringList l );
void slotParseFiles();
void slotCreateSubclass();
void slotCreateAccessMethods();
@@ -331,7 +331,7 @@ private slots:
void removeProblemReporter();
- void slotNeedTextHint( int, int, QString& );
+ void slotNeedTextHint( int, int, TQString& );
/**
* loads, parses and creates both classstores needed
@@ -381,31 +381,31 @@ private:
/**
* checks if a file has to be parsed
*/
- FileDom fileByName( const QString& name);
- void maybeParse( const QString& fileName, bool background = true );
- void removeWithReferences( const QString& fileName );
+ FileDom fileByName( const TQString& name);
+ void maybeParse( const TQString& fileName, bool background = true );
+ void removeWithReferences( const TQString& fileName );
void createIgnorePCSFile();
- void MakeMemberHelper( QString& text, int& atline, int& atcol );
+ void MakeMemberHelper( TQString& text, int& atline, int& atcol );
- QString sourceOrHeaderCandidate( const KURL &url = KURL() );
+ TQString sourceOrHeaderCandidate( const KURL &url = KURL() );
FunctionDom findFunction( const FunctionDom& def );
FunctionDom findFunctionInNamespace( const NamespaceDom& ns, const FunctionDom& def, const std::set<NamespaceImportModel>& nsImports,
- const QString& candidateFile, int scopeIndex, FunctionDom& bestMatch );
+ const TQString& candidateFile, int scopeIndex, FunctionDom& bestMatch );
FunctionDom findFunctionInClass( const ClassDom& cs, const FunctionDom& def, const std::set<NamespaceImportModel>& nsImports,
- const QString& candidateFile, int scopeIndex, FunctionDom& bestMatch );
+ const TQString& candidateFile, int scopeIndex, FunctionDom& bestMatch );
FunctionDom findFunctionDefinition( const FunctionDom& decl );
void jumpToCodeModelItem( const ItemDom& item, bool scrollOnly );
- QStringList modifiedFileList();
- QString findSourceFile();
+ TQStringList modifiedFileList();
+ TQString findSourceFile();
int pcsVersion();
void setPcsVersion( int version );
void saveProjectSourceInfo();
- QStringList reorder( const QStringList& list );
+ TQStringList reorder( const TQStringList& list );
CppCodeCompletion* m_pCompletion;
CppCodeCompletionConfig* m_pCompletionConfig;
@@ -418,11 +418,11 @@ private:
QtBuildConfig* m_qtBuildConfig;
bool withcpp;
- QString m_contextFileName;
+ TQString m_contextFileName;
VariableDom m_curAttribute;
ClassDom m_curClass;
- QGuardedPtr< ProblemReporter > m_problemReporter;
+ TQGuardedPtr< ProblemReporter > m_problemReporter;
BackgroundParser* m_backgroundParser;
UIBlockTester* m_lockupTester;
@@ -431,36 +431,36 @@ private:
KTextEditor::SelectionInterface* m_activeSelection;
KTextEditor::EditInterface* m_activeEditor;
KTextEditor::ViewCursorInterface* m_activeViewCursor;
- QString m_activeFileName;
+ TQString m_activeFileName;
- QMap<KInterfaceDesigner::DesignerType, KDevDesignerIntegration*> m_designers;
+ TQMap<KInterfaceDesigner::DesignerType, KDevDesignerIntegration*> m_designers;
- QWaitCondition m_eventConsumed;
+ TQWaitCondition m_eventConsumed;
bool m_projectClosed;
bool m_projectClosing;
- QMap<QString, QDateTime> m_timestamp;
+ TQMap<TQString, TQDateTime> m_timestamp;
bool m_valid;
bool m_isTyping;
bool m_hadErrors; ///Whether there were already errors when the user started typing
- QPtrList<Catalog> m_catalogList;
+ TQPtrList<Catalog> m_catalogList;
Driver* m_driver;
- QString m_projectDirectory;
- QStringList m_projectFileList;
+ TQString m_projectDirectory;
+ TQStringList m_projectFileList;
ClassDom m_activeClass;
FunctionDom m_activeFunction;
VariableDom m_activeVariable;
- QGuardedPtr<KPopupMenu> m_navigationMenu;
+ TQGuardedPtr<KPopupMenu> m_navigationMenu;
-// QTimer* m_functionHintTimer;
-// QTimer* m_deleteParserStoreTimer;
- QTimer* m_saveMemoryTimer;
- QTimer * m_textChangedTimer;
- QTimer * m_cursorMovedTimer;
- QTimer* m_buildSafeFileSetTimer;
+// TQTimer* m_functionHintTimer;
+// TQTimer* m_deleteParserStoreTimer;
+ TQTimer* m_saveMemoryTimer;
+ TQTimer * m_textChangedTimer;
+ TQTimer * m_cursorMovedTimer;
+ TQTimer* m_buildSafeFileSetTimer;
class ParseEmitWaiting {
public:
@@ -472,23 +472,23 @@ private:
};
private:
struct Item {
- QStringList first;
- QStringList second;
+ TQStringList first;
+ TQStringList second;
Flags flags;
Item() : flags(None) {
}
- Item( QStringList f, QStringList s, Flags fl = None ) : first( f ), second( s ), flags( fl )
+ Item( TQStringList f, TQStringList s, Flags fl = None ) : first( f ), second( s ), flags( fl )
{
}
};
- //typedef QPair<QStringList, QStringList> Item; ///The files we are waiting fore, and the files we already got
- typedef QValueList< Item > List;
+ //typedef QPair<TQStringList, TQStringList> Item; ///The files we are waiting fore, and the files we already got
+ typedef TQValueList< Item > List;
List m_waiting;
- QStringList harvestUntil( List::iterator targIt ) {
+ TQStringList harvestUntil( List::iterator targIt ) {
List::iterator it = m_waiting.begin();
- QStringList ret;
+ TQStringList ret;
while( it != targIt && it != m_waiting.end() ) {
ret += (*it).first;
it = m_waiting.erase( it );
@@ -497,18 +497,18 @@ private:
}
public:
- void addGroup( QStringList& files, Flags flag = None ) {
- m_waiting << Item(files, QStringList(), flag);
+ void addGroup( TQStringList& files, Flags flag = None ) {
+ m_waiting << Item(files, TQStringList(), flag);
}
- void addGroupFront( QStringList& files, Flags flag = None ) {
- m_waiting.push_front( Item(files, QStringList(), flag) );
+ void addGroupFront( TQStringList& files, Flags flag = None ) {
+ m_waiting.push_front( Item(files, TQStringList(), flag) );
}
void clear() {
m_waiting.clear();
}
///files that were not requested must not be processed, since they maybe do not respect the group-relationships.
- bool reject( QString file ) {
+ bool reject( TQString file ) {
for( List::iterator it = m_waiting.begin(); it != m_waiting.end(); ++it) {
if( (*it).first.find( file ) != (*it).first.end() ) {
return false;
@@ -517,7 +517,7 @@ private:
return true;
}
- bool waiting( QString file, Flags forbidFlags = None, int count = 1 ) const {
+ 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() ) {
@@ -531,13 +531,13 @@ private:
}
struct Processed {
- QStringList res;
+ TQStringList res;
Flags flag;
Processed() : flag(None) {
}
- Processed(const QStringList& l , Flags f = None ) : res( l ), flag( f ) {
+ Processed(const TQStringList& l , Flags f = None ) : res( l ), flag( f ) {
}
- operator QStringList() {
+ operator TQStringList() {
return res;
}
@@ -559,8 +559,8 @@ private:
private:
///Just return all files that have been parsed
- Processed errorRecover( QString currentFile ) {
- QStringList ret;
+ Processed errorRecover( TQString currentFile ) {
+ TQStringList ret;
kdDebug( 9007 ) << "ParseEmitWaiting: error in the waiting-chain" << endl;
for( List::iterator it = m_waiting.begin(); it != m_waiting.end(); ++it) {
ret += (*it).second;
@@ -572,8 +572,8 @@ private:
public:
///returns the parsed-messages that should be emitted
- Processed processFile( QString file, Flags flag = None ) {
- QStringList ret;
+ 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() ) {
@@ -588,7 +588,7 @@ private:
return Processed( harvestUntil( ++it ), f );
} else {
///The file was registered, now wait for the next
- return QStringList();
+ return TQStringList();
}
} else {
///The file has already been parsed
@@ -615,37 +615,37 @@ private:
SynchronizedFileSet m_safeProjectFiles;
BackgroundParserConfig * m_backgroundParserConfig;
- static QStringList m_sourceMimeTypes;
- static QStringList m_headerMimeTypes;
+ static TQStringList m_sourceMimeTypes;
+ static TQStringList m_headerMimeTypes;
- static QStringList m_sourceExtensions;
- static QStringList m_headerExtensions;
+ static TQStringList m_sourceExtensions;
+ static TQStringList m_headerExtensions;
friend class KDevCppSupportIface;
friend class CppDriver;
// we need something to plug actions that are not in any menu
// into in order for their shortcuts to work
- QWidget m_DummyActionWidget;
+ TQWidget m_DummyActionWidget;
void addToRepository( ParsedFilePointer );
- void emitSynchronousParseReady( const QString& file, ParsedFilePointer unit );
+ void emitSynchronousParseReady( const TQString& file, ParsedFilePointer unit );
struct JobData
{
- QDir dir;
- QGuardedPtr<QProgressBar> progressBar;
- QStringList::Iterator it;
- QStringList files;
+ TQDir dir;
+ TQGuardedPtr<TQProgressBar> progressBar;
+ TQStringList::Iterator it;
+ TQStringList files;
int cycle;
int backgroundCount;
int lastBackgroundState;
int backgroundState;
- QStringList reparseList;
- QMap< QString, QPair<uint, uint> > pcs;
- QDataStream stream;
- QFile file;
- QTime lastParse;
+ TQStringList reparseList;
+ TQMap< TQString, QPair<uint, uint> > pcs;
+ TQDataStream stream;
+ TQFile file;
+ TQTime lastParse;
~JobData()
{
diff --git a/languages/cpp/creategettersetterconfiguration.cpp b/languages/cpp/creategettersetterconfiguration.cpp
index 5b64290f..7190e796 100644
--- a/languages/cpp/creategettersetterconfiguration.cpp
+++ b/languages/cpp/creategettersetterconfiguration.cpp
@@ -15,12 +15,12 @@
#include <domutil.h>
-#include <qdom.h>
+#include <tqdom.h>
#include <kmessagebox.h>
-QString CreateGetterSetterConfiguration::defaultPath = QString::fromLatin1( "/kdevcppsupport/creategettersetter" );
+TQString CreateGetterSetterConfiguration::defaultPath = TQString::fromLatin1( "/kdevcppsupport/creategettersetter" );
CreateGetterSetterConfiguration::CreateGetterSetterConfiguration( CppSupportPart * part )
-: QObject(part), m_part(part), m_settings(0)
+: TQObject(part), m_part(part), m_settings(0)
{
init();
}
@@ -38,7 +38,7 @@ void CreateGetterSetterConfiguration::init( )
m_prefixGet = DomUtil::readEntry( *m_settings, defaultPath + "/prefixGet", "" );
m_prefixSet = DomUtil::readEntry( *m_settings, defaultPath + "/prefixSet", "set" );
- m_prefixVariable = QStringList::split(",", DomUtil::readEntry( *m_settings, defaultPath + "/prefixVariable", "m_,_" ));
+ m_prefixVariable = TQStringList::split(",", DomUtil::readEntry( *m_settings, defaultPath + "/prefixVariable", "m_,_" ));
m_parameterName = DomUtil::readEntry( *m_settings, defaultPath + "/parameterName", "theValue" );
m_isInlineGet = DomUtil::readBoolEntry(*m_settings, defaultPath + "/inlineGet", true );
m_isInlineSet = DomUtil::readBoolEntry(*m_settings, defaultPath + "/inlineSet", true );
diff --git a/languages/cpp/creategettersetterconfiguration.h b/languages/cpp/creategettersetterconfiguration.h
index e11a45ee..e89dd60b 100644
--- a/languages/cpp/creategettersetterconfiguration.h
+++ b/languages/cpp/creategettersetterconfiguration.h
@@ -12,9 +12,9 @@
#ifndef CREATEGETTERSETTERCONFIGURATION_H
#define CREATEGETTERSETTERCONFIGURATION_H
-#include <qobject.h>
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
class CppSupportPart;
class QDomDocument;
@@ -44,39 +44,39 @@ public slots:
void store();
public:
- void setPrefixGet(const QString& theValue)
+ void setPrefixGet(const TQString& theValue)
{
m_prefixGet = theValue;
}
- QString prefixGet() const
+ TQString prefixGet() const
{
return m_prefixGet;
}
- void setPrefixSet(const QString& theValue)
+ void setPrefixSet(const TQString& theValue)
{
m_prefixSet = theValue;
}
- QString prefixSet() const
+ TQString prefixSet() const
{
return m_prefixSet;
}
- void setPrefixVariable(const QStringList& theValue)
+ void setPrefixVariable(const TQStringList& theValue)
{
m_prefixVariable = theValue;
}
- QStringList prefixVariable() const
+ TQStringList prefixVariable() const
{
return m_prefixVariable;
}
- void setParameterName(const QString& theValue)
+ void setParameterName(const TQString& theValue)
{
m_parameterName = theValue;
}
- QString parameterName() const
+ TQString parameterName() const
{
return m_parameterName;
}
@@ -101,17 +101,17 @@ public:
private:
CppSupportPart* m_part;
- QDomDocument* m_settings;
+ TQDomDocument* m_settings;
- QString m_prefixGet;
- QString m_prefixSet;
- QStringList m_prefixVariable;
- QString m_parameterName;
+ TQString m_prefixGet;
+ TQString m_prefixSet;
+ TQStringList m_prefixVariable;
+ TQString m_parameterName;
bool m_isInlineGet;
bool m_isInlineSet;
private:
- static QString defaultPath;
+ static TQString defaultPath;
};
#endif
diff --git a/languages/cpp/creategettersetterdialog.cpp b/languages/cpp/creategettersetterdialog.cpp
index 41a2f27e..e63fcf23 100644
--- a/languages/cpp/creategettersetterdialog.cpp
+++ b/languages/cpp/creategettersetterdialog.cpp
@@ -13,16 +13,16 @@
#include "cppsupportpart.h"
#include <klineedit.h>
-#include <qcheckbox.h>
-#include <qregexp.h>
+#include <tqcheckbox.h>
+#include <tqregexp.h>
#include "creategettersetterconfiguration.h"
CreateGetterSetterDialog::CreateGetterSetterDialog( CppSupportPart* part, ClassDom aClass,
- VariableDom aVar, QWidget *parent, const char *pName )
+ VariableDom aVar, TQWidget *parent, const char *pName )
: CreateGetterSetterDialogBase( parent, pName ), m_part( part ), m_class( aClass ), m_var( aVar )
{
- QString name = aVar->name();
+ TQString name = aVar->name();
setCaption( "Create methods for " + name );
if ( aVar->type().startsWith( "const" ) && !aVar->type().endsWith( "*" ) )
@@ -35,11 +35,11 @@ CreateGetterSetterDialog::CreateGetterSetterDialog( CppSupportPart* part, ClassD
if ( config == 0 )
return ;
- QStringList prefixes = config->prefixVariable();
+ TQStringList prefixes = config->prefixVariable();
unsigned int len = 0;
- QStringList::ConstIterator theend = prefixes.end(); //find longest fitting prefix and remove it
- for ( QStringList::ConstIterator ci = prefixes.begin(); ci != theend; ++ci )
+ TQStringList::ConstIterator theend = prefixes.end(); //find longest fitting prefix and remove it
+ for ( TQStringList::ConstIterator ci = prefixes.begin(); ci != theend; ++ci )
{
if ( name.startsWith( *ci ) && ( *ci ).length() > len )
len = ( *ci ).length();
@@ -50,11 +50,11 @@ CreateGetterSetterDialog::CreateGetterSetterDialog( CppSupportPart* part, ClassD
m_edtGet->setText( name );
- QString getName = name;
+ TQString getName = name;
if ( ! config->prefixGet().isEmpty() )
getName[ 0 ] = getName[ 0 ].upper();
- QString setName = name;
+ TQString setName = name;
if ( ! config->prefixSet().isEmpty() )
setName[ 0 ] = setName[ 0 ].upper();
@@ -81,7 +81,7 @@ void CreateGetterSetterDialog::accept( )
if ( m_chkSet->isChecked() && !m_edtSet->text().isEmpty() )
{
- QString parameterStr;
+ TQString parameterStr;
if ( m_var->type().endsWith( "*" ) )
{
@@ -89,7 +89,7 @@ void CreateGetterSetterDialog::accept( )
}
else
{
- QRegExp basicTypes( "((unsigned)?\\s*(char|byte|short|int|long))|double|float|bool" );
+ TQRegExp basicTypes( "((unsigned)?\\s*(char|byte|short|int|long))|double|float|bool" );
if ( basicTypes.exactMatch( m_var->type() ) )
parameterStr = m_var->type() + " " + config->parameterName();
else
@@ -100,7 +100,7 @@ void CreateGetterSetterDialog::accept( )
"\t" + m_var->name() + " = " + config->parameterName() + ";" );
}
//@todo illegale eingaben nicht akzeptieren wie z.b. int& ...
- QDialog::accept();
+ TQDialog::accept();
}
/**
diff --git a/languages/cpp/creategettersetterdialog.h b/languages/cpp/creategettersetterdialog.h
index a535e303..435002f2 100644
--- a/languages/cpp/creategettersetterdialog.h
+++ b/languages/cpp/creategettersetterdialog.h
@@ -25,7 +25,7 @@ class CreateGetterSetterDialog: public CreateGetterSetterDialogBase
{
Q_OBJECT
public:
- CreateGetterSetterDialog(CppSupportPart* part, ClassDom aClass, VariableDom var, QWidget *parent = 0, const char *name = 0);
+ CreateGetterSetterDialog(CppSupportPart* part, ClassDom aClass, VariableDom var, TQWidget *parent = 0, const char *name = 0);
protected slots:
void accept();
diff --git a/languages/cpp/createpcsdialog.cpp b/languages/cpp/createpcsdialog.cpp
index 1dc45034..d716bcc2 100644
--- a/languages/cpp/createpcsdialog.cpp
+++ b/languages/cpp/createpcsdialog.cpp
@@ -35,13 +35,13 @@
#include <kstringhandler.h>
#include <klineedit.h>
-#include <qprogressbar.h>
-#include <qheader.h>
-#include <qlabel.h>
-#include <qregexp.h>
-#include <qlayout.h>
-#include <qtimer.h>
-#include <qpushbutton.h>
+#include <tqprogressbar.h>
+#include <tqheader.h>
+#include <tqlabel.h>
+#include <tqregexp.h>
+#include <tqlayout.h>
+#include <tqtimer.h>
+#include <tqpushbutton.h>
#include <stdlib.h>
#include <unistd.h>
@@ -64,7 +64,7 @@ public:
}
#if 0 /// \FIXME robe
- void addDocDirectory( const QString& dir )
+ void addDocDirectory( const TQString& dir )
{
m_docDirectoryList.append( dir );
TagCreator::setDocumentationDirectories( m_docDirectoryList );
@@ -76,8 +76,8 @@ public:
/// @todo increment progress
#if 0 /// @todo show problems
- QValueList<Problem> l = problems( fileName );
- QValueList<Problem>::Iterator it = l.begin();
+ TQValueList<Problem> l = problems( fileName );
+ TQValueList<Problem>::Iterator it = l.begin();
while ( it != l.end() )
{
const Problem & p = *it;
@@ -99,18 +99,18 @@ public:
void setup()
{
bool ok;
- QString gccLibPath = SetupHelper::getGccIncludePath(&ok);
+ TQString gccLibPath = SetupHelper::getGccIncludePath(&ok);
if (!ok)
return;
- gccLibPath = gccLibPath.replace( QRegExp( "[\r\n]" ), "" );
+ gccLibPath = gccLibPath.replace( TQRegExp( "[\r\n]" ), "" );
addIncludePath( gccLibPath );
//addIncludePath( "/usr/include/g++-3" );
//addIncludePath( "/usr/include/g++" );
- QStringList lines = SetupHelper::getGccMacros(&ok);
+ TQStringList lines = SetupHelper::getGccMacros(&ok);
if (!ok)
return;
- for (QStringList::ConstIterator it = lines.constBegin(); it != lines.constEnd(); ++it) {
- QStringList lst = QStringList::split( ' ', *it );
+ for (TQStringList::ConstIterator it = lines.constBegin(); it != lines.constEnd(); ++it) {
+ TQStringList lst = TQStringList::split( ' ', *it );
if ( lst.count() != 3 )
continue;
addMacro( Macro( lst[1], lst[2] ) );
@@ -124,7 +124,7 @@ private:
Catalog* catalog;
#if 0 /// \FIXME
- QStringList m_docDirectoryList;
+ TQStringList m_docDirectoryList;
#endif
};
@@ -132,12 +132,12 @@ private:
class PCSListViewItem: public KListViewItem
{
public:
- PCSListViewItem( KService::Ptr ptr, KDevPCSImporter* importer, QListViewItem* parent )
+ PCSListViewItem( KService::Ptr ptr, KDevPCSImporter* importer, TQListViewItem* parent )
: KListViewItem( parent ), m_importer( importer )
{
init( ptr );
}
- PCSListViewItem( KService::Ptr ptr, KDevPCSImporter* importer, QListView* parent )
+ PCSListViewItem( KService::Ptr ptr, KDevPCSImporter* importer, TQListView* parent )
: KListViewItem( parent ), m_importer( importer )
{
init( ptr );
@@ -167,14 +167,14 @@ private:
class CreatePCSDialog::PCSJobData
{
public:
- QString dbName;
+ TQString dbName;
Catalog * catalog;
RppDriver * driver;
- QStringList list;
- QStringList::iterator it;
+ TQStringList list;
+ TQStringList::iterator it;
int progress;
- PCSJobData( const QString & dbName, QStringList const & fileList )
+ PCSJobData( const TQString & dbName, TQStringList const & fileList )
: dbName( dbName), list( fileList ), it( list.begin() ), progress( 0 )
{
catalog = new Catalog;
@@ -196,7 +196,7 @@ public:
-CreatePCSDialog::CreatePCSDialog( CppSupportPart* part, QWidget* parent, const char* name, bool modal, WFlags fl )
+CreatePCSDialog::CreatePCSDialog( CppSupportPart* part, TQWidget* parent, const char* name, bool modal, WFlags fl )
: CreatePCSDialogBase( parent, name, modal, fl ), m_part( part ), m_jobData( 0 )
{
helpButton()->hide();
@@ -212,7 +212,7 @@ CreatePCSDialog::CreatePCSDialog( CppSupportPart* part, QWidget* parent, const c
KService::Ptr ptr = *it;
int error = 0;
- KDevPCSImporter* importer = KParts::ComponentFactory::createInstanceFromService<KDevPCSImporter>( ptr, this, ptr->name().latin1(), QStringList(), &error );
+ KDevPCSImporter* importer = KParts::ComponentFactory::createInstanceFromService<KDevPCSImporter>( ptr, this, ptr->name().latin1(), TQStringList(), &error );
if ( importer )
{
new PCSListViewItem( ptr, importer, importerListView );
@@ -221,7 +221,7 @@ CreatePCSDialog::CreatePCSDialog( CppSupportPart* part, QWidget* parent, const c
setNextEnabled( importerPage, false );
- QHBoxLayout* hbox = new QHBoxLayout( settingsPage );
+ TQHBoxLayout* hbox = new TQHBoxLayout( settingsPage );
hbox->setAutoAdd( true );
if ( importerListView->firstChild() )
@@ -237,12 +237,12 @@ CreatePCSDialog::~CreatePCSDialog()
/*$SPECIALIZATION$*/
void CreatePCSDialog::back()
{
- QWizard::back();
+ TQWizard::back();
}
void CreatePCSDialog::next()
{
- QWizard::next();
+ TQWizard::next();
}
void CreatePCSDialog::reject()
@@ -254,7 +254,7 @@ void CreatePCSDialog::reject()
m_jobData = 0;
}
- QWizard::reject();
+ TQWizard::reject();
}
void CreatePCSDialog::accept()
@@ -262,10 +262,10 @@ void CreatePCSDialog::accept()
delete m_jobData;
m_jobData = 0;
- QWizard::accept();
+ TQWizard::accept();
}
-void CreatePCSDialog::slotSelected( const QString & )
+void CreatePCSDialog::slotSelected( const TQString & )
{
if ( currentPage() == settingsPage )
{
@@ -276,7 +276,7 @@ void CreatePCSDialog::slotSelected( const QString & )
m_settings = importer->createSettingsPage( settingsPage );
setNextEnabled( currentPage(), false );
setHelpEnabled( currentPage(), false );
- connect( m_settings, SIGNAL( enabled( int ) ), this, SLOT( setNextPageEnabled( int ) ) );
+ connect( m_settings, TQT_SIGNAL( enabled( int ) ), this, TQT_SLOT( setNextPageEnabled( int ) ) );
if ( m_settings )
{
@@ -295,19 +295,19 @@ void CreatePCSDialog::slotSelected( const QString & )
setNextEnabled( currentPage(), false );
KDevPCSImporter* importer = static_cast<PCSListViewItem*>( importerListView->selectedItem() )->importer();
- QStringList fileList = importer->fileList();
+ TQStringList fileList = importer->fileList();
progressBar->setTotalSteps( fileList.size() );
progressBar->setPercentageVisible( true );
KStandardDirs *dirs = m_part->instance() ->dirs();
- QString dbName = dirs->saveLocation( "data", "kdevcppsupport/pcs" ) + KURL::encode_string_no_slash(filename_edit->text()) + ".db";
+ TQString dbName = dirs->saveLocation( "data", "kdevcppsupport/pcs" ) + KURL::encode_string_no_slash(filename_edit->text()) + ".db";
kdDebug( 9007 ) << "================================> dbName = " << dbName << endl;
m_part->removeCatalog( dbName );
m_jobData = new PCSJobData( dbName, fileList );
- QTimer::singleShot( 0, this, SLOT(parseNext()) );
+ TQTimer::singleShot( 0, this, TQT_SLOT(parseNext()) );
}
}
@@ -340,7 +340,7 @@ void CreatePCSDialog::parseNext( )
++(m_jobData->it);
- QTimer::singleShot( 0, this, SLOT(parseNext()) );
+ TQTimer::singleShot( 0, this, TQT_SLOT(parseNext()) );
}
@@ -349,7 +349,7 @@ void CreatePCSDialog::setNextPageEnabled( int enabled )
setNextEnabled( currentPage(), enabled );
}
-void CreatePCSDialog::slotSelectionChanged( QListViewItem * item )
+void CreatePCSDialog::slotSelectionChanged( TQListViewItem * item )
{
setNextPageEnabled( item != 0 );
}
diff --git a/languages/cpp/createpcsdialog.h b/languages/cpp/createpcsdialog.h
index 0d03d16f..87c4818d 100644
--- a/languages/cpp/createpcsdialog.h
+++ b/languages/cpp/createpcsdialog.h
@@ -21,14 +21,14 @@ class CreatePCSDialog : public CreatePCSDialogBase
Q_OBJECT
public:
- CreatePCSDialog( CppSupportPart* part, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+ CreatePCSDialog( CppSupportPart* part, TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~CreatePCSDialog();
/*$PUBLIC_FUNCTIONS$*/
public slots:
/*$PUBLIC_SLOTS$*/
- virtual void slotSelected( const QString& );
- virtual void slotSelectionChanged( QListViewItem* );
+ virtual void slotSelected( const TQString& );
+ virtual void slotSelectionChanged( TQListViewItem* );
protected:
/*$PROTECTED_FUNCTIONS$*/
@@ -45,7 +45,7 @@ protected slots:
private:
CppSupportPart* m_part;
- QWidget* m_settings;
+ TQWidget* m_settings;
class RppDriver;
class PCSJobData;
diff --git a/languages/cpp/debugger/breakpoint.cpp b/languages/cpp/debugger/breakpoint.cpp
index 7bcf674f..c9ed193e 100644
--- a/languages/cpp/debugger/breakpoint.cpp
+++ b/languages/cpp/debugger/breakpoint.cpp
@@ -20,11 +20,11 @@
#include <klocale.h>
#include <kdebug.h>
-#include <qfileinfo.h>
-#include <qfontmetrics.h>
-#include <qpainter.h>
-#include <qregexp.h>
-#include <qstring.h>
+#include <tqfileinfo.h>
+#include <tqfontmetrics.h>
+#include <tqpainter.h>
+#include <tqregexp.h>
+#include <tqstring.h>
#include <stdio.h>
#include <typeinfo>
@@ -174,18 +174,18 @@ void Breakpoint::modifyBreakpoint(GDBController* controller)
{
controller->
addCommandBeforeRun(
- new ModifyBreakpointCommand(QString("-break-condition %1 ") +
+ new ModifyBreakpointCommand(TQString("-break-condition %1 ") +
conditional(), this));
controller->
addCommandBeforeRun(
- new ModifyBreakpointCommand(QString("-break-after %1 ") +
- QString::number(ignoreCount()), this));
+ new ModifyBreakpointCommand(TQString("-break-after %1 ") +
+ TQString::number(ignoreCount()), this));
controller->
addCommandBeforeRun(
new ModifyBreakpointCommand(isEnabled() ?
- QString("-break-enable %1")
- : QString("-break-disable %1"), this));
+ TQString("-break-enable %1")
+ : TQString("-break-disable %1"), this));
}
void Breakpoint::removedInGdb()
@@ -210,12 +210,12 @@ bool Breakpoint::match(const Breakpoint* breakpoint) const
/***************************************************************************/
-QString Breakpoint::dbgRemoveCommand() const
+TQString Breakpoint::dbgRemoveCommand() const
{
if (dbgId_>0)
- return QString("-break-delete %1").arg(dbgId_); // gdb command - not translatable
+ return TQString("-break-delete %1").arg(dbgId_); // gdb command - not translatable
- return QString();
+ return TQString();
}
@@ -258,9 +258,9 @@ void Breakpoint::setActive(int active, int id)
/***************************************************************************/
-QString Breakpoint::statusDisplay(int activeFlag) const
+TQString Breakpoint::statusDisplay(int activeFlag) const
{
- QString status="";
+ TQString status="";
if (!s_enabled_)
status = i18n("Disabled");
else
@@ -280,9 +280,9 @@ QString Breakpoint::statusDisplay(int activeFlag) const
return status;
}
-QString Breakpoint::traceRealFormatString() const
+TQString Breakpoint::traceRealFormatString() const
{
- QString result;
+ TQString result;
if (traceFormatStringEnabled())
{
@@ -298,9 +298,9 @@ QString Breakpoint::traceRealFormatString() const
}
else
{
- result += " " + QString::number(key()) + ": ";
+ result += " " + TQString::number(key()) + ": ";
}
- for(QStringList::const_iterator i = tracedExpressions_.begin(),
+ for(TQStringList::const_iterator i = tracedExpressions_.begin(),
e = tracedExpressions_.end(); i != e; ++i)
{
result += " " + *i + " = %d";
@@ -310,7 +310,7 @@ QString Breakpoint::traceRealFormatString() const
// Quote the thing
result = "\"" + result + "\\n\"";
- for(QStringList::const_iterator i = tracedExpressions_.begin(),
+ for(TQStringList::const_iterator i = tracedExpressions_.begin(),
e = tracedExpressions_.end(); i != e; ++i)
{
result += ", " + *i;
@@ -381,21 +381,21 @@ FilePosBreakpoint::FilePosBreakpoint()
line_(-1)
{}
-FilePosBreakpoint::FilePosBreakpoint(const QString &fileName, int lineNum,
+FilePosBreakpoint::FilePosBreakpoint(const TQString &fileName, int lineNum,
bool temporary, bool enabled)
: Breakpoint(temporary, enabled)
{
// Sets 'subtype'
- setLocation(QString("%1:%2").arg(fileName).arg(lineNum));
+ setLocation(TQString("%1:%2").arg(fileName).arg(lineNum));
}
FilePosBreakpoint::~FilePosBreakpoint()
{
}
-QString FilePosBreakpoint::dbgSetCommand(GDBController *c) const
+TQString FilePosBreakpoint::dbgSetCommand(GDBController *c) const
{
- QString cmdStr = "-break-insert";
+ TQString cmdStr = "-break-insert";
if (isTemporary())
cmdStr = cmdStr + " -t";
@@ -416,7 +416,7 @@ bool FilePosBreakpoint::match_data(const Breakpoint *xb) const
return false;
}
-QString FilePosBreakpoint::displayType() const
+TQString FilePosBreakpoint::displayType() const
{
return i18n("Code breakpoint", "Code");
}
@@ -431,7 +431,7 @@ bool FilePosBreakpoint::hasFileAndLine() const
return line_ != -1;
}
-QString FilePosBreakpoint::fileName() const
+TQString FilePosBreakpoint::fileName() const
{
return fileName_;
}
@@ -443,11 +443,11 @@ unsigned FilePosBreakpoint::lineNum() const
-QString FilePosBreakpoint::location(bool compact) const
+TQString FilePosBreakpoint::location(bool compact) const
{
if (subtype_ == filepos && hasFileAndLine() && compact)
{
- return QFileInfo(fileName_).fileName()+":"+QString::number(line_);
+ return TQFileInfo(fileName_).fileName()+":"+TQString::number(line_);
}
else
{
@@ -457,21 +457,21 @@ QString FilePosBreakpoint::location(bool compact) const
/***************************************************************************/
-void FilePosBreakpoint::setLocation(const QString& location)
+void FilePosBreakpoint::setLocation(const TQString& location)
{
location_ = location;
- QRegExp regExp1("(.*):(\\d+)$");
+ TQRegExp regExp1("(.*):(\\d+)$");
regExp1.setMinimal(true);
if ( regExp1.search(location, 0) >= 0 )
{
subtype_ = filepos;
- QString t = regExp1.cap(1);
- QString dirPath = QFileInfo(t).dirPath();
+ TQString t = regExp1.cap(1);
+ TQString dirPath = TQFileInfo(t).dirPath();
if ( dirPath == "." )
{
- QString existingDirPath = QFileInfo(fileName_).dirPath();
+ TQString existingDirPath = TQFileInfo(fileName_).dirPath();
if (existingDirPath != ".")
fileName_ = existingDirPath+"/"+regExp1.cap(1);
else
@@ -482,7 +482,7 @@ void FilePosBreakpoint::setLocation(const QString& location)
line_ = regExp1.cap(2).toInt();
- location_ = QString("%1:%2").arg(fileName_).arg(regExp1.cap(2));
+ location_ = TQString("%1:%2").arg(fileName_).arg(regExp1.cap(2));
}
else
{
@@ -516,7 +516,7 @@ void FilePosBreakpoint::handleSet(const GDBMI::ResultRecord& r)
/***************************************************************************/
/***************************************************************************/
-Watchpoint::Watchpoint(const QString& varName, bool temporary, bool enabled)
+Watchpoint::Watchpoint(const TQString& varName, bool temporary, bool enabled)
: Breakpoint(temporary, enabled),
varName_(varName)
{
@@ -536,7 +536,7 @@ void Watchpoint::setBreakpoint(GDBController* controller)
controller->addCommandBeforeRun(
new GDBCommand(
- QString("-data-evaluate-expression &%1").arg(varName_),
+ TQString("-data-evaluate-expression &%1").arg(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(
- QString("-break-watch *%1").arg(r["value"].literal()),
+ TQString("-break-watch *%1").arg(r["value"].literal()),
static_cast<Breakpoint*>(this),
&Watchpoint::handleSet));
}
@@ -577,9 +577,9 @@ void Watchpoint::removedInGdb()
/***************************************************************************/
-QString Watchpoint::dbgSetCommand(GDBController *) const
+TQString Watchpoint::dbgSetCommand(GDBController *) const
{
- return QString("-break-watch ")+varName_; // gdb command - not translatable
+ return TQString("-break-watch ")+varName_; // gdb command - not translatable
}
/***************************************************************************/
@@ -591,14 +591,14 @@ bool Watchpoint::match_data(const Breakpoint* xb) const
return (varName_ == b->varName_);
}
-ReadWatchpoint::ReadWatchpoint(const QString& varName, bool temporary, bool enabled)
+ReadWatchpoint::ReadWatchpoint(const TQString& varName, bool temporary, bool enabled)
: Watchpoint(varName, temporary, enabled)
{
}
-QString ReadWatchpoint::dbgSetCommand(GDBController *) const
+TQString ReadWatchpoint::dbgSetCommand(GDBController *) const
{
- return QString("-break-watch -r ")+varName();
+ return TQString("-break-watch -r ")+varName();
}
bool ReadWatchpoint::match_data(const Breakpoint* xb) const
@@ -625,7 +625,7 @@ bool ReadWatchpoint::match_data(const Breakpoint* xb) const
//
///***************************************************************************/
//
-//QString ExitBreakpoint::dbgSetCommand() const
+//TQString ExitBreakpoint::dbgSetCommand() const
//{
// return "";
//}
@@ -667,14 +667,14 @@ bool ReadWatchpoint::match_data(const Breakpoint* xb) const
//
///***************************************************************************/
//
-//QString RegExpBreakpoint::dbgSetCommand() const
+//TQString RegExpBreakpoint::dbgSetCommand() const
//{
// return "";
//}
//
///***************************************************************************/
//
-////QString RegExpBreakpoint::dbgRemoveCommand() const
+////TQString RegExpBreakpoint::dbgRemoveCommand() const
////{
//// return "";
////}
@@ -698,14 +698,14 @@ bool ReadWatchpoint::match_data(const Breakpoint* xb) const
//
///***************************************************************************/
//
-//QString CatchBreakpoint::dbgSetCommand() const
+//TQString CatchBreakpoint::dbgSetCommand() const
//{
// return "";
//}
//
///***************************************************************************/
//
-////QString CatchBreakpoint::dbgRemoveCommand() const
+////TQString CatchBreakpoint::dbgRemoveCommand() const
////{
//// return "";
////}
diff --git a/languages/cpp/debugger/breakpoint.h b/languages/cpp/debugger/breakpoint.h
index f06fc3d3..8470617c 100644
--- a/languages/cpp/debugger/breakpoint.h
+++ b/languages/cpp/debugger/breakpoint.h
@@ -18,9 +18,9 @@
#include <klocale.h>
-#include <qobject.h>
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
/***************************************************************************/
/***************************************************************************/
@@ -60,8 +60,8 @@ public:
- virtual QString dbgSetCommand(GDBController *) const = 0;
- virtual QString dbgRemoveCommand() const;
+ virtual TQString dbgSetCommand(GDBController *) const = 0;
+ virtual TQString dbgRemoveCommand() const;
/** Returns true if 'breakpoint' is identical to *this.
Checks for trival cases like pointer equality and
differing typeid() and then calls virtual
@@ -95,11 +95,11 @@ public:
void setIgnoreCount(int ignoreCount) { ignoreCount_ = ignoreCount; }
int ignoreCount() const { return ignoreCount_; }
- void setAddress(const QString &address) { address_ = address; }
- QString address() const { return address_; }
+ void setAddress(const TQString &address) { address_ = address; }
+ TQString address() const { return address_; }
- void setConditional(const QString &condition) { condition_ = condition; }
- QString conditional() const { return condition_; }
+ void setConditional(const TQString &condition) { condition_ = condition; }
+ TQString conditional() const { return condition_; }
void setPending(bool pending) { s_pending_ = pending; }
bool isPending() const { return s_pending_; }
@@ -127,27 +127,27 @@ public:
void setHits(int hits) { hits_ = hits; }
int hits() const { return hits_; }
- virtual QString statusDisplay(int activeFlag) const;
+ virtual TQString statusDisplay(int activeFlag) const;
virtual BP_TYPES type() const { return BP_TYPE_Invalid; }
- virtual QString displayType() const { return i18n( "Invalid" ); }
+ virtual TQString displayType() const { return i18n( "Invalid" ); }
bool tracingEnabled() const { return s_tracingEnabled_; }
void setTracingEnabled(bool enable) { s_tracingEnabled_ = enable; }
- const QStringList& tracedExpressions() const { return tracedExpressions_; }
- void setTracedExpressions(const QStringList& l) { tracedExpressions_ = l; }
+ const TQStringList& tracedExpressions() const { return tracedExpressions_; }
+ void setTracedExpressions(const TQStringList& l) { tracedExpressions_ = l; }
bool traceFormatStringEnabled() const { return s_traceFormatStringEnabled_; }
void setTraceFormatStringEnabled(bool en) { s_traceFormatStringEnabled_ = en; }
- const QString& traceFormatString() const { return traceFormatString_; }
- void setTraceFormatString(const QString& s) { traceFormatString_ = s; }
+ const TQString& traceFormatString() const { return traceFormatString_; }
+ void setTraceFormatString(const TQString& s) { traceFormatString_ = s; }
- QString traceRealFormatString() const;
+ TQString traceRealFormatString() const;
- virtual QString location(bool compact=true) const = 0;
- virtual void setLocation(const QString& ) = 0;
+ virtual TQString location(bool compact=true) const = 0;
+ virtual void setLocation(const TQString& ) = 0;
virtual bool isValid() const = 0;
signals:
@@ -187,10 +187,10 @@ private:
int active_; // counter incremented on receipt of all BP's
int ignoreCount_;
- QString address_;
- QString condition_;
- QStringList tracedExpressions_;
- QString traceFormatString_;
+ TQString address_;
+ TQString condition_;
+ TQStringList tracedExpressions_;
+ TQString traceFormatString_;
GDBController* controller_;
};
@@ -203,20 +203,20 @@ class FilePosBreakpoint : public Breakpoint
public:
FilePosBreakpoint();
- FilePosBreakpoint(const QString &fileName, int lineNum,
+ FilePosBreakpoint(const TQString &fileName, int lineNum,
bool temporary=false, bool enabled=true);
virtual ~FilePosBreakpoint();
- virtual QString dbgSetCommand(GDBController *) const;
+ virtual TQString dbgSetCommand(GDBController *) const;
virtual bool match_data(const Breakpoint *brkpt) const;
BP_TYPES type () const { return BP_TYPE_FilePos; }
- QString displayType() const;
- QString location(bool compact=true) const;
- void setLocation(const QString& location);
+ TQString displayType() const;
+ TQString location(bool compact=true) const;
+ void setLocation(const TQString& location);
bool isValid() const;
bool hasFileAndLine() const;
- QString fileName() const;
+ TQString fileName() const;
unsigned lineNum() const;
protected:
@@ -228,8 +228,8 @@ private:
enum subtype { filepos = 1, function, address };
subtype subtype_;
- QString location_;
- QString fileName_;
+ TQString location_;
+ TQString fileName_;
int line_;
};
/***************************************************************************/
@@ -240,7 +240,7 @@ private:
//public:
// RegExpBreakpoint(bool temporary=false, bool enabled=true);
// virtual ~RegExpBreakpoint();
-// virtual QString dbgSetCommand() const;
+// virtual TQString dbgSetCommand() const;
//};
/***************************************************************************/
/***************************************************************************/
@@ -250,7 +250,7 @@ private:
//public:
// CatchBreakpoint(bool temporary=false, bool enabled=true);
// virtual ~CatchBreakpoint();
-// virtual QString dbgSetCommand() const;
+// virtual TQString dbgSetCommand() const;
// virtual CatchBreakpoint& operator=(const CatchBreakpoint& rhs);
//};
/***************************************************************************/
@@ -261,7 +261,7 @@ private:
//public:
// ExitBreakpoint(bool temporary=false, bool enabled=true);
// virtual ~ExitBreakpoint();
-// virtual QString dbgSetCommand() const;
+// virtual TQString dbgSetCommand() const;
// bool match(const Breakpoint* brkpt) const;
// virtual void configureDisplay();
//};
@@ -271,9 +271,9 @@ private:
class Watchpoint : public Breakpoint
{
public:
- Watchpoint(const QString &varName, bool temporary=false, bool enabled=true);
+ Watchpoint(const TQString &varName, bool temporary=false, bool enabled=true);
virtual ~Watchpoint();
- virtual QString dbgSetCommand(GDBController *) const;
+ virtual TQString dbgSetCommand(GDBController *) const;
void applicationExited(GDBController*);
void removedInGdb();
@@ -281,31 +281,31 @@ public:
bool match_data(const Breakpoint *brkpt) const;
BP_TYPES type () const { return BP_TYPE_Watchpoint; }
- QString displayType() const { return i18n("Watchpoint"); }
- void setVarName(const QString& varName) { varName_ = varName; }
- QString varName() const { return varName_; }
+ TQString displayType() const { return i18n("Watchpoint"); }
+ void setVarName(const TQString& varName) { varName_ = varName; }
+ TQString varName() const { return varName_; }
unsigned long long address() const { return address_; }
- QString location(bool) const { return varName_; }
- void setLocation(const QString& location) { varName_ = location; }
+ TQString location(bool) const { return varName_; }
+ void setLocation(const TQString& location) { varName_ = location; }
bool isValid() const { return !varName_.isEmpty(); }
private:
void setBreakpoint(GDBController* controller);
void handleAddressComputed(const GDBMI::ResultRecord&);
- QString varName_;
+ TQString varName_;
unsigned long long address_;
};
class ReadWatchpoint : public Watchpoint
{
public:
- ReadWatchpoint(const QString &varName, bool temporary=false, bool enabled=true);
- virtual QString dbgSetCommand(GDBController *) const;
+ ReadWatchpoint(const TQString &varName, bool temporary=false, bool enabled=true);
+ virtual TQString dbgSetCommand(GDBController *) const;
bool match_data(const Breakpoint *brkpt) const;
BP_TYPES type () const { return BP_TYPE_ReadWatchpoint; }
- QString displayType() const { return i18n("Read Watchpoint"); }
+ TQString displayType() const { return i18n("Read Watchpoint"); }
};
}
diff --git a/languages/cpp/debugger/dbgcontroller.h b/languages/cpp/debugger/dbgcontroller.h
index 8d13f2d0..5085da79 100644
--- a/languages/cpp/debugger/dbgcontroller.h
+++ b/languages/cpp/debugger/dbgcontroller.h
@@ -18,7 +18,7 @@
#include "mi/gdbmi.h"
-#include <qobject.h>
+#include <tqobject.h>
#include <domutil.h>
@@ -79,7 +79,7 @@ public:
public slots:
virtual void configure() = 0;
- virtual void slotCoreFile(const QString &coreFile) = 0;
+ virtual void slotCoreFile(const TQString &coreFile) = 0;
virtual void slotAttachTo(int pid) = 0;
virtual void slotStopDebugger() = 0;
@@ -87,8 +87,8 @@ public slots:
virtual void slotRun() = 0;
// Kills the application but does not stop the debugger itself.
virtual void slotKill() = 0;
- virtual void slotRunUntil(const QString &fileName, int lineNum) = 0;
- virtual void slotJumpTo(const QString &fileName, int lineNum) = 0;
+ virtual void slotRunUntil(const TQString &fileName, int lineNum) = 0;
+ virtual void slotJumpTo(const TQString &fileName, int lineNum) = 0;
virtual void slotStepInto() = 0;
virtual void slotStepOver() = 0;
virtual void slotStepIntoIns() = 0;
@@ -107,7 +107,7 @@ protected slots:
virtual void slotDbgProcessExited(KProcess *proc) = 0;
signals:
- void gotoSourcePosition (const QString &fileName, int lineNum);
+ void gotoSourcePosition (const TQString &fileName, int lineNum);
void rawGDBMemoryDump (char *buf);
void rawGDBRegisters (char *buf);
void rawGDBLibraries (char *buf);
@@ -116,8 +116,8 @@ signals:
void gdbInternalCommandStdout (const char *output);
void gdbUserCommandStdout (const char *output);
void gdbStderr (const char *output);
- void showStepInSource (const QString &fileName, int lineNum, const QString &address);
- void dbgStatus (const QString &status, int statusFlag);
+ void showStepInSource (const TQString &fileName, int lineNum, const TQString &address);
+ void dbgStatus (const TQString &status, int statusFlag);
protected:
KProcess *dbgProcess_;
diff --git a/languages/cpp/debugger/dbgpsdlg.cpp b/languages/cpp/debugger/dbgpsdlg.cpp
index 524e4539..e96d7395 100644
--- a/languages/cpp/debugger/dbgpsdlg.cpp
+++ b/languages/cpp/debugger/dbgpsdlg.cpp
@@ -26,15 +26,15 @@
#include <klistviewsearchline.h>
#include <kmessagebox.h>
-#include <qframe.h>
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqframe.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
-#include <qtoolbutton.h>
-#include <qpushbutton.h>
-#include <qregexp.h>
-#include <qheader.h>
-#include <qtimer.h>
+#include <tqtoolbutton.h>
+#include <tqpushbutton.h>
+#include <tqregexp.h>
+#include <tqheader.h>
+#include <tqtimer.h>
#include <unistd.h>
#include <sys/types.h>
@@ -50,11 +50,11 @@ 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(QWidget *parent, const char *name)
+Dbg_PS_Dialog::Dbg_PS_Dialog(TQWidget *parent, const char *name)
: KDialog(parent, name, true), // modal
psProc_(0),
pids_(new KListView(this)),
- pidLines_(QString())
+ pidLines_(TQString())
{
setCaption(i18n("Attach to Process"));
@@ -65,7 +65,7 @@ Dbg_PS_Dialog::Dbg_PS_Dialog(QWidget *parent, const char *name)
pids_->addColumn("COMMAND");
- QBoxLayout *topLayout = new QVBoxLayout(this, 5);
+ TQBoxLayout *topLayout = new TQVBoxLayout(this, 5);
searchLineWidget_ = new KListViewSearchLineWidget(pids_, this);
topLayout->addWidget(searchLineWidget_);
@@ -75,19 +75,19 @@ Dbg_PS_Dialog::Dbg_PS_Dialog(QWidget *parent, const char *name)
KButtonBox *buttonbox = new KButtonBox(this, Qt::Horizontal);
buttonbox->addStretch();
- QPushButton *ok = buttonbox->addButton(KStdGuiItem::ok());
- QPushButton *cancel = buttonbox->addButton(KStdGuiItem::cancel());
+ TQPushButton *ok = buttonbox->addButton(KStdGuiItem::ok());
+ TQPushButton *cancel = buttonbox->addButton(KStdGuiItem::cancel());
buttonbox->layout();
topLayout->addWidget(buttonbox);
- connect(ok, SIGNAL(clicked()), SLOT(accept()));
- connect(cancel, SIGNAL(clicked()), SLOT(reject()));
+ connect(ok, TQT_SIGNAL(clicked()), TQT_SLOT(accept()));
+ connect(cancel, TQT_SIGNAL(clicked()), TQT_SLOT(reject()));
// Default display to 40 chars wide, default height is okay
resize( ((KGlobalSettings::fixedFont()).pointSize())*40, height());
topLayout->activate();
- QTimer::singleShot(0, this, SLOT(slotInit()));
+ TQTimer::singleShot(0, this, TQT_SLOT(slotInit()));
}
@@ -133,8 +133,8 @@ void Dbg_PS_Dialog::slotInit()
}
#endif
- connect( psProc_, SIGNAL(processExited(KProcess *)), SLOT(slotProcessExited()) );
- connect( psProc_, SIGNAL(receivedStdout(KProcess *, char *, int)), SLOT(slotReceivedOutput(KProcess *, char *, int)) );
+ connect( psProc_, TQT_SIGNAL(processExited(KProcess *)), TQT_SLOT(slotProcessExited()) );
+ connect( psProc_, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), TQT_SLOT(slotReceivedOutput(KProcess *, char *, int)) );
psProc_->start(KProcess::NotifyOnExit, KProcess::Stdout);
}
@@ -143,7 +143,7 @@ void Dbg_PS_Dialog::slotInit()
void Dbg_PS_Dialog::slotReceivedOutput(KProcess */*proc*/, char *buffer, int buflen)
{
- pidLines_ += QString::fromLocal8Bit(buffer, buflen);
+ pidLines_ += TQString::fromLocal8Bit(buffer, buflen);
}
/***************************************************************************/
@@ -158,10 +158,10 @@ void Dbg_PS_Dialog::slotProcessExited()
int start = pidLines_.find('\n', 0); // Skip the first line (header line)
int pos;
- static QRegExp ps_output_line("^\\s*(\\S+)\\s+(\\S+)\\s+(\\S+)\\s+(\\S+)\\s+(.+)");
+ static TQRegExp ps_output_line("^\\s*(\\S+)\\s+(\\S+)\\s+(\\S+)\\s+(\\S+)\\s+(.+)");
while ( (pos = pidLines_.find('\n', start)) != -1) {
- QString item = pidLines_.mid(start, pos-start);
+ TQString item = pidLines_.mid(start, pos-start);
if (!item.isEmpty() && item.find(pidCmd_) == -1)
{
if(ps_output_line.search(item) == -1)
@@ -177,7 +177,7 @@ void Dbg_PS_Dialog::slotProcessExited()
break;
}
- new QListViewItem(pids_,
+ new TQListViewItem(pids_,
ps_output_line.cap(1),
ps_output_line.cap(2),
ps_output_line.cap(3),
@@ -192,7 +192,7 @@ void Dbg_PS_Dialog::slotProcessExited()
searchLineWidget_->searchLine()->setFocus();
}
-void Dbg_PS_Dialog::focusIn(QFocusEvent*)
+void Dbg_PS_Dialog::focusIn(TQFocusEvent*)
{
searchLineWidget_->searchLine()->setFocus();
}
diff --git a/languages/cpp/debugger/dbgpsdlg.h b/languages/cpp/debugger/dbgpsdlg.h
index d88eb72f..acc725bc 100644
--- a/languages/cpp/debugger/dbgpsdlg.h
+++ b/languages/cpp/debugger/dbgpsdlg.h
@@ -33,7 +33,7 @@ class Dbg_PS_Dialog : public KDialog
Q_OBJECT
public:
- Dbg_PS_Dialog( QWidget *parent=0, const char *name=0 );
+ Dbg_PS_Dialog( TQWidget *parent=0, const char *name=0 );
~Dbg_PS_Dialog();
int pidSelected();
@@ -44,14 +44,14 @@ private slots:
void slotProcessExited();
protected:
- void focusIn(QFocusEvent*);
+ void focusIn(TQFocusEvent*);
private:
KProcess* psProc_;
KListView* pids_;
KListViewSearchLineWidget* searchLineWidget_;
- QString pidLines_;
- QString pidCmd_;
+ TQString pidLines_;
+ TQString pidCmd_;
};
}
diff --git a/languages/cpp/debugger/dbgtoolbar.cpp b/languages/cpp/debugger/dbgtoolbar.cpp
index a3e58343..3fbef3c4 100644
--- a/languages/cpp/debugger/dbgtoolbar.cpp
+++ b/languages/cpp/debugger/dbgtoolbar.cpp
@@ -25,14 +25,14 @@
#include <kwin.h>
#include <kwinmodule.h>
-#include <qapplication.h>
-#include <qcursor.h>
-#include <qframe.h>
-#include <qlayout.h>
-#include <qpainter.h>
-#include <qpushbutton.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
+#include <tqapplication.h>
+#include <tqcursor.h>
+#include <tqframe.h>
+#include <tqlayout.h>
+#include <tqpainter.h>
+#include <tqpushbutton.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
// **************************************************************************
// **************************************************************************
@@ -71,25 +71,25 @@ public:
DbgMoveHandle(DbgToolBar *parent=0, const char * name=0, WFlags f=0);
virtual ~DbgMoveHandle();
- virtual void mousePressEvent(QMouseEvent *e);
- virtual void mouseReleaseEvent(QMouseEvent *e);
- virtual void mouseMoveEvent(QMouseEvent *e);
+ virtual void mousePressEvent(TQMouseEvent *e);
+ virtual void mouseReleaseEvent(TQMouseEvent *e);
+ virtual void mouseMoveEvent(TQMouseEvent *e);
private:
DbgToolBar* toolBar_;
- QPoint offset_;
+ TQPoint offset_;
bool moving_;
};
// **************************************************************************
DbgMoveHandle::DbgMoveHandle(DbgToolBar *parent, const char * name, WFlags f)
- : QFrame(parent, name, f),
+ : TQFrame(parent, name, f),
toolBar_(parent),
- offset_(QPoint(0,0)),
+ offset_(TQPoint(0,0)),
moving_(false)
{
- setFrameStyle(QFrame::Panel|QFrame::Raised);
+ setFrameStyle(TQFrame::Panel|TQFrame::Raised);
setFixedHeight(12);
}
@@ -101,9 +101,9 @@ DbgMoveHandle::~DbgMoveHandle()
// **************************************************************************
-void DbgMoveHandle::mousePressEvent(QMouseEvent *e)
+void DbgMoveHandle::mousePressEvent(TQMouseEvent *e)
{
- QFrame::mousePressEvent(e);
+ TQFrame::mousePressEvent(e);
if (moving_)
return;
@@ -111,38 +111,38 @@ void DbgMoveHandle::mousePressEvent(QMouseEvent *e)
KPopupMenu *menu = new KPopupMenu(this);
menu->insertTitle(i18n("Debug Toolbar"));
menu->insertItem(i18n("Dock to Panel"),
- parent(), SLOT(slotDock()));
+ parent(), TQT_SLOT(slotDock()));
menu->insertItem(i18n("Dock to Panel && Iconify KDevelop"),
- parent(), SLOT(slotIconifyAndDock()));
+ parent(), TQT_SLOT(slotIconifyAndDock()));
menu->popup(e->globalPos());
} else {
moving_ = true;
offset_ = parentWidget()->pos() - e->globalPos();
- setFrameStyle(QFrame::Panel|QFrame::Sunken);
- QApplication::setOverrideCursor(QCursor(sizeAllCursor));
- setPalette(QPalette(colorGroup().background()));
+ setFrameStyle(TQFrame::Panel|TQFrame::Sunken);
+ TQApplication::setOverrideCursor(TQCursor(sizeAllCursor));
+ setPalette(TQPalette(colorGroup().background()));
repaint();
}
}
// **************************************************************************
-void DbgMoveHandle::mouseReleaseEvent(QMouseEvent *e)
+void DbgMoveHandle::mouseReleaseEvent(TQMouseEvent *e)
{
- QFrame::mouseReleaseEvent(e);
+ TQFrame::mouseReleaseEvent(e);
moving_ = false;
- offset_ = QPoint(0,0);
- setFrameStyle(QFrame::Panel|QFrame::Raised);
- QApplication::restoreOverrideCursor();
- setPalette(QPalette(colorGroup().background()));
+ offset_ = TQPoint(0,0);
+ setFrameStyle(TQFrame::Panel|TQFrame::Raised);
+ TQApplication::restoreOverrideCursor();
+ setPalette(TQPalette(colorGroup().background()));
repaint();
}
// **************************************************************************
-void DbgMoveHandle::mouseMoveEvent(QMouseEvent *e)
+void DbgMoveHandle::mouseMoveEvent(TQMouseEvent *e)
{
- QFrame::mouseMoveEvent(e);
+ TQFrame::mouseMoveEvent(e);
if (!moving_)
return;
@@ -158,21 +158,21 @@ void DbgMoveHandle::mouseMoveEvent(QMouseEvent *e)
class DbgButton : public QPushButton
{
public:
- DbgButton(const QPixmap &pixmap, const QString &text,
+ DbgButton(const TQPixmap &pixmap, const TQString &text,
DbgToolBar *parent, const char *name=0);
virtual ~DbgButton() {};
- void drawButtonLabel(QPainter *painter);
- QSize sizeHint() const;
+ void drawButtonLabel(TQPainter *painter);
+ TQSize sizeHint() const;
private:
- QPixmap pixmap_;
+ TQPixmap pixmap_;
};
// **************************************************************************
-DbgButton::DbgButton(const QPixmap& pixmap, const QString& text,
+DbgButton::DbgButton(const TQPixmap& pixmap, const TQString& text,
DbgToolBar* parent, const char* name)
- : QPushButton(parent, name),
+ : TQPushButton(parent, name),
pixmap_(pixmap)
{
setText(text);
@@ -180,7 +180,7 @@ DbgButton::DbgButton(const QPixmap& pixmap, const QString& text,
// **************************************************************************
-void DbgButton::drawButtonLabel(QPainter *painter)
+void DbgButton::drawButtonLabel(TQPainter *painter)
{
// We always have a pixmap (today...)
// Centre it if there's no text
@@ -198,15 +198,15 @@ void DbgButton::drawButtonLabel(QPainter *painter)
// **************************************************************************
-QSize DbgButton::sizeHint() const
+TQSize DbgButton::sizeHint() const
{
if (text().isEmpty())
return pixmap_.size();
else
{
- QSize ps = pixmap_.size();
- QSize bs = QPushButton::sizeHint();
- QSize result;
+ TQSize ps = pixmap_.size();
+ TQSize bs = TQPushButton::sizeHint();
+ TQSize result;
result.setWidth( ps.width() + bs.width()+10 );
result.setHeight( ps.height() > bs.height() ? ps.height() : bs.height() );
return result;
@@ -217,17 +217,17 @@ QSize DbgButton::sizeHint() const
// **************************************************************************
// **************************************************************************
-DbgDocker::DbgDocker(QWidget* parent, DbgToolBar* toolBar, const QPixmap& pixmap) :
+DbgDocker::DbgDocker(TQWidget* parent, DbgToolBar* toolBar, const TQPixmap& pixmap) :
KSystemTray(parent, "DbgDocker"),
toolBar_(toolBar)
{
setPixmap(pixmap);
- QToolTip::add( this, i18n("KDevelop debugger: Click to execute one line of code (\"step\")") );
+ TQToolTip::add( this, i18n("KDevelop debugger: Click to execute one line of code (\"step\")") );
}
// **************************************************************************
-void DbgDocker::mousePressEvent(QMouseEvent *e)
+void DbgDocker::mousePressEvent(TQMouseEvent *e)
{
if (!rect().contains( e->pos()))
return;
@@ -243,8 +243,8 @@ void DbgDocker::mousePressEvent(QMouseEvent *e)
{
KPopupMenu* menu = new KPopupMenu(this);
menu->insertTitle(i18n("Debug Toolbar"));
- menu->insertItem(i18n("Activate"), toolBar_, SLOT(slotUndock()));
- menu->insertItem(i18n("Activate (KDevelop gets focus)"), toolBar_, SLOT(slotActivateAndUndock()));
+ menu->insertItem(i18n("Activate"), toolBar_, TQT_SLOT(slotUndock()));
+ menu->insertItem(i18n("Activate (KDevelop gets focus)"), toolBar_, TQT_SLOT(slotActivateAndUndock()));
menu->popup(e->globalPos());
break;
}
@@ -258,8 +258,8 @@ void DbgDocker::mousePressEvent(QMouseEvent *e)
// **************************************************************************
DbgToolBar::DbgToolBar(DebuggerPart* part,
- QWidget* parent, const char* name)
- : QFrame(0, name),
+ TQWidget* parent, const char* name)
+ : TQFrame(0, name),
part_(part),
activeWindow_(0),
winModule_(0),
@@ -272,7 +272,7 @@ DbgToolBar::DbgToolBar(DebuggerPart* part,
{
winModule_ = new KWinModule(this);
docker_ = new DbgDocker(parent, this, BarIcon("dbgnext"));
- connect(docker_, SIGNAL(clicked()), part_, SLOT(slotStepOver()));
+ connect(docker_, TQT_SIGNAL(clicked()), part_, TQT_SLOT(slotStepOver()));
// Must have noFocus set so that we can see what window was active.
// see slotDbgKdevFocus() for more comments
@@ -286,65 +286,65 @@ DbgToolBar::DbgToolBar(DebuggerPart* part,
KWin::setType(winId(), NET::Dock);
setFocusPolicy(NoFocus);
- setFrameStyle( QFrame::Box | QFrame::Plain );
+ setFrameStyle( TQFrame::Box | TQFrame::Plain );
setLineWidth(4);
setMidLineWidth(0);
- QBoxLayout* topLayout = new QVBoxLayout(this);
+ TQBoxLayout* topLayout = new TQVBoxLayout(this);
- QBoxLayout* nextLayout = new QHBoxLayout();
- QBoxLayout* stepLayout = new QHBoxLayout();
- QBoxLayout* focusLayout = new QHBoxLayout();
+ TQBoxLayout* nextLayout = new TQHBoxLayout();
+ TQBoxLayout* stepLayout = new TQHBoxLayout();
+ TQBoxLayout* focusLayout = new TQHBoxLayout();
DbgMoveHandle* moveHandle= new DbgMoveHandle(this);
- QPushButton* bRun = new DbgButton(BarIcon("dbgrun"), i18n("Run"), this);
- QPushButton* bInterrupt = new DbgButton(BarIcon("player_pause"), i18n("Interrupt"), this);
- QPushButton* bNext = new DbgButton(BarIcon("dbgnext"), QString::null, this);
- QPushButton* bNexti = new DbgButton(BarIcon("dbgnextinst"), QString::null, this);
- QPushButton* bStep = new DbgButton(BarIcon("dbgstep"), QString::null, this);
- QPushButton* bStepi = new DbgButton(BarIcon("dbgstepinst"), QString::null, this);
- QPushButton* bFinish = new DbgButton(BarIcon("dbgstepout"), i18n("Step Out"), this);
- QPushButton* bRunTo = new DbgButton(BarIcon("dbgrunto"), i18n("Run to Cursor"), this);
- QPushButton* bView = new DbgButton(BarIcon("dbgmemview"), i18n("Viewers"), this);
- bKDevFocus_ = new DbgButton(BarIcon("kdevelop"), QString::null, this);
- bPrevFocus_ = new DbgButton(BarIcon("dbgmemview"), QString::null, this);
-
- connect(bRun, SIGNAL(clicked()), part_, SLOT(slotRun()));
- connect(bInterrupt, SIGNAL(clicked()), part_, SLOT(slotPause()));
- connect(bNext, SIGNAL(clicked()), part_, SLOT(slotStepOver()));
- connect(bNexti, SIGNAL(clicked()), part_, SLOT(slotStepOverInstruction()));
- connect(bStep, SIGNAL(clicked()), part_, SLOT(slotStepInto()));
- connect(bStepi, SIGNAL(clicked()), part_, SLOT(slotStepIntoInstruction()));
- connect(bFinish, SIGNAL(clicked()), part_, SLOT(slotStepOut()));
- connect(bRunTo, SIGNAL(clicked()), part_, SLOT(slotRunToCursor()));
- connect(bView, SIGNAL(clicked()), part_, SLOT(slotMemoryView()));
- connect(bKDevFocus_, SIGNAL(clicked()), this, SLOT(slotKdevFocus()));
- connect(bPrevFocus_, SIGNAL(clicked()), this, SLOT(slotPrevFocus()));
-
- QToolTip::add( bRun, i18n("Continue with application execution, may start the application") );
- QToolTip::add( bInterrupt, i18n("Interrupt the application execution") );
- QToolTip::add( bNext, i18n("Execute one line of code, but run through functions") );
- QToolTip::add( bNexti, i18n("Execute one assembler instruction, but run through functions") );
- QToolTip::add( bStep, i18n("Execute one line of code, stepping into functions if appropriate") );
- QToolTip::add( bStepi, i18n("Execute one assembler instruction, stepping into functions if appropriate") );
- QToolTip::add( bFinish, i18n("Execute to end of current stack frame") );
- QToolTip::add( bRunTo, i18n("Continues execution until the cursor position is reached.") );
- QToolTip::add( bView, i18n("Memory, dissemble, registers, library viewers") );
- QToolTip::add( bKDevFocus_, i18n("Set focus on KDevelop") );
- QToolTip::add( bPrevFocus_, i18n("Set focus on window that had focus when KDevelop got focus") );
-
- QWhatsThis::add( bRun, i18n("Continue with application execution. May start the application.") );
- QWhatsThis::add( bInterrupt, i18n("Interrupt the application execution.") );
- QWhatsThis::add( bNext, i18n("Execute one line of code, but run through functions.") );
- QWhatsThis::add( bNexti, i18n("Execute one assembler instruction, but run through functions.") );
- QWhatsThis::add( bStep, i18n("Execute one line of code, stepping into functions if appropriate.") );
- QWhatsThis::add( bStepi, i18n("Execute one assembler instruction, stepping into functions if appropriate.") );
- QWhatsThis::add( bFinish, i18n("Execute to end of current stack frame.") );
- QWhatsThis::add( bRunTo, i18n("Continues execution until the cursor position is reached.") );
- QWhatsThis::add( bView, i18n("Memory, dissemble, registers, library viewers.") );
- QWhatsThis::add( bKDevFocus_, i18n("Set focus on KDevelop.") );
- QWhatsThis::add( bPrevFocus_, i18n("Set focus on window that had focus when KDevelop got focus.") );
+ 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* 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);
+
+ connect(bRun, TQT_SIGNAL(clicked()), part_, TQT_SLOT(slotRun()));
+ connect(bInterrupt, TQT_SIGNAL(clicked()), part_, TQT_SLOT(slotPause()));
+ connect(bNext, TQT_SIGNAL(clicked()), part_, TQT_SLOT(slotStepOver()));
+ connect(bNexti, TQT_SIGNAL(clicked()), part_, TQT_SLOT(slotStepOverInstruction()));
+ connect(bStep, TQT_SIGNAL(clicked()), part_, TQT_SLOT(slotStepInto()));
+ connect(bStepi, TQT_SIGNAL(clicked()), part_, TQT_SLOT(slotStepIntoInstruction()));
+ connect(bFinish, TQT_SIGNAL(clicked()), part_, TQT_SLOT(slotStepOut()));
+ connect(bRunTo, TQT_SIGNAL(clicked()), part_, TQT_SLOT(slotRunToCursor()));
+ connect(bView, TQT_SIGNAL(clicked()), part_, TQT_SLOT(slotMemoryView()));
+ connect(bKDevFocus_, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotKdevFocus()));
+ connect(bPrevFocus_, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotPrevFocus()));
+
+ TQToolTip::add( bRun, i18n("Continue with application execution, may start the application") );
+ TQToolTip::add( bInterrupt, i18n("Interrupt the application execution") );
+ TQToolTip::add( bNext, i18n("Execute one line of code, but run through functions") );
+ TQToolTip::add( bNexti, i18n("Execute one assembler instruction, but run through functions") );
+ TQToolTip::add( bStep, i18n("Execute one line of code, stepping into functions if appropriate") );
+ TQToolTip::add( bStepi, i18n("Execute one assembler instruction, stepping into functions if appropriate") );
+ TQToolTip::add( bFinish, i18n("Execute to end of current stack frame") );
+ TQToolTip::add( bRunTo, i18n("Continues execution until the cursor position is reached.") );
+ TQToolTip::add( bView, i18n("Memory, dissemble, registers, library viewers") );
+ TQToolTip::add( bKDevFocus_, i18n("Set focus on KDevelop") );
+ TQToolTip::add( bPrevFocus_, i18n("Set focus on window that had focus when KDevelop got focus") );
+
+ TQWhatsThis::add( bRun, i18n("Continue with application execution. May start the application.") );
+ TQWhatsThis::add( bInterrupt, i18n("Interrupt the application execution.") );
+ TQWhatsThis::add( bNext, i18n("Execute one line of code, but run through functions.") );
+ TQWhatsThis::add( bNexti, i18n("Execute one assembler instruction, but run through functions.") );
+ TQWhatsThis::add( bStep, i18n("Execute one line of code, stepping into functions if appropriate.") );
+ TQWhatsThis::add( bStepi, i18n("Execute one assembler instruction, stepping into functions if appropriate.") );
+ TQWhatsThis::add( bFinish, i18n("Execute to end of current stack frame.") );
+ TQWhatsThis::add( bRunTo, i18n("Continues execution until the cursor position is reached.") );
+ TQWhatsThis::add( bView, i18n("Memory, dissemble, registers, library viewers.") );
+ TQWhatsThis::add( bKDevFocus_, i18n("Set focus on KDevelop.") );
+ TQWhatsThis::add( bPrevFocus_, i18n("Set focus on window that had focus when KDevelop got focus.") );
topLayout->addWidget(moveHandle);
topLayout->addWidget(bRun);
@@ -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 QString&, int state)
+void DbgToolBar::slotDbgStatus(const TQString&, int state)
{
bool appIndicator = state & s_dbgBusy;
if (appIndicator != appIsActive_) {
@@ -435,11 +435,11 @@ void DbgToolBar::slotDbgStatus(const QString&, int state)
void DbgToolBar::setAppIndicator(bool appIndicator)
{
if (appIndicator) {
- bPrevFocus_->setPalette(QPalette(colorGroup().mid()));
- bKDevFocus_->setPalette(QPalette(colorGroup().background()));
+ bPrevFocus_->setPalette(TQPalette(colorGroup().mid()));
+ bKDevFocus_->setPalette(TQPalette(colorGroup().background()));
} else {
- bPrevFocus_->setPalette(QPalette(colorGroup().background()));
- bKDevFocus_->setPalette(QPalette(colorGroup().mid()));
+ bPrevFocus_->setPalette(TQPalette(colorGroup().background()));
+ bKDevFocus_->setPalette(TQPalette(colorGroup().mid()));
}
}
diff --git a/languages/cpp/debugger/dbgtoolbar.h b/languages/cpp/debugger/dbgtoolbar.h
index 4f284701..188862d4 100644
--- a/languages/cpp/debugger/dbgtoolbar.h
+++ b/languages/cpp/debugger/dbgtoolbar.h
@@ -21,7 +21,7 @@ class KWinModule;
#include <ksystemtray.h>
#include <kwin.h> // needed for WId :(
-#include <qframe.h>
+#include <tqframe.h>
namespace GDBDebugger
{
@@ -35,9 +35,9 @@ class DbgDocker : public KSystemTray
Q_OBJECT
public:
- DbgDocker(QWidget *parent, DbgToolBar *toolBar, const QPixmap &pixmap);
+ DbgDocker(TQWidget *parent, DbgToolBar *toolBar, const TQPixmap &pixmap);
virtual ~DbgDocker() {};
- virtual void mousePressEvent(QMouseEvent *e);
+ virtual void mousePressEvent(TQMouseEvent *e);
signals:
void clicked();
@@ -52,11 +52,11 @@ class DbgToolBar : public QFrame
Q_OBJECT
public:
- DbgToolBar(DebuggerPart *part, QWidget* parent, const char* name=0);
+ DbgToolBar(DebuggerPart *part, TQWidget* parent, const char* name=0);
virtual ~DbgToolBar();
private slots:
- void slotDbgStatus(const QString&, int);
+ void slotDbgStatus(const TQString&, int);
void slotDock();
void slotUndock();
void slotIconifyAndDock();
diff --git a/languages/cpp/debugger/debuggerconfigwidget.cpp b/languages/cpp/debugger/debuggerconfigwidget.cpp
index 11de247f..f2891378 100644
--- a/languages/cpp/debugger/debuggerconfigwidget.cpp
+++ b/languages/cpp/debugger/debuggerconfigwidget.cpp
@@ -20,24 +20,24 @@
#include <kurlrequester.h>
#include <klineedit.h>
-#include <qcheckbox.h>
-#include <qfileinfo.h>
-#include <qradiobutton.h>
+#include <tqcheckbox.h>
+#include <tqfileinfo.h>
+#include <tqradiobutton.h>
namespace GDBDebugger
{
-DebuggerConfigWidget::DebuggerConfigWidget(DebuggerPart* part, QWidget *parent, const char *name)
+DebuggerConfigWidget::DebuggerConfigWidget(DebuggerPart* part, TQWidget *parent, const char *name)
: DebuggerConfigWidgetBase(parent, name), dom(*part->projectDom())
{
gdbPath_edit->setMode(KFile::File|KFile::ExistingOnly|KFile::LocalOnly);
gdbPath_edit->setURL( DomUtil::readEntry(dom, "/kdevdebugger/general/gdbpath"));
- QString shell = DomUtil::readEntry(dom, "/kdevdebugger/general/dbgshell","no_value");
- if( shell == QString("no_value") )
+ TQString shell = DomUtil::readEntry(dom, "/kdevdebugger/general/dbgshell","no_value");
+ if( shell == TQString("no_value") )
{
- shell = QString::null;
+ shell = TQString::null;
}
debuggingShell_edit->setURL( shell );
diff --git a/languages/cpp/debugger/debuggerconfigwidget.h b/languages/cpp/debugger/debuggerconfigwidget.h
index dbf63d4b..3a8283a2 100644
--- a/languages/cpp/debugger/debuggerconfigwidget.h
+++ b/languages/cpp/debugger/debuggerconfigwidget.h
@@ -16,7 +16,7 @@
#include "debuggerconfigwidgetbase.h"
-#include <qdom.h>
+#include <tqdom.h>
namespace GDBDebugger
{
@@ -28,14 +28,14 @@ class DebuggerConfigWidget : public DebuggerConfigWidgetBase
Q_OBJECT
public:
- DebuggerConfigWidget( DebuggerPart* part, QWidget *parent=0, const char *name=0 );
+ DebuggerConfigWidget( DebuggerPart* part, TQWidget *parent=0, const char *name=0 );
~DebuggerConfigWidget();
public slots:
void accept();
private:
- QDomDocument &dom;
+ TQDomDocument &dom;
};
}
diff --git a/languages/cpp/debugger/debuggerdcopinterface.h b/languages/cpp/debugger/debuggerdcopinterface.h
index 4a9bcf30..afde8b09 100644
--- a/languages/cpp/debugger/debuggerdcopinterface.h
+++ b/languages/cpp/debugger/debuggerdcopinterface.h
@@ -23,7 +23,7 @@ public:
k_dcop:
virtual ASYNC slotDebugExternalProcess() = 0;
- virtual ASYNC slotDebugCommandLine(const QString& command) = 0;
+ virtual ASYNC slotDebugCommandLine(const TQString& command) = 0;
};
#endif
diff --git a/languages/cpp/debugger/debuggerpart.cpp b/languages/cpp/debugger/debuggerpart.cpp
index c8c3c1a1..4842ca84 100644
--- a/languages/cpp/debugger/debuggerpart.cpp
+++ b/languages/cpp/debugger/debuggerpart.cpp
@@ -14,11 +14,11 @@
#include "debuggerpart.h"
#include "label_with_double_click.h"
-#include <qdir.h>
-#include <qvbox.h>
-#include <qwhatsthis.h>
-#include <qpopupmenu.h>
-#include <qtooltip.h>
+#include <tqdir.h>
+#include <tqvbox.h>
+#include <tqwhatsthis.h>
+#include <tqpopupmenu.h>
+#include <tqtooltip.h>
#include <kaction.h>
#include <kdebug.h>
@@ -33,7 +33,7 @@
#include <kmessagebox.h>
#include <kapplication.h>
#include <dcopclient.h>
-#include <qtimer.h>
+#include <tqtimer.h>
#include <kstringhandler.h>
#include <kdockwidget.h>
@@ -76,7 +76,7 @@ static const KDevPluginInfo data("kdevdebugger");
typedef KDevGenericFactory<DebuggerPart> DebuggerFactory;
K_EXPORT_COMPONENT_FACTORY( libkdevdebugger, DebuggerFactory( data ) )
-DebuggerPart::DebuggerPart( QObject *parent, const char *name, const QStringList & ) :
+DebuggerPart::DebuggerPart( TQObject *parent, const char *name, const TQStringList & ) :
KDevPlugin( &data, parent, name ? name : "DebuggerPart" ),
controller(0), previousDebuggerState_(s_dbgNotStarted),
justRestarted_(false), needRebuild_(true),
@@ -104,7 +104,7 @@ DebuggerPart::DebuggerPart( QObject *parent, const char *name, const QStringList
gdbBreakpointWidget = new GDBBreakpointWidget( controller,
0, "gdbBreakpointWidget" );
gdbBreakpointWidget->setCaption(i18n("Breakpoint List"));
- QWhatsThis::add
+ TQWhatsThis::add
(gdbBreakpointWidget, i18n("<b>Breakpoint list</b><p>"
"Displays a list of breakpoints with "
"their current status. Clicking on a "
@@ -124,7 +124,7 @@ DebuggerPart::DebuggerPart( QObject *parent, const char *name, const QStringList
framestackWidget = new FramestackWidget( controller, 0, "framestackWidget" );
framestackWidget->setEnabled(false);
framestackWidget->setCaption(i18n("Frame Stack"));
- QWhatsThis::add
+ TQWhatsThis::add
(framestackWidget, i18n("<b>Frame stack</b><p>"
"Often referred to as the \"call stack\", "
"this is a list showing what function is "
@@ -140,7 +140,7 @@ DebuggerPart::DebuggerPart( QObject *parent, const char *name, const QStringList
disassembleWidget = new DisassembleWidget( controller, 0, "disassembleWidget" );
disassembleWidget->setEnabled(false);
disassembleWidget->setCaption(i18n("Machine Code Display"));
- QWhatsThis::add
+ TQWhatsThis::add
(disassembleWidget, i18n("<b>Machine code display</b><p>"
"A machine code view into your running "
"executable with the current instruction "
@@ -157,7 +157,7 @@ DebuggerPart::DebuggerPart( QObject *parent, const char *name, const QStringList
gdbOutputWidget->setEnabled(false);
gdbOutputWidget->setIcon( SmallIcon("inline_image") );
gdbOutputWidget->setCaption(i18n("GDB Output"));
- QWhatsThis::add
+ TQWhatsThis::add
(gdbOutputWidget, i18n("<b>GDB output</b><p>"
"Shows all gdb commands being executed. "
"You can also issue any other gdb command while debugging."));
@@ -166,12 +166,12 @@ DebuggerPart::DebuggerPart( QObject *parent, const char *name, const QStringList
mainWindow()->setViewAvailable(gdbOutputWidget, false);
// gdbBreakpointWidget -> this
- connect( gdbBreakpointWidget, SIGNAL(refreshBPState(const Breakpoint&)),
- this, SLOT(slotRefreshBPState(const Breakpoint&)));
- connect( gdbBreakpointWidget, SIGNAL(publishBPState(const Breakpoint&)),
- this, SLOT(slotRefreshBPState(const Breakpoint&)));
- connect( gdbBreakpointWidget, SIGNAL(gotoSourcePosition(const QString&, int)),
- this, SLOT(slotGotoSource(const QString&, int)) );
+ connect( gdbBreakpointWidget, TQT_SIGNAL(refreshBPState(const Breakpoint&)),
+ this, TQT_SLOT(slotRefreshBPState(const Breakpoint&)));
+ connect( gdbBreakpointWidget, TQT_SIGNAL(publishBPState(const Breakpoint&)),
+ this, TQT_SLOT(slotRefreshBPState(const Breakpoint&)));
+ connect( gdbBreakpointWidget, TQT_SIGNAL(gotoSourcePosition(const TQString&, int)),
+ this, TQT_SLOT(slotGotoSource(const TQString&, int)) );
viewerWidget = new ViewerWidget( controller, 0, "viewerWidget");
@@ -179,15 +179,15 @@ DebuggerPart::DebuggerPart( QObject *parent, const char *name, const QStringList
i18n("Debug views"),
i18n("Special debugger views"));
mainWindow()->setViewAvailable(viewerWidget, false);
- connect(viewerWidget, SIGNAL(setViewShown(bool)),
- this, SLOT(slotShowView(bool)));
+ connect(viewerWidget, TQT_SIGNAL(setViewShown(bool)),
+ this, TQT_SLOT(slotShowView(bool)));
// Now setup the actions
KAction *action;
// action = new KAction(i18n("&Start"), "1rightarrow", CTRL+SHIFT+Key_F9,
action = new KAction(i18n("&Start"), "dbgrun", Key_F9,
- this, SLOT(slotRun()),
+ this, TQT_SLOT(slotRun()),
actionCollection(), "debug_run");
action->setToolTip( i18n("Start in debugger") );
action->setWhatsThis( i18n("<b>Start in debugger</b><p>"
@@ -198,7 +198,7 @@ DebuggerPart::DebuggerPart( QObject *parent, const char *name, const QStringList
"about variables, frame stack, and so on.") );
action = new KAction(i18n("&Restart"), "dbgrestart", 0,
- this, SLOT(slotRestart()),
+ this, TQT_SLOT(slotRestart()),
actionCollection(), "debug_restart");
action->setToolTip( i18n("Restart program") );
action->setWhatsThis( i18n("<b>Restarts application</b><p>"
@@ -208,33 +208,33 @@ DebuggerPart::DebuggerPart( QObject *parent, const char *name, const QStringList
action = new KAction(i18n("Sto&p"), "stop", 0,
- this, SLOT(slotStop()),
+ this, TQT_SLOT(slotStop()),
actionCollection(), "debug_stop");
action->setToolTip( i18n("Stop debugger") );
action->setWhatsThis(i18n("<b>Stop debugger</b><p>Kills the executable and exits the debugger."));
action = new KAction(i18n("Interrupt"), "player_pause", 0,
- this, SLOT(slotPause()),
+ this, TQT_SLOT(slotPause()),
actionCollection(), "debug_pause");
action->setToolTip( i18n("Interrupt application") );
action->setWhatsThis(i18n("<b>Interrupt application</b><p>Interrupts the debugged process or current GDB command."));
action = new KAction(i18n("Run to &Cursor"), "dbgrunto", 0,
- this, SLOT(slotRunToCursor()),
+ this, TQT_SLOT(slotRunToCursor()),
actionCollection(), "debug_runtocursor");
action->setToolTip( i18n("Run to cursor") );
action->setWhatsThis(i18n("<b>Run to cursor</b><p>Continues execution until the cursor position is reached."));
action = new KAction(i18n("Set E&xecution Position to Cursor"), "dbgjumpto", 0,
- this, SLOT(slotJumpToCursor()),
+ this, TQT_SLOT(slotJumpToCursor()),
actionCollection(), "debug_jumptocursor");
action->setToolTip( i18n("Jump to cursor") );
action->setWhatsThis(i18n("<b>Set Execution Position </b><p>Set the execution pointer to the current cursor position."));
action = new KAction(i18n("Step &Over"), "dbgnext", Key_F10,
- this, SLOT(slotStepOver()),
+ this, TQT_SLOT(slotStepOver()),
actionCollection(), "debug_stepover");
action->setToolTip( i18n("Step over the next line") );
action->setWhatsThis( i18n("<b>Step over</b><p>"
@@ -245,14 +245,14 @@ DebuggerPart::DebuggerPart( QObject *parent, const char *name, const QStringList
action = new KAction(i18n("Step over Ins&truction"), "dbgnextinst", 0,
- this, SLOT(slotStepOverInstruction()),
+ this, TQT_SLOT(slotStepOverInstruction()),
actionCollection(), "debug_stepoverinst");
action->setToolTip( i18n("Step over instruction") );
action->setWhatsThis(i18n("<b>Step over instruction</b><p>Steps over the next assembly instruction."));
action = new KAction(i18n("Step &Into"), "dbgstep", Key_F11,
- this, SLOT(slotStepInto()),
+ this, TQT_SLOT(slotStepInto()),
actionCollection(), "debug_stepinto");
action->setToolTip( i18n("Step into the next statement") );
action->setWhatsThis( i18n("<b>Step into</b><p>"
@@ -262,14 +262,14 @@ DebuggerPart::DebuggerPart( QObject *parent, const char *name, const QStringList
action = new KAction(i18n("Step into I&nstruction"), "dbgstepinst", 0,
- this, SLOT(slotStepIntoInstruction()),
+ this, TQT_SLOT(slotStepIntoInstruction()),
actionCollection(), "debug_stepintoinst");
action->setToolTip( i18n("Step into instruction") );
action->setWhatsThis(i18n("<b>Step into instruction</b><p>Steps into the next assembly instruction."));
action = new KAction(i18n("Step O&ut"), "dbgstepout", Key_F12,
- this, SLOT(slotStepOut()),
+ this, TQT_SLOT(slotStepOut()),
actionCollection(), "debug_stepout");
action->setToolTip( i18n("Steps out of the current function") );
action->setWhatsThis( i18n("<b>Step out</b><p>"
@@ -281,7 +281,7 @@ DebuggerPart::DebuggerPart( QObject *parent, const char *name, const QStringList
action = new KAction(i18n("Viewers"), "dbgmemview", 0,
- this, SLOT(slotMemoryView()),
+ this, TQT_SLOT(slotMemoryView()),
actionCollection(), "debug_memview");
action->setToolTip( i18n("Debugger viewers") );
action->setWhatsThis(i18n("<b>Debugger viewers</b><p>Various information about application being executed. There are 4 views available:<br>"
@@ -292,7 +292,7 @@ DebuggerPart::DebuggerPart( QObject *parent, const char *name, const QStringList
action = new KAction(i18n("Examine Core File..."), "core", 0,
- this, SLOT(slotExamineCore()),
+ this, TQT_SLOT(slotExamineCore()),
actionCollection(), "debug_core");
action->setToolTip( i18n("Examine core file") );
action->setWhatsThis( i18n("<b>Examine core file</b><p>"
@@ -304,72 +304,72 @@ DebuggerPart::DebuggerPart( QObject *parent, const char *name, const QStringList
action = new KAction(i18n("Attach to Process"), "connect_creating", 0,
- this, SLOT(slotAttachProcess()),
+ this, TQT_SLOT(slotAttachProcess()),
actionCollection(), "debug_attach");
action->setToolTip( i18n("Attach to process") );
action->setWhatsThis(i18n("<b>Attach to process</b><p>Attaches the debugger to a running process."));
action = new KAction(i18n("Toggle Breakpoint"), 0, 0,
- this, SLOT(toggleBreakpoint()),
+ this, TQT_SLOT(toggleBreakpoint()),
actionCollection(), "debug_toggle_breakpoint");
action->setToolTip(i18n("Toggle breakpoint"));
action->setWhatsThis(i18n("<b>Toggle breakpoint</b><p>Toggles the breakpoint at the current line in editor."));
- connect( mainWindow()->main()->guiFactory(), SIGNAL(clientAdded(KXMLGUIClient*)),
- this, SLOT(guiClientAdded(KXMLGUIClient*)) );
+ connect( mainWindow()->main()->guiFactory(), TQT_SIGNAL(clientAdded(KXMLGUIClient*)),
+ this, TQT_SLOT(guiClientAdded(KXMLGUIClient*)) );
- connect( core(), SIGNAL(projectConfigWidget(KDialogBase*)),
- this, SLOT(projectConfigWidget(KDialogBase*)) );
+ connect( core(), TQT_SIGNAL(projectConfigWidget(KDialogBase*)),
+ this, TQT_SLOT(projectConfigWidget(KDialogBase*)) );
- connect( partController(), SIGNAL(loadedFile(const KURL &)),
- gdbBreakpointWidget, SLOT(slotRefreshBP(const KURL &)) );
- connect( debugger(), SIGNAL(toggledBreakpoint(const QString &, int)),
- gdbBreakpointWidget, SLOT(slotToggleBreakpoint(const QString &, int)) );
- connect( debugger(), SIGNAL(editedBreakpoint(const QString &, int)),
- gdbBreakpointWidget, SLOT(slotEditBreakpoint(const QString &, int)) );
- connect( debugger(), SIGNAL(toggledBreakpointEnabled(const QString &, int)),
- gdbBreakpointWidget, SLOT(slotToggleBreakpointEnabled(const QString &, int)) );
+ connect( partController(), TQT_SIGNAL(loadedFile(const KURL &)),
+ gdbBreakpointWidget, TQT_SLOT(slotRefreshBP(const KURL &)) );
+ connect( debugger(), TQT_SIGNAL(toggledBreakpoint(const TQString &, int)),
+ gdbBreakpointWidget, TQT_SLOT(slotToggleBreakpoint(const TQString &, int)) );
+ connect( debugger(), TQT_SIGNAL(editedBreakpoint(const TQString &, int)),
+ gdbBreakpointWidget, TQT_SLOT(slotEditBreakpoint(const TQString &, int)) );
+ connect( debugger(), TQT_SIGNAL(toggledBreakpointEnabled(const TQString &, int)),
+ gdbBreakpointWidget, TQT_SLOT(slotToggleBreakpointEnabled(const TQString &, int)) );
- connect( core(), SIGNAL(contextMenu(QPopupMenu *, const Context *)),
- this, SLOT(contextMenu(QPopupMenu *, const Context *)) );
+ connect( core(), TQT_SIGNAL(contextMenu(TQPopupMenu *, const Context *)),
+ this, TQT_SLOT(contextMenu(TQPopupMenu *, const Context *)) );
- connect( core(), SIGNAL(stopButtonClicked(KDevPlugin*)),
- this, SLOT(slotStop(KDevPlugin*)) );
- connect( core(), SIGNAL(projectClosed()),
- this, SLOT(projectClosed()) );
+ connect( core(), TQT_SIGNAL(stopButtonClicked(KDevPlugin*)),
+ this, TQT_SLOT(slotStop(KDevPlugin*)) );
+ connect( core(), TQT_SIGNAL(projectClosed()),
+ this, TQT_SLOT(projectClosed()) );
- connect( partController(), SIGNAL(activePartChanged(KParts::Part*)),
- this, SLOT(slotActivePartChanged(KParts::Part*)) );
+ connect( partController(), TQT_SIGNAL(activePartChanged(KParts::Part*)),
+ this, TQT_SLOT(slotActivePartChanged(KParts::Part*)) );
procLineMaker = new ProcessLineMaker();
- connect( procLineMaker, SIGNAL(receivedStdoutLine(const QCString&)),
- appFrontend(), SLOT(insertStdoutLine(const QCString&)) );
- connect( procLineMaker, SIGNAL(receivedStderrLine(const QCString&)),
- appFrontend(), SLOT(insertStderrLine(const QCString&)) );
+ connect( procLineMaker, TQT_SIGNAL(receivedStdoutLine(const TQCString&)),
+ appFrontend(), TQT_SLOT(insertStdoutLine(const TQCString&)) );
+ connect( procLineMaker, TQT_SIGNAL(receivedStderrLine(const TQCString&)),
+ appFrontend(), TQT_SLOT(insertStderrLine(const TQCString&)) );
- connect( procLineMaker, SIGNAL(receivedPartialStdoutLine(const QCString&)),
- appFrontend(), SLOT(addPartialStdoutLine(const QCString&)));
- connect( procLineMaker, SIGNAL(receivedPartialStderrLine(const QCString&)),
- appFrontend(), SLOT(addPartialStderrLine(const QCString&)));
+ connect( procLineMaker, TQT_SIGNAL(receivedPartialStdoutLine(const TQCString&)),
+ appFrontend(), TQT_SLOT(addPartialStdoutLine(const TQCString&)));
+ connect( procLineMaker, TQT_SIGNAL(receivedPartialStderrLine(const TQCString&)),
+ appFrontend(), TQT_SLOT(addPartialStderrLine(const TQCString&)));
// The output from tracepoints goes to "application" window, because
// we don't have any better alternative, and using yet another window
// is undesirable. Besides, this makes tracepoint look even more similar
// to printf debugging.
- connect( gdbBreakpointWidget, SIGNAL(tracingOutput(const char*)),
- procLineMaker, SLOT(slotReceivedStdout(const char*)));
+ connect( gdbBreakpointWidget, TQT_SIGNAL(tracingOutput(const char*)),
+ procLineMaker, TQT_SLOT(slotReceivedStdout(const char*)));
- connect(partController(), SIGNAL(savedFile(const KURL &)),
- this, SLOT(slotFileSaved()));
+ connect(partController(), TQT_SIGNAL(savedFile(const KURL &)),
+ this, TQT_SLOT(slotFileSaved()));
if (project())
- connect(project(), SIGNAL(projectCompiled()),
- this, SLOT(slotProjectCompiled()));
+ connect(project(), TQT_SIGNAL(projectCompiled()),
+ this, TQT_SLOT(slotProjectCompiled()));
setupController();
- QTimer::singleShot(0, this, SLOT(setupDcop()));
+ TQTimer::singleShot(0, this, TQT_SLOT(setupDcop()));
}
void DebuggerPart::setupDcop()
@@ -379,24 +379,24 @@ void DebuggerPart::setupDcop()
if ((*it).find("drkonqi-") == 0)
slotDCOPApplicationRegistered(*it);
- connect(kapp->dcopClient(), SIGNAL(applicationRegistered(const QCString&)), SLOT(slotDCOPApplicationRegistered(const QCString&)));
+ connect(kapp->dcopClient(), TQT_SIGNAL(applicationRegistered(const TQCString&)), TQT_SLOT(slotDCOPApplicationRegistered(const TQCString&)));
kapp->dcopClient()->setNotifications(true);
}
-void DebuggerPart::slotDCOPApplicationRegistered(const QCString& appId)
+void DebuggerPart::slotDCOPApplicationRegistered(const TQCString& appId)
{
if (appId.find("drkonqi-") == 0) {
- QByteArray answer;
- QCString replyType;
+ TQByteArray answer;
+ TQCString replyType;
- kapp->dcopClient()->call(appId, "krashinfo", "appName()", QByteArray(), replyType, answer, true, 5000);
+ kapp->dcopClient()->call(appId, "krashinfo", "appName()", TQByteArray(), replyType, answer, true, 5000);
- QDataStream d(answer, IO_ReadOnly);
- QCString appName;
+ TQDataStream d(answer, IO_ReadOnly);
+ TQCString appName;
d >> appName;
if (appName.length() && project() && project()->mainProgram().endsWith(appName)) {
- kapp->dcopClient()->send(appId, "krashinfo", "registerDebuggingApplication(QString)", i18n("Debug in &KDevelop"));
+ kapp->dcopClient()->send(appId, "krashinfo", "registerDebuggingApplication(TQString)", i18n("Debug in &KDevelop"));
connectDCOPSignal(appId, "krashinfo", "acceptDebuggingApplication()", "slotDebugExternalProcess()", true);
}
}
@@ -404,32 +404,32 @@ void DebuggerPart::slotDCOPApplicationRegistered(const QCString& appId)
ASYNC DebuggerPart::slotDebugExternalProcess()
{
- QByteArray answer;
- QCString replyType;
+ TQByteArray answer;
+ TQCString replyType;
- kapp->dcopClient()->call(kapp->dcopClient()->senderId(), "krashinfo", "pid()", QByteArray(), replyType, answer, true, 5000);
+ kapp->dcopClient()->call(kapp->dcopClient()->senderId(), "krashinfo", "pid()", TQByteArray(), replyType, answer, true, 5000);
- QDataStream d(answer, IO_ReadOnly);
+ TQDataStream d(answer, IO_ReadOnly);
int pid;
d >> pid;
if (attachProcess(pid) && m_drkonqi.isEmpty()) {
m_drkonqi = kapp->dcopClient()->senderId();
- QTimer::singleShot(15000, this, SLOT(slotCloseDrKonqi()));
+ TQTimer::singleShot(15000, this, TQT_SLOT(slotCloseDrKonqi()));
mainWindow()->raiseView(framestackWidget);
}
mainWindow()->main()->raise();
}
-ASYNC DebuggerPart::slotDebugCommandLine(const QString& /*command*/)
+ASYNC DebuggerPart::slotDebugCommandLine(const TQString& /*command*/)
{
KMessageBox::information(0, "Asked to debug command line");
}
void DebuggerPart::slotCloseDrKonqi()
{
- kapp->dcopClient()->send(m_drkonqi, "MainApplication-Interface", "quit()", QByteArray());
+ kapp->dcopClient()->send(m_drkonqi, "MainApplication-Interface", "quit()", TQByteArray());
m_drkonqi = "";
}
@@ -467,10 +467,10 @@ void DebuggerPart::guiClientAdded( KXMLGUIClient* client )
// Can't change state until after XMLGUI has been loaded...
// Anyone know of a better way of doing this?
if( client == this )
- stateChanged( QString("stopped") );
+ stateChanged( TQString("stopped") );
}
-void DebuggerPart::contextMenu(QPopupMenu *popup, const Context *context)
+void DebuggerPart::contextMenu(TQPopupMenu *popup, const Context *context)
{
if (!context->hasType( Context::EditorContext ))
return;
@@ -491,13 +491,13 @@ void DebuggerPart::contextMenu(QPopupMenu *popup, const Context *context)
int index = running ? 0 : -1;
if (running)
{
- // Too bad we can't add QAction to popup menu in Qt3.
+ // Too bad we can't add TQAction to popup menu in Qt3.
KAction* act = actionCollection()->action("debug_runtocursor");
Q_ASSERT(act);
if (act)
{
int id = popup->insertItem( act->iconSet(), i18n("Run to &Cursor"),
- this, SLOT(slotRunToCursor()),
+ this, TQT_SLOT(slotRunToCursor()),
0, -1, index);
popup->setWhatsThis(id, act->whatsThis());
@@ -507,21 +507,21 @@ void DebuggerPart::contextMenu(QPopupMenu *popup, const Context *context)
if (econtext->url().isLocalFile())
{
int id = popup->insertItem( i18n("Toggle Breakpoint"),
- this, SLOT(toggleBreakpoint()),
+ this, TQT_SLOT(toggleBreakpoint()),
0, -1, index);
index += running;
popup->setWhatsThis(id, i18n("<b>Toggle breakpoint</b><p>Toggles breakpoint at the current line."));
}
if (!m_contextIdent.isEmpty())
{
- QString squeezed = KStringHandler::csqueeze(m_contextIdent, 30);
+ TQString squeezed = KStringHandler::csqueeze(m_contextIdent, 30);
int id = popup->insertItem( i18n("Evaluate: %1").arg(squeezed),
- this, SLOT(contextEvaluate()),
+ 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),
- this, SLOT(contextWatch()),
+ 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."));
@@ -560,10 +560,10 @@ void DebuggerPart::contextEvaluate()
void DebuggerPart::projectConfigWidget(KDialogBase *dlg)
{
- QVBox *vbox = dlg->addVBoxPage(i18n("Debugger"), i18n("Debugger"), BarIcon( info()->icon(), KIcon::SizeMedium) );
+ TQVBox *vbox = dlg->addVBoxPage(i18n("Debugger"), i18n("Debugger"), BarIcon( info()->icon(), KIcon::SizeMedium) );
DebuggerConfigWidget *w = new DebuggerConfigWidget(this, vbox, "debugger config widget");
- connect( dlg, SIGNAL(okClicked()), w, SLOT(accept()) );
- connect( dlg, SIGNAL(finished()), controller, SLOT(configure()) );
+ connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()) );
+ connect( dlg, TQT_SIGNAL(finished()), controller, TQT_SLOT(configure()) );
}
@@ -572,68 +572,68 @@ void DebuggerPart::setupController()
VariableTree *variableTree = variableWidget->varTree();
// variableTree -> gdbBreakpointWidget
- connect( variableTree, SIGNAL(toggleWatchpoint(const QString &)),
- gdbBreakpointWidget, SLOT(slotToggleWatchpoint(const QString &)));
+ connect( variableTree, TQT_SIGNAL(toggleWatchpoint(const TQString &)),
+ gdbBreakpointWidget, TQT_SLOT(slotToggleWatchpoint(const TQString &)));
// gdbOutputWidget -> controller
- connect( gdbOutputWidget, SIGNAL(userGDBCmd(const QString &)),
- controller, SLOT(slotUserGDBCmd(const QString&)));
- connect( gdbOutputWidget, SIGNAL(breakInto()),
- controller, SLOT(slotBreakInto()));
+ connect( gdbOutputWidget, TQT_SIGNAL(userGDBCmd(const TQString &)),
+ controller, TQT_SLOT(slotUserGDBCmd(const TQString&)));
+ connect( gdbOutputWidget, TQT_SIGNAL(breakInto()),
+ controller, TQT_SLOT(slotBreakInto()));
- connect( controller, SIGNAL(breakpointHit(int)),
- gdbBreakpointWidget, SLOT(slotBreakpointHit(int)));
+ connect( controller, TQT_SIGNAL(breakpointHit(int)),
+ gdbBreakpointWidget, TQT_SLOT(slotBreakpointHit(int)));
// controller -> disassembleWidget
- connect( controller, SIGNAL(showStepInSource(const QString&, int, const QString&)),
- disassembleWidget, SLOT(slotShowStepInSource(const QString&, int, const QString&)));
+ connect( controller, TQT_SIGNAL(showStepInSource(const TQString&, int, const TQString&)),
+ disassembleWidget, TQT_SLOT(slotShowStepInSource(const TQString&, int, const TQString&)));
// controller -> this
- connect( controller, SIGNAL(dbgStatus(const QString&, int)),
- this, SLOT(slotStatus(const QString&, int)));
- connect( controller, SIGNAL(showStepInSource(const QString&, int, const QString&)),
- this, SLOT(slotShowStep(const QString&, int)));
- connect( controller, SIGNAL(debuggerAbnormalExit()),
- this, SLOT(slotDebuggerAbnormalExit()));
+ connect( controller, TQT_SIGNAL(dbgStatus(const TQString&, int)),
+ this, TQT_SLOT(slotStatus(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()),
+ this, TQT_SLOT(slotDebuggerAbnormalExit()));
- connect(controller, SIGNAL(event(GDBController::event_t)),
- this, SLOT(slotEvent(GDBController::event_t)));
+ connect(controller, TQT_SIGNAL(event(GDBController::event_t)),
+ this, TQT_SLOT(slotEvent(GDBController::event_t)));
// controller -> procLineMaker
- connect( controller, SIGNAL(ttyStdout(const char*)),
- procLineMaker, SLOT(slotReceivedStdout(const char*)));
- connect( controller, SIGNAL(ttyStderr(const char*)),
- procLineMaker, SLOT(slotReceivedStderr(const char*)));
+ connect( controller, TQT_SIGNAL(ttyStdout(const char*)),
+ procLineMaker, TQT_SLOT(slotReceivedStdout(const char*)));
+ connect( controller, TQT_SIGNAL(ttyStderr(const char*)),
+ procLineMaker, TQT_SLOT(slotReceivedStderr(const char*)));
// controller -> gdbOutputWidget
- connect( controller, SIGNAL(gdbInternalCommandStdout(const char*)),
- gdbOutputWidget, SLOT(slotInternalCommandStdout(const char*)) );
- connect( controller, SIGNAL(gdbUserCommandStdout(const char*)),
- gdbOutputWidget, SLOT(slotUserCommandStdout(const char*)) );
+ connect( controller, TQT_SIGNAL(gdbInternalCommandStdout(const char*)),
+ gdbOutputWidget, TQT_SLOT(slotInternalCommandStdout(const char*)) );
+ connect( controller, TQT_SIGNAL(gdbUserCommandStdout(const char*)),
+ gdbOutputWidget, TQT_SLOT(slotUserCommandStdout(const char*)) );
- connect( controller, SIGNAL(gdbStderr(const char*)),
- gdbOutputWidget, SLOT(slotReceivedStderr(const char*)) );
- connect( controller, SIGNAL(dbgStatus(const QString&, int)),
- gdbOutputWidget, SLOT(slotDbgStatus(const QString&, int)));
+ 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)));
// controller -> viewerWidget
- connect( controller, SIGNAL(dbgStatus(const QString&, int)),
- viewerWidget, SLOT(slotDebuggerState(const QString&, int)));
+ connect( controller, TQT_SIGNAL(dbgStatus(const TQString&, int)),
+ viewerWidget, TQT_SLOT(slotDebuggerState(const TQString&, int)));
- connect(statusBarIndicator, SIGNAL(doubleClicked()),
- controller, SLOT(explainDebuggerStatus()));
+ connect(statusBarIndicator, TQT_SIGNAL(doubleClicked()),
+ controller, TQT_SLOT(explainDebuggerStatus()));
}
bool DebuggerPart::startDebugger()
{
- QString build_dir; // Currently selected build directory
+ TQString build_dir; // Currently selected build directory
DomUtil::PairList run_envvars; // List with the environment variables
- QString run_directory; // Directory from where the program should be run
- QString program; // Absolute path to application
- QString run_arguments; // Command line arguments to be passed to the application
+ TQString run_directory; // Directory from where the program should be run
+ TQString program; // Absolute path to application
+ TQString run_arguments; // Command line arguments to be passed to the application
if (project()) {
build_dir = project()->buildDirectory();
@@ -643,13 +643,13 @@ bool DebuggerPart::startDebugger()
run_arguments = project()->debugArguments();
}
- QString shell = DomUtil::readEntry(*projectDom(), "/kdevdebugger/general/dbgshell");
+ TQString shell = DomUtil::readEntry(*projectDom(), "/kdevdebugger/general/dbgshell");
if( !shell.isEmpty() )
{
shell = shell.simplifyWhiteSpace();
- QString shell_without_args = QStringList::split(QChar(' '), shell ).first();
+ TQString shell_without_args = TQStringList::split(TQChar(' '), shell ).first();
- QFileInfo info( shell_without_args );
+ TQFileInfo info( shell_without_args );
if( info.isRelative() )
{
shell_without_args = build_dir + "/" + shell_without_args;
@@ -670,7 +670,7 @@ bool DebuggerPart::startDebugger()
{
core()->running(this, true);
- stateChanged( QString("active") );
+ stateChanged( TQString("active") );
KActionCollection *ac = actionCollection();
ac->action("debug_run")->setText( i18n("&Continue") );
@@ -748,15 +748,15 @@ void DebuggerPart::slotStopDebugger()
"while it is running, in order to get information "
"about variables, frame stack, and so on.") );
- stateChanged( QString("stopped") );
+ stateChanged( TQString("stopped") );
core()->running(this, false);
}
void DebuggerPart::slotShowView(bool show)
{
- const QWidget* s = static_cast<const QWidget*>(sender());
- QWidget* ncs = const_cast<QWidget*>(s);
+ const TQWidget* s = static_cast<const TQWidget*>(sender());
+ TQWidget* ncs = const_cast<TQWidget*>(s);
mainWindow()->setViewAvailable(ncs, show);
if (show)
mainWindow()->raiseView(ncs);
@@ -857,18 +857,18 @@ void DebuggerPart::slotRun()
if (rebuild)
{
- disconnect(SIGNAL(buildProject()));
+ disconnect(TQT_SIGNAL(buildProject()));
// The KDevProject has no method to build the project,
// so try connecting to a slot has is present to all
// existing project managers.
// Note: this assumes that 'slotBuild' will save
// modified files.
- if (connect(this, SIGNAL(buildProject()),
- project(), SLOT(slotBuild())))
+ if (connect(this, TQT_SIGNAL(buildProject()),
+ project(), TQT_SLOT(slotBuild())))
{
- connect(project(), SIGNAL(projectCompiled()),
- this, SLOT(slotRun_part2()));
+ connect(project(), TQT_SIGNAL(projectCompiled()),
+ this, TQT_SLOT(slotRun_part2()));
emit buildProject();
rebuild = true;
@@ -894,8 +894,8 @@ void DebuggerPart::slotRun_part2()
{
needRebuild_ = false;
- disconnect(project(), SIGNAL(projectCompiled()),
- this, SLOT(slotRun_part2()));
+ disconnect(project(), TQT_SIGNAL(projectCompiled()),
+ this, TQT_SLOT(slotRun_part2()));
if (controller->stateIsOn( s_dbgNotStarted ))
{
@@ -950,8 +950,8 @@ void DebuggerPart::slotExamineCore()
{
mainWindow()->statusBar()->message(i18n("Choose a core file to examine..."), 1000);
- QString dirName = project()? project()->projectDirectory() : QDir::homeDirPath();
- QString coreFile = KFileDialog::getOpenFileName(dirName);
+ TQString dirName = project()? project()->projectDirectory() : TQDir::homeDirPath();
+ TQString coreFile = KFileDialog::getOpenFileName(dirName);
if (coreFile.isNull())
return;
@@ -1092,33 +1092,33 @@ void DebuggerPart::slotRefreshBPState( const Breakpoint& BP)
}
}
-void DebuggerPart::slotStatus(const QString &msg, int state)
+void DebuggerPart::slotStatus(const TQString &msg, int state)
{
- QString stateIndicator, stateIndicatorFull;
+ TQString stateIndicator, stateIndicatorFull;
if (state & s_dbgNotStarted)
{
stateIndicator = " ";
stateIndicatorFull = "Debugger not started";
- stateChanged( QString("stopped") );
+ stateChanged( TQString("stopped") );
}
else if (state & s_dbgBusy)
{
stateIndicator = "R";
stateIndicatorFull = "Debugger is busy";
- stateChanged( QString("active") );
+ stateChanged( TQString("active") );
}
else if (state & s_programExited)
{
stateIndicator = "E";
stateIndicatorFull = "Application has exited";
- stateChanged( QString("stopped") );
+ stateChanged( TQString("stopped") );
}
else
{
stateIndicator = "P";
stateIndicatorFull = "Application is paused";
- stateChanged( QString("paused") );
+ stateChanged( TQString("paused") );
// On the first stop, show the variables view.
// We do it on first stop, and not at debugger start, because
// a program might just successfully run till completion. If we show
@@ -1173,7 +1173,7 @@ void DebuggerPart::slotStatus(const QString &msg, int state)
kdDebug(9012) << " " << msg << endl;
statusBarIndicator->setText(stateIndicator);
- QToolTip::add(statusBarIndicator, stateIndicatorFull);
+ TQToolTip::add(statusBarIndicator, stateIndicatorFull);
if (!msg.isEmpty())
mainWindow()->statusBar()->message(msg, 3000);
@@ -1192,7 +1192,7 @@ void DebuggerPart::slotEvent(GDBController::event_t e)
}
-void DebuggerPart::slotShowStep(const QString &fileName, int lineNum)
+void DebuggerPart::slotShowStep(const TQString &fileName, int lineNum)
{
if ( ! fileName.isEmpty() )
{
@@ -1206,7 +1206,7 @@ void DebuggerPart::slotShowStep(const QString &fileName, int lineNum)
}
-void DebuggerPart::slotGotoSource(const QString &fileName, int lineNum)
+void DebuggerPart::slotGotoSource(const TQString &fileName, int lineNum)
{
if ( ! fileName.isEmpty() )
partController()->editDocument(KURL( fileName ), lineNum);
@@ -1229,13 +1229,13 @@ void DebuggerPart::slotActivePartChanged( KParts::Part* part )
action->setEnabled( iface != 0 );
}
-void DebuggerPart::restorePartialProjectSession(const QDomElement* el)
+void DebuggerPart::restorePartialProjectSession(const TQDomElement* el)
{
gdbBreakpointWidget->restorePartialProjectSession(el);
gdbOutputWidget->restorePartialProjectSession(el);
}
-void DebuggerPart::savePartialProjectSession(QDomElement* el)
+void DebuggerPart::savePartialProjectSession(TQDomElement* el)
{
gdbBreakpointWidget->savePartialProjectSession(el);
gdbOutputWidget->savePartialProjectSession(el);
diff --git a/languages/cpp/debugger/debuggerpart.h b/languages/cpp/debugger/debuggerpart.h
index afb3b340..c20b1f39 100644
--- a/languages/cpp/debugger/debuggerpart.h
+++ b/languages/cpp/debugger/debuggerpart.h
@@ -14,7 +14,7 @@
#ifndef _DEBUGGERPART_H_
#define _DEBUGGERPART_H_
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
#include "kdevplugin.h"
#include "kdevcore.h"
@@ -49,19 +49,19 @@ class DebuggerPart : public KDevPlugin, virtual public DebuggerDCOPInterface
Q_OBJECT
public:
- DebuggerPart( QObject *parent, const char *name, const QStringList & );
+ DebuggerPart( TQObject *parent, const char *name, const TQStringList & );
~DebuggerPart();
- virtual void restorePartialProjectSession(const QDomElement* el);
- virtual void savePartialProjectSession(QDomElement* el);
+ virtual void restorePartialProjectSession(const TQDomElement* el);
+ virtual void savePartialProjectSession(TQDomElement* el);
k_dcop:
virtual ASYNC slotDebugExternalProcess();
- virtual ASYNC slotDebugCommandLine(const QString& command);
+ virtual ASYNC slotDebugCommandLine(const TQString& command);
private slots:
void setupDcop();
void guiClientAdded(KXMLGUIClient*);
- void contextMenu(QPopupMenu *popup, const Context *context);
+ void contextMenu(TQPopupMenu *popup, const Context *context);
void toggleBreakpoint();
void contextEvaluate();
void contextWatch();
@@ -94,11 +94,11 @@ private slots:
void slotRefreshBPState(const Breakpoint&);
- void slotStatus(const QString &msg, int state);
- void slotShowStep(const QString &fileName, int lineNum);
- void slotGotoSource(const QString &fileName, int lineNum);
+ void slotStatus(const TQString &msg, int state);
+ void slotShowStep(const TQString &fileName, int lineNum);
+ void slotGotoSource(const TQString &fileName, int lineNum);
- void slotDCOPApplicationRegistered(const QCString &appId);
+ void slotDCOPApplicationRegistered(const TQCString &appId);
void slotCloseDrKonqi();
// Hide or show the view that's the sender of this signal.
@@ -123,20 +123,20 @@ private:
void setupController();
bool haveModifiedFiles();
- QGuardedPtr<VariableWidget> variableWidget;
- QGuardedPtr<GDBBreakpointWidget> gdbBreakpointWidget;
- QGuardedPtr<FramestackWidget> framestackWidget;
- QGuardedPtr<DisassembleWidget> disassembleWidget;
- QGuardedPtr<GDBOutputWidget> gdbOutputWidget;
- QGuardedPtr<ViewerWidget> viewerWidget;
+ TQGuardedPtr<VariableWidget> variableWidget;
+ TQGuardedPtr<GDBBreakpointWidget> gdbBreakpointWidget;
+ TQGuardedPtr<FramestackWidget> framestackWidget;
+ TQGuardedPtr<DisassembleWidget> disassembleWidget;
+ TQGuardedPtr<GDBOutputWidget> gdbOutputWidget;
+ TQGuardedPtr<ViewerWidget> viewerWidget;
GDBController *controller;
- QGuardedPtr<QLabel> statusBarIndicator;
- QGuardedPtr<DbgToolBar> floatingToolBar;
+ TQGuardedPtr<TQLabel> statusBarIndicator;
+ TQGuardedPtr<DbgToolBar> floatingToolBar;
ProcessLineMaker* procLineMaker;
ProcessLineMaker* gdbLineMaker;
- QString m_contextIdent;
- QCString m_drkonqi;
+ TQString m_contextIdent;
+ TQCString m_drkonqi;
KDevDebugger *m_debugger;
int previousDebuggerState_;
diff --git a/languages/cpp/debugger/debuggertracingdialog.cpp b/languages/cpp/debugger/debuggertracingdialog.cpp
index 217f0b88..41eb7896 100644
--- a/languages/cpp/debugger/debuggertracingdialog.cpp
+++ b/languages/cpp/debugger/debuggertracingdialog.cpp
@@ -2,9 +2,9 @@
#include "debuggertracingdialog.h"
#include "breakpoint.h"
-#include <qbutton.h>
-#include <qlabel.h>
-#include <qcheckbox.h>
+#include <tqbutton.h>
+#include <tqlabel.h>
+#include <tqcheckbox.h>
#include <klineedit.h>
#include <keditlistbox.h>
#include <kmessagebox.h>
@@ -14,16 +14,16 @@ namespace GDBDebugger
DebuggerTracingDialog
::DebuggerTracingDialog(Breakpoint* bp,
- QWidget* parent, const char* name)
+ TQWidget* parent, const char* name)
: DebuggerTracingDialogBase(parent, name), bp_(bp)
{
expressions->setButtons(KEditListBox::Add | KEditListBox::Remove);
- connect(enable, SIGNAL(stateChanged(int)),
- this, SLOT(enableOrDisable(int)));
+ connect(enable, TQT_SIGNAL(stateChanged(int)),
+ this, TQT_SLOT(enableOrDisable(int)));
- connect(enableCustomFormat, SIGNAL(stateChanged(int)),
- this, SLOT(enableOrDisableCustomFormat(int)));
+ connect(enableCustomFormat, TQT_SIGNAL(stateChanged(int)),
+ this, TQT_SLOT(enableOrDisableCustomFormat(int)));
enable->setChecked(bp_->tracingEnabled());
expressions->setItems(bp_->tracedExpressions());
@@ -35,7 +35,7 @@ namespace GDBDebugger
void DebuggerTracingDialog::enableOrDisable(int state)
{
- bool enable = (state == QButton::On);
+ bool enable = (state == TQButton::On);
expressionsLabel->setEnabled(enable);
expressions->setEnabled(enable);
@@ -45,7 +45,7 @@ namespace GDBDebugger
void DebuggerTracingDialog::enableOrDisableCustomFormat(int state)
{
- customFormat->setEnabled(state == QButton::On);
+ customFormat->setEnabled(state == TQButton::On);
}
void DebuggerTracingDialog::accept()
@@ -57,7 +57,7 @@ namespace GDBDebugger
if (enableCustomFormat->isOn())
{
- QString s = customFormat->text();
+ TQString s = customFormat->text();
unsigned percent_count = 0;
for (unsigned i = 0; i < s.length(); ++i)
if (s[i] == '%')
diff --git a/languages/cpp/debugger/debuggertracingdialog.h b/languages/cpp/debugger/debuggertracingdialog.h
index 1379f684..916ae912 100644
--- a/languages/cpp/debugger/debuggertracingdialog.h
+++ b/languages/cpp/debugger/debuggertracingdialog.h
@@ -25,7 +25,7 @@ namespace GDBDebugger
Q_OBJECT
public:
DebuggerTracingDialog(Breakpoint* bp,
- QWidget* parent, const char* name = 0);
+ TQWidget* parent, const char* name = 0);
private slots:
void enableOrDisable(int);
diff --git a/languages/cpp/debugger/disassemblewidget.cpp b/languages/cpp/debugger/disassemblewidget.cpp
index 759393f5..562aa1ae 100644
--- a/languages/cpp/debugger/disassemblewidget.cpp
+++ b/languages/cpp/debugger/disassemblewidget.cpp
@@ -22,9 +22,9 @@
#include <ktextedit.h>
#include <kglobalsettings.h>
-#include <qdict.h>
-#include <qheader.h>
-#include <qtextedit.h>
+#include <tqdict.h>
+#include <tqheader.h>
+#include <tqtextedit.h>
#include <stdlib.h>
@@ -35,8 +35,8 @@ namespace GDBDebugger
/***************************************************************************/
/***************************************************************************/
-DisassembleWidget::DisassembleWidget(GDBController* controller, QWidget *parent, const char *name)
- : QTextEdit(parent, name), controller_(controller),
+DisassembleWidget::DisassembleWidget(GDBController* controller, TQWidget *parent, const char *name)
+ : TQTextEdit(parent, name), controller_(controller),
active_(false),
lower_(0),
upper_(0),
@@ -92,8 +92,8 @@ void DisassembleWidget::slotActivate(bool activate)
/***************************************************************************/
-void DisassembleWidget::slotShowStepInSource( const QString &, int,
- const QString &currentAddress)
+void DisassembleWidget::slotShowStepInSource( const TQString &, int,
+ const TQString &currentAddress)
{
kdDebug(9012) << "DisasssembleWidget::slotShowStepInSource()" << endl;
@@ -116,7 +116,7 @@ void DisassembleWidget::getNextDisplay()
{
Q_ASSERT(!currentAddress_.isNull());
- QString cmd = QString("-data-disassemble -s $pc -e \"$pc + 128\" -- 0");
+ TQString cmd = TQString("-data-disassemble -s $pc -e \"$pc + 128\" -- 0");
controller_->addCommandToFront(
new GDBCommand( cmd, this, &DisassembleWidget::memoryRead ) );
}
@@ -127,7 +127,7 @@ void DisassembleWidget::getNextDisplay()
void DisassembleWidget::memoryRead(const GDBMI::ResultRecord& r)
{
const GDBMI::Value& content = r["asm_insns"];
- QString rawdata;
+ TQString rawdata;
clear();
@@ -135,12 +135,12 @@ void DisassembleWidget::memoryRead(const GDBMI::ResultRecord& r)
{
const GDBMI::Value& line = content[i];
- QString addr = line["address"].literal();
- QString fct = line["func-name"].literal();
- QString offs = line["offset"].literal();
- QString inst = line["inst"].literal();
+ TQString addr = line["address"].literal();
+ TQString fct = line["func-name"].literal();
+ TQString offs = line["offset"].literal();
+ TQString inst = line["inst"].literal();
- rawdata += QString(addr + " " + fct+"+"+offs + " " + inst + "\n");
+ rawdata += TQString(addr + " " + fct+"+"+offs + " " + inst + "\n");
if (i == 0) {
lower_ = strtoul(addr.latin1(), 0, 0);
@@ -155,13 +155,13 @@ void DisassembleWidget::memoryRead(const GDBMI::ResultRecord& r)
}
-void DisassembleWidget::showEvent(QShowEvent*)
+void DisassembleWidget::showEvent(TQShowEvent*)
{
slotActivate(true);
}
-void DisassembleWidget::hideEvent(QHideEvent*)
+void DisassembleWidget::hideEvent(TQHideEvent*)
{
slotActivate(false);
}
diff --git a/languages/cpp/debugger/disassemblewidget.h b/languages/cpp/debugger/disassemblewidget.h
index 6b2fdd3a..55288c0c 100644
--- a/languages/cpp/debugger/disassemblewidget.h
+++ b/languages/cpp/debugger/disassemblewidget.h
@@ -18,7 +18,7 @@
#include "mi/gdbmi.h"
-#include <qtextedit.h>
+#include <tqtextedit.h>
/***************************************************************************/
/***************************************************************************/
@@ -35,16 +35,16 @@ class DisassembleWidget : public QTextEdit
Q_OBJECT
public:
- DisassembleWidget( GDBController* controller, QWidget *parent=0, const char *name=0 );
+ DisassembleWidget( GDBController* controller, TQWidget *parent=0, const char *name=0 );
virtual ~DisassembleWidget();
public slots:
void slotActivate(bool activate);
- void slotShowStepInSource(const QString &fileName, int lineNum, const QString &address);
+ void slotShowStepInSource(const TQString &fileName, int lineNum, const TQString &address);
private:
- virtual void showEvent(QShowEvent*);
- virtual void hideEvent(QHideEvent*);
+ virtual void showEvent(TQShowEvent*);
+ virtual void hideEvent(TQHideEvent*);
bool displayCurrent();
void getNextDisplay();
@@ -57,7 +57,7 @@ private:
unsigned long lower_;
unsigned long upper_;
unsigned long address_;
- QString currentAddress_;
+ TQString currentAddress_;
};
}
diff --git a/languages/cpp/debugger/framestackwidget.cpp b/languages/cpp/debugger/framestackwidget.cpp
index e731a1ee..fb0246e6 100644
--- a/languages/cpp/debugger/framestackwidget.cpp
+++ b/languages/cpp/debugger/framestackwidget.cpp
@@ -21,11 +21,11 @@
#include <kdebug.h>
#include <kglobalsettings.h>
-#include <qheader.h>
-#include <qlistbox.h>
-#include <qregexp.h>
-#include <qstrlist.h>
-#include <qpainter.h>
+#include <tqheader.h>
+#include <tqlistbox.h>
+#include <tqregexp.h>
+#include <tqstrlist.h>
+#include <tqpainter.h>
#include <ctype.h>
@@ -39,9 +39,9 @@ namespace GDBDebugger
{
FramestackWidget::FramestackWidget(GDBController* controller,
- QWidget *parent,
+ TQWidget *parent,
const char *name, WFlags f)
- : QListView(parent, name, f),
+ : TQListView(parent, name, f),
viewedThread_(0),
controller_(controller),
mayUpdate_( false )
@@ -49,19 +49,19 @@ FramestackWidget::FramestackWidget(GDBController* controller,
setRootIsDecorated(true);
setSorting(-1);
setSelectionMode(Single);
- addColumn(QString::null); // Frame number
- addColumn(QString::null); // function name/address
- addColumn(QString::null); // source
+ addColumn(TQString::null); // Frame number
+ addColumn(TQString::null); // function name/address
+ addColumn(TQString::null); // source
header()->hide();
// FIXME: maybe, all debugger components should derive from
// a base class that does this connect.
- connect(controller, SIGNAL(event(GDBController::event_t)),
- this, SLOT(slotEvent(GDBController::event_t)));
+ connect(controller, TQT_SIGNAL(event(GDBController::event_t)),
+ this, TQT_SLOT(slotEvent(GDBController::event_t)));
- connect( this, SIGNAL(clicked(QListViewItem*)),
- this, SLOT(slotSelectionChanged(QListViewItem*)) );
+ connect( this, TQT_SIGNAL(clicked(TQListViewItem*)),
+ this, TQT_SLOT(slotSelectionChanged(TQListViewItem*)) );
}
@@ -72,11 +72,11 @@ FramestackWidget::~FramestackWidget()
/***************************************************************************/
-QListViewItem *FramestackWidget::lastChild() const
+TQListViewItem *FramestackWidget::lastChild() const
{
- QListViewItem* child = firstChild();
+ TQListViewItem* child = firstChild();
if (child)
- while (QListViewItem* nextChild = child->nextSibling())
+ while (TQListViewItem* nextChild = child->nextSibling())
child = nextChild;
return child;
@@ -88,12 +88,12 @@ void FramestackWidget::clear()
{
viewedThread_ = 0;
- QListView::clear();
+ TQListView::clear();
}
/***************************************************************************/
-void FramestackWidget::slotSelectionChanged(QListViewItem *thisItem)
+void FramestackWidget::slotSelectionChanged(TQListViewItem *thisItem)
{
ThreadStackItem *thread = dynamic_cast<ThreadStackItem*> (thisItem);
if (thread)
@@ -110,7 +110,7 @@ void FramestackWidget::slotSelectionChanged(QListViewItem *thisItem)
// Switch to the target thread.
if (frame->threadNo() != -1)
controller_->addCommand(
- new GDBCommand(QString("-thread-select %1")
+ new GDBCommand(TQString("-thread-select %1")
.arg(frame->threadNo()).ascii()));
viewedThread_ = findThread(frame->threadNo());
@@ -186,7 +186,7 @@ void FramestackWidget::slotEvent(GDBController::event_t e)
}
}
-void FramestackWidget::showEvent(QShowEvent*)
+void FramestackWidget::showEvent(TQShowEvent*)
{
if (controller_->stateIsOn(s_appRunning|s_dbgBusy|s_dbgNotStarted|s_shuttingDown))
return;
@@ -208,7 +208,7 @@ void FramestackWidget::getBacktrace(int min_frame, int max_frame)
maxFrame_ = max_frame;
controller_->addCommand(
- new GDBCommand(QString("-stack-info-depth %1").arg(max_frame+1),
+ new GDBCommand(TQString("-stack-info-depth %1").arg(max_frame+1),
this,
&FramestackWidget::handleStackDepth));
}
@@ -223,7 +223,7 @@ void FramestackWidget::handleStackDepth(const GDBMI::ResultRecord& r)
maxFrame_ = existing_frames;
//add the following command to the front, so noone switches threads in between
controller_->addCommandToFront(
- new GDBCommand(QString("-stack-list-frames %1 %2")
+ new GDBCommand(TQString("-stack-list-frames %1 %2")
.arg(minFrame_).arg(maxFrame_),
this, &FramestackWidget::parseGDBBacktraceList));
}
@@ -235,7 +235,7 @@ void FramestackWidget::getBacktraceForThread(int threadNo)
{
// Switch to the target thread.
controller_->addCommand(
- new GDBCommand(QString("-thread-select %1")
+ new GDBCommand(TQString("-thread-select %1")
.arg(threadNo).ascii()));
viewedThread_ = findThread(threadNo);
@@ -247,7 +247,7 @@ void FramestackWidget::getBacktraceForThread(int threadNo)
{
// Switch back to the original thread.
controller_->addCommand(
- new GDBCommand(QString("-thread-select %1")
+ new GDBCommand(TQString("-thread-select %1")
.arg(currentThread).ascii()));
}
}
@@ -271,15 +271,15 @@ void FramestackWidget::handleThreadList(const GDBMI::ResultRecord& r)
// Really threaded program.
for(unsigned i = 0, e = ids.results.size(); i != e; ++i)
{
- QString id = ids.results[i]->value->literal();
+ TQString id = ids.results[i]->value->literal();
controller_->addCommand(
- new GDBCommand(QString("-thread-select %1").arg(id).ascii(),
+ new GDBCommand(TQString("-thread-select %1").arg(id).ascii(),
this, &FramestackWidget::handleThread));
}
controller_->addCommand(
- new GDBCommand(QString("-thread-select %1")
+ new GDBCommand(TQString("-thread-select %1")
.arg(controller_->currentThread()).ascii()));
}
@@ -292,13 +292,13 @@ void FramestackWidget::handleThreadList(const GDBMI::ResultRecord& r)
void FramestackWidget::handleThread(const GDBMI::ResultRecord& r)
{
- QString id = r["new-thread-id"].literal();
+ TQString id = r["new-thread-id"].literal();
int id_num = id.toInt();
- QString name_column;
- QString func_column;
- QString args_column;
- QString source_column;
+ TQString name_column;
+ TQString func_column;
+ TQString args_column;
+ TQString source_column;
formatFrame(r["frame"], func_column, source_column);
@@ -329,7 +329,7 @@ void FramestackWidget::parseGDBBacktraceList(const GDBMI::ResultRecord& r)
Q_ASSERT(dynamic_cast<const GDBMI::ListValue*>(&frames));
// Remove "..." item, if there's one.
- QListViewItem* last;
+ TQListViewItem* last;
if (viewedThread_)
{
last = viewedThread_->firstChild();
@@ -352,13 +352,13 @@ void FramestackWidget::parseGDBBacktraceList(const GDBMI::ResultRecord& r)
// For now, just produce string simular to gdb
// console output. In future we might have a table,
// or something better.
- QString frameDesc;
+ TQString frameDesc;
- QString name_column;
- QString func_column;
- QString source_column;
+ TQString name_column;
+ TQString func_column;
+ TQString source_column;
- QString level_s = frame["level"].literal();
+ TQString level_s = frame["level"].literal();
int level = level_s.toInt();
name_column = "#" + level_s;
@@ -377,7 +377,7 @@ void FramestackWidget::parseGDBBacktraceList(const GDBMI::ResultRecord& r)
}
if (has_more_frames)
{
- QListViewItem* item;
+ TQListViewItem* item;
if (viewedThread_)
item = new FrameStackItem(viewedThread_, lastLevel+1, "...");
else
@@ -404,7 +404,7 @@ void FramestackWidget::parseGDBBacktraceList(const GDBMI::ResultRecord& r)
ThreadStackItem *FramestackWidget::findThread(int threadNo)
{
- QListViewItem *sibling = firstChild();
+ TQListViewItem *sibling = firstChild();
while (sibling)
{
ThreadStackItem *thread = dynamic_cast<ThreadStackItem*> (sibling);
@@ -422,7 +422,7 @@ ThreadStackItem *FramestackWidget::findThread(int threadNo)
FrameStackItem *FramestackWidget::findFrame(int frameNo, int threadNo)
{
- QListViewItem* frameItem = 0;
+ TQListViewItem* frameItem = 0;
if (threadNo != -1)
{
@@ -445,8 +445,8 @@ FrameStackItem *FramestackWidget::findFrame(int frameNo, int threadNo)
}
void FramestackWidget::formatFrame(const GDBMI::Value& frame,
- QString& func_column,
- QString& source_column)
+ TQString& func_column,
+ TQString& source_column)
{
func_column = source_column = "";
@@ -476,15 +476,15 @@ void FramestackWidget::formatFrame(const GDBMI::Value& frame,
}
-void FramestackWidget::drawContentsOffset( QPainter * p, int ox, int oy,
+void FramestackWidget::drawContentsOffset( TQPainter * p, int ox, int oy,
int cx, int cy, int cw, int ch )
{
- QListView::drawContentsOffset(p, ox, oy, cx, cy, cw, ch);
+ TQListView::drawContentsOffset(p, ox, oy, cx, cy, cw, ch);
int s1_x = header()->sectionPos(1);
int s1_w = header()->sectionSize(1);
- QRect section1(s1_x, contentsHeight(), s1_w, viewport()->height());
+ TQRect section1(s1_x, contentsHeight(), s1_w, viewport()->height());
p->fillRect(section1, KGlobalSettings::alternateBackgroundColor());
}
@@ -495,8 +495,8 @@ void FramestackWidget::drawContentsOffset( QPainter * p, int ox, int oy,
FrameStackItem::FrameStackItem(FramestackWidget *parent,
unsigned frameNo,
- const QString &name)
- : QListViewItem(parent, parent->lastChild()),
+ const TQString &name)
+ : TQListViewItem(parent, parent->lastChild()),
frameNo_(frameNo),
threadNo_(-1)
{
@@ -507,8 +507,8 @@ FrameStackItem::FrameStackItem(FramestackWidget *parent,
FrameStackItem::FrameStackItem(ThreadStackItem *parent,
unsigned frameNo,
- const QString &name)
- : QListViewItem(parent, parent->lastChild()),
+ const TQString &name)
+ : TQListViewItem(parent, parent->lastChild()),
frameNo_(frameNo),
threadNo_(parent->threadNo())
{
@@ -522,11 +522,11 @@ FrameStackItem::~FrameStackItem()
// **************************************************************************
-QListViewItem *FrameStackItem::lastChild() const
+TQListViewItem *FrameStackItem::lastChild() const
{
- QListViewItem* child = firstChild();
+ TQListViewItem* child = firstChild();
if (child)
- while (QListViewItem* nextChild = child->nextSibling())
+ while (TQListViewItem* nextChild = child->nextSibling())
child = nextChild;
return child;
@@ -547,7 +547,7 @@ void FrameStackItem::setOpen(bool open)
}
}
#endif
- QListViewItem::setOpen(open);
+ TQListViewItem::setOpen(open);
}
// **************************************************************************
@@ -555,7 +555,7 @@ void FrameStackItem::setOpen(bool open)
// **************************************************************************
ThreadStackItem::ThreadStackItem(FramestackWidget *parent, unsigned threadNo)
-: QListViewItem(parent),
+: TQListViewItem(parent),
threadNo_(threadNo)
{
setText(0, i18n("Thread %1").arg(threadNo_));
@@ -569,11 +569,11 @@ ThreadStackItem::~ThreadStackItem()
// **************************************************************************
-QListViewItem *ThreadStackItem::lastChild() const
+TQListViewItem *ThreadStackItem::lastChild() const
{
- QListViewItem* child = firstChild();
+ TQListViewItem* child = firstChild();
if (child)
- while (QListViewItem* nextChild = child->nextSibling())
+ while (TQListViewItem* nextChild = child->nextSibling())
child = nextChild;
return child;
@@ -609,31 +609,31 @@ void ThreadStackItem::setOpen(bool open)
setText(2, savedSource_);
}
- QListViewItem::setOpen(open);
+ TQListViewItem::setOpen(open);
}
-void FrameStackItem::paintCell(QPainter * p, const QColorGroup & cg,
+void FrameStackItem::paintCell(TQPainter * p, const TQColorGroup & cg,
int column, int width, int align )
{
- QColorGroup cg2(cg);
+ TQColorGroup cg2(cg);
if (column % 2)
{
- cg2.setColor(QColorGroup::Base,
+ cg2.setColor(TQColorGroup::Base,
KGlobalSettings::alternateBackgroundColor());
}
- QListViewItem::paintCell(p, cg2, column, width, align);
+ TQListViewItem::paintCell(p, cg2, column, width, align);
}
-void ThreadStackItem::paintCell(QPainter * p, const QColorGroup & cg,
+void ThreadStackItem::paintCell(TQPainter * p, const TQColorGroup & cg,
int column, int width, int align )
{
- QColorGroup cg2(cg);
+ TQColorGroup cg2(cg);
if (column % 2)
{
- cg2.setColor(QColorGroup::Base,
+ cg2.setColor(TQColorGroup::Base,
KGlobalSettings::alternateBackgroundColor());
}
- QListViewItem::paintCell(p, cg2, column, width, align);
+ TQListViewItem::paintCell(p, cg2, column, width, align);
}
diff --git a/languages/cpp/debugger/framestackwidget.h b/languages/cpp/debugger/framestackwidget.h
index 36cac1ba..656d2cdb 100644
--- a/languages/cpp/debugger/framestackwidget.h
+++ b/languages/cpp/debugger/framestackwidget.h
@@ -16,8 +16,8 @@
#ifndef _FRAMESTACKWIDGET_H_
#define _FRAMESTACKWIDGET_H_
-#include <qlistview.h>
-#include <qstringlist.h>
+#include <tqlistview.h>
+#include <tqstringlist.h>
#include "gdbcontroller.h"
#include "mi/miparser.h"
@@ -38,9 +38,9 @@ public:
virtual ~ThreadStackItem();
void setOpen(bool open);
- QListViewItem *lastChild() const;
+ TQListViewItem *lastChild() const;
- void paintCell(QPainter * p, const QColorGroup & cg,
+ void paintCell(TQPainter * p, const TQColorGroup & cg,
int column, int width, int align );
int threadNo()
@@ -48,8 +48,8 @@ public:
private:
int threadNo_;
- QString savedFunc_;
- QString savedSource_;
+ TQString savedFunc_;
+ TQString savedSource_;
};
/***************************************************************************/
@@ -61,16 +61,16 @@ class FrameStackItem : public QListViewItem
public:
FrameStackItem(FramestackWidget *parent,
unsigned frameNo,
- const QString &name);
+ const TQString &name);
FrameStackItem(ThreadStackItem *parent,
unsigned frameNo,
- const QString &name);
+ const TQString &name);
virtual ~FrameStackItem();
void setOpen(bool open);
- QListViewItem *lastChild() const;
+ TQListViewItem *lastChild() const;
- void paintCell(QPainter * p, const QColorGroup & cg,
+ void paintCell(TQPainter * p, const TQColorGroup & cg,
int column, int width, int align );
int frameNo()
@@ -94,11 +94,11 @@ class FramestackWidget : public QListView
public:
FramestackWidget( GDBController* controller,
- QWidget *parent=0,
+ TQWidget *parent=0,
const char *name=0, WFlags f=0 );
virtual ~FramestackWidget();
- QListViewItem *lastChild() const;
+ TQListViewItem *lastChild() const;
ThreadStackItem *findThread(int threadNo);
FrameStackItem *findFrame(int frameNo, int threadNo);
@@ -108,7 +108,7 @@ public:
protected:
- void drawContentsOffset( QPainter * p, int ox, int oy,
+ void drawContentsOffset( TQPainter * p, int ox, int oy,
int cx, int cy, int cw, int ch );
@@ -120,8 +120,8 @@ private:
The function is used both for frames and threads.
*/
void formatFrame(const GDBMI::Value& frame,
- QString& func_column,
- QString& source_column);
+ TQString& func_column,
+ TQString& source_column);
/** Cause gdb to produce backtrace for the current thread.
@@ -148,13 +148,13 @@ private:
public slots:
void slotEvent(GDBController::event_t e);
- void slotSelectionChanged(QListViewItem *thisItem);
+ void slotSelectionChanged(TQListViewItem *thisItem);
#if QT_VERSION < 300
private:
- QListViewItem* findItemWhichBeginsWith(const QString& text) const;
+ TQListViewItem* findItemWhichBeginsWith(const TQString& text) const;
#endif
- virtual void showEvent(QShowEvent*);
+ virtual void showEvent(TQShowEvent*);
private:
diff --git a/languages/cpp/debugger/gdbbreakpointwidget.cpp b/languages/cpp/debugger/gdbbreakpointwidget.cpp
index f9a83d6c..b092a015 100644
--- a/languages/cpp/debugger/gdbbreakpointwidget.cpp
+++ b/languages/cpp/debugger/gdbbreakpointwidget.cpp
@@ -29,18 +29,18 @@
#include <kurl.h>
#include <kmessagebox.h>
-#include <qvbuttongroup.h>
-#include <qfileinfo.h>
-#include <qheader.h>
-#include <qtable.h>
-#include <qtoolbutton.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qvbox.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qpushbutton.h>
-#include <qcheckbox.h>
+#include <tqvbuttongroup.h>
+#include <tqfileinfo.h>
+#include <tqheader.h>
+#include <tqtable.h>
+#include <tqtoolbutton.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqvbox.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqpushbutton.h>
+#include <tqcheckbox.h>
#include <stdlib.h>
#include <ctype.h>
@@ -80,7 +80,7 @@ class BreakpointTableRow : public QTableItem
{
public:
- BreakpointTableRow(QTable* table, EditType editType, Breakpoint* bp);
+ BreakpointTableRow(TQTable* table, EditType editType, Breakpoint* bp);
~BreakpointTableRow();
bool match (Breakpoint* bp) const;
@@ -100,9 +100,9 @@ private:
/***************************************************************************/
/***************************************************************************/
-BreakpointTableRow::BreakpointTableRow(QTable* parent, EditType editType,
+BreakpointTableRow::BreakpointTableRow(TQTable* parent, EditType editType,
Breakpoint* bp) :
- QTableItem(parent, editType, ""),
+ TQTableItem(parent, editType, ""),
m_breakpoint(bp)
{
appendEmptyRow();
@@ -140,13 +140,13 @@ void BreakpointTableRow::appendEmptyRow()
table()->setItem(row, Control, this);
- QCheckTableItem* cti = new QCheckTableItem( table(), "");
+ TQCheckTableItem* cti = new TQCheckTableItem( table(), "");
table()->setItem(row, Enable, cti);
ComplexEditCell* act = new ComplexEditCell(table());
table()->setItem(row, Tracing, act);
- QObject::connect(act, SIGNAL(edit(QTableItem*)),
- table()->parent(), SLOT(editTracing(QTableItem*)));
+ TQObject::connect(act, TQT_SIGNAL(edit(TQTableItem*)),
+ table()->parent(), TQT_SLOT(editTracing(TQTableItem*)));
}
/***************************************************************************/
@@ -155,22 +155,22 @@ void BreakpointTableRow::setRow()
{
if ( m_breakpoint )
{
- QTableItem *item = table()->item ( row(), Enable );
+ TQTableItem *item = table()->item ( row(), Enable );
Q_ASSERT(item->rtti() == 2);
- ((QCheckTableItem*)item)->setChecked(m_breakpoint->isEnabled());
+ ((TQCheckTableItem*)item)->setChecked(m_breakpoint->isEnabled());
- QString status=m_breakpoint->statusDisplay(m_activeFlag);
+ TQString status=m_breakpoint->statusDisplay(m_activeFlag);
table()->setText(row(), Status, status);
table()->setText(row(), Condition, m_breakpoint->conditional());
- table()->setText(row(), IgnoreCount, QString::number(m_breakpoint->ignoreCount() ));
- table()->setText(row(), Hits, QString::number(m_breakpoint->hits() ));
+ table()->setText(row(), IgnoreCount, TQString::number(m_breakpoint->ignoreCount() ));
+ table()->setText(row(), Hits, TQString::number(m_breakpoint->hits() ));
- QString displayType = m_breakpoint->displayType();
+ TQString displayType = m_breakpoint->displayType();
table()->setText(row(), Location, m_breakpoint->location());
- QTableItem* ce = table()->item( row(), Tracing );
+ TQTableItem* ce = table()->item( row(), Tracing );
ce->setText(breakpoint()->tracingEnabled() ? "Enabled" : "Disabled");
// In case there's editor open in this cell, update it too.
static_cast<ComplexEditCell*>(ce)->updateValue();
@@ -196,15 +196,15 @@ void BreakpointTableRow::setRow()
/***************************************************************************/
GDBBreakpointWidget::GDBBreakpointWidget(GDBController* controller,
- QWidget *parent, const char *name) :
-QHBox(parent, name),
+ TQWidget *parent, const char *name) :
+TQHBox(parent, name),
controller_(controller)
{
m_table = new GDBTable(0, numCols, this, name);
- m_table->setSelectionMode(QTable::SingleRow);
+ m_table->setSelectionMode(TQTable::SingleRow);
m_table->setShowGrid (false);
m_table->setLeftMargin(0);
- m_table->setFocusStyle(QTable::FollowStyle);
+ m_table->setFocusStyle(TQTable::FollowStyle);
m_table->hideColumn(Control);
m_table->setColumnReadOnly(Type, true);
@@ -212,7 +212,7 @@ controller_(controller)
m_table->setColumnReadOnly(Hits, true);
m_table->setColumnWidth( Enable, 20);
- QHeader *header = m_table->horizontalHeader();
+ TQHeader *header = m_table->horizontalHeader();
header->setLabel( Enable, "" );
header->setLabel( Type, i18n("Type") );
@@ -223,7 +223,7 @@ controller_(controller)
header->setLabel( Hits, i18n("Hits") );
header->setLabel( Tracing, i18n("Tracing") );
- QPopupMenu* newBreakpoint = new QPopupMenu(this);
+ TQPopupMenu* newBreakpoint = new TQPopupMenu(this);
newBreakpoint->insertItem(i18n("Code breakpoint", "Code"),
BP_TYPE_FilePos);
newBreakpoint->insertItem(i18n("Data breakpoint", "Data write"),
@@ -232,7 +232,7 @@ controller_(controller)
BP_TYPE_ReadWatchpoint);
- m_ctxMenu = new QPopupMenu( this );
+ m_ctxMenu = new TQPopupMenu( this );
m_ctxMenu->insertItem( i18n("New breakpoint", "New"),
newBreakpoint);
m_ctxMenu->insertItem( i18n( "Show text" ), BW_ITEM_Show );
@@ -251,39 +251,39 @@ controller_(controller)
m_table->show();
- connect( newBreakpoint, SIGNAL(activated(int)),
- this, SLOT(slotAddBlankBreakpoint(int)) );
+ connect( newBreakpoint, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotAddBlankBreakpoint(int)) );
- connect( m_table, SIGNAL(contextMenuRequested(int, int, const QPoint &)),
- this, SLOT(slotContextMenuShow(int, int, const QPoint & )) );
- connect( m_ctxMenu, SIGNAL(activated(int)),
- this, SLOT(slotContextMenuSelect(int)) );
+ connect( m_table, TQT_SIGNAL(contextMenuRequested(int, int, const TQPoint &)),
+ this, TQT_SLOT(slotContextMenuShow(int, int, const TQPoint & )) );
+ connect( m_ctxMenu, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotContextMenuSelect(int)) );
- connect( m_table, SIGNAL(doubleClicked(int, int, int, const QPoint &)),
- this, SLOT(slotRowDoubleClicked(int, int, int, const QPoint &)));
+ connect( m_table, TQT_SIGNAL(doubleClicked(int, int, int, const TQPoint &)),
+ this, TQT_SLOT(slotRowDoubleClicked(int, int, int, const TQPoint &)));
- connect( m_table, SIGNAL(valueChanged(int, int)),
- this, SLOT(slotNewValue(int, int)));
+ connect( m_table, TQT_SIGNAL(valueChanged(int, int)),
+ this, TQT_SLOT(slotNewValue(int, int)));
- connect( m_table, SIGNAL(returnPressed()),
- this, SLOT(slotEditBreakpoint()));
-// connect( m_table, SIGNAL(f2Pressed()),
-// this, SLOT(slotEditBreakpoint()));
- connect( m_table, SIGNAL(deletePressed()),
- this, SLOT(slotRemoveBreakpoint()));
+ connect( m_table, TQT_SIGNAL(returnPressed()),
+ this, TQT_SLOT(slotEditBreakpoint()));
+// connect( m_table, TQT_SIGNAL(f2Pressed()),
+// this, TQT_SLOT(slotEditBreakpoint()));
+ connect( m_table, TQT_SIGNAL(deletePressed()),
+ this, TQT_SLOT(slotRemoveBreakpoint()));
// This slot doesn't exist anymore
-// connect( m_table, SIGNAL(insertPressed()),
-// this, SLOT(slotAddBlankBreakpoint()));
+// connect( m_table, TQT_SIGNAL(insertPressed()),
+// this, TQT_SLOT(slotAddBlankBreakpoint()));
// FIXME: maybe, all debugger components should derive from
// a base class that does this connect.
- connect(controller, SIGNAL(event(GDBController::event_t)),
- this, SLOT(slotEvent(GDBController::event_t)));
+ connect(controller, TQT_SIGNAL(event(GDBController::event_t)),
+ this, TQT_SLOT(slotEvent(GDBController::event_t)));
connect(controller,
- SIGNAL(watchpointHit(int, const QString&, const QString&)),
+ TQT_SIGNAL(watchpointHit(int, const TQString&, const TQString&)),
this,
- SLOT(slotWatchpointHit(int, const QString&, const QString&)));
+ TQT_SLOT(slotWatchpointHit(int, const TQString&, const TQString&)));
}
/***************************************************************************/
@@ -357,8 +357,8 @@ void GDBBreakpointWidget::slotBreakpointHit(int id)
}
void GDBBreakpointWidget::slotWatchpointHit(int id,
- const QString& oldValue,
- const QString& newValue)
+ const TQString& oldValue,
+ const TQString& newValue)
{
BreakpointTableRow* br = findId(id);
@@ -451,10 +451,10 @@ bool GDBBreakpointWidget::hasWatchpointForAddress(
BreakpointTableRow* GDBBreakpointWidget::addBreakpoint(Breakpoint *bp)
{
BreakpointTableRow* btr =
- new BreakpointTableRow( m_table, QTableItem::WhenCurrent, bp );
+ new BreakpointTableRow( m_table, TQTableItem::WhenCurrent, bp );
- connect(bp, SIGNAL(modified(Breakpoint*)),
- this, SLOT(slotBreakpointModified(Breakpoint*)));
+ connect(bp, TQT_SIGNAL(modified(Breakpoint*)),
+ this, TQT_SLOT(slotBreakpointModified(Breakpoint*)));
sendToGdb(*bp);
@@ -489,7 +489,7 @@ void GDBBreakpointWidget::removeBreakpoint(BreakpointTableRow* btr)
/***************************************************************************/
-void GDBBreakpointWidget::slotToggleBreakpoint(const QString &fileName, int lineNum)
+void GDBBreakpointWidget::slotToggleBreakpoint(const TQString &fileName, int lineNum)
{
FilePosBreakpoint *fpBP = new FilePosBreakpoint(fileName, lineNum+1);
@@ -504,7 +504,7 @@ void GDBBreakpointWidget::slotToggleBreakpoint(const QString &fileName, int line
/***************************************************************************/
-void GDBBreakpointWidget::slotToggleBreakpointEnabled(const QString &fileName, int lineNum)
+void GDBBreakpointWidget::slotToggleBreakpointEnabled(const TQString &fileName, int lineNum)
{
FilePosBreakpoint *fpBP = new FilePosBreakpoint(fileName, lineNum+1);
@@ -520,7 +520,7 @@ void GDBBreakpointWidget::slotToggleBreakpointEnabled(const QString &fileName, i
/***************************************************************************/
-void GDBBreakpointWidget::slotToggleWatchpoint(const QString &varName)
+void GDBBreakpointWidget::slotToggleWatchpoint(const TQString &varName)
{
Watchpoint *watchpoint = new Watchpoint(varName, false, true);
BreakpointTableRow* btr = find(watchpoint);
@@ -557,7 +557,7 @@ void GDBBreakpointWidget::handleBreakpointList(const GDBMI::ResultRecord& r)
if (b.hasField("cond"))
bp->setConditional(b["cond"].literal());
else
- bp->setConditional(QString::null);
+ bp->setConditional(TQString::null);
btr->setRow();
emit publishBPState(*bp);
}
@@ -565,7 +565,7 @@ void GDBBreakpointWidget::handleBreakpointList(const GDBMI::ResultRecord& r)
{
// It's a breakpoint added outside, most probably
// via gdb console. Add it now.
- QString type = b["type"].literal();
+ TQString type = b["type"].literal();
if (type == "breakpoint" || type == "hw breakpoint")
{
@@ -580,7 +580,7 @@ void GDBBreakpointWidget::handleBreakpointList(const GDBMI::ResultRecord& r)
bp->setPending(false);
new BreakpointTableRow(m_table,
- QTableItem::WhenCurrent,
+ TQTableItem::WhenCurrent,
bp);
emit publishBPState(*bp);
@@ -607,7 +607,7 @@ void GDBBreakpointWidget::handleBreakpointList(const GDBMI::ResultRecord& r)
}
}
-void GDBBreakpointWidget::handleTracingPrintf(const QValueVector<QString>& s)
+void GDBBreakpointWidget::handleTracingPrintf(const TQValueVector<TQString>& s)
{
// The first line of output is the command itself, which we don't need.
for(unsigned i = 1; i < s.size(); ++i)
@@ -684,7 +684,7 @@ void GDBBreakpointWidget::slotRemoveAllBreakpoints()
/***************************************************************************/
-void GDBBreakpointWidget::slotRowDoubleClicked(int row, int col, int btn, const QPoint &)
+void GDBBreakpointWidget::slotRowDoubleClicked(int row, int col, int btn, const TQPoint &)
{
if ( btn == Qt::LeftButton )
{
@@ -703,7 +703,7 @@ void GDBBreakpointWidget::slotRowDoubleClicked(int row, int col, int btn, const
}
}
-void GDBBreakpointWidget::slotContextMenuShow( int row, int /*col*/, const QPoint &mousePos )
+void GDBBreakpointWidget::slotContextMenuShow( int row, int /*col*/, const TQPoint &mousePos )
{
BreakpointTableRow *btr = (BreakpointTableRow *)m_table->item(row, Control );
@@ -813,7 +813,7 @@ void GDBBreakpointWidget::slotContextMenuSelect( int item )
/***************************************************************************/
-void GDBBreakpointWidget::slotEditRow(int row, int col, const QPoint &)
+void GDBBreakpointWidget::slotEditRow(int row, int col, const TQPoint &)
{
// kdDebug(9012) << "in slotEditRow row=" << row << endl;
BreakpointTableRow* btr = (BreakpointTableRow *) m_table->item(row, Control);
@@ -830,7 +830,7 @@ void GDBBreakpointWidget::slotNewValue(int row, int col)
{
BreakpointTableRow* btr = (BreakpointTableRow *) m_table->item(row, Control);
- QString new_value = m_table->text(row, col);
+ TQString new_value = m_table->text(row, col);
if (btr)
{
@@ -839,8 +839,8 @@ void GDBBreakpointWidget::slotNewValue(int row, int col)
{
case Enable:
{
- QCheckTableItem *item =
- (QCheckTableItem*)m_table->item ( row, Enable );
+ TQCheckTableItem *item =
+ (TQCheckTableItem*)m_table->item ( row, Enable );
bp->setEnabled(item->isChecked());
}
break;
@@ -913,7 +913,7 @@ void GDBBreakpointWidget::slotNewValue(int row, int col)
/***************************************************************************/
-void GDBBreakpointWidget::slotEditBreakpoint(const QString &fileName, int lineNum)
+void GDBBreakpointWidget::slotEditBreakpoint(const TQString &fileName, int lineNum)
{
FilePosBreakpoint *fpBP = new FilePosBreakpoint(fileName, lineNum+1);
@@ -922,7 +922,7 @@ void GDBBreakpointWidget::slotEditBreakpoint(const QString &fileName, int lineNu
if (btr)
{
- QTableSelection ts;
+ TQTableSelection ts;
ts.init(btr->row(), 0);
ts.expandTo(btr->row(), numCols);
m_table->addSelection(ts);
@@ -1019,7 +1019,7 @@ void GDBBreakpointWidget::slotEditBreakpoint()
}
-void GDBBreakpointWidget::editTracing(QTableItem* item)
+void GDBBreakpointWidget::editTracing(TQTableItem* item)
{
BreakpointTableRow* btr = (BreakpointTableRow *)
m_table->item(item->row(), Control);
@@ -1032,7 +1032,7 @@ void GDBBreakpointWidget::editTracing(QTableItem* 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.
- if (r == QDialog::Accepted)
+ if (r == TQDialog::Accepted)
{
// The dialog has modified "btr->breakpoint()" already.
// Calling 'slotNewValue' will flush the changes back
@@ -1046,42 +1046,42 @@ void GDBBreakpointWidget::editTracing(QTableItem* item)
/***************************************************************************/
-void GDBBreakpointWidget::savePartialProjectSession(QDomElement* el)
+void GDBBreakpointWidget::savePartialProjectSession(TQDomElement* el)
{
- QDomDocument domDoc = el->ownerDocument();
+ TQDomDocument domDoc = el->ownerDocument();
if (domDoc.isNull())
return;
- QDomElement breakpointListEl = domDoc.createElement("breakpointList");
+ TQDomElement breakpointListEl = domDoc.createElement("breakpointList");
for ( int row = 0; row < m_table->numRows(); row++ )
{
BreakpointTableRow* btr =
(BreakpointTableRow *) m_table->item(row, Control);
Breakpoint* bp = btr->breakpoint();
- QDomElement breakpointEl =
- domDoc.createElement("breakpoint"+QString::number(row));
+ TQDomElement breakpointEl =
+ domDoc.createElement("breakpoint"+TQString::number(row));
breakpointEl.setAttribute("type", bp->type());
breakpointEl.setAttribute("location", bp->location(false));
breakpointEl.setAttribute("enabled", bp->isEnabled());
breakpointEl.setAttribute("condition", bp->conditional());
breakpointEl.setAttribute("tracingEnabled",
- QString::number(bp->tracingEnabled()));
+ TQString::number(bp->tracingEnabled()));
breakpointEl.setAttribute("traceFormatStringEnabled",
- QString::number(bp->traceFormatStringEnabled()));
+ TQString::number(bp->traceFormatStringEnabled()));
breakpointEl.setAttribute("tracingFormatString",
bp->traceFormatString());
- QDomElement tracedExpressions =
+ TQDomElement tracedExpressions =
domDoc.createElement("tracedExpressions");
- QStringList::const_iterator i, e;
+ TQStringList::const_iterator i, e;
for(i = bp->tracedExpressions().begin(),
e = bp->tracedExpressions().end();
i != e; ++i)
{
- QDomElement expr = domDoc.createElement("expression");
+ TQDomElement expr = domDoc.createElement("expression");
expr.setAttribute("value", *i);
tracedExpressions.appendChild(expr);
}
@@ -1097,7 +1097,7 @@ void GDBBreakpointWidget::savePartialProjectSession(QDomElement* el)
/***************************************************************************/
-void GDBBreakpointWidget::restorePartialProjectSession(const QDomElement* el)
+void GDBBreakpointWidget::restorePartialProjectSession(const TQDomElement* el)
{
/** Eventually, would be best to make each breakpoint type handle loading/
saving it's data. The only problem is that on load, we need to allocate
@@ -1106,10 +1106,10 @@ void GDBBreakpointWidget::restorePartialProjectSession(const QDomElement* el)
KDE (Boost.Serialization is too much dependency, and rolling my own is
boring).
*/
- QDomElement breakpointListEl = el->namedItem("breakpointList").toElement();
+ TQDomElement breakpointListEl = el->namedItem("breakpointList").toElement();
if (!breakpointListEl.isNull())
{
- QDomElement breakpointEl;
+ TQDomElement breakpointEl;
for (breakpointEl = breakpointListEl.firstChild().toElement();
!breakpointEl.isNull();
breakpointEl = breakpointEl.nextSibling().toElement())
@@ -1155,17 +1155,17 @@ void GDBBreakpointWidget::restorePartialProjectSession(const QDomElement* el)
breakpointEl.attribute("traceFormatStringEnabled", "0")
.toInt());
- QDomNode tracedExpr =
+ TQDomNode tracedExpr =
breakpointEl.namedItem("tracedExpressions");
if (!tracedExpr.isNull())
{
- QStringList l;
+ TQStringList l;
- for(QDomNode c = tracedExpr.firstChild(); !c.isNull();
+ for(TQDomNode c = tracedExpr.firstChild(); !c.isNull();
c = c.nextSibling())
{
- QDomElement el = c.toElement();
+ TQDomElement el = c.toElement();
l.push_back(el.attribute("value", ""));
}
bp->setTracedExpressions(l);
@@ -1186,11 +1186,11 @@ void GDBBreakpointWidget::restorePartialProjectSession(const QDomElement* el)
/***************************************************************************/
-void GDBBreakpointWidget::focusInEvent( QFocusEvent */* e*/ )
+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(QTable::FollowStyle);
+ // m_table->setFocusStyle(TQTable::FollowStyle);
// in constructor, so I suspect Qt bug. But anyway, without
// current cell keyboard actions like Enter for edit won't work,
// so keyboard focus does not makes much sense.
@@ -1203,42 +1203,42 @@ void GDBBreakpointWidget::focusInEvent( QFocusEvent */* e*/ )
}
ComplexEditCell::
-ComplexEditCell(QTable* table)
-: QTableItem(table, QTableItem::WhenCurrent)
+ComplexEditCell(TQTable* table)
+: TQTableItem(table, TQTableItem::WhenCurrent)
{
}
-QWidget* ComplexEditCell::createEditor() const
+TQWidget* ComplexEditCell::createEditor() const
{
- QHBox* box = new QHBox( table()->viewport() );
+ TQHBox* box = new TQHBox( table()->viewport() );
box->setPaletteBackgroundColor(
table()->palette().active().highlight());
- label_ = new QLabel(text(), box, "label");
+ label_ = new TQLabel(text(), box, "label");
label_->setBackgroundMode(Qt::PaletteHighlight);
// Sorry for hardcode, but '2' is already hardcoded in
- // Qt source, in QTableItem::paint. Since I don't want the
+ // Qt 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);
- QPalette p = label_->palette();
+ TQPalette p = label_->palette();
- p.setColor(QPalette::Active, QColorGroup::Foreground,
+ p.setColor(TQPalette::Active, TQColorGroup::Foreground,
table()->palette().active().highlightedText());
- p.setColor(QPalette::Inactive, QColorGroup::Foreground,
+ p.setColor(TQPalette::Inactive, TQColorGroup::Foreground,
table()->palette().active().highlightedText());
label_->setPalette(p);
- QPushButton* b = new QPushButton("...", box);
+ TQPushButton* b = new TQPushButton("...", box);
// This is exactly what is done in QDesigner 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
// than 20.
b->setFixedWidth( 20 );
- connect(b, SIGNAL(clicked()), this, SLOT(slotEdit()));
+ connect(b, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotEdit()));
return box;
}
diff --git a/languages/cpp/debugger/gdbbreakpointwidget.h b/languages/cpp/debugger/gdbbreakpointwidget.h
index 91dc40a5..42d1286d 100644
--- a/languages/cpp/debugger/gdbbreakpointwidget.h
+++ b/languages/cpp/debugger/gdbbreakpointwidget.h
@@ -16,11 +16,11 @@
#ifndef _GDBBreakpointWidget_H_
#define _GDBBreakpointWidget_H_
-#include <qhbox.h>
-#include <qpopupmenu.h>
-#include <qtable.h>
-#include <qguardedptr.h>
-#include <qvaluevector.h>
+#include <tqhbox.h>
+#include <tqpopupmenu.h>
+#include <tqtable.h>
+#include <tqguardedptr.h>
+#include <tqvaluevector.h>
#include "mi/gdbmi.h"
#include "gdbcontroller.h"
@@ -47,24 +47,24 @@ class GDBBreakpointWidget : public QHBox
public:
GDBBreakpointWidget( GDBController* controller,
- QWidget* parent=0, const char* name=0 );
+ TQWidget* parent=0, const char* name=0 );
virtual ~GDBBreakpointWidget();
void reset();
- void savePartialProjectSession(QDomElement* el);
- void restorePartialProjectSession(const QDomElement* el);
+ void savePartialProjectSession(TQDomElement* el);
+ void restorePartialProjectSession(const TQDomElement* el);
bool hasWatchpointForAddress(unsigned long long address) const;
public slots:
// Connected to from the editor widget:
- void slotToggleBreakpoint(const QString &filename, int lineNum);
- void slotToggleBreakpointEnabled(const QString &fileName, int lineNum);
+ void slotToggleBreakpoint(const TQString &filename, int lineNum);
+ void slotToggleBreakpointEnabled(const TQString &fileName, int lineNum);
// Connected to from the variable widget:
- void slotToggleWatchpoint(const QString &varName);
+ void slotToggleWatchpoint(const TQString &varName);
void slotBreakpointSet(Breakpoint*);
@@ -74,33 +74,33 @@ public slots:
protected:
- virtual void focusInEvent(QFocusEvent *e);
+ virtual void focusInEvent(TQFocusEvent *e);
friend class BreakpointActionCell; // for access to slotNewValue
private slots:
void slotRemoveBreakpoint();
void slotRemoveAllBreakpoints();
- void slotEditBreakpoint(const QString &fileName, int lineNum);
+ void slotEditBreakpoint(const TQString &fileName, int lineNum);
void slotEditBreakpoint();
void slotAddBlankBreakpoint(int idx);
- void slotRowDoubleClicked(int row, int col, int button, const QPoint & mousePos);
- void slotContextMenuShow( int row, int col, const QPoint &mousePos );
+ void slotRowDoubleClicked(int row, int col, int button, const TQPoint & mousePos);
+ void slotContextMenuShow( int row, int col, const TQPoint &mousePos );
void slotContextMenuSelect( int item );
- void slotEditRow(int row, int col, const QPoint & mousePos);
+ void slotEditRow(int row, int col, const TQPoint & mousePos);
void slotNewValue(int row, int col);
- void editTracing(QTableItem* item);
+ void editTracing(TQTableItem* item);
void slotBreakpointModified(Breakpoint*);
void slotEvent(GDBController::event_t);
void slotWatchpointHit(int id,
- const QString& oldValue,
- const QString& newValue);
+ const TQString& oldValue,
+ const TQString& newValue);
signals:
void publishBPState(const Breakpoint& brkpt);
void refreshBPState(const Breakpoint& brkpt);
- void gotoSourcePosition(const QString &fileName, int lineNum);
+ void gotoSourcePosition(const TQString &fileName, int lineNum);
// Emitted when output from yet another passed tracepoint is available.
void tracingOutput(const char*);
@@ -116,13 +116,13 @@ private:
void sendToGdb(Breakpoint &);
void handleBreakpointList(const GDBMI::ResultRecord&);
- void handleTracingPrintf(const QValueVector<QString>& s);
+ void handleTracingPrintf(const TQValueVector<TQString>& s);
private:
GDBController* controller_;
GDBTable* m_table;
- QPopupMenu* m_ctxMenu;
+ TQPopupMenu* m_ctxMenu;
};
class BreakpointTableRow;
@@ -135,12 +135,12 @@ 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 QObject, public QTableItem
+class ComplexEditCell : public TQObject, public QTableItem
{
Q_OBJECT
public:
- ComplexEditCell(QTable* table);
+ ComplexEditCell(TQTable* table);
/** Called by Qt when the current cell should become editable.
In our case, when the item becomes current. Creates a widget
@@ -148,7 +148,7 @@ public:
content. In our case -- text plus "..." button that invokes
action dialog.
*/
- QWidget* createEditor() const;
+ TQWidget* createEditor() const;
void updateValue();
@@ -158,10 +158,10 @@ private slots:
void slotEdit();
signals:
- void edit(QTableItem*);
+ void edit(TQTableItem*);
private:
- mutable QGuardedPtr<QLabel> label_;
+ mutable TQGuardedPtr<TQLabel> label_;
};
diff --git a/languages/cpp/debugger/gdbcommand.cpp b/languages/cpp/debugger/gdbcommand.cpp
index de5aeb9d..bf8d5bc4 100644
--- a/languages/cpp/debugger/gdbcommand.cpp
+++ b/languages/cpp/debugger/gdbcommand.cpp
@@ -20,17 +20,17 @@
namespace GDBDebugger
{
-GDBCommand::GDBCommand(const QString &command)
+GDBCommand::GDBCommand(const TQString &command)
: command_(command), run(false), handler_this(0)
{
}
-QString GDBCommand::cmdToSend()
+TQString GDBCommand::cmdToSend()
{
return initialString() + "\n";
}
-QString GDBCommand::initialString() const
+TQString GDBCommand::initialString() const
{
return command_;
}
@@ -52,12 +52,12 @@ GDBCommand::invokeHandler(const GDBMI::ResultRecord& r)
}
}
-void GDBCommand::newOutput(const QString& line)
+void GDBCommand::newOutput(const TQString& line)
{
lines.push_back(line);
}
-const QValueVector<QString>& GDBCommand::allStreamOutput() const
+const TQValueVector<TQString>& GDBCommand::allStreamOutput() const
{
return lines;
}
@@ -82,7 +82,7 @@ void GDBCommand::setRun(bool run)
}
-UserCommand::UserCommand(const QString& s)
+UserCommand::UserCommand(const TQString& s)
: GDBCommand(s)
{
}
@@ -94,7 +94,7 @@ bool UserCommand::isUserCommand() const
ModifyBreakpointCommand::ModifyBreakpointCommand(
- const QString& command, const Breakpoint* bp)
+ const TQString& command, const Breakpoint* bp)
: GDBCommand(command.local8Bit()),
bp_(bp)
{}
@@ -104,7 +104,7 @@ ModifyBreakpointCommand::cmdToSend()
{
if (bp_->dbgId() > 0)
{
- QString s(initialString());
+ TQString s(initialString());
s = s.arg(bp_->dbgId()) + "\n";
return s.local8Bit();
}
diff --git a/languages/cpp/debugger/gdbcommand.h b/languages/cpp/debugger/gdbcommand.h
index 8c928394..946bc3aa 100644
--- a/languages/cpp/debugger/gdbcommand.h
+++ b/languages/cpp/debugger/gdbcommand.h
@@ -16,12 +16,12 @@
#ifndef _GDBCOMMAND_H_
#define _GDBCOMMAND_H_
-#include <qobject.h>
-#include <qstring.h>
-#include <qvaluevector.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqvaluevector.h>
#include "mi/gdbmi.h"
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
namespace GDBDebugger
{
@@ -38,10 +38,10 @@ class ValueCallback;
class GDBCommand
{
public:
- GDBCommand(const QString& command);
+ GDBCommand(const TQString& command);
template<class Handler>
- GDBCommand(const QString& command,
+ GDBCommand(const TQString& command,
Handler* handler_this,
void (Handler::* handler_method)(const GDBMI::ResultRecord&),
bool handlesError = false);
@@ -51,7 +51,7 @@ public:
dynamically, possibly using results of the previous
commands.
If the empty string is returned, nothing is sent. */
- virtual QString cmdToSend();
+ virtual TQString cmdToSend();
/* Returns the initial string that was specified in
ctor invocation. The actual command will be
@@ -59,7 +59,7 @@ public:
value of this method is only used in various
diagnostic messages emitted before actually
sending the command. */
- QString initialString() const;
+ TQString initialString() const;
/* Returns true if this is command entered by the user
and so should be always shown in the gdb output window. */
@@ -78,9 +78,9 @@ public:
// Called by gdbcontroller for each new output string
// gdb emits for this command. In MI mode, this includes
// all "stream" messages, but does not include MI responses.
- void newOutput(const QString&);
+ void newOutput(const TQString&);
- const QValueVector<QString>& allStreamOutput() const;
+ const TQValueVector<TQString>& allStreamOutput() const;
// True if this command run then target for
// unspecified period of time -- that is either 'run' or
@@ -90,11 +90,11 @@ public:
void setRun(bool run);
private:
- QString command_;
- QGuardedPtr<QObject> handler_this;
- typedef void (QObject::* handler_t)(const GDBMI::ResultRecord&);
+ TQString command_;
+ TQGuardedPtr<TQObject> handler_this;
+ typedef void (TQObject::* handler_t)(const GDBMI::ResultRecord&);
handler_t handler_method;
- QValueVector<QString> lines;
+ TQValueVector<TQString> lines;
bool run;
protected: // FIXME: should be private, after I kill the first ctor
@@ -106,7 +106,7 @@ protected: // FIXME: should be private, after I kill the first ctor
class UserCommand : public GDBCommand
{
public:
- UserCommand(const QString& s);
+ UserCommand(const TQString& s);
bool isUserCommand() const;
};
@@ -125,10 +125,10 @@ public:
/** The 'comamnd' should include a single format specifier "%1" that
will be replaced with the id of breakpoint.
*/
- ModifyBreakpointCommand(const QString& command, const Breakpoint* bp);
+ ModifyBreakpointCommand(const TQString& command, const Breakpoint* bp);
public: // DbgCommand overrides
- virtual QString cmdToSend();
+ virtual TQString cmdToSend();
private:
const Breakpoint* bp_;
@@ -142,9 +142,9 @@ class CliCommand : public GDBCommand
{
public:
template<class Handler>
- CliCommand(const QString& command,
+ CliCommand(const TQString& command,
Handler* handler_this,
- void (Handler::* handler_method)(const QValueVector<QString>&),
+ void (Handler::* handler_method)(const TQValueVector<TQString>&),
bool handlesError = false);
@@ -153,8 +153,8 @@ public: // GDBCommand overrides
bool invokeHandler(const GDBMI::ResultRecord& r);
private:
- QGuardedPtr<QObject> cli_handler_this;
- typedef void (QObject::* cli_handler_t)(const QValueVector<QString>&);
+ TQGuardedPtr<TQObject> cli_handler_this;
+ typedef void (TQObject::* cli_handler_t)(const TQValueVector<TQString>&);
cli_handler_t cli_handler_method;
};
@@ -165,7 +165,7 @@ private:
class SentinelCommand : public GDBCommand
{
public:
- typedef void (QObject::*handler_method_t)();
+ typedef void (TQObject::*handler_method_t)();
template<class Handler>
SentinelCommand(Handler* handler_this,
@@ -180,22 +180,22 @@ public:
(handler_this->*handler_method)();
}
- QString cmdToSend()
+ TQString cmdToSend()
{
return "";
}
private:
- QGuardedPtr<QObject> handler_this;
+ TQGuardedPtr<TQObject> handler_this;
handler_method_t handler_method;
};
/* Command for which we don't want any reply. */
-class ResultlessCommand : public QObject, public GDBCommand
+class ResultlessCommand : public TQObject, public GDBCommand
{
public:
- ResultlessCommand(const QString& command, bool handlesError = false)
+ ResultlessCommand(const TQString& command, bool handlesError = false)
: GDBCommand(command, this, &ResultlessCommand::handle, handlesError)
{}
@@ -204,16 +204,16 @@ private:
{}
};
-class ExpressionValueCommand : public QObject, public GDBCommand
+class ExpressionValueCommand : public TQObject, public GDBCommand
{
public:
- typedef void (QObject::*handler_method_t)(const QString&);
+ typedef void (TQObject::*handler_method_t)(const TQString&);
template<class Handler>
ExpressionValueCommand(
- const QString& expression,
+ const TQString& expression,
Handler* handler_this,
- void (Handler::* handler_method)(const QString&))
+ void (Handler::* handler_method)(const TQString&))
: GDBCommand(("-data-evaluate-expression " + expression).ascii(), this,
&ExpressionValueCommand::handleResponse),
handler_this(handler_this),
@@ -226,7 +226,7 @@ public:
}
private:
- QGuardedPtr<QObject> handler_this;
+ TQGuardedPtr<TQObject> handler_this;
handler_method_t handler_method;
};
@@ -234,7 +234,7 @@ private:
template<class Handler>
GDBCommand::GDBCommand(
- const QString& command,
+ const TQString& command,
Handler* handler_this,
void (Handler::* handler_method)(const GDBMI::ResultRecord&),
bool handlesError)
@@ -248,9 +248,9 @@ GDBCommand::GDBCommand(
template<class Handler>
CliCommand::CliCommand(
- const QString& command,
+ const TQString& command,
Handler* handler_this,
- void (Handler::* handler_method)(const QValueVector<QString>&),
+ void (Handler::* handler_method)(const TQValueVector<TQString>&),
bool handlesError)
: GDBCommand(command.latin1()),
cli_handler_this(handler_this),
diff --git a/languages/cpp/debugger/gdbcontroller.cpp b/languages/cpp/debugger/gdbcontroller.cpp
index 05954069..3fd912ec 100644
--- a/languages/cpp/debugger/gdbcontroller.cpp
+++ b/languages/cpp/debugger/gdbcontroller.cpp
@@ -33,13 +33,13 @@
#include <kprocess.h>
#include <kwin.h>
-#include <qdatetime.h>
-#include <qfileinfo.h>
-#include <qregexp.h>
-#include <qstring.h>
-#include <qdir.h>
-#include <qvaluevector.h>
-#include <qeventloop.h>
+#include <tqdatetime.h>
+#include <tqfileinfo.h>
+#include <tqregexp.h>
+#include <tqstring.h>
+#include <tqdir.h>
+#include <tqvaluevector.h>
+#include <tqeventloop.h>
#include <iostream>
#include <ctype.h>
@@ -82,7 +82,7 @@ using namespace std;
// output the final echo. Hence the data will be thrown away.
// (certain "info locals" will generate this error.
//
-// queueCmd(new GDBCommand(QString().sprintf("define printlocal\n"
+// queueCmd(new GDBCommand(TQString().sprintf("define printlocal\n"
// "echo \32%c\ninfo locals\necho \32%c\n"
// "end",
// LOCALS, LOCALS)));
@@ -130,14 +130,14 @@ namespace GDBDebugger
int debug_controllerExists = false;
-GDBController::GDBController(QDomDocument &projectDom)
+GDBController::GDBController(TQDomDocument &projectDom)
: DbgController(),
currentFrame_(0),
viewedThread_(-1),
holdingZone_(),
currentCmd_(0),
tty_(0),
- badCore_(QString()),
+ badCore_(TQString()),
state_(s_dbgNotStarted|s_appNotStarted),
programHasExited_(false),
dom(projectDom),
@@ -232,7 +232,7 @@ void GDBController::configure()
// Disabled for MI port.
if (old_outputRadix != config_outputRadix_)
{
- queueCmd(new GDBCommand(QCString().sprintf("set output-radix %d",
+ queueCmd(new GDBCommand(TQCString().sprintf("set output-radix %d",
config_outputRadix_)));
// FIXME: should do this in variable widget anyway.
@@ -256,7 +256,7 @@ void GDBController::addCommand(GDBCommand* cmd)
queueCmd(cmd);
}
-void GDBController::addCommand(const QString& str)
+void GDBController::addCommand(const TQString& str)
{
queueCmd(new GDBCommand(str));
}
@@ -352,9 +352,9 @@ void GDBController::executeCmd()
return;
}
- QString commandText = currentCmd_->cmdToSend();
+ TQString commandText = currentCmd_->cmdToSend();
bool bad_command = false;
- QString message;
+ TQString message;
unsigned length = commandText.length();
// No i18n for message since it's mainly for debugging.
@@ -400,8 +400,8 @@ void GDBController::executeCmd()
commandText.length());
setStateOn(s_waitForWrite);
- QString prettyCmd = currentCmd_->cmdToSend();
- prettyCmd.replace( QRegExp("set prompt \032.\n"), "" );
+ TQString prettyCmd = currentCmd_->cmdToSend();
+ prettyCmd.replace( TQRegExp("set prompt \032.\n"), "" );
prettyCmd = "(gdb) " + prettyCmd;
if (currentCmd_->isUserCommand())
@@ -456,7 +456,7 @@ void GDBController::actOnProgramPauseMI(const GDBMI::ResultRecord& r)
bool shared_library_load = false;
if (currentCmd_)
{
- const QValueVector<QString>& lines = currentCmd_->allStreamOutput();
+ const TQValueVector<TQString>& lines = currentCmd_->allStreamOutput();
for(unsigned int i = 0; i < lines.count(); ++i)
{
if (lines[i].startsWith("Stopped due to shared library event"))
@@ -488,7 +488,7 @@ void GDBController::actOnProgramPauseMI(const GDBMI::ResultRecord& r)
return;
}
- QString reason = r["reason"].literal();
+ TQString reason = r["reason"].literal();
if (reason == "exited-normally" || reason == "exited")
{
programNoApp("Exited normally", false);
@@ -509,7 +509,7 @@ void GDBController::actOnProgramPauseMI(const GDBMI::ResultRecord& r)
if (reason == "watchpoint-scope")
{
- QString number = r["wpnum"].literal();
+ TQString number = r["wpnum"].literal();
// FIXME: shuld remove this watchpoint
// But first, we should consider if removing all
@@ -524,8 +524,8 @@ void GDBController::actOnProgramPauseMI(const GDBMI::ResultRecord& r)
if (reason == "signal-received")
{
- QString name = r["signal-name"].literal();
- QString user_name = r["signal-meaning"].literal();
+ TQString name = r["signal-name"].literal();
+ TQString user_name = r["signal-meaning"].literal();
// SIGINT is a "break into running program".
// We do this when the user set/mod/clears a breakpoint but the
@@ -613,7 +613,7 @@ void GDBController::reloadProgramState()
// an invalid program specified or ...
// gdb is still running though, but only the run command (may) make sense
// all other commands are disabled.
-void GDBController::programNoApp(const QString &msg, bool msgBox)
+void GDBController::programNoApp(const TQString &msg, bool msgBox)
{
setState(s_appNotStarted|s_programExited|(state_&s_shuttingDown));
@@ -637,7 +637,7 @@ void GDBController::programNoApp(const QString &msg, bool msgBox)
// Tty is no longer usable, delete it. Without this, QSocketNotifier
// will continiously bomd STTY with signals, so we need to either disable
- // QSocketNotifier, or delete STTY. The latter is simpler, since we can't
+ // TQSocketNotifier, or delete STTY. The latter is simpler, since we can't
// reuse it for future debug sessions anyway.
delete tty_;
@@ -654,7 +654,7 @@ void GDBController::programNoApp(const QString &msg, bool msgBox)
emit gdbUserCommandStdout(msg.ascii());
}
-void GDBController::parseCliLine(const QString& line)
+void GDBController::parseCliLine(const TQString& line)
{
if (line.startsWith("The program no longer exists")
|| line.startsWith("Program exited")
@@ -694,7 +694,7 @@ void GDBController::parseCliLine(const QString& line)
strncmp(buf, "ptrace: Operation not permitted.", 32)==0 ||
strncmp(buf, "No executable file specified.", 29)==0)
{
- programNoApp(QString(buf), true);
+ programNoApp(TQString(buf), true);
kdDebug(9012) << "Bad file <" << buf << ">" << endl;
return;
}
@@ -723,7 +723,7 @@ void GDBController::handleMiFileListExecSourceFile(const GDBMI::ResultRecord& r)
#endif
}
- QString fullname = "";
+ TQString fullname = "";
if (r.hasField("fullname"))
fullname = r["fullname"].literal();
@@ -744,7 +744,7 @@ void GDBController::maybeAnnounceWatchpointHit()
gdb does not report any reason at all. */
if ((*last_stop_result).hasField("reason"))
{
- QString last_stop_reason = (*last_stop_result)["reason"].literal();
+ TQString last_stop_reason = (*last_stop_result)["reason"].literal();
if (last_stop_reason == "watchpoint-trigger")
{
@@ -766,7 +766,7 @@ void GDBController::handleMiFrameSwitch(const GDBMI::ResultRecord& r)
const GDBMI::Value& frame = r["frame"];
- QString file;
+ TQString file;
if (frame.hasField("fullname"))
file = frame["fullname"].literal();
else if (frame.hasField("file"))
@@ -789,31 +789,31 @@ void GDBController::handleMiFrameSwitch(const GDBMI::ResultRecord& r)
// **************************************************************************
-bool GDBController::start(const QString& shell, const DomUtil::PairList& run_envvars, const QString& run_directory, const QString &application, const QString& run_arguments)
+bool GDBController::start(const TQString& shell, const DomUtil::PairList& run_envvars, const TQString& run_directory, const TQString &application, const TQString& run_arguments)
{
kdDebug(9012) << "Starting debugger controller\n";
- badCore_ = QString();
+ badCore_ = TQString();
Q_ASSERT (!dbgProcess_ && !tty_);
dbgProcess_ = new KProcess;
- connect( dbgProcess_, SIGNAL(receivedStdout(KProcess *, char *, int)),
- this, SLOT(slotDbgStdout(KProcess *, char *, int)) );
+ connect( dbgProcess_, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)),
+ this, TQT_SLOT(slotDbgStdout(KProcess *, char *, int)) );
- connect( dbgProcess_, SIGNAL(receivedStderr(KProcess *, char *, int)),
- this, SLOT(slotDbgStderr(KProcess *, char *, int)) );
+ connect( dbgProcess_, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)),
+ this, TQT_SLOT(slotDbgStderr(KProcess *, char *, int)) );
- connect( dbgProcess_, SIGNAL(wroteStdin(KProcess *)),
- this, SLOT(slotDbgWroteStdin(KProcess *)) );
+ connect( dbgProcess_, TQT_SIGNAL(wroteStdin(KProcess *)),
+ this, TQT_SLOT(slotDbgWroteStdin(KProcess *)) );
- connect( dbgProcess_, SIGNAL(processExited(KProcess*)),
- this, SLOT(slotDbgProcessExited(KProcess*)) );
+ connect( dbgProcess_, TQT_SIGNAL(processExited(KProcess*)),
+ this, TQT_SLOT(slotDbgProcessExited(KProcess*)) );
application_ = application;
- QString gdb = "gdb";
- // Prepend path to gdb, if needed. Using QDir,
+ TQString gdb = "gdb";
+ // Prepend path to gdb, if needed. Using TQDir,
// path can either end with slash, or not.
if (!config_gdbPath_.isEmpty())
{
@@ -825,7 +825,7 @@ bool GDBController::start(const QString& shell, const DomUtil::PairList& run_env
*dbgProcess_ << "/bin/sh" << "-c" << shell + " " + gdb +
+ " " + application + " --interpreter=mi2 -quiet";
emit gdbUserCommandStdout(
- QString( "/bin/sh -c " + shell + " " + gdb
+ TQString( "/bin/sh -c " + shell + " " + gdb
+ " " + application
+ " --interpreter=mi2 -quiet\n" ).latin1());
}
@@ -834,7 +834,7 @@ bool GDBController::start(const QString& shell, const DomUtil::PairList& run_env
*dbgProcess_ << gdb << application
<< "-interpreter=mi2" << "-quiet";
emit gdbUserCommandStdout(
- QString( gdb + " " + application +
+ TQString( gdb + " " + application +
" --interpreter=mi2 -quiet\n" ).latin1());
}
@@ -888,23 +888,23 @@ bool GDBController::start(const QString& shell, const DomUtil::PairList& run_env
queueCmd(new GDBCommand("set print asm-demangle off"));
// make sure output radix is always set to users view.
- queueCmd(new GDBCommand(QCString().sprintf("set output-radix %d", config_outputRadix_)));
+ queueCmd(new GDBCommand(TQCString().sprintf("set output-radix %d", config_outputRadix_)));
// Change the "Working directory" to the correct one
- QCString tmp( "cd " + QFile::encodeName( run_directory ));
+ TQCString tmp( "cd " + TQFile::encodeName( run_directory ));
queueCmd(new GDBCommand(tmp));
// Set the run arguments
if (!run_arguments.isEmpty())
queueCmd(
- new GDBCommand(QCString("set args ") + run_arguments.local8Bit()));
+ new GDBCommand(TQCString("set args ") + run_arguments.local8Bit()));
// Get the run environment variables pairs into the environstr string
// in the form of: "ENV_VARIABLE=ENV_VALUE" and send to gdb using the
// "set enviroment" command
// Note that we quote the variable value due to the possibility of
// embedded spaces
- QString environstr;
+ TQString environstr;
DomUtil::PairList::ConstIterator it;
for (it = run_envvars.begin(); it != run_envvars.end(); ++it)
{
@@ -972,8 +972,8 @@ void GDBController::slotStopDebugger()
setStateOn(s_shuttingDown);
kdDebug(9012) << "GDBController::slotStopDebugger() executing" << endl;
- QTime start;
- QTime now;
+ TQTime start;
+ TQTime now;
// Get gdb's attention if it's busy. We need gdb to be at the
// command line so we can stop it.
@@ -981,11 +981,11 @@ void GDBController::slotStopDebugger()
{
kdDebug(9012) << "gdb busy on shutdown - stopping gdb (SIGINT)" << endl;
dbgProcess_->kill(SIGINT);
- start = QTime::currentTime();
+ start = TQTime::currentTime();
while (-1)
{
- kapp->eventLoop()->processEvents( QEventLoop::ExcludeUserInput, 20 );
- now = QTime::currentTime();
+ kapp->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput, 20 );
+ now = TQTime::currentTime();
if (!stateIsOn(s_dbgBusy) || start.msecsTo( now ) > 2000)
break;
}
@@ -999,11 +999,11 @@ void GDBController::slotStopDebugger()
if (!dbgProcess_->writeStdin(detach, strlen(detach)))
kdDebug(9012) << "failed to write 'detach' to gdb" << endl;
emit gdbUserCommandStdout("(gdb) detach\n");
- start = QTime::currentTime();
+ start = TQTime::currentTime();
while (-1)
{
- kapp->eventLoop()->processEvents( QEventLoop::ExcludeUserInput, 20 );
- now = QTime::currentTime();
+ kapp->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput, 20 );
+ now = TQTime::currentTime();
if (!stateIsOn(s_attached) || start.msecsTo( now ) > 2000)
break;
}
@@ -1015,11 +1015,11 @@ void GDBController::slotStopDebugger()
kdDebug(9012) << "failed to write 'quit' to gdb" << endl;
emit gdbUserCommandStdout("(gdb) quit");
- start = QTime::currentTime();
+ start = TQTime::currentTime();
while (-1)
{
- kapp->eventLoop()->processEvents( QEventLoop::ExcludeUserInput, 20 );
- now = QTime::currentTime();
+ kapp->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput, 20 );
+ now = TQTime::currentTime();
if (stateIsOn(s_programExited) || start.msecsTo( now ) > 2000)
break;
}
@@ -1050,12 +1050,12 @@ void GDBController::slotStopDebugger()
// **************************************************************************
-void GDBController::slotCoreFile(const QString &coreFile)
+void GDBController::slotCoreFile(const TQString &coreFile)
{
setStateOff(s_programExited|s_appNotStarted);
setStateOn(s_core);
- queueCmd(new GDBCommand(QCString("core ") + coreFile.latin1()));
+ queueCmd(new GDBCommand(TQCString("core ") + coreFile.latin1()));
raiseEvent(connected_to_program);
raiseEvent(program_state_changed);
@@ -1074,12 +1074,12 @@ void GDBController::slotAttachTo(int pid)
// We can't omit application name from gdb invocation
// because for libtool binaries, we have no way to guess
// real binary name.
- queueCmd(new GDBCommand(QString("file")));
+ queueCmd(new GDBCommand(TQString("file")));
// The MI interface does not implements -target-attach yet,
// and we don't recognize whatever gibberish 'attach' pours out, so...
queueCmd(new GDBCommand(
- QCString().sprintf("attach %d", pid)));
+ TQCString().sprintf("attach %d", pid)));
raiseEvent(connected_to_program);
@@ -1101,11 +1101,11 @@ void GDBController::slotRun()
tty_ = new STTY(config_dbgTerminal_, Settings::terminalEmulatorName( *kapp->config() ));
if (!config_dbgTerminal_)
{
- connect( tty_, SIGNAL(OutOutput(const char*)), SIGNAL(ttyStdout(const char*)) );
- connect( tty_, SIGNAL(ErrOutput(const char*)), SIGNAL(ttyStderr(const char*)) );
+ connect( tty_, TQT_SIGNAL(OutOutput(const char*)), TQT_SIGNAL(ttyStdout(const char*)) );
+ connect( tty_, TQT_SIGNAL(ErrOutput(const char*)), TQT_SIGNAL(ttyStderr(const char*)) );
}
- QString tty(tty_->getSlave());
+ TQString tty(tty_->getSlave());
if (tty.isEmpty())
{
KMessageBox::information(0, i18n("GDB cannot use the tty* or pty* devices.\n"
@@ -1119,12 +1119,12 @@ void GDBController::slotRun()
return;
}
- queueCmd(new GDBCommand(QCString("tty ")+tty.latin1()));
+ queueCmd(new GDBCommand(TQCString("tty ")+tty.latin1()));
if (!config_runShellScript_.isEmpty()) {
// Special for remote debug...
- QCString tty(tty_->getSlave().latin1());
- QCString options = QCString(">") + tty + QCString(" 2>&1 <") + tty;
+ TQCString tty(tty_->getSlave().latin1());
+ TQCString options = TQCString(">") + tty + TQCString(" 2>&1 <") + tty;
KProcess *proc = new KProcess;
@@ -1148,7 +1148,7 @@ void GDBController::slotRun()
}
else {
- QFileInfo app(application_);
+ TQFileInfo app(application_);
if (!app.exists())
{
@@ -1214,7 +1214,7 @@ void GDBController::slotKill()
// **************************************************************************
-void GDBController::slotRunUntil(const QString &fileName, int lineNum)
+void GDBController::slotRunUntil(const TQString &fileName, int lineNum)
{
if (stateIsOn(s_dbgBusy|s_dbgNotStarted|s_shuttingDown))
return;
@@ -1223,23 +1223,23 @@ void GDBController::slotRunUntil(const QString &fileName, int lineNum)
if (fileName.isEmpty())
queueCmd(new GDBCommand(
- QCString().sprintf("-exec-until %d", lineNum)));
+ TQCString().sprintf("-exec-until %d", lineNum)));
else
queueCmd(new GDBCommand(
- QCString().
+ TQCString().
sprintf("-exec-until %s:%d", fileName.latin1(), lineNum)));
}
// **************************************************************************
-void GDBController::slotJumpTo(const QString &fileName, int lineNum)
+void GDBController::slotJumpTo(const TQString &fileName, int lineNum)
{
if (stateIsOn(s_dbgBusy|s_dbgNotStarted|s_shuttingDown))
return;
if (!fileName.isEmpty()) {
- queueCmd(new GDBCommand(QCString().sprintf("tbreak %s:%d", fileName.latin1(), lineNum)));
- queueCmd(new GDBCommand(QCString().sprintf("jump %s:%d", fileName.latin1(), lineNum)));
+ queueCmd(new GDBCommand(TQCString().sprintf("tbreak %s:%d", fileName.latin1(), lineNum)));
+ queueCmd(new GDBCommand(TQCString().sprintf("jump %s:%d", fileName.latin1(), lineNum)));
}
}
@@ -1324,11 +1324,11 @@ void GDBController::selectFrame(int frameNo, int threadNo)
{
if (viewedThread_ != threadNo)
queueCmd(new GDBCommand(
- QString("-thread-select %1").arg(threadNo).ascii()));
+ TQString("-thread-select %1").arg(threadNo).ascii()));
}
queueCmd(new GDBCommand(
- QString("-stack-select-frame %1").arg(frameNo).ascii()));
+ TQString("-stack-select-frame %1").arg(frameNo).ascii()));
// Will emit the 'thread_or_frame_changed' event.
queueCmd(new GDBCommand("-stack-info-frame",
@@ -1347,7 +1347,7 @@ void GDBController::selectFrame(int frameNo, int threadNo)
void GDBController::defaultErrorHandler(const GDBMI::ResultRecord& result)
{
- QString msg = result["msg"].literal();
+ TQString msg = result["msg"].literal();
if (msg.contains("No such process"))
{
@@ -1425,11 +1425,11 @@ void GDBController::slotDbgStdout(KProcess *, char *buf, int buflen)
{
static bool parsing = false;
- QCString msg(buf, buflen+1);
+ TQCString msg(buf, buflen+1);
// Copy the data out of the KProcess buffer before it gets overwritten
// Append to the back of the holding zone.
- holdingZone_ += QCString(buf, buflen+1);
+ holdingZone_ += TQCString(buf, buflen+1);
// Already parsing? then get out quick.
// VP, 2006-01-30. I'm not sure how this could happen, since
@@ -1451,7 +1451,7 @@ void GDBController::slotDbgStdout(KProcess *, char *buf, int buflen)
{
got_any_command = true;
- QCString reply(holdingZone_.left(i));
+ TQCString reply(holdingZone_.left(i));
holdingZone_ = holdingZone_.mid(i+1);
kdDebug(9012) << "REPLY: " << reply << "\n";
@@ -1561,7 +1561,7 @@ void GDBController::slotDbgStdout(KProcess *, char *buf, int buflen)
parseCliLine(s.message);
- static QRegExp print_output("^\\$(\\d+) = ");
+ static TQRegExp print_output("^\\$(\\d+) = ");
if (print_output.search(s.message) != -1)
{
kdDebug(9012) << "Found 'print' output: " << s.message << "\n";
@@ -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: " << QString::fromLatin1(buf, buflen+1) << endl;
+ kdDebug(9012) << "STDERR: " << TQString::fromLatin1(buf, buflen+1) << endl;
slotDbgStdout(proc, buf, buflen);
}
@@ -1729,7 +1729,7 @@ void GDBController::slotDbgProcessExited(KProcess* process)
// **************************************************************************
-void GDBController::slotUserGDBCmd(const QString& cmd)
+void GDBController::slotUserGDBCmd(const TQString& cmd)
{
queueCmd(new UserCommand(cmd.latin1()));
@@ -1745,7 +1745,7 @@ void GDBController::slotUserGDBCmd(const QString& cmd)
void GDBController::explainDebuggerStatus()
{
- QString information("%1 commands in queue\n"
+ TQString information("%1 commands in queue\n"
"%2 commands being processed by gdb\n"
"Debugger state: %3\n");
information =
@@ -1754,7 +1754,7 @@ void GDBController::explainDebuggerStatus()
if (currentCmd_)
{
- QString extra("Current command class: '%1'\n"
+ TQString extra("Current command class: '%1'\n"
"Current command text: '%2'\n"
"Current command origianl text: '%3'\n");
@@ -1795,7 +1795,7 @@ void GDBController::debugStateChange(int oldState, int newState)
int delta = oldState ^ newState;
if (delta)
{
- QString out = "STATE: ";
+ TQString out = "STATE: ";
for(unsigned i = 1; i < s_lastDbgState; i <<= 1)
{
if (delta & i)
@@ -1824,7 +1824,7 @@ void GDBController::debugStateChange(int oldState, int newState)
#undef STATE_CHECK
if (!found)
- out += QString::number(i);
+ out += TQString::number(i);
out += " ";
}
@@ -1840,7 +1840,7 @@ int GDBController::qtVersion( ) const
void GDBController::demandAttention() const
{
- if ( QWidget * w = kapp->mainWidget() )
+ if ( TQWidget * w = kapp->mainWidget() )
{
KWin::demandAttention( w->winId(), true );
}
diff --git a/languages/cpp/debugger/gdbcontroller.h b/languages/cpp/debugger/gdbcontroller.h
index 6a9e3385..a8b6bd2b 100644
--- a/languages/cpp/debugger/gdbcontroller.h
+++ b/languages/cpp/debugger/gdbcontroller.h
@@ -22,13 +22,13 @@
#include "mi/gdbmi.h"
#include "mi/miparser.h"
-#include <qcstring.h>
-#include <qdom.h>
-#include <qobject.h>
-#include <qptrlist.h>
-#include <qstring.h>
-#include <qmap.h>
-#include <qdatetime.h>
+#include <tqcstring.h>
+#include <tqdom.h>
+#include <tqobject.h>
+#include <tqptrlist.h>
+#include <tqstring.h>
+#include <tqmap.h>
+#include <tqdatetime.h>
#include <memory>
#include <set>
@@ -54,7 +54,7 @@ class GDBController : public DbgController
Q_OBJECT
public:
- GDBController(QDomDocument &projectDom);
+ GDBController(TQDomDocument &projectDom);
~GDBController();
enum event_t { program_state_changed = 1, program_exited, debugger_exited,
@@ -82,7 +82,7 @@ public:
/** Same as above, but internally constructs new GDBCommand
instance from the string. */
- void addCommand(const QString& cmd);
+ void addCommand(const TQString& cmd);
/** Adds command to the front of the commands queue. It will be executed
next.
@@ -127,11 +127,11 @@ public:
int currentFrame() const;
- bool start(const QString& shell,
+ bool start(const TQString& shell,
const DomUtil::PairList& run_envvars,
- const QString& run_directory,
- const QString &application,
- const QString& run_arguments);
+ const TQString& run_directory,
+ const TQString &application,
+ const TQString& run_arguments);
int qtVersion() const;
@@ -161,7 +161,7 @@ private:
run "continue" there will be no MI message if the application has
exited.
*/
- void parseCliLine (const QString&);
+ void parseCliLine (const TQString&);
/** Handles a result response from a MI command -- that is
all MI responses except for Stream and Prompt responses.
@@ -188,7 +188,7 @@ private:
*/
void reloadProgramState();
- void programNoApp(const QString &msg, bool msgBox);
+ void programNoApp(const TQString &msg, bool msgBox);
void setStateOn(int stateOn);
void setStateOff(int stateOff);
@@ -226,16 +226,16 @@ public slots:
void configure();
- //void slotStart(const QString& shell, const QString &application);
- void slotCoreFile(const QString &coreFile);
+ //void slotStart(const TQString& shell, const TQString &application);
+ void slotCoreFile(const TQString &coreFile);
void slotAttachTo(int pid);
void slotStopDebugger();
void slotRun();
void slotKill();
- void slotRunUntil(const QString &filename, int lineNum);
- void slotJumpTo(const QString &filename, int lineNum);
+ void slotRunUntil(const TQString &filename, int lineNum);
+ void slotJumpTo(const TQString &filename, int lineNum);
void slotStepInto();
void slotStepOver();
void slotStepIntoIns();
@@ -244,7 +244,7 @@ public slots:
void slotBreakInto();
- void slotUserGDBCmd(const QString&);
+ void slotUserGDBCmd(const TQString&);
// Pops up a dialog box with some hopefully
// detailed information about which state debugger
@@ -276,14 +276,14 @@ signals:
void breakpointHit(int id);
/** Emitted for watchpoint hit, after line indicator is shown. */
void watchpointHit(int id,
- const QString& oldValue, const QString& newValue);
+ const TQString& oldValue, const TQString& newValue);
private:
int currentFrame_;
int viewedThread_;
// The output from gdb that was not parsed yet
- QCString gdbOutput_;
+ TQCString gdbOutput_;
// The output from gdb that arrived where we was
// parsing the previous output. To avoid messing
// things up, it's not directly added to
@@ -291,35 +291,35 @@ private:
// VP: It's not clear why the previous code was doing
// this, and holdingZone_ won't be processed until
// next output arrives, so probably should be just removed.
- QCString holdingZone_;
+ TQCString holdingZone_;
- QPtrList<GDBCommand> cmdList_;
+ TQPtrList<GDBCommand> cmdList_;
GDBCommand* currentCmd_;
STTY* tty_;
- QString badCore_;
- QString application_;
+ TQString badCore_;
+ TQString application_;
// Gdb command that should be issued when we stop on breakpoint
// with the given gdb breakpoint id.
- QMap<int, const Breakpoint*> tracedBreakpoints_;
+ TQMap<int, const Breakpoint*> tracedBreakpoints_;
// Some state variables
int state_;
bool programHasExited_;
// Configuration values
- QDomDocument &dom;
+ TQDomDocument &dom;
bool config_breakOnLoadingLibrary_;
bool config_forceBPSet_;
bool config_displayStaticMembers_;
bool config_asmDemangle_;
bool config_dbgTerminal_;
- QString config_gdbPath_;
- QString config_dbgShell_;
- QCString config_configGdbScript_;
- QCString config_runShellScript_;
- QCString config_runGdbScript_;
+ TQString config_gdbPath_;
+ TQString config_dbgShell_;
+ TQCString config_configGdbScript_;
+ TQCString config_runShellScript_;
+ TQCString config_runGdbScript_;
int config_outputRadix_;
MIParser mi_parser_;
@@ -335,11 +335,11 @@ private:
// so the only way it can work is via the "print" command. As gdb
// outputs things, we'll grep for lines that look like output from
// print, and store such lines in this variable, so later use.
- QCString print_command_result;
+ TQCString print_command_result;
bool state_reload_needed;
- QTime commandExecutionTime;
+ TQTime commandExecutionTime;
bool stateReloadInProgress_;
diff --git a/languages/cpp/debugger/gdboutputwidget.cpp b/languages/cpp/debugger/gdboutputwidget.cpp
index 817f8692..836886bb 100644
--- a/languages/cpp/debugger/gdboutputwidget.cpp
+++ b/languages/cpp/debugger/gdboutputwidget.cpp
@@ -24,14 +24,14 @@
#include <klocale.h>
#include <kpopupmenu.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qtextedit.h>
-#include <qtoolbutton.h>
-#include <qtooltip.h>
-#include <qapplication.h>
-#include <qclipboard.h>
-#include <qdom.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqtextedit.h>
+#include <tqtoolbutton.h>
+#include <tqtooltip.h>
+#include <tqapplication.h>
+#include <tqclipboard.h>
+#include <tqdom.h>
namespace GDBDebugger
@@ -39,8 +39,8 @@ namespace GDBDebugger
/***************************************************************************/
-GDBOutputWidget::GDBOutputWidget( QWidget *parent, const char *name) :
- QWidget(parent, name),
+GDBOutputWidget::GDBOutputWidget( TQWidget *parent, const char *name) :
+ TQWidget(parent, name),
m_userGDBCmdEditor(0),
m_Interrupt(0),
m_gdbView(0),
@@ -49,40 +49,40 @@ GDBOutputWidget::GDBOutputWidget( QWidget *parent, const char *name) :
{
m_gdbView = new OutputText(this);
- m_gdbView->setTextFormat(QTextEdit::LogText);
+ m_gdbView->setTextFormat(TQTextEdit::LogText);
- QBoxLayout *userGDBCmdEntry = new QHBoxLayout();
+ TQBoxLayout *userGDBCmdEntry = new TQHBoxLayout();
m_userGDBCmdEditor = new KHistoryCombo (this, "gdb-user-cmd-editor");
- QLabel *label = new QLabel(i18n("&GDB cmd:"), this);
+ TQLabel *label = new TQLabel(i18n("&GDB cmd:"), this);
label->setBuddy(m_userGDBCmdEditor);
userGDBCmdEntry->addWidget(label);
userGDBCmdEntry->addWidget(m_userGDBCmdEditor);
userGDBCmdEntry->setStretchFactor(m_userGDBCmdEditor, 1);
- m_Interrupt = new QToolButton( this, "add breakpoint" );
- m_Interrupt->setSizePolicy ( QSizePolicy ( (QSizePolicy::SizeType)0,
- ( QSizePolicy::SizeType)0,
+ m_Interrupt = new TQToolButton( this, "add breakpoint" );
+ m_Interrupt->setSizePolicy ( TQSizePolicy ( (TQSizePolicy::SizeType)0,
+ ( TQSizePolicy::SizeType)0,
0,
0,
m_Interrupt->sizePolicy().hasHeightForWidth())
);
m_Interrupt->setPixmap ( SmallIcon ( "player_pause" ) );
userGDBCmdEntry->addWidget(m_Interrupt);
- QToolTip::add ( m_Interrupt, i18n ( "Pause execution of the app to enter gdb commands" ) );
+ TQToolTip::add ( m_Interrupt, i18n ( "Pause execution of the app to enter gdb commands" ) );
- QVBoxLayout *topLayout = new QVBoxLayout(this, 2);
+ TQVBoxLayout *topLayout = new TQVBoxLayout(this, 2);
topLayout->addWidget(m_gdbView, 10);
topLayout->addLayout(userGDBCmdEntry);
slotDbgStatus( "", s_dbgNotStarted);
- connect( m_userGDBCmdEditor, SIGNAL(returnPressed()), SLOT(slotGDBCmd()) );
- connect( m_Interrupt, SIGNAL(clicked()), SIGNAL(breakInto()));
+ connect( m_userGDBCmdEditor, TQT_SIGNAL(returnPressed()), TQT_SLOT(slotGDBCmd()) );
+ connect( m_Interrupt, TQT_SIGNAL(clicked()), TQT_SIGNAL(breakInto()));
- connect( &updateTimer_, SIGNAL(timeout()),
- this, SLOT(flushPending()));
+ connect( &updateTimer_, TQT_SIGNAL(timeout()),
+ this, TQT_SLOT(flushPending()));
}
/***************************************************************************/
@@ -117,7 +117,7 @@ void GDBOutputWidget::slotUserCommandStdout(const char* line)
}
namespace {
- QString colorify(QString text, const QString& color)
+ TQString colorify(TQString text, const TQString& color)
{
// Make sure the newline is at the end of the newly-added
// string. This is so that we can always correctly remove
@@ -133,10 +133,10 @@ namespace {
}
-void GDBOutputWidget::newStdoutLine(const QString& line,
+void GDBOutputWidget::newStdoutLine(const TQString& line,
bool internal)
{
- QString s = html_escape(line);
+ TQString s = html_escape(line);
if (s.startsWith("(gdb)"))
{
s = colorify(s, "blue");
@@ -160,7 +160,7 @@ void GDBOutputWidget::newStdoutLine(const QString& line,
}
-void GDBOutputWidget::showLine(const QString& line)
+void GDBOutputWidget::showLine(const TQString& line)
{
pendingOutput_ += line;
@@ -171,7 +171,7 @@ void GDBOutputWidget::showLine(const QString& line)
}
}
-void GDBOutputWidget::trimList(QStringList& l, unsigned max_size)
+void GDBOutputWidget::trimList(TQStringList& l, unsigned max_size)
{
unsigned int length = l.count();
if (length > max_size)
@@ -192,10 +192,10 @@ void GDBOutputWidget::setShowInternalCommands(bool show)
// Set of strings to show changes, text edit still has old
// set. Refresh.
m_gdbView->clear();
- QStringList& newList =
+ TQStringList& newList =
showInternalCommands_ ? allCommands_ : userCommands_;
- QStringList::iterator i = newList.begin(), e = newList.end();
+ TQStringList::iterator i = newList.begin(), e = newList.end();
for(; i != e; ++i)
{
// Note that color formatting is already applied to '*i'.
@@ -208,7 +208,7 @@ void GDBOutputWidget::setShowInternalCommands(bool show)
void GDBOutputWidget::slotReceivedStderr(const char* line)
{
- QString colored = colorify(html_escape(line), "red");
+ TQString colored = colorify(html_escape(line), "red");
// Errors are shown inside user commands too.
allCommands_.append(colored);
trimList(allCommands_, maxLines_);
@@ -227,7 +227,7 @@ void GDBOutputWidget::slotReceivedStderr(const char* line)
void GDBOutputWidget::slotGDBCmd()
{
- QString GDBCmd(m_userGDBCmdEditor->currentText());
+ TQString GDBCmd(m_userGDBCmdEditor->currentText());
if (!GDBCmd.isEmpty())
{
m_userGDBCmdEditor->addToHistory(GDBCmd);
@@ -240,7 +240,7 @@ void GDBOutputWidget::flushPending()
{
m_gdbView->setUpdatesEnabled(false);
- // QTextEdit adds newline after paragraph automatically.
+ // TQTextEdit adds newline after paragraph automatically.
// So, remove trailing newline to avoid double newlines.
if (pendingOutput_.endsWith("\n"))
pendingOutput_.remove(pendingOutput_.length()-1, 1);
@@ -257,7 +257,7 @@ void GDBOutputWidget::flushPending()
/***************************************************************************/
-void GDBOutputWidget::slotDbgStatus(const QString &, int statusFlag)
+void GDBOutputWidget::slotDbgStatus(const TQString &, int statusFlag)
{
if (statusFlag & s_dbgNotStarted)
{
@@ -282,33 +282,33 @@ void GDBOutputWidget::slotDbgStatus(const QString &, int statusFlag)
/***************************************************************************/
-void GDBOutputWidget::focusInEvent(QFocusEvent */*e*/)
+void GDBOutputWidget::focusInEvent(TQFocusEvent */*e*/)
{
m_gdbView->scrollToBottom();
m_userGDBCmdEditor->setFocus();
}
-QString GDBOutputWidget::html_escape(const QString& s)
+TQString GDBOutputWidget::html_escape(const TQString& s)
{
- QString r(s);
+ TQString r(s);
r.replace("<", "&lt;");
r.replace(">", "&gt;");
return r;
}
-void GDBOutputWidget::savePartialProjectSession(QDomElement* el)
+void GDBOutputWidget::savePartialProjectSession(TQDomElement* el)
{
- QDomDocument doc = el->ownerDocument();
+ TQDomDocument doc = el->ownerDocument();
- QDomElement showInternal = doc.createElement("showInternalCommands");
- showInternal.setAttribute("value", QString::number(showInternalCommands_));
+ TQDomElement showInternal = doc.createElement("showInternalCommands");
+ showInternal.setAttribute("value", TQString::number(showInternalCommands_));
el->appendChild(showInternal);
}
-void GDBOutputWidget::restorePartialProjectSession(const QDomElement* el)
+void GDBOutputWidget::restorePartialProjectSession(const TQDomElement* el)
{
- QDomElement showInternal =
+ TQDomElement showInternal =
el->namedItem("showInternalCommands").toElement();
if (!showInternal.isNull())
@@ -318,14 +318,14 @@ void GDBOutputWidget::restorePartialProjectSession(const QDomElement* el)
}
-//void OutputText::contextMenuEvent(QContextMenuEvent* e)
-QPopupMenu* OutputText::createPopupMenu(const QPoint&)
+//void OutputText::contextMenuEvent(TQContextMenuEvent* e)
+TQPopupMenu* OutputText::createPopupMenu(const TQPoint&)
{
KPopupMenu* popup = new KPopupMenu;
int id = popup->insertItem(i18n("Show Internal Commands"),
this,
- SLOT(toggleShowInternalCommands()));
+ TQT_SLOT(toggleShowInternalCommands()));
popup->setItemChecked(id, parent_->showInternalCommands_);
popup->setWhatsThis(
@@ -338,7 +338,7 @@ QPopupMenu* OutputText::createPopupMenu(const QPoint&)
popup->insertItem(i18n("Copy All"),
this,
- SLOT(copyAll()));
+ TQT_SLOT(copyAll()));
return popup;
@@ -348,16 +348,16 @@ void OutputText::copyAll()
{
/* See comments for allCommandRaw_ for explanations of
this complex logic, as opposed to calling text(). */
- QStringList& raw = parent_->showInternalCommands_ ?
+ TQStringList& raw = parent_->showInternalCommands_ ?
parent_->allCommandsRaw_ : parent_->userCommandsRaw_;
- QString text;
+ 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.
- QApplication::clipboard()->setText(text, QClipboard::Clipboard);
- QApplication::clipboard()->setText(text, QClipboard::Selection);
+ TQApplication::clipboard()->setText(text, QClipboard::Clipboard);
+ TQApplication::clipboard()->setText(text, QClipboard::Selection);
}
void OutputText::toggleShowInternalCommands()
diff --git a/languages/cpp/debugger/gdboutputwidget.h b/languages/cpp/debugger/gdboutputwidget.h
index ddf79823..0b14b599 100644
--- a/languages/cpp/debugger/gdboutputwidget.h
+++ b/languages/cpp/debugger/gdboutputwidget.h
@@ -18,10 +18,10 @@
#ifndef _GDBOUTPUTWIDGET_H_
#define _GDBOUTPUTWIDGET_H_
-#include <qwidget.h>
-#include <qtextedit.h>
-#include <qtimer.h>
-#include <qstringlist.h>
+#include <tqwidget.h>
+#include <tqtextedit.h>
+#include <tqtimer.h>
+#include <tqstringlist.h>
class KHistoryCombo;
@@ -37,11 +37,11 @@ class GDBOutputWidget : public QWidget
Q_OBJECT
public:
- GDBOutputWidget( QWidget *parent=0, const char *name=0 );
+ GDBOutputWidget( TQWidget *parent=0, const char *name=0 );
~GDBOutputWidget();
- void savePartialProjectSession(QDomElement* el);
- void restorePartialProjectSession(const QDomElement* el);
+ void savePartialProjectSession(TQDomElement* el);
+ void restorePartialProjectSession(const TQDomElement* el);
void clear();
@@ -49,38 +49,38 @@ public slots:
void slotInternalCommandStdout(const char* line);
void slotUserCommandStdout(const char* line);
void slotReceivedStderr(const char* line);
- void slotDbgStatus (const QString &status, int statusFlag);
+ void slotDbgStatus (const TQString &status, int statusFlag);
void slotGDBCmd();
void flushPending();
protected:
- virtual void focusInEvent(QFocusEvent *e);
+ virtual void focusInEvent(TQFocusEvent *e);
signals:
- void userGDBCmd(const QString &cmd);
+ void userGDBCmd(const TQString &cmd);
void breakInto();
private:
- QString html_escape(const QString& s);
+ TQString html_escape(const TQString& s);
- void newStdoutLine(const QString& line, bool internal);
+ void newStdoutLine(const TQString& line, bool internal);
/** Arranges for 'line' to be shown to the user.
Adds 'line' to pendingOutput_ and makes sure
updateTimer_ is running. */
- void showLine(const QString& line);
+ void showLine(const TQString& line);
/** Makes 'l' no longer then 'max_size' by
removing excessive elements from the top.
*/
- void trimList(QStringList& l, unsigned max_size);
+ void trimList(TQStringList& l, unsigned max_size);
KHistoryCombo* m_userGDBCmdEditor;
- QToolButton* m_Interrupt;
- QTextEdit* m_gdbView;
+ TQToolButton* m_Interrupt;
+ TQTextEdit* m_gdbView;
void setShowInternalCommands(bool);
friend class OutputText;
@@ -90,39 +90,39 @@ private:
"Show internal commands" on, we can show previous
internal commands.
*/
- QStringList userCommands_, allCommands_;
+ TQStringList userCommands_, allCommands_;
/** Same output, without any fancy formatting. Keeping it
here because I can't find any way to extract raw text,
- without formatting, out of QTextEdit except for
+ without formatting, out of TQTextEdit except for
selecting everything and calling 'copy()'. The latter
approach is just ugly. */
- QStringList userCommandsRaw_, allCommandsRaw_;
+ TQStringList userCommandsRaw_, allCommandsRaw_;
/** For performance reasons, we don't immediately add new text
to QTExtEdit. Instead we add it to pendingOutput_ and
flush it on timer.
*/
- QString pendingOutput_;
- QTimer updateTimer_;
+ TQString pendingOutput_;
+ TQTimer updateTimer_;
bool showInternalCommands_;
int maxLines_;
};
-/** Add popup menu specific to gdb output window to QTextEdit.
+/** Add popup menu specific to gdb output window to TQTextEdit.
*/
class OutputText : public QTextEdit
{
Q_OBJECT
public:
OutputText(GDBOutputWidget* parent)
- : QTextEdit(parent),
+ : TQTextEdit(parent),
parent_(parent)
{}
- QPopupMenu* createPopupMenu(const QPoint& pos);
+ TQPopupMenu* createPopupMenu(const TQPoint& pos);
private slots:
void copyAll();
diff --git a/languages/cpp/debugger/gdbparser.cpp b/languages/cpp/debugger/gdbparser.cpp
index 79057af5..5a8588b1 100644
--- a/languages/cpp/debugger/gdbparser.cpp
+++ b/languages/cpp/debugger/gdbparser.cpp
@@ -17,7 +17,7 @@
#include "variablewidget.h"
#include <kdebug.h>
-#include <qregexp.h>
+#include <tqregexp.h>
#include <ctype.h>
#include <stdlib.h>
@@ -62,32 +62,32 @@ GDBParser::~GDBParser()
// **************************************************************************
-QString GDBParser::getName(const char **buf)
+TQString GDBParser::getName(const char **buf)
{
const char *start = skipNextTokenStart(*buf);
if (*start) {
*buf = skipTokenValue(start);
- return QCString(start, *buf - start + 1);
+ return TQCString(start, *buf - start + 1);
} else
*buf = start;
- return QString();
+ return TQString();
}
// **************************************************************************
-QString GDBParser::getValue(const char **buf)
+TQString GDBParser::getValue(const char **buf)
{
const char *start = skipNextTokenStart(*buf);
*buf = skipTokenValue(start);
- QString value(QCString(start, *buf - start + 1).data());
+ TQString value(TQCString(start, *buf - start + 1).data());
return value;
}
-QString GDBParser::undecorateValue(DataType type, const QString& s)
+TQString GDBParser::undecorateValue(DataType type, const TQString& s)
{
- QCString l8 = s.local8Bit();
+ TQCString l8 = s.local8Bit();
const char* start = l8;
const char* end = start + s.length();
@@ -106,7 +106,7 @@ QString GDBParser::undecorateValue(DataType type, const QString& s)
else
{
// Looks like composite, strip the braces and return.
- return QCString(start+1, end - start -1);
+ return TQCString(start+1, end - start -1);
}
}
else if (*start == '(')
@@ -131,7 +131,7 @@ QString GDBParser::undecorateValue(DataType type, const QString& s)
start = skipDelim(start, '(', ')');
}
- QString value(QCString(start, end - start + 1).data());
+ TQString value(TQCString(start, end - start + 1).data());
value = value.stripWhiteSpace();
@@ -155,10 +155,10 @@ QString GDBParser::undecorateValue(DataType type, const QString& s)
return value.stripWhiteSpace();
}
-QString GDBParser::undecorateValue(const QString& s)
+TQString GDBParser::undecorateValue(const TQString& s)
{
DataType dataType = determineType(s.local8Bit());
- QString r = undecorateValue(dataType, s.local8Bit());
+ TQString r = undecorateValue(dataType, s.local8Bit());
return r;
}
diff --git a/languages/cpp/debugger/gdbparser.h b/languages/cpp/debugger/gdbparser.h
index 8972e5df..a56c082d 100644
--- a/languages/cpp/debugger/gdbparser.h
+++ b/languages/cpp/debugger/gdbparser.h
@@ -25,7 +25,7 @@ class GDBParser
{
public:
DataType determineType(const char *buf) const;
- QString undecorateValue(const QString& s);
+ TQString undecorateValue(const TQString& s);
const char *skipString(const char *buf) const;
const char *skipQuotes(const char *buf, char quote) const;
@@ -41,12 +41,12 @@ private:
const char *skipTokenValue(const char *buf) const;
const char *skipNextTokenStart(const char *buf) const;
- QString getName(const char **buf);
+ TQString getName(const char **buf);
/** Assuming 'buf' points to a value, return a pointer
to the position right after the value.
*/
- QString getValue(const char **buf);
- QString undecorateValue(DataType type, const QString& s);
+ TQString getValue(const char **buf);
+ TQString undecorateValue(DataType type, const TQString& s);
protected:
GDBParser();
diff --git a/languages/cpp/debugger/gdbtable.cpp b/languages/cpp/debugger/gdbtable.cpp
index c4d75f3a..c9c1bf2f 100644
--- a/languages/cpp/debugger/gdbtable.cpp
+++ b/languages/cpp/debugger/gdbtable.cpp
@@ -11,13 +11,13 @@
namespace GDBDebugger {
-GDBTable::GDBTable(QWidget *parent, const char *name)
- : QTable(parent, name)
+GDBTable::GDBTable(TQWidget *parent, const char *name)
+ : TQTable(parent, name)
{
}
-GDBTable::GDBTable(int nr, int nc, QWidget * parent, const char * name)
- : QTable(nr, nc, parent, name)
+GDBTable::GDBTable(int nr, int nc, TQWidget * parent, const char * name)
+ : TQTable(nr, nc, parent, name)
{
}
@@ -25,7 +25,7 @@ GDBTable::~GDBTable()
{
}
-void GDBTable::keyPressEvent( QKeyEvent * e )
+void GDBTable::keyPressEvent( TQKeyEvent * e )
{
emit keyPressed(e->key());
@@ -33,12 +33,12 @@ void GDBTable::keyPressEvent( QKeyEvent * e )
emit returnPressed();
else if (e->key() == Key_F2)
emit f2Pressed();
- else if ((e->text() == QString("a")) && (e->state() == AltButton))
+ else if ((e->text() == TQString("a")) && (e->state() == AltButton))
{
emit insertPressed();
return;
}
- else if ((e->text() == QString("A")) && (e->state() == AltButton))
+ else if ((e->text() == TQString("A")) && (e->state() == AltButton))
{
emit insertPressed();
return;
@@ -46,7 +46,7 @@ void GDBTable::keyPressEvent( QKeyEvent * e )
else if (e->key() == Key_Delete)
emit deletePressed();
- QTable::keyPressEvent(e);
+ TQTable::keyPressEvent(e);
}
}
diff --git a/languages/cpp/debugger/gdbtable.h b/languages/cpp/debugger/gdbtable.h
index f8741e26..78c45055 100644
--- a/languages/cpp/debugger/gdbtable.h
+++ b/languages/cpp/debugger/gdbtable.h
@@ -10,7 +10,7 @@
#ifndef GDBDEBUGGERGDBTABLE_H
#define GDBDEBUGGERGDBTABLE_H
-#include <qtable.h>
+#include <tqtable.h>
namespace GDBDebugger {
@@ -18,11 +18,11 @@ class GDBTable : public QTable
{
Q_OBJECT
public:
- GDBTable(QWidget *parent = 0, const char *name = 0);
- GDBTable( int numRows, int numCols, QWidget * parent = 0, const char * name = 0 );
+ GDBTable(TQWidget *parent = 0, const char *name = 0);
+ GDBTable( int numRows, int numCols, TQWidget * parent = 0, const char * name = 0 );
~GDBTable();
- virtual void keyPressEvent ( QKeyEvent * e );
+ virtual void keyPressEvent ( TQKeyEvent * e );
signals:
void keyPressed(int key);
diff --git a/languages/cpp/debugger/label_with_double_click.cpp b/languages/cpp/debugger/label_with_double_click.cpp
index a0a2014b..f08c7358 100644
--- a/languages/cpp/debugger/label_with_double_click.cpp
+++ b/languages/cpp/debugger/label_with_double_click.cpp
@@ -1,11 +1,11 @@
#include "label_with_double_click.h"
-LabelWithDoubleClick::LabelWithDoubleClick(const QString& s, QWidget* parent)
-: QLabel(s, parent)
+LabelWithDoubleClick::LabelWithDoubleClick(const TQString& s, TQWidget* parent)
+: TQLabel(s, parent)
{}
-void LabelWithDoubleClick::mouseDoubleClickEvent(QMouseEvent*)
+void LabelWithDoubleClick::mouseDoubleClickEvent(TQMouseEvent*)
{
emit doubleClicked();
}
diff --git a/languages/cpp/debugger/label_with_double_click.h b/languages/cpp/debugger/label_with_double_click.h
index 11dec898..35ade271 100644
--- a/languages/cpp/debugger/label_with_double_click.h
+++ b/languages/cpp/debugger/label_with_double_click.h
@@ -2,19 +2,19 @@
#ifndef LABEL_WITH_DOUBLE_CLICK_HPP_VP_2006_04_04
#define LABEL_WITH_DOUBLE_CLICK_HPP_VP_2006_04_04
-#include <qlabel.h>
+#include <tqlabel.h>
class LabelWithDoubleClick : public QLabel
{
Q_OBJECT
public:
- LabelWithDoubleClick(const QString& s, QWidget* parent);
+ LabelWithDoubleClick(const TQString& s, TQWidget* parent);
signals:
void doubleClicked();
protected:
- void mouseDoubleClickEvent(QMouseEvent*);
+ void mouseDoubleClickEvent(TQMouseEvent*);
};
#endif
diff --git a/languages/cpp/debugger/memviewdlg.cpp b/languages/cpp/debugger/memviewdlg.cpp
index 5316aa91..6d700233 100644
--- a/languages/cpp/debugger/memviewdlg.cpp
+++ b/languages/cpp/debugger/memviewdlg.cpp
@@ -26,15 +26,15 @@
#include <kdebug.h>
#include <kiconloader.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qmultilineedit.h>
-#include <qpushbutton.h>
-#include <qvariant.h>
-#include <qpopupmenu.h>
-#include <qhbox.h>
-#include <qtoolbox.h>
-#include <qtextedit.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqmultilineedit.h>
+#include <tqpushbutton.h>
+#include <tqvariant.h>
+#include <tqpopupmenu.h>
+#include <tqhbox.h>
+#include <tqtoolbox.h>
+#include <tqtextedit.h>
#include <kmessagebox.h>
@@ -76,28 +76,28 @@ namespace GDBDebugger
public:
KLineEdit* startAddressLineEdit;
KLineEdit* amountLineEdit;
- QPushButton* okButton;
- QPushButton* cancelButton;
+ TQPushButton* okButton;
+ TQPushButton* cancelButton;
- MemoryRangeSelector(QWidget* parent)
- : QWidget(parent)
+ MemoryRangeSelector(TQWidget* parent)
+ : TQWidget(parent)
{
- QVBoxLayout* l = new QVBoxLayout(this);
+ TQVBoxLayout* l = new TQVBoxLayout(this);
// Grid layout: labels + address field
- QGridLayout* gl = new QGridLayout(l);
+ TQGridLayout* gl = new TQGridLayout(l);
gl->setColSpacing(0, 2);
gl->setColSpacing(1, 4);
gl->setRowSpacing(1, 2);
- QLabel* l1 = new QLabel(i18n("Start"), this);
+ TQLabel* l1 = new TQLabel(i18n("Start"), this);
gl->addWidget(l1, 0, 1);
startAddressLineEdit = new KLineEdit(this);
gl->addWidget(startAddressLineEdit, 0, 3);
- QLabel* l2 = new QLabel(i18n("Amount"), this);
+ TQLabel* l2 = new TQLabel(i18n("Amount"), this);
gl->addWidget(l2, 2, 1);
amountLineEdit = new KLineEdit(this);
@@ -105,30 +105,30 @@ namespace GDBDebugger
l->addSpacing(2);
- QHBoxLayout* hb = new QHBoxLayout(l);
+ TQHBoxLayout* hb = new TQHBoxLayout(l);
hb->addStretch();
- okButton = new QPushButton(i18n("OK"), this);
+ okButton = new TQPushButton(i18n("OK"), this);
hb->addWidget(okButton);
- cancelButton = new QPushButton(i18n("Cancel"), this);
+ cancelButton = new TQPushButton(i18n("Cancel"), this);
hb->addWidget(cancelButton);
l->addSpacing(2);
- connect(startAddressLineEdit, SIGNAL(returnPressed()),
- okButton, SLOT(animateClick()));
+ connect(startAddressLineEdit, TQT_SIGNAL(returnPressed()),
+ okButton, TQT_SLOT(animateClick()));
- connect(amountLineEdit, SIGNAL(returnPressed()),
- okButton, SLOT(animateClick()));
+ connect(amountLineEdit, TQT_SIGNAL(returnPressed()),
+ okButton, TQT_SLOT(animateClick()));
}
};
MemoryView::MemoryView(GDBController* controller,
- QWidget* parent, const char* name)
- : QWidget(parent, name),
+ TQWidget* parent, const char* name)
+ : TQWidget(parent, name),
controller_(controller),
// New memory view can be created only when debugger is active,
// so don't set s_appNotStarted here.
@@ -147,7 +147,7 @@ namespace GDBDebugger
void MemoryView::initWidget()
{
- QVBoxLayout *l = new QVBoxLayout(this, 0, 0);
+ TQVBoxLayout *l = new TQVBoxLayout(this, 0, 0);
khexedit2_widget = KHE::createBytesEditWidget(this);
@@ -155,22 +155,22 @@ namespace GDBDebugger
if (khexedit2_widget)
{
- QWidget* real_widget = (QWidget*)
+ TQWidget* real_widget = (TQWidget*)
khexedit2_widget->child("BytesEdit");
if (real_widget)
{
ok_ = true;
- connect(real_widget, SIGNAL(bufferChanged(int, int)),
- this, SLOT(memoryEdited(int, int)));
+ connect(real_widget, TQT_SIGNAL(bufferChanged(int, int)),
+ this, TQT_SLOT(memoryEdited(int, int)));
khexedit2_real_widget = real_widget;
- QVariant resize_style(2); // full size usage.
+ TQVariant resize_style(2); // full size usage.
real_widget->setProperty("ResizeStyle", resize_style);
- //QVariant group(8);
+ //TQVariant group(8);
//real_widget->setProperty("StartOffset", start);
//real_widget->setProperty("NoOfBytesPerLine", group);
@@ -179,10 +179,10 @@ namespace GDBDebugger
// 3 -- binary
// 1 -- decimal
// 0 -- hex
- //QVariant coding(3);
+ //TQVariant coding(3);
//real_widget->setProperty("Coding", coding);
- //QVariant gap(32);
+ //TQVariant gap(32);
//real_widget->setProperty("BinaryGapWidth", gap);
}
@@ -197,28 +197,28 @@ namespace GDBDebugger
rangeSelector_ = new MemoryRangeSelector(this);
l->addWidget(rangeSelector_);
- connect(rangeSelector_->okButton, SIGNAL(clicked()),
- this, SLOT(slotChangeMemoryRange()));
+ connect(rangeSelector_->okButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotChangeMemoryRange()));
- connect(rangeSelector_->cancelButton, SIGNAL(clicked()),
- this, SLOT(slotHideRangeDialog()));
+ connect(rangeSelector_->cancelButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotHideRangeDialog()));
connect(rangeSelector_->startAddressLineEdit,
- SIGNAL(textChanged(const QString&)),
+ TQT_SIGNAL(textChanged(const TQString&)),
this,
- SLOT(slotEnableOrDisable()));
+ TQT_SLOT(slotEnableOrDisable()));
connect(rangeSelector_->amountLineEdit,
- SIGNAL(textChanged(const QString&)),
+ TQT_SIGNAL(textChanged(const TQString&)),
this,
- SLOT(slotEnableOrDisable()));
+ TQT_SLOT(slotEnableOrDisable()));
l->addWidget(khexedit2_widget);
} else {
- QTextEdit* edit = new QTextEdit(this);
+ TQTextEdit* edit = new TQTextEdit(this);
l->addWidget(edit);
edit->setText(
@@ -257,12 +257,12 @@ namespace GDBDebugger
this, &MemoryView::sizeComputed));
}
- void MemoryView::sizeComputed(const QString& size)
+ void MemoryView::sizeComputed(const TQString& size)
{
controller_->addCommand(
new
GDBCommand(
- QString("-data-read-memory %1 x 1 1 %2")
+ TQString("-data-read-memory %1 x 1 1 %2")
.arg(rangeSelector_->startAddressLineEdit->text())
.arg(size).ascii(),
this,
@@ -279,7 +279,7 @@ namespace GDBDebugger
amountAsString_ = rangeSelector_->amountLineEdit->text();
start_ = startAsString_.toUInt(0, 0);
- setCaption(QString("%1 (%2 bytes)")
+ setCaption(TQString("%1 (%2 bytes)")
.arg(startAsString_).arg(amount_));
emit captionChanged(caption());
@@ -302,10 +302,10 @@ namespace GDBDebugger
// inserting new data.
bytesEditor->setOverwriteOnly( true );
- QVariant start_v(start_);
+ TQVariant start_v(start_);
khexedit2_real_widget->setProperty("FirstLineOffset", start_v);
- //QVariant bsw(0);
+ //TQVariant bsw(0);
//khexedit2_real_widget->setProperty("ByteSpacingWidth", bsw);
// HACK: use hardcoded constant taht should match
@@ -313,7 +313,7 @@ namespace GDBDebugger
// 3 -- binary
// 1 -- decimal
// 0 -- hex
- //QVariant coding(1);
+ //TQVariant coding(1);
//khexedit2_real_widget->setProperty("Coding", coding);
@@ -327,19 +327,19 @@ namespace GDBDebugger
{
controller_->addCommand(
new GDBCommand(
- QString("set *(char*)(%1 + %2) = %3")
+ TQString("set *(char*)(%1 + %2) = %3")
.arg(start_)
.arg(i)
- .arg(QString::number(data_[i]))));
+ .arg(TQString::number(data_[i]))));
}
}
- void MemoryView::contextMenuEvent ( QContextMenuEvent * e )
+ void MemoryView::contextMenuEvent ( TQContextMenuEvent * e )
{
if (!isOk())
return;
- QPopupMenu menu;
+ TQPopupMenu menu;
bool app_running = !(debuggerState_ & s_appNotStarted);
@@ -373,7 +373,7 @@ namespace GDBDebugger
controller_->addCommand(
new
GDBCommand(
- QString("-data-read-memory %1 x 1 1 %2")
+ TQString("-data-read-memory %1 x 1 1 %2")
.arg(start_).arg(amount_).ascii(),
this,
&MemoryView::memoryRead));
@@ -403,16 +403,16 @@ namespace GDBDebugger
ViewerWidget::ViewerWidget(GDBController* controller,
- QWidget* parent,
+ TQWidget* parent,
const char* name)
- : QWidget(parent, name),
+ : TQWidget(parent, name),
controller_(controller)
{
setIcon(SmallIcon("math_brace"));
- QVBoxLayout *l = new QVBoxLayout(this, 0, 0);
+ TQVBoxLayout *l = new TQVBoxLayout(this, 0, 0);
- toolBox_ = new QToolBox(this);
+ toolBox_ = new TQToolBox(this);
l->addWidget(toolBox_);
}
@@ -436,14 +436,14 @@ namespace GDBDebugger
toolBox_->setCurrentItem(widget);
memoryViews_.push_back(widget);
- connect(widget, SIGNAL(captionChanged(const QString&)),
- this, SLOT(slotChildCaptionChanged(const QString&)));
+ connect(widget, TQT_SIGNAL(captionChanged(const TQString&)),
+ this, TQT_SLOT(slotChildCaptionChanged(const TQString&)));
- connect(widget, SIGNAL(destroyed(QObject*)),
- this, SLOT(slotChildDestroyed(QObject*)));
+ connect(widget, TQT_SIGNAL(destroyed(TQObject*)),
+ this, TQT_SLOT(slotChildDestroyed(TQObject*)));
}
- void ViewerWidget::slotDebuggerState(const QString&, int state)
+ void ViewerWidget::slotDebuggerState(const TQString&, int state)
{
for(unsigned i = 0; i < memoryViews_.size(); ++i)
{
@@ -451,19 +451,19 @@ namespace GDBDebugger
}
}
- void ViewerWidget::slotChildCaptionChanged(const QString& caption)
+ void ViewerWidget::slotChildCaptionChanged(const TQString& caption)
{
- const QWidget* s = static_cast<const QWidget*>(sender());
- QWidget* ncs = const_cast<QWidget*>(s);
- QString cap = caption;
+ const TQWidget* s = static_cast<const TQWidget*>(sender());
+ TQWidget* ncs = const_cast<TQWidget*>(s);
+ TQString cap = caption;
// Prevent intepreting '&' as accelerator specifier.
cap.replace("&", "&&");
toolBox_->setItemLabel(toolBox_->indexOf(ncs), cap);
}
- void ViewerWidget::slotChildDestroyed(QObject* child)
+ void ViewerWidget::slotChildDestroyed(TQObject* child)
{
- QValueVector<MemoryView*>::iterator i, e;
+ TQValueVector<MemoryView*>::iterator i, e;
for(i = memoryViews_.begin(), e = memoryViews_.end(); i != e; ++i)
{
if (*i == child)
diff --git a/languages/cpp/debugger/memviewdlg.h b/languages/cpp/debugger/memviewdlg.h
index a29de924..7008fb48 100644
--- a/languages/cpp/debugger/memviewdlg.h
+++ b/languages/cpp/debugger/memviewdlg.h
@@ -20,7 +20,7 @@
#include <kdialog.h>
-#include <qvaluevector.h>
+#include <tqvaluevector.h>
class KLineEdit;
class QMultiLineEdit;
@@ -36,7 +36,7 @@ namespace GDBDebugger
Q_OBJECT
public:
ViewerWidget(GDBController* controller,
- QWidget* parent, const char* name);
+ TQWidget* parent, const char* name);
public slots:
/** Adds a new memory view to *this, initially showing
@@ -45,20 +45,20 @@ namespace GDBDebugger
/** Informs *this about change in debugger state. Should always
be connected to, so that *this can disable itself when
debugger is not running. */
- void slotDebuggerState(const QString&, int state);
+ void slotDebuggerState(const TQString&, int state);
signals:
void setViewShown(bool shown);
private slots:
- void slotChildCaptionChanged(const QString& caption);
- void slotChildDestroyed(QObject* child);
+ void slotChildCaptionChanged(const TQString& caption);
+ void slotChildDestroyed(TQObject* child);
private: // Data
GDBController* controller_;
- QToolBox* toolBox_;
- QValueVector<MemoryView*> memoryViews_;
+ TQToolBox* toolBox_;
+ TQValueVector<MemoryView*> memoryViews_;
};
class MemoryView : public QWidget
@@ -66,15 +66,15 @@ namespace GDBDebugger
Q_OBJECT
public:
MemoryView(GDBController* controller,
- QWidget* parent, const char* name = 0);
+ TQWidget* parent, const char* name = 0);
void debuggerStateChanged(int state);
signals:
- void captionChanged(const QString& caption);
+ void captionChanged(const TQString& caption);
private: // Callbacks
- void sizeComputed(const QString& value);
+ void sizeComputed(const TQString& value);
void memoryRead(const GDBMI::ResultRecord& r);
@@ -95,8 +95,8 @@ namespace GDBDebugger
void slotHideRangeDialog();
void slotEnableOrDisable();
- private: // QWidget overrides
- void contextMenuEvent(QContextMenuEvent* e);
+ private: // TQWidget overrides
+ void contextMenuEvent(TQContextMenuEvent* e);
private:
void initWidget();
@@ -104,11 +104,11 @@ namespace GDBDebugger
private:
GDBController* controller_;
class MemoryRangeSelector* rangeSelector_;
- QWidget* khexedit2_widget;
- QWidget* khexedit2_real_widget;
+ TQWidget* khexedit2_widget;
+ TQWidget* khexedit2_real_widget;
uint start_, amount_;
- QString startAsString_, amountAsString_;
+ TQString startAsString_, amountAsString_;
char* data_;
int debuggerState_;
diff --git a/languages/cpp/debugger/mi/gdbmi.cpp b/languages/cpp/debugger/mi/gdbmi.cpp
index fa27355f..27f90284 100644
--- a/languages/cpp/debugger/mi/gdbmi.cpp
+++ b/languages/cpp/debugger/mi/gdbmi.cpp
@@ -28,7 +28,7 @@ type_error::type_error()
: std::logic_error("MI type error")
{}
-QString Value::literal() const
+TQString Value::literal() const
{
throw type_error();
}
@@ -38,12 +38,12 @@ int Value::toInt(int /*base*/) const
throw type_error();
}
-bool Value::hasField(const QString&) const
+bool Value::hasField(const TQString&) const
{
throw type_error();
}
-const Value& Value::operator[](const QString&) const
+const Value& Value::operator[](const TQString&) const
{
throw type_error();
}
@@ -64,7 +64,7 @@ const Value& Value::operator[](unsigned) const
throw type_error();
}
-QString StringLiteralValue::literal() const
+TQString StringLiteralValue::literal() const
{
return literal_;
}
@@ -80,16 +80,16 @@ int StringLiteralValue::toInt(int base) const
TupleValue::~TupleValue()
{
- for (QValueListIterator<Result*> it=results.begin(); it!=results.end(); ++it)
+ for (TQValueListIterator<Result*> it=results.begin(); it!=results.end(); ++it)
delete *it;
}
-bool TupleValue::hasField(const QString& variable) const
+bool TupleValue::hasField(const TQString& variable) const
{
return results_by_name.count(variable);
}
-const Value& TupleValue::operator[](const QString& variable) const
+const Value& TupleValue::operator[](const TQString& variable) const
{
if (results_by_name.count(variable))
return *results_by_name[variable]->value;
@@ -99,7 +99,7 @@ const Value& TupleValue::operator[](const QString& variable) const
ListValue::~ListValue()
{
- for (QValueListIterator<Result*> it=results.begin(); it!=results.end(); ++it)
+ for (TQValueListIterator<Result*> it=results.begin(); it!=results.end(); ++it)
delete *it;
}
diff --git a/languages/cpp/debugger/mi/gdbmi.h b/languages/cpp/debugger/mi/gdbmi.h
index 667246a0..64252ee5 100644
--- a/languages/cpp/debugger/mi/gdbmi.h
+++ b/languages/cpp/debugger/mi/gdbmi.h
@@ -22,9 +22,9 @@
#ifndef GDBMI_H
#define GDBMI_H
-#include <qstring.h>
-#include <qvaluelist.h>
-#include <qmap.h>
+#include <tqstring.h>
+#include <tqvaluelist.h>
+#include <tqmap.h>
#include <stdexcept>
@@ -94,7 +94,7 @@ namespace GDBMI
/** If this value is a string literals, returns the string value.
Othewise, throws type_error.
*/
- virtual QString literal() const;
+ virtual TQString literal() const;
/** If the value is a string literal, converts it to int and
returns. If conversion fails, or the value cannot be
@@ -106,7 +106,7 @@ namespace GDBMI
has a field named 'variable'. Otherwise,
throws type_error.
*/
- virtual bool hasField(const QString& variable) const;
+ virtual bool hasField(const TQString& variable) const;
/** If this value is a tuple, and contains named field 'variable',
returns it. Otherwise, throws 'type_error'.
@@ -114,7 +114,7 @@ namespace GDBMI
we can save on casting, when we know for sure that instance
is TupleValue, or ListValue.
*/
- virtual const Value& operator[](const QString& variable) const;
+ virtual const Value& operator[](const TQString& variable) const;
/** If this value is a list, returns true if the list is empty.
If this value is not a list, throws 'type_error'.
@@ -140,22 +140,22 @@ namespace GDBMI
Result() : value(0) {}
~Result() { delete value; value = 0; }
- QString variable;
+ TQString variable;
Value *value;
};
struct StringLiteralValue : public Value
{
- StringLiteralValue(const QString &lit)
+ StringLiteralValue(const TQString &lit)
: literal_(lit) { Value::kind = StringLiteral; }
public: // Value overrides
- QString literal() const;
+ TQString literal() const;
int toInt(int base) const;
private:
- QString literal_;
+ TQString literal_;
};
struct TupleValue : public Value
@@ -163,12 +163,12 @@ namespace GDBMI
TupleValue() { Value::kind = Tuple; }
~TupleValue();
- bool hasField(const QString&) const;
- const Value& operator[](const QString& variable) const;
+ bool hasField(const TQString&) const;
+ const Value& operator[](const TQString& variable) const;
- QValueList<Result*> results;
- QMap<QString, GDBMI::Result*> results_by_name;
+ TQValueList<Result*> results;
+ TQMap<TQString, GDBMI::Result*> results_by_name;
};
struct ListValue : public Value
@@ -182,14 +182,14 @@ namespace GDBMI
const Value& operator[](unsigned index) const;
- QValueList<Result*> results;
+ TQValueList<Result*> results;
};
struct Record
{
virtual ~Record() {}
- virtual QString toString() const { Q_ASSERT( 0 ); return QString::null; }
+ virtual TQString toString() const { Q_ASSERT( 0 ); return TQString::null; }
enum { Prompt, Stream, Result } kind;
};
@@ -198,14 +198,14 @@ namespace GDBMI
{
ResultRecord() { Record::kind = Result; }
- QString reason;
+ TQString reason;
};
struct PromptRecord : public Record
{
inline PromptRecord() { Record::kind = Prompt; }
- virtual QString toString() const
+ virtual TQString toString() const
{ return "(prompt)\n"; }
};
@@ -214,7 +214,7 @@ namespace GDBMI
inline StreamRecord() : reason(0) { Record::kind = Stream; }
char reason;
- QString message;
+ TQString message;
};
}
diff --git a/languages/cpp/debugger/mi/milexer.cpp b/languages/cpp/debugger/mi/milexer.cpp
index 847733ad..7813d091 100644
--- a/languages/cpp/debugger/mi/milexer.cpp
+++ b/languages/cpp/debugger/mi/milexer.cpp
@@ -281,10 +281,10 @@ void TokenStream::positionAt(int position, int *line, int *column) const
Q_ASSERT( *column >= 0 );
}
-QCString TokenStream::tokenText(int index) const
+TQCString TokenStream::tokenText(int index) const
{
Token *t = index < 0 ? m_currentToken : m_firstToken + index;
const char* data = m_contents;
- return QCString(data + t->position, t->length+1);
+ return TQCString(data + t->position, t->length+1);
}
diff --git a/languages/cpp/debugger/mi/milexer.h b/languages/cpp/debugger/mi/milexer.h
index 8f39820c..8f07ba58 100644
--- a/languages/cpp/debugger/mi/milexer.h
+++ b/languages/cpp/debugger/mi/milexer.h
@@ -20,9 +20,9 @@
#ifndef MILEXER_H
#define MILEXER_H
-#include <qmemarray.h>
-#include <qmap.h>
-#include <qstring.h>
+#include <tqmemarray.h>
+#include <tqmap.h>
+#include <tqstring.h>
class MILexer;
class TokenStream;
@@ -38,7 +38,7 @@ struct Token
struct FileSymbol
{
- QCString contents;
+ TQCString contents;
TokenStream *tokenStream;
inline FileSymbol()
@@ -55,10 +55,10 @@ struct TokenStream
inline int currentToken() const
{ return m_currentToken->kind; }
- inline QCString currentTokenText() const
+ inline TQCString currentTokenText() const
{ return tokenText(-1); }
- QCString tokenText(int index = 0) const;
+ TQCString tokenText(int index = 0) const;
inline int lineOffset(int line) const
{ return m_lines.at(line); }
@@ -84,12 +84,12 @@ struct TokenStream
{ m_currentToken++; m_cursor++; }
//private:
- QCString m_contents;
+ TQCString m_contents;
- QMemArray<int> m_lines;
+ TQMemArray<int> m_lines;
int m_line;
- QMemArray<Token> m_tokens;
+ TQMemArray<Token> m_tokens;
int m_tokensCount;
Token *m_firstToken;
@@ -123,15 +123,15 @@ private:
static bool s_initialized;
static scan_fun_ptr s_scan_table[128 + 1];
- QCString m_contents;
+ TQCString m_contents;
int m_ptr;
// Cached 'm_contents.length()'
int m_length;
- QMemArray<int> m_lines;
+ TQMemArray<int> m_lines;
int m_line;
- QMemArray<Token> m_tokens;
+ TQMemArray<Token> m_tokens;
int m_tokensCount;
int m_cursor;
diff --git a/languages/cpp/debugger/mi/miparser.cpp b/languages/cpp/debugger/mi/miparser.cpp
index 252c4e1b..fdd16137 100644
--- a/languages/cpp/debugger/mi/miparser.cpp
+++ b/languages/cpp/debugger/mi/miparser.cpp
@@ -125,7 +125,7 @@ bool MIParser::parseResultRecord(Record *&record)
lex->nextToken();
MATCH(Token_identifier);
- QString reason = lex->currentTokenText();
+ TQString reason = lex->currentTokenText();
lex->nextToken();
std::auto_ptr<ResultRecord> res(new ResultRecord);
@@ -148,7 +148,7 @@ bool MIParser::parseResultRecord(Record *&record)
bool MIParser::parseResult(Result *&result)
{
MATCH(Token_identifier);
- QString variable = lex->currentTokenText();
+ TQString variable = lex->currentTokenText();
lex->nextToken();
std::auto_ptr<Result> res(new Result);
@@ -289,12 +289,12 @@ bool MIParser::parseCSV(GDBMI::TupleValue& value,
}
-QString MIParser::parseStringLiteral()
+TQString MIParser::parseStringLiteral()
{
- QCString message = lex->currentTokenText();
+ TQCString message = lex->currentTokenText();
unsigned int length = message.length();
- QString message2;
+ TQString message2;
message2.setLength(length);
// The [1,length-1] range removes quotes without extra
// call to 'mid'
diff --git a/languages/cpp/debugger/mi/miparser.h b/languages/cpp/debugger/mi/miparser.h
index b11ba504..9bea70b2 100644
--- a/languages/cpp/debugger/mi/miparser.h
+++ b/languages/cpp/debugger/mi/miparser.h
@@ -23,8 +23,8 @@
#include "milexer.h"
#include "gdbmi.h"
-#include <qstring.h>
-#include <qvaluelist.h>
+#include <tqstring.h>
+#include <tqvaluelist.h>
/**
@author Roberto Raggi
@@ -70,7 +70,7 @@ protected: // rules
in the string.
@pre lex->lookAhead(0) == Token_string_literal
*/
- QString parseStringLiteral();
+ TQString parseStringLiteral();
diff --git a/languages/cpp/debugger/stty.cpp b/languages/cpp/debugger/stty.cpp
index f0bc2627..cdf4c81e 100644
--- a/languages/cpp/debugger/stty.cpp
+++ b/languages/cpp/debugger/stty.cpp
@@ -59,10 +59,10 @@
#include <bsdtty.h>
#endif
-#include <qintdict.h>
-#include <qsocketnotifier.h>
-#include <qstring.h>
-#include <qfile.h>
+#include <tqintdict.h>
+#include <tqsocketnotifier.h>
+#include <tqstring.h>
+#include <tqfile.h>
#include <klocale.h>
#include <kstandarddirs.h>
@@ -92,8 +92,8 @@ static int chownpty(int fd, int grant)
if (fd != PTY_FILENO && dup2(fd, PTY_FILENO) < 0)
::exit(1);
- QString path = locate("exe", BASE_CHOWN);
- execle(QFile::encodeName(path), BASE_CHOWN, grant?"--grant":"--revoke", (void *)0, NULL);
+ TQString path = locate("exe", BASE_CHOWN);
+ execle(TQFile::encodeName(path), BASE_CHOWN, grant?"--grant":"--revoke", (void *)0, NULL);
::exit(1); // should not be reached
}
if (pid > 0) {
@@ -118,8 +118,8 @@ static int chownpty(int fd, int grant)
// **************************************************************************
-STTY::STTY(bool ext, const QString &termAppName)
- : QObject(),
+STTY::STTY(bool ext, const TQString &termAppName)
+ : TQObject(),
out(0),
ttySlave(""),
pid_(0),
@@ -130,9 +130,9 @@ STTY::STTY(bool ext, const QString &termAppName)
} else {
fout = findTTY();
if (fout >= 0) {
- ttySlave = QString(tty_slave);
- out = new QSocketNotifier(fout, QSocketNotifier::Read, this);
- connect( out, SIGNAL(activated(int)), this, SLOT(OutReceived(int)) );
+ ttySlave = TQString(tty_slave);
+ out = new TQSocketNotifier(fout, TQSocketNotifier::Read, this);
+ connect( out, TQT_SIGNAL(activated(int)), this, TQT_SLOT(OutReceived(int)) );
}
}
}
@@ -281,9 +281,9 @@ void STTY::readRemaining()
#define FIFO_FILE "/tmp/debug_tty.XXXXXX"
-bool STTY::findExternalTTY(const QString &termApp)
+bool STTY::findExternalTTY(const TQString &termApp)
{
- QString appName(termApp.isEmpty() ? QString("xterm") : termApp);
+ TQString appName(termApp.isEmpty() ? TQString("xterm") : termApp);
if ( KStandardDirs::findExe( termApp ).isEmpty() )
{
@@ -319,8 +319,8 @@ bool STTY::findExternalTTY(const QString &termApp)
*/
const char* prog = appName.latin1();
- QString script = QString("tty>") + QString(fifo) +
- QString(";" // fifo name
+ TQString script = TQString("tty>") + TQString(fifo) +
+ TQString(";" // fifo name
"trap \"\" INT QUIT TSTP;" // ignore various signals
"exec<&-;exec>&-;" // close stdin and stdout
"while :;do sleep 3600;done");
diff --git a/languages/cpp/debugger/stty.h b/languages/cpp/debugger/stty.h
index 639e8417..7c026251 100644
--- a/languages/cpp/debugger/stty.h
+++ b/languages/cpp/debugger/stty.h
@@ -27,8 +27,8 @@
class QSocketNotifier;
-#include <qobject.h>
-#include <qstring.h>
+#include <tqobject.h>
+#include <tqstring.h>
namespace GDBDebugger
{
@@ -38,10 +38,10 @@ class STTY : public QObject
Q_OBJECT
public:
- STTY(bool ext=false, const QString &termAppName=QString());
+ STTY(bool ext=false, const TQString &termAppName=TQString());
~STTY();
- QString getSlave() { return ttySlave; };
+ TQString getSlave() { return ttySlave; };
void readRemaining();
private slots:
@@ -53,13 +53,13 @@ signals:
private:
int findTTY();
- bool findExternalTTY(const QString &termApp);
+ bool findExternalTTY(const TQString &termApp);
private:
int fout;
int ferr;
- QSocketNotifier *out;
- QString ttySlave;
+ TQSocketNotifier *out;
+ TQString ttySlave;
int pid_;
bool external_;
diff --git a/languages/cpp/debugger/tests/print_pointers/print_pointers.cpp b/languages/cpp/debugger/tests/print_pointers/print_pointers.cpp
index 09053b51..cc03679f 100644
--- a/languages/cpp/debugger/tests/print_pointers/print_pointers.cpp
+++ b/languages/cpp/debugger/tests/print_pointers/print_pointers.cpp
@@ -1,5 +1,5 @@
-#include <qstring.h>
+#include <tqstring.h>
#include <vector>
struct B { int i; int j; static int k; };
@@ -17,7 +17,7 @@ void func2()
printf("func2\n");
}
-void func(QString& xs)
+void func(TQString& xs)
{
int ac = 10;
std::string s;
@@ -30,7 +30,7 @@ void func(QString& xs)
class Test
{
public:
- QString n;
+ TQString n;
int b;
};
@@ -67,9 +67,9 @@ int test_main(int ac, char* av[])
wchar_t* p15 = L"test1";
- QString s = "test test test test";
- QString* sp = &s;
- const QString& sr = s;
+ TQString s = "test test test test";
+ TQString* sp = &s;
+ const TQString& sr = s;
func(s);
i = 15;
diff --git a/languages/cpp/debugger/tests/two_module/src/foo.cpp b/languages/cpp/debugger/tests/two_module/src/foo.cpp
index b66f9924..f0e30f15 100644
--- a/languages/cpp/debugger/tests/two_module/src/foo.cpp
+++ b/languages/cpp/debugger/tests/two_module/src/foo.cpp
@@ -1,10 +1,10 @@
#include <stdio.h>
-#include <qstring.h>
+#include <tqstring.h>
void foo(int a)
{
- QString s = "foo";
+ TQString s = "foo";
int i = 10;
int i2 = 12;
int i3 = i + i2;
diff --git a/languages/cpp/debugger/variablewidget.cpp b/languages/cpp/debugger/variablewidget.cpp
index 263afdf9..163c2024 100644
--- a/languages/cpp/debugger/variablewidget.cpp
+++ b/languages/cpp/debugger/variablewidget.cpp
@@ -24,19 +24,19 @@
#include <kdeversion.h>
#include <kiconloader.h>
-#include <qheader.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qhbox.h>
-#include <qpainter.h>
-#include <qpushbutton.h>
-#include <qregexp.h>
-#include <qcursor.h>
-#include <qwhatsthis.h>
+#include <tqheader.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqhbox.h>
+#include <tqpainter.h>
+#include <tqpushbutton.h>
+#include <tqregexp.h>
+#include <tqcursor.h>
+#include <tqwhatsthis.h>
#include <klocale.h>
-#include <qpoint.h>
-#include <qclipboard.h>
+#include <tqpoint.h>
+#include <tqclipboard.h>
#include <kapplication.h>
#include <kmessagebox.h>
@@ -77,8 +77,8 @@ namespace GDBDebugger
VariableWidget::VariableWidget(GDBController* controller,
GDBBreakpointWidget* breakpointWidget,
- QWidget *parent, const char *name)
-: QWidget(parent, name)
+ TQWidget *parent, const char *name)
+: TQWidget(parent, name)
{
setIcon(SmallIcon("math_brace"));
setCaption(i18n("Variable Tree"));
@@ -88,35 +88,35 @@ VariableWidget::VariableWidget(GDBController* controller,
watchVarEditor_ = new KHistoryCombo( this,
"var-to-watch editor");
- QHBoxLayout* buttons = new QHBoxLayout();
+ TQHBoxLayout* buttons = new TQHBoxLayout();
buttons->addStretch();
- QPushButton *evalButton = new QPushButton(i18n("&Evaluate"), this );
+ TQPushButton *evalButton = new TQPushButton(i18n("&Evaluate"), this );
buttons->addWidget(evalButton);
- QPushButton *addButton = new QPushButton(i18n("&Watch"), this );
+ TQPushButton *addButton = new TQPushButton(i18n("&Watch"), this );
buttons->addWidget(addButton);
- QVBoxLayout *topLayout = new QVBoxLayout(this, 2);
+ TQVBoxLayout *topLayout = new TQVBoxLayout(this, 2);
topLayout->addWidget(varTree_, 10);
topLayout->addWidget(watchVarEditor_);
topLayout->addItem(buttons);
- connect( addButton, SIGNAL(clicked()), SLOT(slotAddWatchVariable()) );
- connect( evalButton, SIGNAL(clicked()), SLOT(slotEvaluateExpression()) );
+ connect( addButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotAddWatchVariable()) );
+ connect( evalButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotEvaluateExpression()) );
- connect( watchVarEditor_, SIGNAL(returnPressed()),
- SLOT(slotEvaluateExpression()) );
+ connect( watchVarEditor_, TQT_SIGNAL(returnPressed()),
+ TQT_SLOT(slotEvaluateExpression()) );
- connect(controller, SIGNAL(event(GDBController::event_t)),
- varTree_, SLOT(slotEvent(GDBController::event_t)));
+ connect(controller, TQT_SIGNAL(event(GDBController::event_t)),
+ varTree_, TQT_SLOT(slotEvent(GDBController::event_t)));
// Setup help items.
- QWhatsThis::add(this, i18n(
+ TQWhatsThis::add(this, i18n(
"<b>Variable tree</b><p>"
"The variable tree allows you to see the values of local "
"variables and arbitrary expressions."
@@ -130,22 +130,22 @@ VariableWidget::VariableWidget(GDBController* controller,
"<p>To change the value of a variable or an expression, "
"click on the value."));
- QWhatsThis::add(watchVarEditor_,
+ TQWhatsThis::add(watchVarEditor_,
i18n("<b>Expression entry</b>"
"<p>Type in expression to evaluate."));
- QWhatsThis::add(evalButton,
+ TQWhatsThis::add(evalButton,
i18n("Evaluate the expression."));
- QWhatsThis::add(addButton,
+ TQWhatsThis::add(addButton,
i18n("Evaluate the expression and "
"auto-update the value when stepping."));
}
void VariableWidget::slotAddWatchVariable()
{
-// QString watchVar(watchVarEntry_->text());
- QString watchVar(watchVarEditor_->currentText());
+// TQString watchVar(watchVarEntry_->text());
+ TQString watchVar(watchVarEditor_->currentText());
if (!watchVar.isEmpty())
{
slotAddWatchVariable(watchVar);
@@ -154,7 +154,7 @@ void VariableWidget::slotAddWatchVariable()
// **************************************************************************
-void VariableWidget::slotAddWatchVariable(const QString &ident)
+void VariableWidget::slotAddWatchVariable(const TQString &ident)
{
if (!ident.isEmpty())
{
@@ -166,14 +166,14 @@ void VariableWidget::slotAddWatchVariable(const QString &ident)
void VariableWidget::slotEvaluateExpression()
{
- QString exp(watchVarEditor_->currentText());
+ TQString exp(watchVarEditor_->currentText());
if (!exp.isEmpty())
{
slotEvaluateExpression(exp);
}
}
-void VariableWidget::slotEvaluateExpression(const QString &ident)
+void VariableWidget::slotEvaluateExpression(const TQString &ident)
{
if (!ident.isEmpty())
{
@@ -185,7 +185,7 @@ void VariableWidget::slotEvaluateExpression(const QString &ident)
// **************************************************************************
-void VariableWidget::focusInEvent(QFocusEvent */*e*/)
+void VariableWidget::focusInEvent(TQFocusEvent */*e*/)
{
varTree_->setFocus();
}
@@ -202,7 +202,7 @@ VariableTree::VariableTree(VariableWidget *parent,
GDBBreakpointWidget* breakpointWidget,
const char *name)
: KListView(parent, name),
- QToolTip( viewport() ),
+ TQToolTip( viewport() ),
controller_(controller),
breakpointWidget_(breakpointWidget),
activeFlag_(0),
@@ -213,7 +213,7 @@ VariableTree::VariableTree(VariableWidget *parent,
setRootIsDecorated(true);
setAllColumnsShowFocus(true);
setSorting(-1);
- QListView::setSelectionMode(QListView::Single);
+ TQListView::setSelectionMode(TQListView::Single);
// Note: it might be reasonable to set width of value
// column to 10 characters ('0x12345678'), and rely on
@@ -223,10 +223,10 @@ VariableTree::VariableTree(VariableWidget *parent,
addColumn(i18n("Value"));
// setResizeMode(AllColumns);
- connect( this, SIGNAL(contextMenu(KListView*, QListViewItem*, const QPoint&)),
- SLOT(slotContextMenu(KListView*, QListViewItem*)) );
- connect( this, SIGNAL(itemRenamed( QListViewItem*, int, const QString&)),
- this, SLOT(slotItemRenamed( QListViewItem*, int, const QString&)));
+ connect( this, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)),
+ TQT_SLOT(slotContextMenu(KListView*, TQListViewItem*)) );
+ connect( this, TQT_SIGNAL(itemRenamed( TQListViewItem*, int, const TQString&)),
+ this, TQT_SLOT(slotItemRenamed( TQListViewItem*, int, const TQString&)));
}
// **************************************************************************
@@ -237,7 +237,7 @@ VariableTree::~VariableTree()
// **************************************************************************
-void VariableTree::slotContextMenu(KListView *, QListViewItem *item)
+void VariableTree::slotContextMenu(KListView *, TQListViewItem *item)
{
if (!item)
return;
@@ -293,7 +293,7 @@ void VariableTree::slotContextMenu(KListView *, QListViewItem *item)
}
- QListViewItem* root = findRoot(item);
+ TQListViewItem* root = findRoot(item);
if (root != recentExpressions_)
{
@@ -337,14 +337,14 @@ void VariableTree::slotContextMenu(KListView *, QListViewItem *item)
if (var && var->isAlive() && !controller()->stateIsOn(s_dbgNotStarted))
controller_->addCommand(
new GDBCommand(
- QString("-data-evaluate-expression &%1")
+ TQString("-data-evaluate-expression &%1")
.arg(var->gdbExpression()),
this,
&VariableTree::handleAddressComputed,
true /*handles error*/));
- int res = popup.exec(QCursor::pos());
+ int res = popup.exec(TQCursor::pos());
activePopup_ = 0;
@@ -401,7 +401,7 @@ void VariableTree::slotContextMenu(KListView *, QListViewItem *item)
SmallIcon("reload"), i18n("Reevaluate All"));
if (controller()->stateIsOn(s_dbgNotStarted))
popup.setItemEnabled(idReevaluate, false);
- int res = popup.exec(QCursor::pos());
+ int res = popup.exec(TQCursor::pos());
if (res == idRemove)
{
@@ -410,7 +410,7 @@ void VariableTree::slotContextMenu(KListView *, QListViewItem *item)
}
else if (res == idReevaluate)
{
- for(QListViewItem* child = recentExpressions_->firstChild();
+ for(TQListViewItem* child = recentExpressions_->firstChild();
child; child = child->nextSibling())
{
static_cast<VarItem*>(child)->recreate();
@@ -427,10 +427,10 @@ void VariableTree::slotEvent(GDBController::event_t event)
case GDBController::debugger_exited:
{
// Remove all locals.
- QListViewItem *child = firstChild();
+ TQListViewItem *child = firstChild();
while (child) {
- QListViewItem *nextChild = child->nextSibling();
+ TQListViewItem *nextChild = child->nextSibling();
// don't remove the watch root, or 'recent expressions' root.
if (!(dynamic_cast<WatchRoot*> (child))
@@ -444,7 +444,7 @@ void VariableTree::slotEvent(GDBController::event_t event)
if (recentExpressions_)
{
- for(QListViewItem* child = recentExpressions_->firstChild();
+ for(TQListViewItem* child = recentExpressions_->firstChild();
child; child = child->nextSibling())
{
static_cast<VarItem*>(child)->unhookFromGdb();
@@ -453,7 +453,7 @@ void VariableTree::slotEvent(GDBController::event_t event)
if (WatchRoot* w = findWatch())
{
- for(QListViewItem* child = w->firstChild();
+ for(TQListViewItem* child = w->firstChild();
child; child = child->nextSibling())
{
static_cast<VarItem*>(child)->unhookFromGdb();
@@ -504,7 +504,7 @@ void VariableTree::updateCurrentFrame()
// We'll fetch values separately:
controller_->addCommand(
- new GDBCommand(QString("-stack-list-arguments 0 %1 %2")
+ new GDBCommand(TQString("-stack-list-arguments 0 %1 %2")
.arg(controller_->currentFrame())
.arg(controller_->currentFrame())
.ascii(),
@@ -522,13 +522,13 @@ void VariableTree::updateCurrentFrame()
// **************************************************************************
-void VariableTree::slotAddWatchVariable(const QString &watchVar)
+void VariableTree::slotAddWatchVariable(const TQString &watchVar)
{
VarItem *varItem = 0;
varItem = new VarItem(findWatch(), watchVar);
}
-void VariableTree::slotEvaluateExpression(const QString &expression)
+void VariableTree::slotEvaluateExpression(const TQString &expression)
{
if (recentExpressions_ == 0)
{
@@ -545,7 +545,7 @@ void VariableTree::slotEvaluateExpression(const QString &expression)
// **************************************************************************
-QListViewItem *VariableTree::findRoot(QListViewItem *item) const
+TQListViewItem *VariableTree::findRoot(TQListViewItem *item) const
{
while (item->parent())
item = item->parent();
@@ -557,7 +557,7 @@ QListViewItem *VariableTree::findRoot(QListViewItem *item) const
VarFrameRoot *VariableTree::findFrame(int frameNo, int threadNo) const
{
- QListViewItem *sibling = firstChild();
+ TQListViewItem *sibling = firstChild();
// frames only exist on th top level so we only need to
// check the siblings
@@ -576,7 +576,7 @@ VarFrameRoot *VariableTree::findFrame(int frameNo, int threadNo) const
WatchRoot *VariableTree::findWatch()
{
- QListViewItem *sibling = firstChild();
+ TQListViewItem *sibling = firstChild();
while (sibling) {
if (WatchRoot *watch = dynamic_cast<WatchRoot*> (sibling))
@@ -590,11 +590,11 @@ WatchRoot *VariableTree::findWatch()
// **************************************************************************
-QListViewItem *VariableTree::lastChild() const
+TQListViewItem *VariableTree::lastChild() const
{
- QListViewItem *child = firstChild();
+ TQListViewItem *child = firstChild();
if (child)
- while (QListViewItem *nextChild = child->nextSibling())
+ while (TQListViewItem *nextChild = child->nextSibling())
child = nextChild;
return child;
@@ -602,21 +602,21 @@ QListViewItem *VariableTree::lastChild() const
// **************************************************************************
-void VariableTree::maybeTip(const QPoint &p)
+void VariableTree::maybeTip(const TQPoint &p)
{
VarItem * item = dynamic_cast<VarItem*>( itemAt( p ) );
if ( item )
{
- QRect r = itemRect( item );
+ TQRect r = itemRect( item );
if ( r.isValid() )
tip( r, item->tipText() );
}
}
-class ValueSpecialRepresentationCommand : public QObject, public CliCommand
+class ValueSpecialRepresentationCommand : public TQObject, public CliCommand
{
public:
- ValueSpecialRepresentationCommand(VarItem* item, const QString& command)
+ ValueSpecialRepresentationCommand(VarItem* item, const TQString& command)
: CliCommand(command.ascii(),
this,
&ValueSpecialRepresentationCommand::handleReply,
@@ -628,9 +628,9 @@ private:
VarItem* item_;
- void handleReply(const QValueVector<QString>& lines)
+ void handleReply(const TQValueVector<TQString>& lines)
{
- QString s;
+ TQString s;
for(unsigned i = 1; i < lines.count(); ++i)
s += lines[i];
item_->updateSpecialRepresentation(s.local8Bit());
@@ -638,7 +638,7 @@ private:
};
void VariableTree::slotVarobjNameChanged(
- const QString& from, const QString& to)
+ const TQString& from, const TQString& to)
{
if (!from.isEmpty())
varobj2varitem.erase(from);
@@ -686,7 +686,7 @@ void VariableTree::localsReady(const GDBMI::ResultRecord& r)
for(unsigned i = 0; i < locals.size(); ++i)
{
- QString val = locals[i].literal();
+ TQString val = locals[i].literal();
// Check ada internal variables like <R45b>, <L23R> ...
bool is_ada_variable = (val[0] == '<' && val[val.length() - 1] == '>');
@@ -702,19 +702,19 @@ void VariableTree::localsReady(const GDBMI::ResultRecord& r)
&VariableTree::frameIdReady));
}
-void VariableTree::frameIdReady(const QValueVector<QString>& lines)
+void VariableTree::frameIdReady(const TQValueVector<TQString>& lines)
{
//kdDebug(9012) << "localAddresses: " << lines[1] << "\n";
- QString frame_info;
+ TQString frame_info;
for(unsigned i = 1; i < lines.size(); ++i)
frame_info += lines[i];
kdDebug(9012) << "frame info: " << frame_info << "\n";
frame_info.replace('\n', "");
- static QRegExp frame_base_rx("frame at 0x([0-9a-fA-F]*)");
- static QRegExp frame_code_rx("saved [a-zA-Z0-9]* 0x([0-9a-fA-F]*)");
+ 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]*)");
int i = frame_base_rx.search(frame_info);
int i2 = frame_code_rx.search(frame_info);
@@ -741,12 +741,12 @@ void VariableTree::frameIdReady(const QValueVector<QString>& lines)
frame_base_rx.cap(1).toULongLong(0, 16);
unsigned long long new_code_address =
frame_code_rx.cap(1).toULongLong(0, 16);
- kdDebug(9012) << "Frame base = " << QString::number(new_frame_base, 16)
- << " code = " << QString::number(new_code_address, 16)
+ kdDebug(9012) << "Frame base = " << TQString::number(new_frame_base, 16)
+ << " code = " << TQString::number(new_code_address, 16)
<< "\n";
kdDebug(9012) << "Previous frame " <<
- QString::number(frame->currentFrameBase, 16)
- << " code = " << QString::number(
+ TQString::number(frame->currentFrameBase, 16)
+ << " code = " << TQString::number(
frame->currentFrameCodeAddress, 16)
<< "\n";
@@ -770,8 +770,8 @@ void VariableTree::frameIdReady(const QValueVector<QString>& lines)
{
// Remove all variables.
// FIXME: probably, need to do this in all frames.
- QListViewItem* child = frame->firstChild();
- QListViewItem* next;
+ TQListViewItem* child = frame->firstChild();
+ TQListViewItem* next;
for(; child; child = next)
{
next = child->nextSibling();
@@ -781,15 +781,15 @@ void VariableTree::frameIdReady(const QValueVector<QString>& lines)
setUpdatesEnabled(false);
- std::set<QListViewItem*> alive;
+ std::set<TQListViewItem*> alive;
for(unsigned i = 0; i < locals_and_arguments.size(); ++i)
{
- QString name = locals_and_arguments[i];
+ TQString name = locals_and_arguments[i];
// See if we've got VarItem for this one already.
VarItem* var = 0;
- for(QListViewItem *child = frame->firstChild();
+ for(TQListViewItem *child = frame->firstChild();
child;
child = child->nextSibling())
{
@@ -811,9 +811,9 @@ void VariableTree::frameIdReady(const QValueVector<QString>& lines)
// Remove VarItems that don't correspond to any local
// variables any longer. Perform type/address updates
// for others.
- for(QListViewItem* child = frame->firstChild(); child;)
+ for(TQListViewItem* child = frame->firstChild(); child;)
{
- QListViewItem* current = child;
+ TQListViewItem* current = child;
child = current->nextSibling();
if (!alive.count(current))
delete current;
@@ -821,7 +821,7 @@ void VariableTree::frameIdReady(const QValueVector<QString>& lines)
static_cast<VarItem*>(current)->recreateLocallyMaybe();
}
- for(QListViewItem* child = findWatch()->firstChild();
+ for(TQListViewItem* child = findWatch()->firstChild();
child; child = child->nextSibling())
{
VarItem* var = static_cast<VarItem*>(child);
@@ -848,20 +848,20 @@ void VariableTree::handleVarUpdate(const GDBMI::ResultRecord& r)
{
const GDBMI::Value& changed = r["changelist"];
- std::set<QString> names_to_update;
+ std::set<TQString> names_to_update;
for(unsigned i = 0; i < changed.size(); ++i)
{
const GDBMI::Value& c = changed[i];
- QString name = c["name"].literal();
+ TQString name = c["name"].literal();
if (c.hasField("in_scope") && c["in_scope"].literal() == "false")
continue;
names_to_update.insert(name);
}
- QMap<QString, VarItem*>::iterator i, e;
+ TQMap<TQString, VarItem*>::iterator i, e;
for (i = varobj2varitem.begin(), e = varobj2varitem.end(); i != e; ++i)
{
if (names_to_update.count(i.key())
@@ -872,16 +872,16 @@ void VariableTree::handleVarUpdate(const GDBMI::ResultRecord& r)
}
}
-void VarItem::handleCliPrint(const QValueVector<QString>& lines)
+void VarItem::handleCliPrint(const TQValueVector<TQString>& lines)
{
- static QRegExp r("(\\$[0-9]+)");
+ static TQRegExp r("(\\$[0-9]+)");
if (lines.size() >= 2)
{
int i = r.search(lines[1]);
if (i == 0)
{
controller_->addCommand(
- new GDBCommand(QString("-var-create %1 * \"%2\"")
+ new GDBCommand(TQString("-var-create %1 * \"%2\"")
.arg(varobjName_)
.arg(r.cap(1)),
this,
@@ -907,7 +907,7 @@ void VarItem::handleCliPrint(const QValueVector<QString>& lines)
void VariableTree::variablesFetchDone()
{
// During parsing of fetched variable values, we might have issued
- // extra command to handle 'special values', like QString.
+ // extra command to handle 'special values', like TQString.
// We don't want to enable updates just yet, because this will cause
// flicker, so add a sentinel command just to enable updates.
//
@@ -941,7 +941,7 @@ void VariableTree::fetchSpecialValuesDone()
}
void
-VariableTree::slotItemRenamed(QListViewItem* item, int col, const QString& text)
+VariableTree::slotItemRenamed(TQListViewItem* item, int col, const TQString& text)
{
if (col == ValueCol)
{
@@ -955,11 +955,11 @@ VariableTree::slotItemRenamed(QListViewItem* item, int col, const QString& text)
}
-void VariableTree::keyPressEvent(QKeyEvent* e)
+void VariableTree::keyPressEvent(TQKeyEvent* e)
{
if (VarItem* item = dynamic_cast<VarItem*>(currentItem()))
{
- QString text = e->text();
+ TQString text = e->text();
if (text == "n" || text == "x" || text == "d" || text == "c"
|| text == "t")
@@ -970,7 +970,7 @@ void VariableTree::keyPressEvent(QKeyEvent* e)
if (e->key() == Qt::Key_Delete)
{
- QListViewItem* root = findRoot(item);
+ TQListViewItem* root = findRoot(item);
if (dynamic_cast<WatchRoot*>(root) || root == recentExpressions_)
{
@@ -986,10 +986,10 @@ void VariableTree::keyPressEvent(QKeyEvent* e)
}
-void VariableTree::copyToClipboard(QListViewItem* item)
+void VariableTree::copyToClipboard(TQListViewItem* item)
{
QClipboard *qb = KApplication::clipboard();
- QString text = item->text( 1 );
+ TQString text = item->text( 1 );
qb->setText( text, QClipboard::Clipboard );
}
@@ -1038,7 +1038,7 @@ TrimmableItem::~TrimmableItem()
// **************************************************************************
-void TrimmableItem::paintCell(QPainter *p, const QColorGroup &cg,
+void TrimmableItem::paintCell(TQPainter *p, const TQColorGroup &cg,
int column, int width, int align)
{
if ( !p )
@@ -1046,18 +1046,18 @@ void TrimmableItem::paintCell(QPainter *p, const QColorGroup &cg,
// make toplevel item (watch and frame items) names bold
if (column == 0 && !parent())
{
- QFont f = p->font();
+ TQFont f = p->font();
f.setBold(true);
p->setFont(f);
}
- QListViewItem::paintCell( p, cg, column, width, align );
+ TQListViewItem::paintCell( p, cg, column, width, align );
}
-QListViewItem *TrimmableItem::lastChild() const
+TQListViewItem *TrimmableItem::lastChild() const
{
- QListViewItem *child = firstChild();
+ TQListViewItem *child = firstChild();
if (child)
- while (QListViewItem *nextChild = child->nextSibling())
+ while (TQListViewItem *nextChild = child->nextSibling())
child = nextChild;
return child;
@@ -1070,7 +1070,7 @@ QListViewItem *TrimmableItem::lastChild() const
int VarItem::varobjIndex = 0;
VarItem::VarItem(TrimmableItem *parent,
- const QString& expression,
+ const TQString& expression,
bool frozen)
: TrimmableItem (parent),
expression_(expression),
@@ -1085,9 +1085,9 @@ VarItem::VarItem(TrimmableItem *parent,
baseClassMember_(false),
alive_(true)
{
- connect(this, SIGNAL(varobjNameChange(const QString&, const QString&)),
+ connect(this, TQT_SIGNAL(varobjNameChange(const TQString&, const TQString&)),
varTree(),
- SLOT(slotVarobjNameChanged(const QString&, const QString&)));
+ TQT_SLOT(slotVarobjNameChanged(const TQString&, const TQString&)));
// User might have entered format together with expression: like
@@ -1098,7 +1098,7 @@ VarItem::VarItem(TrimmableItem *parent,
// - detect initial value of format_
// - remove the format specifier from the string.
- static QRegExp explicit_format("^\\s*/(.)\\s*(.*)");
+ static TQRegExp explicit_format("^\\s*/(.)\\s*(.*)");
if (explicit_format.search(expression_) == 0)
{
format_ = formatFromGdbModifier(explicit_format.cap(1)[0].latin1());
@@ -1130,9 +1130,9 @@ VarItem::VarItem(TrimmableItem *parent, const GDBMI::Value& varobj,
baseClassMember_(baseClassMember),
alive_(true)
{
- connect(this, SIGNAL(varobjNameChange(const QString&, const QString&)),
+ connect(this, TQT_SIGNAL(varobjNameChange(const TQString&, const TQString&)),
varTree(),
- SLOT(slotVarobjNameChanged(const QString&, const QString&)));
+ TQT_SLOT(slotVarobjNameChanged(const TQString&, const TQString&)));
expression_ = varobj["exp"].literal();
varobjName_ = varobj["name"].literal();
@@ -1158,8 +1158,8 @@ VarItem::VarItem(TrimmableItem *parent, const GDBMI::Value& varobj,
void VarItem::createVarobj()
{
- QString old = varobjName_;
- varobjName_ = QString("KDEV%1").arg(varobjIndex++);
+ TQString old = varobjName_;
+ varobjName_ = TQString("KDEV%1").arg(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(
- QString("print %1").arg(expression_),
+ TQString("print %1").arg(expression_),
this,
&VarItem::handleCliPrint));
}
@@ -1177,7 +1177,7 @@ void VarItem::createVarobj()
{
controller_->addCommand(
new CliCommand(
- QString("print /x &%1").arg(expression_),
+ TQString("print /x &%1").arg(expression_),
this,
&VarItem::handleCurrentAddress,
true));
@@ -1185,7 +1185,7 @@ void VarItem::createVarobj()
controller_->addCommand(
// Need to quote expression, otherwise gdb won't like
// spaces inside it.
- new GDBCommand(QString("-var-create %1 * \"%2\"")
+ new GDBCommand(TQString("-var-create %1 * \"%2\"")
.arg(varobjName_)
.arg(expression_),
this,
@@ -1205,15 +1205,15 @@ void VarItem::varobjCreated(const GDBMI::ResultRecord& r)
}
setAliveRecursively(true);
- QString oldType = originalValueType_;
+ TQString oldType = originalValueType_;
originalValueType_ = r["type"].literal();
if (!oldType.isEmpty() && oldType != originalValueType_)
{
// Type changed, the children might be no longer valid,
// so delete them.
- for(QListViewItem* child = firstChild(); child; )
+ for(TQListViewItem* child = firstChild(); child; )
{
- QListViewItem* cur = child;
+ TQListViewItem* cur = child;
child = child->nextSibling();
delete cur;
}
@@ -1228,7 +1228,7 @@ void VarItem::varobjCreated(const GDBMI::ResultRecord& r)
setVarobjName(varobjName_);
}
-void VarItem::setVarobjName(const QString& name)
+void VarItem::setVarobjName(const TQString& name)
{
if (varobjName_ != name)
emit varobjNameChange(varobjName_, name);
@@ -1238,7 +1238,7 @@ void VarItem::setVarobjName(const QString& name)
if (format_ != natural)
{
controller_->addCommand(
- new GDBCommand(QString("-var-set-format \"%1\" %2")
+ new GDBCommand(TQString("-var-set-format \"%1\" %2")
.arg(varobjName_).arg(varobjFormatName())));
}
@@ -1256,12 +1256,12 @@ void VarItem::valueDone(const GDBMI::ResultRecord& r)
{
if (r.reason == "done")
{
- QString s = GDBParser::getGDBParser()->undecorateValue(
+ TQString s = GDBParser::getGDBParser()->undecorateValue(
r["value"].literal());
if (format_ == character)
{
- QString encoded = s;
+ TQString encoded = s;
bool ok;
int value = s.toInt(&ok);
if (ok)
@@ -1292,11 +1292,11 @@ void VarItem::valueDone(const GDBMI::ResultRecord& r)
if (format_ == binary)
{
// For binary format, split the value at 4-bit boundaries
- static QRegExp r("^[01]+$");
+ static TQRegExp r("^[01]+$");
int i = r.search(s);
if (i == 0)
{
- QString split;
+ TQString split;
for(unsigned i = 0; i < s.length(); ++i)
{
// For string 11111, we should split it as
@@ -1317,7 +1317,7 @@ void VarItem::valueDone(const GDBMI::ResultRecord& r)
}
else
{
- QString s = r["msg"].literal();
+ TQString s = r["msg"].literal();
// Error response.
if (s.startsWith("Cannot access memory"))
{
@@ -1344,7 +1344,7 @@ void VarItem::createChildren(const GDBMI::ResultRecord& r,
bool structureType = false;
if (!children_of_fake && children.size() > 0)
{
- QString exp = children[0]["exp"].literal();
+ TQString exp = children[0]["exp"].literal();
bool ok = false;
exp.toInt(&ok);
if (!ok || exp[0] != '*')
@@ -1355,12 +1355,12 @@ void VarItem::createChildren(const GDBMI::ResultRecord& r,
for (unsigned i = 0; i < children.size(); ++i)
{
- QString exp = children[i]["exp"].literal();
+ TQString exp = children[i]["exp"].literal();
// For artificial accessibility nodes,
// fetch their children.
if (exp == "public" || exp == "protected" || exp == "private")
{
- QString name = children[i]["name"].literal();
+ TQString name = children[i]["name"].literal();
controller_->addCommand(new GDBCommand(
"-var-list-children \"" +
name + "\"",
@@ -1374,7 +1374,7 @@ void VarItem::createChildren(const GDBMI::ResultRecord& r,
bool baseObject = structureType;
VarItem* existing = 0;
- for(QListViewItem* child = firstChild();
+ for(TQListViewItem* child = firstChild();
child; child = child->nextSibling())
{
VarItem* v = static_cast<VarItem*>(child);
@@ -1414,12 +1414,12 @@ void VarItem::childrenOfFakesDone(const GDBMI::ResultRecord& r)
createChildren(r, true);
}
-void VarItem::handleCurrentAddress(const QValueVector<QString>& lines)
+void VarItem::handleCurrentAddress(const TQValueVector<TQString>& lines)
{
lastObtainedAddress_ = "";
if (lines.count() > 1)
{
- static QRegExp r("\\$\\d+ = ([^\n]*)");
+ static TQRegExp r("\\$\\d+ = ([^\n]*)");
int i = r.search(lines[1]);
if (i == 0)
{
@@ -1429,7 +1429,7 @@ void VarItem::handleCurrentAddress(const QValueVector<QString>& lines)
}
}
-void VarItem::handleType(const QValueVector<QString>& lines)
+void VarItem::handleType(const TQValueVector<TQString>& lines)
{
bool recreate = false;
@@ -1444,7 +1444,7 @@ void VarItem::handleType(const QValueVector<QString>& lines)
// FIXME: add error diagnostic.
if (lines.count() > 1)
{
- static QRegExp r("type = ([^\n]*)");
+ static TQRegExp r("type = ([^\n]*)");
int i = r.search(lines[1]);
if (i == 0)
{
@@ -1464,7 +1464,7 @@ void VarItem::handleType(const QValueVector<QString>& lines)
}
}
-QString VarItem::displayName() const
+TQString VarItem::displayName() const
{
if (expression_[0] != '*')
return expression_;
@@ -1485,7 +1485,7 @@ void VarItem::setAliveRecursively(bool enable)
setEnabled(enable);
alive_ = true;
- for(QListViewItem* child = firstChild();
+ for(TQListViewItem* child = firstChild();
child; child = child->nextSibling())
{
static_cast<VarItem*>(child)->setAliveRecursively(enable);
@@ -1498,7 +1498,7 @@ VarItem::~VarItem()
unhookFromGdb();
}
-QString VarItem::gdbExpression() const
+TQString VarItem::gdbExpression() const
{
// The expression for this item can be either:
// - number, for array element
@@ -1550,26 +1550,26 @@ QString VarItem::gdbExpression() const
// FIXME: we have two method to set VarItem: this one
// and updateValue below. That's bad, must have just one.
-void VarItem::setText(int column, const QString &data)
+void VarItem::setText(int column, const TQString &data)
{
- QString strData=data;
+ TQString strData=data;
if (column == ValueCol) {
- QString oldValue(text(column));
+ TQString oldValue(text(column));
if (!oldValue.isEmpty()) // Don't highlight new items
{
- highlight_ = (oldValue != QString(data));
+ highlight_ = (oldValue != TQString(data));
}
}
- QListViewItem::setText(column, strData);
+ TQListViewItem::setText(column, strData);
}
void VarItem::clearHighlight()
{
highlight_ = false;
- for(QListViewItem* child = firstChild();
+ for(TQListViewItem* child = firstChild();
child; child = child->nextSibling())
{
static_cast<VarItem*>(child)->clearHighlight();
@@ -1600,10 +1600,10 @@ void VarItem::updateValue()
true /* handle error */));
}
-void VarItem::setValue(const QString& new_value)
+void VarItem::setValue(const TQString& new_value)
{
controller_->addCommand(
- new GDBCommand(QString("-var-assign \"%1\" %2").arg(varobjName_)
+ new GDBCommand(TQString("-var-assign \"%1\" %2").arg(varobjName_)
.arg(new_value)));
// And immediately reload it from gdb,
@@ -1614,9 +1614,9 @@ void VarItem::setValue(const QString& new_value)
updateValue();
}
-void VarItem::updateSpecialRepresentation(const QString& xs)
+void VarItem::updateSpecialRepresentation(const TQString& xs)
{
- QString s(xs);
+ TQString s(xs);
if (s[0] == '$')
{
int i = s.find('=');
@@ -1624,7 +1624,7 @@ void VarItem::updateSpecialRepresentation(const QString& xs)
s = s.mid(i+2);
}
- // A hack to nicely display QStrings. The content of QString is unicode
+ // A hack to nicely display QStrings. The content of TQString is unicode
// for for ASCII only strings we get ascii character mixed with \000.
// Remove those \000 now.
@@ -1634,11 +1634,11 @@ void VarItem::updateSpecialRepresentation(const QString& xs)
// the data sent by gdb might contain \000 that should not be translated.
//
// What's even worse, ideally we should convert the string data from
- // gdb into a QString again, handling all other escapes and composing
- // one QChar from two characters from gdb. But to do that, we *should*
+ // gdb into a TQString again, handling all other escapes and composing
+ // 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( QRegExp("\\\\000|\\\\0"), "" );
+ s.replace( 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(
- QString("print /x &%1").arg(expression_),
+ TQString("print /x &%1").arg(expression_),
this,
&VarItem::handleCurrentAddress,
true));
controller_->addCommand(
new CliCommand(
- QString("whatis %1").arg(expression_),
+ TQString("whatis %1").arg(expression_),
this,
&VarItem::handleType));
}
@@ -1686,7 +1686,7 @@ void VarItem::recreate()
void VarItem::setOpen(bool open)
{
- QListViewItem::setOpen(open);
+ TQListViewItem::setOpen(open);
if (open && !childrenFetched_)
{
@@ -1703,7 +1703,7 @@ bool VarItem::handleSpecialTypes()
if (originalValueType_.isEmpty())
return false;
- static QRegExp qstring("^(const)?[ ]*QString[ ]*&?$");
+ static TQRegExp qstring("^(const)?[ ]*QString[ ]*&?$");
if (qstring.exactMatch(originalValueType_)) {
@@ -1711,22 +1711,22 @@ bool VarItem::handleSpecialTypes()
if( !varTree->controller() )
return false;
varTree->controller()->addCommand(
- new ResultlessCommand(QString("print $kdev_d=%1.d")
+ new ResultlessCommand(TQString("print $kdev_d=%1.d")
.arg(gdbExpression()),
true /* ignore error */));
if (varTree->controller()->qtVersion() >= 4)
varTree->controller()->addCommand(
- new ResultlessCommand(QString("print $kdev_s=$kdev_d.size"),
+ new ResultlessCommand(TQString("print $kdev_s=$kdev_d.size"),
true));
else
varTree->controller()->addCommand(
- new ResultlessCommand(QString("print $kdev_s=$kdev_d.len"),
+ new ResultlessCommand(TQString("print $kdev_s=$kdev_d.len"),
true));
varTree->controller()->addCommand(
new ResultlessCommand(
- QString("print $kdev_s= ($kdev_s > 0)? ($kdev_s > 100 ? 200 : 2*$kdev_s) : 0"),
+ TQString("print $kdev_s= ($kdev_s > 0)? ($kdev_s > 100 ? 200 : 2*$kdev_s) : 0"),
true));
if (varTree->controller()->qtVersion() >= 4)
@@ -1765,7 +1765,7 @@ void VarItem::setFormat(format_t f)
// - for arrays, that's clearly right
// - for pointers, this can be confusing, but nobody ever wants to
// see the pointer in decimal!
- for(QListViewItem* child = firstChild();
+ for(TQListViewItem* child = firstChild();
child; child = child->nextSibling())
{
static_cast<VarItem*>(child)->setFormat(f);
@@ -1774,7 +1774,7 @@ void VarItem::setFormat(format_t f)
else
{
controller_->addCommand(
- new GDBCommand(QString("-var-set-format \"%1\" %2")
+ new GDBCommand(TQString("-var-set-format \"%1\" %2")
.arg(varobjName_).arg(varobjFormatName())));
updateValue();
@@ -1802,7 +1802,7 @@ VarItem::format_t VarItem::formatFromGdbModifier(char c) const
return nf;
}
-QString VarItem::varobjFormatName() const
+TQString VarItem::varobjFormatName() const
{
switch(format_)
{
@@ -1836,7 +1836,7 @@ QString VarItem::varobjFormatName() const
// **************************************************************************
// Overridden to highlight the changed items
-void VarItem::paintCell(QPainter *p, const QColorGroup &cg,
+void VarItem::paintCell(TQPainter *p, const TQColorGroup &cg,
int column, int width, int align)
{
if ( !p )
@@ -1853,18 +1853,18 @@ void VarItem::paintCell(QPainter *p, const QColorGroup &cg,
if (!alive_)
{
/* Draw this as disabled. */
- QListViewItem::paintCell(p, varTree()->QWidget::palette().disabled(),
+ TQListViewItem::paintCell(p, varTree()->TQWidget::palette().disabled(),
column, width, align);
}
else
{
if (column == ValueCol && highlight_)
{
- QColorGroup hl_cg( cg.foreground(), cg.background(), cg.light(),
+ TQColorGroup hl_cg( cg.foreground(), cg.background(), cg.light(),
cg.dark(), cg.mid(), red, cg.base());
- QListViewItem::paintCell( p, hl_cg, column, width, align );
+ TQListViewItem::paintCell( p, hl_cg, column, width, align );
} else
- QListViewItem::paintCell( p, cg, column, width, align );
+ TQListViewItem::paintCell( p, cg, column, width, align );
}
}
@@ -1879,7 +1879,7 @@ void VarItem::unhookFromGdb()
// Unhook children first, so that child varitems are deleted
// before parent. Strictly speaking, we can avoid calling
// -var-delete on child varitems, but that's a bit cheesy,
- for(QListViewItem* child = firstChild();
+ for(TQListViewItem* child = firstChild();
child; child = child->nextSibling())
{
static_cast<VarItem*>(child)->unhookFromGdb();
@@ -1894,7 +1894,7 @@ void VarItem::unhookFromGdb()
{
controller_->addCommand(
new GDBCommand(
- QString("-var-delete \"%1\"").arg(varobjName_)));
+ TQString("-var-delete \"%1\"").arg(varobjName_)));
}
varobjName_ = "";
@@ -1902,10 +1902,10 @@ void VarItem::unhookFromGdb()
// **************************************************************************
-QString VarItem::tipText() const
+TQString VarItem::tipText() const
{
const unsigned int maxTooltipSize = 70;
- QString tip = text( ValueCol );
+ TQString tip = text( ValueCol );
if (tip.length() > maxTooltipSize)
tip = tip.mid(0, maxTooltipSize - 1 ) + " [...]";
@@ -1951,7 +1951,7 @@ VarFrameRoot::~VarFrameRoot()
void VarFrameRoot::setOpen(bool open)
{
bool frameOpened = ( isOpen()==false && open==true );
- QListViewItem::setOpen(open);
+ TQListViewItem::setOpen(open);
if (frameOpened && needLocals_)
{
diff --git a/languages/cpp/debugger/variablewidget.h b/languages/cpp/debugger/variablewidget.h
index 369f5748..5c77ea43 100644
--- a/languages/cpp/debugger/variablewidget.h
+++ b/languages/cpp/debugger/variablewidget.h
@@ -21,12 +21,12 @@
#include <klistview.h>
#include <kcombobox.h>
-#include <qwidget.h>
-#include <qtooltip.h>
-#include <qvaluevector.h>
-#include <qdatetime.h>
-#include <qguardedptr.h>
-#include <qmap.h>
+#include <tqwidget.h>
+#include <tqtooltip.h>
+#include <tqvaluevector.h>
+#include <tqdatetime.h>
+#include <tqguardedptr.h>
+#include <tqmap.h>
#include <vector>
@@ -56,19 +56,19 @@ class VariableWidget : public QWidget
public:
VariableWidget( GDBController* controller,
GDBBreakpointWidget* breakpointWidget,
- QWidget *parent=0, const char *name=0 );
+ TQWidget *parent=0, const char *name=0 );
VariableTree *varTree() const
{ return varTree_; }
-protected: // QWidget overrides
- void focusInEvent(QFocusEvent *e);
+protected: // TQWidget overrides
+ void focusInEvent(TQFocusEvent *e);
public slots:
void slotAddWatchVariable();
- void slotAddWatchVariable(const QString &ident);
+ void slotAddWatchVariable(const TQString &ident);
void slotEvaluateExpression();
- void slotEvaluateExpression(const QString &ident);
+ void slotEvaluateExpression(const TQString &ident);
private:
VariableTree *varTree_;
@@ -92,38 +92,38 @@ public:
const char *name=0 );
virtual ~VariableTree();
- QListViewItem *lastChild() const;
+ TQListViewItem *lastChild() const;
- QListViewItem *findRoot(QListViewItem *item) const;
+ TQListViewItem *findRoot(TQListViewItem *item) const;
VarFrameRoot *findFrame(int frameNo, int threadNo) const;
WatchRoot *findWatch();
- // (from QToolTip) Display a tooltip when the cursor is over an item
- virtual void maybeTip(const QPoint &);
+ // (from TQToolTip) Display a tooltip when the cursor is over an item
+ virtual void maybeTip(const TQPoint &);
GDBController* controller() const { return controller_; }
signals:
- void toggleWatchpoint(const QString &varName);
+ void toggleWatchpoint(const TQString &varName);
public slots:
- void slotAddWatchVariable(const QString& watchVar);
- void slotEvaluateExpression(const QString& expression);
+ void slotAddWatchVariable(const TQString& watchVar);
+ void slotEvaluateExpression(const TQString& expression);
void slotEvent(GDBController::event_t);
- void slotItemRenamed(QListViewItem* item, int col, const QString& text);
+ void slotItemRenamed(TQListViewItem* item, int col, const TQString& text);
private slots:
- void slotContextMenu(KListView *, QListViewItem *item);
- void slotVarobjNameChanged(const QString& from, const QString& to);
+ void slotContextMenu(KListView *, TQListViewItem *item);
+ void slotVarobjNameChanged(const TQString& from, const TQString& to);
private: // Callbacks for gdb commands;
void argumentsReady(const GDBMI::ResultRecord&);
void localsReady(const GDBMI::ResultRecord&);
- void frameIdReady(const QValueVector<QString>&);
+ void frameIdReady(const TQValueVector<TQString>&);
void handleVarUpdate(const GDBMI::ResultRecord&);
- void handleEvaluateExpression(const QValueVector<QString>&);
+ void handleEvaluateExpression(const TQValueVector<TQString>&);
void variablesFetchDone();
void fetchSpecialValuesDone();
@@ -148,10 +148,10 @@ private: // helper functions
/** Copies the value (second column) of the specified item to
the clipboard.
*/
- void copyToClipboard(QListViewItem*);
+ void copyToClipboard(TQListViewItem*);
-private: // QWidget overrides
- void keyPressEvent(QKeyEvent* e);
+private: // TQWidget overrides
+ void keyPressEvent(TQKeyEvent* e);
private:
GDBController* controller_;
@@ -165,12 +165,12 @@ private:
TrimmableItem* recentExpressions_;
VarFrameRoot* currentFrameItem;
- QTime fetch_time;
+ TQTime fetch_time;
// Names of locals and arguments as reported by
// gdb.
- std::vector<QString> locals_and_arguments;
+ std::vector<TQString> locals_and_arguments;
- QMap<QString, VarItem*> varobj2varitem;
+ TQMap<TQString, VarItem*> varobj2varitem;
KPopupMenu* activePopup_;
static const int idToggleWatch = 10;
@@ -210,11 +210,11 @@ public:
virtual ~TrimmableItem();
- QListViewItem *lastChild() const;
+ TQListViewItem *lastChild() const;
protected:
- void paintCell( QPainter *p, const QColorGroup &cg,
+ void paintCell( TQPainter *p, const TQColorGroup &cg,
int column, int width, int align );
};
@@ -222,7 +222,7 @@ protected:
/***************************************************************************/
/***************************************************************************/
-class VarItem : public QObject,
+class VarItem : public TQObject,
public TrimmableItem
{
Q_OBJECT
@@ -233,7 +233,7 @@ public:
Optionally, alternative display name can be provided.
*/
VarItem( TrimmableItem *parent,
- const QString& expression,
+ const TQString& expression,
bool frozen = false);
VarItem( TrimmableItem *parent, const GDBMI::Value& varobj,
@@ -242,7 +242,7 @@ public:
virtual ~VarItem();
/// Returns the gdb expression for *this.
- QString gdbExpression() const;
+ TQString gdbExpression() const;
/** Returns true is this VarItem should be unconditionally
updated on each step, not matter what's the result of
@@ -251,7 +251,7 @@ public:
bool updateUnconditionally() const;
void updateValue();
- void updateSpecialRepresentation(const QString& s);
+ void updateSpecialRepresentation(const TQString& s);
/** Creates a fresh gdbs "variable object", if needed.
Preconditions:
@@ -273,7 +273,7 @@ public:
void recreate();
void setOpen(bool open);
- void setText (int column, const QString& text);
+ void setText (int column, const TQString& text);
/** Mark the variable as alive, or not alive.
Variables that are not alive a shown as "gray",
@@ -290,7 +290,7 @@ public:
void unhookFromGdb();
// Returns the text to be displayed as tooltip (the value)
- QString tipText() const;
+ TQString tipText() const;
format_t format() const;
void setFormat(format_t f);
@@ -302,7 +302,7 @@ public:
/** Sets new top-level textual value of this variable.
*/
- void setValue(const QString& new_value);
+ void setValue(const TQString& new_value);
bool isAlive() const;
@@ -314,7 +314,7 @@ signals:
Either 'from' or 'to' can be empty string.
*/
- void varobjNameChange(const QString& from, const QString& to);
+ void varobjNameChange(const TQString& from, const TQString& to);
private:
@@ -332,29 +332,29 @@ private:
- gets initial value
- if item is open, gets children.
*/
- void setVarobjName(const QString& name);
+ void setVarobjName(const TQString& name);
/** Handle types that require special dispay, such as
- QString. Return true if this is such a type.
+ TQString. Return true if this is such a type.
The 'originalValueType_' is already initialized
by the time this method is called.
*/
bool handleSpecialTypes();
- void paintCell( QPainter *p, const QColorGroup &cg,
+ void paintCell( TQPainter *p, const TQColorGroup &cg,
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 handleCurrentAddress(const QValueVector<QString>& lines);
- void handleType(const QValueVector<QString>& lines);
+ void handleCurrentAddress(const TQValueVector<TQString>& lines);
+ void handleType(const TQValueVector<TQString>& lines);
void createChildren(const GDBMI::ResultRecord& r, bool children_of_fake);
/** Called to handle the output of the cli print command.
*/
- void handleCliPrint(const QValueVector<QString>& lines);
+ void handleCliPrint(const TQValueVector<TQString>& lines);
// Assuming 'expression_' is already set, returns the
// displayName to use when showing this to the user.
@@ -362,26 +362,26 @@ private:
// gdb expression '$1' and displayName 'P4', we want the child
// to show up as *P4, not as '*$1', so we can't uncondionally
// use expression gdb reports to us.
- QString displayName() const;
+ TQString displayName() const;
VariableTree* varTree() const;
- QString varobjFormatName() const;
+ TQString varobjFormatName() const;
private:
// The gdb expression for this varItem relatively to
// parent VarItem.
- QString expression_;
+ TQString expression_;
bool highlight_;
GDBController* controller_;
- QString varobjName_;
+ TQString varobjName_;
// the non-cast type of the variable
- QString originalValueType_;
+ TQString originalValueType_;
bool oldSpecialRepresentationSet_;
- QString oldSpecialRepresentation_;
+ TQString oldSpecialRepresentation_;
format_t format_;
@@ -390,8 +390,8 @@ private:
int numChildren_;
bool childrenFetched_;
- QString currentAddress_;
- QString lastObtainedAddress_;
+ TQString currentAddress_;
+ TQString lastObtainedAddress_;
bool updateUnconditionally_;
bool frozen_;
@@ -425,7 +425,7 @@ public:
// this item, it will fetch new data.
void setDirty();
- void setFrameName(const QString &frameName)
+ void setFrameName(const TQString &frameName)
{ setText(VarNameCol, frameName); setText(ValueCol, ""); }
bool needLocals() const { return needLocals_; }
diff --git a/languages/cpp/declarationinfo.h b/languages/cpp/declarationinfo.h
index f1d28f26..8b55557e 100644
--- a/languages/cpp/declarationinfo.h
+++ b/languages/cpp/declarationinfo.h
@@ -22,16 +22,16 @@
#ifndef DECLARATIONINFO_H
#define DECLARATIONINFO_H
-#include <qstring.h>
+#include <tqstring.h>
struct DeclarationInfo {
class File {
- QString m_file;
+ TQString m_file;
public:
- File( const QString& file = "" ) : m_file( file ) {
+ File( const TQString& file = "" ) : m_file( file ) {
}
- operator QString() const {
+ operator TQString() const {
return m_file;
}
};
@@ -43,15 +43,15 @@ struct DeclarationInfo {
return !name.isEmpty();
}
- QString locationToText() const {
- return QString("line %1 col %2 - line %3 col %4\nfile: %5").arg(startLine).arg(startCol).arg(endLine).arg(endCol).arg(file);
+ 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);
}
- QString toText() const {
+ TQString toText() const {
if( name.isEmpty() ) return "";
- QString ret;
- ret = QString("name: " + name + "\n" ) + locationToText();
+ TQString ret;
+ ret = TQString("name: " + name + "\n" ) + locationToText();
if( !comment.isEmpty() ) {
ret += "\n\"" + comment + "\"";
}
@@ -62,8 +62,8 @@ struct DeclarationInfo {
int endLine, endCol;
File file;
- QString name;
- QString comment;
+ TQString name;
+ TQString comment;
};
diff --git a/languages/cpp/doxydoc.cpp b/languages/cpp/doxydoc.cpp
index bcd36faa..54343b70 100644
--- a/languages/cpp/doxydoc.cpp
+++ b/languages/cpp/doxydoc.cpp
@@ -11,37 +11,37 @@
#include <list>
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qdom.h>
-#include <qdir.h>
-#include <qfile.h>
-#include <qregexp.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqdom.h>
+#include <tqdir.h>
+#include <tqfile.h>
+#include <tqregexp.h>
-void DoxyDoc::formatType( QString& str )
+void DoxyDoc::formatType( TQString& str )
{
- str.replace( QRegExp( " " ), "" );
+ str.replace( TQRegExp( " " ), "" );
}
-DoxyDoc::DoxyDoc( const QStringList& dir )
+DoxyDoc::DoxyDoc( const TQStringList& dir )
{
for ( uint i = 0; i < dir.count(); ++i )
- m_dirs.push_back( QDir( *( dir.at( i ) ) ) );
+ m_dirs.push_back( TQDir( *( dir.at( i ) ) ) );
}
//crappy implementation, change later
-QString DoxyDoc::functionDescription( const QString& tmpscope, const QString& name,
- const QString& tmptype, const QString& tmparguments )
+TQString DoxyDoc::functionDescription( const TQString& tmpscope, const TQString& name,
+ const TQString& tmptype, const TQString& tmparguments )
{
- QString scope = tmpscope;
+ TQString scope = tmpscope;
bool foundfile = false;
//produce doxygen conform filenames
- QString filename = "/class" + scope.replace( QRegExp( "_" ), "__" ).replace( QRegExp( "::" ), "_1_1" ) + ".xml";
+ TQString filename = "/class" + scope.replace( TQRegExp( "_" ), "__" ).replace( TQRegExp( "::" ), "_1_1" ) + ".xml";
//search for file in all directories
- for ( std::list<QDir>::const_iterator ci = m_dirs.begin(); !foundfile && ci != m_dirs.end(); ++ci )
+ for ( std::list<TQDir>::const_iterator ci = m_dirs.begin(); !foundfile && ci != m_dirs.end(); ++ci )
{
- if ( QFile::exists( ci->path() + filename ) )
+ if ( TQFile::exists( ci->path() + filename ) )
{
if ( m_file.name() != ci->path() + filename )
{
@@ -52,7 +52,7 @@ QString DoxyDoc::functionDescription( const QString& tmpscope, const QString& na
m_file.setName( "" );
return "";
}
- QDomDocument m_doc;
+ TQDomDocument m_doc;
m_doc.setContent( m_file.readAll() );
m_file.close();
m_list = m_doc.elementsByTagName( "memberdef" );
@@ -64,19 +64,19 @@ QString DoxyDoc::functionDescription( const QString& tmpscope, const QString& na
}
}
if ( !foundfile )
- return QString::null;
+ return TQString::null;
- QString type = tmptype;
+ TQString type = tmptype;
formatType( type );
for ( uint i = 0; i < m_list.count(); ++i )
{
- QDomElement elem = m_list.item( i ).toElement();
+ TQDomElement elem = m_list.item( i ).toElement();
if ( elem.elementsByTagName( "name" ).item( 0 ).toElement().text() == name &&
elem.elementsByTagName( "type" ).item( 0 ).toElement().text() == tmptype )
{
- QDomNodeList paramnodes = elem.elementsByTagName( "param" );
- QString nodearguments = "", arguments = tmparguments;
+ TQDomNodeList paramnodes = elem.elementsByTagName( "param" );
+ TQString nodearguments = "", arguments = tmparguments;
for ( unsigned int j = 0; j < paramnodes.count(); ++j )
nodearguments += paramnodes.item( j ).childNodes().item( 0 ).toElement().text() + ",";
if ( nodearguments != "" )
@@ -87,17 +87,17 @@ QString DoxyDoc::functionDescription( const QString& tmpscope, const QString& na
formatType( arguments );
if ( arguments == nodearguments )
{
- QString brief = "";
- QDomNode briefnode = elem.elementsByTagName( "briefdescription" ).item( 0 );
+ TQString brief = "";
+ TQDomNode briefnode = elem.elementsByTagName( "briefdescription" ).item( 0 );
if ( briefnode.hasChildNodes() )
brief = briefnode.firstChild().toElement().text();
- QString detailstr = "", paramstr = "";
- QDomNode detail = elem.elementsByTagName( "detaileddescription" ).item( 0 );
+ TQString detailstr = "", paramstr = "";
+ TQDomNode detail = elem.elementsByTagName( "detaileddescription" ).item( 0 );
if ( detail.hasChildNodes() )
detail = detail.firstChild();
- QDomNode descnode = detail.firstChild();
+ TQDomNode descnode = detail.firstChild();
while ( !descnode.isNull() )
{
if ( descnode.nodeName() == "parameterlist" )
@@ -125,7 +125,7 @@ QString DoxyDoc::functionDescription( const QString& tmpscope, const QString& na
}
- QString description = "";
+ TQString description = "";
if ( brief != "" )
description += brief + "<p>";
if ( detailstr != "" )
@@ -134,7 +134,7 @@ QString DoxyDoc::functionDescription( const QString& tmpscope, const QString& na
description += "<b>Parameterlist:</b><p>" + paramstr;
if ( description == "" )
- return QString::null;
+ return TQString::null;
else
return description;
}
@@ -142,7 +142,7 @@ QString DoxyDoc::functionDescription( const QString& tmpscope, const QString& na
}
- return QString::null;
+ return TQString::null;
}
//kate: indent-mode csands; tab-width 4; space-indent off;
diff --git a/languages/cpp/doxydoc.h b/languages/cpp/doxydoc.h
index aca424b2..c36d6ada 100644
--- a/languages/cpp/doxydoc.h
+++ b/languages/cpp/doxydoc.h
@@ -10,10 +10,10 @@
#ifndef DOXYDOC_H
#define DOXYDOC_H
-#include <qstring.h>
-#include <qdom.h>
-#include <qdir.h>
-#include <qfile.h>
+#include <tqstring.h>
+#include <tqdom.h>
+#include <tqdir.h>
+#include <tqfile.h>
#include <list>
/**
@@ -28,7 +28,7 @@ public:
Constructs a new DoxyDoc object.
@param dir all directories, which should be searched for files containing the Doxygen-documentation.
*/
- DoxyDoc( const QStringList& dir );
+ DoxyDoc( const TQStringList& dir );
~DoxyDoc()
{}
;
@@ -39,19 +39,19 @@ public:
@param type Return-type of the function
@param arguments String containing the arguments of the function, separated by commas and _without_ the argument names
*/
- QString functionDescription( const QString& scope, const QString& name, const QString& type, const QString& arguments );
+ TQString functionDescription( const TQString& scope, const TQString& name, const TQString& type, const TQString& arguments );
/*not implemented yet, maybe later, if they are useful
- QString classDescription();
- QString enumDescription();
- QString namespaceDescription();
- QString memberVarDescription();
+ TQString classDescription();
+ TQString enumDescription();
+ TQString namespaceDescription();
+ TQString memberVarDescription();
*/
private:
- static void formatType( QString& type );
- std::list<QDir> m_dirs;
+ static void formatType( TQString& type );
+ std::list<TQDir> m_dirs;
//used for temporary storing/performance reasons
- QFile m_file;
- QDomNodeList m_list;
+ TQFile m_file;
+ TQDomNodeList m_list;
};
#endif
diff --git a/languages/cpp/expressioninfo.h b/languages/cpp/expressioninfo.h
index 836a2292..4b42a2f4 100644
--- a/languages/cpp/expressioninfo.h
+++ b/languages/cpp/expressioninfo.h
@@ -27,7 +27,7 @@ using namespace StringHelpers;
struct ExpressionInfo {
private:
- QString m_expr;
+ TQString m_expr;
public:
@@ -40,15 +40,15 @@ struct ExpressionInfo {
Type t;
int start, end;
- QString expr() {
+ TQString expr() {
return m_expr;
}
- void setExpr( const QString& str ) {
+ void setExpr( const TQString& str ) {
m_expr = clearComments( str );
}
- ExpressionInfo( QString str ) : t( NormalExpression ), start( 0 ), end( str.length() ) {
+ ExpressionInfo( TQString str ) : t( NormalExpression ), start( 0 ), end( str.length() ) {
setExpr( str );
}
@@ -76,8 +76,8 @@ struct ExpressionInfo {
return t & NormalExpression && !m_expr.isEmpty();
}
- QString typeAsString() {
- QString res ;
+ TQString typeAsString() {
+ TQString res ;
if( t & NormalExpression )
res += "NormalExpression, ";
if( t & TypeExpression )
diff --git a/languages/cpp/includepathresolver.cpp b/languages/cpp/includepathresolver.cpp
index 117c7732..ebd536ec 100644
--- a/languages/cpp/includepathresolver.cpp
+++ b/languages/cpp/includepathresolver.cpp
@@ -28,8 +28,8 @@
#include <unistd.h>
#include <memory>
#include "kurl.h" /* defines KURL */
-#include "qdir.h" /* defines QDir */
-#include "qregexp.h" /* defines QRegExp */
+#include "tqdir.h" /* defines TQDir */
+#include "tqregexp.h" /* defines TQRegExp */
#include "klocale.h" /* defines [function] i18n */
#include "blockingkprocess.h" /* defines BlockingKProcess */
#include "includepathresolver.h"
@@ -62,8 +62,8 @@ namespace CppTools {
class FileModificationTimeWrapper {
public:
///@param files list of files that should be fake-modified(modtime will be set to current time)
- FileModificationTimeWrapper( const QStringList& files = QStringList() ) : m_newTime( time(0) ) {
- for( QStringList::const_iterator it = files.begin(); it != files.end(); ++it ) {
+ FileModificationTimeWrapper( const TQStringList& files = TQStringList() ) : m_newTime( time(0) ) {
+ for( TQStringList::const_iterator it = files.begin(); it != files.end(); ++it ) {
ifTest( cout << "touching " << (*it).ascii() << endl );
struct stat s;
if( stat( (*it).local8Bit().data(), &s ) == 0 ) {
@@ -85,8 +85,8 @@ namespace CppTools {
}
//Not used yet, might be used to return LD_PRELOAD=.. FAKE_MODIFIED=.. etc. later
- QString commandPrefix() const {
- return QString();
+ TQString commandPrefix() const {
+ return TQString();
}
///Undo changed modification-times
@@ -120,14 +120,14 @@ namespace CppTools {
}
private:
- typedef QMap<QString, struct stat> StatMap;
+ typedef TQMap<TQString, struct stat> StatMap;
StatMap m_stat;
time_t m_newTime;
};
class SourcePathInformation {
public:
- SourcePathInformation( const QString& path ) : m_path( path ), m_isUnsermake(false), m_shouldTouchFiles(false) {
+ SourcePathInformation( const TQString& path ) : m_path( path ), m_isUnsermake(false), m_shouldTouchFiles(false) {
m_isUnsermake = isUnsermakePrivate( path );
ifTest( if( m_isUnsermake ) cout << "unsermake detected" << endl );
@@ -142,7 +142,7 @@ namespace CppTools {
m_shouldTouchFiles = b;
}
- QString getCommand( const QString& sourceFile, const QString& makeParameters ) const {
+ TQString getCommand( const TQString& sourceFile, const TQString& makeParameters ) const {
if( isUnsermake() )
return "unsermake -k --no-real-compare -n " + makeParameters;
else
@@ -150,7 +150,7 @@ namespace CppTools {
}
bool hasMakefile() const {
- QFileInfo makeFile( m_path, "Makefile" );
+ TQFileInfo makeFile( m_path, "Makefile" );
return makeFile.exists();
}
@@ -158,8 +158,8 @@ namespace CppTools {
return isUnsermake() || m_shouldTouchFiles;
}
- QStringList possibleTargets( const QString& targetBaseName ) const {
- QStringList ret;
+ TQStringList possibleTargets( const TQString& targetBaseName ) const {
+ TQStringList ret;
if( isUnsermake() ) {
//unsermake breaks if the first given target does not exist, so in worst-case 2 calls are necessary
ret << targetBaseName + ".lo";
@@ -174,12 +174,12 @@ namespace CppTools {
}
private:
- bool isUnsermakePrivate( const QString& path ) {
+ bool isUnsermakePrivate( const TQString& path ) {
bool ret = false;
- QFileInfo makeFile( path, "Makefile" );
- QFile f( makeFile.absFilePath() );
+ TQFileInfo makeFile( path, "Makefile" );
+ TQFile f( makeFile.absFilePath() );
if( f.open( IO_ReadOnly ) ) {
- QString firstLine;
+ TQString firstLine;
f.readLine( firstLine, 1000 );
if( firstLine.find( "generated by unsermake" ) != -1 ) {
ret = true;
@@ -189,14 +189,14 @@ namespace CppTools {
return ret;
}
- QString m_path;
+ TQString m_path;
bool m_isUnsermake;
bool m_shouldTouchFiles;
};
};
-bool IncludePathResolver::executeCommandPopen ( const QString& command, const QString& workingDirectory, QString& result ) const
+bool IncludePathResolver::executeCommandPopen ( const TQString& command, const TQString& workingDirectory, TQString& result ) const
{
ifTest( cout << "executing " << command.ascii() << endl );
@@ -207,12 +207,12 @@ bool IncludePathResolver::executeCommandPopen ( const QString& command, const QS
const int BUFSIZE = 2048;
char buf [BUFSIZE];
- result = QString();
+ result = TQString();
int status = 1;
if ((fp = popen(command.local8Bit(), "r")) != NULL) {
while (fgets(buf, sizeof (buf), fp))
- result += QString(buf);
+ result += TQString(buf);
status = pclose(fp);
}
@@ -230,12 +230,12 @@ IncludePathResolver::IncludePathResolver( bool continueEventLoop ) : m_isResolvi
}
///More efficient solution: Only do exactly one call for each directory. During that call, mark all source-files as changed, and make all targets for those files.
-PathResolutionResult IncludePathResolver::resolveIncludePath( const QString& file ) {
- QFileInfo fi( file );
+PathResolutionResult IncludePathResolver::resolveIncludePath( const TQString& file ) {
+ TQFileInfo fi( file );
return resolveIncludePath( fi.fileName(), fi.dirPath(true) );
}
-PathResolutionResult IncludePathResolver::resolveIncludePath( const QString& file, const QString& workingDirectory ) {
+PathResolutionResult IncludePathResolver::resolveIncludePath( const TQString& file, const TQString& workingDirectory ) {
struct Enabler {
bool& b;
@@ -253,14 +253,14 @@ PathResolutionResult IncludePathResolver::resolveIncludePath( const QString& fil
Enabler e( m_isResolving );
///STEP 1: CACHING
- QDir dir( workingDirectory );
- dir = QDir( dir.absPath() );
- QFileInfo makeFile( dir, "Makefile" );
+ TQDir dir( workingDirectory );
+ 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) );
- QStringList cachedPath; //If the call doesn't succeed, use the cached not up-to-date version
- QDateTime makeFileModification = makeFile.lastModified();
+ 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() );
if( it != m_cache.end() ) {
cachedPath = (*it).path;
@@ -272,7 +272,7 @@ PathResolutionResult IncludePathResolver::resolveIncludePath( const QString& fil
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( QDateTime::currentDateTime() ) < CACHE_FAIL_FOR_SECONDS ) {
+ if( /*((*it).failedFiles.size() > 3 || (*it).failedFiles.find( file ) != (*it).failedFiles.end()) &&*/ (*it).failTime.secsTo( TQDateTime::currentDateTime() ) < CACHE_FAIL_FOR_SECONDS ) {
PathResolutionResult ret(false); //Fake that the result is ok
ret.errorMessage = i18n("Cached: ") + (*it).errorMessage;
ret.longErrorMessage = (*it).longErrorMessage;
@@ -286,10 +286,10 @@ PathResolutionResult IncludePathResolver::resolveIncludePath( const QString& fil
}
///STEP 1: Prepare paths
- QString targetName;
- QFileInfo fi( file );
+ TQString targetName;
+ TQFileInfo fi( file );
- QString absoluteFile = file;
+ TQString absoluteFile = file;
if( !file.startsWith("/") )
absoluteFile = dir.path() + "/" + file;
KURL u( absoluteFile );
@@ -302,9 +302,9 @@ PathResolutionResult IncludePathResolver::resolveIncludePath( const QString& fil
targetName = file.left( dot );
- QString wd = dir.path();
+ TQString wd = dir.path();
if( !wd.startsWith("/") ) {
- wd = QDir::currentDirPath() + "/" + wd;
+ wd = TQDir::currentDirPath() + "/" + wd;
KURL u( wd );
u.cleanPath();
wd = u.path();
@@ -320,7 +320,7 @@ PathResolutionResult IncludePathResolver::resolveIncludePath( const QString& fil
}
SourcePathInformation source( wd );
- QStringList possibleTargets = source.possibleTargets( targetName );
+ TQStringList possibleTargets = source.possibleTargets( targetName );
source.setShouldTouchFiles(true); //Think about whether this should be always enabled. I've enabled it for now so there's an even bigger chance that everything works.
@@ -329,7 +329,7 @@ PathResolutionResult IncludePathResolver::resolveIncludePath( const QString& fil
///STEP 3.1: Try resolution using the absolute path
PathResolutionResult res;
//Try for each possible target
- for( QStringList::const_iterator it = possibleTargets.begin(); it != possibleTargets.end(); ++it ) {
+ for( TQStringList::const_iterator it = possibleTargets.begin(); it != possibleTargets.end(); ++it ) {
res = resolveIncludePathInternal( absoluteFile, wd, *it, source );
if( res ) break;
}
@@ -346,8 +346,8 @@ PathResolutionResult IncludePathResolver::resolveIncludePath( const QString& fil
///STEP 3.2: Try resolution using the relative path
- QString relativeFile = KURL::relativePath(wd, absoluteFile);
- for( QStringList::const_iterator it = possibleTargets.begin(); it != possibleTargets.end(); ++it ) {
+ TQString relativeFile = KURL::relativePath(wd, absoluteFile);
+ for( TQStringList::const_iterator it = possibleTargets.begin(); it != possibleTargets.end(); ++it ) {
res = resolveIncludePathInternal( relativeFile, wd, *it, source );
if( res ) break;
}
@@ -365,7 +365,7 @@ PathResolutionResult IncludePathResolver::resolveIncludePath( const QString& fil
ce.failed = true;
ce.errorMessage = res.errorMessage;
ce.longErrorMessage = res.longErrorMessage;
- ce.failTime = QDateTime::currentDateTime();
+ ce.failTime = TQDateTime::currentDateTime();
ce.failedFiles[file] = true;
} else {
ce.failed = false;
@@ -375,7 +375,7 @@ PathResolutionResult IncludePathResolver::resolveIncludePath( const QString& fil
return res;
}
-PathResolutionResult IncludePathResolver::getFullOutput( const QString& command, const QString& workingDirectory, QString& output ) const{
+PathResolutionResult IncludePathResolver::getFullOutput( const TQString& command, const TQString& workingDirectory, TQString& output ) const{
if( m_continueEventLoop ) {
BlockingKProcess proc;
proc.setWorkingDirectory( workingDirectory );
@@ -397,25 +397,25 @@ PathResolutionResult IncludePathResolver::getFullOutput( const QString& command,
return PathResolutionResult(true);
}
-PathResolutionResult IncludePathResolver::resolveIncludePathInternal( const QString& file, const QString& workingDirectory, const QString& makeParameters, const SourcePathInformation& source ) {
+PathResolutionResult IncludePathResolver::resolveIncludePathInternal( const TQString& file, const TQString& workingDirectory, const TQString& makeParameters, const SourcePathInformation& source ) {
- QString processStdout;
+ TQString processStdout;
- QStringList touchFiles;
+ TQStringList touchFiles;
if( source.shouldTouchFiles() )
touchFiles << file;
FileModificationTimeWrapper touch( touchFiles );
- QString fullOutput;
+ TQString fullOutput;
PathResolutionResult res = getFullOutput( source.getCommand( file, makeParameters ), workingDirectory, fullOutput );
if( !res )
return res;
- QRegExp newLineRx("\\\\\\n");
+ TQRegExp newLineRx("\\\\\\n");
fullOutput.replace( newLineRx, "" );
///@todo collect multiple outputs at the same time for performance-reasons
- QString firstLine = fullOutput;
+ TQString firstLine = fullOutput;
int lineEnd;
if( (lineEnd = fullOutput.find('\n')) != -1 )
firstLine.truncate( lineEnd ); //Only look at the first line of output
@@ -428,14 +428,14 @@ PathResolutionResult IncludePathResolver::resolveIncludePathInternal( const QStr
///STEP 1: Test if it is a recursive make-call
- QRegExp makeRx( "\\bmake\\s" );
+ TQRegExp makeRx( "\\bmake\\s" );
int offset = 0;
while( (offset = makeRx.search( firstLine, offset )) != -1 )
{
- QString prefix = firstLine.left( offset ).stripWhiteSpace();
+ TQString prefix = firstLine.left( offset ).stripWhiteSpace();
if( prefix.endsWith( "&&") || prefix.endsWith( ";" ) || prefix.isEmpty() )
{
- QString newWorkingDirectory = workingDirectory;
+ TQString newWorkingDirectory = workingDirectory;
///Extract the new working-directory
if( !prefix.isEmpty() ) {
if( prefix.endsWith( "&&" ) )
@@ -452,14 +452,14 @@ PathResolutionResult IncludePathResolver::resolveIncludePathInternal( const QStr
newWorkingDirectory = u.path();
}
}
- QFileInfo d( newWorkingDirectory );
+ TQFileInfo d( newWorkingDirectory );
if( d.exists() ) {
///The recursive working-directory exists.
- QString makeParams = firstLine.mid( offset+5 );
+ TQString makeParams = firstLine.mid( offset+5 );
if( !makeParams.contains( ";" ) && !makeParams.contains( "&&" ) ) {
///Looks like valid parameters
///Make the file-name absolute, so it can be referenced from any directory
- QString absoluteFile = file;
+ TQString absoluteFile = file;
if( !absoluteFile.startsWith("/") )
absoluteFile = workingDirectory + "/" + file;
KURL u( absoluteFile );
@@ -486,18 +486,18 @@ PathResolutionResult IncludePathResolver::resolveIncludePathInternal( const QStr
}
///STEP 2: Search the output for include-paths
- QRegExp validRx( "\\b([cg]\\+\\+|gcc)" );
+ 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) );
PathResolutionResult ret( true );
ret.longErrorMessage = fullOutput;
- QString includeParameterRx( "\\s(-I|--include-dir=|-I\\s)" );
- QString quotedRx( "(\\').*(\\')|(\\\").*(\\\")" ); //Matches "hello", 'hello', 'hello"hallo"', etc.
- QString escapedPathRx( "(([^)(\"'\\s]*)(\\\\\\s)?)*" ); //Matches /usr/I\ am \ a\ strange\ path/include
+ TQString includeParameterRx( "\\s(-I|--include-dir=|-I\\s)" );
+ TQString quotedRx( "(\\').*(\\')|(\\\").*(\\\")" ); //Matches "hello", 'hello', 'hello"hallo"', etc.
+ TQString escapedPathRx( "(([^)(\"'\\s]*)(\\\\\\s)?)*" ); //Matches /usr/I\ am \ a\ strange\ path/include
- QRegExp includeRx( QString( "%1(%2|%3)(?=\\s)" ).arg( includeParameterRx ).arg( quotedRx ).arg( escapedPathRx ) );
+ TQRegExp includeRx( TQString( "%1(%2|%3)(?=\\s)" ).arg( includeParameterRx ).arg( quotedRx ).arg( escapedPathRx ) );
includeRx.setMinimal( true );
includeRx.setCaseSensitive( true );
offset = 0;
@@ -519,7 +519,7 @@ PathResolutionResult IncludePathResolver::resolveIncludePathInternal( const QStr
int start = offset + pathOffset;
int end = offset + includeRx.matchedLength();
- QString path = fullOutput.mid( start, end-start ).stripWhiteSpace();
+ TQString path = fullOutput.mid( start, end-start ).stripWhiteSpace();
if( path.startsWith( "\"") || path.startsWith( "\'") && path.length() > 2 ) {
//probable a quoted path
if( path.endsWith(path.left(1)) ) {
@@ -542,7 +542,7 @@ PathResolutionResult IncludePathResolver::resolveIncludePathInternal( const QStr
return ret;
}
-void IncludePathResolver::setOutOfSourceBuildSystem( const QString& source, const QString& build ) {
+void IncludePathResolver::setOutOfSourceBuildSystem( const TQString& source, const TQString& build ) {
m_outOfSource = true;
m_source = source;
m_build = build;
@@ -554,7 +554,7 @@ void IncludePathResolver::setOutOfSourceBuildSystem( const QString& source, cons
* */
int main(int argc, char **argv) {
- QApplication app(argc,argv);
+ TQApplication app(argc,argv);
IncludePathResolver resolver;
if( argc < 3 ) {
cout << "params: 1. file-name, 2. working-directory [3. source-directory 4. build-directory]" << endl;
diff --git a/languages/cpp/includepathresolver.h b/languages/cpp/includepathresolver.h
index c182d52e..33aaecd9 100644
--- a/languages/cpp/includepathresolver.h
+++ b/languages/cpp/includepathresolver.h
@@ -13,20 +13,20 @@
***************************************************************************/
#ifndef INCLUDEPATHRESOLVER_H
#define INCLUDEPATHRESOLVER_H
-#include <qstring.h> /* defines QString */
-#include <qmap.h>
+#include <tqstring.h> /* defines TQString */
+#include <tqmap.h>
namespace CppTools {
class FileModificationTimeWrapper;
struct PathResolutionResult {
- PathResolutionResult( bool _success = false, const QString& _errorMessage = QString(), const QString& _longErrorMessage = QString() ) : success( _success ), errorMessage( _errorMessage ), longErrorMessage( _longErrorMessage ) {
+ PathResolutionResult( bool _success = false, const TQString& _errorMessage = TQString(), const TQString& _longErrorMessage = TQString() ) : success( _success ), errorMessage( _errorMessage ), longErrorMessage( _longErrorMessage ) {
}
bool success;
- QString errorMessage;
- QString longErrorMessage;
+ TQString errorMessage;
+ TQString longErrorMessage;
- QStringList path;
+ TQStringList path;
operator bool() const {
return success;
@@ -41,35 +41,35 @@ namespace CppTools {
///Whether the Qt 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 QString& file );
+ PathResolutionResult resolveIncludePath( const TQString& file );
///The include-path is only computed once for a whole directory, then it is cached using the modification-time of the Makefile.
- PathResolutionResult resolveIncludePath( const QString& file, const QString& workingDirectory );
+ PathResolutionResult resolveIncludePath( const TQString& file, const TQString& workingDirectory );
///source and build must be absolute paths
- void setOutOfSourceBuildSystem( const QString& source, const QString& build );
+ void setOutOfSourceBuildSystem( const TQString& source, const TQString& build );
private:
bool m_isResolving;
bool m_continueEventLoop;
struct CacheEntry {
CacheEntry() : failed(false) {
}
- QDateTime modificationTime;
- QStringList path;
- QString errorMessage, longErrorMessage;
+ TQDateTime modificationTime;
+ TQStringList path;
+ TQString errorMessage, longErrorMessage;
bool failed;
- QMap<QString,bool> failedFiles;
- QDateTime failTime;
+ TQMap<TQString,bool> failedFiles;
+ TQDateTime failTime;
};
- typedef QMap<QString, CacheEntry> Cache;
+ typedef TQMap<TQString, CacheEntry> Cache;
Cache m_cache;
///Executes the command, either using popen or BlockingKProcess
- PathResolutionResult getFullOutput( const QString& command, const QString& workingDirectory, QString& output ) const;
- bool executeCommandPopen ( const QString& command, const QString& workingDirectory, QString& result ) const;
+ PathResolutionResult getFullOutput( const TQString& command, const TQString& workingDirectory, TQString& output ) const;
+ bool executeCommandPopen ( const TQString& command, const TQString& workingDirectory, TQString& result ) const;
///file should be the name of the target, without extension(because that may be different)
- PathResolutionResult resolveIncludePathInternal( const QString& file, const QString& workingDirectory, const QString& makeParameters, const SourcePathInformation& source );
+ PathResolutionResult resolveIncludePathInternal( const TQString& file, const TQString& workingDirectory, const TQString& makeParameters, const SourcePathInformation& source );
bool m_outOfSource;
- QString m_source;
- QString m_build;
+ TQString m_source;
+ TQString m_build;
};
};
diff --git a/languages/cpp/kdevdeepcopy.h b/languages/cpp/kdevdeepcopy.h
index f006bbce..c29ee1e1 100644
--- a/languages/cpp/kdevdeepcopy.h
+++ b/languages/cpp/kdevdeepcopy.h
@@ -1,12 +1,12 @@
#ifndef KDEVDEEPCOPY_H
#define KDEVDEEPCOPY_H
-#include <qstring.h>
+#include <tqstring.h>
-inline QString deepCopy( const QString& s )
+inline TQString deepCopy( const TQString& s )
{
- QCString str = s.utf8();
- return QString::fromUtf8( str, str.length() );
+ TQCString str = s.utf8();
+ return TQString::fromUtf8( str, str.length() );
}
#endif
diff --git a/languages/cpp/kdevdriver.cpp b/languages/cpp/kdevdriver.cpp
index 53cf413e..f240ed36 100644
--- a/languages/cpp/kdevdriver.cpp
+++ b/languages/cpp/kdevdriver.cpp
@@ -24,18 +24,18 @@ CppSupportPart* KDevDriver::cppSupport() { return m_cppSupport; }
void KDevDriver::setupProject()
{
- QMap<QString, bool> map;
+ TQMap<TQString, bool> map;
- QStringList fileList = m_cppSupport->project() ->allFiles();
- QStringList::ConstIterator it = fileList.begin();
+ TQStringList fileList = m_cppSupport->project() ->allFiles();
+ TQStringList::ConstIterator it = fileList.begin();
while ( it != fileList.end() )
{
- QFileInfo info( *it );
+ TQFileInfo info( *it );
++it;
map.insert( info.dirPath( true ), true );
}
- QMap<QString, bool>::Iterator mapit = map.begin();
+ TQMap<TQString, bool>::Iterator mapit = map.begin();
while ( mapit != map.end() )
{
addIncludePath( mapit.key() );
@@ -61,16 +61,16 @@ void KDevDriver::setup()
addMacro( Macro("KDEVELOP_PARSER", "3.4") );
bool ok;
- QString verboseGccOutput = SetupHelper::getVerboseGccIncludePath( &ok );
- QStringList verboseGccLines = QStringList::split( '\n', verboseGccOutput );
+ TQString verboseGccOutput = SetupHelper::getVerboseGccIncludePath( &ok );
+ TQStringList verboseGccLines = TQStringList::split( '\n', verboseGccOutput );
if( verboseGccLines.count() > 3 ) {
///Parse the output of gcc. It includes gcc's final include-path when parsing an empty c++-file(including dirs like /usr/include/c++/4.xx/...)
//what about order?
- for( QStringList::iterator it = verboseGccLines.begin(); it != verboseGccLines.end(); ++it ) {
+ for( TQStringList::iterator it = verboseGccLines.begin(); it != verboseGccLines.end(); ++it ) {
if( (*it).startsWith(" ") && (*it).length() > 2 && (*it)[1] != ' ' ) {
//it is a potential include-file
- QString path = (*it).stripWhiteSpace();
- QFileInfo info( path );
+ TQString path = (*it).stripWhiteSpace();
+ TQFileInfo info( path );
if( info.exists() ) {
kdDebug( 9007 ) << "Adding include-path from gcc-output: \"" << path << "\" absolute: \"" << info.absFilePath() << "\"" << endl;
addIncludePath(info.absFilePath());
@@ -84,10 +84,10 @@ void KDevDriver::setup()
addIncludePath( "/usr/local/include" );
bool ok;
- QString includePath = SetupHelper::getGccIncludePath(&ok);
+ TQString includePath = SetupHelper::getGccIncludePath(&ok);
if (ok) {
- QStringList ls = QStringList::split( "\n", includePath );
- for( QStringList::const_iterator it = ls.begin(); it != ls.end(); ++it ) {
+ TQStringList ls = TQStringList::split( "\n", includePath );
+ for( TQStringList::const_iterator it = ls.begin(); it != ls.end(); ++it ) {
if( !(*it).isEmpty() )
addIncludePath( *it );
}
@@ -101,15 +101,15 @@ void KDevDriver::setup()
addMacro( Macro( "__cplusplus", "1" ) );
///@todo maybe remove the following? Is there any normal user who has his environment set up correctly so this is of any use?
- QString kdedir = getenv( "KDEDIR" );
+ TQString kdedir = getenv( "KDEDIR" );
if( !kdedir.isNull() )
addIncludePath( kdedir + "/include" );
- QString qmakespec = getenv( "QMAKESPEC" );
+ TQString qmakespec = getenv( "QMAKESPEC" );
if ( qmakespec.isNull() )
qmakespec = "linux-g++";
- QString qtdir = getenv( "QTDIR" );
+ TQString qtdir = getenv( "QTDIR" );
if( !qtdir.isNull() ) {
addIncludePath( qtdir + "/include" );
@@ -119,10 +119,10 @@ void KDevDriver::setup()
addIncludePath( qtdir + "/mkspecs/" + qmakespec );
}
- QStringList lines = SetupHelper::getGccMacros(&ok);
+ TQStringList lines = SetupHelper::getGccMacros(&ok);
if (!ok) {
- for (QStringList::ConstIterator it = lines.constBegin(); it != lines.constEnd(); ++it) {
- QStringList lst = QStringList::split( ' ', *it );
+ for (TQStringList::ConstIterator it = lines.constBegin(); it != lines.constEnd(); ++it) {
+ TQStringList lst = TQStringList::split( ' ', *it );
if ( lst.count() != 3 )
continue;
addMacro( Macro( lst[1], lst[2] ) );
@@ -135,7 +135,7 @@ void KDevDriver::setup()
addMacro( Macro( "Q_SCRIPTABLE", "" ) );
CppCodeCompletionConfig* cfg = m_cppSupport->codeCompletionConfig();
- QString str = cfg->customIncludePaths();
+ TQString str = cfg->customIncludePaths();
int pos = 0;
while( pos < str.length() ) {
int end = str.find( ';', pos );
@@ -143,7 +143,7 @@ void KDevDriver::setup()
end = str.length();
}
- QString s = str.mid( pos, end-pos ).stripWhiteSpace();
+ TQString s = str.mid( pos, end-pos ).stripWhiteSpace();
if( !s.isEmpty() ) {
if( !s.startsWith( "/" ) && m_cppSupport->project() ) {
s = m_cppSupport->project()->projectDirectory() + "/" + s;
@@ -167,7 +167,7 @@ void KDevDriver::setup()
m_shouldParseIncludedFiles = cfg->parseMissingHeaders();
}
-QStringList KDevDriver::getCustomIncludePath( const QString& file ) {
+TQStringList KDevDriver::getCustomIncludePath( const TQString& file ) {
if( !file.startsWith("/") )
kdDebug( 9007 ) << "KDevDriver::getCustomIncludePath(..): given file \"" << file << "\" is not absolute" << endl;
if( !m_includePathResolver )
@@ -184,7 +184,7 @@ QStringList KDevDriver::getCustomIncludePath( const QString& file ) {
}
bool KDevDriver::shouldParseIncludedFile( const ParsedFilePointer& file ) {
- QString compoundString = file->fileName() + "||" + QString("%1").arg(file->usedMacros().valueHash()) + "||" + QString("%1").arg(file->usedMacros().idHash());
+ TQString compoundString = file->fileName() + "||" + TQString("%1").arg(file->usedMacros().valueHash()) + "||" + TQString("%1").arg(file->usedMacros().idHash());
if( !m_shouldParseIncludedFiles )
return false;
diff --git a/languages/cpp/kdevdriver.h b/languages/cpp/kdevdriver.h
index f46894b4..3a9f0ac6 100644
--- a/languages/cpp/kdevdriver.h
+++ b/languages/cpp/kdevdriver.h
@@ -10,7 +10,7 @@
#include <cstdlib>
#include <unistd.h>
-#include <qmap.h>
+#include <tqmap.h>
class KProcess;
namespace CppTools {
@@ -40,7 +40,7 @@ protected:
void setupLexer( Lexer* lexer );
///Returns the complete include-path for that file. Not constant because it may add Problem-items to the driver. Must be absolute path.
- virtual QStringList getCustomIncludePath( const QString& file );
+ virtual TQStringList getCustomIncludePath( const TQString& file );
virtual bool shouldParseIncludedFile( const ParsedFilePointer& /*file*/ );
diff --git a/languages/cpp/main.cpp b/languages/cpp/main.cpp
index 079fba37..b3e6bacb 100644
--- a/languages/cpp/main.cpp
+++ b/languages/cpp/main.cpp
@@ -7,11 +7,11 @@
#include "tag_creator.h"
#include "setuphelper.h"
-#include <qdir.h>
-#include <qfileinfo.h>
-#include <qfile.h>
-#include <qtextstream.h>
-#include <qregexp.h>
+#include <tqdir.h>
+#include <tqfileinfo.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
+#include <tqregexp.h>
#include <catalog.h>
#include <kdebug.h>
@@ -39,7 +39,7 @@ public:
m_generateTags = b;
}
- void addDocDirectory( const QString& dir )
+ void addDocDirectory( const TQString& dir )
{
m_docDirectoryList.append( dir );
TagCreator::setDocumentationDirectories( m_docDirectoryList );
@@ -48,15 +48,15 @@ public:
void fileParsed( const ParsedFile& fileName )
{
std::cout << ( m_generateTags ? "generate tags for " : "checking " )
- << QFile::encodeName( fileName.fileName() ).data() << std::endl;
+ << TQFile::encodeName( fileName.fileName() ).data() << std::endl;
- QValueList<Problem> l = problems( fileName.fileName() );
- QValueList<Problem>::Iterator it = l.begin();
+ TQValueList<Problem> l = problems( fileName.fileName() );
+ TQValueList<Problem>::Iterator it = l.begin();
while ( it != l.end() )
{
const Problem & p = *it;
++it;
- std::cout << QFile::encodeName( fileName.fileName() ).data() << ":" << p.line() << ":"
+ std::cout << TQFile::encodeName( fileName.fileName() ).data() << ":" << p.line() << ":"
<< p.column() << ": " << p.text().latin1() << std::endl;
}
@@ -82,15 +82,15 @@ public:
// code provided by Reginald Stadlbauer <reggie@trolltech.com>
void setup()
{
- QString kdedir = getenv( "KDEDIR" );
+ TQString kdedir = getenv( "KDEDIR" );
if ( !kdedir.isNull() )
addIncludePath( kdedir + "/include" );
- QString qtdir = getenv( "QTDIR" );
+ TQString qtdir = getenv( "QTDIR" );
if ( !qtdir.isNull() )
addIncludePath( qtdir + "/include" );
- QString qmakespec = getenv( "QMAKESPEC" );
+ TQString qmakespec = getenv( "QMAKESPEC" );
if ( qmakespec.isNull() )
qmakespec = "linux-g++";
// #### implement other mkspecs and find a better way to find the
@@ -104,27 +104,27 @@ public:
addIncludePath( "/usr/include" );
addIncludePath( "/ust/local/include" );
bool ok;
- QString gccLibPath = SetupHelper::getGccIncludePath(&ok);
+ TQString gccLibPath = SetupHelper::getGccIncludePath(&ok);
if (!ok)
return;
- gccLibPath = gccLibPath.replace( QRegExp( "[\r\n]" ), "" );
+ gccLibPath = gccLibPath.replace( TQRegExp( "[\r\n]" ), "" );
addIncludePath( gccLibPath );
addIncludePath( "/usr/include/g++-3" );
addIncludePath( "/usr/include/g++" );
- QStringList lines = SetupHelper::getGccMacros(&ok);
+ TQStringList lines = SetupHelper::getGccMacros(&ok);
if (!ok)
return;
- for (QStringList::ConstIterator it = lines.constBegin(); it != lines.constEnd(); ++it) {
- QStringList lst = QStringList::split( ' ', *it );
+ for (TQStringList::ConstIterator it = lines.constBegin(); it != lines.constEnd(); ++it) {
+ TQStringList lst = TQStringList::split( ' ', *it );
if ( lst.count() != 3 )
continue;
addMacro( Macro( lst[1], lst[2] ) );
}
addMacro( Macro( "__cplusplus", "1" ) );
- QString incl = getenv( "INCLUDE" );
- QStringList includePaths = QStringList::split( ':', incl );
- QStringList::Iterator it = includePaths.begin();
+ TQString incl = getenv( "INCLUDE" );
+ TQStringList includePaths = TQStringList::split( ':', incl );
+ TQStringList::Iterator it = includePaths.begin();
while ( it != includePaths.end() )
{
addIncludePath( ( *it ).stripWhiteSpace() );
@@ -134,9 +134,9 @@ public:
}
else if ( qmakespec == "win32-borland" )
{
- QString incl = getenv( "INCLUDE" );
- QStringList includePaths = QStringList::split( ';', incl );
- QStringList::Iterator it = includePaths.begin();
+ TQString incl = getenv( "INCLUDE" );
+ TQStringList includePaths = TQStringList::split( ';', incl );
+ TQStringList::Iterator it = includePaths.begin();
while ( it != includePaths.end() )
{
addIncludePath( ( *it ).stripWhiteSpace() );
@@ -151,22 +151,22 @@ public:
private:
Catalog* catalog;
bool m_generateTags;
- QStringList m_docDirectoryList;
+ TQStringList m_docDirectoryList;
};
-void parseDirectory( Driver& driver, QDir& dir, bool rec, bool parseAllFiles )
+void parseDirectory( Driver& driver, TQDir& dir, bool rec, bool parseAllFiles )
{
- QStringList fileList;
+ TQStringList fileList;
if ( parseAllFiles )
- fileList = dir.entryList( QDir::Files );
+ fileList = dir.entryList( TQDir::Files );
else
fileList = dir.entryList( "*.h;*.H;*.hh;*.hxx;*.hpp;*.tlh" );
- QStringList::Iterator it = fileList.begin();
+ TQStringList::Iterator it = fileList.begin();
while ( it != fileList.end() )
{
- QString fn = dir.path() + "/" + ( *it );
+ TQString fn = dir.path() + "/" + ( *it );
++it;
driver.parseFile( fn );
@@ -174,8 +174,8 @@ void parseDirectory( Driver& driver, QDir& dir, bool rec, bool parseAllFiles )
if ( rec )
{
- QStringList fileList = dir.entryList( QDir::Dirs );
- QStringList::Iterator it = fileList.begin();
+ TQStringList fileList = dir.entryList( TQDir::Dirs );
+ TQStringList::Iterator it = fileList.begin();
while ( it != fileList.end() )
{
if ( ( *it ).startsWith( "." ) )
@@ -184,7 +184,7 @@ void parseDirectory( Driver& driver, QDir& dir, bool rec, bool parseAllFiles )
continue;
}
- QDir subdir( dir.path() + "/" + ( *it ) );
+ TQDir subdir( dir.path() + "/" + ( *it ) );
++it;
parseDirectory( driver, subdir, rec, parseAllFiles );
@@ -205,7 +205,7 @@ int main( int argc, char* argv[] )
bool rec = false;
bool parseAllFiles = false;
- QString datadir = stddir.localkdedir() + "/" + KStandardDirs::kde_default( "data" );
+ TQString datadir = stddir.localkdedir() + "/" + KStandardDirs::kde_default( "data" );
if ( ! KStandardDirs::makeDir( datadir + "/kdevcppsupport/pcs/" ) )
{
kdWarning() << "*error* " << "could not create " << datadir + "/kdevcppsupport/pcs/" << endl << endl;
@@ -213,15 +213,15 @@ int main( int argc, char* argv[] )
}
- if ( !QFile::exists( datadir + "/kdevcppsupport/pcs/" ) )
+ if ( !TQFile::exists( datadir + "/kdevcppsupport/pcs/" ) )
{
kdWarning() << "*error* " << datadir + "/kdevcppsupport/pcs/" << " doesn't exists!!" << endl << endl;
return -1;
}
- QString dbFileName = datadir + "/kdevcppsupport/pcs/" + argv[ 1 ] + ".db";
+ TQString dbFileName = datadir + "/kdevcppsupport/pcs/" + argv[ 1 ] + ".db";
// std::cout << "dbFileName = " << dbFileName << std::endl;
- if ( QFile::exists( dbFileName ) )
+ if ( TQFile::exists( dbFileName ) )
{
kdWarning() << "*error* " << "database " << dbFileName << " already exists!" << endl << endl;
return -1;
@@ -240,7 +240,7 @@ int main( int argc, char* argv[] )
for ( int i = 2; i < argc; ++i )
{
- QString s( argv[ i ] );
+ TQString s( argv[ i ] );
if ( s == "-r" || s == "--recursive" )
{
rec = true;
@@ -267,7 +267,7 @@ int main( int argc, char* argv[] )
continue;
}
- QDir dir( s );
+ TQDir dir( s );
if ( !dir.exists() )
{
kdWarning() << "*error* " << "the directory " << dir.path() << " doesn't exists!" << endl << endl;
diff --git a/languages/cpp/pcsimporter/customimporter/kdevcustomimporter.cpp b/languages/cpp/pcsimporter/customimporter/kdevcustomimporter.cpp
index c3e5cb43..5551cd02 100644
--- a/languages/cpp/pcsimporter/customimporter/kdevcustomimporter.cpp
+++ b/languages/cpp/pcsimporter/customimporter/kdevcustomimporter.cpp
@@ -11,15 +11,15 @@
#include "settingsdialog.h"
-#include <qvaluestack.h>
-#include <qdir.h>
+#include <tqvaluestack.h>
+#include <tqdir.h>
#include <kdebug.h>
#include <kgenericfactory.h>
K_EXPORT_COMPONENT_FACTORY( libkdevcustompcsimporter, KGenericFactory<KDevCustomImporter>( "kdevcustompcsimporter" ) )
-KDevCustomImporter::KDevCustomImporter( QObject* parent, const char* name, const QStringList & // args
+KDevCustomImporter::KDevCustomImporter( TQObject* parent, const char* name, const TQStringList & // args
)
: KDevPCSImporter( parent, name )
{}
@@ -29,34 +29,34 @@ KDevCustomImporter::~KDevCustomImporter()
{}
-QString KDevCustomImporter::dbName() const
+TQString KDevCustomImporter::dbName() const
{
return m_settings->dbName();
}
-QStringList KDevCustomImporter::fileList( const QString& path )
+TQStringList KDevCustomImporter::fileList( const TQString& path )
{
- QDir dir( path );
+ TQDir dir( path );
if ( !dir.exists() )
- return QStringList();
-// QStringList lst = dir.entryList( "*.h;*.H;*.hh;*.hxx;*.hpp;*.tlh" );
- QStringList lst = dir.entryList( m_settings->filePattern() );
- QStringList fileList;
- for ( QStringList::Iterator it = lst.begin(); it != lst.end(); ++it )
+ return TQStringList();
+// TQStringList lst = dir.entryList( "*.h;*.H;*.hh;*.hxx;*.hpp;*.tlh" );
+ TQStringList lst = dir.entryList( m_settings->filePattern() );
+ TQStringList fileList;
+ for ( TQStringList::Iterator it = lst.begin(); it != lst.end(); ++it )
{
fileList.push_back( dir.absPath() + "/" + ( *it ) );
}
return fileList;
}
-QStringList KDevCustomImporter::fileList()
+TQStringList KDevCustomImporter::fileList()
{
if ( !m_settings )
- return QStringList();
+ return TQStringList();
- QStringList lst = m_settings->dirs();
- QStringList files;
- for ( QStringList::Iterator it = lst.begin(); it != lst.end(); ++it )
+ TQStringList lst = m_settings->dirs();
+ TQStringList files;
+ for ( TQStringList::Iterator it = lst.begin(); it != lst.end(); ++it )
{
if ( !m_settings->recursive() )
files += fileList( *it );
@@ -67,27 +67,27 @@ QStringList KDevCustomImporter::fileList()
return files;
}
-QStringList KDevCustomImporter::includePaths()
+TQStringList KDevCustomImporter::includePaths()
{
if ( !m_settings )
- return QStringList();
+ return TQStringList();
return m_settings->dirs();
}
-QWidget* KDevCustomImporter::createSettingsPage( QWidget* parent, const char* name )
+TQWidget* KDevCustomImporter::createSettingsPage( TQWidget* parent, const char* name )
{
m_settings = new SettingsDialog( parent, name );
return m_settings;
}
-void KDevCustomImporter::processDir( const QString path, QStringList & files )
+void KDevCustomImporter::processDir( const TQString path, TQStringList & files )
{
- QValueStack<QString> s;
+ TQValueStack<TQString> s;
s.push( path );
files += fileList( path );
- QDir dir;
+ TQDir dir;
do
{
dir.setPath( s.pop() );
@@ -96,15 +96,15 @@ void KDevCustomImporter::processDir( const QString path, QStringList & files )
kdDebug( 9015 ) << "Examining: " << dir.path() << endl;
const QFileInfoList *dirEntries = dir.entryInfoList();
if ( !dirEntries ) continue;
- QPtrListIterator<QFileInfo> it( *dirEntries );
+ TQPtrListIterator<TQFileInfo> it( *dirEntries );
for ( ; dirEntries && it.current(); ++it )
{
- QString fileName = it.current() ->fileName();
+ TQString fileName = it.current() ->fileName();
if ( fileName == "." || fileName == ".." )
continue;
if ( it.current() ->isDir() )
{
- QString tmpPath = it.current() ->absFilePath();
+ TQString tmpPath = it.current() ->absFilePath();
kdDebug( 9015 ) << "Pushing: " << tmpPath << endl;
s.push( tmpPath );
files += fileList( tmpPath );
diff --git a/languages/cpp/pcsimporter/customimporter/kdevcustomimporter.h b/languages/cpp/pcsimporter/customimporter/kdevcustomimporter.h
index 5a522785..bca53eeb 100644
--- a/languages/cpp/pcsimporter/customimporter/kdevcustomimporter.h
+++ b/languages/cpp/pcsimporter/customimporter/kdevcustomimporter.h
@@ -12,7 +12,7 @@
#include "kdevpcsimporter.h"
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
class SettingsDialog;
@@ -20,21 +20,21 @@ class KDevCustomImporter : public KDevPCSImporter
{
Q_OBJECT
public:
- KDevCustomImporter(QObject* parent = 0, const char* name = 0, const QStringList &args = QStringList());
+ KDevCustomImporter(TQObject* parent = 0, const char* name = 0, const TQStringList &args = TQStringList());
~KDevCustomImporter();
- virtual QString dbName() const;
- virtual QStringList fileList();
- virtual QStringList includePaths();
- virtual QWidget* createSettingsPage(QWidget* parent, const char* name);
+ virtual TQString dbName() const;
+ virtual TQStringList fileList();
+ virtual TQStringList includePaths();
+ virtual TQWidget* createSettingsPage(TQWidget* parent, const char* name);
protected:
- QStringList fileList( const QString& path );
- void processDir(const QString path, QStringList &files );
+ TQStringList fileList( const TQString& path );
+ void processDir(const TQString path, TQStringList &files );
private:
- QGuardedPtr<SettingsDialog> m_settings;
+ TQGuardedPtr<SettingsDialog> m_settings;
};
#endif
diff --git a/languages/cpp/pcsimporter/customimporter/settingsdialog.cpp b/languages/cpp/pcsimporter/customimporter/settingsdialog.cpp
index f6df0902..37f2bfef 100644
--- a/languages/cpp/pcsimporter/customimporter/settingsdialog.cpp
+++ b/languages/cpp/pcsimporter/customimporter/settingsdialog.cpp
@@ -12,7 +12,7 @@
* *
***************************************************************************/
-#include <qdir.h>
+#include <tqdir.h>
#include <klistbox.h>
#include <kcombobox.h>
@@ -27,14 +27,14 @@
// should be included after possible KEditListBox redefinition
#include "settingsdialog.h"
-#include <qfile.h>
-#include <qregexp.h>
-#include <qlayout.h>
-#include <qcheckbox.h>
+#include <tqfile.h>
+#include <tqregexp.h>
+#include <tqlayout.h>
+#include <tqcheckbox.h>
#include <cstdlib>
-SettingsDialog::SettingsDialog( QWidget* parent, const char* name, WFlags fl )
+SettingsDialog::SettingsDialog( TQWidget* parent, const char* name, WFlags fl )
: SettingsDialogBase( parent, name, fl )
{
KURLRequester * req = new KURLRequester( this );
@@ -45,27 +45,27 @@ SettingsDialog::SettingsDialog( QWidget* parent, const char* name, WFlags fl )
grid->addMultiCellWidget( elb, 3, 3, 0, grid->numCols() );
- // connect( dbName_edit, SIGNAL( textChanged( const QString& ) ), this, SLOT( validate() ) );
- connect( elb->addButton(), SIGNAL( clicked() ), this, SLOT( validate() ) );
- connect( elb->removeButton(), SIGNAL( clicked() ), this, SLOT( validate() ) );
- connect( elb, SIGNAL( added( const QString& ) ), this, SLOT( validateDirectory( const QString& ) ) );
+ // connect( dbName_edit, TQT_SIGNAL( textChanged( const TQString& ) ), this, TQT_SLOT( validate() ) );
+ connect( elb->addButton(), TQT_SIGNAL( clicked() ), this, TQT_SLOT( validate() ) );
+ connect( elb->removeButton(), TQT_SIGNAL( clicked() ), this, TQT_SLOT( validate() ) );
+ connect( elb, TQT_SIGNAL( added( const TQString& ) ), this, TQT_SLOT( validateDirectory( const TQString& ) ) );
}
SettingsDialog::~SettingsDialog()
{}
-QString SettingsDialog::dbName( ) const
+TQString SettingsDialog::dbName( ) const
{
- return QString();
+ return TQString();
// return dbName_edit->text();
}
-QStringList SettingsDialog::dirs( ) const
+TQStringList SettingsDialog::dirs( ) const
{
return elb->items();
}
-QString SettingsDialog::filePattern( ) const
+TQString SettingsDialog::filePattern( ) const
{
return pattern_edit->text();
}
@@ -81,19 +81,19 @@ void SettingsDialog::validate()
emit enabled( elb->listBox()->count() > 0 );
}
-void SettingsDialog::validateDirectory( const QString & dir )
+void SettingsDialog::validateDirectory( const TQString & dir )
{
- QDir d( dir, QString::null, QDir::DefaultSort, QDir::Dirs );
+ TQDir d( dir, TQString::null, TQDir::DefaultSort, TQDir::Dirs );
if ( !d.exists() )
{
elb->lineEdit() ->setText( dir );
- if ( QListBoxItem * item = elb->listBox() ->findItem( dir, Qt::ExactMatch ) )
+ if ( TQListBoxItem * item = elb->listBox() ->findItem( dir, Qt::ExactMatch ) )
{
elb->listBox() ->removeItem( elb->listBox() ->index( item ) );
}
- QString errormsg = QString( "<qt><b>%1</b> is not a directory</qt>" ).arg( dir );
+ TQString errormsg = TQString( "<qt><b>%1</b> is not a directory</qt>" ).arg( 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 309df8ab..02336f98 100644
--- a/languages/cpp/pcsimporter/customimporter/settingsdialog.h
+++ b/languages/cpp/pcsimporter/customimporter/settingsdialog.h
@@ -21,22 +21,22 @@ class SettingsDialog : public SettingsDialogBase
Q_OBJECT
public:
- SettingsDialog(QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ SettingsDialog(TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~SettingsDialog();
- bool isValidQtDir( const QString& path ) const;
+ bool isValidQtDir( const TQString& path ) const;
- QString qtDir() const;
- QString configuration() const;
+ TQString qtDir() const;
+ TQString configuration() const;
- QString dbName() const;
- QStringList dirs() const;
+ TQString dbName() const;
+ TQStringList dirs() const;
bool recursive() const;
- QString filePattern() const;
+ TQString filePattern() const;
private slots:
void validate();
- void validateDirectory( const QString & dir );
+ void validateDirectory( const TQString & dir );
private:
KEditListBox *elb;
diff --git a/languages/cpp/pcsimporter/kdelibsimporter/kdevkdelibsimporter.cpp b/languages/cpp/pcsimporter/kdelibsimporter/kdevkdelibsimporter.cpp
index 341256b7..a52da5d7 100644
--- a/languages/cpp/pcsimporter/kdelibsimporter/kdevkdelibsimporter.cpp
+++ b/languages/cpp/pcsimporter/kdelibsimporter/kdevkdelibsimporter.cpp
@@ -16,26 +16,26 @@
#include <kdebug.h>
#include <kgenericfactory.h>
-#include <qvaluestack.h>
-#include <qlabel.h>
-#include <qdir.h>
-#include <qcombobox.h>
+#include <tqvaluestack.h>
+#include <tqlabel.h>
+#include <tqdir.h>
+#include <tqcombobox.h>
K_EXPORT_COMPONENT_FACTORY( libkdevkdelibsimporter, KGenericFactory<KDevKDELibsImporter>( "kdevkdelibsimporter" ) )
-KDevKDELibsImporter::KDevKDELibsImporter( QObject * parent, const char * name, const QStringList& )
+KDevKDELibsImporter::KDevKDELibsImporter( TQObject * parent, const char * name, const TQStringList& )
: KDevPCSImporter( parent, name )
{}
KDevKDELibsImporter::~KDevKDELibsImporter()
{}
-QStringList KDevKDELibsImporter::fileList( const QString& path )
+TQStringList KDevKDELibsImporter::fileList( const TQString& path )
{
- QDir dir( path );
- QStringList lst = dir.entryList( "*.h" );
- QStringList fileList;
- for ( QStringList::Iterator it = lst.begin(); it != lst.end(); ++it )
+ TQDir dir( path );
+ TQStringList lst = dir.entryList( "*.h" );
+ TQStringList fileList;
+ for ( TQStringList::Iterator it = lst.begin(); it != lst.end(); ++it )
{
fileList.push_back( dir.absPath() + "/" + ( *it ) );
}
@@ -43,12 +43,12 @@ QStringList KDevKDELibsImporter::fileList( const QString& path )
}
-QStringList KDevKDELibsImporter::fileList()
+TQStringList KDevKDELibsImporter::fileList()
{
if ( !m_settings )
- return QStringList();
+ return TQStringList();
- QStringList files;
+ TQStringList files;
int scope = m_settings->cbParsingScope->currentItem();
if ( scope == 0 )
{
@@ -67,24 +67,24 @@ QStringList KDevKDELibsImporter::fileList()
}
else if ( scope == 1 )
{
- QValueStack<QString> s;
+ TQValueStack<TQString> s;
s.push( m_settings->kdeDir() );
files += fileList( m_settings->kdeDir() );
- QDir dir;
+ TQDir dir;
do
{
dir.setPath( s.pop() );
kdDebug( 9015 ) << "Examining: " << dir.path() << endl;
const QFileInfoList *dirEntries = dir.entryInfoList();
if ( !dirEntries ) continue;
- QPtrListIterator<QFileInfo> it( *dirEntries );
+ TQPtrListIterator<TQFileInfo> it( *dirEntries );
for ( ; it.current(); ++it )
{
- QString fileName = it.current() ->fileName();
+ TQString fileName = it.current() ->fileName();
if ( fileName == "." || fileName == ".." )
continue;
- QString path = it.current() ->absFilePath();
+ TQString path = it.current() ->absFilePath();
if ( it.current() ->isDir() )
{
kdDebug( 9015 ) << "Pushing: " << path << endl;
@@ -99,17 +99,17 @@ QStringList KDevKDELibsImporter::fileList()
return files;
}
-QStringList KDevKDELibsImporter::includePaths()
+TQStringList KDevKDELibsImporter::includePaths()
{
if ( !m_settings )
- return QStringList();
+ return TQStringList();
- QStringList includePaths;
+ TQStringList includePaths;
includePaths.push_back( m_settings->kdeDir() );
return includePaths;
}
-QWidget * KDevKDELibsImporter::createSettingsPage( QWidget * parent, const char * name )
+TQWidget * KDevKDELibsImporter::createSettingsPage( TQWidget * parent, const char * name )
{
m_settings = new SettingsDialog( parent, name );
return m_settings;
diff --git a/languages/cpp/pcsimporter/kdelibsimporter/kdevkdelibsimporter.h b/languages/cpp/pcsimporter/kdelibsimporter/kdevkdelibsimporter.h
index 9514f287..45cf470a 100644
--- a/languages/cpp/pcsimporter/kdelibsimporter/kdevkdelibsimporter.h
+++ b/languages/cpp/pcsimporter/kdelibsimporter/kdevkdelibsimporter.h
@@ -13,7 +13,7 @@
#define KDEVQTIMPORTER_H
#include <kdevpcsimporter.h>
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
class SettingsDialog;
@@ -21,20 +21,20 @@ class KDevKDELibsImporter : public KDevPCSImporter
{
Q_OBJECT
public:
- KDevKDELibsImporter( QObject* parent=0, const char* name=0, const QStringList& args=QStringList() );
+ KDevKDELibsImporter( TQObject* parent=0, const char* name=0, const TQStringList& args=TQStringList() );
virtual ~KDevKDELibsImporter();
- virtual QString dbName() const { return QString::fromLatin1("KDElibs"); }
- virtual QStringList fileList();
- virtual QStringList includePaths();
+ virtual TQString dbName() const { return TQString::fromLatin1("KDElibs"); }
+ virtual TQStringList fileList();
+ virtual TQStringList includePaths();
- virtual QWidget* createSettingsPage( QWidget* parent, const char* name=0 );
+ virtual TQWidget* createSettingsPage( TQWidget* parent, const char* name=0 );
private:
- QStringList fileList( const QString& path );
+ TQStringList fileList( const TQString& path );
private:
- QGuardedPtr<SettingsDialog> m_settings;
+ TQGuardedPtr<SettingsDialog> m_settings;
};
#endif
diff --git a/languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.cpp b/languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.cpp
index 29ef96e9..a0763380 100644
--- a/languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.cpp
+++ b/languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.cpp
@@ -22,30 +22,30 @@
#include <kmessagebox.h>
#include <klocale.h>
-#include <qfile.h>
-#include <qdir.h>
-#include <qregexp.h>
+#include <tqfile.h>
+#include <tqdir.h>
+#include <tqregexp.h>
#include <cstdlib>
#include "settingsdialog.h"
-QListBoxItem* QListBox_selectedItem( QListBox* cpQListBox )
+TQListBoxItem* QListBox_selectedItem( TQListBox* cpQListBox )
{
- if ( cpQListBox->selectionMode() != QListBox::Single )
+ if ( cpQListBox->selectionMode() != TQListBox::Single )
return 0;
if ( cpQListBox->isSelected( cpQListBox->currentItem() ) )
return cpQListBox->item( cpQListBox->currentItem() );
return 0;
}
-SettingsDialog::SettingsDialog( QWidget* parent, const char* name, WFlags fl )
+SettingsDialog::SettingsDialog( TQWidget* parent, const char* name, WFlags fl )
: SettingsDialogBase( parent, name, fl )
{
KApplication::kApplication()->dirs()->addResourceType("include","include");
- QStringList kdedirs=KApplication::kApplication()->dirs()->findDirs("include","");
- for( QStringList::Iterator it=kdedirs.begin(); it!=kdedirs.end(); ++it )
+ TQStringList kdedirs=KApplication::kApplication()->dirs()->findDirs("include","");
+ for( TQStringList::Iterator it=kdedirs.begin(); it!=kdedirs.end(); ++it )
{
- QString kdedir = *it;
+ TQString kdedir = *it;
if ( !kdedir.isEmpty() && isValidKDELibsDir( kdedir ) )
if ( !kdeListBox->findItem( kdedir, ExactMatch ) )
kdeListBox->insertItem( kdedir );
@@ -53,23 +53,23 @@ SettingsDialog::SettingsDialog( QWidget* parent, const char* name, WFlags fl )
kdeUrl->setMode( KFile::Directory | KFile::ExistingOnly | KFile::LocalOnly );
- connect( addUrlButton, SIGNAL(clicked()), this, SLOT(addUrlButton_clicked()) );
+ connect( addUrlButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(addUrlButton_clicked()) );
}
SettingsDialog::~SettingsDialog()
{}
-void SettingsDialog::slotSelectionChanged( QListBoxItem* )
+void SettingsDialog::slotSelectionChanged( TQListBoxItem* )
{
emit enabled( kdeListBox->selectedItem() != 0 );
}
-bool SettingsDialog::isValidKDELibsDir( const QString & path ) const
+bool SettingsDialog::isValidKDELibsDir( const TQString & path ) const
{
- return QFile::exists( path + "/kapplication.h" );
+ return TQFile::exists( path + "/kapplication.h" );
}
-QString SettingsDialog::kdeDir( ) const
+TQString SettingsDialog::kdeDir( ) const
{
return kdeListBox->currentText();
}
@@ -81,7 +81,7 @@ void SettingsDialog::addUrlButton_clicked()
if ( isValidKDELibsDir( kdeUrl->url() ) )
{
kdeListBox->insertItem( kdeUrl->url() );
- if ( QListBoxItem * item = kdeListBox->findItem( kdeUrl->url(), ExactMatch ) )
+ if ( TQListBoxItem * item = kdeListBox->findItem( kdeUrl->url(), ExactMatch ) )
{
kdeListBox->setSelected( item, true );
}
diff --git a/languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.h b/languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.h
index ba15019b..4a06dd12 100644
--- a/languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.h
+++ b/languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.h
@@ -19,17 +19,17 @@ class SettingsDialog : public SettingsDialogBase
Q_OBJECT
public:
- SettingsDialog(QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ SettingsDialog(TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~SettingsDialog();
/*$PUBLIC_FUNCTIONS$*/
- bool isValidKDELibsDir( const QString& path ) const;
+ bool isValidKDELibsDir( const TQString& path ) const;
- QString kdeDir() const;
+ TQString kdeDir() const;
public slots:
/*$PUBLIC_SLOTS$*/
- virtual void slotSelectionChanged(QListBoxItem*);
+ virtual void slotSelectionChanged(TQListBoxItem*);
protected:
/*$PROTECTED_FUNCTIONS$*/
diff --git a/languages/cpp/pcsimporter/qt4importer/kdevqt4importer.cpp b/languages/cpp/pcsimporter/qt4importer/kdevqt4importer.cpp
index f4fedea0..d4635ba4 100644
--- a/languages/cpp/pcsimporter/qt4importer/kdevqt4importer.cpp
+++ b/languages/cpp/pcsimporter/qt4importer/kdevqt4importer.cpp
@@ -18,13 +18,13 @@
#include <kprocess.h>
#include <kdebug.h>
-#include <qtextstream.h>
-#include <qlabel.h>
-#include <qdir.h>
+#include <tqtextstream.h>
+#include <tqlabel.h>
+#include <tqdir.h>
K_EXPORT_COMPONENT_FACTORY( libkdevqt4importer, KGenericFactory<KDevQt4Importer>( "kdevqt4importer" ) )
-KDevQt4Importer::KDevQt4Importer( QObject * parent, const char * name, const QStringList& )
+KDevQt4Importer::KDevQt4Importer( TQObject * parent, const char * name, const TQStringList& )
: KDevPCSImporter( parent, name )
{
m_qtfile = 0;
@@ -38,16 +38,16 @@ KDevQt4Importer::~KDevQt4Importer()
m_qtfile = 0;
}
-QStringList KDevQt4Importer::fileList()
+TQStringList KDevQt4Importer::fileList()
{
if( !m_settings )
- return QStringList();
+ return TQStringList();
if (m_qtfile)
delete m_qtfile;
KTempFile ifile;
- QTextStream &is = *ifile.textStream();
+ TQTextStream &is = *ifile.textStream();
is << "#include <QtCore/qobjectdefs.h>\n"
<< "#undef Q_SLOTS\n#undef Q_SIGNALS\n#undef slots\n#undef signals"
@@ -70,13 +70,13 @@ QStringList KDevQt4Importer::fileList()
m_qtfile = new KTempFile();
// include paths
- QStringList paths = includePaths();
- for (QStringList::Iterator it = paths.begin(); it != paths.end(); ++it)
+ TQStringList paths = includePaths();
+ for (TQStringList::Iterator it = paths.begin(); it != paths.end(); ++it)
proc << "-I" << *it;
ifile.close();
- QString o;
+ TQString o;
o += "-o";
o += m_qtfile->name();
@@ -86,12 +86,12 @@ QStringList KDevQt4Importer::fileList()
return m_qtfile->name();
}
-QStringList KDevQt4Importer::includePaths()
+TQStringList KDevQt4Importer::includePaths()
{
if( !m_settings || !m_qtfile)
- return QStringList();
+ return TQStringList();
- QStringList includePaths;
+ TQStringList includePaths;
includePaths.push_back( m_settings->qtDir() );
includePaths.push_back( m_settings->qtDir() + "/Qt" );
@@ -99,7 +99,7 @@ QStringList KDevQt4Importer::includePaths()
return includePaths;
}
-QWidget * KDevQt4Importer::createSettingsPage( QWidget * parent, const char * name )
+TQWidget * KDevQt4Importer::createSettingsPage( TQWidget * parent, const char * name )
{
m_settings = new SettingsDialog( parent, name );
return m_settings;
diff --git a/languages/cpp/pcsimporter/qt4importer/kdevqt4importer.h b/languages/cpp/pcsimporter/qt4importer/kdevqt4importer.h
index 821e6fef..c430db19 100644
--- a/languages/cpp/pcsimporter/qt4importer/kdevqt4importer.h
+++ b/languages/cpp/pcsimporter/qt4importer/kdevqt4importer.h
@@ -13,7 +13,7 @@
#define KDEVQTIMPORTER_H
#include <kdevpcsimporter.h>
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
class SettingsDialog;
class KTempFile;
@@ -22,17 +22,17 @@ class KDevQt4Importer : public KDevPCSImporter
{
Q_OBJECT
public:
- KDevQt4Importer( QObject* parent=0, const char* name=0, const QStringList& args=QStringList() );
+ KDevQt4Importer( TQObject* parent=0, const char* name=0, const TQStringList& args=TQStringList() );
virtual ~KDevQt4Importer();
- virtual QString dbName() const { return QString::fromLatin1("Qt4"); }
- virtual QStringList fileList();
- virtual QStringList includePaths();
+ virtual TQString dbName() const { return TQString::fromLatin1("Qt4"); }
+ virtual TQStringList fileList();
+ virtual TQStringList includePaths();
- virtual QWidget* createSettingsPage( QWidget* parent, const char* name=0 );
+ virtual TQWidget* createSettingsPage( TQWidget* parent, const char* name=0 );
private:
- QGuardedPtr<SettingsDialog> m_settings;
+ TQGuardedPtr<SettingsDialog> m_settings;
KTempFile *m_qtfile;
};
diff --git a/languages/cpp/pcsimporter/qt4importer/settingsdialog.cpp b/languages/cpp/pcsimporter/qt4importer/settingsdialog.cpp
index cc59c6e9..755b14c4 100644
--- a/languages/cpp/pcsimporter/qt4importer/settingsdialog.cpp
+++ b/languages/cpp/pcsimporter/qt4importer/settingsdialog.cpp
@@ -20,34 +20,34 @@
#include <kmessagebox.h>
#include <klocale.h>
-#include <qfile.h>
-#include <qdir.h>
-#include <qregexp.h>
+#include <tqfile.h>
+#include <tqdir.h>
+#include <tqregexp.h>
#include <cstdlib>
#include "settingsdialog.h"
-QListBoxItem* QListBox_selectedItem(QListBox* cpQListBox)
+TQListBoxItem* QListBox_selectedItem(TQListBox* cpQListBox)
{
- if ( cpQListBox->selectionMode() != QListBox::Single )
+ if ( cpQListBox->selectionMode() != TQListBox::Single )
return 0;
if ( cpQListBox->isSelected( cpQListBox->currentItem() ) )
return cpQListBox->item(cpQListBox->currentItem());
return 0;
}
-SettingsDialog::SettingsDialog(QWidget* parent, const char* name, WFlags fl)
+SettingsDialog::SettingsDialog(TQWidget* parent, const char* name, WFlags fl)
: SettingsDialogBase(parent,name,fl)
{
- QStringList qtdirs;
- qtdirs.push_back( ::getenv("QTDIR") + QString("/include") );
- qtdirs.push_back( QString::fromLocal8Bit(::getenv("HOME")) + "/dev/qt/include" );
- qtdirs.push_back( QString::fromLocal8Bit(::getenv("HOME")) + "/dev/qt-main/include" );
+ TQStringList qtdirs;
+ qtdirs.push_back( ::getenv("QTDIR") + 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" );
- for( QStringList::Iterator it=qtdirs.begin(); it!=qtdirs.end(); ++it )
+ for( TQStringList::Iterator it=qtdirs.begin(); it!=qtdirs.end(); ++it )
{
- QString qtdir = *it;
+ TQString qtdir = *it;
if( !qtdir.isEmpty() && isValidQtDir(qtdir) )
if (!qtListBox->findItem(qtdir, ExactMatch))
qtListBox->insertItem( qtdir );
@@ -55,14 +55,14 @@ SettingsDialog::SettingsDialog(QWidget* parent, const char* name, WFlags fl)
qtUrl->setMode( KFile::Directory | KFile::ExistingOnly | KFile::LocalOnly );
- connect( addUrlButton, SIGNAL(clicked()), this, SLOT(addUrlButton_clicked()) );
+ connect( addUrlButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(addUrlButton_clicked()) );
}
SettingsDialog::~SettingsDialog()
{
}
-void SettingsDialog::slotSelectionChanged(QListBoxItem* item)
+void SettingsDialog::slotSelectionChanged(TQListBoxItem* item)
{
if( !qtListBox->selectedItem() )
{
@@ -74,17 +74,17 @@ void SettingsDialog::slotSelectionChanged(QListBoxItem* item)
emit enabled( true );
}
-bool SettingsDialog::isValidQtDir( const QString & path ) const
+bool SettingsDialog::isValidQtDir( const TQString & path ) const
{
- return QFile::exists( path + "/QtCore/QtCore" );
+ return TQFile::exists( path + "/QtCore/QtCore" );
}
-QString SettingsDialog::qtDir( ) const
+TQString SettingsDialog::qtDir( ) const
{
return qtListBox->currentText();
}
-QString SettingsDialog::configuration( ) const
+TQString SettingsDialog::configuration( ) const
{
return "";
}
@@ -96,7 +96,7 @@ void SettingsDialog::addUrlButton_clicked( )
if ( isValidQtDir( qtUrl->url() ) )
{
qtListBox->insertItem( qtUrl->url() );
- if ( QListBoxItem * item = qtListBox->findItem( qtUrl->url(), ExactMatch ) )
+ if ( TQListBoxItem * item = qtListBox->findItem( qtUrl->url(), ExactMatch ) )
{
qtListBox->setSelected( item, true );
}
diff --git a/languages/cpp/pcsimporter/qt4importer/settingsdialog.h b/languages/cpp/pcsimporter/qt4importer/settingsdialog.h
index 1ec5663e..118564fb 100644
--- a/languages/cpp/pcsimporter/qt4importer/settingsdialog.h
+++ b/languages/cpp/pcsimporter/qt4importer/settingsdialog.h
@@ -19,18 +19,18 @@ class SettingsDialog : public SettingsDialogBase
Q_OBJECT
public:
- SettingsDialog(QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ SettingsDialog(TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~SettingsDialog();
/*$PUBLIC_FUNCTIONS$*/
- bool isValidQtDir( const QString& path ) const;
+ bool isValidQtDir( const TQString& path ) const;
- QString qtDir() const;
- QString configuration() const;
+ TQString qtDir() const;
+ TQString configuration() const;
public slots:
/*$PUBLIC_SLOTS$*/
- virtual void slotSelectionChanged(QListBoxItem*);
+ virtual void slotSelectionChanged(TQListBoxItem*);
protected:
/*$PROTECTED_FUNCTIONS$*/
diff --git a/languages/cpp/pcsimporter/qtimporter/kdevqtimporter.cpp b/languages/cpp/pcsimporter/qtimporter/kdevqtimporter.cpp
index add8574a..62eb38fd 100644
--- a/languages/cpp/pcsimporter/qtimporter/kdevqtimporter.cpp
+++ b/languages/cpp/pcsimporter/qtimporter/kdevqtimporter.cpp
@@ -15,27 +15,27 @@
#include <kgenericfactory.h>
-#include <qlabel.h>
-#include <qdir.h>
+#include <tqlabel.h>
+#include <tqdir.h>
K_EXPORT_COMPONENT_FACTORY( libkdevqtimporter, KGenericFactory<KDevQtImporter>( "kdevqtimporter" ) )
-KDevQtImporter::KDevQtImporter( QObject * parent, const char * name, const QStringList& )
+KDevQtImporter::KDevQtImporter( TQObject * parent, const char * name, const TQStringList& )
: KDevPCSImporter( parent, name )
{}
KDevQtImporter::~KDevQtImporter()
{}
-QStringList KDevQtImporter::fileList()
+TQStringList KDevQtImporter::fileList()
{
if ( !m_settings )
- return QStringList();
+ return TQStringList();
- QDir dir( m_settings->qtDir() );
- QStringList lst = dir.entryList( "*.h" );
- QStringList fileList;
- for ( QStringList::Iterator it = lst.begin(); it != lst.end(); ++it )
+ TQDir dir( m_settings->qtDir() );
+ TQStringList lst = dir.entryList( "*.h" );
+ TQStringList fileList;
+ for ( TQStringList::Iterator it = lst.begin(); it != lst.end(); ++it )
{
if ( ( *it ).startsWith( "qconfig-" ) )
{
@@ -50,12 +50,12 @@ QStringList KDevQtImporter::fileList()
return fileList;
}
-QStringList KDevQtImporter::includePaths()
+TQStringList KDevQtImporter::includePaths()
{
if ( !m_settings )
- return QStringList();
+ return TQStringList();
- QStringList includePaths;
+ TQStringList includePaths;
includePaths.push_back( m_settings->qtDir() );
includePaths.push_back( m_settings->qtDir() + "/private" );
includePaths.push_back( m_settings->qtDir() + "/default" );
@@ -64,7 +64,7 @@ QStringList KDevQtImporter::includePaths()
return includePaths;
}
-QWidget * KDevQtImporter::createSettingsPage( QWidget * parent, const char * name )
+TQWidget * KDevQtImporter::createSettingsPage( TQWidget * parent, const char * name )
{
m_settings = new SettingsDialog( parent, name );
return m_settings;
diff --git a/languages/cpp/pcsimporter/qtimporter/kdevqtimporter.h b/languages/cpp/pcsimporter/qtimporter/kdevqtimporter.h
index c53b0a8a..3ae35b96 100644
--- a/languages/cpp/pcsimporter/qtimporter/kdevqtimporter.h
+++ b/languages/cpp/pcsimporter/qtimporter/kdevqtimporter.h
@@ -13,7 +13,7 @@
#define KDEVQTIMPORTER_H
#include <kdevpcsimporter.h>
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
class SettingsDialog;
@@ -21,17 +21,17 @@ class KDevQtImporter : public KDevPCSImporter
{
Q_OBJECT
public:
- KDevQtImporter( QObject* parent=0, const char* name=0, const QStringList& args=QStringList() );
+ KDevQtImporter( TQObject* parent=0, const char* name=0, const TQStringList& args=TQStringList() );
virtual ~KDevQtImporter();
- virtual QString dbName() const { return QString::fromLatin1("Qt"); }
- virtual QStringList fileList();
- virtual QStringList includePaths();
+ virtual TQString dbName() const { return TQString::fromLatin1("Qt"); }
+ virtual TQStringList fileList();
+ virtual TQStringList includePaths();
- virtual QWidget* createSettingsPage( QWidget* parent, const char* name=0 );
+ virtual TQWidget* createSettingsPage( TQWidget* parent, const char* name=0 );
private:
- QGuardedPtr<SettingsDialog> m_settings;
+ TQGuardedPtr<SettingsDialog> m_settings;
};
#endif
diff --git a/languages/cpp/pcsimporter/qtimporter/settingsdialog.cpp b/languages/cpp/pcsimporter/qtimporter/settingsdialog.cpp
index b0db10cc..2df475b7 100644
--- a/languages/cpp/pcsimporter/qtimporter/settingsdialog.cpp
+++ b/languages/cpp/pcsimporter/qtimporter/settingsdialog.cpp
@@ -20,35 +20,35 @@
#include <kmessagebox.h>
#include <klocale.h>
-#include <qfile.h>
-#include <qdir.h>
-#include <qregexp.h>
+#include <tqfile.h>
+#include <tqdir.h>
+#include <tqregexp.h>
#include <cstdlib>
#include "settingsdialog.h"
-QListBoxItem* QListBox_selectedItem( QListBox* cpQListBox )
+TQListBoxItem* QListBox_selectedItem( TQListBox* cpQListBox )
{
- if ( cpQListBox->selectionMode() != QListBox::Single )
+ if ( cpQListBox->selectionMode() != TQListBox::Single )
return 0;
if ( cpQListBox->isSelected( cpQListBox->currentItem() ) )
return cpQListBox->item( cpQListBox->currentItem() );
return 0;
}
-SettingsDialog::SettingsDialog( QWidget* parent, const char* name, WFlags fl )
+SettingsDialog::SettingsDialog( TQWidget* parent, const char* name, WFlags fl )
: SettingsDialogBase( parent, name, fl )
{
- QStringList qtdirs;
- qtdirs.push_back( ::getenv( "QTDIR" ) + QString("/include") );
+ TQStringList qtdirs;
+ qtdirs.push_back( ::getenv( "QTDIR" ) + TQString("/include") );
qtdirs.push_back( "/usr/lib/qt3/include" );
qtdirs.push_back( "/usr/lib/qt/include" );
qtdirs.push_back( "/usr/share/qt3/include" );
qtdirs.push_back( "/usr/qt/3/include" ); // gentoo style
- for ( QStringList::Iterator it = qtdirs.begin(); it != qtdirs.end(); ++it )
+ for ( TQStringList::Iterator it = qtdirs.begin(); it != qtdirs.end(); ++it )
{
- QString qtdir = *it;
+ TQString qtdir = *it;
if ( !qtdir.isEmpty() && isValidQtDir( qtdir ) )
if ( !qtListBox->findItem( qtdir, ExactMatch ) )
qtListBox->insertItem( qtdir );
@@ -56,13 +56,13 @@ SettingsDialog::SettingsDialog( QWidget* parent, const char* name, WFlags fl )
qtUrl->setMode( KFile::Directory | KFile::ExistingOnly | KFile::LocalOnly );
- connect( addUrlButton, SIGNAL(clicked()), this, SLOT(addUrlButton_clicked()) );
+ connect( addUrlButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(addUrlButton_clicked()) );
}
SettingsDialog::~SettingsDialog()
{}
-void SettingsDialog::slotSelectionChanged( QListBoxItem* )
+void SettingsDialog::slotSelectionChanged( TQListBoxItem* )
{
if ( !qtListBox->selectedItem() )
{
@@ -70,11 +70,11 @@ void SettingsDialog::slotSelectionChanged( QListBoxItem* )
return ;
}
- QDir dir( qtDir() );
- QStringList qconfigFileList = dir.entryList( "qconfig-*.h" );
+ TQDir dir( qtDir() );
+ TQStringList qconfigFileList = dir.entryList( "qconfig-*.h" );
qtConfiguration->clear();
- QRegExp rx( "qconfig-(\\w+)\\.h" );
- for ( QStringList::Iterator it = qconfigFileList.begin(); it != qconfigFileList.end(); ++it )
+ TQRegExp rx( "qconfig-(\\w+)\\.h" );
+ for ( TQStringList::Iterator it = qconfigFileList.begin(); it != qconfigFileList.end(); ++it )
{
( void ) rx.exactMatch( *it );
qtConfiguration->insertItem( rx.cap( 1 ) );
@@ -83,17 +83,17 @@ void SettingsDialog::slotSelectionChanged( QListBoxItem* )
emit enabled( true );
}
-bool SettingsDialog::isValidQtDir( const QString & path ) const
+bool SettingsDialog::isValidQtDir( const TQString & path ) const
{
- return QFile::exists( path + "/qt.h" );
+ return TQFile::exists( path + "/tqt.h" );
}
-QString SettingsDialog::qtDir( ) const
+TQString SettingsDialog::qtDir( ) const
{
return qtListBox->currentText();
}
-QString SettingsDialog::configuration( ) const
+TQString SettingsDialog::configuration( ) const
{
return qtConfiguration->currentText();
}
@@ -104,7 +104,7 @@ void SettingsDialog::addUrlButton_clicked( )
if ( isValidQtDir( qtUrl->url() ) )
{
qtListBox->insertItem( qtUrl->url() );
- if ( QListBoxItem * item = qtListBox->findItem( qtUrl->url(), ExactMatch ) )
+ if ( TQListBoxItem * item = qtListBox->findItem( qtUrl->url(), ExactMatch ) )
{
qtListBox->setSelected( item, true );
}
diff --git a/languages/cpp/pcsimporter/qtimporter/settingsdialog.h b/languages/cpp/pcsimporter/qtimporter/settingsdialog.h
index 1ec5663e..118564fb 100644
--- a/languages/cpp/pcsimporter/qtimporter/settingsdialog.h
+++ b/languages/cpp/pcsimporter/qtimporter/settingsdialog.h
@@ -19,18 +19,18 @@ class SettingsDialog : public SettingsDialogBase
Q_OBJECT
public:
- SettingsDialog(QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ SettingsDialog(TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~SettingsDialog();
/*$PUBLIC_FUNCTIONS$*/
- bool isValidQtDir( const QString& path ) const;
+ bool isValidQtDir( const TQString& path ) const;
- QString qtDir() const;
- QString configuration() const;
+ TQString qtDir() const;
+ TQString configuration() const;
public slots:
/*$PUBLIC_SLOTS$*/
- virtual void slotSelectionChanged(QListBoxItem*);
+ virtual void slotSelectionChanged(TQListBoxItem*);
protected:
/*$PROTECTED_FUNCTIONS$*/
diff --git a/languages/cpp/problemreporter.cpp b/languages/cpp/problemreporter.cpp
index 55ca30a8..c7a8e9b6 100644
--- a/languages/cpp/problemreporter.cpp
+++ b/languages/cpp/problemreporter.cpp
@@ -44,30 +44,30 @@
#include <kconfig.h>
-#include <qtimer.h>
-#include <qregexp.h>
-#include <qvbox.h>
-#include <qfileinfo.h>
-#include <qwhatsthis.h>
-#include <qtabbar.h>
-#include <qwidgetstack.h>
-#include <qlayout.h>
-#include <qlineedit.h>
+#include <tqtimer.h>
+#include <tqregexp.h>
+#include <tqvbox.h>
+#include <tqfileinfo.h>
+#include <tqwhatsthis.h>
+#include <tqtabbar.h>
+#include <tqwidgetstack.h>
+#include <tqlayout.h>
+#include <tqlineedit.h>
class ProblemItem: public KListViewItem
{
public:
- ProblemItem( QListView* parent, const QString& problem,
- const QString& file, const QString& line, const QString& column )
+ ProblemItem( TQListView* parent, const TQString& problem,
+ const TQString& file, const TQString& line, const TQString& column )
: KListViewItem( parent, problem, file, line, column )
{}
- ProblemItem( QListViewItem* parent, const QString& problem,
- const QString& file, const QString& line, const QString& column )
+ ProblemItem( TQListViewItem* parent, const TQString& problem,
+ const TQString& file, const TQString& line, const TQString& column )
: KListViewItem( parent, problem, file, line, column )
{}
- int compare( QListViewItem* item, int column, bool ascending ) const
+ int compare( TQListViewItem* item, int column, bool ascending ) const
{
if ( column == 1 || column == 2 )
{
@@ -82,22 +82,22 @@ public:
};
-ProblemReporter::ProblemReporter( CppSupportPart* part, QWidget* parent, const char* name )
-: QWidget( parent, name ? name : "problemreporter" ),
+ProblemReporter::ProblemReporter( CppSupportPart* part, TQWidget* parent, const char* name )
+: TQWidget( parent, name ? name : "problemreporter" ),
m_cppSupport( part ),
// m_document( 0 ),
m_markIface( 0 )
{
- QWhatsThis::add(this, i18n("<b>Problem reporter</b><p>This window shows various \"problems\" in your project. "
+ TQWhatsThis::add(this, i18n("<b>Problem reporter</b><p>This window shows various \"problems\" in your project. "
"It displays TODO entries, FIXME's and errors reported by a language parser. "
"To add a TODO or FIXME entry, just type<br>"
"<tt>//@todo my todo</tt><br>"
"<tt>//TODO: my todo</tt><br>"
"<tt>//FIXME fix this</tt>"));
- m_initCurrentTimer = new QTimer( this );
- connect( m_initCurrentTimer, SIGNAL(timeout()), this, SLOT(initCurrentList()) );
- m_gridLayout = new QGridLayout(this,2,3);
+ m_initCurrentTimer = new TQTimer( this );
+ connect( m_initCurrentTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(initCurrentList()) );
+ m_gridLayout = new TQGridLayout(this,2,3);
m_errorList = new KListView(this);
m_warningList = new KListView(this);
@@ -118,7 +118,7 @@ m_markIface( 0 )
InitListView(m_currentList);
m_currentList->removeColumn(1);
- m_widgetStack = new QWidgetStack(this);
+ m_widgetStack = new TQWidgetStack(this);
m_widgetStack->addWidget(m_currentList,0);
m_widgetStack->addWidget(m_errorList,1);
m_widgetStack->addWidget(m_warningList,2);
@@ -126,38 +126,38 @@ m_markIface( 0 )
m_widgetStack->addWidget(m_todoList,4);
m_widgetStack->addWidget(m_filteredList,5);
- m_tabBar = new QTabBar(this);
- m_tabBar->insertTab(new QTab(i18n("Current")),0);
- m_tabBar->insertTab(new QTab(i18n("Errors")),1);
- m_tabBar->insertTab(new QTab(i18n("Warnings")),2);
- m_tabBar->insertTab(new QTab(i18n("Fixme")),3);
- m_tabBar->insertTab(new QTab(i18n("Todo")),4);
- m_tabBar->insertTab(new QTab(i18n("Filtered")),5);
+ m_tabBar = new TQTabBar(this);
+ m_tabBar->insertTab(new TQTab(i18n("Current")),0);
+ m_tabBar->insertTab(new TQTab(i18n("Errors")),1);
+ m_tabBar->insertTab(new TQTab(i18n("Warnings")),2);
+ m_tabBar->insertTab(new TQTab(i18n("Fixme")),3);
+ m_tabBar->insertTab(new TQTab(i18n("Todo")),4);
+ m_tabBar->insertTab(new TQTab(i18n("Filtered")),5);
m_tabBar->setTabEnabled(0,false);
m_tabBar->setTabEnabled(5,false);
m_filterEdit = new KLineEdit(this);
- QLabel* m_filterLabel = new QLabel(i18n("Lookup:"),this);
+ TQLabel* m_filterLabel = new TQLabel(i18n("Lookup:"),this);
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);
- connect( m_filterEdit, SIGNAL(returnPressed()),
- this, SLOT(slotFilter()) );
- connect( m_filterEdit, SIGNAL(textChanged( const QString & )),
- this, SLOT(slotFilter()) );
- connect( m_tabBar, SIGNAL(selected(int)),
- this, SLOT(slotTabSelected(int)) );
- connect( part->partController(), SIGNAL(activePartChanged(KParts::Part*)),
- this, SLOT(slotActivePartChanged(KParts::Part*)) );
- connect( part->partController(), SIGNAL(partAdded(KParts::Part*)),
- this, SLOT(slotPartAdded(KParts::Part*)) );
+ connect( m_filterEdit, TQT_SIGNAL(returnPressed()),
+ this, TQT_SLOT(slotFilter()) );
+ connect( m_filterEdit, TQT_SIGNAL(textChanged( const TQString & )),
+ this, TQT_SLOT(slotFilter()) );
+ connect( m_tabBar, TQT_SIGNAL(selected(int)),
+ this, TQT_SLOT(slotTabSelected(int)) );
+ connect( part->partController(), TQT_SIGNAL(activePartChanged(KParts::Part*)),
+ this, TQT_SLOT(slotActivePartChanged(KParts::Part*)) );
+ connect( part->partController(), TQT_SIGNAL(partAdded(KParts::Part*)),
+ this, TQT_SLOT(slotPartAdded(KParts::Part*)) );
// any editors that were open when we loaded the project needs to have their markType07 icon set too..
- QPtrListIterator<KParts::Part> it( *m_cppSupport->partController()->parts() );
+ TQPtrListIterator<KParts::Part> it( *m_cppSupport->partController()->parts() );
while( it.current() )
{
if ( KTextEditor::MarkInterfaceExtension* iface = dynamic_cast<KTextEditor::MarkInterfaceExtension*>( it.current() ) )
@@ -193,9 +193,9 @@ void ProblemReporter::slotFilter()
}
-void ProblemReporter::filterList(KListView* listview, const QString& level)
+void ProblemReporter::filterList(KListView* listview, const TQString& level)
{
- QListViewItemIterator it( listview );
+ TQListViewItemIterator it( listview );
while ( it.current() )
{
if ( it.current()->text(3).contains(m_filterEdit->text(),false))
@@ -221,11 +221,11 @@ void ProblemReporter::InitListView(KListView* listview)
listview->addColumn( i18n("Problem") );
listview->setAllColumnsShowFocus( TRUE );
- connect( listview, SIGNAL(executed(QListViewItem*)),
- this, SLOT(slotSelected(QListViewItem*)) );
+ connect( listview, TQT_SIGNAL(executed(TQListViewItem*)),
+ this, TQT_SLOT(slotSelected(TQListViewItem*)) );
- connect( listview, SIGNAL(returnPressed(QListViewItem*)),
- this, SLOT(slotSelected(QListViewItem* )) );
+ connect( listview, TQT_SIGNAL(returnPressed(TQListViewItem*)),
+ this, TQT_SLOT(slotSelected(TQListViewItem* )) );
}
@@ -255,15 +255,15 @@ void EfficientKListView::limitSize( int size )
{
if( m_map.size() <= size + 50 ) return;
- QMap<int, HashedString> backMap;
+ TQMap<int, HashedString> backMap;
for( InsertionMap::const_iterator it = m_insertionNumbers.begin(); it != m_insertionNumbers.end(); ++it )
backMap[ (*it).second ] = (*it).first;
- for( QMap<int, HashedString>::const_iterator it = backMap.begin(); it != backMap.end() && m_map.size() > size; ++it )
+ for( TQMap<int, HashedString>::const_iterator it = backMap.begin(); it != backMap.end() && m_map.size() > size; ++it )
removeAllItems( (*it).str() );
}
-void EfficientKListView::removeAllItems( const QString& str )
+void EfficientKListView::removeAllItems( const TQString& str )
{
HashedString h(str);
m_insertionNumbers.erase( h ) ;
@@ -277,9 +277,9 @@ void EfficientKListView::removeAllItems( const QString& str )
m_map.erase( p.first, p.second );
}
-void ProblemReporter::removeAllProblems( const QString& filename )
+void ProblemReporter::removeAllProblems( const TQString& filename )
{
- QString relFileName = m_cppSupport->project()->relativeProjectFile(filename);
+ TQString relFileName = m_cppSupport->project()->relativeProjectFile(filename);
kdDebug(9007) << "ProblemReporter::removeAllProblems()" << relFileName << endl;
@@ -295,8 +295,8 @@ void ProblemReporter::removeAllProblems( const QString& filename )
if( m_markIface )
{
- QPtrList<KTextEditor::Mark> marks = m_markIface->marks();
- QPtrListIterator<KTextEditor::Mark> it( marks );
+ TQPtrList<KTextEditor::Mark> marks = m_markIface->marks();
+ TQPtrListIterator<KTextEditor::Mark> it( marks );
while( it.current() )
{
m_markIface->removeMark( it.current()->line, KTextEditor::MarkInterface::markType07 );
@@ -310,7 +310,7 @@ void ProblemReporter::initCurrentList()
{
m_tabBar->setTabEnabled(0,true);
- QString relFileName = m_cppSupport->project()->relativeProjectFile(m_fileName);
+ TQString relFileName = m_cppSupport->project()->relativeProjectFile(m_fileName);
m_currentList->clear();
@@ -322,14 +322,14 @@ void ProblemReporter::initCurrentList()
// m_tabBar->setCurrentTab(0);
}
-void ProblemReporter::updateCurrentWith(EfficientKListView& listview, const QString& level, const QString& filename)
+void ProblemReporter::updateCurrentWith(EfficientKListView& listview, const TQString& level, const TQString& filename)
{
EfficientKListView::Range r = listview.getRange( filename );
for( ; r.first != r.second; ++r.first )
new ProblemItem(m_currentList,level,(*r.first).second->text(1),(*r.first).second->text(2),(*r.first).second->text(3));
}
-void ProblemReporter::slotSelected( QListViewItem* item )
+void ProblemReporter::slotSelected( TQListViewItem* item )
{
bool is_filtered = false;
bool is_current = false;
@@ -345,20 +345,20 @@ void ProblemReporter::slotSelected( QListViewItem* item )
m_cppSupport->partController()->editDocument( url, line-1 );
}
-bool ProblemReporter::hasErrors( const QString& fileName ) {
+bool ProblemReporter::hasErrors( const TQString& fileName ) {
return m_errorList.hasItem( fileName );
}
-void ProblemReporter::reportProblem( const QString& fileName, const Problem& p )
+void ProblemReporter::reportProblem( const TQString& fileName, const Problem& p )
{
int markType = levelToMarkType( p.level() );
if( markType != -1 && m_markIface && m_fileName == fileName )
m_markIface->addMark( p.line(), markType );
- QString msg = p.text();
- msg = msg.replace( QRegExp("\n"), "" );
+ TQString msg = p.text();
+ msg = msg.replace( TQRegExp("\n"), "" );
- QString relFileName = m_cppSupport->project()->relativeProjectFile(fileName);
+ TQString relFileName = m_cppSupport->project()->relativeProjectFile(fileName);
EfficientKListView* list;
@@ -384,8 +384,8 @@ void ProblemReporter::reportProblem( const QString& fileName, const Problem& p )
{
list->addItem( relFileName, new ProblemItem( *list,
relFileName,
- QString::number( p.line() + 1 ),
- QString::number( p.column() + 1 ),
+ TQString::number( p.line() + 1 ),
+ TQString::number( p.column() + 1 ),
msg ) );
}
@@ -403,20 +403,20 @@ void ProblemReporter::slotPartAdded( KParts::Part* part )
iface->setPixmap( KTextEditor::MarkInterface::markType07, SmallIcon("stop") );
}
-QString ProblemReporter::levelToString( int level ) const
+TQString ProblemReporter::levelToString( int level ) const
{
switch( level )
{
case Problem::Level_Error:
- return QString( i18n("Error") );
+ return TQString( i18n("Error") );
case Problem::Level_Warning:
- return QString( i18n("Warning") );
+ return TQString( i18n("Warning") );
case Problem::Level_Todo:
- return QString( i18n("Todo") );
+ return TQString( i18n("Todo") );
case Problem::Level_Fixme:
- return QString( i18n("Fixme") );
+ return TQString( i18n("Fixme") );
default:
- return QString::null;
+ return TQString::null;
}
}
diff --git a/languages/cpp/problemreporter.h b/languages/cpp/problemreporter.h
index d63c2cda..2d5741f4 100644
--- a/languages/cpp/problemreporter.h
+++ b/languages/cpp/problemreporter.h
@@ -21,8 +21,8 @@
#include <klistview.h>
#include <klineedit.h>
-#include <qguardedptr.h>
-#include <qdatetime.h>
+#include <tqguardedptr.h>
+#include <tqdatetime.h>
#include <map>
#include <ext/hash_map>
#include "hashedstring.h"
@@ -38,7 +38,7 @@ class KURL;
class EfficientKListView {
public:
- typedef __gnu_cxx::hash_multimap<HashedString, QListViewItem*> Map;
+ typedef __gnu_cxx::hash_multimap<HashedString, TQListViewItem*> Map;
typedef std::pair< Map::const_iterator, Map::const_iterator > Range;
EfficientKListView( KListView* list = 0 ) : m_list( list ), m_insertionNumber( 0 ) {
}
@@ -64,22 +64,22 @@ public:
return m_list;
}
- void addItem( const QString& str, QListViewItem* item ) {
+ void addItem( const TQString& str, TQListViewItem* item ) {
HashedString h( str );
m_insertionNumbers[h] = ++m_insertionNumber;
m_map.insert( std::make_pair( h, item ) );
}
- Range getRange( const QString& str ) const {
+ Range getRange( const TQString& str ) const {
return m_map.equal_range( HashedString(str) );
}
///If the list has more then size items, the first items are removed until the size fits.
void limitSize( int size );
- void removeAllItems( const QString& str );
+ void removeAllItems( const TQString& str );
- bool hasItem( const QString& str ) const {
+ bool hasItem( const TQString& str ) const {
Map::const_iterator it = m_map.find( HashedString(str) );
return it != m_map.end();
}
@@ -106,36 +106,36 @@ class ProblemReporter: public QWidget
{
Q_OBJECT
public:
- ProblemReporter( CppSupportPart* part, QWidget* parent = 0, const char* name = 0 );
+ ProblemReporter( CppSupportPart* part, TQWidget* parent = 0, const char* name = 0 );
virtual ~ProblemReporter();
- void removeAllProblems( const QString& filename );
- void reportProblem( const QString& fileName, const Problem& p );
- bool hasErrors(const QString& file);
+ void removeAllProblems( const TQString& filename );
+ void reportProblem( const TQString& fileName, const Problem& p );
+ bool hasErrors(const TQString& file);
public slots:
private slots:
void slotPartAdded( KParts::Part* );
void slotActivePartChanged( KParts::Part* );
- void slotSelected( QListViewItem* );
+ void slotSelected( TQListViewItem* );
void slotTabSelected( int tabindex );
void slotFilter();
void initCurrentList();
private:
- QString levelToString( int level ) const;
+ TQString levelToString( int level ) const;
int levelToMarkType( int level ) const;
void InitListView( KListView* listview );
- void filterList( KListView* listview, const QString& level );
- void updateCurrentWith( EfficientKListView& listview, const QString& level, const QString& filename );
+ void filterList( KListView* listview, const TQString& level );
+ void updateCurrentWith( EfficientKListView& listview, const TQString& level, const TQString& filename );
private:
- QGridLayout* m_gridLayout;
- QTabBar* m_tabBar;
- QWidgetStack* m_widgetStack;
+ TQGridLayout* m_gridLayout;
+ TQTabBar* m_tabBar;
+ TQWidgetStack* m_widgetStack;
KListView* m_currentList;
- QTimer* m_initCurrentTimer;
+ TQTimer* m_initCurrentTimer;
EfficientKListView m_errorList;
EfficientKListView m_fixmeList;
EfficientKListView m_todoList;
@@ -145,7 +145,7 @@ private:
CppSupportPart* m_cppSupport;
KTextEditor::MarkInterface* m_markIface;
- QString m_fileName;
+ TQString m_fileName;
///@todo move these to cppsupportpart
int m_active;
diff --git a/languages/cpp/qtbuildconfig.cpp b/languages/cpp/qtbuildconfig.cpp
index f2972fdd..46fa7897 100644
--- a/languages/cpp/qtbuildconfig.cpp
+++ b/languages/cpp/qtbuildconfig.cpp
@@ -21,14 +21,14 @@
#include <domutil.h>
#include <kdebug.h>
-#include <qdom.h>
+#include <tqdom.h>
#include <stdlib.h>
-const QString QtBuildConfig::m_configRoot = QString( "/kdevcppsupport/qt" );
+const TQString QtBuildConfig::m_configRoot = TQString( "/kdevcppsupport/qt" );
-QtBuildConfig::QtBuildConfig( CppSupportPart * part, QDomDocument* dom )
- : QObject( part ), m_part( part ), m_dom( dom )
+QtBuildConfig::QtBuildConfig( CppSupportPart * part, TQDomDocument* dom )
+ : TQObject( part ), m_part( part ), m_dom( dom )
{
init();
}
@@ -61,13 +61,13 @@ void QtBuildConfig::init( )
}
if( m_qmakePath.isEmpty() || !isExecutable( m_qmakePath ) )
{
- m_qmakePath = findExecutable( "qmake-qt"+ QString::number( m_version ) );
+ m_qmakePath = findExecutable( "qmake-qt"+ TQString::number( m_version ) );
if( m_qmakePath.isEmpty() || !isExecutable( m_qmakePath ) )
m_qmakePath = findExecutable( "qmake" );
}
if( m_designerPath.isEmpty() || !isExecutable( m_designerPath ) )
{
- m_designerPath = findExecutable( "designer-qt"+QString::number( m_version ) );
+ m_designerPath = findExecutable( "designer-qt"+TQString::number( m_version ) );
if( m_designerPath.isEmpty() || !isExecutable( m_designerPath ) )
m_designerPath = findExecutable( "designer" );
}
@@ -83,45 +83,45 @@ void QtBuildConfig::init( )
}
}
-bool QtBuildConfig::isValidQtDir( const QString& path ) const
+bool QtBuildConfig::isValidQtDir( const TQString& path ) const
{
- QFileInfo inc( path + QString( QChar( QDir::separator() ) )+
- "include"+QString( QChar( QDir::separator() ) )+
- "qt.h" );
+ TQFileInfo inc( path + TQString( TQChar( TQDir::separator() ) )+
+ "include"+TQString( TQChar( TQDir::separator() ) )+
+ "tqt.h" );
return ( m_version == 4 || ( m_version != 4 && inc.exists() ) );
}
-void QtBuildConfig::buildBinDirs( QStringList & dirs ) const
+void QtBuildConfig::buildBinDirs( TQStringList & dirs ) const
{
if( m_version == 3 )
{
if( !m_root.isEmpty() )
- dirs << (m_root + QString( QChar( QDir::separator() ) ) + "bin");
- dirs << (::getenv("QTDIR") + QString( QChar( QDir::separator() ) ) + "bin");
+ dirs << (m_root + TQString( TQChar( TQDir::separator() ) ) + "bin");
+ dirs << (::getenv("QTDIR") + TQString( TQChar( TQDir::separator() ) ) + "bin");
}
- QStringList paths = QStringList::split(":",::getenv("PATH"));
+ TQStringList paths = TQStringList::split(":",::getenv("PATH"));
dirs += paths;
- QString binpath = QDir::rootDirPath() + "bin";
+ TQString binpath = TQDir::rootDirPath() + "bin";
if( dirs.findIndex( binpath ) != -1 )
dirs << binpath;
- binpath = QDir::rootDirPath() + "usr" + QString( QChar( QDir::separator() ) ) + "bin";
+ binpath = TQDir::rootDirPath() + "usr" + TQString( TQChar( TQDir::separator() ) ) + "bin";
if( dirs.findIndex( binpath ) != -1 )
dirs << binpath;
- binpath = QDir::rootDirPath() + "usr" + QString( QChar( QDir::separator() ) ) + "local" + QString( QChar( QDir::separator() ) ) + "bin";
+ binpath = TQDir::rootDirPath() + "usr" + TQString( TQChar( TQDir::separator() ) ) + "local" + TQString( TQChar( TQDir::separator() ) ) + "bin";
if( dirs.findIndex( binpath ) != -1 )
dirs << binpath;
}
-QString QtBuildConfig::findExecutable( const QString& execname ) const
+TQString QtBuildConfig::findExecutable( const TQString& execname ) const
{
- QStringList dirs;
+ TQStringList dirs;
buildBinDirs( dirs );
- for( QStringList::Iterator it=dirs.begin(); it!=dirs.end(); ++it )
+ for( TQStringList::Iterator it=dirs.begin(); it!=dirs.end(); ++it )
{
- QString designer = *it + QString( QChar( QDir::separator() ) ) + execname;
+ TQString designer = *it + TQString( TQChar( TQDir::separator() ) ) + execname;
if( !designer.isEmpty() && isExecutable( designer ) )
{
return designer;
@@ -130,26 +130,26 @@ QString QtBuildConfig::findExecutable( const QString& execname ) const
return "";
}
-bool QtBuildConfig::isExecutable( const QString& path ) const
+bool QtBuildConfig::isExecutable( const TQString& path ) const
{
- QFileInfo fi(path);
+ TQFileInfo fi(path);
return( fi.exists() && fi.isExecutable() );
}
void QtBuildConfig::findQtDir()
{
- QStringList qtdirs;
+ TQStringList qtdirs;
if( m_version == 3 )
qtdirs.push_back( ::getenv("QTDIR") );
- qtdirs.push_back( QDir::rootDirPath()+"usr"+QString( QChar( QDir::separator() ) )+"lib"+QString( QChar( QDir::separator() ) )+"qt"+QString("%1").arg( m_version ) );
- qtdirs.push_back( QDir::rootDirPath()+"usr"+QString( QChar( QDir::separator() ) )+"lib"+QString( QChar( QDir::separator() ) )+"qt"+QString( QChar( QDir::separator() ) )+QString("%1").arg( m_version ) );
- qtdirs.push_back( QDir::rootDirPath()+"usr"+QString( QChar( QDir::separator() ) )+"share"+QString( QChar( QDir::separator() ) )+"qt"+QString("%1").arg( m_version ) );
- qtdirs.push_back( QDir::rootDirPath()+"usr" );
- qtdirs.push_back( QDir::rootDirPath()+"usr"+QString( QChar( QDir::separator() ) )+"lib"+QString( QChar( QDir::separator() ) )+"qt" );
+ 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( TQDir::rootDirPath()+"usr" );
+ qtdirs.push_back( TQDir::rootDirPath()+"usr"+TQString( TQChar( TQDir::separator() ) )+"lib"+TQString( TQChar( TQDir::separator() ) )+"qt" );
- for( QStringList::Iterator it=qtdirs.begin(); it!=qtdirs.end(); ++it )
+ for( TQStringList::Iterator it=qtdirs.begin(); it!=qtdirs.end(); ++it )
{
- QString qtdir = *it;
+ TQString qtdir = *it;
if( !qtdir.isEmpty() && isValidQtDir(qtdir) )
{
m_root = qtdir;
@@ -187,27 +187,27 @@ void QtBuildConfig::setIncludeStyle( int style )
m_includeStyle = style;
}
-void QtBuildConfig::setRoot( const QString& root )
+void QtBuildConfig::setRoot( const TQString& root )
{
m_root = root;
}
-void QtBuildConfig::setQMakePath( const QString& path )
+void QtBuildConfig::setQMakePath( const TQString& path )
{
m_qmakePath = path;
}
-void QtBuildConfig::setDesignerPluginPaths( const QStringList& pfx )
+void QtBuildConfig::setDesignerPluginPaths( const TQStringList& pfx )
{
m_designerPluginPaths = pfx;
}
-void QtBuildConfig::setDesignerPath( const QString& path )
+void QtBuildConfig::setDesignerPath( const TQString& path )
{
m_designerPath = path;
}
-void QtBuildConfig::setDesignerIntegration( const QString& designerIntegration )
+void QtBuildConfig::setDesignerIntegration( const TQString& designerIntegration )
{
m_designerIntegration = designerIntegration;
}
diff --git a/languages/cpp/qtbuildconfig.h b/languages/cpp/qtbuildconfig.h
index 6042281d..d9790111 100644
--- a/languages/cpp/qtbuildconfig.h
+++ b/languages/cpp/qtbuildconfig.h
@@ -18,8 +18,8 @@
#ifndef QTBUILDCONFIG_H
#define QTBUILDCONFIG_H
-#include <qobject.h>
-#include <qstringlist.h>
+#include <tqobject.h>
+#include <tqstringlist.h>
class CppSupportPart;
class QDomDocument;
@@ -34,26 +34,26 @@ class QtBuildConfig : public QObject
Q_OBJECT
public:
- QtBuildConfig( CppSupportPart* part, QDomDocument* dom );
+ QtBuildConfig( CppSupportPart* part, TQDomDocument* dom );
virtual ~QtBuildConfig();
inline bool isUsed() const { return m_used; }
inline int version() const { return m_version; }
inline int includeStyle() const { return m_includeStyle; }
- inline const QString& root() const { return m_root; }
- inline const QString& qmakePath() const { return m_qmakePath; }
- inline const QString& designerPath() const { return m_designerPath; }
- inline const QStringList& designerPluginPaths() const { return m_designerPluginPaths; }
- inline const QString& designerIntegration() const { return m_designerIntegration; }
+ inline const TQString& root() const { return m_root; }
+ inline const TQString& qmakePath() const { return m_qmakePath; }
+ inline const TQString& designerPath() const { return m_designerPath; }
+ inline const TQStringList& designerPluginPaths() const { return m_designerPluginPaths; }
+ inline const TQString& designerIntegration() const { return m_designerIntegration; }
void setUsed( bool used );
void setVersion( int version );
void setIncludeStyle( int style );
- void setRoot( const QString& root );
- void setDesignerPath( const QString& path );
- void setDesignerPluginPaths( const QStringList& pfx );
- void setQMakePath( const QString& path );
- void setDesignerIntegration( const QString& designerIntegration );
+ void setRoot( const TQString& root );
+ void setDesignerPath( const TQString& path );
+ void setDesignerPluginPaths( const TQStringList& pfx );
+ void setQMakePath( const TQString& path );
+ void setDesignerIntegration( const TQString& designerIntegration );
void init();
public slots:
@@ -64,25 +64,25 @@ signals:
private:
- bool isValidQtDir( const QString& ) const;
+ bool isValidQtDir( const TQString& ) const;
void findQtDir();
- QString findExecutable( const QString& ) const;
- void buildBinDirs( QStringList& ) const;
- bool isExecutable( const QString& ) const;
+ TQString findExecutable( const TQString& ) const;
+ void buildBinDirs( TQStringList& ) const;
+ bool isExecutable( const TQString& ) const;
CppSupportPart* m_part; ///< The cpp support part
- QDomDocument* m_dom; ///< The project configuration
+ TQDomDocument* m_dom; ///< The project configuration
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)
- QString m_root; ///< The root directory of the used qt installation for Qt3
- QString m_designerPath; ///< The path including the binary name of Qt Designer
- QString m_qmakePath; ///< The path including the binary name of QMake
- QStringList m_designerPluginPaths; ///< The Prefix for Designer
- QString m_designerIntegration; ///< The type of designer used, kdevdesigner or qt designer
+ 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
+ TQStringList m_designerPluginPaths; ///< The Prefix for Designer
+ TQString m_designerIntegration; ///< The type of designer used, kdevdesigner or qt designer
- static const QString m_configRoot; ///< The root path of the configuration
+ static const TQString m_configRoot; ///< The root path of the configuration
};
#endif
diff --git a/languages/cpp/qtdesignercppintegration.cpp b/languages/cpp/qtdesignercppintegration.cpp
index 420cf38e..9314aceb 100644
--- a/languages/cpp/qtdesignercppintegration.cpp
+++ b/languages/cpp/qtdesignercppintegration.cpp
@@ -20,8 +20,8 @@
***************************************************************************/
#include "qtdesignercppintegration.h"
-#include <qpair.h>
-#include <qregexp.h>
+#include <tqpair.h>
+#include <tqregexp.h>
#include <klocale.h>
#include <kdebug.h>
@@ -52,7 +52,7 @@ void QtDesignerCppIntegration::addFunctionToClass( KInterfaceDesigner::Function
if ( !editIface )
{
/// @todo show messagebox
- // QDialog::accept();
+ // TQDialog::accept();
return ;
}
@@ -60,14 +60,14 @@ void QtDesignerCppIntegration::addFunctionToClass( KInterfaceDesigner::Function
klass->getEndPosition( &line, &column );
// compute the insertion point map
- QMap<QString, QPair<int, int> > points;
+ TQMap<TQString, QPair<int, int> > points;
const FunctionList functionList = klass->functionList();
for ( FunctionList::ConstIterator it = functionList.begin(); it != functionList.end(); ++it )
{
int funEndLine, funEndColumn;
( *it ) ->getEndPosition( &funEndLine, &funEndColumn );
- QString access = accessID( *it );
+ TQString access = accessID( *it );
QPair<int, int> funEndPoint = qMakePair( funEndLine, funEndColumn );
if ( !points.contains( access ) || points[ access ] < funEndPoint )
@@ -78,9 +78,9 @@ void QtDesignerCppIntegration::addFunctionToClass( KInterfaceDesigner::Function
int insertedLine = 0;
- QString access = function.access + ( function.type == KInterfaceDesigner::ftQtSlot ? " slots" : "" );
+ TQString access = function.access + ( function.type == KInterfaceDesigner::ftQtSlot ? " slots" : "" );
- QString str = function.returnType + " " + function.function;
+ TQString str = function.returnType + " " + function.function;
if ( function.specifier == "virtual" )
str = "virtual " + str;
else if ( function.specifier == "pure virtual" )
@@ -103,7 +103,7 @@ void QtDesignerCppIntegration::addFunctionToClass( KInterfaceDesigner::Function
}
editIface->insertText( pt.first + insertedLine + 1, 0 /*pt.second*/, str );
- insertedLine += str.contains( QChar( '\n' ) );
+ insertedLine += str.contains( TQChar( '\n' ) );
CppSupportPart *cppPart = dynamic_cast<CppSupportPart *>( m_part );
cppPart->backgroundParser() ->addFile( klass->fileName() );
@@ -113,18 +113,18 @@ void QtDesignerCppIntegration::addFunctionToClass( KInterfaceDesigner::Function
//implementation
- QString stri = function.returnType + " " + klass->name() + "::" + function.function;
+ TQString stri = function.returnType + " " + klass->name() + "::" + function.function;
if ( function.specifier == "static" )
stri = "static " + stri;
stri += "\n{\n}\n";
stri = "\n" + stri;
- QFileInfo fi( klass->fileName() );
- QString implementationFile = fi.absFilePath();
+ TQFileInfo fi( klass->fileName() );
+ TQString implementationFile = fi.absFilePath();
implementationFile.replace( ".h", ".cpp" );
- QFileInfo fileInfo( implementationFile );
- if ( !QFile::exists( fileInfo.absFilePath() ) )
+ TQFileInfo fileInfo( implementationFile );
+ if ( !TQFile::exists( fileInfo.absFilePath() ) )
{
if ( KDevCreateFile * createFileSupp = m_part->extension<KDevCreateFile>( "KDevelop/CreateFile" ) )
createFileSupp->createNewFile( fileInfo.extension(), fileInfo.dirPath( true ), fileInfo.fileName() );
@@ -158,7 +158,7 @@ void QtDesignerCppIntegration::addFunctionToClass( KInterfaceDesigner::Function
}
else
{
- if ( editIface->textLine( line ).contains( QRegExp( ".*#include .*\\.moc.*" ) ) )
+ if ( editIface->textLine( line ).contains( TQRegExp( ".*#include .*\\.moc.*" ) ) )
atLine = line;
break;
}
@@ -167,7 +167,7 @@ void QtDesignerCppIntegration::addFunctionToClass( KInterfaceDesigner::Function
atColumn = 0;
}
- // editIface->insertLine( atLine + 1, QString::fromLatin1("") );
+ // editIface->insertLine( atLine + 1, TQString::fromLatin1("") );
kdDebug() << "at line in intg: " << atLine << " atCol: " << atColumn << endl;
kdDebug() << "text: " << stri << endl;
editIface->insertText( atLine, atColumn, stri );
@@ -182,33 +182,33 @@ void QtDesignerCppIntegration::addFunctionToClass( KInterfaceDesigner::Function
cppPart->backgroundParser() ->addFile( implementationFile );
}
-QString QtDesignerCppIntegration::accessID( FunctionDom fun ) const
+TQString QtDesignerCppIntegration::accessID( FunctionDom fun ) const
{
if ( fun->isSignal() )
- return QString::fromLatin1( "signals" );
+ return TQString::fromLatin1( "signals" );
switch ( fun->access() )
{
case CodeModelItem::Public:
if ( fun->isSlot() )
- return QString::fromLatin1( "public slots" );
- return QString::fromLatin1( "public" );
+ return TQString::fromLatin1( "public slots" );
+ return TQString::fromLatin1( "public" );
case CodeModelItem::Protected:
if ( fun->isSlot() )
- return QString::fromLatin1( "protected slots" );
- return QString::fromLatin1( "protected" );
+ return TQString::fromLatin1( "protected slots" );
+ return TQString::fromLatin1( "protected" );
case CodeModelItem::Private:
if ( fun->isSlot() )
- return QString::fromLatin1( "private slots" );
- return QString::fromLatin1( "private" );
+ return TQString::fromLatin1( "private slots" );
+ return TQString::fromLatin1( "private" );
}
- return QString::null;
+ return TQString::null;
}
-void QtDesignerCppIntegration::processImplementationName( QString &name )
+void QtDesignerCppIntegration::processImplementationName( TQString &name )
{
name.replace( ".h", ".cpp" );
}
diff --git a/languages/cpp/qtdesignercppintegration.h b/languages/cpp/qtdesignercppintegration.h
index 93a250a1..6721c9df 100644
--- a/languages/cpp/qtdesignercppintegration.h
+++ b/languages/cpp/qtdesignercppintegration.h
@@ -30,9 +30,9 @@ public:
protected:
virtual void addFunctionToClass( KInterfaceDesigner::Function function, ClassDom klass );
- QString accessID( FunctionDom fun ) const;
+ TQString accessID( FunctionDom fun ) const;
- virtual void processImplementationName( QString &name );
+ virtual void processImplementationName( TQString &name );
};
#endif
diff --git a/languages/cpp/setuphelper.cpp b/languages/cpp/setuphelper.cpp
index deab6135..63b4fd94 100644
--- a/languages/cpp/setuphelper.cpp
+++ b/languages/cpp/setuphelper.cpp
@@ -16,39 +16,39 @@
#include <kdebug.h>
#include "ktempfile.h" /* defines [function] KTempDir */
#include "kstandarddirs.h" /* defines [function] locateLocal */
-#include "qdir.h" /* defines QDir */
+#include "tqdir.h" /* defines TQDir */
#include <stdio.h>
namespace SetupHelper {
-QString getGccIncludePath(bool *ok)
+TQString getGccIncludePath(bool *ok)
{
*ok = true;
- QString processStdout;
+ TQString processStdout;
BlockingKProcess proc;
proc << "gcc" ;
proc << "-print-file-name=include" ;
if ( !proc.start(KProcess::NotifyOnExit, KProcess::Stdout) ) {
kdWarning(9007) << "Couldn't start gcc" << endl;
*ok = false;
- return QString();
+ return TQString();
}
processStdout = proc.stdOut();
return processStdout;
}
-QString getVerboseGccIncludePath(bool *ok)
+TQString getVerboseGccIncludePath(bool *ok)
{
*ok = false;
///Create temp file
KTempFile tempFile(locateLocal("tmp", "kdevelop_temp"), ".cpp");
tempFile.setAutoDelete(true);
if( tempFile.status() != 0 )
- return QString();//Failed to create temp file
+ return TQString();//Failed to create temp file
- QString path = tempFile.name();
- QFileInfo pathInfo( path );
+ TQString path = tempFile.name();
+ TQFileInfo pathInfo( path );
char fileText[] = "//This source-file is empty";
fwrite(fileText, strlen(fileText), 1, tempFile.fstream() );
@@ -61,16 +61,16 @@ QString getVerboseGccIncludePath(bool *ok)
if ( !proc.start(KProcess::NotifyOnExit, KProcess::Stdout) ) {
kdWarning(9007) << "Couldn't start gcc" << endl;
*ok = false;
- return QString();
+ return TQString();
}
*ok = true;
return proc.stdOut();
}
-QStringList getGccMacros(bool *ok)
+TQStringList getGccMacros(bool *ok)
{
*ok = true;
- QString processStdout;
+ TQString processStdout;
BlockingKProcess proc;
proc << "gcc";
proc << "-E";
@@ -80,11 +80,11 @@ QStringList getGccMacros(bool *ok)
if ( !proc.start(KProcess::NotifyOnExit, KProcess::Stdout) ) {
kdWarning(9007) << "Couldn't start gcc" << endl;
*ok = false;
- return QStringList();
+ return TQStringList();
}
proc.closeStdin();
processStdout = proc.stdOut();
- QStringList lines = QStringList::split('\n', processStdout);
+ TQStringList lines = TQStringList::split('\n', processStdout);
return lines;
}
diff --git a/languages/cpp/setuphelper.h b/languages/cpp/setuphelper.h
index 380994b4..aa95296a 100644
--- a/languages/cpp/setuphelper.h
+++ b/languages/cpp/setuphelper.h
@@ -13,7 +13,7 @@
#ifndef SETUPHELPER_H
#define SETUPHELPER_H
-#include <qstringlist.h>
+#include <tqstringlist.h>
/**
A helper methods for setting up the various Driver derivates.
@@ -24,19 +24,19 @@ namespace SetupHelper {
/** Get the include paths returned by gcc.
* @param ok false if there was a problem running gcc
*/
- QString getGccIncludePath(bool *ok);
+ TQString getGccIncludePath(bool *ok);
/** Get the include-path return by gcc -v
* this path includes the path from the environment,
* the c++-include-path, etc., and of couse it also includes the above path.
* @param ok false if there was a problem running gcc
* */
- QString getVerboseGccIncludePath(bool* ok);
+ TQString getVerboseGccIncludePath(bool* ok);
/** Get the predefined macros returned by gcc
* @param ok false if there was a problem running gcc
*/
- QStringList getGccMacros(bool *ok);
+ TQStringList getGccMacros(bool *ok);
};
#endif
diff --git a/languages/cpp/simplecontext.cpp b/languages/cpp/simplecontext.cpp
index 08af929d..225bfc84 100644
--- a/languages/cpp/simplecontext.cpp
+++ b/languages/cpp/simplecontext.cpp
@@ -34,7 +34,7 @@ SimpleType getGlobal( SimpleType t ) {
}
void SimpleContext::offset( int lineOffset, int colOffset ) {
- for( QValueList<SimpleVariable>::iterator it = m_vars.begin(); it != m_vars.end(); ++it ) {
+ for( TQValueList<SimpleVariable>::iterator it = m_vars.begin(); it != m_vars.end(); ++it ) {
if( (*it).endLine != (*it).startLine || (*it).endCol != (*it).startCol) {
if( (*it).startLine == 0 ) {
(*it).startCol += colOffset;
@@ -48,12 +48,12 @@ void SimpleContext::offset( int lineOffset, int colOffset ) {
}
}
-SimpleVariable SimpleContext::findVariable( const QString& varname )
+SimpleVariable SimpleContext::findVariable( const TQString& varname )
{
SimpleContext * ctx = this;
while ( ctx )
{
- const QValueList<SimpleVariable>& vars = ctx->vars();
+ const TQValueList<SimpleVariable>& vars = ctx->vars();
for ( int i = vars.count() - 1; i >= 0; --i )
{
SimpleVariable v = vars[ i ];
diff --git a/languages/cpp/simplecontext.h b/languages/cpp/simplecontext.h
index 310d4f4d..d1fde70a 100644
--- a/languages/cpp/simplecontext.h
+++ b/languages/cpp/simplecontext.h
@@ -22,8 +22,8 @@
#ifndef SIMPLECONTEXT_H
#define SIMPLECONTEXT_H
-#include <qvaluelist.h>
-#include <qstringlist.h>
+#include <tqvaluelist.h>
+#include <tqstringlist.h>
#include "declarationinfo.h"
#include "typedesc.h"
@@ -65,14 +65,14 @@ public:
return *this;
}
- QString name;
- QString comment;
+ TQString name;
+ TQString comment;
int startLine, startCol;
int endLine, endCol;
TypeDesc type;
- QStringList ptrList;
+ TQStringList ptrList;
- DeclarationInfo toDeclarationInfo( QString activeFileName ) {
+ DeclarationInfo toDeclarationInfo( TQString activeFileName ) {
DeclarationInfo decl;
decl.name = name;
decl.file = activeFileName;
@@ -118,7 +118,7 @@ class SimpleContext
m_prev = 0;
}
- const QValueList<SimpleVariable>& vars() const
+ const TQValueList<SimpleVariable>& vars() const
{
return m_vars;
}
@@ -128,24 +128,24 @@ class SimpleContext
m_vars.append( v );
}
- void add( const QValueList<SimpleVariable>& vars )
+ void add( const TQValueList<SimpleVariable>& vars )
{
m_vars += vars;
}
//First the new name, aka "" for real imports, second the name to be imported
- void addImport( const QPair<QString, QString>& import ) {
+ void addImport( const QPair<TQString, TQString>& import ) {
m_imports << import;
}
//Key the new name, aka "" for real imports, second the name to be imported
- QValueList<QPair<QString, QString> > imports() {
+ TQValueList<QPair<TQString, TQString> > imports() {
return m_imports;
}
void offset( int lineOffset, int colOffset );
- SimpleVariable findVariable( const QString& varname );
+ SimpleVariable findVariable( const TQString& varname );
SimpleType global() {
return getGlobal( container() );
@@ -161,8 +161,8 @@ class SimpleContext
}
private:
- QValueList<SimpleVariable> m_vars;
- QValueList<QPair<QString, QString> > m_imports;
+ TQValueList<SimpleVariable> m_vars;
+ TQValueList<QPair<TQString, TQString> > m_imports;
SimpleContext* m_prev;
SimpleType m_container;
};
diff --git a/languages/cpp/simpletype.cpp b/languages/cpp/simpletype.cpp
index e4334ae5..5111a2a0 100644
--- a/languages/cpp/simpletype.cpp
+++ b/languages/cpp/simpletype.cpp
@@ -17,7 +17,7 @@
#include "simpletypefunction.h"
#include <klocale.h>
-QMap<QString, QString> BuiltinTypes::m_types;
+TQMap<TQString, TQString> BuiltinTypes::m_types;
BuiltinTypes builtin; //Needed so BuiltinTypes::BuiltinTypes is called and the types are initialized
BuiltinTypes::BuiltinTypes() {
@@ -42,12 +42,12 @@ bool BuiltinTypes::isBuiltin( const TypeDesc& desc ) {
return m_types.find( desc.name() ) != m_types.end();
}
-QString BuiltinTypes::comment( const TypeDesc& desc ) {
- QMap<QString, QString>::iterator it = m_types.find( desc.name() );
+TQString BuiltinTypes::comment( const TypeDesc& desc ) {
+ TQMap<TQString, TQString>::iterator it = m_types.find( desc.name() );
if( it != m_types.end() ) {
return *it;
} else {
- return QString::null;
+ return TQString::null;
}
}
@@ -56,7 +56,7 @@ extern SafetyCounter safetyCounter;
TypePointer SimpleType::m_globalNamespace;
SimpleType::TypeStore SimpleType::m_typeStore;
SimpleType::TypeStore SimpleType::m_destroyedStore;
-QString globalCurrentFile = "";
+TQString globalCurrentFile = "";
//SimpleType implementation
@@ -178,15 +178,15 @@ void SimpleType::makePrivate() {
m_type = m_type->clone();
}
-const QStringList& SimpleType::scope() const {
+const TQStringList& SimpleType::scope() const {
return m_type -> scope();
}
-const QString SimpleType::str() const {
+const TQString SimpleType::str() const {
return m_type -> str();
}
-void SimpleType::init( const QStringList& scope, const HashedStringSet& files, Repository rep ) {
+void SimpleType::init( const TQStringList& scope, const HashedStringSet& files, Repository rep ) {
m_includeFiles = files;
m_type = TypePointer( new SimpleTypeImpl( scope ) );
@@ -204,10 +204,10 @@ SimpleType::SimpleType( Tag tag ) : m_resolved(true) {
//
//SimpleTypeImpl implementation
-QValueList<LocateResult> SimpleTypeImpl::getBases() {
-QValueList<LocateResult> ret;
- QStringList bases = getBaseStrings();
- for( QStringList::const_iterator it = bases.begin(); it != bases.end(); ++it ) {
+TQValueList<LocateResult> SimpleTypeImpl::getBases() {
+TQValueList<LocateResult> ret;
+ TQStringList bases = getBaseStrings();
+ for( TQStringList::const_iterator it = bases.begin(); it != bases.end(); ++it ) {
TypeDesc d( *it );
d.setIncludeFiles( m_findIncludeFiles );
LocateResult res = locateDecType( d, LocateBase );
@@ -286,7 +286,7 @@ SimpleTypeFunctionInterface* SimpleTypeImpl::asFunction() {
return dynamic_cast<SimpleTypeFunctionInterface*> ( this );
}
-QString SimpleTypeImpl::operatorToString( Operator op ) {
+TQString SimpleTypeImpl::operatorToString( Operator op ) {
switch ( op ) {
case NoOp:
return "NoOp";
@@ -301,11 +301,11 @@ QString SimpleTypeImpl::operatorToString( Operator op ) {
case ParenOp:
return "paren-operator";
default:
- return QString( "%1" ).arg( ( long ) op );
+ return TQString( "%1" ).arg( ( long ) op );
};
}
-LocateResult SimpleTypeImpl::getFunctionReturnType( QString functionName, QValueList<LocateResult> params ) {
+LocateResult SimpleTypeImpl::getFunctionReturnType( TQString functionName, TQValueList<LocateResult> params ) {
LocateResult t = typeOf( functionName, MemberInfo::Function ).type;
if ( t->resolved() && t->resolved() ->asFunction() ) {
return t->resolved() ->applyOperator( ParenOp, params );
@@ -315,7 +315,7 @@ LocateResult SimpleTypeImpl::getFunctionReturnType( QString functionName, QValue
}
}
-LocateResult SimpleTypeImpl::applyOperator( Operator op , QValueList<LocateResult> params ) {
+LocateResult SimpleTypeImpl::applyOperator( Operator op , TQValueList<LocateResult> params ) {
Debug d( "#applyn#" );
if ( !d || !safetyCounter )
return LocateResult();
@@ -540,7 +540,7 @@ class TemplateParamMatch {
private:
TypePointer m_candidate;
SimpleTypeImpl::TemplateParamInfo m_candidateParams;
- QMap<QString, LocateResult> m_hadParameters;
+ TQMap<TQString, LocateResult> m_hadParameters;
bool m_matched;
int m_maxDepth;
};
@@ -562,7 +562,7 @@ void SimpleTypeImpl::chooseSpecialization( MemberInfo& member ) {
if ( m_masterProxy )
t = m_masterProxy;
- QValueList<TypePointer> classes = t->getMemberClasses( type->desc() );
+ TQValueList<TypePointer> classes = t->getMemberClasses( type->desc() );
//Find the specialization that fits the given template-parameters the best
@@ -591,7 +591,7 @@ void SimpleTypeImpl::chooseSpecialization( MemberInfo& member ) {
TemplateParamMatch bestMatch;
- for ( QValueList<TypePointer>::iterator it = classes.begin(); it != classes.end(); ++it ) {
+ for ( TQValueList<TypePointer>::iterator it = classes.begin(); it != classes.end(); ++it ) {
if ( ( *it ) ->specialization().isEmpty() )
continue;
TemplateParamMatch match( ( *it ), member.type.desc() );
@@ -776,11 +776,11 @@ LocateResult SimpleTypeImpl::locateType( TypeDesc name , LocateMode mode , int d
///Ask bases but only on this level
if ( ! ( mode & ExcludeBases ) ) {
- QValueList<LocateResult> bases = getBases();
+ TQValueList<LocateResult> bases = getBases();
if ( !bases.isEmpty() ) {
TypeDesc nameInBase = resolveTemplateParams( name, LocateBase ); ///Resolve all template-params that are at least visible in the scope of the base-declaration
- for ( QValueList<LocateResult>::iterator it = bases.begin(); it != bases.end(); ++it ) {
+ for ( TQValueList<LocateResult>::iterator it = bases.begin(); it != bases.end(); ++it ) {
if ( !( *it ) ->resolved() )
continue;
LocateResult t = ( *it ) ->resolved() ->locateType( nameInBase, addFlag( addFlag( mode, ExcludeTemplates ), ExcludeParents ), dir ); ///The searched Type cannot directly be a template-param in the base-class, so ExcludeTemplates. It's forgotten early enough.
@@ -806,9 +806,9 @@ LocateResult SimpleTypeImpl::locateType( TypeDesc name , LocateMode mode , int d
///Ask the bases and allow them to search in their parents.
if ( ! ( mode & ExcludeBases ) ) {
TypeDesc baseName = resolveTemplateParams( name, LocateBase ); ///Resolve all template-params that are at least visible in the scope of the base-declaration
- QValueList<LocateResult> bases = getBases();
+ TQValueList<LocateResult> bases = getBases();
if ( !bases.isEmpty() ) {
- for ( QValueList<LocateResult>::iterator it = bases.begin(); it != bases.end(); ++it ) {
+ for ( TQValueList<LocateResult>::iterator it = bases.begin(); it != bases.end(); ++it ) {
if ( !( *it ) ->resolved() )
continue;
LocateResult t = ( *it ) ->resolved() ->locateType( baseName, addFlag( mode, ExcludeTemplates ), dir ); ///The searched Type cannot directly be a template-param in the base-class, so ExcludeTemplates. It's forgotten early enough.
@@ -849,7 +849,7 @@ SimpleType SimpleTypeImpl::parent() {
} else {
ifVerbose( dbg() << "\"" << str() << "\": locating parent" << endl );
invalidateSecondaryCache();
- QStringList sc = scope();
+ TQStringList sc = scope();
if ( !sc.isEmpty() ) {
sc.pop_back();
@@ -880,11 +880,11 @@ TypeDesc& SimpleTypeImpl::descForEdit() {
return m_desc;
}
-QString SimpleTypeImpl::describeWithParams() {
+TQString SimpleTypeImpl::describeWithParams() {
TemplateParamInfo pinfo = getTemplateParamInfo();
int num = 0;
TemplateParamInfo::TemplateParam param;
- QString str = desc().name();
+ TQString str = desc().name();
if ( desc().hasTemplateParams() ) {
str += "< ";
@@ -904,7 +904,7 @@ QString SimpleTypeImpl::describeWithParams() {
return str;
}
-QString SimpleTypeImpl::fullTypeResolved( int depth ) {
+TQString SimpleTypeImpl::fullTypeResolved( int depth ) {
Debug d( "#tre#" );
TypeDesc t = desc();
@@ -924,7 +924,7 @@ QString SimpleTypeImpl::fullTypeResolved( int depth ) {
}
-QString SimpleTypeImpl::fullTypeUnresolvedWithScope( ) {
+TQString SimpleTypeImpl::fullTypeUnresolvedWithScope( ) {
if ( m_parent && !m_parent->scope().isEmpty() ) {
return m_parent->fullTypeUnresolvedWithScope() + "::" + m_desc.fullNameChain();
} else {
@@ -932,7 +932,7 @@ QString SimpleTypeImpl::fullTypeUnresolvedWithScope( ) {
}
}
-QString SimpleTypeImpl::fullTypeResolvedWithScope( int depth ) {
+TQString SimpleTypeImpl::fullTypeResolvedWithScope( int depth ) {
Q_UNUSED( depth );
if ( !m_scope.isEmpty() && parent() ) {
return parent() ->fullTypeResolvedWithScope() + "::" + fullTypeResolved();
@@ -944,7 +944,7 @@ QString SimpleTypeImpl::fullTypeResolvedWithScope( int depth ) {
void SimpleTypeImpl::checkTemplateParams () {
invalidateCache();
if ( ! m_scope.isEmpty() ) {
- QString str = m_scope.back();
+ TQString str = m_scope.back();
m_desc = str;
if ( !m_desc.name().isEmpty() ) {
m_scope.pop_back();
@@ -955,18 +955,18 @@ void SimpleTypeImpl::checkTemplateParams () {
}
}
-void SimpleTypeImpl::setScope( const QStringList& scope ) {
+void SimpleTypeImpl::setScope( const TQStringList& scope ) {
invalidateCache();
m_scope = scope;
if ( m_scope.count() == 1 && m_scope.front().isEmpty() ) {
//kdDebug() << "bad scope set " << kdBacktrace() << endl;
- m_scope = QStringList();
+ m_scope = TQStringList();
}
}
SimpleTypeImpl::TypeOfResult SimpleTypeImpl::searchBases ( const TypeDesc& name /*option!!*/ ) {
- QValueList<LocateResult> parents = getBases();
- for ( QValueList<LocateResult>::iterator it = parents.begin(); it != parents.end(); ++it ) {
+ TQValueList<LocateResult> parents = getBases();
+ for ( TQValueList<LocateResult>::iterator it = parents.begin(); it != parents.end(); ++it ) {
if ( !( *it ) ->resolved() )
continue;
TypeOfResult type = ( *it ) ->resolved() ->typeOf( name );
@@ -997,8 +997,8 @@ void SimpleTypeImpl::takeTemplateParams( TypeDesc desc ) {
//SimpleTypeImpl::TemplateParamInfo implementation
-bool SimpleTypeImpl::TemplateParamInfo::getParam( TemplateParam& target, QString name ) const {
- QMap<QString, TemplateParam>::const_iterator it = m_paramsByName.find( name );
+bool SimpleTypeImpl::TemplateParamInfo::getParam( TemplateParam& target, TQString name ) const {
+ TQMap<TQString, TemplateParam>::const_iterator it = m_paramsByName.find( name );
if ( it != m_paramsByName.end() ) {
target = *it;
return true;
@@ -1007,7 +1007,7 @@ bool SimpleTypeImpl::TemplateParamInfo::getParam( TemplateParam& target, QString
}
bool SimpleTypeImpl::TemplateParamInfo::getParam( TemplateParam& target, int number ) const {
- QMap<int, TemplateParam>::const_iterator it = m_paramsByNumber.find( number );
+ TQMap<int, TemplateParam>::const_iterator it = m_paramsByNumber.find( 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 ) {
- QMap<int, TemplateParam>::iterator it = m_paramsByNumber.find( number );
+ TQMap<int, TemplateParam>::iterator it = m_paramsByNumber.find( number );
if ( it != m_paramsByNumber.end() ) {
m_paramsByName.remove( ( *it ).name );
m_paramsByNumber.remove( it );
@@ -1029,7 +1029,7 @@ void SimpleTypeImpl::TemplateParamInfo::addParam( const TemplateParam& param ) {
}
int SimpleTypeImpl::TemplateParamInfo::count() const {
- QMap<int, TemplateParam>::const_iterator it = m_paramsByNumber.end();
+ TQMap<int, TemplateParam>::const_iterator it = m_paramsByNumber.end();
if ( it != m_paramsByNumber.begin() ) {
--it;
return ( *it ).number + 1;
diff --git a/languages/cpp/simpletype.h b/languages/cpp/simpletype.h
index 3e6f82d3..19fb22cc 100644
--- a/languages/cpp/simpletype.h
+++ b/languages/cpp/simpletype.h
@@ -23,14 +23,14 @@
#include "completiondebug.h"
#include "typedesc.h"
#include "declarationinfo.h"
-#include <qpair.h>
+#include <tqpair.h>
#include "cpp_tags.h"
#include "codemodel.h"
#define NOBACKTRACE
-extern QString globalCurrentFile;
+extern TQString globalCurrentFile;
using namespace CompletionDebug;
using namespace BitHelpers;
@@ -58,10 +58,10 @@ class BuiltinTypes {
///This should be used for checking whether a type is builtin
static bool isBuiltin( const TypeDesc& desc );
///If it is a builtin type this returns a short description of the type
- static QString comment( const TypeDesc& desc );
+ static TQString comment( const TypeDesc& desc );
BuiltinTypes();
private:
- static QMap<QString, QString> m_types;
+ static TQMap<TQString, TQString> m_types;
};
@@ -82,16 +82,16 @@ class SimpleType {
*this = rhs;
}
- SimpleType( const QStringList& scope, const HashedStringSet& files, Repository rep = RepoUndefined ) : m_resolved( false ) {
+ SimpleType( const TQStringList& scope, const HashedStringSet& files, Repository rep = RepoUndefined ) : m_resolved( false ) {
init( scope, files, rep );
}
- SimpleType( const QString& text,const HashedStringSet& files, Repository rep = RepoUndefined ) : m_resolved( false ) {
+ SimpleType( const TQString& text,const HashedStringSet& files, Repository rep = RepoUndefined ) : m_resolved( false ) {
init( splitType( text ), files, rep );
};
SimpleType( Repository rep = RepoUndefined ) : m_resolved( false ) {
- init( QStringList(), HashedStringSet(), rep );
+ init( TQStringList(), HashedStringSet(), rep );
};
SimpleType( SimpleTypeImpl* ip ) : m_type( TypePointer( ip ) ), m_resolved( true ) {}
@@ -132,14 +132,14 @@ class SimpleType {
void makePrivate();
- operator QString() const {
+ operator TQString() const {
return str();
}
///lazily returns the scope
- const QStringList& scope() const;
+ const TQStringList& scope() const;
- const QString str() const;
+ const TQString str() const;
///valid() does not check whether the type was found in some model,
///it just checks whether this theoretically represents a type.
@@ -168,7 +168,7 @@ class SimpleType {
private:
- void init( const QStringList& scope, const HashedStringSet& files, Repository rep );
+ void init( const TQStringList& scope, const HashedStringSet& files, Repository rep );
void resolve( Repository rep = RepoUndefined ) const ;
@@ -201,7 +201,7 @@ class SimpleType {
class SimpleTypeConfiguration {
bool m_invalid;
public:
- SimpleTypeConfiguration( QString currentFileName = "" ) : m_invalid( false ) {
+ SimpleTypeConfiguration( TQString currentFileName = "" ) : m_invalid( false ) {
globalCurrentFile = currentFileName;
dbgState.clearCounter();
}
@@ -231,7 +231,7 @@ class SimpleTypeImpl : public KShared {
public:
typedef KSharedPtr<SimpleTypeImpl> TypePointer;
- SimpleTypeImpl( const QStringList& scope ) : m_resolutionCount( 0 ), m_resolutionFlags( NoFlag ), m_scope( scope ) {
+ SimpleTypeImpl( const TQStringList& scope ) : m_resolutionCount( 0 ), m_resolutionFlags( NoFlag ), m_scope( scope ) {
setScope( m_scope );
checkTemplateParams();
reg();
@@ -250,14 +250,14 @@ class SimpleTypeImpl : public KShared {
};
///Returns the template-specialization-string for classes
- virtual QString specialization() const {
- return QString::null;
+ virtual TQString specialization() const {
+ return TQString::null;
}
class TemplateParamInfo {
public:
struct TemplateParam {
- QString name;
+ TQString name;
TypeDesc def;
TypeDesc value;
int number;
@@ -267,7 +267,7 @@ class SimpleTypeImpl : public KShared {
TemplateParamInfo( ) {}
- bool getParam( TemplateParam& target, QString name ) const;
+ bool getParam( TemplateParam& target, TQString name ) const;
bool getParam( TemplateParam& target, int number ) const;
@@ -278,8 +278,8 @@ class SimpleTypeImpl : public KShared {
int count() const;
private:
- QMap<int, TemplateParam> m_paramsByNumber;
- QMap<QString, TemplateParam> m_paramsByName;
+ TQMap<int, TemplateParam> m_paramsByNumber;
+ TQMap<TQString, TemplateParam> m_paramsByName;
};
int resolutionCount() {
@@ -317,7 +317,7 @@ class SimpleTypeImpl : public KShared {
return false;
};
- virtual QString comment() const {
+ virtual TQString comment() const {
return "";
};
@@ -334,7 +334,7 @@ class SimpleTypeImpl : public KShared {
}
///@todo remove this and use getTemplateParamInfo instead
- virtual const LocateResult findTemplateParam( const QString& /*name*/ ) {
+ virtual const LocateResult findTemplateParam( const TQString& /*name*/ ) {
return LocateResult();
}
@@ -386,10 +386,10 @@ class SimpleTypeImpl : public KShared {
m_resolutionCount = val;
}
#ifndef NOBACKTRACE
- QString create_bt;
+ TQString create_bt;
#endif
- inline QString createInfo() const {
+ inline TQString createInfo() const {
#ifndef NOBACKTRACE
return "\n" + create_bt + "\n";
#endif
@@ -424,15 +424,15 @@ class SimpleTypeImpl : public KShared {
///when the object pointed to changes
virtual void invalidatePrimaryCache( bool onlyNegative = false ) {}
- static QString operatorToString( Operator op );
+ static TQString operatorToString( Operator op );
public:
/*
- operator QString() const {
+ operator TQString() const {
return str();
}
- inline operator QStringList() const {
+ inline operator TQStringList() const {
return m_scope;
}*/
@@ -458,22 +458,22 @@ class SimpleTypeImpl : public KShared {
///returns the scope(including own name) as string
- QString str() const {
+ TQString str() const {
if ( m_scope.isEmpty() )
return "";
return m_scope.join( "::" );
}
///returns the scope(including own name) as string-list
- inline const QStringList& scope() const {
+ inline const TQStringList& scope() const {
return m_scope;
}
///Returns the scope including template-specialization
- QStringList specializedScope() const {
- QStringList ts = m_scope;
+ TQStringList specializedScope() const {
+ TQStringList ts = m_scope;
if( !ts.isEmpty() ) {
- QString s = ts.back() + specialization();
+ TQString s = ts.back() + specialization();
ts.pop_back();
ts.push_back( s );
}
@@ -554,7 +554,7 @@ class SimpleTypeImpl : public KShared {
memberType = NotFound;
}
- QString memberTypeToString() {
+ TQString memberTypeToString() {
switch ( memberType ) {
case Namespace:
return "namespace";
@@ -599,7 +599,7 @@ class SimpleTypeImpl : public KShared {
return memberType != NotFound;
}
- QString name;
+ TQString name;
LocateResult type;
///This member is only filles for variables, typedefs and template-params!
@@ -651,17 +651,17 @@ class SimpleTypeImpl : public KShared {
public:
- LocateResult getFunctionReturnType( QString functionName, QValueList<LocateResult> params = QValueList<LocateResult>() );
+ LocateResult getFunctionReturnType( TQString functionName, TQValueList<LocateResult> params = TQValueList<LocateResult>() );
///Tries to apply the operator and returns the new type. If it fails, it returns an invalid type.
- virtual LocateResult applyOperator( Operator op , QValueList<LocateResult> params = QValueList<LocateResult>() );
+ virtual LocateResult applyOperator( Operator op , TQValueList<LocateResult> params = TQValueList<LocateResult>() );
/** In case of a class, returns all base-types */
- virtual QValueList<LocateResult> getBases();
+ virtual TQValueList<LocateResult> getBases();
- virtual QStringList getBaseStrings() {
- return QStringList();
+ virtual TQStringList getBaseStrings() {
+ return TQStringList();
};
///This pair contains the found type, and additionally the member-information that helped finding the type
@@ -708,8 +708,8 @@ class SimpleTypeImpl : public KShared {
};
///Should return all specializations of a specific class-name
- virtual QValueList<TypePointer> findSpecializations( const QString& name ) {
- return QValueList<TypePointer>();
+ virtual TQValueList<TypePointer> findSpecializations( const TQString& name ) {
+ return TQValueList<TypePointer>();
}
/**TypeDescs and SimpleTypeImpls usually have a cross-reference, which creates a circular dependency so that they are never freed using KShared. This function breaks the loop, and also breaks all other possible dependency-loops. After this function was called, the type still contains its private information, but can not not be used to resolve anything anymore. This function is called automatically while the destruction of SimpleTypeConfiguration */
@@ -727,37 +727,37 @@ class SimpleTypeImpl : public KShared {
TypeDesc& descForEdit();
///short version
- QString fullType() const {
+ TQString fullType() const {
return m_desc.fullName();
}
///Similar to fullTypeResolved, except that it also shows addition information about template-params
- QString describeWithParams() ;
+ TQString describeWithParams() ;
///returns all information that is available constantly
- QString describe() const {
- QString description = m_desc.fullName() + " (" + m_scope.join( "::" ) + ")" + createInfo();
+ TQString describe() const {
+ TQString description = m_desc.fullName() + " (" + m_scope.join( "::" ) + ")" + createInfo();
return description;
}
///this completely evaluates everything
- QString fullTypeResolved( int depth = 0 );
+ TQString fullTypeResolved( int depth = 0 );
///this completely evaluates everything
- QString fullTypeResolvedWithScope( int depth = 0 );
+ TQString fullTypeResolvedWithScope( int depth = 0 );
- QString fullTypeUnresolvedWithScope();
+ TQString fullTypeUnresolvedWithScope();
- virtual QValueList<TypePointer> getMemberClasses( const TypeDesc& name ) {
- return QValueList<TypePointer>();
+ virtual TQValueList<TypePointer> getMemberClasses( const TypeDesc& name ) {
+ return TQValueList<TypePointer>();
}
///Returns the include-file-set used for resolving this type
IncludeFiles getFindIncludeFiles();
private:
- QStringList m_scope;
+ TQStringList m_scope;
TypePointer m_parent;
IncludeFiles m_findIncludeFiles; //Set of include-files used for finding this object
@@ -771,7 +771,7 @@ class SimpleTypeImpl : public KShared {
/** Tries to extract template-parameters from the scope, resets the params-list */
virtual void checkTemplateParams ();
- void setScope( const QStringList& scope );
+ void setScope( const TQStringList& scope );
///Searches the item IN the bases
TypeOfResult searchBases ( const TypeDesc& name );
@@ -786,10 +786,10 @@ class SimpleTypeImpl : public KShared {
class TypeTrace {
- QValueList<QPair< SimpleTypeImpl::MemberInfo, TypeDesc> > m_trace;
+ TQValueList<QPair< SimpleTypeImpl::MemberInfo, TypeDesc> > m_trace;
public:
- QValueList<QPair< SimpleTypeImpl::MemberInfo, TypeDesc> >& trace() {
+ TQValueList<QPair< SimpleTypeImpl::MemberInfo, TypeDesc> >& trace() {
return m_trace;
};
@@ -799,9 +799,9 @@ class TypeTrace {
void prepend( const TypeTrace& trace, int indent = 0 ) {
/* if( indent != 0 ) {
- QString ind;
+ TQString ind;
for( int a = 0; a < indent; a++ ) ind += " ";
- for( QValueList<QPair< SimpleTypeImpl::MemberInfo, TypeDesc> >::const_iterator it = trace.m_trace.end(); it != trace.m_trace.begin(); ) {
+ for( TQValueList<QPair< SimpleTypeImpl::MemberInfo, TypeDesc> >::const_iterator it = trace.m_trace.end(); it != trace.m_trace.begin(); ) {
--it;
QPair<SimpleTypeImpl::MemberInfo, TypeDesc> item = *it;
item.second.prependDecoration( ind );
diff --git a/languages/cpp/simpletypecachebinder.h b/languages/cpp/simpletypecachebinder.h
index 0cc5e2b0..3f950cbf 100644
--- a/languages/cpp/simpletypecachebinder.h
+++ b/languages/cpp/simpletypecachebinder.h
@@ -41,7 +41,7 @@ class SimpleTypeCacheBinder : public Base {
struct LocateDesc {
TypeDesc mname;
- //QString fullName;
+ //TQString fullName;
SimpleTypeImpl::LocateMode mmode;
int mdir;
SimpleTypeImpl::MemberInfo::MemberType mtypeMask;
@@ -120,7 +120,7 @@ class SimpleTypeCacheBinder : public Base {
struct MemberFindDesc {
TypeDesc m_desc;
- QString fullName;
+ TQString fullName;
SimpleTypeImpl::MemberInfo::MemberType findType;
size_t m_hashKey; //in time check why it is necessary to cache this key
size_t m_hashKey2;
@@ -134,8 +134,8 @@ class SimpleTypeCacheBinder : public Base {
int compare( const MemberFindDesc& rhs ) const {
if ( fullName.isEmpty() ) const_cast<MemberFindDesc*>(this)->fullName = m_desc.fullNameChain();
if ( rhs.fullName.isEmpty() ) const_cast<MemberFindDesc*>(&rhs)->fullName = rhs.m_desc.fullNameChain();
- const QString& a = fullName; //m_desc.fullNameChain();
- const QString& b = rhs.fullName; //m_desc.fullNameChain();
+ const TQString& a = fullName; //m_desc.fullNameChain();
+ const TQString& b = rhs.fullName; //m_desc.fullNameChain();
if ( a != b ) {
if ( a < b )
return -1;
@@ -179,7 +179,7 @@ class SimpleTypeCacheBinder : public Base {
typedef __gnu_cxx::hash_map<LocateDesc, LocateResult, typename LocateDesc::hash > LocateMap;
typedef __gnu_cxx::hash_map<MemberFindDesc, SimpleTypeImpl::MemberInfo, typename MemberFindDesc::hash > MemberMap;
- typedef __gnu_cxx::hash_map<MemberFindDesc, QValueList<TypePointer>, typename MemberFindDesc::hash > ClassListMap;
+ typedef __gnu_cxx::hash_map<MemberFindDesc, TQValueList<TypePointer>, typename MemberFindDesc::hash > ClassListMap;
virtual SimpleTypeImpl::MemberInfo findMember( TypeDesc name, SimpleTypeImpl::MemberInfo::MemberType type ) {
if ( !primaryActive )
@@ -211,7 +211,7 @@ class SimpleTypeCacheBinder : public Base {
}
}
- virtual QValueList<TypePointer> getMemberClasses( const TypeDesc& name ) {
+ virtual TQValueList<TypePointer> getMemberClasses( const TypeDesc& name ) {
if ( !primaryActive )
return Base::getMemberClasses( name );
MemberFindDesc key( name, Base::MemberInfo::NestedType );
@@ -221,7 +221,7 @@ class SimpleTypeCacheBinder : public Base {
/*ifVerbose( dbg() << "\"" << Base::str() << "\" took member-info for \"" << name.fullNameChain() << "\" from the cache: " << (*it).second. << endl );*/
return (*it).second;
} else {
- QValueList<TypePointer> mem;
+ TQValueList<TypePointer> mem;
m_classListCache.insert( std::make_pair( key, mem ) );
@@ -267,7 +267,7 @@ class SimpleTypeCacheBinder : public Base {
}
}
- virtual QValueList<LocateResult> getBases() {
+ virtual TQValueList<LocateResult> getBases() {
///@todo this needs a lookup for different includeFiles..
if ( m_haveBasesCache ) {
ifVerbose( dbg() << "\"" << Base::str() << "\" took base-info from the cache" << endl );
@@ -283,7 +283,7 @@ class SimpleTypeCacheBinder : public Base {
LocateMap m_locateCache;
MemberMap m_memberCache;
ClassListMap m_classListCache;
- QValueList<LocateResult> m_basesCache;
+ TQValueList<LocateResult> m_basesCache;
bool m_haveBasesCache;
bool secondaryActive, primaryActive;
diff --git a/languages/cpp/simpletypecatalog.cpp b/languages/cpp/simpletypecatalog.cpp
index 2b02cd9e..f662acc5 100644
--- a/languages/cpp/simpletypecatalog.cpp
+++ b/languages/cpp/simpletypecatalog.cpp
@@ -24,21 +24,21 @@ TypePointer SimpleTypeCatalog::clone() {
return new SimpleTypeCachedCatalog( this );
}
-QString SimpleTypeCatalog::specialization() const {
+TQString SimpleTypeCatalog::specialization() const {
return m_tag.getSpecializationDeclaration();
}
void SimpleTypeCatalog::addAliasesTo( SimpleTypeNamespace* ns ) {
if ( m_tag.kind() != Tag::Kind_Namespace ) return;
- QValueList<Catalog::QueryArgument> args;
+ TQValueList<Catalog::QueryArgument> args;
///Insert all namespace-imports
args << Catalog::QueryArgument( "scope", specializedScope() );
args << Catalog::QueryArgument( "kind", Tag::Kind_UsingDirective );
- QValueList<Tag> tags( cppCompletionInstance->m_repository->query( args ) );
+ TQValueList<Tag> tags( cppCompletionInstance->m_repository->query( args ) );
- for ( QValueList<Tag>::iterator it = tags.begin(); it != tags.end(); ++it ) {
+ for ( TQValueList<Tag>::iterator it = tags.begin(); it != tags.end(); ++it ) {
TypeDesc d( (*it).name() );
d.setIncludeFiles( HashedString((*it).fileName()) ); ///@todo implement the include-file-logic
ns->addAliasMap( TypeDesc(), d, HashedString((*it).fileName()), true, false, bigContainer() );
@@ -50,9 +50,9 @@ void SimpleTypeCatalog::addAliasesTo( SimpleTypeNamespace* ns ) {
tags = cppCompletionInstance->m_repository->query( args );
- for ( QValueList<Tag>::iterator it = tags.begin(); it != tags.end(); ++it ) {
- QVariant v = (*it).attribute( "alias" );
- if ( v.type() == QVariant::String ) {
+ for ( TQValueList<Tag>::iterator it = tags.begin(); it != tags.end(); ++it ) {
+ TQVariant v = (*it).attribute( "alias" );
+ if ( v.type() == TQVariant::String ) {
TypeDesc d( v.asString() );
d.setIncludeFiles( HashedString((*it).fileName()) );
ns->addAliasMap( (*it).name(), d, HashedString((*it).fileName()), true, false, bigContainer() );
@@ -61,17 +61,17 @@ void SimpleTypeCatalog::addAliasesTo( SimpleTypeNamespace* ns ) {
}
}
-QValueList<TypePointer> SimpleTypeCatalog::getMemberClasses( const TypeDesc& name ) {
- QValueList<TypePointer> ret;
+TQValueList<TypePointer> SimpleTypeCatalog::getMemberClasses( const TypeDesc& name ) {
+ TQValueList<TypePointer> ret;
- QValueList<Catalog::QueryArgument> args;
+ TQValueList<Catalog::QueryArgument> args;
args << Catalog::QueryArgument( "scope", specializedScope() );
args << Catalog::QueryArgument( "name", name.name() );
- QValueList<Tag> tags( cppCompletionInstance->m_repository->query( args ) );
+ TQValueList<Tag> tags( cppCompletionInstance->m_repository->query( args ) );
- for ( QValueList<Tag>::iterator it = tags.begin(); it != tags.end(); ++it ) {
+ for ( TQValueList<Tag>::iterator it = tags.begin(); it != tags.end(); ++it ) {
if ( (*it).kind() == Tag::Kind_Class ) {
///It would be better to return all matched class-names from within findMember and use them from there so all this will be cached too.
CatalogBuildInfo b( *it, name, TypePointer( this ) );
@@ -101,17 +101,17 @@ SimpleTypeImpl::MemberInfo SimpleTypeCatalog::findMember( TypeDesc name, SimpleT
}
}
- QValueList<Catalog::QueryArgument> args;
+ TQValueList<Catalog::QueryArgument> args;
args << Catalog::QueryArgument( "scope", specializedScope() );
args << Catalog::QueryArgument( "name", name.name() );
- QValueList<Tag> tags( cppCompletionInstance->m_repository->query( args ) );
+ TQValueList<Tag> tags( cppCompletionInstance->m_repository->query( args ) );
if ( tags.isEmpty() ) return ret;
///skip all using-directives
- QValueList<Tag>::iterator it = tags.begin();
+ TQValueList<Tag>::iterator it = tags.begin();
while ( ( (*it).kind() == Tag::Kind_UsingDirective || (*it).kind() == Tag::Kind_NamespaceAlias ) && it != tags.end() )
++it;
@@ -148,7 +148,7 @@ SimpleTypeImpl::MemberInfo SimpleTypeCatalog::findMember( TypeDesc name, SimpleT
bool hasSpecializationDeclaration = tag.hasSpecializationDeclaration();
bool isIncluded = name.includeFiles()[tag.fileName()];
if ( hasSpecializationDeclaration || !isIncluded ) {
- for ( QValueList<Tag>::const_iterator it = tags.begin(); it != tags.end(); ++it ) {
+ for ( TQValueList<Tag>::const_iterator it = tags.begin(); it != tags.end(); ++it ) {
if ( (*it).kind() == Tag::Kind_Class && !(*it).hasSpecializationDeclaration() ) {
if ( name.includeFiles()[(*it).fileName()] ) {
tag = *it;
@@ -212,17 +212,17 @@ SimpleTypeImpl::MemberInfo SimpleTypeCatalog::findMember( TypeDesc name, SimpleT
return ret;
}
-Tag SimpleTypeCatalog::findSubTag( const QString& name ) {
+Tag SimpleTypeCatalog::findSubTag( const TQString& name ) {
if ( name.isEmpty() ) return Tag();
- QValueList<Catalog::QueryArgument> args;
- QTime t;
+ TQValueList<Catalog::QueryArgument> args;
+ TQTime t;
t.start();
args << Catalog::QueryArgument( "scope", specializedScope() );
args << Catalog::QueryArgument( "name", name );
- QValueList<Tag> tags( cppCompletionInstance->m_repository->query( args ) );
+ TQValueList<Tag> tags( cppCompletionInstance->m_repository->query( args ) );
if ( ! tags.isEmpty() ) {
//ifVerbose( dbg() << "findTag: \"" << str() << "\": tag \"" << name << "\" found " << endl );
return tags.front();
@@ -232,22 +232,22 @@ Tag SimpleTypeCatalog::findSubTag( const QString& name ) {
}
}
-QValueList<Tag> SimpleTypeCatalog::getBaseClassList( ) {
+TQValueList<Tag> SimpleTypeCatalog::getBaseClassList( ) {
if ( scope().isEmpty() )
- return QValueList<Tag>();
+ return TQValueList<Tag>();
return cppCompletionInstance->m_repository->getBaseClassList( scope().join("::") + specialization() );
}
void SimpleTypeCatalog::initFromTag() {
- QStringList l = m_tag.scope();
+ TQStringList l = m_tag.scope();
l << m_tag.name();
setScope( l );
}
void SimpleTypeCatalog::init() {
if ( !scope().isEmpty() ) {
- QStringList l = scope();
- QStringList cp = l;
+ TQStringList l = scope();
+ TQStringList cp = l;
cp.pop_back();
setScope( cp );
m_tag = findSubTag( l.back() );
@@ -270,21 +270,21 @@ DeclarationInfo SimpleTypeCatalog::getDeclarationInfo() {
return ret;
}
-QStringList SimpleTypeCatalog::getBaseStrings() {
+TQStringList SimpleTypeCatalog::getBaseStrings() {
Debug d( "#getbases#" );
if ( !d || !safetyCounter ) {
//ifVerbose( dbg() << "\"" << str() << "\": recursion to deep while getting bases" << endl );
- return QStringList();
+ return TQStringList();
}
- QStringList ret;
- QMap<QString, bool> bases;
+ TQStringList ret;
+ TQMap<TQString, bool> bases;
// try with parentsc
- QTime t;
+ TQTime t;
t.restart();
- QValueList<Tag> parents( getBaseClassList() );
+ TQValueList<Tag> parents( getBaseClassList() );
- QValueList<Tag>::Iterator it = parents.begin();
+ TQValueList<Tag>::Iterator it = parents.begin();
while ( it != parents.end() ) {
Tag & tag = *it;
++it;
@@ -301,11 +301,11 @@ SimpleTypeImpl::TemplateParamInfo SimpleTypeCatalog::getTemplateParamInfo() {
if ( m_tag ) {
if ( m_tag.hasAttribute( "tpl" ) ) {
- QStringList l = m_tag.attribute( "tpl" ).asStringList();
+ TQStringList l = m_tag.attribute( "tpl" ).asStringList();
TypeDesc::TemplateParams templateParams = m_desc.templateParams();
uint pi = 0;
- QStringList::const_iterator it = l.begin();
+ TQStringList::const_iterator it = l.begin();
while ( it != l.end() ) {
TemplateParamInfo::TemplateParam curr;
curr.name = *it;
@@ -326,14 +326,14 @@ SimpleTypeImpl::TemplateParamInfo SimpleTypeCatalog::getTemplateParamInfo() {
return ret;
}
-const LocateResult SimpleTypeCatalog::findTemplateParam( const QString& name ) {
+const LocateResult SimpleTypeCatalog::findTemplateParam( const TQString& name ) {
if ( m_tag ) {
if ( m_tag.hasAttribute( "tpl" ) ) {
- QStringList l = m_tag.attribute( "tpl" ).asStringList();
+ TQStringList l = m_tag.attribute( "tpl" ).asStringList();
///we need the index, so count the items through
uint pi = 0;
- QStringList::const_iterator it = l.begin();
+ TQStringList::const_iterator it = l.begin();
while ( it != l.end() && *it != name ) {
++pi;
++it;
diff --git a/languages/cpp/simpletypecatalog.h b/languages/cpp/simpletypecatalog.h
index ecfdb833..e22a3fcf 100644
--- a/languages/cpp/simpletypecatalog.h
+++ b/languages/cpp/simpletypecatalog.h
@@ -35,7 +35,7 @@ public:
}
/** empty scope means global scope */
- SimpleTypeCatalog( const QStringList& scope ) : SimpleTypeImpl( scope ) {
+ SimpleTypeCatalog( const TQStringList& scope ) : SimpleTypeImpl( scope ) {
init();
}
@@ -48,7 +48,7 @@ public:
initFromTag();
}
- virtual QString comment() const {
+ virtual TQString comment() const {
return m_tag.comment();
};
@@ -62,29 +62,29 @@ public:
return (bool)m_tag;
};
- virtual QStringList getBaseStrings();
+ virtual TQStringList getBaseStrings();
virtual TemplateParamInfo getTemplateParamInfo();
- virtual const LocateResult findTemplateParam( const QString& name );
+ virtual const LocateResult findTemplateParam( const TQString& name );
- virtual QString specialization() const;
+ virtual TQString specialization() const;
virtual void addAliasesTo( SimpleTypeNamespace* ns );
private:
Tag m_tag;
- int pointerDepthFromString( const QString& str ) {
- QRegExp ptrRx( "(\\*|\\&)" );
- QString ptr = str.mid( str.find( ptrRx ) );
- QStringList ptrList = QStringList::split( "", ptr );
+ int pointerDepthFromString( const TQString& str ) {
+ TQRegExp ptrRx( "(\\*|\\&)" );
+ TQString ptr = str.mid( str.find( ptrRx ) );
+ TQStringList ptrList = TQStringList::split( "", ptr );
return ptrList.size();
}
- Tag findSubTag( const QString& name );
+ Tag findSubTag( const TQString& name );
- QValueList<Tag> getBaseClassList();
+ TQValueList<Tag> getBaseClassList();
void initFromTag();
@@ -108,7 +108,7 @@ protected:
virtual MemberInfo findMember( TypeDesc name, MemberInfo::MemberType type = MemberInfo::AllTypes);
- virtual QValueList<TypePointer> getMemberClasses( const TypeDesc& name ) ;
+ virtual TQValueList<TypePointer> getMemberClasses( const TypeDesc& name ) ;
};
diff --git a/languages/cpp/simpletypefunction.cpp b/languages/cpp/simpletypefunction.cpp
index 898228bb..3fc1ce52 100644
--- a/languages/cpp/simpletypefunction.cpp
+++ b/languages/cpp/simpletypefunction.cpp
@@ -40,24 +40,24 @@ HashedStringSet getIncludeFiles( const ItemDom& item ) {
//SimpleTypeFunctionInterface implementation
-QString SimpleTypeFunctionInterface::signature() {
- QString sig = "( ";
+TQString SimpleTypeFunctionInterface::signature() {
+ TQString sig = "( ";
SimpleTypeImpl* asType = dynamic_cast<SimpleTypeImpl*>( this );
- QStringList argDefaults = getArgumentDefaults();
- QStringList argNames = getArgumentNames();
- QValueList<TypeDesc> argTypes = getArgumentTypes();
- QValueList<LocateResult> argRealTypes;
+ TQStringList argDefaults = getArgumentDefaults();
+ TQStringList argNames = getArgumentNames();
+ TQValueList<TypeDesc> argTypes = getArgumentTypes();
+ TQValueList<LocateResult> argRealTypes;
if ( asType ) {
- for ( QValueList<TypeDesc>::iterator it = argTypes.begin(); it != argTypes.end(); ++it ) {
+ for ( TQValueList<TypeDesc>::iterator it = argTypes.begin(); it != argTypes.end(); ++it ) {
argRealTypes << asType->locateDecType( *it );
}
}
- QStringList::iterator def = argDefaults.begin();
- QStringList::iterator name = argNames.begin();
- QValueList<LocateResult>::iterator realType = argRealTypes.begin();
+ TQStringList::iterator def = argDefaults.begin();
+ TQStringList::iterator name = argNames.begin();
+ TQValueList<LocateResult>::iterator realType = argRealTypes.begin();
while ( realType != argRealTypes.end() ) {
if ( sig != "( " )
@@ -128,9 +128,9 @@ void SimpleTypeFunctionInterface::resolveImplicitTypes( TypeDesc::TemplateParams
}
}
-void SimpleTypeFunctionInterface::resolveImplicitTypes( QValueList<TypeDesc>& argTypes, QValueList<TypeDesc>& gottenArgTypes, SimpleTypeImpl::TemplateParamInfo& paramInfo ) {
- QValueList<TypeDesc>::iterator it = argTypes.begin();
- QValueList<TypeDesc>::iterator it2 = gottenArgTypes.begin();
+void SimpleTypeFunctionInterface::resolveImplicitTypes( TQValueList<TypeDesc>& argTypes, TQValueList<TypeDesc>& gottenArgTypes, SimpleTypeImpl::TemplateParamInfo& paramInfo ) {
+ TQValueList<TypeDesc>::iterator it = argTypes.begin();
+ TQValueList<TypeDesc>::iterator it2 = gottenArgTypes.begin();
while ( it != argTypes.end() && it2 != gottenArgTypes.end() ) {
resolveImplicitTypes( *it, *it2, paramInfo );
@@ -191,13 +191,13 @@ SimpleTypeCodeModel::SimpleTypeCodeModel( ItemDom& item ) : m_item( item ) {
FunctionModel* m = dynamic_cast<FunctionModel*>( i );
ClassModel* c = dynamic_cast<ClassModel*>( i );
if ( m ) {
- QStringList l = m->scope();
+ TQStringList l = m->scope();
l << m->name();
setScope( l );
return;
}
if ( c ) {
- QStringList l = c->scope();
+ TQStringList l = c->scope();
l << c->name();
setScope( l );
return;
@@ -237,7 +237,7 @@ ItemDom SimpleTypeCodeModel::locateModelContainer( class CodeModel* m, TypeDesc
}
///Until header-parsing is implemented, this tries to find the class that is most related to this item
-/*ClassDom SimpleTypeCodeModel::pickMostRelated( ClassList lst, QString fn ) {
+/*ClassDom SimpleTypeCodeModel::pickMostRelated( ClassList lst, TQString fn ) {
if( lst.isEmpty() ) return ClassDom();
ClassDom best = lst.front();
@@ -247,7 +247,7 @@ ItemDom SimpleTypeCodeModel::locateModelContainer( class CodeModel* m, TypeDesc
for( ClassList::iterator it = lst.begin(); it != lst.end(); ++it ) {
if( !(*it)->getSpecializationDeclaration().isEmpty() ) continue; ///Don't consider specialized classes
//kdDebug() << "comparing " << (*it)->fileName() << endl;
- QString str = (*it)->fileName();
+ TQString str = (*it)->fileName();
uint len = str.length();
if( fn.length() < len ) len = fn.length();
@@ -271,11 +271,11 @@ ItemDom SimpleTypeCodeModel::locateModelContainer( class CodeModel* m, TypeDesc
return best;
}*/
-/*QValueList<TypePointer> SimpleTypeCodeModel::findSpecializations( const QString& name ) {
+/*TQValueList<TypePointer> SimpleTypeCodeModel::findSpecializations( const TQString& name ) {
ClassModel* klass = dynamic_cast<ClassModel*> ( & (*m_item) );
if( !klass ) {
ifVerbose( dbg() << "\"" << str() << "\": search for member " << name.name() << " unsuccessful because the own type is invalid" << endl );
- return QValueList<TypePointer>();
+ return TQValueList<TypePointer>();
}
ClassList l = klass->classByName( name.name() );
@@ -290,12 +290,12 @@ ItemDom SimpleTypeCodeModel::locateModelContainer( class CodeModel* m, TypeDesc
}
}
- return QValueList<TypePointer>();
+ return TQValueList<TypePointer>();
}*/
-QValueList<TypePointer> SimpleTypeCodeModel::getMemberClasses( const TypeDesc& name ) {
- QValueList<TypePointer> ret;
+TQValueList<TypePointer> SimpleTypeCodeModel::getMemberClasses( const TypeDesc& name ) {
+ TQValueList<TypePointer> ret;
if ( !m_item ) return ret;
@@ -319,10 +319,10 @@ QValueList<TypePointer> SimpleTypeCodeModel::getMemberClasses( const TypeDesc& n
}
template<class Item>
-Item pickMostRelated( const HashedStringSet& includeFiles, const QValueList<Item>& list ) {
+Item pickMostRelated( const HashedStringSet& includeFiles, const TQValueList<Item>& list ) {
if ( list.isEmpty() ) return Item();
- for ( typename QValueList<Item>::const_iterator it = list.begin(); it != list.end(); ++it ) {
+ for ( typename TQValueList<Item>::const_iterator it = list.begin(); it != list.end(); ++it ) {
if ( includeFiles[( *it )->fileName()] )
return *it;
}
@@ -330,10 +330,10 @@ Item pickMostRelated( const HashedStringSet& includeFiles, const QValueList<Item
}
template<>
-ClassDom pickMostRelated( const HashedStringSet& includeFiles, const QValueList<ClassDom>& list ) {
+ClassDom pickMostRelated( const HashedStringSet& includeFiles, const TQValueList<ClassDom>& list ) {
if ( list.isEmpty() ) return ClassDom(); ///@todo the current file must be preferred
- for ( QValueList<ClassDom>::const_iterator it = list.begin(); it != list.end(); ++it ) {
+ for ( TQValueList<ClassDom>::const_iterator it = list.begin(); it != list.end(); ++it ) {
if ( !( *it )->getSpecializationDeclaration().isEmpty() ) continue; ///Don't consider specialized classes
if ( includeFiles[( *it )->fileName()] )
return *it;
@@ -466,7 +466,7 @@ SimpleTypeImpl::MemberInfo SimpleTypeCodeModel::findMember( TypeDesc name , Memb
}
bool SimpleTypeCodeModel::findItem() {
- QString key = str();
+ TQString key = str();
m_item = locateModelContainer( cppCompletionInstance->m_pSupport->codeModel(), str() );
return ( bool ) m_item;
}
@@ -492,9 +492,9 @@ DeclarationInfo SimpleTypeCodeModel::getDeclarationInfo() {
return ret;
}
-QString SimpleTypeCodeModel::specialization() const {
+TQString SimpleTypeCodeModel::specialization() const {
const ClassModel* klass = dynamic_cast<const ClassModel*>( m_item.data() );
- if ( !klass ) return QString::null;
+ if ( !klass ) return TQString::null;
return klass->getSpecializationDeclaration();
}
@@ -520,7 +520,7 @@ SimpleTypeImpl::TemplateParamInfo SimpleTypeCodeModel::getTemplateParamInfo() {
return ret;
}
-const LocateResult SimpleTypeCodeModel::findTemplateParam( const QString& name ) {
+const LocateResult SimpleTypeCodeModel::findTemplateParam( const TQString& name ) {
if ( m_item ) {
TemplateModelItem* ti = dynamic_cast<TemplateModelItem*>( & ( *m_item ) );
TypeDesc::TemplateParams& templateParams = m_desc.templateParams();
@@ -529,7 +529,7 @@ const LocateResult SimpleTypeCodeModel::findTemplateParam( const QString& name )
return *templateParams[pi];
} else {
if ( pi != -1 && !ti->getParam( pi ).second.isEmpty() ) {
- QString def = ti->getParam( pi ).second;
+ TQString def = ti->getParam( pi ).second;
ifVerbose( dbg() << "\"" << str() << "\": using default-template-parameter \"" << def << "\" for " << name << endl );
return TypeDesc( def );
} else if ( pi != -1 ) {
@@ -540,21 +540,21 @@ const LocateResult SimpleTypeCodeModel::findTemplateParam( const QString& name )
return LocateResult();
}
-QStringList SimpleTypeCodeModel::getBaseStrings() {
+TQStringList SimpleTypeCodeModel::getBaseStrings() {
Debug d( "#getbases#" );
if ( !d || !safetyCounter ) {
//ifVerbose( dbg() << "\"" << str() << "\": recursion to deep while getting bases" << endl );
- return QStringList();
+ return TQStringList();
}
- QStringList ret;
+ TQStringList ret;
ClassModel* klass;
if ( !m_item || ( klass = dynamic_cast<ClassModel*>( & ( *m_item ) ) ) == 0 ) return ret;
- QStringList parents = klass->baseClassList();
- for ( QStringList::Iterator it = parents.begin(); it != parents.end(); ++it ) {
+ TQStringList parents = klass->baseClassList();
+ for ( TQStringList::Iterator it = parents.begin(); it != parents.end(); ++it ) {
ret << *it;
}
@@ -592,8 +592,8 @@ bool SimpleTypeCodeModelFunction::isConst() {
}
-QValueList<TypeDesc> SimpleTypeCodeModelFunction::getArgumentTypes() {
- QValueList<TypeDesc> ret;
+TQValueList<TypeDesc> SimpleTypeCodeModelFunction::getArgumentTypes() {
+ TQValueList<TypeDesc> ret;
if ( item() ) {
IncludeFiles files;
@@ -611,8 +611,8 @@ QValueList<TypeDesc> SimpleTypeCodeModelFunction::getArgumentTypes() {
return ret;
}
-QStringList SimpleTypeCodeModelFunction::getArgumentNames() {
- QStringList ret;
+TQStringList SimpleTypeCodeModelFunction::getArgumentNames() {
+ TQStringList ret;
if ( item() ) {
if ( FunctionModel* m = dynamic_cast<FunctionModel*>( & ( *item() ) ) ) {
@@ -625,8 +625,8 @@ QStringList SimpleTypeCodeModelFunction::getArgumentNames() {
return ret;
}
-QStringList SimpleTypeCodeModelFunction::getArgumentDefaults() {
- QStringList ret;
+TQStringList SimpleTypeCodeModelFunction::getArgumentDefaults() {
+ TQStringList ret;
if ( item() ) {
if ( FunctionModel* m = dynamic_cast<FunctionModel*>( & ( *item() ) ) ) {
@@ -650,7 +650,7 @@ SimpleTypeCodeModelFunction::CodeModelFunctionBuildInfo::CodeModelFunctionBuildI
}
TypePointer SimpleTypeCodeModelFunction::CodeModelFunctionBuildInfo::build() {
- QValueList<TypePointer> ret;
+ TQValueList<TypePointer> ret;
TypePointer last;
for ( FunctionList::iterator it = m_items.begin(); it != m_items.end(); ++it ) {
TypePointer tp = new SimpleTypeCodeModelFunction( model_cast<ItemDom> ( *it ) );
@@ -684,19 +684,19 @@ bool SimpleTypeCatalogFunction::isConst() {
return tagInfo.isConst();
}
-QStringList SimpleTypeCatalogFunction::getArgumentNames() {
- QStringList ret;
+TQStringList SimpleTypeCatalogFunction::getArgumentNames() {
+ TQStringList ret;
Tag t = tag();
CppFunction<Tag> tagInfo( t );
return tagInfo.argumentNames();
}
-QValueList<TypeDesc> SimpleTypeCatalogFunction::getArgumentTypes() {
- QValueList<TypeDesc> ret;
+TQValueList<TypeDesc> SimpleTypeCatalogFunction::getArgumentTypes() {
+ TQValueList<TypeDesc> ret;
Tag t = tag();
CppFunction<Tag> tagInfo( t );
- QStringList arguments = tagInfo.arguments();
- for ( QStringList::iterator it = arguments.begin(); it != arguments.end(); ++it )
+ TQStringList arguments = tagInfo.arguments();
+ for ( TQStringList::iterator it = arguments.begin(); it != arguments.end(); ++it )
ret << TypeDesc( *it );
return ret;
}
@@ -704,9 +704,9 @@ QValueList<TypeDesc> SimpleTypeCatalogFunction::getArgumentTypes() {
//SimpleTypeCatalogFunction::CatalogFunctionBuildInfo implementation
TypePointer SimpleTypeCatalogFunction::CatalogFunctionBuildInfo::build() {
- QValueList<TypePointer> ret;
+ TQValueList<TypePointer> ret;
TypePointer last;
- for ( QValueList<Tag>::iterator it = m_tags.begin(); it != m_tags.end(); ++it ) {
+ for ( TQValueList<Tag>::iterator it = m_tags.begin(); it != m_tags.end(); ++it ) {
TypePointer tp = new SimpleTypeCatalogFunction( *it );
tp->takeTemplateParams( m_desc );
tp->descForEdit().increaseFunctionDepth();
diff --git a/languages/cpp/simpletypefunction.h b/languages/cpp/simpletypefunction.h
index a0bd34fc..90b5fcab 100644
--- a/languages/cpp/simpletypefunction.h
+++ b/languages/cpp/simpletypefunction.h
@@ -46,20 +46,20 @@ class SimpleTypeFunctionInterface {
///Returns the totally unresolved return-type
virtual TypeDesc getReturnType() = 0;
- virtual QValueList<TypeDesc> getArgumentTypes() = 0;
+ virtual TQValueList<TypeDesc> getArgumentTypes() = 0;
- virtual QStringList getArgumentDefaults() = 0;
+ virtual TQStringList getArgumentDefaults() = 0;
- virtual QStringList getArgumentNames() = 0;
+ virtual TQStringList getArgumentNames() = 0;
virtual bool isConst() = 0;
- virtual QString signature();
+ virtual TQString signature();
///TODO: This function should locate the correct overloaded method in the chain, fitting the parameters
///should also moved into another class then
- SimpleTypeImpl* match( const QValueList<LocateResult>& /*params*/ ) {
- // QValueList<TypeDesc> args = getArgumentTypes();
+ SimpleTypeImpl* match( const TQValueList<LocateResult>& /*params*/ ) {
+ // TQValueList<TypeDesc> args = getArgumentTypes();
return dynamic_cast<SimpleTypeImpl*>( this );
}
@@ -80,7 +80,7 @@ class SimpleTypeFunctionInterface {
void resolveImplicitTypes( TypeDesc::TemplateParams& argTypes, TypeDesc::TemplateParams& gottenArgTypes, SimpleTypeImpl::TemplateParamInfo& paramInfo );
///Tries to match the types, filling implicit template-params into paramInfo
- void resolveImplicitTypes( QValueList<TypeDesc>& argTypes, QValueList<TypeDesc>& gottenArgTypes, SimpleTypeImpl::TemplateParamInfo& paramInfo );
+ void resolveImplicitTypes( TQValueList<TypeDesc>& argTypes, TQValueList<TypeDesc>& gottenArgTypes, SimpleTypeImpl::TemplateParamInfo& paramInfo );
};
template <class Base=SimpleTypeImpl>
@@ -114,7 +114,7 @@ public:
return ret;
}
- virtual LocateResult applyOperator( typename Base::Operator op , QValueList<LocateResult> params ) {
+ virtual LocateResult applyOperator( typename Base::Operator op , TQValueList<LocateResult> params ) {
Debug d("#apply#");
if( !d )
return LocateResult();
@@ -131,9 +131,9 @@ public:
/** This is the place where implicit template-function-instatiation takes place.
* Match the given param-types with the argument-types to resolve new template-params.
*/
- QValueList<TypeDesc> args = getArgumentTypes();
- QValueList<TypeDesc> paramDescs;
- for( QValueList<LocateResult>::iterator it = params.begin(); it != params.end(); ++it )
+ TQValueList<TypeDesc> args = getArgumentTypes();
+ TQValueList<TypeDesc> paramDescs;
+ for( TQValueList<LocateResult>::iterator it = params.begin(); it != params.end(); ++it )
paramDescs << (TypeDesc)(*it);
resolveImplicitTypes( args, paramDescs, paramInfo );
///paramInfo now contains the information for all implicit types
@@ -167,7 +167,7 @@ public:
init();
}
- SimpleTypeCodeModel( const QStringList& scope ) : SimpleTypeImpl( scope ) {
+ SimpleTypeCodeModel( const TQStringList& scope ) : SimpleTypeImpl( scope ) {
init();
}
@@ -175,7 +175,7 @@ public:
return (bool)m_item;
};
- virtual QString comment() const {
+ virtual TQString comment() const {
if( m_item ) {
return m_item->comment();
} else {
@@ -209,14 +209,14 @@ public:
virtual TemplateParamInfo getTemplateParamInfo();
- virtual const LocateResult findTemplateParam( const QString& name );
+ virtual const LocateResult findTemplateParam( const TQString& name );
/** In case of a class, returns all base-types */
- virtual QStringList getBaseStrings();
+ virtual TQStringList getBaseStrings();
ItemDom locateModelContainer( class CodeModel* m, TypeDesc t, ClassDom cnt = ClassDom() );
- virtual QString specialization() const;
+ virtual TQString specialization() const;
virtual void addAliasesTo( SimpleTypeNamespace* ns );
@@ -227,7 +227,7 @@ private:
void init();
- //ClassDom pickMostRelated( ClassList lst, QString fn );
+ //ClassDom pickMostRelated( ClassList lst, TQString fn );
protected:
SimpleTypeCodeModel() : SimpleTypeImpl() {
@@ -247,7 +247,7 @@ protected:
virtual MemberInfo findMember( TypeDesc name , MemberInfo::MemberType type = MemberInfo::AllTypes) ;
- virtual QValueList<TypePointer> getMemberClasses( const TypeDesc& name ) ;
+ virtual TQValueList<TypePointer> getMemberClasses( const TypeDesc& name ) ;
};
@@ -270,11 +270,11 @@ public:
virtual bool isConst();
- virtual QValueList<TypeDesc> getArgumentTypes();
+ virtual TQValueList<TypeDesc> getArgumentTypes();
- virtual QStringList getArgumentNames();
+ virtual TQStringList getArgumentNames();
- virtual QStringList getArgumentDefaults();
+ virtual TQStringList getArgumentDefaults();
struct CodeModelFunctionBuildInfo : public TypeBuildInfo {
FunctionList m_items;
@@ -313,11 +313,11 @@ public:
}
struct CatalogFunctionBuildInfo : public TypeBuildInfo {
- QValueList<Tag> m_tags;
+ TQValueList<Tag> m_tags;
TypeDesc m_desc;
TypePointer m_parent;
- CatalogFunctionBuildInfo( QValueList<Tag> tags, TypeDesc& desc, TypePointer parent ) : m_tags( tags ), m_desc( desc ), m_parent( parent ) {
+ CatalogFunctionBuildInfo( TQValueList<Tag> tags, TypeDesc& desc, TypePointer parent ) : m_tags( tags ), m_desc( desc ), m_parent( parent ) {
}
virtual TypePointer build();
@@ -327,13 +327,13 @@ public:
virtual bool isConst ();
- virtual QStringList getArgumentDefaults() {
- return QStringList();
+ virtual TQStringList getArgumentDefaults() {
+ return TQStringList();
}
- virtual QStringList getArgumentNames();
+ virtual TQStringList getArgumentNames();
- virtual QValueList<TypeDesc> getArgumentTypes();
+ virtual TQValueList<TypeDesc> getArgumentTypes();
};
diff --git a/languages/cpp/simpletypenamespace.cpp b/languages/cpp/simpletypenamespace.cpp
index 2ae35401..f7937db1 100644
--- a/languages/cpp/simpletypenamespace.cpp
+++ b/languages/cpp/simpletypenamespace.cpp
@@ -11,7 +11,7 @@ email : david.nolden.kdevelop@art-master.de
* (at your option) any later version. *
* *
***************************************************************************/
-#include <qtl.h>
+#include <tqtl.h>
#include <typeinfo>
#include "simpletypenamespace.h"
#include "simpletypecachebinder.h"
@@ -30,7 +30,7 @@ TypePointer SimpleTypeNamespace::clone() {
return new SimpleTypeCachedNamespace( this );
}
-SimpleTypeNamespace::SimpleTypeNamespace( const QStringList& fakeScope, const QStringList& realScope ) : SimpleTypeImpl( fakeScope ), m_currentSlaveId(0) {
+SimpleTypeNamespace::SimpleTypeNamespace( const TQStringList& fakeScope, const TQStringList& realScope ) : SimpleTypeImpl( fakeScope ), m_currentSlaveId(0) {
ifVerbose( dbg() << "\"" << str() << "\": created namespace-proxy with real scope \"" << realScope.join( "::" ) << "\"" << endl );
SimpleType cm = SimpleType( realScope, HashedStringSet(), RepoCodeModel );
SimpleType ct = SimpleType( realScope, HashedStringSet(), RepoCatalog );
@@ -42,7 +42,7 @@ SimpleTypeNamespace::SimpleTypeNamespace( const QStringList& fakeScope, const QS
addImport( ct->desc() );
}
-SimpleTypeNamespace::SimpleTypeNamespace( const QStringList& fakeScope ) : SimpleTypeImpl( fakeScope ), m_currentSlaveId(0) {
+SimpleTypeNamespace::SimpleTypeNamespace( const TQStringList& fakeScope ) : SimpleTypeImpl( fakeScope ), m_currentSlaveId(0) {
ifVerbose( dbg() << "\"" << str() << "\": created namespace-proxy" << endl );
}
@@ -67,20 +67,20 @@ SimpleTypeImpl::MemberInfo SimpleTypeNamespace::findMember( TypeDesc name, Membe
return ret;
}
-QValueList<TypePointer> SimpleTypeNamespace::getMemberClasses( const TypeDesc& name ) {
+TQValueList<TypePointer> SimpleTypeNamespace::getMemberClasses( const TypeDesc& name ) {
std::set<HashedString> ignore;
return getMemberClasses( name, ignore );
}
-QValueList<TypePointer> SimpleTypeNamespace::getMemberClasses( const TypeDesc& name, std::set<HashedString>& ignore ) {
+TQValueList<TypePointer> SimpleTypeNamespace::getMemberClasses( const TypeDesc& name, std::set<HashedString>& ignore ) {
HashedString myName = HashedString( scope().join( "::" ) +"%"+typeid( *this ).name() );
if ( ignore.find( myName ) != ignore.end() || !safetyCounter )
- return QValueList<TypePointer>();
+ return TQValueList<TypePointer>();
ignore.insert( myName );
- QValueList<TypePointer> ret;
+ TQValueList<TypePointer> ret;
SlaveList l = getSlaves( name.includeFiles() );
for ( SlaveList::iterator it = l.begin(); it != l.end(); ++it ) {
@@ -198,11 +198,11 @@ SimpleTypeImpl::MemberInfo SimpleTypeNamespace::findMember( TypeDesc name, Membe
// }
// }
-SimpleTypeImpl::MemberInfo SimpleTypeNamespace::setupMemberInfo( const QStringList& subName, const ImportList& imports ) {
+SimpleTypeImpl::MemberInfo SimpleTypeNamespace::setupMemberInfo( const TQStringList& subName, const ImportList& imports ) {
MemberInfo mem;
mem.name = subName.join( "::" );
mem.memberType = MemberInfo::NotFound;
- QStringList sc = scope();
+ TQStringList sc = scope();
sc += subName;
mem.type = sc.join( "::" );
mem.memberType = MemberInfo::Namespace;
@@ -318,7 +318,7 @@ std::set<size_t> SimpleTypeNamespace::updateAliases( const IncludeFiles& files/*
}
-void SimpleTypeNamespace::addAliases( QString map, const IncludeFiles& files ) {
+void SimpleTypeNamespace::addAliases( TQString map, const IncludeFiles& files ) {
while ( !map.isEmpty() ) {
int mid = map.find( "=" );
int mid2 = map.find( "<<" );
diff --git a/languages/cpp/simpletypenamespace.h b/languages/cpp/simpletypenamespace.h
index 169c4548..b465cfb6 100644
--- a/languages/cpp/simpletypenamespace.h
+++ b/languages/cpp/simpletypenamespace.h
@@ -62,9 +62,9 @@ class SimpleTypeNamespace : public SimpleTypeImpl {
typedef std::multiset<Import> ImportList;
- SimpleTypeNamespace( const QStringList& fakeScope, const QStringList& realScope );
+ SimpleTypeNamespace( const TQStringList& fakeScope, const TQStringList& realScope );
- SimpleTypeNamespace( const QStringList& fakeScope );
+ SimpleTypeNamespace( const TQStringList& fakeScope );
SimpleTypeNamespace( SimpleTypeNamespace* ns );
@@ -87,13 +87,13 @@ class SimpleTypeNamespace : public SimpleTypeImpl {
/**Takes a map of multiple aliases in form "A=B;C=D;....;" similar to the C++ "namespace A=B;" statement
* @param files Set of files that must be included for this alias-map to be active. If the set is empty, the alias will be used globally.
*/
- void addAliases( QString map, const IncludeFiles& files = IncludeFiles() );
+ void addAliases( TQString map, const IncludeFiles& files = IncludeFiles() );
private:
SlaveMap m_activeSlaves;
size_t m_currentSlaveId;
HashedStringSetGroup m_activeSlaveGroups;
- typedef QMap<QString, ImportList> AliasMap;
+ typedef TQMap<TQString, ImportList> AliasMap;
AliasMap m_aliases;
//Inserts all aliases necessary fo handling a request using the given IncludeFiles
@@ -106,12 +106,12 @@ class SimpleTypeNamespace : public SimpleTypeImpl {
friend class NamespaceBuildInfo;
struct NamespaceBuildInfo : public TypeBuildInfo {
- QStringList m_fakeScope;
+ TQStringList m_fakeScope;
ImportList m_imports;
TypePointer m_built;
- NamespaceBuildInfo( QStringList fakeScope, const ImportList& imports ) {
+ NamespaceBuildInfo( TQStringList fakeScope, const ImportList& imports ) {
m_fakeScope = fakeScope;
m_imports = imports;
}
@@ -139,7 +139,7 @@ class SimpleTypeNamespace : public SimpleTypeImpl {
virtual MemberInfo findMember( TypeDesc name, MemberInfo::MemberType type = MemberInfo::AllTypes );
- virtual QValueList<TypePointer> getMemberClasses( const TypeDesc& name ) ;
+ virtual TQValueList<TypePointer> getMemberClasses( const TypeDesc& name ) ;
private:
struct HashedStringHasher {
@@ -150,9 +150,9 @@ class SimpleTypeNamespace : public SimpleTypeImpl {
//Maps from HashedStringSet to the count of slaves when the item was cached, and the SlaveList
// typedef __gnu_cxx::hash_map<HashedStringSet, std::pair<size_t, SlaveList>, HashedStringHasher> SlavesCache;
//SlavesCache m_slavesCache;
- QValueList<TypePointer> getMemberClasses( const TypeDesc& name, std::set<HashedString>& ignore ) ;
+ TQValueList<TypePointer> getMemberClasses( const TypeDesc& name, std::set<HashedString>& ignore ) ;
- MemberInfo setupMemberInfo( const QStringList& subName, const ImportList& imports );
+ MemberInfo setupMemberInfo( const TQStringList& subName, const ImportList& imports );
//TypePointer locateNamespace( const TypeDesc& alias );
diff --git a/languages/cpp/store_walker.cpp b/languages/cpp/store_walker.cpp
index cd66dd23..bcea1a05 100644
--- a/languages/cpp/store_walker.cpp
+++ b/languages/cpp/store_walker.cpp
@@ -15,10 +15,10 @@
#include "driver.h"
#include <kdebug.h>
-#include <qfileinfo.h>
-#include <qdir.h>
+#include <tqfileinfo.h>
+#include <tqdir.h>
-StoreWalker::StoreWalker( const QString& fileName, CodeModel* store )
+StoreWalker::StoreWalker( const TQString& fileName, CodeModel* store )
: m_store( store ), m_anon( 0 )
{
m_fileName = URLUtil::canonicalPath( fileName );
@@ -53,7 +53,7 @@ void StoreWalker::parseTranslationUnit( const ParsedFile& ast )
m_anon = 0;
m_imports.clear();
- m_imports << QPair<QMap<QString, ClassDom>, QStringList>(QMap<QString, ClassDom>(), QStringList());
+ m_imports << QPair<TQMap<TQString, ClassDom>, TQStringList>(TQMap<TQString, ClassDom>(), TQStringList());
TreeParser::parseTranslationUnit( ast );
m_imports.pop_back();
}
@@ -84,11 +84,11 @@ void StoreWalker::parseNamespace( NamespaceAST* ast )
ast->getStartPosition( &startLine, &startColumn );
ast->getEndPosition( &endLine, &endColumn );
- QString nsName;
+ TQString nsName;
if ( !ast->namespaceName() || ast->namespaceName()->text().isEmpty() )
{
- QFileInfo fileInfo( m_fileName );
- QString shortFileName = fileInfo.baseName();
+ TQFileInfo fileInfo( m_fileName );
+ TQString shortFileName = fileInfo.baseName();
nsName.sprintf( "(%s_%d)", shortFileName.local8Bit().data(), m_anon++ );
}
@@ -110,8 +110,8 @@ void StoreWalker::parseNamespace( NamespaceAST* ast )
void StoreWalker::parseNamespaceAlias( NamespaceAliasAST* ast )
{
- QString nsName;
- QString aliasName;
+ TQString nsName;
+ TQString aliasName;
if( !ast->namespaceName() || ast->namespaceName()->text().isEmpty() )
{
@@ -145,7 +145,7 @@ void StoreWalker::parseUsing( UsingAST* ast )
void StoreWalker::parseUsingDirective( UsingDirectiveAST* ast )
{
- QString name;
+ TQString name;
if( ast->name() )
name = ast->name()->text();
@@ -169,7 +169,7 @@ void StoreWalker::parseTypedef( TypedefAST* ast )
if ( ast && ast->initDeclaratorList() && ast->initDeclaratorList() ->initDeclaratorList().count() > 0 )
{
- QPtrList<InitDeclaratorAST> lst( ast->initDeclaratorList() ->initDeclaratorList() );
+ TQPtrList<InitDeclaratorAST> lst( ast->initDeclaratorList() ->initDeclaratorList() );
m_currentDeclarator = lst.at( 0 ) ->declarator();
}
@@ -186,19 +186,19 @@ void StoreWalker::parseTypedef( TypedefAST* ast )
if ( typeSpec && declarators )
{
- QString typeId;
+ TQString typeId;
if ( typeSpec->name() )
typeId = typeSpec->name() ->text();
- QPtrList<InitDeclaratorAST> l( declarators->initDeclaratorList() );
- QPtrListIterator<InitDeclaratorAST> it( l );
+ TQPtrList<InitDeclaratorAST> l( declarators->initDeclaratorList() );
+ TQPtrListIterator<InitDeclaratorAST> it( l );
InitDeclaratorAST* initDecl = 0;
while ( 0 != ( initDecl = it.current() ) )
{
- QString type, id;
+ TQString type, id;
if ( initDecl->declarator() )
{
type = typeOfDeclaration( typeSpec, initDecl->declarator() );
@@ -283,9 +283,9 @@ void StoreWalker::parseSimpleDeclaration( SimpleDeclarationAST* ast )
if ( declarators )
{
- QPtrList<InitDeclaratorAST> l = declarators->initDeclaratorList();
+ TQPtrList<InitDeclaratorAST> l = declarators->initDeclaratorList();
- QPtrListIterator<InitDeclaratorAST> it( l );
+ TQPtrListIterator<InitDeclaratorAST> it( l );
while ( it.current() )
{
parseDeclaration( ast->functionSpecifier(), ast->storageSpecifier(),
@@ -296,11 +296,11 @@ void StoreWalker::parseSimpleDeclaration( SimpleDeclarationAST* ast )
}
-QStringList StoreWalker::findScope( const QStringList& scope ) {
+TQStringList StoreWalker::findScope( const TQStringList& scope ) {
ClassDom d = findClassFromScope( scope );
if( d ) {
- QStringList ret = d->scope();
+ TQStringList ret = d->scope();
ret << d->name();
return ret;
}
@@ -330,11 +330,11 @@ void StoreWalker::parseFunctionDefinition( FunctionDefinitionAST* ast )
if ( funSpec )
{
- QPtrList<AST> l = funSpec->nodeList();
- QPtrListIterator<AST> it( l );
+ TQPtrList<AST> l = funSpec->nodeList();
+ TQPtrListIterator<AST> it( l );
while ( it.current() )
{
- QString text = it.current() ->text();
+ TQString text = it.current() ->text();
if ( text == "virtual" )
isVirtual = true;
else if ( text == "inline" )
@@ -345,11 +345,11 @@ void StoreWalker::parseFunctionDefinition( FunctionDefinitionAST* ast )
if ( storageSpec )
{
- QPtrList<AST> l = storageSpec->nodeList();
- QPtrListIterator<AST> it( l );
+ TQPtrList<AST> l = storageSpec->nodeList();
+ TQPtrListIterator<AST> it( l );
while ( it.current() )
{
- QString text = it.current() ->text();
+ TQString text = it.current() ->text();
if ( text == "friend" )
isFriend = true;
else if ( text == "static" )
@@ -363,9 +363,9 @@ void StoreWalker::parseFunctionDefinition( FunctionDefinitionAST* ast )
ast->getStartPosition( &startLine, &startColumn );
ast->getEndPosition( &endLine, &endColumn );
- QString id = d->declaratorId() ->unqualifiedName() ->text().stripWhiteSpace();
+ TQString id = d->declaratorId() ->unqualifiedName() ->text().stripWhiteSpace();
- QStringList scope = scopeOfDeclarator( d, m_currentScope );
+ TQStringList scope = scopeOfDeclarator( d, m_currentScope );
ClassDom c; ///c should be nonzero if it is a function-definition for a function within another class
if( !m_currentClass.top() ) {
///It is not a local definition within a class, so search the scope so it can be corrected using imports
@@ -383,7 +383,7 @@ void StoreWalker::parseFunctionDefinition( FunctionDefinitionAST* ast )
parseFunctionArguments( d, model_cast<FunctionDom>( method ) );
- QString text = typeOfDeclaration( typeSpec, d );
+ TQString text = typeOfDeclaration( typeSpec, d );
if ( !text.isEmpty() )
method->setResultType( text );
@@ -437,11 +437,11 @@ void StoreWalker::parseTypeSpecifier( TypeSpecifierAST* ast )
void StoreWalker::takeTemplateParams( TemplateModelItem& target, TemplateDeclarationAST* ast) {
TemplateParameterListAST* pl = ast->templateParameterList();
if( pl ) {
- QPtrList<TemplateParameterAST> list = pl->templateParameterList();
+ TQPtrList<TemplateParameterAST> list = pl->templateParameterList();
TemplateParameterAST* curr = list.first();
while( curr != 0 ) {
- QString a, b;
+ TQString a, b;
if( curr->typeParameter() && curr->typeParameter()->name() ) {
a = curr->typeParameter()->name()->text();
if( curr->typeParameter()->typeId() )
@@ -450,7 +450,7 @@ void StoreWalker::takeTemplateParams( TemplateModelItem& target, TemplateDeclara
target.addTemplateParam( a, b );
CodeModelItem* cmi = dynamic_cast<CodeModelItem*>(&target);
- QString nm = "0";
+ TQString nm = "0";
if(cmi) nm = cmi->name();
kdDebug() << "item " << nm << " taking template-parameters " << a << ", default=" << b << "\n";
curr = list.next();
@@ -471,7 +471,7 @@ void StoreWalker::checkTemplateDeclarator( TemplateModelItem* item ) {
int StoreWalker::mergeGroups( int g1, int g2 ) {
int ng = m_store->mergeGroups( g1, g2 );
- for( QMap<QString, FileDom>::iterator it = m_overrides.begin(); it != m_overrides.end(); ++it ) {
+ for( TQMap<TQString, FileDom>::iterator it = m_overrides.begin(); it != m_overrides.end(); ++it ) {
int g =(*it)->groupId();
if( g == g1 || g == g2 )
(*it)->setGroupId( ng );
@@ -490,7 +490,7 @@ void StoreWalker::parseClassSpecifier( ClassSpecifierAST* ast )
bool oldInSlots = m_inSlots;
bool oldInSignals = m_inSignals;
- QString kind = ast->classKey() ->text();
+ TQString kind = ast->classKey() ->text();
if ( kind == "class" )
m_currentAccess = CodeModelItem::Private;
else
@@ -498,15 +498,15 @@ void StoreWalker::parseClassSpecifier( ClassSpecifierAST* ast )
m_inSlots = false;
m_inSignals = false;
- QString className;
+ TQString className;
if ( !ast->name() && m_currentDeclarator && m_currentDeclarator->declaratorId() )
{
className = m_currentDeclarator->declaratorId() ->text().stripWhiteSpace();
}
else if ( !ast->name() )
{
- QFileInfo fileInfo( m_fileName );
- QString shortFileName = fileInfo.baseName();
+ TQFileInfo fileInfo( m_fileName );
+ TQString shortFileName = fileInfo.baseName();
className.sprintf( "(%s_%d)", shortFileName.local8Bit().data(), m_anon++ );
}
else
@@ -530,13 +530,13 @@ void StoreWalker::parseClassSpecifier( ClassSpecifierAST* ast )
checkTemplateDeclarator( &(*klass) );
- bool embed = !scopeOfName( ast->name(), QStringList() ).isEmpty();
+ bool embed = !scopeOfName( ast->name(), TQStringList() ).isEmpty();
- QStringList oldScope;
+ TQStringList oldScope;
if( embed ) {
- ClassDom embedderClass = findClassFromScope( m_currentScope + scopeOfName( ast->name(), QStringList() ));
+ ClassDom embedderClass = findClassFromScope( m_currentScope + scopeOfName( ast->name(), TQStringList() ));
if(embedderClass) {
if(embedderClass->fileName() != klass->fileName()) {
@@ -556,7 +556,7 @@ void StoreWalker::parseClassSpecifier( ClassSpecifierAST* ast )
//m_file->addClass( klass );//experiment
}else{
- kdDebug( 9007 ) << "could not find embedding class " << QStringList(m_currentScope + scopeOfName( ast->name(), QStringList() )).join("::") << " for " << className << endl;
+ kdDebug( 9007 ) << "could not find embedding class " << TQStringList(m_currentScope + scopeOfName( ast->name(), TQStringList() )).join("::") << " for " << className << endl;
embed = false;
}
}
@@ -577,7 +577,7 @@ void StoreWalker::parseClassSpecifier( ClassSpecifierAST* ast )
m_currentScope.push_back( className );
m_currentClass.push( klass );
- //m_imports.push_back( QStringList() );
+ //m_imports.push_back( TQStringList() );
TreeParser::parseClassSpecifier( ast );
@@ -621,8 +621,8 @@ void StoreWalker::parseEnumSpecifier( EnumSpecifierAST* ast )
m_file->addTypeAlias( typeAlias );
}
- QPtrList<EnumeratorAST> l = ast->enumeratorList();
- QPtrListIterator<EnumeratorAST> it( l );
+ TQPtrList<EnumeratorAST> l = ast->enumeratorList();
+ TQPtrListIterator<EnumeratorAST> it( l );
while ( it.current() )
{
VariableDom attr = m_store->create<VariableModel>();
@@ -688,13 +688,13 @@ void StoreWalker::parseDeclaration( GroupAST* funSpec, GroupAST* storageSpec,
while ( t && t->subDeclarator() )
t = t->subDeclarator();
- QString id;
+ TQString id;
if ( t && t->declaratorId() && t->declaratorId() ->unqualifiedName() )
id = t->declaratorId() ->unqualifiedName() ->text();
- if ( !scopeOfDeclarator( d, QStringList() ).isEmpty() )
+ if ( !scopeOfDeclarator( d, TQStringList() ).isEmpty() )
{
- kdDebug( 9007 ) << "skip declaration of " << QStringList(scopeOfDeclarator( d, QStringList() )).join("::") << "::" << id << endl;
+ kdDebug( 9007 ) << "skip declaration of " << TQStringList(scopeOfDeclarator( d, TQStringList() )).join("::") << "::" << id << endl;
return ;
}
@@ -712,7 +712,7 @@ void StoreWalker::parseDeclaration( GroupAST* funSpec, GroupAST* storageSpec,
attr->setAccess( m_currentAccess );
- QString text = typeOfDeclaration( typeSpec, d );
+ TQString text = typeOfDeclaration( typeSpec, d );
if ( !text.isEmpty() ) {
attr->setType( text );
}
@@ -725,11 +725,11 @@ void StoreWalker::parseDeclaration( GroupAST* funSpec, GroupAST* storageSpec,
if ( storageSpec )
{
- QPtrList<AST> l = storageSpec->nodeList();
- QPtrListIterator<AST> it( l );
+ TQPtrList<AST> l = storageSpec->nodeList();
+ TQPtrListIterator<AST> it( l );
while ( it.current() )
{
- QString text = it.current() ->text();
+ TQString text = it.current() ->text();
if ( text == "friend" )
isFriend = true;
else if ( text == "static" )
@@ -750,9 +750,9 @@ void StoreWalker::parseDeclaration( GroupAST* funSpec, GroupAST* storageSpec,
void StoreWalker::parseAccessDeclaration( AccessDeclarationAST * access )
{
- QPtrList<AST> l = access->accessList();
+ TQPtrList<AST> l = access->accessList();
- QString accessStr = l.at( 0 ) ->text();
+ TQString accessStr = l.at( 0 ) ->text();
if ( accessStr == "public" )
m_currentAccess = CodeModelItem::Public;
else if ( accessStr == "protected" )
@@ -768,7 +768,7 @@ void StoreWalker::parseAccessDeclaration( AccessDeclarationAST * access )
m_inSignals = l.count() >= 1 ? l.at( 0 ) ->text() == "signals" : false;
}
-NamespaceDom StoreWalker::findOrInsertNamespace( NamespaceAST* ast, const QString & name )
+NamespaceDom StoreWalker::findOrInsertNamespace( NamespaceAST* ast, const TQString & name )
{
if ( m_currentNamespace.top() && m_currentNamespace.top() ->hasNamespace( name ) )
return m_currentNamespace.top() ->namespaceByName( name );
@@ -809,11 +809,11 @@ void StoreWalker::parseFunctionDeclaration( GroupAST* funSpec, GroupAST* storage
if ( funSpec )
{
- QPtrList<AST> l = funSpec->nodeList();
- QPtrListIterator<AST> it( l );
+ TQPtrList<AST> l = funSpec->nodeList();
+ TQPtrListIterator<AST> it( l );
while ( it.current() )
{
- QString text = it.current() ->text();
+ TQString text = it.current() ->text();
if ( text == "virtual" )
isVirtual = true;
else if ( text == "inline" )
@@ -824,11 +824,11 @@ void StoreWalker::parseFunctionDeclaration( GroupAST* funSpec, GroupAST* storage
if ( storageSpec )
{
- QPtrList<AST> l = storageSpec->nodeList();
- QPtrListIterator<AST> it( l );
+ TQPtrList<AST> l = storageSpec->nodeList();
+ TQPtrListIterator<AST> it( l );
while ( it.current() )
{
- QString text = it.current() ->text();
+ TQString text = it.current() ->text();
if ( text == "friend" )
isFriend = true;
else if ( text == "static" )
@@ -843,7 +843,7 @@ void StoreWalker::parseFunctionDeclaration( GroupAST* funSpec, GroupAST* storage
decl->getEndPosition( &endLine, &endColumn );
DeclaratorAST* d = decl->declarator();
- QString id = d->declaratorId() ->unqualifiedName() ->text();
+ TQString id = d->declaratorId() ->unqualifiedName() ->text();
FunctionDom method = m_store->create<FunctionModel>();
method->setName( id );
@@ -867,7 +867,7 @@ void StoreWalker::parseFunctionDeclaration( GroupAST* funSpec, GroupAST* storage
if ( m_inSlots )
method->setSlot( true );
- QString text = typeOfDeclaration( typeSpec, d );
+ TQString text = typeOfDeclaration( typeSpec, d );
if ( !text.isEmpty() )
method->setResultType( text );
@@ -889,8 +889,8 @@ void StoreWalker::parseFunctionArguments( DeclaratorAST* declarator, FunctionDom
if ( clause && clause->parameterDeclarationList() )
{
ParameterDeclarationListAST * params = clause->parameterDeclarationList();
- QPtrList<ParameterDeclarationAST> l( params->parameterList() );
- QPtrListIterator<ParameterDeclarationAST> it( l );
+ TQPtrList<ParameterDeclarationAST> l( params->parameterList() );
+ TQPtrListIterator<ParameterDeclarationAST> it( l );
while ( it.current() )
{
ParameterDeclarationAST * param = it.current();
@@ -900,12 +900,12 @@ void StoreWalker::parseFunctionArguments( DeclaratorAST* declarator, FunctionDom
if ( param->declarator() )
{
- QString text = declaratorToString( param->declarator(), QString::null, true );
+ TQString text = declaratorToString( param->declarator(), TQString::null, true );
if ( !text.isEmpty() )
arg->setName( text );
}
- QString tp = typeOfDeclaration( param->typeSpec(), param->declarator() );
+ TQString tp = typeOfDeclaration( param->typeSpec(), param->declarator() );
if ( !tp.isEmpty() )
arg->setType( tp );
@@ -914,17 +914,17 @@ void StoreWalker::parseFunctionArguments( DeclaratorAST* declarator, FunctionDom
}
}
-QString StoreWalker::typeOfDeclaration( TypeSpecifierAST* typeSpec, DeclaratorAST* declarator )
+TQString StoreWalker::typeOfDeclaration( TypeSpecifierAST* typeSpec, DeclaratorAST* declarator )
{
if ( !typeSpec || !declarator )
- return QString::null;
+ return TQString::null;
- QString text;
+ TQString text;
text += typeSpec->text();
- QPtrList<AST> ptrOpList = declarator->ptrOpList();
- for ( QPtrListIterator<AST> it( ptrOpList ); it.current(); ++it )
+ TQPtrList<AST> ptrOpList = declarator->ptrOpList();
+ for ( TQPtrListIterator<AST> it( ptrOpList ); it.current(); ++it )
{
text += it.current() ->text();
}
@@ -938,13 +938,13 @@ QString StoreWalker::typeOfDeclaration( TypeSpecifierAST* typeSpec, DeclaratorAS
void StoreWalker::parseBaseClause( BaseClauseAST * baseClause, ClassDom klass )
{
- QPtrList<BaseSpecifierAST> l = baseClause->baseSpecifierList();
- QPtrListIterator<BaseSpecifierAST> it( l );
+ TQPtrList<BaseSpecifierAST> l = baseClause->baseSpecifierList();
+ TQPtrListIterator<BaseSpecifierAST> it( l );
while ( it.current() )
{
BaseSpecifierAST * baseSpecifier = it.current();
- QString baseName;
+ TQString baseName;
if ( baseSpecifier->name() )
baseName = baseSpecifier->name() ->text();
@@ -954,15 +954,15 @@ void StoreWalker::parseBaseClause( BaseClauseAST * baseClause, ClassDom klass )
}
}
-QStringList StoreWalker::scopeOfName( NameAST* id, const QStringList& startScope )
+TQStringList StoreWalker::scopeOfName( NameAST* id, const TQStringList& startScope )
{
- QStringList scope = startScope;
+ TQStringList scope = startScope;
if ( id && id->classOrNamespaceNameList().count() )
{
if ( id->isGlobal() )
scope.clear();
- QPtrList<ClassOrNamespaceNameAST> l = id->classOrNamespaceNameList();
- QPtrListIterator<ClassOrNamespaceNameAST> it( l );
+ TQPtrList<ClassOrNamespaceNameAST> l = id->classOrNamespaceNameList();
+ TQPtrListIterator<ClassOrNamespaceNameAST> it( l );
while ( it.current() )
{
if ( it.current() ->name() )
@@ -978,11 +978,11 @@ QStringList StoreWalker::scopeOfName( NameAST* id, const QStringList& startScope
///@todo respect the imports that result from the headers etc.
-ClassDom StoreWalker::findClassFromScope( const QStringList& scope )
+ClassDom StoreWalker::findClassFromScope( const TQStringList& scope )
{
- QString scopeText = scope.join("::");
+ TQString scopeText = scope.join("::");
if( !m_imports.isEmpty() ) {
- QMapIterator<QString, ClassDom> it = m_imports.back().first.find( scopeText );
+ TQMapIterator<TQString, ClassDom> it = m_imports.back().first.find( scopeText );
if( it != m_imports.back().first.end() ) {
return *it;
}
@@ -997,9 +997,9 @@ ClassDom StoreWalker::findClassFromScope( const QStringList& scope )
if(!m_imports.isEmpty() && !m_imports.back().second.isEmpty()) {
///try the same using one of the imports(performance-wise this is not good, but simple)
- QStringList::iterator it = m_imports.back().second.begin();
+ TQStringList::iterator it = m_imports.back().second.begin();
while(it != m_imports.back().second.end()) {
- QStringList scp = QStringList::split("::", *it) + m_currentScope + scope;
+ TQStringList scp = TQStringList::split("::", *it) + m_currentScope + scope;
c = classFromScope( scp );
if( c ) {
if( !m_imports.isEmpty() ) m_imports.back().first[ scopeText ] = c;
@@ -1011,12 +1011,12 @@ ClassDom StoreWalker::findClassFromScope( const QStringList& scope )
return c;
}
-ClassDom findScopeInFile( const QStringList& scope, NamespaceModel* glob ) {
+ClassDom findScopeInFile( const TQStringList& scope, NamespaceModel* glob ) {
if( !glob ) return ClassDom();
ClassModel* curr = glob ;
- QStringList::const_iterator mit = scope.begin();
+ TQStringList::const_iterator mit = scope.begin();
while(curr->isNamespace() && mit != scope.end() && ((NamespaceModel*)curr)->hasNamespace( *mit )) {
curr = &(*( ((NamespaceModel*)curr)->namespaceByName( *mit ) ));
@@ -1036,7 +1036,7 @@ ClassDom findScopeInFile( const QStringList& scope, NamespaceModel* glob ) {
}
}
-ClassDom StoreWalker::classFromScope(const QStringList& scope) {
+ClassDom StoreWalker::classFromScope(const TQStringList& scope) {
if(scope.isEmpty())return ClassDom(0);
//Since another instance of the current file may still be in the code-model this must be testede BEFORE the code-model
@@ -1048,7 +1048,7 @@ ClassDom StoreWalker::classFromScope(const QStringList& scope) {
c = findScopeInFile( scope, glob );
- QMap<QString, FileDom>::const_iterator it;
+ TQMap<TQString, FileDom>::const_iterator it;
if( c ) {
///Check the file that overrides the code-model file
@@ -1062,7 +1062,7 @@ ClassDom StoreWalker::classFromScope(const QStringList& scope) {
}
} else {
///Search in all overrides, because they will be added later all at once
- for( QMap<QString, FileDom>::const_iterator it = m_overrides.begin(); it != m_overrides.end(); ++it ) {
+ for( TQMap<TQString, FileDom>::const_iterator it = m_overrides.begin(); it != m_overrides.end(); ++it ) {
c = findScopeInFile( scope, *it );
if( c )
return c;
@@ -1073,7 +1073,7 @@ ClassDom StoreWalker::classFromScope(const QStringList& scope) {
}
-QStringList StoreWalker::scopeOfDeclarator( DeclaratorAST* d, const QStringList& startScope )
+TQStringList StoreWalker::scopeOfDeclarator( DeclaratorAST* d, const TQStringList& startScope )
{
return scopeOfName( d->declaratorId(), startScope );
}
diff --git a/languages/cpp/store_walker.h b/languages/cpp/store_walker.h
index 488e692b..49c4bb8f 100644
--- a/languages/cpp/store_walker.h
+++ b/languages/cpp/store_walker.h
@@ -14,14 +14,14 @@
#include "tree_parser.h"
#include <codemodel.h>
-#include <qstringlist.h>
-#include <qvaluestack.h>
+#include <tqstringlist.h>
+#include <tqvaluestack.h>
#include <hashedstring.h>
class StoreWalker: public TreeParser
{
public:
- StoreWalker( const QString& fileName, CodeModel* store );
+ StoreWalker( const TQString& fileName, CodeModel* store );
virtual ~StoreWalker();
FileDom file()
@@ -61,19 +61,19 @@ public:
virtual void parseBaseClause( BaseClauseAST* baseClause, ClassDom klass );
private:
- NamespaceDom findOrInsertNamespace( NamespaceAST* ast, const QString& name );
- QString typeOfDeclaration( TypeSpecifierAST* typeSpec, DeclaratorAST* declarator );
- QStringList scopeOfName( NameAST* id, const QStringList& scope );
- QStringList scopeOfDeclarator( DeclaratorAST* d, const QStringList& scope );
- ClassDom classFromScope(const QStringList& scope);
- ClassDom findClassFromScope(const QStringList& scope);
+ NamespaceDom findOrInsertNamespace( NamespaceAST* ast, const TQString& name );
+ TQString typeOfDeclaration( TypeSpecifierAST* typeSpec, DeclaratorAST* declarator );
+ TQStringList scopeOfName( NameAST* id, const TQStringList& scope );
+ TQStringList scopeOfDeclarator( DeclaratorAST* d, const TQStringList& scope );
+ ClassDom classFromScope(const TQStringList& scope);
+ ClassDom findClassFromScope(const TQStringList& scope);
void checkTemplateDeclarator( TemplateModelItem* item );
private:
class CommentPusher {
StoreWalker& m_ref;
public:
- CommentPusher( StoreWalker& ref, QString comment ) : m_ref( ref ) {
+ CommentPusher( StoreWalker& ref, TQString comment ) : m_ref( ref ) {
m_ref.pushComment( comment );
}
~CommentPusher() {
@@ -81,9 +81,9 @@ private:
}
};
- QStringList m_comments;
+ TQStringList m_comments;
- QString comment() {
+ TQString comment() {
if( m_comments.isEmpty() ) {
return "";
} else {
@@ -95,7 +95,7 @@ private:
int mergeGroups( int g1, int g2 );
public:
- void pushComment( QString comm ) {
+ void pushComment( TQString comm ) {
m_comments.push_front( comm );
}
@@ -103,19 +103,19 @@ public:
m_comments.pop_front();
}
- void setOverrides( const QMap<QString, FileDom>& overrides ) {
+ void setOverrides( const TQMap<TQString, FileDom>& overrides ) {
m_overrides = overrides;
}
private:
- QMap<QString, FileDom> m_overrides;
+ TQMap<TQString, FileDom> m_overrides;
FileDom m_file;
- QString m_fileName;
+ TQString m_fileName;
HashedString m_hashedFileName;
- QStringList m_currentScope;
+ TQStringList m_currentScope;
CodeModel* m_store;
- QValueList<QPair<QMap<QString, ClassDom>, QStringList> > m_imports;
+ TQValueList<QPair<TQMap<TQString, ClassDom>, TQStringList> > m_imports;
int m_currentAccess;
bool m_inSlots;
bool m_inSignals;
@@ -124,11 +124,11 @@ private:
bool m_inTypedef;
DeclaratorAST* m_currentDeclarator;
- QValueStack<TemplateDeclarationAST*> m_currentTemplateDeclarator;
- QValueStack<NamespaceDom> m_currentNamespace;
- QValueStack<ClassDom> m_currentClass;
+ TQValueStack<TemplateDeclarationAST*> m_currentTemplateDeclarator;
+ TQValueStack<NamespaceDom> m_currentNamespace;
+ TQValueStack<ClassDom> m_currentClass;
- QStringList findScope( const QStringList& scope );
+ TQStringList findScope( const TQStringList& scope );
private:
diff --git a/languages/cpp/storeconverter.cpp b/languages/cpp/storeconverter.cpp
index 3569bdea..6ad55925 100644
--- a/languages/cpp/storeconverter.cpp
+++ b/languages/cpp/storeconverter.cpp
@@ -10,7 +10,7 @@
***************************************************************************/
#include "storeconverter.h"
-#include <qvaluelist.h>
+#include <tqvaluelist.h>
#include <kdebug.h>
@@ -25,20 +25,20 @@ StoreConverter::StoreConverter(CppSupportPart *part, CodeModel *model)
{
}
-void StoreConverter::PCSClassToCodeModel(const QString &className, const QStringList &/*classScope*/)
+void StoreConverter::PCSClassToCodeModel(const TQString &className, const TQStringList &/*classScope*/)
{
- QValueList<Catalog*> catalogs = m_part->codeRepository()->registeredCatalogs();
- for (QValueList<Catalog*>::iterator it = catalogs.begin();
+ TQValueList<Catalog*> catalogs = m_part->codeRepository()->registeredCatalogs();
+ for (TQValueList<Catalog*>::iterator it = catalogs.begin();
it != catalogs.end(); ++it)
{
Catalog *catalog = *it;
kdDebug() << "looking in catalog: " << catalog->dbName() << endl;
- QValueList<Catalog::QueryArgument> args;
+ TQValueList<Catalog::QueryArgument> args;
args << Catalog::QueryArgument( "kind", Tag::Kind_Class );
args << Catalog::QueryArgument( "name", className );
- QValueList<Tag> tags = catalog->query(args);
- for (QValueList<Tag>::iterator it = tags.begin(); it != tags.end(); ++it )
+ TQValueList<Tag> tags = catalog->query(args);
+ for (TQValueList<Tag>::iterator it = tags.begin(); it != tags.end(); ++it )
{
Tag& tag = *it;
kdDebug() << "TAG: " << tag.name() << " in file " << tag.fileName() << endl;
@@ -67,13 +67,13 @@ void StoreConverter::parseClass(Tag &classTag, FileDom file)
klass->setName(classTag.name());
klass->setFileName(classTag.fileName());
- QStringList scope;
+ TQStringList scope;
scope.append(classTag.name());
- QValueList<Tag> symbolTags = m_part->codeCompletion()->repository()->
+ TQValueList<Tag> symbolTags = m_part->codeCompletion()->repository()->
getTagsInScope(scope, false);
// kdDebug() << "got tags: " << endl;
- for (QValueList<Tag>::iterator sit = symbolTags.begin(); sit != symbolTags.end(); ++sit )
+ for (TQValueList<Tag>::iterator sit = symbolTags.begin(); sit != symbolTags.end(); ++sit )
{
Tag &symbol = *sit;
// kdDebug() << symbol.name() << endl;
@@ -88,8 +88,8 @@ void StoreConverter::parseClass(Tag &classTag, FileDom file)
}
}
- QValueList<Tag> baseClassTags = m_part->codeCompletion()->repository()->getBaseClassList(classTag.name());
- for (QValueList<Tag>::iterator bit = baseClassTags.begin();
+ TQValueList<Tag> baseClassTags = m_part->codeCompletion()->repository()->getBaseClassList(classTag.name());
+ for (TQValueList<Tag>::iterator bit = baseClassTags.begin();
bit != baseClassTags.end(); ++bit)
klass->addBaseClass((*bit).name());
@@ -135,8 +135,8 @@ void StoreConverter::parseVariable(Tag &var, ClassDom klass)
void StoreConverter::parseArguments(FunctionDom function, CppFunction<Tag> &cppFun)
{
- QStringList args = cppFun.arguments();
- for (QStringList::const_iterator it = args.constBegin(); it != args.constEnd(); ++it)
+ TQStringList args = cppFun.arguments();
+ for (TQStringList::const_iterator it = args.constBegin(); it != args.constEnd(); ++it)
{
ArgumentDom arg = m_model->create<ArgumentModel>();
arg->setType(*it);
diff --git a/languages/cpp/storeconverter.h b/languages/cpp/storeconverter.h
index 34a5d3d3..1aa48e6b 100644
--- a/languages/cpp/storeconverter.h
+++ b/languages/cpp/storeconverter.h
@@ -11,7 +11,7 @@
#ifndef STORECONVERTER_H
#define STORECONVERTER_H
-#include <qstringlist.h>
+#include <tqstringlist.h>
#include <tag.h>
#include <catalog.h>
@@ -26,7 +26,7 @@ class StoreConverter
public:
StoreConverter( CppSupportPart *part, CodeModel *model );
- void PCSClassToCodeModel( const QString &className, const QStringList &classScope );
+ void PCSClassToCodeModel( const TQString &className, const TQStringList &classScope );
protected:
/**Parses class from PCS and adds it into a file dom.*/
diff --git a/languages/cpp/stringhelpers.cpp b/languages/cpp/stringhelpers.cpp
index d380fd64..13a39de2 100644
--- a/languages/cpp/stringhelpers.cpp
+++ b/languages/cpp/stringhelpers.cpp
@@ -19,17 +19,17 @@ k copyright : (C) 2006 by David Nolden
namespace StringHelpers
{
-void clearStr( QString& str, int start, int end ) {
+void clearStr( TQString& str, int start, int end ) {
for( int a = start; a < end; a++) str[a] = ' ';
}
-bool isValidIdentifierSign( const QChar& c ) {
+bool isValidIdentifierSign( const TQChar& c ) {
if( c.isLetter() || c.isDigit() || c == '_' ) return true;
else return false;
}
-QString clearComments( QString str ) {
+TQString clearComments( TQString str ) {
if( str.isEmpty() ) return "";
SafetyCounter s( 1000 );
@@ -64,7 +64,7 @@ QString clearComments( QString str ) {
return str;
}
-QString cutTemplateParams( QString str ) {
+TQString cutTemplateParams( TQString str ) {
int p;
if( (p = str.find('<') ) != -1) {
return str.left( p );
@@ -73,8 +73,8 @@ QString cutTemplateParams( QString str ) {
return str.stripWhiteSpace().replace('*',"");
}
-QPair<QString, QString> splitTemplateParams( QString str ) {
- QPair<QString, QString> ret;
+QPair<TQString, TQString> splitTemplateParams( TQString str ) {
+ QPair<TQString, TQString> ret;
int p;
if( (p = str.find('<') ) != -1) {
ret.first = str.left( p ).stripWhiteSpace();
@@ -86,7 +86,7 @@ QPair<QString, QString> splitTemplateParams( QString str ) {
return ret;
}
-bool parenFits( QChar c1, QChar c2 ) {
+bool parenFits( TQChar c1, TQChar c2 ) {
if( c1 == '<' && c2 == '>' ) return true;
else if( c1 == '(' && c2 == ')' ) return true;
else if( c1 == '[' && c2 == ']' ) return true;
@@ -95,7 +95,7 @@ bool parenFits( QChar c1, QChar c2 ) {
return false;
}
-bool isParen( QChar c1 ) {
+bool isParen( TQChar c1 ) {
if( c1 == '<' || c1 == '>' ) return true;
else if( c1 == '(' || c1 == ')' ) return true;
else if( c1 == '[' || c1 == ']' ) return true;
@@ -104,25 +104,25 @@ bool isParen( QChar c1 ) {
return false;
}
-bool isTypeParen( QChar c1 ) {
+bool isTypeParen( TQChar c1 ) {
if( c1 == '<' || c1 == '>' ) return true;
else
return false;
}
-bool isTypeOpenParen( QChar c1 ) {
+bool isTypeOpenParen( TQChar c1 ) {
if( c1 == '<' ) return true;
else
return false;
}
-bool isTypeCloseParen( QChar c1 ) {
+bool isTypeCloseParen( TQChar c1 ) {
if( c1 == '>' ) return true;
else
return false;
}
-bool isLeftParen( QChar c1 ) {
+bool isLeftParen( TQChar c1 ) {
if( c1 == '<' ) return true;
else if( c1 == '(' ) return true;
else if( c1 == '[' ) return true;
@@ -131,10 +131,10 @@ bool isLeftParen( QChar c1 ) {
return false;
}
-int findClose( const QString& str , int pos ) {
+int findClose( const TQString& str , int pos ) {
int depth = 0;
- QValueList<QChar> st;
- QChar last = ' ';
+ TQValueList<TQChar> st;
+ TQChar last = ' ';
for( int a = pos; a < (int)str.length(); a++) {
switch(str[a]) {
@@ -176,23 +176,23 @@ int findClose( const QString& str , int pos ) {
return -1;
}
-QString tagType( const Tag& tag )
+TQString tagType( const Tag& tag )
{
if ( tag.hasAttribute( "t" ) )
{
- QString type = tag.attribute( "t" ).toString();
+ TQString type = tag.attribute( "t" ).toString();
return type;
}
else if ( tag.kind() == Tag::Kind_Class || tag.kind() == Tag::Kind_Namespace )
{
- QStringList l = tag.scope();
+ TQStringList l = tag.scope();
l << tag.name();
return l.join("::");
}
- return QString();
+ return TQString();
}
-int findCommaOrEnd( const QString& str , int pos, QChar validEnd) {
+int findCommaOrEnd( const TQString& str , int pos, TQChar validEnd) {
for( int a = pos; a < (int)str.length(); a++) {
switch(str[a]) {
@@ -218,7 +218,7 @@ int findCommaOrEnd( const QString& str , int pos, QChar validEnd) {
return str.length();
}
-int countExtract( QChar c, const QString& str ) {
+int countExtract( TQChar c, const TQString& str ) {
int ret = 0;
for( int a = 0; a < (int)str.length(); a++) {
if( str[a] == c ) ++ret;
@@ -236,7 +236,7 @@ int countExtract( QChar c, const QString& str ) {
return ret;
}
-QString templateParamFromString( int num, QString str ) {
+TQString templateParamFromString( int num, TQString str ) {
if( str.endsWith("::") ) str.truncate( str.length() - 2 );
int begin = str.find('<');
int end = str.findRev('>');
@@ -257,8 +257,8 @@ QString templateParamFromString( int num, QString str ) {
return str.mid( begin, end - begin ).stripWhiteSpace();
}
-QStringList splitType( QString str ) {
- QStringList ret;
+TQStringList splitType( TQString str ) {
+ TQStringList ret;
int currentStart = 0;
bool was = false;
for( int a = 0; a < (int)str.length(); ++a ) {
@@ -287,8 +287,8 @@ QStringList splitType( QString str ) {
return ret;
}
-QString stringMult( int count, QString str ){
- QString ret;
+TQString stringMult( int count, TQString str ){
+ TQString ret;
for( int a = 0; a < count; a++ ) ret += str;
return ret;
}
diff --git a/languages/cpp/stringhelpers.h b/languages/cpp/stringhelpers.h
index d15f57aa..c8783413 100644
--- a/languages/cpp/stringhelpers.h
+++ b/languages/cpp/stringhelpers.h
@@ -23,46 +23,46 @@
namespace StringHelpers {
-void clearStr( QString& str, int start, int end );
+void clearStr( TQString& str, int start, int end );
///Fills all comments with whitespaces
-QString clearComments( QString str );
+TQString clearComments( TQString str );
-QString cutTemplateParams( QString str );
+TQString cutTemplateParams( TQString str );
-QPair<QString, QString> splitTemplateParams( QString str );
+QPair<TQString, TQString> splitTemplateParams( TQString str );
-bool parenFits( QChar c1, QChar c2 );
+bool parenFits( TQChar c1, TQChar c2 );
-bool isParen( QChar c1 );
+bool isParen( TQChar c1 );
-bool isTypeParen( QChar c1 );
+bool isTypeParen( TQChar c1 );
-bool isTypeOpenParen( QChar c1 );
+bool isTypeOpenParen( TQChar c1 );
-bool isTypeCloseParen( QChar c1 );
+bool isTypeCloseParen( TQChar c1 );
-bool isLeftParen( QChar c1 );
+bool isLeftParen( TQChar c1 );
/*only from left to right
searches a fitting closing sign ( a ')' for a '(', ']' for '['
ignores quoted text
comments are currently not allowed */
-int findClose( const QString& str , int pos ); //todo: make this respect strings
+int findClose( const TQString& str , int pos ); //todo: make this respect strings
-QString tagType( const Tag& tag );
+TQString tagType( const Tag& tag );
-int findCommaOrEnd( const QString& str , int pos, QChar validEnd = ' ' );
+int findCommaOrEnd( const TQString& str , int pos, TQChar validEnd = ' ' );
-int countExtract( QChar c, const QString& str );
+int countExtract( TQChar c, const TQString& str );
-QString templateParamFromString( int num, QString str );
+TQString templateParamFromString( int num, TQString str );
-QStringList splitType( QString str ) ;
+TQStringList splitType( TQString str ) ;
class ParamIterator {
public:
- ParamIterator( QString parens, QString source ) : m_source( source ), m_parens( parens ), m_cur( 0 ), m_curEnd ( 0 ) {
+ 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 ] );
m_prefix = m_source.left( begin );
@@ -83,7 +83,7 @@ class ParamIterator {
return *this;
}
- QString operator *() {
+ TQString operator *() {
return m_source.mid( m_cur, m_curEnd - m_cur ).stripWhiteSpace();
}
@@ -91,14 +91,14 @@ class ParamIterator {
return m_cur < ( int ) m_source.length();
}
- QString prefix() const {
+ TQString prefix() const {
return m_prefix;
}
private:
- QString m_prefix;
- QString m_source;
- QString m_parens;
+ TQString m_prefix;
+ TQString m_source;
+ TQString m_parens;
int m_cur;
int m_curEnd;
@@ -108,9 +108,9 @@ class ParamIterator {
};
-bool isValidIdentifierSign( const QChar& c );
+bool isValidIdentifierSign( const TQChar& c );
-QString stringMult( int count, QString str );
+TQString stringMult( int count, TQString str );
}
diff --git a/languages/cpp/subclassing_template/subclass_qt4_template.cpp b/languages/cpp/subclassing_template/subclass_qt4_template.cpp
index 6c008d43..c7b3e1f1 100644
--- a/languages/cpp/subclassing_template/subclass_qt4_template.cpp
+++ b/languages/cpp/subclassing_template/subclass_qt4_template.cpp
@@ -2,7 +2,7 @@
#include "$NEWFILENAMELC$.h"
-$NEWCLASS$::$NEWCLASS$(QWidget* parent, Qt::WFlags fl)
+$NEWCLASS$::$NEWCLASS$(TQWidget* parent, Qt::WFlags fl)
: $QTBASECLASS$( parent, 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 a8a02303..a84cf0d0 100644
--- a/languages/cpp/subclassing_template/subclass_qt4_template.h
+++ b/languages/cpp/subclassing_template/subclass_qt4_template.h
@@ -10,7 +10,7 @@ class $NEWCLASS$ : public $QTBASECLASS$, private Ui::$BASECLASS$
Q_OBJECT
public:
- $NEWCLASS$(QWidget* parent = 0, Qt::WFlags fl = 0 );
+ $NEWCLASS$(TQWidget* parent = 0, Qt::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 19269531..adc89082 100644
--- a/languages/cpp/subclassing_template/subclass_template.cpp
+++ b/languages/cpp/subclassing_template/subclass_template.cpp
@@ -2,7 +2,7 @@
#include "$NEWFILENAMELC$.h"
-$NEWCLASS$::$NEWCLASS$(QWidget* parent, const char* name$CAN_BE_MODAL_CPP1$, WFlags fl)
+$NEWCLASS$::$NEWCLASS$(TQWidget* parent, const char* name$CAN_BE_MODAL_CPP1$, WFlags fl)
: $BASECLASS$(parent,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 18846cc6..8e238bae 100644
--- a/languages/cpp/subclassing_template/subclass_template.h
+++ b/languages/cpp/subclassing_template/subclass_template.h
@@ -9,7 +9,7 @@ class $NEWCLASS$ : public $BASECLASS$
Q_OBJECT
public:
- $NEWCLASS$(QWidget* parent = 0, const char* name = 0$CAN_BE_MODAL_H$, WFlags fl = 0 );
+ $NEWCLASS$(TQWidget* parent = 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 fa5aece9..562cd010 100644
--- a/languages/cpp/subclassingdlg.cpp
+++ b/languages/cpp/subclassingdlg.cpp
@@ -22,20 +22,20 @@
#include "filetemplate.h"
#include "codemodel.h"
-#include <qradiobutton.h>
-#include <qstringlist.h>
-#include <qcheckbox.h>
-#include <qmessagebox.h>
+#include <tqradiobutton.h>
+#include <tqstringlist.h>
+#include <tqcheckbox.h>
+#include <tqmessagebox.h>
#include <kfiledialog.h>
#include <klineedit.h>
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
#include <domutil.h>
-#include <qdom.h>
+#include <tqdom.h>
#include <kstandarddirs.h>
#include <kdebug.h>
#include <klocale.h>
-#include <qfile.h>
-#include <qregexp.h>
+#include <tqfile.h>
+#include <tqregexp.h>
#include <kconfig.h>
@@ -54,17 +54,17 @@
#define SLOT_HELP SlotItem(m_slotView,"help()","virtual","protected","void",false,true)
-SlotItem::SlotItem(QListView *parent,const QString &methodName,
- const QString &specifier,
- const QString &access, const QString &returnType,
+SlotItem::SlotItem(TQListView *parent,const TQString &methodName,
+ const TQString &specifier,
+ const TQString &access, const TQString &returnType,
bool isFunc,bool callBaseClass)
-: QCheckListItem(parent,methodName,QCheckListItem::CheckBox)
+: TQCheckListItem(parent,methodName,TQCheckListItem::CheckBox)
{
setOn(true);
m_methodName = methodName;
- m_access = access.isEmpty() ? (const QString) "public" : access;
- m_specifier = specifier.isEmpty() ? (const QString) "virtual" : specifier;
- m_returnType = returnType.isEmpty() ? (const QString) "void" : returnType;
+ m_access = access.isEmpty() ? (const TQString) "public" : access;
+ m_specifier = specifier.isEmpty() ? (const TQString) "virtual" : specifier;
+ m_returnType = returnType.isEmpty() ? (const TQString) "void" : returnType;
m_isFunc = isFunc;
m_callBaseClass = callBaseClass;
setText(0,m_methodName);
@@ -93,8 +93,8 @@ void SlotItem::setAllreadyInSubclass()
}
-SubclassingDlg::SubclassingDlg(CppSupportPart* cppSupport, const QString &formFile,
- QStringList &newFileNames, QWidget* parent,
+SubclassingDlg::SubclassingDlg(CppSupportPart* cppSupport, const TQString &formFile,
+ TQStringList &newFileNames, TQWidget* parent,
const char* name,bool modal, WFlags fl)
: SubclassingDlgBase(parent,name,modal,fl),
m_newFileNames(newFileNames), m_cppSupport( cppSupport )
@@ -115,9 +115,9 @@ m_newFileNames(newFileNames), m_cppSupport( cppSupport )
}
-SubclassingDlg::SubclassingDlg(CppSupportPart* cppSupport, const QString &formFile,
- const QString &filename, QStringList &dummy,
- QWidget* parent, const char* name, bool modal, WFlags fl)
+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),
m_newFileNames(dummy), m_cppSupport( cppSupport )
@@ -135,12 +135,12 @@ m_newFileNames(dummy), m_cppSupport( cppSupport )
reformat_box->setChecked(true);
}
- QStringList pathsplit(QStringList::split('/',filename));
+ TQStringList pathsplit(TQStringList::split('/',filename));
- QString baseClass = readBaseClassName();
- if (!cppSupport->codeModel()->hasFile(filename+QString(".h")))
+ TQString baseClass = readBaseClassName();
+ if (!cppSupport->codeModel()->hasFile(filename+TQString(".h")))
return;
- ClassList myClasses = cppSupport->codeModel()->fileByName(filename+QString(".h"))->classList();
+ ClassList myClasses = cppSupport->codeModel()->fileByName(filename+TQString(".h"))->classList();
for (ClassList::const_iterator classIt = myClasses.begin(); classIt != myClasses.end(); ++classIt)
{
kdDebug() << "base class " << baseClass << " class " << (*classIt)->name()
@@ -163,7 +163,7 @@ m_newFileNames(dummy), m_cppSupport( cppSupport )
m_btnOk->setEnabled(true);
}
-bool SubclassingDlg::alreadyInSubclass(const QString &method)
+bool SubclassingDlg::alreadyInSubclass(const TQString &method)
{
for (uint i=0;i<m_parsedMethods.count();i++)
{
@@ -175,13 +175,13 @@ bool SubclassingDlg::alreadyInSubclass(const QString &method)
void SubclassingDlg::readUiFile()
{
- QStringList splitPath = QStringList::split('/',m_formFile);
- m_formName = QStringList::split('.',splitPath[splitPath.count()-1])[0]; // "somedlg.ui" = "somedlg"
+ TQStringList splitPath = TQStringList::split('/',m_formFile);
+ m_formName = TQStringList::split('.',splitPath[splitPath.count()-1])[0]; // "somedlg.ui" = "somedlg"
splitPath.pop_back();
m_formPath = "/" + splitPath.join("/"); // join path to ui-file
m_btnOk->setEnabled(false);
- QDomDocument doc;
+ TQDomDocument doc;
DomUtil::openDOMFile(doc,m_formFile);
m_baseClassName = DomUtil::elementByPathExt(doc,WIDGET_CLASS_NAME).text();
@@ -191,13 +191,13 @@ void SubclassingDlg::readUiFile()
// Special widget specific slots
SlotItem *newSlot;
- m_qtBaseClassName = DomUtil::elementByPathExt(doc,"widget").attribute("class","QDialog");
+ m_qtBaseClassName = DomUtil::elementByPathExt(doc,"widget").attribute("class","TQDialog");
- if ( (m_qtBaseClassName=="QMainWindow") || (m_qtBaseClassName=="QWidget") )
+ if ( (m_qtBaseClassName=="TQMainWindow") || (m_qtBaseClassName=="TQWidget") )
m_canBeModal = false;
else
m_canBeModal = true;
- if (m_qtBaseClassName != "QWidget")
+ if (m_qtBaseClassName != "TQWidget")
{
newSlot = new SLOT_ACCEPT;
newSlot->setOn(false);
@@ -214,7 +214,7 @@ void SubclassingDlg::readUiFile()
m_slots << newSlot;
}
- if (m_qtBaseClassName == "QWizard")
+ if (m_qtBaseClassName == "TQWizard")
{
newSlot = new SLOT_NEXT;
m_slotView->insertItem(newSlot);
@@ -234,12 +234,12 @@ void SubclassingDlg::readUiFile()
m_slots << newSlot;
}
- QDomElement slotsElem = DomUtil::elementByPathExt(doc,WIDGET_SLOTS);
- QDomNodeList slotnodes = slotsElem.childNodes();
+ TQDomElement slotsElem = DomUtil::elementByPathExt(doc,WIDGET_SLOTS);
+ TQDomNodeList slotnodes = slotsElem.childNodes();
for (unsigned int i=0; i<slotnodes.count();i++)
{
- QDomElement slotelem = slotnodes.item(i).toElement();
+ TQDomElement slotelem = slotnodes.item(i).toElement();
newSlot = new SlotItem(m_slotView,slotelem.text(),
slotelem.attributeNode("specifier").value(),
slotelem.attributeNode("access").value(),
@@ -250,12 +250,12 @@ void SubclassingDlg::readUiFile()
m_slots << newSlot;
}
- QDomElement funcsElem = DomUtil::elementByPathExt(doc,WIDGET_FUNCTIONS);
- QDomNodeList funcnodes = funcsElem.childNodes();
+ TQDomElement funcsElem = DomUtil::elementByPathExt(doc,WIDGET_FUNCTIONS);
+ TQDomNodeList funcnodes = funcsElem.childNodes();
SlotItem *newFunc;
for (unsigned int i=0; i<funcnodes.count();i++)
{
- QDomElement funcelem = funcnodes.item(i).toElement();
+ TQDomElement funcelem = funcnodes.item(i).toElement();
newFunc = new SlotItem(m_slotView,funcelem.text(),
funcelem.attributeNode("specifier").value(),
funcelem.attributeNode("access").value(),
@@ -276,7 +276,7 @@ void SubclassingDlg::updateDlg()
{
}
-void SubclassingDlg::replace(QString &string, const QString& search, const QString& replace)
+void SubclassingDlg::replace(TQString &string, const TQString& search, const TQString& replace)
{
int nextPos = string.find(search);
unsigned int searchLength = search.length();
@@ -287,10 +287,10 @@ void SubclassingDlg::replace(QString &string, const QString& search, const QStri
}
}
-bool SubclassingDlg::loadBuffer(QString &buffer, const QString& filename)
+bool SubclassingDlg::loadBuffer(TQString &buffer, const TQString& filename)
{
// open file and buffer it
- QFile dataFile(filename);
+ TQFile dataFile(filename);
if (!dataFile.open(IO_ReadOnly))
return false;
char *temp = new char[dataFile.size()+1];
@@ -302,7 +302,7 @@ bool SubclassingDlg::loadBuffer(QString &buffer, const QString& filename)
return true;
}
-bool SubclassingDlg::replaceKeywords(QString &buffer,bool canBeModal)
+bool SubclassingDlg::replaceKeywords(TQString &buffer,bool canBeModal)
{
replace(buffer,"$NEWFILENAMEUC$",m_edFileName->text().upper());
replace(buffer,"$BASEFILENAMELC$",m_formName.lower());
@@ -327,11 +327,11 @@ bool SubclassingDlg::replaceKeywords(QString &buffer,bool canBeModal)
return true;
}
-bool SubclassingDlg::saveBuffer(QString &buffer, const QString& filename)
+bool SubclassingDlg::saveBuffer(TQString &buffer, const TQString& filename)
{
// save buffer
- QFile dataFile(filename);
+ TQFile dataFile(filename);
if (!dataFile.open(IO_WriteOnly | IO_Truncate))
return false;
dataFile.writeBlock((buffer+"\n").ascii(),(buffer+"\n").length());
@@ -353,19 +353,19 @@ void SubclassingDlg::accept()
// h - file
- QString public_slot =
+ TQString public_slot =
"/*$PUBLIC_SLOTS$*/\n ";
- QString protected_slot =
+ TQString protected_slot =
"/*$PROTECTED_SLOTS$*/\n ";
- QString public_func =
+ TQString public_func =
"/*$PUBLIC_FUNCTIONS$*/\n ";
- QString protected_func =
+ TQString protected_func =
"/*$PROTECTED_FUNCTIONS$*/\n ";
- QString buffer;
+ TQString buffer;
int qtVersion = DomUtil::readIntEntry( *m_cppSupport->project()->projectDom(), "/kdevcppsupport/qt/version", 3 );
if (m_creatingNewSubclass)
{
@@ -375,11 +375,11 @@ void SubclassingDlg::accept()
loadBuffer(buffer,::locate("data", "kdevcppsupport/subclassing/subclass_qt4_template.h"));
buffer = FileTemplate::read(m_cppSupport, "h") + buffer;
- QFileInfo fi(m_filename + ".h");
- QString module = fi.baseName();
- QString basefilename = fi.baseName(true);
- buffer.replace(QRegExp("\\$MODULE\\$"),module);
- buffer.replace(QRegExp("\\$FILENAME\\$"),basefilename);
+ TQFileInfo fi(m_filename + ".h");
+ TQString module = fi.baseName();
+ TQString basefilename = fi.baseName(true);
+ buffer.replace(TQRegExp("\\$MODULE\\$"),module);
+ buffer.replace(TQRegExp("\\$FILENAME\\$"),basefilename);
}
else
loadBuffer(buffer,m_filename+".h");
@@ -391,7 +391,7 @@ void SubclassingDlg::accept()
if (!slitem->isOn() ||
slitem->m_alreadyInSubclass)
continue;
- QString declBuild;
+ TQString declBuild;
if (slitem->m_access=="public")
if (!slitem->m_isFunc)
declBuild = public_slot;
@@ -405,7 +405,7 @@ void SubclassingDlg::accept()
if (!(slitem->m_specifier=="non virtual"))
declBuild += "virtual ";
declBuild += slitem->m_returnType + " ";
- QString spacer;
+ TQString spacer;
if (slitem->m_access=="public")
{
if (!slitem->m_isFunc)
@@ -448,13 +448,13 @@ void SubclassingDlg::accept()
// cpp - file
- QString implementation =
+ TQString implementation =
"/*$SPECIALIZATION$*/\n"
"$RETURNTYPE$ $NEWCLASS$::$METHOD$\n"
"{\n"
"}\n";
- QString implementation_callbase =
+ TQString implementation_callbase =
"/*$SPECIALIZATION$*/\n"
"$RETURNTYPE$ $NEWCLASS$::$METHOD$\n"
"{\n"
@@ -470,11 +470,11 @@ void SubclassingDlg::accept()
loadBuffer(buffer,::locate("data", "kdevcppsupport/subclassing/subclass_qt4_template.cpp"));
buffer = FileTemplate::read(m_cppSupport, "cpp") + buffer;
- QFileInfo fi(m_filename + ".cpp");
- QString module = fi.baseName();
- QString basefilename = fi.baseName(true);
- buffer.replace(QRegExp("\\$MODULE\\$"),module);
- buffer.replace(QRegExp("\\$FILENAME\\$"),basefilename);
+ TQFileInfo fi(m_filename + ".cpp");
+ TQString module = fi.baseName();
+ TQString basefilename = fi.baseName(true);
+ buffer.replace(TQRegExp("\\$MODULE\\$"),module);
+ buffer.replace(TQRegExp("\\$FILENAME\\$"),basefilename);
if ( (m_cppSupport->project()) && (m_cppSupport->project()->options() & KDevProject::UsesAutotoolsBuildSystem))
buffer += "\n#include \"$NEWFILENAMELC$.moc\"\n";
}
@@ -488,7 +488,7 @@ void SubclassingDlg::accept()
if (!slitem->isOn() ||
slitem->m_alreadyInSubclass)
continue;
- QString impl = slitem->m_callBaseClass ? implementation_callbase : implementation;
+ 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);
@@ -526,9 +526,9 @@ void SubclassingDlg::onChangedClassName()
m_btnOk->setEnabled(true);
}
-QString SubclassingDlg::readBaseClassName()
+TQString SubclassingDlg::readBaseClassName()
{
- QDomDocument doc;
+ TQDomDocument doc;
DomUtil::openDOMFile(doc,m_formFile);
return DomUtil::elementByPathExt(doc,WIDGET_CLASS_NAME).text();
}
diff --git a/languages/cpp/subclassingdlg.h b/languages/cpp/subclassingdlg.h
index 2f645f09..2e2e9e95 100644
--- a/languages/cpp/subclassingdlg.h
+++ b/languages/cpp/subclassingdlg.h
@@ -12,7 +12,7 @@
#ifndef SUBCLASSINGDLG_H
#define SUBCLASSINGDLG_H
-#include <qlistview.h>
+#include <tqlistview.h>
#include "subclassingdlgbase.h"
@@ -23,15 +23,15 @@ class CppSupportPart;
class SlotItem : public QCheckListItem
{
public:
- SlotItem( QListView *parent, const QString &text,
- const QString &specifier, const QString &Access,
- const QString &returnType, bool isFunc,
+ SlotItem( TQListView *parent, const TQString &text,
+ const TQString &specifier, const TQString &Access,
+ const TQString &returnType, bool isFunc,
bool callBaseClass = false );
void setAllreadyInSubclass();
- QString m_access;
- QString m_methodName;
- QString m_returnType;
- QString m_specifier;
+ TQString m_access;
+ TQString m_methodName;
+ TQString m_returnType;
+ TQString m_specifier;
bool m_isFunc;
bool m_callBaseClass;
bool m_alreadyInSubclass;
@@ -41,23 +41,23 @@ public:
class SubclassingDlg : public SubclassingDlgBase
{
public:
- SubclassingDlg( CppSupportPart* cppSupport, const QString &formFile, QStringList &newFileNames,
- QWidget* parent = 0, const char* name = 0,
+ SubclassingDlg( CppSupportPart* cppSupport, const TQString &formFile, TQStringList &newFileNames,
+ TQWidget* parent = 0, const char* name = 0,
bool modal = FALSE, WFlags fl = 0 );
- SubclassingDlg( CppSupportPart* cppSupport, const QString &formFile, const QString &filename, QStringList &dummy,
- QWidget* parent = 0, const char* name = 0,
+ SubclassingDlg( CppSupportPart* cppSupport, const TQString &formFile, const TQString &filename, TQStringList &dummy,
+ TQWidget* parent = 0, const char* name = 0,
bool modal = FALSE, WFlags fl = 0 );
~SubclassingDlg();
private:
void readUiFile();
- QString readBaseClassName();
+ TQString readBaseClassName();
void updateDlg();
- bool replaceKeywords( QString &buffer, bool canBeModal = true );
- void replace( QString &string, const QString& search, const QString& replace );
- bool saveBuffer( QString &buffer, const QString& filename );
- bool loadBuffer( QString &buffer, const QString& filename );
- bool alreadyInSubclass( const QString &method );
+ bool replaceKeywords( TQString &buffer, bool canBeModal = true );
+ void replace( TQString &string, const TQString& search, const TQString& replace );
+ bool saveBuffer( TQString &buffer, const TQString& filename );
+ bool loadBuffer( TQString &buffer, const TQString& filename );
+ bool alreadyInSubclass( const TQString &method );
bool m_creatingNewSubclass;
public slots:
@@ -65,18 +65,18 @@ public slots:
virtual void onChangedClassName();
protected:
- QStringList &m_newFileNames;
- QString m_filename;
- QString m_formFile;
- QString m_baseClassName;
- QString m_qtBaseClassName;
- QString m_baseCaption;
- QString m_formName;
- QString m_formPath;
- QStringList m_parsedMethods;
+ TQStringList &m_newFileNames;
+ TQString m_filename;
+ TQString m_formFile;
+ TQString m_baseClassName;
+ TQString m_qtBaseClassName;
+ TQString m_baseCaption;
+ TQString m_formName;
+ TQString m_formPath;
+ TQStringList m_parsedMethods;
bool m_canBeModal;
- QValueList<SlotItem*> m_slots;
- QValueList<SlotItem*> m_functions;
+ TQValueList<SlotItem*> m_slots;
+ TQValueList<SlotItem*> m_functions;
CppSupportPart* m_cppSupport;
};
diff --git a/languages/cpp/tag_creator.cpp b/languages/cpp/tag_creator.cpp
index 8ad22d38..15849ad1 100644
--- a/languages/cpp/tag_creator.cpp
+++ b/languages/cpp/tag_creator.cpp
@@ -17,12 +17,12 @@
#include "driver.h"
#include <kdebug.h>
-#include <qfileinfo.h>
-#include <qregexp.h>
+#include <tqfileinfo.h>
+#include <tqregexp.h>
-DoxyDoc* TagCreator::m_documentation = new DoxyDoc( QStringList() );
+DoxyDoc* TagCreator::m_documentation = new DoxyDoc( TQStringList() );
-TagCreator::TagCreator( const QString& fileName, Catalog* c )
+TagCreator::TagCreator( const TQString& fileName, Catalog* c )
: m_catalog( c ), m_fileName( fileName ), m_anon( 0 )
{
}
@@ -36,7 +36,7 @@ void TagCreator::destroyDocumentation()
delete m_documentation;
}
-void TagCreator::setDocumentationDirectories( const QStringList& str )
+void TagCreator::setDocumentationDirectories( const TQStringList& str )
{
if ( m_documentation )
delete m_documentation;
@@ -59,28 +59,28 @@ void TagCreator::parseDeclaration( DeclarationAST* ast )
void TagCreator::parseTranslationUnit( const ParsedFile& ast )
{
m_currentScope.clear();
- m_currentAccess = QString::null;
+ m_currentAccess = TQString::null;
m_inSlots = false;
m_inSignals = false;
m_anon = 0;
m_imports.clear();
m_inClass = false;
- m_imports << QStringList();
+ m_imports << TQStringList();
Tag tag;
tag.setKind( Tag::Kind_TranslationUnit );
tag.setFileName( m_fileName );
tag.setName( m_fileName );
- QByteArray data;
- QDataStream stream(data, IO_WriteOnly );
+ TQByteArray data;
+ TQDataStream stream(data, IO_WriteOnly );
ast.write( stream );
tag.setAttribute( "cppparsedfile", data );
tag.setAttribute( "includedFrom", ast.includedFrom() );
- tag.setAttribute( "skippedLines", QString("%1").arg( ast.skippedLines()) );
- tag.setAttribute( "macroValueHash", QString("%1").arg( ast.usedMacros().valueHash()) );
- tag.setAttribute( "macroIdHash", QString("%1").arg( ast.usedMacros().idHash() ) );
+ 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.setScope( m_currentScope );
if( !ast->comment().isEmpty() )
@@ -93,8 +93,8 @@ void TagCreator::parseTranslationUnit( const ParsedFile& ast )
}
void TagCreator::parseNamespaceAlias( NamespaceAliasAST* ast ) {
- QString nsName;
- QString aliasName;
+ TQString nsName;
+ TQString aliasName;
if( !ast->namespaceName() || ast->namespaceName()->text().isEmpty() )
{
@@ -129,7 +129,7 @@ void TagCreator::parseNamespaceAlias( NamespaceAliasAST* ast ) {
void TagCreator::parseNamespace( NamespaceAST* ast )
{
- QString nsName;
+ TQString nsName;
if( !ast->namespaceName() || ast->namespaceName()->text().isEmpty() )
{
// anonymous namespace
@@ -166,7 +166,7 @@ void TagCreator::parseElaboratedTypeSpecifier( ElaboratedTypeSpecifierAST* ast )
void TagCreator::parseUsingDirective( UsingDirectiveAST* ast )
{
- QString name;
+ TQString name;
if( ast->name() )
name = ast->name()->text();
@@ -196,19 +196,19 @@ void TagCreator::parseTypedef( TypedefAST* ast )
InitDeclaratorListAST* declarators = ast->initDeclaratorList();
if( typeSpec && declarators ){
- QString typeId;
+ TQString typeId;
if( typeSpec->name() )
typeId = typeSpec->name()->text();
- QPtrList<InitDeclaratorAST> l( declarators->initDeclaratorList() );
- QPtrListIterator<InitDeclaratorAST> it( l );
+ TQPtrList<InitDeclaratorAST> l( declarators->initDeclaratorList() );
+ TQPtrListIterator<InitDeclaratorAST> it( l );
InitDeclaratorAST* initDecl = 0;
while( 0 != (initDecl = it.current()) )
{
- QString type, id;
+ TQString type, id;
if( initDecl->declarator() )
{
type = typeOfDeclaration( typeSpec, initDecl->declarator() );
@@ -272,9 +272,9 @@ void TagCreator::parseSimpleDeclaration( SimpleDeclarationAST* ast )
if( declarators )
{
- QPtrList<InitDeclaratorAST> l = declarators->initDeclaratorList();
+ TQPtrList<InitDeclaratorAST> l = declarators->initDeclaratorList();
- QPtrListIterator<InitDeclaratorAST> it( l );
+ TQPtrListIterator<InitDeclaratorAST> it( l );
while( it.current() )
{
parseMyDeclaration( ast->functionSpecifier(), ast->storageSpecifier(), typeSpec, it.current() );
@@ -304,11 +304,11 @@ void TagCreator::parseFunctionDefinition( FunctionDefinitionAST* ast )
if ( funSpec )
{
- QPtrList<AST> l = funSpec->nodeList();
- QPtrListIterator<AST> it( l );
+ TQPtrList<AST> l = funSpec->nodeList();
+ TQPtrListIterator<AST> it( l );
while ( it.current() )
{
- QString text = it.current() ->text();
+ TQString text = it.current() ->text();
if ( text == "virtual" )
isVirtual = true;
else if ( text == "inline" )
@@ -319,11 +319,11 @@ void TagCreator::parseFunctionDefinition( FunctionDefinitionAST* ast )
if ( storageSpec )
{
- QPtrList<AST> l = storageSpec->nodeList();
- QPtrListIterator<AST> it( l );
+ TQPtrList<AST> l = storageSpec->nodeList();
+ TQPtrListIterator<AST> it( l );
while ( it.current() )
{
- QString text = it.current() ->text();
+ TQString text = it.current() ->text();
if ( text == "friend" )
isFriend = true;
else if ( text == "static" )
@@ -333,8 +333,8 @@ void TagCreator::parseFunctionDefinition( FunctionDefinitionAST* ast )
}
- QString id = d->declaratorId() ->unqualifiedName() ->text().stripWhiteSpace();
- QString scopeStr = scopeOfDeclarator( d );
+ TQString id = d->declaratorId() ->unqualifiedName() ->text().stripWhiteSpace();
+ TQString scopeStr = scopeOfDeclarator( d );
Tag tag;
if( !comment() )
@@ -345,7 +345,7 @@ void TagCreator::parseFunctionDefinition( FunctionDefinitionAST* ast )
tag.setFileName( m_fileName );
tag.setName( id );
- tag.setScope( QStringList::split( ".", scopeStr ) );
+ tag.setScope( TQStringList::split( ".", scopeStr ) );
if( !ast->comment().isEmpty() )
tag.setComment( ast->comment() );
@@ -361,8 +361,8 @@ void TagCreator::parseFunctionDefinition( FunctionDefinitionAST* ast )
parseFunctionArguments( tag, d );
checkTemplateDeclarator( tag );
- QString arguments = tag.attribute( "a" ).toStringList().join( "," );
-tag.setAttribute( "description", m_documentation->functionDescription( scopeStr.replace( QRegExp( "." ), ":" ), id, typeOfDeclaration( typeSpec, d ), arguments ) );
+ TQString arguments = tag.attribute( "a" ).toStringList().join( "," );
+tag.setAttribute( "description", m_documentation->functionDescription( scopeStr.replace( TQRegExp( "." ), ":" ), id, typeOfDeclaration( typeSpec, d ), arguments ) );
tagBuilder.setAccess( TagUtils::stringToAccess( m_currentAccess ) );
@@ -386,8 +386,8 @@ tag.setAttribute( "description", m_documentation->functionDescription( scopeStr.
void TagCreator::parseLinkageBody( LinkageBodyAST* ast )
{
- QPtrList<DeclarationAST> l = ast->declarationList();
- QPtrListIterator<DeclarationAST> it( l );
+ TQPtrList<DeclarationAST> l = ast->declarationList();
+ TQPtrListIterator<DeclarationAST> it( l );
while ( it.current() )
{
parseDeclaration( it.current() );
@@ -411,11 +411,11 @@ void TagCreator::checkTemplateDeclarator( Tag& tag ) {
void TagCreator::takeTemplateParams( Tag& target, TemplateDeclarationAST* ast) {
TemplateParameterListAST* pl = ast->templateParameterList();
if( pl ) {
- QPtrList<TemplateParameterAST> list = pl->templateParameterList();
+ TQPtrList<TemplateParameterAST> list = pl->templateParameterList();
TemplateParameterAST* curr = list.first();
while( curr != 0 ) {
- QString a, b;
+ TQString a, b;
if( curr->typeParameter() ) {
if( curr->typeParameter()->name() )
a = curr->typeParameter()->name()->text();
@@ -437,11 +437,11 @@ void TagCreator::parseClassSpecifier( ClassSpecifierAST* ast )
ast->getStartPosition( &startLine, &startColumn );
ast->getEndPosition( &endLine, &endColumn );
- QString oldAccess = m_currentAccess;
+ TQString oldAccess = m_currentAccess;
bool oldInSlots = m_inSlots;
bool oldInSignals = m_inSignals;
- QString kind = ast->classKey() ->text();
+ TQString kind = ast->classKey() ->text();
if ( kind == "class" )
m_currentAccess = "private";
else
@@ -449,11 +449,11 @@ void TagCreator::parseClassSpecifier( ClassSpecifierAST* ast )
m_inSlots = false;
m_inSignals = false;
- QString className;
+ TQString className;
if ( !ast->name() )
{
- //QFileInfo fileInfo( m_fileName );
- //QString shortFileName = fileInfo.baseName();
+ //TQFileInfo fileInfo( m_fileName );
+ //TQString shortFileName = fileInfo.baseName();
//className.sprintf( "(%s_%d)", shortFileName.local8Bit(), m_anon++ );
}
else
@@ -470,7 +470,7 @@ void TagCreator::parseClassSpecifier( ClassSpecifierAST* ast )
tag.setFileName( m_fileName );
int i = className.find( '<' );
- QString specialization;
+ TQString specialization;
if( i != -1 ) {
specialization = className.mid( i );
@@ -529,11 +529,11 @@ void TagCreator::parseEnumSpecifier( EnumSpecifierAST* ast )
m_catalog->addItem( tag );
- QPtrList<EnumeratorAST> l = ast->enumeratorList();
- QPtrListIterator<EnumeratorAST> it( l );
+ TQPtrList<EnumeratorAST> l = ast->enumeratorList();
+ TQPtrListIterator<EnumeratorAST> it( l );
while ( it.current() )
{
- QString name = it.current() ->id() ->text();
+ TQString name = it.current() ->id() ->text();
Tag tag;
tag.setKind( Tag::Kind_Enumerator );
@@ -578,13 +578,13 @@ void TagCreator::parseMyDeclaration( GroupAST* funSpec, GroupAST* storageSpec, T
while ( t && t->subDeclarator() )
t = t->subDeclarator();
- QString id;
+ TQString id;
if ( t && t->declaratorId() && t->declaratorId() ->unqualifiedName() )
id = t->declaratorId() ->unqualifiedName() ->text();
- QString scopeStr = scopeOfDeclarator( d );
+ TQString scopeStr = scopeOfDeclarator( d );
- QString type = typeOfDeclaration( typeSpec, d );
+ TQString type = typeOfDeclaration( typeSpec, d );
bool isFriend = false;
@@ -595,11 +595,11 @@ void TagCreator::parseMyDeclaration( GroupAST* funSpec, GroupAST* storageSpec, T
if ( storageSpec )
{
- QPtrList<AST> l = storageSpec->nodeList();
- QPtrListIterator<AST> it( l );
+ TQPtrList<AST> l = storageSpec->nodeList();
+ TQPtrListIterator<AST> it( l );
while ( it.current() )
{
- QString text = it.current() ->text();
+ TQString text = it.current() ->text();
if ( text == "friend" )
isFriend = true;
else if ( text == "static" )
@@ -614,7 +614,7 @@ void TagCreator::parseMyDeclaration( GroupAST* funSpec, GroupAST* storageSpec, T
tag.setKind( Tag::Kind_Variable );
tag.setFileName( m_fileName );
tag.setName( id );
- tag.setScope( QStringList::split( ".", scopeStr ) );
+ tag.setScope( TQStringList::split( ".", scopeStr ) );
if( !comment().isEmpty() )
tag.setComment( comment() );
@@ -635,7 +635,7 @@ void TagCreator::parseMyDeclaration( GroupAST* funSpec, GroupAST* storageSpec, T
void TagCreator::parseAccessDeclaration( AccessDeclarationAST * access )
{
- QPtrList<AST> l = access->accessList();
+ TQPtrList<AST> l = access->accessList();
m_currentAccess = l.at( 0 )->text();
if( m_currentAccess == "signals" )
@@ -656,11 +656,11 @@ void TagCreator::parseFunctionDeclaration( GroupAST* funSpec, GroupAST* storageS
if ( funSpec )
{
- QPtrList<AST> l = funSpec->nodeList();
- QPtrListIterator<AST> it( l );
+ TQPtrList<AST> l = funSpec->nodeList();
+ TQPtrListIterator<AST> it( l );
while ( it.current() )
{
- QString text = it.current() ->text();
+ TQString text = it.current() ->text();
if ( text == "virtual" )
isVirtual = true;
else if ( text == "inline" )
@@ -671,11 +671,11 @@ void TagCreator::parseFunctionDeclaration( GroupAST* funSpec, GroupAST* storageS
if ( storageSpec )
{
- QPtrList<AST> l = storageSpec->nodeList();
- QPtrListIterator<AST> it( l );
+ TQPtrList<AST> l = storageSpec->nodeList();
+ TQPtrListIterator<AST> it( l );
while ( it.current() )
{
- QString text = it.current() ->text();
+ TQString text = it.current() ->text();
if ( text == "friend" )
isFriend = true;
else if ( text == "static" )
@@ -690,9 +690,9 @@ void TagCreator::parseFunctionDeclaration( GroupAST* funSpec, GroupAST* storageS
decl->getEndPosition( &endLine, &endColumn );
DeclaratorAST* d = decl->declarator();
- QString id = d->declaratorId() ->unqualifiedName() ->text();
+ TQString id = d->declaratorId() ->unqualifiedName() ->text();
- QString type = typeOfDeclaration( typeSpec, d );
+ TQString type = typeOfDeclaration( typeSpec, d );
Tag tag;
CppFunction<Tag> tagBuilder( tag );
@@ -724,8 +724,8 @@ void TagCreator::parseFunctionDeclaration( GroupAST* funSpec, GroupAST* storageS
parseFunctionArguments( tag, d );
checkTemplateDeclarator( tag );
- QString arguments = tag.attribute( "a" ).toStringList().join( "," );
- QString scopeStr = m_currentScope.join( "::" );
+ TQString arguments = tag.attribute( "a" ).toStringList().join( "," );
+ TQString scopeStr = m_currentScope.join( "::" );
tag.setAttribute( "description", m_documentation->functionDescription( scopeStr, id, type, arguments ) );
m_catalog->addItem( tag );
@@ -735,23 +735,23 @@ void TagCreator::parseFunctionArguments( Tag& tag, DeclaratorAST* declarator )
{
ParameterDeclarationClauseAST* clause = declarator->parameterDeclarationClause();
- QStringList types;
- QStringList args;
+ TQStringList types;
+ TQStringList args;
if( clause && clause->parameterDeclarationList() ){
ParameterDeclarationListAST* params = clause->parameterDeclarationList();
- QPtrList<ParameterDeclarationAST> l( params->parameterList() );
- QPtrListIterator<ParameterDeclarationAST> it( l );
+ TQPtrList<ParameterDeclarationAST> l( params->parameterList() );
+ TQPtrListIterator<ParameterDeclarationAST> it( l );
while( it.current() ){
ParameterDeclarationAST* param = it.current();
++it;
- QString name;
+ TQString name;
if( param->declarator() ){
- name = declaratorToString(param->declarator(), QString::null, true );
+ name = declaratorToString(param->declarator(), TQString::null, true );
}
- QString type = typeOfDeclaration( param->typeSpec(), param->declarator() );
+ TQString type = typeOfDeclaration( param->typeSpec(), param->declarator() );
types << type;
args << name;
@@ -770,18 +770,18 @@ void TagCreator::parseFunctionArguments( Tag& tag, DeclaratorAST* declarator )
tagBuilder.setArgumentNames( args );
}
-QString TagCreator::typeOfDeclaration( TypeSpecifierAST* typeSpec, DeclaratorAST* declarator )
+TQString TagCreator::typeOfDeclaration( TypeSpecifierAST* typeSpec, DeclaratorAST* declarator )
{
if( !typeSpec || !declarator )
- return QString::null;
+ return TQString::null;
- QString text;
+ TQString text;
text += typeSpec->text();
text = text.simplifyWhiteSpace();
- QPtrList<AST> ptrOpList = declarator->ptrOpList();
- for( QPtrListIterator<AST> it(ptrOpList); it.current(); ++it )
+ TQPtrList<AST> ptrOpList = declarator->ptrOpList();
+ for( TQPtrListIterator<AST> it(ptrOpList); it.current(); ++it )
text += it.current()->text();
for( int a = 0; a < declarator->arrayDimensionList().count(); a++ )
@@ -790,22 +790,22 @@ QString TagCreator::typeOfDeclaration( TypeSpecifierAST* typeSpec, DeclaratorAST
return text;
}
-void TagCreator::parseBaseClause( const QString& className, BaseClauseAST * baseClause )
+void TagCreator::parseBaseClause( const TQString& className, BaseClauseAST * baseClause )
{
- QPtrList<BaseSpecifierAST> l = baseClause->baseSpecifierList();
- QPtrListIterator<BaseSpecifierAST> it( l );
+ TQPtrList<BaseSpecifierAST> l = baseClause->baseSpecifierList();
+ TQPtrListIterator<BaseSpecifierAST> it( l );
while ( it.current() )
{
BaseSpecifierAST * baseSpecifier = it.current();
- QString access;
+ TQString access;
if ( baseSpecifier->access() )
access = baseSpecifier->access() ->text();
bool isVirtual = baseSpecifier->isVirtual() != 0;
if( baseSpecifier->name() == 0 ) return; ///Workaround for some bug elsewhere
- QString baseName;
+ TQString baseName;
if ( baseSpecifier->name() )
baseName = baseSpecifier->name() ->text();
@@ -834,15 +834,15 @@ void TagCreator::parseBaseClause( const QString& className, BaseClauseAST * base
}
}
-QString TagCreator::scopeOfDeclarator( DeclaratorAST* d )
+TQString TagCreator::scopeOfDeclarator( DeclaratorAST* d )
{
- QStringList scope = m_currentScope;
+ TQStringList scope = m_currentScope;
if ( d && d->declaratorId() && d->declaratorId() ->classOrNamespaceNameList().count() )
{
if ( d->declaratorId() ->isGlobal() )
scope.clear();
- QPtrList<ClassOrNamespaceNameAST> l = d->declaratorId() ->classOrNamespaceNameList();
- QPtrListIterator<ClassOrNamespaceNameAST> it( l );
+ TQPtrList<ClassOrNamespaceNameAST> l = d->declaratorId() ->classOrNamespaceNameList();
+ TQPtrListIterator<ClassOrNamespaceNameAST> it( l );
while ( it.current() )
{
if ( it.current() ->name() )
@@ -855,9 +855,9 @@ QString TagCreator::scopeOfDeclarator( DeclaratorAST* d )
return scope.join( "." );
}
-int TagUtils::stringToAccess( const QString & access )
+int TagUtils::stringToAccess( const TQString & access )
{
- QStringList l = QStringList()
+ TQStringList l = TQStringList()
<< "public" << "protected" << "private"
<< "public slots" << "protected slots" << "private slots"
<< "signals";
@@ -866,11 +866,11 @@ int TagUtils::stringToAccess( const QString & access )
return idx == -1 ? 0 : idx+1;
}
-QString TagUtils::accessToString( int id )
+TQString TagUtils::accessToString( int id )
{
if( id == 0 ) return "unknown";
- QStringList l = QStringList()
+ TQStringList l = TQStringList()
<< "public" << "protected" << "private"
<< "public slots" << "protected slots" << "private slots"
<< "signals";
@@ -878,7 +878,7 @@ QString TagUtils::accessToString( int id )
if( l.at(id-1) != l.end() )
return l[ id-1 ];
- return QString::null;
+ return TQString::null;
}
//kate: indent-mode csands; tab-width 4; space-indent off;
diff --git a/languages/cpp/tag_creator.h b/languages/cpp/tag_creator.h
index 47d0b66f..425d7135 100644
--- a/languages/cpp/tag_creator.h
+++ b/languages/cpp/tag_creator.h
@@ -14,22 +14,22 @@
#include "tree_parser.h"
-#include <qstringlist.h>
-#include <qvaluestack.h>
+#include <tqstringlist.h>
+#include <tqvaluestack.h>
class Catalog;
class Tag;
namespace TagUtils
{
- int stringToAccess( const QString& access );
- QString accessToString( int id );
+ int stringToAccess( const TQString& access );
+ TQString accessToString( int id );
}
class TagCreator: public TreeParser
{
public:
- TagCreator( const QString& fileName, Catalog* c );
+ TagCreator( const TQString& fileName, Catalog* c );
virtual ~TagCreator();
// translation-unit
@@ -55,7 +55,7 @@ public:
virtual void parseMyDeclaration( GroupAST* funSpec, GroupAST* storageSpec, TypeSpecifierAST* typeSpec, InitDeclaratorAST* decl );
virtual void parseFunctionDeclaration( GroupAST* funSpec, GroupAST* storageSpec, TypeSpecifierAST* typeSpec, InitDeclaratorAST* decl );
virtual void parseFunctionArguments( Tag& tag, DeclaratorAST* declarator );
- virtual void parseBaseClause( const QString& className, BaseClauseAST* baseClause );
+ virtual void parseBaseClause( const TQString& className, BaseClauseAST* baseClause );
/**
call this function after the last use of a TagCreator object, to do cleanup work
@@ -64,14 +64,14 @@ public:
/**
This sets the directories, where the doxygen documentation should be searched in.
- @param dirs QStringList containing strings, which define the pathes, where documentation is searched in
+ @param dirs TQStringList containing strings, which define the pathes, where documentation is searched in
*/
- static void setDocumentationDirectories( const QStringList& dirs );
+ static void setDocumentationDirectories( const TQStringList& dirs );
private:
- QString scopeOfDeclarator( DeclaratorAST* d );
- QString typeOfDeclaration( TypeSpecifierAST* typeSpec, DeclaratorAST* declarator );
+ TQString scopeOfDeclarator( DeclaratorAST* d );
+ TQString typeOfDeclaration( TypeSpecifierAST* typeSpec, DeclaratorAST* declarator );
private:
@@ -81,7 +81,7 @@ private:
class CommentPusher {
TagCreator& m_ref;
public:
- CommentPusher( TagCreator& ref, QString comment ) : m_ref( ref ) {
+ CommentPusher( TagCreator& ref, TQString comment ) : m_ref( ref ) {
m_ref.pushComment( comment );
}
~CommentPusher() {
@@ -89,9 +89,9 @@ private:
}
};
- QStringList m_comments;
+ TQStringList m_comments;
- QString comment() {
+ TQString comment() {
if( m_comments.isEmpty() ) {
return "";
} else {
@@ -99,7 +99,7 @@ private:
}
}
- void pushComment( QString comm ) {
+ void pushComment( TQString comm ) {
m_comments.push_front( comm );
}
@@ -108,16 +108,16 @@ private:
}
Catalog* m_catalog;
- QString m_fileName;
- QStringList m_currentScope;
- QValueList<QStringList> m_imports;
- QString m_currentAccess;
+ TQString m_fileName;
+ TQStringList m_currentScope;
+ TQValueList<TQStringList> m_imports;
+ TQString m_currentAccess;
bool m_inClass;
bool m_inSlots;
bool m_inSignals;
int m_anon;
- QValueStack<TemplateDeclarationAST*> m_currentTemplateDeclarator;
+ TQValueStack<TemplateDeclarationAST*> m_currentTemplateDeclarator;
static class DoxyDoc* m_documentation;
diff --git a/languages/cpp/typedecoration.h b/languages/cpp/typedecoration.h
index 3d2e8382..e142d837 100644
--- a/languages/cpp/typedecoration.h
+++ b/languages/cpp/typedecoration.h
@@ -23,21 +23,21 @@ class TypeDecoration {
}
///Removes the decoration from the given string
- TypeDecoration( QString& str ) {
+ TypeDecoration( TQString& str ) {
init( str );
}
~TypeDecoration() {}
///Removes the decoration from the assigned
- TypeDecoration& operator = ( QString& str ) {
+ TypeDecoration& operator = ( TQString& str ) {
clear();
init( str );
return *this;
}
- QString apply( const QString& str ) const {
- QString ret = str;
+ TQString apply( const TQString& str ) const {
+ TQString ret = str;
if ( !ret.startsWith( m_decoration_front ) )
ret = m_decoration_front + ret;
@@ -54,11 +54,11 @@ class TypeDecoration {
}
void clear() {
- m_decoration_front = QString();
- m_decoration_back = QString();
+ m_decoration_front = TQString();
+ m_decoration_back = TQString();
}
- void prepend( const QString& str ) {
+ void prepend( const TQString& str ) {
m_decoration_front = str + m_decoration_front;
}
@@ -70,11 +70,11 @@ class TypeDecoration {
}*/
private:
- void init( QString& str ) {
+ void init( TQString& str ) {
str = str.stripWhiteSpace();
- static const QString cnst = "const";
- static const QString ref = "&";
+ static const TQString cnst = "const";
+ static const TQString ref = "&";
if ( str.startsWith( cnst ) ) {
str.remove( 0, cnst.length() );
if( str.isEmpty() || ( !str[0].isLetterOrNumber() && str[0] != '_' ) ) {
@@ -111,7 +111,7 @@ class TypeDecoration {
}
}
- QString m_decoration_front, m_decoration_back;
+ TQString m_decoration_front, m_decoration_back;
};
#endif
diff --git a/languages/cpp/typedesc.cpp b/languages/cpp/typedesc.cpp
index 2e4e28a0..89d32931 100644
--- a/languages/cpp/typedesc.cpp
+++ b/languages/cpp/typedesc.cpp
@@ -21,7 +21,7 @@
#include "driver.h"
#include "lexer.h"
#include "parser.h"
-#include <qtextstream.h>
+#include <tqtextstream.h>
#include <kglobal.h>
@@ -139,7 +139,7 @@ TypeTrace* LocateResult::trace() {
TypeDesc::TypeDesc() {}
-TypeDesc::TypeDesc( const QString& name ) {
+TypeDesc::TypeDesc( const TQString& name ) {
init( name );
}
@@ -169,7 +169,7 @@ TypeDesc& TypeDesc::operator = ( const TypeDesc& rhs ) {
return *this;
}
-void TypeDesc::prependDecoration( const QString& str ) {
+void TypeDesc::prependDecoration( const TQString& str ) {
makePrivate();
m_data->m_dec.prepend( str );
}
@@ -350,13 +350,13 @@ int TypeDesc::compare ( const TypeDesc& rhs ) const {
}
#ifdef USE_TEXT_STREAM
-QString TypeDesc::nameWithParams() const {
+TQString TypeDesc::nameWithParams() const {
if ( !m_data )
return "";
- QString ret;
+ TQString ret;
{
- QTextStream s( &ret, IO_WriteOnly );
+ TQTextStream s( &ret, IO_WriteOnly );
s << m_data->m_cleanName;
if ( !m_data->m_templateParams.isEmpty() ) {
s << "<";
@@ -375,14 +375,14 @@ QString TypeDesc::nameWithParams() const {
#else
-QString TypeDesc::nameWithParams() const {
+TQString TypeDesc::nameWithParams() const {
if( compare( *this ) != 0 ) {
compare( *this );
}
if ( !m_data )
return "";
- QString ret = m_data->m_cleanName;
+ TQString ret = m_data->m_cleanName;
if ( !m_data->m_templateParams.isEmpty() ) {
ret += "<";
bool first = true;
@@ -399,13 +399,13 @@ QString TypeDesc::nameWithParams() const {
#endif
-QString TypeDesc::fullName( ) const {
+TQString TypeDesc::fullName( ) const {
if ( !m_data )
return "";
- QString ret = nameWithParams();
+ TQString ret = nameWithParams();
for ( int a = 0; a < m_data->m_functionDepth; ++a )
- ret = QString( functionMark ) + ret;
+ ret = TQString( functionMark ) + ret;
for ( int a = 0; a < m_data->m_pointerDepth; ++a )
ret += "*";
return m_data->m_dec.apply( ret );
@@ -427,21 +427,21 @@ size_t TypeDesc::hashKey2() const {
return ret;
}
-QString TypeDesc::fullNameChain( ) const {
+TQString TypeDesc::fullNameChain( ) const {
if ( !m_data )
return "";
- QString ret = fullName();
+ TQString ret = fullName();
if ( m_data->m_nextType ) {
ret += "::" + m_data->m_nextType->fullNameChain();
}
return m_data->m_dec.apply( ret );
}
-QString TypeDesc::fullTypeStructure() const {
+TQString TypeDesc::fullTypeStructure() const {
if ( !m_data )
return "";
- QString ret = m_data->m_cleanName;
+ TQString ret = m_data->m_cleanName;
if ( !m_data->m_templateParams.isEmpty() ) {
ret += "<";
for ( TemplateParams::const_iterator it = m_data->m_templateParams.begin(); it != m_data->m_templateParams.end(); ++it ) {
@@ -455,10 +455,10 @@ QString TypeDesc::fullTypeStructure() const {
}
-QStringList TypeDesc::fullNameList( ) const {
+TQStringList TypeDesc::fullNameList( ) const {
if ( !m_data )
return "";
- QStringList ret;
+ TQStringList ret;
ret << fullName();
if ( m_data->m_nextType ) {
ret += m_data->m_nextType->fullNameList();
@@ -575,7 +575,7 @@ void TypeDesc::clearInstanceInfo() {
m_data->m_dec.clear();
}
-void TypeDesc::takeTemplateParams( const QString& string ) {
+void TypeDesc::takeTemplateParams( const TQString& string ) {
makeDataPrivate();
m_data->m_templateParams.clear();
for ( ParamIterator it( "<>", string ); it; ++it )
@@ -650,7 +650,7 @@ int TypeDesc::decorationDepth() {
return m_data->m_dec.depth();
}*/
-void TypeDesc::init( QString stri ) {
+void TypeDesc::init( TQString stri ) {
m_data = 0;
maybeInit();
@@ -659,8 +659,8 @@ void TypeDesc::init( QString stri ) {
m_data->m_dec = stri; ///Store the decoration
- QStringList ls = splitType( stri );
- QString str = ls.front().stripWhiteSpace();
+ TQStringList ls = splitType( stri );
+ TQString str = ls.front().stripWhiteSpace();
///Extract multiple types that may be written as a scope and put them to the next-types-list
if ( !ls.isEmpty() ) {
@@ -670,7 +670,7 @@ void TypeDesc::init( QString stri ) {
}
}
- while ( str.startsWith( QString( functionMark ) ) ) {
+ while ( str.startsWith( TQString( functionMark ) ) ) {
m_data->m_functionDepth++;
str = str.mid( strlen( functionMark ) ).stripWhiteSpace();
}
@@ -678,7 +678,7 @@ void TypeDesc::init( QString stri ) {
//Little hack done for performance-reasons, to do less comparing
if( str.length() >= 4 ) {
- QChar c = str[0];
+ TQChar c = str[0];
switch( c.latin1() ) {
case 's':
if( str[1] == 'h' ) {
@@ -735,10 +735,10 @@ void TypeDesc::init( QString stri ) {
if ( parser.parseTypeSpecifier( typeSpec ) ) {
NameAST * name = typeSpec->name();
- QPtrList<ClassOrNamespaceNameAST> l = name->classOrNamespaceNameList();
- QPtrListIterator<ClassOrNamespaceNameAST> it( l );
+ TQPtrList<ClassOrNamespaceNameAST> l = name->classOrNamespaceNameList();
+ TQPtrListIterator<ClassOrNamespaceNameAST> it( l );
- QString type;
+ TQString type;
while ( it.current() ) {
if ( it.current() ->name() ) {
type += it.current() ->name() ->text() + "::";
@@ -766,11 +766,11 @@ void TypeDesc::init( QString stri ) {
}
-void TypeDesc::takeData( const QString& string ) {
+void TypeDesc::takeData( const TQString& string ) {
makeDataPrivate();
m_data->m_templateParams.clear();
ParamIterator it( "<>", string );
- QString name = it.prefix();
+ TQString name = it.prefix();
name.remove( "*" );
name.remove( "&" );
m_data->m_cleanName = name.stripWhiteSpace();
diff --git a/languages/cpp/typedesc.h b/languages/cpp/typedesc.h
index 924372df..ddb072d2 100644
--- a/languages/cpp/typedesc.h
+++ b/languages/cpp/typedesc.h
@@ -145,8 +145,8 @@ enum TypeDescFlags {
struct TypeDescData : public KShared {
- typedef QValueList<LocateResult> TemplateParams;
- QString m_cleanName;
+ typedef TQValueList<LocateResult> TemplateParams;
+ TQString m_cleanName;
int m_pointerDepth;
int m_functionDepth;
TemplateParams m_templateParams;
@@ -175,11 +175,11 @@ private:
class TypeDesc {
public:
- typedef QValueList<LocateResult> TemplateParams;
+ typedef TQValueList<LocateResult> TemplateParams;
TypeDesc();
- TypeDesc( const QString& str );
+ TypeDesc( const TQString& str );
TypeDesc( const TypeDesc& rhs );
@@ -193,7 +193,7 @@ class TypeDesc {
TypeDesc& operator = ( const TypeDesc& rhs );
- TypeDesc& operator = ( const QString& rhs ) {
+ TypeDesc& operator = ( const TQString& rhs ) {
init( rhs );
return *this;
}
@@ -243,19 +243,19 @@ class TypeDesc {
void addIncludeFiles( const HashedStringSet& files );
- QString nameWithParams() const;
+ TQString nameWithParams() const;
///returns the type including template-parameters and pointer-depth
- QString fullName( ) const;
+ TQString fullName( ) const;
/**returns the type include template-parameters, pointer-depth, and possible sub-types.
Example "A::B": A is the type, and B is the subtype */
- QString fullNameChain( ) const ;
+ TQString fullNameChain( ) const ;
///Returns the type-structure(full name-chain without any instance-info)
- QString fullTypeStructure() const;
+ TQString fullTypeStructure() const;
- void prependDecoration( const QString& str );
+ void prependDecoration( const TQString& str );
///Since the pointer-depth of a resolved type is always stored in the last element of its chain, this gives fast access to that depth
int totalPointerDepth() const;
@@ -283,22 +283,22 @@ class TypeDesc {
}*/
///returns a list include the full name of this type, and all subtypes
- QStringList fullNameList( ) const;
+ TQStringList fullNameList( ) const;
- QString decoratedName() const {
+ TQString decoratedName() const {
if( !m_data ) return "";
- QString ret = m_data->m_dec.apply( name() );
+ TQString ret = m_data->m_dec.apply( name() );
for( int a = 0; a < pointerDepth(); a++ )
ret += "*";
return ret;
}
- QString name() const {
+ TQString name() const {
if( !m_data ) return "";
return m_data->m_cleanName;
};
- void setName( QString name ) {
+ void setName( TQString name ) {
makeDataPrivate();
m_data->m_cleanName = name;
}
@@ -310,7 +310,7 @@ class TypeDesc {
const TemplateParams& templateParams() const;
///clears the current template-parameters, and extracts those from the given string
- void takeTemplateParams( const QString& string );
+ void takeTemplateParams( const TQString& string );
/**makes all references/pointers private, so everything about this structure may be changed without side-effects*/
TypeDesc& makePrivate();
@@ -370,12 +370,12 @@ class TypeDesc {
private:
- void takeData( const QString& string );
+ void takeData( const TQString& string );
void makeDataPrivate();
KSharedPtr<TypeDescData> m_data;
void maybeInit();
- void init( QString stri );
+ void init( TQString stri );
};
@@ -392,7 +392,7 @@ class TypeDescShared : public TypeDesc, public KShared {
return *this;
}
- TypeDescShared( const QString& name ) : TypeDesc( name ) {}
+ TypeDescShared( const TQString& name ) : TypeDesc( name ) {}
TypeDescShared() : TypeDesc() {}
}
;
diff --git a/languages/csharp/csharpconfigwidget.cpp b/languages/csharp/csharpconfigwidget.cpp
index b18d3e69..620f7881 100644
--- a/languages/csharp/csharpconfigwidget.cpp
+++ b/languages/csharp/csharpconfigwidget.cpp
@@ -11,13 +11,13 @@
#include "csharpconfigwidget.h"
-#include <qcheckbox.h>
+#include <tqcheckbox.h>
#include <klineedit.h>
#include "domutil.h"
-CSharpConfigWidget::CSharpConfigWidget(QDomDocument &projectDom,
- QWidget *parent, const char *name)
+CSharpConfigWidget::CSharpConfigWidget(TQDomDocument &projectDom,
+ TQWidget *parent, const char *name)
: CSharpConfigWidgetBase(parent, name), dom(projectDom)
{
interpreter_edit->setText(DomUtil::readEntry(dom, "/kdevcsharpsupport/run/interpreter"));
diff --git a/languages/csharp/csharpconfigwidget.h b/languages/csharp/csharpconfigwidget.h
index bf1b063e..a44570cd 100644
--- a/languages/csharp/csharpconfigwidget.h
+++ b/languages/csharp/csharpconfigwidget.h
@@ -13,7 +13,7 @@
#define _CSHARPCONFIGWIDGET_H_
#include "csharpconfigwidgetbase.h"
-#include <qdom.h>
+#include <tqdom.h>
class CSharpConfigWidget : public CSharpConfigWidgetBase
@@ -21,14 +21,14 @@ class CSharpConfigWidget : public CSharpConfigWidgetBase
Q_OBJECT
public:
- CSharpConfigWidget( QDomDocument &projectDom, QWidget *parent=0, const char *name=0 );
+ CSharpConfigWidget( TQDomDocument &projectDom, TQWidget *parent=0, const char *name=0 );
~CSharpConfigWidget();
public slots:
void accept();
private:
- QDomDocument &dom;
+ TQDomDocument &dom;
};
#endif
diff --git a/languages/csharp/csharpdoc.cpp b/languages/csharp/csharpdoc.cpp
index 8755be2b..f70df162 100644
--- a/languages/csharp/csharpdoc.cpp
+++ b/languages/csharp/csharpdoc.cpp
@@ -5,7 +5,7 @@
#include <sys/stat.h>
#include <unistd.h>
-#include <qtextstream.h>
+#include <tqtextstream.h>
#include <kdebug.h>
#include <klocale.h>
#include <kstandarddirs.h>
@@ -17,7 +17,7 @@
using namespace KIO;
-CSharpdocProtocol::CSharpdocProtocol(const QCString &pool, const QCString &app)
+CSharpdocProtocol::CSharpdocProtocol(const TQCString &pool, const TQCString &app)
: SlaveBase("csharpdoc", pool, app)
{}
@@ -28,12 +28,12 @@ CSharpdocProtocol::~CSharpdocProtocol()
void CSharpdocProtocol::get(const KURL& url)
{
- QStringList l = QStringList::split('/', url.path());
+ TQStringList l = TQStringList::split('/', url.path());
mimeType("text/html");
bool plain = false;
- QString cmd = "csharpdoc ";
+ TQString cmd = "csharpdoc ";
if (l[0] == "functions") {
plain = true;
cmd += "-t -f ";
@@ -43,7 +43,7 @@ void CSharpdocProtocol::get(const KURL& url)
cmd += KProcess::quote(l[1]);
cmd += " | pod2html";
} else {
- QCString errstr(i18n("The only existing directories are functions and faq.").local8Bit());
+ TQCString errstr(i18n("The only existing directories are functions and faq.").local8Bit());
data(errstr);
finished();
return;
@@ -52,11 +52,11 @@ void CSharpdocProtocol::get(const KURL& url)
kdDebug() << "Command: " << cmd << endl;
if (plain)
- data(QCString("<blockquote>"));
+ data(TQCString("<blockquote>"));
FILE *fd = popen(cmd.local8Bit().data(), "r");
char buffer[4090];
- QByteArray array;
+ TQByteArray array;
while (!feof(fd)) {
int n = fread(buffer, 1, 2048, fd);
@@ -72,7 +72,7 @@ void CSharpdocProtocol::get(const KURL& url)
pclose(fd);
if (plain)
- data(QCString("</blockquote>"));
+ data(TQCString("</blockquote>"));
finished();
}
@@ -80,15 +80,15 @@ void CSharpdocProtocol::get(const KURL& url)
void CSharpdocProtocol::mimetype(const KURL &url)
{
- QStringList l = QStringList::split('/', url.path());
+ TQStringList l = TQStringList::split('/', url.path());
mimeType((l[0] == "faq")? "text/html" : "text/plain");
finished();
}
-QCString CSharpdocProtocol::errorMessage()
+TQCString CSharpdocProtocol::errorMessage()
{
- return QCString( "<html><body bgcolor=\"#FFFFFF\">" + i18n("Error in csharpdoc").local8Bit() + "</body></html>" );
+ return TQCString( "<html><body bgcolor=\"#FFFFFF\">" + i18n("Error in csharpdoc").local8Bit() + "</body></html>" );
}
diff --git a/languages/csharp/csharpdoc.h b/languages/csharp/csharpdoc.h
index 85fa8cf5..caf8392d 100644
--- a/languages/csharp/csharpdoc.h
+++ b/languages/csharp/csharpdoc.h
@@ -1,14 +1,14 @@
#ifndef _CSHARPDOC_H_
#define _CSHARPDOC_H_
-#include <qobject.h>
+#include <tqobject.h>
#include <kio/slavebase.h>
class CSharpdocProtocol : public KIO::SlaveBase
{
public:
- CSharpdocProtocol(const QCString &pool, const QCString &app);
+ CSharpdocProtocol(const TQCString &pool, const TQCString &app);
virtual ~CSharpdocProtocol();
virtual void get(const KURL& url);
@@ -18,8 +18,8 @@ public:
protected:
void decodeURL(const KURL &url);
- void decodePath(QString path);
- QCString errorMessage();
+ void decodePath(TQString path);
+ TQCString errorMessage();
};
#endif
diff --git a/languages/csharp/csharpsupportpart.cpp b/languages/csharp/csharpsupportpart.cpp
index 01a21ffb..292a63f3 100644
--- a/languages/csharp/csharpsupportpart.cpp
+++ b/languages/csharp/csharpsupportpart.cpp
@@ -11,20 +11,20 @@
#include "csharpsupportpart.h"
-#include <qfileinfo.h>
-#include <qpopupmenu.h>
-#include <qstringlist.h>
-#include <qtextstream.h>
-#include <qtimer.h>
+#include <tqfileinfo.h>
+#include <tqpopupmenu.h>
+#include <tqstringlist.h>
+#include <tqtextstream.h>
+#include <tqtimer.h>
#include <kaction.h>
#include <kapplication.h>
#include <kdebug.h>
#include <kdevgenericfactory.h>
#include <kinputdialog.h>
#include <klocale.h>
-#include <qregexp.h>
+#include <tqregexp.h>
#include <codemodel.h>
-#include <qprogressbar.h>
+#include <tqprogressbar.h>
#include <kstatusbar.h>
#include "kdevmainwindow.h"
@@ -48,42 +48,42 @@ typedef KDevGenericFactory<CSharpSupportPart> CSharpSupportFactory;
static const KDevPluginInfo data("kdevcsharpsupport");
K_EXPORT_COMPONENT_FACTORY( libkdevcsharpsupport, CSharpSupportFactory( data ) )
-CSharpSupportPart::CSharpSupportPart(QObject *parent, const char *name, const QStringList &)
+CSharpSupportPart::CSharpSupportPart(TQObject *parent, const char *name, const TQStringList &)
: KDevLanguageSupport(&data, parent, name ? name : "CSharpSupportPart")
{
setInstance(CSharpSupportFactory::instance());
setXMLFile("kdevcsharpsupport.rc");
- connect( core(), SIGNAL(projectOpened()), this, SLOT(projectOpened()) );
- connect( core(), SIGNAL(projectClosed()), this, SLOT(projectClosed()) );
- connect( partController(), SIGNAL(savedFile(const KURL&)),
- this, SLOT(savedFile(const KURL&)) );
+ connect( core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(projectOpened()) );
+ connect( core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(projectClosed()) );
+ connect( partController(), TQT_SIGNAL(savedFile(const KURL&)),
+ this, TQT_SLOT(savedFile(const KURL&)) );
KAction *action;
action = new KAction( i18n("Execute Main Program"), "exec", 0,
- this, SLOT(slotExecute()),
+ this, TQT_SLOT(slotExecute()),
actionCollection(), "build_exec" );
action->setToolTip( i18n("Runs the CSharp program") );
action = new KAction( i18n("Execute String..."), "exec", 0,
- this, SLOT(slotExecuteString()),
+ this, TQT_SLOT(slotExecuteString()),
actionCollection(), "build_execstring" );
action->setToolTip( i18n("Executes a string as CSharp code") );
action = new KAction( i18n("Start CSharp Interpreter"), "exec", 0,
- this, SLOT(slotStartInterpreter()),
+ this, TQT_SLOT(slotStartInterpreter()),
actionCollection(), "build_runinterpreter" );
action->setToolTip( i18n("Starts the CSharp interpreter without a program") );
action = new KAction( i18n("Find CSharp Function Documentation..."), 0,
- this, SLOT(slotCSharpdocFunction()),
+ this, TQT_SLOT(slotCSharpdocFunction()),
actionCollection(), "help_csharpdocfunction" );
action->setToolTip( i18n("Show the documentation page of a CSharp function") );
action = new KAction( i18n("Find CSharp FAQ Entry..."), 0,
- this, SLOT(slotCSharpdocFAQ()),
+ this, TQT_SLOT(slotCSharpdocFAQ()),
actionCollection(), "help_csharpdocfaq" );
action->setToolTip( i18n("Show the FAQ entry for a keyword") );
@@ -106,14 +106,14 @@ void CSharpSupportPart::projectOpened()
{
kdDebug(9007) << "projectOpened()" << endl;
- connect( project(), SIGNAL(addedFilesToProject(const QStringList &)),
- this, SLOT(addedFilesToProject(const QStringList &)) );
- connect( project(), SIGNAL(removedFilesFromProject(const QStringList &)),
- this, SLOT(removedFilesFromProject(const QStringList &)) );
+ connect( project(), TQT_SIGNAL(addedFilesToProject(const TQStringList &)),
+ this, TQT_SLOT(addedFilesToProject(const TQStringList &)) );
+ connect( project(), TQT_SIGNAL(removedFilesFromProject(const TQStringList &)),
+ this, TQT_SLOT(removedFilesFromProject(const TQStringList &)) );
// We want to parse only after all components have been
// procsharpy initialized
- QTimer::singleShot(0, this, SLOT(initialParse()));
+ TQTimer::singleShot(0, this, TQT_SLOT(initialParse()));
}
@@ -121,11 +121,11 @@ void CSharpSupportPart::projectClosed()
{
}
-void CSharpSupportPart::maybeParse(const QString fileName)
+void CSharpSupportPart::maybeParse(const TQString fileName)
{
- QFileInfo fi(fileName);
- QString path = fi.filePath();
- QString extension = fi.extension();
+ TQFileInfo fi(fileName);
+ TQString path = fi.filePath();
+ TQString extension = fi.extension();
if (extension == "cs") {
kdDebug(9016) << "maybe " << fileName << endl;
removeWithReference(fileName);
@@ -134,11 +134,11 @@ void CSharpSupportPart::maybeParse(const QString fileName)
}
}
-void CSharpSupportPart::addedFilesToProject(const QStringList &fileList)
+void CSharpSupportPart::addedFilesToProject(const TQStringList &fileList)
{
kdDebug(9016) << "addedFilesToProject()" << endl;
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = fileList.begin(); it != fileList.end(); ++it )
{
@@ -147,13 +147,13 @@ void CSharpSupportPart::addedFilesToProject(const QStringList &fileList)
}
-void CSharpSupportPart::removedFilesFromProject(const QStringList &fileList)
+void CSharpSupportPart::removedFilesFromProject(const TQStringList &fileList)
{
kdDebug(9016) << "removedFilesFromProject()" << endl;
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = fileList.begin(); it != fileList.end(); ++it )
{
- QString fileName = project()->projectDirectory() + "/" + ( *it );
+ TQString fileName = project()->projectDirectory() + "/" + ( *it );
removeWithReference(fileName);
}
emit updatedSourceInfo();
@@ -180,9 +180,9 @@ KDevLanguageSupport::Features CSharpSupportPart::features()
// return Functions;
}
-QString CSharpSupportPart::interpreter()
+TQString CSharpSupportPart::interpreter()
{
- QString prog = DomUtil::readEntry(*projectDom(), "/kdevcsharpsupport/run/interpreter");
+ TQString prog = DomUtil::readEntry(*projectDom(), "/kdevcsharpsupport/run/interpreter");
if (prog.isEmpty())
prog = "csharp";
@@ -190,18 +190,18 @@ QString CSharpSupportPart::interpreter()
}
-void CSharpSupportPart::startApplication(const QString &program)
+void CSharpSupportPart::startApplication(const TQString &program)
{
bool inTerminal = DomUtil::readBoolEntry(*projectDom(), "/kdevcsharpsupport/run/terminal");
if (KDevAppFrontend *appFrontend = extension<KDevAppFrontend>("KDevelop/AppFrontend"))
- appFrontend->startAppCommand(QString::QString(), program, inTerminal);
+ appFrontend->startAppCommand(TQString::TQString(), program, inTerminal);
}
void CSharpSupportPart::slotExecute()
{
- QString program = project()->mainProgram();
- QString cmd = interpreter() + " " + program;
+ TQString program = project()->mainProgram();
+ TQString cmd = interpreter() + " " + program;
startApplication(cmd);
}
@@ -215,7 +215,7 @@ void CSharpSupportPart::slotStartInterpreter()
void CSharpSupportPart::slotExecuteString()
{
bool ok;
- QString cmd = KInputDialog::getText(i18n("String to Execute"), i18n("String to execute:"), QString::null, &ok, 0);
+ TQString cmd = KInputDialog::getText(i18n("String to Execute"), i18n("String to execute:"), TQString::null, &ok, 0);
if (ok) {
cmd.prepend("'");
cmd.append("'");
@@ -227,9 +227,9 @@ void CSharpSupportPart::slotExecuteString()
void CSharpSupportPart::slotCSharpdocFunction()
{
bool ok;
- QString key = KInputDialog::getText(i18n("Show CSharp Documentation"), i18n("Show CSharp documentation for function:"), "", &ok, 0);
+ TQString key = KInputDialog::getText(i18n("Show CSharp Documentation"), i18n("Show CSharp documentation for function:"), "", &ok, 0);
if (ok && !key.isEmpty()) {
- QString url = "csharpdoc:functions/";
+ TQString url = "csharpdoc:functions/";
url += key;
partController()->showDocument(KURL(url));
}
@@ -239,9 +239,9 @@ void CSharpSupportPart::slotCSharpdocFunction()
void CSharpSupportPart::slotCSharpdocFAQ()
{
bool ok;
- QString key = KInputDialog::getText(i18n("Show FAQ Entry"), i18n("Show FAQ entry for keyword:"), "", &ok, 0);
+ TQString key = KInputDialog::getText(i18n("Show FAQ Entry"), i18n("Show FAQ entry for keyword:"), "", &ok, 0);
if (ok && !key.isEmpty()) {
- QString url = "csharpdoc:faq/";
+ TQString url = "csharpdoc:faq/";
url += key;
partController()->showDocument(KURL(url));
}
@@ -265,17 +265,17 @@ void CSharpSupportPart::initialParse()
kapp->processEvents( );
kapp->setOverrideCursor(waitCursor);
- QStringList files = project()->allFiles();
+ TQStringList files = project()->allFiles();
// m_parser->initialParse();
//progress bar
- QProgressBar* bar = new QProgressBar( files.count( ), mainWindow( )->statusBar( ) );
+ TQProgressBar* bar = new TQProgressBar( files.count( ), mainWindow( )->statusBar( ) );
bar->setMinimumWidth( 120 );
bar->setCenterIndicator( true );
mainWindow( )->statusBar( )->addWidget( bar );
bar->show( );
int n = 0;
- for (QStringList::Iterator it = files.begin(); it != files.end() ;++it) {
+ for (TQStringList::Iterator it = files.begin(); it != files.end() ;++it) {
// kdDebug(9016) << "maybe parse " << project()->projectDirectory() + "/" + (*it) << endl;
maybeParse(project()->projectDirectory() + "/" + *it);
//update progress bar
@@ -297,7 +297,7 @@ void CSharpSupportPart::initialParse()
}
}
-void CSharpSupportPart::removeWithReference( const QString & fileName )
+void CSharpSupportPart::removeWithReference( const TQString & fileName )
{
kdDebug(9016) << "remove with references: " << fileName << endl;
//m_timestamp.remove( fileName );
@@ -312,12 +312,12 @@ void CSharpSupportPart::parseUseFiles()
{
kdDebug(9016) << "parse addional libs" << endl;
return;
- QString filename;
- QStringList m_usefiles;
- // QStringList m_usefiles = m_parser->UseFiles();
+ TQString filename;
+ TQStringList m_usefiles;
+ // TQStringList m_usefiles = m_parser->UseFiles();
//parse addional use files
- for (QStringList::Iterator it = m_usefiles.begin(); it != m_usefiles.end() ;++it)
+ for (TQStringList::Iterator it = m_usefiles.begin(); it != m_usefiles.end() ;++it)
{
// filename = m_parser->findLib(*it);
//if something found , parse it
diff --git a/languages/csharp/csharpsupportpart.h b/languages/csharp/csharpsupportpart.h
index 166285a6..35d2b7ba 100644
--- a/languages/csharp/csharpsupportpart.h
+++ b/languages/csharp/csharpsupportpart.h
@@ -21,7 +21,7 @@ class CSharpSupportPart : public KDevLanguageSupport
Q_OBJECT
public:
- CSharpSupportPart( QObject *parent, const char *name, const QStringList & );
+ CSharpSupportPart( TQObject *parent, const char *name, const TQStringList & );
~CSharpSupportPart();
protected:
@@ -32,8 +32,8 @@ private slots:
void projectOpened();
void projectClosed();
void savedFile(const KURL &fileName);
- void addedFilesToProject(const QStringList &fileList);
- void removedFilesFromProject(const QStringList &fileList);
+ void addedFilesToProject(const TQStringList &fileList);
+ void removedFilesFromProject(const TQStringList &fileList);
void slotExecute();
void slotExecuteString();
void slotStartInterpreter();
@@ -44,12 +44,12 @@ private slots:
void slotCSharpdocFAQ();
private:
- QString interpreter();
- void startApplication(const QString &program);
- void maybeParse(const QString fileName);
- void parse(const QString &fileName);
- void parseLines(QStringList* lines,const QString& fileName);
- void removeWithReference( const QString & fileName );
+ TQString interpreter();
+ void startApplication(const TQString &program);
+ void maybeParse(const TQString fileName);
+ void parse(const TQString &fileName);
+ void parseLines(TQStringList* lines,const TQString& fileName);
+ void removeWithReference( const TQString & fileName );
void parseUseFiles();
//CSharp Parser
// csharpparser* m_parser;
diff --git a/languages/fortran/compiler/pgioptions/pgioptionsfactory.cpp b/languages/fortran/compiler/pgioptions/pgioptionsfactory.cpp
index 5fad6630..66a12fbb 100644
--- a/languages/fortran/compiler/pgioptions/pgioptionsfactory.cpp
+++ b/languages/fortran/compiler/pgioptions/pgioptionsfactory.cpp
@@ -25,7 +25,7 @@ extern "C" {
}
-PgiOptionsFactory::PgiOptionsFactory(QObject *parent, const char *name)
+PgiOptionsFactory::PgiOptionsFactory(TQObject *parent, const char *name)
: KLibFactory(parent, name)
{
instance();
@@ -39,8 +39,8 @@ PgiOptionsFactory::~PgiOptionsFactory()
}
-QObject *PgiOptionsFactory::createObject(QObject *parent, const char *name,
- const char * /*classname*/, const QStringList &args)
+TQObject *PgiOptionsFactory::createObject(TQObject *parent, 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;
diff --git a/languages/fortran/compiler/pgioptions/pgioptionsfactory.h b/languages/fortran/compiler/pgioptions/pgioptionsfactory.h
index 9e3113a7..4fd73b7f 100644
--- a/languages/fortran/compiler/pgioptions/pgioptionsfactory.h
+++ b/languages/fortran/compiler/pgioptions/pgioptionsfactory.h
@@ -20,11 +20,11 @@ class PgiOptionsFactory : public KLibFactory
Q_OBJECT
public:
- PgiOptionsFactory( QObject *parent=0, const char *name=0 );
+ PgiOptionsFactory( TQObject *parent=0, const char *name=0 );
~PgiOptionsFactory();
- virtual QObject* createObject( QObject *parent, const char *name,
- const char *classname, const QStringList &args);
+ virtual TQObject* createObject( TQObject *parent, const char *name,
+ const char *classname, const TQStringList &args);
static KInstance *instance();
private:
diff --git a/languages/fortran/compiler/pgioptions/pgioptionsplugin.cpp b/languages/fortran/compiler/pgioptions/pgioptionsplugin.cpp
index 8bed362e..8f22453a 100644
--- a/languages/fortran/compiler/pgioptions/pgioptionsplugin.cpp
+++ b/languages/fortran/compiler/pgioptions/pgioptionsplugin.cpp
@@ -9,13 +9,13 @@
* *
***************************************************************************/
-#include <qapplication.h>
-#include <qheader.h>
-#include <qlayout.h>
-#include <qlistview.h>
-#include <qradiobutton.h>
-#include <qvbox.h>
-#include <qvbuttongroup.h>
+#include <tqapplication.h>
+#include <tqheader.h>
+#include <tqlayout.h>
+#include <tqlistview.h>
+#include <tqradiobutton.h>
+#include <tqvbox.h>
+#include <tqvbuttongroup.h>
#include <kdebug.h>
#include <klocale.h>
@@ -75,68 +75,68 @@ const char * const hpf_flags[] = {
class GeneralTab : public QWidget
{
public:
- GeneralTab( QWidget *parent=0, const char *name=0 );
+ GeneralTab( TQWidget *parent=0, const char *name=0 );
~GeneralTab();
- void readFlags(QStringList *str);
- void writeFlags(QStringList *str);
+ void readFlags(TQStringList *str);
+ void writeFlags(TQStringList *str);
};
class OptimizationTab : public QWidget
{
public:
- OptimizationTab( PgiOptionsPlugin::Type type, QWidget *parent=0, const char *name=0 );
+ OptimizationTab( PgiOptionsPlugin::Type type, TQWidget *parent=0, const char *name=0 );
~OptimizationTab();
- void readFlags(QStringList *str);
- void writeFlags(QStringList *str);
+ void readFlags(TQStringList *str);
+ void writeFlags(TQStringList *str);
private:
- QRadioButton *Odefault, *O0, *O1, *O2;
- QListView *optBox;
+ TQRadioButton *Odefault, *O0, *O1, *O2;
+ TQListView *optBox;
};
class HpfTab : public QWidget
{
public:
- HpfTab( QWidget *parent=0, const char *name=0 );
+ HpfTab( TQWidget *parent=0, const char *name=0 );
~HpfTab();
- void readFlags(QStringList *str);
- void writeFlags(QStringList *str);
+ void readFlags(TQStringList *str);
+ void writeFlags(TQStringList *str);
private:
- QListView *hpfBox;
+ TQListView *hpfBox;
};
-OptimizationTab::OptimizationTab(PgiOptionsPlugin::Type type, QWidget *parent, const char *name)
- : QWidget(parent, name)
+OptimizationTab::OptimizationTab(PgiOptionsPlugin::Type type, TQWidget *parent, const char *name)
+ : TQWidget(parent, name)
{
- QBoxLayout *layout = new QVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
layout->setAutoAdd(true);
- QVButtonGroup *group = new QVButtonGroup(i18n("Optimization Level"), this);
- Odefault = new QRadioButton(i18n("Default"), group);
+ TQVButtonGroup *group = new TQVButtonGroup(i18n("Optimization Level"), this);
+ Odefault = new TQRadioButton(i18n("Default"), group);
Odefault->setChecked(true);
- O0 = new QRadioButton(i18n("No optimization"), group);
- O1 = new QRadioButton(i18n("Level 1"), group);
- O2 = new QRadioButton(i18n("Level 2"), group);
+ O0 = new TQRadioButton(i18n("No optimization"), group);
+ O1 = new TQRadioButton(i18n("Level 1"), group);
+ O2 = new TQRadioButton(i18n("Level 2"), group);
if (type == PgiOptionsPlugin::PGHPF) {
- optBox = new QListView(this);
- optBox->addColumn(QString::null);
+ optBox = new TQListView(this);
+ optBox->addColumn(TQString::null);
optBox->header()->hide();
for (const char * const *p = optimization_flags; *p; ++p) {
- new QCheckListItem(optBox, *p, QCheckListItem::CheckBox);
+ new TQCheckListItem(optBox, *p, TQCheckListItem::CheckBox);
kdDebug() << (*p) << endl;
}
} else
optBox = 0;
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addStretch();
}
@@ -145,20 +145,20 @@ OptimizationTab::~OptimizationTab()
{}
-void OptimizationTab::readFlags(QStringList *list)
+void OptimizationTab::readFlags(TQStringList *list)
{
if (optBox) {
- QListViewItem *item = optBox->firstChild();
+ TQListViewItem *item = optBox->firstChild();
for (; item; item = item->nextSibling()) {
- QStringList::Iterator sli = list->find(item->text(0));
+ TQStringList::Iterator sli = list->find(item->text(0));
if (sli != list->end()) {
- static_cast<QCheckListItem*>(item)->setOn(true);
+ static_cast<TQCheckListItem*>(item)->setOn(true);
list->remove(sli);
}
}
}
- QStringList::Iterator sli;
+ TQStringList::Iterator sli;
sli = list->find("-O0");
if (sli != list->end()) {
O0->setChecked(true);
@@ -177,12 +177,12 @@ void OptimizationTab::readFlags(QStringList *list)
}
-void OptimizationTab::writeFlags(QStringList *list)
+void OptimizationTab::writeFlags(TQStringList *list)
{
if (optBox) {
- QListViewItem *item = optBox->firstChild();
+ TQListViewItem *item = optBox->firstChild();
for (; item; item = item->nextSibling())
- if (static_cast<QCheckListItem*>(item)->isOn())
+ if (static_cast<TQCheckListItem*>(item)->isOn())
(*list) << item->text(0);
}
@@ -195,19 +195,19 @@ void OptimizationTab::writeFlags(QStringList *list)
}
-HpfTab::HpfTab(QWidget *parent, const char *name)
- : QWidget(parent, name)
+HpfTab::HpfTab(TQWidget *parent, const char *name)
+ : TQWidget(parent, name)
{
- QBoxLayout *layout = new QVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
layout->setAutoAdd(true);
- hpfBox = new QListView(this);
- hpfBox->addColumn(QString::null);
+ hpfBox = new TQListView(this);
+ hpfBox->addColumn(TQString::null);
hpfBox->header()->hide();
for (const char * const *p = hpf_flags; *p; ++p)
- new QCheckListItem(hpfBox, *p, QCheckListItem::CheckBox);
+ new TQCheckListItem(hpfBox, *p, TQCheckListItem::CheckBox);
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addStretch();
}
@@ -216,34 +216,34 @@ HpfTab::~HpfTab()
{}
-void HpfTab::readFlags(QStringList *list)
+void HpfTab::readFlags(TQStringList *list)
{
- QListViewItem *item = hpfBox->firstChild();
+ TQListViewItem *item = hpfBox->firstChild();
for (; item; item = item->nextSibling()) {
- QStringList::Iterator sli = list->find(item->text(0));
+ TQStringList::Iterator sli = list->find(item->text(0));
if (sli != list->end()) {
- static_cast<QCheckListItem*>(item)->setOn(true);
+ static_cast<TQCheckListItem*>(item)->setOn(true);
list->remove(sli);
}
}
}
-void HpfTab::writeFlags(QStringList *list)
+void HpfTab::writeFlags(TQStringList *list)
{
- QListViewItem *item = hpfBox->firstChild();
+ TQListViewItem *item = hpfBox->firstChild();
for (; item; item = item->nextSibling()) {
- if (static_cast<QCheckListItem*>(item)->isOn())
+ if (static_cast<TQCheckListItem*>(item)->isOn())
(*list) << item->text(0);
}
}
-PgiOptionsDialog::PgiOptionsDialog(PgiOptionsPlugin::Type type, QWidget *parent, const char *name)
+PgiOptionsDialog::PgiOptionsDialog(PgiOptionsPlugin::Type type, TQWidget *parent, const char *name)
: KDialogBase(Tabbed, (type == PgiOptionsPlugin::PGHPF)? i18n("PGHPF Compiler Options") : i18n("PGF77 Compiler Options"),
Ok|Cancel, Ok, parent, name, true)
{
- QVBox *vbox;
+ TQVBox *vbox;
// vbox = addVBoxPage(i18n("General"));
// general = new GeneralTab(vbox, "general tab");
@@ -265,9 +265,9 @@ PgiOptionsDialog::~PgiOptionsDialog()
}
-void PgiOptionsDialog::setFlags(const QString &flags)
+void PgiOptionsDialog::setFlags(const TQString &flags)
{
- QStringList flaglist = QStringList::split(" ", flags);
+ TQStringList flaglist = TQStringList::split(" ", flags);
// Hand them to 'general' at last, so it can make a line edit
// with the unprocessed items
@@ -278,17 +278,17 @@ void PgiOptionsDialog::setFlags(const QString &flags)
}
-QString PgiOptionsDialog::flags() const
+TQString PgiOptionsDialog::flags() const
{
- QStringList flaglist;
+ TQStringList flaglist;
if (hpf)
hpf->writeFlags(&flaglist);
optimization->writeFlags(&flaglist);
// general->writeFlags(&flaglist);
- QString flags;
- QStringList::ConstIterator li;
+ TQString flags;
+ TQStringList::ConstIterator li;
for (li = flaglist.begin(); li != flaglist.end(); ++li) {
flags += (*li);
flags += " ";
@@ -299,7 +299,7 @@ QString PgiOptionsDialog::flags() const
}
-PgiOptionsPlugin::PgiOptionsPlugin(Type type, QObject *parent, const char *name)
+PgiOptionsPlugin::PgiOptionsPlugin(Type type, TQObject *parent, const char *name)
: KDevCompilerOptions(parent, name)
{
pgitype = type;
@@ -310,12 +310,12 @@ PgiOptionsPlugin::~PgiOptionsPlugin()
{}
-QString PgiOptionsPlugin::exec(QWidget *parent, const QString &flags)
+TQString PgiOptionsPlugin::exec(TQWidget *parent, const TQString &flags)
{
PgiOptionsDialog *dlg = new PgiOptionsDialog(pgitype, parent, "pgi options dialog");
- QString newFlags = flags;
+ TQString newFlags = flags;
dlg->setFlags(flags);
- if (dlg->exec() == QDialog::Accepted)
+ if (dlg->exec() == TQDialog::Accepted)
newFlags = dlg->flags();
delete dlg;
return newFlags;
diff --git a/languages/fortran/compiler/pgioptions/pgioptionsplugin.h b/languages/fortran/compiler/pgioptions/pgioptionsplugin.h
index dfbf4547..aba83fbc 100644
--- a/languages/fortran/compiler/pgioptions/pgioptionsplugin.h
+++ b/languages/fortran/compiler/pgioptions/pgioptionsplugin.h
@@ -28,10 +28,10 @@ class PgiOptionsPlugin : public KDevCompilerOptions
public:
enum Type { PGHPF, PGF77 };
- PgiOptionsPlugin( Type type, QObject *parent=0, const char *name=0 );
+ PgiOptionsPlugin( Type type, TQObject *parent=0, const char *name=0 );
~PgiOptionsPlugin();
- virtual QString exec(QWidget *parent, const QString &flags);
+ virtual TQString exec(TQWidget *parent, const TQString &flags);
private:
Type pgitype;
@@ -41,11 +41,11 @@ private:
class PgiOptionsDialog : public KDialogBase
{
public:
- PgiOptionsDialog(PgiOptionsPlugin::Type type, QWidget *parent=0, const char *name=0 );
+ PgiOptionsDialog(PgiOptionsPlugin::Type type, TQWidget *parent=0, const char *name=0 );
~PgiOptionsDialog();
- void setFlags(const QString &flags);
- QString flags() const;
+ void setFlags(const TQString &flags);
+ TQString flags() const;
private:
OptimizationTab *optimization;
diff --git a/languages/fortran/fixedformparser.cpp b/languages/fortran/fixedformparser.cpp
index 7084fbba..312d811e 100644
--- a/languages/fortran/fixedformparser.cpp
+++ b/languages/fortran/fixedformparser.cpp
@@ -11,8 +11,8 @@
#include "fixedformparser.h"
-#include <qfile.h>
-#include <qtextstream.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
#include <kdebug.h>
#include <codemodel.h>
@@ -30,9 +30,9 @@ FixedFormParser::FixedFormParser(CodeModel* model)
}
-void FixedFormParser::process(const QCString &line, const QString &fileName, int lineNum)
+void FixedFormParser::process(const TQCString &line, const TQString &fileName, int lineNum)
{
- QCString simplified;
+ TQCString simplified;
int l = line.length();
for (int i=0; i < l; ++i)
if (line[i] != ' ')
@@ -40,7 +40,7 @@ void FixedFormParser::process(const QCString &line, const QString &fileName, int
if ( simplified.isEmpty() ) return;
- QString name;
+ TQString name;
if (functionre.search(simplified) != -1)
name = functionre.cap(3);
else if (subroutinere.search(simplified) != -1)
@@ -58,22 +58,22 @@ void FixedFormParser::process(const QCString &line, const QString &fileName, int
}
-void FixedFormParser::parse(const QString &fileName)
+void FixedFormParser::parse(const TQString &fileName)
{
- QFile f(QFile::encodeName(fileName));
+ TQFile f(TQFile::encodeName(fileName));
if (!f.open(IO_ReadOnly))
return;
- QTextStream stream(&f);
+ TQTextStream stream(&f);
m_file = m_model->create<FileModel>();
m_file->setName( fileName );
- QCString line;
+ TQCString line;
int lineNum=0, startLineNum=0;
while (!stream.atEnd()) {
++lineNum;
- QCString str = stream.readLine().local8Bit();
- if (!str.isEmpty() && QCString("*Cc#!").find(str[0]) != -1)
+ TQCString str = stream.readLine().local8Bit();
+ if (!str.isEmpty() && TQCString("*Cc#!").find(str[0]) != -1)
continue;
// Continuation line
if (str.length() > 6 && str.left(5) == " " && str[5] != ' ') {
diff --git a/languages/fortran/fixedformparser.h b/languages/fortran/fixedformparser.h
index a7016510..f219e5ca 100644
--- a/languages/fortran/fixedformparser.h
+++ b/languages/fortran/fixedformparser.h
@@ -12,9 +12,9 @@
#ifndef _FIXEDFORMPARSER_H_
#define _FIXEDFORMPARSER_H_
-#include <qstring.h>
-#include <qtextstream.h>
-#include <qregexp.h>
+#include <tqstring.h>
+#include <tqtextstream.h>
+#include <tqregexp.h>
#include <codemodel.h>
@@ -23,13 +23,13 @@ class FixedFormParser
public:
FixedFormParser(CodeModel* model);
- void parse(const QString &fileName);
+ void parse(const TQString &fileName);
private:
- void process(const QCString &line, const QString &fileName, int lineNum);
+ void process(const TQCString &line, const TQString &fileName, int lineNum);
CodeModel* m_model;
FileDom m_file;
- QRegExp functionre, subroutinere;
+ TQRegExp functionre, subroutinere;
};
#endif
diff --git a/languages/fortran/fortransupportpart.cpp b/languages/fortran/fortransupportpart.cpp
index e0c0bde9..7d4ed1bc 100644
--- a/languages/fortran/fortransupportpart.cpp
+++ b/languages/fortran/fortransupportpart.cpp
@@ -17,13 +17,13 @@
#include "ftnchekconfigwidget.h"
#include "fixedformparser.h"
-#include <qdir.h>
-#include <qfileinfo.h>
-#include <qpopupmenu.h>
-#include <qstringlist.h>
-#include <qtextstream.h>
-#include <qtimer.h>
-#include <qvbox.h>
+#include <tqdir.h>
+#include <tqfileinfo.h>
+#include <tqpopupmenu.h>
+#include <tqstringlist.h>
+#include <tqtextstream.h>
+#include <tqtimer.h>
+#include <tqvbox.h>
#include <kapplication.h>
#include <kdebug.h>
#include <kdialogbase.h>
@@ -48,24 +48,24 @@ typedef KDevGenericFactory<FortranSupportPart> FortranSupportFactory;
static const KDevPluginInfo data("kdevfortransupport");
K_EXPORT_COMPONENT_FACTORY( libkdevfortransupport, FortranSupportFactory( data ) )
-FortranSupportPart::FortranSupportPart(QObject *parent, const char *name, const QStringList &)
+FortranSupportPart::FortranSupportPart(TQObject *parent, const char *name, const TQStringList &)
: KDevLanguageSupport(&data, parent, name ? name : "FortranSupportPart")
{
setInstance(FortranSupportFactory::instance());
setXMLFile("kdevfortransupport.rc");
- connect( core(), SIGNAL(projectConfigWidget(KDialogBase*)),
- this, SLOT(projectConfigWidget(KDialogBase*)) );
- connect( core(), SIGNAL(projectOpened()), this, SLOT(projectOpened()) );
- connect( core(), SIGNAL(projectClosed()), this, SLOT(projectClosed()) );
- connect( partController(), SIGNAL(savedFile(const KURL&)),
- this, SLOT(savedFile(const KURL&)) );
+ connect( core(), TQT_SIGNAL(projectConfigWidget(KDialogBase*)),
+ this, TQT_SLOT(projectConfigWidget(KDialogBase*)) );
+ connect( core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(projectOpened()) );
+ connect( core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(projectClosed()) );
+ connect( partController(), TQT_SIGNAL(savedFile(const KURL&)),
+ this, TQT_SLOT(savedFile(const KURL&)) );
KAction *action;
action = new KAction( i18n("&Ftnchek"), 0,
- this, SLOT(slotFtnchek()),
+ this, TQT_SLOT(slotFtnchek()),
actionCollection(), "project_ftnchek" );
action->setToolTip(i18n("Run ftnchek"));
action->setWhatsThis(i18n("<b>Run ftnchek</b><p>Runs <b>ftnchek</b> to check fortran programs for semantic errors. Configure ftnchek options in project settings dialog, <b>Ftnchek</b> tab."));
@@ -89,9 +89,9 @@ void FortranSupportPart::slotFtnchek()
if (partController()->saveAllFiles()==false)
return; //user cancelled
- QDomDocument &dom = *projectDom();
+ TQDomDocument &dom = *projectDom();
- QString cmdline = "cd ";
+ TQString cmdline = "cd ";
cmdline += KProcess::quote(project()->projectDirectory());
cmdline += "&& ftnchek -nonovice ";
@@ -140,26 +140,26 @@ void FortranSupportPart::slotFtnchek()
else
cmdline += DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/portabilityonly") + " ";
- QStringList list = project()->allFiles();
- QStringList::ConstIterator it;
+ TQStringList list = project()->allFiles();
+ TQStringList::ConstIterator it;
for (it = list.begin(); it != list.end(); ++it) {
- QFileInfo fi(*it);
- QString extension = fi.extension();
+ TQFileInfo fi(*it);
+ TQString extension = fi.extension();
if (extension == "f77" || extension == "f" || extension == "for"
|| extension == "ftn") {
cmdline += *it + " ";
}
}
- makeFrontend()->queueCommand(QString::null, cmdline);
+ makeFrontend()->queueCommand(TQString::null, cmdline);
}
void FortranSupportPart::projectConfigWidget(KDialogBase *dlg)
{
- QVBox *vbox = dlg->addVBoxPage(i18n("Ftnchek"), i18n("Ftnchek"), BarIcon("kdevelop", KIcon::SizeMedium));
+ TQVBox *vbox = dlg->addVBoxPage(i18n("Ftnchek"), i18n("Ftnchek"), BarIcon("kdevelop", KIcon::SizeMedium));
FtnchekConfigWidget *w = new FtnchekConfigWidget(*projectDom(), vbox, "ftnchek config widget");
- connect( dlg, SIGNAL(okClicked()), w, SLOT(accept()) );
+ connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()) );
}
@@ -167,16 +167,16 @@ void FortranSupportPart::projectOpened()
{
kdDebug(9019) << "projectOpened()" << endl;
- connect( project(), SIGNAL(addedFilesToProject(const QStringList &)),
- this, SLOT(addedFilesToProject(const QStringList &)) );
- connect( project(), SIGNAL(removedFilesFromProject(const QStringList &)),
- this, SLOT(removedFilesFromProject(const QStringList &)) );
+ connect( project(), TQT_SIGNAL(addedFilesToProject(const TQStringList &)),
+ this, TQT_SLOT(addedFilesToProject(const TQStringList &)) );
+ connect( project(), TQT_SIGNAL(removedFilesFromProject(const TQStringList &)),
+ this, TQT_SLOT(removedFilesFromProject(const TQStringList &)) );
// We want to parse only after all components have been
// properly initialized
parser = new FixedFormParser(codeModel());
- QTimer::singleShot(0, this, SLOT(initialParse()));
+ TQTimer::singleShot(0, this, TQT_SLOT(initialParse()));
}
@@ -187,10 +187,10 @@ void FortranSupportPart::projectClosed()
}
-void FortranSupportPart::maybeParse(const QString fileName)
+void FortranSupportPart::maybeParse(const TQString fileName)
{
- QFileInfo fi(fileName);
- QString extension = fi.extension();
+ TQFileInfo fi(fileName);
+ TQString extension = fi.extension();
if (extension == "f77" || extension == "f" || extension == "for" || extension == "ftn") {
if( codeModel()->hasFile(fileName) ){
@@ -209,9 +209,9 @@ void FortranSupportPart::initialParse()
if (project()) {
kapp->setOverrideCursor(waitCursor);
- QStringList files = project()->allFiles();
- for (QStringList::Iterator it = files.begin(); it != files.end() ;++it) {
- QFileInfo fileInfo( project()->projectDirectory(), *it );
+ TQStringList files = project()->allFiles();
+ for (TQStringList::Iterator it = files.begin(); it != files.end() ;++it) {
+ TQFileInfo fileInfo( project()->projectDirectory(), *it );
kdDebug(9019) << "maybe parse " << fileInfo.absFilePath() << endl;
maybeParse( fileInfo.absFilePath() );
}
@@ -224,16 +224,16 @@ void FortranSupportPart::initialParse()
}
-void FortranSupportPart::addedFilesToProject(const QStringList &fileList)
+void FortranSupportPart::addedFilesToProject(const TQStringList &fileList)
{
kdDebug(9019) << "addedFilesToProject()" << endl;
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = fileList.begin(); it != fileList.end(); ++it )
{
- QFileInfo fileInfo( project()->projectDirectory(), *it );
- QString path = fileInfo.absFilePath();
+ TQFileInfo fileInfo( project()->projectDirectory(), *it );
+ TQString path = fileInfo.absFilePath();
maybeParse( path );
emit addedSourceInfo( path );
}
@@ -242,16 +242,16 @@ void FortranSupportPart::addedFilesToProject(const QStringList &fileList)
}
-void FortranSupportPart::removedFilesFromProject(const QStringList &fileList)
+void FortranSupportPart::removedFilesFromProject(const TQStringList &fileList)
{
kdDebug(9019) << "removedFilesFromProject()" << endl;
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = fileList.begin(); it != fileList.end(); ++it )
{
- QFileInfo fileInfo( project()->projectDirectory(), *it );
- QString path = fileInfo.absFilePath();
+ TQFileInfo fileInfo( project()->projectDirectory(), *it );
+ TQString path = fileInfo.absFilePath();
if( codeModel()->hasFile(path) ){
emit aboutToRemoveSourceInfo( path );
diff --git a/languages/fortran/fortransupportpart.h b/languages/fortran/fortransupportpart.h
index 52dcba5a..9f7cbcdd 100644
--- a/languages/fortran/fortransupportpart.h
+++ b/languages/fortran/fortransupportpart.h
@@ -25,7 +25,7 @@ class FortranSupportPart : public KDevLanguageSupport
Q_OBJECT
public:
- FortranSupportPart( QObject *parent, const char *name, const QStringList & );
+ FortranSupportPart( TQObject *parent, const char *name, const TQStringList & );
~FortranSupportPart();
protected:
@@ -37,14 +37,14 @@ private slots:
void projectOpened();
void projectClosed();
void savedFile(const KURL &fileName);
- void addedFilesToProject(const QStringList &fileList);
- void removedFilesFromProject(const QStringList &fileList);
+ void addedFilesToProject(const TQStringList &fileList);
+ void removedFilesFromProject(const TQStringList &fileList);
// Internal
void initialParse();
private:
- void maybeParse(const QString fileName);
+ void maybeParse(const TQString fileName);
KDevMakeFrontend *makeFrontend();
FixedFormParser *parser;
diff --git a/languages/fortran/ftnchekconfigwidget.cpp b/languages/fortran/ftnchekconfigwidget.cpp
index fd4f7a87..3448a343 100644
--- a/languages/fortran/ftnchekconfigwidget.cpp
+++ b/languages/fortran/ftnchekconfigwidget.cpp
@@ -11,12 +11,12 @@
#include "ftnchekconfigwidget.h"
-#include <qcheckbox.h>
-#include <qbuttongroup.h>
-#include <qheader.h>
-#include <qlistview.h>
-#include <qradiobutton.h>
-#include <qtooltip.h>
+#include <tqcheckbox.h>
+#include <tqbuttongroup.h>
+#include <tqheader.h>
+#include <tqlistview.h>
+#include <tqradiobutton.h>
+#include <tqtooltip.h>
#include <klocale.h>
#include "domutil.h"
@@ -25,30 +25,30 @@
class FtnchekItem : public QCheckListItem
{
public:
- FtnchekItem(QListView *parent, const QString &flagstr,
- const QString &description)
- : QCheckListItem(parent, flagstr, QCheckListItem::CheckBox),
+ FtnchekItem(TQListView *parent, const TQString &flagstr,
+ const TQString &description)
+ : TQCheckListItem(parent, flagstr, TQCheckListItem::CheckBox),
flag(flagstr), desc(description)
{
setText(1, desc);
}
- static void readFlagsToListView(QListView *listview, QStringList *list);
- static void writeFlagsFromListView(QListView *listview, QStringList *list);
+ static void readFlagsToListView(TQListView *listview, TQStringList *list);
+ static void writeFlagsFromListView(TQListView *listview, TQStringList *list);
private:
- QString flag;
- QString desc;
+ TQString flag;
+ TQString desc;
friend class FtnchekToolTip;
};
-void FtnchekItem::readFlagsToListView(QListView *listview, QStringList *list)
+void FtnchekItem::readFlagsToListView(TQListView *listview, TQStringList *list)
{
- QListViewItem *item = listview->firstChild();
+ TQListViewItem *item = listview->firstChild();
for (; item; item = item->nextSibling()) {
FtnchekItem *flitem = static_cast<FtnchekItem*>(item);
- QStringList::Iterator sli = list->find(flitem->flag);
+ TQStringList::Iterator sli = list->find(flitem->flag);
if (sli != list->end()) {
flitem->setOn(true);
list->remove(sli);
@@ -57,11 +57,11 @@ void FtnchekItem::readFlagsToListView(QListView *listview, QStringList *list)
}
-void FtnchekItem::writeFlagsFromListView(QListView *listview, QStringList *list)
+void FtnchekItem::writeFlagsFromListView(TQListView *listview, TQStringList *list)
{
(*list).clear();
- QListViewItem *item = listview->firstChild();
+ TQListViewItem *item = listview->firstChild();
for (; item; item = item->nextSibling()) {
FtnchekItem *flitem = static_cast<FtnchekItem*>(item);
if (flitem->isOn())
@@ -73,14 +73,14 @@ void FtnchekItem::writeFlagsFromListView(QListView *listview, QStringList *list)
class FtnchekToolTip : public QToolTip
{
public:
- FtnchekToolTip(QWidget *parent)
- : QToolTip(parent)
+ FtnchekToolTip(TQWidget *parent)
+ : TQToolTip(parent)
{}
protected:
- void maybeTip(const QPoint &pos)
+ void maybeTip(const TQPoint &pos)
{
- QListView *listview = static_cast<QListView*>(parentWidget());
- QListViewItem *item = listview->itemAt(pos);
+ TQListView *listview = static_cast<TQListView*>(parentWidget());
+ TQListViewItem *item = listview->itemAt(pos);
FtnchekItem *flitem = static_cast<FtnchekItem*>(item);
if (item)
@@ -147,7 +147,7 @@ const char *portability_flags[] = {
};
-FtnchekConfigWidget::FtnchekConfigWidget(QDomDocument &projectDom, QWidget *parent, const char *name)
+FtnchekConfigWidget::FtnchekConfigWidget(TQDomDocument &projectDom, TQWidget *parent, const char *name)
: FtnchekConfigWidgetBase(parent, name), dom(projectDom)
{
arguments_group = new QButtonGroup;
@@ -188,22 +188,22 @@ FtnchekConfigWidget::FtnchekConfigWidget(QDomDocument &projectDom, QWidget *pare
new FtnchekToolTip(portability_listview);
for (const char **p = arguments_flags; *p; p += 2)
- new FtnchekItem(arguments_listview, QString::fromUtf8(*p), i18n(*(p+1)));
+ new FtnchekItem(arguments_listview, TQString::fromUtf8(*p), i18n(*(p+1)));
for (const char **p = common_flags; *p; p += 2)
- new FtnchekItem(common_listview, QString::fromUtf8(*p), i18n(*(p+1)));
+ new FtnchekItem(common_listview, TQString::fromUtf8(*p), i18n(*(p+1)));
for (const char **p = truncation_flags; *p; p += 2)
- new FtnchekItem(truncation_listview, QString::fromUtf8(*p), i18n(*(p+1)));
+ new FtnchekItem(truncation_listview, TQString::fromUtf8(*p), i18n(*(p+1)));
for (const char **p = usage_flags; *p; p += 2)
- new FtnchekItem(usage_listview, QString::fromUtf8(*p), i18n(*(p+1)));
+ new FtnchekItem(usage_listview, TQString::fromUtf8(*p), i18n(*(p+1)));
for (const char **p = f77_flags; *p; p += 2)
- new FtnchekItem(f77_listview, QString::fromUtf8(*p), i18n(*(p+1)));
+ new FtnchekItem(f77_listview, TQString::fromUtf8(*p), i18n(*(p+1)));
for (const char **p = portability_flags; *p; p += 2)
- new FtnchekItem(portability_listview, QString::fromUtf8(*p), i18n(*(p+1)));
+ new FtnchekItem(portability_listview, TQString::fromUtf8(*p), i18n(*(p+1)));
readConfig();
}
@@ -240,19 +240,19 @@ void FtnchekConfigWidget::readConfig()
f77all_button->setChecked(DomUtil::readBoolEntry(dom, "/kdevfortransupport/ftnchek/f77all"));
portabilityall_button->setChecked(DomUtil::readBoolEntry(dom, "/kdevfortransupport/ftnchek/portabilityall"));
- QStringList list;
+ TQStringList list;
- list = QStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/argumentsonly"));
+ list = TQStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/argumentsonly"));
FtnchekItem::readFlagsToListView(arguments_listview, &list);
- list = QStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/commononly"));
+ list = TQStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/commononly"));
FtnchekItem::readFlagsToListView(common_listview, &list);
- list = QStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/truncationonly"));
+ list = TQStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/truncationonly"));
FtnchekItem::readFlagsToListView(truncation_listview, &list);
- list = QStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/usageonly"));
+ list = TQStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/usageonly"));
FtnchekItem::readFlagsToListView(usage_listview, &list);
- list = QStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/f77only"));
+ list = TQStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/f77only"));
FtnchekItem::readFlagsToListView(f77_listview, &list);
- list = QStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/portabilityonly"));
+ list = TQStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/portabilityonly"));
FtnchekItem::readFlagsToListView(portability_listview, &list);
}
@@ -271,7 +271,7 @@ void FtnchekConfigWidget::storeConfig()
DomUtil::writeBoolEntry(dom, "/kdevfortransupport/ftnchek/f77all", f77all_button->isChecked());
DomUtil::writeBoolEntry(dom, "/kdevfortransupport/ftnchek/portabilityall", portabilityall_button->isChecked());
- QStringList list;
+ TQStringList list;
FtnchekItem::writeFlagsFromListView(arguments_listview, &list);
DomUtil::writeEntry(dom, "/kdevfortransupport/ftnchek/argumentsonly", list.join(","));
diff --git a/languages/fortran/ftnchekconfigwidget.h b/languages/fortran/ftnchekconfigwidget.h
index 053b2598..f465ac3f 100644
--- a/languages/fortran/ftnchekconfigwidget.h
+++ b/languages/fortran/ftnchekconfigwidget.h
@@ -12,7 +12,7 @@
#ifndef _FTNCHEKCONFIGWIDGET_H_
#define _FTNCHEKCONFIGWIDGET_H_
-#include <qdom.h>
+#include <tqdom.h>
#include "ftnchekconfigwidgetbase.h"
class QButtonGroup;
@@ -22,7 +22,7 @@ class FtnchekConfigWidget : public FtnchekConfigWidgetBase
Q_OBJECT
public:
- FtnchekConfigWidget(QDomDocument &projectDom, QWidget *parent, const char *name);
+ FtnchekConfigWidget(TQDomDocument &projectDom, TQWidget *parent, const char *name);
~FtnchekConfigWidget();
public slots:
@@ -32,10 +32,10 @@ private:
void readConfig();
void storeConfig();
- QButtonGroup *arguments_group, *common_group;
- QButtonGroup *truncation_group, *usage_group;
- QButtonGroup *f77_group, *portability_group;
- QDomDocument dom;
+ TQButtonGroup *arguments_group, *common_group;
+ TQButtonGroup *truncation_group, *usage_group;
+ TQButtonGroup *f77_group, *portability_group;
+ TQDomDocument dom;
};
#endif
diff --git a/languages/java/JavaLexer.hpp b/languages/java/JavaLexer.hpp
index a46022cd..9d185686 100644
--- a/languages/java/JavaLexer.hpp
+++ b/languages/java/JavaLexer.hpp
@@ -6,7 +6,7 @@
#include "driver.h"
#include "JavaAST.hpp"
- #include <qlistview.h>
+ #include <tqlistview.h>
#include <kdebug.h>
#define SET_POSITION(ast,t)\
@@ -32,18 +32,18 @@ private:
public:
void setDriver( Driver* d ) { m_driver = d; }
- void setFileName( const QString& fileName ) { m_driver->currentFileName() = fileName; }
+ void setFileName( const TQString& fileName ) { m_driver->currentFileName() = fileName; }
virtual void reportError( const ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex ){
- m_driver->addProblem( m_driver->currentFileName(), Problem( QString::fromLocal8Bit(ex.getMessage().c_str()), ex.getLine(), ex.getColumn()) );
+ m_driver->addProblem( m_driver->currentFileName(), Problem( TQString::fromLocal8Bit(ex.getMessage().c_str()), ex.getLine(), ex.getColumn()) );
}
virtual void reportError( const ANTLR_USE_NAMESPACE(std)string& errorMessage ){
- m_driver->addProblem( m_driver->currentFileName(), Problem( QString::fromLocal8Bit(errorMessage.c_str()), getLine(), getColumn()) );
+ m_driver->addProblem( m_driver->currentFileName(), Problem( TQString::fromLocal8Bit(errorMessage.c_str()), getLine(), getColumn()) );
}
virtual void reportWarning( const ANTLR_USE_NAMESPACE(std)string& warnMessage ){
- m_driver->addProblem( m_driver->currentFileName(), Problem( QString::fromLocal8Bit(warnMessage.c_str()), getLine(), getColumn()) );
+ m_driver->addProblem( m_driver->currentFileName(), Problem( TQString::fromLocal8Bit(warnMessage.c_str()), getLine(), getColumn()) );
}
#line 30 "JavaLexer.hpp"
private:
diff --git a/languages/java/JavaRecognizer.hpp b/languages/java/JavaRecognizer.hpp
index e9e426b7..fab59972 100644
--- a/languages/java/JavaRecognizer.hpp
+++ b/languages/java/JavaRecognizer.hpp
@@ -6,7 +6,7 @@
#include "driver.h"
#include "JavaAST.hpp"
- #include <qlistview.h>
+ #include <tqlistview.h>
#include <kdebug.h>
#define SET_POSITION(ast,t)\
@@ -144,18 +144,18 @@ private:
public:
void setDriver( Driver* d ) { m_driver = d; }
- void setFileName( const QString& fileName ) { m_driver->currentFileName() = fileName; }
+ void setFileName( const TQString& fileName ) { m_driver->currentFileName() = fileName; }
void reportError( const ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex ){
- m_driver->addProblem( m_driver->currentFileName(), Problem( QString::fromLocal8Bit(ex.getMessage().c_str()), ex.getLine(), ex.getColumn()) );
+ m_driver->addProblem( m_driver->currentFileName(), Problem( TQString::fromLocal8Bit(ex.getMessage().c_str()), ex.getLine(), ex.getColumn()) );
}
void reportError( const ANTLR_USE_NAMESPACE(std)string& errorMessage ){
- m_driver->addProblem( m_driver->currentFileName(), Problem( QString::fromLocal8Bit(errorMessage.c_str()), LT(1)->getLine(), LT(1)->getColumn()) );
+ m_driver->addProblem( m_driver->currentFileName(), Problem( TQString::fromLocal8Bit(errorMessage.c_str()), LT(1)->getLine(), LT(1)->getColumn()) );
}
void reportMessage( const ANTLR_USE_NAMESPACE(std)string& message ){
- m_driver->addProblem( m_driver->currentFileName(), Problem( QString::fromLocal8Bit(message.c_str()), LT(1)->getLine(), LT(1)->getColumn()) );
+ m_driver->addProblem( m_driver->currentFileName(), Problem( TQString::fromLocal8Bit(message.c_str()), LT(1)->getLine(), LT(1)->getColumn()) );
}
#line 142 "JavaRecognizer.hpp"
public:
diff --git a/languages/java/JavaStoreWalker.cpp b/languages/java/JavaStoreWalker.cpp
index b442aafd..1bdb9522 100644
--- a/languages/java/JavaStoreWalker.cpp
+++ b/languages/java/JavaStoreWalker.cpp
@@ -15,7 +15,7 @@ JavaStoreWalker::JavaStoreWalker()
void JavaStoreWalker::compilationUnit(RefJavaAST _t) {
RefJavaAST compilationUnit_AST_in = (_t == RefJavaAST(ASTNULL)) ? RefJavaAST(ANTLR_USE_NAMESPACE(antlr)nullAST) : _t;
#line 75 "java.store.g"
- QString package; QString imp; QStringList imports;
+ TQString package; TQString imp; TQStringList imports;
#line 20 "JavaStoreWalker.cpp"
try { // for error handling
@@ -87,9 +87,9 @@ void JavaStoreWalker::compilationUnit(RefJavaAST _t) {
_retTree = _t;
}
- QString JavaStoreWalker::packageDefinition(RefJavaAST _t) {
+ TQString JavaStoreWalker::packageDefinition(RefJavaAST _t) {
#line 82 "java.store.g"
- QString id ;
+ TQString id ;
#line 94 "JavaStoreWalker.cpp"
RefJavaAST packageDefinition_AST_in = (_t == RefJavaAST(ASTNULL)) ? RefJavaAST(ANTLR_USE_NAMESPACE(antlr)nullAST) : _t;
@@ -112,9 +112,9 @@ void JavaStoreWalker::compilationUnit(RefJavaAST _t) {
return id ;
}
- QString JavaStoreWalker::importDefinition(RefJavaAST _t) {
+ TQString JavaStoreWalker::importDefinition(RefJavaAST _t) {
#line 86 "java.store.g"
- QString id ;
+ TQString id ;
#line 119 "JavaStoreWalker.cpp"
RefJavaAST importDefinition_AST_in = (_t == RefJavaAST(ASTNULL)) ? RefJavaAST(ANTLR_USE_NAMESPACE(antlr)nullAST) : _t;
@@ -140,7 +140,7 @@ void JavaStoreWalker::compilationUnit(RefJavaAST _t) {
void JavaStoreWalker::typeDefinition(RefJavaAST _t) {
RefJavaAST typeDefinition_AST_in = (_t == RefJavaAST(ASTNULL)) ? RefJavaAST(ANTLR_USE_NAMESPACE(antlr)nullAST) : _t;
#line 90 "java.store.g"
- QStringList bases; QString className; ClassDom klass; QStringList m;
+ TQStringList bases; TQString className; ClassDom klass; TQStringList m;
#line 145 "JavaStoreWalker.cpp"
try { // for error handling
@@ -161,8 +161,8 @@ void JavaStoreWalker::typeDefinition(RefJavaAST _t) {
#line 92 "java.store.g"
klass = m_model->create<ClassModel>();
- QString name = QString::fromUtf8( tmp4_AST_in->getText().c_str(), tmp4_AST_in->getText().length() );
- QStringList path = QStringList::split( ".", name );
+ TQString name = TQString::fromUtf8( tmp4_AST_in->getText().c_str(), tmp4_AST_in->getText().length() );
+ TQStringList path = TQStringList::split( ".", name );
className = path.back();
klass->setName( path.back() );
@@ -181,7 +181,7 @@ void JavaStoreWalker::typeDefinition(RefJavaAST _t) {
_t = _retTree;
#line 110 "java.store.g"
- for( QStringList::Iterator it = bases.begin(); it != bases.end(); ++it )
+ for( TQStringList::Iterator it = bases.begin(); it != bases.end(); ++it )
klass->addBaseClass( *it );
#line 188 "JavaStoreWalker.cpp"
@@ -219,8 +219,8 @@ void JavaStoreWalker::typeDefinition(RefJavaAST _t) {
#line 126 "java.store.g"
klass = m_model->create<ClassModel>();
- QString name = QString::fromUtf8( tmp6_AST_in->getText().c_str(), tmp6_AST_in->getText().length() );
- QStringList path = QStringList::split( ".", name );
+ TQString name = TQString::fromUtf8( tmp6_AST_in->getText().c_str(), tmp6_AST_in->getText().length() );
+ TQStringList path = TQStringList::split( ".", name );
className = path.back();
klass->setName( path.back() );
@@ -270,9 +270,9 @@ void JavaStoreWalker::typeDefinition(RefJavaAST _t) {
_retTree = _t;
}
- QString JavaStoreWalker::identifier(RefJavaAST _t) {
+ TQString JavaStoreWalker::identifier(RefJavaAST _t) {
#line 363 "java.store.g"
- QString id ;
+ TQString id ;
#line 277 "JavaStoreWalker.cpp"
RefJavaAST identifier_AST_in = (_t == RefJavaAST(ASTNULL)) ? RefJavaAST(ANTLR_USE_NAMESPACE(antlr)nullAST) : _t;
@@ -307,7 +307,7 @@ void JavaStoreWalker::typeDefinition(RefJavaAST _t) {
_t = _t->getNextSibling();
#line 367 "java.store.g"
- id += QString(".") + tmp9_AST_in->getText().c_str();
+ id += TQString(".") + tmp9_AST_in->getText().c_str();
#line 313 "JavaStoreWalker.cpp"
break;
@@ -327,9 +327,9 @@ void JavaStoreWalker::typeDefinition(RefJavaAST _t) {
return id ;
}
- QString JavaStoreWalker::identifierStar(RefJavaAST _t) {
+ TQString JavaStoreWalker::identifierStar(RefJavaAST _t) {
#line 372 "java.store.g"
- QString id ;
+ TQString id ;
#line 334 "JavaStoreWalker.cpp"
RefJavaAST identifierStar_AST_in = (_t == RefJavaAST(ASTNULL)) ? RefJavaAST(ANTLR_USE_NAMESPACE(antlr)nullAST) : _t;
@@ -367,7 +367,7 @@ void JavaStoreWalker::typeDefinition(RefJavaAST _t) {
match(ANTLR_USE_NAMESPACE(antlr)RefAST(_t),STAR);
_t = _t->getNextSibling();
#line 376 "java.store.g"
- id += QString(".") + tmp12_AST_in->getText().c_str();
+ id += TQString(".") + tmp12_AST_in->getText().c_str();
#line 372 "JavaStoreWalker.cpp"
break;
}
@@ -377,7 +377,7 @@ void JavaStoreWalker::typeDefinition(RefJavaAST _t) {
match(ANTLR_USE_NAMESPACE(antlr)RefAST(_t),IDENT);
_t = _t->getNextSibling();
#line 377 "java.store.g"
- id += QString(".") + tmp13_AST_in->getText().c_str();
+ id += TQString(".") + tmp13_AST_in->getText().c_str();
#line 382 "JavaStoreWalker.cpp"
break;
}
@@ -406,9 +406,9 @@ void JavaStoreWalker::typeDefinition(RefJavaAST _t) {
return id ;
}
- QStringList JavaStoreWalker::modifiers(RefJavaAST _t) {
+ TQStringList JavaStoreWalker::modifiers(RefJavaAST _t) {
#line 183 "java.store.g"
- QStringList l ;
+ TQStringList l ;
#line 413 "JavaStoreWalker.cpp"
RefJavaAST modifiers_AST_in = (_t == RefJavaAST(ASTNULL)) ? RefJavaAST(ANTLR_USE_NAMESPACE(antlr)nullAST) : _t;
RefJavaAST m = RefJavaAST(ANTLR_USE_NAMESPACE(antlr)nullAST);
@@ -449,13 +449,13 @@ void JavaStoreWalker::typeDefinition(RefJavaAST _t) {
return l ;
}
- QStringList JavaStoreWalker::extendsClause(RefJavaAST _t) {
+ TQStringList JavaStoreWalker::extendsClause(RefJavaAST _t) {
#line 202 "java.store.g"
- QStringList l ;
+ TQStringList l ;
#line 456 "JavaStoreWalker.cpp"
RefJavaAST extendsClause_AST_in = (_t == RefJavaAST(ASTNULL)) ? RefJavaAST(ANTLR_USE_NAMESPACE(antlr)nullAST) : _t;
#line 202 "java.store.g"
- QString id;
+ TQString id;
#line 460 "JavaStoreWalker.cpp"
try { // for error handling
@@ -493,13 +493,13 @@ void JavaStoreWalker::typeDefinition(RefJavaAST _t) {
return l ;
}
- QStringList JavaStoreWalker::implementsClause(RefJavaAST _t) {
+ TQStringList JavaStoreWalker::implementsClause(RefJavaAST _t) {
#line 206 "java.store.g"
- QStringList l ;
+ TQStringList l ;
#line 500 "JavaStoreWalker.cpp"
RefJavaAST implementsClause_AST_in = (_t == RefJavaAST(ASTNULL)) ? RefJavaAST(ANTLR_USE_NAMESPACE(antlr)nullAST) : _t;
#line 206 "java.store.g"
- QString id;
+ TQString id;
#line 504 "JavaStoreWalker.cpp"
try { // for error handling
@@ -695,9 +695,9 @@ void JavaStoreWalker::interfaceBlock(RefJavaAST _t,
_retTree = _t;
}
- QString JavaStoreWalker::typeSpec(RefJavaAST _t) {
+ TQString JavaStoreWalker::typeSpec(RefJavaAST _t) {
#line 157 "java.store.g"
- QString tp ;
+ TQString tp ;
#line 702 "JavaStoreWalker.cpp"
RefJavaAST typeSpec_AST_in = (_t == RefJavaAST(ASTNULL)) ? RefJavaAST(ANTLR_USE_NAMESPACE(antlr)nullAST) : _t;
@@ -720,9 +720,9 @@ void JavaStoreWalker::interfaceBlock(RefJavaAST _t,
return tp ;
}
- QString JavaStoreWalker::typeSpecArray(RefJavaAST _t) {
+ TQString JavaStoreWalker::typeSpecArray(RefJavaAST _t) {
#line 161 "java.store.g"
- QString tp ;
+ TQString tp ;
#line 727 "JavaStoreWalker.cpp"
RefJavaAST typeSpecArray_AST_in = (_t == RefJavaAST(ASTNULL)) ? RefJavaAST(ANTLR_USE_NAMESPACE(antlr)nullAST) : _t;
@@ -776,9 +776,9 @@ void JavaStoreWalker::interfaceBlock(RefJavaAST _t,
return tp ;
}
- QString JavaStoreWalker::type(RefJavaAST _t) {
+ TQString JavaStoreWalker::type(RefJavaAST _t) {
#line 166 "java.store.g"
- QString tp ;
+ TQString tp ;
#line 783 "JavaStoreWalker.cpp"
RefJavaAST type_AST_in = (_t == RefJavaAST(ASTNULL)) ? RefJavaAST(ANTLR_USE_NAMESPACE(antlr)nullAST) : _t;
RefJavaAST b = RefJavaAST(ANTLR_USE_NAMESPACE(antlr)nullAST);
@@ -1023,8 +1023,8 @@ void JavaStoreWalker::modifier(RefJavaAST _t) {
RefJavaAST methodDecl_AST_in = (_t == RefJavaAST(ASTNULL)) ? RefJavaAST(ANTLR_USE_NAMESPACE(antlr)nullAST) : _t;
#line 257 "java.store.g"
- QStringList m;
- QString tp;
+ TQStringList m;
+ TQString tp;
meth = m_model->create<FunctionModel>();
meth->setFileName( m_file->name() );
@@ -1071,8 +1071,8 @@ void JavaStoreWalker::modifier(RefJavaAST _t) {
RefJavaAST variableDef_AST_in = (_t == RefJavaAST(ASTNULL)) ? RefJavaAST(ANTLR_USE_NAMESPACE(antlr)nullAST) : _t;
#line 293 "java.store.g"
- QStringList m;
- QString tp;
+ TQStringList m;
+ TQString tp;
attr = m_model->create<VariableModel>();
attr->setFileName( m_file->name() );
@@ -1123,7 +1123,7 @@ void JavaStoreWalker::modifier(RefJavaAST _t) {
RefJavaAST ctorDef_AST_in = (_t == RefJavaAST(ASTNULL)) ? RefJavaAST(ANTLR_USE_NAMESPACE(antlr)nullAST) : _t;
#line 239 "java.store.g"
- QStringList m;
+ TQStringList m;
meth = m_model->create<FunctionModel>();
meth->setFileName( m_file->name() );
@@ -1169,8 +1169,8 @@ void JavaStoreWalker::modifier(RefJavaAST _t) {
RefJavaAST methodDef_AST_in = (_t == RefJavaAST(ASTNULL)) ? RefJavaAST(ANTLR_USE_NAMESPACE(antlr)nullAST) : _t;
#line 275 "java.store.g"
- QStringList m;
- QString tp;
+ TQStringList m;
+ TQString tp;
meth = m_model->create<FunctionModel>();
meth->setFileName( m_file->name() );
@@ -1426,7 +1426,7 @@ void JavaStoreWalker::varInitializer(RefJavaAST _t) {
RefJavaAST parameterDef_AST_in = (_t == RefJavaAST(ASTNULL)) ? RefJavaAST(ANTLR_USE_NAMESPACE(antlr)nullAST) : _t;
#line 313 "java.store.g"
- QString tp;
+ TQString tp;
arg = m_model->create<ArgumentModel>();
#line 1433 "JavaStoreWalker.cpp"
diff --git a/languages/java/JavaStoreWalker.hpp b/languages/java/JavaStoreWalker.hpp
index ed43efcc..676163ad 100644
--- a/languages/java/JavaStoreWalker.hpp
+++ b/languages/java/JavaStoreWalker.hpp
@@ -6,10 +6,10 @@
#include <codemodel.h>
#include "JavaAST.hpp"
- #include <qstring.h>
- #include <qstringlist.h>
- #include <qvaluestack.h>
- #include <qfileinfo.h>
+ #include <tqstring.h>
+ #include <tqstringlist.h>
+ #include <tqvaluestack.h>
+ #include <tqfileinfo.h>
#line 15 "JavaStoreWalker.hpp"
#include <antlr/config.hpp>
@@ -42,10 +42,10 @@ class CUSTOM_API JavaStoreWalker : public ANTLR_USE_NAMESPACE(antlr)TreeParser,
#line 43 "java.store.g"
private:
- QStringList m_currentScope;
+ TQStringList m_currentScope;
CodeModel* m_model;
FileDom m_file;
- QValueStack<ClassDom> m_currentClass;
+ TQValueStack<ClassDom> m_currentClass;
int m_currentAccess;
int m_anon;
ANTLR_USE_NAMESPACE(antlr)JavaASTFactory ast_factory;
@@ -88,23 +88,23 @@ public:
return JavaStoreWalker::tokenNames;
}
public: void compilationUnit(RefJavaAST _t);
- public: QString packageDefinition(RefJavaAST _t);
- public: QString importDefinition(RefJavaAST _t);
+ public: TQString packageDefinition(RefJavaAST _t);
+ public: TQString importDefinition(RefJavaAST _t);
public: void typeDefinition(RefJavaAST _t);
- public: QString identifier(RefJavaAST _t);
- public: QString identifierStar(RefJavaAST _t);
- public: QStringList modifiers(RefJavaAST _t);
- public: QStringList extendsClause(RefJavaAST _t);
- public: QStringList implementsClause(RefJavaAST _t);
+ public: TQString identifier(RefJavaAST _t);
+ public: TQString identifierStar(RefJavaAST _t);
+ public: TQStringList modifiers(RefJavaAST _t);
+ public: TQStringList extendsClause(RefJavaAST _t);
+ public: TQStringList implementsClause(RefJavaAST _t);
public: void objBlock(RefJavaAST _t,
ClassDom klass
);
public: void interfaceBlock(RefJavaAST _t,
ClassDom klass
);
- public: QString typeSpec(RefJavaAST _t);
- public: QString typeSpecArray(RefJavaAST _t);
- public: QString type(RefJavaAST _t);
+ public: TQString typeSpec(RefJavaAST _t);
+ public: TQString typeSpecArray(RefJavaAST _t);
+ public: TQString type(RefJavaAST _t);
public: void builtInType(RefJavaAST _t);
public: void modifier(RefJavaAST _t);
public: FunctionDom methodDecl(RefJavaAST _t);
diff --git a/languages/java/KDevJavaSupportIface.cpp b/languages/java/KDevJavaSupportIface.cpp
index 306ad76e..b1225700 100644
--- a/languages/java/KDevJavaSupportIface.cpp
+++ b/languages/java/KDevJavaSupportIface.cpp
@@ -3,7 +3,7 @@
#include "javasupportpart.h"
KDevJavaSupportIface::KDevJavaSupportIface( JavaSupportPart* javaSupport )
- : QObject( javaSupport ), DCOPObject( "KDevJavaSupport" ), m_javaSupport( javaSupport )
+ : TQObject( javaSupport ), DCOPObject( "KDevJavaSupport" ), m_javaSupport( javaSupport )
{
}
diff --git a/languages/java/KDevJavaSupportIface.h b/languages/java/KDevJavaSupportIface.h
index e0dce53f..ae5ee39f 100644
--- a/languages/java/KDevJavaSupportIface.h
+++ b/languages/java/KDevJavaSupportIface.h
@@ -2,12 +2,12 @@
#ifndef KDEVJAVASUPPORTIFACE_H
#define KDEVJAVASUPPORTIFACE_H
-#include <qobject.h>
+#include <tqobject.h>
#include <dcopobject.h>
class JavaSupportPart;
-class KDevJavaSupportIface : public QObject, public DCOPObject
+class KDevJavaSupportIface : public TQObject, public DCOPObject
{
Q_OBJECT
K_DCOP
diff --git a/languages/java/backgroundparser.cpp b/languages/java/backgroundparser.cpp
index 4081949c..0820b4d1 100644
--- a/languages/java/backgroundparser.cpp
+++ b/languages/java/backgroundparser.cpp
@@ -19,7 +19,7 @@
#if QT_VERSION < 0x030100
#include <kdevmutex.h>
#else
-#include <qmutex.h>
+#include <tqmutex.h>
#endif
#include <kparts/part.h>
@@ -34,9 +34,9 @@
#include <kdebug.h>
#include <kapplication.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qtextstream.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqtextstream.h>
class KDevSourceProvider: public SourceProvider
{
@@ -48,7 +48,7 @@ public:
void setReadFromDisk( bool b ) { m_readFromDisk = b; }
bool readFromDisk() const { return m_readFromDisk; }
- virtual QString contents( const QString& fileName )
+ virtual TQString contents( const TQString& fileName )
{
if( !m_readFromDisk ){
//kdDebug(9013) << "-------> kapp is locked = " << kapp->locked() << endl;
@@ -59,8 +59,8 @@ public:
//kdDebug(9013) << "-------> kapp locked" << endl;
- QPtrList<KParts::Part> parts( *m_javaSupport->partController()->parts() );
- QPtrListIterator<KParts::Part> it( parts );
+ TQPtrList<KParts::Part> parts( *m_javaSupport->partController()->parts() );
+ TQPtrListIterator<KParts::Part> it( parts );
while( it.current() ){
KTextEditor::Document* doc = dynamic_cast<KTextEditor::Document*>( it.current() );
++it;
@@ -69,7 +69,7 @@ public:
if( !doc || !editIface || doc->url().path() != fileName )
continue;
- QString contents = QString( editIface->text().ascii() ); // deep copy
+ TQString contents = TQString( editIface->text().ascii() ); // deep copy
if( needToLock )
kapp->unlock();
@@ -84,18 +84,18 @@ public:
//kdDebug(9013) << "-------> kapp unlocked" << endl;
}
- QFile f( fileName );
- QTextStream stream( &f );
+ TQFile f( fileName );
+ TQTextStream stream( &f );
if( f.open(IO_ReadOnly) ){
- QString contents = stream.read();
+ TQString contents = stream.read();
f.close();
return contents;
}
- return QString::null;
+ return TQString::null;
}
- virtual bool isModified( const QString& fileName )
+ virtual bool isModified( const TQString& fileName )
{
Q_UNUSED( fileName );
return true;
@@ -116,44 +116,44 @@ public:
bool isEmpty() const
{
- QMutexLocker locker( &m_mutex );
+ TQMutexLocker locker( &m_mutex );
return m_fileList.isEmpty();
}
uint count() const
{
- QMutexLocker locker( &m_mutex );
+ TQMutexLocker locker( &m_mutex );
return m_fileList.count();
}
- QPair<QString, bool> front() const
+ QPair<TQString, bool> front() const
{
- QMutexLocker locker( &m_mutex );
+ TQMutexLocker locker( &m_mutex );
return m_fileList.front();
}
void clear()
{
- QMutexLocker locker( &m_mutex );
+ TQMutexLocker locker( &m_mutex );
m_fileList.clear();
}
- void push_back( const QString& fileName, bool readFromDisk=false )
+ void push_back( const TQString& fileName, bool readFromDisk=false )
{
- QMutexLocker locker( &m_mutex );
+ TQMutexLocker locker( &m_mutex );
m_fileList.append( qMakePair(fileName, readFromDisk) ); /// \FIXME ROBE deepcopy?!
}
void pop_front()
{
- QMutexLocker locker( &m_mutex );
+ TQMutexLocker locker( &m_mutex );
m_fileList.pop_front();
}
- bool contains( const QString& fileName ) const
+ bool contains( const TQString& fileName ) const
{
- QMutexLocker locker( &m_mutex );
- QValueList< QPair<QString, bool> >::ConstIterator it = m_fileList.begin();
+ TQMutexLocker locker( &m_mutex );
+ TQValueList< QPair<TQString, bool> >::ConstIterator it = m_fileList.begin();
while( it != m_fileList.end() ){
if( (*it).first == fileName )
return true;
@@ -162,10 +162,10 @@ public:
return false;
}
- void remove( const QString& fileName )
+ void remove( const TQString& fileName )
{
- QMutexLocker locker( &m_mutex );
- QValueList< QPair<QString, bool> >::Iterator it = m_fileList.begin();
+ TQMutexLocker locker( &m_mutex );
+ TQValueList< QPair<TQString, bool> >::Iterator it = m_fileList.begin();
while( it != m_fileList.end() ){
if( (*it).first == fileName )
m_fileList.remove( it );
@@ -174,11 +174,11 @@ public:
}
private:
- mutable QMutex m_mutex;
- QValueList< QPair<QString, bool> > m_fileList;
+ mutable TQMutex m_mutex;
+ TQValueList< QPair<TQString, bool> > m_fileList;
};
-BackgroundParser::BackgroundParser( JavaSupportPart* part, QWaitCondition* consumed )
+BackgroundParser::BackgroundParser( JavaSupportPart* part, TQWaitCondition* consumed )
: m_consumed( consumed ), m_javaSupport( part ), m_close( false )
{
m_fileList = new SynchronizedFileList();
@@ -198,9 +198,9 @@ BackgroundParser::~BackgroundParser()
m_fileList = 0;
}
-void BackgroundParser::addFile( const QString& fileName, bool readFromDisk )
+void BackgroundParser::addFile( const TQString& fileName, bool readFromDisk )
{
- QString fn = deepCopy( fileName );
+ TQString fn = deepCopy( fileName );
bool added = false;
if( !m_fileList->contains(fn) ){
@@ -215,9 +215,9 @@ void BackgroundParser::addFile( const QString& fileName, bool readFromDisk )
void BackgroundParser::removeAllFiles()
{
kdDebug(9013) << "BackgroundParser::removeAllFiles()" << endl;
- QMutexLocker locker( &m_mutex );
+ TQMutexLocker locker( &m_mutex );
- QMap<QString, Unit*>::Iterator it = m_unitDict.begin();
+ TQMap<TQString, Unit*>::Iterator it = m_unitDict.begin();
while( it != m_unitDict.end() ){
Unit* unit = it.data();
++it;
@@ -231,9 +231,9 @@ void BackgroundParser::removeAllFiles()
m_isEmpty.wakeAll();
}
-void BackgroundParser::removeFile( const QString& fileName )
+void BackgroundParser::removeFile( const TQString& fileName )
{
- QMutexLocker locker( &m_mutex );
+ TQMutexLocker locker( &m_mutex );
if( Unit* unit = findUnit(fileName) ){
m_driver->remove( fileName );
@@ -246,7 +246,7 @@ void BackgroundParser::removeFile( const QString& fileName )
m_isEmpty.wakeAll();
}
-Unit* BackgroundParser::parseFile( const QString& fileName, bool readFromDisk )
+Unit* BackgroundParser::parseFile( const TQString& fileName, bool readFromDisk )
{
static_cast<KDevSourceProvider*>( m_driver->sourceProvider() )->setReadFromDisk( readFromDisk );
@@ -276,7 +276,7 @@ Unit* BackgroundParser::parseFile( const QString& fileName, bool readFromDisk )
KApplication::postEvent( m_javaSupport, new FileParsedEvent(fileName, unit->problems) );
}
- m_currentFile = QString::null;
+ m_currentFile = TQString::null;
if( m_fileList->isEmpty() )
m_isEmpty.wakeAll();
@@ -284,13 +284,13 @@ Unit* BackgroundParser::parseFile( const QString& fileName, bool readFromDisk )
return unit;
}
-Unit* BackgroundParser::findUnit( const QString& fileName )
+Unit* BackgroundParser::findUnit( const TQString& fileName )
{
- QMap<QString, Unit*>::Iterator it = m_unitDict.find( fileName );
+ TQMap<TQString, Unit*>::Iterator it = m_unitDict.find( fileName );
return it != m_unitDict.end() ? *it : 0;
}
-RefJavaAST BackgroundParser::translationUnit( const QString& fileName )
+RefJavaAST BackgroundParser::translationUnit( const TQString& fileName )
{
Unit* u = 0;
if( (u = findUnit(fileName)) == 0 ){
@@ -301,7 +301,7 @@ RefJavaAST BackgroundParser::translationUnit( const QString& fileName )
return u->translationUnit;
}
-QValueList<Problem> BackgroundParser::problems( const QString& fileName )
+TQValueList<Problem> BackgroundParser::problems( const TQString& fileName )
{
Unit* u = 0;
if( (u = findUnit(fileName)) == 0 ){
@@ -309,26 +309,26 @@ QValueList<Problem> BackgroundParser::problems( const QString& fileName )
u = parseFile( fileName, false );
}
- return u ? u->problems : QValueList<Problem>();
+ return u ? u->problems : TQValueList<Problem>();
}
void BackgroundParser::close()
{
- QMutexLocker locker( &m_mutex );
+ TQMutexLocker locker( &m_mutex );
m_close = true;
m_canParse.wakeAll();
}
bool BackgroundParser::filesInQueue()
{
- QMutexLocker locker( &m_mutex );
+ TQMutexLocker locker( &m_mutex );
return m_fileList->count() || !m_currentFile.isEmpty();
}
void BackgroundParser::run()
{
- // (void) m_javaSupport->codeCompletion()->repository()->getEntriesInScope( QStringList(), false );
+ // (void) m_javaSupport->codeCompletion()->repository()->getEntriesInScope( TQStringList(), false );
while( !m_close ){
@@ -346,8 +346,8 @@ void BackgroundParser::run()
break;
}
- QPair<QString, bool> entry = m_fileList->front();
- QString fileName = entry.first;
+ QPair<TQString, bool> entry = m_fileList->front();
+ TQString fileName = entry.first;
bool readFromDisk = entry.second;
m_currentFile = fileName;
m_fileList->pop_front();
@@ -359,5 +359,5 @@ void BackgroundParser::run()
kdDebug(9013) << "!!!!!!!!!!!!!!!!!! BG PARSER DESTROYED !!!!!!!!!!!!" << endl;
//commented to fix #83352
- //QThread::exit();
+ //TQThread::exit();
}
diff --git a/languages/java/backgroundparser.h b/languages/java/backgroundparser.h
index 2029ebf5..4cc52f33 100644
--- a/languages/java/backgroundparser.h
+++ b/languages/java/backgroundparser.h
@@ -15,10 +15,10 @@
#include "driver.h"
#include "JavaAST.hpp"
-#include <qthread.h>
-#include <qwaitcondition.h>
-#include <qmutex.h>
-#include <qmap.h>
+#include <tqthread.h>
+#include <tqwaitcondition.h>
+#include <tqmutex.h>
+#include <tqmap.h>
#include <kdebug.h>
class JavaSupportPart;
@@ -31,8 +31,8 @@ public:
Unit() {}
~Unit() {}
- QString fileName;
- QValueList<Problem> problems;
+ TQString fileName;
+ TQValueList<Problem> problems;
RefJavaAST translationUnit;
protected:
@@ -43,44 +43,44 @@ protected:
class BackgroundParser: public QThread
{
public:
- BackgroundParser( JavaSupportPart*, QWaitCondition* consumed );
+ BackgroundParser( JavaSupportPart*, TQWaitCondition* consumed );
virtual ~BackgroundParser();
- QMutex& mutex() { return m_mutex; }
+ TQMutex& mutex() { return m_mutex; }
void lock() { m_mutex.lock(); }
void unlock() { m_mutex.unlock(); }
- QWaitCondition& canParse() { return m_canParse; }
- QWaitCondition& isEmpty() { return m_isEmpty; }
+ TQWaitCondition& canParse() { return m_canParse; }
+ TQWaitCondition& isEmpty() { return m_isEmpty; }
bool filesInQueue();
- void addFile( const QString& fileName, bool readFromDisk=false );
- void removeFile( const QString& fileName );
+ void addFile( const TQString& fileName, bool readFromDisk=false );
+ void removeFile( const TQString& fileName );
void removeAllFiles();
- RefJavaAST translationUnit( const QString& fileName );
- QValueList<Problem> problems( const QString& fileName );
+ RefJavaAST translationUnit( const TQString& fileName );
+ TQValueList<Problem> problems( const TQString& fileName );
void close();
virtual void run();
protected:
- Unit* findUnit( const QString& fileName );
- Unit* parseFile( const QString& fileName, bool readFromDisk );
+ Unit* findUnit( const TQString& fileName );
+ Unit* parseFile( const TQString& fileName, bool readFromDisk );
private:
class KDevDriver* m_driver;
- QString m_currentFile;
- QWaitCondition m_canParse;
- QWaitCondition m_isEmpty;
- QWaitCondition* m_consumed;
- QMutex m_mutex;
+ TQString m_currentFile;
+ TQWaitCondition m_canParse;
+ TQWaitCondition m_isEmpty;
+ TQWaitCondition* m_consumed;
+ TQMutex m_mutex;
SynchronizedFileList* m_fileList;
JavaSupportPart* m_javaSupport;
bool m_close;
- QMap<QString, Unit*> m_unitDict;
+ TQMap<TQString, Unit*> m_unitDict;
};
#endif
diff --git a/languages/java/driver.cpp b/languages/java/driver.cpp
index ee49625d..f856fc74 100644
--- a/languages/java/driver.cpp
+++ b/languages/java/driver.cpp
@@ -23,9 +23,9 @@
#include <kdebug.h>
#include <stdlib.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qdir.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqdir.h>
#include <string>
#include <sstream>
@@ -35,20 +35,20 @@ class DefaultSourceProvider: public SourceProvider
public:
DefaultSourceProvider() {}
- virtual QString contents( const QString& fileName )
+ virtual TQString contents( const TQString& fileName )
{
- QString source;
+ TQString source;
- QFile f( fileName );
+ TQFile f( fileName );
if( f.open(IO_ReadOnly) ){
- QTextStream s( &f );
+ TQTextStream s( &f );
source = s.read();
f.close();
}
return source;
}
- virtual bool isModified( const QString& fileName )
+ virtual bool isModified( const TQString& fileName )
{
Q_UNUSED( fileName );
return true;
@@ -96,11 +96,11 @@ void Driver::reset( )
}
}
-void Driver::remove( const QString & fileName )
+void Driver::remove( const TQString & fileName )
{
m_problems.remove( fileName );
- QMap<QString, RefJavaAST>::Iterator it = m_parsedUnits.find( fileName );
+ TQMap<TQString, RefJavaAST>::Iterator it = m_parsedUnits.find( fileName );
if( it != m_parsedUnits.end() ){
RefJavaAST unit = *it;
m_parsedUnits.remove( it );
@@ -108,51 +108,51 @@ void Driver::remove( const QString & fileName )
}
}
-RefJavaAST Driver::takeTranslationUnit( const QString& fileName )
+RefJavaAST Driver::takeTranslationUnit( const TQString& fileName )
{
- QMap<QString, RefJavaAST>::Iterator it = m_parsedUnits.find( fileName );
+ TQMap<TQString, RefJavaAST>::Iterator it = m_parsedUnits.find( fileName );
RefJavaAST unit( *it );
//m_parsedUnits.remove( it );
m_parsedUnits[ fileName] = 0;
return unit;
}
-RefJavaAST Driver::translationUnit( const QString& fileName ) const
+RefJavaAST Driver::translationUnit( const TQString& fileName ) const
{
- QMap<QString, RefJavaAST>::ConstIterator it = m_parsedUnits.find( fileName );
+ TQMap<TQString, RefJavaAST>::ConstIterator it = m_parsedUnits.find( fileName );
return it != m_parsedUnits.end() ? *it : RefJavaAST();
}
-void Driver::addProblem( const QString & fileName, const Problem & problem )
+void Driver::addProblem( const TQString & fileName, const Problem & problem )
{
findOrInsertProblemList( fileName ).append( problem );
}
-QValueList < Problem >& Driver::findOrInsertProblemList( const QString & fileName )
+TQValueList < Problem >& Driver::findOrInsertProblemList( const TQString & fileName )
{
- QMap<QString, QValueList<Problem> >::Iterator it = m_problems.find( fileName );
+ TQMap<TQString, TQValueList<Problem> >::Iterator it = m_problems.find( fileName );
if( it != m_problems.end() )
return it.data();
- QValueList<Problem> l;
+ TQValueList<Problem> l;
m_problems.insert( fileName, l );
return m_problems[ fileName ];
}
-QValueList < Problem > Driver::problems( const QString & fileName ) const
+TQValueList < Problem > Driver::problems( const TQString & fileName ) const
{
- QMap<QString, QValueList<Problem> >::ConstIterator it = m_problems.find( fileName );
+ TQMap<TQString, TQValueList<Problem> >::ConstIterator it = m_problems.find( fileName );
if( it != m_problems.end() )
return it.data();
- return QValueList<Problem>();
+ return TQValueList<Problem>();
}
-void Driver::parseFile( const QString& fileName, bool onlyPreProcess, bool force )
+void Driver::parseFile( const TQString& fileName, bool onlyPreProcess, bool force )
{
- QFileInfo fileInfo( fileName );
- QString absFilePath = fileInfo.absFilePath();
+ TQFileInfo fileInfo( fileName );
+ TQString absFilePath = fileInfo.absFilePath();
- QMap<QString, RefJavaAST>::Iterator it = m_parsedUnits.find( absFilePath );
+ TQMap<TQString, RefJavaAST>::Iterator it = m_parsedUnits.find( absFilePath );
if( force && it != m_parsedUnits.end() ){
takeTranslationUnit( absFilePath );
@@ -199,7 +199,7 @@ void Driver::parseFile( const QString& fileName, bool onlyPreProcess, bool force
}
- m_currentFileName = QString::null;
+ m_currentFileName = TQString::null;
lexer = 0;
fileParsed( fileName );
@@ -215,13 +215,13 @@ void Driver::setupParser( JavaRecognizer * parser )
Q_UNUSED( parser );
}
-void Driver::addIncludePath( const QString &path )
+void Driver::addIncludePath( const TQString &path )
{
if( !path.stripWhiteSpace().isEmpty() )
m_includePaths << path;
}
-void Driver::fileParsed( const QString & fileName )
+void Driver::fileParsed( const TQString & fileName )
{
Q_UNUSED( fileName );
}
diff --git a/languages/java/driver.h b/languages/java/driver.h
index 66813e38..5b8c522a 100644
--- a/languages/java/driver.h
+++ b/languages/java/driver.h
@@ -22,10 +22,10 @@
#include "JavaAST.hpp"
-#include <qpair.h>
-#include <qvaluestack.h>
-#include <qstringlist.h>
-#include <qmap.h>
+#include <tqpair.h>
+#include <tqvaluestack.h>
+#include <tqstringlist.h>
+#include <tqmap.h>
class JavaLexer;
class JavaRecognizer;
@@ -46,7 +46,7 @@ public:
Problem( const Problem& source )
: m_text( source.m_text ), m_line( source.m_line ),
m_column( source.m_column ), m_level( source.m_level ) {}
- Problem( const QString& text, int line, int column, int level=Level_Error )
+ Problem( const TQString& text, int line, int column, int level=Level_Error )
: m_text( text ), m_line( line ), m_column( column ), m_level(level) {}
Problem& operator = ( const Problem& source )
@@ -63,13 +63,13 @@ public:
return m_text == p.m_text && m_line == p.m_line && m_column == p.m_column && m_level == p.m_level;
}
- QString text() const { return m_text; }
+ TQString text() const { return m_text; }
int line() const { return m_line; }
int column() const { return m_column; }
int level() const { return m_level; }
private:
- QString m_text;
+ TQString m_text;
int m_line;
int m_column;
int m_level;
@@ -81,8 +81,8 @@ public:
SourceProvider() {}
virtual ~SourceProvider() {}
- virtual QString contents( const QString& fileName ) = 0;
- virtual bool isModified( const QString& fileName ) = 0;
+ virtual TQString contents( const TQString& fileName ) = 0;
+ virtual bool isModified( const TQString& fileName ) = 0;
private:
SourceProvider( const SourceProvider& source );
@@ -100,34 +100,34 @@ public:
virtual void reset();
- virtual void parseFile( const QString& fileName, bool onlyPreProcesss=false, bool force=false );
- virtual void fileParsed( const QString& fileName );
- virtual void remove( const QString& fileName );
+ virtual void parseFile( const TQString& fileName, bool onlyPreProcesss=false, bool force=false );
+ virtual void fileParsed( const TQString& fileName );
+ virtual void remove( const TQString& fileName );
- virtual void addProblem( const QString& fileName, const Problem& problem );
+ virtual void addProblem( const TQString& fileName, const Problem& problem );
- QString currentFileName() const { return m_currentFileName; }
- RefJavaAST takeTranslationUnit( const QString& fileName );
- RefJavaAST translationUnit( const QString& fileName ) const;
- QValueList<Problem> problems( const QString& fileName ) const;
+ TQString currentFileName() const { return m_currentFileName; }
+ RefJavaAST takeTranslationUnit( const TQString& fileName );
+ RefJavaAST translationUnit( const TQString& fileName ) const;
+ TQValueList<Problem> problems( const TQString& fileName ) const;
- QStringList includePaths() const { return m_includePaths; }
- virtual void addIncludePath( const QString &path );
+ TQStringList includePaths() const { return m_includePaths; }
+ virtual void addIncludePath( const TQString &path );
- const QMap<QString, RefJavaAST> &parsedUnits() const { return m_parsedUnits; }
+ const TQMap<TQString, RefJavaAST> &parsedUnits() const { return m_parsedUnits; }
protected:
virtual void setupLexer( JavaLexer* lexer );
virtual void setupParser( JavaRecognizer* parser );
private:
- QValueList<Problem>& findOrInsertProblemList( const QString& fileName );
+ TQValueList<Problem>& findOrInsertProblemList( const TQString& fileName );
private:
- QString m_currentFileName;
- QMap< QString, QValueList<Problem> > m_problems;
- QMap< QString, RefJavaAST > m_parsedUnits;
- QStringList m_includePaths;
+ TQString m_currentFileName;
+ TQMap< TQString, TQValueList<Problem> > m_problems;
+ TQMap< TQString, RefJavaAST > m_parsedUnits;
+ TQStringList m_includePaths;
JavaLexer *lexer;
SourceProvider* m_sourceProvider;
diff --git a/languages/java/javasupport_events.h b/languages/java/javasupport_events.h
index c267b8e5..e325e635 100644
--- a/languages/java/javasupport_events.h
+++ b/languages/java/javasupport_events.h
@@ -15,28 +15,28 @@
#include "driver.h"
#include "kdevdeepcopy.h"
-#include <qevent.h>
-#include <qvaluelist.h>
+#include <tqevent.h>
+#include <tqvaluelist.h>
#if QT_VERSION < 0x030100
#include <kdevmutex.h>
#else
-#include <qmutex.h>
+#include <tqmutex.h>
#endif
enum
{
- Event_FileParsed = QEvent::User + 1000
+ Event_FileParsed = TQEvent::User + 1000
};
class FileParsedEvent: public QCustomEvent
{
public:
- FileParsedEvent( const QString& fileName, const QValueList<Problem>& problems )
- : QCustomEvent(Event_FileParsed), m_fileName( deepCopy(fileName) )
+ FileParsedEvent( const TQString& fileName, const TQValueList<Problem>& problems )
+ : TQCustomEvent(Event_FileParsed), m_fileName( deepCopy(fileName) )
{
// the members are deep copies
- QValueListConstIterator<Problem> it = problems.begin();
+ TQValueListConstIterator<Problem> it = problems.begin();
while (it != problems.end()) {
Problem p = *it;
m_problems.append(Problem(deepCopy(p.text()), p.line(), p.column(), p.level()));
@@ -44,12 +44,12 @@ public:
}
}
- QString fileName() const { return m_fileName; }
- QValueList<Problem> problems() const { return m_problems; }
+ TQString fileName() const { return m_fileName; }
+ TQValueList<Problem> problems() const { return m_problems; }
private:
- QString m_fileName;
- QValueList<Problem> m_problems;
+ TQString m_fileName;
+ TQValueList<Problem> m_problems;
private:
FileParsedEvent( const FileParsedEvent& source );
diff --git a/languages/java/javasupport_utils.cpp b/languages/java/javasupport_utils.cpp
index 1fa28b81..f3c00904 100644
--- a/languages/java/javasupport_utils.cpp
+++ b/languages/java/javasupport_utils.cpp
@@ -2,26 +2,26 @@
#include "javasupport_utils.h"
#include <codemodel.h>
-static void typeNameList( QStringList& path, QStringList & lst, const CodeModel * model );
-static void typeNameList( QStringList& path, QStringList & lst, NamespaceDom ns );
-static void typeNameList( QStringList & path, QStringList & lst, ClassDom klass );
+static void typeNameList( TQStringList& path, TQStringList & lst, const CodeModel * model );
+static void typeNameList( TQStringList& path, TQStringList & lst, NamespaceDom ns );
+static void typeNameList( TQStringList & path, TQStringList & lst, ClassDom klass );
-QStringList typeNameList( const CodeModel* model )
+TQStringList typeNameList( const CodeModel* model )
{
- QStringList lst;
- QStringList path;
+ TQStringList lst;
+ TQStringList path;
typeNameList( path, lst, model );
return lst;
}
-static void typeNameList( QStringList& path, QStringList & lst, const CodeModel * model )
+static void typeNameList( TQStringList& path, TQStringList & lst, const CodeModel * model )
{
const FileList fileList = model->fileList();
for( FileList::ConstIterator it=fileList.begin(); it!=fileList.end(); ++it )
typeNameList( path, lst, model_cast<NamespaceDom>(*it) );
}
-static void typeNameList( QStringList& path, QStringList & lst, NamespaceDom ns )
+static void typeNameList( TQStringList& path, TQStringList & lst, NamespaceDom ns )
{
if( !ns->isFile() )
path.push_back( ns->name() );
@@ -38,7 +38,7 @@ static void typeNameList( QStringList& path, QStringList & lst, NamespaceDom ns
path.pop_back();
}
-static void typeNameList( QStringList & path, QStringList & lst, ClassDom klass )
+static void typeNameList( TQStringList & path, TQStringList & lst, ClassDom klass )
{
path.push_back( klass->name() );
diff --git a/languages/java/javasupport_utils.h b/languages/java/javasupport_utils.h
index 12d2fec0..ad380966 100644
--- a/languages/java/javasupport_utils.h
+++ b/languages/java/javasupport_utils.h
@@ -12,10 +12,10 @@
#ifndef __javasupport_utils_h
#define __javasupport_utils_h
-#include <qstringlist.h>
+#include <tqstringlist.h>
class CodeModel;
-QStringList typeNameList( const CodeModel* model );
+TQStringList typeNameList( const CodeModel* model );
#endif // __javasupport_utils_h
diff --git a/languages/java/javasupportpart.cpp b/languages/java/javasupportpart.cpp
index c8122a47..62d4811f 100644
--- a/languages/java/javasupportpart.cpp
+++ b/languages/java/javasupportpart.cpp
@@ -26,20 +26,20 @@
#include "JavaStoreWalker.hpp"
#include "JavaAST.hpp"
-#include <qheader.h>
-#include <qdir.h>
-#include <qdom.h>
-#include <qfileinfo.h>
-#include <qguardedptr.h>
-#include <qpopupmenu.h>
-#include <qprogressdialog.h>
-#include <qstringlist.h>
-#include <qtimer.h>
-#include <qstatusbar.h>
-#include <qprogressbar.h>
-#include <qregexp.h>
-#include <qlabel.h>
-#include <qvbox.h>
+#include <tqheader.h>
+#include <tqdir.h>
+#include <tqdom.h>
+#include <tqfileinfo.h>
+#include <tqguardedptr.h>
+#include <tqpopupmenu.h>
+#include <tqprogressdialog.h>
+#include <tqstringlist.h>
+#include <tqtimer.h>
+#include <tqstatusbar.h>
+#include <tqprogressbar.h>
+#include <tqregexp.h>
+#include <tqlabel.h>
+#include <tqvbox.h>
#include <kmessagebox.h>
#include <kaction.h>
#include <kapplication.h>
@@ -85,7 +85,7 @@ public:
{
}
- void fileParsed( const QString& fileName )
+ void fileParsed( const TQString& fileName )
{
//kdDebug(9013) << "-----> file " << fileName << " parsed!" << endl;
RefJavaAST ast = takeTranslationUnit( fileName );
@@ -93,8 +93,8 @@ public:
if( javaSupport()->problemReporter() ){
javaSupport()->problemReporter()->removeAllProblems( fileName );
- QValueList<Problem> pl = problems( fileName );
- QValueList<Problem>::ConstIterator it = pl.begin();
+ TQValueList<Problem> pl = problems( fileName );
+ TQValueList<Problem>::ConstIterator it = pl.begin();
while( it != pl.end() ){
const Problem& p = *it++;
javaSupport()->problemReporter()->reportProblem( fileName, p );
@@ -118,7 +118,7 @@ public:
}
};
-JavaSupportPart::JavaSupportPart(QObject *parent, const char *name, const QStringList &/*args*/)
+JavaSupportPart::JavaSupportPart(TQObject *parent, const char *name, const TQStringList &/*args*/)
: KDevLanguageSupport(JavaSupportFactory::info(), parent, name ? name : "KDevJavaSupport"),
m_activeDocument( 0 ), m_activeView( 0 ), m_activeSelection( 0 ), m_activeEditor( 0 ),
m_activeViewCursor( 0 ), m_projectClosed( true ), m_valid( false )
@@ -135,37 +135,37 @@ JavaSupportPart::JavaSupportPart(QObject *parent, const char *name, const QStrin
m_backgroundParser = new BackgroundParser( this, &m_eventConsumed );
m_backgroundParser->start();
- connect( core(), SIGNAL(projectOpened()), this, SLOT(projectOpened()) );
- connect( core(), SIGNAL(projectClosed()), this, SLOT(projectClosed()) );
- connect( partController(), SIGNAL(savedFile(const KURL&)),
- this, SLOT(savedFile(const KURL&)) );
- connect( core(), SIGNAL(contextMenu(QPopupMenu *, const Context *)),
- this, SLOT(contextMenu(QPopupMenu *, const Context *)) );
- connect( partController(), SIGNAL(activePartChanged(KParts::Part*)),
- this, SLOT(activePartChanged(KParts::Part*)));
- connect( partController(), SIGNAL(partRemoved(KParts::Part*)),
- this, SLOT(partRemoved(KParts::Part*)));
+ connect( core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(projectOpened()) );
+ connect( core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(projectClosed()) );
+ connect( partController(), TQT_SIGNAL(savedFile(const KURL&)),
+ this, TQT_SLOT(savedFile(const KURL&)) );
+ connect( core(), TQT_SIGNAL(contextMenu(TQPopupMenu *, const Context *)),
+ this, TQT_SLOT(contextMenu(TQPopupMenu *, const Context *)) );
+ connect( partController(), TQT_SIGNAL(activePartChanged(KParts::Part*)),
+ this, TQT_SLOT(activePartChanged(KParts::Part*)));
+ connect( partController(), TQT_SIGNAL(partRemoved(KParts::Part*)),
+ this, TQT_SLOT(partRemoved(KParts::Part*)));
m_problemReporter = new ProblemReporter( this, 0, "problemReporterWidget" );
m_problemReporter->setIcon( SmallIcon("info") );
mainWindow( )->embedOutputView( m_problemReporter, i18n("Problems"), i18n("Problem reporter"));
- connect( core(), SIGNAL(configWidget(KDialogBase*)),
- m_problemReporter, SLOT(configWidget(KDialogBase*)) );
- connect( core(), SIGNAL(configWidget(KDialogBase*)),
- this, SLOT(configWidget(KDialogBase*)) );
+ connect( core(), TQT_SIGNAL(configWidget(KDialogBase*)),
+ m_problemReporter, TQT_SLOT(configWidget(KDialogBase*)) );
+ connect( core(), TQT_SIGNAL(configWidget(KDialogBase*)),
+ this, TQT_SLOT(configWidget(KDialogBase*)) );
KAction *action;
action = new KAction(i18n("New Class..."), "classnew", 0,
- this, SLOT(slotNewClass()),
+ this, TQT_SLOT(slotNewClass()),
actionCollection(), "project_newclass");
action->setToolTip( i18n("Generate a new class") );
action->setWhatsThis( i18n("<b>New Class</b>Generates a new class.<p>") );
// daniel
- connect( core( ), SIGNAL( projectConfigWidget( KDialogBase* ) ), this,
- SLOT( projectConfigWidget( KDialogBase* ) ) );
+ connect( core( ), TQT_SIGNAL( projectConfigWidget( KDialogBase* ) ), this,
+ TQT_SLOT( projectConfigWidget( KDialogBase* ) ) );
new KDevJavaSupportIface( this );
//(void) dcopClient();
@@ -186,7 +186,7 @@ JavaSupportPart::~JavaSupportPart()
codeRepository()->setMainCatalog( 0 );
- QPtrListIterator<Catalog> it( m_catalogList );
+ TQPtrListIterator<Catalog> it( m_catalogList );
while( Catalog* catalog = it.current() ){
++it;
codeRepository()->unregisterCatalog( catalog );
@@ -198,20 +198,20 @@ JavaSupportPart::~JavaSupportPart()
m_problemReporter = 0;
}
-void JavaSupportPart::customEvent( QCustomEvent* ev )
+void JavaSupportPart::customEvent( TQCustomEvent* ev )
{
//kdDebug(9013) << "JavaSupportPart::customEvent()" << endl;
if( ev->type() == int(Event_FileParsed) ){
FileParsedEvent* event = (FileParsedEvent*) ev;
- QString fileName = event->fileName();
+ TQString fileName = event->fileName();
if( m_problemReporter ){
m_problemReporter->removeAllProblems( fileName );
bool hasErrors = false;
- QValueList<Problem> problems = event->problems();
- QValueList<Problem>::ConstIterator it = problems.begin();
+ TQValueList<Problem> problems = event->problems();
+ TQValueList<Problem>::ConstIterator it = problems.begin();
while( it != problems.end() ){
const Problem& p = *it++;
if( p.level() == Problem::Level_Error )
@@ -267,12 +267,12 @@ 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 = QString::null;
+ m_activeFileName = TQString::null;
if (m_activeDocument) {
m_activeFileName = URLUtil::canonicalPath( m_activeDocument->url().path() );
- QFileInfo fi( m_activeFileName );
- QString ext = fi.extension();
+ TQFileInfo fi( m_activeFileName );
+ TQString ext = fi.extension();
if (fileExtensions().contains(ext))
enabled = true;
}
@@ -288,8 +288,8 @@ void JavaSupportPart::activePartChanged(KParts::Part *part)
if( !textHintIface )
return;
- connect( view, SIGNAL(needTextHint(int,int,QString&)),
- this, SLOT(slotNeedTextHint(int,int,QString&)) );
+ connect( view, TQT_SIGNAL(needTextHint(int,int,TQString&)),
+ this, TQT_SLOT(slotNeedTextHint(int,int,TQString&)) );
textHintIface->enableTextHints( 1000 );
#endif
@@ -302,20 +302,20 @@ void JavaSupportPart::projectOpened( )
m_projectDirectory = URLUtil::canonicalPath( project()->projectDirectory() );
- connect( project( ), SIGNAL( addedFilesToProject( const QStringList & ) ),
- this, SLOT( addedFilesToProject( const QStringList & ) ) );
- connect( project( ), SIGNAL( removedFilesFromProject( const QStringList &) ),
- this, SLOT( removedFilesFromProject( const QStringList & ) ) );
- connect( project( ), SIGNAL( changedFilesInProject( const QStringList & ) ),
- this, SLOT( changedFilesInProject( const QStringList & ) ) );
- connect( project(), SIGNAL(projectCompiled()),
- this, SLOT(slotProjectCompiled()) );
+ connect( project( ), TQT_SIGNAL( addedFilesToProject( const TQStringList & ) ),
+ this, TQT_SLOT( addedFilesToProject( const TQStringList & ) ) );
+ connect( project( ), TQT_SIGNAL( removedFilesFromProject( const TQStringList &) ),
+ this, TQT_SLOT( removedFilesFromProject( const TQStringList & ) ) );
+ connect( project( ), TQT_SIGNAL( changedFilesInProject( const TQStringList & ) ),
+ this, TQT_SLOT( changedFilesInProject( const TQStringList & ) ) );
+ connect( project(), TQT_SIGNAL(projectCompiled()),
+ this, TQT_SLOT(slotProjectCompiled()) );
m_timestamp.clear();
m_projectClosed = false;
- QTimer::singleShot( 500, this, SLOT( initialParse( ) ) );
+ TQTimer::singleShot( 500, this, TQT_SLOT( initialParse( ) ) );
}
@@ -331,7 +331,7 @@ void JavaSupportPart::projectClosed( )
m_projectClosed = true;
}
-void JavaSupportPart::contextMenu(QPopupMenu */*popup*/, const Context *context)
+void JavaSupportPart::contextMenu(TQPopupMenu */*popup*/, const Context *context)
{
m_activeClass = 0;
m_activeFunction = 0;
@@ -350,37 +350,37 @@ void JavaSupportPart::contextMenu(QPopupMenu */*popup*/, const Context *context)
}
}
-void JavaSupportPart::addedFilesToProject(const QStringList &fileList)
+void JavaSupportPart::addedFilesToProject(const TQStringList &fileList)
{
- QStringList files = fileList;
+ TQStringList files = fileList;
- for ( QStringList::ConstIterator it = files.begin(); it != files.end(); ++it )
+ for ( TQStringList::ConstIterator it = files.begin(); it != files.end(); ++it )
{
- QString path = URLUtil::canonicalPath( m_projectDirectory + "/" + (*it) );
+ TQString path = URLUtil::canonicalPath( m_projectDirectory + "/" + (*it) );
maybeParse( path );
emit addedSourceInfo( path );
}
}
-void JavaSupportPart::removedFilesFromProject(const QStringList &fileList)
+void JavaSupportPart::removedFilesFromProject(const TQStringList &fileList)
{
- for ( QStringList::ConstIterator it = fileList.begin(); it != fileList.end(); ++it )
+ for ( TQStringList::ConstIterator it = fileList.begin(); it != fileList.end(); ++it )
{
- QString path = URLUtil::canonicalPath( m_projectDirectory + "/" + *it );
+ TQString path = URLUtil::canonicalPath( m_projectDirectory + "/" + *it );
removeWithReferences( path );
m_backgroundParser->removeFile( path );
}
}
-void JavaSupportPart::changedFilesInProject( const QStringList & fileList )
+void JavaSupportPart::changedFilesInProject( const TQStringList & fileList )
{
- QStringList files = fileList;
+ TQStringList files = fileList;
- for ( QStringList::ConstIterator it = files.begin(); it != files.end(); ++it )
+ for ( TQStringList::ConstIterator it = files.begin(); it != files.end(); ++it )
{
- QString path = URLUtil::canonicalPath( m_projectDirectory + "/" + *it );
+ TQString path = URLUtil::canonicalPath( m_projectDirectory + "/" + *it );
maybeParse( path );
emit addedSourceInfo( path );
@@ -394,7 +394,7 @@ void JavaSupportPart::savedFile(const KURL &fileName)
#if 0 // not needed anymore
kdDebug(9013) << "savedFile(): " << fileName.mid ( m_projectDirectory.length() + 1 ) << endl;
- QStringList projectFileList = project()->allFiles();
+ TQStringList projectFileList = project()->allFiles();
if (projectFileList.contains(fileName.mid ( m_projectDirectory.length() + 1 ))) {
maybeParse( fileName );
emit addedSourceInfo( fileName );
@@ -402,13 +402,13 @@ void JavaSupportPart::savedFile(const KURL &fileName)
#endif
}
-QString JavaSupportPart::findSourceFile()
+TQString JavaSupportPart::findSourceFile()
{
- QFileInfo fi( m_activeFileName );
- QString path = fi.filePath();
- QString ext = fi.extension();
- QString base = path.left( path.length() - ext.length() );
- QStringList candidates;
+ TQFileInfo fi( m_activeFileName );
+ TQString path = fi.filePath();
+ TQString ext = fi.extension();
+ TQString base = path.left( path.length() - ext.length() );
+ TQStringList candidates;
if (ext == "h" || ext == "H" || ext == "hh" || ext == "hxx" || ext == "hpp" || ext == "tlh") {
candidates << (base + "c");
@@ -423,10 +423,10 @@ QString JavaSupportPart::findSourceFile()
candidates << (base + "inl");
}
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for (it = candidates.begin(); it != candidates.end(); ++it) {
kdDebug(9013) << "Trying " << (*it) << endl;
- if (QFileInfo(*it).exists()) {
+ if (TQFileInfo(*it).exists()) {
return *it;
}
}
@@ -439,19 +439,19 @@ KDevLanguageSupport::Features JavaSupportPart::features()
return Features( Classes | Functions | Variables );
}
-QString JavaSupportPart::formatClassName(const QString &name)
+TQString JavaSupportPart::formatClassName(const TQString &name)
{
return name;
}
-QString JavaSupportPart::unformatClassName(const QString &name)
+TQString JavaSupportPart::unformatClassName(const TQString &name)
{
return name;
}
-QStringList JavaSupportPart::fileExtensions() const
+TQStringList JavaSupportPart::fileExtensions() const
{
- return QStringList::split(",", "java");
+ return TQStringList::split(",", "java");
}
void JavaSupportPart::slotNewClass()
@@ -482,8 +482,8 @@ void JavaSupportPart::initialParse( )
}
#if QT_VERSION < 0x030100
-// Taken from qt-3.2/tools/qdatetime.java/QDateTime::toTime_t() and modified for normal function
-uint toTime_t(QDateTime t)
+// 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();
@@ -503,7 +503,7 @@ uint toTime_t(QDateTime t)
bool
JavaSupportPart::parseProject( )
{
- //QLabel* label = new QLabel( "", mainWindow( )->statusBar( ) );
+ //TQLabel* label = new TQLabel( "", mainWindow( )->statusBar( ) );
//label->setMinimumWidth( 600 );
//mainWindow( )->statusBar( )->addWidget( label );
//label->show( );
@@ -513,30 +513,30 @@ JavaSupportPart::parseProject( )
kapp->processEvents( );
kapp->setOverrideCursor( waitCursor );
- QStringList files = modifiedFileList();
+ TQStringList files = modifiedFileList();
- QProgressBar* bar = new QProgressBar( files.count( ), mainWindow( )->statusBar( ) );
+ TQProgressBar* bar = new TQProgressBar( files.count( ), mainWindow( )->statusBar( ) );
bar->setMinimumWidth( 120 );
bar->setCenterIndicator( true );
mainWindow( )->statusBar( )->addWidget( bar );
bar->show( );
- QDir d( m_projectDirectory );
+ TQDir d( m_projectDirectory );
- QDataStream stream;
- QMap< QString, QPair<uint, uint> > pcs;
+ TQDataStream stream;
+ TQMap< TQString, QPair<uint, uint> > pcs;
- if( QFileInfo( project()->projectDirectory() + "/" +
+ if( TQFileInfo( project()->projectDirectory() + "/" +
project()->projectName().lower() + ".kdevelop.pcs" ).exists() )
{
d.rename(project()->projectName().lower() + ".kdevelop.pcs",
project()->projectName() + ".kdevelop.pcs");
}
- QFile f(project()->projectDirectory() + "/" + project()->projectName() + ".kdevelop.pcs");
+ TQFile f(project()->projectDirectory() + "/" + project()->projectName() + ".kdevelop.pcs");
if( f.open(IO_ReadOnly) ){
stream.setDevice( &f );
- QString sig;
+ TQString sig;
int pcs_version = 0;
stream >> sig >> pcs_version;
if( sig == "PCS" && pcs_version == KDEV_PCS_VERSION ){
@@ -545,7 +545,7 @@ JavaSupportPart::parseProject( )
stream >> numFiles;
for( int i=0; i<numFiles; ++i ){
- QString fn;
+ TQString fn;
uint ts;
uint offset;
@@ -556,12 +556,12 @@ JavaSupportPart::parseProject( )
}
int n = 0;
- for( QStringList::Iterator it = files.begin( ); it != files.end( ); ++it ) {
+ for( TQStringList::Iterator it = files.begin( ); it != files.end( ); ++it ) {
bar->setProgress( n++ );
- QFileInfo fileInfo( d, *it );
+ TQFileInfo fileInfo( d, *it );
if( fileInfo.exists() && fileInfo.isFile() && fileInfo.isReadable() ){
- QString absFilePath = URLUtil::canonicalPath( fileInfo.absFilePath() );
+ TQString absFilePath = URLUtil::canonicalPath( fileInfo.absFilePath() );
kdDebug(9013) << "parse file: " << absFilePath << endl;
if( (n%5) == 0 ){
@@ -574,7 +574,7 @@ JavaSupportPart::parseProject( )
}
if( isValidSource(absFilePath) ){
- QDateTime t = fileInfo.lastModified();
+ TQDateTime t = fileInfo.lastModified();
if( m_timestamp.contains(absFilePath) && m_timestamp[absFilePath] == t )
continue;
@@ -616,21 +616,21 @@ JavaSupportPart::parseProject( )
return true;
}
-void JavaSupportPart::maybeParse( const QString& fileName )
+void JavaSupportPart::maybeParse( const TQString& fileName )
{
if( !isValidSource(fileName) )
return;
- QFileInfo fileInfo( fileName );
- QString path = URLUtil::canonicalPath( fileName );
- QDateTime t = fileInfo.lastModified();
+ TQFileInfo fileInfo( fileName );
+ TQString path = URLUtil::canonicalPath( fileName );
+ TQDateTime t = fileInfo.lastModified();
if( !fileInfo.exists() ){
removeWithReferences( path );
return;
}
- QMap<QString, QDateTime>::Iterator it = m_timestamp.find( path );
+ TQMap<TQString, TQDateTime>::Iterator it = m_timestamp.find( path );
if( it != m_timestamp.end() && *it == t ){
return;
}
@@ -639,19 +639,19 @@ void JavaSupportPart::maybeParse( const QString& fileName )
m_driver->parseFile( path );
}
-void JavaSupportPart::slotNeedTextHint( int /*line*/, int /*column*/, QString& /*textHint*/ )
+void JavaSupportPart::slotNeedTextHint( int /*line*/, int /*column*/, TQString& /*textHint*/ )
{
}
-QStringList JavaSupportPart::subclassWidget(const QString& /*formName*/)
+TQStringList JavaSupportPart::subclassWidget(const TQString& /*formName*/)
{
- QStringList newFileNames;
+ TQStringList newFileNames;
return newFileNames;
}
-QStringList JavaSupportPart::updateWidget(const QString& /*formName*/, const QString& /*fileName*/)
+TQStringList JavaSupportPart::updateWidget(const TQString& /*formName*/, const TQString& /*fileName*/)
{
- QStringList dummy;
+ TQStringList dummy;
return dummy;
}
@@ -661,11 +661,11 @@ void JavaSupportPart::partRemoved( KParts::Part* part )
if( KTextEditor::Document* doc = dynamic_cast<KTextEditor::Document*>( part ) ){
- QString fileName = doc->url().path();
+ TQString fileName = doc->url().path();
if( fileName.isEmpty() )
return;
- QString canonicalFileName = URLUtil::canonicalPath( fileName );
+ TQString canonicalFileName = URLUtil::canonicalPath( fileName );
m_backgroundParser->removeFile( canonicalFileName );
m_backgroundParser->addFile( canonicalFileName, true );
}
@@ -677,24 +677,24 @@ void JavaSupportPart::slotProjectCompiled()
parseProject();
}
-QStringList JavaSupportPart::modifiedFileList()
+TQStringList JavaSupportPart::modifiedFileList()
{
- QStringList lst;
+ TQStringList lst;
- QStringList fileList = project()->allFiles();
- QStringList::Iterator it = fileList.begin();
+ TQStringList fileList = project()->allFiles();
+ TQStringList::Iterator it = fileList.begin();
while( it != fileList.end() ){
- QString fileName = *it;
+ TQString fileName = *it;
++it;
- QFileInfo fileInfo( m_projectDirectory, fileName );
+ TQFileInfo fileInfo( m_projectDirectory, fileName );
if( !fileExtensions().contains(fileInfo.extension()) )
continue;
- QDateTime t = fileInfo.lastModified();
- QString path = URLUtil::canonicalPath( fileInfo.absFilePath() );
- QMap<QString, QDateTime>::Iterator dictIt = m_timestamp.find( path );
+ TQDateTime t = fileInfo.lastModified();
+ TQString path = URLUtil::canonicalPath( fileInfo.absFilePath() );
+ TQMap<TQString, TQDateTime>::Iterator dictIt = m_timestamp.find( path );
if( fileInfo.exists() && dictIt != m_timestamp.end() && *dictIt == t )
continue;
@@ -709,8 +709,8 @@ KTextEditor::Document * JavaSupportPart::findDocument( const KURL & url )
if( !partController()->parts() )
return 0;
- QPtrList<KParts::Part> parts( *partController()->parts() );
- QPtrListIterator<KParts::Part> it( parts );
+ TQPtrList<KParts::Part> parts( *partController()->parts() );
+ TQPtrListIterator<KParts::Part> it( parts );
while( KParts::Part* part = it.current() ){
KTextEditor::Document* doc = dynamic_cast<KTextEditor::Document*>( part );
if( doc && doc->url() == url )
@@ -725,19 +725,19 @@ void JavaSupportPart::setupCatalog( )
{
kdDebug(9013) << "JavaSupportPart::setupCatalog()" << endl;
- QStringList indexList = QStringList() << "kind" << "name" << "scope" << "fileName";
+ TQStringList indexList = TQStringList() << "kind" << "name" << "scope" << "fileName";
KStandardDirs *dirs = JavaSupportFactory::instance()->dirs();
- QStringList pcsList = dirs->findAllResources( "pcs", "*.db", false, true );
- QStringList pcsIdxList = dirs->findAllResources( "pcs", "*.idx", false, true );
+ TQStringList pcsList = dirs->findAllResources( "pcs", "*.db", false, true );
+ TQStringList pcsIdxList = dirs->findAllResources( "pcs", "*.idx", false, true );
if( pcsList.size() && pcsVersion() < KDEV_DB_VERSION ){
- QStringList l = pcsList + pcsIdxList;
+ TQStringList l = pcsList + pcsIdxList;
int rtn = KMessageBox::questionYesNoList( 0, i18n("Persistent class store will be disabled: you have a wrong version of pcs installed.\nRemove old pcs files?"), l, i18n("Java Support"), KStdGuiItem::remove(), i18n("Keep Them") );
if( rtn == KMessageBox::Yes ){
- QStringList::Iterator it = l.begin();
+ TQStringList::Iterator it = l.begin();
while( it != l.end() ){
- QFile::remove( *it );
+ TQFile::remove( *it );
++it;
}
// @todo regenerate the pcs list
@@ -747,13 +747,13 @@ void JavaSupportPart::setupCatalog( )
}
}
- QStringList::Iterator it = pcsList.begin();
+ TQStringList::Iterator it = pcsList.begin();
while( it != pcsList.end() ){
Catalog* catalog = new Catalog();
catalog->open( *it );
++it;
- for( QStringList::Iterator idxIt=indexList.begin(); idxIt!=indexList.end(); ++idxIt )
+ for( TQStringList::Iterator idxIt=indexList.begin(); idxIt!=indexList.end(); ++idxIt )
catalog->addIndex( (*idxIt).utf8() );
m_catalogList.append( catalog );
@@ -790,12 +790,12 @@ void JavaSupportPart::setPcsVersion( int version )
config->sync();
}
-QString JavaSupportPart::formatTag( const Tag & /*inputTag*/ )
+TQString JavaSupportPart::formatTag( const Tag & /*inputTag*/ )
{
- return QString::null;
+ return TQString::null;
}
-void JavaSupportPart::removeWithReferences( const QString & fileName )
+void JavaSupportPart::removeWithReferences( const TQString & fileName )
{
kdDebug(9013) << "remove with references: " << fileName << endl;
m_timestamp.remove( fileName );
@@ -807,19 +807,19 @@ void JavaSupportPart::removeWithReferences( const QString & fileName )
codeModel()->removeFile( codeModel()->fileByName(fileName) );
}
-bool JavaSupportPart::isValidSource( const QString& fileName ) const
+bool JavaSupportPart::isValidSource( const TQString& fileName ) const
{
- QFileInfo fileInfo( fileName );
- return fileExtensions().contains( fileInfo.extension() ) && !QFile::exists(fileInfo.dirPath(true) + "/.kdev_ignore");
+ TQFileInfo fileInfo( fileName );
+ return fileExtensions().contains( fileInfo.extension() ) && !TQFile::exists(fileInfo.dirPath(true) + "/.kdev_ignore");
}
-QString JavaSupportPart::formatModelItem( const CodeModelItem *item, bool shortDescription )
+TQString JavaSupportPart::formatModelItem( const CodeModelItem *item, bool shortDescription )
{
if (item->isFunction())
{
const FunctionModel *model = static_cast<const FunctionModel*>(item);
- QString function;
- QString args;
+ TQString function;
+ TQString args;
ArgumentList argumentList = model->argumentList();
for (ArgumentList::const_iterator it = argumentList.begin(); it != argumentList.end(); ++it)
{
@@ -830,7 +830,7 @@ QString JavaSupportPart::formatModelItem( const CodeModelItem *item, bool shortD
function += model->resultType() + " ";
function += model->name() + "(" + args + ")" +
- (model->isAbstract() ? QString(" = 0") : QString("") );
+ (model->isAbstract() ? TQString(" = 0") : TQString("") );
return function;
}
@@ -844,12 +844,12 @@ QString JavaSupportPart::formatModelItem( const CodeModelItem *item, bool shortD
else if (item->isArgument())
{
const ArgumentModel *model = static_cast<const ArgumentModel*>(item);
- QString arg;
+ TQString arg;
if( !shortDescription )
arg += model->type() + " ";
arg += model->name();
if( !shortDescription )
- arg += model->defaultValue().isEmpty() ? QString("") : QString(" = ") + model->defaultValue();
+ arg += model->defaultValue().isEmpty() ? TQString("") : TQString(" = ") + model->defaultValue();
return arg.stripWhiteSpace();
}
else
@@ -868,15 +868,15 @@ void JavaSupportPart::saveProjectSourceInfo( )
if( !project() || fileList.isEmpty() )
return;
- QFile f( project()->projectDirectory() + "/" +
+ TQFile f( project()->projectDirectory() + "/" +
project()->projectName() + ".kdevelop.pcs" );
if( !f.open( IO_WriteOnly ) )
return;
- QDataStream stream( &f );
- QMap<QString, uint> offsets;
+ TQDataStream stream( &f );
+ TQMap<TQString, uint> offsets;
- QString pcs( "PCS" );
+ TQString pcs( "PCS" );
stream << pcs << KDEV_PCS_VERSION;
stream << int( fileList.size() );
diff --git a/languages/java/javasupportpart.h b/languages/java/javasupportpart.h
index e6280560..3b1f08be 100644
--- a/languages/java/javasupportpart.h
+++ b/languages/java/javasupportpart.h
@@ -20,10 +20,10 @@
#include <kdevlanguagesupport.h>
#include <kdialogbase.h>
-#include <qguardedptr.h>
-#include <qstring.h>
-#include <qwaitcondition.h>
-#include <qdatetime.h>
+#include <tqguardedptr.h>
+#include <tqstring.h>
+#include <tqwaitcondition.h>
+#include <tqdatetime.h>
class Context;
class ProblemReporter;
@@ -51,7 +51,7 @@ class JavaSupportPart : public KDevLanguageSupport
Q_OBJECT
public:
- JavaSupportPart( QObject *parent, const char *name, const QStringList &args );
+ JavaSupportPart( TQObject *parent, const char *name, const TQStringList &args );
virtual ~JavaSupportPart();
bool isValid() const { return m_valid; }
@@ -59,32 +59,32 @@ public:
ProblemReporter* problemReporter() { return m_problemReporter; }
BackgroundParser* backgroundParser() { return m_backgroundParser; }
- const QPtrList<Catalog>& catalogList() { return m_catalogList; }
+ const TQPtrList<Catalog>& catalogList() { return m_catalogList; }
- bool isValidSource( const QString& fileName ) const;
- QStringList fileExtensions( ) const;
+ bool isValidSource( const TQString& fileName ) const;
+ TQStringList fileExtensions( ) const;
- virtual void customEvent( QCustomEvent* ev );
+ virtual void customEvent( TQCustomEvent* ev );
- virtual QStringList subclassWidget(const QString& formName);
- virtual QStringList updateWidget(const QString& formName, const QString& fileName);
+ virtual TQStringList subclassWidget(const TQString& formName);
+ virtual TQStringList updateWidget(const TQString& formName, const TQString& fileName);
KTextEditor::Document* findDocument( const KURL& url );
static KConfig *config();
- virtual QString formatTag( const Tag& tag );
- virtual QString formatModelItem( const CodeModelItem *item, bool shortDescription=false );
+ virtual TQString formatTag( const Tag& tag );
+ virtual TQString formatModelItem( const CodeModelItem *item, bool shortDescription=false );
virtual void addClass();
signals:
- void fileParsed( const QString& fileName );
+ void fileParsed( const TQString& fileName );
protected:
virtual KDevLanguageSupport::Features features();
virtual KMimeType::List mimeTypes();
- virtual QString formatClassName(const QString &name);
- virtual QString unformatClassName(const QString &name);
+ virtual TQString formatClassName(const TQString &name);
+ virtual TQString unformatClassName(const TQString &name);
virtual void addMethod( ClassDom klass );
virtual void addAttribute( ClassDom klass );
@@ -96,16 +96,16 @@ private slots:
void savedFile(const KURL &fileName);
void configWidget(KDialogBase *dlg);
void projectConfigWidget(KDialogBase *dlg);
- void contextMenu(QPopupMenu *popup, const Context *context);
- void addedFilesToProject(const QStringList &fileList);
- void removedFilesFromProject(const QStringList &fileList);
- void changedFilesInProject( const QStringList & fileList );
+ void contextMenu(TQPopupMenu *popup, const Context *context);
+ void addedFilesToProject(const TQStringList &fileList);
+ void removedFilesFromProject(const TQStringList &fileList);
+ void changedFilesInProject( const TQStringList & fileList );
void slotProjectCompiled();
void setupCatalog();
void slotNewClass();
- void slotNeedTextHint( int, int, QString& );
+ void slotNeedTextHint( int, int, TQString& );
/**
* loads, parses and creates both classstores needed
@@ -122,19 +122,19 @@ private:
/**
* checks if a file has to be parsed
*/
- void maybeParse( const QString& fileName );
- void removeWithReferences( const QString& fileName );
+ void maybeParse( const TQString& fileName );
+ void removeWithReferences( const TQString& fileName );
- QStringList modifiedFileList();
- QString findSourceFile();
+ TQStringList modifiedFileList();
+ TQString findSourceFile();
int pcsVersion();
void setPcsVersion( int version );
void saveProjectSourceInfo();
- QString m_contextFileName;
+ TQString m_contextFileName;
- QGuardedPtr< ProblemReporter > m_problemReporter;
+ TQGuardedPtr< ProblemReporter > m_problemReporter;
BackgroundParser* m_backgroundParser;
KTextEditor::Document* m_activeDocument;
@@ -142,17 +142,17 @@ private:
KTextEditor::SelectionInterface* m_activeSelection;
KTextEditor::EditInterface* m_activeEditor;
KTextEditor::ViewCursorInterface* m_activeViewCursor;
- QString m_activeFileName;
+ TQString m_activeFileName;
- QWaitCondition m_eventConsumed;
+ TQWaitCondition m_eventConsumed;
bool m_projectClosed;
- QMap<QString, QDateTime> m_timestamp;
+ TQMap<TQString, TQDateTime> m_timestamp;
bool m_valid;
- QPtrList<Catalog> m_catalogList;
+ TQPtrList<Catalog> m_catalogList;
Driver* m_driver;
- QString m_projectDirectory;
+ TQString m_projectDirectory;
ClassDom m_activeClass;
FunctionDom m_activeFunction;
diff --git a/languages/java/kdevdeepcopy.h b/languages/java/kdevdeepcopy.h
index 8e7d8fbe..dd4d8f4d 100644
--- a/languages/java/kdevdeepcopy.h
+++ b/languages/java/kdevdeepcopy.h
@@ -1,12 +1,12 @@
#ifndef KDEVDEEPCOPY_H
#define KDEVDEEPCOPY_H
-#include <qstring.h>
+#include <tqstring.h>
-inline QString deepCopy( const QString& s )
+inline TQString deepCopy( const TQString& s )
{
- QCString str = s.utf8();
- return QString::fromUtf8( str, str.length() );
+ TQCString str = s.utf8();
+ return TQString::fromUtf8( str, str.length() );
}
#endif
diff --git a/languages/java/kdevdriver.cpp b/languages/java/kdevdriver.cpp
index 444217ff..d19a20c3 100644
--- a/languages/java/kdevdriver.cpp
+++ b/languages/java/kdevdriver.cpp
@@ -2,7 +2,7 @@
#include "kdevdriver.h"
#include "JavaLexer.hpp"
#include <unistd.h>
-#include <qfileinfo.h>
+#include <tqfileinfo.h>
KDevDriver::KDevDriver( JavaSupportPart* javaSupport )
: m_javaSupport( javaSupport )
@@ -16,13 +16,13 @@ JavaSupportPart* KDevDriver::javaSupport()
void KDevDriver::setupProject()
{
- QMap<QString, bool> map;
+ TQMap<TQString, bool> map;
{
- QStringList fileList = m_javaSupport->project()->allFiles();
- QStringList::ConstIterator it = fileList.begin();
+ TQStringList fileList = m_javaSupport->project()->allFiles();
+ TQStringList::ConstIterator it = fileList.begin();
while( it != fileList.end() ){
- QFileInfo info( *it );
+ TQFileInfo info( *it );
++it;
map.insert( info.dirPath(true), true );
@@ -30,7 +30,7 @@ void KDevDriver::setupProject()
}
{
- QMap<QString, bool>::Iterator it = map.begin();
+ TQMap<TQString, bool>::Iterator it = map.begin();
while( it != map.end() ){
addIncludePath( it.key() );
++it;
diff --git a/languages/java/problemreporter.cpp b/languages/java/problemreporter.cpp
index e7cbbcb5..a5beaaf2 100644
--- a/languages/java/problemreporter.cpp
+++ b/languages/java/problemreporter.cpp
@@ -43,26 +43,26 @@
#include <kconfig.h>
-#include <qtimer.h>
-#include <qregexp.h>
-#include <qvbox.h>
-#include <qfileinfo.h>
-#include <qwhatsthis.h>
-#include <qgroupbox.h>
+#include <tqtimer.h>
+#include <tqregexp.h>
+#include <tqvbox.h>
+#include <tqfileinfo.h>
+#include <tqwhatsthis.h>
+#include <tqgroupbox.h>
class ProblemItem: public KListViewItem
{
public:
- ProblemItem( QListView* parent, const QString& level, const QString& problem,
- const QString& file, const QString& line, const QString& column )
+ ProblemItem( TQListView* parent, const TQString& level, const TQString& problem,
+ const TQString& file, const TQString& line, const TQString& column )
: KListViewItem( parent, level, problem, file, line, column ) {}
- ProblemItem( QListViewItem* parent, const QString& level, const QString& problem,
- const QString& file, const QString& line, const QString& column )
+ ProblemItem( TQListViewItem* parent, const TQString& level, const TQString& problem,
+ const TQString& file, const TQString& line, const TQString& column )
: KListViewItem( parent, level, problem, file, line, column ) {}
- int compare( QListViewItem* item, int column, bool ascending ) const {
+ int compare( TQListViewItem* item, int column, bool ascending ) const {
if( column == 2 || column == 3 ){
int a = text( column ).toInt();
int b = item->text( column ).toInt();
@@ -75,13 +75,13 @@ public:
};
-ProblemReporter::ProblemReporter( JavaSupportPart* part, QWidget* parent, const char* name )
+ProblemReporter::ProblemReporter( JavaSupportPart* part, TQWidget* parent, const char* name )
: KListView( parent, name ? name : "problemreporter" ),
m_javaSupport( part ),
m_document( 0 ),
m_markIface( 0 )
{
- QWhatsThis::add(this, i18n("<b>Problem reporter</b><p>This window shows various \"problems\" in your project. "
+ TQWhatsThis::add(this, i18n("<b>Problem reporter</b><p>This window shows various \"problems\" in your project. "
"It displays TODO entries, FIXME's and errors reported by a language parser. "
"To add a TODO or FIXME entry, just type<br>"
"<tt>//@todo my todo</tt><br>"
@@ -95,19 +95,19 @@ ProblemReporter::ProblemReporter( JavaSupportPart* part, QWidget* parent, const
addColumn( i18n("Problem") );
setAllColumnsShowFocus( TRUE );
- m_timer = new QTimer( this );
+ m_timer = new TQTimer( this );
- connect( part->partController(), SIGNAL(activePartChanged(KParts::Part*)),
- this, SLOT(slotActivePartChanged(KParts::Part*)) );
- connect( part->partController(), SIGNAL(partAdded(KParts::Part*)),
- this, SLOT(slotPartAdded(KParts::Part*)) );
- connect( part->partController(), SIGNAL(partRemoved(KParts::Part*)),
- this, SLOT(slotPartRemoved(KParts::Part*)) );
+ connect( part->partController(), TQT_SIGNAL(activePartChanged(KParts::Part*)),
+ this, TQT_SLOT(slotActivePartChanged(KParts::Part*)) );
+ connect( part->partController(), TQT_SIGNAL(partAdded(KParts::Part*)),
+ this, TQT_SLOT(slotPartAdded(KParts::Part*)) );
+ connect( part->partController(), TQT_SIGNAL(partRemoved(KParts::Part*)),
+ this, TQT_SLOT(slotPartRemoved(KParts::Part*)) );
- connect( m_timer, SIGNAL(timeout()), this, SLOT(reparse()) );
+ connect( m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(reparse()) );
- connect( this, SIGNAL(executed(QListViewItem*)),
- this, SLOT(slotSelected(QListViewItem*)) );
+ connect( this, TQT_SIGNAL(executed(TQListViewItem*)),
+ this, TQT_SLOT(slotSelected(TQListViewItem*)) );
configure();
}
@@ -137,7 +137,7 @@ void ProblemReporter::slotActivePartChanged( KParts::Part* part )
if( !m_javaSupport->isValidSource(m_fileName) )
return;
- connect( m_document, SIGNAL(textChanged()), this, SLOT(slotTextChanged()) );
+ connect( m_document, TQT_SIGNAL(textChanged()), this, TQT_SLOT(slotTextChanged()) );
m_markIface = dynamic_cast<KTextEditor::MarkInterface*>( part );
if( !m_javaSupport->backgroundParser() )
@@ -159,11 +159,11 @@ void ProblemReporter::slotTextChanged()
m_timer->changeInterval( m_delay );
}
-void ProblemReporter::removeAllProblems( const QString& filename )
+void ProblemReporter::removeAllProblems( const TQString& filename )
{
- QListViewItem* current = firstChild();
+ TQListViewItem* current = firstChild();
while( current ){
- QListViewItem* i = current;
+ TQListViewItem* i = current;
current = current->nextSibling();
if( i->text(1) == filename )
@@ -171,8 +171,8 @@ void ProblemReporter::removeAllProblems( const QString& filename )
}
if( m_document && m_markIface ){
- QPtrList<KTextEditor::Mark> marks = m_markIface->marks();
- QPtrListIterator<KTextEditor::Mark> it( marks );
+ TQPtrList<KTextEditor::Mark> marks = m_markIface->marks();
+ TQPtrListIterator<KTextEditor::Mark> it( marks );
while( it.current() ){
m_markIface->removeMark( it.current()->line, KTextEditor::MarkInterface::markType07 );
++it;
@@ -197,7 +197,7 @@ void ProblemReporter::reparse()
kdDebug(9013) << "---> file added " << m_fileName << endl;
}
-void ProblemReporter::slotSelected( QListViewItem* item )
+void ProblemReporter::slotSelected( TQListViewItem* item )
{
KURL url( item->text(1) );
int line = item->text( 2 ).toInt();
@@ -206,21 +206,21 @@ void ProblemReporter::slotSelected( QListViewItem* item )
// m_javaSupport->mainWindow()->lowerView( this );
}
-void ProblemReporter::reportProblem( const QString& fileName, const Problem& p )
+void ProblemReporter::reportProblem( const TQString& fileName, const Problem& p )
{
int markType = levelToMarkType( p.level() );
if( markType != -1 && m_document && m_markIface && m_fileName == fileName ){
m_markIface->addMark( p.line(), markType );
}
- QString msg = p.text();
- msg = msg.replace( QRegExp("\n"), "" );
+ TQString msg = p.text();
+ msg = msg.replace( TQRegExp("\n"), "" );
new ProblemItem( this,
levelToString( p.level() ),
fileName,
- QString::number( p.line() + 1 ),
- QString::number( p.column() + 1 ),
+ TQString::number( p.line() + 1 ),
+ TQString::number( p.column() + 1 ),
msg );
}
@@ -235,12 +235,12 @@ void ProblemReporter::configure()
void ProblemReporter::configWidget( KDialogBase* dlg )
{
- QVBox *vbox = dlg->addVBoxPage(i18n("Java Parsing"));
+ TQVBox *vbox = dlg->addVBoxPage(i18n("Java Parsing"));
ConfigureProblemReporter* w = new ConfigureProblemReporter( vbox );
//FIXME adymo: unused functionality
w->groupBox3->hide();
- connect(dlg, SIGNAL(okClicked()), w, SLOT(accept()));
- connect(dlg, SIGNAL(okClicked()), this, SLOT(configure()));
+ connect(dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()));
+ connect(dlg, TQT_SIGNAL(okClicked()), this, TQT_SLOT(configure()));
}
void ProblemReporter::slotPartAdded( KParts::Part* part )
@@ -262,20 +262,20 @@ void ProblemReporter::slotPartRemoved( KParts::Part* part )
}
}
-QString ProblemReporter::levelToString( int level ) const
+TQString ProblemReporter::levelToString( int level ) const
{
switch( level )
{
case Problem::Level_Error:
- return QString::fromLatin1( "Error" );
+ return TQString::fromLatin1( "Error" );
case Problem::Level_Warning:
- return QString::fromLatin1( "Warning" );
+ return TQString::fromLatin1( "Warning" );
case Problem::Level_Todo:
- return QString::fromLatin1( "Todo" );
+ return TQString::fromLatin1( "Todo" );
case Problem::Level_Fixme:
- return QString::fromLatin1( "Fixme" );
+ return TQString::fromLatin1( "Fixme" );
default:
- return QString::null;
+ return TQString::null;
}
}
diff --git a/languages/java/problemreporter.h b/languages/java/problemreporter.h
index 579a1afd..40467c08 100644
--- a/languages/java/problemreporter.h
+++ b/languages/java/problemreporter.h
@@ -20,7 +20,7 @@
#define PROBLEMSREPORTER_H
#include <klistview.h>
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
class JavaSupportPart;
class QTimer;
@@ -39,11 +39,11 @@ namespace KTextEditor{
class ProblemReporter: public KListView{
Q_OBJECT
public:
- ProblemReporter( JavaSupportPart* part, QWidget* parent=0, const char* name=0 );
+ ProblemReporter( JavaSupportPart* part, TQWidget* parent=0, const char* name=0 );
virtual ~ProblemReporter();
- void removeAllProblems( const QString& filename );
- void reportProblem( const QString& fileName, const Problem& p );
+ void removeAllProblems( const TQString& filename );
+ void reportProblem( const TQString& fileName, const Problem& p );
public slots:
void reparse();
@@ -55,18 +55,18 @@ private slots:
void slotPartRemoved( KParts::Part* );
void slotActivePartChanged( KParts::Part* );
void slotTextChanged();
- void slotSelected( QListViewItem* );
+ void slotSelected( TQListViewItem* );
private:
- QString levelToString( int level ) const;
+ TQString levelToString( int level ) const;
int levelToMarkType( int level ) const;
private:
JavaSupportPart* m_javaSupport;
- QGuardedPtr<KTextEditor::Document> m_document;
+ TQGuardedPtr<KTextEditor::Document> m_document;
KTextEditor::MarkInterface* m_markIface;
- QTimer* m_timer;
- QString m_fileName;
+ TQTimer* m_timer;
+ TQString m_fileName;
int m_active;
int m_delay;
};
diff --git a/languages/kjssupport/jscodecompletion.cpp b/languages/kjssupport/jscodecompletion.cpp
index 8fd59f57..5717858a 100644
--- a/languages/kjssupport/jscodecompletion.cpp
+++ b/languages/kjssupport/jscodecompletion.cpp
@@ -10,14 +10,14 @@
//
//
#include "jscodecompletion.h"
-#include <qwhatsthis.h>
+#include <tqwhatsthis.h>
-#include <qfileinfo.h>
-#include <qstringlist.h>
-#include <qtextstream.h>
-#include <qtimer.h>
+#include <tqfileinfo.h>
+#include <tqstringlist.h>
+#include <tqtextstream.h>
+#include <tqtimer.h>
#include <kapplication.h>
-#include <qregexp.h>
+#include <tqregexp.h>
#include <kiconloader.h>
#include <klocale.h>
@@ -37,8 +37,8 @@
#include <kdevelop/domutil.h>
#include <kdevelop/codemodel.h>
-JSCodeCompletion::JSCodeCompletion(QObject *parent, const char *name)
- : QObject(parent, name)
+JSCodeCompletion::JSCodeCompletion(TQObject *parent, const char *name)
+ : TQObject(parent, name)
{
m_argWidgetShow = false;
m_completionBoxShow=false;
@@ -82,22 +82,22 @@ void JSCodeCompletion::setActiveEditorPart( KParts::Part * part )
}
disconnect(part->widget(), 0, this, 0 ); // to make sure that it is't connected twice
- connect(part->widget(), SIGNAL(cursorPositionChanged()),
- this, SLOT(cursorPositionChanged()));
- connect(part->widget(), SIGNAL(argHintHidden()), this, SLOT(argHintHidden()));
- connect(part->widget(), SIGNAL(completionAborted()), this, SLOT(completionBoxAbort()));
- connect(part->widget(), SIGNAL(completionDone()), this, SLOT(completionBoxHidden()));
+ connect(part->widget(), TQT_SIGNAL(cursorPositionChanged()),
+ this, TQT_SLOT(cursorPositionChanged()));
+ connect(part->widget(), TQT_SIGNAL(argHintHidden()), this, TQT_SLOT(argHintHidden()));
+ connect(part->widget(), TQT_SIGNAL(completionAborted()), this, TQT_SLOT(completionBoxAbort()));
+ connect(part->widget(), TQT_SIGNAL(completionDone()), this, TQT_SLOT(completionBoxHidden()));
}
-QValueList< KTextEditor::CompletionEntry > JSCodeCompletion::getVars( const QString & startText )
+TQValueList< KTextEditor::CompletionEntry > JSCodeCompletion::getVars( const TQString & startText )
{
kdDebug() << "getVars for " << startText << endl;
- QValueList<KTextEditor::CompletionEntry> varList;
+ TQValueList<KTextEditor::CompletionEntry> varList;
/*
- QValueList<QString>::ConstIterator it;
+ TQValueList<TQString>::ConstIterator it;
for (it = m_vars.begin(); it != m_vars.end(); ++it)
{
- QString var = "$" + (*it);
+ TQString var = "$" + (*it);
kdDebug() << "Compair " << var << endl;
if( var.startsWith( startText ))
{
@@ -119,7 +119,7 @@ void JSCodeCompletion::cursorPositionChanged( )
m_cursorInterface->cursorPositionReal(&line, &col);
kdDebug() << "JSCodeCompletion::cursorPositionChanged:" << line << ":" << col << endl;
- QString lineStr = m_editInterface->textLine(line);
+ TQString lineStr = m_editInterface->textLine(line);
if(lineStr.isNull() || lineStr.isEmpty())
{
kdDebug() << "No Text..." << endl;
@@ -127,8 +127,8 @@ void JSCodeCompletion::cursorPositionChanged( )
}
// if(m_config->getCodeCompletion())
// {
- QString restLine = lineStr.mid(col);
- QString prevText = lineStr.mid(0,col);
+ TQString restLine = lineStr.mid(col);
+ TQString prevText = lineStr.mid(0,col);
if(restLine.left(1) != " " && restLine.left(1) != "\t" && !restLine.isNull())
{
@@ -136,12 +136,12 @@ void JSCodeCompletion::cursorPositionChanged( )
return;
}
- QRegExp prevReg("([\\d\\w]*)[.]$");
+ TQRegExp prevReg("([\\d\\w]*)[.]$");
if (prevReg.search( prevText ) != -1 )
{
// We are in completion mode
- QString startMatch = prevReg.cap(0);
+ TQString startMatch = prevReg.cap(0);
kdDebug() << "Matching: " << startMatch << endl;
m_completionBoxShow=true;
m_codeInterface->showCompletionBox(getVars(startMatch),2);
diff --git a/languages/kjssupport/jscodecompletion.h b/languages/kjssupport/jscodecompletion.h
index 0cceb1e0..03247917 100644
--- a/languages/kjssupport/jscodecompletion.h
+++ b/languages/kjssupport/jscodecompletion.h
@@ -12,7 +12,7 @@
#ifndef JSCODECOMPLETION_H
#define JSCODECOMPLETION_H
-#include <qobject.h>
+#include <tqobject.h>
#include <kdevelop/codemodel.h>
#include <kdevelop/kdevplugin.h>
#include <kdevelop/kdevlanguagesupport.h>
@@ -30,11 +30,11 @@ class JSCodeCompletion : public QObject
{
Q_OBJECT
public:
- JSCodeCompletion(QObject *parent = 0, const char *name = 0);
+ JSCodeCompletion(TQObject *parent = 0, const char *name = 0);
~JSCodeCompletion();
void setActiveEditorPart(KParts::Part* editorPart);
- QValueList<KTextEditor::CompletionEntry> getVars(const QString& textHint);
+ TQValueList<KTextEditor::CompletionEntry> getVars(const TQString& textHint);
public slots:
void cursorPositionChanged();
diff --git a/languages/kjssupport/kjsproblems.cpp b/languages/kjssupport/kjsproblems.cpp
index 20951af4..31882e7c 100644
--- a/languages/kjssupport/kjsproblems.cpp
+++ b/languages/kjssupport/kjsproblems.cpp
@@ -23,17 +23,17 @@
class KJSProblemItem: public KListViewItem
{
public:
- KJSProblemItem( QListView* parent, const QString& level, const QString& problem,
- const QString& file, const QString& line, const QString& column )
+ KJSProblemItem( TQListView* parent, const TQString& level, const TQString& problem,
+ const TQString& file, const TQString& line, const TQString& column )
: KListViewItem( parent, level, problem, file, line, column )
{}
- KJSProblemItem( QListViewItem* parent, const QString& level, const QString& problem,
- const QString& file, const QString& line, const QString& column )
+ KJSProblemItem( TQListViewItem* parent, const TQString& level, const TQString& problem,
+ const TQString& file, const TQString& line, const TQString& column )
: KListViewItem( parent, level, problem, file, line, column )
{}
- int compare( QListViewItem* item, int column, bool ascending ) const
+ int compare( TQListViewItem* item, int column, bool ascending ) const
{
if( column == 2 || column == 3 )
{
@@ -48,7 +48,7 @@ class KJSProblemItem: public KListViewItem
};
-KJSProblems::KJSProblems(kjsSupportPart *part, QWidget *parent, const char *name) : KListView(parent,name), m_part(part)
+KJSProblems::KJSProblems(kjsSupportPart *part, TQWidget *parent, const char *name) : KListView(parent,name), m_part(part)
{
addColumn ("File");
addColumn ("Line #");
@@ -68,9 +68,9 @@ void KJSProblems::clearItems()
setIcon( SmallIcon("info") );
}
-void KJSProblems::addLine(const QString &file, int lineNo, const QString &message)
+void KJSProblems::addLine(const TQString &file, int lineNo, const TQString &message)
{
- new QListViewItem( this, file, QString::number( lineNo ), message);
+ new TQListViewItem( this, file, TQString::number( lineNo ), message);
setIcon( SmallIcon("error") );
}
diff --git a/languages/kjssupport/kjsproblems.h b/languages/kjssupport/kjsproblems.h
index d5647b16..7ca0d3ee 100644
--- a/languages/kjssupport/kjsproblems.h
+++ b/languages/kjssupport/kjsproblems.h
@@ -30,11 +30,11 @@ class KJSProblems : public KListView
Q_OBJECT
public:
- KJSProblems(kjsSupportPart *part, QWidget *parent = 0L, const char *name = 0L);
+ KJSProblems(kjsSupportPart *part, TQWidget *parent = 0L, const char *name = 0L);
~KJSProblems();
void clearItems();
- void addLine(const QString &file, int lineNo, const QString &message);
+ void addLine(const TQString &file, int lineNo, const TQString &message);
private:
kjsSupportPart *m_part;
diff --git a/languages/kjssupport/kjssupport_part.cpp b/languages/kjssupport/kjssupport_part.cpp
index c3fa2954..dcb8c1e3 100644
--- a/languages/kjssupport/kjssupport_part.cpp
+++ b/languages/kjssupport/kjssupport_part.cpp
@@ -16,12 +16,12 @@
Boston, MA 02110-1301, USA.
*/
-#include <qwhatsthis.h>
-#include <qtimer.h>
-#include <qfileinfo.h>
-#include <qtextstream.h>
-#include <qregexp.h>
-#include <qpopupmenu.h>
+#include <tqwhatsthis.h>
+#include <tqtimer.h>
+#include <tqfileinfo.h>
+#include <tqtextstream.h>
+#include <tqregexp.h>
+#include <tqpopupmenu.h>
#include <kiconloader.h>
#include <klocale.h>
@@ -57,32 +57,32 @@ K_EXPORT_COMPONENT_FACTORY( libkdevkjssupport, kjsSupportFactory( data ) );
class typeProperty
{
public:
- QString type;
- QString name;
+ TQString type;
+ TQString name;
int depth;
};
-kjsSupportPart::kjsSupportPart(QObject *parent, const char *name, const QStringList& )
+kjsSupportPart::kjsSupportPart(TQObject *parent, const char *name, const TQStringList& )
: KDevLanguageSupport(&data, parent, name ? name : "kjsSupportPart" )
{
setInstance(kjsSupportFactory::instance());
setXMLFile("kdevkjssupport.rc");
- m_build = new KAction( i18n("&Run"), "exec",Key_F9,this, SLOT(slotRun()),actionCollection(), "build_execute" );
+ m_build = new KAction( i18n("&Run"), "exec",Key_F9,this, TQT_SLOT(slotRun()),actionCollection(), "build_execute" );
m_build->setStatusText( i18n("Test the active script.") );
kdDebug() << "Creating kjssupport Part" << endl;
- connect( core(), SIGNAL(projectConfigWidget(KDialogBase*)),
- this, SLOT(projectConfigWidget(KDialogBase*)) );
- connect( core(), SIGNAL(projectOpened()), this, SLOT(projectOpened()) );
- connect( core(), SIGNAL(projectClosed()), this, SLOT(projectClosed()) );
- connect( partController(), SIGNAL(savedFile(const QString&)), this, SLOT(savedFile(const QString&)) );
- connect(partController(), SIGNAL(activePartChanged(KParts::Part*)),
- this, SLOT(slotActivePartChanged(KParts::Part *)));
- connect(core(), SIGNAL(contextMenu(QPopupMenu *, const Context *)),
- this, SLOT(contextMenu(QPopupMenu *, const Context *)));
+ connect( core(), TQT_SIGNAL(projectConfigWidget(KDialogBase*)),
+ this, TQT_SLOT(projectConfigWidget(KDialogBase*)) );
+ connect( core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(projectOpened()) );
+ connect( core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(projectClosed()) );
+ connect( partController(), TQT_SIGNAL(savedFile(const TQString&)), this, TQT_SLOT(savedFile(const TQString&)) );
+ connect(partController(), TQT_SIGNAL(activePartChanged(KParts::Part*)),
+ this, TQT_SLOT(slotActivePartChanged(KParts::Part *)));
+ connect(core(), TQT_SIGNAL(contextMenu(TQPopupMenu *, const Context *)),
+ this, TQT_SLOT(contextMenu(TQPopupMenu *, const Context *)));
// Building kjs interpreter.
@@ -140,20 +140,20 @@ void kjsSupportPart::projectOpened()
{
kdDebug(9014) << "projectOpened()" << endl;
- connect( project(), SIGNAL(addedFilesToProject(const QStringList &)),
- this, SLOT(addedFilesToProject(const QStringList &)) );
- connect( project(), SIGNAL(removedFilesFromProject(const QStringList &)),
- this, SLOT(removedFilesFromProject(const QStringList &)) );
+ connect( project(), TQT_SIGNAL(addedFilesToProject(const TQStringList &)),
+ this, TQT_SLOT(addedFilesToProject(const TQStringList &)) );
+ connect( project(), TQT_SIGNAL(removedFilesFromProject(const TQStringList &)),
+ this, TQT_SLOT(removedFilesFromProject(const TQStringList &)) );
// We want to parse only after all components have been
// properly initialized
- QTimer::singleShot(0, this, SLOT(parse()));
+ TQTimer::singleShot(0, this, TQT_SLOT(parse()));
}
void kjsSupportPart::projectClosed()
{
}
-void kjsSupportPart::savedFile(const QString &fileName)
+void kjsSupportPart::savedFile(const TQString &fileName)
{
@@ -164,11 +164,11 @@ void kjsSupportPart::savedFile(const QString &fileName)
emit addedSourceInfo( fileName );
}
}
-void kjsSupportPart::addedFilesToProject(const QStringList &fileList)
+void kjsSupportPart::addedFilesToProject(const TQStringList &fileList)
{
kdDebug(9014) << "addedFilesToProject()" << endl;
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = fileList.begin(); it != fileList.end(); ++it )
{
@@ -178,15 +178,15 @@ void kjsSupportPart::addedFilesToProject(const QStringList &fileList)
emit updatedSourceInfo();
}
-void kjsSupportPart::removedFilesFromProject(const QStringList &fileList)
+void kjsSupportPart::removedFilesFromProject(const TQStringList &fileList)
{
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = fileList.begin(); it != fileList.end(); ++it )
{
- QString fileName = project()->projectDirectory() + "/" + ( *it );
+ TQString fileName = project()->projectDirectory() + "/" + ( *it );
if( codeModel()->hasFile(fileName) )
{
kdDebug(9014) << "removed " << fileName << endl;
@@ -203,10 +203,10 @@ void kjsSupportPart::parse()
if (project())
{
kapp->setOverrideCursor(waitCursor);
- QStringList files = project()->allFiles();
+ TQStringList files = project()->allFiles();
m_problemReporter->clear();
- for (QStringList::Iterator it = files.begin(); it != files.end() ;++it)
+ for (TQStringList::Iterator it = files.begin(); it != files.end() ;++it)
{
kdDebug(9014) << "maybe parse " << project()->projectDirectory() + "/" + (*it) << endl;
@@ -226,11 +226,11 @@ void kjsSupportPart::slotActivePartChanged(KParts::Part *part)
}
/*!
- \fn kjsSupportPart::parse(const QString &fileName)
+ \fn kjsSupportPart::parse(const TQString &fileName)
*/
-void kjsSupportPart::parse(const QString &fileName)
+void kjsSupportPart::parse(const TQString &fileName)
{
- QFileInfo fi(fileName);
+ TQFileInfo fi(fileName);
if (fi.extension() == "js")
{
if( codeModel()->hasFile(fileName) )
@@ -243,25 +243,25 @@ void kjsSupportPart::parse(const QString &fileName)
m_file->setName( fileName );
m_file->setFileName( fileName );
- QFile f(QFile::encodeName(fileName));
+ TQFile f(TQFile::encodeName(fileName));
if (!f.open(IO_ReadOnly))
return;
- QString rawline;
- QString line;
+ TQString rawline;
+ TQString line;
uint lineNo = 0;
- QTextStream stream(&f);
+ TQTextStream stream(&f);
int depth = 0;
bool inFunction = false;
- QString lastFunction = "";
+ TQString lastFunction = "";
int lastLineNo = 0;
ClassDom currentClass;
- QRegExp varRx("var[\\s]([_a-zA-Z\\d]+)");
- QRegExp classVarRx("this\\.([_a-zA-Z\\d]+)");
- QRegExp classMethRx("this\\.([_a-zA-Z\\d]+)[\\s]*=[\\s]*function(\\([^){}\\n\\r]*\\))");
- QRegExp methRx("function[\\s]+([_a-zA-Z\\d]+[\\s]*\\([^){}\\n\\r]*\\))");
- QRegExp allocRx("([_\\d\\w]+)[\\s]*=[\\s]*new[\\s]*([_\\d\\w]+)");
- QRegExp assnRx("var[\\s]+([_\\d\\w]+)[\\s]+[=][\\s]+([_\\d\\w]+)[;]");
+ TQRegExp varRx("var[\\s]([_a-zA-Z\\d]+)");
+ TQRegExp classVarRx("this\\.([_a-zA-Z\\d]+)");
+ TQRegExp classMethRx("this\\.([_a-zA-Z\\d]+)[\\s]*=[\\s]*function(\\([^){}\\n\\r]*\\))");
+ TQRegExp methRx("function[\\s]+([_a-zA-Z\\d]+[\\s]*\\([^){}\\n\\r]*\\))");
+ TQRegExp allocRx("([_\\d\\w]+)[\\s]*=[\\s]*new[\\s]*([_\\d\\w]+)");
+ TQRegExp assnRx("var[\\s]+([_\\d\\w]+)[\\s]+[=][\\s]+([_\\d\\w]+)[;]");
while (!stream.atEnd())
{
@@ -301,8 +301,8 @@ void kjsSupportPart::parse(const QString &fileName)
if( allocRx.search(line) != -1 )
{
- QString varName = allocRx.cap(1);
- QString varType = allocRx.cap(2);
+ TQString varName = allocRx.cap(1);
+ TQString varType = allocRx.cap(2);
typeProperty *type = new typeProperty();
type->depth = depth;
@@ -348,7 +348,7 @@ void kjsSupportPart::parse(const QString &fileName)
}
}
-ClassDom kjsSupportPart::addClass(const QString &name, FileDom file, uint lineNo)
+ClassDom kjsSupportPart::addClass(const TQString &name, FileDom file, uint lineNo)
{
ClassDom clazz = codeModel()->create<ClassModel>();
clazz->setName(name);
@@ -362,7 +362,7 @@ ClassDom kjsSupportPart::addClass(const QString &name, FileDom file, uint lineNo
return clazz;
}
-void kjsSupportPart::addMethod(const QString &name, ClassDom clazz, uint lineNo)
+void kjsSupportPart::addMethod(const TQString &name, ClassDom clazz, uint lineNo)
{
FunctionDom method = codeModel()->create<FunctionModel>();
method->setName(name);
@@ -375,7 +375,7 @@ void kjsSupportPart::addMethod(const QString &name, ClassDom clazz, uint lineNo)
}
}
-void kjsSupportPart::addAttribute(const QString &name, ClassDom clazz, uint lineNo)
+void kjsSupportPart::addAttribute(const TQString &name, ClassDom clazz, uint lineNo)
{
VariableDom var = codeModel()->create<VariableModel>();
var->setName(name);
@@ -389,7 +389,7 @@ void kjsSupportPart::addAttribute(const QString &name, ClassDom clazz, uint line
}
}
-void kjsSupportPart::addMethod(const QString &name, FileDom file, uint lineNo)
+void kjsSupportPart::addMethod(const TQString &name, FileDom file, uint lineNo)
{
FunctionDom method = codeModel()->create<FunctionModel>();
method->setName(name);
@@ -402,7 +402,7 @@ void kjsSupportPart::addMethod(const QString &name, FileDom file, uint lineNo)
}
}
-void kjsSupportPart::addAttribute(const QString &name, FileDom file, uint lineNo)
+void kjsSupportPart::addAttribute(const TQString &name, FileDom file, uint lineNo)
{
VariableDom var = codeModel()->create<VariableModel>();
var->setName(name);
@@ -416,7 +416,7 @@ void kjsSupportPart::addAttribute(const QString &name, FileDom file, uint lineNo
}
}
-void kjsSupportPart::contextMenu(QPopupMenu * popupMenu, const Context *context)
+void kjsSupportPart::contextMenu(TQPopupMenu * popupMenu, const Context *context)
{
kdDebug() << "1" << endl;
if (!context->hasType( Context::FileContext ))
@@ -427,9 +427,9 @@ void kjsSupportPart::contextMenu(QPopupMenu * popupMenu, const Context *context)
m_selectedUI = fcontext->fileName();
if (m_selectedUI.right(3).lower() == ".ui")
int id = popupMenu->insertItem(i18n("Implement Slots"),
- this, SLOT(implementSlots()));
+ this, TQT_SLOT(implementSlots()));
else
- m_selectedUI = QString::null;
+ m_selectedUI = TQString::null;
}
void kjsSupportPart::implementSlots()
@@ -437,7 +437,7 @@ void kjsSupportPart::implementSlots()
if (m_selectedUI.isEmpty())
return;
- QStringList newFiles;
+ TQStringList newFiles;
SubclassingDlg *sub = new SubclassingDlg(this, m_selectedUI, newFiles);
if (sub->exec())
project()->addFiles(newFiles);
diff --git a/languages/kjssupport/kjssupport_part.h b/languages/kjssupport/kjssupport_part.h
index ceb85db2..47561c1e 100644
--- a/languages/kjssupport/kjssupport_part.h
+++ b/languages/kjssupport/kjssupport_part.h
@@ -25,8 +25,8 @@
#include <kdevelop/codemodel.h>
#include <kdevelop/kdevlanguagesupport.h>
#include <kdialogbase.h>
-#include <qstringlist.h>
-#include <qdict.h>
+#include <tqstringlist.h>
+#include <tqdict.h>
namespace KJSEmbed
{
@@ -47,7 +47,7 @@ class kjsSupportPart : public KDevLanguageSupport
{
Q_OBJECT
public:
- kjsSupportPart(QObject *parent, const char *name, const QStringList &);
+ kjsSupportPart(TQObject *parent, const char *name, const TQStringList &);
~kjsSupportPart();
protected:
virtual Features features();
@@ -58,27 +58,27 @@ class kjsSupportPart : public KDevLanguageSupport
void projectConfigWidget(KDialogBase *dlg);
void projectOpened();
void projectClosed();
- void savedFile(const QString &fileName);
- void addedFilesToProject(const QStringList &fileList);
- void removedFilesFromProject(const QStringList &fileList);
+ void savedFile(const TQString &fileName);
+ void addedFilesToProject(const TQStringList &fileList);
+ void removedFilesFromProject(const TQStringList &fileList);
void parse();
void slotActivePartChanged(KParts::Part *part);
- void contextMenu(QPopupMenu *popupMenu, const Context *context);
+ void contextMenu(TQPopupMenu *popupMenu, const Context *context);
void implementSlots();
private:
- void parse(const QString &fileName);
- void addAttribute(const QString &name, ClassDom clazz, uint lineNo);
- void addMethod(const QString &name, ClassDom clazz, uint lineNo);
- void addAttribute(const QString &name, FileDom file, uint lineNo);
- void addMethod(const QString &name, FileDom file, uint lineNo);
- ClassDom addClass(const QString &name, FileDom file, uint lineNo);
+ void parse(const TQString &fileName);
+ void addAttribute(const TQString &name, ClassDom clazz, uint lineNo);
+ void addMethod(const TQString &name, ClassDom clazz, uint lineNo);
+ void addAttribute(const TQString &name, FileDom file, uint lineNo);
+ void addMethod(const TQString &name, FileDom file, uint lineNo);
+ ClassDom addClass(const TQString &name, FileDom file, uint lineNo);
KAction *m_build;
KJSEmbed::KJSEmbedPart *m_js;
KJSProblems *m_problemReporter;
- QDict<typeProperty> m_typeMap;
+ TQDict<typeProperty> m_typeMap;
JSCodeCompletion *m_cc;
- QString m_selectedUI;
+ TQString m_selectedUI;
};
diff --git a/languages/kjssupport/subclassingdlg.cpp b/languages/kjssupport/subclassingdlg.cpp
index be1ad83e..284d0471 100644
--- a/languages/kjssupport/subclassingdlg.cpp
+++ b/languages/kjssupport/subclassingdlg.cpp
@@ -21,20 +21,20 @@
#include <kdevelop/filetemplate.h>
#include <kdevelop/codemodel.h>
-#include <qradiobutton.h>
-#include <qstringlist.h>
-#include <qcheckbox.h>
-#include <qmessagebox.h>
+#include <tqradiobutton.h>
+#include <tqstringlist.h>
+#include <tqcheckbox.h>
+#include <tqmessagebox.h>
#include <kfiledialog.h>
#include <klineedit.h>
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
#include <domutil.h>
-#include <qdom.h>
+#include <tqdom.h>
#include <kstandarddirs.h>
#include <kdebug.h>
#include <klocale.h>
-#include <qfile.h>
-#include <qregexp.h>
+#include <tqfile.h>
+#include <tqregexp.h>
#include <kconfig.h>
@@ -53,17 +53,17 @@
#define SLOT_HELP SlotItem(m_slotView,"help()","virtual","protected","void",false,true)
-SlotItem::SlotItem(QListView *parent,const QString &methodName,
- const QString &specifier,
- const QString &access, const QString &returnType,
+SlotItem::SlotItem(TQListView *parent,const TQString &methodName,
+ const TQString &specifier,
+ const TQString &access, const TQString &returnType,
bool isFunc,bool callBaseClass)
-: QCheckListItem(parent,methodName,QCheckListItem::CheckBox)
+: TQCheckListItem(parent,methodName,TQCheckListItem::CheckBox)
{
setOn(true);
m_methodName = methodName;
- m_access = access.isEmpty() ? (const QString) "public" : access;
- m_specifier = specifier.isEmpty() ? (const QString) "virtual" : specifier;
- m_returnType = returnType.isEmpty() ? (const QString) "void" : returnType;
+ m_access = access.isEmpty() ? (const TQString) "public" : access;
+ m_specifier = specifier.isEmpty() ? (const TQString) "virtual" : specifier;
+ m_returnType = returnType.isEmpty() ? (const TQString) "void" : returnType;
m_isFunc = isFunc;
m_callBaseClass = callBaseClass;
setText(0,m_methodName);
@@ -93,8 +93,8 @@ void SlotItem::setAllreadyInSubclass()
}
-SubclassingDlg::SubclassingDlg(kjsSupportPart* kjsSupport, const QString &formFile,QStringList &newFileNames,
- QWidget* parent, const char* name,bool modal, WFlags fl)
+SubclassingDlg::SubclassingDlg(kjsSupportPart* kjsSupport, const TQString &formFile,TQStringList &newFileNames,
+ TQWidget* parent, const char* name,bool modal, WFlags fl)
: SubclassingDlgBase(parent,name,modal,fl),
m_newFileNames(newFileNames), m_kjsSupport( kjsSupport )
//=================================================
@@ -115,8 +115,8 @@ m_newFileNames(newFileNames), m_kjsSupport( kjsSupport )
}
-/*SubclassingDlg::SubclassingDlg(kjsSupportPart* kjsSupport, const QString &formFile,const QString &filename,QStringList &dummy,
- QWidget* parent, const char* name,bool modal, WFlags fl)
+/*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),
m_newFileNames(dummy), m_kjsSupport( kjsSupport )
//=================================================
@@ -134,12 +134,12 @@ m_newFileNames(dummy), m_kjsSupport( kjsSupport )
reformat_box->setChecked(true);
}
- QStringList pathsplit(QStringList::split('/',filename));
+ TQStringList pathsplit(TQStringList::split('/',filename));
- QString baseClass = readBaseClassName();
- if (!kjsSupport->codeModel()->hasFile(filename+QString(".h")))
+ TQString baseClass = readBaseClassName();
+ if (!kjsSupport->codeModel()->hasFile(filename+TQString(".h")))
return;
- ClassList myClasses = kjsSupport->codeModel()->fileByName(filename+QString(".h"))->classList();
+ ClassList myClasses = kjsSupport->codeModel()->fileByName(filename+TQString(".h"))->classList();
for (ClassList::const_iterator classIt = myClasses.begin(); classIt != myClasses.end(); ++classIt)
{
kdDebug() << "base class " << baseClass << " class " << (*classIt)->name()
@@ -162,7 +162,7 @@ m_newFileNames(dummy), m_kjsSupport( kjsSupport )
m_btnOk->setEnabled(true);
}
*/
-bool SubclassingDlg::alreadyInSubclass(const QString &method)
+bool SubclassingDlg::alreadyInSubclass(const TQString &method)
{
for (uint i=0;i<m_parsedMethods.count();i++)
if (method.find(m_parsedMethods[i])==0)
@@ -172,13 +172,13 @@ bool SubclassingDlg::alreadyInSubclass(const QString &method)
void SubclassingDlg::readUiFile()
{
- QStringList splitPath = QStringList::split('/',m_formFile);
- m_formName = QStringList::split('.',splitPath[splitPath.count()-1])[0]; // "somedlg.ui" = "somedlg"
+ TQStringList splitPath = TQStringList::split('/',m_formFile);
+ m_formName = TQStringList::split('.',splitPath[splitPath.count()-1])[0]; // "somedlg.ui" = "somedlg"
splitPath.pop_back();
m_formPath = "/" + splitPath.join("/"); // join path to ui-file
m_btnOk->setEnabled(false);
- QDomDocument doc;
+ TQDomDocument doc;
DomUtil::openDOMFile(doc,m_formFile);
m_baseClassName = DomUtil::elementByPathExt(doc,WIDGET_CLASS_NAME).text();
@@ -188,13 +188,13 @@ void SubclassingDlg::readUiFile()
// Special widget specific slots
SlotItem *newSlot;
- m_qtBaseClassName = DomUtil::elementByPathExt(doc,"widget").attribute("class","QDialog");
+ m_qtBaseClassName = DomUtil::elementByPathExt(doc,"widget").attribute("class","TQDialog");
- if ( (m_qtBaseClassName=="QMainWindow") || (m_qtBaseClassName=="QWidget") )
+ if ( (m_qtBaseClassName=="TQMainWindow") || (m_qtBaseClassName=="TQWidget") )
m_canBeModal = false;
else
m_canBeModal = true;
- if (m_qtBaseClassName != "QWidget")
+ if (m_qtBaseClassName != "TQWidget")
{
newSlot = new SLOT_ACCEPT;
newSlot->setOn(false);
@@ -211,7 +211,7 @@ void SubclassingDlg::readUiFile()
m_slots << newSlot;
}
- if (m_qtBaseClassName == "QWizard")
+ if (m_qtBaseClassName == "TQWizard")
{
newSlot = new SLOT_NEXT;
m_slotView->insertItem(newSlot);
@@ -231,12 +231,12 @@ void SubclassingDlg::readUiFile()
m_slots << newSlot;
}
- QDomElement slotsElem = DomUtil::elementByPathExt(doc,WIDGET_SLOTS);
- QDomNodeList slotnodes = slotsElem.childNodes();
+ TQDomElement slotsElem = DomUtil::elementByPathExt(doc,WIDGET_SLOTS);
+ TQDomNodeList slotnodes = slotsElem.childNodes();
for (unsigned int i=0; i<slotnodes.count();i++)
{
- QDomElement slotelem = slotnodes.item(i).toElement();
+ TQDomElement slotelem = slotnodes.item(i).toElement();
newSlot = new SlotItem(m_slotView,slotelem.text(),
slotelem.attributeNode("specifier").value(),
slotelem.attributeNode("access").value(),
@@ -247,12 +247,12 @@ void SubclassingDlg::readUiFile()
m_slots << newSlot;
}
- QDomElement funcsElem = DomUtil::elementByPathExt(doc,WIDGET_FUNCTIONS);
- QDomNodeList funcnodes = funcsElem.childNodes();
+ TQDomElement funcsElem = DomUtil::elementByPathExt(doc,WIDGET_FUNCTIONS);
+ TQDomNodeList funcnodes = funcsElem.childNodes();
SlotItem *newFunc;
for (unsigned int i=0; i<funcnodes.count();i++)
{
- QDomElement funcelem = funcnodes.item(i).toElement();
+ TQDomElement funcelem = funcnodes.item(i).toElement();
newFunc = new SlotItem(m_slotView,funcelem.text(),
funcelem.attributeNode("specifier").value(),
funcelem.attributeNode("access").value(),
@@ -263,11 +263,11 @@ void SubclassingDlg::readUiFile()
m_slots << newFunc;
}
- QDomElement connElem = DomUtil::elementByPathExt(doc,"connections");
- QDomNodeList connnodes = connElem.childNodes();
+ TQDomElement connElem = DomUtil::elementByPathExt(doc,"connections");
+ TQDomNodeList connnodes = connElem.childNodes();
for (unsigned int i=0; i<connnodes.count();i++)
{
- QDomElement connelem = connnodes.item(i).toElement();
+ TQDomElement connelem = connnodes.item(i).toElement();
connections += "$NEWCLASS$.connect(";
if (connelem.namedItem("sender").toElement().text() == m_baseClassName)
connections += "this";
@@ -293,7 +293,7 @@ void SubclassingDlg::updateDlg()
{
}
-void SubclassingDlg::replace(QString &string, const QString& search, const QString& replace)
+void SubclassingDlg::replace(TQString &string, const TQString& search, const TQString& replace)
//==========================================================================================
{
int nextPos = string.find(search);
@@ -305,11 +305,11 @@ void SubclassingDlg::replace(QString &string, const QString& search, const QStri
}
}
-bool SubclassingDlg::loadBuffer(QString &buffer, const QString& filename)
+bool SubclassingDlg::loadBuffer(TQString &buffer, const TQString& filename)
//======================================================================
{
// open file and buffer it
- QFile dataFile(filename);
+ TQFile dataFile(filename);
if (!dataFile.open(IO_ReadOnly))
return false;
char *temp = new char[dataFile.size()+1];
@@ -321,7 +321,7 @@ bool SubclassingDlg::loadBuffer(QString &buffer, const QString& filename)
return true;
}
-bool SubclassingDlg::replaceKeywords(QString &buffer,bool canBeModal)
+bool SubclassingDlg::replaceKeywords(TQString &buffer,bool canBeModal)
//===================================================================
{
replace(buffer,"$NEWFILENAMEUC$",m_edFileName->text().upper());
@@ -346,12 +346,12 @@ bool SubclassingDlg::replaceKeywords(QString &buffer,bool canBeModal)
return true;
}
-bool SubclassingDlg::saveBuffer(QString &buffer, const QString& filename)
+bool SubclassingDlg::saveBuffer(TQString &buffer, const TQString& filename)
//=======================================================================
{
// save buffer
- QFile dataFile(filename);
+ TQFile dataFile(filename);
if (!dataFile.open(IO_WriteOnly | IO_Truncate))
return false;
dataFile.writeBlock((buffer+"\n").ascii(),(buffer+"\n").length());
@@ -374,19 +374,19 @@ void SubclassingDlg::accept()
// h - file
- QString public_slot =
+ TQString public_slot =
"/*$PUBLIC_SLOTS$*/\n ";
- QString protected_slot =
+ TQString protected_slot =
"/*$PROTECTED_SLOTS$*/\n ";
- QString public_func =
+ TQString public_func =
"/*$PUBLIC_FUNCTIONS$*/\n ";
- QString protected_func =
+ TQString protected_func =
"/*$PROTECTED_FUNCTIONS$*/\n ";
- QString buffer;
+ TQString buffer;
if (m_creatingNewSubclass)
{
loadBuffer(buffer,::locate("data", "kdevkjssupport/subclassing/subclass_template.js"));
@@ -394,18 +394,18 @@ void SubclassingDlg::accept()
buffer = "var $NEWCLASS$ = Factory.loadui(\"$BASEFILENAME$.ui\", this);\n\n" + buffer;
buffer = FileTemplate::read(m_kjsSupport, "js") + buffer + connections;
kdDebug() << "buffer: " << buffer << endl;
- QFileInfo fi(m_filename + ".js");
- QString module = fi.baseName();
- QString basefilename = fi.baseName(true);
- buffer.replace(QRegExp("\\$MODULE\\$"),module);
- buffer.replace(QRegExp("\\$FILENAME\\$"),basefilename);
+ TQFileInfo fi(m_filename + ".js");
+ TQString module = fi.baseName();
+ TQString basefilename = fi.baseName(true);
+ buffer.replace(TQRegExp("\\$MODULE\\$"),module);
+ buffer.replace(TQRegExp("\\$FILENAME\\$"),basefilename);
}
else
loadBuffer(buffer,m_filename+".js");
// js - file
- QString implementation =
+ TQString implementation =
"/*$SPECIALIZATION$*/\n"
"function $METHOD$\n"
"{\n"
@@ -418,7 +418,7 @@ void SubclassingDlg::accept()
if (!slitem->isOn() ||
slitem->m_alreadyInSubclass)
continue;
- QString impl = implementation;
+ TQString impl = implementation;
replace(impl,"$RETURNTYPE$",slitem->m_returnType);
replace(impl,"$NEWCLASS$",m_edClassName->text());
replace(impl,"$METHOD$", slitem->m_methodName);
@@ -453,9 +453,9 @@ void SubclassingDlg::onChangedClassName()
m_btnOk->setEnabled(true);
}
-QString SubclassingDlg::readBaseClassName( )
+TQString SubclassingDlg::readBaseClassName( )
{
- QDomDocument doc;
+ TQDomDocument doc;
DomUtil::openDOMFile(doc,m_formFile);
return DomUtil::elementByPathExt(doc,WIDGET_CLASS_NAME).text();
}
diff --git a/languages/kjssupport/subclassingdlg.h b/languages/kjssupport/subclassingdlg.h
index c727b648..8cf9ad32 100644
--- a/languages/kjssupport/subclassingdlg.h
+++ b/languages/kjssupport/subclassingdlg.h
@@ -12,7 +12,7 @@
#ifndef SUBCLASSINGDLG_H
#define SUBCLASSINGDLG_H
-#include <qlistview.h>
+#include <tqlistview.h>
#include "subclassingdlgbase.h"
@@ -23,15 +23,15 @@ class kjsSupportPart;
class SlotItem : public QCheckListItem
{
public:
- SlotItem(QListView *parent,const QString &text,
- const QString &specifier, const QString &Access,
- const QString &returnType,bool isFunc,
+ SlotItem(TQListView *parent,const TQString &text,
+ const TQString &specifier, const TQString &Access,
+ const TQString &returnType,bool isFunc,
bool callBaseClass=false);
void setAllreadyInSubclass();
- QString m_access;
- QString m_methodName;
- QString m_returnType;
- QString m_specifier;
+ TQString m_access;
+ TQString m_methodName;
+ TQString m_returnType;
+ TQString m_specifier;
bool m_isFunc;
bool m_callBaseClass;
bool m_alreadyInSubclass;
@@ -41,23 +41,23 @@ class SlotItem : public QCheckListItem
class SubclassingDlg : public SubclassingDlgBase
{
public:
- SubclassingDlg(kjsSupportPart* kjsSupport, const QString &formFile,QStringList &newFileNames,
- QWidget* parent = 0, const char* name = 0,
+ SubclassingDlg(kjsSupportPart* kjsSupport, const TQString &formFile,TQStringList &newFileNames,
+ TQWidget* parent = 0, const char* name = 0,
bool modal = FALSE, WFlags fl = 0 );
-/* SubclassingDlg(CppSupportPart* kjsSupport, const QString &formFile,const QString &filename,QStringList &dummy,
- QWidget* parent = 0, const char* name = 0,
+/* SubclassingDlg(CppSupportPart* kjsSupport, const TQString &formFile,const TQString &filename,TQStringList &dummy,
+ TQWidget* parent = 0, const char* name = 0,
bool modal = FALSE, WFlags fl = 0 );*/
~SubclassingDlg();
private:
void readUiFile();
- QString readBaseClassName();
+ TQString readBaseClassName();
void updateDlg();
- bool replaceKeywords(QString &buffer, bool canBeModal=true);
- void replace(QString &string, const QString& search, const QString& replace);
- bool saveBuffer(QString &buffer, const QString& filename);
- bool loadBuffer(QString &buffer, const QString& filename);
- bool alreadyInSubclass(const QString &method);
+ bool replaceKeywords(TQString &buffer, bool canBeModal=true);
+ void replace(TQString &string, const TQString& search, const TQString& replace);
+ bool saveBuffer(TQString &buffer, const TQString& filename);
+ bool loadBuffer(TQString &buffer, const TQString& filename);
+ bool alreadyInSubclass(const TQString &method);
bool m_creatingNewSubclass;
public slots:
@@ -65,20 +65,20 @@ public slots:
virtual void onChangedClassName();
protected:
- QStringList &m_newFileNames;
- QString m_filename;
- QString m_formFile;
- QString m_baseClassName;
- QString m_qtBaseClassName;
- QString m_baseCaption;
- QString m_formName;
- QString m_formPath;
- QStringList m_parsedMethods;
+ TQStringList &m_newFileNames;
+ TQString m_filename;
+ TQString m_formFile;
+ TQString m_baseClassName;
+ TQString m_qtBaseClassName;
+ TQString m_baseCaption;
+ TQString m_formName;
+ TQString m_formPath;
+ TQStringList m_parsedMethods;
bool m_canBeModal;
- QValueList<SlotItem*> m_slots;
- QValueList<SlotItem*> m_functions;
+ TQValueList<SlotItem*> m_slots;
+ TQValueList<SlotItem*> m_functions;
kjsSupportPart* m_kjsSupport;
- QString connections;
+ TQString connections;
};
#endif
diff --git a/languages/lib/debugger/debugger.cpp b/languages/lib/debugger/debugger.cpp
index 92765efe..5d33ee8c 100644
--- a/languages/lib/debugger/debugger.cpp
+++ b/languages/lib/debugger/debugger.cpp
@@ -16,8 +16,8 @@ Debugger *Debugger::s_instance = 0;
Debugger::Debugger(KDevPartController *partController)
:m_partController(partController)
{
- connect( m_partController, SIGNAL(partAdded(KParts::Part*)),
- this, SLOT(partAdded(KParts::Part*)) );
+ connect( m_partController, TQT_SIGNAL(partAdded(KParts::Part*)),
+ this, TQT_SLOT(partAdded(KParts::Part*)) );
}
@@ -34,7 +34,7 @@ Debugger::~Debugger()
// }
-void Debugger::setBreakpoint(const QString &fileName, int lineNum, int id, bool enabled, bool pending)
+void Debugger::setBreakpoint(const TQString &fileName, int lineNum, int id, bool enabled, bool pending)
{
KParts::Part *part = m_partController->partForURL(KURL(fileName));
if( !part )
@@ -46,11 +46,11 @@ void Debugger::setBreakpoint(const QString &fileName, int lineNum, int id, bool
// Temporarily disconnect so we don't get confused by receiving extra
// marksChanged signals
- disconnect( part, SIGNAL(marksChanged()), this, SLOT(marksChanged()) );
+ disconnect( part, TQT_SIGNAL(marksChanged()), this, TQT_SLOT(marksChanged()) );
iface->removeMark( lineNum, Breakpoint | ActiveBreakpoint | ReachedBreakpoint | DisabledBreakpoint );
BPItem bpItem(fileName, lineNum);
- QValueList<BPItem>::Iterator it = BPList.find(bpItem);
+ TQValueList<BPItem>::Iterator it = BPList.find(bpItem);
if (it != BPList.end())
{
// kdDebug(9012) << "Removing BP=" << fileName << ":" << lineNum << endl;
@@ -71,21 +71,21 @@ void Debugger::setBreakpoint(const QString &fileName, int lineNum, int id, bool
BPList.append(BPItem(fileName, lineNum));
}
- connect( part, SIGNAL(marksChanged()), this, SLOT(marksChanged()) );
+ connect( part, TQT_SIGNAL(marksChanged()), this, TQT_SLOT(marksChanged()) );
}
void Debugger::clearExecutionPoint()
{
- QPtrListIterator<KParts::Part> it(*m_partController->parts());
+ TQPtrListIterator<KParts::Part> it(*m_partController->parts());
for ( ; it.current(); ++it)
{
MarkInterface *iface = dynamic_cast<MarkInterface*>(it.current());
if (!iface)
continue;
- QPtrList<Mark> list = iface->marks();
- QPtrListIterator<Mark> markIt(list);
+ TQPtrList<Mark> list = iface->marks();
+ TQPtrListIterator<Mark> markIt(list);
for( ; markIt.current(); ++markIt )
{
Mark* mark = markIt.current();
@@ -125,8 +125,8 @@ void Debugger::marksChanged()
return; // Probably means the document is being closed.
KTextEditor::Mark *m;
- QValueList<BPItem> oldBPList = BPList;
- QPtrList<KTextEditor::Mark> newMarks = iface->marks();
+ TQValueList<BPItem> oldBPList = BPList;
+ TQPtrList<KTextEditor::Mark> newMarks = iface->marks();
// Compare the oldBPlist to the new list from the editor.
//
@@ -203,7 +203,7 @@ void Debugger::partAdded( KParts::Part* part )
iface->setPixmap((MarkInterface::MarkTypes)ExecutionPoint, *executionPointPixmap());
iface->setMarksUserChangable( Bookmark | Breakpoint );
- connect( part, SIGNAL(marksChanged()), this, SLOT(marksChanged()) );
+ connect( part, TQT_SIGNAL(marksChanged()), this, TQT_SLOT(marksChanged()) );
}
#include "debugger.moc"
diff --git a/languages/lib/debugger/debugger.h b/languages/lib/debugger/debugger.h
index ed545f28..f1a48452 100644
--- a/languages/lib/debugger/debugger.h
+++ b/languages/lib/debugger/debugger.h
@@ -1,7 +1,7 @@
#ifndef __DEBUGGER_H__
#define __DEBUGGER_H__
-#include <qvaluelist.h>
+#include <tqvaluelist.h>
#include "kdevdebugger.h"
@@ -29,13 +29,13 @@ public:
BPItem() : m_fileName(""), m_lineNum(0)
{}
- BPItem( const QString& fileName, const uint lineNum)
+ BPItem( const TQString& fileName, const uint lineNum)
: m_fileName(fileName),
m_lineNum(lineNum)
{}
uint lineNum() const { return m_lineNum; }
- QString fileName() const { return m_fileName; }
+ TQString fileName() const { return m_fileName; }
bool operator==( const BPItem& rhs ) const
{
@@ -44,7 +44,7 @@ public:
}
private:
- QString m_fileName;
+ TQString m_fileName;
uint m_lineNum;
};
@@ -75,7 +75,7 @@ public:
* @param enabled The breakpoint could be enabled, disabled
* @param pending pending or active. Each state has a different icon.
*/
- void setBreakpoint(const QString &fileName, int lineNum,
+ void setBreakpoint(const TQString &fileName, int lineNum,
int id, bool enabled, bool pending);
/**
@@ -126,7 +126,7 @@ private:
static Debugger *s_instance;
KDevPartController *m_partController;
- QValueList<BPItem> BPList;
+ TQValueList<BPItem> BPList;
};
#endif
diff --git a/languages/lib/debugger/kdevdebugger.cpp b/languages/lib/debugger/kdevdebugger.cpp
index d5c4e3b5..b9ee4a05 100644
--- a/languages/lib/debugger/kdevdebugger.cpp
+++ b/languages/lib/debugger/kdevdebugger.cpp
@@ -19,8 +19,8 @@
*/
#include "kdevdebugger.h"
-KDevDebugger::KDevDebugger(QObject *parent, const char *name)
- : QObject(parent, name)
+KDevDebugger::KDevDebugger(TQObject *parent, const char *name)
+ : TQObject(parent, name)
{
}
@@ -29,7 +29,7 @@ KDevDebugger::~KDevDebugger()
{
}
-const QPixmap* KDevDebugger::inactiveBreakpointPixmap()
+const TQPixmap* KDevDebugger::inactiveBreakpointPixmap()
{
const char*breakpoint_gr_xpm[]={
"11 16 6 1",
@@ -55,11 +55,11 @@ const QPixmap* KDevDebugger::inactiveBreakpointPixmap()
"...........",
"...........",
"..........."};
- static QPixmap pixmap( breakpoint_gr_xpm );
+ static TQPixmap pixmap( breakpoint_gr_xpm );
return &pixmap;
}
-const QPixmap* KDevDebugger::activeBreakpointPixmap()
+const TQPixmap* KDevDebugger::activeBreakpointPixmap()
{
const char* breakpoint_xpm[]={
"11 16 6 1",
@@ -85,11 +85,11 @@ const QPixmap* KDevDebugger::activeBreakpointPixmap()
"...........",
"...........",
"..........."};
- static QPixmap pixmap( breakpoint_xpm );
+ static TQPixmap pixmap( breakpoint_xpm );
return &pixmap;
}
-const QPixmap* KDevDebugger::reachedBreakpointPixmap()
+const TQPixmap* KDevDebugger::reachedBreakpointPixmap()
{
const char*breakpoint_bl_xpm[]={
"11 16 7 1",
@@ -116,11 +116,11 @@ const QPixmap* KDevDebugger::reachedBreakpointPixmap()
"...........",
"...........",
"..........."};
- static QPixmap pixmap( breakpoint_bl_xpm );
+ static TQPixmap pixmap( breakpoint_bl_xpm );
return &pixmap;
}
-const QPixmap* KDevDebugger::disabledBreakpointPixmap()
+const TQPixmap* KDevDebugger::disabledBreakpointPixmap()
{
const char*breakpoint_wh_xpm[]={
"11 16 7 1",
@@ -147,11 +147,11 @@ const QPixmap* KDevDebugger::disabledBreakpointPixmap()
"...........",
"...........",
"..........."};
- static QPixmap pixmap( breakpoint_wh_xpm );
+ static TQPixmap pixmap( breakpoint_wh_xpm );
return &pixmap;
}
-const QPixmap* KDevDebugger::executionPointPixmap()
+const TQPixmap* KDevDebugger::executionPointPixmap()
{
const char*exec_xpm[]={
"11 16 4 1",
@@ -175,7 +175,7 @@ const QPixmap* KDevDebugger::executionPointPixmap()
"...........",
"...........",
"..........."};
- static QPixmap pixmap( exec_xpm );
+ static TQPixmap pixmap( exec_xpm );
return &pixmap;
}
diff --git a/languages/lib/debugger/kdevdebugger.h b/languages/lib/debugger/kdevdebugger.h
index d0b87721..288854e5 100644
--- a/languages/lib/debugger/kdevdebugger.h
+++ b/languages/lib/debugger/kdevdebugger.h
@@ -21,8 +21,8 @@
#define _KDEVDEBUGGER_H_
-#include <qobject.h>
-#include <qpixmap.h>
+#include <tqobject.h>
+#include <tqpixmap.h>
#include <kurl.h>
@@ -37,14 +37,14 @@ class KDevDebugger : public QObject
public:
- KDevDebugger(QObject *parent=0, const char *name=0);
+ KDevDebugger(TQObject *parent=0, const char *name=0);
~KDevDebugger();
/**
* Sets a breakpoint in the editor document belong to fileName.
* If id==-1, the breakpoint is deleted.
*/
- virtual void setBreakpoint(const QString &fileName, int lineNum,
+ virtual void setBreakpoint(const TQString &fileName, int lineNum,
int id, bool enabled, bool pending) = 0;
/**
@@ -59,28 +59,28 @@ public:
*/
virtual void clearExecutionPoint() = 0;
- static const QPixmap* inactiveBreakpointPixmap();
- static const QPixmap* activeBreakpointPixmap();
- static const QPixmap* reachedBreakpointPixmap();
- static const QPixmap* disabledBreakpointPixmap();
- static const QPixmap* executionPointPixmap();
+ static const TQPixmap* inactiveBreakpointPixmap();
+ static const TQPixmap* activeBreakpointPixmap();
+ static const TQPixmap* reachedBreakpointPixmap();
+ static const TQPixmap* disabledBreakpointPixmap();
+ static const TQPixmap* executionPointPixmap();
signals:
/**
* The user has toggled a breakpoint.
*/
- void toggledBreakpoint(const QString &fileName, int lineNum);
+ void toggledBreakpoint(const TQString &fileName, int lineNum);
/*
* The user wants to edit the properties of a breakpoint.
*/
- void editedBreakpoint(const QString &fileName, int lineNum);
+ void editedBreakpoint(const TQString &fileName, int lineNum);
/**
* The user wants to enable/disable a breakpoint.
*/
- void toggledBreakpointEnabled(const QString &fileName, int lineNum);
+ void toggledBreakpointEnabled(const TQString &fileName, int lineNum);
};
diff --git a/languages/lib/designer_integration/implementationwidget.cpp b/languages/lib/designer_integration/implementationwidget.cpp
index 5e958bfa..c961657b 100644
--- a/languages/lib/designer_integration/implementationwidget.cpp
+++ b/languages/lib/designer_integration/implementationwidget.cpp
@@ -19,13 +19,13 @@
***************************************************************************/
#include "implementationwidget.h"
-#include <qfileinfo.h>
-#include <qtextstream.h>
-#include <qfile.h>
-#include <qdir.h>
-#include <qregexp.h>
-#include <qdom.h>
-#include <qradiobutton.h>
+#include <tqfileinfo.h>
+#include <tqtextstream.h>
+#include <tqfile.h>
+#include <tqdir.h>
+#include <tqregexp.h>
+#include <tqdom.h>
+#include <tqradiobutton.h>
#include <klineedit.h>
#include <klocale.h>
@@ -61,12 +61,12 @@ private:
};
}
-ImplementationWidget::ImplementationWidget(KDevLanguageSupport *part, QWidget* parent, const char* name, bool modal)
+ImplementationWidget::ImplementationWidget(KDevLanguageSupport *part, TQWidget* parent, const char* name, bool modal)
:CreateImplemenationWidgetBase(parent, name, modal), m_part(part)
{
}
-void ImplementationWidget::init(const QString &formName)
+void ImplementationWidget::init(const TQString &formName)
{
m_formName = formName;
@@ -74,7 +74,7 @@ void ImplementationWidget::init(const QString &formName)
fileNameEdit->clear();
classNameEdit->clear();
- QDomDocument doc;
+ 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));
@@ -106,7 +106,7 @@ ImplementationWidget::~ImplementationWidget()
}
/*$SPECIALIZATION$*/
-void ImplementationWidget::classNameChanged(const QString &text)
+void ImplementationWidget::classNameChanged(const TQString &text)
{
fileNameEdit->setText(text.lower());
}
@@ -134,7 +134,7 @@ void ImplementationWidget::accept()
return;
m_selectedClass = item->dom();
}
- QDialog::accept();
+ TQDialog::accept();
}
ClassDom ImplementationWidget::selectedClass()
@@ -148,10 +148,10 @@ bool ImplementationWidget::createClass()
return true;
}
-int ImplementationWidget::exec(const QString &formName)
+int ImplementationWidget::exec(const TQString &formName)
{
init(formName);
- return QDialog::exec();
+ return TQDialog::exec();
}
#include "implementationwidget.moc"
diff --git a/languages/lib/designer_integration/implementationwidget.h b/languages/lib/designer_integration/implementationwidget.h
index 0b7d784f..b639b0e8 100644
--- a/languages/lib/designer_integration/implementationwidget.h
+++ b/languages/lib/designer_integration/implementationwidget.h
@@ -41,7 +41,7 @@ class ImplementationWidget : public CreateImplemenationWidgetBase
{
Q_OBJECT
public:
- ImplementationWidget(KDevLanguageSupport *part, QWidget* parent = 0, const char* name = 0, bool modal = false);
+ ImplementationWidget(KDevLanguageSupport *part, TQWidget* parent = 0, const char* name = 0, bool modal = false);
virtual ~ImplementationWidget();
/*$PUBLIC_FUNCTIONS$*/
@@ -49,7 +49,7 @@ public:
ClassDom selectedClass();
/**Executes implementation widget for a form @p formName.*/
- int exec(const QString &formName);
+ int exec(const TQString &formName);
public slots:
/*$PUBLIC_SLOTS$*/
@@ -58,7 +58,7 @@ protected:
/*$PROTECTED_FUNCTIONS$*/
/**Sets up the dialog. No need to reimplement unless you want to restrict
the number of classes being displayed as possible implementation classes.*/
- void init(const QString &formName);
+ void init(const TQString &formName);
void processNamespaces(NamespaceDom dom, KListViewItem *parent);
void processClasses(ClassDom dom, KListViewItem *parent);
@@ -68,18 +68,18 @@ protected:
/**Reimplement to create actual files with the form implementation.
@return The list of absolute paths to a files created.*/
- virtual QStringList createClassFiles() = 0;
+ virtual TQStringList createClassFiles() = 0;
protected slots:
/*$PROTECTED_SLOTS$*/
- virtual void classNameChanged(const QString &text);
+ virtual void classNameChanged(const TQString &text);
virtual void accept();
protected:
KDevLanguageSupport *m_part;
ClassDom m_selectedClass;
- QString m_formName;
- QString m_baseClassName;
+ TQString m_formName;
+ TQString m_baseClassName;
};
#endif
diff --git a/languages/lib/designer_integration/qtdesignerintegration.cpp b/languages/lib/designer_integration/qtdesignerintegration.cpp
index c3215c1e..f66b1b61 100644
--- a/languages/lib/designer_integration/qtdesignerintegration.cpp
+++ b/languages/lib/designer_integration/qtdesignerintegration.cpp
@@ -19,9 +19,9 @@
***************************************************************************/
#include "qtdesignerintegration.h"
-#include <qpair.h>
-#include <qregexp.h>
-#include <qfileinfo.h>
+#include <tqpair.h>
+#include <tqregexp.h>
+#include <tqfileinfo.h>
#include <klocale.h>
#include <kdebug.h>
@@ -49,7 +49,7 @@ QtDesignerIntegration::~QtDesignerIntegration()
delete m_impl;
}
-void QtDesignerIntegration::addFunction(const QString& formName, KInterfaceDesigner::Function function)
+void QtDesignerIntegration::addFunction(const TQString& formName, KInterfaceDesigner::Function function)
{
kdDebug() << "QtDesignerIntegration::addFunction: form: " << formName << ", function: " << function.function << endl;
@@ -67,21 +67,21 @@ void QtDesignerIntegration::addFunction(const QString& formName, KInterfaceDesig
addFunctionToClass(function, klass);
}
-void QtDesignerIntegration::editFunction(const QString& formName, KInterfaceDesigner::Function oldFunction, KInterfaceDesigner::Function function)
+void QtDesignerIntegration::editFunction(const TQString& formName, KInterfaceDesigner::Function oldFunction, KInterfaceDesigner::Function function)
{
kdDebug() << "QtDesignerIntegration::editFunction: form: " << formName
<< ", old function: " << oldFunction.function
<< ", function: " << function.function << endl;
}
-void QtDesignerIntegration::removeFunction(const QString& formName, KInterfaceDesigner::Function function)
+void QtDesignerIntegration::removeFunction(const TQString& formName, KInterfaceDesigner::Function function)
{
kdDebug() << "QtDesignerIntegration::removeFunction: form: " << formName << ", function: " << function.function << endl;
}
-bool QtDesignerIntegration::selectImplementation(const QString &formName)
+bool QtDesignerIntegration::selectImplementation(const TQString &formName)
{
- QFileInfo fi(formName);
+ TQFileInfo fi(formName);
if (!fi.exists())
return false;
@@ -93,38 +93,38 @@ bool QtDesignerIntegration::selectImplementation(const QString &formName)
return false;
}
-void QtDesignerIntegration::loadSettings(QDomDocument dom, QString path)
+void QtDesignerIntegration::loadSettings(TQDomDocument dom, TQString path)
{
- QDomElement el = DomUtil::elementByPath(dom, path + "/qtdesigner");
+ TQDomElement el = DomUtil::elementByPath(dom, path + "/qtdesigner");
if (el.isNull())
return;
- QDomNodeList impls = el.elementsByTagName("implementation");
+ TQDomNodeList impls = el.elementsByTagName("implementation");
for (uint i = 0; i < impls.count(); ++i)
{
- QDomElement el = impls.item(i).toElement();
+ TQDomElement el = impls.item(i).toElement();
if (el.isNull())
continue;
- QString implementationPath = Relative::File(m_part->project()->projectDirectory(),
+ TQString implementationPath = Relative::File(m_part->project()->projectDirectory(),
el.attribute("implementationpath"), true).urlPath();
FileDom file = m_part->codeModel()->fileByName(implementationPath);
if (!file)
continue;
ClassList cllist = file->classByName(el.attribute("class"));
- QString uiPath = Relative::File(m_part->project()->projectDirectory(),
+ TQString uiPath = Relative::File(m_part->project()->projectDirectory(),
el.attribute("path"), true).urlPath();
if (cllist.count() > 0)
m_implementations[uiPath] = cllist.first();
}
}
-void QtDesignerIntegration::saveSettings(QDomDocument dom, QString path)
+void QtDesignerIntegration::saveSettings(TQDomDocument dom, TQString path)
{
kdDebug() << "QtDesignerIntegration::saveSettings" << endl;
- QDomElement el = DomUtil::createElementByPath(dom, path + "/qtdesigner");
- for (QMap<QString, ClassDom>::const_iterator it = m_implementations.begin();
+ TQDomElement el = DomUtil::createElementByPath(dom, path + "/qtdesigner");
+ for (TQMap<TQString, ClassDom>::const_iterator it = m_implementations.begin();
it != m_implementations.end(); ++it)
{
- QDomElement il = dom.createElement("implementation");
+ TQDomElement il = dom.createElement("implementation");
el.appendChild(il);
il.setAttribute("path",
Relative::File(m_part->project()->projectDirectory(), it.key()).rurl());
@@ -134,11 +134,11 @@ void QtDesignerIntegration::saveSettings(QDomDocument dom, QString path)
}
}
-void QtDesignerIntegration::openFunction(const QString &formName, const QString &functionName)
+void QtDesignerIntegration::openFunction(const TQString &formName, const TQString &functionName)
{
kdDebug() << "QtDesignerIntegration::openFunction, formName = " << formName
<< ", functionName = " << functionName << endl;
- QString fn = functionName;
+ TQString fn = functionName;
if (fn.find("(") > 0)
fn.remove(fn.find("("), fn.length());
@@ -147,7 +147,7 @@ void QtDesignerIntegration::openFunction(const QString &formName, const QString
int line = -1, col = -1;
- QString impl = m_implementations[formName]->fileName();
+ TQString impl = m_implementations[formName]->fileName();
processImplementationName(impl);
if (m_part->codeModel()->hasFile(impl))
@@ -177,17 +177,17 @@ void QtDesignerIntegration::openFunction(const QString &formName, const QString
m_part->partController()->editDocument(KURL(impl), line, col);
}
-void QtDesignerIntegration::processImplementationName(QString &// name
+void QtDesignerIntegration::processImplementationName(TQString &// name
)
{
}
-void QtDesignerIntegration::openSource(const QString &formName)
+void QtDesignerIntegration::openSource(const TQString &formName)
{
if (!m_implementations.contains(formName))
if (!selectImplementation(formName))
return;
- QString impl = m_implementations[formName]->fileName();
+ TQString impl = m_implementations[formName]->fileName();
processImplementationName(impl);
m_part->partController()->editDocument(KURL(impl), -1, -1);
}
diff --git a/languages/lib/designer_integration/qtdesignerintegration.h b/languages/lib/designer_integration/qtdesignerintegration.h
index 3f2602f8..a31310eb 100644
--- a/languages/lib/designer_integration/qtdesignerintegration.h
+++ b/languages/lib/designer_integration/qtdesignerintegration.h
@@ -20,7 +20,7 @@
#ifndef QTDESIGNERINTEGRATION_H
#define QTDESIGNERINTEGRATION_H
-#include <qmap.h>
+#include <tqmap.h>
#include <codemodel.h>
#include "kdevdesignerintegration.h"
@@ -44,18 +44,18 @@ public:
virtual ~QtDesignerIntegration();
public slots:
- virtual void addFunction(const QString& formName, KInterfaceDesigner::Function function);
- virtual void editFunction(const QString& formName, KInterfaceDesigner::Function oldFunction, KInterfaceDesigner::Function function);
- virtual void removeFunction(const QString& formName, KInterfaceDesigner::Function function);
+ virtual void addFunction(const TQString& formName, KInterfaceDesigner::Function function);
+ virtual void editFunction(const TQString& formName, KInterfaceDesigner::Function oldFunction, KInterfaceDesigner::Function function);
+ virtual void removeFunction(const TQString& formName, KInterfaceDesigner::Function function);
- virtual void openFunction(const QString &formName, const QString &functionName);
+ virtual void openFunction(const TQString &formName, const TQString &functionName);
- virtual void openSource(const QString &formName);
+ virtual void openSource(const TQString &formName);
- virtual void saveSettings(QDomDocument dom, QString path);
- virtual void loadSettings(QDomDocument dom, QString path);
+ virtual void saveSettings(TQDomDocument dom, TQString path);
+ virtual void loadSettings(TQDomDocument dom, TQString path);
- bool selectImplementation(const QString &formName);
+ bool selectImplementation(const TQString &formName);
protected:
/**Reimplement this to add a function to a class. This means you need to modify
@@ -67,10 +67,10 @@ protected:
@code
name.replace(".h", ".cpp");
@endcode*/
- virtual void processImplementationName(QString &name);
+ virtual void processImplementationName(TQString &name);
//Form file - derived class name
- QMap<QString, ClassDom> m_implementations;
+ TQMap<TQString, ClassDom> m_implementations;
KDevLanguageSupport *m_part;
ImplementationWidget *m_impl;
diff --git a/languages/lib/interfaces/kdevpcsimporter.cpp b/languages/lib/interfaces/kdevpcsimporter.cpp
index 7dfe6a10..fb204328 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( QObject * parent, const char * name )
- : QObject( parent, name )
+KDevPCSImporter::KDevPCSImporter( TQObject * parent, const char * name )
+ : TQObject( parent, name )
{
}
@@ -29,7 +29,7 @@ KDevPCSImporter::~ KDevPCSImporter( )
{
}
-QWidget * KDevPCSImporter::createSettingsPage( QWidget * /*parent*/, const char * /*name*/ )
+TQWidget * KDevPCSImporter::createSettingsPage( TQWidget * /*parent*/, const char * /*name*/ )
{
return 0;
}
diff --git a/languages/lib/interfaces/kdevpcsimporter.h b/languages/lib/interfaces/kdevpcsimporter.h
index b5ff74de..dee168e9 100644
--- a/languages/lib/interfaces/kdevpcsimporter.h
+++ b/languages/lib/interfaces/kdevpcsimporter.h
@@ -20,8 +20,8 @@
#ifndef KDEVPCSIMPORTER_H
#define KDEVPCSIMPORTER_H
-#include <qobject.h>
-#include <qstringlist.h>
+#include <tqobject.h>
+#include <tqstringlist.h>
class QWidget;
@@ -36,14 +36,14 @@ class KDevPCSImporter: public QObject
{
Q_OBJECT
public:
- KDevPCSImporter( QObject* parent=0, const char* name=0 );
+ KDevPCSImporter( TQObject* parent=0, const char* name=0 );
virtual ~KDevPCSImporter();
- virtual QString dbName() const = 0;
- virtual QStringList includePaths() = 0;
- virtual QStringList fileList() = 0;
+ virtual TQString dbName() const = 0;
+ virtual TQStringList includePaths() = 0;
+ virtual TQStringList fileList() = 0;
- virtual QWidget* createSettingsPage( QWidget* parent, const char* name=0 );
+ virtual TQWidget* createSettingsPage( TQWidget* parent, const char* name=0 );
};
#endif // KDEVPCSIMPORTER_H
diff --git a/languages/pascal/PascalLexer.hpp b/languages/pascal/PascalLexer.hpp
index f63ac84d..99a14959 100644
--- a/languages/pascal/PascalLexer.hpp
+++ b/languages/pascal/PascalLexer.hpp
@@ -6,7 +6,7 @@
#include "problemreporter.h"
#include "PascalAST.hpp"
- #include <qlistview.h>
+ #include <tqlistview.h>
#include <kdebug.h>
#define SET_POSITION(ast,t)\
diff --git a/languages/pascal/PascalParser.hpp b/languages/pascal/PascalParser.hpp
index d37d76c5..dfd4e5f2 100644
--- a/languages/pascal/PascalParser.hpp
+++ b/languages/pascal/PascalParser.hpp
@@ -6,7 +6,7 @@
#include "problemreporter.h"
#include "PascalAST.hpp"
- #include <qlistview.h>
+ #include <tqlistview.h>
#include <kdebug.h>
#define SET_POSITION(ast,t)\
diff --git a/languages/pascal/PascalStoreWalker.hpp b/languages/pascal/PascalStoreWalker.hpp
index bc354743..ada7c020 100644
--- a/languages/pascal/PascalStoreWalker.hpp
+++ b/languages/pascal/PascalStoreWalker.hpp
@@ -6,9 +6,9 @@
#include <codemodel.h>
#include "PascalAST.hpp"
- #include <qstring.h>
- #include <qstringlist.h>
- #include <qfileinfo.h>
+ #include <tqstring.h>
+ #include <tqstringlist.h>
+ #include <tqfileinfo.h>
#line 14 "PascalStoreWalker.hpp"
#include <antlr/config.hpp>
@@ -27,8 +27,8 @@ class CUSTOM_API PascalStoreWalker : public ANTLR_USE_NAMESPACE(antlr)TreeParser
#line 47 "pascal.tree.g"
private:
- QString m_fileName;
- QStringList m_currentScope;
+ TQString m_fileName;
+ TQStringList m_currentScope;
int m_currentAccess;
int m_anon;
CodeModel* m_model;
@@ -38,8 +38,8 @@ public:
CodeModel* codeModel() { return m_model; }
const CodeModel* codeModel() const { return m_model; }
- QString fileName() const { return m_fileName; }
- void setFileName( const QString& fileName ) { m_fileName = fileName; }
+ TQString fileName() const { return m_fileName; }
+ void setFileName( const TQString& fileName ) { m_fileName = fileName; }
void init(){
m_currentScope.clear();
diff --git a/languages/pascal/PascalStoreWalkerTokenTypes.hpp b/languages/pascal/PascalStoreWalkerTokenTypes.hpp
index 0f4142f5..e8e19eb9 100644
--- a/languages/pascal/PascalStoreWalkerTokenTypes.hpp
+++ b/languages/pascal/PascalStoreWalkerTokenTypes.hpp
@@ -183,7 +183,7 @@ struct CUSTOM_API PascalStoreWalkerTokenTypes {
INHERITED = 172,
NEW = 173,
SELF = 174,
- METHOD = 175,
+ TQT_METHOD = 175,
ADDSUBOR = 176,
ASSIGNEQUAL = 177,
SIGN = 178,
diff --git a/languages/pascal/PascalTokenTypes.hpp b/languages/pascal/PascalTokenTypes.hpp
index 3e613221..fc8692d3 100644
--- a/languages/pascal/PascalTokenTypes.hpp
+++ b/languages/pascal/PascalTokenTypes.hpp
@@ -183,7 +183,7 @@ struct CUSTOM_API PascalTokenTypes {
INHERITED = 172,
NEW = 173,
SELF = 174,
- METHOD = 175,
+ TQT_METHOD = 175,
ADDSUBOR = 176,
ASSIGNEQUAL = 177,
SIGN = 178,
diff --git a/languages/pascal/backgroundparser.cpp b/languages/pascal/backgroundparser.cpp
index a61c9774..ff202374 100644
--- a/languages/pascal/backgroundparser.cpp
+++ b/languages/pascal/backgroundparser.cpp
@@ -17,12 +17,12 @@
#include "PascalParser.hpp"
#include "PascalAST.hpp"
#include <kdebug.h>
-#include <qfile.h>
+#include <tqfile.h>
#include <antlr/ASTFactory.hpp>
BackgroundParser::BackgroundParser( ProblemReporter* reporter,
- const QString& source,
- const QString& filename )
+ const TQString& source,
+ const TQString& filename )
: m_reporter( reporter ),
m_source( source.unicode(), source.length() ),
m_fileName( filename )
@@ -37,10 +37,10 @@ void BackgroundParser::run()
{
kdDebug() << "11" << endl;
- QCString _fn = QFile::encodeName(m_fileName);
+ TQCString _fn = TQFile::encodeName(m_fileName);
std::string fn( _fn.data() );
- QCString text = m_source.utf8();
+ TQCString text = m_source.utf8();
std::istringstream stream( text.data() );
kdDebug() << "12" << endl;
diff --git a/languages/pascal/backgroundparser.h b/languages/pascal/backgroundparser.h
index 7118c7f2..2ad77f83 100644
--- a/languages/pascal/backgroundparser.h
+++ b/languages/pascal/backgroundparser.h
@@ -12,24 +12,24 @@
#ifndef BACKGROUNDPARSER_H
#define BACKGROUNDPARSER_H
-#include <qthread.h>
-#include <qstring.h>
+#include <tqthread.h>
+#include <tqstring.h>
class ProblemReporter;
class BackgroundParser: public QThread{
public:
BackgroundParser( ProblemReporter* reporter,
- const QString& source,
- const QString& filename );
+ const TQString& source,
+ const TQString& filename );
virtual ~BackgroundParser();
virtual void run();
private:
ProblemReporter* m_reporter;
- QString m_source;
- QString m_fileName;
+ TQString m_source;
+ TQString m_fileName;
};
#endif
diff --git a/languages/pascal/compiler/dccoptions/dccoptionsplugin.cpp b/languages/pascal/compiler/dccoptions/dccoptionsplugin.cpp
index a65ca9d6..2d267519 100644
--- a/languages/pascal/compiler/dccoptions/dccoptionsplugin.cpp
+++ b/languages/pascal/compiler/dccoptions/dccoptionsplugin.cpp
@@ -8,8 +8,8 @@
* (at your option) any later version. *
* *
***************************************************************************/
-#include <qvbox.h>
-#include <qdialog.h>
+#include <tqvbox.h>
+#include <tqdialog.h>
#include <kdebug.h>
#include <klocale.h>
@@ -21,7 +21,7 @@
K_EXPORT_COMPONENT_FACTORY( libkdevdccoptions, KGenericFactory<DccOptionsPlugin>( "kdevdccoptions" ) )
-DccOptionsPlugin::DccOptionsPlugin(QObject *parent, const char *name, const QStringList/* &args*/)
+DccOptionsPlugin::DccOptionsPlugin(TQObject *parent, const char *name, const QStringList/* &args*/)
: KDevCompilerOptions(parent, name)
{
}
@@ -30,22 +30,22 @@ DccOptionsPlugin::~DccOptionsPlugin()
{
}
-QString DccOptionsPlugin::exec(QWidget *parent, const QString &flags)
+TQString DccOptionsPlugin::exec(TQWidget *parent, const TQString &flags)
{
DccOptionsDialog *dlg = new DccOptionsDialog(parent, "dcc options dialog");
- QString newFlags = flags;
+ TQString newFlags = flags;
dlg->setFlags(flags);
- if(dlg->exec() == QDialog::Accepted)
+ if(dlg->exec() == TQDialog::Accepted)
newFlags = dlg->flags();
delete dlg;
return newFlags;
}
-DccOptionsDialog::DccOptionsDialog( QWidget * parent, const char * name )
+DccOptionsDialog::DccOptionsDialog( TQWidget * parent, const char * name )
: KDialogBase(Tabbed, i18n("Delphi Compiler Options"), Ok|Cancel, Ok, parent, name, true)
{
- QVBox *vbox;
+ TQVBox *vbox;
vbox = addVBoxPage(i18n("General"));
general = new GeneralTab(vbox, "general tab");
@@ -70,9 +70,9 @@ DccOptionsDialog::~DccOptionsDialog( )
{
}
-void DccOptionsDialog::setFlags( const QString & flags )
+void DccOptionsDialog::setFlags( const TQString & flags )
{
- QStringList flaglist = QStringList::split(" ", flags);
+ TQStringList flaglist = TQStringList::split(" ", flags);
general->readFlags(&flaglist);
codegen->readFlags(&flaglist);
@@ -84,9 +84,9 @@ void DccOptionsDialog::setFlags( const QString & flags )
unrecognizedFlags = flaglist;
}
-QString DccOptionsDialog::flags( ) const
+TQString DccOptionsDialog::flags( ) const
{
- QStringList flaglist;
+ TQStringList flaglist;
general->writeFlags(&flaglist);
locations->writeFlags(&flaglist);
@@ -95,8 +95,8 @@ QString DccOptionsDialog::flags( ) const
debug_optim->writeFlags(&flaglist);
linker->writeFlags(&flaglist);
- QString flags;
- QStringList::ConstIterator li;
+ TQString flags;
+ TQStringList::ConstIterator li;
for (li = flaglist.begin(); li != flaglist.end(); ++li) {
flags += (*li);
flags += " ";
diff --git a/languages/pascal/compiler/dccoptions/dccoptionsplugin.h b/languages/pascal/compiler/dccoptions/dccoptionsplugin.h
index 35f34532..04a2392e 100644
--- a/languages/pascal/compiler/dccoptions/dccoptionsplugin.h
+++ b/languages/pascal/compiler/dccoptions/dccoptionsplugin.h
@@ -20,10 +20,10 @@ class DccOptionsPlugin : public KDevCompilerOptions
Q_OBJECT
public:
- DccOptionsPlugin( QObject *parent, const char *name, const QStringList/* &args */);
+ DccOptionsPlugin( TQObject *parent, const char *name, const QStringList/* &args */);
~DccOptionsPlugin();
- virtual QString exec(QWidget *parent, const QString &flags);
+ virtual TQString exec(TQWidget *parent, const TQString &flags);
};
class GeneralTab;
@@ -36,11 +36,11 @@ class DebugOptimTab;
class DccOptionsDialog : public KDialogBase
{
public:
- DccOptionsDialog( QWidget *parent=0, const char *name=0 );
+ DccOptionsDialog( TQWidget *parent=0, const char *name=0 );
~DccOptionsDialog();
- void setFlags(const QString &flags);
- QString flags() const;
+ void setFlags(const TQString &flags);
+ TQString flags() const;
private:
GeneralTab *general;
@@ -49,7 +49,7 @@ private:
Locations2Tab *locations2;
CodegenTab *codegen;
DebugOptimTab *debug_optim;
- QStringList unrecognizedFlags;
+ TQStringList unrecognizedFlags;
};
diff --git a/languages/pascal/compiler/dccoptions/optiontabs.cpp b/languages/pascal/compiler/dccoptions/optiontabs.cpp
index 97622606..94c8b35c 100644
--- a/languages/pascal/compiler/dccoptions/optiontabs.cpp
+++ b/languages/pascal/compiler/dccoptions/optiontabs.cpp
@@ -10,27 +10,27 @@
#include <kdialog.h>
#include <klocale.h>
-#include <qspinbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qvbuttongroup.h>
-#include <qapplication.h>
-#include <qpushbutton.h>
+#include <tqspinbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqvbuttongroup.h>
+#include <tqapplication.h>
+#include <tqpushbutton.h>
#include "flagboxes.h"
#include "optiontabs.h"
-LinkerTab::LinkerTab( QWidget * parent, const char * name )
- : QWidget(parent, name), radioController(new FlagRadioButtonController()),
+LinkerTab::LinkerTab( TQWidget * parent, const char * name )
+ : TQWidget(parent, name), radioController(new FlagRadioButtonController()),
pathController(new FlagPathEditController()),
editController(new FlagEditController())
{
- QBoxLayout *layout = new QVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
layout->setAutoAdd(true);
- QVButtonGroup *map_group = new QVButtonGroup(i18n("Map File"), this);
- QRadioButton *m_defaultMap = new QRadioButton(i18n("Off"), map_group);
+ TQVButtonGroup *map_group = new TQVButtonGroup(i18n("Map File"), this);
+ TQRadioButton *m_defaultMap = new TQRadioButton(i18n("Off"), map_group);
m_defaultMap->setChecked(true);
new FlagRadioButton(map_group, radioController,
"-GS", i18n("Segments"));
@@ -38,17 +38,17 @@ LinkerTab::LinkerTab( QWidget * parent, const char * name )
"-GP", i18n("Publics"));
new FlagRadioButton(map_group, radioController,
"-GD", i18n("Detailed"));
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addSpacing(10);
new FlagPathEdit(this, "", pathController,
"--dynamicloader=", i18n("Default dynamic loader:"), KFile::File);
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addSpacing(10);
new FlagSpinEdit(this, 0, 2147483647, 1024, 1048576, editController,
"-$M", i18n("Reserved address space:"));
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addSpacing(10);
layout->addStretch();
@@ -61,14 +61,14 @@ LinkerTab::~LinkerTab( )
delete editController;
}
-void LinkerTab::readFlags( QStringList * str )
+void LinkerTab::readFlags( TQStringList * str )
{
pathController->readFlags(str);
radioController->readFlags(str);
editController->readFlags(str);
}
-void LinkerTab::writeFlags( QStringList * str )
+void LinkerTab::writeFlags( TQStringList * str )
{
pathController->writeFlags(str);
radioController->writeFlags(str);
@@ -77,10 +77,10 @@ void LinkerTab::writeFlags( QStringList * str )
-LocationsTab::LocationsTab( QWidget * parent, const char * name )
- :QWidget(parent, name), pathController(new FlagPathEditController())
+LocationsTab::LocationsTab( TQWidget * parent, const char * name )
+ :TQWidget(parent, name), pathController(new FlagPathEditController())
{
- QBoxLayout *layout = new QVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
layout->setAutoAdd(true);
new FlagPathEdit(this, ":", pathController,
@@ -91,7 +91,7 @@ LocationsTab::LocationsTab( QWidget * parent, const char * name )
"-U", i18n("Unit search path (delimited by \":\"):"));
new FlagPathEdit(this, ":", pathController,
"-O", i18n("Object search path (delimited by \":\"):"));
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addStretch();
}
@@ -100,22 +100,22 @@ LocationsTab::~LocationsTab( )
delete pathController;
}
-void LocationsTab::readFlags( QStringList * str )
+void LocationsTab::readFlags( TQStringList * str )
{
pathController->readFlags(str);
}
-void LocationsTab::writeFlags( QStringList * str )
+void LocationsTab::writeFlags( TQStringList * str )
{
pathController->writeFlags(str);
}
-Locations2Tab::Locations2Tab( QWidget * parent, const char * name )
- :QWidget(parent, name), pathController(new FlagPathEditController())
+Locations2Tab::Locations2Tab( TQWidget * parent, const char * name )
+ :TQWidget(parent, name), pathController(new FlagPathEditController())
{
- QBoxLayout *layout = new QVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
layout->setAutoAdd(true);
new FlagPathEdit(this, "", pathController,
@@ -126,7 +126,7 @@ Locations2Tab::Locations2Tab( QWidget * parent, const char * name )
"-LE", i18n("Package directory:"));
new FlagPathEdit(this, "", pathController,
"-LN", i18n("Package source code directory:"));
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addStretch();
}
@@ -135,26 +135,26 @@ Locations2Tab::~Locations2Tab( )
delete pathController;
}
-void Locations2Tab::readFlags( QStringList * str )
+void Locations2Tab::readFlags( TQStringList * str )
{
pathController->readFlags(str);
}
-void Locations2Tab::writeFlags( QStringList * str )
+void Locations2Tab::writeFlags( TQStringList * str )
{
pathController->writeFlags(str);
}
-GeneralTab::GeneralTab( QWidget * parent, const char * name )
- :QWidget(parent, name), controller(new FlagCheckBoxController()),
+GeneralTab::GeneralTab( TQWidget * parent, const char * name )
+ :TQWidget(parent, name), controller(new FlagCheckBoxController()),
editController(new FlagEditController())
{
- QBoxLayout *layout = new QVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
layout->setAutoAdd(true);
- QVButtonGroup *build_group = new QVButtonGroup(i18n("Build"), this);
+ TQVButtonGroup *build_group = new TQVButtonGroup(i18n("Build"), this);
new FlagCheckBox(build_group, controller,
"-B", i18n("Build all units"));
new FlagCheckBox(build_group, controller,
@@ -163,29 +163,29 @@ GeneralTab::GeneralTab( QWidget * parent, const char * name )
"-Q", i18n("Quiet compile"));
new FlagCheckBox(build_group, controller,
"-Z", i18n("Disable implicit package compilation"));
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addSpacing(10);
new FlagListEdit(this, ":", editController, "-D", i18n("Conditional defines (delimited by \":\"):"));
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
new FlagListEdit(this, ":", editController, "-A", i18n("Unit aliases in form unit=alias (delimited by \":\"):"));
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addSpacing(10);
- QVButtonGroup *message_group = new QVButtonGroup(i18n("Messages"), this);
+ TQVButtonGroup *message_group = new TQVButtonGroup(i18n("Messages"), this);
new FlagCheckBox(message_group, controller,
"-H", i18n("Output hint messages"));
new FlagCheckBox(message_group, controller,
"-W", i18n("Output warning messages"));
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addSpacing(10);
- QVButtonGroup *package_group = new QVButtonGroup(i18n("Packages"), this);
+ TQVButtonGroup *package_group = new TQVButtonGroup(i18n("Packages"), this);
new FlagListEdit(package_group, ":", editController, "-LU", i18n("Build with packages (delimited by \":\"):"));
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addStretch();
}
@@ -196,13 +196,13 @@ GeneralTab::~GeneralTab( )
delete editController;
}
-void GeneralTab::readFlags( QStringList * str )
+void GeneralTab::readFlags( TQStringList * str )
{
controller->readFlags(str);
editController->readFlags(str);
}
-void GeneralTab::writeFlags( QStringList * str )
+void GeneralTab::writeFlags( TQStringList * str )
{
controller->writeFlags(str);
editController->writeFlags(str);
@@ -210,18 +210,18 @@ void GeneralTab::writeFlags( QStringList * str )
-CodegenTab::CodegenTab( QWidget * parent, const char * name )
- :QWidget(parent, name), controller(new FlagCheckBoxController()),
+CodegenTab::CodegenTab( TQWidget * parent, const char * name )
+ :TQWidget(parent, name), controller(new FlagCheckBoxController()),
listController(new FlagEditController()),
radioController(new FlagRadioButtonController())
{
- QBoxLayout *layout = new QVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
// layout->setAutoAdd(true);
- QGridLayout *layout2 = new QGridLayout(layout, 2, 2, KDialog::spacingHint());
+ TQGridLayout *layout2 = new TQGridLayout(layout, 2, 2, KDialog::spacingHint());
- QVButtonGroup *align_group = new QVButtonGroup(i18n("Code Alignment && Stack Frames"), this);
- QRadioButton *align_def = new QRadioButton(i18n("Default (-$A8)"), align_group);
+ TQVButtonGroup *align_group = new TQVButtonGroup(i18n("Code Alignment && Stack Frames"), this);
+ TQRadioButton *align_def = new TQRadioButton(i18n("Default (-$A8)"), align_group);
align_def->setChecked(true);
new FlagRadioButton(align_group, radioController,
"'-$A1'", i18n("Never align"));
@@ -233,11 +233,11 @@ CodegenTab::CodegenTab( QWidget * parent, const char * name )
"'-$A8'", i18n("On quad word boundaries"));
new FlagCheckBox(align_group, controller,
"'-$W+'", i18n("Generate stack frames"), "'-$W-'");
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout2->addWidget(align_group, 0, 0);
- QVButtonGroup *enum_group = new QVButtonGroup(i18n("Enumeration Size"), this);
- QRadioButton *enum_def = new QRadioButton(i18n("Default (-$Z1)"), enum_group);
+ TQVButtonGroup *enum_group = new TQVButtonGroup(i18n("Enumeration Size"), this);
+ TQRadioButton *enum_def = new TQRadioButton(i18n("Default (-$Z1)"), enum_group);
enum_def->setChecked(true);
new FlagRadioButton(enum_group, radioController,
"'-$Z1'", i18n("Unsigned byte (256 values)"));
@@ -245,10 +245,10 @@ CodegenTab::CodegenTab( QWidget * parent, const char * name )
"'-$Z2'", i18n("Unsigned word (64K values)"));
new FlagRadioButton(enum_group, radioController,
"'-$Z4'", i18n("Unsigned double word (4096M values)"));
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout2->addWidget(enum_group, 0, 1);
- QVButtonGroup *compile_group = new QVButtonGroup(i18n("Compile Time Checks"), this);
+ TQVButtonGroup *compile_group = new TQVButtonGroup(i18n("Compile Time Checks"), this);
new FlagCheckBox(compile_group, controller,
"'-$C+'", i18n("Assertions"), "'-$C-'", "'-$C+'");
new FlagCheckBox(compile_group, controller,
@@ -265,10 +265,10 @@ CodegenTab::CodegenTab( QWidget * parent, const char * name )
"'-$V+'", i18n("Var-string checking"), "'-$V-'", "'-$V+'");
new FlagCheckBox(compile_group, controller,
"'-$J+'", i18n("Writable typed constants"), "'-$J-'");
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout2->addWidget(compile_group, 1, 0);
- QVButtonGroup *run_group = new QVButtonGroup(i18n("Run Time Checks"), this);
+ TQVButtonGroup *run_group = new TQVButtonGroup(i18n("Run Time Checks"), this);
new FlagCheckBox(run_group, controller,
"'-$M+'", i18n("Runtime type information"), "'-$M-'");
new FlagCheckBox(run_group, controller,
@@ -279,7 +279,7 @@ CodegenTab::CodegenTab( QWidget * parent, const char * name )
"'-$Q+'", i18n("Overflow checking"), "'-$Q-'");
new FlagCheckBox(run_group, controller,
"'-$R+'", i18n("Range checking"), "'-$R-'");
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout2->addWidget(run_group, 1, 1);
layout->addStretch();
@@ -292,14 +292,14 @@ CodegenTab::~CodegenTab( )
delete radioController;
}
-void CodegenTab::readFlags( QStringList * str )
+void CodegenTab::readFlags( TQStringList * str )
{
controller->readFlags(str);
listController->readFlags(str);
radioController->readFlags(str);
}
-void CodegenTab::writeFlags( QStringList * str )
+void CodegenTab::writeFlags( TQStringList * str )
{
controller->writeFlags(str);
listController->writeFlags(str);
@@ -308,23 +308,23 @@ void CodegenTab::writeFlags( QStringList * str )
-DebugOptimTab::DebugOptimTab( QWidget * parent, const char * name )
- : QWidget(parent, name), controller(new FlagCheckBoxController()),
+DebugOptimTab::DebugOptimTab( TQWidget * parent, const char * name )
+ : TQWidget(parent, name), controller(new FlagCheckBoxController()),
radioController(new FlagRadioButtonController)
{
- QBoxLayout *layout = new QVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
// layout->setAutoAdd(true);
- QVButtonGroup *optim_group = new QVButtonGroup(i18n("Optimization"), this);
+ TQVButtonGroup *optim_group = new TQVButtonGroup(i18n("Optimization"), this);
new FlagCheckBox(optim_group, controller,
"'-$O+'", i18n("Enable optimizations"), "'-$O-'", "'-$O+'");
layout->addWidget(optim_group);
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addSpacing(10);
- QBoxLayout *layout2 = new QHBoxLayout(layout, KDialog::spacingHint());
+ TQBoxLayout *layout2 = new TQHBoxLayout(layout, KDialog::spacingHint());
- QVButtonGroup *debug_group = new QVButtonGroup(i18n("Debugging"), this);
+ TQVButtonGroup *debug_group = new TQVButtonGroup(i18n("Debugging"), this);
new FlagCheckBox(debug_group, controller,
"'-$D+'", i18n("Debug information"), "'-$D-'", "'-$D+'");
new FlagCheckBox(debug_group, controller,
@@ -336,10 +336,10 @@ DebugOptimTab::DebugOptimTab( QWidget * parent, const char * name )
symboldb = new FlagCheckBox(debug_group, controller,
"-VR", i18n("Write symbol info in an .rsm file"));
layout2->addWidget(debug_group);
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- QVButtonGroup *debug_add = new QVButtonGroup(i18n("Symbol Reference Information"), this);
- QRadioButton *m_default = new QRadioButton(i18n("Default (-$YD)"), debug_add);
+ TQVButtonGroup *debug_add = new TQVButtonGroup(i18n("Symbol Reference Information"), this);
+ TQRadioButton *m_default = new TQRadioButton(i18n("Default (-$YD)"), debug_add);
m_default->setChecked(true);
new FlagRadioButton(debug_add, radioController,
"'-$Y-'", i18n("No information"));
@@ -348,17 +348,17 @@ DebugOptimTab::DebugOptimTab( QWidget * parent, const char * name )
new FlagRadioButton(debug_add, radioController,
"'-$Y+'", i18n("Full reference information"));
layout2->addWidget(debug_add);
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addSpacing(10);
- QHBoxLayout *layout3 = new QHBoxLayout(layout, KDialog::spacingHint());
- QPushButton *release = new QPushButton(i18n("Release"), this);
- QPushButton *debug = new QPushButton(i18n("Debug"), this);
+ TQHBoxLayout *layout3 = new TQHBoxLayout(layout, KDialog::spacingHint());
+ TQPushButton *release = new TQPushButton(i18n("Release"), this);
+ TQPushButton *debug = new TQPushButton(i18n("Debug"), this);
layout3->addWidget(release);
layout3->addWidget(debug);
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
- connect(release, SIGNAL(clicked()), this, SLOT(setReleaseOptions()));
- connect(debug, SIGNAL(clicked()), this, SLOT(setDebugOptions()));
+ 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();
}
@@ -369,13 +369,13 @@ DebugOptimTab::DebugOptimTab( QWidget * parent, const char * name )
delete radioController;
}
-void DebugOptimTab::readFlags( QStringList * str )
+void DebugOptimTab::readFlags( TQStringList * str )
{
controller->readFlags(str);
radioController->readFlags(str);
}
-void DebugOptimTab::writeFlags( QStringList * str )
+void DebugOptimTab::writeFlags( TQStringList * str )
{
controller->writeFlags(str);
radioController->writeFlags(str);
@@ -383,7 +383,7 @@ void DebugOptimTab::writeFlags( QStringList * str )
void DebugOptimTab::setReleaseOptions()
{
- QStringList sl = QStringList::split(",", "'-$O+','-$Y-','-$D-','-$L-'");
+ TQStringList sl = TQStringList::split(",", "'-$O+','-$Y-','-$D-','-$L-'");
readFlags(&sl);
gdb->setChecked(false);
namespacedb->setChecked(false);
@@ -392,7 +392,7 @@ void DebugOptimTab::setReleaseOptions()
void DebugOptimTab::setDebugOptions()
{
- QStringList sl = QStringList::split(",", "'-$O-','-$Y+','-$D+','-$L+',-V,-VN");
+ TQStringList sl = TQStringList::split(",", "'-$O-','-$Y+','-$D+','-$L+',-V,-VN");
readFlags(&sl);
}
diff --git a/languages/pascal/compiler/dccoptions/optiontabs.h b/languages/pascal/compiler/dccoptions/optiontabs.h
index 048684a5..835c2ddb 100644
--- a/languages/pascal/compiler/dccoptions/optiontabs.h
+++ b/languages/pascal/compiler/dccoptions/optiontabs.h
@@ -10,7 +10,7 @@
#ifndef OPTIONTABS_H
#define OPTIONTABS_H
-#include <qwidget.h>
+#include <tqwidget.h>
class FlagRadioButtonController;
class FlagPathEditController;
@@ -23,11 +23,11 @@ class FlagCheckBox;
class LinkerTab : public QWidget
{
public:
- LinkerTab( QWidget *parent=0, const char *name=0 );
+ LinkerTab( TQWidget *parent=0, const char *name=0 );
~LinkerTab();
- void readFlags(QStringList *str);
- void writeFlags(QStringList *str);
+ void readFlags(TQStringList *str);
+ void writeFlags(TQStringList *str);
private:
FlagRadioButtonController *radioController;
@@ -38,11 +38,11 @@ private:
class LocationsTab : public QWidget
{
public:
- LocationsTab( QWidget *parent=0, const char *name=0 );
+ LocationsTab( TQWidget *parent=0, const char *name=0 );
~LocationsTab();
- void readFlags(QStringList *str);
- void writeFlags(QStringList *str);
+ void readFlags(TQStringList *str);
+ void writeFlags(TQStringList *str);
private:
FlagPathEditController *pathController;
@@ -51,11 +51,11 @@ private:
class Locations2Tab : public QWidget
{
public:
- Locations2Tab( QWidget *parent=0, const char *name=0 );
+ Locations2Tab( TQWidget *parent=0, const char *name=0 );
~Locations2Tab();
- void readFlags(QStringList *str);
- void writeFlags(QStringList *str);
+ void readFlags(TQStringList *str);
+ void writeFlags(TQStringList *str);
private:
FlagPathEditController *pathController;
@@ -64,11 +64,11 @@ private:
class GeneralTab: public QWidget
{
public:
- GeneralTab( QWidget *parent=0, const char *name=0 );
+ GeneralTab( TQWidget *parent=0, const char *name=0 );
~GeneralTab();
- void readFlags(QStringList *str);
- void writeFlags(QStringList *str);
+ void readFlags(TQStringList *str);
+ void writeFlags(TQStringList *str);
private:
FlagCheckBoxController *controller;
@@ -78,11 +78,11 @@ private:
class CodegenTab : public QWidget
{
public:
- CodegenTab( QWidget *parent=0, const char *name=0 );
+ CodegenTab( TQWidget *parent=0, const char *name=0 );
~CodegenTab();
- void readFlags(QStringList *str);
- void writeFlags(QStringList *str);
+ void readFlags(TQStringList *str);
+ void writeFlags(TQStringList *str);
private:
FlagCheckBoxController *controller;
@@ -94,11 +94,11 @@ class DebugOptimTab : public QWidget
{
Q_OBJECT
public:
- DebugOptimTab( QWidget *parent=0, const char *name=0 );
+ DebugOptimTab( TQWidget *parent=0, const char *name=0 );
~DebugOptimTab();
- void readFlags(QStringList *str);
- void writeFlags(QStringList *str);
+ void readFlags(TQStringList *str);
+ void writeFlags(TQStringList *str);
private:
FlagCheckBoxController *controller;
diff --git a/languages/pascal/compiler/fpcoptions/fpcoptionsplugin.cpp b/languages/pascal/compiler/fpcoptions/fpcoptionsplugin.cpp
index 6fd73e5f..567d5c86 100644
--- a/languages/pascal/compiler/fpcoptions/fpcoptionsplugin.cpp
+++ b/languages/pascal/compiler/fpcoptions/fpcoptionsplugin.cpp
@@ -8,7 +8,7 @@
* (at your option) any later version. *
* *
***************************************************************************/
-#include <qvbox.h>
+#include <tqvbox.h>
#include <klocale.h>
#include <kgenericfactory.h>
@@ -18,7 +18,7 @@
K_EXPORT_COMPONENT_FACTORY( libkdevfpcoptions, KGenericFactory<FpcOptionsPlugin>( "kdevfpcoptions" ) )
-FpcOptionsPlugin::FpcOptionsPlugin(QObject *parent, const char *name, const QStringList& /*args*/)
+FpcOptionsPlugin::FpcOptionsPlugin(TQObject *parent, const char *name, const TQStringList& /*args*/)
: KDevCompilerOptions(parent, name)
{
}
@@ -27,12 +27,12 @@ FpcOptionsPlugin::~FpcOptionsPlugin()
{
}
-QString FpcOptionsPlugin::exec(QWidget *parent, const QString &flags)
+TQString FpcOptionsPlugin::exec(TQWidget *parent, const TQString &flags)
{
FpcOptionsDialog *dlg = new FpcOptionsDialog(parent, "fpc options dialog");
- QString newFlags = flags;
+ TQString newFlags = flags;
dlg->setFlags(flags);
- if (dlg->exec() == QDialog::Accepted)
+ if (dlg->exec() == TQDialog::Accepted)
newFlags = dlg->flags();
delete dlg;
return newFlags;
@@ -40,10 +40,10 @@ QString FpcOptionsPlugin::exec(QWidget *parent, const QString &flags)
-FpcOptionsDialog::FpcOptionsDialog( QWidget *parent, const char *name )
+FpcOptionsDialog::FpcOptionsDialog( TQWidget *parent, const char *name )
: KDialogBase(Tabbed, i18n("Free Pascal Compiler Options"), Ok|Cancel, Ok, parent, name, true)
{
- QVBox *vbox;
+ TQVBox *vbox;
vbox = addVBoxPage(i18n("Language"));
language = new LanguageTab(vbox, "language tab");
@@ -77,9 +77,9 @@ FpcOptionsDialog::~FpcOptionsDialog()
{
}
-void FpcOptionsDialog::setFlags(const QString &flags)
+void FpcOptionsDialog::setFlags(const TQString &flags)
{
- QStringList flaglist = QStringList::split(" ", flags);
+ TQStringList flaglist = TQStringList::split(" ", flags);
feedback->readFlags(&flaglist);
language->readFlags(&flaglist);
@@ -93,9 +93,9 @@ void FpcOptionsDialog::setFlags(const QString &flags)
unrecognizedFlags = flaglist;
}
-QString FpcOptionsDialog::flags() const
+TQString FpcOptionsDialog::flags() const
{
- QStringList flaglist;
+ TQStringList flaglist;
language->writeFlags(&flaglist);
directories->writeFlags(&flaglist);
@@ -107,8 +107,8 @@ QString FpcOptionsDialog::flags() const
feedback->writeFlags(&flaglist);
misc->writeFlags(&flaglist);
- QString flags;
- QStringList::ConstIterator li;
+ TQString flags;
+ TQStringList::ConstIterator li;
for (li = flaglist.begin(); li != flaglist.end(); ++li) {
flags += (*li);
flags += " ";
diff --git a/languages/pascal/compiler/fpcoptions/fpcoptionsplugin.h b/languages/pascal/compiler/fpcoptions/fpcoptionsplugin.h
index f6b15fff..55e65321 100644
--- a/languages/pascal/compiler/fpcoptions/fpcoptionsplugin.h
+++ b/languages/pascal/compiler/fpcoptions/fpcoptionsplugin.h
@@ -20,10 +20,10 @@ class FpcOptionsPlugin : public KDevCompilerOptions
Q_OBJECT
public:
- FpcOptionsPlugin( QObject *parent, const char *name, const QStringList &args );
+ FpcOptionsPlugin( TQObject *parent, const char *name, const TQStringList &args );
~FpcOptionsPlugin();
- virtual QString exec(QWidget *parent, const QString &flags);
+ virtual TQString exec(TQWidget *parent, const TQString &flags);
};
@@ -35,11 +35,11 @@ class CodegenTab;
class FpcOptionsDialog : public KDialogBase
{
public:
- FpcOptionsDialog( QWidget *parent=0, const char *name=0 );
+ FpcOptionsDialog( TQWidget *parent=0, const char *name=0 );
~FpcOptionsDialog();
- void setFlags(const QString &flags);
- QString flags() const;
+ void setFlags(const TQString &flags);
+ TQString flags() const;
private:
/* GeneralTab *general;
@@ -57,7 +57,7 @@ private:
AssemblerTab *assembler;
LinkerTab *linker;
MiscTab *misc;
- QStringList unrecognizedFlags;
+ TQStringList unrecognizedFlags;
};
#endif
diff --git a/languages/pascal/compiler/fpcoptions/optiontabs.cpp b/languages/pascal/compiler/fpcoptions/optiontabs.cpp
index 2579cb3c..445ab826 100644
--- a/languages/pascal/compiler/fpcoptions/optiontabs.cpp
+++ b/languages/pascal/compiler/fpcoptions/optiontabs.cpp
@@ -11,31 +11,31 @@
#include <kdialog.h>
#include <klocale.h>
-#include <qspinbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qvbuttongroup.h>
-#include <qapplication.h>
-#include <qframe.h>
-#include <qpushbutton.h>
+#include <tqspinbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqvbuttongroup.h>
+#include <tqapplication.h>
+#include <tqframe.h>
+#include <tqpushbutton.h>
#include "flagboxes.h"
#include "optiontabs.h"
-FeedbackTab::FeedbackTab(QWidget *parent, const char *name)
- : QWidget(parent, name), controller(new FlagCheckBoxController(QStringList::split(",","-v")))
+FeedbackTab::FeedbackTab(TQWidget *parent, const char *name)
+ : TQWidget(parent, name), controller(new FlagCheckBoxController(TQStringList::split(",","-v")))
{
- QBoxLayout *layout = new QVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
layout->setAutoAdd(true);
- QVButtonGroup *output_group = new QVButtonGroup(i18n("Output"), this);
+ TQVButtonGroup *output_group = new TQVButtonGroup(i18n("Output"), this);
new FlagCheckBox(output_group, controller,
"-vr", i18n("Format errors like GCC does"));
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addSpacing(10);
- QVButtonGroup *verbose_group = new QVButtonGroup(i18n("Verbose"), this);
+ TQVButtonGroup *verbose_group = new TQVButtonGroup(i18n("Verbose"), this);
new FlagCheckBox(verbose_group, controller,
"-va", i18n("Write all possible info"));
new FlagCheckBox(verbose_group, controller,
@@ -53,10 +53,10 @@ FeedbackTab::FeedbackTab(QWidget *parent, const char *name)
new FlagCheckBox(verbose_group, controller,
"-vd", i18n("Write other debugging info"));
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addSpacing(10);
- QVButtonGroup *other_group = new QVButtonGroup(i18n("Other Information"), this);
+ TQVButtonGroup *other_group = new TQVButtonGroup(i18n("Other Information"), this);
new FlagCheckBox(other_group, controller,
"-vl", i18n("Show line numbers when processing files"));
new FlagCheckBox(other_group, controller,
@@ -72,7 +72,7 @@ FeedbackTab::FeedbackTab(QWidget *parent, const char *name)
new FlagCheckBox(other_group, controller,
"-vb", i18n("Show all procedure declarations if an overloaded function error occurs"));
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addStretch();
}
@@ -82,23 +82,23 @@ FeedbackTab::~FeedbackTab()
delete controller;
}
-void FeedbackTab::readFlags(QStringList *list)
+void FeedbackTab::readFlags(TQStringList *list)
{
controller->readFlags(list);
}
-void FeedbackTab::writeFlags(QStringList *list)
+void FeedbackTab::writeFlags(TQStringList *list)
{
controller->writeFlags(list);
}
-FilesAndDirectoriesTab::FilesAndDirectoriesTab( QWidget * parent, const char * name )
- :QWidget(parent, name), controller(new FlagCheckBoxController()),
+FilesAndDirectoriesTab::FilesAndDirectoriesTab( TQWidget * parent, const char * name )
+ :TQWidget(parent, name), controller(new FlagCheckBoxController()),
pathController(new FlagPathEditController())
{
- QBoxLayout *layout = new QVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
layout->setAutoAdd(true);
new FlagPathEdit(this, ":", pathController,
@@ -109,7 +109,7 @@ FilesAndDirectoriesTab::FilesAndDirectoriesTab( QWidget * parent, const char * n
"-Fo", i18n("Object file search path (delimited by \":\"):"));
new FlagPathEdit(this, ":", pathController,
"-Fl", i18n("Library search path (delimited by \":\"):"));
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addStretch();
}
@@ -119,23 +119,23 @@ FilesAndDirectoriesTab::~FilesAndDirectoriesTab( )
delete pathController;
}
-void FilesAndDirectoriesTab::readFlags( QStringList * str )
+void FilesAndDirectoriesTab::readFlags( TQStringList * str )
{
controller->readFlags(str);
pathController->readFlags(str);
}
-void FilesAndDirectoriesTab::writeFlags( QStringList * str )
+void FilesAndDirectoriesTab::writeFlags( TQStringList * str )
{
controller->writeFlags(str);
pathController->writeFlags(str);
}
-FilesAndDirectoriesTab2::FilesAndDirectoriesTab2( QWidget * parent, const char * name )
- :QWidget(parent, name), controller(new FlagCheckBoxController()),
+FilesAndDirectoriesTab2::FilesAndDirectoriesTab2( TQWidget * parent, const char * name )
+ :TQWidget(parent, name), controller(new FlagCheckBoxController()),
pathController(new FlagPathEditController())
{
- QBoxLayout *layout = new QVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
layout->setAutoAdd(true);
new FlagPathEdit(this, "", pathController,
@@ -144,21 +144,21 @@ FilesAndDirectoriesTab2::FilesAndDirectoriesTab2( QWidget * parent, const char *
"-FU", i18n("Write units in:"));
new FlagPathEdit(this, "", pathController,
"-o", i18n("Executable name:"), KFile::File);
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->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);
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addSpacing(20);
new FlagPathEdit(this, "", pathController,
"-Fr", i18n("Compiler messages file:"), KFile::File);
new FlagPathEdit(this, "", pathController,
"-Fe", i18n("Write compiler messages to file:"), KFile::File);
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addStretch();
}
@@ -169,26 +169,26 @@ FilesAndDirectoriesTab2::~FilesAndDirectoriesTab2( )
delete pathController;
}
-void FilesAndDirectoriesTab2::readFlags( QStringList * str )
+void FilesAndDirectoriesTab2::readFlags( TQStringList * str )
{
controller->readFlags(str);
pathController->readFlags(str);
}
-void FilesAndDirectoriesTab2::writeFlags( QStringList * str )
+void FilesAndDirectoriesTab2::writeFlags( TQStringList * str )
{
controller->writeFlags(str);
pathController->writeFlags(str);
}
-LanguageTab::LanguageTab( QWidget * parent, const char * name )
- : QWidget(parent, name), controller(new FlagCheckBoxController(QStringList::split(",","-v")))
+LanguageTab::LanguageTab( TQWidget * parent, const char * name )
+ : TQWidget(parent, name), controller(new FlagCheckBoxController(TQStringList::split(",","-v")))
{
- QBoxLayout *layout = new QVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
layout->setAutoAdd(true);
- QVButtonGroup *compat_group = new QVButtonGroup(i18n("Pascal Compatibility"), this);
+ TQVButtonGroup *compat_group = new TQVButtonGroup(i18n("Pascal Compatibility"), this);
new FlagCheckBox(compat_group, controller,
"-S2", i18n("Switch on Delphi 2 extensions"));
new FlagCheckBox(compat_group, controller,
@@ -197,20 +197,20 @@ LanguageTab::LanguageTab( QWidget * parent, const char * name )
"-So", i18n("Borland TP 7.0 compatibility mode"));
new FlagCheckBox(compat_group, controller,
"-Sp", i18n("GNU Pascal compatibility mode"));
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addSpacing(10);
- QVButtonGroup *ccompat_group = new QVButtonGroup(i18n("C/C++ Compatibility"), this);
+ TQVButtonGroup *ccompat_group = new TQVButtonGroup(i18n("C/C++ Compatibility"), this);
new FlagCheckBox(ccompat_group, controller,
"-Sc", i18n("Support C style operators *=, +=, /=, -="));
new FlagCheckBox(ccompat_group, controller,
"-Si", i18n("Support C++ style INLINE"));
new FlagCheckBox(ccompat_group, controller,
"-Sm", i18n("Support C style macros"));
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addSpacing(10);
- QVButtonGroup *lang_group = new QVButtonGroup(i18n("Language"), this);
+ TQVButtonGroup *lang_group = new TQVButtonGroup(i18n("Language"), this);
new FlagCheckBox(lang_group, controller,
"-Sg", i18n("Support the label and goto commands"));
new FlagCheckBox(lang_group, controller,
@@ -219,7 +219,7 @@ LanguageTab::LanguageTab( QWidget * parent, const char * name )
"-Ss", i18n("Require the name of constructors to be init\n and the name of destructors to be done"));
new FlagCheckBox(lang_group, controller,
"-St", i18n("Allow the static keyword in objects"));
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addStretch();
}
@@ -229,26 +229,26 @@ LanguageTab::LanguageTab( QWidget * parent, const char * name )
delete controller;
}
-void LanguageTab::readFlags( QStringList * str )
+void LanguageTab::readFlags( TQStringList * str )
{
controller->readFlags(str);
}
-void LanguageTab::writeFlags( QStringList * str )
+void LanguageTab::writeFlags( TQStringList * str )
{
controller->writeFlags(str);
}
-AssemblerTab::AssemblerTab( QWidget * parent, const char * name )
- : QWidget(parent, name), controller(new FlagCheckBoxController()),
+AssemblerTab::AssemblerTab( TQWidget * parent, const char * name )
+ : TQWidget(parent, name), controller(new FlagCheckBoxController()),
asmController(new FlagRadioButtonController)
{
- QBoxLayout *layout = new QVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
// layout->setAutoAdd(true);
- QBoxLayout *layout2 = new QHBoxLayout(layout, KDialog::spacingHint());
+ TQBoxLayout *layout2 = new TQHBoxLayout(layout, KDialog::spacingHint());
- QVButtonGroup *info_group = new QVButtonGroup(i18n("Assembler Info"), this);
+ TQVButtonGroup *info_group = new TQVButtonGroup(i18n("Assembler Info"), this);
new FlagCheckBox(info_group, controller,
"-a", i18n("Do not delete assembler files"));
new FlagCheckBox(info_group, controller,
@@ -258,11 +258,11 @@ AssemblerTab::AssemblerTab( QWidget * parent, const char * name )
new FlagCheckBox(info_group, controller,
"-at", i18n("List temporary allocations and deallocations"));
layout2->addWidget(info_group);
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
//layout->addSpacing(10);
- QVButtonGroup *asmkind_group = new QVButtonGroup(i18n("Assembler Reader"), this);
- QRadioButton *m_defaultkind = new QRadioButton(i18n("Use default reader"), asmkind_group);
+ TQVButtonGroup *asmkind_group = new TQVButtonGroup(i18n("Assembler Reader"), this);
+ TQRadioButton *m_defaultkind = new TQRadioButton(i18n("Use default reader"), asmkind_group);
m_defaultkind->setChecked(true);
new FlagRadioButton(asmkind_group, asmController,
"-Ratt", i18n("AT&T style assembler"));
@@ -271,14 +271,14 @@ AssemblerTab::AssemblerTab( QWidget * parent, const char * name )
new FlagRadioButton(asmkind_group, asmController,
"-Rdirect", i18n("Direct assembler"));
layout2->addWidget(asmkind_group);
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addSpacing(10);
- QVButtonGroup *asm_group = new QVButtonGroup(i18n("Assembler Output"), this);
+ TQVButtonGroup *asm_group = new TQVButtonGroup(i18n("Assembler Output"), this);
new FlagCheckBox(asm_group, controller,
"-P", i18n("Use pipes instead of files when assembling"));
- QRadioButton *m_default = new QRadioButton(i18n("Use default output"), asm_group);
+ TQRadioButton *m_default = new TQRadioButton(i18n("Use default output"), asm_group);
m_default->setChecked(true);
new FlagRadioButton(asm_group, asmController,
"-Aas", i18n("Use GNU as"));
@@ -299,7 +299,7 @@ AssemblerTab::AssemblerTab( QWidget * parent, const char * name )
new FlagRadioButton(asm_group, asmController,
"-Apecoff", i18n("Use pecoff"));
layout->addWidget(asm_group);
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addStretch();
}
@@ -310,13 +310,13 @@ AssemblerTab::AssemblerTab( QWidget * parent, const char * name )
delete asmController;
}
-void AssemblerTab::readFlags( QStringList * str )
+void AssemblerTab::readFlags( TQStringList * str )
{
controller->readFlags(str);
asmController->readFlags(str);
}
-void AssemblerTab::writeFlags( QStringList * str )
+void AssemblerTab::writeFlags( TQStringList * str )
{
controller->writeFlags(str);
asmController->writeFlags(str);
@@ -324,18 +324,18 @@ void AssemblerTab::writeFlags( QStringList * str )
-DebugOptimTab::DebugOptimTab( QWidget * parent, const char * name )
- : QWidget(parent, name), controller(new FlagCheckBoxController()),
+DebugOptimTab::DebugOptimTab( TQWidget * parent, const char * name )
+ : TQWidget(parent, name), controller(new FlagCheckBoxController()),
optimController(new FlagRadioButtonController)
{
- QBoxLayout *layout = new QVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
// layout->setAutoAdd(true);
- QBoxLayout *layout2 = new QHBoxLayout(layout, KDialog::spacingHint());
+ TQBoxLayout *layout2 = new TQHBoxLayout(layout, KDialog::spacingHint());
- QBoxLayout *layout3 = new QVBoxLayout(layout2, KDialog::spacingHint());
+ TQBoxLayout *layout3 = new TQVBoxLayout(layout2, KDialog::spacingHint());
- QVButtonGroup *debug_group = new QVButtonGroup(i18n("Debugging"), this);
+ TQVButtonGroup *debug_group = new TQVButtonGroup(i18n("Debugging"), this);
new FlagCheckBox(debug_group, controller,
"-g", i18n("Generate information for GDB"), "-!g");
new FlagCheckBox(debug_group, controller,
@@ -347,31 +347,31 @@ DebugOptimTab::DebugOptimTab( QWidget * parent, const char * name )
new FlagCheckBox(debug_group, controller,
"-gc", i18n("Generate checks for pointers"), "-!gc");
layout3->addWidget(debug_group);
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout3->addSpacing(10);
- QVButtonGroup *profile_group = new QVButtonGroup(i18n("Profiling"), this);
+ 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);
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout3->addSpacing(10);
- QBoxLayout *layout4 = new QVBoxLayout(layout2, KDialog::spacingHint());
+ TQBoxLayout *layout4 = new TQVBoxLayout(layout2, KDialog::spacingHint());
- QVButtonGroup *optim_group1 = new QVButtonGroup(i18n("General Optimization"), this);
- m_default = new QRadioButton(i18n("Default"), optim_group1);
+ TQVButtonGroup *optim_group1 = new TQVButtonGroup(i18n("General Optimization"), this);
+ m_default = new TQRadioButton(i18n("Default"), optim_group1);
m_default->setChecked(true);
new FlagRadioButton(optim_group1, optimController,
"-Og", i18n("Generate smaller code"));
optim1 = new FlagRadioButton(optim_group1, optimController,
"-OG", i18n("Generate faster code"));
layout4->addWidget(optim_group1);
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout4->addSpacing(10);
- QVButtonGroup *optim_group2 = new QVButtonGroup(i18n("Optimization Levels"), this);
- m_default2 = new QRadioButton(i18n("Default"), optim_group2);
+ TQVButtonGroup *optim_group2 = new TQVButtonGroup(i18n("Optimization Levels"), this);
+ m_default2 = new TQRadioButton(i18n("Default"), optim_group2);
m_default2->setChecked(true);
new FlagRadioButton(optim_group2, optimController,
"-O1", i18n("Level 1"));
@@ -380,13 +380,13 @@ DebugOptimTab::DebugOptimTab( QWidget * parent, const char * name )
optim2 = new FlagRadioButton(optim_group2, optimController,
"-O3", i18n("Level 3"));
layout4->addWidget(optim_group2);
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout4->addSpacing(10);
- QHBoxLayout *layout5 = new QHBoxLayout(layout, KDialog::spacingHint());
+ TQHBoxLayout *layout5 = new TQHBoxLayout(layout, KDialog::spacingHint());
- QVButtonGroup *optim_group3 = new QVButtonGroup(i18n("Architecture"), this);
- m_default3 = new QRadioButton(i18n("Default"), optim_group3);
+ TQVButtonGroup *optim_group3 = new TQVButtonGroup(i18n("Architecture"), this);
+ m_default3 = new TQRadioButton(i18n("Default"), optim_group3);
m_default3->setChecked(true);
new FlagRadioButton(optim_group3, optimController,
"-Op1", i18n("386/486"));
@@ -395,23 +395,23 @@ DebugOptimTab::DebugOptimTab( QWidget * parent, const char * name )
new FlagRadioButton(optim_group3, optimController,
"-Op2", i18n("PentiumPro/PII/Cyrix 6x86/K6"));
layout5->addWidget(optim_group3);
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- QVButtonGroup *optim_group4 = new QVButtonGroup(i18n("Another Optimization"), this);
+ TQVButtonGroup *optim_group4 = new TQVButtonGroup(i18n("Another Optimization"), this);
new FlagCheckBox(optim_group4, controller,
"-Or", i18n("Use register variables"), "-!Or");
new FlagCheckBox(optim_group4, controller,
"-Ou", i18n("Uncertain optimizations"), "-!Ou");
layout5->addWidget(optim_group4);
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- QHBoxLayout *layout6 = new QHBoxLayout(layout, KDialog::spacingHint());
- QPushButton *release = new QPushButton(i18n("Release"), this);
- QPushButton *debug = new QPushButton(i18n("Debug"), this);
+ TQHBoxLayout *layout6 = new TQHBoxLayout(layout, KDialog::spacingHint());
+ TQPushButton *release = new TQPushButton(i18n("Release"), this);
+ TQPushButton *debug = new TQPushButton(i18n("Debug"), this);
layout6->addWidget(release);
layout6->addWidget(debug);
- connect(release, SIGNAL(clicked()), this, SLOT(setReleaseOptions()));
- connect(debug, SIGNAL(clicked()), this, SLOT(setDebugOptions()));
+ connect(release, TQT_SIGNAL(clicked()), this, TQT_SLOT(setReleaseOptions()));
+ connect(debug, TQT_SIGNAL(clicked()), this, TQT_SLOT(setDebugOptions()));
layout->addStretch();
}
@@ -422,13 +422,13 @@ DebugOptimTab::DebugOptimTab( QWidget * parent, const char * name )
delete optimController;
}
-void DebugOptimTab::readFlags( QStringList * str )
+void DebugOptimTab::readFlags( TQStringList * str )
{
controller->readFlags(str);
optimController->readFlags(str);
}
-void DebugOptimTab::writeFlags( QStringList * str )
+void DebugOptimTab::writeFlags( TQStringList * str )
{
controller->writeFlags(str);
optimController->writeFlags(str);
@@ -439,7 +439,7 @@ void DebugOptimTab::setReleaseOptions()
m_default->setChecked(true);
m_default2->setChecked(true);
// m_default3->setChecked(true);
- QStringList sl = QStringList::split(",", "-!g,-!gd,-!gl,-!gh,-!gc,-!pg,-!Ou,-!Or");
+ TQStringList sl = TQStringList::split(",", "-!g,-!gd,-!gl,-!gh,-!gc,-!pg,-!Ou,-!Or");
readFlags(&sl);
optim1->setChecked(true);
optim2->setChecked(true);
@@ -447,29 +447,29 @@ void DebugOptimTab::setReleaseOptions()
void DebugOptimTab::setDebugOptions()
{
- QStringList sl = QStringList::split(",", "-g,-gl,-gh,-gc");
+ TQStringList sl = TQStringList::split(",", "-g,-gl,-gh,-gc");
readFlags(&sl);
m_default->setChecked(true);
m_default2->setChecked(true);
// m_default3->setChecked(true);
}
-CodegenTab::CodegenTab( QWidget * parent, const char * name )
- : QWidget(parent, name), controller(new FlagCheckBoxController()),
+CodegenTab::CodegenTab( TQWidget * parent, const char * name )
+ : TQWidget(parent, name), controller(new FlagCheckBoxController()),
listController(new FlagEditController())
{
- QBoxLayout *layout = new QVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
layout->setAutoAdd(true);
- QVButtonGroup *compile_group = new QVButtonGroup(i18n("Compile Time Checks"), this);
+ TQVButtonGroup *compile_group = new TQVButtonGroup(i18n("Compile Time Checks"), this);
new FlagCheckBox(compile_group, controller,
"-Sa", i18n("Include assert statements in compiled code"));
new FlagCheckBox(compile_group, controller,
"-Un", i18n("Do not check the unit name for being the same as the file name"));
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addSpacing(10);
- QVButtonGroup *run_group = new QVButtonGroup(i18n("Run Time Checks"), this);
+ TQVButtonGroup *run_group = new TQVButtonGroup(i18n("Run Time Checks"), this);
new FlagCheckBox(run_group, controller,
"-Cr", i18n("Range checking"));
new FlagCheckBox(run_group, controller,
@@ -478,21 +478,21 @@ CodegenTab::CodegenTab( QWidget * parent, const char * name )
"-Ci", i18n("Input/Output checking"));
new FlagCheckBox(run_group, controller,
"-Co", i18n("Integer overflow checking"));
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addSpacing(10);
new FlagListEdit(this, ":", listController, "-d", i18n("Conditional defines (delimited by \":\"):"));
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
new FlagListEdit(this, ":", listController, "-u", i18n("Undefine conditional defines (delimited by \":\"):"));
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addSpacing(10);
new FlagSpinEdit(this, 1024, 67107840, 1, 131072, listController,
"-Cs", i18n("Stack size:"));
new FlagSpinEdit(this, 1024, 67107840, 1, 2097152, listController,
"-Ch", i18n("Heap size:"));
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addStretch();
}
@@ -503,27 +503,27 @@ CodegenTab::~ CodegenTab( )
delete listController;
}
-void CodegenTab::readFlags( QStringList * str )
+void CodegenTab::readFlags( TQStringList * str )
{
controller->readFlags(str);
listController->readFlags(str);
}
-void CodegenTab::writeFlags( QStringList * str )
+void CodegenTab::writeFlags( TQStringList * str )
{
controller->writeFlags(str);
listController->writeFlags(str);
}
-LinkerTab::LinkerTab( QWidget * parent, const char * name )
- : QWidget(parent, name), controller(new FlagCheckBoxController()),
+LinkerTab::LinkerTab( TQWidget * parent, const char * name )
+ : TQWidget(parent, name), controller(new FlagCheckBoxController()),
listController(new FlagEditController())
{
- QBoxLayout *layout = new QVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
- QBoxLayout *layout2 = new QHBoxLayout(layout, KDialog::spacingHint());
+ TQBoxLayout *layout2 = new TQHBoxLayout(layout, KDialog::spacingHint());
- QVButtonGroup *link_group = new QVButtonGroup(i18n("Linking Stage"), this);
+ TQVButtonGroup *link_group = new TQVButtonGroup(i18n("Linking Stage"), this);
new FlagCheckBox(link_group, controller,
"-CD", i18n("Create dynamic library"));
new FlagCheckBox(link_group, controller,
@@ -535,9 +535,9 @@ LinkerTab::LinkerTab( QWidget * parent, const char * name )
new FlagCheckBox(link_group, controller,
"-s", i18n("Create assembling and linking script"));
layout2->addWidget(link_group);
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- QVButtonGroup *exec_group = new QVButtonGroup(i18n("Executable Generation"), this);
+ TQVButtonGroup *exec_group = new TQVButtonGroup(i18n("Executable Generation"), this);
new FlagCheckBox(exec_group, controller,
"-Xs", i18n("Strip the symbols from the executable"));
new FlagCheckBox(exec_group, controller,
@@ -549,12 +549,12 @@ LinkerTab::LinkerTab( QWidget * parent, const char * name )
new FlagCheckBox(exec_group, controller,
"-Xc", i18n("Link with the C library"));
layout2->addWidget(exec_group);
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addSpacing(10);
FlagListEdit *led = new FlagListEdit(this, ":", listController, "-k", i18n("Options passed to the linker (delimited by \":\"):"));
layout->addWidget(led);
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addStretch();
}
@@ -565,25 +565,25 @@ LinkerTab::~LinkerTab( )
delete listController;
}
-void LinkerTab::readFlags( QStringList * str )
+void LinkerTab::readFlags( TQStringList * str )
{
controller->readFlags(str);
listController->readFlags(str);
}
-void LinkerTab::writeFlags( QStringList * str )
+void LinkerTab::writeFlags( TQStringList * str )
{
controller->writeFlags(str);
listController->writeFlags(str);
}
-MiscTab::MiscTab( QWidget * parent, const char * name )
- : QWidget(parent, name), controller(new FlagCheckBoxController()),
+MiscTab::MiscTab( TQWidget * parent, const char * name )
+ : TQWidget(parent, name), controller(new FlagCheckBoxController()),
radioController(new FlagRadioButtonController()),
pathController(new FlagPathEditController()),
editController(new FlagEditController())
{
- QBoxLayout *layout = new QVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
layout->setAutoAdd(true);
new FlagCheckBox(this, controller,
@@ -594,21 +594,21 @@ MiscTab::MiscTab( QWidget * parent, const char * name )
"@", i18n("Compiler configuration file:"), KFile::File);
new FlagSpinEdit(this, 1, 1000, 1, 50, editController,
"-Se", i18n("Stop after the error:"));
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addSpacing(10);
- QVButtonGroup *browser_group = new QVButtonGroup(i18n("Browser Info"), this);
- QRadioButton *m_defaultBrowser = new QRadioButton(i18n("No browser info"), browser_group);
+ TQVButtonGroup *browser_group = new TQVButtonGroup(i18n("Browser Info"), this);
+ TQRadioButton *m_defaultBrowser = new TQRadioButton(i18n("No browser info"), browser_group);
m_defaultBrowser->setChecked(true);
new FlagRadioButton(browser_group, radioController,
"-b", i18n("Global browser info"));
new FlagRadioButton(browser_group, radioController,
"-bl", i18n("Global and local browser info"));
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addSpacing(10);
- QVButtonGroup *target_group = new QVButtonGroup(i18n("Target OS"), this);
- QRadioButton *m_defaultTarget = new QRadioButton(i18n("Default"), target_group);
+ TQVButtonGroup *target_group = new TQVButtonGroup(i18n("Target OS"), this);
+ TQRadioButton *m_defaultTarget = new TQRadioButton(i18n("Default"), target_group);
m_defaultTarget->setChecked(true);
new FlagRadioButton(target_group, radioController,
"-TGO32V1", i18n("DOS and version 1 of the DJ DELORIE extender"));
@@ -624,7 +624,7 @@ MiscTab::MiscTab( QWidget * parent, const char * name )
"-TSUNOS", i18n("SunOS/Solaris"));
new FlagRadioButton(target_group, radioController,
"-TBEOS", i18n("BeOS"));
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addSpacing(10);
layout->addStretch();
@@ -638,7 +638,7 @@ MiscTab::~ MiscTab( )
delete editController;
}
-void MiscTab::readFlags( QStringList * str )
+void MiscTab::readFlags( TQStringList * str )
{
controller->readFlags(str);
radioController->readFlags(str);
@@ -646,7 +646,7 @@ void MiscTab::readFlags( QStringList * str )
editController->readFlags(str);
}
-void MiscTab::writeFlags( QStringList * str )
+void MiscTab::writeFlags( TQStringList * str )
{
controller->writeFlags(str);
radioController->writeFlags(str);
diff --git a/languages/pascal/compiler/fpcoptions/optiontabs.h b/languages/pascal/compiler/fpcoptions/optiontabs.h
index 56109ae2..b1c4fa8f 100644
--- a/languages/pascal/compiler/fpcoptions/optiontabs.h
+++ b/languages/pascal/compiler/fpcoptions/optiontabs.h
@@ -11,7 +11,7 @@
#ifndef OPTIONTABS_H
#define OPTIONTABS_H
-#include <qwidget.h>
+#include <tqwidget.h>
class QSpinBox;
class QRadioButton;
@@ -24,11 +24,11 @@ class FlagEditController;
class FeedbackTab : public QWidget
{
public:
- FeedbackTab( QWidget *parent=0, const char *name=0 );
+ FeedbackTab( TQWidget *parent=0, const char *name=0 );
~FeedbackTab();
- void readFlags(QStringList *str);
- void writeFlags(QStringList *str);
+ void readFlags(TQStringList *str);
+ void writeFlags(TQStringList *str);
private:
FlagCheckBoxController *controller;
@@ -37,11 +37,11 @@ private:
class FilesAndDirectoriesTab: public QWidget
{
public:
- FilesAndDirectoriesTab( QWidget *parent = 0, const char *name = 0);
+ FilesAndDirectoriesTab( TQWidget *parent = 0, const char *name = 0);
~FilesAndDirectoriesTab();
- void readFlags(QStringList *str);
- void writeFlags(QStringList *str);
+ void readFlags(TQStringList *str);
+ void writeFlags(TQStringList *str);
private:
FlagCheckBoxController *controller;
@@ -51,11 +51,11 @@ private:
class FilesAndDirectoriesTab2: public QWidget
{
public:
- FilesAndDirectoriesTab2( QWidget *parent = 0, const char *name = 0);
+ FilesAndDirectoriesTab2( TQWidget *parent = 0, const char *name = 0);
~FilesAndDirectoriesTab2();
- void readFlags(QStringList *str);
- void writeFlags(QStringList *str);
+ void readFlags(TQStringList *str);
+ void writeFlags(TQStringList *str);
private:
FlagCheckBoxController *controller;
@@ -65,11 +65,11 @@ private:
class LanguageTab : public QWidget
{
public:
- LanguageTab( QWidget *parent=0, const char *name=0 );
+ LanguageTab( TQWidget *parent=0, const char *name=0 );
~LanguageTab();
- void readFlags(QStringList *str);
- void writeFlags(QStringList *str);
+ void readFlags(TQStringList *str);
+ void writeFlags(TQStringList *str);
private:
FlagCheckBoxController *controller;
@@ -78,11 +78,11 @@ private:
class AssemblerTab : public QWidget
{
public:
- AssemblerTab( QWidget *parent=0, const char *name=0 );
+ AssemblerTab( TQWidget *parent=0, const char *name=0 );
~AssemblerTab();
- void readFlags(QStringList *str);
- void writeFlags(QStringList *str);
+ void readFlags(TQStringList *str);
+ void writeFlags(TQStringList *str);
private:
FlagCheckBoxController *controller;
@@ -93,19 +93,19 @@ class DebugOptimTab : public QWidget
{
Q_OBJECT
public:
- DebugOptimTab( QWidget *parent=0, const char *name=0 );
+ DebugOptimTab( TQWidget *parent=0, const char *name=0 );
~DebugOptimTab();
- void readFlags(QStringList *str);
- void writeFlags(QStringList *str);
+ void readFlags(TQStringList *str);
+ void writeFlags(TQStringList *str);
private:
FlagCheckBoxController *controller;
FlagRadioButtonController *optimController;
- QRadioButton *m_default;
- QRadioButton *m_default2;
- QRadioButton *m_default3;
+ TQRadioButton *m_default;
+ TQRadioButton *m_default2;
+ TQRadioButton *m_default3;
FlagRadioButton *optim1;
FlagRadioButton *optim2;
@@ -117,11 +117,11 @@ private slots:
class CodegenTab : public QWidget
{
public:
- CodegenTab( QWidget *parent=0, const char *name=0 );
+ CodegenTab( TQWidget *parent=0, const char *name=0 );
~CodegenTab();
- void readFlags(QStringList *str);
- void writeFlags(QStringList *str);
+ void readFlags(TQStringList *str);
+ void writeFlags(TQStringList *str);
private:
FlagCheckBoxController *controller;
@@ -131,11 +131,11 @@ private:
class LinkerTab : public QWidget
{
public:
- LinkerTab( QWidget *parent=0, const char *name=0 );
+ LinkerTab( TQWidget *parent=0, const char *name=0 );
~LinkerTab();
- void readFlags(QStringList *str);
- void writeFlags(QStringList *str);
+ void readFlags(TQStringList *str);
+ void writeFlags(TQStringList *str);
private:
FlagCheckBoxController *controller;
@@ -145,11 +145,11 @@ private:
class MiscTab : public QWidget
{
public:
- MiscTab( QWidget *parent=0, const char *name=0 );
+ MiscTab( TQWidget *parent=0, const char *name=0 );
~MiscTab();
- void readFlags(QStringList *str);
- void writeFlags(QStringList *str);
+ void readFlags(TQStringList *str);
+ void writeFlags(TQStringList *str);
private:
FlagCheckBoxController *controller;
diff --git a/languages/pascal/pascalsupport_part.cpp b/languages/pascal/pascalsupport_part.cpp
index 0c5f96f2..0d8c049b 100644
--- a/languages/pascal/pascalsupport_part.cpp
+++ b/languages/pascal/pascalsupport_part.cpp
@@ -9,9 +9,9 @@
***************************************************************************/
#include <fstream>
-#include <qdir.h>
-#include <qtimer.h>
-#include <qwhatsthis.h>
+#include <tqdir.h>
+#include <tqtimer.h>
+#include <tqwhatsthis.h>
#include <kiconloader.h>
#include <klocale.h>
@@ -47,7 +47,7 @@ typedef KDevGenericFactory<PascalSupportPart> PascalSupportFactory;
static const KDevPluginInfo data("kdevpascalsupport");
K_EXPORT_COMPONENT_FACTORY( libkdevpascalsupport, PascalSupportFactory( data ) )
-PascalSupportPart::PascalSupportPart(QObject *parent, const char *name, const QStringList &)
+PascalSupportPart::PascalSupportPart(TQObject *parent, const char *name, const TQStringList &)
: KDevLanguageSupport(&data, parent, name ? name : "KDevPascalSupport" ),
d( new PascalSupportPartData() )
{
@@ -55,22 +55,22 @@ PascalSupportPart::PascalSupportPart(QObject *parent, const char *name, const QS
setXMLFile("kdevpascalsupport.rc");
d->problemReporter = new ProblemReporter( this );
- connect( core(), SIGNAL(configWidget(KDialogBase*)),
- d->problemReporter, SLOT(configWidget(KDialogBase*)) );
-
- connect( core(), SIGNAL(projectOpened()), this, SLOT(projectOpened()) );
- connect( core(), SIGNAL(projectClosed()), this, SLOT(projectClosed()) );
- connect( partController(), SIGNAL(savedFile(const KURL&)),
- this, SLOT(savedFile(const KURL&)) );
- connect( core(), SIGNAL(contextMenu(QPopupMenu *, const Context *)),
- this, SLOT(contextMenu(QPopupMenu *, const Context *)) );
- connect( core(), SIGNAL(configWidget(KDialogBase*)),
- this, SLOT(configWidget(KDialogBase*)) );
- connect( core( ), SIGNAL( projectConfigWidget( KDialogBase* ) ), this,
- SLOT( projectConfigWidget( KDialogBase* ) ) );
+ connect( core(), TQT_SIGNAL(configWidget(KDialogBase*)),
+ d->problemReporter, TQT_SLOT(configWidget(KDialogBase*)) );
+
+ connect( core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(projectOpened()) );
+ connect( core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(projectClosed()) );
+ connect( partController(), TQT_SIGNAL(savedFile(const KURL&)),
+ this, TQT_SLOT(savedFile(const KURL&)) );
+ connect( core(), TQT_SIGNAL(contextMenu(TQPopupMenu *, const Context *)),
+ this, TQT_SLOT(contextMenu(TQPopupMenu *, const Context *)) );
+ connect( core(), TQT_SIGNAL(configWidget(KDialogBase*)),
+ this, TQT_SLOT(configWidget(KDialogBase*)) );
+ connect( core( ), TQT_SIGNAL( projectConfigWidget( KDialogBase* ) ), this,
+ TQT_SLOT( projectConfigWidget( KDialogBase* ) ) );
mainWindow()->embedOutputView( d->problemReporter, i18n("Problems"), i18n("problem reporter") );
- QWhatsThis::add(d->problemReporter, i18n("<b>Problem reporter</b><p>This window shows various \"problems\" in your project. "
+ TQWhatsThis::add(d->problemReporter, i18n("<b>Problem reporter</b><p>This window shows various \"problems\" in your project. "
"It displays errors reported by a language parser."));
}
@@ -89,17 +89,17 @@ PascalSupportPart::Features PascalSupportPart::features()
void PascalSupportPart::projectOpened()
{
- connect(project(), SIGNAL(addedFilesToProject(const QStringList &)),
- this, SLOT(addedFilesToProject(const QStringList &)));
- connect(project(), SIGNAL(removedFilesFromProject(const QStringList &)),
- this, SLOT(removedFilesFromProject(const QStringList &)));
- connect(project(), SIGNAL(projectCompiled()),
- this, SLOT(slotProjectCompiled()) );
+ connect(project(), TQT_SIGNAL(addedFilesToProject(const TQStringList &)),
+ this, TQT_SLOT(addedFilesToProject(const TQStringList &)));
+ connect(project(), TQT_SIGNAL(removedFilesFromProject(const TQStringList &)),
+ this, TQT_SLOT(removedFilesFromProject(const TQStringList &)));
+ connect(project(), TQT_SIGNAL(projectCompiled()),
+ this, TQT_SLOT(slotProjectCompiled()) );
m_projectFileList = project()->allFiles();
m_projectClosed = false;
- QTimer::singleShot(0, this, SLOT(initialParse()));
+ TQTimer::singleShot(0, this, TQT_SLOT(initialParse()));
}
void PascalSupportPart::projectClosed()
@@ -119,7 +119,7 @@ void PascalSupportPart::projectConfigWidget(KDialogBase *dlg)
return;
}
-void PascalSupportPart::contextMenu(QPopupMenu *popup, const Context *context)
+void PascalSupportPart::contextMenu(TQPopupMenu *popup, const Context *context)
{
Q_UNUSED( popup );
Q_UNUSED( context );
@@ -132,22 +132,22 @@ void PascalSupportPart::savedFile(const KURL &fileName)
emit updatedSourceInfo();
}
-void PascalSupportPart::addedFilesToProject(const QStringList &fileList)
+void PascalSupportPart::addedFilesToProject(const TQStringList &fileList)
{
- for (QStringList::ConstIterator it = fileList.begin(); it != fileList.end() ;++it)
+ for (TQStringList::ConstIterator it = fileList.begin(); it != fileList.end() ;++it)
{
- QString fn = project()->projectDirectory() + "/" + *it;
+ TQString fn = project()->projectDirectory() + "/" + *it;
maybeParse( fn );
kapp->processEvents( 500 );
emit addedSourceInfo(fn);
}
}
-void PascalSupportPart::removedFilesFromProject(const QStringList &fileList)
+void PascalSupportPart::removedFilesFromProject(const TQStringList &fileList)
{
- for (QStringList::ConstIterator it = fileList.begin(); it != fileList.end() ;++it)
+ for (TQStringList::ConstIterator it = fileList.begin(); it != fileList.end() ;++it)
{
- QString fn = project()->projectDirectory() + "/" + *it;
+ TQString fn = project()->projectDirectory() + "/" + *it;
emit aboutToRemoveSourceInfo(fn);
codeModel()->removeFile( codeModel()->fileByName(fn) );
@@ -169,9 +169,9 @@ void PascalSupportPart::initialParse( )
/// @todo Progress indicator!
- QStringList files = project()->allFiles();
- for (QStringList::Iterator it = files.begin(); it != files.end() ;++it){
- QString fn = project()->projectDirectory() + "/" + *it;
+ TQStringList files = project()->allFiles();
+ for (TQStringList::Iterator it = files.begin(); it != files.end() ;++it){
+ TQString fn = project()->projectDirectory() + "/" + *it;
maybeParse( fn );
kapp->processEvents( 500 );
}
@@ -183,7 +183,7 @@ void PascalSupportPart::initialParse( )
}
}
-void PascalSupportPart::maybeParse( const QString & fileName )
+void PascalSupportPart::maybeParse( const TQString & fileName )
{
kdDebug(9013) << "Maybe parse: " << fileName << endl;
@@ -195,12 +195,12 @@ void PascalSupportPart::maybeParse( const QString & fileName )
parse( fileName );
}
-void PascalSupportPart::parse( const QString & fileName )
+void PascalSupportPart::parse( const TQString & fileName )
{
kdDebug(9013) << "PascalSupportPart::parse() -- " << fileName << endl;
- std::ifstream stream( QFile::encodeName( fileName ).data() );
- QCString _fn = fileName.utf8();
+ std::ifstream stream( TQFile::encodeName( fileName ).data() );
+ TQCString _fn = fileName.utf8();
std::string fn( _fn.data() );
PascalLexer lexer( stream );
@@ -249,17 +249,17 @@ KMimeType::List PascalSupportPart::mimeTypes( )
return list;
}
-QString PascalSupportPart::formatTag( const Tag & inputTag )
+TQString PascalSupportPart::formatTag( const Tag & inputTag )
{
Tag tag = inputTag;
switch( tag.kind() )
{
case Tag::Kind_Namespace:
- return QString::fromLatin1("unit ") + tag.name();
+ return TQString::fromLatin1("unit ") + tag.name();
case Tag::Kind_Class:
- return QString::fromLatin1("class ") + tag.name();
+ return TQString::fromLatin1("class ") + tag.name();
case Tag::Kind_Function:
case Tag::Kind_FunctionDeclaration:
@@ -271,20 +271,20 @@ QString PascalSupportPart::formatTag( const Tag & inputTag )
case Tag::Kind_Variable:
case Tag::Kind_VariableDeclaration:
{
- return QString::fromLatin1("var ") + tag.name();
+ return TQString::fromLatin1("var ") + tag.name();
}
break;
}
return tag.name();
}
-QString PascalSupportPart::formatModelItem( const CodeModelItem * item, bool shortDescription )
+TQString PascalSupportPart::formatModelItem( const CodeModelItem * item, bool shortDescription )
{
if (item->isFunction() || item->isFunctionDefinition() )
{
const FunctionModel *model = static_cast<const FunctionModel*>(item);
- QString function;
- QString args;
+ TQString function;
+ TQString args;
ArgumentList argumentList = model->argumentList();
for (ArgumentList::const_iterator it = argumentList.begin(); it != argumentList.end(); ++it)
{
@@ -295,7 +295,7 @@ QString PascalSupportPart::formatModelItem( const CodeModelItem * item, bool sho
function += model->name() + "(" + args + ")";
if( !shortDescription )
- function += (model->isVirtual() ? QString("virtual; ") : QString("") ) + model->resultType() + " ";
+ function += (model->isVirtual() ? TQString("virtual; ") : TQString("") ) + model->resultType() + " ";
return function;
}
@@ -309,11 +309,11 @@ QString PascalSupportPart::formatModelItem( const CodeModelItem * item, bool sho
else if (item->isArgument())
{
const ArgumentModel *model = static_cast<const ArgumentModel*>(item);
- QString arg;
+ TQString arg;
arg += model->name();
arg += ": " + model->type();
if( !shortDescription )
- arg += model->defaultValue().isEmpty() ? QString("") : QString(" = ") + model->defaultValue();
+ arg += model->defaultValue().isEmpty() ? TQString("") : TQString(" = ") + model->defaultValue();
return arg.stripWhiteSpace();
}
else
diff --git a/languages/pascal/pascalsupport_part.h b/languages/pascal/pascalsupport_part.h
index 4319d1f9..2cc8089d 100644
--- a/languages/pascal/pascalsupport_part.h
+++ b/languages/pascal/pascalsupport_part.h
@@ -10,7 +10,7 @@
#ifndef __KDEVPART_PASCALSUPPORT_H__
#define __KDEVPART_PASCALSUPPORT_H__
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
#include "kdevlanguagesupport.h"
class PascalSupportWidget;
@@ -23,14 +23,14 @@ class PascalSupportPart : public KDevLanguageSupport
{
Q_OBJECT
public:
- PascalSupportPart(QObject *parent, const char *name, const QStringList &);
+ PascalSupportPart(TQObject *parent, const char *name, const TQStringList &);
~PascalSupportPart();
virtual Features features();
virtual KMimeType::List mimeTypes();
- virtual QString formatTag( const Tag& tag );
- virtual QString formatModelItem( const CodeModelItem *item, bool shortDescription=false );
+ virtual TQString formatTag( const Tag& tag );
+ virtual TQString formatModelItem( const CodeModelItem *item, bool shortDescription=false );
private slots:
void projectOpened();
@@ -38,22 +38,22 @@ private slots:
void savedFile(const KURL &fileName);
void configWidget(KDialogBase *dlg);
void projectConfigWidget(KDialogBase *dlg);
- void contextMenu(QPopupMenu *popup, const Context *context);
+ void contextMenu(TQPopupMenu *popup, const Context *context);
- void addedFilesToProject(const QStringList &fileList);
- void removedFilesFromProject(const QStringList &fileList);
+ void addedFilesToProject(const TQStringList &fileList);
+ void removedFilesFromProject(const TQStringList &fileList);
void slotProjectCompiled();
void initialParse();
private:
- void maybeParse(const QString &fileName);
- void parse(const QString &fileName);
+ void maybeParse(const TQString &fileName);
+ void parse(const TQString &fileName);
- QGuardedPtr<PascalSupportWidget> m_widget;
+ TQGuardedPtr<PascalSupportWidget> m_widget;
bool m_projectClosed;
- QStringList m_projectFileList;
+ TQStringList m_projectFileList;
PascalSupportPartData* d;
diff --git a/languages/pascal/problemreporter.cpp b/languages/pascal/problemreporter.cpp
index b2c2fee8..30a65739 100644
--- a/languages/pascal/problemreporter.cpp
+++ b/languages/pascal/problemreporter.cpp
@@ -40,23 +40,23 @@
#include <kconfig.h>
-#include <qtimer.h>
-#include <qregexp.h>
-#include <qvbox.h>
+#include <tqtimer.h>
+#include <tqregexp.h>
+#include <tqvbox.h>
#include <kdialogbase.h>
class ProblemItem: public QListViewItem{
public:
- ProblemItem( QListView* parent, const QString& level, const QString& problem,
- const QString& file, const QString& line, const QString& column )
- : QListViewItem( parent, level, problem, file, line, column ) {}
+ ProblemItem( TQListView* parent, const TQString& level, const TQString& problem,
+ const TQString& file, const TQString& line, const TQString& column )
+ : TQListViewItem( parent, level, problem, file, line, column ) {}
- ProblemItem( QListViewItem* parent, const QString& level, const QString& problem,
- const QString& file, const QString& line, const QString& column )
- : QListViewItem( parent, level, problem, file, line, column ) {}
+ ProblemItem( TQListViewItem* parent, const TQString& level, const TQString& problem,
+ const TQString& file, const TQString& line, const TQString& column )
+ : TQListViewItem( parent, level, problem, file, line, column ) {}
- int compare( QListViewItem* item, int column, bool ascending ) const {
+ int compare( TQListViewItem* item, int column, bool ascending ) const {
if( column == 3 || column == 4 ){
int a = text( column ).toInt();
int b = item->text( column ).toInt();
@@ -64,13 +64,13 @@ public:
return 0;
return( a > b ? -1 : 1 );
}
- return QListViewItem::compare( item, column, ascending );
+ return TQListViewItem::compare( item, column, ascending );
}
};
-ProblemReporter::ProblemReporter( PascalSupportPart* part, QWidget* parent, const char* name )
- : QListView( parent, name ),
+ProblemReporter::ProblemReporter( PascalSupportPart* part, TQWidget* parent, const char* name )
+ : TQListView( parent, name ),
m_pascalSupport( part ),
m_editor( 0 ),
m_document( 0 ),
@@ -84,21 +84,21 @@ ProblemReporter::ProblemReporter( PascalSupportPart* part, QWidget* parent, cons
//addColumn( i18n("Column") );
setAllColumnsShowFocus( TRUE );
- m_timer = new QTimer( this );
+ m_timer = new TQTimer( this );
- connect( part->partController(), SIGNAL(activePartChanged(KParts::Part*)),
- this, SLOT(slotActivePartChanged(KParts::Part*)) );
- connect( part->partController(), SIGNAL(partAdded(KParts::Part*)),
- this, SLOT(slotPartAdded(KParts::Part*)) );
- connect( part->partController(), SIGNAL(partRemoved(KParts::Part*)),
- this, SLOT(slotPartRemoved(KParts::Part*)) );
+ connect( part->partController(), TQT_SIGNAL(activePartChanged(KParts::Part*)),
+ this, TQT_SLOT(slotActivePartChanged(KParts::Part*)) );
+ connect( part->partController(), TQT_SIGNAL(partAdded(KParts::Part*)),
+ this, TQT_SLOT(slotPartAdded(KParts::Part*)) );
+ connect( part->partController(), TQT_SIGNAL(partRemoved(KParts::Part*)),
+ this, TQT_SLOT(slotPartRemoved(KParts::Part*)) );
- connect( m_timer, SIGNAL(timeout()), this, SLOT(reparse()) );
+ connect( m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(reparse()) );
- connect( this, SIGNAL(doubleClicked(QListViewItem*)),
- this, SLOT(slotSelected(QListViewItem*)) );
- connect( this, SIGNAL(returnPressed(QListViewItem*)),
- this, SLOT(slotSelected(QListViewItem*)) );
+ connect( this, TQT_SIGNAL(doubleClicked(TQListViewItem*)),
+ this, TQT_SLOT(slotSelected(TQListViewItem*)) );
+ connect( this, TQT_SIGNAL(returnPressed(TQListViewItem*)),
+ this, TQT_SLOT(slotSelected(TQListViewItem*)) );
configure();
}
@@ -128,7 +128,7 @@ void ProblemReporter::slotActivePartChanged( KParts::Part* part )
m_editor = dynamic_cast<KTextEditor::EditInterface*>( part );
if( m_editor )
- connect( m_document, SIGNAL(textChanged()), this, SLOT(slotTextChanged()) );
+ connect( m_document, TQT_SIGNAL(textChanged()), this, TQT_SLOT(slotTextChanged()) );
m_markIface = dynamic_cast<KTextEditor::MarkInterface*>( part );
@@ -168,9 +168,9 @@ void ProblemReporter::reparse()
kdDebug() << "4" << endl;
- QListViewItem* current = firstChild();
+ TQListViewItem* current = firstChild();
while( current ){
- QListViewItem* i = current;
+ TQListViewItem* i = current;
current = current->nextSibling();
if( i->text(2) == m_filename )
@@ -180,8 +180,8 @@ void ProblemReporter::reparse()
kdDebug() << "5" << endl;
if( m_markIface ){
- QPtrList<KTextEditor::Mark> marks = m_markIface->marks();
- QPtrListIterator<KTextEditor::Mark> it( marks );
+ TQPtrList<KTextEditor::Mark> marks = m_markIface->marks();
+ TQPtrListIterator<KTextEditor::Mark> it( marks );
while( it.current() ){
m_markIface->removeMark( it.current()->line, KTextEditor::MarkInterface::markType07 );
++it;
@@ -199,7 +199,7 @@ void ProblemReporter::reparse()
kdDebug() << "8" << endl;
}
-void ProblemReporter::slotSelected( QListViewItem* item )
+void ProblemReporter::slotSelected( TQListViewItem* item )
{
KURL url( item->text(2) );
int line = item->text( 3 ).toInt();
@@ -207,8 +207,8 @@ void ProblemReporter::slotSelected( QListViewItem* item )
m_pascalSupport->partController()->editDocument( url, line-1 );
}
-void ProblemReporter::reportError( QString message,
- QString filename,
+void ProblemReporter::reportError( TQString message,
+ TQString filename,
int line, int column )
{
if( m_markIface ){
@@ -217,34 +217,34 @@ void ProblemReporter::reportError( QString message,
new ProblemItem( this,
"error",
- message.replace( QRegExp("\n"), "" ),
+ message.replace( TQRegExp("\n"), "" ),
filename,
- QString::number( line ),
- QString::number( column ) );
+ TQString::number( line ),
+ TQString::number( column ) );
}
-void ProblemReporter::reportWarning( QString message,
- QString filename,
+void ProblemReporter::reportWarning( TQString message,
+ TQString filename,
int line, int column )
{
new ProblemItem( this,
"warning",
- message.replace( QRegExp("\n"), "" ),
+ message.replace( TQRegExp("\n"), "" ),
filename,
- QString::number( line ),
- QString::number( column ) );
+ TQString::number( line ),
+ TQString::number( column ) );
}
-void ProblemReporter::reportMessage( QString message,
- QString filename,
+void ProblemReporter::reportMessage( TQString message,
+ TQString filename,
int line, int column )
{
- new QListViewItem( this,
+ new TQListViewItem( this,
"message",
- message.replace( QRegExp("\n"), "" ),
+ message.replace( TQRegExp("\n"), "" ),
filename,
- QString::number( line ),
- QString::number( column ) );
+ TQString::number( line ),
+ TQString::number( column ) );
}
void ProblemReporter::configure()
@@ -260,10 +260,10 @@ void ProblemReporter::configWidget( KDialogBase* dlg )
{
/// \FIXME adymo: use problem reporter configuration
Q_UNUSED(dlg);
-/* QVBox *vbox = dlg->addVBoxPage(i18n("Pascal Parsing"));
+/* TQVBox *vbox = dlg->addVBoxPage(i18n("Pascal Parsing"));
ConfigureProblemReporter* w = new ConfigureProblemReporter( vbox );
- connect(dlg, SIGNAL(okClicked()), w, SLOT(accept()));
- connect(dlg, SIGNAL(okClicked()), this, SLOT(configure()));*/
+ connect(dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()));
+ connect(dlg, TQT_SIGNAL(okClicked()), this, TQT_SLOT(configure()));*/
}
void ProblemReporter::slotPartAdded( KParts::Part* part )
diff --git a/languages/pascal/problemreporter.h b/languages/pascal/problemreporter.h
index 936a63a0..fdb798e8 100644
--- a/languages/pascal/problemreporter.h
+++ b/languages/pascal/problemreporter.h
@@ -19,7 +19,7 @@
#ifndef PROBLEMSREPORTER_H
#define PROBLEMSREPORTER_H
-#include <qlistview.h>
+#include <tqlistview.h>
class PascalSupportPart;
class QTimer;
@@ -39,16 +39,16 @@ namespace KTextEditor{
class ProblemReporter: public QListView{
Q_OBJECT
public:
- ProblemReporter( PascalSupportPart* part, QWidget* parent=0, const char* name=0 );
+ ProblemReporter( PascalSupportPart* part, TQWidget* parent=0, const char* name=0 );
virtual ~ProblemReporter();
- virtual void reportError( QString message, QString filename,
+ virtual void reportError( TQString message, TQString filename,
int line, int column );
- virtual void reportWarning( QString message, QString filename,
+ virtual void reportWarning( TQString message, TQString filename,
int line, int column );
- virtual void reportMessage( QString message, QString filename,
+ virtual void reportMessage( TQString message, TQString filename,
int line, int column );
public slots:
@@ -61,15 +61,15 @@ private slots:
void slotPartRemoved( KParts::Part* );
void slotActivePartChanged( KParts::Part* );
void slotTextChanged();
- void slotSelected( QListViewItem* );
+ void slotSelected( TQListViewItem* );
private:
PascalSupportPart* m_pascalSupport;
KTextEditor::EditInterface* m_editor;
KTextEditor::Document* m_document;
KTextEditor::MarkInterface* m_markIface;
- QTimer* m_timer;
- QString m_filename;
+ TQTimer* m_timer;
+ TQString m_filename;
int m_active;
int m_delay;
BackgroundParser* m_bgParser;
diff --git a/languages/perl/perlconfigwidget.cpp b/languages/perl/perlconfigwidget.cpp
index 475ed8af..e41def0c 100644
--- a/languages/perl/perlconfigwidget.cpp
+++ b/languages/perl/perlconfigwidget.cpp
@@ -11,13 +11,13 @@
#include "perlconfigwidget.h"
-#include <qcheckbox.h>
-#include <qlineedit.h>
+#include <tqcheckbox.h>
+#include <tqlineedit.h>
#include "domutil.h"
-PerlConfigWidget::PerlConfigWidget(QDomDocument &projectDom,
- QWidget *parent, const char *name)
+PerlConfigWidget::PerlConfigWidget(TQDomDocument &projectDom,
+ TQWidget *parent, const char *name)
: PerlConfigWidgetBase(parent, name), dom(projectDom)
{
interpreter_edit->setText(DomUtil::readEntry(dom, "/kdevperlsupport/run/interpreter"));
diff --git a/languages/perl/perlconfigwidget.h b/languages/perl/perlconfigwidget.h
index 07364a40..9fbcc804 100644
--- a/languages/perl/perlconfigwidget.h
+++ b/languages/perl/perlconfigwidget.h
@@ -13,7 +13,7 @@
#define _PERLCONFIGWIDGET_H_
#include "perlconfigwidgetbase.h"
-#include <qdom.h>
+#include <tqdom.h>
class PerlConfigWidget : public PerlConfigWidgetBase
@@ -21,14 +21,14 @@ class PerlConfigWidget : public PerlConfigWidgetBase
Q_OBJECT
public:
- PerlConfigWidget( QDomDocument &projectDom, QWidget *parent=0, const char *name=0 );
+ PerlConfigWidget( TQDomDocument &projectDom, TQWidget *parent=0, const char *name=0 );
~PerlConfigWidget();
public slots:
void accept();
private:
- QDomDocument &dom;
+ TQDomDocument &dom;
};
#endif
diff --git a/languages/perl/perldoc.cpp b/languages/perl/perldoc.cpp
index cbb4d18f..cc0a03f9 100644
--- a/languages/perl/perldoc.cpp
+++ b/languages/perl/perldoc.cpp
@@ -5,7 +5,7 @@
#include <sys/stat.h>
#include <unistd.h>
-#include <qtextstream.h>
+#include <tqtextstream.h>
#include <kdebug.h>
#include <klocale.h>
#include <kstandarddirs.h>
@@ -17,7 +17,7 @@
using namespace KIO;
-PerldocProtocol::PerldocProtocol(const QCString &pool, const QCString &app)
+PerldocProtocol::PerldocProtocol(const TQCString &pool, const TQCString &app)
: SlaveBase("perldoc", pool, app)
{}
@@ -28,12 +28,12 @@ PerldocProtocol::~PerldocProtocol()
void PerldocProtocol::get(const KURL& url)
{
- QStringList l = QStringList::split('/', url.path());
+ TQStringList l = TQStringList::split('/', url.path());
mimeType("text/html");
bool plain = false;
- QString cmd = "perldoc ";
+ TQString cmd = "perldoc ";
if (l[0] == "functions") {
plain = true;
cmd += "-t -f ";
@@ -43,7 +43,7 @@ void PerldocProtocol::get(const KURL& url)
cmd += KProcess::quote(l[1]);
cmd += " | pod2html";
} else {
- QCString errstr(i18n("The only existing directories are functions and faq.").local8Bit());
+ TQCString errstr(i18n("The only existing directories are functions and faq.").local8Bit());
data(errstr);
finished();
return;
@@ -52,11 +52,11 @@ void PerldocProtocol::get(const KURL& url)
kdDebug() << "Command: " << cmd << endl;
if (plain)
- data(QCString("<blockquote>"));
+ data(TQCString("<blockquote>"));
FILE *fd = popen(cmd.local8Bit().data(), "r");
char buffer[4090];
- QByteArray array;
+ TQByteArray array;
while (!feof(fd)) {
int n = fread(buffer, 1, 2048, fd);
@@ -72,7 +72,7 @@ void PerldocProtocol::get(const KURL& url)
pclose(fd);
if (plain)
- data(QCString("</blockquote>"));
+ data(TQCString("</blockquote>"));
finished();
}
@@ -80,15 +80,15 @@ void PerldocProtocol::get(const KURL& url)
void PerldocProtocol::mimetype(const KURL &url)
{
- QStringList l = QStringList::split('/', url.path());
+ TQStringList l = TQStringList::split('/', url.path());
mimeType((l[0] == "faq")? "text/html" : "text/plain");
finished();
}
-QCString PerldocProtocol::errorMessage()
+TQCString PerldocProtocol::errorMessage()
{
- return QCString( "<html><body bgcolor=\"#FFFFFF\">" + i18n("Error in perldoc").local8Bit() + "</body></html>" );
+ return TQCString( "<html><body bgcolor=\"#FFFFFF\">" + i18n("Error in perldoc").local8Bit() + "</body></html>" );
}
diff --git a/languages/perl/perldoc.h b/languages/perl/perldoc.h
index 00cced89..4540c045 100644
--- a/languages/perl/perldoc.h
+++ b/languages/perl/perldoc.h
@@ -1,14 +1,14 @@
#ifndef _PERLDOC_H_
#define _PERLDOC_H_
-#include <qobject.h>
+#include <tqobject.h>
#include <kio/slavebase.h>
class PerldocProtocol : public KIO::SlaveBase
{
public:
- PerldocProtocol(const QCString &pool, const QCString &app);
+ PerldocProtocol(const TQCString &pool, const TQCString &app);
virtual ~PerldocProtocol();
virtual void get(const KURL& url);
@@ -18,8 +18,8 @@ public:
protected:
void decodeURL(const KURL &url);
- void decodePath(QString path);
- QCString errorMessage();
+ void decodePath(TQString path);
+ TQCString errorMessage();
};
#endif
diff --git a/languages/perl/perlparser.cpp b/languages/perl/perlparser.cpp
index a6a5a834..ad0b5de2 100644
--- a/languages/perl/perlparser.cpp
+++ b/languages/perl/perlparser.cpp
@@ -18,11 +18,11 @@
#include "perlparser.h"
#include <kdebug.h>
-#include <qfile.h>
-#include <qregexp.h>
-#include <qfileinfo.h>
+#include <tqfile.h>
+#include <tqregexp.h>
+#include <tqfileinfo.h>
-perlparser::perlparser(KDevCore* core,CodeModel* model, QString interpreter) {
+perlparser::perlparser(KDevCore* core,CodeModel* model, TQString interpreter) {
m_core = core;
m_model = model;
m_interpreter=interpreter;
@@ -34,7 +34,7 @@ perlparser::perlparser(KDevCore* core,CodeModel* model, QString interpreter) {
perlparser::~perlparser(){
}
-const QStringList perlparser::UseFiles()
+const TQStringList perlparser::UseFiles()
{
return m_usefiles;
}
@@ -43,13 +43,13 @@ void perlparser::initialParse() {
m_usefiles.clear();
}
-void perlparser::parse(const QString &fileName){
- QFile f(fileName);
+void perlparser::parse(const TQString &fileName){
+ TQFile f(fileName);
if (!f.open(IO_ReadOnly))
return;
- QTextStream stream(&f);
- QStringList list;
- QString rawline;
+ TQTextStream stream(&f);
+ TQStringList list;
+ TQString rawline;
while (!stream.eof()) {
rawline = stream.readLine();
list.append(rawline.stripWhiteSpace().local8Bit());
@@ -63,23 +63,23 @@ void perlparser::parse(const QString &fileName){
m_model->addFile( m_file );
}
-void perlparser::parseLines(QStringList* lines,const QString &fileName)
+void perlparser::parseLines(TQStringList* lines,const TQString &fileName)
{
- QRegExp packagere("^[ \t]*package[ \t]+([+A-Za-z0-9_:]*).*\\;");
- QRegExp basere("^[ \t]*use[ \t]+base[ \t]*\\(\'*\"*([A-Za-z0-9_:]*)");
- QRegExp libre("^[ \t]*use[ \t]+lib[ \t]*\\(\'*\"*([A-Za-z0-9_:]*)");
- QRegExp usere("^[ \t]*use[ \t]+([+A-Za-z0-9_:]*).*\\;");
- QRegExp isare("^[ \t]*@ISA[ \t=qw\\(\'\"]*([A-Za-z0-9_: ]*)");
- QRegExp globalre("^[ \t]*our[ \t]+\\(*([ \t,$%@*+A-Za-z0-9_]*)\\)*.*");
- QRegExp myre("^[ \t]*my[ \t]+\\(*([ \t,$%@*+A-Za-z0-9_]*)\\)*.*");
- QRegExp subre("^[ \t]*sub[ \t]+([A-Za-z0-9_]+)([A-Za-z0-9_]|([ \t]*[{])?)$");
- QRegExp blessre("bless[ \t]*[\\( ]*([,$%@*+A-Za-z0-9_]*).*;");
- QRegExp namere("^[ \t]*([$%@*])([A-Za-z0-9_]*).*$");
- QRegExp privatere("^_([A-Za-z0-9_]*)");
- QRegExp startpod("^=[a-z0-9]+ [a-z0-9]*");
- QRegExp cutpod("^=cut");
-
- QString line;
+ TQRegExp packagere("^[ \t]*package[ \t]+([+A-Za-z0-9_:]*).*\\;");
+ TQRegExp basere("^[ \t]*use[ \t]+base[ \t]*\\(\'*\"*([A-Za-z0-9_:]*)");
+ TQRegExp libre("^[ \t]*use[ \t]+lib[ \t]*\\(\'*\"*([A-Za-z0-9_:]*)");
+ TQRegExp usere("^[ \t]*use[ \t]+([+A-Za-z0-9_:]*).*\\;");
+ TQRegExp isare("^[ \t]*@ISA[ \t=qw\\(\'\"]*([A-Za-z0-9_: ]*)");
+ TQRegExp globalre("^[ \t]*our[ \t]+\\(*([ \t,$%@*+A-Za-z0-9_]*)\\)*.*");
+ TQRegExp myre("^[ \t]*my[ \t]+\\(*([ \t,$%@*+A-Za-z0-9_]*)\\)*.*");
+ TQRegExp subre("^[ \t]*sub[ \t]+([A-Za-z0-9_]+)([A-Za-z0-9_]|([ \t]*[{])?)$");
+ TQRegExp blessre("bless[ \t]*[\\( ]*([,$%@*+A-Za-z0-9_]*).*;");
+ TQRegExp namere("^[ \t]*([$%@*])([A-Za-z0-9_]*).*$");
+ TQRegExp privatere("^_([A-Za-z0-9_]*)");
+ TQRegExp startpod("^=[a-z0-9]+ [a-z0-9]*");
+ TQRegExp cutpod("^=cut");
+
+ TQString line;
//clear all "last" know things
m_lastsub="";
@@ -98,7 +98,7 @@ void perlparser::parseLines(QStringList* lines,const QString &fileName)
bool endpod = false;
//check if we are parsing a script or module
- QFileInfo fi(fileName);
+ TQFileInfo fi(fileName);
bool inscript =(fi.extension() == "pl");
kdDebug(9016) << "inscript : " << inscript << "," << fi.extension() << endl;
@@ -106,7 +106,7 @@ void perlparser::parseLines(QStringList* lines,const QString &fileName)
addScript(fileName,lineNo,fi.fileName());
}
- for ( QStringList::Iterator it = lines->begin(); it != lines->end(); ++it ) {
+ for ( TQStringList::Iterator it = lines->begin(); it != lines->end(); ++it ) {
++lineNo;
line = (*it).local8Bit();
//empty line ?
@@ -121,7 +121,7 @@ void perlparser::parseLines(QStringList* lines,const QString &fileName)
//sub matching
if (subre.search(line)>=0){
- QString subname=subre.cap(1);
+ TQString subname=subre.cap(1);
kdDebug(9016) << "subre match [" << subname << "]" << endl;
bool prive = privatere.search(subname) >= 0;
kdDebug(9016) << "prive match [" << prive << "]" << endl;
@@ -136,12 +136,12 @@ void perlparser::parseLines(QStringList* lines,const QString &fileName)
//our matching
if (globalre.search(line)>=0) {
//splitup multible ours
- QString varlist=globalre.cap(1);
+ TQString varlist=globalre.cap(1);
kdDebug(9016) << "globalre match [" << varlist <<"]" << endl;
- QStringList vars=QStringList::split(",",varlist);
- for ( QStringList::Iterator it = vars.begin(); it != vars.end(); ++it ) {
+ TQStringList vars=TQStringList::split(",",varlist);
+ for ( TQStringList::Iterator it = vars.begin(); it != vars.end(); ++it ) {
if (namere.search(*it)>=0) {
- QString var = namere.cap(2);
+ TQString var = namere.cap(2);
kdDebug(9016) << "namere match [" << var << "]" << endl;
if (m_lastpackage) { addAttributetoPackage(fileName,lineNo,var); }
else { addAttributetoScript(fileName,lineNo,var); }
@@ -161,7 +161,7 @@ void perlparser::parseLines(QStringList* lines,const QString &fileName)
//base matching
if ((basere.search(line)>=0) && (!m_inscript)) {
- QString parent = basere.cap(1);
+ TQString parent = basere.cap(1);
//create child & parent classes
kdDebug(9016) << "basere match [" << parent << "]" << endl;
addClass(fileName,lineNo);
@@ -169,7 +169,7 @@ void perlparser::parseLines(QStringList* lines,const QString &fileName)
continue;
} else {
if (libre.search(line)>=0) {
- QString path = libre.cap(1);
+ TQString path = libre.cap(1);
//add lib to INC path list
kdDebug(9016) << "libre match [" << path << "]" << endl;
m_INClist.append(path);
@@ -177,7 +177,7 @@ void perlparser::parseLines(QStringList* lines,const QString &fileName)
} else {
if (usere.search(line)>=0) {
//add lib to use list for later parsing
- QString lib = usere.cap(1);
+ TQString lib = usere.cap(1);
kdDebug(9016) << "usere match [" << lib << "]" << endl;
addUseLib(lib);
continue;
@@ -186,7 +186,7 @@ void perlparser::parseLines(QStringList* lines,const QString &fileName)
} //base
if ((isare.search(line)>=0) && (!m_inscript)) {
- QString parent = isare.cap(1);
+ TQString parent = isare.cap(1);
//create child & parent classes
kdDebug(9016) << "isare match [" << parent << "]" << endl;
addClass(fileName,lineNo);
@@ -195,7 +195,7 @@ void perlparser::parseLines(QStringList* lines,const QString &fileName)
} //isa
if ((packagere.search(line)>=0) && (!m_inscript)) {
- QString package=packagere.cap(1);
+ TQString package=packagere.cap(1);
kdDebug(9016) << "packagere match [" << package << "]" << endl;
addPackage(fileName,lineNo,package);
continue;
@@ -204,7 +204,7 @@ void perlparser::parseLines(QStringList* lines,const QString &fileName)
} // for lines loop
}
-void perlparser::addPackage(const QString& fileName ,int lineNr , const QString& name)
+void perlparser::addPackage(const TQString& fileName ,int lineNr , const TQString& name)
{
kdDebug(9016) << "AddPackage [" << name << "]" << endl;
NamespaceDom package = m_model->create<NamespaceModel>();
@@ -234,7 +234,7 @@ void perlparser::addPackage(const QString& fileName ,int lineNr , const QString&
}
-void perlparser::addScript(const QString& fileName ,int lineNr ,const QString& name)
+void perlparser::addScript(const TQString& fileName ,int lineNr ,const TQString& name)
{
kdDebug(9016) << "addScript [" << name << "]" << endl;
@@ -269,7 +269,7 @@ void perlparser::addScript(const QString& fileName ,int lineNr ,const QString& n
}
-void perlparser::addAttributetoPackage(const QString& fileName ,int lineNr ,const QString& name)
+void perlparser::addAttributetoPackage(const TQString& fileName ,int lineNr ,const TQString& name)
{
kdDebug(9016) << "addAttributetoPackage [" << name << "]" << endl;
VariableDom var = m_model->create<VariableModel>();
@@ -286,7 +286,7 @@ void perlparser::addAttributetoPackage(const QString& fileName ,int lineNr ,cons
m_lastattr=name;
}
-void perlparser::addAttributetoScript(const QString& fileName ,int lineNr ,const QString& name)
+void perlparser::addAttributetoScript(const TQString& fileName ,int lineNr ,const TQString& name)
{
kdDebug(9016) << "addAttributetoScript [" << name << "]" << endl;
VariableDom var = m_model->create<VariableModel>();
@@ -301,7 +301,7 @@ void perlparser::addAttributetoScript(const QString& fileName ,int lineNr ,const
}
}
-void perlparser::addClass(const QString& fileName ,int lineNr)
+void perlparser::addClass(const TQString& fileName ,int lineNr)
{
kdDebug(9016) << "addClass [ " << m_lastpackagename << " ]" << endl;
if (m_lastpackage->hasClass(m_lastpackagename)) {
@@ -318,7 +318,7 @@ void perlparser::addClass(const QString& fileName ,int lineNr)
}
}
-void perlparser::addConstructor(const QString& fileName ,int lineNr ,const QString& name)
+void perlparser::addConstructor(const TQString& fileName ,int lineNr ,const TQString& name)
{
kdDebug(9016) << "set Constructor["<< name << "]" << endl;
@@ -344,7 +344,7 @@ void perlparser::addConstructor(const QString& fileName ,int lineNr ,const QStri
m_lastclass->setStartPosition(lineNr,0);
}
-void perlparser::addGlobalSub(const QString& fileName ,int lineNr ,const QString& name ,bool privatesub)
+void perlparser::addGlobalSub(const TQString& fileName ,int lineNr ,const TQString& name ,bool privatesub)
{
kdDebug(9016) << "addGlobalSub[ " << name << "]" << endl;
@@ -367,7 +367,7 @@ void perlparser::addGlobalSub(const QString& fileName ,int lineNr ,const QString
m_lastsub=name;
}
-void perlparser::addScriptSub(const QString& fileName ,int lineNr ,const QString& name ,bool privatesub)
+void perlparser::addScriptSub(const TQString& fileName ,int lineNr ,const TQString& name ,bool privatesub)
{
kdDebug(9016) << "addScriptSub[ " << name << "]" << endl;
@@ -385,7 +385,7 @@ void perlparser::addScriptSub(const QString& fileName ,int lineNr ,const QString
m_lastsub=name;
}
-void perlparser::addClassMethod(const QString& fileName ,int lineNr ,const QString& name ,bool privatesub)
+void perlparser::addClassMethod(const TQString& fileName ,int lineNr ,const TQString& name ,bool privatesub)
{
kdDebug(9016) << "addClassMethod[ " << name << "]" << endl;
FunctionDom method = m_model->create<FunctionModel>();
@@ -406,7 +406,7 @@ void perlparser::addClassMethod(const QString& fileName ,int lineNr ,const QStri
m_lastsub=name;
}
-void perlparser::addPackageSub(const QString& fileName ,int lineNr ,const QString& name ,bool privatesub)
+void perlparser::addPackageSub(const TQString& fileName ,int lineNr ,const TQString& name ,bool privatesub)
{
kdDebug(9016) << "addPackageSub[ " << name << "]" << endl;
FunctionDom method = m_model->create<FunctionModel>();
@@ -424,7 +424,7 @@ void perlparser::addPackageSub(const QString& fileName ,int lineNr ,const QStrin
m_lastsub=name;
}
-void perlparser::addParentClass(const QString& parent)
+void perlparser::addParentClass(const TQString& parent)
{
kdDebug(9016) << "addParentClass[ " << parent << "]" << endl;
if (m_lastclass) {
@@ -434,7 +434,7 @@ void perlparser::addParentClass(const QString& parent)
}
}
-void perlparser::addUseLib(const QString& lib)
+void perlparser::addUseLib(const TQString& lib)
{
if (!m_model->hasFile(lib)) {
if (m_usefiles.findIndex(lib) == -1) {
@@ -450,12 +450,12 @@ void perlparser::getPerlINC() {
m_INClist.clear();
- QString cmd = "/usr/bin/perl -e\" print join('|',@INC);\"";
- QString result;
+ TQString cmd = "/usr/bin/perl -e\" print join('|',@INC);\"";
+ TQString result;
FILE *fd = popen(cmd.local8Bit().data(), "r");
char buffer[4090];
- QByteArray array;
+ TQByteArray array;
while (!feof(fd)) {
int n = fread(buffer, 1, 2048, fd);
@@ -464,26 +464,26 @@ void perlparser::getPerlINC() {
return;
}
array.setRawData(buffer, n);
- result=QString::QString(array);
+ result=TQString::TQString(array);
array.resetRawData(buffer, n);
}
pclose(fd);
//get INC list so we can use it to parse "use" modules
- m_INClist = QStringList::split(QString("|"),result);
+ m_INClist = TQStringList::split(TQString("|"),result);
kdDebug(9016) << "INC " << m_INClist.size() << " "<< result << endl;
}
-QString perlparser::findLib( const QString& lib)
+TQString perlparser::findLib( const TQString& lib)
{
- QString result;
+ TQString result;
- QString file=lib;
- file.replace( QRegExp("::"), QString("/"));
+ TQString file=lib;
+ file.replace( TQRegExp("::"), TQString("/"));
//find the correct path by using the INC list
- QStringList::Iterator inc = m_INClist.begin();
+ TQStringList::Iterator inc = m_INClist.begin();
while((inc != m_INClist.end()) && (result.isEmpty()) ) {
- QFileInfo fi((*inc) + "/" + file + ".pm");
+ TQFileInfo fi((*inc) + "/" + file + ".pm");
if ( fi.exists() ) {
result = (*inc) + "/" + file + ".pm";
}
diff --git a/languages/perl/perlparser.h b/languages/perl/perlparser.h
index 01ded7d8..b536596b 100644
--- a/languages/perl/perlparser.h
+++ b/languages/perl/perlparser.h
@@ -28,41 +28,41 @@
class perlparser {
public:
- perlparser(KDevCore* core,CodeModel* model, QString interpreter);
+ perlparser(KDevCore* core,CodeModel* model, TQString interpreter);
perlparser();
~perlparser();
void initialParse();
- void parse(const QString &fileName);
- void parseLines(QStringList* lines,const QString& fileName);
- const QStringList UseFiles();
- QString findLib( const QString& lib);
+ void parse(const TQString &fileName);
+ void parseLines(TQStringList* lines,const TQString& fileName);
+ const TQStringList UseFiles();
+ TQString findLib( const TQString& lib);
private:
//global functions to add to ClassStore
- void addPackage(const QString& fileName ,int lineNr , const QString& name);
- void addAttributetoScript(const QString& fileName ,int lineNr ,const QString& name);
- void addAttributetoPackage(const QString& fileName ,int lineNr ,const QString& name);
- void addClass(const QString& fileName ,int lineNr );
- void addConstructor(const QString& fileName ,int lineNr ,const QString& methodname);
- void addGlobalSub(const QString& fileName ,int lineNr , const QString& name, bool privatesub);
- void addScriptSub(const QString& fileName ,int lineNr , const QString& name, bool privatesub);
- void addClassMethod(const QString& fileName ,int lineNr , const QString& name , bool privatesub);
- void addPackageSub(const QString& fileName ,int lineNr , const QString& name, bool privatesub);
- void addParentClass(const QString& parent);
- void addScript(const QString& fileName ,int lineNr , const QString& name);
- void addUseLib(const QString& lib);
+ void addPackage(const TQString& fileName ,int lineNr , const TQString& name);
+ void addAttributetoScript(const TQString& fileName ,int lineNr ,const TQString& name);
+ void addAttributetoPackage(const TQString& fileName ,int lineNr ,const TQString& name);
+ void addClass(const TQString& fileName ,int lineNr );
+ void addConstructor(const TQString& fileName ,int lineNr ,const TQString& methodname);
+ void addGlobalSub(const TQString& fileName ,int lineNr , const TQString& name, bool privatesub);
+ 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 addScript(const TQString& fileName ,int lineNr , const TQString& name);
+ void addUseLib(const TQString& lib);
void getPerlINC();
bool m_inpackage;
bool m_inscript;
bool m_inclass;
- QString m_lastsub;
- QString m_lastparentclass;
- QString m_lastattr;
- QString m_lastpackagename;
- QString m_lastscriptname;
+ TQString m_lastsub;
+ TQString m_lastparentclass;
+ TQString m_lastattr;
+ TQString m_lastpackagename;
+ TQString m_lastscriptname;
NamespaceDom m_lastscript;
NamespaceDom m_lastpackage;
@@ -74,12 +74,12 @@ class perlparser {
FileDom m_file;
//this willhav a list of INC paths
- QStringList m_INClist;
+ TQStringList m_INClist;
//this will get a list off all files "use" in the perl files
//and need additional parsing to include the classes in the classview
- QStringList m_usefiles;
+ TQStringList m_usefiles;
- QString m_interpreter;
+ TQString m_interpreter;
};
diff --git a/languages/perl/perlsupportpart.cpp b/languages/perl/perlsupportpart.cpp
index 4305644e..bb9b51c3 100644
--- a/languages/perl/perlsupportpart.cpp
+++ b/languages/perl/perlsupportpart.cpp
@@ -11,20 +11,20 @@
#include "perlsupportpart.h"
-#include <qfileinfo.h>
-#include <qpopupmenu.h>
-#include <qstringlist.h>
-#include <qtextstream.h>
-#include <qtimer.h>
+#include <tqfileinfo.h>
+#include <tqpopupmenu.h>
+#include <tqstringlist.h>
+#include <tqtextstream.h>
+#include <tqtimer.h>
#include <kaction.h>
#include <kapplication.h>
#include <kdebug.h>
#include <kdevgenericfactory.h>
#include <kinputdialog.h>
#include <klocale.h>
-#include <qregexp.h>
+#include <tqregexp.h>
#include <codemodel.h>
-#include <qprogressbar.h>
+#include <tqprogressbar.h>
#include <kstatusbar.h>
#include "kdevmainwindow.h"
@@ -48,42 +48,42 @@ typedef KDevGenericFactory<PerlSupportPart> PerlSupportFactory;
static const KDevPluginInfo data("kdevperlsupport");
K_EXPORT_COMPONENT_FACTORY( libkdevperlsupport, PerlSupportFactory( data ) )
-PerlSupportPart::PerlSupportPart(QObject *parent, const char *name, const QStringList &)
+PerlSupportPart::PerlSupportPart(TQObject *parent, const char *name, const TQStringList &)
: KDevLanguageSupport(&data, parent, name ? name : "PerlSupportPart")
{
setInstance(PerlSupportFactory::instance());
setXMLFile("kdevperlsupport.rc");
- connect( core(), SIGNAL(projectOpened()), this, SLOT(projectOpened()) );
- connect( core(), SIGNAL(projectClosed()), this, SLOT(projectClosed()) );
- connect( partController(), SIGNAL(savedFile(const KURL&)),
- this, SLOT(savedFile(const KURL&)) );
+ connect( core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(projectOpened()) );
+ connect( core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(projectClosed()) );
+ connect( partController(), TQT_SIGNAL(savedFile(const KURL&)),
+ this, TQT_SLOT(savedFile(const KURL&)) );
KAction *action;
action = new KAction( i18n("Execute Main Program"), "exec", 0,
- this, SLOT(slotExecute()),
+ this, TQT_SLOT(slotExecute()),
actionCollection(), "build_exec" );
action->setToolTip( i18n("Runs the Perl program") );
action = new KAction( i18n("Execute String..."), "exec", 0,
- this, SLOT(slotExecuteString()),
+ this, TQT_SLOT(slotExecuteString()),
actionCollection(), "build_execstring" );
action->setToolTip( i18n("Executes a string as Perl code") );
action = new KAction( i18n("Start Perl Interpreter"), "exec", 0,
- this, SLOT(slotStartInterpreter()),
+ this, TQT_SLOT(slotStartInterpreter()),
actionCollection(), "build_runinterpreter" );
action->setToolTip( i18n("Starts the Perl interpreter without a program") );
action = new KAction( i18n("Find Perl Function Documentation..."), 0,
- this, SLOT(slotPerldocFunction()),
+ this, TQT_SLOT(slotPerldocFunction()),
actionCollection(), "help_perldocfunction" );
action->setToolTip( i18n("Show the documentation page of a Perl function") );
action = new KAction( i18n("Find Perl FAQ Entry..."), 0,
- this, SLOT(slotPerldocFAQ()),
+ this, TQT_SLOT(slotPerldocFAQ()),
actionCollection(), "help_perldocfaq" );
action->setToolTip( i18n("Show the FAQ entry for a keyword") );
@@ -106,14 +106,14 @@ void PerlSupportPart::projectOpened()
{
kdDebug(9007) << "projectOpened()" << endl;
- connect( project(), SIGNAL(addedFilesToProject(const QStringList &)),
- this, SLOT(addedFilesToProject(const QStringList &)) );
- connect( project(), SIGNAL(removedFilesFromProject(const QStringList &)),
- this, SLOT(removedFilesFromProject(const QStringList &)) );
+ connect( project(), TQT_SIGNAL(addedFilesToProject(const TQStringList &)),
+ this, TQT_SLOT(addedFilesToProject(const TQStringList &)) );
+ connect( project(), TQT_SIGNAL(removedFilesFromProject(const TQStringList &)),
+ this, TQT_SLOT(removedFilesFromProject(const TQStringList &)) );
// We want to parse only after all components have been
// properly initialized
- QTimer::singleShot(0, this, SLOT(initialParse()));
+ TQTimer::singleShot(0, this, TQT_SLOT(initialParse()));
}
@@ -121,11 +121,11 @@ void PerlSupportPart::projectClosed()
{
}
-void PerlSupportPart::maybeParse(const QString fileName)
+void PerlSupportPart::maybeParse(const TQString fileName)
{
- QFileInfo fi(fileName);
- QString path = fi.filePath();
- QString extension = fi.extension();
+ TQFileInfo fi(fileName);
+ TQString path = fi.filePath();
+ TQString extension = fi.extension();
if (extension == "pl" || extension == "pm") {
kdDebug(9016) << "maybe " << fileName << endl;
removeWithReference(fileName);
@@ -134,11 +134,11 @@ void PerlSupportPart::maybeParse(const QString fileName)
}
}
-void PerlSupportPart::addedFilesToProject(const QStringList &fileList)
+void PerlSupportPart::addedFilesToProject(const TQStringList &fileList)
{
kdDebug(9016) << "addedFilesToProject()" << endl;
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = fileList.begin(); it != fileList.end(); ++it )
{
@@ -147,13 +147,13 @@ void PerlSupportPart::addedFilesToProject(const QStringList &fileList)
}
-void PerlSupportPart::removedFilesFromProject(const QStringList &fileList)
+void PerlSupportPart::removedFilesFromProject(const TQStringList &fileList)
{
kdDebug(9016) << "removedFilesFromProject()" << endl;
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = fileList.begin(); it != fileList.end(); ++it )
{
- QString fileName = project()->projectDirectory() + "/" + ( *it );
+ TQString fileName = project()->projectDirectory() + "/" + ( *it );
removeWithReference(fileName);
}
emit updatedSourceInfo();
@@ -180,9 +180,9 @@ KDevLanguageSupport::Features PerlSupportPart::features()
// return Functions;
}
-QString PerlSupportPart::interpreter()
+TQString PerlSupportPart::interpreter()
{
- QString prog = DomUtil::readEntry(*projectDom(), "/kdevperlsupport/run/interpreter");
+ TQString prog = DomUtil::readEntry(*projectDom(), "/kdevperlsupport/run/interpreter");
if (prog.isEmpty())
prog = "perl";
@@ -190,18 +190,18 @@ QString PerlSupportPart::interpreter()
}
-void PerlSupportPart::startApplication(const QString &program)
+void PerlSupportPart::startApplication(const TQString &program)
{
bool inTerminal = DomUtil::readBoolEntry(*projectDom(), "/kdevperlsupport/run/terminal");
if (KDevAppFrontend *appFrontend = extension<KDevAppFrontend>("KDevelop/AppFrontend"))
- appFrontend->startAppCommand(QString::QString(), program, inTerminal);
+ appFrontend->startAppCommand(TQString::TQString(), program, inTerminal);
}
void PerlSupportPart::slotExecute()
{
- QString program = project()->mainProgram();
- QString cmd = interpreter() + " " + program;
+ TQString program = project()->mainProgram();
+ TQString cmd = interpreter() + " " + program;
startApplication(cmd);
}
@@ -215,7 +215,7 @@ void PerlSupportPart::slotStartInterpreter()
void PerlSupportPart::slotExecuteString()
{
bool ok;
- QString cmd = KInputDialog::getText(i18n("String to Execute"), i18n("String to execute:"), QString::null, &ok, 0);
+ TQString cmd = KInputDialog::getText(i18n("String to Execute"), i18n("String to execute:"), TQString::null, &ok, 0);
if (ok) {
cmd.prepend("'");
cmd.append("'");
@@ -227,9 +227,9 @@ void PerlSupportPart::slotExecuteString()
void PerlSupportPart::slotPerldocFunction()
{
bool ok;
- QString key = KInputDialog::getText(i18n("Show Perl Documentation"), i18n("Show Perl documentation for function:"), "", &ok, 0);
+ TQString key = KInputDialog::getText(i18n("Show Perl Documentation"), i18n("Show Perl documentation for function:"), "", &ok, 0);
if (ok && !key.isEmpty()) {
- QString url = "perldoc:functions/";
+ TQString url = "perldoc:functions/";
url += key;
partController()->showDocument(KURL(url));
}
@@ -239,9 +239,9 @@ void PerlSupportPart::slotPerldocFunction()
void PerlSupportPart::slotPerldocFAQ()
{
bool ok;
- QString key = KInputDialog::getText(i18n("Show FAQ Entry"), i18n("Show FAQ entry for keyword:"), "", &ok, 0);
+ TQString key = KInputDialog::getText(i18n("Show FAQ Entry"), i18n("Show FAQ entry for keyword:"), "", &ok, 0);
if (ok && !key.isEmpty()) {
- QString url = "perldoc:faq/";
+ TQString url = "perldoc:faq/";
url += key;
partController()->showDocument(KURL(url));
}
@@ -265,17 +265,17 @@ void PerlSupportPart::initialParse()
kapp->processEvents( );
kapp->setOverrideCursor(waitCursor);
- QStringList files = project()->allFiles();
+ TQStringList files = project()->allFiles();
m_parser->initialParse();
//progress bar
- QProgressBar* bar = new QProgressBar( files.count( ), mainWindow( )->statusBar( ) );
+ TQProgressBar* bar = new TQProgressBar( files.count( ), mainWindow( )->statusBar( ) );
bar->setMinimumWidth( 120 );
bar->setCenterIndicator( true );
mainWindow( )->statusBar( )->addWidget( bar );
bar->show( );
int n = 0;
- for (QStringList::Iterator it = files.begin(); it != files.end() ;++it) {
+ for (TQStringList::Iterator it = files.begin(); it != files.end() ;++it) {
// kdDebug(9016) << "maybe parse " << project()->projectDirectory() + "/" + (*it) << endl;
maybeParse(project()->projectDirectory() + "/" + *it);
//update progress bar
@@ -297,7 +297,7 @@ void PerlSupportPart::initialParse()
}
}
-void PerlSupportPart::removeWithReference( const QString & fileName )
+void PerlSupportPart::removeWithReference( const TQString & fileName )
{
kdDebug(9016) << "remove with references: " << fileName << endl;
//m_timestamp.remove( fileName );
@@ -312,11 +312,11 @@ void PerlSupportPart::parseUseFiles()
{
kdDebug(9016) << "parse addional libs" << endl;
return;
- QString filename;
- QStringList m_usefiles = m_parser->UseFiles();
+ TQString filename;
+ TQStringList m_usefiles = m_parser->UseFiles();
//parse addional use files
- for (QStringList::Iterator it = m_usefiles.begin(); it != m_usefiles.end() ;++it)
+ for (TQStringList::Iterator it = m_usefiles.begin(); it != m_usefiles.end() ;++it)
{
filename = m_parser->findLib(*it);
//if something found , parse it
diff --git a/languages/perl/perlsupportpart.h b/languages/perl/perlsupportpart.h
index 91765a47..11a5f417 100644
--- a/languages/perl/perlsupportpart.h
+++ b/languages/perl/perlsupportpart.h
@@ -21,7 +21,7 @@ class PerlSupportPart : public KDevLanguageSupport
Q_OBJECT
public:
- PerlSupportPart( QObject *parent, const char *name, const QStringList & );
+ PerlSupportPart( TQObject *parent, const char *name, const TQStringList & );
~PerlSupportPart();
protected:
@@ -32,8 +32,8 @@ private slots:
void projectOpened();
void projectClosed();
void savedFile(const KURL &fileName);
- void addedFilesToProject(const QStringList &fileList);
- void removedFilesFromProject(const QStringList &fileList);
+ void addedFilesToProject(const TQStringList &fileList);
+ void removedFilesFromProject(const TQStringList &fileList);
void slotExecute();
void slotExecuteString();
void slotStartInterpreter();
@@ -44,12 +44,12 @@ private slots:
void slotPerldocFAQ();
private:
- QString interpreter();
- void startApplication(const QString &program);
- void maybeParse(const QString fileName);
- void parse(const QString &fileName);
- void parseLines(QStringList* lines,const QString& fileName);
- void removeWithReference( const QString & fileName );
+ TQString interpreter();
+ void startApplication(const TQString &program);
+ void maybeParse(const TQString fileName);
+ void parse(const TQString &fileName);
+ void parseLines(TQStringList* lines,const TQString& fileName);
+ void removeWithReference( const TQString & fileName );
void parseUseFiles();
//Perl Parser
perlparser* m_parser;
diff --git a/languages/php/phpcodecompletion.cpp b/languages/php/phpcodecompletion.cpp
index c9bd7213..b2b1eb33 100644
--- a/languages/php/phpcodecompletion.cpp
+++ b/languages/php/phpcodecompletion.cpp
@@ -26,9 +26,9 @@
#include <kstandarddirs.h>
#include <kdebug.h>
-#include <qfile.h>
-#include <qtextstream.h>
-#include <qregexp.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
+#include <tqregexp.h>
#include <iostream>
@@ -36,7 +36,7 @@
using namespace std;
-PHPCodeCompletion::PHPCodeCompletion(PHPSupportPart *phpSupport, PHPConfigData *config) : QObject(), m_cursorInterface(0), m_codeInterface(0), m_editInterface(0), m_selectionInterface(0) {
+PHPCodeCompletion::PHPCodeCompletion(PHPSupportPart *phpSupport, PHPConfigData *config) : TQObject(), m_cursorInterface(0), m_codeInterface(0), m_editInterface(0), m_selectionInterface(0) {
m_phpSupport = phpSupport;
m_config = config;
@@ -52,21 +52,21 @@ PHPCodeCompletion::~PHPCodeCompletion(){
void PHPCodeCompletion::readGlobalPHPFunctionsFile(){
KStandardDirs *dirs = PHPSupportFactory::instance()->dirs();
- QString phpFuncFile = dirs->findResource("data","kdevphpsupport/phpfunctions");
- QRegExp lineReg(":([0-9A-Za-z_]+) ([0-9A-Za-z_]+)\\((.*)\\)");
+ TQString phpFuncFile = dirs->findResource("data","kdevphpsupport/phpfunctions");
+ TQRegExp lineReg(":([0-9A-Za-z_]+) ([0-9A-Za-z_]+)\\((.*)\\)");
FunctionCompletionEntry e;
- QFile f(phpFuncFile);
+ TQFile f(phpFuncFile);
if ( f.open(IO_ReadOnly) ) { // file opened successfully
- QTextStream t( &f ); // use a text stream
- QString s;
+ TQTextStream t( &f ); // use a text stream
+ TQString s;
while ( !t.eof() ) { // until end of file...
s = t.readLine(); // line of text excluding '\n'
if (lineReg.search(s.local8Bit()) != -1) {
e.prefix = lineReg.cap(1);
e.text = lineReg.cap(2);
- e.postfix = "(" + QString(lineReg.cap(3)) + ")";
- e.prototype = QString(lineReg.cap(1)) + " " + QString(lineReg.cap(2)) + "(" + QString(lineReg.cap(3)) + ")";
+ e.postfix = "(" + TQString(lineReg.cap(3)) + ")";
+ e.prototype = TQString(lineReg.cap(1)) + " " + TQString(lineReg.cap(2)) + "(" + TQString(lineReg.cap(3)) + ")";
m_globalFunctions.append(e);
}
}
@@ -119,11 +119,11 @@ void PHPCodeCompletion::setActiveEditorPart(KParts::Part *part)
}
disconnect(part->widget(), 0, this, 0 ); // to make sure that it is't connected twice
-// connect(part->widget(), SIGNAL(cursorPositionChanged()), this, SLOT(cursorPositionChanged()));
- connect( part, SIGNAL(textChanged()), this, SLOT(cursorPositionChanged()) );
- connect(part->widget(), SIGNAL(argHintHidden()), this, SLOT(argHintHided()));
- connect(part->widget(), SIGNAL(completionAborted()), this, SLOT(completionBoxHided()));
- connect(part->widget(), SIGNAL(completionDone()), this, SLOT(completionBoxHided()));
+// connect(part->widget(), TQT_SIGNAL(cursorPositionChanged()), this, TQT_SLOT(cursorPositionChanged()));
+ connect( part, TQT_SIGNAL(textChanged()), this, TQT_SLOT(cursorPositionChanged()) );
+ connect(part->widget(), TQT_SIGNAL(argHintHidden()), this, TQT_SLOT(argHintHided()));
+ connect(part->widget(), TQT_SIGNAL(completionAborted()), this, TQT_SLOT(completionBoxHided()));
+ connect(part->widget(), TQT_SIGNAL(completionDone()), this, TQT_SLOT(completionBoxHided()));
}
void PHPCodeCompletion::cursorPositionChanged(){
@@ -135,7 +135,7 @@ void PHPCodeCompletion::cursorPositionChanged(){
kdDebug(9018) << "cursorPositionChanged:" << line << ":" << col << endl;
m_currentLine = line;
- QString lineStr = m_editInterface->textLine(line);
+ TQString lineStr = m_editInterface->textLine(line);
if (lineStr.isNull() || lineStr.isEmpty()) {
return;
}
@@ -147,11 +147,11 @@ void PHPCodeCompletion::cursorPositionChanged(){
if (m_config->getCodeHinting()) {
int pos1 = lineStr.findRev("(", col - 1);
- int pos2 = lineStr.findRev(QRegExp("[ \\t=;\\$\\.\\(\\)]"), pos1 - 1);
+ int pos2 = lineStr.findRev(TQRegExp("[ \\t=;\\$\\.\\(\\)]"), pos1 - 1);
int pos3 = lineStr.findRev(")", col);
if (pos1 > pos2 && pos1 != -1 && pos3 < pos1) {
- QString line = lineStr.mid(pos2 + 1, pos1 - pos2 - 1).stripWhiteSpace();
+ TQString line = lineStr.mid(pos2 + 1, pos1 - pos2 - 1).stripWhiteSpace();
checkForArgHint(line, col);
kdDebug(9018) << "end checkForArgHint" << endl;
}
@@ -163,8 +163,8 @@ void PHPCodeCompletion::cursorPositionChanged(){
return;
}
- int pos = lineStr.findRev(QRegExp("[ \\t=;\\$\\.\\(\\)]"), col - 1);
- QString line = lineStr.mid(pos + 1, col - pos).stripWhiteSpace();
+ int pos = lineStr.findRev(TQRegExp("[ \\t=;\\$\\.\\(\\)]"), col - 1);
+ TQString line = lineStr.mid(pos + 1, col - pos).stripWhiteSpace();
if (checkForVariable(line, col)) {
kdDebug(9018) << "end checkForVariable" << endl;
@@ -180,7 +180,7 @@ kdDebug(9018) << "end checkForGlobalFunction" << endl;
return;
}
- pos = lineStr.stripWhiteSpace().findRev(QRegExp("[ \\t=;\\$\\.\\(\\)]"), col - 1);
+ pos = lineStr.stripWhiteSpace().findRev(TQRegExp("[ \\t=;\\$\\.\\(\\)]"), col - 1);
line = lineStr.mid(pos + 1, col - pos);
if (checkForNew(line, col)) {
@@ -196,7 +196,7 @@ kdDebug(9018) << "end checkFor" << endl;
}
}
-bool PHPCodeCompletion::showCompletionBox(QValueList<KTextEditor::CompletionEntry> list, unsigned long max) {
+bool PHPCodeCompletion::showCompletionBox(TQValueList<KTextEditor::CompletionEntry> list, unsigned long max) {
if (list.count() > 0) {
if (list.count() == 1) {
KTextEditor::CompletionEntry e = list.first();
@@ -210,19 +210,19 @@ bool PHPCodeCompletion::showCompletionBox(QValueList<KTextEditor::CompletionEntr
return false;
}
-bool PHPCodeCompletion::checkForStaticFunction(QString line, int col) {
+bool PHPCodeCompletion::checkForStaticFunction(TQString line, int col) {
kdDebug(9018) << "checkForStaticFunction" << endl;
- QValueList<KTextEditor::CompletionEntry> list;
+ TQValueList<KTextEditor::CompletionEntry> list;
if (line.find("::") == -1)
return false;
- QRegExp Class("([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)::([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*|)");
+ TQRegExp Class("([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)::([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*|)");
Class.setCaseSensitive(FALSE);
if (Class.search(line) != -1) {
- QString classname = Class.cap(1);
- QString function = Class.cap(2);
+ TQString classname = Class.cap(1);
+ TQString function = Class.cap(2);
ClassList classList = getClassByName(classname);
@@ -248,8 +248,8 @@ bool PHPCodeCompletion::checkForStaticFunction(QString line, int col) {
}
if (nClass->baseClassList().count() != 0) {
- QStringList base = nClass->baseClassList();
- QStringList::Iterator nameIt;
+ TQStringList base = nClass->baseClassList();
+ TQStringList::Iterator nameIt;
for (nameIt = base.begin(); nameIt != base.end(); ++nameIt) {
ClassList baseList = getClassByName(*nameIt);
ClassList::Iterator baseIt;
@@ -263,14 +263,14 @@ bool PHPCodeCompletion::checkForStaticFunction(QString line, int col) {
return false;
}
-bool PHPCodeCompletion::checkForNew(QString line, int col){
+bool PHPCodeCompletion::checkForNew(TQString line, int col){
kdDebug(9018) << "checkForNew" << endl;
- QValueList<KTextEditor::CompletionEntry> list;
+ TQValueList<KTextEditor::CompletionEntry> list;
if (line.find("new ", 0, FALSE) == -1)
return false;
- QRegExp New("[& \t]*new[ \t]+([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*|)");
+ TQRegExp New("[& \t]*new[ \t]+([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*|)");
New.setCaseSensitive(FALSE);
if (New.search(line) != -1) {
@@ -293,14 +293,14 @@ bool PHPCodeCompletion::checkForNew(QString line, int col){
return false;
}
-bool PHPCodeCompletion::checkForExtends(QString line, int col){
+bool PHPCodeCompletion::checkForExtends(TQString line, int col){
kdDebug(9018) << "checkForExtends" << endl;
- QValueList<KTextEditor::CompletionEntry> list;
+ TQValueList<KTextEditor::CompletionEntry> list;
if (line.find("extends", 0, FALSE) == -1)
return false;
- QRegExp extends("[ \t]*extends[ \t]+([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*|)");
+ TQRegExp extends("[ \t]*extends[ \t]+([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*|)");
extends.setCaseSensitive(FALSE);
if (extends.search(line) != -1) {
@@ -311,10 +311,10 @@ bool PHPCodeCompletion::checkForExtends(QString line, int col){
return false;
}
-bool PHPCodeCompletion::checkForVariable(QString line, int col){
+bool PHPCodeCompletion::checkForVariable(TQString line, int col){
kdDebug(9018) << "checkForVariable" << endl;
- QValueList<KTextEditor::CompletionEntry> list;
- QString args;
+ TQValueList<KTextEditor::CompletionEntry> list;
+ TQString args;
if (line.find("->") == -1) {
return false;
@@ -326,10 +326,10 @@ bool PHPCodeCompletion::checkForVariable(QString line, int col){
line = line.mid(0, pos);
}
- QStringList vars = QStringList::split("->", line);
- QString classname;
+ TQStringList vars = TQStringList::split("->", line);
+ TQString classname;
- for ( QStringList::Iterator it = vars.begin(); it != vars.end(); ++it ) {
+ for ( TQStringList::Iterator it = vars.begin(); it != vars.end(); ++it ) {
classname = getClassName(*it, classname);
}
@@ -343,9 +343,9 @@ bool PHPCodeCompletion::checkForVariable(QString line, int col){
return showCompletionBox(list, args.length());
}
-bool PHPCodeCompletion::checkForGlobalFunction(QString line, int col) {
+bool PHPCodeCompletion::checkForGlobalFunction(TQString line, int col) {
kdDebug(9018) << "checkForGlobalFunction(" + line + "," << col << endl;
- QValueList<KTextEditor::CompletionEntry> list;
+ TQValueList<KTextEditor::CompletionEntry> list;
if (line.length() < 3)
return false;
@@ -354,9 +354,9 @@ bool PHPCodeCompletion::checkForGlobalFunction(QString line, int col) {
return showCompletionBox(list, line.length());
}
-QValueList<KTextEditor::CompletionEntry> PHPCodeCompletion::getClasses(QString name) {
- QValueList<KTextEditor::CompletionEntry> list;
- QStringList added;
+TQValueList<KTextEditor::CompletionEntry> PHPCodeCompletion::getClasses(TQString name) {
+ TQValueList<KTextEditor::CompletionEntry> list;
+ TQStringList added;
ClassList classList = m_model->globalNamespace()->classList();
ClassList::Iterator classIt;
@@ -365,7 +365,7 @@ QValueList<KTextEditor::CompletionEntry> PHPCodeCompletion::getClasses(QString n
if (name == NULL || name.isEmpty() || nClass->name().startsWith(name, FALSE)) {
KTextEditor::CompletionEntry e;
- QStringList::Iterator it = added.find(nClass->name());
+ TQStringList::Iterator it = added.find(nClass->name());
if (it == added.end()) {
e.text = nClass->name();
list.append(e);
@@ -376,12 +376,12 @@ QValueList<KTextEditor::CompletionEntry> PHPCodeCompletion::getClasses(QString n
return list;
}
-QValueList<KTextEditor::CompletionEntry> PHPCodeCompletion::getFunctionsAndVars(QString classname, QString function) {
+TQValueList<KTextEditor::CompletionEntry> PHPCodeCompletion::getFunctionsAndVars(TQString classname, TQString function) {
kdDebug(9018) << "getFunctionsAndVars " << classname << endl;
- QValueList<KTextEditor::CompletionEntry> list;
+ TQValueList<KTextEditor::CompletionEntry> list;
if (classname.isEmpty()) {
- QValueList<FunctionCompletionEntry>::Iterator it;
+ TQValueList<FunctionCompletionEntry>::Iterator it;
for( it = m_globalFunctions.begin(); it != m_globalFunctions.end(); ++it ) {
if((*it).text.startsWith(function, FALSE)){
KTextEditor::CompletionEntry e;
@@ -440,8 +440,8 @@ QValueList<KTextEditor::CompletionEntry> PHPCodeCompletion::getFunctionsAndVars(
}
if (nClass->baseClassList().count() != 0) {
- QStringList base = nClass->baseClassList();
- QStringList::Iterator nameIt;
+ TQStringList base = nClass->baseClassList();
+ TQStringList::Iterator nameIt;
for (nameIt = base.begin(); nameIt != base.end(); ++nameIt) {
ClassList baseList = getClassByName(*nameIt);
ClassList::Iterator baseIt;
@@ -453,12 +453,12 @@ QValueList<KTextEditor::CompletionEntry> PHPCodeCompletion::getFunctionsAndVars(
return list;
}
-QStringList PHPCodeCompletion::getArguments(QString classname, QString function) {
+TQStringList PHPCodeCompletion::getArguments(TQString classname, TQString function) {
kdDebug(9018) << "getArguments " << function << endl;
- QStringList list;
+ TQStringList list;
if (classname.isEmpty()) {
- QValueList<FunctionCompletionEntry>::Iterator it;
+ TQValueList<FunctionCompletionEntry>::Iterator it;
for( it = m_globalFunctions.begin(); it != m_globalFunctions.end(); ++it ) {
if((*it).text.lower() == function.lower()){
KTextEditor::CompletionEntry e = (*it);
@@ -472,7 +472,7 @@ QStringList PHPCodeCompletion::getArguments(QString classname, QString function)
if ((*methodIt)->name().lower() == function.lower()){
KTextEditor::CompletionEntry e;
ArgumentDom pArgs;
- QString args = "()";
+ TQString args = "()";
ArgumentDom pArg = (*methodIt)->argumentList().first();
if (pArgs)
@@ -500,8 +500,8 @@ QStringList PHPCodeCompletion::getArguments(QString classname, QString function)
}
if (nClass->baseClassList().count() != 0) {
- QStringList base = nClass->baseClassList();
- QStringList::Iterator nameIt;
+ TQStringList base = nClass->baseClassList();
+ TQStringList::Iterator nameIt;
for (nameIt = base.begin(); nameIt != base.end(); ++nameIt) {
ClassList baseList = getClassByName(*nameIt);
ClassList::Iterator baseIt;
@@ -514,22 +514,22 @@ QStringList PHPCodeCompletion::getArguments(QString classname, QString function)
return list;
}
-QString PHPCodeCompletion::getCurrentClassName() {
+TQString PHPCodeCompletion::getCurrentClassName() {
kdDebug(9018) << "getCurrentClassName" << endl;
- QRegExp 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]*))?.*$");
+ 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]*))?.*$");
Class.setCaseSensitive(FALSE);
for(int i = m_currentLine; i >= 0; i--){
- QString line = m_editInterface->textLine(i);
+ TQString line = m_editInterface->textLine(i);
if (!line.isNull()) {
if (Class.search(line) != -1)
return Class.cap(2);
}
}
- return QString::null;
+ return TQString::null;
}
-QString PHPCodeCompletion::getClassName(QString varName, QString classname) {
+TQString PHPCodeCompletion::getClassName(TQString varName, TQString classname) {
kdDebug(9018) << "getClassName " << varName << "::" << classname << endl;
if (varName.find("$") == 0)
@@ -557,7 +557,7 @@ QString PHPCodeCompletion::getClassName(QString varName, QString classname) {
FunctionList::Iterator funcIt;
for (funcIt = funcList.begin(); funcIt != funcList.end(); ++funcIt) {
- if (QString((*funcIt)->name().lower() + "(") == varName.lower())
+ if (TQString((*funcIt)->name().lower() + "(") == varName.lower())
return (*funcIt)->resultType();
}
@@ -573,23 +573,23 @@ QString PHPCodeCompletion::getClassName(QString varName, QString classname) {
kdDebug(9018) << "Need " << classname << " " << varName << endl;
/*
/// @fixme peut devenir recursif voir xbutton.php ligne 204
- QRegExp createmember("\\" + varName + "[ \t]*=[ \t]*(.*)[ \t]*;");
+ TQRegExp createmember("\\" + varName + "[ \t]*=[ \t]*(.*)[ \t]*;");
for(int i = m_currentLine; i >= 0; i--){
- QString line = m_editInterface->textLine(i);
+ TQString line = m_editInterface->textLine(i);
if (!line.isNull() && line.find(varName,0 , FALSE) != -1) {
if (createmember.search(line) != -1) {
- QString right = createmember.cap(1).stripWhiteSpace();
+ TQString right = createmember.cap(1).stripWhiteSpace();
- QStringList vars = QStringList::split("->", right);
- for ( QStringList::Iterator it = vars.begin(); it != vars.end(); ++it ) {
- QString objet = *it;
+ TQStringList vars = TQStringList::split("->", right);
+ for ( TQStringList::Iterator it = vars.begin(); it != vars.end(); ++it ) {
+ TQString objet = *it;
++it;
if (it == vars.end())
break;
- QString var = *it;
+ TQString var = *it;
if (objet.lower() == "$this")
objet = this->getCurrentClassName();
@@ -597,9 +597,9 @@ QString PHPCodeCompletion::getClassName(QString varName, QString classname) {
classname = getClassName(var, objet);
NamespaceDom varns = m_model->globalNamespace()->namespaceByName("varsns");
- QString fromns;
+ TQString fromns;
if (varns) {
- QString name = objet + "::" + var;
+ TQString name = objet + "::" + var;
kdDebug(9018) << name << endl;
VariableDom nVar = varns->variableByName(name);
fromns = nVar->type();
@@ -618,8 +618,8 @@ QString PHPCodeCompletion::getClassName(QString varName, QString classname) {
return "";
}
-QValueList<ClassDom> PHPCodeCompletion::getClassByName(QString classname) {
- QValueList<ClassDom> CList;
+TQValueList<ClassDom> PHPCodeCompletion::getClassByName(TQString classname) {
+ TQValueList<ClassDom> CList;
ClassList classList = m_model->globalNamespace()->classList();
@@ -632,21 +632,21 @@ QValueList<ClassDom> PHPCodeCompletion::getClassByName(QString classname) {
return CList;
}
-bool PHPCodeCompletion::checkForArgHint(QString line, int col) {
+bool PHPCodeCompletion::checkForArgHint(TQString line, int col) {
kdDebug(9018) << "checkForArgHint" << endl;
- QValueList<KTextEditor::CompletionEntry> list;
- QStringList argsList;
+ TQValueList<KTextEditor::CompletionEntry> list;
+ TQStringList argsList;
if (m_argWidgetShow == true)
return false;
if (line.find("::") != -1) {
- QRegExp Static("([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)::([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)");
+ 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);
if (Static.search(line) != -1) {
- QString classname = Static.cap(1);
- QString function = Static.cap(2);
+ TQString classname = Static.cap(1);
+ TQString function = Static.cap(2);
argsList = getArguments(classname, function);
@@ -661,16 +661,16 @@ bool PHPCodeCompletion::checkForArgHint(QString line, int col) {
if (line.findRev("->") != -1) {
int pos1 = line.findRev("->");
- QString classname;
- QString function = line.mid(pos1 + 2);
+ TQString classname;
+ TQString function = line.mid(pos1 + 2);
line = line.mid(0, pos1);
kdDebug(9018) << "checkForArgHint 2 " << line << endl;
- QStringList vars = QStringList::split("->", line);
+ TQStringList vars = TQStringList::split("->", line);
- for ( QStringList::Iterator it = vars.begin(); it != vars.end(); ++it ) {
+ for ( TQStringList::Iterator it = vars.begin(); it != vars.end(); ++it ) {
kdDebug(9018) << "for " << line << endl;
classname = getClassName(*it, classname);
kdDebug(9018) << "next " << line << endl;
@@ -705,7 +705,7 @@ kdDebug(9018) << "checkForArgHint 0 " << line << endl;
return false;
}
-void PHPCodeCompletion::setStatusBar(QString expr, QString type) {
+void PHPCodeCompletion::setStatusBar(TQString expr, TQString type) {
m_phpSupport->mainWindow()->statusBar()->message( i18n("Type of %1 is %2").arg(expr).arg(type), 1000 );
}
diff --git a/languages/php/phpcodecompletion.h b/languages/php/phpcodecompletion.h
index 41d79934..505bdcbd 100644
--- a/languages/php/phpcodecompletion.h
+++ b/languages/php/phpcodecompletion.h
@@ -23,7 +23,7 @@
#include <codemodel.h>
-#include <qobject.h>
+#include <tqobject.h>
#include <kregexp.h>
#include <kparts/part.h>
@@ -42,10 +42,10 @@ class PHPConfigData;
class FunctionCompletionEntry : public KTextEditor::CompletionEntry {
public:
- QString prototype;
+ TQString prototype;
};
-class PHPCodeCompletion : public QObject {
+class PHPCodeCompletion : public TQObject {
Q_OBJECT
public:
@@ -61,29 +61,29 @@ protected slots:
void completionBoxHided();
protected:
- bool showCompletionBox(QValueList<KTextEditor::CompletionEntry> list, unsigned long max);
+ bool showCompletionBox(TQValueList<KTextEditor::CompletionEntry> list, unsigned long max);
- bool checkForVariable(QString line, int col);
- bool checkForStaticFunction(QString line, int col);
- bool checkForNew(QString line, int col);
- bool checkForExtends(QString line, int col);
- bool checkForGlobalFunction(QString line, int col);
+ bool checkForVariable(TQString line, int col);
+ bool checkForStaticFunction(TQString line, int col);
+ bool checkForNew(TQString line, int col);
+ bool checkForExtends(TQString line, int col);
+ bool checkForGlobalFunction(TQString line, int col);
- bool checkForArgHint(QString line, int col);
+ bool checkForArgHint(TQString line, int col);
- QValueList<KTextEditor::CompletionEntry> getClasses(QString name);
- QValueList<KTextEditor::CompletionEntry> getFunctionsAndVars(QString classname, QString str);
- QStringList getArguments(QString classname, QString function);
- QString getCurrentClassName();
- QString getClassName(QString varName, QString classname);
- QValueList<ClassDom> getClassByName(QString classname);
+ TQValueList<KTextEditor::CompletionEntry> getClasses(TQString name);
+ TQValueList<KTextEditor::CompletionEntry> getFunctionsAndVars(TQString classname, TQString str);
+ TQStringList getArguments(TQString classname, TQString function);
+ TQString getCurrentClassName();
+ TQString getClassName(TQString varName, TQString classname);
+ TQValueList<ClassDom> getClassByName(TQString classname);
void readGlobalPHPFunctionsFile();
- void setStatusBar(QString expr, QString type);
+ void setStatusBar(TQString expr, TQString type);
private:
int m_currentLine;
- QValueList<FunctionCompletionEntry> m_globalFunctions;
+ TQValueList<FunctionCompletionEntry> m_globalFunctions;
PHPSupportPart* m_phpSupport;
PHPConfigData* m_config;
@@ -97,7 +97,7 @@ protected:
KTextEditor::ViewCursorInterface *m_cursorInterface;
KTextEditor::SelectionInterface *m_selectionInterface;
- QString findDeclaration(QString name, int line = -1);
+ TQString findDeclaration(TQString name, int line = -1);
};
#endif
diff --git a/languages/php/phpconfigdata.cpp b/languages/php/phpconfigdata.cpp
index 45f27a79..00baec12 100644
--- a/languages/php/phpconfigdata.cpp
+++ b/languages/php/phpconfigdata.cpp
@@ -22,8 +22,8 @@
#include "domutil.h"
#include <iostream>
-PHPConfigData::PHPConfigData(QDomDocument* dom) {
- QString file = KStandardDirs::findExe("php");
+PHPConfigData::PHPConfigData(TQDomDocument* dom) {
+ TQString file = KStandardDirs::findExe("php");
if (file.isEmpty())
file = "/usr/local/bin/php";
diff --git a/languages/php/phpconfigdata.h b/languages/php/phpconfigdata.h
index 0c7a49eb..49c49da8 100644
--- a/languages/php/phpconfigdata.h
+++ b/languages/php/phpconfigdata.h
@@ -20,15 +20,15 @@
#ifndef PHPCONFIGDATA_H
#define PHPCONFIGDATA_H
-#include <qstring.h>
-#include <qdom.h>
-#include <qobject.h>
+#include <tqstring.h>
+#include <tqdom.h>
+#include <tqobject.h>
/**
*@author Sandy Meier
*/
-class PHPConfigData : public QObject {
+class PHPConfigData : public TQObject {
Q_OBJECT
signals:
@@ -38,7 +38,7 @@ public:
enum InvocationMode {Web=1,Shell=2};
enum StartupFileMode {Current=1,Default=2};
- PHPConfigData(QDomDocument* document);
+ PHPConfigData(TQDomDocument* document);
~PHPConfigData();
/** returns true if the configuration is ok, false if something is missing
@@ -57,43 +57,43 @@ public:
}
// web
- QString getWebURL() {
+ TQString getWebURL() {
return webURL;
}
- void setWebURL(QString weburl) {
+ void setWebURL(TQString weburl) {
webURL = weburl;
}
// shell
- QString getPHPExecPath() {
+ TQString getPHPExecPath() {
return phpExePath;
}
- void setPHPExePath(QString path) {
+ void setPHPExePath(TQString path) {
phpExePath = path;
}
// config
- QString getPHPIniPath() {
+ TQString getPHPIniPath() {
return phpIniPath;
}
- void setPHPIniPath(QString path) {
+ void setPHPIniPath(TQString path) {
phpIniPath = path;
}
// options
- QString getPHPIncludePath() {
+ TQString getPHPIncludePath() {
return phpIncludePath;
}
- void setPHPIncludePath(QString path) {
+ void setPHPIncludePath(TQString path) {
phpIncludePath = path;
}
- QString getStartupFile() {
+ TQString getStartupFile() {
return phpStartupFile;
}
- void setStartupFile(QString defaultFile) {
+ void setStartupFile(TQString defaultFile) {
phpStartupFile = defaultFile;
}
@@ -131,19 +131,19 @@ public:
}
private:
- QDomDocument* document;
+ TQDomDocument* document;
InvocationMode invocationMode;
// web
- QString webURL;
+ TQString webURL;
// shell
- QString phpExePath;
- QString phpIniPath;
- QString phpStartupFile;
+ TQString phpExePath;
+ TQString phpIniPath;
+ TQString phpStartupFile;
// options
- QString phpIncludePath;
- QString phpDefaultFile;
+ TQString phpIncludePath;
+ TQString phpDefaultFile;
StartupFileMode phpStartupFileMode;
// code help
diff --git a/languages/php/phpconfigwidget.cpp b/languages/php/phpconfigwidget.cpp
index 829e3038..5b5dfda7 100644
--- a/languages/php/phpconfigwidget.cpp
+++ b/languages/php/phpconfigwidget.cpp
@@ -1,11 +1,11 @@
#include "domutil.h"
#include <kprocess.h>
#include <klineedit.h>
-#include <qcheckbox.h>
-#include <qmultilineedit.h>
-#include <qcstring.h>
+#include <tqcheckbox.h>
+#include <tqmultilineedit.h>
+#include <tqcstring.h>
#include <iostream>
-#include <qradiobutton.h>
+#include <tqradiobutton.h>
#include <kfiledialog.h>
#include <kstandarddirs.h>
@@ -16,7 +16,7 @@
using namespace std;
-PHPConfigWidget::PHPConfigWidget(PHPConfigData* data,QWidget* parent, const char* name, WFlags fl )
+PHPConfigWidget::PHPConfigWidget(PHPConfigData* data,TQWidget* parent, const char* name, WFlags fl )
: PHPConfigWidgetBase( parent, name, fl )
{
configData = data;
@@ -34,15 +34,15 @@ PHPConfigWidget::PHPConfigWidget(PHPConfigData* data,QWidget* parent, const cha
}
// page webserver
- QString weburl = configData->getWebURL();
+ TQString weburl = configData->getWebURL();
if (weburl.isEmpty())
weburl = "http://localhost/";
weburl_edit->setText(weburl);
// page shell
- QString exepath = configData->getPHPExecPath();
+ TQString exepath = configData->getPHPExecPath();
if (exepath.isEmpty()) {
- QString fiexepath = KStandardDirs::findExe("php");
+ TQString fiexepath = KStandardDirs::findExe("php");
if (exepath.isEmpty())
exepath = "/usr/local/bin/php";
@@ -52,7 +52,7 @@ PHPConfigWidget::PHPConfigWidget(PHPConfigData* data,QWidget* parent, const cha
// page options
PHPConfigData::StartupFileMode phpStartupFileMode = configData->getStartupFileMode();
- QString phpStartupFile = configData->getStartupFile();
+ TQString phpStartupFile = configData->getStartupFile();
useDefaultFile_edit->setText(phpStartupFile);
@@ -64,7 +64,7 @@ PHPConfigWidget::PHPConfigWidget(PHPConfigData* data,QWidget* parent, const cha
useDefaultFile_radio->setChecked(true);
}
- QString includepath = configData->getPHPIncludePath();
+ TQString includepath = configData->getPHPIncludePath();
include_path_edit->setText(includepath);
codeCompletion_checkbox->setChecked(configData->getCodeCompletion());
@@ -129,8 +129,8 @@ void PHPConfigWidget::slotAboutClicked()
proc << exe_edit->text();
proc << "-m";
- connect( &proc, SIGNAL(receivedStdout (KProcess*, char*, int)),
- this, SLOT(slotReceivedPHPInfo (KProcess*, char*, int)));
+ connect( &proc, TQT_SIGNAL(receivedStdout (KProcess*, char*, int)),
+ this, TQT_SLOT(slotReceivedPHPInfo (KProcess*, char*, int)));
proc.start(KProcess::Block,KProcess::Stdout);
PHPInfoDlg dlg(this,"phpinfo",true);
dlg.php_edit->setText(m_phpInfo);
@@ -139,11 +139,11 @@ void PHPConfigWidget::slotAboutClicked()
}
void PHPConfigWidget::slotReceivedPHPInfo (KProcess* /*proc*/, char* buffer, int buflen){
- m_phpInfo += QCString(buffer,buflen+1);
+ m_phpInfo += TQCString(buffer,buflen+1);
}
void PHPConfigWidget::slotPHPExeButtonClicked(){
- QString exe = KFileDialog::getOpenFileName(QFileInfo(exe_edit->text()).filePath());
+ TQString exe = KFileDialog::getOpenFileName(TQFileInfo(exe_edit->text()).filePath());
if (!exe.isEmpty()){
exe_edit->setText(exe);
}
@@ -151,7 +151,7 @@ void PHPConfigWidget::slotPHPExeButtonClicked(){
void PHPConfigWidget::slotPHPIniButtonClicked()
{
- QString file = KFileDialog::getOpenFileName(QFileInfo(exe_edit->text()).filePath(), QString("*.ini|INI File (*.ini)"));
+ TQString file = KFileDialog::getOpenFileName(TQFileInfo(exe_edit->text()).filePath(), TQString("*.ini|INI File (*.ini)"));
if (!file.isEmpty()){
ini_edit->setText(file);
diff --git a/languages/php/phpconfigwidget.h b/languages/php/phpconfigwidget.h
index 87bb6ab3..c404643c 100644
--- a/languages/php/phpconfigwidget.h
+++ b/languages/php/phpconfigwidget.h
@@ -2,7 +2,7 @@
#define PHPCONFIGWIDGET_H
#include "phpconfigwidgetbase.h"
-#include <qstring.h>
+#include <tqstring.h>
class KProcess;
class PHPConfigData;
@@ -11,7 +11,7 @@ class PHPConfigWidget : public PHPConfigWidgetBase
Q_OBJECT
public:
- PHPConfigWidget( PHPConfigData* data,QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ PHPConfigWidget( PHPConfigData* data,TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~PHPConfigWidget();
public slots:
@@ -23,8 +23,8 @@ public slots:
void slotReceivedPHPInfo (KProcess* proc, char* buffer, int buflen);
private:
- QDomDocument* dom;
- QString m_phpInfo;
+ TQDomDocument* dom;
+ TQString m_phpInfo;
PHPConfigData* configData;
};
diff --git a/languages/php/phperrorview.cpp b/languages/php/phperrorview.cpp
index 011e8b77..e5d479ec 100644
--- a/languages/php/phperrorview.cpp
+++ b/languages/php/phperrorview.cpp
@@ -43,28 +43,28 @@
#include <kconfig.h>
-#include <qtimer.h>
-#include <qregexp.h>
-#include <qvbox.h>
-#include <qfileinfo.h>
-#include <qwhatsthis.h>
-#include <qtabbar.h>
-#include <qwidgetstack.h>
-#include <qlayout.h>
-#include <qlineedit.h>
+#include <tqtimer.h>
+#include <tqregexp.h>
+#include <tqvbox.h>
+#include <tqfileinfo.h>
+#include <tqwhatsthis.h>
+#include <tqtabbar.h>
+#include <tqwidgetstack.h>
+#include <tqlayout.h>
+#include <tqlineedit.h>
class ProblemItem: public KListViewItem
{
public:
- ProblemItem( QListView* parent, const QString& problem,
- const QString& file, const QString& line, const QString& column )
+ ProblemItem( TQListView* parent, const TQString& problem,
+ const TQString& file, const TQString& line, const TQString& column )
: KListViewItem( parent, problem, file, line, column ) {}
- ProblemItem( QListViewItem* parent, const QString& problem,
- const QString& file, const QString& line, const QString& column )
+ ProblemItem( TQListViewItem* parent, const TQString& problem,
+ const TQString& file, const TQString& line, const TQString& column )
: KListViewItem( parent, problem, file, line, column ) {}
- int compare( QListViewItem* item, int column, bool ascending ) const {
+ int compare( TQListViewItem* item, int column, bool ascending ) const {
if( column == 2 || column == 3 ){
int a = text( column ).toInt();
int b = item->text( column ).toInt();
@@ -77,20 +77,20 @@ public:
};
-PHPErrorView::PHPErrorView( PHPSupportPart* part, QWidget* parent, const char* name )
- : QWidget( parent, name ? name : "problemreporter" ),
+PHPErrorView::PHPErrorView( PHPSupportPart* part, TQWidget* parent, const char* name )
+ : TQWidget( parent, name ? name : "problemreporter" ),
m_phpSupport( part ),
m_document( 0 ),
m_markIface( 0 )
{
- QWhatsThis::add(this, i18n("<b>Problem reporter</b><p>This window shows various \"problems\" in your project. "
+ TQWhatsThis::add(this, i18n("<b>Problem reporter</b><p>This window shows various \"problems\" in your project. "
"It displays TODO entries, FIXME's and errors reported by a language parser. "
"To add a TODO or FIXME entry, just type<br>"
"<tt>//@todo my todo</tt><br>"
"<tt>//TODO: my todo</tt><br>"
"<tt>//FIXME fix this</tt>"));
- m_gridLayout = new QGridLayout(this,2,3);
+ m_gridLayout = new TQGridLayout(this,2,3);
m_errorList = new KListView(this);
m_fixmeList = new KListView(this);
@@ -109,19 +109,19 @@ PHPErrorView::PHPErrorView( PHPSupportPart* part, QWidget* parent, const char* n
InitListView(m_currentList);
m_currentList->removeColumn(1);
- m_widgetStack = new QWidgetStack(this);
+ m_widgetStack = new TQWidgetStack(this);
m_widgetStack->addWidget(m_currentList,0);
m_widgetStack->addWidget(m_errorList,1);
m_widgetStack->addWidget(m_fixmeList,2);
m_widgetStack->addWidget(m_todoList,3);
m_widgetStack->addWidget(m_filteredList,4);
- m_tabBar = new QTabBar(this);
- m_tabBar->insertTab(new QTab(i18n("Current")),0);
- m_tabBar->insertTab(new QTab(i18n("Errors")),1);
- m_tabBar->insertTab(new QTab(i18n("Fixme")),2);
- m_tabBar->insertTab(new QTab(i18n("Todo")),3);
- m_tabBar->insertTab(new QTab(i18n("Filtered")),4);
+ m_tabBar = new TQTabBar(this);
+ m_tabBar->insertTab(new TQTab(i18n("Current")),0);
+ m_tabBar->insertTab(new TQTab(i18n("Errors")),1);
+ m_tabBar->insertTab(new TQTab(i18n("Fixme")),2);
+ m_tabBar->insertTab(new TQTab(i18n("Todo")),3);
+ m_tabBar->insertTab(new TQTab(i18n("Filtered")),4);
m_tabBar->setTabEnabled(0,false);
m_tabBar->setTabEnabled(4,false);
@@ -129,19 +129,19 @@ PHPErrorView::PHPErrorView( PHPSupportPart* part, QWidget* parent, const char* n
m_filterEdit = new KLineEdit(this);
- QLabel* m_filterLabel = new QLabel(i18n("Lookup:"),this);
+ TQLabel* m_filterLabel = new TQLabel(i18n("Lookup:"),this);
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);
- connect( m_filterEdit, SIGNAL(returnPressed()), this, SLOT(slotFilter()) );
- connect( m_filterEdit, SIGNAL(textChanged( const QString & )), this, SLOT(slotFilter()) );
- connect( m_tabBar, SIGNAL(selected(int)), this, SLOT(slotTabSelected(int)) );
- connect( part->partController(), SIGNAL(activePartChanged(KParts::Part*)), this, SLOT(slotActivePartChanged(KParts::Part*)) );
- connect( part->partController(), SIGNAL(partAdded(KParts::Part*)), this, SLOT(slotPartAdded(KParts::Part*)) );
- connect( part->partController(), SIGNAL(partRemoved(KParts::Part*)), this, SLOT(slotPartRemoved(KParts::Part*)) );
+ connect( m_filterEdit, TQT_SIGNAL(returnPressed()), this, TQT_SLOT(slotFilter()) );
+ connect( m_filterEdit, TQT_SIGNAL(textChanged( const TQString & )), this, TQT_SLOT(slotFilter()) );
+ connect( m_tabBar, TQT_SIGNAL(selected(int)), this, TQT_SLOT(slotTabSelected(int)) );
+ connect( part->partController(), TQT_SIGNAL(activePartChanged(KParts::Part*)), this, TQT_SLOT(slotActivePartChanged(KParts::Part*)) );
+ connect( part->partController(), TQT_SIGNAL(partAdded(KParts::Part*)), this, TQT_SLOT(slotPartAdded(KParts::Part*)) );
+ connect( part->partController(), TQT_SIGNAL(partRemoved(KParts::Part*)), this, TQT_SLOT(slotPartRemoved(KParts::Part*)) );
slotActivePartChanged( part->partController()->activePart() );
}
@@ -162,9 +162,9 @@ void PHPErrorView::slotFilter()
}
-void PHPErrorView::filterList(KListView* listview, const QString& level)
+void PHPErrorView::filterList(KListView* listview, const TQString& level)
{
- QListViewItemIterator it( listview );
+ TQListViewItemIterator it( listview );
while ( it.current() ) {
if ( it.current()->text(3).contains(m_filterEdit->text(),false))
new KListViewItem(m_filteredList,level,
@@ -186,11 +186,11 @@ void PHPErrorView::InitListView(KListView* listview)
listview->addColumn( i18n("Problem") );
listview->setAllColumnsShowFocus( TRUE );
- connect( listview, SIGNAL(executed(QListViewItem*)),
- this, SLOT(slotSelected(QListViewItem*)) );
+ connect( listview, TQT_SIGNAL(executed(TQListViewItem*)),
+ this, TQT_SLOT(slotSelected(TQListViewItem*)) );
- connect( listview, SIGNAL(returnPressed(QListViewItem*)),
- this, SLOT(slotSelected(QListViewItem* )) );
+ connect( listview, TQT_SIGNAL(returnPressed(TQListViewItem*)),
+ this, TQT_SLOT(slotSelected(TQListViewItem* )) );
}
@@ -223,11 +223,11 @@ void PHPErrorView::slotActivePartChanged( KParts::Part* part )
m_markIface = dynamic_cast<KTextEditor::MarkInterface*>( part );
}
-void PHPErrorView::removeAllItems( QListView* listview, const QString& filename )
+void PHPErrorView::removeAllItems( TQListView* listview, const TQString& filename )
{
- QListViewItem* current = listview->firstChild();
+ TQListViewItem* current = listview->firstChild();
while( current ){
- QListViewItem* i = current;
+ TQListViewItem* i = current;
current = current->nextSibling();
if( i->text(0) == filename )
@@ -235,9 +235,9 @@ void PHPErrorView::removeAllItems( QListView* listview, const QString& filename
}
}
-void PHPErrorView::removeAllProblems( const QString& filename )
+void PHPErrorView::removeAllProblems( const TQString& filename )
{
- QString relFileName = filename;
+ TQString relFileName = filename;
relFileName.remove(m_phpSupport->project()->projectDirectory());
kdDebug(9008) << "PHPErrorView::removeAllProblems()" << relFileName << endl;
@@ -250,8 +250,8 @@ void PHPErrorView::removeAllProblems( const QString& filename )
removeAllItems(m_todoList,relFileName);
if ( m_document && m_markIface ) {
- QPtrList<KTextEditor::Mark> marks = m_markIface->marks();
- QPtrListIterator<KTextEditor::Mark> it( marks );
+ TQPtrList<KTextEditor::Mark> marks = m_markIface->marks();
+ TQPtrListIterator<KTextEditor::Mark> it( marks );
while( it.current() ) {
m_markIface->removeMark( it.current()->line, KTextEditor::MarkInterface::markType07 );
++it;
@@ -263,7 +263,7 @@ void PHPErrorView::initCurrentList()
{
m_tabBar->setTabEnabled(0,true);
- QString relFileName = m_fileName;
+ TQString relFileName = m_fileName;
if (m_phpSupport->project())
relFileName.remove(m_phpSupport->project()->projectDirectory());
@@ -275,17 +275,17 @@ void PHPErrorView::initCurrentList()
updateCurrentWith(m_todoList,i18n("Todo"),relFileName);
}
-void PHPErrorView::updateCurrentWith(QListView* listview, const QString& level, const QString& filename)
+void PHPErrorView::updateCurrentWith(TQListView* listview, const TQString& level, const TQString& filename)
{
- QListViewItemIterator it(listview);
+ TQListViewItemIterator it(listview);
while ( it.current() ) {
if ( it.current()->text(0) == filename)
- new QListViewItem(m_currentList,level,it.current()->text(1),it.current()->text(2),it.current()->text(3));
+ new TQListViewItem(m_currentList,level,it.current()->text(1),it.current()->text(2),it.current()->text(3));
++it;
}
}
-void PHPErrorView::slotSelected( QListViewItem* item )
+void PHPErrorView::slotSelected( TQListViewItem* item )
{
bool is_filtered = false;
bool is_current = false;
@@ -300,17 +300,17 @@ void PHPErrorView::slotSelected( QListViewItem* item )
m_phpSupport->partController()->editDocument( url, line-1 );
}
-void PHPErrorView::reportProblem( int level, const QString& fileName, int line, const QString& text)
+void PHPErrorView::reportProblem( int level, const TQString& fileName, int line, const TQString& text)
{
int markType = levelToMarkType( level );
if ( markType != -1 && m_document && m_markIface && m_fileName == fileName ) {
m_markIface->addMark( line, markType );
}
- QString msg = text;
- msg = msg.replace( QRegExp("\n"), "" );
+ TQString msg = text;
+ msg = msg.replace( TQRegExp("\n"), "" );
- QString relFileName = fileName;
+ TQString relFileName = fileName;
relFileName.remove(m_phpSupport->project()->projectDirectory());
KListView* list;
@@ -342,11 +342,11 @@ void PHPErrorView::reportProblem( int level, const QString& fileName, int line,
if (list) {
kdDebug(9018) << "PB " << msg << endl;
- new ProblemItem( list, relFileName, QString::number( line + 1 ), 0, msg );
+ new ProblemItem( list, relFileName, TQString::number( line + 1 ), 0, msg );
}
if (fileName == m_fileName)
- new QListViewItem(m_currentList, levelToString( level ), QString::number( line + 1 ), 0, msg);
+ new TQListViewItem(m_currentList, levelToString( level ), TQString::number( line + 1 ), 0, msg);
}
void PHPErrorView::slotPartAdded( KParts::Part* part )
@@ -367,30 +367,30 @@ void PHPErrorView::slotPartRemoved( KParts::Part* part )
}
}
-QString PHPErrorView::levelToString( int level ) const
+TQString PHPErrorView::levelToString( int level ) const
{
switch( level )
{
case ErrorNoSuchFunction:
- return QString( i18n("Undefined function") );
+ return TQString( i18n("Undefined function") );
case ErrorParse:
- return QString( i18n("Parse Error") );
+ return TQString( i18n("Parse Error") );
case Error:
- return QString( i18n("Error") );
+ return TQString( i18n("Error") );
case Warning:
- return QString( i18n("Warning") );
+ return TQString( i18n("Warning") );
case Todo:
- return QString( i18n("Todo") );
+ return TQString( i18n("Todo") );
case Fixme:
- return QString( i18n("Fixme") );
+ return TQString( i18n("Fixme") );
default:
- return QString::null;
+ return TQString::null;
}
}
diff --git a/languages/php/phperrorview.h b/languages/php/phperrorview.h
index bc8b0df5..aaf3f9f3 100644
--- a/languages/php/phperrorview.h
+++ b/languages/php/phperrorview.h
@@ -22,7 +22,7 @@
#include <klistview.h>
#include <klineedit.h>
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
#include "phpfile.h"
class PHPSupportPart;
@@ -54,36 +54,36 @@ enum Errors
Fixme = 5
};
-class PHPErrorView: public QWidget {
+class PHPErrorView: public TQWidget {
Q_OBJECT
public:
- PHPErrorView( PHPSupportPart* part, QWidget* parent=0, const char* name=0 );
+ PHPErrorView( PHPSupportPart* part, TQWidget* parent=0, const char* name=0 );
virtual ~PHPErrorView();
- void removeAllProblems( const QString& filename );
- void reportProblem( int level, const QString& fileName, int line, const QString& text);
+ void removeAllProblems( const TQString& filename );
+ void reportProblem( int level, const TQString& fileName, int line, const TQString& text);
private slots:
void slotPartAdded( KParts::Part* );
void slotPartRemoved( KParts::Part* );
void slotActivePartChanged( KParts::Part* );
- void slotSelected( QListViewItem* );
+ void slotSelected( TQListViewItem* );
void slotTabSelected( int tabindex );
void slotFilter();
private:
- QString levelToString( int level ) const;
+ TQString levelToString( int level ) const;
int levelToMarkType( int level ) const;
void InitListView(KListView* listview);
- void removeAllItems( QListView* listview, const QString& filename );
- void filterList(KListView* listview, const QString& level);
- void updateCurrentWith(QListView* listview, const QString& level, const QString& filename);
+ void removeAllItems( TQListView* listview, const TQString& filename );
+ void filterList(KListView* listview, const TQString& level);
+ void updateCurrentWith(TQListView* listview, const TQString& level, const TQString& filename);
void initCurrentList();
private:
- QGridLayout* m_gridLayout;
- QTabBar* m_tabBar;
- QWidgetStack* m_widgetStack;
+ TQGridLayout* m_gridLayout;
+ TQTabBar* m_tabBar;
+ TQWidgetStack* m_widgetStack;
KListView* m_currentList;
KListView* m_errorList;
KListView* m_fixmeList;
@@ -93,10 +93,10 @@ private:
KLineEdit* m_filterEdit;
PHPSupportPart* m_phpSupport;
- QGuardedPtr<KTextEditor::Document> m_document;
+ TQGuardedPtr<KTextEditor::Document> m_document;
KTextEditor::MarkInterface* m_markIface;
- QTimer* m_timer;
- QString m_fileName;
+ TQTimer* m_timer;
+ TQString m_fileName;
int m_active;
int m_delay;
};
diff --git a/languages/php/phpfile.cpp b/languages/php/phpfile.cpp
index afd741bd..d54028da 100644
--- a/languages/php/phpfile.cpp
+++ b/languages/php/phpfile.cpp
@@ -17,9 +17,9 @@
*/
#include <kapplication.h>
-#include <qstring.h>
-#include <qfileinfo.h>
-#include <qregexp.h>
+#include <tqstring.h>
+#include <tqfileinfo.h>
+#include <tqregexp.h>
#include <urlutil.h>
#include <kprocess.h>
@@ -34,9 +34,9 @@
using namespace std;
-PHPFile::PHPFile(PHPSupportPart *phpSupport, const QString& fileName)
+PHPFile::PHPFile(PHPSupportPart *phpSupport, const TQString& fileName)
{
- m_fileinfo = new QFileInfo(fileName);
+ m_fileinfo = new TQFileInfo(fileName);
m_part = phpSupport;
modified = true;
inClass = FALSE;
@@ -44,9 +44,9 @@ PHPFile::PHPFile(PHPSupportPart *phpSupport, const QString& fileName)
/*
phpCheckProc = new KShellProcess("/bin/sh");
- connect(phpCheckProc, SIGNAL(receivedStdout (KProcess*, char*, int)), this, SLOT(slotReceivedPHPCheckStdout (KProcess*, char*, int)));
- connect(phpCheckProc, SIGNAL(receivedStderr (KProcess*, char*, int)), this, SLOT(slotReceivedPHPCheckStderr (KProcess*, char*, int)));
- connect(phpCheckProc, SIGNAL(processExited(KProcess*)), this, SLOT(slotPHPCheckExited(KProcess*)));
+ connect(phpCheckProc, TQT_SIGNAL(receivedStdout (KProcess*, char*, int)), this, TQT_SLOT(slotReceivedPHPCheckStdout (KProcess*, char*, int)));
+ connect(phpCheckProc, TQT_SIGNAL(receivedStderr (KProcess*, char*, int)), this, TQT_SLOT(slotReceivedPHPCheckStderr (KProcess*, char*, int)));
+ connect(phpCheckProc, TQT_SIGNAL(processExited(KProcess*)), this, TQT_SLOT(slotPHPCheckExited(KProcess*)));
*/
}
@@ -58,22 +58,22 @@ PHPFile::~PHPFile()
// delete phpCheckProc;
}
-QStringList PHPFile::getContents()
+TQStringList PHPFile::getContents()
{
return m_contents;
}
-QString PHPFile::fileName() {
+TQString PHPFile::fileName() {
return m_fileinfo->filePath();
}
-QStringList PHPFile::readFromEditor()
+TQStringList PHPFile::readFromEditor()
{
- QStringList contents;
+ TQStringList contents;
kapp->lock();
- QPtrList<KParts::Part> parts( *m_part->partController()->parts() );
- QPtrListIterator<KParts::Part> it( parts );
+ TQPtrList<KParts::Part> parts( *m_part->partController()->parts() );
+ TQPtrListIterator<KParts::Part> it( parts );
while( it.current() ){
KTextEditor::Document* doc = dynamic_cast<KTextEditor::Document*>( it.current() );
++it;
@@ -82,7 +82,7 @@ QStringList PHPFile::readFromEditor()
if ( !doc || !editIface || doc->url().path() != fileName() )
continue;
- contents = QStringList::split("\n", editIface->text().ascii(), true);
+ contents = TQStringList::split("\n", editIface->text().ascii(), true);
break;
}
kapp->unlock();
@@ -90,15 +90,15 @@ QStringList PHPFile::readFromEditor()
return contents;
}
-QStringList PHPFile::readFromDisk()
+TQStringList PHPFile::readFromDisk()
{
- QStringList contents;
- QFile f( fileName() );
+ TQStringList contents;
+ TQFile f( fileName() );
if (f.open(IO_ReadOnly)) {
- QTextStream stream( &f );
- QStringList list;
- QString rawline;
+ TQTextStream stream( &f );
+ TQStringList list;
+ TQString rawline;
while (!stream.eof()) {
rawline = stream.readLine();
contents.append(rawline.stripWhiteSpace().local8Bit());
@@ -137,11 +137,11 @@ void PHPFile::Analyse() {
postEvent( new FileParseEvent( Event_EndParse, this->fileName() ) );
}
-bool PHPFile::ParseClass(QString line, int lineNo) {
+bool PHPFile::ParseClass(TQString line, int lineNo) {
if (line.find("class ", 0, FALSE) == -1)
return FALSE;
- QRegExp 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]*))?.*$");
+ 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]*))?.*$");
Class.setCaseSensitive(FALSE);
if (Class.search(line) != -1) {
@@ -158,11 +158,11 @@ bool PHPFile::ParseClass(QString line, int lineNo) {
return FALSE;
}
-bool PHPFile::ParseFunction(QString line, int lineNo) {
+bool PHPFile::ParseFunction(TQString line, int lineNo) {
if (line.find("function", 0, FALSE) == -1)
return FALSE;
- QRegExp 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-=]*)\\).*$");
+ 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-=]*)\\).*$");
function.setCaseSensitive(FALSE);
if (function.search(line) != -1) {
@@ -197,11 +197,11 @@ bool PHPFile::ParseFunction(QString line, int lineNo) {
return FALSE;
}
-bool PHPFile::ParseVariable(QString 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)
return FALSE;
- QRegExp variable("^[ \t]*(var|public|private|protected|static)[ \t]*\\$([a-zA-Z_\x7f-\xff][0-9A-Za-z_\x7f-\xff]*)[ \t;=].*$");
+ TQRegExp variable("^[ \t]*(var|public|private|protected|static)[ \t]*\\$([a-zA-Z_\x7f-\xff][0-9A-Za-z_\x7f-\xff]*)[ \t;=].*$");
variable.setCaseSensitive(FALSE);
if (variable.search(line) != -1) {
@@ -226,11 +226,11 @@ bool PHPFile::ParseVariable(QString line, int lineNo) {
return FALSE;
}
-bool PHPFile::ParseThisMember(QString line, int lineNo) {
+bool PHPFile::ParseThisMember(TQString line, int lineNo) {
if (line.find("$this->", 0, FALSE) == -1)
return FALSE;
- QRegExp createthis;
+ TQRegExp createthis;
createthis.setCaseSensitive(FALSE);
createthis.setPattern("\\$this->([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)[ \t]*=[ \t]*([0-9]*)[ \t]*;");
@@ -270,13 +270,13 @@ bool PHPFile::ParseThisMember(QString line, int lineNo) {
return FALSE;
}
-bool PHPFile::ParseMember(QString line, int lineNo) {
+bool PHPFile::ParseMember(TQString line, int lineNo) {
if (line.find("$", 0, FALSE) == -1)
return FALSE;
/// @todo Ajouter plus de test ....
- QRegExp createmember;
+ TQRegExp createmember;
createmember.setCaseSensitive(FALSE);
createmember.setPattern("\\$([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)[ \t]*=[ \t]*([0-9]*)[ \t]*;");
@@ -323,18 +323,18 @@ bool PHPFile::ParseMember(QString line, int lineNo) {
return FALSE;
}
-bool PHPFile::ParseReturn(QString line, int lineNo) {
- QString rettype;
+bool PHPFile::ParseReturn(TQString line, int lineNo) {
+ TQString rettype;
if (line.find("return", 0, FALSE) == -1)
return FALSE;
- QRegExp typeex;
+ TQRegExp typeex;
typeex.setCaseSensitive(FALSE);
typeex.setPattern("return[ \t]*(\\(|)([a-zA-Z_\x7f-\xff$][a-zA-Z0-9_\x7f-\xff]*)(\\)|)[ \t]*;");
if (typeex.search(line) != -1) {
- QString varname = typeex.cap(2).ascii();
+ TQString varname = typeex.cap(2).ascii();
rettype = varname;
if (varname.find("$") == 0) {
@@ -342,7 +342,7 @@ bool PHPFile::ParseReturn(QString line, int lineNo) {
/*
varname = varname.mid(1);
- QValueList<Action *>::ConstIterator it = m_vars.begin();
+ TQValueList<Action *>::ConstIterator it = m_vars.begin();
while ( it != m_vars.end() ) {
Action *p = *it++;
@@ -365,11 +365,11 @@ bool PHPFile::ParseReturn(QString line, int lineNo) {
return TRUE;
}
-bool PHPFile::ParseTodo(QString line, int lineNo) {
+bool PHPFile::ParseTodo(TQString line, int lineNo) {
if (line.find("todo", 0, FALSE) == -1)
return FALSE;
- QRegExp todo("/[/]+[ \t]*[@]*todo([ \t]*:[ \t]*|[ \t]*)[ \t]*(.*)$");
+ TQRegExp todo("/[/]+[ \t]*[@]*todo([ \t]*:[ \t]*|[ \t]*)[ \t]*(.*)$");
todo.setCaseSensitive(FALSE);
if (todo.search(line) != -1) {
@@ -380,11 +380,11 @@ bool PHPFile::ParseTodo(QString line, int lineNo) {
return FALSE;
}
-bool PHPFile::ParseFixme(QString line, int lineNo) {
+bool PHPFile::ParseFixme(TQString line, int lineNo) {
if (line.find("fixme", 0, FALSE) == -1)
return FALSE;
- QRegExp fixme("/[/]+[ \t]*[@]*fixme([ \t]*:[ \t]*|[ \t]*)[ \t]*(.*)$");
+ TQRegExp fixme("/[/]+[ \t]*[@]*fixme([ \t]*:[ \t]*|[ \t]*)[ \t]*(.*)$");
fixme.setCaseSensitive(FALSE);
if (fixme.search(line) != -1) {
@@ -396,34 +396,34 @@ bool PHPFile::ParseFixme(QString line, int lineNo) {
}
void PHPFile::ParseSource() {
- QString line;
+ TQString line;
int lineNo = 0;
int bracketOpen = 0;
int bracketClose = 0;
int bracketFuncOpen = 0;
int bracketFuncClose = 0;
- QRegExp includere("^[ \t]*(include|require|include_once|require_once)[ \t]*(\\(|)[ \t]*[\"'](.*)[\"'][ \t]*(\\)|)[ \t]*;$");
+ TQRegExp includere("^[ \t]*(include|require|include_once|require_once)[ \t]*(\\(|)[ \t]*[\"'](.*)[\"'][ \t]*(\\)|)[ \t]*;$");
includere.setCaseSensitive(FALSE);
- for ( QStringList::Iterator it = m_contents.begin(); it != m_contents.end(); ++it ) {
+ for ( TQStringList::Iterator it = m_contents.begin(); it != m_contents.end(); ++it ) {
line = (*it).local8Bit();
if (!line.isNull()) {
if (line.find("include", 0, FALSE) != -1 || line.find("require", 0, FALSE) != -1) {
if (includere.search(line) != -1) {
- QStringList include_path;
+ TQStringList include_path;
include_path = include_path.split(":", m_part->getIncludePath());
include_path.append(URLUtil::directory(fileName()) + "/");
include_path.append("");
- QStringList list = includere.capturedTexts();
+ TQStringList list = includere.capturedTexts();
- for ( QStringList::Iterator it = include_path.begin(); it != include_path.end(); ++it ) {
- QString abso = URLUtil::canonicalPath(*it + "/" + list[3]);
+ for ( TQStringList::Iterator it = include_path.begin(); it != include_path.end(); ++it ) {
+ TQString abso = URLUtil::canonicalPath(*it + "/" + list[3]);
if (!abso.isNull()) {
- QString rel = URLUtil::relativePathToFile (m_part->project()->projectDirectory(), abso);
+ TQString rel = URLUtil::relativePathToFile (m_part->project()->projectDirectory(), abso);
postEvent( new FileParseEvent( Event_AddFile, abso ) );
}
}
@@ -492,7 +492,7 @@ void PHPFile::PHPCheck() {
/*
char buf[255];
- FILE *fd = popen(QString(m_phpSupport->getExePath() + " -l -f " + KShellProcess::quote(fileName())).ascii(), "r");
+ FILE *fd = popen(TQString(m_phpSupport->getExePath() + " -l -f " + KShellProcess::quote(fileName())).ascii(), "r");
while (!feof(fd)) {
memset(buf, 0, 255);
fgets(buf, 255, fd);
@@ -507,12 +507,12 @@ void PHPFile::PHPCheck() {
/*
void PHPFile::slotReceivedPHPCheckStdout (KProcess* proc, char* buffer, int buflen) {
kdDebug(9018) << "slotPHPExeStdout()" << endl;
- m_phpCheckOutput += QString::fromLocal8Bit(buffer,buflen+1);
+ m_phpCheckOutput += TQString::fromLocal8Bit(buffer,buflen+1);
}
void PHPFile::slotReceivedPHPCheckStderr (KProcess* proc, char* buffer, int buflen) {
kdDebug(9018) << "slotPHPExeStderr()" << endl;
- m_phpCheckOutput += QString::fromLocal8Bit(buffer,buflen+1);
+ m_phpCheckOutput += TQString::fromLocal8Bit(buffer,buflen+1);
}
void PHPFile::slotPHPCheckExited (KProcess* proc) {
@@ -520,15 +520,15 @@ void PHPFile::slotPHPCheckExited (KProcess* proc) {
}
*/
-void PHPFile::ParseStdout(QString phpOutput) {
+void PHPFile::ParseStdout(TQString phpOutput) {
kdDebug(9018) << "ParseStdout()" << endl;
- QRegExp parseError("^(<b>|)Parse error(</b>|): parse error, (.*) in (<b>|)(.*)(</b>|) on line (<b>|)(.*)(</b>|).*$");
- QRegExp undefFunctionError("^(<b>|)Fatal error(</b>|): Call to undefined function: (.*) in (<b>|)(.*)(</b>|) on line (<b>|)(.*)(</b>|).*$");
- QRegExp warning("^(<b>|)Warning(</b>|): (<b>|)(.*)(</b>|) in (.*) on line (<b>|)(.*)(</b>|).*$");
- QRegExp generalFatalError("^(<b>|)Fatal error(</b>|): (.*) in (<b>|)(.*)(</b>|) on line (<b>|)(.*)(</b>|).*$");
+ TQRegExp parseError("^(<b>|)Parse error(</b>|): parse error, (.*) in (<b>|)(.*)(</b>|) on line (<b>|)(.*)(</b>|).*$");
+ TQRegExp undefFunctionError("^(<b>|)Fatal error(</b>|): Call to undefined function: (.*) in (<b>|)(.*)(</b>|) on line (<b>|)(.*)(</b>|).*$");
+ TQRegExp warning("^(<b>|)Warning(</b>|): (<b>|)(.*)(</b>|) in (.*) on line (<b>|)(.*)(</b>|).*$");
+ TQRegExp generalFatalError("^(<b>|)Fatal error(</b>|): (.*) in (<b>|)(.*)(</b>|) on line (<b>|)(.*)(</b>|).*$");
- QStringList list = QStringList::split("\n", phpOutput);
- QStringList::Iterator it;
+ TQStringList list = TQStringList::split("\n", phpOutput);
+ TQStringList::Iterator it;
for ( it = list.begin(); it != list.end(); ++it ) {
if (generalFatalError.search(*it) >= 0) {
// m_errorview->reportProblem(Error, parseError.cap(5), parseError.cap(8).toInt(), parseError.cap(3));
@@ -546,9 +546,9 @@ void PHPFile::ParseStdout(QString phpOutput) {
}
/*
-ClassDom PHPFile::classByName(QString filename, QString classname) {
- QValueList<ClassDom> CList;
- QString abso = URLUtil::canonicalPath(filename);
+ClassDom PHPFile::classByName(TQString filename, TQString classname) {
+ TQValueList<ClassDom> CList;
+ TQString abso = URLUtil::canonicalPath(filename);
ClassList classList = m_model->globalNamespace()->classList();
ClassList::Iterator classIt;
@@ -560,8 +560,8 @@ ClassDom PHPFile::classByName(QString filename, QString classname) {
return NULL;
}
-QValueList<ClassDom> PHPFile::classByName(QString classname) {
- QValueList<ClassDom> CList;
+TQValueList<ClassDom> PHPFile::classByName(TQString classname) {
+ TQValueList<ClassDom> CList;
ClassList classList = m_model->globalNamespace()->classList();
@@ -580,13 +580,13 @@ void PHPFile::postEvent(FileParseEvent *event) {
usleep(100);
}
-bool PHPFile::AddClass(QString name, QString extends, int start) {
+bool PHPFile::AddClass(TQString name, TQString extends, int start) {
postEvent( new FileParseEvent( Event_AddClass, this->fileName(), name, extends, start ) );
inClass = TRUE;
return TRUE;
}
-bool PHPFile::SetClass(QString arguments) {
+bool PHPFile::SetClass(TQString arguments) {
postEvent( new FileParseEvent( Event_SetClass, this->fileName(), "", arguments ) );
return TRUE;
}
@@ -597,13 +597,13 @@ bool PHPFile::CloseClass(int end) {
return TRUE;
}
-bool PHPFile::AddFunction(QString name, QString arguments, int start) {
+bool PHPFile::AddFunction(TQString name, TQString arguments, int start) {
postEvent( new FileParseEvent( Event_AddFunction, this->fileName(), name, arguments, start ) );
inMethod = TRUE;
return TRUE;
}
-bool PHPFile::SetFunction(QString name, QString arguments) {
+bool PHPFile::SetFunction(TQString name, TQString arguments) {
postEvent( new FileParseEvent( Event_SetFunction, this->fileName(), name, arguments ) );
return TRUE;
}
@@ -614,23 +614,23 @@ bool PHPFile::CloseFunction(int end) {
return TRUE;
}
-bool PHPFile::AddVariable(QString name, QString type, int position, bool classvar) {
+bool PHPFile::AddVariable(TQString name, TQString type, int position, bool classvar) {
postEvent( new FileParseEvent( Event_AddVariable, this->fileName(), name, type, position, classvar ) );
return TRUE;
}
-bool PHPFile::SetVariable(QString arguments) {
+bool PHPFile::SetVariable(TQString arguments) {
postEvent( new FileParseEvent( Event_SetVariable, this->fileName(), "", arguments ) );
return TRUE;
}
-bool PHPFile::AddTodo(QString arguments, int position) {
+bool PHPFile::AddTodo(TQString arguments, int position) {
postEvent( new FileParseEvent( Event_AddTodo, this->fileName(), "", arguments, position ) );
inClass = TRUE;
return TRUE;
}
-bool PHPFile::AddFixme(QString arguments, int position) {
+bool PHPFile::AddFixme(TQString arguments, int position) {
postEvent( new FileParseEvent( Event_AddFixme, this->fileName(), "", arguments, position ) );
inClass = TRUE;
return TRUE;
diff --git a/languages/php/phpfile.h b/languages/php/phpfile.h
index cb1573f3..b8aad71b 100644
--- a/languages/php/phpfile.h
+++ b/languages/php/phpfile.h
@@ -20,11 +20,11 @@
#define PHPFILE_H
#include <kapplication.h>
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qfileinfo.h>
-#include <qregexp.h>
-#include <qthread.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqfileinfo.h>
+#include <tqregexp.h>
+#include <tqthread.h>
#include <urlutil.h>
#include <kprocess.h>
@@ -45,23 +45,23 @@
/**
@author Escuder Nicolas
*/
-class PHPFile : public QObject {
+class PHPFile : public TQObject {
Q_OBJECT
public:
- PHPFile(PHPSupportPart *phpSupport, const QString& fileName);
+ PHPFile(PHPSupportPart *phpSupport, const TQString& fileName);
~PHPFile();
- QStringList getContents();
+ TQStringList getContents();
bool isModified();
void setModified(bool value);
- QString fileName();
+ TQString fileName();
void Analyse();
- void ParseStdout(QString phpOutput);
+ void ParseStdout(TQString phpOutput);
/*
- ClassDom classByName(QString filename, QString classname);
- QValueList<ClassDom> classByName(QString classname);
+ ClassDom classByName(TQString filename, TQString classname);
+ TQValueList<ClassDom> classByName(TQString classname);
*/
/*
@@ -71,37 +71,37 @@ private slots:
void slotPHPCheckExited (KProcess* proc);
*/
private:
- QStringList readFromEditor();
- QStringList readFromDisk();
+ TQStringList readFromEditor();
+ TQStringList readFromDisk();
- bool ParseClass(QString line, int lineNo);
- bool ParseFunction(QString line, int lineNo);
- bool ParseVariable(QString line, int lineNo);
+ bool ParseClass(TQString line, int lineNo);
+ bool ParseFunction(TQString line, int lineNo);
+ bool ParseVariable(TQString line, int lineNo);
- bool ParseThisMember(QString line, int lineNo);
- bool ParseMember(QString line, int lineNo);
- bool ParseReturn(QString line, int lineNo);
- bool ParseTodo(QString line, int lineNo);
- bool ParseFixme(QString line, int lineNo);
+ bool ParseThisMember(TQString line, int lineNo);
+ bool ParseMember(TQString line, int lineNo);
+ bool ParseReturn(TQString line, int lineNo);
+ bool ParseTodo(TQString line, int lineNo);
+ bool ParseFixme(TQString line, int lineNo);
void ParseSource();
void PHPCheck();
void postEvent(FileParseEvent *event);
- bool AddClass(QString name, QString extends, int start);
- bool SetClass(QString arguments);
+ bool AddClass(TQString name, TQString extends, int start);
+ bool SetClass(TQString arguments);
bool CloseClass(int end);
- bool AddFunction(QString name, QString arguments, int start);
- bool SetFunction(QString name, QString arguments = "");
+ bool AddFunction(TQString name, TQString arguments, int start);
+ bool SetFunction(TQString name, TQString arguments = "");
bool CloseFunction(int end);
- bool AddVariable(QString name, QString type, int position, bool classvar = FALSE);
- bool SetVariable(QString arguments);
+ bool AddVariable(TQString name, TQString type, int position, bool classvar = FALSE);
+ bool SetVariable(TQString arguments);
- bool AddTodo(QString arguments, int position);
- bool AddFixme(QString arguments, int position);
+ bool AddTodo(TQString arguments, int position);
+ bool AddFixme(TQString arguments, int position);
PHPSupportPart *m_part;
@@ -110,9 +110,9 @@ private:
bool inClass;
bool inMethod;
- QFileInfo* m_fileinfo;
- QStringList m_contents;
- QString m_phpCheckOutput;
+ TQFileInfo* m_fileinfo;
+ TQStringList m_contents;
+ TQString m_phpCheckOutput;
// KShellProcess* phpCheckProc;
};
diff --git a/languages/php/phpnewclassdlg.cpp b/languages/php/phpnewclassdlg.cpp
index f17034db..282e6c01 100644
--- a/languages/php/phpnewclassdlg.cpp
+++ b/languages/php/phpnewclassdlg.cpp
@@ -19,10 +19,10 @@
#include <klineedit.h>
#include <kcompletion.h>
#include <kfiledialog.h>
-#include <qtoolbutton.h>
+#include <tqtoolbutton.h>
#include <iostream>
-#include <qregexp.h>
-#include <qtextedit.h>
+#include <tqregexp.h>
+#include <tqtextedit.h>
#include <kglobal.h>
#include <kstandarddirs.h>
#include <kinstance.h>
@@ -30,17 +30,17 @@
using namespace std;
-PHPNewClassDlg::PHPNewClassDlg(const QStringList& baseClassNames,const QString& directory,QWidget *parent, const char *name) : PHPNewClassDlgBase(parent,name,true) {
+PHPNewClassDlg::PHPNewClassDlg(const TQStringList& baseClassNames,const TQString& directory,TQWidget *parent, const char *name) : PHPNewClassDlgBase(parent,name,true) {
m_filenameModified = false;
KCompletion *comp = new KCompletion();
comp->setItems(baseClassNames);
m_dirEdit->setText(directory);
// load the class template if available
- QString templateFile = KGlobal::instance()->dirs()->findResource("data","kdevphpsupport/newclasstemplate.txt");
+ TQString templateFile = KGlobal::instance()->dirs()->findResource("data","kdevphpsupport/newclasstemplate.txt");
if(!templateFile.isNull()){
- QFile file(templateFile);
- QTextStream stream(&file);
+ TQFile file(templateFile);
+ TQTextStream stream(&file);
if(file.open(IO_ReadOnly)){
m_classTemplate->setText(stream.read());
file.close();
@@ -49,30 +49,30 @@ PHPNewClassDlg::PHPNewClassDlg(const QStringList& baseClassNames,const QString&
m_baseClassEdit->setCompletionObject( comp ); /// @todo change it to KLineEdit
- connect(m_baseClassEdit,SIGNAL(returnPressed(const QString&)),comp,SLOT(addItem(const QString&)));
- connect(m_classNameEdit,SIGNAL(textChanged(const QString&)),
- this,SLOT(classNameTextChanged(const QString&)));
- connect(m_fileNameEdit,SIGNAL(textChanged(const QString&)),
- this,SLOT(fileNameTextChanged(const QString&)));
- connect(m_dirButton,SIGNAL(clicked()),
- this,SLOT(slotDirButtonClicked()));
+ connect(m_baseClassEdit,TQT_SIGNAL(returnPressed(const TQString&)),comp,TQT_SLOT(addItem(const TQString&)));
+ connect(m_classNameEdit,TQT_SIGNAL(textChanged(const TQString&)),
+ this,TQT_SLOT(classNameTextChanged(const TQString&)));
+ connect(m_fileNameEdit,TQT_SIGNAL(textChanged(const TQString&)),
+ this,TQT_SLOT(fileNameTextChanged(const TQString&)));
+ connect(m_dirButton,TQT_SIGNAL(clicked()),
+ this,TQT_SLOT(slotDirButtonClicked()));
}
PHPNewClassDlg::~PHPNewClassDlg(){
}
void PHPNewClassDlg::slotDirButtonClicked(){
- QString dir = KFileDialog::getExistingDirectory(m_dirEdit->text(),this);
+ TQString dir = KFileDialog::getExistingDirectory(m_dirEdit->text(),this);
if(!dir.isEmpty()){
m_dirEdit->setText(dir);
}
}
-void PHPNewClassDlg::classNameTextChanged(const QString& str){
+void PHPNewClassDlg::classNameTextChanged(const TQString& str){
if(!m_filenameModified){
m_fileNameEdit->setText(str.lower() + ".inc");
}
}
-void PHPNewClassDlg::fileNameTextChanged(const QString&){
+void PHPNewClassDlg::fileNameTextChanged(const TQString&){
if(m_fileNameEdit->hasFocus()){
m_filenameModified = true;
}
@@ -80,22 +80,22 @@ void PHPNewClassDlg::fileNameTextChanged(const QString&){
void PHPNewClassDlg::accept(){
PHPNewClassDlgBase::accept(); // hide the dialog
- QString text = m_classTemplate->text();
- QString classDir = m_dirEdit->text();
+ TQString text = m_classTemplate->text();
+ TQString classDir = m_dirEdit->text();
if(!classDir.endsWith("/")) classDir += "/"; // append /
- QString absFileName = classDir + m_fileNameEdit->text();
+ TQString absFileName = classDir + m_fileNameEdit->text();
// save the template for the next time
- QString templateDir = KGlobal::instance()->dirs()->saveLocation("data") + "/kdevphpsupport/";
- QString templateFile = templateDir + "newclasstemplate.txt";
- QDir dir(templateDir);
+ TQString templateDir = KGlobal::instance()->dirs()->saveLocation("data") + "/kdevphpsupport/";
+ TQString templateFile = templateDir + "newclasstemplate.txt";
+ TQDir dir(templateDir);
if(!dir.exists()){
if(!dir.mkdir(templateDir)){
kdWarning() << "Error on creating directory for the classtemplate" << templateDir << endl;
}
}
- QFile file(templateFile);
- QTextStream stream(&file);
+ TQFile file(templateFile);
+ TQTextStream stream(&file);
if(file.open(IO_WriteOnly)){
stream << text; // write
@@ -104,14 +104,14 @@ void PHPNewClassDlg::accept(){
// generate the sourcecode for the class
if(m_baseClassEdit->text().isEmpty()){
- text = text.replace(QRegExp("extends BASECLASS"),"");
- text = text.replace(QRegExp("BASECLASS\\:\\:BASECLASS\\(\\);"),"");
+ text = text.replace(TQRegExp("extends BASECLASS"),"");
+ text = text.replace(TQRegExp("BASECLASS\\:\\:BASECLASS\\(\\);"),"");
}else{
- text = text.replace(QRegExp("BASECLASS"),m_baseClassEdit->text());
+ text = text.replace(TQRegExp("BASECLASS"),m_baseClassEdit->text());
}
- text = text.replace(QRegExp("CLASSNAME"),m_classNameEdit->text());
- text = text.replace(QRegExp("FILENAME"),m_fileNameEdit->text().upper());
- text = text.replace(QRegExp("AUTHOR"),"not implemented");
+ text = text.replace(TQRegExp("CLASSNAME"),m_classNameEdit->text());
+ text = text.replace(TQRegExp("FILENAME"),m_fileNameEdit->text().upper());
+ text = text.replace(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 d94bfffb..14db74b2 100644
--- a/languages/php/phpnewclassdlg.h
+++ b/languages/php/phpnewclassdlg.h
@@ -18,7 +18,7 @@
#ifndef PHPNEWCLASSDLG_H
#define PHPNEWCLASSDLG_H
-#include <qwidget.h>
+#include <tqwidget.h>
#include "phpnewclassdlgbase.h"
/**
@@ -28,11 +28,11 @@
class PHPNewClassDlg : public PHPNewClassDlgBase {
Q_OBJECT
public:
- PHPNewClassDlg(const QStringList& baseClassNames,const QString& directory,QWidget *parent=0, const char *name=0);
+ PHPNewClassDlg(const TQStringList& baseClassNames,const TQString& directory,TQWidget *parent=0, const char *name=0);
~PHPNewClassDlg();
protected slots:
- void classNameTextChanged(const QString&);
- void fileNameTextChanged(const QString&);
+ void classNameTextChanged(const TQString&);
+ void fileNameTextChanged(const TQString&);
void accept();
void slotDirButtonClicked();
protected:
diff --git a/languages/php/phpparser.cpp b/languages/php/phpparser.cpp
index b13c5479..a0f1179e 100644
--- a/languages/php/phpparser.cpp
+++ b/languages/php/phpparser.cpp
@@ -25,11 +25,11 @@
#include <kdevproject.h>
#include <codemodel.h>
-#include <qregexp.h>
+#include <tqregexp.h>
#include <kdebug.h>
-#include <qfileinfo.h>
-#include <qtextstream.h>
+#include <tqfileinfo.h>
+#include <tqtextstream.h>
#include <iostream>
@@ -46,37 +46,37 @@ PHPParser::~PHPParser(){
removeAllFiles();
}
-bool PHPParser::hasFile( const QString& fileName )
+bool PHPParser::hasFile( const TQString& fileName )
{
// kdDebug(9018) << "hasFile " << fileName.latin1() << endl;
- QString abso = URLUtil::canonicalPath(fileName);
- QMap<QString, PHPFile *>::Iterator it = m_files.find(abso);
+ TQString abso = URLUtil::canonicalPath(fileName);
+ TQMap<TQString, PHPFile *>::Iterator it = m_files.find(abso);
if ( it == m_files.end() )
return false;
return true;
}
-void PHPParser::addFile( const QString& fileName )
+void PHPParser::addFile( const TQString& fileName )
{
- QString abso = URLUtil::canonicalPath(fileName);
+ TQString abso = URLUtil::canonicalPath(fileName);
if ( hasFile(abso) )
return;
kdDebug(9018) << "addFile " << fileName.latin1() << endl;
- QFileInfo fi( abso );
+ 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("~")) {
m_files.insert(abso, new PHPFile(m_part, abso));
}
}
-void PHPParser::removeFile( const QString& fileName )
+void PHPParser::removeFile( const TQString& fileName )
{
// kdDebug(9018) << "removeFile " << fileName.latin1() << endl;
- QString abso = URLUtil::canonicalPath(fileName);
- QMap<QString, PHPFile *>::Iterator it = m_files.find(abso);
+ TQString abso = URLUtil::canonicalPath(fileName);
+ TQMap<TQString, PHPFile *>::Iterator it = m_files.find(abso);
if ( it != m_files.end()) {
PHPFile *file = it.data();
@@ -89,7 +89,7 @@ void PHPParser::removeFile( const QString& fileName )
void PHPParser::removeAllFiles()
{
kdDebug(9018) << "removeAllFiles" << endl;
- QMap<QString, PHPFile *>::Iterator it = m_files.begin();
+ TQMap<TQString, PHPFile *>::Iterator it = m_files.begin();
while( it != m_files.end() ){
PHPFile * file = it.data();
@@ -100,11 +100,11 @@ void PHPParser::removeAllFiles()
m_files.clear();
}
-void PHPParser::reparseFile( const QString& fileName )
+void PHPParser::reparseFile( const TQString& fileName )
{
kdDebug(9018) << "reparseFile" << endl;
- QString abso = URLUtil::canonicalPath(fileName);
- QMap<QString, PHPFile *>::Iterator it = m_files.find(abso);
+ TQString abso = URLUtil::canonicalPath(fileName);
+ TQMap<TQString, PHPFile *>::Iterator it = m_files.find(abso);
if ( it != m_files.end()) {
PHPFile *file = it.data();
@@ -115,8 +115,8 @@ void PHPParser::reparseFile( const QString& fileName )
}
void PHPParser::run() {
- kdDebug(9018) << "run thread " << QThread::currentThread() << endl;
- QMap<QString, PHPFile *>::Iterator it;
+ kdDebug(9018) << "run thread " << TQThread::currentThread() << endl;
+ TQMap<TQString, PHPFile *>::Iterator it;
while ( !m_close ) {
m_canParse.wait();
diff --git a/languages/php/phpparser.h b/languages/php/phpparser.h
index c5d7e378..24687ea3 100644
--- a/languages/php/phpparser.h
+++ b/languages/php/phpparser.h
@@ -19,19 +19,19 @@
#ifndef PHPPARSER_H
#define PHPPARSER_H
-#include <qthread.h>
+#include <tqthread.h>
#if QT_VERSION < 0x030100
#include <kdevmutex.h>
#else
-#include <qmutex.h>
+#include <tqmutex.h>
#endif
#include <codemodel.h>
-#include <qwaitcondition.h>
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqwaitcondition.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
#include "phpfile.h"
@@ -42,16 +42,16 @@ class PHPSupportPart;
*@author Sandy Meier
*/
-class PHPParser: public QThread {
+class PHPParser: public TQThread {
public:
PHPParser(PHPSupportPart *part);
~PHPParser();
- void addFile( const QString& fileName );
- bool hasFile( const QString& fileName );
- void reparseFile( const QString& fileName );
- void removeFile( const QString& fileName );
+ void addFile( const TQString& fileName );
+ bool hasFile( const TQString& fileName );
+ void reparseFile( const TQString& fileName );
+ void removeFile( const TQString& fileName );
void removeAllFiles();
void run();
@@ -63,10 +63,10 @@ private:
KDevCore* m_core;
PHPSupportPart* m_part;
- QMutex m_mutex;
- QWaitCondition m_canParse;
+ TQMutex m_mutex;
+ TQWaitCondition m_canParse;
bool m_close;
- QMap<QString, PHPFile*> m_files;
+ TQMap<TQString, PHPFile*> m_files;
};
diff --git a/languages/php/phpsupport_event.h b/languages/php/phpsupport_event.h
index 4a1a175b..09c5f49e 100644
--- a/languages/php/phpsupport_event.h
+++ b/languages/php/phpsupport_event.h
@@ -20,18 +20,18 @@
#ifndef __phpsupport_events_h
#define __phpsupport_events_h
-#include <qevent.h>
-#include <qvaluelist.h>
+#include <tqevent.h>
+#include <tqvaluelist.h>
#if QT_VERSION < 0x030100
#include <kdevmutex.h>
#else
-#include <qmutex.h>
+#include <tqmutex.h>
#endif
enum
{
- Event_AddFile = QEvent::User + 1000,
+ Event_AddFile = TQEvent::User + 1000,
Event_StartParse,
Event_EndParse,
Event_AddClass,
@@ -49,8 +49,8 @@ enum
class FileParseEvent: public QCustomEvent
{
public:
- FileParseEvent(long event, const QString& fileName )
- : QCustomEvent(event), m_fileName( fileName )
+ FileParseEvent(long event, const TQString& fileName )
+ : TQCustomEvent(event), m_fileName( fileName )
{
m_name = "";
m_arguments = "";
@@ -58,29 +58,29 @@ public:
m_global = FALSE;
}
- FileParseEvent(long event, const QString& fileName, int position )
- : QCustomEvent(event), m_fileName( fileName ), m_position( position )
+ FileParseEvent(long event, const TQString& fileName, int position )
+ : TQCustomEvent(event), m_fileName( fileName ), m_position( position )
{
m_name = "";
m_arguments = "";
m_global = FALSE;
}
- FileParseEvent(long event, const QString& fileName, const QString& name, const QString& arguments )
- : QCustomEvent(event), m_fileName( fileName ), m_name( name ), m_arguments( arguments )
+ FileParseEvent(long event, const TQString& fileName, const TQString& name, const TQString& arguments )
+ : TQCustomEvent(event), m_fileName( fileName ), m_name( name ), m_arguments( arguments )
{
m_position = 0;
m_global = FALSE;
}
- FileParseEvent(long event, const QString& fileName, const QString& name, const QString& arguments, int position )
- : QCustomEvent(event), m_fileName( fileName ), m_name( name ), m_arguments( arguments ), m_position( position )
+ FileParseEvent(long event, const TQString& fileName, const TQString& name, const TQString& arguments, int position )
+ : TQCustomEvent(event), m_fileName( fileName ), m_name( name ), m_arguments( arguments ), m_position( position )
{
m_global = FALSE;
}
- FileParseEvent(long event, const QString& fileName, const QString& name, const QString& arguments, int position, bool global )
- : QCustomEvent(event), m_fileName( fileName ), m_name( name ), m_arguments( arguments ), m_position( position ), m_global( global )
+ FileParseEvent(long event, const TQString& fileName, const TQString& name, const TQString& arguments, int position, bool global )
+ : TQCustomEvent(event), m_fileName( fileName ), m_name( name ), m_arguments( arguments ), m_position( position ), m_global( global )
{
}
@@ -88,17 +88,17 @@ public:
{
}
- QString fileName() const { return m_fileName; }
- QString name() const { return m_name; }
- QString arguments() const { return m_arguments; }
+ TQString fileName() const { return m_fileName; }
+ TQString name() const { return m_name; }
+ TQString arguments() const { return m_arguments; }
int posititon() const { return m_position; }
bool global() const { return m_global; }
private:
- QString m_fileName;
- QString m_name;
- QString m_arguments;
- QString m_accesstype;
+ TQString m_fileName;
+ TQString m_name;
+ TQString m_arguments;
+ TQString m_accesstype;
int m_position;
bool m_global;
diff --git a/languages/php/phpsupportpart.cpp b/languages/php/phpsupportpart.cpp
index 4c4de794..d31bc933 100644
--- a/languages/php/phpsupportpart.cpp
+++ b/languages/php/phpsupportpart.cpp
@@ -21,16 +21,16 @@
#include <iostream>
-#include <qdir.h>
-#include <qfileinfo.h>
-#include <qpopupmenu.h>
-#include <qprogressbar.h>
-#include <qstringlist.h>
-#include <qtextstream.h>
-#include <qtimer.h>
-#include <qvbox.h>
-#include <qwhatsthis.h>
-#include <qthread.h>
+#include <tqdir.h>
+#include <tqfileinfo.h>
+#include <tqpopupmenu.h>
+#include <tqprogressbar.h>
+#include <tqstringlist.h>
+#include <tqtextstream.h>
+#include <tqtimer.h>
+#include <tqvbox.h>
+#include <tqwhatsthis.h>
+#include <tqthread.h>
#include <kaction.h>
#include <kapplication.h>
@@ -69,7 +69,7 @@ using namespace std;
static const KDevPluginInfo data("kdevphpsupport");
K_EXPORT_COMPONENT_FACTORY( libkdevphpsupport, PHPSupportFactory( data ) )
-PHPSupportPart::PHPSupportPart(QObject *parent, const char *name, const QStringList &)
+PHPSupportPart::PHPSupportPart(TQObject *parent, const char *name, const TQStringList &)
: KDevLanguageSupport(&data, parent, name ? name : "PHPSupportPart")
{
m_htmlView = 0;
@@ -79,23 +79,23 @@ PHPSupportPart::PHPSupportPart(QObject *parent, const char *name, const QStringL
setXMLFile("kdevphpsupport.rc");
- connect( core(), SIGNAL(projectOpened()), this, SLOT(projectOpened()) );
- connect( core(), SIGNAL(projectClosed()), this, SLOT(projectClosed()) );
- connect( partController(), SIGNAL(savedFile(const KURL&)),
- this, SLOT(savedFile(const KURL&)) );
- connect( core(), SIGNAL(projectConfigWidget(KDialogBase*)),
- this, SLOT(projectConfigWidget(KDialogBase*)) );
+ connect( core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(projectOpened()) );
+ connect( core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(projectClosed()) );
+ connect( partController(), TQT_SIGNAL(savedFile(const KURL&)),
+ this, TQT_SLOT(savedFile(const KURL&)) );
+ connect( core(), TQT_SIGNAL(projectConfigWidget(KDialogBase*)),
+ this, TQT_SLOT(projectConfigWidget(KDialogBase*)) );
KAction *action;
action = new KAction( i18n("&Run"), "exec",Key_F9,
- this, SLOT(slotRun()),
+ this, TQT_SLOT(slotRun()),
actionCollection(), "build_execute" );
action->setToolTip(i18n("Run"));
action->setWhatsThis(i18n("<b>Run</b><p>Executes script on a terminal or a webserver."));
action = new KAction( i18n("&New Class..."),0,
- this, SLOT(slotNewClass()),
+ this, TQT_SLOT(slotNewClass()),
actionCollection(), "project_new_class" );
action->setToolTip(i18n("New class"));
action->setWhatsThis(i18n("<b>New class</b><p>Runs New Class wizard."));
@@ -103,33 +103,33 @@ PHPSupportPart::PHPSupportPart(QObject *parent, const char *name, const QStringL
m_phpErrorView = new PHPErrorView(this, 0, "phpErrorWidget");
m_phpErrorView->setIcon( SmallIcon("info") );
- QWhatsThis::add(m_phpErrorView, i18n("<b>PHP problems</b><p>This view shows PHP parser warnings, errors, and fatal errors."));
+ TQWhatsThis::add(m_phpErrorView, i18n("<b>PHP problems</b><p>This view shows PHP parser warnings, errors, and fatal errors."));
mainWindow()->embedOutputView(m_phpErrorView, i18n("Problems"), i18n("Problems"));
phpExeProc = new KShellProcess("/bin/sh");
- connect( phpExeProc, SIGNAL(receivedStdout (KProcess*, char*, int)),
- this, SLOT(slotReceivedPHPExeStdout (KProcess*, char*, int)));
- connect( phpExeProc, SIGNAL(receivedStderr (KProcess*, char*, int)),
- this, SLOT(slotReceivedPHPExeStderr (KProcess*, char*, int)));
- connect( phpExeProc, SIGNAL(processExited(KProcess*)),
- this, SLOT(slotPHPExeExited(KProcess*)));
+ connect( phpExeProc, TQT_SIGNAL(receivedStdout (KProcess*, char*, int)),
+ this, TQT_SLOT(slotReceivedPHPExeStdout (KProcess*, char*, int)));
+ connect( phpExeProc, TQT_SIGNAL(receivedStderr (KProcess*, char*, int)),
+ this, TQT_SLOT(slotReceivedPHPExeStderr (KProcess*, char*, int)));
+ connect( phpExeProc, TQT_SIGNAL(processExited(KProcess*)),
+ this, TQT_SLOT(slotPHPExeExited(KProcess*)));
m_htmlView = new PHPHTMLView(this);
mainWindow()->embedOutputView(m_htmlView->view(), i18n("PHP"), i18n("PHP"));
- connect( m_htmlView, SIGNAL(started(KIO::Job*)),
- this, SLOT(slotWebJobStarted(KIO::Job*)));
+ connect( m_htmlView, TQT_SIGNAL(started(KIO::Job*)),
+ this, TQT_SLOT(slotWebJobStarted(KIO::Job*)));
configData = new PHPConfigData(projectDom());
- connect( configData, SIGNAL(configStored()),
- this, SLOT(slotConfigStored()));
+ connect( configData, TQT_SIGNAL(configStored()),
+ this, TQT_SLOT(slotConfigStored()));
m_codeCompletion = new PHPCodeCompletion(this, configData);
- new KAction(i18n("Complete Text"), CTRL+Key_Space, m_codeCompletion, SLOT(cursorPositionChanged()), actionCollection(), "edit_complete_text");
+ new KAction(i18n("Complete Text"), CTRL+Key_Space, m_codeCompletion, TQT_SLOT(cursorPositionChanged()), actionCollection(), "edit_complete_text");
- connect( partController(), SIGNAL(activePartChanged(KParts::Part*)),
- this, SLOT(slotActivePartChanged(KParts::Part *)));
- connect( this, SIGNAL(fileParsed( PHPFile* )), this, SLOT(slotfileParsed( PHPFile* )));
+ connect( partController(), TQT_SIGNAL(activePartChanged(KParts::Part*)),
+ this, TQT_SLOT(slotActivePartChanged(KParts::Part *)));
+ connect( this, TQT_SIGNAL(fileParsed( PHPFile* )), this, TQT_SLOT(slotfileParsed( PHPFile* )));
}
PHPSupportPart::~PHPSupportPart()
@@ -180,7 +180,7 @@ void PHPSupportPart::slotActivePartChanged(KParts::Part *part) {
if (m_editInterface) { // connect to the editor
disconnect(part, 0, this, 0 ); // to make sure that it is't connected twice
if (configData->getRealtimeParsing()) {
- connect(part,SIGNAL(textChanged()),this,SLOT(slotTextChanged()));
+ connect(part,TQT_SIGNAL(textChanged()),this,TQT_SLOT(slotTextChanged()));
}
m_codeCompletion->setActiveEditorPart(part);
}
@@ -194,7 +194,7 @@ void PHPSupportPart::slotTextChanged() {
if (!ro_part)
return;
- QString fileName = ro_part->url().directory() + "/" + ro_part->url().fileName();
+ TQString fileName = ro_part->url().directory() + "/" + ro_part->url().fileName();
if (m_parser) {
if (m_parser->hasFile( fileName ))
@@ -208,13 +208,13 @@ void PHPSupportPart::slotConfigStored() {
}
void PHPSupportPart::projectConfigWidget(KDialogBase *dlg) {
- QVBox *vbox = dlg->addVBoxPage(i18n( "PHP Specific" ), i18n("PHP Settings"), BarIcon( "source", KIcon::SizeMedium ));
+ TQVBox *vbox = dlg->addVBoxPage(i18n( "PHP Specific" ), i18n("PHP Settings"), BarIcon( "source", KIcon::SizeMedium ));
PHPConfigWidget* w = new PHPConfigWidget(configData,vbox, "php config widget");
- connect( dlg, SIGNAL(okClicked()), w, SLOT(accept()) );
+ connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()) );
}
void PHPSupportPart::slotNewClass() {
- QStringList classNames = sortedNameList( codeModel()->globalNamespace()->classList() );
+ TQStringList classNames = sortedNameList( codeModel()->globalNamespace()->classList() );
PHPNewClassDlg dlg(classNames,project()->projectDirectory());
dlg.exec();
}
@@ -240,9 +240,9 @@ bool PHPSupportPart::validateConfig() {
KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, 0,
"php config dialog");
- QVBox *vbox = dlg.addVBoxPage(i18n("PHP Settings"));
+ TQVBox *vbox = dlg.addVBoxPage(i18n("PHP Settings"));
PHPConfigWidget* w = new PHPConfigWidget(configData,vbox, "php config widget");
- connect( &dlg, SIGNAL(okClicked()), w, SLOT(accept()) );
+ connect( &dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()) );
dlg.exec();
}
if (configData->validateConfig()) {
@@ -257,8 +257,8 @@ void PHPSupportPart::executeOnWebserver() {
return; //user cancelled
// Figure out the name of the remote file
- QString weburl = configData->getWebURL();
- QString file = getExecuteFile();
+ TQString weburl = configData->getWebURL();
+ TQString file = getExecuteFile();
// Force KHTMLPart to reload the page
KParts::BrowserExtension* be = m_htmlView->browserExtension();
@@ -274,11 +274,11 @@ void PHPSupportPart::executeOnWebserver() {
m_htmlView->show();
}
-QString PHPSupportPart::getExecuteFile() {
- QString file;
+TQString PHPSupportPart::getExecuteFile() {
+ TQString file;
PHPConfigData::StartupFileMode mode = configData->getStartupFileMode();
- QString weburl = configData->getWebURL();
+ TQString weburl = configData->getWebURL();
if (mode == PHPConfigData::Current) {
KParts::ReadOnlyPart *ro_part = dynamic_cast<KParts::ReadOnlyPart*>(partController()->activePart());
if (ro_part) {
@@ -295,25 +295,25 @@ QString PHPSupportPart::getExecuteFile() {
}
void PHPSupportPart::slotWebJobStarted(KIO::Job* job) {
- if (job && job->className() == QString("KIO::TransferJob")) {
+ if (job && job->className() == TQString("KIO::TransferJob")) {
kdDebug(9018) << endl << "job started" << job->progressId();
KIO::TransferJob *tjob = static_cast<KIO::TransferJob*>(job);
- connect( tjob, SIGNAL(data(KIO::Job*, const QByteArray&)),
- this, SLOT(slotWebData(KIO::Job*, const QByteArray&)));
- connect( tjob, SIGNAL(result(KIO::Job*)),
- this, SLOT(slotWebResult(KIO::Job*)));
+ connect( tjob, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)),
+ this, TQT_SLOT(slotWebData(KIO::Job*, const TQByteArray&)));
+ connect( tjob, TQT_SIGNAL(result(KIO::Job*)),
+ this, TQT_SLOT(slotWebResult(KIO::Job*)));
}
}
-void PHPSupportPart::slotWebData(KIO::Job* /*job*/,const QByteArray& data) {
+void PHPSupportPart::slotWebData(KIO::Job* /*job*/,const TQByteArray& data) {
kdDebug(9018) << "slotWebData()" << endl;
- QString strData(data);
+ TQString strData(data);
m_phpExeOutput += strData;
}
void PHPSupportPart::slotWebResult(KIO::Job* /*job*/) {
kdDebug(9018) << "slotWebResult()" << endl;
- QString file = getExecuteFile();
+ TQString file = getExecuteFile();
PHPFile *pfile = new PHPFile(this, file);
pfile->ParseStdout(m_phpExeOutput);
delete pfile;
@@ -326,7 +326,7 @@ void PHPSupportPart::executeInTerminal() {
if (partController()->saveAllFiles()==false)
return; //user cancelled
- QString file = getExecuteFile();
+ TQString file = getExecuteFile();
if (m_htmlView == 0) {
m_htmlView = new PHPHTMLView(this);
@@ -350,9 +350,9 @@ void PHPSupportPart::executeInTerminal() {
void PHPSupportPart::slotReceivedPHPExeStdout (KProcess* /*proc*/, char* buffer, int buflen) {
kdDebug(9018) << "slotPHPExeStdout()" << endl;
- m_phpExeOutput += QString::fromLocal8Bit(buffer,buflen+1);
+ m_phpExeOutput += TQString::fromLocal8Bit(buffer,buflen+1);
- QString buf = buffer;
+ TQString buf = buffer;
if (configData->getInvocationMode() == PHPConfigData::Shell)
buf.replace("\n", "<br>");
m_htmlView->write(buf);
@@ -360,9 +360,9 @@ void PHPSupportPart::slotReceivedPHPExeStdout (KProcess* /*proc*/, char* buffer,
void PHPSupportPart::slotReceivedPHPExeStderr (KProcess* /*proc*/, char* buffer, int buflen) {
kdDebug(9018) << "slotPHPExeStderr()" << endl;
- m_phpExeOutput += QString::fromLocal8Bit(buffer,buflen+1);
+ m_phpExeOutput += TQString::fromLocal8Bit(buffer,buflen+1);
- QString buf = buffer;
+ TQString buf = buffer;
if (configData->getInvocationMode() == PHPConfigData::Shell)
buf.replace("\n", "<br>");
m_htmlView->write(buf);
@@ -371,7 +371,7 @@ void PHPSupportPart::slotReceivedPHPExeStderr (KProcess* /*proc*/, char* buffer,
void PHPSupportPart::slotPHPExeExited (KProcess* /*proc*/) {
kdDebug(9018) << "slotPHPExeExited()" << endl;
m_htmlView->end();
- QString file = getExecuteFile();
+ TQString file = getExecuteFile();
PHPFile *pfile = new PHPFile(this, file);
pfile->ParseStdout(m_phpExeOutput);
delete pfile;
@@ -381,10 +381,10 @@ void PHPSupportPart::projectOpened()
{
kdDebug(9018) << "projectOpened()" << endl;
- connect( project(), SIGNAL(addedFilesToProject(const QStringList &)),
- this, SLOT(addedFilesToProject(const QStringList &)) );
- connect( project(), SIGNAL(removedFilesFromProject(const QStringList &)),
- this, SLOT(removedFilesFromProject(const QStringList &)) );
+ connect( project(), TQT_SIGNAL(addedFilesToProject(const TQStringList &)),
+ this, TQT_SLOT(addedFilesToProject(const TQStringList &)) );
+ connect( project(), TQT_SIGNAL(removedFilesFromProject(const TQStringList &)),
+ this, TQT_SLOT(removedFilesFromProject(const TQStringList &)) );
if (!m_parser) {
m_parser = new PHPParser( this );
@@ -393,7 +393,7 @@ void PHPSupportPart::projectOpened()
// We want to parse only after all components have been
// properly initialized
- QTimer::singleShot(500, this, SLOT( initialParse() ) );
+ TQTimer::singleShot(500, this, TQT_SLOT( initialParse() ) );
}
void PHPSupportPart::initialParse( )
@@ -432,7 +432,7 @@ bool PHPSupportPart::parseProject()
_jd->files = project()->allFiles();
- QProgressBar* bar = new QProgressBar( _jd->files.count( ), mainWindow( ) ->statusBar( ) );
+ TQProgressBar* bar = new TQProgressBar( _jd->files.count( ), mainWindow( ) ->statusBar( ) );
bar->setMinimumWidth( 120 );
bar->setCenterIndicator( true );
mainWindow()->statusBar()->addWidget( bar );
@@ -442,7 +442,7 @@ bool PHPSupportPart::parseProject()
_jd->it = _jd->files.begin();
_jd->dir.setPath( project()->projectDirectory() );
- QTimer::singleShot( 0, this, SLOT( slotParseFiles() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( slotParseFiles() ) );
return TRUE;
}
@@ -456,11 +456,11 @@ void PHPSupportPart::slotParseFiles()
{
_jd->progressBar->setProgress( _jd->progressBar->progress() + 1 );
- QFileInfo fileInfo( _jd->dir, *( _jd->it ) );
+ TQFileInfo fileInfo( _jd->dir, *( _jd->it ) );
if ( fileInfo.exists() && fileInfo.isFile() && fileInfo.isReadable() )
{
- QString absFilePath = URLUtil::canonicalPath( fileInfo.absFilePath() );
+ TQString absFilePath = URLUtil::canonicalPath( fileInfo.absFilePath() );
// if ( isValidSource( absFilePath ) )
{
@@ -470,7 +470,7 @@ void PHPSupportPart::slotParseFiles()
++( _jd->it );
}
- QTimer::singleShot( 0, this, SLOT( slotParseFiles() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( slotParseFiles() ) );
}
else // finished or interrupted
{
@@ -489,15 +489,15 @@ void PHPSupportPart::slotParseFiles()
kapp->unlock();
}
-void PHPSupportPart::addedFilesToProject(const QStringList &fileList)
+void PHPSupportPart::addedFilesToProject(const TQStringList &fileList)
{
kdDebug(9018) << "addedFilesToProject()" << endl;
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = fileList.begin(); it != fileList.end(); ++it )
{
- QFileInfo fileInfo( project()->projectDirectory(), *it );
+ TQFileInfo fileInfo( project()->projectDirectory(), *it );
if (m_parser) {
m_parser->addFile( fileInfo.absFilePath() );
emit addedSourceInfo( fileInfo.absFilePath() );
@@ -505,16 +505,16 @@ void PHPSupportPart::addedFilesToProject(const QStringList &fileList)
}
}
-void PHPSupportPart::removedFilesFromProject(const QStringList &fileList)
+void PHPSupportPart::removedFilesFromProject(const TQStringList &fileList)
{
kdDebug(9018) << "removedFilesFromProject()" << endl;
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = fileList.begin(); it != fileList.end(); ++it )
{
- QFileInfo fileInfo( project()->projectDirectory(), *it );
- QString path = fileInfo.absFilePath();
+ TQFileInfo fileInfo( project()->projectDirectory(), *it );
+ TQString path = fileInfo.absFilePath();
if ( codeModel()->hasFile(path) ) {
emit aboutToRemoveSourceInfo( path );
codeModel()->removeFile( codeModel()->fileByName(path) );
@@ -535,12 +535,12 @@ void PHPSupportPart::savedFile(const KURL &fileName)
*/
}
-QString PHPSupportPart::getIncludePath()
+TQString PHPSupportPart::getIncludePath()
{
return configData->getPHPIncludePath();
}
-QString PHPSupportPart::getExePath()
+TQString PHPSupportPart::getExePath()
{
return configData->getPHPExecPath();
}
@@ -563,9 +563,9 @@ KMimeType::List PHPSupportPart::mimeTypes( )
return list;
}
-void PHPSupportPart::customEvent( QCustomEvent* ev )
+void PHPSupportPart::customEvent( TQCustomEvent* ev )
{
-// kdDebug(9018) << "phpSupportPart::customEvent(" << ev->type() << ") " << QThread::currentThread() << endl;
+// kdDebug(9018) << "phpSupportPart::customEvent(" << ev->type() << ") " << TQThread::currentThread() << endl;
if ( ev->type() < Event_AddFile || ev->type() > Event_AddFixme )
return;
@@ -663,7 +663,7 @@ void PHPSupportPart::customEvent( QCustomEvent* ev )
else if ( event->name() == "protected" )
LastMethod->setAccess(FunctionModel::Protected);
else if ( event->name() == "result" ) {
- QString ret = "";
+ TQString ret = "";
if (event->arguments().lower() == "$this" && LastClass ) {
ret = LastClass->name();
}
diff --git a/languages/php/phpsupportpart.h b/languages/php/phpsupportpart.h
index 83478283..5f7ba13b 100644
--- a/languages/php/phpsupportpart.h
+++ b/languages/php/phpsupportpart.h
@@ -20,9 +20,9 @@
#ifndef _PHPSUPPORTPART_H_
#define _PHPSUPPORTPART_H_
-#include <qdir.h>
-#include <qfile.h>
-#include <qprogressbar.h>
+#include <tqdir.h>
+#include <tqfile.h>
+#include <tqprogressbar.h>
#include <kdialogbase.h>
#include "kdevlanguagesupport.h"
@@ -46,17 +46,17 @@ class PHPSupportPart : public KDevLanguageSupport
Q_OBJECT
public:
- PHPSupportPart( QObject *parent, const char *name, const QStringList & );
+ PHPSupportPart( TQObject *parent, const char *name, const TQStringList & );
~PHPSupportPart();
PHPErrorView *ErrorView();
PHPParser *Parser( ) ;
- QString getIncludePath();
- QString getExePath();
+ TQString getIncludePath();
+ TQString getExePath();
void emitFileParsed( PHPFile *file );
- virtual void customEvent( QCustomEvent* ev );
+ virtual void customEvent( TQCustomEvent* ev );
protected:
virtual Features features();
@@ -66,15 +66,15 @@ private slots:
void projectOpened();
void projectClosed();
void savedFile(const KURL &fileName);
- void addedFilesToProject(const QStringList &fileList);
- void removedFilesFromProject(const QStringList &fileList);
+ void addedFilesToProject(const TQStringList &fileList);
+ void removedFilesFromProject(const TQStringList &fileList);
void slotRun();
void slotNewClass();
void projectConfigWidget(KDialogBase *dlg);
void slotReceivedPHPExeStderr (KProcess* proc, char* buffer, int buflen);
void slotReceivedPHPExeStdout (KProcess* proc, char* buffer, int buflen);
void slotPHPExeExited (KProcess* proc);
- void slotWebData(KIO::Job* job,const QByteArray& data);
+ void slotWebData(KIO::Job* job,const TQByteArray& data);
void slotWebResult(KIO::Job* job);
void slotWebJobStarted(KIO::Job* job);
@@ -91,7 +91,7 @@ private slots:
void slotConfigStored();
private:
- QString getExecuteFile();
+ TQString getExecuteFile();
void executeOnWebserver();
void executeInTerminal();
bool validateConfig();
@@ -99,7 +99,7 @@ private:
PHPHTMLView* m_htmlView;
PHPErrorView* m_phpErrorView;
KShellProcess* phpExeProc;
- QString m_phpExeOutput;
+ TQString m_phpExeOutput;
PHPConfigData* configData;
PHPCodeCompletion* m_codeCompletion;
PHPParser* m_parser;
@@ -107,13 +107,13 @@ private:
struct JobData
{
- QDir dir;
- QGuardedPtr<QProgressBar> progressBar;
- QStringList::Iterator it;
- QStringList files;
- QMap< QString, QPair<uint, uint> > pcs;
- QDataStream stream;
- QFile file;
+ TQDir dir;
+ TQGuardedPtr<TQProgressBar> progressBar;
+ TQStringList::Iterator it;
+ TQStringList files;
+ TQMap< TQString, QPair<uint, uint> > pcs;
+ TQDataStream stream;
+ TQFile file;
~JobData()
{
diff --git a/languages/python/pydoc.cpp b/languages/python/pydoc.cpp
index 79f184d7..4b70e170 100644
--- a/languages/python/pydoc.cpp
+++ b/languages/python/pydoc.cpp
@@ -5,7 +5,7 @@
#include <sys/stat.h>
#include <unistd.h>
-#include <qtextstream.h>
+#include <tqtextstream.h>
#include <kstandarddirs.h>
#include <kinstance.h>
#include <kprocess.h>
@@ -16,7 +16,7 @@
using namespace KIO;
-PydocProtocol::PydocProtocol(const QCString &pool, const QCString &app)
+PydocProtocol::PydocProtocol(const TQCString &pool, const TQCString &app)
: SlaveBase("pydoc", pool, app), key()
{
python = KGlobal::dirs()->findExe("python");
@@ -33,7 +33,7 @@ void PydocProtocol::get(const KURL& url)
mimeType("text/html");
key = url.path();
- QString cmd = KProcess::quote(python);
+ TQString cmd = KProcess::quote(python);
cmd += " ";
cmd += KProcess::quote(script);
cmd += " -w ";
@@ -41,7 +41,7 @@ void PydocProtocol::get(const KURL& url)
FILE *fd = popen(cmd.local8Bit().data(), "r");
char buffer[4096];
- QByteArray array;
+ TQByteArray array;
while (!feof(fd)) {
int n = fread(buffer, 1, 2048, fd);
@@ -66,9 +66,9 @@ void PydocProtocol::mimetype(const KURL&)
}
-QCString PydocProtocol::errorMessage()
+TQCString PydocProtocol::errorMessage()
{
- return QCString( "<html><body bgcolor=\"#FFFFFF\">" + i18n("Error in pydoc").local8Bit() + "</body></html>" );
+ return TQCString( "<html><body bgcolor=\"#FFFFFF\">" + i18n("Error in pydoc").local8Bit() + "</body></html>" );
}
diff --git a/languages/python/pydoc.h b/languages/python/pydoc.h
index e17a257a..9e848a04 100644
--- a/languages/python/pydoc.h
+++ b/languages/python/pydoc.h
@@ -1,14 +1,14 @@
#ifndef _PYDOC_H_
#define _PYDOC_H_
-#include <qobject.h>
+#include <tqobject.h>
#include <kio/slavebase.h>
class PydocProtocol : public KIO::SlaveBase
{
public:
- PydocProtocol(const QCString &pool, const QCString &app);
+ PydocProtocol(const TQCString &pool, const TQCString &app);
virtual ~PydocProtocol();
virtual void get(const KURL& url);
@@ -18,13 +18,13 @@ public:
protected:
void decodeURL(const KURL &url);
- void decodePath(QString path);
- QCString errorMessage();
+ void decodePath(TQString path);
+ TQCString errorMessage();
private:
- QString python;
- QString script;
- QString key;
+ TQString python;
+ TQString script;
+ TQString key;
};
#endif
diff --git a/languages/python/pythonconfigwidget.cpp b/languages/python/pythonconfigwidget.cpp
index 87472477..29103705 100644
--- a/languages/python/pythonconfigwidget.cpp
+++ b/languages/python/pythonconfigwidget.cpp
@@ -11,13 +11,13 @@
#include "pythonconfigwidget.h"
-#include <qcheckbox.h>
+#include <tqcheckbox.h>
#include <klineedit.h>
#include "domutil.h"
-PythonConfigWidget::PythonConfigWidget(QDomDocument &projectDom,
- QWidget *parent, const char *name)
+PythonConfigWidget::PythonConfigWidget(TQDomDocument &projectDom,
+ TQWidget *parent, const char *name)
: PythonConfigWidgetBase(parent, name), dom(projectDom)
{
interpreter_edit->setText(DomUtil::readEntry(dom, "/kdevpythonsupport/run/interpreter"));
diff --git a/languages/python/pythonconfigwidget.h b/languages/python/pythonconfigwidget.h
index 22708c29..674b8e3c 100644
--- a/languages/python/pythonconfigwidget.h
+++ b/languages/python/pythonconfigwidget.h
@@ -13,7 +13,7 @@
#define _PYTHONCONFIGWIDGET_H_
#include "pythonconfigwidgetbase.h"
-#include <qdom.h>
+#include <tqdom.h>
class PythonConfigWidget : public PythonConfigWidgetBase
@@ -21,14 +21,14 @@ class PythonConfigWidget : public PythonConfigWidgetBase
Q_OBJECT
public:
- PythonConfigWidget( QDomDocument &projectDom, QWidget *parent=0, const char *name=0 );
+ PythonConfigWidget( TQDomDocument &projectDom, TQWidget *parent=0, const char *name=0 );
~PythonConfigWidget();
public slots:
void accept();
private:
- QDomDocument &dom;
+ TQDomDocument &dom;
};
#endif
diff --git a/languages/python/pythonimplementationwidget.cpp b/languages/python/pythonimplementationwidget.cpp
index 439c7706..9aba5441 100644
--- a/languages/python/pythonimplementationwidget.cpp
+++ b/languages/python/pythonimplementationwidget.cpp
@@ -19,11 +19,11 @@
***************************************************************************/
#include "pythonimplementationwidget.h"
-#include <qdir.h>
-#include <qfile.h>
-#include <qregexp.h>
-#include <qfileinfo.h>
-#include <qtextstream.h>
+#include <tqdir.h>
+#include <tqfile.h>
+#include <tqregexp.h>
+#include <tqfileinfo.h>
+#include <tqtextstream.h>
#include <klineedit.h>
#include <klocale.h>
@@ -34,7 +34,7 @@
#include <kdevproject.h>
PythonImplementationWidget::PythonImplementationWidget(KDevLanguageSupport* part,
- QWidget* parent, const char* name, bool modal)
+ TQWidget* parent, const char* name, bool modal)
: ImplementationWidget(part, parent, name, modal)
{
}
@@ -45,31 +45,31 @@ PythonImplementationWidget::~PythonImplementationWidget()
}
-QStringList PythonImplementationWidget::createClassFiles()
+TQStringList PythonImplementationWidget::createClassFiles()
{
-// QString template_py = "require '$BASEFILENAME$'\n\nclass $CLASSNAME$ < $BASECLASSNAME$\n\n def initialize(*k)\n super(*k)\n end\n\nend\n";
- QString 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 = "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";
- QFileInfo formInfo(m_formName);
- template_py.replace(QRegExp("\\$BASEFILENAME\\$"), formInfo.baseName()+".py");
- template_py.replace(QRegExp("\\$CLASSNAME\\$"), classNameEdit->text());
- template_py.replace(QRegExp("\\$BASECLASSNAME\\$"), m_baseClassName);
+ 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 = FileTemplate::read(m_part, "py") + template_py;
- QString file_py = fileNameEdit->text() + ".py";
+ TQString file_py = fileNameEdit->text() + ".py";
if (!m_part->project()->activeDirectory().isEmpty())
file_py = m_part->project()->activeDirectory() + "/" + file_py;
- QFile file(QDir::cleanDirPath(m_part->project()->projectDirectory() + "/" + file_py));
+ TQFile file(TQDir::cleanDirPath(m_part->project()->projectDirectory() + "/" + file_py));
if (!file.open(IO_WriteOnly)) {
KMessageBox::error(0, i18n("Cannot write to file"));
- return QStringList();
+ return TQStringList();
}
- QTextStream stream(&file);
+ TQTextStream stream(&file);
stream << template_py;
file.close();
- QStringList files;
+ TQStringList files;
files.append(file_py);
return files;
}
diff --git a/languages/python/pythonimplementationwidget.h b/languages/python/pythonimplementationwidget.h
index e767ecc9..e8838bab 100644
--- a/languages/python/pythonimplementationwidget.h
+++ b/languages/python/pythonimplementationwidget.h
@@ -26,11 +26,11 @@ class PythonImplementationWidget : public ImplementationWidget
{
Q_OBJECT
public:
- PythonImplementationWidget(KDevLanguageSupport* part, QWidget* parent = 0, const char* name = 0, bool modal = true);
+ PythonImplementationWidget(KDevLanguageSupport* part, TQWidget* parent = 0, const char* name = 0, bool modal = true);
~PythonImplementationWidget();
- virtual QStringList createClassFiles();
+ virtual TQStringList createClassFiles();
};
diff --git a/languages/python/pythonsupportpart.cpp b/languages/python/pythonsupportpart.cpp
index 1b0e76da..9e6b0b0c 100644
--- a/languages/python/pythonsupportpart.cpp
+++ b/languages/python/pythonsupportpart.cpp
@@ -19,12 +19,12 @@
#include <codemodel.h>
#include <domutil.h>
-#include <qfileinfo.h>
-#include <qpopupmenu.h>
-#include <qstringlist.h>
-#include <qtextstream.h>
-#include <qtimer.h>
-#include <qvbox.h>
+#include <tqfileinfo.h>
+#include <tqpopupmenu.h>
+#include <tqstringlist.h>
+#include <tqtextstream.h>
+#include <tqtimer.h>
+#include <tqvbox.h>
#include <kaction.h>
#include <kapplication.h>
#include <kdebug.h>
@@ -33,7 +33,7 @@
#include <kdevplugininfo.h>
#include <kinputdialog.h>
#include <klocale.h>
-#include <qregexp.h>
+#include <tqregexp.h>
#include "qtdesignerpythonintegration.h"
#include "pythonimplementationwidget.h"
@@ -42,44 +42,44 @@ typedef KDevGenericFactory<PythonSupportPart> PythonSupportFactory;
static const KDevPluginInfo data("kdevpythonsupport");
K_EXPORT_COMPONENT_FACTORY( libkdevpythonsupport, PythonSupportFactory( data ) )
-PythonSupportPart::PythonSupportPart(QObject *parent, const char *name, const QStringList &)
+PythonSupportPart::PythonSupportPart(TQObject *parent, const char *name, const TQStringList &)
: KDevLanguageSupport(&data, parent, name ? name : "PythonSupportPart")
{
setInstance(PythonSupportFactory::instance());
setXMLFile("kdevpythonsupport.rc");
- connect( core(), SIGNAL(projectOpened()), this, SLOT(projectOpened()) );
- connect( core(), SIGNAL(projectClosed()), this, SLOT(projectClosed()) );
- connect( partController(), SIGNAL(savedFile(const KURL&)),
- this, SLOT(savedFile(const KURL&)) );
- connect( core(), SIGNAL(projectConfigWidget(KDialogBase*)),
- this, SLOT(projectConfigWidget(KDialogBase*)) );
- connect( core(), SIGNAL(contextMenu(QPopupMenu *, const Context *)),
- this, SLOT(contextMenu(QPopupMenu *, const Context *)) );
+ connect( core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(projectOpened()) );
+ connect( core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(projectClosed()) );
+ connect( partController(), TQT_SIGNAL(savedFile(const KURL&)),
+ this, TQT_SLOT(savedFile(const KURL&)) );
+ connect( core(), TQT_SIGNAL(projectConfigWidget(KDialogBase*)),
+ this, TQT_SLOT(projectConfigWidget(KDialogBase*)) );
+ connect( core(), TQT_SIGNAL(contextMenu(TQPopupMenu *, const Context *)),
+ this, TQT_SLOT(contextMenu(TQPopupMenu *, const Context *)) );
KAction *action;
action = new KAction( i18n("Execute Program"), "exec", 0,
- this, SLOT(slotExecute()),
+ this, TQT_SLOT(slotExecute()),
actionCollection(), "build_exec" );
action->setToolTip( i18n("Execute program") );
action->setWhatsThis(i18n("<b>Execute program</b><p>Runs the Python program."));
action = new KAction( i18n("Execute String..."), "exec", 0,
- this, SLOT(slotExecuteString()),
+ this, TQT_SLOT(slotExecuteString()),
actionCollection(), "build_execstring" );
action->setToolTip( i18n("Execute string") );
action->setWhatsThis(i18n("<b>Execute String</b><p>Executes a string as Python code."));
action = new KAction( i18n("Start Python Interpreter"), "exec", 0,
- this, SLOT(slotStartInterpreter()),
+ this, TQT_SLOT(slotStartInterpreter()),
actionCollection(), "build_runinterpreter" );
action->setToolTip( i18n("Start Python interpreter") );
action->setWhatsThis(i18n("<b>Start python interpreter</b><p>Starts the Python interpreter without a program"));
action = new KAction( i18n("Python Documentation..."), 0,
- this, SLOT(slotPydoc()),
+ this, TQT_SLOT(slotPydoc()),
actionCollection(), "help_pydoc" );
action->setToolTip( i18n("Python documentation") );
action->setWhatsThis(i18n("<b>Python documentation</b><p>Shows a Python documentation page."));
@@ -90,7 +90,7 @@ PythonSupportPart::~PythonSupportPart()
{}
-void PythonSupportPart::contextMenu(QPopupMenu *popup, const Context *context)
+void PythonSupportPart::contextMenu(TQPopupMenu *popup, const Context *context)
{
if (context->hasType(Context::FileContext)){
const FileContext *fc = static_cast<const FileContext*>(context);
@@ -99,7 +99,7 @@ void PythonSupportPart::contextMenu(QPopupMenu *popup, const Context *context)
if (url.fileName().endsWith(".ui"))
{
m_contextFileName = url.fileName();
- int id = popup->insertItem(i18n("Create or Select Implementation..."), this, SLOT(slotCreateSubclass()));
+ 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."));
}
}
@@ -108,9 +108,9 @@ void PythonSupportPart::contextMenu(QPopupMenu *popup, const Context *context)
void PythonSupportPart::projectConfigWidget(KDialogBase *dlg)
{
- QVBox *vbox = dlg->addVBoxPage(i18n("Python"));
+ TQVBox *vbox = dlg->addVBoxPage(i18n("Python"));
PythonConfigWidget *w = new PythonConfigWidget(*projectDom(), vbox, "python config widget");
- connect( dlg, SIGNAL(okClicked()), w, SLOT(accept()) );
+ connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()) );
}
@@ -118,14 +118,14 @@ void PythonSupportPart::projectOpened()
{
kdDebug(9014) << "projectOpened()" << endl;
- connect( project(), SIGNAL(addedFilesToProject(const QStringList &)),
- this, SLOT(addedFilesToProject(const QStringList &)) );
- connect( project(), SIGNAL(removedFilesFromProject(const QStringList &)),
- this, SLOT(removedFilesFromProject(const QStringList &)) );
+ connect( project(), TQT_SIGNAL(addedFilesToProject(const TQStringList &)),
+ this, TQT_SLOT(addedFilesToProject(const TQStringList &)) );
+ connect( project(), TQT_SIGNAL(removedFilesFromProject(const TQStringList &)),
+ this, TQT_SLOT(removedFilesFromProject(const TQStringList &)) );
// We want to parse only after all components have been
// properly initialized
- QTimer::singleShot(0, this, SLOT(initialParse()));
+ TQTimer::singleShot(0, this, TQT_SLOT(initialParse()));
}
@@ -134,9 +134,9 @@ void PythonSupportPart::projectClosed()
}
-void PythonSupportPart::maybeParse(const QString fileName)
+void PythonSupportPart::maybeParse(const TQString fileName)
{
- QFileInfo fi(fileName);
+ TQFileInfo fi(fileName);
if (fi.extension() == "py") {
if( codeModel()->hasFile(fileName) ){
@@ -155,8 +155,8 @@ void PythonSupportPart::initialParse()
if (project()) {
kapp->setOverrideCursor(waitCursor);
- QStringList files = project()->allFiles();
- for (QStringList::Iterator it = files.begin(); it != files.end() ;++it) {
+ TQStringList files = project()->allFiles();
+ for (TQStringList::Iterator it = files.begin(); it != files.end() ;++it) {
kdDebug(9014) << "maybe parse " << project()->projectDirectory() + "/" + (*it) << endl;
maybeParse(project()->projectDirectory() + "/" + *it);
}
@@ -169,15 +169,15 @@ void PythonSupportPart::initialParse()
}
-void PythonSupportPart::addedFilesToProject(const QStringList &fileList)
+void PythonSupportPart::addedFilesToProject(const TQStringList &fileList)
{
kdDebug(9014) << "addedFilesToProject()" << endl;
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = fileList.begin(); it != fileList.end(); ++it )
{
- QString fileName = project()->projectDirectory() + "/" + ( *it );
+ TQString fileName = project()->projectDirectory() + "/" + ( *it );
maybeParse( fileName );
emit addedSourceInfo( fileName );
}
@@ -186,15 +186,15 @@ void PythonSupportPart::addedFilesToProject(const QStringList &fileList)
}
-void PythonSupportPart::removedFilesFromProject(const QStringList &fileList)
+void PythonSupportPart::removedFilesFromProject(const TQStringList &fileList)
{
kdDebug(9014) << "removedFilesFromProject()" << endl;
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = fileList.begin(); it != fileList.end(); ++it )
{
- QString fileName = project()->projectDirectory() + "/" + ( *it );
+ TQString fileName = project()->projectDirectory() + "/" + ( *it );
if( codeModel()->hasFile(fileName) ){
emit aboutToRemoveSourceInfo( fileName );
@@ -237,22 +237,22 @@ KMimeType::List PythonSupportPart::mimeTypes( )
return list;
}
-void PythonSupportPart::parse(const QString &fileName)
+void PythonSupportPart::parse(const TQString &fileName)
{
- QFile f(QFile::encodeName(fileName));
+ TQFile f(TQFile::encodeName(fileName));
if (!f.open(IO_ReadOnly))
return;
- QTextStream stream(&f);
+ TQTextStream stream(&f);
- QRegExp classre("^[ \t]*class[ \t]+([A-Za-z0-9_]+)[ \t]*(\\(([A-Za-z0-9_, \t]+)\\))?.*$");
- QRegExp methodre("^[ \t]*def[ \t]+([A-Za-z0-9_]+).*$");
+ TQRegExp classre("^[ \t]*class[ \t]+([A-Za-z0-9_]+)[ \t]*(\\(([A-Za-z0-9_, \t]+)\\))?.*$");
+ TQRegExp methodre("^[ \t]*def[ \t]+([A-Za-z0-9_]+).*$");
FileDom m_file = codeModel()->create<FileModel>();
m_file->setName( fileName );
ClassDom lastClass;
- QString rawline;
- QCString line;
+ TQString rawline;
+ TQCString line;
int lineNo = 0;
while (!stream.atEnd()) {
rawline = stream.readLine();
@@ -264,10 +264,10 @@ void PythonSupportPart::parse(const QString &fileName)
lastClass->setFileName( fileName );
lastClass->setStartPosition( lineNo, 0 );
- QStringList parentList = QStringList::split(",", classre.cap(3));
- QStringList::ConstIterator it;
+ TQStringList parentList = TQStringList::split(",", classre.cap(3));
+ TQStringList::ConstIterator it;
for (it = parentList.begin(); it != parentList.end(); ++it) {
- QString baseName = (*it).stripWhiteSpace();
+ TQString baseName = (*it).stripWhiteSpace();
kdDebug(9014) << "Add parent" << baseName << endl;
lastClass->addBaseClass( baseName );
}
@@ -296,7 +296,7 @@ void PythonSupportPart::parse(const QString &fileName)
if (lastClass && rawline.left(3) != "def") {
if( !lastClass->hasFunction(method->name()) )
lastClass->addFunction( method );
- QStringList scope;
+ TQStringList scope;
scope << lastClass->name();
method->setScope( scope );
@@ -314,9 +314,9 @@ void PythonSupportPart::parse(const QString &fileName)
}
-QString PythonSupportPart::interpreter()
+TQString PythonSupportPart::interpreter()
{
- QString prog = DomUtil::readEntry(*projectDom(), "/kdevpythonsupport/run/interpreter");
+ TQString prog = DomUtil::readEntry(*projectDom(), "/kdevpythonsupport/run/interpreter");
if (prog.isEmpty())
prog = "python";
@@ -324,18 +324,18 @@ QString PythonSupportPart::interpreter()
}
-void PythonSupportPart::startApplication(const QString &program)
+void PythonSupportPart::startApplication(const TQString &program)
{
bool inTerminal = DomUtil::readBoolEntry(*projectDom(), "/kdevpythonsupport/run/terminal");
if (KDevAppFrontend *appFrontend = extension<KDevAppFrontend>("KDevelop/AppFrontend"))
- appFrontend->startAppCommand(QString::QString(), program, inTerminal);
+ appFrontend->startAppCommand(TQString::TQString(), program, inTerminal);
}
void PythonSupportPart::slotExecute()
{
- QString program = project()->mainProgram();
- QString cmd = interpreter() + " " + program;
+ TQString program = project()->mainProgram();
+ TQString cmd = interpreter() + " " + program;
startApplication(cmd);
}
@@ -349,7 +349,7 @@ void PythonSupportPart::slotStartInterpreter()
void PythonSupportPart::slotExecuteString()
{
bool ok;
- QString cmd = KInputDialog::getText(i18n("String to Execute"), i18n("String to execute:"), QString::null, &ok, 0);
+ TQString cmd = KInputDialog::getText(i18n("String to Execute"), i18n("String to execute:"), TQString::null, &ok, 0);
if (ok) {
cmd.prepend("'");
cmd.append("'");
@@ -361,9 +361,9 @@ void PythonSupportPart::slotExecuteString()
void PythonSupportPart::slotPydoc()
{
bool ok;
- QString key = KInputDialog::getText(i18n("Show Python Documentation"), i18n("Show Python documentation on keyword:"), "", &ok, 0);
+ TQString key = KInputDialog::getText(i18n("Show Python Documentation"), i18n("Show Python documentation on keyword:"), "", &ok, 0);
if (ok && !key.isEmpty()) {
- QString url = "pydoc:";
+ TQString url = "pydoc:";
url += key;
partController()->showDocument(KURL(url));
}
@@ -394,7 +394,7 @@ KDevDesignerIntegration *PythonSupportPart::designer(KInterfaceDesigner::Designe
void PythonSupportPart::slotCreateSubclass()
{
- QFileInfo fi(m_contextFileName);
+ TQFileInfo fi(m_contextFileName);
kdDebug(9014) << k_funcinfo << " file: " << m_contextFileName << " ext: " << fi.extension(false) << endl;
if (fi.extension(false) != "ui")
return;
diff --git a/languages/python/pythonsupportpart.h b/languages/python/pythonsupportpart.h
index ad2085e5..efa6f51c 100644
--- a/languages/python/pythonsupportpart.h
+++ b/languages/python/pythonsupportpart.h
@@ -25,13 +25,13 @@ class PythonSupportPart : public KDevLanguageSupport
Q_OBJECT
public:
- PythonSupportPart( QObject *parent, const char *name, const QStringList & );
+ PythonSupportPart( TQObject *parent, const char *name, const TQStringList & );
~PythonSupportPart();
virtual KDevDesignerIntegration *designer(KInterfaceDesigner::DesignerType type);
public slots:
- void contextMenu(QPopupMenu *popup, const Context *context);
+ void contextMenu(TQPopupMenu *popup, const Context *context);
void slotCreateSubclass();
protected:
@@ -43,8 +43,8 @@ private slots:
void projectOpened();
void projectClosed();
void savedFile(const KURL &fileName);
- void addedFilesToProject(const QStringList &fileList);
- void removedFilesFromProject(const QStringList &fileList);
+ void addedFilesToProject(const TQStringList &fileList);
+ void removedFilesFromProject(const TQStringList &fileList);
void slotExecute();
void slotExecuteString();
void slotStartInterpreter();
@@ -54,13 +54,13 @@ private slots:
void slotPydoc();
private:
- QString interpreter();
- void startApplication(const QString &program);
- void maybeParse(const QString fileName);
- void parse(const QString &fileName);
+ TQString interpreter();
+ void startApplication(const TQString &program);
+ void maybeParse(const TQString fileName);
+ void parse(const TQString &fileName);
- QMap<KInterfaceDesigner::DesignerType, KDevDesignerIntegration*> m_designers;
- QString m_contextFileName;
+ TQMap<KInterfaceDesigner::DesignerType, KDevDesignerIntegration*> m_designers;
+ TQString m_contextFileName;
};
#endif
diff --git a/languages/python/qtdesignerpythonintegration.cpp b/languages/python/qtdesignerpythonintegration.cpp
index a4e324ed..53950f65 100644
--- a/languages/python/qtdesignerpythonintegration.cpp
+++ b/languages/python/qtdesignerpythonintegration.cpp
@@ -19,8 +19,8 @@
***************************************************************************/
#include "qtdesignerpythonintegration.h"
-#include <qpair.h>
-#include <qregexp.h>
+#include <tqpair.h>
+#include <tqregexp.h>
#include <klocale.h>
#include <kdebug.h>
@@ -55,7 +55,7 @@ void QtDesignerPythonIntegration::addFunctionToClass(KInterfaceDesigner::Functio
KTextEditor::EditInterface* editIface = dynamic_cast<KTextEditor::EditInterface*>( m_part->partController()->activePart() );
if( !editIface ){
/// @todo show messagebox
-// QDialog::accept();
+// TQDialog::accept();
return;
}
@@ -77,9 +77,9 @@ void QtDesignerPythonIntegration::addFunctionToClass(KInterfaceDesigner::Functio
point.second = funEndColumn;
}
- QString func = function.function;
+ TQString func = function.function;
func.replace("()", "");
- QString str = " def " + func + "(self):\n\n";
+ TQString str = " def " + func + "(self):\n\n";
kdDebug(9014) << "insert " << str << " into " << point.first << endl;
diff --git a/languages/ruby/app_templates/dcopservice/app.cpp b/languages/ruby/app_templates/dcopservice/app.cpp
index 8d6af02d..46086a9e 100644
--- a/languages/ruby/app_templates/dcopservice/app.cpp
+++ b/languages/ruby/app_templates/dcopservice/app.cpp
@@ -1,24 +1,24 @@
#include <ruby.h>
-#include <qstring.h>
-#include <qfileinfo.h>
+#include <tqstring.h>
+#include <tqfileinfo.h>
#include <kinstance.h>
#include <kstandarddirs.h>
int main(int argc, char **argv) {
KInstance * instance = new KInstance("%{APPNAMELC}");
- QString appdir = ::locate("data", "%{APPNAMELC}/main.rb", instance);
+ TQString appdir = ::locate("data", "%{APPNAMELC}/main.rb", instance);
delete instance;
if (appdir.isNull()) {
qFatal("Error: Can't find \"%{APPNAMELC}/main.rb\"\n");
}
- QFileInfo program(appdir);
+ TQFileInfo program(appdir);
char ** rubyargs = (char **) calloc(argc+4, sizeof(char *));
rubyargs[0] = strdup(argv[0]);
rubyargs[1] = strdup("-KU");
- rubyargs[2] = strdup(QString("-C%1").arg(program.dirPath()).latin1());
- rubyargs[3] = strdup(QString("-I%1").arg(program.dirPath()).latin1());
+ rubyargs[2] = strdup(TQString("-C%1").arg(program.dirPath()).latin1());
+ rubyargs[3] = strdup(TQString("-I%1").arg(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 8d6af02d..46086a9e 100644
--- a/languages/ruby/app_templates/kapp/app.cpp
+++ b/languages/ruby/app_templates/kapp/app.cpp
@@ -1,24 +1,24 @@
#include <ruby.h>
-#include <qstring.h>
-#include <qfileinfo.h>
+#include <tqstring.h>
+#include <tqfileinfo.h>
#include <kinstance.h>
#include <kstandarddirs.h>
int main(int argc, char **argv) {
KInstance * instance = new KInstance("%{APPNAMELC}");
- QString appdir = ::locate("data", "%{APPNAMELC}/main.rb", instance);
+ TQString appdir = ::locate("data", "%{APPNAMELC}/main.rb", instance);
delete instance;
if (appdir.isNull()) {
qFatal("Error: Can't find \"%{APPNAMELC}/main.rb\"\n");
}
- QFileInfo program(appdir);
+ TQFileInfo program(appdir);
char ** rubyargs = (char **) calloc(argc+4, sizeof(char *));
rubyargs[0] = strdup(argv[0]);
rubyargs[1] = strdup("-KU");
- rubyargs[2] = strdup(QString("-C%1").arg(program.dirPath()).latin1());
- rubyargs[3] = strdup(QString("-I%1").arg(program.dirPath()).latin1());
+ rubyargs[2] = strdup(TQString("-C%1").arg(program.dirPath()).latin1());
+ rubyargs[3] = strdup(TQString("-I%1").arg(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.cpp b/languages/ruby/app_templates/kxt/app.cpp
index 8d6af02d..46086a9e 100644
--- a/languages/ruby/app_templates/kxt/app.cpp
+++ b/languages/ruby/app_templates/kxt/app.cpp
@@ -1,24 +1,24 @@
#include <ruby.h>
-#include <qstring.h>
-#include <qfileinfo.h>
+#include <tqstring.h>
+#include <tqfileinfo.h>
#include <kinstance.h>
#include <kstandarddirs.h>
int main(int argc, char **argv) {
KInstance * instance = new KInstance("%{APPNAMELC}");
- QString appdir = ::locate("data", "%{APPNAMELC}/main.rb", instance);
+ TQString appdir = ::locate("data", "%{APPNAMELC}/main.rb", instance);
delete instance;
if (appdir.isNull()) {
qFatal("Error: Can't find \"%{APPNAMELC}/main.rb\"\n");
}
- QFileInfo program(appdir);
+ TQFileInfo program(appdir);
char ** rubyargs = (char **) calloc(argc+4, sizeof(char *));
rubyargs[0] = strdup(argv[0]);
rubyargs[1] = strdup("-KU");
- rubyargs[2] = strdup(QString("-C%1").arg(program.dirPath()).latin1());
- rubyargs[3] = strdup(QString("-I%1").arg(program.dirPath()).latin1());
+ rubyargs[2] = strdup(TQString("-C%1").arg(program.dirPath()).latin1());
+ rubyargs[3] = strdup(TQString("-I%1").arg(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/debugger/breakpoint.cpp b/languages/ruby/debugger/breakpoint.cpp
index f210e359..c9a91ec4 100644
--- a/languages/ruby/debugger/breakpoint.cpp
+++ b/languages/ruby/debugger/breakpoint.cpp
@@ -23,11 +23,11 @@
#include <klocale.h>
-#include <qfileinfo.h>
-#include <qfontmetrics.h>
-#include <qpainter.h>
-#include <qregexp.h>
-#include <qstring.h>
+#include <tqfileinfo.h>
+#include <tqfontmetrics.h>
+#include <tqpainter.h>
+#include <tqregexp.h>
+#include <tqstring.h>
#include <stdio.h>
@@ -67,12 +67,12 @@ Breakpoint::~Breakpoint()
/***************************************************************************/
-QString Breakpoint::dbgRemoveCommand() const
+TQString Breakpoint::dbgRemoveCommand() const
{
// if (dbgId_>0)
-// return QString("delete %1").arg(dbgId_); // gdb command - not translatable
+// return TQString("delete %1").arg(dbgId_); // gdb command - not translatable
- return QString();
+ return TQString();
}
/***************************************************************************/
@@ -115,9 +115,9 @@ void Breakpoint::setActive(int active, int id)
/***************************************************************************/
-QString Breakpoint::statusDisplay(int activeFlag) const
+TQString Breakpoint::statusDisplay(int activeFlag) const
{
- QString status="";
+ TQString status="";
if (!s_enabled_)
status = i18n("Disabled");
else
@@ -141,7 +141,7 @@ QString Breakpoint::statusDisplay(int activeFlag) const
/***************************************************************************/
/***************************************************************************/
-FilePosBreakpoint::FilePosBreakpoint(const QString &fileName, int lineNum,
+FilePosBreakpoint::FilePosBreakpoint(const TQString &fileName, int lineNum,
bool temporary, bool enabled)
: Breakpoint(temporary, enabled),
fileName_(fileName),
@@ -157,13 +157,13 @@ FilePosBreakpoint::~FilePosBreakpoint()
/***************************************************************************/
-QString FilePosBreakpoint::dbgSetCommand() const
+TQString FilePosBreakpoint::dbgSetCommand() const
{
- QString cmdStr;
+ TQString cmdStr;
if (fileName_.isEmpty())
- cmdStr = QString("break %1").arg(lineNo_); // gdb command - not translatable
+ cmdStr = TQString("break %1").arg(lineNo_); // gdb command - not translatable
else {
- cmdStr = QString("break %1:%2").arg(fileName_).arg(lineNo_);
+ cmdStr = TQString("break %1:%2").arg(fileName_).arg(lineNo_);
}
if (isTemporary())
@@ -192,26 +192,26 @@ bool FilePosBreakpoint::match(const Breakpoint *brkpt) const
/***************************************************************************/
-QString FilePosBreakpoint::location(bool compact)
+TQString FilePosBreakpoint::location(bool compact)
{
if (compact)
- return QFileInfo(fileName_).fileName()+":"+QString::number(lineNo_);
+ return TQFileInfo(fileName_).fileName()+":"+TQString::number(lineNo_);
- return fileName_+":"+QString::number(lineNo_);
+ return fileName_+":"+TQString::number(lineNo_);
}
/***************************************************************************/
-void FilePosBreakpoint::setLocation(const QString& location)
+void FilePosBreakpoint::setLocation(const TQString& location)
{
- QRegExp regExp1("(.*):(\\d+)$");
+ TQRegExp regExp1("(.*):(\\d+)$");
regExp1.setMinimal(true);
if ( regExp1.search(location, 0) >= 0 )
{
- QString t = regExp1.cap(1);
- QString dirPath = QFileInfo(t).dirPath();
+ TQString t = regExp1.cap(1);
+ TQString dirPath = TQFileInfo(t).dirPath();
if ( dirPath == "." )
- fileName_ = QFileInfo(fileName_).dirPath()+"/"+regExp1.cap(1);
+ fileName_ = TQFileInfo(fileName_).dirPath()+"/"+regExp1.cap(1);
else
fileName_ = regExp1.cap(1);
@@ -223,7 +223,7 @@ void FilePosBreakpoint::setLocation(const QString& location)
/***************************************************************************/
/***************************************************************************/
-Watchpoint::Watchpoint(const QString& varName, bool temporary, bool enabled)
+Watchpoint::Watchpoint(const TQString& varName, bool temporary, bool enabled)
: Breakpoint(temporary, enabled),
varName_(varName)
{
@@ -237,9 +237,9 @@ Watchpoint::~Watchpoint()
/***************************************************************************/
-QString Watchpoint::dbgSetCommand() const
+TQString Watchpoint::dbgSetCommand() const
{
- return QString("watch ")+varName_; // gdb command - not translatable
+ return TQString("watch ")+varName_; // gdb command - not translatable
}
/***************************************************************************/
@@ -263,7 +263,7 @@ bool Watchpoint::match(const Breakpoint* brkpt) const
/***************************************************************************/
/***************************************************************************/
-Catchpoint::Catchpoint(const QString& varName, bool temporary, bool enabled)
+Catchpoint::Catchpoint(const TQString& varName, bool temporary, bool enabled)
: Breakpoint(temporary, enabled),
varName_(varName)
{
@@ -277,9 +277,9 @@ Catchpoint::~Catchpoint()
/***************************************************************************/
-QString Catchpoint::dbgSetCommand() const
+TQString Catchpoint::dbgSetCommand() const
{
- return QString("catch ")+varName_; // gdb command - not translatable
+ return TQString("catch ")+varName_; // gdb command - not translatable
}
/***************************************************************************/
@@ -303,7 +303,7 @@ bool Catchpoint::match(const Breakpoint* brkpt) const
/***************************************************************************/
/***************************************************************************/
-FunctionBreakpoint::FunctionBreakpoint(const QString& functionName, bool temporary, bool enabled)
+FunctionBreakpoint::FunctionBreakpoint(const TQString& functionName, bool temporary, bool enabled)
: Breakpoint(temporary, enabled),
m_functionName(functionName)
{
@@ -317,9 +317,9 @@ FunctionBreakpoint::~FunctionBreakpoint()
/***************************************************************************/
-QString FunctionBreakpoint::dbgSetCommand() const
+TQString FunctionBreakpoint::dbgSetCommand() const
{
- return QString("break ")+m_functionName; // gdb command - not translatable
+ return TQString("break ")+m_functionName; // gdb command - not translatable
}
/***************************************************************************/
diff --git a/languages/ruby/debugger/breakpoint.h b/languages/ruby/debugger/breakpoint.h
index e45e3856..91f1c8db 100644
--- a/languages/ruby/debugger/breakpoint.h
+++ b/languages/ruby/debugger/breakpoint.h
@@ -24,7 +24,7 @@
#include <klocale.h>
-#include <qstring.h>
+#include <tqstring.h>
/***************************************************************************/
/***************************************************************************/
@@ -48,8 +48,8 @@ public:
Breakpoint(bool temporary=false, bool enabled=true);
virtual ~Breakpoint();
- virtual QString dbgSetCommand() const = 0;
- virtual QString dbgRemoveCommand() const;
+ virtual TQString dbgSetCommand() const = 0;
+ virtual TQString dbgRemoveCommand() const;
virtual bool match(const Breakpoint* brkpt) const = 0;
virtual void reset();
@@ -84,12 +84,12 @@ public:
void setDbgId(int dbgId) { dbgId_ = dbgId; }
int dbgId() const { return dbgId_; }
- virtual QString statusDisplay(int activeFlag) const;
+ virtual TQString statusDisplay(int activeFlag) const;
virtual BP_TYPES type() const { return BP_TYPE_Invalid; }
- virtual QString displayType() const { return i18n( "Invalid" ); }
+ virtual TQString displayType() const { return i18n( "Invalid" ); }
- virtual QString location(bool compact=true) = 0;
- virtual void setLocation(const QString& ) = 0;
+ virtual TQString location(bool compact=true) = 0;
+ virtual void setLocation(const TQString& ) = 0;
virtual bool isValid() const = 0;
private:
@@ -109,8 +109,8 @@ private:
int active_; // counter incremented on receipt of all BP's
int ignoreCount_;
- QString condition_;
-// QString type_;
+ TQString condition_;
+// TQString type_;
};
/***************************************************************************/
@@ -119,24 +119,24 @@ private:
class FilePosBreakpoint : public Breakpoint
{
public:
- FilePosBreakpoint(const QString &fileName, int lineNum,
+ FilePosBreakpoint(const TQString &fileName, int lineNum,
bool temporary=false, bool enabled=true);
virtual ~FilePosBreakpoint();
- virtual QString dbgSetCommand() const;
+ virtual TQString dbgSetCommand() const;
virtual bool match(const Breakpoint *brkpt) const;
BP_TYPES type () const { return BP_TYPE_FilePos; }
- QString displayType() const { return i18n( "File:line" ); }
- void setFileName(const QString& fileName) { fileName_ = fileName; }
- QString fileName() const { return fileName_; }
+ TQString displayType() const { return i18n( "File:line" ); }
+ void setFileName(const TQString& fileName) { fileName_ = fileName; }
+ TQString fileName() const { return fileName_; }
void setLineNum(int lineNum) { lineNo_ = lineNum; }
int lineNum() const { return lineNo_; }
- QString location(bool compact=true);
- void setLocation(const QString& location);
+ TQString location(bool compact=true);
+ void setLocation(const TQString& location);
bool isValid() const { return lineNo_>0 && !fileName_.isEmpty(); }
private:
- QString fileName_;
+ TQString fileName_;
int lineNo_;
};
@@ -146,21 +146,21 @@ private:
class Watchpoint : public Breakpoint
{
public:
- Watchpoint(const QString &varName, bool temporary=false, bool enabled=true);
+ Watchpoint(const TQString &varName, bool temporary=false, bool enabled=true);
virtual ~Watchpoint();
- virtual QString dbgSetCommand() const;
+ virtual TQString dbgSetCommand() const;
bool match(const Breakpoint *brkpt) const;
BP_TYPES type () const { return BP_TYPE_Watchpoint; }
- QString displayType() const { return i18n("Watchpoint"); }
- void setVarName(const QString& varName) { varName_ = varName; }
- QString varName() const { return varName_; }
- QString location(bool) { return varName_; }
- void setLocation(const QString& location) { varName_ = location; }
+ TQString displayType() const { return i18n("Watchpoint"); }
+ void setVarName(const TQString& varName) { varName_ = varName; }
+ TQString varName() const { return varName_; }
+ TQString location(bool) { return varName_; }
+ void setLocation(const TQString& location) { varName_ = location; }
bool isValid() const { return !varName_.isEmpty(); }
private:
- QString varName_;
+ TQString varName_;
};
/***************************************************************************/
@@ -169,21 +169,21 @@ private:
class Catchpoint : public Breakpoint
{
public:
- Catchpoint(const QString &varName, bool temporary=false, bool enabled=true);
+ Catchpoint(const TQString &varName, bool temporary=false, bool enabled=true);
virtual ~Catchpoint();
- virtual QString dbgSetCommand() const;
+ virtual TQString dbgSetCommand() const;
bool match(const Breakpoint *brkpt) const;
BP_TYPES type () const { return BP_TYPE_Catchpoint; }
- QString displayType() const { return i18n("Catchpoint"); }
- void setVarName(const QString& varName) { varName_ = varName; }
- QString varName() const { return varName_; }
- QString location(bool) { return varName_; }
- void setLocation(const QString& location) { varName_ = location; }
+ TQString displayType() const { return i18n("Catchpoint"); }
+ void setVarName(const TQString& varName) { varName_ = varName; }
+ TQString varName() const { return varName_; }
+ TQString location(bool) { return varName_; }
+ void setLocation(const TQString& location) { varName_ = location; }
bool isValid() const { return !varName_.isEmpty(); }
private:
- QString varName_;
+ TQString varName_;
};
/***************************************************************************/
@@ -192,21 +192,21 @@ private:
class FunctionBreakpoint : public Breakpoint
{
public:
- FunctionBreakpoint(const QString &functionName, bool temporary=false, bool enabled=true);
+ FunctionBreakpoint(const TQString &functionName, bool temporary=false, bool enabled=true);
virtual ~FunctionBreakpoint();
- virtual QString dbgSetCommand() const;
+ virtual TQString dbgSetCommand() const;
bool match(const Breakpoint *brkpt) const;
BP_TYPES type () const { return BP_TYPE_Function; }
- QString displayType() const { return i18n("Method()"); }
- void setfunctionName(const QString& functionName) { m_functionName = functionName; }
- QString functionName() const { return m_functionName; }
- QString location(bool) { return m_functionName; };
- void setLocation(const QString& location) { m_functionName = location; }
+ TQString displayType() const { return i18n("Method()"); }
+ void setfunctionName(const TQString& functionName) { m_functionName = functionName; }
+ TQString functionName() const { return m_functionName; }
+ TQString location(bool) { return m_functionName; };
+ void setLocation(const TQString& location) { m_functionName = location; }
bool isValid() const { return !m_functionName.isEmpty(); }
private:
- QString m_functionName;
+ TQString m_functionName;
};
}
diff --git a/languages/ruby/debugger/dbgcommand.cpp b/languages/ruby/debugger/dbgcommand.cpp
index 6c6a24ec..7d958091 100644
--- a/languages/ruby/debugger/dbgcommand.cpp
+++ b/languages/ruby/debugger/dbgcommand.cpp
@@ -21,7 +21,7 @@
#include "dbgcommand.h"
-#include <qstring.h>
+#include <tqstring.h>
/***************************************************************************/
/***************************************************************************/
@@ -30,7 +30,7 @@ namespace RDBDebugger
{
-DbgCommand::DbgCommand(const QCString& command, bool isRunCmd, bool isInfoCmd) :
+DbgCommand::DbgCommand(const TQCString& command, bool isRunCmd, bool isInfoCmd) :
command_(command),
isRunCmd_(isRunCmd),
isInfoCmd_(isInfoCmd),
diff --git a/languages/ruby/debugger/dbgcommand.h b/languages/ruby/debugger/dbgcommand.h
index 32ec7f7a..6cea2afb 100644
--- a/languages/ruby/debugger/dbgcommand.h
+++ b/languages/ruby/debugger/dbgcommand.h
@@ -22,7 +22,7 @@
#ifndef DBGCOMMAND_H
#define DBGCOMMAND_H
-#include <qstring.h>
+#include <tqstring.h>
/**
* @author John Birch
@@ -34,21 +34,21 @@ namespace RDBDebugger
class DbgCommand
{
public:
- DbgCommand(const QCString& command, bool isRunCmd, bool isInfoCmd);
+ DbgCommand(const TQCString& command, bool isRunCmd, bool isInfoCmd);
virtual ~DbgCommand() {};
- virtual QCString& cmdToSend() { sent_ = true; return cmdBuffer_; }
+ virtual TQCString& cmdToSend() { sent_ = true; return cmdBuffer_; }
virtual int cmdLength() { return cmdBuffer_.length(); }
- QCString rawDbgCommand() const { return command_; }
+ TQCString rawDbgCommand() const { return command_; }
bool isARunCmd() const { return isRunCmd_;}
bool isAnInfoCmd() const { return isInfoCmd_; }
bool moreToSend() const { return !sent_; }
bool expectReply() const { return waitForReply_; }
protected:
- QCString cmdBuffer_;
- QCString command_;
+ TQCString cmdBuffer_;
+ TQCString command_;
bool isRunCmd_;
bool isInfoCmd_;
bool sent_;
diff --git a/languages/ruby/debugger/dbgcontroller.h b/languages/ruby/debugger/dbgcontroller.h
index 13ee4382..f0b08981 100644
--- a/languages/ruby/debugger/dbgcontroller.h
+++ b/languages/ruby/debugger/dbgcontroller.h
@@ -22,7 +22,7 @@
#ifndef _DBGCONTROLLER_H_
#define _DBGCONTROLLER_H_
-#include <qobject.h>
+#include <tqobject.h>
#include <domutil.h>
class KProcess;
@@ -105,19 +105,19 @@ public slots:
* \param run_arguments Command line arguments to be passed to the application
* \param show_constants Show ruby constants in the variables view
*/
- virtual void slotStart(const QString& ruby_interpreter,
- const QString& character_coding,
- const QString& run_directory,
- const QString& debuggee_path,
- const QString& application,
- const QString& run_arguments,
+ virtual void slotStart(const TQString& ruby_interpreter,
+ const TQString& character_coding,
+ const TQString& run_directory,
+ const TQString& debuggee_path,
+ const TQString& application,
+ const TQString& run_arguments,
bool show_constants,
bool trace_into_ruby) = 0;
virtual void slotStopDebugger() = 0;
virtual void slotRun() = 0;
- virtual void slotRunUntil(const QString &fileName, int lineNum) = 0;
+ virtual void slotRunUntil(const TQString &fileName, int lineNum) = 0;
virtual void slotStepInto() = 0;
virtual void slotStepOver() = 0;
virtual void slotStepOutOff() = 0;
@@ -127,9 +127,9 @@ public slots:
virtual void slotExpandItem(VarItem *parent,
- const QCString &userRequest) = 0;
+ const TQCString &userRequest) = 0;
virtual void slotSelectFrame(int frame, int thread,
- const QString& frameName) = 0;
+ const TQString& frameName) = 0;
virtual void slotFetchGlobals(bool fetch) = 0;
protected slots:
@@ -142,15 +142,15 @@ protected slots:
virtual void slotReadFromSocket(int socket) = 0;
signals:
- void gotoSourcePosition (const QString &fileName, int lineNum);
+ void gotoSourcePosition (const TQString &fileName, int lineNum);
void rawRDBBreakpointList (char *buf);
void rawRDBBreakpointSet (char *buf, int key);
void ttyStdout (const char *output);
void ttyStderr (const char *output);
void rdbStdout (const char *output);
void rdbStderr (const char *output);
- void showStepInSource (const QString &fileName, int lineNum, const QString &address);
- void dbgStatus (const QString &status, int statusFlag);
+ void showStepInSource (const TQString &fileName, int lineNum, const TQString &address);
+ void dbgStatus (const TQString &status, int statusFlag);
protected:
KProcess *dbgProcess_;
diff --git a/languages/ruby/debugger/dbgpsdlg.cpp b/languages/ruby/debugger/dbgpsdlg.cpp
index 83dd1666..d5458c28 100644
--- a/languages/ruby/debugger/dbgpsdlg.cpp
+++ b/languages/ruby/debugger/dbgpsdlg.cpp
@@ -29,12 +29,12 @@
#include <kstdguiitem.h>
#include <kdeversion.h>
-#include <qframe.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qlistbox.h>
-#include <qtoolbutton.h>
-#include <qpushbutton.h>
+#include <tqframe.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqlistbox.h>
+#include <tqtoolbutton.h>
+#include <tqpushbutton.h>
#include <stdlib.h>
#include <unistd.h>
@@ -51,19 +51,19 @@ 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(QWidget *parent, const char *name)
+Dbg_PS_Dialog::Dbg_PS_Dialog(TQWidget *parent, const char *name)
: KDialog(parent, name, true), // modal
psProc_(0),
- pids_(new QListBox(this)),
- heading_(new QLabel(" ", this)),
- pidLines_(QString())
+ pids_(new TQListBox(this)),
+ heading_(new TQLabel(" ", this)),
+ pidLines_(TQString())
{
setCaption(i18n("Attach to Process"));
- QBoxLayout *topLayout = new QVBoxLayout(this, 5);
+ TQBoxLayout *topLayout = new TQVBoxLayout(this, 5);
heading_->setFont(KGlobalSettings::fixedFont());
- heading_->setFrameStyle(QFrame::Panel|QFrame::Sunken);
+ heading_->setFrameStyle(TQFrame::Panel|TQFrame::Sunken);
heading_->setMaximumHeight(heading_->sizeHint().height());
// heading_->setMinimumSize(heading_->sizeHint());
topLayout->addWidget(heading_, 5);
@@ -72,14 +72,14 @@ Dbg_PS_Dialog::Dbg_PS_Dialog(QWidget *parent, const char *name)
pids_->setFont(KGlobalSettings::fixedFont());
KButtonBox *buttonbox = new KButtonBox(this, Qt::Horizontal, 5);
- QPushButton *ok = buttonbox->addButton(KStdGuiItem::ok());
+ TQPushButton *ok = buttonbox->addButton(KStdGuiItem::ok());
buttonbox->addStretch();
- QPushButton *cancel = buttonbox->addButton(KStdGuiItem::cancel());
+ TQPushButton *cancel = buttonbox->addButton(KStdGuiItem::cancel());
buttonbox->layout();
topLayout->addWidget(buttonbox);
- connect(ok, SIGNAL(clicked()), SLOT(accept()));
- connect(cancel, SIGNAL(clicked()), SLOT(reject()));
+ connect(ok, TQT_SIGNAL(clicked()), TQT_SLOT(accept()));
+ connect(cancel, TQT_SIGNAL(clicked()), TQT_SLOT(reject()));
psProc_ = new KShellProcess("/bin/sh");
#ifdef USE_SOLARIS
@@ -106,8 +106,8 @@ Dbg_PS_Dialog::Dbg_PS_Dialog(QWidget *parent, const char *name)
}
#endif
- connect( psProc_, SIGNAL(processExited(KProcess *)), SLOT(slotProcessExited()) );
- connect( psProc_, SIGNAL(receivedStdout(KProcess *, char *, int)), SLOT(slotReceivedOutput(KProcess *, char *, int)) );
+ connect( psProc_, TQT_SIGNAL(processExited(KProcess *)), TQT_SLOT(slotProcessExited()) );
+ connect( psProc_, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), TQT_SLOT(slotReceivedOutput(KProcess *, char *, int)) );
psProc_->start(KProcess::NotifyOnExit, KProcess::Stdout);
// Default display to 40 chars wide, default height is okay
@@ -126,7 +126,7 @@ Dbg_PS_Dialog::~Dbg_PS_Dialog()
int Dbg_PS_Dialog::pidSelected()
{
- QString pidText = pids_->text(pids_->currentItem());
+ TQString pidText = pids_->text(pids_->currentItem());
if (!pidText.isEmpty())
return atoi(pidText.latin1());
@@ -137,7 +137,7 @@ int Dbg_PS_Dialog::pidSelected()
void Dbg_PS_Dialog::slotReceivedOutput(KProcess */*proc*/, char *buffer, int buflen)
{
- pidLines_ += QString::fromLocal8Bit(buffer, buflen+1);
+ pidLines_ += TQString::fromLocal8Bit(buffer, buflen+1);
}
/***************************************************************************/
@@ -154,7 +154,7 @@ void Dbg_PS_Dialog::slotProcessExited()
if (start != -1)
heading_->setText(pidLines_.left(start));
while ( (pos = pidLines_.find('\n', start)) != -1) {
- QString item = pidLines_.mid(start, pos-start);
+ TQString item = pidLines_.mid(start, pos-start);
if (!item.isEmpty()) {
if (item.find(pidCmd_) == -1)
pids_->insertItem(item);
diff --git a/languages/ruby/debugger/dbgpsdlg.h b/languages/ruby/debugger/dbgpsdlg.h
index 641f7aa5..e210c92b 100644
--- a/languages/ruby/debugger/dbgpsdlg.h
+++ b/languages/ruby/debugger/dbgpsdlg.h
@@ -38,7 +38,7 @@ class Dbg_PS_Dialog : public KDialog
Q_OBJECT
public:
- Dbg_PS_Dialog( QWidget *parent=0, const char *name=0 );
+ Dbg_PS_Dialog( TQWidget *parent=0, const char *name=0 );
~Dbg_PS_Dialog();
int pidSelected();
@@ -49,10 +49,10 @@ private slots:
private:
KProcess* psProc_;
- QListBox* pids_;
- QLabel* heading_;
- QString pidLines_;
- QString pidCmd_;
+ TQListBox* pids_;
+ TQLabel* heading_;
+ TQString pidLines_;
+ TQString pidCmd_;
};
}
diff --git a/languages/ruby/debugger/dbgtoolbar.cpp b/languages/ruby/debugger/dbgtoolbar.cpp
index 702c8e83..36b42f07 100644
--- a/languages/ruby/debugger/dbgtoolbar.cpp
+++ b/languages/ruby/debugger/dbgtoolbar.cpp
@@ -31,14 +31,14 @@
#include <kwin.h>
#include <kwinmodule.h>
-#include <qapplication.h>
-#include <qcursor.h>
-#include <qframe.h>
-#include <qlayout.h>
-#include <qpainter.h>
-#include <qpushbutton.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
+#include <tqapplication.h>
+#include <tqcursor.h>
+#include <tqframe.h>
+#include <tqlayout.h>
+#include <tqpainter.h>
+#include <tqpushbutton.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
// **************************************************************************
// **************************************************************************
@@ -77,25 +77,25 @@ public:
DbgMoveHandle(DbgToolBar *parent=0, const char * name=0, WFlags f=0);
virtual ~DbgMoveHandle();
- virtual void mousePressEvent(QMouseEvent *e);
- virtual void mouseReleaseEvent(QMouseEvent *e);
- virtual void mouseMoveEvent(QMouseEvent *e);
+ virtual void mousePressEvent(TQMouseEvent *e);
+ virtual void mouseReleaseEvent(TQMouseEvent *e);
+ virtual void mouseMoveEvent(TQMouseEvent *e);
private:
DbgToolBar* toolBar_;
- QPoint offset_;
+ TQPoint offset_;
bool moving_;
};
// **************************************************************************
DbgMoveHandle::DbgMoveHandle(DbgToolBar *parent, const char * name, WFlags f)
- : QFrame(parent, name, f),
+ : TQFrame(parent, name, f),
toolBar_(parent),
- offset_(QPoint(0,0)),
+ offset_(TQPoint(0,0)),
moving_(false)
{
- setFrameStyle(QFrame::Panel|QFrame::Raised);
+ setFrameStyle(TQFrame::Panel|TQFrame::Raised);
setFixedHeight(12);
}
@@ -107,9 +107,9 @@ DbgMoveHandle::~DbgMoveHandle()
// **************************************************************************
-void DbgMoveHandle::mousePressEvent(QMouseEvent *e)
+void DbgMoveHandle::mousePressEvent(TQMouseEvent *e)
{
- QFrame::mousePressEvent(e);
+ TQFrame::mousePressEvent(e);
if (moving_)
return;
@@ -117,38 +117,38 @@ void DbgMoveHandle::mousePressEvent(QMouseEvent *e)
KPopupMenu *menu = new KPopupMenu(this);
menu->insertTitle(i18n("Debug Toolbar"));
menu->insertItem(i18n("Dock to Panel"),
- parent(), SLOT(slotDock()));
+ parent(), TQT_SLOT(slotDock()));
menu->insertItem(i18n("Dock to Panel && Iconify KDevelop"),
- parent(), SLOT(slotIconifyAndDock()));
+ parent(), TQT_SLOT(slotIconifyAndDock()));
menu->popup(e->globalPos());
} else {
moving_ = true;
offset_ = parentWidget()->pos() - e->globalPos();
- setFrameStyle(QFrame::Panel|QFrame::Sunken);
- QApplication::setOverrideCursor(QCursor(sizeAllCursor));
- setPalette(QPalette(colorGroup().background()));
+ setFrameStyle(TQFrame::Panel|TQFrame::Sunken);
+ TQApplication::setOverrideCursor(TQCursor(sizeAllCursor));
+ setPalette(TQPalette(colorGroup().background()));
repaint();
}
}
// **************************************************************************
-void DbgMoveHandle::mouseReleaseEvent(QMouseEvent *e)
+void DbgMoveHandle::mouseReleaseEvent(TQMouseEvent *e)
{
- QFrame::mouseReleaseEvent(e);
+ TQFrame::mouseReleaseEvent(e);
moving_ = false;
- offset_ = QPoint(0,0);
- setFrameStyle(QFrame::Panel|QFrame::Raised);
- QApplication::restoreOverrideCursor();
- setPalette(QPalette(colorGroup().background()));
+ offset_ = TQPoint(0,0);
+ setFrameStyle(TQFrame::Panel|TQFrame::Raised);
+ TQApplication::restoreOverrideCursor();
+ setPalette(TQPalette(colorGroup().background()));
repaint();
}
// **************************************************************************
-void DbgMoveHandle::mouseMoveEvent(QMouseEvent *e)
+void DbgMoveHandle::mouseMoveEvent(TQMouseEvent *e)
{
- QFrame::mouseMoveEvent(e);
+ TQFrame::mouseMoveEvent(e);
if (!moving_)
return;
@@ -164,21 +164,21 @@ void DbgMoveHandle::mouseMoveEvent(QMouseEvent *e)
class DbgButton : public QPushButton
{
public:
- DbgButton(const QPixmap &pixmap, const QString &text,
+ DbgButton(const TQPixmap &pixmap, const TQString &text,
DbgToolBar *parent, const char *name=0);
virtual ~DbgButton() {};
- void drawButtonLabel(QPainter *painter);
- QSize sizeHint() const;
+ void drawButtonLabel(TQPainter *painter);
+ TQSize sizeHint() const;
private:
- QPixmap pixmap_;
+ TQPixmap pixmap_;
};
// **************************************************************************
-DbgButton::DbgButton(const QPixmap& pixmap, const QString& text,
+DbgButton::DbgButton(const TQPixmap& pixmap, const TQString& text,
DbgToolBar* parent, const char* name)
- : QPushButton(parent, name),
+ : TQPushButton(parent, name),
pixmap_(pixmap)
{
setText(text);
@@ -186,7 +186,7 @@ DbgButton::DbgButton(const QPixmap& pixmap, const QString& text,
// **************************************************************************
-void DbgButton::drawButtonLabel(QPainter *painter)
+void DbgButton::drawButtonLabel(TQPainter *painter)
{
// We always have a pixmap (today...)
// Centre it if there's no text
@@ -204,29 +204,29 @@ void DbgButton::drawButtonLabel(QPainter *painter)
// **************************************************************************
-QSize DbgButton::sizeHint() const
+TQSize DbgButton::sizeHint() const
{
if (text().isEmpty())
return pixmap_.size();
else
- return QPushButton::sizeHint();
+ return TQPushButton::sizeHint();
}
// **************************************************************************
// **************************************************************************
// **************************************************************************
-DbgDocker::DbgDocker(QWidget* parent, DbgToolBar* toolBar, const QPixmap& pixmap) :
+DbgDocker::DbgDocker(TQWidget* parent, DbgToolBar* toolBar, const TQPixmap& pixmap) :
KSystemTray(parent, "DbgDocker"),
toolBar_(toolBar)
{
setPixmap(pixmap);
- QToolTip::add( this, i18n("KDevelop ruby debugger: Click to execute one line of code (\"step\")") );
+ TQToolTip::add( this, i18n("KDevelop ruby debugger: Click to execute one line of code (\"step\")") );
}
// **************************************************************************
-void DbgDocker::mousePressEvent(QMouseEvent *e)
+void DbgDocker::mousePressEvent(TQMouseEvent *e)
{
if (!rect().contains( e->pos()))
return;
@@ -242,8 +242,8 @@ void DbgDocker::mousePressEvent(QMouseEvent *e)
{
KPopupMenu* menu = new KPopupMenu(this);
menu->insertTitle(i18n("Debug Toolbar"));
- menu->insertItem(i18n("Activate"), toolBar_, SLOT(slotUndock()));
- menu->insertItem(i18n("Activate (KDevelop gets focus)"), toolBar_, SLOT(slotActivateAndUndock()));
+ menu->insertItem(i18n("Activate"), toolBar_, TQT_SLOT(slotUndock()));
+ menu->insertItem(i18n("Activate (KDevelop gets focus)"), toolBar_, TQT_SLOT(slotActivateAndUndock()));
menu->popup(e->globalPos());
break;
}
@@ -257,8 +257,8 @@ void DbgDocker::mousePressEvent(QMouseEvent *e)
// **************************************************************************
DbgToolBar::DbgToolBar(RubyDebuggerPart* part,
- QWidget* parent, const char* name)
- : QFrame(0, name),
+ TQWidget* parent, const char* name)
+ : TQFrame(0, name),
part_(part),
activeWindow_(0),
winModule_(0),
@@ -271,7 +271,7 @@ DbgToolBar::DbgToolBar(RubyDebuggerPart* part,
{
winModule_ = new KWinModule(this);
docker_ = new DbgDocker(parent, this, BarIcon("dbgnext"));
- connect(docker_, SIGNAL(clicked()), part_, SLOT(slotStepOver()));
+ connect(docker_, TQT_SIGNAL(clicked()), part_, TQT_SLOT(slotStepOver()));
// Must have noFocus set so that we can see what window was active.
// see slotDbgKdevFocus() for more comments
@@ -285,55 +285,55 @@ DbgToolBar::DbgToolBar(RubyDebuggerPart* part,
KWin::setType(winId(), NET::Dock);
setFocusPolicy(NoFocus);
- setFrameStyle( QFrame::Box | QFrame::Plain );
+ setFrameStyle( TQFrame::Box | TQFrame::Plain );
setLineWidth(4);
setMidLineWidth(0);
- QBoxLayout* topLayout = new QVBoxLayout(this);
+ TQBoxLayout* topLayout = new TQVBoxLayout(this);
- QBoxLayout* nextLayout = new QHBoxLayout();
- QBoxLayout* stepLayout = new QHBoxLayout();
- QBoxLayout* focusLayout = new QHBoxLayout();
+ TQBoxLayout* nextLayout = new TQHBoxLayout();
+ TQBoxLayout* stepLayout = new TQHBoxLayout();
+ TQBoxLayout* focusLayout = new TQHBoxLayout();
DbgMoveHandle* moveHandle= new DbgMoveHandle(this);
- QPushButton* bRun = new DbgButton(BarIcon("dbgrun"), i18n("Run"), this);
- QPushButton* bInterrupt = new DbgButton(BarIcon("player_pause"), i18n("Interrupt"), this);
- QPushButton* bNext = new DbgButton(BarIcon("dbgnext"), i18n("Step Over"), this);
- QPushButton* bStep = new DbgButton(BarIcon("dbgstep"), i18n("Step Into"), this);
- QPushButton* bFinish = new DbgButton(BarIcon("dbgstepout"), i18n("Step Out"), this);
- QPushButton* bRunTo = new DbgButton(BarIcon("dbgrunto"), i18n("Run to Cursor"), this);
- bPrevFocus_ = new DbgButton(BarIcon("dbgmemview"), QString::null, this);
- bKDevFocus_ = new DbgButton(BarIcon("kdevelop"), QString::null, this);
-
- connect(bRun, SIGNAL(clicked()), part_, SLOT(slotRun()));
- connect(bInterrupt, SIGNAL(clicked()), part_, SLOT(slotPause()));
- connect(bNext, SIGNAL(clicked()), part_, SLOT(slotStepOver()));
- connect(bStep, SIGNAL(clicked()), part_, SLOT(slotStepInto()));
- connect(bFinish, SIGNAL(clicked()), part_, SLOT(slotStepOut()));
- connect(bRunTo, SIGNAL(clicked()), part_, SLOT(slotRunToCursor()));
- connect(bKDevFocus_, SIGNAL(clicked()), this, SLOT(slotKdevFocus()));
- connect(bPrevFocus_, SIGNAL(clicked()), this, SLOT(slotPrevFocus()));
-
- QToolTip::add( bRun, i18n("Continue with application execution, may start the application") );
- QToolTip::add( bInterrupt, i18n("Interrupt the application execution") );
- QToolTip::add( bNext, i18n("Execute one line of code, but run through methods") );
- QToolTip::add( bStep, i18n("Execute one line of code, stepping into methods if appropriate") );
- QToolTip::add( bFinish, i18n("Execute to end of current stack frame") );
- QToolTip::add( bRunTo, i18n("Continues execution until the cursor position is reached.") );
- QToolTip::add( bKDevFocus_, i18n("Set focus on KDevelop") );
- QToolTip::add( bPrevFocus_, i18n("Set focus on window that had focus when KDevelop got focus") );
-
- QWhatsThis::add( bRun, i18n("Continue with application execution. May start the application.") );
- QWhatsThis::add( bInterrupt, i18n("Interrupt the application execution.") );
- QWhatsThis::add( bNext, i18n("Execute one line of code, but run through methods.") );
-
- QWhatsThis::add( bStep, i18n("Execute one line of code, stepping into methods if appropriate.") );
+ 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"), i18n("Step Over"), this);
+ 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);
+
+ connect(bRun, TQT_SIGNAL(clicked()), part_, TQT_SLOT(slotRun()));
+ connect(bInterrupt, TQT_SIGNAL(clicked()), part_, TQT_SLOT(slotPause()));
+ connect(bNext, TQT_SIGNAL(clicked()), part_, TQT_SLOT(slotStepOver()));
+ connect(bStep, TQT_SIGNAL(clicked()), part_, TQT_SLOT(slotStepInto()));
+ connect(bFinish, TQT_SIGNAL(clicked()), part_, TQT_SLOT(slotStepOut()));
+ connect(bRunTo, TQT_SIGNAL(clicked()), part_, TQT_SLOT(slotRunToCursor()));
+ connect(bKDevFocus_, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotKdevFocus()));
+ connect(bPrevFocus_, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotPrevFocus()));
+
+ TQToolTip::add( bRun, i18n("Continue with application execution, may start the application") );
+ TQToolTip::add( bInterrupt, i18n("Interrupt the application execution") );
+ TQToolTip::add( bNext, i18n("Execute one line of code, but run through methods") );
+ TQToolTip::add( bStep, i18n("Execute one line of code, stepping into methods if appropriate") );
+ TQToolTip::add( bFinish, i18n("Execute to end of current stack frame") );
+ TQToolTip::add( bRunTo, i18n("Continues execution until the cursor position is reached.") );
+ TQToolTip::add( bKDevFocus_, i18n("Set focus on KDevelop") );
+ TQToolTip::add( bPrevFocus_, i18n("Set focus on window that had focus when KDevelop got focus") );
+
+ TQWhatsThis::add( bRun, i18n("Continue with application execution. May start the application.") );
+ TQWhatsThis::add( bInterrupt, i18n("Interrupt the application execution.") );
+ TQWhatsThis::add( bNext, i18n("Execute one line of code, but run through methods.") );
+
+ TQWhatsThis::add( bStep, i18n("Execute one line of code, stepping into methods if appropriate.") );
- QWhatsThis::add( bFinish, i18n("Execute to end of current stack frame.") );
- QWhatsThis::add( bRunTo, i18n("Continues execution until the cursor position is reached.") );
- QWhatsThis::add( bKDevFocus_, i18n("Set focus on KDevelop.") );
- QWhatsThis::add( bPrevFocus_, i18n("Set focus on window that had focus when KDevelop got focus.") );
+ TQWhatsThis::add( bFinish, i18n("Execute to end of current stack frame.") );
+ TQWhatsThis::add( bRunTo, i18n("Continues execution until the cursor position is reached.") );
+ TQWhatsThis::add( bKDevFocus_, i18n("Set focus on KDevelop.") );
+ TQWhatsThis::add( bPrevFocus_, i18n("Set focus on window that had focus when KDevelop got focus.") );
topLayout->addWidget(moveHandle);
topLayout->addWidget(bRun);
@@ -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 QString&, int state)
+void DbgToolBar::slotDbgStatus(const TQString&, int state)
{
bool appIndicator = state & s_appBusy;
if (appIndicator != appIsActive_) {
@@ -421,11 +421,11 @@ void DbgToolBar::slotDbgStatus(const QString&, int state)
void DbgToolBar::setAppIndicator(bool appIndicator)
{
if (appIndicator) {
- bPrevFocus_->setPalette(QPalette(colorGroup().mid()));
- bKDevFocus_->setPalette(QPalette(colorGroup().background()));
+ bPrevFocus_->setPalette(TQPalette(colorGroup().mid()));
+ bKDevFocus_->setPalette(TQPalette(colorGroup().background()));
} else {
- bPrevFocus_->setPalette(QPalette(colorGroup().background()));
- bKDevFocus_->setPalette(QPalette(colorGroup().mid()));
+ bPrevFocus_->setPalette(TQPalette(colorGroup().background()));
+ bKDevFocus_->setPalette(TQPalette(colorGroup().mid()));
}
}
diff --git a/languages/ruby/debugger/dbgtoolbar.h b/languages/ruby/debugger/dbgtoolbar.h
index a19b2eae..a83c120a 100644
--- a/languages/ruby/debugger/dbgtoolbar.h
+++ b/languages/ruby/debugger/dbgtoolbar.h
@@ -27,7 +27,7 @@ class KWinModule;
#include <ksystemtray.h>
#include <kwin.h> // needed for WId :(
-#include <qframe.h>
+#include <tqframe.h>
namespace RDBDebugger
{
@@ -41,9 +41,9 @@ class DbgDocker : public KSystemTray
Q_OBJECT
public:
- DbgDocker(QWidget *parent, DbgToolBar *toolBar, const QPixmap &pixmap);
+ DbgDocker(TQWidget *parent, DbgToolBar *toolBar, const TQPixmap &pixmap);
virtual ~DbgDocker() {};
- virtual void mousePressEvent(QMouseEvent *e);
+ virtual void mousePressEvent(TQMouseEvent *e);
signals:
void clicked();
@@ -58,11 +58,11 @@ class DbgToolBar : public QFrame
Q_OBJECT
public:
- DbgToolBar(RubyDebuggerPart *part, QWidget* parent, const char* name=0);
+ DbgToolBar(RubyDebuggerPart *part, TQWidget* parent, const char* name=0);
virtual ~DbgToolBar();
private slots:
- void slotDbgStatus(const QString&, int);
+ void slotDbgStatus(const TQString&, int);
void slotDock();
void slotUndock();
void slotIconifyAndDock();
diff --git a/languages/ruby/debugger/debuggerpart.cpp b/languages/ruby/debugger/debuggerpart.cpp
index 95b4dd09..3e46a3d4 100644
--- a/languages/ruby/debugger/debuggerpart.cpp
+++ b/languages/ruby/debugger/debuggerpart.cpp
@@ -18,10 +18,10 @@
***************************************************************************/
#include "debuggerpart.h"
-#include <qdir.h>
-#include <qvbox.h>
-#include <qwhatsthis.h>
-#include <qpopupmenu.h>
+#include <tqdir.h>
+#include <tqvbox.h>
+#include <tqwhatsthis.h>
+#include <tqpopupmenu.h>
#include <kaction.h>
#include <kdebug.h>
@@ -36,7 +36,7 @@
#include <kmessagebox.h>
#include <kapplication.h>
#include <dcopclient.h>
-#include <qtimer.h>
+#include <tqtimer.h>
#include <kstringhandler.h>
#include <kstandarddirs.h>
@@ -72,7 +72,7 @@ static const KDevPluginInfo data("kdevrbdebugger");
typedef KDevGenericFactory<RubyDebuggerPart> RubyDebuggerFactory;
K_EXPORT_COMPONENT_FACTORY( libkdevrbdebugger, RubyDebuggerFactory( data ) )
-RubyDebuggerPart::RubyDebuggerPart( QObject *parent, const char *name, const QStringList & ) :
+RubyDebuggerPart::RubyDebuggerPart( TQObject *parent, const char *name, const TQStringList & ) :
KDevPlugin( &data, parent, name ? name : "RubyDebuggerPart" ),
controller(0)
{
@@ -83,7 +83,7 @@ RubyDebuggerPart::RubyDebuggerPart( QObject *parent, const char *name, const QSt
m_debugger = new Debugger( partController() );
- statusBarIndicator = new QLabel(" ", mainWindow()->statusBar());
+ statusBarIndicator = new TQLabel(" ", mainWindow()->statusBar());
statusBarIndicator->setFixedWidth(15);
mainWindow()->statusBar()->addWidget(statusBarIndicator, 0, true);
statusBarIndicator->show();
@@ -93,7 +93,7 @@ RubyDebuggerPart::RubyDebuggerPart( QObject *parent, const char *name, const QSt
// /*variableWidget*/->setEnabled(false);
variableWidget->setIcon(SmallIcon("math_brace"));
variableWidget->setCaption(i18n("Variable Tree"));
- QWhatsThis::add
+ TQWhatsThis::add
(variableWidget, i18n("<b>Variable tree</b><p>"
"The variable tree allows you to see "
"the variable values as you step "
@@ -108,7 +108,7 @@ RubyDebuggerPart::RubyDebuggerPart( QObject *parent, const char *name, const QSt
rdbBreakpointWidget = new RDBBreakpointWidget( 0, "rdbBreakpointWidget" );
rdbBreakpointWidget->setCaption(i18n("Breakpoint List"));
- QWhatsThis::add
+ TQWhatsThis::add
(rdbBreakpointWidget, i18n("<b>Breakpoint list</b><p>"
"Displays a list of breakpoints with "
"their current status. Clicking on a "
@@ -121,7 +121,7 @@ RubyDebuggerPart::RubyDebuggerPart( QObject *parent, const char *name, const QSt
framestackWidget = new FramestackWidget( 0, "rdbFramestackWidget" );
framestackWidget->setEnabled(false);
framestackWidget->setCaption(i18n("Frame Stack"));
- QWhatsThis::add
+ TQWhatsThis::add
(framestackWidget, i18n("<b>Frame stack</b><p>"
"Often referred to as the \"call stack\", "
"this is a list showing what method is "
@@ -139,7 +139,7 @@ RubyDebuggerPart::RubyDebuggerPart( QObject *parent, const char *name, const QSt
rdbOutputWidget->setEnabled(false);
rdbOutputWidget->setIcon( SmallIcon("inline_image") );
rdbOutputWidget->setCaption(i18n("RDB Output"));
- QWhatsThis::add
+ TQWhatsThis::add
(rdbOutputWidget, i18n("<b>RDB output</b><p>"
"Shows all rdb commands being executed. "
"You can also issue any other rdb command while debugging."));
@@ -148,19 +148,19 @@ RubyDebuggerPart::RubyDebuggerPart( QObject *parent, const char *name, const QSt
mainWindow()->setViewAvailable(rdbOutputWidget, false);
// rdbBreakpointWidget -> this
- connect( rdbBreakpointWidget, SIGNAL(refreshBPState(const Breakpoint&)),
- this, SLOT(slotRefreshBPState(const Breakpoint&)));
- connect( rdbBreakpointWidget, SIGNAL(publishBPState(const Breakpoint&)),
- this, SLOT(slotRefreshBPState(const Breakpoint&)));
- connect( rdbBreakpointWidget, SIGNAL(gotoSourcePosition(const QString&, int)),
- this, SLOT(slotGotoSource(const QString&, int)) );
+ connect( rdbBreakpointWidget, TQT_SIGNAL(refreshBPState(const Breakpoint&)),
+ this, TQT_SLOT(slotRefreshBPState(const Breakpoint&)));
+ connect( rdbBreakpointWidget, TQT_SIGNAL(publishBPState(const Breakpoint&)),
+ this, TQT_SLOT(slotRefreshBPState(const Breakpoint&)));
+ connect( rdbBreakpointWidget, TQT_SIGNAL(gotoSourcePosition(const TQString&, int)),
+ this, TQT_SLOT(slotGotoSource(const TQString&, int)) );
// Now setup the actions
KAction *action;
// action = new KAction(i18n("&Start"), "1rightarrow", CTRL+SHIFT+Key_F9,
action = new KAction(i18n("&Start"), "dbgrun", CTRL+SHIFT+Key_F9,
- this, SLOT(slotRun()),
+ this, TQT_SLOT(slotRun()),
actionCollection(), "debug_run");
action->setToolTip( i18n("Start in debugger") );
action->setWhatsThis( i18n("<b>Start in debugger</b><p>"
@@ -171,26 +171,26 @@ RubyDebuggerPart::RubyDebuggerPart( QObject *parent, const char *name, const QSt
"about variables, frame stack, and so on.") );
action = new KAction(i18n("Sto&p"), "stop", 0,
- this, SLOT(slotStop()),
+ this, TQT_SLOT(slotStop()),
actionCollection(), "debug_stop");
action->setToolTip( i18n("Stop debugger") );
action->setWhatsThis(i18n("<b>Stop debugger</b><p>Kills the executable and exits the debugger."));
action = new KAction(i18n("Interrupt"), "player_pause", 0,
- this, SLOT(slotPause()),
+ this, TQT_SLOT(slotPause()),
actionCollection(), "debug_pause");
action->setToolTip( i18n("Interrupt application") );
action->setWhatsThis(i18n("<b>Interrupt application</b><p>Interrupts the debugged process or current RDB command."));
action = new KAction(i18n("Run to &Cursor"), "dbgrunto", 0,
- this, SLOT(slotRunToCursor()),
+ this, TQT_SLOT(slotRunToCursor()),
actionCollection(), "debug_runtocursor");
action->setToolTip( i18n("Run to cursor") );
action->setWhatsThis(i18n("<b>Run to cursor</b><p>Continues execution until the cursor position is reached."));
action = new KAction(i18n("Step &Over"), "dbgnext", 0,
- this, SLOT(slotStepOver()),
+ this, TQT_SLOT(slotStepOver()),
actionCollection(), "debug_stepover");
action->setToolTip( i18n("Step over the next line") );
action->setWhatsThis( i18n("<b>Step over</b><p>"
@@ -201,7 +201,7 @@ RubyDebuggerPart::RubyDebuggerPart( QObject *parent, const char *name, const QSt
action = new KAction(i18n("Step &Into"), "dbgstep", 0,
- this, SLOT(slotStepInto()),
+ this, TQT_SLOT(slotStepInto()),
actionCollection(), "debug_stepinto");
action->setToolTip( i18n("Step into the next statement") );
action->setWhatsThis( i18n("<b>Step into</b><p>"
@@ -212,7 +212,7 @@ RubyDebuggerPart::RubyDebuggerPart( QObject *parent, const char *name, const QSt
action = new KAction(i18n("Step O&ut"), "dbgstepout", 0,
- this, SLOT(slotStepOut()),
+ this, TQT_SLOT(slotStepOut()),
actionCollection(), "debug_stepout");
action->setToolTip( i18n("Steps out of the current method") );
action->setWhatsThis( i18n("<b>Step out</b><p>"
@@ -224,48 +224,48 @@ RubyDebuggerPart::RubyDebuggerPart( QObject *parent, const char *name, const QSt
action = new KAction(i18n("Toggle Breakpoint"), 0, 0,
- this, SLOT(toggleBreakpoint()),
+ this, TQT_SLOT(toggleBreakpoint()),
actionCollection(), "debug_toggle_breakpoint");
action->setToolTip(i18n("Toggle breakpoint"));
action->setWhatsThis(i18n("<b>Toggle breakpoint</b><p>Toggles the breakpoint at the current line in editor."));
- connect( mainWindow()->main()->guiFactory(), SIGNAL(clientAdded(KXMLGUIClient*)),
- this, SLOT(guiClientAdded(KXMLGUIClient*)) );
+ connect( mainWindow()->main()->guiFactory(), TQT_SIGNAL(clientAdded(KXMLGUIClient*)),
+ this, TQT_SLOT(guiClientAdded(KXMLGUIClient*)) );
- connect( partController(), SIGNAL(loadedFile(const KURL &)),
- rdbBreakpointWidget, SLOT(slotRefreshBP(const KURL &)) );
- connect( debugger(), SIGNAL(toggledBreakpoint(const QString &, int)),
- rdbBreakpointWidget, SLOT(slotToggleBreakpoint(const QString &, int)) );
- connect( debugger(), SIGNAL(editedBreakpoint(const QString &, int)),
- rdbBreakpointWidget, SLOT(slotEditBreakpoint(const QString &, int)) );
- connect( debugger(), SIGNAL(toggledBreakpointEnabled(const QString &, int)),
- rdbBreakpointWidget, SLOT(slotToggleBreakpointEnabled(const QString &, int)) );
+ connect( partController(), TQT_SIGNAL(loadedFile(const KURL &)),
+ rdbBreakpointWidget, TQT_SLOT(slotRefreshBP(const KURL &)) );
+ connect( debugger(), TQT_SIGNAL(toggledBreakpoint(const TQString &, int)),
+ rdbBreakpointWidget, TQT_SLOT(slotToggleBreakpoint(const TQString &, int)) );
+ connect( debugger(), TQT_SIGNAL(editedBreakpoint(const TQString &, int)),
+ rdbBreakpointWidget, TQT_SLOT(slotEditBreakpoint(const TQString &, int)) );
+ connect( debugger(), TQT_SIGNAL(toggledBreakpointEnabled(const TQString &, int)),
+ rdbBreakpointWidget, TQT_SLOT(slotToggleBreakpointEnabled(const TQString &, int)) );
- connect( core(), SIGNAL(contextMenu(QPopupMenu *, const Context *)),
- this, SLOT(contextMenu(QPopupMenu *, const Context *)) );
+ connect( core(), TQT_SIGNAL(contextMenu(TQPopupMenu *, const Context *)),
+ this, TQT_SLOT(contextMenu(TQPopupMenu *, const Context *)) );
- connect( core(), SIGNAL(stopButtonClicked(KDevPlugin*)),
- this, SLOT(slotStop(KDevPlugin*)) );
- connect( core(), SIGNAL(projectClosed()),
- this, SLOT(projectClosed()) );
+ connect( core(), TQT_SIGNAL(stopButtonClicked(KDevPlugin*)),
+ this, TQT_SLOT(slotStop(KDevPlugin*)) );
+ connect( core(), TQT_SIGNAL(projectClosed()),
+ this, TQT_SLOT(projectClosed()) );
- connect( partController(), SIGNAL(activePartChanged(KParts::Part*)),
- this, SLOT(slotActivePartChanged(KParts::Part*)) );
+ connect( partController(), TQT_SIGNAL(activePartChanged(KParts::Part*)),
+ this, TQT_SLOT(slotActivePartChanged(KParts::Part*)) );
procLineMaker = new ProcessLineMaker();
- connect( procLineMaker, SIGNAL(receivedStdoutLine(const QCString&)),
- appFrontend(), SLOT(insertStdoutLine(const QCString&)) );
- connect( procLineMaker, SIGNAL(receivedStderrLine(const QCString&)),
- appFrontend(), SLOT(insertStderrLine(const QCString&)) );
- connect( procLineMaker, SIGNAL(receivedPartialStdoutLine(const QCString&)),
- appFrontend(), SLOT(addPartialStdoutLine(const QCString&)) );
- connect( procLineMaker, SIGNAL(receivedPartialStderrLine(const QCString&)),
- appFrontend(), SLOT(addPartialStderrLine(const QCString&)) );
+ connect( procLineMaker, TQT_SIGNAL(receivedStdoutLine(const TQCString&)),
+ appFrontend(), TQT_SLOT(insertStdoutLine(const TQCString&)) );
+ connect( procLineMaker, TQT_SIGNAL(receivedStderrLine(const TQCString&)),
+ appFrontend(), TQT_SLOT(insertStderrLine(const TQCString&)) );
+ connect( procLineMaker, TQT_SIGNAL(receivedPartialStdoutLine(const TQCString&)),
+ appFrontend(), TQT_SLOT(addPartialStdoutLine(const TQCString&)) );
+ connect( procLineMaker, TQT_SIGNAL(receivedPartialStderrLine(const TQCString&)),
+ appFrontend(), TQT_SLOT(addPartialStderrLine(const TQCString&)) );
setupController();
- QTimer::singleShot(0, this, SLOT(setupDcop()));
+ TQTimer::singleShot(0, this, TQT_SLOT(setupDcop()));
}
RubyDebuggerPart::~RubyDebuggerPart()
@@ -297,10 +297,10 @@ void RubyDebuggerPart::guiClientAdded( KXMLGUIClient* client )
// Can't change state until after XMLGUI has been loaded...
// Anyone know of a better way of doing this?
if( client == this )
- stateChanged( QString("stopped") );
+ stateChanged( TQString("stopped") );
}
-void RubyDebuggerPart::contextMenu(QPopupMenu *popup, const Context *context)
+void RubyDebuggerPart::contextMenu(TQPopupMenu *popup, const Context *context)
{
if (!context->hasType( Context::EditorContext ))
return;
@@ -311,16 +311,16 @@ void RubyDebuggerPart::contextMenu(QPopupMenu *popup, const Context *context)
popup->insertSeparator();
if (econtext->url().isLocalFile())
{
- int id = popup->insertItem( i18n("Toggle Breakpoint"), this, SLOT(toggleBreakpoint()) );
+ 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."));
}
if (!m_contextIdent.isEmpty())
{
- QString squeezed = KStringHandler::csqueeze(m_contextIdent, 30);
- int id = popup->insertItem( i18n("Watch: %1").arg(squeezed), this, SLOT(contextWatch()) );
+ 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."));
- id = popup->insertItem( i18n("Inspect: %1").arg(squeezed), this, SLOT(contextRubyInspect()) );
+ 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."));
}
}
@@ -362,86 +362,86 @@ void RubyDebuggerPart::setupController()
controller = new RDBController(variableTree, framestackWidget, *projectDom());
// this -> controller
- connect( this, SIGNAL(rubyInspect(const QString&)),
- controller, SLOT(slotRubyInspect(const QString&)));
+ connect( this, TQT_SIGNAL(rubyInspect(const TQString&)),
+ controller, TQT_SLOT(slotRubyInspect(const TQString&)));
// variableTree -> framestackWidget
- connect( variableTree, SIGNAL(selectFrame(int, int)),
- framestackWidget, SLOT(slotSelectFrame(int, int)));
+ connect( variableTree, TQT_SIGNAL(selectFrame(int, int)),
+ framestackWidget, TQT_SLOT(slotSelectFrame(int, int)));
// framestackWidget -> variableTree
- connect( framestackWidget, SIGNAL(frameActive(int, int, const QString&)),
- variableTree, SLOT(slotFrameActive(int, int, const QString&)));
+ connect( framestackWidget, TQT_SIGNAL(frameActive(int, int, const TQString&)),
+ variableTree, TQT_SLOT(slotFrameActive(int, int, const TQString&)));
// variableTree -> controller
- connect( variableTree, SIGNAL(expandItem(VarItem*, const QCString&)),
- controller, SLOT(slotExpandItem(VarItem*, const QCString&)));
- connect( variableTree, SIGNAL(fetchGlobals(bool)),
- controller, SLOT(slotFetchGlobals(bool)));
- connect( variableTree, SIGNAL(addWatchExpression(const QString&, bool)),
- controller, SLOT(slotAddWatchExpression(const QString&, bool)));
- connect( variableTree, SIGNAL(removeWatchExpression(int)),
- controller, SLOT(slotRemoveWatchExpression(int)));
+ connect( variableTree, TQT_SIGNAL(expandItem(VarItem*, const TQCString&)),
+ controller, TQT_SLOT(slotExpandItem(VarItem*, const TQCString&)));
+ connect( variableTree, TQT_SIGNAL(fetchGlobals(bool)),
+ controller, TQT_SLOT(slotFetchGlobals(bool)));
+ connect( variableTree, TQT_SIGNAL(addWatchExpression(const TQString&, bool)),
+ controller, TQT_SLOT(slotAddWatchExpression(const TQString&, bool)));
+ connect( variableTree, TQT_SIGNAL(removeWatchExpression(int)),
+ controller, TQT_SLOT(slotRemoveWatchExpression(int)));
// framestackWidget -> controller
- connect( framestackWidget, SIGNAL(selectFrame(int,int,const QString&)),
- controller, SLOT(slotSelectFrame(int,int,const QString&)));
+ connect( framestackWidget, TQT_SIGNAL(selectFrame(int,int,const TQString&)),
+ controller, TQT_SLOT(slotSelectFrame(int,int,const TQString&)));
// rdbBreakpointWidget -> controller
- connect( rdbBreakpointWidget, SIGNAL(clearAllBreakpoints()),
- controller, SLOT(slotClearAllBreakpoints()));
- connect( rdbBreakpointWidget, SIGNAL(publishBPState(const Breakpoint&)),
- controller, SLOT(slotBPState(const Breakpoint &)));
+ connect( rdbBreakpointWidget, TQT_SIGNAL(clearAllBreakpoints()),
+ controller, TQT_SLOT(slotClearAllBreakpoints()));
+ connect( rdbBreakpointWidget, TQT_SIGNAL(publishBPState(const Breakpoint&)),
+ controller, TQT_SLOT(slotBPState(const Breakpoint &)));
// rdbOutputWidget -> controller
- connect( rdbOutputWidget, SIGNAL(userRDBCmd(const QString &)),
- controller, SLOT(slotUserRDBCmd(const QString&)));
- connect( rdbOutputWidget, SIGNAL(breakInto()),
- controller, SLOT(slotBreakInto()));
+ connect( rdbOutputWidget, TQT_SIGNAL(userRDBCmd(const TQString &)),
+ controller, TQT_SLOT(slotUserRDBCmd(const TQString&)));
+ connect( rdbOutputWidget, TQT_SIGNAL(breakInto()),
+ controller, TQT_SLOT(slotBreakInto()));
// controller -> rdbBreakpointWidget
- connect( controller, SIGNAL(acceptPendingBPs()),
- rdbBreakpointWidget, SLOT(slotSetPendingBPs()));
- connect( controller, SIGNAL(unableToSetBPNow(int)),
- rdbBreakpointWidget, SLOT(slotUnableToSetBPNow(int)));
- connect( controller, SIGNAL(rawRDBBreakpointList (char*)),
- rdbBreakpointWidget, SLOT(slotParseRDBBrkptList(char*)));
- connect( controller, SIGNAL(rawRDBBreakpointSet(char*, int)),
- rdbBreakpointWidget, SLOT(slotParseRDBBreakpointSet(char*, int)));
+ connect( controller, TQT_SIGNAL(acceptPendingBPs()),
+ rdbBreakpointWidget, TQT_SLOT(slotSetPendingBPs()));
+ connect( controller, TQT_SIGNAL(unableToSetBPNow(int)),
+ rdbBreakpointWidget, TQT_SLOT(slotUnableToSetBPNow(int)));
+ connect( controller, TQT_SIGNAL(rawRDBBreakpointList (char*)),
+ rdbBreakpointWidget, TQT_SLOT(slotParseRDBBrkptList(char*)));
+ connect( controller, TQT_SIGNAL(rawRDBBreakpointSet(char*, int)),
+ rdbBreakpointWidget, TQT_SLOT(slotParseRDBBreakpointSet(char*, int)));
// controller -> this
- connect( controller, SIGNAL(dbgStatus(const QString&, int)),
- this, SLOT(slotStatus(const QString&, int)));
- connect( controller, SIGNAL(showStepInSource(const QString&, int, const QString&)),
- this, SLOT(slotShowStep(const QString&, int)));
+ connect( controller, TQT_SIGNAL(dbgStatus(const TQString&, int)),
+ this, TQT_SLOT(slotStatus(const TQString&, int)));
+ connect( controller, TQT_SIGNAL(showStepInSource(const TQString&, int, const TQString&)),
+ this, TQT_SLOT(slotShowStep(const TQString&, int)));
// controller -> procLineMaker
- connect( controller, SIGNAL(ttyStdout(const char*)),
- procLineMaker, SLOT(slotReceivedStdout(const char*)));
- connect( controller, SIGNAL(ttyStderr(const char*)),
- procLineMaker, SLOT(slotReceivedStderr(const char*)));
+ connect( controller, TQT_SIGNAL(ttyStdout(const char*)),
+ procLineMaker, TQT_SLOT(slotReceivedStdout(const char*)));
+ connect( controller, TQT_SIGNAL(ttyStderr(const char*)),
+ procLineMaker, TQT_SLOT(slotReceivedStderr(const char*)));
// controller -> rdbOutputWidget
- connect( controller, SIGNAL(rdbStdout(const char*)),
- rdbOutputWidget, SLOT(slotReceivedStdout(const char*)) );
- connect( controller, SIGNAL(rdbStderr(const char*)),
- rdbOutputWidget, SLOT(slotReceivedStderr(const char*)) );
- connect( controller, SIGNAL(dbgStatus(const QString&, int)),
- rdbOutputWidget, SLOT(slotDbgStatus(const QString&, int)));
+ connect( controller, TQT_SIGNAL(rdbStdout(const char*)),
+ 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)));
}
bool RubyDebuggerPart::startDebugger()
{
- QString build_dir; // Currently selected build directory
- QString run_directory; // Directory from where the program should be run
- QString program; // Absolute path to application
- QString run_arguments; // Command line arguments to be passed to the application
- QString ruby_interpreter; // Absolute path to the ruby interpreter
- QString debuggee_path; // Absolute path to debuggee.rb debugger script
+ TQString build_dir; // Currently selected build directory
+ TQString run_directory; // Directory from where the program should be run
+ TQString program; // Absolute path to application
+ TQString run_arguments; // Command line arguments to be passed to the application
+ TQString ruby_interpreter; // Absolute path to the ruby interpreter
+ TQString debuggee_path; // Absolute path to debuggee.rb debugger script
bool show_constants; // Show constants in the debugger
bool trace_into_ruby; // Trace into the ruby code installed under sitedir
@@ -465,10 +465,10 @@ bool RubyDebuggerPart::startDebugger()
run_arguments = DomUtil::readEntry(*projectDom(), "/kdevrubysupport/run/programargs");
- QString shell = DomUtil::readEntry(*projectDom(), "/kdevrbdebugger/general/dbgshell");
+ TQString shell = DomUtil::readEntry(*projectDom(), "/kdevrbdebugger/general/dbgshell");
if( !shell.isEmpty() )
{
- QFileInfo info( shell );
+ TQFileInfo info( shell );
if( info.isRelative() )
{
shell = build_dir + "/" + shell;
@@ -486,7 +486,7 @@ bool RubyDebuggerPart::startDebugger()
core()->running(this, true);
- stateChanged( QString("active") );
+ stateChanged( TQString("active") );
KActionCollection *ac = actionCollection();
ac->action("debug_run")->setText( i18n("&Continue") );
@@ -518,7 +518,7 @@ bool RubyDebuggerPart::startDebugger()
ruby_interpreter = DomUtil::readEntry(*projectDom(), "/kdevrubysupport/run/interpreter");
int coding = DomUtil::readIntEntry(*projectDom(), "/kdevrubysupport/run/charactercoding");
- QString character_coding("-K");
+ TQString character_coding("-K");
switch (coding) {
case 0:
@@ -535,7 +535,7 @@ bool RubyDebuggerPart::startDebugger()
break;
}
-// ruby_interpreter.append(QString(" -K") + code);
+// ruby_interpreter.append(TQString(" -K") + code);
debuggee_path = ::locate("data", "kdevrbdebugger/debuggee.rb", instance());
@@ -577,7 +577,7 @@ void RubyDebuggerPart::slotStopDebugger()
"while it is running, in order to get information "
"about variables, frame stack, and so on.") );
- stateChanged( QString("stopped") );
+ stateChanged( TQString("stopped") );
core()->running(this, false);
}
@@ -683,9 +683,9 @@ void RubyDebuggerPart::slotRefreshBPState( const Breakpoint& BP)
}
-void RubyDebuggerPart::slotStatus(const QString &msg, int state)
+void RubyDebuggerPart::slotStatus(const TQString &msg, int state)
{
- QString stateIndicator;
+ TQString stateIndicator;
if (state & s_dbgNotStarted)
{
@@ -695,12 +695,12 @@ void RubyDebuggerPart::slotStatus(const QString &msg, int state)
{
stateIndicator = "A";
debugger()->clearExecutionPoint();
- stateChanged( QString("active") );
+ stateChanged( TQString("active") );
}
else if (state & s_programExited)
{
stateIndicator = "E";
- stateChanged( QString("stopped") );
+ stateChanged( TQString("stopped") );
KActionCollection *ac = actionCollection();
ac->action("debug_run")->setText( i18n("Restart") );
// ac->action("debug_run")->setIcon( "1rightarrow" );
@@ -712,7 +712,7 @@ void RubyDebuggerPart::slotStatus(const QString &msg, int state)
else
{
stateIndicator = "P";
- stateChanged( QString("paused") );
+ stateChanged( TQString("paused") );
}
// And now? :-)
@@ -725,7 +725,7 @@ void RubyDebuggerPart::slotStatus(const QString &msg, int state)
}
-void RubyDebuggerPart::slotShowStep(const QString &fileName, int lineNum)
+void RubyDebuggerPart::slotShowStep(const TQString &fileName, int lineNum)
{
if ( ! fileName.isEmpty() )
{
@@ -735,7 +735,7 @@ void RubyDebuggerPart::slotShowStep(const QString &fileName, int lineNum)
}
-void RubyDebuggerPart::slotGotoSource(const QString &fileName, int lineNum)
+void RubyDebuggerPart::slotGotoSource(const TQString &fileName, int lineNum)
{
if ( ! fileName.isEmpty() )
partController()->editDocument(KURL( fileName ), lineNum);
@@ -758,13 +758,13 @@ void RubyDebuggerPart::slotActivePartChanged( KParts::Part* part )
action->setEnabled( iface != 0 );
}
-void RubyDebuggerPart::restorePartialProjectSession(const QDomElement* el)
+void RubyDebuggerPart::restorePartialProjectSession(const TQDomElement* el)
{
rdbBreakpointWidget->restorePartialProjectSession(el);
variableWidget->restorePartialProjectSession(el);
}
-void RubyDebuggerPart::savePartialProjectSession(QDomElement* el)
+void RubyDebuggerPart::savePartialProjectSession(TQDomElement* el)
{
rdbBreakpointWidget->savePartialProjectSession(el);
variableWidget->savePartialProjectSession(el);
diff --git a/languages/ruby/debugger/debuggerpart.h b/languages/ruby/debugger/debuggerpart.h
index 2f35df9a..637c2431 100644
--- a/languages/ruby/debugger/debuggerpart.h
+++ b/languages/ruby/debugger/debuggerpart.h
@@ -20,7 +20,7 @@
#ifndef _DEBUGGERPART_H_
#define _DEBUGGERPART_H_
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
#include "kdevplugin.h"
#include "kdevcore.h"
@@ -50,14 +50,14 @@ class RubyDebuggerPart : public KDevPlugin
Q_OBJECT
public:
- RubyDebuggerPart( QObject *parent, const char *name, const QStringList & );
+ RubyDebuggerPart( TQObject *parent, const char *name, const TQStringList & );
~RubyDebuggerPart();
- virtual void restorePartialProjectSession(const QDomElement* el);
- virtual void savePartialProjectSession(QDomElement* el);
+ virtual void restorePartialProjectSession(const TQDomElement* el);
+ virtual void savePartialProjectSession(TQDomElement* el);
private slots:
void guiClientAdded(KXMLGUIClient*);
- void contextMenu(QPopupMenu *popup, const Context *context);
+ void contextMenu(TQPopupMenu *popup, const Context *context);
void toggleBreakpoint();
void contextWatch();
void contextRubyInspect();
@@ -75,12 +75,12 @@ private slots:
void slotStepOut();
void slotRefreshBPState(const Breakpoint&);
- void slotStatus(const QString &msg, int state);
- void slotShowStep(const QString &fileName, int lineNum);
- void slotGotoSource(const QString &fileName, int lineNum);
+ void slotStatus(const TQString &msg, int state);
+ void slotShowStep(const TQString &fileName, int lineNum);
+ void slotGotoSource(const TQString &fileName, int lineNum);
signals:
- void rubyInspect(const QString&);
+ void rubyInspect(const TQString&);
private:
KDevAppFrontend *appFrontend();
@@ -89,18 +89,18 @@ private:
bool startDebugger();
void setupController();
- QGuardedPtr<VariableWidget> variableWidget;
- QGuardedPtr<RDBBreakpointWidget> rdbBreakpointWidget;
- QGuardedPtr<FramestackWidget> framestackWidget;
- QGuardedPtr<RDBOutputWidget> rdbOutputWidget;
+ TQGuardedPtr<VariableWidget> variableWidget;
+ TQGuardedPtr<RDBBreakpointWidget> rdbBreakpointWidget;
+ TQGuardedPtr<FramestackWidget> framestackWidget;
+ TQGuardedPtr<RDBOutputWidget> rdbOutputWidget;
DbgController *controller;
- QGuardedPtr<QLabel> statusBarIndicator;
- QGuardedPtr<DbgToolBar> floatingToolBar;
+ TQGuardedPtr<TQLabel> statusBarIndicator;
+ TQGuardedPtr<DbgToolBar> floatingToolBar;
ProcessLineMaker* procLineMaker;
ProcessLineMaker* rdbLineMaker;
- QString m_contextIdent;
- QCString m_drkonqi;
+ TQString m_contextIdent;
+ TQCString m_drkonqi;
KDevDebugger *m_debugger;
};
diff --git a/languages/ruby/debugger/framestackwidget.cpp b/languages/ruby/debugger/framestackwidget.cpp
index 836350b2..c8083dc8 100644
--- a/languages/ruby/debugger/framestackwidget.cpp
+++ b/languages/ruby/debugger/framestackwidget.cpp
@@ -25,11 +25,11 @@
#include <klocale.h>
#include <kdebug.h>
-#include <qheader.h>
-#include <qlistbox.h>
-#include <qregexp.h>
-#include <qstrlist.h>
-#include <qfileinfo.h>
+#include <tqheader.h>
+#include <tqlistbox.h>
+#include <tqregexp.h>
+#include <tqstrlist.h>
+#include <tqfileinfo.h>
#include <ctype.h>
@@ -41,18 +41,18 @@
namespace RDBDebugger
{
-FramestackWidget::FramestackWidget(QWidget *parent, const char *name, WFlags f)
- : QListView(parent, name, f),
+FramestackWidget::FramestackWidget(TQWidget *parent, const char *name, WFlags f)
+ : TQListView(parent, name, f),
viewedThread_(0)
{
setRootIsDecorated(true);
setSelectionMode(Single);
- addColumn(QString());
+ addColumn(TQString());
setSorting(0);
header()->hide();
- connect( this, SIGNAL(clicked(QListViewItem*)),
- this, SLOT(slotSelectionChanged(QListViewItem*)) );
+ connect( this, TQT_SIGNAL(clicked(TQListViewItem*)),
+ this, TQT_SLOT(slotSelectionChanged(TQListViewItem*)) );
}
@@ -68,12 +68,12 @@ FramestackWidget::~FramestackWidget()
void FramestackWidget::clear()
{
viewedThread_ = 0;
- QListView::clear();
+ TQListView::clear();
}
/***************************************************************************/
-void FramestackWidget::slotSelectionChanged(QListViewItem * item)
+void FramestackWidget::slotSelectionChanged(TQListViewItem * item)
{
if (item == 0) {
return;
@@ -100,7 +100,7 @@ void FramestackWidget::slotSelectFrame(int frameNo, int threadNo)
setSelected(frame, true);
emit selectFrame(frameNo, threadNo, frame->frameName());
} else {
- emit selectFrame(frameNo, threadNo, QString());
+ emit selectFrame(frameNo, threadNo, TQString());
}
}
@@ -111,7 +111,7 @@ void FramestackWidget::parseRDBThreadList(char *str)
// on receipt of a thread list we must always clear the list.
clear();
- QRegExp thread_re("(\\+)?\\s*(\\d+)\\s*(#<[^>]+>\\s*[^:]+:\\d+)");
+ TQRegExp thread_re("(\\+)?\\s*(\\d+)\\s*(#<[^>]+>\\s*[^:]+:\\d+)");
int pos = thread_re.search(str);
viewedThread_ = 0;
@@ -119,7 +119,7 @@ void FramestackWidget::parseRDBThreadList(char *str)
ThreadStackItem* thread;
thread = new ThreadStackItem( this,
thread_re.cap(2).toInt(),
- QString("%1 %2").arg(thread_re.cap(2)).arg(thread_re.cap(3)) );
+ TQString("%1 %2").arg(thread_re.cap(2)).arg(thread_re.cap(3)) );
// The thread with a '+' is always the viewedthread
if (thread_re.cap(1) == "+") {
viewedThread_ = thread;
@@ -148,8 +148,8 @@ void FramestackWidget::parseRDBBacktraceList(char *str)
}
int frameNo = frame_re.cap(1).toInt();
- QString frameName = QString("T%1#%2 %3").arg(viewedThread_->threadNo()).arg(frame_re.cap(1)).arg(method);
- new FrameStackItem(viewedThread_, frameNo, QString(frame_re.cap(0)), frameName);
+ TQString frameName = TQString("T%1#%2 %3").arg(viewedThread_->threadNo()).arg(frame_re.cap(1)).arg(method);
+ new FrameStackItem(viewedThread_, frameNo, TQString(frame_re.cap(0)), frameName);
// Tell the Variable Tree that this frame is active
emit frameActive(frameNo, viewedThread_->threadNo(), frameName);
@@ -169,7 +169,7 @@ void FramestackWidget::parseRDBBacktraceList(char *str)
ThreadStackItem *FramestackWidget::findThread(int threadNo)
{
- QListViewItem *sibling = firstChild();
+ TQListViewItem *sibling = firstChild();
while (sibling != 0) {
ThreadStackItem *thread = (ThreadStackItem*) sibling;
if (thread->threadNo() == threadNo) {
@@ -192,7 +192,7 @@ FrameStackItem *FramestackWidget::findFrame(int frameNo, int threadNo)
return 0; // no matching thread?
}
- QListViewItem * frameItem = thread->firstChild();
+ TQListViewItem * frameItem = thread->firstChild();
while (frameItem != 0) {
if (((FrameStackItem *) frameItem)->frameNo() == frameNo) {
@@ -211,8 +211,8 @@ FrameStackItem *FramestackWidget::findFrame(int frameNo, int threadNo)
// **************************************************************************
-FrameStackItem::FrameStackItem(ThreadStackItem *parent, int frameNo, const QString &frameDesc, const QString& frameName)
- : QListViewItem(parent),
+FrameStackItem::FrameStackItem(ThreadStackItem *parent, int frameNo, const TQString &frameDesc, const TQString& frameName)
+ : TQListViewItem(parent),
frameNo_(frameNo),
threadNo_(parent->threadNo()),
frameName_(frameName)
@@ -229,7 +229,7 @@ FrameStackItem::~FrameStackItem()
// **************************************************************************
-QString FrameStackItem::key(int /*column*/, bool /*ascending*/) const
+TQString FrameStackItem::key(int /*column*/, bool /*ascending*/) const
{
return key_;
@@ -239,8 +239,8 @@ QString FrameStackItem::key(int /*column*/, bool /*ascending*/) const
// **************************************************************************
// **************************************************************************
-ThreadStackItem::ThreadStackItem(FramestackWidget *parent, int threadNo, const QString &threadDesc)
- : QListViewItem(parent),
+ThreadStackItem::ThreadStackItem(FramestackWidget *parent, int threadNo, const TQString &threadDesc)
+ : TQListViewItem(parent),
threadNo_(threadNo)
{
setText(0, threadDesc);
@@ -260,7 +260,7 @@ void ThreadStackItem::setOpen(bool open)
if (open)
((FramestackWidget*)listView())->slotSelectFrame(1, threadNo());
- QListViewItem::setOpen(open);
+ TQListViewItem::setOpen(open);
}
}
diff --git a/languages/ruby/debugger/framestackwidget.h b/languages/ruby/debugger/framestackwidget.h
index 373d0690..b000f042 100644
--- a/languages/ruby/debugger/framestackwidget.h
+++ b/languages/ruby/debugger/framestackwidget.h
@@ -22,8 +22,8 @@
#ifndef _FRAMESTACKWIDGET_H_
#define _FRAMESTACKWIDGET_H_
-#include <qlistview.h>
-#include <qstringlist.h>
+#include <tqlistview.h>
+#include <tqstringlist.h>
#include "rdbcontroller.h"
@@ -36,7 +36,7 @@ class FramestackWidget;
class ThreadStackItem : public QListViewItem
{
public:
- ThreadStackItem(FramestackWidget *parent, int threadNo, const QString &threadDesc);
+ ThreadStackItem(FramestackWidget *parent, int threadNo, const TQString &threadDesc);
virtual ~ThreadStackItem();
virtual int rtti() const { return RTTI_THREAD_STACK_ITEM; }
@@ -55,21 +55,21 @@ private:
class FrameStackItem : public QListViewItem
{
public:
- FrameStackItem(ThreadStackItem * parent, int frameNo, const QString & frameDesc, const QString & frameName);
+ FrameStackItem(ThreadStackItem * parent, int frameNo, const TQString & frameDesc, const TQString & frameName);
virtual ~FrameStackItem();
virtual int rtti() const { return RTTI_FRAME_STACK_ITEM; }
- virtual QString key(int column, bool ascending) const;
+ virtual TQString key(int column, bool ascending) const;
int frameNo() { return frameNo_; }
int threadNo() { return threadNo_; }
- QString frameName() { return frameName_; }
+ TQString frameName() { return frameName_; }
private:
int frameNo_;
int threadNo_;
- QString frameName_;
- QString key_;
+ TQString frameName_;
+ TQString key_;
};
/***************************************************************************/
@@ -84,7 +84,7 @@ class FramestackWidget : public QListView
Q_OBJECT
public:
- FramestackWidget( QWidget *parent=0, const char *name=0, WFlags f=0 );
+ FramestackWidget( TQWidget *parent=0, const char *name=0, WFlags f=0 );
virtual ~FramestackWidget();
void clear();
@@ -100,11 +100,11 @@ public:
public slots:
void slotSelectFrame(int frameNo, int threadNo);
- void slotSelectionChanged(QListViewItem *thisItem);
+ void slotSelectionChanged(TQListViewItem *thisItem);
signals:
- void selectFrame(int frameNo, int threadNo, const QString& frameName);
- void frameActive(int frameNo, int threadNo, const QString& frameName);
+ void selectFrame(int frameNo, int threadNo, const TQString& frameName);
+ void frameActive(int frameNo, int threadNo, const TQString& frameName);
private:
ThreadStackItem *viewedThread_;
diff --git a/languages/ruby/debugger/rdbbreakpointwidget.cpp b/languages/ruby/debugger/rdbbreakpointwidget.cpp
index e31831de..b9ead060 100644
--- a/languages/ruby/debugger/rdbbreakpointwidget.cpp
+++ b/languages/ruby/debugger/rdbbreakpointwidget.cpp
@@ -31,16 +31,16 @@
#include <kpopupmenu.h>
#include <kurl.h>
-#include <qvbuttongroup.h>
-#include <qfileinfo.h>
-#include <qheader.h>
-#include <qtable.h>
-#include <qtoolbutton.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qvbox.h>
-#include <qlayout.h>
-#include <qregexp.h>
+#include <tqvbuttongroup.h>
+#include <tqfileinfo.h>
+#include <tqheader.h>
+#include <tqtable.h>
+#include <tqtoolbutton.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqvbox.h>
+#include <tqlayout.h>
+#include <tqregexp.h>
#include <stdlib.h>
#include <ctype.h>
@@ -73,7 +73,7 @@ class BreakpointTableRow : public QTableItem
{
public:
- BreakpointTableRow(QTable* table, EditType editType, Breakpoint* bp);
+ BreakpointTableRow(TQTable* table, EditType editType, Breakpoint* bp);
~BreakpointTableRow();
bool match (Breakpoint* bp) const;
@@ -93,9 +93,9 @@ private:
/***************************************************************************/
/***************************************************************************/
-BreakpointTableRow::BreakpointTableRow(QTable* parent, EditType editType,
+BreakpointTableRow::BreakpointTableRow(TQTable* parent, EditType editType,
Breakpoint* bp) :
- QTableItem(parent, editType, ""),
+ TQTableItem(parent, editType, ""),
m_breakpoint(bp)
{
appendEmptyRow();
@@ -133,7 +133,7 @@ void BreakpointTableRow::appendEmptyRow()
table()->setItem(row, Control, this);
- QCheckTableItem* cti = new QCheckTableItem( table(), "");
+ TQCheckTableItem* cti = new TQCheckTableItem( table(), "");
table()->setItem(row, Enable, cti);
}
@@ -143,15 +143,15 @@ void BreakpointTableRow::setRow()
{
if ( m_breakpoint )
{
- QTableItem *item = table()->item ( row(), Enable );
+ TQTableItem *item = table()->item ( row(), Enable );
Q_ASSERT(item->rtti() == 2);
- ((QCheckTableItem*)item)->setChecked(m_breakpoint->isEnabled());
+ ((TQCheckTableItem*)item)->setChecked(m_breakpoint->isEnabled());
- QString status=m_breakpoint->statusDisplay(m_activeFlag);
+ TQString status=m_breakpoint->statusDisplay(m_activeFlag);
table()->setText(row(), Status, status);
- QString displayType = m_breakpoint->displayType();
+ TQString displayType = m_breakpoint->displayType();
table()->setText(row(), Location, m_breakpoint->location());
if (m_breakpoint->isTemporary())
@@ -168,44 +168,44 @@ void BreakpointTableRow::setRow()
/***************************************************************************/
/***************************************************************************/
-RDBBreakpointWidget::RDBBreakpointWidget(QWidget *parent, const char *name) :
- QHBox(parent, name)
+RDBBreakpointWidget::RDBBreakpointWidget(TQWidget *parent, const char *name) :
+ TQHBox(parent, name)
{
- QFrame* toolbar = new QFrame( this );
- QVBoxLayout *l = new QVBoxLayout(toolbar, 0, 0);
+ TQFrame* toolbar = new TQFrame( this );
+ TQVBoxLayout *l = new TQVBoxLayout(toolbar, 0, 0);
- toolbar->setFrameStyle( QFrame::ToolBarPanel | QFrame::Plain );
+ toolbar->setFrameStyle( TQFrame::ToolBarPanel | TQFrame::Plain );
toolbar->setLineWidth( 0 );
- m_add = new QToolButton( toolbar, "add breakpoint" );
+ m_add = new TQToolButton( toolbar, "add breakpoint" );
m_add->setPixmap ( SmallIcon ( "breakpoint_add" ) );
- QToolTip::add ( m_add, i18n ( "Add empty breakpoint" ) + I18N_NOOP(" <Alt+A>"));
- QWhatsThis::add( m_add, i18n("<b>Add empty breakpoint</b><p>Shows a popup menu that allows you to choose "
+ TQToolTip::add ( m_add, i18n ( "Add empty breakpoint" ) + I18N_NOOP(" <Alt+A>"));
+ TQWhatsThis::add( m_add, i18n("<b>Add empty breakpoint</b><p>Shows a popup menu that allows you to choose "
"the type of breakpoint, then adds a breakpoint of the selected type to the breakpoints list."));
- m_delete = new QToolButton( toolbar, "delete breakpoint" );
+ m_delete = new TQToolButton( toolbar, "delete breakpoint" );
m_delete->setPixmap ( SmallIcon ( "breakpoint_delete" ) );
- QToolTip::add ( m_delete, i18n ( "Delete selected breakpoint" ) + I18N_NOOP(" <Delete>") );
- QWhatsThis::add( m_delete, i18n("<b>Delete selected breakpoint</b><p>Deletes the selected breakpoint in the breakpoints list."));
+ TQToolTip::add ( m_delete, i18n ( "Delete selected breakpoint" ) + I18N_NOOP(" <Delete>") );
+ TQWhatsThis::add( m_delete, i18n("<b>Delete selected breakpoint</b><p>Deletes the selected breakpoint in the breakpoints list."));
- m_edit = new QToolButton( toolbar, "edit breakpoint" );
+ m_edit = new TQToolButton( toolbar, "edit breakpoint" );
m_edit->setPixmap ( SmallIcon ( "breakpoint_edit" ) );
- QToolTip::add ( m_edit, i18n ( "Edit selected breakpoint" ) + I18N_NOOP(" <Return>") );
- QWhatsThis::add( m_edit, i18n("<b>Edit selected breakpoint</b><p>Allows to edit location, condition and ignore count properties of the selected breakpoint in the breakpoints list."));
+ TQToolTip::add ( m_edit, i18n ( "Edit selected breakpoint" ) + I18N_NOOP(" <Return>") );
+ TQWhatsThis::add( m_edit, i18n("<b>Edit selected breakpoint</b><p>Allows to edit location, condition and ignore count properties of the selected breakpoint in the breakpoints list."));
- m_removeAll = new QToolButton( toolbar, "Delete all breakppoints" );
+ m_removeAll = new TQToolButton( toolbar, "Delete all breakppoints" );
m_removeAll->setPixmap ( SmallIcon ( "breakpoint_delete_all" ) );
- QToolTip::add ( m_removeAll, i18n ( "Remove all breakpoints" ) );
- QWhatsThis::add( m_removeAll, i18n("<b>Remove all breakpoints</b><p>Removes all breakpoints in the project."));
+ TQToolTip::add ( m_removeAll, i18n ( "Remove all breakpoints" ) );
+ TQWhatsThis::add( m_removeAll, i18n("<b>Remove all breakpoints</b><p>Removes all breakpoints in the project."));
l->addWidget(m_add);
l->addWidget(m_edit);
l->addWidget(m_delete);
l->addWidget(m_removeAll);
- QSpacerItem* spacer = new QSpacerItem( 5, 5, QSizePolicy::Minimum, QSizePolicy::Expanding );
+ TQSpacerItem* spacer = new TQSpacerItem( 5, 5, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
l->addItem(spacer);
- QPopupMenu *addMenu = new QPopupMenu( this );
+ TQPopupMenu *addMenu = new TQPopupMenu( this );
addMenu->insertItem( i18n( "File:line" ), BP_TYPE_FilePos );
addMenu->insertItem( i18n( "Watchpoint" ), BP_TYPE_Watchpoint );
addMenu->insertItem( i18n( "Catchpoint" ), BP_TYPE_Catchpoint );
@@ -214,17 +214,17 @@ RDBBreakpointWidget::RDBBreakpointWidget(QWidget *parent, const char *name) :
m_add->setPopupDelay(1);
m_table = new RDBTable(0, numCols, this, name);
- m_table->setSelectionMode(QTable::SingleRow);
+ m_table->setSelectionMode(TQTable::SingleRow);
m_table->setShowGrid (false);
m_table->setLeftMargin(0);
- m_table->setFocusStyle(QTable::FollowStyle);
+ m_table->setFocusStyle(TQTable::FollowStyle);
m_table->hideColumn(Control);
m_table->setColumnReadOnly(Type, true);
m_table->setColumnReadOnly(Status, true);
m_table->setColumnWidth( Enable, 20);
- QHeader *header = m_table->horizontalHeader();
+ TQHeader *header = m_table->horizontalHeader();
header->setLabel( Enable, "" );
header->setLabel( Type, i18n("Type") );
@@ -233,40 +233,40 @@ RDBBreakpointWidget::RDBBreakpointWidget(QWidget *parent, const char *name) :
m_table->show();
- m_ctxMenu = new QPopupMenu( this );
+ m_ctxMenu = new TQPopupMenu( this );
m_ctxMenu->insertItem( i18n( "Show" ), BW_ITEM_Show );
m_ctxMenu->insertItem( i18n( "Edit" ), BW_ITEM_Edit );
m_ctxMenu->insertItem( i18n( "Disable" ), BW_ITEM_Disable );
m_ctxMenu->insertItem( i18n( "Delete" ), BW_ITEM_Delete );
- connect( addMenu, SIGNAL(activated(int)),
- this, SLOT(slotAddBlankBreakpoint(int)) );
- connect( m_delete, SIGNAL(clicked()),
- this, SLOT(slotRemoveBreakpoint()) );
- connect( m_edit, SIGNAL(clicked()),
- this, SLOT(slotEditBreakpoint()) );
- connect( m_removeAll, SIGNAL(clicked()),
- this, SLOT(slotRemoveAllBreakpoints()) );
+ connect( addMenu, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotAddBlankBreakpoint(int)) );
+ connect( m_delete, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotRemoveBreakpoint()) );
+ connect( m_edit, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotEditBreakpoint()) );
+ connect( m_removeAll, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotRemoveAllBreakpoints()) );
- connect( m_table, SIGNAL(contextMenuRequested(int, int, const QPoint &)),
- this, SLOT(slotContextMenuShow(int, int, const QPoint & )) );
- connect( m_ctxMenu, SIGNAL(activated(int)),
- this, SLOT(slotContextMenuSelect(int)) );
+ connect( m_table, TQT_SIGNAL(contextMenuRequested(int, int, const TQPoint &)),
+ this, TQT_SLOT(slotContextMenuShow(int, int, const TQPoint & )) );
+ connect( m_ctxMenu, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotContextMenuSelect(int)) );
- connect( m_table, SIGNAL(doubleClicked(int, int, int, const QPoint &)),
- this, SLOT(slotRowDoubleClicked(int, int, int, const QPoint &)));
+ connect( m_table, TQT_SIGNAL(doubleClicked(int, int, int, const TQPoint &)),
+ this, TQT_SLOT(slotRowDoubleClicked(int, int, int, const TQPoint &)));
- connect( m_table, SIGNAL(valueChanged(int, int)),
- this, SLOT(slotNewValue(int, int)));
+ connect( m_table, TQT_SIGNAL(valueChanged(int, int)),
+ this, TQT_SLOT(slotNewValue(int, int)));
- connect( m_table, SIGNAL(returnPressed()),
- this, SLOT(slotEditBreakpoint()));
-// connect( m_table, SIGNAL(f2Pressed()),
-// this, SLOT(slotEditBreakpoint()));
- connect( m_table, SIGNAL(deletePressed()),
- this, SLOT(slotRemoveBreakpoint()));
- connect( m_table, SIGNAL(insertPressed()),
- this, SLOT(slotAddBreakpoint()));
+ connect( m_table, TQT_SIGNAL(returnPressed()),
+ this, TQT_SLOT(slotEditBreakpoint()));
+// connect( m_table, TQT_SIGNAL(f2Pressed()),
+// this, TQT_SLOT(slotEditBreakpoint()));
+ connect( m_table, TQT_SIGNAL(deletePressed()),
+ this, TQT_SLOT(slotRemoveBreakpoint()));
+ connect( m_table, TQT_SIGNAL(insertPressed()),
+ this, TQT_SLOT(slotAddBreakpoint()));
}
/***************************************************************************/
@@ -362,7 +362,7 @@ BreakpointTableRow* RDBBreakpointWidget::findKey(int BPKey)
BreakpointTableRow* RDBBreakpointWidget::addBreakpoint(Breakpoint *bp)
{
BreakpointTableRow* btr =
- new BreakpointTableRow( m_table, QTableItem::WhenCurrent, bp );
+ new BreakpointTableRow( m_table, TQTableItem::WhenCurrent, bp );
emit publishBPState(*bp);
return btr;
}
@@ -394,7 +394,7 @@ void RDBBreakpointWidget::removeBreakpoint(BreakpointTableRow* btr)
/***************************************************************************/
-void RDBBreakpointWidget::slotToggleBreakpoint(const QString &fileName, int lineNum)
+void RDBBreakpointWidget::slotToggleBreakpoint(const TQString &fileName, int lineNum)
{
FilePosBreakpoint *fpBP = new FilePosBreakpoint(fileName, lineNum+1);
@@ -410,7 +410,7 @@ void RDBBreakpointWidget::slotToggleBreakpoint(const QString &fileName, int line
/***************************************************************************/
-void RDBBreakpointWidget::slotToggleBreakpointEnabled(const QString &fileName, int lineNum)
+void RDBBreakpointWidget::slotToggleBreakpointEnabled(const TQString &fileName, int lineNum)
{
FilePosBreakpoint *fpBP = new FilePosBreakpoint(fileName, lineNum+1);
@@ -426,7 +426,7 @@ void RDBBreakpointWidget::slotToggleBreakpointEnabled(const QString &fileName, i
/***************************************************************************/
-void RDBBreakpointWidget::slotToggleWatchpoint(const QString &varName)
+void RDBBreakpointWidget::slotToggleWatchpoint(const TQString &varName)
{
Watchpoint *watchpoint = new Watchpoint(varName, false, true);
BreakpointTableRow* btr = find(watchpoint);
@@ -482,7 +482,7 @@ void RDBBreakpointWidget::slotParseRDBBrkptList(char *str)
// breakpoint list we can trim the breakpoints that have been
// removed (temporary breakpoints do this)
m_activeFlag++;
- QRegExp breakpoint_re("(\\d+) [^:]+:\\d+");
+ TQRegExp breakpoint_re("(\\d+) [^:]+:\\d+");
int pos = 0;
pos = breakpoint_re.search(str, pos);
@@ -504,7 +504,7 @@ void RDBBreakpointWidget::slotParseRDBBrkptList(char *str)
str = strstr(str, "Watchpoints:");
if (str != 0) {
- QRegExp watchpoint_re("(\\d+) [^\n]+\n");
+ TQRegExp watchpoint_re("(\\d+) [^\n]+\n");
int pos = 0;
pos = watchpoint_re.search(str, pos);
@@ -549,8 +549,8 @@ void RDBBreakpointWidget::slotParseRDBBreakpointSet(char *str, int BPKey)
Breakpoint *bp = btr->breakpoint();
bp->setDbgProcessing(false);
- QRegExp breakpoint_re("Set breakpoint (\\d+) at [^:]+:\\d+");
- QRegExp watchpoint_re("Set watchpoint (\\d+)");
+ TQRegExp breakpoint_re("Set breakpoint (\\d+) at [^:]+:\\d+");
+ TQRegExp watchpoint_re("Set watchpoint (\\d+)");
int id = 0;
if (breakpoint_re.search(str, 0) != -1) {
@@ -596,7 +596,7 @@ void RDBBreakpointWidget::slotAddBlankBreakpoint(int idx)
if (btr)
{
- QTableSelection ts;
+ TQTableSelection ts;
ts.init(btr->row(), 0);
ts.expandTo(btr->row(), numCols );
m_table->addSelection(ts);
@@ -632,7 +632,7 @@ void RDBBreakpointWidget::slotRemoveAllBreakpoints()
/***************************************************************************/
-void RDBBreakpointWidget::slotRowDoubleClicked(int row, int col, int btn, const QPoint &)
+void RDBBreakpointWidget::slotRowDoubleClicked(int row, int col, int btn, const TQPoint &)
{
if ( btn == Qt::LeftButton )
{
@@ -651,7 +651,7 @@ void RDBBreakpointWidget::slotRowDoubleClicked(int row, int col, int btn, const
}
}
-void RDBBreakpointWidget::slotContextMenuShow( int row, int /*col*/, const QPoint &mousePos )
+void RDBBreakpointWidget::slotContextMenuShow( int row, int /*col*/, const TQPoint &mousePos )
{
BreakpointTableRow *btr = (BreakpointTableRow *)m_table->item( row, Control );
@@ -718,7 +718,7 @@ void RDBBreakpointWidget::slotContextMenuSelect( int item )
/***************************************************************************/
-void RDBBreakpointWidget::slotEditRow(int row, int col, const QPoint &)
+void RDBBreakpointWidget::slotEditRow(int row, int col, const TQPoint &)
{
// kdDebug(9012) << "in slotEditRow row=" << row << endl;
BreakpointTableRow* btr = (BreakpointTableRow *) m_table->item(row, Control);
@@ -745,7 +745,7 @@ void RDBBreakpointWidget::slotNewValue(int row, int col)
case Enable:
{
- QCheckTableItem *item = (QCheckTableItem*)m_table->item ( row, Enable );
+ TQCheckTableItem *item = (TQCheckTableItem*)m_table->item ( row, Enable );
if ( item->isChecked() != bp->isEnabled() )
{
bp->setEnabled(item->isChecked());
@@ -788,7 +788,7 @@ void RDBBreakpointWidget::slotNewValue(int row, int col)
/***************************************************************************/
-void RDBBreakpointWidget::slotEditBreakpoint(const QString &fileName, int lineNum)
+void RDBBreakpointWidget::slotEditBreakpoint(const TQString &fileName, int lineNum)
{
FilePosBreakpoint *fpBP = new FilePosBreakpoint(fileName, lineNum+1);
@@ -797,7 +797,7 @@ void RDBBreakpointWidget::slotEditBreakpoint(const QString &fileName, int lineNu
if (btr)
{
- QTableSelection ts;
+ TQTableSelection ts;
ts.init(btr->row(), 0);
ts.expandTo(btr->row(), numCols);
m_table->addSelection(ts);
@@ -815,21 +815,21 @@ void RDBBreakpointWidget::slotEditBreakpoint()
/***************************************************************************/
-void RDBBreakpointWidget::savePartialProjectSession(QDomElement* el)
+void RDBBreakpointWidget::savePartialProjectSession(TQDomElement* el)
{
- QDomDocument domDoc = el->ownerDocument();
+ TQDomDocument domDoc = el->ownerDocument();
if (domDoc.isNull())
return;
- QDomElement breakpointListEl = domDoc.createElement("breakpointList");
+ TQDomElement breakpointListEl = domDoc.createElement("breakpointList");
for ( int row = 0; row < m_table->numRows(); row++ )
{
BreakpointTableRow* btr =
(BreakpointTableRow *) m_table->item(row, Control);
Breakpoint* bp = btr->breakpoint();
- QDomElement breakpointEl =
- domDoc.createElement("breakpoint"+QString::number(row));
+ TQDomElement breakpointEl =
+ domDoc.createElement("breakpoint"+TQString::number(row));
breakpointEl.setAttribute("type", bp->type());
breakpointEl.setAttribute("location", bp->location(false));
@@ -844,12 +844,12 @@ void RDBBreakpointWidget::savePartialProjectSession(QDomElement* el)
/***************************************************************************/
-void RDBBreakpointWidget::restorePartialProjectSession(const QDomElement* el)
+void RDBBreakpointWidget::restorePartialProjectSession(const TQDomElement* el)
{
- QDomElement breakpointListEl = el->namedItem("breakpointList").toElement();
+ TQDomElement breakpointListEl = el->namedItem("breakpointList").toElement();
if (!breakpointListEl.isNull())
{
- QDomElement breakpointEl;
+ TQDomElement breakpointEl;
for (breakpointEl = breakpointListEl.firstChild().toElement();
!breakpointEl.isNull();
breakpointEl = breakpointEl.nextSibling().toElement())
@@ -910,7 +910,7 @@ void RDBBreakpointWidget::slotAddBreakpoint( )
/***************************************************************************/
-void RDBBreakpointWidget::focusInEvent( QFocusEvent */* e*/ )
+void RDBBreakpointWidget::focusInEvent( TQFocusEvent */* e*/ )
{
m_table->setFocus();
}
diff --git a/languages/ruby/debugger/rdbbreakpointwidget.h b/languages/ruby/debugger/rdbbreakpointwidget.h
index 65e6e15b..22922010 100644
--- a/languages/ruby/debugger/rdbbreakpointwidget.h
+++ b/languages/ruby/debugger/rdbbreakpointwidget.h
@@ -22,8 +22,8 @@
#ifndef _RDBBreakpointWidget_H_
#define _RDBBreakpointWidget_H_
-#include <qhbox.h>
-#include <qpopupmenu.h>
+#include <tqhbox.h>
+#include <tqpopupmenu.h>
class QDomElement;
class QToolButton;
@@ -44,22 +44,22 @@ class RDBBreakpointWidget : public QHBox
Q_OBJECT
public:
- RDBBreakpointWidget( QWidget* parent=0, const char* name=0 );
+ RDBBreakpointWidget( TQWidget* parent=0, const char* name=0 );
virtual ~RDBBreakpointWidget();
void reset();
- void savePartialProjectSession(QDomElement* el);
- void restorePartialProjectSession(const QDomElement* el);
+ void savePartialProjectSession(TQDomElement* el);
+ void restorePartialProjectSession(const TQDomElement* el);
public slots:
// Connected to from the editor widget:
- void slotToggleBreakpoint(const QString &filename, int lineNum);
- void slotToggleBreakpointEnabled(const QString &fileName, int lineNum);
+ void slotToggleBreakpoint(const TQString &filename, int lineNum);
+ void slotToggleBreakpointEnabled(const TQString &fileName, int lineNum);
// Connected to from the variable widget:
- void slotToggleWatchpoint(const QString &varName);
+ void slotToggleWatchpoint(const TQString &varName);
// Connected to from the dbgcontroller:
void slotSetPendingBPs();
@@ -71,25 +71,25 @@ public slots:
protected:
enum BW_ITEMS { BW_ITEM_Show, BW_ITEM_Edit, BW_ITEM_Disable, BW_ITEM_Delete };
- virtual void focusInEvent(QFocusEvent *e);
+ virtual void focusInEvent(TQFocusEvent *e);
private slots:
void slotRemoveBreakpoint();
void slotRemoveAllBreakpoints();
- void slotEditBreakpoint(const QString &fileName, int lineNum);
+ void slotEditBreakpoint(const TQString &fileName, int lineNum);
void slotEditBreakpoint();
void slotAddBreakpoint();
void slotAddBlankBreakpoint(int idx);
- void slotRowDoubleClicked(int row, int col, int button, const QPoint & mousePos);
- void slotContextMenuShow( int row, int col, const QPoint &mousePos );
+ void slotRowDoubleClicked(int row, int col, int button, const TQPoint & mousePos);
+ void slotContextMenuShow( int row, int col, const TQPoint &mousePos );
void slotContextMenuSelect( int item );
- void slotEditRow(int row, int col, const QPoint & mousePos);
+ void slotEditRow(int row, int col, const TQPoint & mousePos);
void slotNewValue(int row, int col);
signals:
void publishBPState(const Breakpoint& brkpt);
void refreshBPState(const Breakpoint& brkpt);
- void gotoSourcePosition(const QString &fileName, int lineNum);
+ void gotoSourcePosition(const TQString &fileName, int lineNum);
void clearAllBreakpoints();
private:
@@ -104,11 +104,11 @@ private:
private:
RDBTable* m_table;
- QToolButton* m_add;
- QToolButton* m_delete;
- QToolButton* m_edit;
- QToolButton* m_removeAll;
- QPopupMenu* m_ctxMenu;
+ TQToolButton* m_add;
+ TQToolButton* m_delete;
+ TQToolButton* m_edit;
+ TQToolButton* m_removeAll;
+ TQPopupMenu* m_ctxMenu;
};
/***************************************************************************/
diff --git a/languages/ruby/debugger/rdbcommand.cpp b/languages/ruby/debugger/rdbcommand.cpp
index 98dc3a80..bfc630cc 100644
--- a/languages/ruby/debugger/rdbcommand.cpp
+++ b/languages/ruby/debugger/rdbcommand.cpp
@@ -27,11 +27,11 @@ namespace RDBDebugger
{
-RDBCommand::RDBCommand(const QCString &setCommand, bool isRunCmd, bool isInfoCmd)
+RDBCommand::RDBCommand(const TQCString &setCommand, bool isRunCmd, bool isInfoCmd)
: DbgCommand(setCommand, isRunCmd, isInfoCmd)
{
// if (prompt_) {
-// cmdBuffer_ = QCString().sprintf("set prompt %c%c\n", BLOCK_START, prompt_) +
+// cmdBuffer_ = TQCString().sprintf("set prompt %c%c\n", BLOCK_START, prompt_) +
// command_ +
// idlePrompt_;
// }
@@ -48,7 +48,7 @@ RDBCommand::~RDBCommand()
/***************************************************************************/
RDBItemCommand::RDBItemCommand( VarItem *item,
- const QCString &command,
+ const TQCString &command,
bool isRunCmd)
: RDBCommand(command, isRunCmd, true),
item_(item)
@@ -62,7 +62,7 @@ RDBItemCommand::~RDBItemCommand()
}
-RDBSetBreakpointCommand::RDBSetBreakpointCommand(const QCString &command, int key)
+RDBSetBreakpointCommand::RDBSetBreakpointCommand(const TQCString &command, int key)
: RDBCommand(command, false, false),
key_(key)
{
diff --git a/languages/ruby/debugger/rdbcommand.h b/languages/ruby/debugger/rdbcommand.h
index 663c8119..0d46a5fc 100644
--- a/languages/ruby/debugger/rdbcommand.h
+++ b/languages/ruby/debugger/rdbcommand.h
@@ -51,11 +51,11 @@ enum RDBCmd
class RDBCommand : public DbgCommand
{
public:
- RDBCommand(const QCString& command, bool isRunCmd=false, bool isInfoCmd=true);
+ RDBCommand(const TQCString& command, bool isRunCmd=false, bool isInfoCmd=true);
virtual ~RDBCommand();
private:
- static QCString idlePrompt_;
+ static TQCString idlePrompt_;
};
/***************************************************************************/
@@ -64,7 +64,7 @@ private:
class RDBItemCommand : public RDBCommand
{
public:
- RDBItemCommand(VarItem *item, const QCString &command,
+ RDBItemCommand(VarItem *item, const TQCString &command,
bool isRunCmd=false);
virtual ~RDBItemCommand();
@@ -81,7 +81,7 @@ private:
class RDBSetBreakpointCommand : public RDBCommand
{
public:
- RDBSetBreakpointCommand(const QCString& setCommand, int key);
+ RDBSetBreakpointCommand(const TQCString& setCommand, int key);
virtual ~RDBSetBreakpointCommand();
int getKey() const { return key_; }
diff --git a/languages/ruby/debugger/rdbcontroller.cpp b/languages/ruby/debugger/rdbcontroller.cpp
index 160754a0..f0b6ea40 100644
--- a/languages/ruby/debugger/rdbcontroller.cpp
+++ b/languages/ruby/debugger/rdbcontroller.cpp
@@ -45,11 +45,11 @@
#include <kmessagebox.h>
#include <kprocess.h>
-#include <qdatetime.h>
-#include <qfileinfo.h>
-#include <qregexp.h>
-#include <qstring.h>
-#include <qtextstream.h>
+#include <tqdatetime.h>
+#include <tqfileinfo.h>
+#include <tqregexp.h>
+#include <tqstring.h>
+#include <tqtextstream.h>
#include <iostream>
#include <ctype.h>
@@ -89,10 +89,10 @@ int debug_controllerExists = false;
// At the moment a Unix domain socket is used. It might be better to
// change to tcp/ip and listen on a port instead
-QCString RDBController::unixSocketPath_;
+TQCString RDBController::unixSocketPath_;
-RDBController::RDBController(VariableTree *varTree, FramestackWidget *frameStack, QDomDocument &projectDom)
+RDBController::RDBController(VariableTree *varTree, FramestackWidget *frameStack, TQDomDocument &projectDom)
: DbgController(),
frameStack_(frameStack),
varTree_(varTree),
@@ -129,9 +129,9 @@ RDBController::RDBController(VariableTree *varTree, FramestackWidget *frameStack
strcpy(sockaddr.sun_path, unixSocketPath_);
bind(masterSocket_, (const struct sockaddr*) &sockaddr, sizeof(sockaddr));
listen(masterSocket_, 1);
- acceptNotifier_ = new QSocketNotifier(masterSocket_, QSocketNotifier::Read, this);
- QObject::connect( acceptNotifier_, SIGNAL(activated(int)),
- this, SLOT(slotAcceptConnection(int)) );
+ acceptNotifier_ = new TQSocketNotifier(masterSocket_, TQSocketNotifier::Read, this);
+ TQObject::connect( acceptNotifier_, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotAcceptConnection(int)) );
configure();
cmdList_.setAutoDelete(true);
@@ -153,7 +153,7 @@ RDBController::~RDBController()
delete[] rdbOutput_;
debug_controllerExists = false;
- QFileInfo unixSocket(unixSocketPath_);
+ TQFileInfo unixSocket(unixSocketPath_);
if (unixSocket.exists()) {
unlink(unixSocketPath_);
}
@@ -231,7 +231,7 @@ void RDBController::executeCmd()
setStateOff(s_appNotStarted|s_programExited|s_silent);
}
- QString prettyCmd = currentCmd_->cmdToSend();
+ TQString prettyCmd = currentCmd_->cmdToSend();
prettyCmd = currentPrompt_ + prettyCmd;
emit rdbStdout( prettyCmd.latin1() );
@@ -291,7 +291,7 @@ void RDBController::pauseApp()
// Whenever the program pauses we need to refresh the data visible to
// the user. The reason we've stopped may be passed in to be emitted.
-void RDBController::actOnProgramPause(const QString &msg)
+void RDBController::actOnProgramPause(const TQString &msg)
{
// We're only stopping if we were running, of course.
if (stateIsOn(s_appBusy))
@@ -326,7 +326,7 @@ void RDBController::actOnProgramPause(const QString &msg)
// an invalid program specified or ...
// rdb is still running though, but only the run command (may) make sense
// all other commands are disabled.
-void RDBController::programNoApp(const QString &msg, bool msgBox)
+void RDBController::programNoApp(const TQString &msg, bool msgBox)
{
state_ = (s_appNotStarted|s_programExited|(state_&(s_shuttingDown)));
destroyCmds();
@@ -358,17 +358,17 @@ void RDBController::programNoApp(const QString &msg, bool msgBox)
// The data gets parsed here and emitted in its component parts.
void RDBController::parseProgramLocation(char *buf)
{
- QString buffer(buf);
- QString line;
- QTextStream input(&buffer, IO_ReadOnly);
- QString sourceFile;
+ TQString buffer(buf);
+ TQString line;
+ TQTextStream input(&buffer, IO_ReadOnly);
+ TQString sourceFile;
int sourceLine = 0;
// "1: a = 1"
- QRegExp display_re("^(\\d+):\\s(.*)$");
+ TQRegExp display_re("^(\\d+):\\s(.*)$");
// "/opt/qt/src/widgets/qlistview.rb:1558:puts 'hello world'"
- QRegExp sourcepos_re("^([^:]+):(\\d+):");
+ TQRegExp sourcepos_re("^([^:]+):(\\d+):");
line = input.readLine();
while (! line.isNull()) {
@@ -388,7 +388,7 @@ void RDBController::parseProgramLocation(char *buf)
&& !sourceFile.endsWith("/korundum.rb") ) )
&& !sourceFile.endsWith("/debuggee.rb") )
{
- actOnProgramPause(QString());
+ actOnProgramPause(TQString());
emit showStepInSource(sourceFile, sourceLine, "");
return;
}
@@ -422,7 +422,7 @@ void RDBController::parseSwitchThread(char *buf)
{
// Look for the thread number
// 2 #<Thread:0x30091998 sleep> /home/duke/play/testit/trykorundum/src/bar.rb:13
- QRegExp thread_re("(\\d+)");
+ TQRegExp thread_re("(\\d+)");
if (thread_re.search(buf) != -1) {
viewedThread_ = thread_re.cap(1).toInt();
currentFrame_ = 1;
@@ -434,7 +434,7 @@ void RDBController::parseSwitchThread(char *buf)
// After an 'up nnn' or 'down nnn' command, get the new source file and line no.
void RDBController::parseFrameMove(char *buf)
{
- QString sourceFile;
+ TQString sourceFile;
int sourceLine = 0;
if (stateIsOn(s_fetchLocals)) {
@@ -442,7 +442,7 @@ void RDBController::parseFrameMove(char *buf)
}
// "#2 /home/duke/play/testit/trykorundum/src/main.rb:11"
- QRegExp sourcepos_re("#\\d+\\s([^:]+):(\\d+)");
+ TQRegExp sourcepos_re("#\\d+\\s([^:]+):(\\d+)");
if (sourcepos_re.search(buf) != -1) {
sourceFile = sourcepos_re.cap(1);
sourceLine = sourcepos_re.cap(2).toInt();
@@ -505,7 +505,7 @@ void RDBController::parseFrameSelected(char *buf)
{
if (!stateIsOn(s_silent)) {
emit showStepInSource("", -1, "");
- emit dbgStatus (i18n("No source: %1").arg(QString(buf)), state_);
+ emit dbgStatus (i18n("No source: %1").arg(TQString(buf)), state_);
}
}
@@ -527,7 +527,7 @@ void RDBController::parseUpdateDisplay(char *buf)
{
varTree_->viewport()->setUpdatesEnabled(false);
- QRegExp display_re("(\\d+):\\s([^\n]*)\n");
+ TQRegExp display_re("(\\d+):\\s([^\n]*)\n");
int pos = display_re.search(buf);
while (pos != -1) {
@@ -644,14 +644,14 @@ void RDBController::parse(char *buf)
// **************************************************************************
-void RDBController::setBreakpoint(const QCString &BPSetCmd, int key)
+void RDBController::setBreakpoint(const TQCString &BPSetCmd, int key)
{
queueCmd(new RDBSetBreakpointCommand(BPSetCmd, key));
}
// **************************************************************************
-void RDBController::clearBreakpoint(const QCString &BPClearCmd)
+void RDBController::clearBreakpoint(const TQCString &BPClearCmd)
{
queueCmd(new RDBCommand(BPClearCmd, NOTRUNCMD, NOTINFOCMD));
// Note: this is NOT an info command, because rdb doesn't explictly tell
@@ -668,7 +668,7 @@ void RDBController::modifyBreakpoint( const Breakpoint& BP )
if (BP.dbgId() > 0)
{
if (BP.changedEnable())
- queueCmd(new RDBCommand(QCString().sprintf("%s %d",
+ queueCmd(new RDBCommand(TQCString().sprintf("%s %d",
BP.isEnabled() ? "enable" : "disable",
BP.dbgId()), NOTRUNCMD, NOTINFOCMD));
@@ -688,7 +688,7 @@ void RDBController::modifyBreakpoint( const Breakpoint& BP )
// **************************************************************************
-void RDBController::slotStart(const QString& ruby_interpreter, const QString& character_coding, const QString& run_directory, const QString& debuggee_path, const QString &application, const QString& run_arguments, bool show_constants, bool trace_into_ruby)
+void RDBController::slotStart(const TQString& ruby_interpreter, const TQString& character_coding, const TQString& run_directory, const TQString& debuggee_path, const TQString &application, const TQString& run_arguments, bool show_constants, bool trace_into_ruby)
{
Q_ASSERT (!dbgProcess_ && !tty_);
@@ -696,11 +696,11 @@ void RDBController::slotStart(const QString& ruby_interpreter, const QString& ch
tty_ = new STTY(config_dbgTerminal_, Settings::terminalEmulatorName( *kapp->config() ));
if (!config_dbgTerminal_)
{
- connect( tty_, SIGNAL(OutOutput(const char*)), SIGNAL(ttyStdout(const char*)) );
- connect( tty_, SIGNAL(ErrOutput(const char*)), SIGNAL(ttyStderr(const char*)) );
+ connect( tty_, TQT_SIGNAL(OutOutput(const char*)), TQT_SIGNAL(ttyStdout(const char*)) );
+ connect( tty_, TQT_SIGNAL(ErrOutput(const char*)), TQT_SIGNAL(ttyStderr(const char*)) );
}
- QString tty(tty_->getSlave());
+ TQString tty(tty_->getSlave());
if (tty.isEmpty())
{
KMessageBox::error(0, i18n("The ruby debugger cannot use the tty* or pty* devices.\n"
@@ -716,17 +716,17 @@ void RDBController::slotStart(const QString& ruby_interpreter, const QString& ch
dbgProcess_ = new KProcess;
- connect( dbgProcess_, SIGNAL(receivedStdout(KProcess *, char *, int)),
- this, SLOT(slotDbgStdout(KProcess *, char *, int)) );
+ connect( dbgProcess_, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)),
+ this, TQT_SLOT(slotDbgStdout(KProcess *, char *, int)) );
- connect( dbgProcess_, SIGNAL(receivedStderr(KProcess *, char *, int)),
- this, SLOT(slotDbgStderr(KProcess *, char *, int)) );
+ connect( dbgProcess_, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)),
+ this, TQT_SLOT(slotDbgStderr(KProcess *, char *, int)) );
- connect( dbgProcess_, SIGNAL(wroteStdin(KProcess *)),
- this, SLOT(slotDbgWroteStdin(KProcess *)) );
+ connect( dbgProcess_, TQT_SIGNAL(wroteStdin(KProcess *)),
+ this, TQT_SLOT(slotDbgWroteStdin(KProcess *)) );
- connect( dbgProcess_, SIGNAL(processExited(KProcess*)),
- this, SLOT(slotDbgProcessExited(KProcess*)) );
+ connect( dbgProcess_, TQT_SIGNAL(processExited(KProcess*)),
+ this, TQT_SLOT(slotDbgProcessExited(KProcess*)) );
rubyInterpreter_ = ruby_interpreter;
characterCoding_ = character_coding;
@@ -739,7 +739,7 @@ void RDBController::slotStart(const QString& ruby_interpreter, const QString& ch
*dbgProcess_ << ruby_interpreter;
*dbgProcess_ << character_coding;
- *dbgProcess_ << "-C" << QString(QFile::encodeName( run_directory ));
+ *dbgProcess_ << "-C" << TQString(TQFile::encodeName( run_directory ));
*dbgProcess_ << "-r" << debuggee_path;
*dbgProcess_ << application;
@@ -747,8 +747,8 @@ void RDBController::slotStart(const QString& ruby_interpreter, const QString& ch
*dbgProcess_ << run_arguments;
}
- emit rdbStdout(QString( ruby_interpreter + " " + character_coding
- + " -C " + QString(QFile::encodeName( run_directory ))
+ emit rdbStdout(TQString( ruby_interpreter + " " + character_coding
+ + " -C " + TQString(TQFile::encodeName( run_directory ))
+ " -r " + debuggee_path + " "
+ application + " " + run_arguments ).latin1() );
@@ -766,9 +766,9 @@ void RDBController::slotStart(const QString& ruby_interpreter, const QString& ch
// BUT the app hasn't been started yet! A run command is about to be issued
// by whoever is controlling us.
- if (!dbgProcess_->writeStdin(QString("%1\n").arg(unixSocketPath_).latin1(), strlen(unixSocketPath_) + 1)) {
+ if (!dbgProcess_->writeStdin(TQString("%1\n").arg(unixSocketPath_).latin1(), strlen(unixSocketPath_) + 1)) {
kdDebug(9012) << "failed to write Unix domain socket path to rdb "
- << QString("%1\n").arg(unixSocketPath_).latin1() << endl;
+ << TQString("%1\n").arg(unixSocketPath_).latin1() << endl;
}
setStateOff(s_programExited);
@@ -785,8 +785,8 @@ void RDBController::slotStopDebugger()
setStateOn(s_shuttingDown|s_silent);
destroyCmds();
- QTime start;
- QTime now;
+ TQTime start;
+ TQTime now;
// Get rdb's attention if it's busy. We need rdb to be at the
// command line so we can stop it.
@@ -794,11 +794,11 @@ void RDBController::slotStopDebugger()
{
kdDebug(9012) << "ruby debugger busy on shutdown - stopping rdb (SIGINT)" << endl;
dbgProcess_->kill(SIGINT);
- start = QTime::currentTime();
+ start = TQTime::currentTime();
while (-1)
{
kapp->processEvents(20);
- now = QTime::currentTime();
+ now = TQTime::currentTime();
if (!stateIsOn(s_appBusy) || start.msecsTo( now ) > 2000)
break;
}
@@ -813,11 +813,11 @@ void RDBController::slotStopDebugger()
kdDebug(9012) << "failed to write 'quit' to ruby debugger" << endl;
emit rdbStdout("(rdb:1) quit");
- start = QTime::currentTime();
+ start = TQTime::currentTime();
while (-1)
{
kapp->processEvents(20);
- now = QTime::currentTime();
+ now = TQTime::currentTime();
if (stateIsOn(s_programExited) || start.msecsTo( now ) > 2000)
break;
}
@@ -858,17 +858,17 @@ void RDBController::slotRun()
// **************************************************************************
-void RDBController::slotRunUntil(const QString &fileName, int lineNum)
+void RDBController::slotRunUntil(const TQString &fileName, int lineNum)
{
if (stateIsOn(s_appBusy|s_dbgNotStarted|s_shuttingDown))
return;
if (fileName.isEmpty())
- queueCmd(new RDBCommand( QCString().sprintf("break %d", lineNum),
+ queueCmd(new RDBCommand( TQCString().sprintf("break %d", lineNum),
RUNCMD, NOTINFOCMD));
else
queueCmd(new RDBCommand(
- QCString().sprintf("break %s:%d", fileName.latin1(), lineNum),
+ TQCString().sprintf("break %s:%d", fileName.latin1(), lineNum),
RUNCMD, NOTINFOCMD));
queueCmd(new RDBCommand("cont", RUNCMD, NOTINFOCMD));
@@ -1014,7 +1014,7 @@ void RDBController::slotClearAllBreakpoints()
// **************************************************************************
-void RDBController::slotSelectFrame(int frameNo, int threadNo, const QString& frameName)
+void RDBController::slotSelectFrame(int frameNo, int threadNo, const TQString& frameName)
{
if (stateIsOn(s_appBusy|s_dbgNotStarted|s_shuttingDown)) {
kdDebug(9012) << "RDBController::slotSelectFrame wrong state" << endl;
@@ -1023,19 +1023,19 @@ void RDBController::slotSelectFrame(int frameNo, int threadNo, const QString& fr
if (viewedThread_ != threadNo) {
// Note that 'thread switch nnn' is a run command
- queueCmd(new RDBCommand(QCString().sprintf("thread switch %d",
+ queueCmd(new RDBCommand(TQCString().sprintf("thread switch %d",
threadNo), RUNCMD, INFOCMD));
executeCmd();
return;
}
if (frameNo > currentFrame_) {
- queueCmd(new RDBCommand(QCString().sprintf("up %d", frameNo - currentFrame_), NOTRUNCMD, INFOCMD));
+ queueCmd(new RDBCommand(TQCString().sprintf("up %d", frameNo - currentFrame_), NOTRUNCMD, INFOCMD));
if (!stateIsOn(s_fetchLocals)) {
queueCmd(new RDBCommand("display", NOTRUNCMD, INFOCMD));
}
} else if (frameNo < currentFrame_) {
- queueCmd(new RDBCommand(QCString().sprintf("down %d", currentFrame_ - frameNo), NOTRUNCMD, INFOCMD));
+ queueCmd(new RDBCommand(TQCString().sprintf("down %d", currentFrame_ - frameNo), NOTRUNCMD, INFOCMD));
if (!stateIsOn(s_fetchLocals)) {
queueCmd(new RDBCommand("display", NOTRUNCMD, INFOCMD));
}
@@ -1080,7 +1080,7 @@ void RDBController::slotSelectFrame(int frameNo, int threadNo, const QString& fr
// **************************************************************************
// This is called when an item needs special processing to show a value.
-void RDBController::slotExpandItem(VarItem *item, const QCString &userRequest)
+void RDBController::slotExpandItem(VarItem *item, const TQCString &userRequest)
{
if (stateIsOn(s_appBusy|s_dbgNotStarted|s_shuttingDown))
return;
@@ -1091,7 +1091,7 @@ void RDBController::slotExpandItem(VarItem *item, const QCString &userRequest)
if (userRequest.isEmpty())
return;
- queueCmd(new RDBItemCommand(item, QCString("pp ") + userRequest.data(), false));
+ queueCmd(new RDBItemCommand(item, TQCString("pp ") + userRequest.data(), false));
if (currentCmd_ == 0) {
executeCmd();
@@ -1101,9 +1101,9 @@ void RDBController::slotExpandItem(VarItem *item, const QCString &userRequest)
// **************************************************************************
// This method evaluates text selected with the 'Inspect:' context menu
-void RDBController::slotRubyInspect(const QString &inspectText)
+void RDBController::slotRubyInspect(const TQString &inspectText)
{
- queueCmd(new RDBCommand( QCString().sprintf("p %s", inspectText.latin1()),
+ queueCmd(new RDBCommand( TQCString().sprintf("p %s", inspectText.latin1()),
NOTRUNCMD,
INFOCMD ), true );
executeCmd();
@@ -1113,9 +1113,9 @@ void RDBController::slotRubyInspect(const QString &inspectText)
// **************************************************************************
// Add a new expression to be displayed in the Watch variable tree
-void RDBController::slotAddWatchExpression(const QString& expr, bool execute)
+void RDBController::slotAddWatchExpression(const TQString& expr, bool execute)
{
- queueCmd(new RDBCommand( QCString().sprintf("display %s", expr.latin1()),
+ queueCmd(new RDBCommand( TQCString().sprintf("display %s", expr.latin1()),
NOTRUNCMD,
NOTINFOCMD ) );
if (execute) {
@@ -1128,7 +1128,7 @@ void RDBController::slotAddWatchExpression(const QString& expr, bool execute)
// Add a new expression to be displayed in the Watch variable tree
void RDBController::slotRemoveWatchExpression(int displayId)
{
- queueCmd(new RDBCommand( QCString().sprintf("undisplay %d", displayId),
+ queueCmd(new RDBCommand( TQCString().sprintf("undisplay %d", displayId),
NOTRUNCMD,
INFOCMD ) );
executeCmd();
@@ -1156,7 +1156,7 @@ void RDBController::slotFetchGlobals(bool fetch)
// Data from the ruby program's stdout gets processed here.
void RDBController::slotDbgStdout(KProcess *, char *buf, int buflen)
{
- QCString msg(buf, buflen+1);
+ TQCString msg(buf, buflen+1);
emit ttyStdout(msg);
}
@@ -1165,7 +1165,7 @@ void RDBController::slotDbgStdout(KProcess *, char *buf, int buflen)
// Data from the ruby program's stderr gets processed here.
void RDBController::slotDbgStderr(KProcess *, char *buf, int buflen)
{
- QCString msg(buf, buflen+1);
+ TQCString msg(buf, buflen+1);
emit ttyStderr(msg);
}
@@ -1198,9 +1198,9 @@ void RDBController::slotAcceptConnection(int masterSocket)
kdDebug(9012) << "RDBController::slotAcceptConnection can't set nonblocking socket " << errno << endl;
}
- socketNotifier_ = new QSocketNotifier(socket_, QSocketNotifier::Read, 0);
- QObject::connect( socketNotifier_, SIGNAL(activated(int)),
- this, SLOT(slotReadFromSocket(int)) );
+ socketNotifier_ = new TQSocketNotifier(socket_, TQSocketNotifier::Read, 0);
+ TQObject::connect( socketNotifier_, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotReadFromSocket(int)) );
setStateOff(s_dbgNotStarted);
emit dbgStatus ("", state_);
@@ -1245,7 +1245,7 @@ void RDBController::slotReadFromSocket(int socket)
// kdDebug(9012) << "RDBController::slotReadFromSocket length: " << rdbOutputLen_ << " input: " << rdbOutput_ << endl;
- QRegExp prompt_re("(\\(rdb:(\\d+)\\) )$");
+ TQRegExp prompt_re("(\\(rdb:(\\d+)\\) )$");
int promptPos = prompt_re.search(rdbOutput_, 0);
// Keep appending output to the rbdOutput_ buffer until the
@@ -1303,54 +1303,54 @@ void RDBController::slotDbgProcessExited(KProcess*)
// Takes abbreviated commands and expands them, before passing them on to rdb
//
-void RDBController::slotUserRDBCmd(const QString& cmd)
+void RDBController::slotUserRDBCmd(const TQString& cmd)
{
kdDebug(9012) << "Requested user cmd: " << cmd << endl;
- QRegExp break_re("^b(reak)?(\\s.*)?");
- QRegExp watch_re("^wat(ch)?\\s+(.*)");
- QRegExp delete_re("^del(ete)?(\\s.*)?");
- QRegExp display_re("^disp(lay)?(\\s.*)?");
- QRegExp undisplay_re("^undisp(lay)?(\\s.*)?");
- QRegExp step_re("^s(tep)?(\\s[\\d]+)?$");
- QRegExp next_re("^n(ext)?(\\s[\\d]+)?$");
- QRegExp varlocal_re("^v(ar)?\\s+l(ocal)?");
- QRegExp varglobal_re("^v(ar)?\\s+g(lobal)?");
- QRegExp varinstance_re("^v(ar)?\\s+i(nstance)?\\s(.*)");
- QRegExp varconst_re("^v(ar)?\\s+c(onst)?\\s(.*)");
- QRegExp threadlist_re("^th(read)?\\s+l(ist)?");
- QRegExp threadcurrent_re("^th(read)?(\\sc(ur(rent)?)?)?$");
- QRegExp threadswitch_re("^th(read)?(\\ssw(itch)?)?(\\s.*)");
- QRegExp thread_re("^th(read)?(\\s+.*)?");
- QRegExp methodinstance_re("^m(ethod)?\\s+i(nstance)?\\s+(.*)");
- QRegExp method_re("^m(ethod)?\\s+(.*)");
- QRegExp list_re("^l(ist)?(\\s+\\d+-\\d+)?$");
+ TQRegExp break_re("^b(reak)?(\\s.*)?");
+ TQRegExp watch_re("^wat(ch)?\\s+(.*)");
+ TQRegExp delete_re("^del(ete)?(\\s.*)?");
+ TQRegExp display_re("^disp(lay)?(\\s.*)?");
+ TQRegExp undisplay_re("^undisp(lay)?(\\s.*)?");
+ TQRegExp step_re("^s(tep)?(\\s[\\d]+)?$");
+ TQRegExp next_re("^n(ext)?(\\s[\\d]+)?$");
+ TQRegExp varlocal_re("^v(ar)?\\s+l(ocal)?");
+ TQRegExp varglobal_re("^v(ar)?\\s+g(lobal)?");
+ TQRegExp varinstance_re("^v(ar)?\\s+i(nstance)?\\s(.*)");
+ TQRegExp varconst_re("^v(ar)?\\s+c(onst)?\\s(.*)");
+ TQRegExp threadlist_re("^th(read)?\\s+l(ist)?");
+ TQRegExp threadcurrent_re("^th(read)?(\\sc(ur(rent)?)?)?$");
+ TQRegExp threadswitch_re("^th(read)?(\\ssw(itch)?)?(\\s.*)");
+ TQRegExp thread_re("^th(read)?(\\s+.*)?");
+ TQRegExp methodinstance_re("^m(ethod)?\\s+i(nstance)?\\s+(.*)");
+ TQRegExp method_re("^m(ethod)?\\s+(.*)");
+ TQRegExp list_re("^l(ist)?(\\s+\\d+-\\d+)?$");
if ( break_re.search(cmd) >= 0 ) {
- queueCmd(new RDBCommand( QCString().sprintf("break%s", break_re.cap(2).latin1()),
+ queueCmd(new RDBCommand( TQCString().sprintf("break%s", break_re.cap(2).latin1()),
NOTRUNCMD,
INFOCMD ), true );
} else if ( watch_re.search(cmd) >= 0 ) {
- queueCmd(new RDBCommand( QCString().sprintf("watch %s", watch_re.cap(2).latin1()),
+ queueCmd(new RDBCommand( TQCString().sprintf("watch %s", watch_re.cap(2).latin1()),
NOTRUNCMD,
INFOCMD ), true );
} else if ( delete_re.search(cmd) >= 0 ) {
- queueCmd(new RDBCommand( QCString().sprintf("delete%s", delete_re.cap(2).latin1()),
+ queueCmd(new RDBCommand( TQCString().sprintf("delete%s", delete_re.cap(2).latin1()),
NOTRUNCMD,
INFOCMD ), true );
} else if ( display_re.search(cmd) >= 0 ) {
- queueCmd(new RDBCommand( QCString().sprintf("display%s", display_re.cap(2).latin1()),
+ queueCmd(new RDBCommand( TQCString().sprintf("display%s", display_re.cap(2).latin1()),
NOTRUNCMD,
INFOCMD ), true );
} else if ( undisplay_re.search(cmd) >= 0 ) {
- queueCmd(new RDBCommand( QCString().sprintf("undisplay%s", undisplay_re.cap(2).latin1()),
+ queueCmd(new RDBCommand( TQCString().sprintf("undisplay%s", undisplay_re.cap(2).latin1()),
NOTRUNCMD,
INFOCMD ), true );
} else if ( step_re.search(cmd) >= 0 ) {
- queueCmd(new RDBCommand( QCString().sprintf("step%s", step_re.cap(2).latin1()),
+ queueCmd(new RDBCommand( TQCString().sprintf("step%s", step_re.cap(2).latin1()),
RUNCMD,
INFOCMD ), true );
} else if ( next_re.search(cmd) >= 0 ) {
- queueCmd(new RDBCommand( QCString().sprintf("next%s", next_re.cap(2).latin1()),
+ queueCmd(new RDBCommand( TQCString().sprintf("next%s", next_re.cap(2).latin1()),
RUNCMD,
INFOCMD ), true );
} else if ( varlocal_re.search(cmd) >= 0 ) {
@@ -1358,23 +1358,23 @@ void RDBController::slotUserRDBCmd(const QString& cmd)
} else if ( varglobal_re.search(cmd) >= 0 ) {
queueCmd(new RDBCommand("var global", NOTRUNCMD, INFOCMD));
} else if ( varinstance_re.search(cmd) >= 0 ) {
- queueCmd(new RDBCommand( QCString().sprintf("var instance %s", varinstance_re.cap(3).latin1()),
+ queueCmd(new RDBCommand( TQCString().sprintf("var instance %s", varinstance_re.cap(3).latin1()),
NOTRUNCMD,
INFOCMD ), true );
} else if ( varconst_re.search(cmd) >= 0 ) {
- queueCmd(new RDBCommand( QCString().sprintf("var const %s", varconst_re.cap(3).latin1()),
+ queueCmd(new RDBCommand( TQCString().sprintf("var const %s", varconst_re.cap(3).latin1()),
NOTRUNCMD,
INFOCMD ), true );
} else if ( methodinstance_re.search(cmd) >= 0 ) {
- queueCmd(new RDBCommand( QCString().sprintf("method instance %s", methodinstance_re.cap(3).latin1()),
+ queueCmd(new RDBCommand( TQCString().sprintf("method instance %s", methodinstance_re.cap(3).latin1()),
NOTRUNCMD,
INFOCMD ), true );
} else if ( method_re.search(cmd) >= 0 ) {
- queueCmd(new RDBCommand( QCString().sprintf("method %s", method_re.cap(2).latin1()),
+ queueCmd(new RDBCommand( TQCString().sprintf("method %s", method_re.cap(2).latin1()),
NOTRUNCMD,
INFOCMD ), true );
} else if ( list_re.search(cmd) >= 0 ) {
- queueCmd(new RDBCommand( QCString().sprintf("list%s", list_re.cap(2).latin1()),
+ queueCmd(new RDBCommand( TQCString().sprintf("list%s", list_re.cap(2).latin1()),
NOTRUNCMD,
INFOCMD ), true );
} else if (cmd == "c" || cmd == "cont") {
@@ -1386,11 +1386,11 @@ void RDBController::slotUserRDBCmd(const QString& cmd)
} else if ( threadcurrent_re.search(cmd) >= 0 ) {
queueCmd(new RDBCommand("thread current", NOTRUNCMD, INFOCMD), true );
} else if ( threadswitch_re.search(cmd) >= 0 ) {
- queueCmd(new RDBCommand( QCString().sprintf("thread switch%s", threadswitch_re.cap(4).latin1()),
+ queueCmd(new RDBCommand( TQCString().sprintf("thread switch%s", threadswitch_re.cap(4).latin1()),
RUNCMD,
INFOCMD ), true );
} else if ( thread_re.search(cmd) >= 0 ) {
- queueCmd(new RDBCommand( QCString().sprintf("thread%s", thread_re.cap(2).latin1()),
+ queueCmd(new RDBCommand( TQCString().sprintf("thread%s", thread_re.cap(2).latin1()),
NOTRUNCMD,
INFOCMD ), true );
} else if (cmd == "frame" || cmd == "f" || cmd == "where" || cmd == "w") {
diff --git a/languages/ruby/debugger/rdbcontroller.h b/languages/ruby/debugger/rdbcontroller.h
index 2d303218..e2ed0746 100644
--- a/languages/ruby/debugger/rdbcontroller.h
+++ b/languages/ruby/debugger/rdbcontroller.h
@@ -29,12 +29,12 @@
#include "dbgcontroller.h"
-#include <qcstring.h>
-#include <qdom.h>
-#include <qobject.h>
-#include <qptrlist.h>
-#include <qstring.h>
-#include <qsocketnotifier.h>
+#include <tqcstring.h>
+#include <tqdom.h>
+#include <tqobject.h>
+#include <tqptrlist.h>
+#include <tqstring.h>
+#include <tqsocketnotifier.h>
class KProcess;
@@ -58,7 +58,7 @@ class RDBController : public DbgController
Q_OBJECT
public:
- RDBController(VariableTree *varTree, FramestackWidget *frameStack, QDomDocument &projectDom);
+ RDBController(VariableTree *varTree, FramestackWidget *frameStack, TQDomDocument &projectDom);
~RDBController();
protected:
@@ -84,11 +84,11 @@ private:
void executeCmd ();
void destroyCmds();
void removeInfoRequests();
- void actOnProgramPause(const QString &msg);
- void programNoApp(const QString &msg, bool msgBox);
+ void actOnProgramPause(const TQString &msg);
+ void programNoApp(const TQString &msg, bool msgBox);
- void setBreakpoint(const QCString &BPSetCmd, int key);
- void clearBreakpoint(const QCString &BPClearCmd);
+ void setBreakpoint(const TQCString &BPSetCmd, int key);
+ void clearBreakpoint(const TQCString &BPClearCmd);
void modifyBreakpoint(const Breakpoint&);
void setStateOn(int stateOn) { state_ |= stateOn; }
@@ -98,16 +98,16 @@ private:
public slots:
void configure();
- void slotStart( const QString& shell, const QString& characterCoding,
- const QString& run_directory, const QString& debuggee_path,
- const QString &application, const QString& run_arguments,
+ void slotStart( const TQString& shell, const TQString& characterCoding,
+ const TQString& run_directory, const TQString& debuggee_path,
+ const TQString &application, const TQString& run_arguments,
bool show_constants, bool trace_into_ruby );
- //void slotStart(const QString& shell, const QString &application);
+ //void slotStart(const TQString& shell, const TQString &application);
void slotStopDebugger();
void slotRun();
- void slotRunUntil(const QString &filename, int lineNum);
+ void slotRunUntil(const TQString &filename, int lineNum);
void slotStepInto();
void slotStepOver();
void slotStepOutOff();
@@ -116,14 +116,14 @@ public slots:
void slotBPState( const Breakpoint& );
void slotClearAllBreakpoints();
- void slotExpandItem(VarItem *parent, const QCString &userRequest);
- void slotRubyInspect(const QString &inspectText);
- void slotSelectFrame(int frameNo, int threadNo, const QString& frameName);
+ void slotExpandItem(VarItem *parent, const TQCString &userRequest);
+ void slotRubyInspect(const TQString &inspectText);
+ void slotSelectFrame(int frameNo, int threadNo, const TQString& frameName);
void slotFetchGlobals(bool fetch);
- void slotAddWatchExpression(const QString& expr, bool execute);
+ void slotAddWatchExpression(const TQString& expr, bool execute);
void slotRemoveWatchExpression(int displayId);
- void slotUserRDBCmd(const QString&);
+ void slotUserRDBCmd(const TQString&);
protected slots:
void slotDbgStdout(KProcess *proc, char *buf, int buflen);
@@ -137,7 +137,7 @@ protected slots:
signals:
void acceptPendingBPs ();
void unableToSetBPNow (int BPNo);
- void addWatchExpression (const QString&);
+ void addWatchExpression (const TQString&);
private:
FramestackWidget* frameStack_;
@@ -149,31 +149,31 @@ private:
// from the ruby program
int stdoutOutputLen_; // amount of data in the output buffer
char* stdoutOutput_; // buffer for the output from kprocess
- QCString holdingZone_;
+ TQCString holdingZone_;
int rdbSizeofBuf_; // size of the output buffer from rdb
int rdbOutputLen_; // amount of data in the rdb buffer
char* rdbOutput_; // buffer for the output from rdb via the Unix socket
int masterSocket_; // The socket to accept connections
- QSocketNotifier* acceptNotifier_;
- static QCString unixSocketPath_; // The name of the Unix Domain socket
+ TQSocketNotifier* acceptNotifier_;
+ static TQCString unixSocketPath_; // The name of the Unix Domain socket
int socket_; // The socket to read and write to the debuggee
- QSocketNotifier* socketNotifier_;
+ TQSocketNotifier* socketNotifier_;
- QPtrList<DbgCommand> cmdList_;
+ TQPtrList<DbgCommand> cmdList_;
DbgCommand* currentCmd_;
- QString currentPrompt_;
+ TQString currentPrompt_;
STTY* tty_;
// Details for starting the ruby debugger process
- QString rubyInterpreter_;
- QString characterCoding_;
- QString runDirectory_;
- QString debuggeePath_;
- QString application_;
- QString runArguments_;
+ TQString rubyInterpreter_;
+ TQString characterCoding_;
+ TQString runDirectory_;
+ TQString debuggeePath_;
+ TQString application_;
+ TQString runArguments_;
bool showConstants_;
bool traceIntoRuby_;
@@ -182,7 +182,7 @@ private:
bool programHasExited_;
// Configuration values
- QDomDocument &dom;
+ TQDomDocument &dom;
bool config_forceBPSet_;
bool config_dbgTerminal_;
};
diff --git a/languages/ruby/debugger/rdboutputwidget.cpp b/languages/ruby/debugger/rdboutputwidget.cpp
index 5e08e116..6eef01c7 100644
--- a/languages/ruby/debugger/rdboutputwidget.cpp
+++ b/languages/ruby/debugger/rdboutputwidget.cpp
@@ -29,11 +29,11 @@
#include <kiconloader.h>
#include <klocale.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qtextedit.h>
-#include <qtoolbutton.h>
-#include <qtooltip.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqtextedit.h>
+#include <tqtoolbutton.h>
+#include <tqtooltip.h>
/***************************************************************************/
/***************************************************************************/
@@ -44,45 +44,45 @@ namespace RDBDebugger
/***************************************************************************/
-RDBOutputWidget::RDBOutputWidget( QWidget *parent, const char *name) :
- QWidget(parent, name),
+RDBOutputWidget::RDBOutputWidget( TQWidget *parent, const char *name) :
+ TQWidget(parent, name),
m_userRDBCmdEditor(0),
m_Interrupt(0),
m_rdbView(0)
{
- m_rdbView = new QTextEdit (this, name);
+ m_rdbView = new TQTextEdit (this, name);
m_rdbView->setReadOnly(true);
- QBoxLayout *userRDBCmdEntry = new QHBoxLayout();
+ TQBoxLayout *userRDBCmdEntry = new TQHBoxLayout();
m_userRDBCmdEditor = new KHistoryCombo (this, "rdb-user-cmd-editor");
- QLabel *label = new QLabel(i18n("&RDB cmd:"), this);
+ TQLabel *label = new TQLabel(i18n("&RDB cmd:"), this);
label->setBuddy(m_userRDBCmdEditor);
userRDBCmdEntry->addWidget(label);
userRDBCmdEntry->addWidget(m_userRDBCmdEditor);
userRDBCmdEntry->setStretchFactor(m_userRDBCmdEditor, 1);
- m_Interrupt = new QToolButton( this, "add breakpoint" );
- m_Interrupt->setSizePolicy ( QSizePolicy ( (QSizePolicy::SizeType)0,
- ( QSizePolicy::SizeType)0,
+ m_Interrupt = new TQToolButton( this, "add breakpoint" );
+ m_Interrupt->setSizePolicy ( TQSizePolicy ( (TQSizePolicy::SizeType)0,
+ ( TQSizePolicy::SizeType)0,
0,
0,
m_Interrupt->sizePolicy().hasHeightForWidth())
);
m_Interrupt->setPixmap ( SmallIcon ( "player_pause" ) );
userRDBCmdEntry->addWidget(m_Interrupt);
- QToolTip::add ( m_Interrupt, i18n ( "Pause execution of the app to enter rdb commands" ) );
+ TQToolTip::add ( m_Interrupt, i18n ( "Pause execution of the app to enter rdb commands" ) );
- QVBoxLayout *topLayout = new QVBoxLayout(this, 2);
+ TQVBoxLayout *topLayout = new TQVBoxLayout(this, 2);
topLayout->addWidget(m_rdbView, 10);
topLayout->addLayout(userRDBCmdEntry);
slotDbgStatus( "", s_dbgNotStarted);
- connect( m_userRDBCmdEditor, SIGNAL(returnPressed()), SLOT(slotRDBCmd()) );
- connect( m_Interrupt, SIGNAL(clicked()), SIGNAL(breakInto()));
+ connect( m_userRDBCmdEditor, TQT_SIGNAL(returnPressed()), TQT_SLOT(slotRDBCmd()) );
+ connect( m_Interrupt, TQT_SIGNAL(clicked()), TQT_SIGNAL(breakInto()));
}
/***************************************************************************/
@@ -106,7 +106,7 @@ void RDBOutputWidget::clear()
void RDBOutputWidget::slotReceivedStdout(const char* line)
{
if (strncmp(line, "(rdb:", 5) == 0)
- m_rdbView->append(QString("<font color=\"blue\">").append( line ).append("</font>") );
+ m_rdbView->append(TQString("<font color=\"blue\">").append( line ).append("</font>") );
else
m_rdbView->append(line);
}
@@ -115,14 +115,14 @@ void RDBOutputWidget::slotReceivedStdout(const char* line)
void RDBOutputWidget::slotReceivedStderr(const char* line)
{
- m_rdbView->append(QString("<font color=\"red\">").append( line ).append("</font>") );
+ m_rdbView->append(TQString("<font color=\"red\">").append( line ).append("</font>") );
}
/***************************************************************************/
void RDBOutputWidget::slotRDBCmd()
{
- QString RDBCmd(m_userRDBCmdEditor->currentText());
+ TQString RDBCmd(m_userRDBCmdEditor->currentText());
if (!RDBCmd.isEmpty())
{
m_userRDBCmdEditor->addToHistory(RDBCmd);
@@ -133,7 +133,7 @@ void RDBOutputWidget::slotRDBCmd()
/***************************************************************************/
-void RDBOutputWidget::slotDbgStatus(const QString &, int statusFlag)
+void RDBOutputWidget::slotDbgStatus(const TQString &, int statusFlag)
{
if (statusFlag & s_dbgNotStarted)
{
@@ -156,7 +156,7 @@ void RDBOutputWidget::slotDbgStatus(const QString &, int statusFlag)
/***************************************************************************/
-void RDBOutputWidget::focusInEvent(QFocusEvent */*e*/)
+void RDBOutputWidget::focusInEvent(TQFocusEvent */*e*/)
{
m_userRDBCmdEditor->setFocus();
}
diff --git a/languages/ruby/debugger/rdboutputwidget.h b/languages/ruby/debugger/rdboutputwidget.h
index ef466757..051c65bb 100644
--- a/languages/ruby/debugger/rdboutputwidget.h
+++ b/languages/ruby/debugger/rdboutputwidget.h
@@ -24,7 +24,7 @@
#ifndef _RDBOUTPUTWIDGET_H_
#define _RDBOUTPUTWIDGET_H_
-#include <qwidget.h>
+#include <tqwidget.h>
class KHistoryCombo;
@@ -39,7 +39,7 @@ class RDBOutputWidget : public QWidget
Q_OBJECT
public:
- RDBOutputWidget( QWidget *parent=0, const char *name=0 );
+ RDBOutputWidget( TQWidget *parent=0, const char *name=0 );
~RDBOutputWidget();
void clear();
@@ -47,21 +47,21 @@ public:
public slots:
void slotReceivedStdout(const char* line);
void slotReceivedStderr(const char* line);
- void slotDbgStatus (const QString &status, int statusFlag);
+ void slotDbgStatus (const TQString &status, int statusFlag);
void slotRDBCmd();
protected:
- virtual void focusInEvent(QFocusEvent *e);
+ virtual void focusInEvent(TQFocusEvent *e);
signals:
- void userRDBCmd(const QString &cmd);
+ void userRDBCmd(const TQString &cmd);
void breakInto();
private:
KHistoryCombo* m_userRDBCmdEditor;
- QToolButton* m_Interrupt;
- QTextEdit* m_rdbView;
+ TQToolButton* m_Interrupt;
+ TQTextEdit* m_rdbView;
};
}
diff --git a/languages/ruby/debugger/rdbparser.cpp b/languages/ruby/debugger/rdbparser.cpp
index 7792acc5..c1cd7717 100644
--- a/languages/ruby/debugger/rdbparser.cpp
+++ b/languages/ruby/debugger/rdbparser.cpp
@@ -22,7 +22,7 @@
#include "rdbparser.h"
#include "variablewidget.h"
-#include <qregexp.h>
+#include <tqregexp.h>
#include <ctype.h>
#include <stdlib.h>
@@ -51,9 +51,9 @@ void RDBParser::parseVariables(LazyFetchItem *parent, char *buf)
buf = (char*)unknown;
}
- QRegExp var_re("\\s*([^\\n\\s]+) => ([^\\n]+)");
- QRegExp ref_re("(#<([^:]|::)+:0x[\\da-f]+)\\s*([^=]*)>?");
- QRegExp struct_re("#<struct Struct::(\\w+)");
+ TQRegExp var_re("\\s*([^\\n\\s]+) => ([^\\n]+)");
+ TQRegExp ref_re("(#<([^:]|::)+:0x[\\da-f]+)\\s*([^=]*)>?");
+ TQRegExp struct_re("#<struct Struct::(\\w+)");
// Look for 'dataitem => value' pairs. For example:
// a => 1
@@ -71,7 +71,7 @@ void RDBParser::parseVariables(LazyFetchItem *parent, char *buf)
value = var_re.cap(2).latin1();
}
} else if (struct_re.search(var_re.cap(2)) != -1) {
- value = (QString("#<Struct::") + struct_re.cap(1) + ">").latin1();
+ value = (TQString("#<Struct::") + struct_re.cap(1) + ">").latin1();
} else {
value = var_re.cap(2).latin1();
}
@@ -100,7 +100,7 @@ void RDBParser::parseExpandedVariable(VarItem *parent, char *buf)
int pos;
QString varName;
QCString value;
- QRegExp ppref_re("(#<([^:]|::)+:0x[\\da-f]+)([^\\n>]*)(>?)");
+ TQRegExp ppref_re("(#<([^:]|::)+:0x[\\da-f]+)([^\\n>]*)(>?)");
switch (parent->dataType()) {
case REFERENCE_TYPE:
@@ -112,14 +112,14 @@ void RDBParser::parseExpandedVariable(VarItem *parent, char *buf)
// @sleeper=#<Thread:0x3008fd18 sleep>,
// @temp={"z"=>"zed", "p"=>"pee"}>
//
- QRegExp ppvalue_re("\\s*([^\\n\\s=]+)=([^\\n]+)[,>]");
+ TQRegExp ppvalue_re("\\s*([^\\n\\s=]+)=([^\\n]+)[,>]");
pos = ppref_re.search(buf);
if (pos != -1) {
if (ppref_re.cap(4) != "") {
// The value is all on one line, so match against name=value
// pairs which can't have commas in their values
- ppvalue_re = QRegExp("\\s*([^\\s=]+)=([^,>]+)([,>])");
+ ppvalue_re = TQRegExp("\\s*([^\\s=]+)=([^,>]+)([,>])");
}
pos = ppvalue_re.search(buf, pos);
@@ -156,7 +156,7 @@ void RDBParser::parseExpandedVariable(VarItem *parent, char *buf)
// [0]="hello"
// [1]=#"goodbye"
//
- QRegExp pparray_re("\\s*([^=]+)=([^\\n]+)\\n");
+ TQRegExp pparray_re("\\s*([^=]+)=([^\\n]+)\\n");
pos = pparray_re.search(buf);
@@ -186,7 +186,7 @@ void RDBParser::parseExpandedVariable(VarItem *parent, char *buf)
// ["greeting"]="hello"
// ["farewell"]="goodbye"
//
- QRegExp pphash_re("\\s*(\\[[^\\]]+\\])=([^\\n]+)\\n");
+ TQRegExp pphash_re("\\s*(\\[[^\\]]+\\])=([^\\n]+)\\n");
pos = pphash_re.search(buf);
while (pos != -1) {
@@ -211,8 +211,8 @@ void RDBParser::parseExpandedVariable(VarItem *parent, char *buf)
// @sleeper=#<Thread:0x3008fd18 sleep>,
// @temp={"z"=>"zed", "p"=>"pee"}>
//
- QRegExp ppstruct_re("(#<Struct::\\w+)\\s([^\\n>]*)(>?)");
- QRegExp ppvalue_re("\\s*([^\\n\\s=]+)=([^\\n]+)[,>]");
+ TQRegExp ppstruct_re("(#<Struct::\\w+)\\s([^\\n>]*)(>?)");
+ TQRegExp ppvalue_re("\\s*([^\\n\\s=]+)=([^\\n]+)[,>]");
pos = ppstruct_re.search(buf);
if (pos != -1) {
@@ -252,7 +252,7 @@ void RDBParser::parseExpandedVariable(VarItem *parent, char *buf)
// [0..11]=0x89504e470d0a1a0a0000000d
// [12..23]=0x494844520000001600000016
//
- QRegExp ppstring_re("\\s*(\\[[^\\]]+\\])=([^\\n]+)\\n");
+ TQRegExp ppstring_re("\\s*(\\[[^\\]]+\\])=([^\\n]+)\\n");
pos = ppstring_re.search(buf);
while (pos != -1) {
@@ -278,8 +278,8 @@ void RDBParser::parseExpandedVariable(VarItem *parent, char *buf)
// **************************************************************************
-void RDBParser::setItem(LazyFetchItem *parent, const QString &varName,
- DataType dataType, const QCString &value)
+void RDBParser::setItem(LazyFetchItem *parent, const TQString &varName,
+ DataType dataType, const TQCString &value)
{
VarItem *item = parent->findItem(varName);
if (item == 0) {
@@ -315,9 +315,9 @@ void RDBParser::setItem(LazyFetchItem *parent, const QString &varName,
DataType RDBParser::determineType(char *buf)
{
- QRegExp array_re("(Array \\(\\d+ element\\(s\\)\\))");
- QRegExp hash_re("(Hash \\(\\d+ element\\(s\\)\\))");
- QRegExp string_re("(String \\(length \\d+\\))");
+ TQRegExp array_re("(Array \\(\\d+ element\\(s\\)\\))");
+ TQRegExp hash_re("(Hash \\(\\d+ element\\(s\\)\\))");
+ TQRegExp string_re("(String \\(length \\d+\\))");
if (qstrncmp(buf, "#<struct", strlen("#<struct")) == 0) {
return STRUCT_TYPE;
diff --git a/languages/ruby/debugger/rdbparser.h b/languages/ruby/debugger/rdbparser.h
index 12bc937e..d57e25d7 100644
--- a/languages/ruby/debugger/rdbparser.h
+++ b/languages/ruby/debugger/rdbparser.h
@@ -32,8 +32,8 @@ namespace RDBParser
void parseVariables(LazyFetchItem *parent, char *buf);
void parseExpandedVariable(VarItem *parent, char *buf);
DataType determineType(char *buf);
- void setItem( LazyFetchItem *parent, const QString &varName,
- DataType dataType, const QCString &value );
+ void setItem( LazyFetchItem *parent, const TQString &varName,
+ DataType dataType, const TQCString &value );
}
}
diff --git a/languages/ruby/debugger/rdbtable.cpp b/languages/ruby/debugger/rdbtable.cpp
index 2f470b2d..31b7b6d2 100644
--- a/languages/ruby/debugger/rdbtable.cpp
+++ b/languages/ruby/debugger/rdbtable.cpp
@@ -18,13 +18,13 @@
namespace RDBDebugger {
-RDBTable::RDBTable(QWidget *parent, const char *name)
- : QTable(parent, name)
+RDBTable::RDBTable(TQWidget *parent, const char *name)
+ : TQTable(parent, name)
{
}
-RDBTable::RDBTable(int nr, int nc, QWidget * parent, const char * name)
- : QTable(nr, nc, parent, name)
+RDBTable::RDBTable(int nr, int nc, TQWidget * parent, const char * name)
+ : TQTable(nr, nc, parent, name)
{
}
@@ -32,7 +32,7 @@ RDBTable::~RDBTable()
{
}
-void RDBTable::keyPressEvent( QKeyEvent * e )
+void RDBTable::keyPressEvent( TQKeyEvent * e )
{
emit keyPressed(e->key());
@@ -40,12 +40,12 @@ void RDBTable::keyPressEvent( QKeyEvent * e )
emit returnPressed();
else if (e->key() == Key_F2)
emit f2Pressed();
- else if ((e->text() == QString("a")) && (e->state() == AltButton))
+ else if ((e->text() == TQString("a")) && (e->state() == AltButton))
{
emit insertPressed();
return;
}
- else if ((e->text() == QString("A")) && (e->state() == AltButton))
+ else if ((e->text() == TQString("A")) && (e->state() == AltButton))
{
emit insertPressed();
return;
@@ -53,7 +53,7 @@ void RDBTable::keyPressEvent( QKeyEvent * e )
else if (e->key() == Key_Delete)
emit deletePressed();
- QTable::keyPressEvent(e);
+ TQTable::keyPressEvent(e);
}
}
diff --git a/languages/ruby/debugger/rdbtable.h b/languages/ruby/debugger/rdbtable.h
index 04f47c2b..714605d0 100644
--- a/languages/ruby/debugger/rdbtable.h
+++ b/languages/ruby/debugger/rdbtable.h
@@ -16,7 +16,7 @@
#ifndef RDBDEBUGGERRDBTABLE_H
#define RDBDEBUGGERRDBTABLE_H
-#include <qtable.h>
+#include <tqtable.h>
namespace RDBDebugger {
@@ -24,11 +24,11 @@ class RDBTable : public QTable
{
Q_OBJECT
public:
- RDBTable(QWidget *parent = 0, const char *name = 0);
- RDBTable( int numRows, int numCols, QWidget * parent = 0, const char * name = 0 );
+ RDBTable(TQWidget *parent = 0, const char *name = 0);
+ RDBTable( int numRows, int numCols, TQWidget * parent = 0, const char * name = 0 );
~RDBTable();
- virtual void keyPressEvent ( QKeyEvent * e );
+ virtual void keyPressEvent ( TQKeyEvent * e );
signals:
void keyPressed(int key);
diff --git a/languages/ruby/debugger/stty.cpp b/languages/ruby/debugger/stty.cpp
index 44cb3795..4316da50 100644
--- a/languages/ruby/debugger/stty.cpp
+++ b/languages/ruby/debugger/stty.cpp
@@ -58,10 +58,10 @@
#include <bsdtty.h>
#endif
-#include <qintdict.h>
-#include <qsocketnotifier.h>
-#include <qstring.h>
-#include <qfile.h>
+#include <tqintdict.h>
+#include <tqsocketnotifier.h>
+#include <tqstring.h>
+#include <tqfile.h>
#include <klocale.h>
#include <kstandarddirs.h>
@@ -91,8 +91,8 @@ static int chownpty(int fd, int grant)
if (fd != PTY_FILENO && dup2(fd, PTY_FILENO) < 0)
::exit(1);
- QString path = locate("exe", BASE_CHOWN);
- execle(QFile::encodeName(path), BASE_CHOWN, grant?"--grant":"--revoke", (void *)0, NULL);
+ TQString path = locate("exe", BASE_CHOWN);
+ execle(TQFile::encodeName(path), BASE_CHOWN, grant?"--grant":"--revoke", (void *)0, NULL);
::exit(1); // should not be reached
}
if (pid > 0) {
@@ -117,8 +117,8 @@ static int chownpty(int fd, int grant)
// **************************************************************************
-STTY::STTY(bool ext, const QString &termAppName)
- : QObject(),
+STTY::STTY(bool ext, const TQString &termAppName)
+ : TQObject(),
out(0),
err(0),
ttySlave(""),
@@ -129,9 +129,9 @@ STTY::STTY(bool ext, const QString &termAppName)
} else {
fout = findTTY();
if (fout >= 0) {
- ttySlave = QString(tty_slave);
- out = new QSocketNotifier(fout, QSocketNotifier::Read, this);
- connect( out, SIGNAL(activated(int)), this, SLOT(OutReceived(int)) );
+ ttySlave = TQString(tty_slave);
+ out = new TQSocketNotifier(fout, TQSocketNotifier::Read, this);
+ connect( out, TQT_SIGNAL(activated(int)), this, TQT_SLOT(OutReceived(int)) );
}
}
}
@@ -270,9 +270,9 @@ void STTY::OutReceived(int f)
#define FIFO_FILE "/tmp/debug_tty.XXXXXX"
-bool STTY::findExternalTTY(const QString &termApp)
+bool STTY::findExternalTTY(const TQString &termApp)
{
- QString appName(termApp.isEmpty() ? QString("xterm") : termApp);
+ TQString appName(termApp.isEmpty() ? TQString("xterm") : termApp);
char fifo[] = FIFO_FILE;
int fifo_fd;
@@ -303,8 +303,8 @@ bool STTY::findExternalTTY(const QString &termApp)
*/
const char* prog = appName.latin1();
- QString script = QString("tty>") + QString(fifo) +
- QString(";" // fifo name
+ TQString script = TQString("tty>") + TQString(fifo) +
+ TQString(";" // fifo name
"trap \"\" INT QUIT TSTP;" // ignore various signals
"exec<&-;exec>&-;" // close stdin and stdout
"while :;do sleep 3600;done");
diff --git a/languages/ruby/debugger/stty.h b/languages/ruby/debugger/stty.h
index 31c8fbfe..4f42e650 100644
--- a/languages/ruby/debugger/stty.h
+++ b/languages/ruby/debugger/stty.h
@@ -27,8 +27,8 @@
class QSocketNotifier;
-#include <qobject.h>
-#include <qstring.h>
+#include <tqobject.h>
+#include <tqstring.h>
namespace RDBDebugger
{
@@ -38,10 +38,10 @@ class STTY : public QObject
Q_OBJECT
public:
- STTY(bool ext=false, const QString &termAppName=QString());
+ STTY(bool ext=false, const TQString &termAppName=TQString());
~STTY();
- QString getSlave() { return ttySlave; };
+ TQString getSlave() { return ttySlave; };
private slots:
void OutReceived(int);
@@ -52,14 +52,14 @@ signals:
private:
int findTTY();
- bool findExternalTTY(const QString &termApp);
+ bool findExternalTTY(const TQString &termApp);
private:
int fout;
int ferr;
- QSocketNotifier *out;
- QSocketNotifier *err;
- QString ttySlave;
+ TQSocketNotifier *out;
+ TQSocketNotifier *err;
+ TQString ttySlave;
int pid_;
char pty_master[50]; // "/dev/ptyxx" | "/dev/ptmx"
diff --git a/languages/ruby/debugger/variablewidget.cpp b/languages/ruby/debugger/variablewidget.cpp
index 0dbdce9a..fd323fd5 100644
--- a/languages/ruby/debugger/variablewidget.cpp
+++ b/languages/ruby/debugger/variablewidget.cpp
@@ -28,18 +28,18 @@
#include <klineedit.h>
#include <kdeversion.h>
-#include <qheader.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qhbox.h>
-#include <qpainter.h>
-#include <qpushbutton.h>
-#include <qregexp.h>
-#include <qcursor.h>
+#include <tqheader.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqhbox.h>
+#include <tqpainter.h>
+#include <tqpushbutton.h>
+#include <tqregexp.h>
+#include <tqcursor.h>
#include <klocale.h>
-#include <qpoint.h>
-#include <qclipboard.h>
+#include <tqpoint.h>
+#include <tqclipboard.h>
#include <kapplication.h>
// **************************************************************************
@@ -49,30 +49,30 @@
namespace RDBDebugger
{
-VariableWidget::VariableWidget(QWidget *parent, const char *name)
- : QWidget(parent, name)
+VariableWidget::VariableWidget(TQWidget *parent, const char *name)
+ : TQWidget(parent, name)
{
varTree_ = new VariableTree(this);
- QLabel *label = new QLabel(i18n("E&xpression to watch:"), this);
+ TQLabel *label = new TQLabel(i18n("E&xpression to watch:"), this);
- QHBox *watchEntry = new QHBox( this );
+ TQHBox *watchEntry = new TQHBox( this );
watchVarEditor_ = new KHistoryCombo( watchEntry, "var-to-watch editor");
label->setBuddy(watchVarEditor_);
- QPushButton *addButton = new QPushButton(i18n("&Add"), watchEntry );
+ TQPushButton *addButton = new TQPushButton(i18n("&Add"), watchEntry );
addButton->adjustSize();
addButton->setFixedWidth(addButton->width());
- QBoxLayout * vbox = new QVBoxLayout();
+ TQBoxLayout * vbox = new TQVBoxLayout();
vbox->addWidget( label );
vbox->addWidget( watchEntry );
- QVBoxLayout *topLayout = new QVBoxLayout(this, 2);
+ TQVBoxLayout *topLayout = new TQVBoxLayout(this, 2);
topLayout->addWidget(varTree_, 10);
topLayout->addLayout( vbox );
- connect( addButton, SIGNAL(clicked()), SLOT(slotAddWatchExpression()) );
- connect( watchVarEditor_, SIGNAL(returnPressed()), SLOT(slotAddWatchExpression()) );
+ connect( addButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotAddWatchExpression()) );
+ connect( watchVarEditor_, TQT_SIGNAL(returnPressed()), TQT_SLOT(slotAddWatchExpression()) );
}
@@ -80,7 +80,7 @@ VariableWidget::VariableWidget(QWidget *parent, const char *name)
void VariableWidget::setEnabled(bool bEnabled)
{
- QWidget::setEnabled(bEnabled);
+ TQWidget::setEnabled(bEnabled);
if (bEnabled && parentWidget() != 0) {
varTree_->setColumnWidth(0, parentWidget()->width()/2);
}
@@ -89,7 +89,7 @@ void VariableWidget::setEnabled(bool bEnabled)
void VariableWidget::slotAddWatchExpression()
{
- QString watchVar(watchVarEditor_->currentText());
+ TQString watchVar(watchVarEditor_->currentText());
if (!watchVar.isEmpty()) {
slotAddWatchExpression(watchVar);
}
@@ -97,7 +97,7 @@ void VariableWidget::slotAddWatchExpression()
// **************************************************************************
-void VariableWidget::slotAddWatchExpression(const QString &ident)
+void VariableWidget::slotAddWatchExpression(const TQString &ident)
{
if (!ident.isEmpty()) {
watchVarEditor_->addToHistory(ident);
@@ -108,17 +108,17 @@ void VariableWidget::slotAddWatchExpression(const QString &ident)
// **************************************************************************
-void VariableWidget::focusInEvent(QFocusEvent */*e*/)
+void VariableWidget::focusInEvent(TQFocusEvent */*e*/)
{
varTree_->setFocus();
}
-void VariableWidget::restorePartialProjectSession(const QDomElement* el)
+void VariableWidget::restorePartialProjectSession(const TQDomElement* el)
{
varTree_->watchRoot()->restorePartialProjectSession(el);
}
-void VariableWidget::savePartialProjectSession(QDomElement* el)
+void VariableWidget::savePartialProjectSession(TQDomElement* el)
{
varTree_->watchRoot()->savePartialProjectSession(el);
}
@@ -129,7 +129,7 @@ void VariableWidget::savePartialProjectSession(QDomElement* el)
VariableTree::VariableTree(VariableWidget *parent, const char *name)
: KListView(parent, name),
- QToolTip( viewport() ),
+ TQToolTip( viewport() ),
activationId_(0),
currentThread_(-1),
selectedFrame_(0),
@@ -140,16 +140,16 @@ VariableTree::VariableTree(VariableWidget *parent, const char *name)
setAllColumnsShowFocus(true);
setColumnWidthMode(0, Manual);
setSorting(VAR_NAME_COLUMN);
- QListView::setSelectionMode(QListView::Single);
+ TQListView::setSelectionMode(TQListView::Single);
addColumn(i18n("Variable"), 100 );
addColumn(i18n("Value"), 100 );
- connect( this, SIGNAL(contextMenu(KListView*, QListViewItem*, const QPoint&)),
- SLOT(slotContextMenu(KListView*, QListViewItem*)) );
+ connect( this, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)),
+ TQT_SLOT(slotContextMenu(KListView*, TQListViewItem*)) );
- connect( this, SIGNAL(pressed(QListViewItem*)),
- this, SLOT(slotPressed(QListViewItem*)) );
+ connect( this, TQT_SIGNAL(pressed(TQListViewItem*)),
+ this, TQT_SLOT(slotPressed(TQListViewItem*)) );
watchRoot_ = new WatchRoot(this);
}
@@ -164,9 +164,9 @@ VariableTree::~VariableTree()
void VariableTree::clear()
{
- QListViewItem *sibling = firstChild();
+ TQListViewItem *sibling = firstChild();
while (sibling != 0) {
- QListViewItem * current = sibling;
+ TQListViewItem * current = sibling;
sibling = sibling->nextSibling();
if (current->rtti() != RTTI_WATCH_ROOT) {
delete current;
@@ -180,7 +180,7 @@ void VariableTree::clear()
// **************************************************************************
-void VariableTree::slotContextMenu(KListView *, QListViewItem *item)
+void VariableTree::slotContextMenu(KListView *, TQListViewItem *item)
{
if (item == 0)
return;
@@ -196,14 +196,14 @@ void VariableTree::slotContextMenu(KListView *, QListViewItem *item)
}
int idCopyToClipboard = popup.insertItem( i18n("Copy to Clipboard") );
- int res = popup.exec(QCursor::pos());
+ int res = popup.exec(TQCursor::pos());
if (res == idRemoveWatch) {
emit removeWatchExpression(((WatchVarItem*)item)->displayId());
delete item;
} else if (res == idCopyToClipboard) {
QClipboard *qb = KApplication::clipboard();
- QString text = "{ \"" + item->text( VAR_NAME_COLUMN ) + "\", " +
+ TQString text = "{ \"" + item->text( VAR_NAME_COLUMN ) + "\", " +
"\"" + item->text( VALUE_COLUMN ) + "\" }";
qb->setText( text, QClipboard::Clipboard );
@@ -213,20 +213,20 @@ void VariableTree::slotContextMenu(KListView *, QListViewItem *item)
/***************************************************************************/
-void VariableTree::setSelected(QListViewItem * item, bool selected)
+void VariableTree::setSelected(TQListViewItem * item, bool selected)
{
// Save the last selected VarFrameRoot for slotPressed() to restore
if (item->rtti() == RTTI_VAR_FRAME_ROOT && selected) {
selectedFrame_ = (VarFrameRoot *) item;
}
- QListView::setSelected(item, selected);
+ TQListView::setSelected(item, selected);
}
/***************************************************************************/
// Makes sure that only VarFrameRoot items can be selected
-void VariableTree::slotPressed(QListViewItem * item)
+void VariableTree::slotPressed(TQListViewItem * item)
{
if (item == 0) {
return;
@@ -258,10 +258,10 @@ void VariableTree::slotPressed(QListViewItem * item)
void VariableTree::prune()
{
- QListViewItem *child = firstChild();
+ TQListViewItem *child = firstChild();
while (child != 0) {
- QListViewItem *nextChild = child->nextSibling();
+ TQListViewItem *nextChild = child->nextSibling();
// Only prune var frames, not the watch or global root
if (child->rtti() == RTTI_VAR_FRAME_ROOT) {
@@ -298,7 +298,7 @@ void VariableTree::nextActivationId()
//
// After that, any frames which aren't marked as active must have gone
// out of scope and will end up pruned.
-void VariableTree::slotFrameActive(int frameNo, int threadNo, const QString& frameName)
+void VariableTree::slotFrameActive(int frameNo, int threadNo, const TQString& frameName)
{
VarFrameRoot * frame = findFrame(frameNo, threadNo);
if (frameNo == 1) {
@@ -319,7 +319,7 @@ void VariableTree::slotFrameActive(int frameNo, int threadNo, const QString& fra
bool VariableTree::schedule()
{
- QListViewItem * child = firstChild();
+ TQListViewItem * child = firstChild();
VarFrameRoot * frame = 0;
while (child != 0) {
@@ -328,8 +328,8 @@ bool VariableTree::schedule()
Q_ASSERT( !frame->isWaitingForData() );
if (frame->needsVariables()) {
- if (QApplication::overrideCursor() == 0) {
- QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
+ if (TQApplication::overrideCursor() == 0) {
+ TQApplication::setOverrideCursor(TQCursor(Qt::WaitCursor));
}
// Tell the controller to fetch the variable values
@@ -348,7 +348,7 @@ bool VariableTree::schedule()
// All over, nothing left to fetch.
// Return to frame 1, and prune the inactive items
// from the variable tree..
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
emit selectFrame(1, currentThread_);
prune();
@@ -357,7 +357,7 @@ bool VariableTree::schedule()
// **************************************************************************
-void VariableTree::slotAddWatchExpression(const QString &watchVar)
+void VariableTree::slotAddWatchExpression(const TQString &watchVar)
{
new WatchVarItem(watchRoot(), watchVar, UNKNOWN_TYPE);
emit addWatchExpression(watchVar, true);
@@ -377,7 +377,7 @@ VarFrameRoot *VariableTree::findFrame(int frameNo, int threadNo) const
{
// frames only exist on the top level so we only need to
// check the siblings
- QListViewItem *sibling = firstChild();
+ TQListViewItem *sibling = firstChild();
while (sibling != 0) {
if ( sibling->rtti() == RTTI_VAR_FRAME_ROOT
&& ((VarFrameRoot*) sibling)->frameNo() == frameNo
@@ -416,7 +416,7 @@ GlobalRoot *VariableTree::globalRoot()
// so tell the controller about any already in the tree at start.
void VariableTree::resetWatchVars()
{
- for (QListViewItem *child = watchRoot()->firstChild(); child != 0; child = child->nextSibling()) {
+ for (TQListViewItem *child = watchRoot()->firstChild(); child != 0; child = child->nextSibling()) {
((WatchVarItem*) child)->setDisplayId(-1);
emit addWatchExpression(child->text(VAR_NAME_COLUMN), false);
}
@@ -424,11 +424,11 @@ void VariableTree::resetWatchVars()
// **************************************************************************
-void VariableTree::maybeTip(const QPoint &p)
+void VariableTree::maybeTip(const TQPoint &p)
{
VarItem * item = dynamic_cast<VarItem*>( itemAt(p) );
if (item != 0) {
- QRect r = itemRect(item);
+ TQRect r = itemRect(item);
if (r.isValid()) {
tip(r, item->tipText());
}
@@ -466,7 +466,7 @@ LazyFetchItem::~LazyFetchItem()
// **************************************************************************
-void LazyFetchItem::paintCell(QPainter *p, const QColorGroup &cg,
+void LazyFetchItem::paintCell(TQPainter *p, const TQColorGroup &cg,
int column, int width, int align)
{
if (p == 0) {
@@ -475,19 +475,19 @@ void LazyFetchItem::paintCell(QPainter *p, const QColorGroup &cg,
// make toplevel item (watch and frame items) names bold
if (column == VAR_NAME_COLUMN && parent() == 0) {
- QFont f = p->font();
+ TQFont f = p->font();
f.setBold(true);
p->setFont(f);
}
- QListViewItem::paintCell( p, cg, column, width, align );
+ TQListViewItem::paintCell( p, cg, column, width, align );
}
// **************************************************************************
-VarItem *LazyFetchItem::findItem(const QString &name) const
+VarItem *LazyFetchItem::findItem(const TQString &name) const
{
- QListViewItem *child = firstChild();
+ TQListViewItem *child = firstChild();
// Check the siblings on this branch
while (child != 0) {
@@ -505,7 +505,7 @@ VarItem *LazyFetchItem::findItem(const QString &name) const
void LazyFetchItem::prune()
{
- QListViewItem *child = firstChild();
+ TQListViewItem *child = firstChild();
while (child != 0) {
LazyFetchItem *item = (LazyFetchItem*) child;
@@ -526,9 +526,9 @@ void LazyFetchItem::prune()
// **************************************************************************
// **************************************************************************
-VarItem::VarItem(LazyFetchItem *parent, const QString &varName, DataType dataType)
+VarItem::VarItem(LazyFetchItem *parent, const TQString &varName, DataType dataType)
: LazyFetchItem (parent),
- cache_(QCString()),
+ cache_(TQCString()),
dataType_(dataType),
highlight_(false)
{
@@ -542,14 +542,14 @@ VarItem::VarItem(LazyFetchItem *parent, const QString &varName, DataType dataTyp
// Matches either an array element or a string slice,
// Order on the array index or the first number in the
// range specifying the slice.
- QRegExp arrayelement_re("\\[(\\d+)(\\.\\.\\d+)?\\]");
+ TQRegExp arrayelement_re("\\[(\\d+)(\\.\\.\\d+)?\\]");
key_ = varName;
if (arrayelement_re.search(varName) != -1) {
key_.sprintf("%.6d", arrayelement_re.cap(1).toInt());
} else if (key_.startsWith("$")) {
key_.prepend("1001"); // Global variable
- } else if (QRegExp("^[A-Z]").search(varName) != -1) {
+ } else if (TQRegExp("^[A-Z]").search(varName) != -1) {
key_.prepend("1002"); // Constant
} else if (key_.startsWith("@@")) {
key_.prepend("1003"); // Class variable
@@ -568,7 +568,7 @@ VarItem::~VarItem()
{
}
-QString VarItem::key(int /*column*/, bool /*ascending*/) const
+TQString VarItem::key(int /*column*/, bool /*ascending*/) const
{
return key_;
}
@@ -580,10 +580,10 @@ QString VarItem::key(int /*column*/, bool /*ascending*/) const
// For example, @foobar within instance obj is accessed as obj.foobar.
// But don't strip off the @ for an instance variable with no path,
// and leave a plain '@foobar' as it is.
-QString VarItem::fullName() const
+TQString VarItem::fullName() const
{
- QString itemName = text(VAR_NAME_COLUMN);
- QString vPath("");
+ TQString itemName = text(VAR_NAME_COLUMN);
+ TQString vPath("");
const VarItem *item = this;
if (item->parent()->rtti() != RTTI_VAR_ITEM) {
@@ -592,7 +592,7 @@ QString VarItem::fullName() const
// This stops at the root item (FrameRoot or GlobalRoot)
while (item->rtti() == RTTI_VAR_ITEM) {
- QString itemName = item->text(VAR_NAME_COLUMN);
+ TQString itemName = item->text(VAR_NAME_COLUMN);
if (vPath.startsWith("[")) {
// If it's a Hash or an Array, then just insert the value. As
@@ -609,15 +609,15 @@ QString VarItem::fullName() const
}
// Change 'self.@foobar' to '@foobar'
- vPath.replace(QRegExp("^self\\.@"), "@");
+ vPath.replace(TQRegExp("^self\\.@"), "@");
// Use instance_variable_get() to access any '@var's in the middle of a path
- QRegExp re_instance_var("\\.(@[^\\[.]+)");
+ TQRegExp re_instance_var("\\.(@[^\\[.]+)");
int pos = re_instance_var.search(vPath);
while (pos != -1) {
vPath.replace( pos,
re_instance_var.matchedLength(),
- QString(".instance_variable_get(:") + re_instance_var.cap(1) + ")" );
+ TQString(".instance_variable_get(:") + re_instance_var.cap(1) + ")" );
pos = re_instance_var.search(vPath, pos);
}
@@ -626,7 +626,7 @@ QString VarItem::fullName() const
// **************************************************************************
-void VarItem::setText(int column, const QString &data)
+void VarItem::setText(int column, const TQString &data)
{
setActivationId();
@@ -634,7 +634,7 @@ void VarItem::setText(int column, const QString &data)
highlight_ = (!text(VALUE_COLUMN).isEmpty() && text(VALUE_COLUMN) != data);
}
- QListViewItem::setText(column, data);
+ TQListViewItem::setText(column, data);
repaint();
}
@@ -650,7 +650,7 @@ void VarItem::expandValue(char *buf)
void VarItem::setOpen(bool open)
{
- QListViewItem::setOpen(open);
+ TQListViewItem::setOpen(open);
Q_ASSERT( dataType_ == REFERENCE_TYPE
|| dataType_ == ARRAY_TYPE
@@ -692,7 +692,7 @@ void VarItem::setDataType(DataType dataType)
// **************************************************************************
// Overridden to highlight the changed items
-void VarItem::paintCell(QPainter *p, const QColorGroup &cg,
+void VarItem::paintCell(TQPainter *p, const TQColorGroup &cg,
int column, int width, int align)
{
if (p == 0) {
@@ -703,37 +703,37 @@ void VarItem::paintCell(QPainter *p, const QColorGroup &cg,
// Show color values as colors, and make the text color the same
// as the base color
if (dataType_ == COLOR_TYPE) {
- QRegExp color_re("\\s(#.*)>");
+ TQRegExp color_re("\\s(#.*)>");
if (color_re.search(text(column)) != -1) {
- QColorGroup color_cg( cg.foreground(), cg.background(),
+ TQColorGroup color_cg( cg.foreground(), cg.background(),
cg.light(), cg.dark(), cg.mid(),
- QColor(color_re.cap(1)), QColor(color_re.cap(1)) );
- QListViewItem::paintCell(p, color_cg, column, width, align);
+ TQColor(color_re.cap(1)), TQColor(color_re.cap(1)) );
+ TQListViewItem::paintCell(p, color_cg, column, width, align);
return;
}
}
// Highlight recently changed items in red
if (highlight_) {
- QColorGroup hl_cg( cg.foreground(), cg.background(),
+ TQColorGroup hl_cg( cg.foreground(), cg.background(),
cg.light(), cg.dark(), cg.mid(),
red, cg.base() );
- QListViewItem::paintCell(p, hl_cg, column, width, align);
+ TQListViewItem::paintCell(p, hl_cg, column, width, align);
return;
}
}
- QListViewItem::paintCell(p, cg, column, width, align);
+ TQListViewItem::paintCell(p, cg, column, width, align);
return;
}
// **************************************************************************
-QString VarItem::tipText() const
+TQString VarItem::tipText() const
{
const unsigned int MAX_TOOLTIP_SIZE = 70;
- QString tip = text(VALUE_COLUMN);
+ TQString tip = text(VALUE_COLUMN);
if (tip.length() < MAX_TOOLTIP_SIZE) {
return tip;
@@ -789,7 +789,7 @@ void VarFrameRoot::setLocals()
void VarFrameRoot::setOpen(bool open)
{
bool localsViewChanged = (isOpen() != open);
- QListViewItem::setOpen(open);
+ TQListViewItem::setOpen(open);
if (localsViewChanged) {
((VariableTree*)listView())->selectFrame(frameNo_, threadNo_);
@@ -798,7 +798,7 @@ void VarFrameRoot::setOpen(bool open)
return;
}
-void VarFrameRoot::setFrameName(const QString &frameName)
+void VarFrameRoot::setFrameName(const TQString &frameName)
{
setText(VAR_NAME_COLUMN, frameName);
setText(VALUE_COLUMN, "");
@@ -858,7 +858,7 @@ void GlobalRoot::setGlobals(char * globals)
void GlobalRoot::setOpen(bool open)
{
bool globalsViewChanged = (isOpen() != open);
- QListViewItem::setOpen(open);
+ TQListViewItem::setOpen(open);
if (globalsViewChanged) {
((VariableTree*)listView())->setFetchGlobals(isOpen());
@@ -872,7 +872,7 @@ void GlobalRoot::setOpen(bool open)
// **************************************************************************
// **************************************************************************
-WatchVarItem::WatchVarItem( LazyFetchItem *parent, const QString &varName, DataType dataType, int displayId )
+WatchVarItem::WatchVarItem( LazyFetchItem *parent, const TQString &varName, DataType dataType, int displayId )
: VarItem(parent, varName, dataType),
displayId_(displayId)
{
@@ -923,10 +923,10 @@ WatchRoot::~WatchRoot()
// display id
void WatchRoot::setWatchExpression(char * buf, char * expression)
{
- QString expr(expression);
- QRegExp display_re("^(\\d+):\\s([^\n]+)\n");
+ TQString expr(expression);
+ TQRegExp display_re("^(\\d+):\\s([^\n]+)\n");
- for ( QListViewItem *child = firstChild();
+ for ( TQListViewItem *child = firstChild();
child != 0;
child = child->nextSibling() )
{
@@ -946,9 +946,9 @@ void WatchRoot::setWatchExpression(char * buf, char * expression)
// After a program pause, this updates the new value of a Watch item
// expr is the thing = value part of "1: a = 1", id is the display number
-void WatchRoot::updateWatchExpression(int id, const QString& expr)
+void WatchRoot::updateWatchExpression(int id, const TQString& expr)
{
- for ( QListViewItem *child = firstChild();
+ for ( TQListViewItem *child = firstChild();
child != 0;
child = child->nextSibling() )
{
@@ -963,20 +963,20 @@ void WatchRoot::updateWatchExpression(int id, const QString& expr)
}
}
-void WatchRoot::savePartialProjectSession(QDomElement* el)
+void WatchRoot::savePartialProjectSession(TQDomElement* el)
{
- QDomDocument domDoc = el->ownerDocument();
+ TQDomDocument domDoc = el->ownerDocument();
if (domDoc.isNull()) {
return;
}
- QDomElement watchEl = domDoc.createElement("watchExpressions");
+ TQDomElement watchEl = domDoc.createElement("watchExpressions");
- for ( QListViewItem *child = firstChild();
+ for ( TQListViewItem *child = firstChild();
child != 0;
child = child->nextSibling() )
{
- QDomElement subEl = domDoc.createElement("el");
+ TQDomElement subEl = domDoc.createElement("el");
subEl.appendChild(domDoc.createTextNode(child->text(VAR_NAME_COLUMN)));
watchEl.appendChild(subEl);
}
@@ -988,15 +988,15 @@ void WatchRoot::savePartialProjectSession(QDomElement* el)
return;
}
-void WatchRoot::restorePartialProjectSession(const QDomElement* el)
+void WatchRoot::restorePartialProjectSession(const TQDomElement* el)
{
- QDomDocument domDoc = el->ownerDocument();
+ TQDomDocument domDoc = el->ownerDocument();
if (domDoc.isNull()) {
return;
}
- QDomElement watchEl = el->namedItem("watchExpressions").toElement();
- QDomElement subEl = watchEl.firstChild().toElement();
+ TQDomElement watchEl = el->namedItem("watchExpressions").toElement();
+ TQDomElement subEl = watchEl.firstChild().toElement();
while (!subEl.isNull()) {
new WatchVarItem(this, subEl.firstChild().toText().data(), UNKNOWN_TYPE);
diff --git a/languages/ruby/debugger/variablewidget.h b/languages/ruby/debugger/variablewidget.h
index c608ec45..4104ae93 100644
--- a/languages/ruby/debugger/variablewidget.h
+++ b/languages/ruby/debugger/variablewidget.h
@@ -26,8 +26,8 @@
#include <klistview.h>
#include <kcombobox.h>
-#include <qwidget.h>
-#include <qtooltip.h>
+#include <tqwidget.h>
+#include <tqtooltip.h>
#include <kdebug.h>
class KLineEdit;
@@ -65,22 +65,22 @@ class VariableWidget : public QWidget
Q_OBJECT
public:
- VariableWidget( QWidget *parent=0, const char *name=0 );
+ VariableWidget( TQWidget *parent=0, const char *name=0 );
VariableTree *varTree() const
{ return varTree_; }
virtual void setEnabled(bool b);
- void restorePartialProjectSession(const QDomElement* el);
- void savePartialProjectSession(QDomElement* el);
+ void restorePartialProjectSession(const TQDomElement* el);
+ void savePartialProjectSession(TQDomElement* el);
protected:
- virtual void focusInEvent(QFocusEvent *e);
+ virtual void focusInEvent(TQFocusEvent *e);
public slots:
void slotAddWatchExpression();
- void slotAddWatchExpression(const QString &expr);
+ void slotAddWatchExpression(const TQString &expr);
private:
VariableTree *varTree_;
@@ -129,26 +129,26 @@ public:
// values of the global variables
void setFetchGlobals(bool fetch);
- // (from QToolTip) Display a tooltip when the cursor is over an item
- virtual void maybeTip(const QPoint &);
+ // (from TQToolTip) Display a tooltip when the cursor is over an item
+ virtual void maybeTip(const TQPoint &);
- virtual void setSelected(QListViewItem * item, bool selected);
+ virtual void setSelected(TQListViewItem * item, bool selected);
signals:
- void toggleWatchpoint(const QString &varName);
+ void toggleWatchpoint(const TQString &varName);
void selectFrame(int frame, int thread);
- void expandItem(VarItem *item, const QCString &request);
+ void expandItem(VarItem *item, const TQCString &request);
void fetchGlobals(bool fetch);
- void addWatchExpression(const QString& expr, bool execute);
+ void addWatchExpression(const TQString& expr, bool execute);
void removeWatchExpression(int displayId);
public slots:
- void slotAddWatchExpression(const QString& watchVar);
- void slotFrameActive(int frameNo, int threadNo, const QString& frameName);
- void slotPressed(QListViewItem * item);
+ void slotAddWatchExpression(const TQString& watchVar);
+ void slotFrameActive(int frameNo, int threadNo, const TQString& frameName);
+ void slotPressed(TQListViewItem * item);
private slots:
- void slotContextMenu(KListView *, QListViewItem *item);
+ void slotContextMenu(KListView *, TQListViewItem *item);
private:
int activationId_;
@@ -178,7 +178,7 @@ public:
virtual int rtti() const { return RTTI_LAZY_FETCH_ITEM; }
virtual void prune();
- virtual VarItem *findItem(const QString& name) const;
+ virtual VarItem *findItem(const TQString& name) const;
int currentActivationId() const { return ((VariableTree*) listView())->activationId(); }
virtual void setActivationId() { activationId_ = currentActivationId(); }
@@ -189,7 +189,7 @@ public:
bool isWaitingForData() const { return waitingForData_; }
protected:
- void paintCell( QPainter *p, const QColorGroup &cg,
+ void paintCell( TQPainter *p, const TQColorGroup &cg,
int column, int width, int align );
private:
@@ -204,23 +204,23 @@ private:
class VarItem : public LazyFetchItem
{
public:
- VarItem( LazyFetchItem *parent, const QString &varName, DataType dataType );
+ VarItem( LazyFetchItem *parent, const TQString &varName, DataType dataType );
virtual ~VarItem();
virtual int rtti() const { return RTTI_VAR_ITEM; }
- virtual QString key(int column, bool ascending) const;
+ virtual TQString key(int column, bool ascending) const;
- QString fullName() const;
+ TQString fullName() const;
DataType dataType() const;
void setDataType(DataType dataType);
void setOpen(bool open);
- void setText (int column, const QString& text);
+ void setText (int column, const TQString& text);
// Returns the text to be displayed as tooltip (the value)
- QString tipText() const;
+ TQString tipText() const;
// If the item is open, fetch details via a pp command
void update();
@@ -230,12 +230,12 @@ public:
void expandValue(char *data);
private:
- void paintCell( QPainter *p, const QColorGroup &cg,
+ void paintCell( TQPainter *p, const TQColorGroup &cg,
int column, int width, int align );
private:
- QString key_;
- QCString cache_;
+ TQString key_;
+ TQCString cache_;
DataType dataType_;
bool highlight_;
};
@@ -247,7 +247,7 @@ private:
class WatchVarItem : public VarItem
{
public:
- WatchVarItem( LazyFetchItem *parent, const QString &varName, DataType dataType, int displayId = -1);
+ WatchVarItem( LazyFetchItem *parent, const TQString &varName, DataType dataType, int displayId = -1);
virtual ~WatchVarItem();
@@ -273,15 +273,15 @@ public:
virtual int rtti() const { return RTTI_VAR_FRAME_ROOT; }
- virtual QString key(int column, bool /*ascending*/) const {
- return QString("%1%2").arg(RTTI_VAR_FRAME_ROOT).arg(text(column));
+ virtual TQString key(int column, bool /*ascending*/) const {
+ return TQString("%1%2").arg(RTTI_VAR_FRAME_ROOT).arg(text(column));
}
void addLocals(char *variables);
void setLocals();
void setOpen(bool open);
- void setFrameName(const QString &frameName);
+ void setFrameName(const TQString &frameName);
virtual void setActivationId();
bool needsVariables() const;
@@ -293,7 +293,7 @@ private:
bool needsVariables_;
int frameNo_;
int threadNo_;
- QCString cache_;
+ TQCString cache_;
};
/***************************************************************************/
@@ -308,15 +308,15 @@ public:
virtual int rtti() const { return RTTI_WATCH_ROOT; }
- virtual QString key(int column, bool /*ascending*/) const {
- return QString("%1%2").arg(RTTI_WATCH_ROOT).arg(text(column));
+ virtual TQString key(int column, bool /*ascending*/) const {
+ return TQString("%1%2").arg(RTTI_WATCH_ROOT).arg(text(column));
}
void setWatchExpression(char * buf, char * expr);
- void updateWatchExpression(int id, const QString& expr);
+ void updateWatchExpression(int id, const TQString& expr);
- void restorePartialProjectSession(const QDomElement* el);
- void savePartialProjectSession(QDomElement* el);
+ void restorePartialProjectSession(const TQDomElement* el);
+ void savePartialProjectSession(TQDomElement* el);
};
/***************************************************************************/
@@ -331,8 +331,8 @@ public:
virtual int rtti() const { return RTTI_GLOBAL_ROOT; }
- virtual QString key(int column, bool /*ascending*/) const {
- return QString("%1%2").arg(RTTI_GLOBAL_ROOT).arg(text(column));
+ virtual TQString key(int column, bool /*ascending*/) const {
+ return TQString("%1%2").arg(RTTI_GLOBAL_ROOT).arg(text(column));
}
void setOpen(bool open);
diff --git a/languages/ruby/qtdesignerrubyintegration.cpp b/languages/ruby/qtdesignerrubyintegration.cpp
index d9896881..11244f8f 100644
--- a/languages/ruby/qtdesignerrubyintegration.cpp
+++ b/languages/ruby/qtdesignerrubyintegration.cpp
@@ -20,8 +20,8 @@
***************************************************************************/
#include "qtdesignerrubyintegration.h"
-#include <qpair.h>
-#include <qregexp.h>
+#include <tqpair.h>
+#include <tqregexp.h>
#include <klocale.h>
#include <kdebug.h>
@@ -51,7 +51,7 @@ void QtDesignerRubyIntegration::addFunctionToClass(KInterfaceDesigner::Function
KTextEditor::EditInterface* editIface = dynamic_cast<KTextEditor::EditInterface*>( m_part->partController()->activePart() );
if( !editIface ){
/// @todo show messagebox
-// QDialog::accept();
+// TQDialog::accept();
return;
}
@@ -73,7 +73,7 @@ void QtDesignerRubyIntegration::addFunctionToClass(KInterfaceDesigner::Function
point.second = funEndColumn;
}
- QString str = function.function;
+ TQString str = function.function;
str += "\n \n end\n\n";
str = " def " + str;
diff --git a/languages/ruby/rubyconfigwidget.cpp b/languages/ruby/rubyconfigwidget.cpp
index d0ffc5b4..a7ec7a7a 100644
--- a/languages/ruby/rubyconfigwidget.cpp
+++ b/languages/ruby/rubyconfigwidget.cpp
@@ -5,13 +5,13 @@
#include <stdlib.h>
#include <klineedit.h>
-#include <qcheckbox.h>
-#include <qbuttongroup.h>
+#include <tqcheckbox.h>
+#include <tqbuttongroup.h>
#include <kurlrequester.h>
#include <kurlcompletion.h>
#include <kdebug.h>
-RubyConfigWidget::RubyConfigWidget(QDomDocument &projectDom, QWidget* parent, const char* name)
+RubyConfigWidget::RubyConfigWidget(TQDomDocument &projectDom, TQWidget* parent, const char* name)
: RubyConfigWidgetBase(parent,name), dom (projectDom) {
kdDebug (9019) << "Creating RubyConfigWidget" << endl;
interpreterEdit->setText(DomUtil::readEntry(dom, "/kdevrubysupport/run/interpreter"));
diff --git a/languages/ruby/rubyconfigwidget.h b/languages/ruby/rubyconfigwidget.h
index a4efa6f9..ba602059 100644
--- a/languages/ruby/rubyconfigwidget.h
+++ b/languages/ruby/rubyconfigwidget.h
@@ -10,7 +10,7 @@ class RubyConfigWidget : public RubyConfigWidgetBase
{
Q_OBJECT
public:
- RubyConfigWidget(QDomDocument &projectDom, QWidget* parent = 0, const char* name = 0);
+ RubyConfigWidget(TQDomDocument &projectDom, TQWidget* parent = 0, const char* name = 0);
public slots:
void accept();
@@ -20,7 +20,7 @@ protected:
protected slots:
private:
- QDomDocument &dom;
+ TQDomDocument &dom;
};
#endif
diff --git a/languages/ruby/rubyimplementationwidget.cpp b/languages/ruby/rubyimplementationwidget.cpp
index 95055076..b1371a24 100644
--- a/languages/ruby/rubyimplementationwidget.cpp
+++ b/languages/ruby/rubyimplementationwidget.cpp
@@ -19,11 +19,11 @@
***************************************************************************/
#include "rubyimplementationwidget.h"
-#include <qdir.h>
-#include <qfile.h>
-#include <qregexp.h>
-#include <qfileinfo.h>
-#include <qtextstream.h>
+#include <tqdir.h>
+#include <tqfile.h>
+#include <tqregexp.h>
+#include <tqfileinfo.h>
+#include <tqtextstream.h>
#include <klineedit.h>
#include <klocale.h>
@@ -34,35 +34,35 @@
#include <kdevproject.h>
RubyImplementationWidget::RubyImplementationWidget(KDevLanguageSupport* part,
- QWidget* parent, const char* name, bool modal)
+ TQWidget* parent, const char* name, bool modal)
:ImplementationWidget(part, parent, name, modal)
{
}
-QStringList RubyImplementationWidget::createClassFiles()
+TQStringList RubyImplementationWidget::createClassFiles()
{
- QString template_rb = "require '$BASEFILENAME$'\n\nclass $CLASSNAME$ < $BASECLASSNAME$\n\n def initialize(*k)\n super(*k)\n end\n\nend\n";
+ TQString template_rb = "require '$BASEFILENAME$'\n\nclass $CLASSNAME$ < $BASECLASSNAME$\n\n def initialize(*k)\n super(*k)\n end\n\nend\n";
- QFileInfo formInfo(m_formName);
- template_rb.replace(QRegExp("\\$BASEFILENAME\\$"), formInfo.baseName()+".rb");
- template_rb.replace(QRegExp("\\$CLASSNAME\\$"), classNameEdit->text());
- template_rb.replace(QRegExp("\\$BASECLASSNAME\\$"), m_baseClassName);
+ 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 = FileTemplate::read(m_part, "rb") + template_rb;
- QString file_rb = fileNameEdit->text() + ".rb";
+ TQString file_rb = fileNameEdit->text() + ".rb";
if (!m_part->project()->activeDirectory().isEmpty())
file_rb = m_part->project()->activeDirectory() + "/" + file_rb;
- QFile file(QDir::cleanDirPath(m_part->project()->projectDirectory() + "/" + file_rb));
+ TQFile file(TQDir::cleanDirPath(m_part->project()->projectDirectory() + "/" + file_rb));
if (!file.open(IO_WriteOnly)) {
KMessageBox::error(0, i18n("Cannot write to file"));
- return QStringList();
+ return TQStringList();
}
- QTextStream stream(&file);
+ TQTextStream stream(&file);
stream << template_rb;
file.close();
- QStringList files;
+ TQStringList files;
files.append(file_rb);
return files;
}
diff --git a/languages/ruby/rubyimplementationwidget.h b/languages/ruby/rubyimplementationwidget.h
index 9e594cca..4393b94b 100644
--- a/languages/ruby/rubyimplementationwidget.h
+++ b/languages/ruby/rubyimplementationwidget.h
@@ -25,10 +25,10 @@
class RubyImplementationWidget : public ImplementationWidget {
Q_OBJECT
public:
- RubyImplementationWidget(KDevLanguageSupport* part, QWidget* parent = 0,
+ RubyImplementationWidget(KDevLanguageSupport* part, TQWidget* parent = 0,
const char* name = 0, bool modal = true);
- virtual QStringList createClassFiles();
+ virtual TQStringList createClassFiles();
};
diff --git a/languages/ruby/rubysupport_part.cpp b/languages/ruby/rubysupport_part.cpp
index c116c05d..a8728c77 100644
--- a/languages/ruby/rubysupport_part.cpp
+++ b/languages/ruby/rubysupport_part.cpp
@@ -15,12 +15,12 @@
#include "kdevshellwidget.h"
#include "kdevquickopen.h"
-#include <qdir.h>
-#include <qwhatsthis.h>
-#include <qtimer.h>
-#include <qfileinfo.h>
-#include <qpopupmenu.h>
-#include <qregexp.h>
+#include <tqdir.h>
+#include <tqwhatsthis.h>
+#include <tqtimer.h>
+#include <tqfileinfo.h>
+#include <tqpopupmenu.h>
+#include <tqregexp.h>
#include <kiconloader.h>
#include <klocale.h>
@@ -41,7 +41,7 @@ typedef KDevGenericFactory<RubySupportPart> RubySupportFactory;
static const KDevPluginInfo data("kdevrubysupport");
K_EXPORT_COMPONENT_FACTORY( libkdevrubysupport, RubySupportFactory( data ) )
-RubySupportPart::RubySupportPart(QObject *parent, const char *name, const QStringList& )
+RubySupportPart::RubySupportPart(TQObject *parent, const char *name, const TQStringList& )
: KDevLanguageSupport (&data, parent, name ? name : "RubySupportPart" )
{
setInstance(RubySupportFactory::instance());
@@ -49,26 +49,26 @@ RubySupportPart::RubySupportPart(QObject *parent, const char *name, const QStrin
KAction *action;
action = new KAction( i18n("&Run"), "exec", SHIFT + Key_F9,
- this, SLOT(slotRun()),
+ this, TQT_SLOT(slotRun()),
actionCollection(), "build_execute" );
action->setToolTip(i18n("Run"));
action->setWhatsThis(i18n("<b>Run</b><p>Starts an application."));
action->setIcon("ruby_run.png");
action = new KAction( i18n("Run Test Under Cursor"), "exec", ALT + Key_F9,
- this, SLOT(slotRunTestUnderCursor()),
+ this, TQT_SLOT(slotRunTestUnderCursor()),
actionCollection(), "build_execute_test_function" );
action->setToolTip(i18n("Run Test Under Cursor"));
action->setWhatsThis(i18n("<b>Run Test Under Cursor</b><p>Runs the function under the cursor as test."));
- action = new KAction( i18n("Launch Browser"), "network", 0, this, SLOT(slotBrowse()), actionCollection(), "build_launch_browser" );
+ action = new KAction( i18n("Launch Browser"), "network", 0, this, TQT_SLOT(slotBrowse()), actionCollection(), "build_launch_browser" );
action->setToolTip(i18n("Launch Browser"));
action->setWhatsThis(i18n("<b>Launch Browser</b><p>Opens a web browser pointing to the Ruby Rails server") );
- action = new KAction( i18n("Switch To Controller"), 0, CTRL+ALT+Key_1, this, SLOT(slotSwitchToController()), actionCollection(), "switch_to_controller" );
- action = new KAction( i18n("Switch To Model"), 0, CTRL+ALT+Key_2, this, SLOT(slotSwitchToModel()), actionCollection(), "switch_to_model" );
- action = new KAction( i18n("Switch To View"), 0, CTRL+ALT+Key_3, this, SLOT(slotSwitchToView()), actionCollection(), "switch_to_view" );
- action = new KAction( i18n("Switch To Test"), 0, CTRL+ALT+Key_4, this, SLOT(slotSwitchToTest()), actionCollection(), "switch_to_test" );
+ action = new KAction( i18n("Switch To Controller"), 0, CTRL+ALT+Key_1, this, TQT_SLOT(slotSwitchToController()), actionCollection(), "switch_to_controller" );
+ action = new KAction( i18n("Switch To Model"), 0, CTRL+ALT+Key_2, this, TQT_SLOT(slotSwitchToModel()), actionCollection(), "switch_to_model" );
+ action = new KAction( i18n("Switch To View"), 0, CTRL+ALT+Key_3, this, TQT_SLOT(slotSwitchToView()), actionCollection(), "switch_to_view" );
+ action = new KAction( i18n("Switch To Test"), 0, CTRL+ALT+Key_4, this, TQT_SLOT(slotSwitchToTest()), actionCollection(), "switch_to_test" );
kdDebug() << "Creating RubySupportPart" << endl;
@@ -78,14 +78,14 @@ RubySupportPart::RubySupportPart(QObject *parent, const char *name, const QStrin
mainWindow()->embedOutputView( m_shellWidget, i18n("Ruby Shell"), i18n("Ruby Shell"));
mainWindow()->raiseView( m_shellWidget );
- connect( core(), SIGNAL(projectOpened()), this, SLOT(projectOpened()) );
- connect( core(), SIGNAL(projectClosed()), this, SLOT(projectClosed()) );
- connect( core(), SIGNAL(contextMenu(QPopupMenu *, const Context *)),
- this, SLOT(contextMenu(QPopupMenu *, const Context *)) );
- connect( partController(), SIGNAL(savedFile(const KURL&)),
- this, SLOT(savedFile(const KURL&)) );
- connect( core(), SIGNAL(projectConfigWidget(KDialogBase*)),
- this, SLOT(projectConfigWidget(KDialogBase*)) );
+ connect( core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(projectOpened()) );
+ connect( core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(projectClosed()) );
+ connect( core(), TQT_SIGNAL(contextMenu(TQPopupMenu *, const Context *)),
+ this, TQT_SLOT(contextMenu(TQPopupMenu *, const Context *)) );
+ connect( partController(), TQT_SIGNAL(savedFile(const KURL&)),
+ this, TQT_SLOT(savedFile(const KURL&)) );
+ connect( core(), TQT_SIGNAL(projectConfigWidget(KDialogBase*)),
+ this, TQT_SLOT(projectConfigWidget(KDialogBase*)) );
}
@@ -99,32 +99,32 @@ RubySupportPart::~RubySupportPart()
void RubySupportPart::projectConfigWidget(KDialogBase *dlg)
{
- QVBox *vbox = dlg->addVBoxPage(i18n("Ruby"), i18n("Ruby"), BarIcon("ruby_config.png", KIcon::SizeMedium, KIcon::DefaultState, RubySupportPart::instance()));
- RubyConfigWidget *w = new RubyConfigWidget(*projectDom(), (QWidget *)vbox, "ruby config widget");
- connect( dlg, SIGNAL(okClicked()), w, SLOT(accept()) );
+ TQVBox *vbox = dlg->addVBoxPage(i18n("Ruby"), i18n("Ruby"), BarIcon("ruby_config.png", KIcon::SizeMedium, KIcon::DefaultState, RubySupportPart::instance()));
+ RubyConfigWidget *w = new RubyConfigWidget(*projectDom(), (TQWidget *)vbox, "ruby config widget");
+ connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()) );
}
void RubySupportPart::projectOpened()
{
kdDebug() << "projectOpened()" << endl;
- QStrList l;
+ TQStrList l;
l.append( shell().latin1() ) ;
m_shellWidget->setShell( shell().latin1(), l );
m_shellWidget->activate();
m_shellWidget->setAutoReactivateOnClose( true );
- connect( project(), SIGNAL(addedFilesToProject(const QStringList &)),
- this, SLOT(addedFilesToProject(const QStringList &)) );
- connect( project(), SIGNAL(removedFilesFromProject(const QStringList &)),
- this, SLOT(removedFilesFromProject(const QStringList &)) );
+ connect( project(), TQT_SIGNAL(addedFilesToProject(const TQStringList &)),
+ this, TQT_SLOT(addedFilesToProject(const TQStringList &)) );
+ connect( project(), TQT_SIGNAL(removedFilesFromProject(const TQStringList &)),
+ this, TQT_SLOT(removedFilesFromProject(const TQStringList &)) );
- QFileInfo program(mainProgram());
+ TQFileInfo program(mainProgram());
// If it's a Rails project, create the project files if they're missing
if (mainProgram().endsWith("script/server")) {
- QString cmd;
- QFileInfo server(project()->projectDirectory() + "/script/server");
+ TQString cmd;
+ TQFileInfo server(project()->projectDirectory() + "/script/server");
if (! server.exists()) {
cmd += "rails " + project()->projectDirectory();
if (KDevAppFrontend *appFrontend = extension<KDevAppFrontend>("KDevelop/AppFrontend"))
@@ -134,12 +134,12 @@ void RubySupportPart::projectOpened()
// We want to parse only after all components have been
// properly initialized
- QTimer::singleShot(0, this, SLOT(initialParse()));
+ TQTimer::singleShot(0, this, TQT_SLOT(initialParse()));
}
-void RubySupportPart::maybeParse(const QString fileName)
+void RubySupportPart::maybeParse(const TQString fileName)
{
- QFileInfo fi(fileName);
+ TQFileInfo fi(fileName);
if (fi.extension() == "rb") {
if (codeModel()->hasFile(fileName)) {
@@ -158,8 +158,8 @@ void RubySupportPart::initialParse()
if (project()) {
kapp->setOverrideCursor(waitCursor);
- QStringList files = project()->allFiles();
- for (QStringList::Iterator it = files.begin(); it != files.end() ;++it) {
+ TQStringList files = project()->allFiles();
+ for (TQStringList::Iterator it = files.begin(); it != files.end() ;++it) {
kdDebug() << "maybe parse " << project()->projectDirectory() + "/" + (*it) << endl;
maybeParse(project()->projectDirectory() + "/" + *it);
}
@@ -171,28 +171,28 @@ void RubySupportPart::initialParse()
}
}
-void RubySupportPart::addedFilesToProject(const QStringList &fileList)
+void RubySupportPart::addedFilesToProject(const TQStringList &fileList)
{
kdDebug() << "addedFilesToProject()" << endl;
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = fileList.begin(); it != fileList.end(); ++it )
{
- QString fileName = project()->projectDirectory() + "/" + ( *it );
+ TQString fileName = project()->projectDirectory() + "/" + ( *it );
maybeParse( fileName );
}
}
-void RubySupportPart::removedFilesFromProject(const QStringList &fileList)
+void RubySupportPart::removedFilesFromProject(const TQStringList &fileList)
{
kdDebug() << "removedFilesFromProject()" << endl;
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = fileList.begin(); it != fileList.end(); ++it )
{
- QString fileName = project()->projectDirectory() + "/" + ( *it );
+ TQString fileName = project()->projectDirectory() + "/" + ( *it );
if( codeModel()->hasFile(fileName) ){
emit aboutToRemoveSourceInfo( fileName );
@@ -216,35 +216,35 @@ KDevLanguageSupport::Features RubySupportPart::features()
return Features(Classes | Functions | Variables | Declarations | Signals | Slots);
}
-void RubySupportPart::parse(const QString &fileName)
+void RubySupportPart::parse(const TQString &fileName)
{
- QFile f(QFile::encodeName(fileName));
+ TQFile f(TQFile::encodeName(fileName));
if (!f.open(IO_ReadOnly))
return;
- QTextStream stream(&f);
-
- QRegExp classre("^\\s*(class|module)\\s+([A-Z][A-Za-z0-9_]+::)*([A-Z][A-Za-z0-9_]+)\\s*(<\\s*([A-Z][A-Za-z0-9_:]+))?$");
- QRegExp methodre("^(\\s*)def\\s+(([A-Z][A-Za-z0-9_:]+|self)\\.)?([A-Za-z0-9_]+[!?=]?|\\[\\]=?|\\*\\*||\\-|[!~+*/%&|><^]|>>|<<||<=>|<=|>=|==|===|!=|=~|!~).*$");
- QRegExp accessre("^\\s*(private|protected|public)\\s*((:([A-Za-z0-9_]+[!?=]?|\\[\\]=?|\\*\\*||\\-|[!~+*/%&|><^]|>>|<<||<=>|<=|>=|==|===|!=|=~|!~),?\\s*)*)$");
- QRegExp attr_accessorre("^\\s*(attr_accessor|attr_reader|attr_writer)\\s*((:([A-Za-z0-9_]+),?\\s*)*)$");
- QRegExp symbolre(":([^,]+),?");
- QRegExp line_contre(",\\s*$");
- QRegExp slot_signalre("^\\s*(slots|signals|k_dcop|k_dcop_signals)\\s*(('[^)]+\\)',?\\s*)*)$");
- QRegExp memberre("'([A-Za-z0-9_ &*]+\\s)?([A-Za-z0-9_]+)\\([^)]*\\)',?");
- QRegExp begin_commentre("^*=begin");
- QRegExp end_commentre("^*=end");
- QRegExp variablere("(@@?[A-Za-z0-9_]+)\\s*=\\s*((?:([A-Za-z0-9_:.]+)\\.new)|[\\[\"'%:/\\?\\{]|%r|<<|true|false|^\\?|0[0-7]+|[-+]?0b[01]+|[-+]?0x[1-9a-fA-F]+|[-+]?[0-9_\\.e]+|nil)?");
- QRegExp endre("^(\\s*)end\\s*$");
+ TQTextStream stream(&f);
+
+ TQRegExp classre("^\\s*(class|module)\\s+([A-Z][A-Za-z0-9_]+::)*([A-Z][A-Za-z0-9_]+)\\s*(<\\s*([A-Z][A-Za-z0-9_:]+))?$");
+ TQRegExp methodre("^(\\s*)def\\s+(([A-Z][A-Za-z0-9_:]+|self)\\.)?([A-Za-z0-9_]+[!?=]?|\\[\\]=?|\\*\\*||\\-|[!~+*/%&|><^]|>>|<<||<=>|<=|>=|==|===|!=|=~|!~).*$");
+ TQRegExp accessre("^\\s*(private|protected|public)\\s*((:([A-Za-z0-9_]+[!?=]?|\\[\\]=?|\\*\\*||\\-|[!~+*/%&|><^]|>>|<<||<=>|<=|>=|==|===|!=|=~|!~),?\\s*)*)$");
+ TQRegExp attr_accessorre("^\\s*(attr_accessor|attr_reader|attr_writer)\\s*((:([A-Za-z0-9_]+),?\\s*)*)$");
+ TQRegExp symbolre(":([^,]+),?");
+ TQRegExp line_contre(",\\s*$");
+ TQRegExp slot_signalre("^\\s*(slots|signals|k_dcop|k_dcop_signals)\\s*(('[^)]+\\)',?\\s*)*)$");
+ TQRegExp memberre("'([A-Za-z0-9_ &*]+\\s)?([A-Za-z0-9_]+)\\([^)]*\\)',?");
+ TQRegExp begin_commentre("^*=begin");
+ TQRegExp end_commentre("^*=end");
+ TQRegExp variablere("(@@?[A-Za-z0-9_]+)\\s*=\\s*((?:([A-Za-z0-9_:.]+)\\.new)|[\\[\"'%:/\\?\\{]|%r|<<|true|false|^\\?|0[0-7]+|[-+]?0b[01]+|[-+]?0x[1-9a-fA-F]+|[-+]?[0-9_\\.e]+|nil)?");
+ TQRegExp endre("^(\\s*)end\\s*$");
FileDom m_file = codeModel()->create<FileModel>();
m_file->setName(fileName);
ClassDom lastClass;
FunctionDom lastMethod;
- QString lastMethodIndentation;
+ TQString lastMethodIndentation;
int lastAccess = CodeModelItem::Public;
- QString rawline;
- QCString line;
+ TQString rawline;
+ TQCString line;
int lineNo = 0;
while (!stream.atEnd()) {
@@ -261,7 +261,7 @@ void RubySupportPart::parse(const QString &fileName)
m_file->addClass( lastClass );
}
- QString parent = classre.cap(5);
+ TQString parent = classre.cap(5);
if (!parent.isEmpty())
{
kdDebug() << "Add parent " << parent << endl;
@@ -301,7 +301,7 @@ void RubySupportPart::parse(const QString &fileName)
lastMethod = method;
if (lastClass != 0) {
- QStringList scope( lastClass->name() );
+ TQStringList scope( lastClass->name() );
method->setScope( scope );
methodDecl->setScope( scope );
if( !lastClass->hasFunction(methodDecl->name()) ) {
@@ -339,7 +339,7 @@ void RubySupportPart::parse(const QString &fileName)
if (accessre.cap(2) == "") {
lastAccess = currentAccess;
} else {
- QString symbolList( accessre.cap(2) );
+ TQString symbolList( accessre.cap(2) );
int pos = 0;
while ( pos >= 0 ) {
@@ -364,7 +364,7 @@ void RubySupportPart::parse(const QString &fileName)
}
}
} else if (slot_signalre.search(line) != -1 && lastClass != 0) {
- QString memberList( slot_signalre.cap(2) );
+ TQString memberList( slot_signalre.cap(2) );
int pos = 0;
while ( pos >= 0 ) {
@@ -387,7 +387,7 @@ void RubySupportPart::parse(const QString &fileName)
} else {
method = codeModel()->create<FunctionModel>();
}
- QStringList scope( lastClass->name() );
+ TQStringList scope( lastClass->name() );
method->setScope( scope );
method->setName(memberre.cap(2));
method->setFileName( fileName );
@@ -405,8 +405,8 @@ void RubySupportPart::parse(const QString &fileName)
}
}
} else if (attr_accessorre.search(line) != -1 && lastClass != 0) {
- QString attr( attr_accessorre.cap(1) );
- QString symbolList( attr_accessorre.cap(2) );
+ TQString attr( attr_accessorre.cap(1) );
+ TQString symbolList( attr_accessorre.cap(2) );
int pos = 0;
while ( pos >= 0 ) {
@@ -422,7 +422,7 @@ void RubySupportPart::parse(const QString &fileName)
}
}
} else {
- QStringList scope( lastClass->name() );
+ TQStringList scope( lastClass->name() );
if ( !lastClass->hasFunction(symbolre.cap(1))
&& (attr == "attr_accessor" || attr == "attr_reader") )
{
@@ -462,7 +462,7 @@ void RubySupportPart::parse(const QString &fileName)
attr->setFileName( fileName );
attr->setStartPosition( lineNo, 0 );
attr->setAccess( CodeModelItem::Private );
- if (QRegExp("^@@").search(attr->name()) != -1) {
+ if (TQRegExp("^@@").search(attr->name()) != -1) {
attr->setStatic( true );
}
lastClass->addVariable( attr );
@@ -475,25 +475,25 @@ void RubySupportPart::parse(const QString &fileName)
attr->setStartPosition( lineNo, 0 );
}
- if (QRegExp("^(/|%r)").search(variablere.cap(2)) != -1) {
+ if (TQRegExp("^(/|%r)").search(variablere.cap(2)) != -1) {
attr->setType( "Regexp" );
- } else if (QRegExp("^[\"'%<]").search(variablere.cap(2)) != -1) {
+ } else if (TQRegExp("^[\"'%<]").search(variablere.cap(2)) != -1) {
attr->setType( "String" );
- } else if (QRegExp("^\\[").search(variablere.cap(2)) != -1) {
+ } else if (TQRegExp("^\\[").search(variablere.cap(2)) != -1) {
attr->setType( "Array" );
- } else if (QRegExp("^\\{").search(variablere.cap(2)) != -1) {
+ } else if (TQRegExp("^\\{").search(variablere.cap(2)) != -1) {
attr->setType( "Hash" );
- } else if (QRegExp("^:").search(variablere.cap(2)) != -1) {
+ } else if (TQRegExp("^:").search(variablere.cap(2)) != -1) {
attr->setType( "Symbol" );
- } else if (QRegExp("\\.\\.").search(variablere.cap(2)) != -1) {
+ } else if (TQRegExp("\\.\\.").search(variablere.cap(2)) != -1) {
attr->setType( "Range" );
} else if (variablere.cap(2) == "true" || variablere.cap(2) == "false") {
attr->setType( "Boolean" );
- } else if ( QRegExp("^[-+]?[0-9_]+").exactMatch(variablere.cap(2))
- || QRegExp("^[-+]?(0x|0|0b|\\?)").search(variablere.cap(2)) != -1 )
+ } else if ( TQRegExp("^[-+]?[0-9_]+").exactMatch(variablere.cap(2))
+ || TQRegExp("^[-+]?(0x|0|0b|\\?)").search(variablere.cap(2)) != -1 )
{
attr->setType( "Integer" );
- } else if (QRegExp("[0-9._]+(e[-+0-9]+)?").exactMatch(variablere.cap(2))) {
+ } else if (TQRegExp("[0-9._]+(e[-+0-9]+)?").exactMatch(variablere.cap(2))) {
attr->setType( "Float" );
} else if (variablere.cap(2) != "nil" && variablere.cap(3) != "") {
attr->setType( variablere.cap(3) );
@@ -520,10 +520,10 @@ void RubySupportPart::slotRun ()
// if we can't save all parts, then the user canceled
if ( partController()->saveAllFiles() == false )
return;
- QFileInfo program(mainProgram());
+ TQFileInfo program(mainProgram());
if (mainProgram().endsWith("script/server")) {
- QString cmd;
- QFileInfo server(project()->projectDirectory() + "/script/server");
+ TQString cmd;
+ TQFileInfo server(project()->projectDirectory() + "/script/server");
// Starting WEBrick for a Rails app. Translate a SIGTERM signal sent by KDevelop
// to a SIGINT expected by WEBrick (ie control&c) to terminate it.
@@ -531,7 +531,7 @@ void RubySupportPart::slotRun ()
if (KDevAppFrontend *appFrontend = extension<KDevAppFrontend>("KDevelop/AppFrontend"))
appFrontend->startAppCommand(project()->projectDirectory(), cmd, false);
} else {
- QString cmd = QString("%1 -K%2 -C\"%3\" -I\"%4\" \"%5\" %6")
+ TQString cmd = TQString("%1 -K%2 -C\"%3\" -I\"%4\" \"%5\" %6")
.arg(interpreter())
.arg(characterCoding())
.arg(runDirectory())
@@ -542,20 +542,20 @@ void RubySupportPart::slotRun ()
}
}
-QString RubySupportPart::interpreter() {
- QString prog = DomUtil::readEntry(*projectDom(), "/kdevrubysupport/run/interpreter");
+TQString RubySupportPart::interpreter() {
+ TQString prog = DomUtil::readEntry(*projectDom(), "/kdevrubysupport/run/interpreter");
if (prog.isEmpty()) prog = "ruby";
return prog;
}
-QString RubySupportPart::shell() {
- QString shell = DomUtil::readEntry(*projectDom(), "/kdevrubysupport/run/shell");
+TQString RubySupportPart::shell() {
+ TQString shell = DomUtil::readEntry(*projectDom(), "/kdevrubysupport/run/shell");
if (shell.isEmpty()) shell = "irb";
return shell;
}
-QString RubySupportPart::mainProgram() {
- QString prog;
+TQString RubySupportPart::mainProgram() {
+ TQString prog;
int runMainProgram = DomUtil::readIntEntry(*projectDom(), "/kdevrubysupport/run/runmainprogram");
if (runMainProgram == 0) {
@@ -570,11 +570,11 @@ QString RubySupportPart::mainProgram() {
return prog;
}
-QString RubySupportPart::runDirectory() {
- QString cwd = DomUtil::readEntry(*projectDom(), "/kdevscriptproject/run/globalcwd");
+TQString RubySupportPart::runDirectory() {
+ TQString cwd = DomUtil::readEntry(*projectDom(), "/kdevscriptproject/run/globalcwd");
if (cwd.isEmpty())
{
- QString mainProg = DomUtil::readEntry(*projectDom(), "/kdevrubysupport/run/mainprogram");
+ TQString mainProg = DomUtil::readEntry(*projectDom(), "/kdevrubysupport/run/mainprogram");
KParts::ReadOnlyPart *ro_part = dynamic_cast<KParts::ReadOnlyPart*>(partController()->activePart());
if (mainProg.isEmpty() && ro_part)
cwd = ro_part->url().directory();
@@ -584,14 +584,14 @@ QString RubySupportPart::runDirectory() {
return cwd;
}
-QString RubySupportPart::programArgs() {
- QString args = DomUtil::readEntry(*projectDom(), "/kdevrubysupport/run/programargs");
+TQString RubySupportPart::programArgs() {
+ TQString args = DomUtil::readEntry(*projectDom(), "/kdevrubysupport/run/programargs");
return args;
}
-QString RubySupportPart::characterCoding() {
+TQString RubySupportPart::characterCoding() {
int coding = DomUtil::readIntEntry(*projectDom(), "/kdevrubysupport/run/charactercoding");
- QString code("A");
+ TQString code("A");
switch (coding) {
case 0:
@@ -611,10 +611,10 @@ QString RubySupportPart::characterCoding() {
}
-void RubySupportPart::startApplication(const QString &program) {
+void RubySupportPart::startApplication(const TQString &program) {
bool inTerminal = DomUtil::readBoolEntry(*projectDom(), "/kdevrubysupport/run/terminal");
if (KDevAppFrontend *appFrontend = extension<KDevAppFrontend>("KDevelop/AppFrontend"))
- appFrontend->startAppCommand(QString::QString(), program, inTerminal);
+ appFrontend->startAppCommand(TQString::TQString(), program, inTerminal);
}
@@ -651,7 +651,7 @@ KDevDesignerIntegration *RubySupportPart::designer(KInterfaceDesigner::DesignerT
void RubySupportPart::projectClosed( )
{
- for (QMap<KInterfaceDesigner::DesignerType, KDevDesignerIntegration*>::const_iterator it = m_designers.begin();
+ for (TQMap<KInterfaceDesigner::DesignerType, KDevDesignerIntegration*>::const_iterator it = m_designers.begin();
it != m_designers.end(); ++it)
{
kdDebug() << "calling save settings fro designer integration" << endl;
@@ -659,7 +659,7 @@ void RubySupportPart::projectClosed( )
}
}
-void RubySupportPart::contextMenu( QPopupMenu * popup, const Context * context )
+void RubySupportPart::contextMenu( TQPopupMenu * popup, const Context * context )
{
if (context->hasType(Context::FileContext)){
const FileContext *fc = static_cast<const FileContext*>(context);
@@ -668,7 +668,7 @@ void RubySupportPart::contextMenu( QPopupMenu * popup, const Context * context )
if (url.fileName().endsWith(".ui"))
{
m_contextFileName = url.fileName();
- int id = popup->insertItem(i18n("Create or Select Implementation..."), this, SLOT(slotCreateSubclass()));
+ 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."));
}
}
@@ -676,7 +676,7 @@ void RubySupportPart::contextMenu( QPopupMenu * popup, const Context * context )
void RubySupportPart::slotCreateSubclass()
{
- QFileInfo fi(m_contextFileName);
+ TQFileInfo fi(m_contextFileName);
if (fi.extension(false) != "ui")
return;
QtDesignerRubyIntegration *des = dynamic_cast<QtDesignerRubyIntegration*>(designer(KInterfaceDesigner::QtDesigner));
@@ -697,18 +697,18 @@ void RubySupportPart::slotSwitchToController()
KParts::ReadOnlyPart *ropart = dynamic_cast<KParts::ReadOnlyPart*>(activePart);
if (!ropart)
return;
- QFileInfo file(ropart->url().path());
+ TQFileInfo file(ropart->url().path());
if (!file.exists())
return;
- QString ext = file.extension();
- QString name = file.baseName();
- QString switchTo = "";
+ TQString ext = file.extension();
+ TQString name = file.baseName();
+ TQString switchTo = "";
if ((ext == "rb") && !name.endsWith("_controller"))
{
if (name.endsWith("_test"))
{
- switchTo = name.remove(QRegExp("_test$")); //the file is the test
- switchTo = name.remove(QRegExp("_controller$")); //remove functional test name parts
+ switchTo = name.remove(TQRegExp("_test$")); //the file is the test
+ switchTo = name.remove(TQRegExp("_controller$")); //remove functional test name parts
}
else
switchTo = name;
@@ -719,14 +719,14 @@ void RubySupportPart::slotSwitchToController()
//the controller basing on the directory information
switchTo = file.dir().dirName();
}
- QString controllersDir = project()->projectDirectory() + "/app/controllers/";
+ TQString controllersDir = project()->projectDirectory() + "/app/controllers/";
if (!switchTo.isEmpty())
{
if (switchTo.endsWith("s"))
switchTo = switchTo.mid(0, switchTo.length()-1);
- QString singular = controllersDir + switchTo + "_controller.rb";
- QString plural = controllersDir + switchTo + "s_controller.rb";
- KURL url = KURL::fromPathOrURL(QFile::exists(singular) ? singular : plural);
+ TQString singular = controllersDir + switchTo + "_controller.rb";
+ TQString plural = controllersDir + switchTo + "s_controller.rb";
+ KURL url = KURL::fromPathOrURL(TQFile::exists(singular) ? singular : plural);
partController()->editDocument(url);
}
}
@@ -739,12 +739,12 @@ void RubySupportPart::slotSwitchToTest()
KParts::ReadOnlyPart *ropart = dynamic_cast<KParts::ReadOnlyPart*>(activePart);
if (!ropart)
return;
- QFileInfo file(ropart->url().path());
+ TQFileInfo file(ropart->url().path());
if (!file.exists())
return;
- QString ext = file.extension();
- QString name = file.baseName();
- QString switchTo = "";
+ TQString ext = file.extension();
+ TQString name = file.baseName();
+ TQString switchTo = "";
if (ext == "rjs" || ext == "rxml" || ext == "rhtml" || ext == "js.rjs" || ext == "xml.builder" || ext == "html.erb")
{
@@ -752,7 +752,7 @@ void RubySupportPart::slotSwitchToTest()
switchTo = file.dir().dirName();
}
else if (ext == "rb")
- switchTo = name.remove(QRegExp("_controller$")).remove(QRegExp("_controller_test$")).remove(QRegExp("_test$"));
+ switchTo = name.remove(TQRegExp("_controller$")).remove(TQRegExp("_controller_test$")).remove(TQRegExp("_test$"));
if (switchTo.isEmpty())
return;
@@ -761,19 +761,19 @@ void RubySupportPart::slotSwitchToTest()
switchTo = switchTo.mid(0, switchTo.length() - 1);
KURL::List urls;
- QString testDir = project()->projectDirectory() + "/test/";
- QString functionalTestS = testDir + "functional/" + switchTo + "_controller_test.rb";
- QString functionalTestP = testDir + "functional/" + switchTo + "s_controller_test.rb";
- QString integrationTestS = testDir + "integration/" + switchTo + "_test.rb";
- QString integrationTestP = testDir + "integration/" + switchTo + "s_test.rb";
- QString unitTestS = testDir + "unit/" + switchTo + "_test.rb";
- QString unitTestP = testDir + "unit/" + switchTo + "s_test.rb";
- if (QFile::exists(functionalTestP)) urls << KURL::fromPathOrURL(functionalTestP);
- if (QFile::exists(integrationTestP)) urls << KURL::fromPathOrURL(integrationTestP);
- if (QFile::exists(unitTestP)) urls << KURL::fromPathOrURL(unitTestP);
- if (QFile::exists(functionalTestS)) urls << KURL::fromPathOrURL(functionalTestS);
- if (QFile::exists(integrationTestS)) urls << KURL::fromPathOrURL(integrationTestS);
- if (QFile::exists(unitTestS)) urls << KURL::fromPathOrURL(unitTestS);
+ TQString testDir = project()->projectDirectory() + "/test/";
+ TQString functionalTestS = testDir + "functional/" + switchTo + "_controller_test.rb";
+ TQString functionalTestP = testDir + "functional/" + switchTo + "s_controller_test.rb";
+ TQString integrationTestS = testDir + "integration/" + switchTo + "_test.rb";
+ TQString integrationTestP = testDir + "integration/" + switchTo + "s_test.rb";
+ TQString unitTestS = testDir + "unit/" + switchTo + "_test.rb";
+ TQString unitTestP = testDir + "unit/" + switchTo + "s_test.rb";
+ if (TQFile::exists(functionalTestP)) urls << KURL::fromPathOrURL(functionalTestP);
+ if (TQFile::exists(integrationTestP)) urls << KURL::fromPathOrURL(integrationTestP);
+ if (TQFile::exists(unitTestP)) urls << KURL::fromPathOrURL(unitTestP);
+ if (TQFile::exists(functionalTestS)) urls << KURL::fromPathOrURL(functionalTestS);
+ if (TQFile::exists(integrationTestS)) urls << KURL::fromPathOrURL(integrationTestS);
+ if (TQFile::exists(unitTestS)) urls << KURL::fromPathOrURL(unitTestS);
KDevQuickOpen *qo = extension<KDevQuickOpen>("KDevelop/QuickOpen");
if (qo && !urls.isEmpty())
@@ -788,12 +788,12 @@ void RubySupportPart::slotSwitchToModel()
KParts::ReadOnlyPart *ropart = dynamic_cast<KParts::ReadOnlyPart*>(activePart);
if (!ropart)
return;
- QFileInfo file(ropart->url().path());
+ TQFileInfo file(ropart->url().path());
if (!file.exists())
return;
- QString ext = file.extension();
- QString name = file.baseName();
- QString switchTo = "";
+ TQString ext = file.extension();
+ TQString name = file.baseName();
+ TQString switchTo = "";
if (ext == "rjs" || ext == "rxml" || ext == "rhtml" || ext == "js.rjs" || ext == "xml.builder" || ext == "html.erb")
{
@@ -802,7 +802,7 @@ void RubySupportPart::slotSwitchToModel()
}
else if (ext == "rb" && (name.endsWith("_controller") || name.endsWith("_test")))
{
- switchTo = name.remove(QRegExp("_controller$")).remove(QRegExp("_controller_test$")).remove(QRegExp("_test$"));
+ switchTo = name.remove(TQRegExp("_controller$")).remove(TQRegExp("_controller_test$")).remove(TQRegExp("_test$"));
}
if (switchTo.isEmpty())
@@ -811,10 +811,10 @@ void RubySupportPart::slotSwitchToModel()
if (switchTo.endsWith("s"))
switchTo = switchTo.mid(0, switchTo.length() - 1);
- QString modelsDir = project()->projectDirectory() + "/app/models/";
- QString singular = modelsDir + switchTo + "_controller.rb";
- QString plural = modelsDir + switchTo + "s_controller.rb";
- KURL url = KURL::fromPathOrURL(QFile::exists(singular) ? singular : plural);
+ TQString modelsDir = project()->projectDirectory() + "/app/models/";
+ TQString singular = modelsDir + switchTo + "_controller.rb";
+ TQString plural = modelsDir + switchTo + "s_controller.rb";
+ KURL url = KURL::fromPathOrURL(TQFile::exists(singular) ? singular : plural);
partController()->editDocument(KURL::fromPathOrURL(modelsDir + switchTo + ".rb"));
}
@@ -827,12 +827,12 @@ void RubySupportPart::slotSwitchToView()
KParts::ReadOnlyPart *ropart = dynamic_cast<KParts::ReadOnlyPart*>(activePart);
if (!ropart)
return;
- QFileInfo file(ropart->url().path());
+ TQFileInfo file(ropart->url().path());
if (!file.exists())
return;
- QString ext = file.extension();
- QString name = file.baseName();
- QString switchTo = "";
+ TQString ext = file.extension();
+ TQString name = file.baseName();
+ TQString switchTo = "";
if (ext == "rjs" || ext == "rxml" || ext == "rhtml" || ext == "js.rjs" || ext == "xml.builder" || ext == "html.erb")
{
@@ -840,7 +840,7 @@ void RubySupportPart::slotSwitchToView()
switchTo = file.dir().dirName();
}
else if (ext == "rb")
- switchTo = name.remove(QRegExp("_controller$")).remove(QRegExp("_controller_test$")).remove(QRegExp("_test$"));
+ switchTo = name.remove(TQRegExp("_controller$")).remove(TQRegExp("_controller_test$")).remove(TQRegExp("_test$"));
if (switchTo.isEmpty())
return;
@@ -849,9 +849,9 @@ void RubySupportPart::slotSwitchToView()
switchTo = switchTo.mid(0, switchTo.length() - 1);
KURL::List urls;
- QDir viewsDir;
- QDir viewsDirS = QDir(project()->projectDirectory() + "/app/views/" + switchTo);
- QDir viewsDirP = QDir(project()->projectDirectory() + "/app/views/" + switchTo + "s");
+ TQDir viewsDir;
+ TQDir viewsDirS = TQDir(project()->projectDirectory() + "/app/views/" + switchTo);
+ TQDir viewsDirP = TQDir(project()->projectDirectory() + "/app/views/" + switchTo + "s");
if (viewsDirS.exists())
viewsDir = viewsDirS;
else if (viewsDirP.exists())
@@ -859,11 +859,11 @@ void RubySupportPart::slotSwitchToView()
else
return;
- QStringList views = viewsDir.entryList();
+ TQStringList views = viewsDir.entryList();
- for (QStringList::const_iterator it = views.begin(); it != views.end(); ++it)
+ for (TQStringList::const_iterator it = views.begin(); it != views.end(); ++it)
{
- QString viewName = *it;
+ TQString viewName = *it;
if ( !(viewName.endsWith("~") || viewName == "." || viewName == "..") )
urls << KURL::fromPathOrURL(viewsDir.absPath() + "/" + viewName);
}
@@ -879,7 +879,7 @@ void RubySupportPart::slotRunTestUnderCursor()
return;
KParts::ReadOnlyPart *ro_part = dynamic_cast<KParts::ReadOnlyPart*>(partController()->activePart());
- QString prog;
+ TQString prog;
if (ro_part != 0) {
prog = ro_part->url().path();
} else
@@ -894,8 +894,8 @@ void RubySupportPart::slotRunTestUnderCursor()
FunctionDom fun = hlp.functionAt(line, column);
if (fun == 0) return;
- QFileInfo program(prog);
- QString cmd = QString("%1 -K%2 -C\"%3\" -I\"%4\" \"%5\" %6")
+ TQFileInfo program(prog);
+ TQString cmd = TQString("%1 -K%2 -C\"%3\" -I\"%4\" \"%5\" %6")
.arg(interpreter())
.arg(characterCoding())
.arg(runDirectory())
diff --git a/languages/ruby/rubysupport_part.h b/languages/ruby/rubysupport_part.h
index 0d420cff..bc5e2552 100644
--- a/languages/ruby/rubysupport_part.h
+++ b/languages/ruby/rubysupport_part.h
@@ -6,7 +6,7 @@
#ifndef __KDEVPART_RUBYSUPPORT_H__
#define __KDEVPART_RUBYSUPPORT_H__
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
#include "kdevlanguagesupport.h"
@@ -21,7 +21,7 @@ class RubySupportPart : public KDevLanguageSupport
public:
- RubySupportPart(QObject *parent, const char *name, const QStringList &);
+ RubySupportPart(TQObject *parent, const char *name, const TQStringList &);
virtual ~RubySupportPart();
virtual KDevDesignerIntegration *designer(KInterfaceDesigner::DesignerType type);
@@ -35,12 +35,12 @@ private slots:
void projectOpened();
void projectClosed();
void savedFile(const KURL &fileName);
- void addedFilesToProject(const QStringList &fileList);
- void removedFilesFromProject(const QStringList &fileList);
+ void addedFilesToProject(const TQStringList &fileList);
+ void removedFilesFromProject(const TQStringList &fileList);
void slotRun();
void slotRunTestUnderCursor();
void slotCreateSubclass();
- void contextMenu(QPopupMenu *popup, const Context *context);
+ void contextMenu(TQPopupMenu *popup, const Context *context);
void slotBrowse();
void initialParse();
@@ -51,23 +51,23 @@ private slots:
void slotSwitchToTest();
private:
- void startApplication(const QString &program);
- QString interpreter();
- QString shell();
- QString mainProgram();
- QString runDirectory();
- QString programArgs();
- QString characterCoding();
+ void startApplication(const TQString &program);
+ TQString interpreter();
+ TQString shell();
+ TQString mainProgram();
+ TQString runDirectory();
+ TQString programArgs();
+ TQString characterCoding();
- void maybeParse(const QString fileName);
- void parse(const QString &fileName);
+ void maybeParse(const TQString fileName);
+ void parse(const TQString &fileName);
- QMap<KInterfaceDesigner::DesignerType, KDevDesignerIntegration*> m_designers;
+ TQMap<KInterfaceDesigner::DesignerType, KDevDesignerIntegration*> m_designers;
- QString m_contextFileName;
- QCString m_shell;
+ TQString m_contextFileName;
+ TQCString m_shell;
- QGuardedPtr<KDevShellWidget> m_shellWidget;
+ TQGuardedPtr<KDevShellWidget> m_shellWidget;
};
diff --git a/languages/sql/sqlactions.cpp b/languages/sql/sqlactions.cpp
index 8cfac095..df8ba309 100644
--- a/languages/sql/sqlactions.cpp
+++ b/languages/sql/sqlactions.cpp
@@ -11,9 +11,9 @@
#include "sqlactions.h"
-#include <qpopupmenu.h>
-#include <qstringlist.h>
-#include <qsqldatabase.h>
+#include <tqpopupmenu.h>
+#include <tqstringlist.h>
+#include <tqsqldatabase.h>
#include <kdebug.h>
#include <klocale.h>
@@ -25,9 +25,9 @@
#include "kdevlanguagesupport.h"
#include "sqlsupport_part.h"
-SqlListAction::SqlListAction(SQLSupportPart *part, const QString &text,
+SqlListAction::SqlListAction(SQLSupportPart *part, const TQString &text,
const KShortcut& cut,
- const QObject *receiver, const char *slot,
+ 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)
{
@@ -39,8 +39,8 @@ SqlListAction::SqlListAction(SQLSupportPart *part, const QString &text,
m_combo->setMinimumWidth( 200 );
m_combo->setMaximumWidth( 400 );
- connect( m_combo, SIGNAL(activated(const QString&)), receiver, slot );
- connect( m_combo, SIGNAL(activated(int)), this, SLOT(activated(int)) );
+ connect( m_combo, TQT_SIGNAL(activated(const TQString&)), receiver, slot );
+ connect( m_combo, TQT_SIGNAL(activated(int)), this, TQT_SLOT(activated(int)) );
setShortcutConfigurable( false );
setAutoSized( true );
@@ -49,7 +49,7 @@ SqlListAction::SqlListAction(SQLSupportPart *part, const QString &text,
}
-void SqlListAction::setCurrentConnectionName(const QString &name)
+void SqlListAction::setCurrentConnectionName(const TQString &name)
{
int idx = m_part->connections().findIndex( name );
if ( idx < 0 )
@@ -59,10 +59,10 @@ void SqlListAction::setCurrentConnectionName(const QString &name)
}
-QString SqlListAction::currentConnectionName() const
+TQString SqlListAction::currentConnectionName() const
{
if ( m_combo->currentItem() <= 0 )
- return QString::null;
+ return TQString::null;
return m_part->connections()[ m_combo->currentItem() - 1 ];
}
@@ -70,22 +70,22 @@ void SqlListAction::activated(int idx)
{
if (idx < 1 || (int)m_part->connections().count() <= idx)
return;
- const QSqlDatabase *db = QSqlDatabase::database(m_part->connections()[idx], true);
+ const TQSqlDatabase *db = TQSqlDatabase::database(m_part->connections()[idx], true);
m_combo->changeItem( db->isOpen() ? SmallIcon( "ok" ) : SmallIcon( "no" ),
m_combo->text(idx), idx );
}
void SqlListAction::refresh()
{
- const QStringList& dbc = m_part->connections();
+ const TQStringList& dbc = m_part->connections();
m_combo->clear();
m_combo->insertItem( i18n("<no database server>") );
- QString cName;
- for ( QStringList::ConstIterator it = dbc.begin(); it != dbc.end(); ++it ) {
+ TQString cName;
+ for ( TQStringList::ConstIterator it = dbc.begin(); it != dbc.end(); ++it ) {
- QSqlDatabase* db = QSqlDatabase::database( (*it), false );
+ 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 ) );
diff --git a/languages/sql/sqlactions.h b/languages/sql/sqlactions.h
index e49794e5..8cc7b5df 100644
--- a/languages/sql/sqlactions.h
+++ b/languages/sql/sqlactions.h
@@ -23,11 +23,11 @@ class SqlListAction : public KWidgetAction
{
Q_OBJECT
public:
- SqlListAction( SQLSupportPart *part, const QString &text, const KShortcut& cut,
- const QObject *receiver, const char *slot,
+ SqlListAction( SQLSupportPart *part, const TQString &text, const KShortcut& cut,
+ const TQObject *receiver, const char *slot,
KActionCollection *parent, const char *name );
- void setCurrentConnectionName(const QString &name);
- QString currentConnectionName() const;
+ void setCurrentConnectionName(const TQString &name);
+ TQString currentConnectionName() const;
void refresh();
private slots:
diff --git a/languages/sql/sqlconfigwidget.ui.h b/languages/sql/sqlconfigwidget.ui.h
index c99d8722..26a9fb0b 100644
--- a/languages/sql/sqlconfigwidget.ui.h
+++ b/languages/sql/sqlconfigwidget.ui.h
@@ -7,11 +7,11 @@
** place of a destructor.
*****************************************************************************/
-#include <qsqldatabase.h>
-#include <qcombobox.h>
-#include <qspinbox.h>
-#include <qdom.h>
-#include <qstringlist.h>
+#include <tqsqldatabase.h>
+#include <tqcombobox.h>
+#include <tqspinbox.h>
+#include <tqdom.h>
+#include <tqstringlist.h>
#include <klocale.h>
#include <klineedit.h>
@@ -25,23 +25,23 @@
class PluginTableItem: public QTableItem
{
public:
- PluginTableItem( QTable* table, const QString& text = QString::null ): QTableItem( table, QTableItem::OnTyping, text ) {}
+ PluginTableItem( TQTable* table, const TQString& text = TQString::null ): TQTableItem( table, TQTableItem::OnTyping, text ) {}
- virtual QWidget* createEditor() const
+ virtual TQWidget* createEditor() const
{
- QComboBox* combo = new QComboBox( true, table() );
- combo->insertStringList( QSqlDatabase::drivers() );
+ TQComboBox* combo = new TQComboBox( true, table() );
+ combo->insertStringList( TQSqlDatabase::drivers() );
if ( !text().isEmpty() )
combo->setCurrentText( text() );
return combo;
}
- virtual void setContentFromEditor( QWidget* w )
+ virtual void setContentFromEditor( TQWidget* w )
{
- if ( w->inherits( "QComboBox" ) )
- setText( ( (QComboBox*)w )->currentText() );
+ if ( w->inherits( "TQComboBox" ) )
+ setText( ( (TQComboBox*)w )->currentText() );
else
- QTableItem::setContentFromEditor( w );
+ TQTableItem::setContentFromEditor( w );
}
};
@@ -49,23 +49,23 @@ public:
class PortTableItem: public QTableItem
{
public:
- PortTableItem( QTable* table, const QString& text = QString::null ): QTableItem( table, QTableItem::OnTyping, text ) {}
+ PortTableItem( TQTable* table, const TQString& text = TQString::null ): TQTableItem( table, TQTableItem::OnTyping, text ) {}
- virtual QWidget* createEditor() const
+ virtual TQWidget* createEditor() const
{
- QSpinBox* sb = new QSpinBox( -1, 65535, 1, table() );
+ TQSpinBox* sb = new TQSpinBox( -1, 65535, 1, table() );
sb->setSpecialValueText( i18n("Default") );
if ( !text().isEmpty() )
sb->setValue( text().toInt() );
return sb;
}
- virtual void setContentFromEditor( QWidget* w )
+ virtual void setContentFromEditor( TQWidget* w )
{
- if ( w->inherits( "QSpinBox" ) )
- setText( ( (QSpinBox*)w )->text() );
+ if ( w->inherits( "TQSpinBox" ) )
+ setText( ( (TQSpinBox*)w )->text() );
else
- QTableItem::setContentFromEditor( w );
+ TQTableItem::setContentFromEditor( w );
}
};
@@ -73,33 +73,33 @@ public:
class PasswordTableItem: public QTableItem
{
public:
- PasswordTableItem( QTable* table, const QString& text = QString::null ): QTableItem( table, QTableItem::OnTyping, text ) {}
+ PasswordTableItem( TQTable* table, const TQString& text = TQString::null ): TQTableItem( table, TQTableItem::OnTyping, text ) {}
- virtual QWidget* createEditor() const
+ virtual TQWidget* createEditor() const
{
KLineEdit* le = new KLineEdit( table() );
- le->setEchoMode( QLineEdit::Password );
+ le->setEchoMode( TQLineEdit::Password );
return le;
}
- virtual void setContentFromEditor( QWidget* w )
+ virtual void setContentFromEditor( TQWidget* w )
{
if ( w->inherits( "KLineEdit" ) ) {
password = ( (KLineEdit*)w )->text();
- setText( QString().fill( '*', password.length() ) );
+ setText( TQString().fill( '*', password.length() ) );
} else {
- QTableItem::setContentFromEditor( w );
+ TQTableItem::setContentFromEditor( w );
}
}
- virtual void setText(const QString& bogus)
+ virtual void setText(const TQString& bogus)
{
- QTableItem::setText(QString().fill('*', bogus.length()));
+ TQTableItem::setText(TQString().fill('*', bogus.length()));
}
- QString password;
+ TQString password;
};
-static bool isEmptyRow( QTable* tbl, int row )
+static bool isEmptyRow( TQTable* tbl, int row )
{
for ( int i = 0; i < tbl->numCols(); i++ ) {
if ( !tbl->text( row, i ).isEmpty() )
@@ -119,7 +119,7 @@ void SqlConfigWidget::init()
changed = false;
}
-static void addRow( QTable* dbTable )
+static void addRow( TQTable* dbTable )
{
dbTable->insertRows( dbTable->numRows() );
dbTable->setItem( dbTable->numRows() - 1, 0,
@@ -163,19 +163,19 @@ void SqlConfigWidget::updateButtons()
void SqlConfigWidget::testDb()
{
- static const QString cName( "SqlConfigWidgetTest" );
+ static const TQString cName( "SqlConfigWidgetTest" );
int cr = dbTable->currentRow();
if (cr < 0)
return;
- QSqlDatabase* db = QSqlDatabase::addDatabase( dbTable->text( cr, 0 ), cName );
+ TQSqlDatabase* db = TQSqlDatabase::addDatabase( dbTable->text( cr, 0 ), cName );
db->setDatabaseName( dbTable->text( cr, 1 ) );
db->setHostName( dbTable->text( cr, 2 ) );
bool ok;
int port = dbTable->text( cr, 3 ).toInt( &ok );
if (ok && port >= 0)
db->setPort( port );
- QString pass = ((PasswordTableItem*)dbTable->item( cr, 5 ))->password;
+ TQString pass = ((PasswordTableItem*)dbTable->item( cr, 5 ))->password;
if ( db->open( dbTable->text( cr, 4 ), pass ) ) {
KMessageBox::information( this, i18n("Connection successful") );
@@ -187,7 +187,7 @@ void SqlConfigWidget::testDb()
}
db = 0;
- QSqlDatabase::removeDatabase( cName );
+ TQSqlDatabase::removeDatabase( cName );
}
@@ -195,18 +195,18 @@ void SqlConfigWidget::accept()
{
Q_ASSERT( doc );
- QDomElement dbElem = DomUtil::createElementByPath( *doc, "/kdevsqlsupport/servers" );
+ TQDomElement dbElem = DomUtil::createElementByPath( *doc, "/kdevsqlsupport/servers" );
DomUtil::makeEmpty( dbElem );
for ( int i = 0; i < dbTable->numRows() - 1; i++ ) {
- QStringList db;
+ TQStringList db;
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 );
DomUtil::writeListEntry( *doc,
- "/kdevsqlsupport/servers/server" + QString::number( i ),
+ "/kdevsqlsupport/servers/server" + TQString::number( i ),
"el", db );
}
if ( changed )
@@ -214,7 +214,7 @@ void SqlConfigWidget::accept()
}
-void SqlConfigWidget::setProjectDom( QDomDocument * doc )
+void SqlConfigWidget::setProjectDom( TQDomDocument * doc )
{
this->doc = doc;
}
@@ -224,10 +224,10 @@ void SqlConfigWidget::loadConfig()
{
Q_ASSERT( doc );
- QStringList db;
+ TQStringList db;
int i = 0;
while ( true ) {
- QStringList db = DomUtil::readListEntry( *doc, "kdevsqlsupport/servers/server" + QString::number( i ), "el" );
+ TQStringList db = DomUtil::readListEntry( *doc, "kdevsqlsupport/servers/server" + TQString::number( i ), "el" );
if ( db.isEmpty() )
return;
diff --git a/languages/sql/sqloutputwidget.cpp b/languages/sql/sqloutputwidget.cpp
index a0d7368d..f7d84fde 100644
--- a/languages/sql/sqloutputwidget.cpp
+++ b/languages/sql/sqloutputwidget.cpp
@@ -9,16 +9,16 @@
* *
***************************************************************************/
-#include <qsqldatabase.h>
-#include <qsqlerror.h>
-#include <qsqlcursor.h>
-#include <qsqldriver.h>
-#include <qsqlrecord.h>
-#include <qwidgetstack.h>
-#include <qdatatable.h>
-#include <qtextedit.h>
-#include <qlayout.h>
-#include <qstylesheet.h>
+#include <tqsqldatabase.h>
+#include <tqsqlerror.h>
+#include <tqsqlcursor.h>
+#include <tqsqldriver.h>
+#include <tqsqlrecord.h>
+#include <tqwidgetstack.h>
+#include <tqdatatable.h>
+#include <tqtextedit.h>
+#include <tqlayout.h>
+#include <tqstylesheet.h>
#include <klocale.h>
@@ -27,56 +27,56 @@
class QCustomSqlCursor: public QSqlCursor
{
public:
- QCustomSqlCursor( const QString & query = QString::null, bool autopopulate = TRUE, QSqlDatabase* db = 0 ) :
- QSqlCursor( QString::null, autopopulate, db )
+ QCustomSqlCursor( const TQString & query = TQString::null, bool autopopulate = TRUE, TQSqlDatabase* db = 0 ) :
+ TQSqlCursor( TQString::null, autopopulate, db )
{
exec( query );
if ( isSelect() && autopopulate ) {
- QSqlRecordInfo inf = ((QSqlQuery*)this)->driver()->recordInfo( *(QSqlQuery*)this );
- for ( QSqlRecordInfo::iterator it = inf.begin(); it != inf.end(); ++it ) {
+ TQSqlRecordInfo inf = ((TQSqlQuery*)this)->driver()->recordInfo( *(TQSqlQuery*)this );
+ for ( TQSqlRecordInfo::iterator it = inf.begin(); it != inf.end(); ++it ) {
append( *it );
}
}
- setMode( QSqlCursor::ReadOnly );
+ setMode( TQSqlCursor::ReadOnly );
}
- QCustomSqlCursor( const QCustomSqlCursor & other ): QSqlCursor( other ) {}
- bool select( const QString & /*filter*/, const QSqlIndex & /*sort*/ = QSqlIndex() )
+ QCustomSqlCursor( const QCustomSqlCursor & other ): TQSqlCursor( other ) {}
+ bool select( const TQString & /*filter*/, const TQSqlIndex & /*sort*/ = TQSqlIndex() )
{ return exec( lastQuery() ); }
- QSqlIndex primaryIndex( bool /*prime*/ = TRUE ) const
- { return QSqlIndex(); }
+ TQSqlIndex primaryIndex( bool /*prime*/ = TRUE ) const
+ { return TQSqlIndex(); }
int insert( bool /*invalidate*/ = TRUE )
{ return FALSE; }
int update( bool /*invalidate*/ = TRUE )
{ return FALSE; }
int del( bool /*invalidate*/ = TRUE )
{ return FALSE; }
- void setName( const QString& /*name*/, bool /*autopopulate*/ = TRUE ) {}
+ void setName( const TQString& /*name*/, bool /*autopopulate*/ = TRUE ) {}
};
-SqlOutputWidget::SqlOutputWidget ( QWidget* parent, const char* name ) :
- QWidget( parent, name )
+SqlOutputWidget::SqlOutputWidget ( TQWidget* parent, const char* name ) :
+ TQWidget( parent, name )
{
- m_stack = new QWidgetStack( this );
- m_table = new QDataTable( this );
- m_textEdit = new QTextEdit( this );
+ m_stack = new TQWidgetStack( this );
+ m_table = new TQDataTable( this );
+ m_textEdit = new TQTextEdit( this );
- m_textEdit->setTextFormat( QTextEdit::RichText );
+ m_textEdit->setTextFormat( TQTextEdit::RichText );
m_textEdit->setReadOnly( true );
m_stack->addWidget( m_textEdit );
m_stack->addWidget( m_table );
- QVBoxLayout* layout = new QVBoxLayout( this );
+ TQVBoxLayout* layout = new TQVBoxLayout( this );
layout->addWidget( m_stack );
}
SqlOutputWidget::~SqlOutputWidget()
{}
-void SqlOutputWidget::showQuery( const QString& connectionName, const QString& query )
+void SqlOutputWidget::showQuery( const TQString& connectionName, const TQString& query )
{
- QSqlDatabase* db = QSqlDatabase::database( connectionName, true );
+ TQSqlDatabase* db = TQSqlDatabase::database( connectionName, true );
if ( !db ) {
showError( i18n("No such connection: %1").arg( connectionName ) );
return;
@@ -86,12 +86,12 @@ void SqlOutputWidget::showQuery( const QString& connectionName, const QString& q
return;
}
- QSqlCursor* cur = new QCustomSqlCursor( query, true, db );
+ TQSqlCursor* cur = new QCustomSqlCursor( query, true, db );
if ( !cur->isActive() ) {
showError( cur->lastError() );
} else if ( cur->isSelect() ) {
m_table->setSqlCursor( cur, true, true );
- m_table->refresh( QDataTable::RefreshAll );
+ m_table->refresh( TQDataTable::RefreshAll );
m_stack->raiseWidget( m_table );
} else {
showSuccess( cur->numRowsAffected() );
@@ -105,21 +105,21 @@ void SqlOutputWidget::showSuccess( int rowsAffected )
m_stack->raiseWidget( m_textEdit );
}
-void SqlOutputWidget::showError( const QString& message )
+void SqlOutputWidget::showError( const TQString& message )
{
m_textEdit->clear();
m_textEdit->setText( "<p><b>" + i18n("An error occurred:") + "</b></p>\n" + message );
m_stack->raiseWidget( m_textEdit );
}
-void SqlOutputWidget::showError( const QSqlError& message )
+void SqlOutputWidget::showError( const TQSqlError& message )
{
m_textEdit->clear();
m_textEdit->setText( "<p><b>" + i18n("An error occurred:") +
"</b></p>\n<p><i>" + i18n("Driver") + "</i>: " +
- QStyleSheet::escape( message.driverText() ) +
+ TQStyleSheet::escape( message.driverText() ) +
"<br><i>" + i18n("Database") + ":</i>: " +
- QStyleSheet::escape( message.databaseText() ) );
+ TQStyleSheet::escape( message.databaseText() ) );
m_stack->raiseWidget( m_textEdit );
}
diff --git a/languages/sql/sqloutputwidget.h b/languages/sql/sqloutputwidget.h
index 40c8612a..c7393bb6 100644
--- a/languages/sql/sqloutputwidget.h
+++ b/languages/sql/sqloutputwidget.h
@@ -12,7 +12,7 @@
#ifndef _SQLOUTPUTWIDGET_H_
#define _SQLOUTPUTWIDGET_H_
-#include <qwidget.h>
+#include <tqwidget.h>
class QWidgetStack;
class QDataTable;
@@ -24,20 +24,20 @@ class SqlOutputWidget : public QWidget
Q_OBJECT
public:
- SqlOutputWidget( QWidget* parent = 0, const char* name = 0 );
+ SqlOutputWidget( TQWidget* parent = 0, const char* name = 0 );
virtual ~SqlOutputWidget();
public:
- void showQuery( const QString& connectionName, const QString& query );
- void showError( const QSqlError& error );
+ void showQuery( const TQString& connectionName, const TQString& query );
+ void showError( const TQSqlError& error );
private:
- void showError( const QString& msg );
+ void showError( const TQString& msg );
void showSuccess( int rowsAffected );
- QWidgetStack* m_stack;
- QDataTable* m_table;
- QTextEdit* m_textEdit;
+ TQWidgetStack* m_stack;
+ TQDataTable* m_table;
+ TQTextEdit* m_textEdit;
};
#endif
diff --git a/languages/sql/sqlsupport_part.cpp b/languages/sql/sqlsupport_part.cpp
index c1e13ac0..78c1c1f2 100644
--- a/languages/sql/sqlsupport_part.cpp
+++ b/languages/sql/sqlsupport_part.cpp
@@ -1,9 +1,9 @@
#include "sqlsupport_part.h"
-#include <qwhatsthis.h>
-#include <qstringlist.h>
-#include <qtimer.h>
-#include <qsqldatabase.h>
-#include <qsqlrecord.h>
+#include <tqwhatsthis.h>
+#include <tqstringlist.h>
+#include <tqtimer.h>
+#include <tqsqldatabase.h>
+#include <tqsqlrecord.h>
#include <kapplication.h>
#include <kiconloader.h>
@@ -33,31 +33,31 @@ typedef KDevGenericFactory<SQLSupportPart> SQLSupportFactory;
static const KDevPluginInfo data("kdevsqlsupport");
K_EXPORT_COMPONENT_FACTORY( libkdevsqlsupport, SQLSupportFactory( data ) )
-SQLSupportPart::SQLSupportPart( QObject *parent, const char *name, const QStringList& )
+SQLSupportPart::SQLSupportPart( TQObject *parent, const char *name, const TQStringList& )
: KDevLanguageSupport ( &data, parent, name ? name : "SQLSupportPart" )
{
setInstance( SQLSupportFactory::instance() );
setXMLFile( "kdevsqlsupport.rc" );
KAction *action;
- action = new KAction( i18n( "&Run" ), "exec", Key_F9, this, SLOT( slotRun() ), actionCollection(), "build_execute" );
+ action = new KAction( i18n( "&Run" ), "exec", Key_F9, this, TQT_SLOT( slotRun() ), actionCollection(), "build_execute" );
action->setToolTip(i18n("Run"));
action->setWhatsThis(i18n("<b>Run</b><p>Executes a SQL script."));
- dbAction = new SqlListAction( this, i18n( "&Database Connections" ), 0, this, SLOT(activeConnectionChanged()), actionCollection(), "connection_combo" );
+ dbAction = new SqlListAction( this, i18n( "&Database Connections" ), 0, this, TQT_SLOT(activeConnectionChanged()), actionCollection(), "connection_combo" );
kdDebug( 9000 ) << "Creating SQLSupportPart" << endl;
- connect( core(), SIGNAL( projectConfigWidget( KDialogBase* ) ),
- this, SLOT( projectConfigWidget( KDialogBase* ) ) );
- connect( core(), SIGNAL(projectOpened()), this, SLOT(projectOpened()) );
- connect( core(), SIGNAL(projectClosed()), this, SLOT(projectClosed()) );
- connect( core(), SIGNAL(languageChanged()), this, SLOT(projectOpened()) );
- connect( partController(), SIGNAL( savedFile( const KURL& ) ), this, SLOT( savedFile( const KURL& ) ) );
+ connect( core(), TQT_SIGNAL( projectConfigWidget( KDialogBase* ) ),
+ this, TQT_SLOT( projectConfigWidget( KDialogBase* ) ) );
+ connect( core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(projectOpened()) );
+ connect( core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(projectClosed()) );
+ connect( core(), TQT_SIGNAL(languageChanged()), this, TQT_SLOT(projectOpened()) );
+ connect( partController(), TQT_SIGNAL( savedFile( const KURL& ) ), this, TQT_SLOT( savedFile( const KURL& ) ) );
m_widget = new SqlOutputWidget();
mainWindow()->embedOutputView( m_widget, i18n( "SQL" ), i18n( "Output of SQL commands" ) );
- QWhatsThis::add(m_widget, i18n("<b>Output of SQL commands</b><p>This window shows the output of SQL commands being executed. It can display results of SQL \"select\" commands in a table."));
+ TQWhatsThis::add(m_widget, i18n("<b>Output of SQL commands</b><p>This window shows the output of SQL commands being executed. It can display results of SQL \"select\" commands in a table."));
}
@@ -67,12 +67,12 @@ SQLSupportPart::~SQLSupportPart()
delete m_widget;
}
-QString SQLSupportPart::cryptStr(const QString& aStr)
+TQString SQLSupportPart::cryptStr(const TQString& aStr)
{
- QString result;
+ TQString result;
for (unsigned int i = 0; i < aStr.length(); i++)
result += (aStr[i].unicode() < 0x20) ? aStr[i] :
- QChar(0x1001F - aStr[i].unicode());
+ TQChar(0x1001F - aStr[i].unicode());
return result;
}
@@ -83,10 +83,10 @@ void SQLSupportPart::activeConnectionChanged()
void SQLSupportPart::clearConfig()
{
- for ( QStringList::Iterator it = conNames.begin(); it != conNames.end(); ++it ) {
- if ( QSqlDatabase::contains( *it ) ) {
- QSqlDatabase::database( *it, false )->close();
- QSqlDatabase::removeDatabase( *it );
+ for ( TQStringList::Iterator it = conNames.begin(); it != conNames.end(); ++it ) {
+ if ( TQSqlDatabase::contains( *it ) ) {
+ TQSqlDatabase::database( *it, false )->close();
+ TQSqlDatabase::removeDatabase( *it );
} else {
kdDebug( 9000 ) << "Could not find connection named " << (*it) << endl;
}
@@ -100,20 +100,20 @@ void SQLSupportPart::loadConfig()
{
clearConfig();
- QDomDocument* doc = projectDom();
+ TQDomDocument* doc = projectDom();
- QStringList db;
+ TQStringList db;
int i = 0;
- QString conName;
+ TQString conName;
while ( true ) {
- QStringList sdb = DomUtil::readListEntry( *doc, "kdevsqlsupport/servers/server" + QString::number( i ), "el" );
+ TQStringList sdb = DomUtil::readListEntry( *doc, "kdevsqlsupport/servers/server" + TQString::number( i ), "el" );
if ( (int)sdb.size() < 6 )
break;
conName = "KDEVSQLSUPPORT_";
- conName += QString::number( i );
+ conName += TQString::number( i );
conNames << conName;
- QSqlDatabase* db = QSqlDatabase::addDatabase( sdb[0], QString( "KDEVSQLSUPPORT_%1" ).arg( i ) );
+ TQSqlDatabase* db = TQSqlDatabase::addDatabase( sdb[0], TQString( "KDEVSQLSUPPORT_%1" ).arg( i ) );
db->setDatabaseName( sdb[1] );
db->setHostName( sdb[2] );
bool ok;
@@ -132,26 +132,26 @@ void SQLSupportPart::loadConfig()
void SQLSupportPart::projectConfigWidget( KDialogBase *dlg )
{
- QVBox *vbox = dlg->addVBoxPage( QString( "SQL" ), i18n( "Specify Your Database Connections" ), BarIcon("source", KIcon::SizeMedium) );
- SqlConfigWidget *w = new SqlConfigWidget( (QWidget*)vbox, "SQL config widget" );
+ TQVBox *vbox = dlg->addVBoxPage( TQString( "SQL" ), i18n( "Specify Your Database Connections" ), BarIcon("source", KIcon::SizeMedium) );
+ SqlConfigWidget *w = new SqlConfigWidget( (TQWidget*)vbox, "SQL config widget" );
w->setProjectDom( projectDom() );
w->loadConfig();
- connect( dlg, SIGNAL(okClicked()), w, SLOT(accept()) );
- connect( w, SIGNAL(newConfigSaved()), this, SLOT(loadConfig()) );
+ connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()) );
+ connect( w, TQT_SIGNAL(newConfigSaved()), this, TQT_SLOT(loadConfig()) );
}
void SQLSupportPart::projectOpened()
{
- connect( project(), SIGNAL( addedFilesToProject( const QStringList & ) ),
- this, SLOT( addedFilesToProject( const QStringList & ) ) );
- connect( project(), SIGNAL( removedFilesFromProject( const QStringList & ) ),
- this, SLOT( removedFilesFromProject( const QStringList & ) ) );
+ connect( project(), TQT_SIGNAL( addedFilesToProject( const TQStringList & ) ),
+ this, TQT_SLOT( addedFilesToProject( const TQStringList & ) ) );
+ connect( project(), TQT_SIGNAL( removedFilesFromProject( const TQStringList & ) ),
+ this, TQT_SLOT( removedFilesFromProject( const TQStringList & ) ) );
loadConfig();
// We want to parse only after all components have been
// properly initialized
- QTimer::singleShot( 0, this, SLOT( parse() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( parse() ) );
}
@@ -162,7 +162,7 @@ void SQLSupportPart::projectClosed()
void SQLSupportPart::slotRun ()
{
- QString cName = dbAction->currentConnectionName();
+ TQString cName = dbAction->currentConnectionName();
if ( cName.isEmpty() ) {
KMessageBox::sorry( 0, i18n("Please select a valid database connection.") );
return;
@@ -177,16 +177,16 @@ void SQLSupportPart::slotRun ()
}
#if 0
-static QString dbCaption(const QSqlDatabase* db)
+static TQString dbCaption(const TQSqlDatabase* db)
{
- QString res;
+ TQString res;
if (!db)
return res;
res = db->driverName();
- res += QString::fromLatin1("@");
+ res += TQString::fromLatin1("@");
res += db->hostName();
if (db->port() >= 0)
- res += QString::fromLatin1(":") + QString::number(db->port());
+ res += TQString::fromLatin1(":") + TQString::number(db->port());
return res;
}
#endif
@@ -203,7 +203,7 @@ void SQLSupportPart::updateCatalog()
codeModel()->wipeout();
- QString curConnection = dbAction->currentConnectionName();
+ TQString curConnection = dbAction->currentConnectionName();
if (curConnection.isEmpty()) {
emit updatedSourceInfo();
return;
@@ -211,20 +211,20 @@ void SQLSupportPart::updateCatalog()
FileDom dbf = codeModel()->create<FileModel>();
dbf->setName(dbAction->currentConnectionName());
- QSqlDatabase *db = QSqlDatabase::database(dbAction->currentConnectionName(), true);
+ TQSqlDatabase *db = TQSqlDatabase::database(dbAction->currentConnectionName(), true);
// tables are classes and fields are methods
if (db->isOpen()) {
- QSqlRecord inf;
- QStringList tables = db->tables();
- for (QStringList::Iterator it = tables.begin(); it != tables.end(); ++it) {
+ TQSqlRecord inf;
+ TQStringList tables = db->tables();
+ for (TQStringList::Iterator it = tables.begin(); it != tables.end(); ++it) {
ClassDom dbc = codeModel()->create<ClassModel>();
dbc->setName(*it);
inf = db->record(*it);
for (int i = 0; i < (int)inf.count(); ++i) {
FunctionDom dbv = codeModel()->create<FunctionModel>();
dbv->setName(inf.fieldName(i));
- dbv->setResultType(QVariant::typeToName(inf.field(i)->type()));
+ dbv->setResultType(TQVariant::typeToName(inf.field(i)->type()));
dbc->addFunction(dbv);
}
dbf->addClass(dbc);
@@ -236,9 +236,9 @@ void SQLSupportPart::updateCatalog()
emit updatedSourceInfo();
}
-void SQLSupportPart::addedFilesToProject( const QStringList &fileList )
+void SQLSupportPart::addedFilesToProject( const TQStringList &fileList )
{
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = fileList.begin(); it != fileList.end(); ++it ) {
// parse( project() ->projectDirectory() + "/" + ( *it ) );
@@ -248,9 +248,9 @@ void SQLSupportPart::addedFilesToProject( const QStringList &fileList )
}
-void SQLSupportPart::removedFilesFromProject( const QStringList &fileList )
+void SQLSupportPart::removedFilesFromProject( const TQStringList &fileList )
{
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = fileList.begin(); it != fileList.end(); ++it ) {
// classStore() ->removeWithReferences( project() ->projectDirectory() + "/" + ( *it ) );
diff --git a/languages/sql/sqlsupport_part.h b/languages/sql/sqlsupport_part.h
index e9ad6dbd..187a4bbd 100644
--- a/languages/sql/sqlsupport_part.h
+++ b/languages/sql/sqlsupport_part.h
@@ -1,8 +1,8 @@
#ifndef __KDEVPART_SQLSUPPORT_H__
#define __KDEVPART_SQLSUPPORT_H__
-#include <qguardedptr.h>
-#include <qstringlist.h>
+#include <tqguardedptr.h>
+#include <tqstringlist.h>
#include <kprocess.h>
#include <kdialogbase.h>
@@ -20,11 +20,11 @@ class SQLSupportPart : public KDevLanguageSupport
public:
- SQLSupportPart(QObject *parent, const char *name, const QStringList &);
+ SQLSupportPart(TQObject *parent, const char *name, const TQStringList &);
virtual ~SQLSupportPart();
- static QString cryptStr(const QString& aStr);
- const QStringList& connections() const { return conNames; }
+ static TQString cryptStr(const TQString& aStr);
+ const TQStringList& connections() const { return conNames; }
protected:
@@ -37,8 +37,8 @@ private slots:
void projectOpened();
void projectClosed();
void savedFile(const KURL &fileName);
- void addedFilesToProject(const QStringList &fileList);
- void removedFilesFromProject(const QStringList &fileList);
+ void addedFilesToProject(const TQStringList &fileList);
+ void removedFilesFromProject(const TQStringList &fileList);
void parse();
void loadConfig();
void activeConnectionChanged();
@@ -48,7 +48,7 @@ private:
void updateCatalog();
SqlListAction* dbAction;
SqlOutputWidget* m_widget;
- QStringList conNames;
+ TQStringList conNames;
CodeModel *m_store;
};