summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--buildtools/ada/adaglobaloptionsdlg.cpp28
-rw-r--r--buildtools/ada/adaglobaloptionsdlg.h18
-rw-r--r--buildtools/ada/adaproject_part.cpp180
-rw-r--r--buildtools/ada/adaproject_part.h66
-rw-r--r--buildtools/ada/adaproject_widget.cpp2
-rw-r--r--buildtools/ada/adaproject_widget.h4
-rw-r--r--buildtools/ada/adaprojectoptionsdlg.cpp70
-rw-r--r--buildtools/ada/adaprojectoptionsdlg.h22
-rw-r--r--buildtools/ada/service.cpp26
-rw-r--r--buildtools/ada/service.h12
-rw-r--r--buildtools/ant/antprojectpart.cpp176
-rw-r--r--buildtools/ant/antprojectpart.h62
-rw-r--r--buildtools/autotools/addapplicationdlg.cpp66
-rw-r--r--buildtools/autotools/addapplicationdlg.h4
-rw-r--r--buildtools/autotools/addexistingdirectoriesdlg.cpp76
-rw-r--r--buildtools/autotools/addexistingdirectoriesdlg.h6
-rw-r--r--buildtools/autotools/addexistingfilesdlg.cpp70
-rw-r--r--buildtools/autotools/addexistingfilesdlg.h8
-rw-r--r--buildtools/autotools/addfiledlg.cpp54
-rw-r--r--buildtools/autotools/addfiledlg.h4
-rw-r--r--buildtools/autotools/addicondlg.cpp28
-rw-r--r--buildtools/autotools/addicondlg.h2
-rw-r--r--buildtools/autotools/addprefixdlg.cpp36
-rw-r--r--buildtools/autotools/addprefixdlg.h12
-rw-r--r--buildtools/autotools/addservicedlg.cpp66
-rw-r--r--buildtools/autotools/addservicedlg.h6
-rw-r--r--buildtools/autotools/addsubprojectdlg.cpp64
-rw-r--r--buildtools/autotools/addsubprojectdlg.h4
-rw-r--r--buildtools/autotools/addtargetdlg.cpp48
-rw-r--r--buildtools/autotools/addtargetdlg.h4
-rw-r--r--buildtools/autotools/addtranslationdlg.cpp58
-rw-r--r--buildtools/autotools/addtranslationdlg.h6
-rw-r--r--buildtools/autotools/autodetailsview.cpp138
-rw-r--r--buildtools/autotools/autodetailsview.h14
-rw-r--r--buildtools/autotools/autolistviewitems.cpp50
-rw-r--r--buildtools/autotools/autolistviewitems.h52
-rw-r--r--buildtools/autotools/autoprojectpart.cpp468
-rw-r--r--buildtools/autotools/autoprojectpart.h100
-rw-r--r--buildtools/autotools/autoprojectwidget.cpp222
-rw-r--r--buildtools/autotools/autoprojectwidget.h68
-rw-r--r--buildtools/autotools/autosubprojectview.cpp316
-rw-r--r--buildtools/autotools/autosubprojectview.h40
-rw-r--r--buildtools/autotools/autotoolsaction.cpp74
-rw-r--r--buildtools/autotools/autotoolsaction.h40
-rw-r--r--buildtools/autotools/choosetargetdialog.cpp72
-rw-r--r--buildtools/autotools/choosetargetdialog.h6
-rw-r--r--buildtools/autotools/configureoptionswidget.cpp124
-rw-r--r--buildtools/autotools/configureoptionswidget.h22
-rw-r--r--buildtools/autotools/fileselectorwidget.cpp102
-rw-r--r--buildtools/autotools/fileselectorwidget.h42
-rw-r--r--buildtools/autotools/kfilednddetailview.cpp40
-rw-r--r--buildtools/autotools/kfilednddetailview.h34
-rw-r--r--buildtools/autotools/kfiledndiconview.cpp42
-rw-r--r--buildtools/autotools/kfiledndiconview.h32
-rw-r--r--buildtools/autotools/kimporticonview.cpp28
-rw-r--r--buildtools/autotools/kimporticonview.h8
-rw-r--r--buildtools/autotools/makefilehandler.cpp54
-rw-r--r--buildtools/autotools/makefilehandler.h8
-rw-r--r--buildtools/autotools/managecustomcommand.cpp6
-rw-r--r--buildtools/autotools/managecustomcommand.h2
-rw-r--r--buildtools/autotools/misc.cpp258
-rw-r--r--buildtools/autotools/misc.h26
-rw-r--r--buildtools/autotools/removefiledlg.cpp84
-rw-r--r--buildtools/autotools/removefiledlg.h12
-rw-r--r--buildtools/autotools/removetargetdlg.cpp58
-rw-r--r--buildtools/autotools/removetargetdlg.h6
-rw-r--r--buildtools/autotools/subprojectoptionsdlg.cpp134
-rw-r--r--buildtools/autotools/subprojectoptionsdlg.h8
-rw-r--r--buildtools/autotools/targetoptionsdlg.cpp102
-rw-r--r--buildtools/autotools/targetoptionsdlg.h2
-rw-r--r--buildtools/custommakefiles/custombuildoptionswidget.cpp28
-rw-r--r--buildtools/custommakefiles/custombuildoptionswidget.h14
-rw-r--r--buildtools/custommakefiles/custommakeconfigwidget.cpp42
-rw-r--r--buildtools/custommakefiles/custommakeconfigwidget.h14
-rw-r--r--buildtools/custommakefiles/custommanagerwidget.cpp24
-rw-r--r--buildtools/custommakefiles/custommanagerwidget.h8
-rw-r--r--buildtools/custommakefiles/customotherconfigwidget.cpp46
-rw-r--r--buildtools/custommakefiles/customotherconfigwidget.h14
-rw-r--r--buildtools/custommakefiles/customprojectpart.cpp586
-rw-r--r--buildtools/custommakefiles/customprojectpart.h128
-rw-r--r--buildtools/custommakefiles/selectnewfilesdialog.cpp54
-rw-r--r--buildtools/custommakefiles/selectnewfilesdialog.h16
-rw-r--r--buildtools/lib/base/kdevbuildtool.cpp2
-rw-r--r--buildtools/lib/base/kdevbuildtool.h2
-rw-r--r--buildtools/lib/parsers/autotools/autotools_yacc.cpp10
-rw-r--r--buildtools/lib/parsers/autotools/autotoolsast.cpp24
-rw-r--r--buildtools/lib/parsers/autotools/autotoolsast.h44
-rw-r--r--buildtools/lib/parsers/autotools/autotoolsdriver.cpp8
-rw-r--r--buildtools/lib/parsers/autotools/autotoolsdriver.h6
-rw-r--r--buildtools/lib/parsers/autotools/tests/viewer.cpp74
-rw-r--r--buildtools/lib/parsers/autotools/tests/viewer.h12
-rw-r--r--buildtools/lib/parsers/autotools/tests/viewer_main.cpp4
-rw-r--r--buildtools/lib/parsers/qmake/qmake_lex.cpp34
-rw-r--r--buildtools/lib/parsers/qmake/qmake_lex.h2
-rw-r--r--buildtools/lib/parsers/qmake/qmake_yacc.cpp8
-rw-r--r--buildtools/lib/parsers/qmake/qmake_yacc.hpp16
-rw-r--r--buildtools/lib/parsers/qmake/qmakeast.cpp22
-rw-r--r--buildtools/lib/parsers/qmake/qmakeast.h40
-rw-r--r--buildtools/lib/parsers/qmake/qmakeastvisitor.cpp2
-rw-r--r--buildtools/lib/parsers/qmake/qmakedriver.cpp10
-rw-r--r--buildtools/lib/parsers/qmake/qmakedriver.h2
-rw-r--r--buildtools/lib/parsers/qmake/tests/runner.cpp10
-rw-r--r--buildtools/lib/parsers/qmake/tests/viewer.cpp70
-rw-r--r--buildtools/lib/parsers/qmake/tests/viewer.h10
-rw-r--r--buildtools/lib/parsers/qmake/tests/viewer_main.cpp4
-rw-r--r--buildtools/lib/widgets/addenvvardlg.cpp34
-rw-r--r--buildtools/lib/widgets/addenvvardlg.h14
-rw-r--r--buildtools/lib/widgets/addfilesdialog.cpp16
-rw-r--r--buildtools/lib/widgets/addfilesdialog.h10
-rw-r--r--buildtools/lib/widgets/environmentdisplaydialog.cpp12
-rw-r--r--buildtools/lib/widgets/environmentdisplaydialog.h2
-rw-r--r--buildtools/lib/widgets/environmentvariableswidget.cpp30
-rw-r--r--buildtools/lib/widgets/environmentvariableswidget.h14
-rw-r--r--buildtools/lib/widgets/envvartools.cpp8
-rw-r--r--buildtools/lib/widgets/envvartools.h4
-rw-r--r--buildtools/lib/widgets/makeoptionswidget.cpp12
-rw-r--r--buildtools/lib/widgets/makeoptionswidget.h10
-rw-r--r--buildtools/lib/widgets/removesubprojectdialog.cpp10
-rw-r--r--buildtools/lib/widgets/removesubprojectdialog.h2
-rw-r--r--buildtools/lib/widgets/runoptionswidget.cpp40
-rw-r--r--buildtools/lib/widgets/runoptionswidget.h14
-rw-r--r--buildtools/lib/widgets/subclassesdlg.cpp12
-rw-r--r--buildtools/lib/widgets/subclassesdlg.h10
-rw-r--r--buildtools/pascal/pascalglobaloptionsdlg.cpp28
-rw-r--r--buildtools/pascal/pascalglobaloptionsdlg.h18
-rw-r--r--buildtools/pascal/pascalproject_part.cpp188
-rw-r--r--buildtools/pascal/pascalproject_part.h66
-rw-r--r--buildtools/pascal/pascalproject_widget.cpp2
-rw-r--r--buildtools/pascal/pascalproject_widget.h4
-rw-r--r--buildtools/pascal/pascalprojectoptionsdlg.cpp70
-rw-r--r--buildtools/pascal/pascalprojectoptionsdlg.h22
-rw-r--r--buildtools/pascal/service.cpp26
-rw-r--r--buildtools/pascal/service.h12
-rw-r--r--buildtools/qmake/choosesubprojectdlg.cpp14
-rw-r--r--buildtools/qmake/choosesubprojectdlg.h8
-rw-r--r--buildtools/qmake/createscopedlg.cpp18
-rw-r--r--buildtools/qmake/createscopedlg.h2
-rw-r--r--buildtools/qmake/disablesubprojectdlg.cpp16
-rw-r--r--buildtools/qmake/disablesubprojectdlg.h4
-rw-r--r--buildtools/qmake/newwidgetdlg.cpp28
-rw-r--r--buildtools/qmake/newwidgetdlg.h4
-rw-r--r--buildtools/qmake/projectconfigurationdlg.cpp390
-rw-r--r--buildtools/qmake/projectconfigurationdlg.h24
-rw-r--r--buildtools/qmake/qmakedefaultopts.cpp24
-rw-r--r--buildtools/qmake/qmakedefaultopts.h16
-rw-r--r--buildtools/qmake/qmakeoptionswidget.cpp12
-rw-r--r--buildtools/qmake/qmakeoptionswidget.h12
-rw-r--r--buildtools/qmake/qmakescopeitem.cpp250
-rw-r--r--buildtools/qmake/qmakescopeitem.h76
-rw-r--r--buildtools/qmake/scope.cpp480
-rw-r--r--buildtools/qmake/scope.h128
-rw-r--r--buildtools/qmake/trolllistview.cpp4
-rw-r--r--buildtools/qmake/trolllistview.h4
-rw-r--r--buildtools/qmake/trollprojectpart.cpp304
-rw-r--r--buildtools/qmake/trollprojectpart.h76
-rw-r--r--buildtools/qmake/trollprojectwidget.cpp732
-rw-r--r--buildtools/qmake/trollprojectwidget.h124
-rw-r--r--buildtools/script/scriptnewfiledlg.cpp48
-rw-r--r--buildtools/script/scriptnewfiledlg.h6
-rw-r--r--buildtools/script/scriptoptionswidget.cpp22
-rw-r--r--buildtools/script/scriptoptionswidget.h2
-rw-r--r--buildtools/script/scriptprojectpart.cpp156
-rw-r--r--buildtools/script/scriptprojectpart.h46
-rw-r--r--editors/editor-chooser/editorchooser_part.cpp10
-rw-r--r--editors/editor-chooser/editorchooser_part.h2
-rw-r--r--editors/editor-chooser/editorchooser_widget.cpp16
-rw-r--r--editors/editor-chooser/editorchooser_widget.h6
-rw-r--r--embedded/visualboyadvance/vbaconfigwidget.cpp30
-rw-r--r--embedded/visualboyadvance/vbaconfigwidget.h4
-rw-r--r--embedded/visualboyadvance/visualboyadvance_part.cpp32
-rw-r--r--embedded/visualboyadvance/visualboyadvance_part.h4
-rw-r--r--kdevdesigner/designer/actiondnd.cpp294
-rw-r--r--kdevdesigner/designer/actiondnd.h156
-rw-r--r--kdevdesigner/designer/actioneditorimpl.cpp128
-rw-r--r--kdevdesigner/designer/actioneditorimpl.h20
-rw-r--r--kdevdesigner/designer/actionlistview.cpp28
-rw-r--r--kdevdesigner/designer/actionlistview.h18
-rw-r--r--kdevdesigner/designer/asciivalidator.cpp26
-rw-r--r--kdevdesigner/designer/asciivalidator.h12
-rw-r--r--kdevdesigner/designer/command.cpp574
-rw-r--r--kdevdesigner/designer/command.h504
-rw-r--r--kdevdesigner/designer/configtoolboxdialog.ui.h60
-rw-r--r--kdevdesigner/designer/connectiondialog.ui.h62
-rw-r--r--kdevdesigner/designer/connectionitems.cpp220
-rw-r--r--kdevdesigner/designer/connectionitems.h72
-rw-r--r--kdevdesigner/designer/connectiontable.cpp6
-rw-r--r--kdevdesigner/designer/connectiontable.h4
-rw-r--r--kdevdesigner/designer/customwidgeteditorimpl.cpp208
-rw-r--r--kdevdesigner/designer/customwidgeteditorimpl.h40
-rw-r--r--kdevdesigner/designer/database.cpp46
-rw-r--r--kdevdesigner/designer/database.h36
-rw-r--r--kdevdesigner/designer/dbconnectionimpl.cpp12
-rw-r--r--kdevdesigner/designer/dbconnectionimpl.h4
-rw-r--r--kdevdesigner/designer/dbconnectionsimpl.cpp40
-rw-r--r--kdevdesigner/designer/dbconnectionsimpl.h6
-rw-r--r--kdevdesigner/designer/defs.cpp52
-rw-r--r--kdevdesigner/designer/defs.h10
-rw-r--r--kdevdesigner/designer/designer_pch.h48
-rw-r--r--kdevdesigner/designer/designeraction.cpp4
-rw-r--r--kdevdesigner/designer/designeraction.h26
-rw-r--r--kdevdesigner/designer/designerapp.cpp76
-rw-r--r--kdevdesigner/designer/designerapp.h12
-rw-r--r--kdevdesigner/designer/designerappiface.cpp368
-rw-r--r--kdevdesigner/designer/designerappiface.h214
-rw-r--r--kdevdesigner/designer/editfunctionsimpl.cpp124
-rw-r--r--kdevdesigner/designer/editfunctionsimpl.h58
-rw-r--r--kdevdesigner/designer/filechooser.cpp34
-rw-r--r--kdevdesigner/designer/filechooser.h16
-rw-r--r--kdevdesigner/designer/finddialog.ui.h2
-rw-r--r--kdevdesigner/designer/formfile.cpp180
-rw-r--r--kdevdesigner/designer/formfile.h44
-rw-r--r--kdevdesigner/designer/formsettingsimpl.cpp26
-rw-r--r--kdevdesigner/designer/formsettingsimpl.h2
-rw-r--r--kdevdesigner/designer/formwindow.cpp942
-rw-r--r--kdevdesigner/designer/formwindow.h218
-rw-r--r--kdevdesigner/designer/hierarchyview.cpp516
-rw-r--r--kdevdesigner/designer/hierarchyview.h130
-rw-r--r--kdevdesigner/designer/iconvieweditorimpl.cpp36
-rw-r--r--kdevdesigner/designer/iconvieweditorimpl.h8
-rw-r--r--kdevdesigner/designer/kdevdesigner_part.cpp142
-rw-r--r--kdevdesigner/designer/kdevdesigner_part.h36
-rw-r--r--kdevdesigner/designer/layout.cpp234
-rw-r--r--kdevdesigner/designer/layout.h68
-rw-r--r--kdevdesigner/designer/listboxdnd.cpp100
-rw-r--r--kdevdesigner/designer/listboxdnd.h24
-rw-r--r--kdevdesigner/designer/listboxeditorimpl.cpp70
-rw-r--r--kdevdesigner/designer/listboxeditorimpl.h8
-rw-r--r--kdevdesigner/designer/listboxrename.cpp42
-rw-r--r--kdevdesigner/designer/listboxrename.h16
-rw-r--r--kdevdesigner/designer/listdnd.cpp52
-rw-r--r--kdevdesigner/designer/listdnd.h32
-rw-r--r--kdevdesigner/designer/listeditor.ui.h32
-rw-r--r--kdevdesigner/designer/listviewdnd.cpp104
-rw-r--r--kdevdesigner/designer/listviewdnd.h24
-rw-r--r--kdevdesigner/designer/listvieweditorimpl.cpp200
-rw-r--r--kdevdesigner/designer/listvieweditorimpl.h38
-rw-r--r--kdevdesigner/designer/mainwindow.cpp1286
-rw-r--r--kdevdesigner/designer/mainwindow.h224
-rw-r--r--kdevdesigner/designer/mainwindowactions.cpp610
-rw-r--r--kdevdesigner/designer/menubareditor.cpp192
-rw-r--r--kdevdesigner/designer/menubareditor.h84
-rw-r--r--kdevdesigner/designer/metadatabase.cpp486
-rw-r--r--kdevdesigner/designer/metadatabase.h264
-rw-r--r--kdevdesigner/designer/multilineeditorimpl.cpp164
-rw-r--r--kdevdesigner/designer/multilineeditorimpl.h46
-rw-r--r--kdevdesigner/designer/myiconloader.cpp4
-rw-r--r--kdevdesigner/designer/myiconloader.h8
-rw-r--r--kdevdesigner/designer/newformimpl.cpp118
-rw-r--r--kdevdesigner/designer/newformimpl.h64
-rw-r--r--kdevdesigner/designer/orderindicator.cpp36
-rw-r--r--kdevdesigner/designer/orderindicator.h12
-rw-r--r--kdevdesigner/designer/outputwindow.cpp74
-rw-r--r--kdevdesigner/designer/outputwindow.h34
-rw-r--r--kdevdesigner/designer/paletteeditoradvancedimpl.cpp208
-rw-r--r--kdevdesigner/designer/paletteeditoradvancedimpl.h38
-rw-r--r--kdevdesigner/designer/paletteeditorimpl.cpp134
-rw-r--r--kdevdesigner/designer/paletteeditorimpl.h20
-rw-r--r--kdevdesigner/designer/pixmapchooser.cpp116
-rw-r--r--kdevdesigner/designer/pixmapchooser.h32
-rw-r--r--kdevdesigner/designer/pixmapcollection.cpp60
-rw-r--r--kdevdesigner/designer/pixmapcollection.h28
-rw-r--r--kdevdesigner/designer/pixmapcollectioneditor.ui.h36
-rw-r--r--kdevdesigner/designer/popupmenueditor.cpp316
-rw-r--r--kdevdesigner/designer/popupmenueditor.h106
-rw-r--r--kdevdesigner/designer/previewframe.cpp18
-rw-r--r--kdevdesigner/designer/previewframe.h14
-rw-r--r--kdevdesigner/designer/previewwidgetimpl.cpp32
-rw-r--r--kdevdesigner/designer/previewwidgetimpl.h6
-rw-r--r--kdevdesigner/designer/project.cpp524
-rw-r--r--kdevdesigner/designer/project.h212
-rw-r--r--kdevdesigner/designer/projectsettingsimpl.cpp26
-rw-r--r--kdevdesigner/designer/projectsettingsimpl.h4
-rw-r--r--kdevdesigner/designer/propertyeditor.cpp1430
-rw-r--r--kdevdesigner/designer/propertyeditor.h388
-rw-r--r--kdevdesigner/designer/propertyobject.cpp68
-rw-r--r--kdevdesigner/designer/propertyobject.h52
-rw-r--r--kdevdesigner/designer/qcompletionedit.cpp68
-rw-r--r--kdevdesigner/designer/qcompletionedit.h26
-rw-r--r--kdevdesigner/designer/replacedialog.ui.h2
-rw-r--r--kdevdesigner/designer/resource.cpp1364
-rw-r--r--kdevdesigner/designer/resource.h158
-rw-r--r--kdevdesigner/designer/richtextfontdialog.ui.h12
-rw-r--r--kdevdesigner/designer/sizehandle.cpp50
-rw-r--r--kdevdesigner/designer/sizehandle.h38
-rw-r--r--kdevdesigner/designer/sourceeditor.cpp42
-rw-r--r--kdevdesigner/designer/sourceeditor.h30
-rw-r--r--kdevdesigner/designer/sourcefile.cpp66
-rw-r--r--kdevdesigner/designer/sourcefile.h16
-rw-r--r--kdevdesigner/designer/startdialogimpl.cpp114
-rw-r--r--kdevdesigner/designer/startdialogimpl.h26
-rw-r--r--kdevdesigner/designer/styledbutton.cpp136
-rw-r--r--kdevdesigner/designer/styledbutton.h50
-rw-r--r--kdevdesigner/designer/syntaxhighlighter_html.cpp20
-rw-r--r--kdevdesigner/designer/syntaxhighlighter_html.h2
-rw-r--r--kdevdesigner/designer/tableeditorimpl.cpp108
-rw-r--r--kdevdesigner/designer/tableeditorimpl.h20
-rw-r--r--kdevdesigner/designer/timestamp.cpp24
-rw-r--r--kdevdesigner/designer/timestamp.h18
-rw-r--r--kdevdesigner/designer/variabledialogimpl.cpp38
-rw-r--r--kdevdesigner/designer/variabledialogimpl.h6
-rw-r--r--kdevdesigner/designer/widgetaction.cpp22
-rw-r--r--kdevdesigner/designer/widgetaction.h30
-rw-r--r--kdevdesigner/designer/widgetfactory.cpp960
-rw-r--r--kdevdesigner/designer/widgetfactory.h322
-rw-r--r--kdevdesigner/designer/wizardeditorimpl.cpp36
-rw-r--r--kdevdesigner/designer/wizardeditorimpl.h12
-rw-r--r--kdevdesigner/designer/workspace.cpp218
-rw-r--r--kdevdesigner/designer/workspace.h52
-rw-r--r--kdevdesigner/interfaces/actioninterface.h8
-rw-r--r--kdevdesigner/interfaces/classbrowserinterface.h8
-rw-r--r--kdevdesigner/interfaces/designerinterface.h224
-rw-r--r--kdevdesigner/interfaces/editorinterface.h26
-rw-r--r--kdevdesigner/interfaces/filterinterface.h4
-rw-r--r--kdevdesigner/interfaces/interpreterinterface.h2
-rw-r--r--kdevdesigner/interfaces/languageinterface.h86
-rw-r--r--kdevdesigner/interfaces/preferenceinterface.h10
-rw-r--r--kdevdesigner/interfaces/projectsettingsiface.h12
-rw-r--r--kdevdesigner/interfaces/sourcetemplateiface.h12
-rw-r--r--kdevdesigner/interfaces/templatewizardiface.h2
-rw-r--r--kdevdesigner/plugins/languageinterfaceimpl.cpp74
-rw-r--r--kdevdesigner/plugins/languageinterfaceimpl.h62
-rw-r--r--kdevdesigner/shared/domtool.cpp166
-rw-r--r--kdevdesigner/shared/domtool.h26
-rw-r--r--kdevdesigner/shared/globaldefs.h24
-rw-r--r--kdevdesigner/shared/parser.cpp26
-rw-r--r--kdevdesigner/shared/parser.h4
-rw-r--r--kdevdesigner/shared/ui2uib.cpp352
-rw-r--r--kdevdesigner/shared/ui2uib.h2
-rw-r--r--kdevdesigner/shared/uib.cpp2
-rw-r--r--kdevdesigner/shared/uib.h34
-rw-r--r--kdevdesigner/shared/widgetdatabase.cpp210
-rw-r--r--kdevdesigner/shared/widgetdatabase.h38
-rw-r--r--kdevdesigner/src/kdevdesigner.cpp22
-rw-r--r--kdevdesigner/src/main.cpp10
-rw-r--r--kdevdesigner/uilib/database.cpp46
-rw-r--r--kdevdesigner/uilib/database2.h36
-rw-r--r--kdevdesigner/uilib/qwidgetfactory.cpp1376
-rw-r--r--kdevdesigner/uilib/qwidgetfactory.h190
-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
-rw-r--r--lib/catalog/catalog.cpp106
-rw-r--r--lib/catalog/catalog.h22
-rw-r--r--lib/catalog/tag.cpp10
-rw-r--r--lib/catalog/tag.h70
-rw-r--r--lib/cppparser/ast.cpp66
-rw-r--r--lib/cppparser/ast.h112
-rw-r--r--lib/cppparser/driver.cpp180
-rw-r--r--lib/cppparser/driver.h114
-rw-r--r--lib/cppparser/errors.h6
-rw-r--r--lib/cppparser/lexer.cpp90
-rw-r--r--lib/cppparser/lexer.h98
-rw-r--r--lib/cppparser/lexercache.cpp24
-rw-r--r--lib/cppparser/lexercache.h28
-rw-r--r--lib/cppparser/lookup.h4
-rw-r--r--lib/cppparser/macro.h78
-rw-r--r--lib/cppparser/parser.cpp16
-rw-r--r--lib/cppparser/parser.h34
-rw-r--r--lib/cppparser/tree_parser.cpp12
-rw-r--r--lib/interfaces/KDevCoreIface.cpp12
-rw-r--r--lib/interfaces/KDevCoreIface.h4
-rw-r--r--lib/interfaces/KDevPartControllerIface.cpp18
-rw-r--r--lib/interfaces/KDevPartControllerIface.h6
-rw-r--r--lib/interfaces/codemodel.cpp206
-rw-r--r--lib/interfaces/codemodel.h312
-rw-r--r--lib/interfaces/codemodel_utils.cpp20
-rw-r--r--lib/interfaces/codemodel_utils.h24
-rw-r--r--lib/interfaces/extensions/codebrowserfrontend.h2
-rw-r--r--lib/interfaces/extensions/dcop/KDevAppFrontendIface.cpp10
-rw-r--r--lib/interfaces/extensions/dcop/KDevAppFrontendIface.h10
-rw-r--r--lib/interfaces/extensions/dcop/KDevMakeFrontendIface.cpp2
-rw-r--r--lib/interfaces/extensions/dcop/KDevMakeFrontendIface.h2
-rw-r--r--lib/interfaces/extensions/kdevappfrontend.h14
-rw-r--r--lib/interfaces/extensions/kdevcreatefile.h22
-rw-r--r--lib/interfaces/extensions/kdevdifffrontend.cpp2
-rw-r--r--lib/interfaces/extensions/kdevdifffrontend.h4
-rw-r--r--lib/interfaces/extensions/kdevmakefrontend.h12
-rw-r--r--lib/interfaces/extensions/kdevquickopen.h4
-rw-r--r--lib/interfaces/extensions/kdevsourceformatter.h6
-rw-r--r--lib/interfaces/extensions/kdevversioncontrol.h40
-rw-r--r--lib/interfaces/external/designer.cpp2
-rw-r--r--lib/interfaces/external/designer.h24
-rw-r--r--lib/interfaces/extras/kdevcompileroptions.cpp4
-rw-r--r--lib/interfaces/extras/kdevcompileroptions.h22
-rw-r--r--lib/interfaces/extras/kdevvcsintegrator.cpp4
-rw-r--r--lib/interfaces/extras/kdevvcsintegrator.h24
-rw-r--r--lib/interfaces/hashedstring.cpp22
-rw-r--r--lib/interfaces/hashedstring.h24
-rw-r--r--lib/interfaces/katedocumentmanagerinterface.cpp6
-rw-r--r--lib/interfaces/katedocumentmanagerinterface.h6
-rw-r--r--lib/interfaces/kdevapi.cpp6
-rw-r--r--lib/interfaces/kdevapi.h6
-rw-r--r--lib/interfaces/kdevcoderepository.cpp4
-rw-r--r--lib/interfaces/kdevcoderepository.h6
-rw-r--r--lib/interfaces/kdevcore.cpp32
-rw-r--r--lib/interfaces/kdevcore.h46
-rw-r--r--lib/interfaces/kdevdesignerintegration.cpp4
-rw-r--r--lib/interfaces/kdevdesignerintegration.h20
-rw-r--r--lib/interfaces/kdevdesignerintegrationiface.cpp10
-rw-r--r--lib/interfaces/kdevdesignerintegrationiface.h14
-rw-r--r--lib/interfaces/kdevgenericfactory.h4
-rw-r--r--lib/interfaces/kdevlanguagesupport.cpp30
-rw-r--r--lib/interfaces/kdevlanguagesupport.h34
-rw-r--r--lib/interfaces/kdevmainwindow.h20
-rw-r--r--lib/interfaces/kdevpartcontroller.cpp2
-rw-r--r--lib/interfaces/kdevpartcontroller.h8
-rw-r--r--lib/interfaces/kdevplugin.cpp16
-rw-r--r--lib/interfaces/kdevplugin.h16
-rw-r--r--lib/interfaces/kdevplugincontroller.cpp12
-rw-r--r--lib/interfaces/kdevplugincontroller.h24
-rw-r--r--lib/interfaces/kdevplugininfo.cpp60
-rw-r--r--lib/interfaces/kdevplugininfo.h32
-rw-r--r--lib/interfaces/kdevproject.cpp60
-rw-r--r--lib/interfaces/kdevproject.h60
-rw-r--r--lib/interfaces/kdevprojectiface.cpp58
-rw-r--r--lib/interfaces/kdevprojectiface.h62
-rw-r--r--lib/util/blockingkprocess.cpp46
-rw-r--r--lib/util/blockingkprocess.h12
-rw-r--r--lib/util/configwidgetproxy.cpp24
-rw-r--r--lib/util/configwidgetproxy.h28
-rw-r--r--lib/util/domutil.cpp156
-rw-r--r--lib/util/domutil.h82
-rw-r--r--lib/util/execcommand.cpp34
-rw-r--r--lib/util/execcommand.h20
-rw-r--r--lib/util/filetemplate.cpp96
-rw-r--r--lib/util/filetemplate.h18
-rw-r--r--lib/util/kdeveditorutil.cpp20
-rw-r--r--lib/util/kdeveditorutil.h8
-rw-r--r--lib/util/kdevjobtimer.cpp10
-rw-r--r--lib/util/kdevjobtimer.h6
-rw-r--r--lib/util/kdevshellwidget.cpp26
-rw-r--r--lib/util/kdevshellwidget.h20
-rw-r--r--lib/util/kscriptactionmanager.cpp60
-rw-r--r--lib/util/kscriptactionmanager.h52
-rw-r--r--lib/util/rurl.cpp78
-rw-r--r--lib/util/rurl.h58
-rw-r--r--lib/util/settings.cpp18
-rw-r--r--lib/util/settings.h4
-rw-r--r--lib/util/urlutil.cpp110
-rw-r--r--lib/util/urlutil.h50
-rw-r--r--lib/widgets/fancylistviewitem.cpp54
-rw-r--r--lib/widgets/fancylistviewitem.h56
-rw-r--r--lib/widgets/flagboxes.cpp262
-rw-r--r--lib/widgets/flagboxes.h142
-rw-r--r--lib/widgets/kcomboview.cpp18
-rw-r--r--lib/widgets/kcomboview.h18
-rw-r--r--lib/widgets/kdevhtmlpart.cpp96
-rw-r--r--lib/widgets/kdevhtmlpart.h20
-rw-r--r--lib/widgets/kdevtabwidget.cpp24
-rw-r--r--lib/widgets/klistviewaction.cpp24
-rw-r--r--lib/widgets/klistviewaction.h8
-rw-r--r--lib/widgets/ksavealldialog.cpp54
-rw-r--r--lib/widgets/ksavealldialog.h6
-rw-r--r--lib/widgets/processlinemaker.cpp12
-rw-r--r--lib/widgets/processlinemaker.h14
-rw-r--r--lib/widgets/processwidget.cpp82
-rw-r--r--lib/widgets/processwidget.h24
-rw-r--r--lib/widgets/propeditor/childproperty.cpp46
-rw-r--r--lib/widgets/propeditor/childproperty.h14
-rw-r--r--lib/widgets/propeditor/compat_tools.h2
-rw-r--r--lib/widgets/propeditor/multiproperty.cpp54
-rw-r--r--lib/widgets/propeditor/multiproperty.h30
-rw-r--r--lib/widgets/propeditor/pcheckbox.cpp30
-rw-r--r--lib/widgets/propeditor/pcheckbox.h10
-rw-r--r--lib/widgets/propeditor/pcolorbutton.cpp50
-rw-r--r--lib/widgets/propeditor/pcolorbutton.h16
-rw-r--r--lib/widgets/propeditor/pcolorcombo.cpp30
-rw-r--r--lib/widgets/propeditor/pcolorcombo.h8
-rw-r--r--lib/widgets/propeditor/pcombobox.cpp40
-rw-r--r--lib/widgets/propeditor/pcombobox.h20
-rw-r--r--lib/widgets/propeditor/pcursoredit.cpp8
-rw-r--r--lib/widgets/propeditor/pcursoredit.h8
-rw-r--r--lib/widgets/propeditor/pdateedit.cpp30
-rw-r--r--lib/widgets/propeditor/pdateedit.h12
-rw-r--r--lib/widgets/propeditor/pdatetimeedit.cpp30
-rw-r--r--lib/widgets/propeditor/pdatetimeedit.h12
-rw-r--r--lib/widgets/propeditor/pdoublenuminput.cpp36
-rw-r--r--lib/widgets/propeditor/pdoublenuminput.h6
-rw-r--r--lib/widgets/propeditor/pdummywidget.cpp10
-rw-r--r--lib/widgets/propeditor/pdummywidget.h10
-rw-r--r--lib/widgets/propeditor/pfontbutton.cpp36
-rw-r--r--lib/widgets/propeditor/pfontbutton.h10
-rw-r--r--lib/widgets/propeditor/pfontcombo.cpp36
-rw-r--r--lib/widgets/propeditor/pfontcombo.h8
-rw-r--r--lib/widgets/propeditor/plineedit.cpp24
-rw-r--r--lib/widgets/propeditor/plineedit.h8
-rw-r--r--lib/widgets/propeditor/plinestyleedit.cpp56
-rw-r--r--lib/widgets/propeditor/plinestyleedit.h10
-rw-r--r--lib/widgets/propeditor/ppixmapedit.cpp56
-rw-r--r--lib/widgets/propeditor/ppixmapedit.h18
-rw-r--r--lib/widgets/propeditor/ppointedit.cpp20
-rw-r--r--lib/widgets/propeditor/ppointedit.h12
-rw-r--r--lib/widgets/propeditor/prectedit.cpp20
-rw-r--r--lib/widgets/propeditor/prectedit.h12
-rw-r--r--lib/widgets/propeditor/property.cpp26
-rw-r--r--lib/widgets/propeditor/property.h118
-rw-r--r--lib/widgets/propeditor/propertyeditor.cpp100
-rw-r--r--lib/widgets/propeditor/propertyeditor.h26
-rw-r--r--lib/widgets/propeditor/propertylist.cpp56
-rw-r--r--lib/widgets/propeditor/propertylist.h38
-rw-r--r--lib/widgets/propeditor/propertymachinefactory.cpp26
-rw-r--r--lib/widgets/propeditor/propertymachinefactory.h4
-rw-r--r--lib/widgets/propeditor/propertywidget.cpp12
-rw-r--r--lib/widgets/propeditor/propertywidget.h22
-rw-r--r--lib/widgets/propeditor/propertywidgetproxy.cpp24
-rw-r--r--lib/widgets/propeditor/propertywidgetproxy.h18
-rw-r--r--lib/widgets/propeditor/psizeedit.cpp20
-rw-r--r--lib/widgets/propeditor/psizeedit.h12
-rw-r--r--lib/widgets/propeditor/psizepolicyedit.cpp26
-rw-r--r--lib/widgets/propeditor/psizepolicyedit.h18
-rw-r--r--lib/widgets/propeditor/pspinbox.cpp34
-rw-r--r--lib/widgets/propeditor/pspinbox.h10
-rw-r--r--lib/widgets/propeditor/pstringlistedit.cpp46
-rw-r--r--lib/widgets/propeditor/pstringlistedit.h14
-rw-r--r--lib/widgets/propeditor/psymbolcombo.cpp60
-rw-r--r--lib/widgets/propeditor/psymbolcombo.h14
-rw-r--r--lib/widgets/propeditor/purledit.cpp42
-rw-r--r--lib/widgets/propeditor/purledit.h12
-rw-r--r--lib/widgets/propeditor/pyesnobutton.cpp28
-rw-r--r--lib/widgets/propeditor/pyesnobutton.h10
-rw-r--r--lib/widgets/propeditor/qeditlistbox.cpp94
-rw-r--r--lib/widgets/propeditor/qeditlistbox.h92
-rw-r--r--lib/widgets/propeditor/qfloatinput.cpp14
-rw-r--r--lib/widgets/propeditor/qfloatinput.h10
-rw-r--r--lib/widgets/propeditor/test.cpp10
-rw-r--r--lib/widgets/qcomboview.cpp422
-rw-r--r--lib/widgets/qcomboview.h84
-rw-r--r--lib/widgets/resizablecombo.cpp36
-rw-r--r--lib/widgets/resizablecombo.h16
-rw-r--r--parts/abbrev/abbrevconfigwidget.cpp28
-rw-r--r--parts/abbrev/abbrevconfigwidget.h2
-rw-r--r--parts/abbrev/abbrevpart.cpp216
-rw-r--r--parts/abbrev/abbrevpart.h48
-rw-r--r--parts/abbrev/addtemplatedlg.cpp16
-rw-r--r--parts/abbrev/addtemplatedlg.h8
-rw-r--r--parts/appwizard/appwizarddlg.cpp368
-rw-r--r--parts/appwizard/appwizarddlg.h138
-rw-r--r--parts/appwizard/appwizardpart.cpp18
-rw-r--r--parts/appwizard/appwizardpart.h8
-rw-r--r--parts/appwizard/filepropspage.cpp18
-rw-r--r--parts/appwizard/filepropspage.h26
-rw-r--r--parts/appwizard/importdlg.cpp188
-rw-r--r--parts/appwizard/importdlg.h30
-rw-r--r--parts/appwizard/kdevfile.cpp2
-rw-r--r--parts/appwizard/kdevfile.h2
-rw-r--r--parts/appwizard/kdevlicense.cpp54
-rw-r--r--parts/appwizard/kdevlicense.h18
-rw-r--r--parts/appwizard/misc.cpp12
-rw-r--r--parts/appwizard/misc.h4
-rw-r--r--parts/appwizard/profilesupport.cpp6
-rw-r--r--parts/appwizard/profilesupport.h4
-rw-r--r--parts/astyle/astyle_adaptor.cpp18
-rw-r--r--parts/astyle/astyle_adaptor.h22
-rw-r--r--parts/astyle/astyle_part.cpp158
-rw-r--r--parts/astyle/astyle_part.h40
-rw-r--r--parts/astyle/astyle_widget.cpp92
-rw-r--r--parts/astyle/astyle_widget.h4
-rw-r--r--parts/bookmarks/bookmarks_config.cpp4
-rw-r--r--parts/bookmarks/bookmarks_config.h6
-rw-r--r--parts/bookmarks/bookmarks_part.cpp126
-rw-r--r--parts/bookmarks/bookmarks_part.h30
-rw-r--r--parts/bookmarks/bookmarks_settings.cpp8
-rw-r--r--parts/bookmarks/bookmarks_settings.h2
-rw-r--r--parts/bookmarks/bookmarks_widget.cpp82
-rw-r--r--parts/bookmarks/bookmarks_widget.h18
-rw-r--r--parts/classview/classtooldlg.cpp100
-rw-r--r--parts/classview/classtooldlg.h32
-rw-r--r--parts/classview/classtoolwidget.cpp18
-rw-r--r--parts/classview/classtoolwidget.h6
-rw-r--r--parts/classview/classtreebase.cpp174
-rw-r--r--parts/classview/classtreebase.h46
-rw-r--r--parts/classview/classviewpart.cpp72
-rw-r--r--parts/classview/classviewpart.h10
-rw-r--r--parts/classview/classviewwidget.cpp182
-rw-r--r--parts/classview/classviewwidget.h118
-rw-r--r--parts/classview/digraphview.cpp116
-rw-r--r--parts/classview/digraphview.h42
-rw-r--r--parts/classview/hierarchydlg.cpp122
-rw-r--r--parts/classview/hierarchydlg.h22
-rw-r--r--parts/classview/navigator.cpp88
-rw-r--r--parts/classview/navigator.h26
-rw-r--r--parts/classview/viewcombos.cpp38
-rw-r--r--parts/classview/viewcombos.h24
-rw-r--r--parts/ctags2/ctags2_createtagfile.cpp8
-rw-r--r--parts/ctags2/ctags2_createtagfile.h8
-rw-r--r--parts/ctags2/ctags2_part.cpp110
-rw-r--r--parts/ctags2/ctags2_part.h24
-rw-r--r--parts/ctags2/ctags2_selecttagfile.cpp6
-rw-r--r--parts/ctags2/ctags2_selecttagfile.h6
-rw-r--r--parts/ctags2/ctags2_settingswidget.cpp32
-rw-r--r--parts/ctags2/ctags2_settingswidget.h18
-rw-r--r--parts/ctags2/ctags2_widget.cpp54
-rw-r--r--parts/ctags2/ctags2_widget.h6
-rw-r--r--parts/ctags2/ctagskinds.cpp8
-rw-r--r--parts/ctags2/ctagskinds.h4
-rw-r--r--parts/ctags2/tagitem.cpp4
-rw-r--r--parts/ctags2/tagitem.h12
-rw-r--r--parts/ctags2/tags.cpp40
-rw-r--r--parts/ctags2/tags.h48
-rw-r--r--parts/diff/diffdlg.cpp8
-rw-r--r--parts/diff/diffdlg.h4
-rw-r--r--parts/diff/diffpart.cpp56
-rw-r--r--parts/diff/diffpart.h18
-rw-r--r--parts/diff/diffwidget.cpp88
-rw-r--r--parts/diff/diffwidget.h32
-rw-r--r--parts/distpart/distpart_part.cpp12
-rw-r--r--parts/distpart/distpart_part.h8
-rw-r--r--parts/distpart/distpart_widget.cpp246
-rw-r--r--parts/distpart/distpart_widget.h142
-rw-r--r--parts/distpart/lsmsupport.cpp2
-rw-r--r--parts/distpart/lsmsupport.h2
-rw-r--r--parts/distpart/packagebase.cpp54
-rw-r--r--parts/distpart/packagebase.h86
-rw-r--r--parts/distpart/specsupport.cpp132
-rw-r--r--parts/distpart/specsupport.h14
-rw-r--r--parts/documentation/KDevDocumentationIface.cpp12
-rw-r--r--parts/documentation/KDevDocumentationIface.h14
-rw-r--r--parts/documentation/addcatalogdlg.cpp28
-rw-r--r--parts/documentation/addcatalogdlg.h18
-rw-r--r--parts/documentation/bookmarkview.cpp64
-rw-r--r--parts/documentation/bookmarkview.h16
-rw-r--r--parts/documentation/contentsview.cpp24
-rw-r--r--parts/documentation/contentsview.h8
-rw-r--r--parts/documentation/docconfiglistview.cpp20
-rw-r--r--parts/documentation/docconfiglistview.h4
-rw-r--r--parts/documentation/docglobalconfigwidget.cpp38
-rw-r--r--parts/documentation/docglobalconfigwidget.h4
-rw-r--r--parts/documentation/docprojectconfigwidget.cpp18
-rw-r--r--parts/documentation/docprojectconfigwidget.h6
-rw-r--r--parts/documentation/documentation_part.cpp196
-rw-r--r--parts/documentation/documentation_part.h36
-rw-r--r--parts/documentation/documentation_widget.cpp20
-rw-r--r--parts/documentation/documentation_widget.h12
-rw-r--r--parts/documentation/docutils.cpp16
-rw-r--r--parts/documentation/docutils.h14
-rw-r--r--parts/documentation/editcatalogdlg.cpp16
-rw-r--r--parts/documentation/editcatalogdlg.h12
-rw-r--r--parts/documentation/find_documentation.cpp64
-rw-r--r--parts/documentation/find_documentation.h12
-rw-r--r--parts/documentation/find_documentation_options.cpp30
-rw-r--r--parts/documentation/find_documentation_options.h22
-rw-r--r--parts/documentation/indexview.cpp52
-rw-r--r--parts/documentation/indexview.h14
-rw-r--r--parts/documentation/interfaces/kdevdocumentationplugin.cpp176
-rw-r--r--parts/documentation/interfaces/kdevdocumentationplugin.h106
-rw-r--r--parts/documentation/plugins/chm/docchmplugin.cpp46
-rw-r--r--parts/documentation/plugins/chm/docchmplugin.h14
-rw-r--r--parts/documentation/plugins/custom/doccustomplugin.cpp18
-rw-r--r--parts/documentation/plugins/custom/doccustomplugin.h12
-rw-r--r--parts/documentation/plugins/devhelp/docdevhelpplugin.cpp156
-rw-r--r--parts/documentation/plugins/devhelp/docdevhelpplugin.h22
-rw-r--r--parts/documentation/plugins/djvu/docdjvuplugin.cpp18
-rw-r--r--parts/documentation/plugins/djvu/docdjvuplugin.h12
-rw-r--r--parts/documentation/plugins/doxygen/docdoxygenplugin.cpp234
-rw-r--r--parts/documentation/plugins/doxygen/docdoxygenplugin.h28
-rw-r--r--parts/documentation/plugins/kdevtoc/dockdevtocplugin.cpp120
-rw-r--r--parts/documentation/plugins/kdevtoc/dockdevtocplugin.h18
-rw-r--r--parts/documentation/plugins/pdb/docpdbplugin.cpp18
-rw-r--r--parts/documentation/plugins/pdb/docpdbplugin.h12
-rw-r--r--parts/documentation/plugins/pdf/docpdfplugin.cpp18
-rw-r--r--parts/documentation/plugins/pdf/docpdfplugin.h12
-rw-r--r--parts/documentation/plugins/qt/docqtplugin.cpp136
-rw-r--r--parts/documentation/plugins/qt/docqtplugin.h18
-rw-r--r--parts/documentation/protocols/chm/chm.cpp88
-rw-r--r--parts/documentation/protocols/chm/chm.h12
-rw-r--r--parts/documentation/protocols/chm/chmfile.cpp20
-rw-r--r--parts/documentation/protocols/chm/chmfile.h18
-rw-r--r--parts/documentation/protocols/chm/kchmpart.cpp20
-rw-r--r--parts/documentation/protocols/chm/kchmpart.h16
-rw-r--r--parts/documentation/searchview.cpp128
-rw-r--r--parts/documentation/searchview.h16
-rw-r--r--parts/documentation/selecttopic.cpp4
-rw-r--r--parts/documentation/selecttopic.h2
-rw-r--r--parts/documentation/tools/htdig/htdigindex.cpp94
-rw-r--r--parts/documentation/tools/htdig/htdigindex.h14
-rw-r--r--parts/doxygen/config.cpp190
-rw-r--r--parts/doxygen/config.h112
-rw-r--r--parts/doxygen/doxygenconfigwidget.cpp92
-rw-r--r--parts/doxygen/doxygenconfigwidget.h24
-rw-r--r--parts/doxygen/doxygenpart.cpp128
-rw-r--r--parts/doxygen/doxygenpart.h10
-rw-r--r--parts/doxygen/input.cpp154
-rw-r--r--parts/doxygen/input.h74
-rw-r--r--parts/doxygen/messages.cpp8
-rw-r--r--parts/doxygen/messages.h4
-rw-r--r--parts/filecreate/addglobaldlg.cpp42
-rw-r--r--parts/filecreate/addglobaldlg.h18
-rw-r--r--parts/filecreate/fcconfigwidget.cpp242
-rw-r--r--parts/filecreate/fcconfigwidget.h26
-rw-r--r--parts/filecreate/fctemplateedit.cpp8
-rw-r--r--parts/filecreate/fctemplateedit.h4
-rw-r--r--parts/filecreate/fctemplateeditbase.ui.h6
-rw-r--r--parts/filecreate/fctypeedit.cpp8
-rw-r--r--parts/filecreate/fctypeedit.h2
-rw-r--r--parts/filecreate/fctypeeditbase.ui.h6
-rw-r--r--parts/filecreate/filecreate_filedialog.cpp18
-rw-r--r--parts/filecreate/filecreate_filedialog.h12
-rw-r--r--parts/filecreate/filecreate_filetype.h44
-rw-r--r--parts/filecreate/filecreate_listitem.cpp20
-rw-r--r--parts/filecreate/filecreate_listitem.h10
-rw-r--r--parts/filecreate/filecreate_newfile.cpp48
-rw-r--r--parts/filecreate/filecreate_newfile.h20
-rw-r--r--parts/filecreate/filecreate_part.cpp142
-rw-r--r--parts/filecreate/filecreate_part.h36
-rw-r--r--parts/filecreate/filecreate_typechoosersig.h6
-rw-r--r--parts/filecreate/filecreate_widget2.cpp34
-rw-r--r--parts/filecreate/filecreate_widget2.h10
-rw-r--r--parts/filecreate/filecreate_widget3.cpp20
-rw-r--r--parts/filecreate/filecreate_widget3.h8
-rw-r--r--parts/filelist/fileinfo.h6
-rw-r--r--parts/filelist/filelist_item.cpp24
-rw-r--r--parts/filelist/filelist_item.h14
-rw-r--r--parts/filelist/filelist_widget.cpp70
-rw-r--r--parts/filelist/filelist_widget.h20
-rw-r--r--parts/filelist/projectviewconfig.cpp4
-rw-r--r--parts/filelist/projectviewconfig.h2
-rw-r--r--parts/filelist/projectviewpart.cpp126
-rw-r--r--parts/filelist/projectviewpart.h42
-rw-r--r--parts/filelist/projectviewprojectconfig.cpp2
-rw-r--r--parts/filelist/projectviewprojectconfig.h2
-rw-r--r--parts/filelist/toolbarguibuilder.cpp10
-rw-r--r--parts/filelist/toolbarguibuilder.h8
-rw-r--r--parts/fileselector/fileselector_part.cpp28
-rw-r--r--parts/fileselector/fileselector_part.h6
-rw-r--r--parts/fileselector/fileselector_widget.cpp294
-rw-r--r--parts/fileselector/fileselector_widget.h50
-rw-r--r--parts/fileselector/kactionselector.cpp146
-rw-r--r--parts/fileselector/kactionselector.h64
-rw-r--r--parts/fileselector/kbookmarkhandler.cpp22
-rw-r--r--parts/fileselector/kbookmarkhandler.h18
-rw-r--r--parts/fileview/addfilegroupdlg.cpp34
-rw-r--r--parts/fileview/addfilegroupdlg.h10
-rw-r--r--parts/fileview/filegroupsconfigwidget.cpp16
-rw-r--r--parts/fileview/filegroupsconfigwidget.h2
-rw-r--r--parts/fileview/filegroupspart.cpp36
-rw-r--r--parts/fileview/filegroupspart.h8
-rw-r--r--parts/fileview/filegroupswidget.cpp146
-rw-r--r--parts/fileview/filegroupswidget.h14
-rw-r--r--parts/fileview/fileitemfactory.cpp20
-rw-r--r--parts/fileview/fileitemfactory.h12
-rw-r--r--parts/fileview/filetreeviewwidgetimpl.cpp28
-rw-r--r--parts/fileview/filetreeviewwidgetimpl.h18
-rw-r--r--parts/fileview/filetreewidget.cpp94
-rw-r--r--parts/fileview/filetreewidget.h34
-rw-r--r--parts/fileview/fileviewpart.cpp40
-rw-r--r--parts/fileview/fileviewpart.h8
-rw-r--r--parts/fileview/partwidget.cpp48
-rw-r--r--parts/fileview/partwidget.h12
-rw-r--r--parts/fileview/stdfiletreewidgetimpl.cpp8
-rw-r--r--parts/fileview/vcscolorsconfigwidget.cpp2
-rw-r--r--parts/fileview/vcscolorsconfigwidget.h22
-rw-r--r--parts/fileview/vcsfiletreewidgetimpl.cpp64
-rw-r--r--parts/fileview/vcsfiletreewidgetimpl.h4
-rw-r--r--parts/filter/filterpart.cpp10
-rw-r--r--parts/filter/filterpart.h2
-rw-r--r--parts/filter/kdevfilterIface.cpp2
-rw-r--r--parts/filter/kdevfilterIface.h4
-rw-r--r--parts/filter/shellfilterdlg.cpp42
-rw-r--r--parts/filter/shellfilterdlg.h14
-rw-r--r--parts/filter/shellinsertdlg.cpp44
-rw-r--r--parts/filter/shellinsertdlg.h14
-rw-r--r--parts/fullscreen/fullscreen_part.cpp4
-rw-r--r--parts/fullscreen/fullscreen_part.h4
-rw-r--r--parts/grepview/grepdlg.cpp118
-rw-r--r--parts/grepview/grepdlg.h40
-rw-r--r--parts/grepview/grepviewpart.cpp34
-rw-r--r--parts/grepview/grepviewpart.h10
-rw-r--r--parts/grepview/grepviewwidget.cpp146
-rw-r--r--parts/grepview/grepviewwidget.h30
-rw-r--r--parts/konsole/konsoleviewpart.cpp10
-rw-r--r--parts/konsole/konsoleviewpart.h6
-rw-r--r--parts/konsole/konsoleviewwidget.cpp24
-rw-r--r--parts/konsole/konsoleviewwidget.h6
-rw-r--r--parts/openwith/openwithpart.cpp30
-rw-r--r--parts/openwith/openwithpart.h4
-rw-r--r--parts/outputviews/appoutputviewpart.cpp32
-rw-r--r--parts/outputviews/appoutputviewpart.h16
-rw-r--r--parts/outputviews/appoutputwidget.cpp102
-rw-r--r--parts/outputviews/appoutputwidget.h24
-rw-r--r--parts/outputviews/commandcontinuationfilter.cpp4
-rw-r--r--parts/outputviews/commandcontinuationfilter.h6
-rw-r--r--parts/outputviews/compileerrorfilter.cpp18
-rw-r--r--parts/outputviews/compileerrorfilter.h16
-rw-r--r--parts/outputviews/directorystatusmessagefilter.cpp72
-rw-r--r--parts/outputviews/directorystatusmessagefilter.h10
-rw-r--r--parts/outputviews/makeactionfilter.cpp34
-rw-r--r--parts/outputviews/makeactionfilter.h30
-rw-r--r--parts/outputviews/makeitem.cpp40
-rw-r--r--parts/outputviews/makeitem.h54
-rw-r--r--parts/outputviews/makeviewpart.cpp20
-rw-r--r--parts/outputviews/makeviewpart.h10
-rw-r--r--parts/outputviews/makewidget.cpp210
-rw-r--r--parts/outputviews/makewidget.h54
-rw-r--r--parts/outputviews/otherfilter.cpp2
-rw-r--r--parts/outputviews/otherfilter.h6
-rw-r--r--parts/outputviews/outputfilter.cpp2
-rw-r--r--parts/outputviews/outputfilter.h4
-rw-r--r--parts/partexplorer/partexplorer_plugin.cpp4
-rw-r--r--parts/partexplorer/partexplorer_plugin.h6
-rw-r--r--parts/partexplorer/partexplorerform.cpp72
-rw-r--r--parts/partexplorer/partexplorerform.h4
-rw-r--r--parts/quickopen/quickopen_part.cpp14
-rw-r--r--parts/quickopen/quickopen_part.h4
-rw-r--r--parts/quickopen/quickopenclassdialog.cpp40
-rw-r--r--parts/quickopen/quickopenclassdialog.h22
-rw-r--r--parts/quickopen/quickopendialog.cpp42
-rw-r--r--parts/quickopen/quickopendialog.h18
-rw-r--r--parts/quickopen/quickopenfiledialog.cpp18
-rw-r--r--parts/quickopen/quickopenfiledialog.h8
-rw-r--r--parts/quickopen/quickopenfunctionchooseform.cpp2
-rw-r--r--parts/quickopen/quickopenfunctionchooseform.h8
-rw-r--r--parts/quickopen/quickopenfunctiondialog.cpp50
-rw-r--r--parts/quickopen/quickopenfunctiondialog.h12
-rw-r--r--parts/regexptest/regexptestdlg.cpp40
-rw-r--r--parts/regexptest/regexptestdlg.h4
-rw-r--r--parts/regexptest/regexptestpart.cpp6
-rw-r--r--parts/regexptest/regexptestpart.h4
-rw-r--r--parts/replace/replace_part.cpp22
-rw-r--r--parts/replace/replace_part.h12
-rw-r--r--parts/replace/replace_widget.cpp128
-rw-r--r--parts/replace/replace_widget.h28
-rw-r--r--parts/replace/replacedlgimpl.cpp58
-rw-r--r--parts/replace/replacedlgimpl.h14
-rw-r--r--parts/replace/replaceitem.cpp56
-rw-r--r--parts/replace/replaceitem.h30
-rw-r--r--parts/replace/replaceview.cpp42
-rw-r--r--parts/replace/replaceview.h22
-rw-r--r--parts/scripting/scriptingglobalconfig.cpp6
-rw-r--r--parts/scripting/scriptingglobalconfig.h2
-rw-r--r--parts/scripting/scriptingpart.cpp24
-rw-r--r--parts/scripting/scriptingpart.h6
-rw-r--r--parts/snippet/snippet_part.cpp40
-rw-r--r--parts/snippet/snippet_part.h10
-rw-r--r--parts/snippet/snippet_widget.cpp292
-rw-r--r--parts/snippet/snippet_widget.h34
-rw-r--r--parts/snippet/snippetconfig.h26
-rw-r--r--parts/snippet/snippetitem.cpp28
-rw-r--r--parts/snippet/snippetitem.h32
-rw-r--r--parts/snippet/snippetsettings.cpp10
-rw-r--r--parts/snippet/snippetsettings.h4
-rw-r--r--parts/texttools/texttoolspart.cpp12
-rw-r--r--parts/texttools/texttoolspart.h6
-rw-r--r--parts/texttools/texttoolswidget.cpp114
-rw-r--r--parts/texttools/texttoolswidget.h16
-rw-r--r--parts/tipofday/tipofday_part.cpp14
-rw-r--r--parts/tipofday/tipofday_part.h4
-rw-r--r--parts/tools/addtooldlg.ui.h8
-rw-r--r--parts/tools/kapplicationtree.cpp76
-rw-r--r--parts/tools/kapplicationtree.h36
-rw-r--r--parts/tools/tools_part.cpp110
-rw-r--r--parts/tools/tools_part.h14
-rw-r--r--parts/tools/toolsconfig.cpp62
-rw-r--r--parts/tools/toolsconfig.h26
-rw-r--r--parts/tools/toolsconfigwidget.cpp50
-rw-r--r--parts/tools/toolsconfigwidget.h20
-rw-r--r--parts/uimode/uichooser_part.cpp12
-rw-r--r--parts/uimode/uichooser_part.h4
-rw-r--r--parts/uimode/uichooser_widget.cpp8
-rw-r--r--parts/uimode/uichooser_widget.h6
-rw-r--r--parts/valgrind/valgrind_dialog.cpp78
-rw-r--r--parts/valgrind/valgrind_dialog.h30
-rw-r--r--parts/valgrind/valgrind_part.cpp116
-rw-r--r--parts/valgrind/valgrind_part.h34
-rw-r--r--parts/valgrind/valgrind_widget.cpp74
-rw-r--r--parts/valgrind/valgrind_widget.h14
-rw-r--r--parts/valgrind/valgrinditem.cpp22
-rw-r--r--parts/valgrind/valgrinditem.h24
-rw-r--r--parts/vcsmanager/vcsmanagerpart.cpp24
-rw-r--r--parts/vcsmanager/vcsmanagerpart.h10
-rw-r--r--parts/vcsmanager/vcsmanagerprojectconfig.cpp12
-rw-r--r--parts/vcsmanager/vcsmanagerprojectconfig.h4
-rw-r--r--src/core.cpp22
-rw-r--r--src/core.h8
-rw-r--r--src/editorproxy.cpp44
-rw-r--r--src/editorproxy.h18
-rw-r--r--src/generalinfowidget.cpp88
-rw-r--r--src/generalinfowidget.h16
-rw-r--r--src/kconf_update/kdev-gen-settings-kconf_update.cpp32
-rw-r--r--src/kdevassistantextension.cpp4
-rw-r--r--src/kdevassistantextension.h4
-rw-r--r--src/kdevideextension.cpp24
-rw-r--r--src/kdevideextension.h4
-rw-r--r--src/languageselectwidget.cpp78
-rw-r--r--src/languageselectwidget.h18
-rw-r--r--src/main.cpp12
-rw-r--r--src/main_assistant.cpp10
-rw-r--r--src/mainwindowshare.cpp110
-rw-r--r--src/mainwindowshare.h10
-rw-r--r--src/multibuffer.cpp36
-rw-r--r--src/multibuffer.h26
-rw-r--r--src/newui/button.cpp126
-rw-r--r--src/newui/button.h40
-rw-r--r--src/newui/buttonbar.cpp40
-rw-r--r--src/newui/buttonbar.h16
-rw-r--r--src/newui/ddockwindow.cpp76
-rw-r--r--src/newui/ddockwindow.h32
-rw-r--r--src/newui/dmainwindow.cpp64
-rw-r--r--src/newui/dmainwindow.h36
-rw-r--r--src/newui/docksplitter.cpp24
-rw-r--r--src/newui/docksplitter.h18
-rw-r--r--src/newui/dtabwidget.cpp24
-rw-r--r--src/newui/dtabwidget.h18
-rw-r--r--src/partcontroller.cpp252
-rw-r--r--src/partcontroller.h44
-rw-r--r--src/plugincontroller.cpp78
-rw-r--r--src/plugincontroller.h40
-rw-r--r--src/pluginselectdialog.cpp60
-rw-r--r--src/pluginselectdialog.h8
-rw-r--r--src/profileengine/editor/profileeditor.cpp38
-rw-r--r--src/profileengine/editor/profileeditor.h6
-rw-r--r--src/profileengine/lib/profile.cpp52
-rw-r--r--src/profileengine/lib/profile.h46
-rw-r--r--src/profileengine/lib/profileengine.cpp78
-rw-r--r--src/profileengine/lib/profileengine.h46
-rw-r--r--src/projectmanager.cpp110
-rw-r--r--src/projectmanager.h32
-rw-r--r--src/projectsession.cpp112
-rw-r--r--src/projectsession.h32
-rw-r--r--src/shellextension.h6
-rw-r--r--src/simplemainwindow.cpp202
-rw-r--r--src/simplemainwindow.h48
-rw-r--r--src/splashscreen.cpp30
-rw-r--r--src/splashscreen.h16
-rw-r--r--src/statusbar.cpp32
-rw-r--r--src/statusbar.h10
-rw-r--r--vcs/clearcase/clearcasefileinfoprovider.cpp12
-rw-r--r--vcs/clearcase/clearcasefileinfoprovider.h8
-rw-r--r--vcs/clearcase/clearcasemanipulator.cpp16
-rw-r--r--vcs/clearcase/clearcasemanipulator.h6
-rw-r--r--vcs/clearcase/clearcasepart.cpp140
-rw-r--r--vcs/clearcase/clearcasepart.h30
-rw-r--r--vcs/clearcase/commentdlg.cpp28
-rw-r--r--vcs/clearcase/commentdlg.h12
-rw-r--r--vcs/clearcase/integrator/ccintegratordlg.cpp6
-rw-r--r--vcs/clearcase/integrator/ccintegratordlg.h6
-rw-r--r--vcs/clearcase/integrator/clearcaseintegrator.cpp8
-rw-r--r--vcs/clearcase/integrator/clearcaseintegrator.h8
-rw-r--r--vcs/cvsservice/annotatedialog.cpp26
-rw-r--r--vcs/cvsservice/annotatedialog.h8
-rw-r--r--vcs/cvsservice/annotatepage.cpp68
-rw-r--r--vcs/cvsservice/annotatepage.h26
-rw-r--r--vcs/cvsservice/annotateview.cpp86
-rw-r--r--vcs/cvsservice/annotateview.h12
-rw-r--r--vcs/cvsservice/bufferedstringreader.cpp6
-rw-r--r--vcs/cvsservice/bufferedstringreader.h6
-rw-r--r--vcs/cvsservice/changelog.cpp40
-rw-r--r--vcs/cvsservice/changelog.h14
-rw-r--r--vcs/cvsservice/checkoutdialog.cpp80
-rw-r--r--vcs/cvsservice/checkoutdialog.h20
-rw-r--r--vcs/cvsservice/commitdlg.cpp26
-rw-r--r--vcs/cvsservice/commitdlg.h12
-rw-r--r--vcs/cvsservice/cvsdiffpage.cpp34
-rw-r--r--vcs/cvsservice/cvsdiffpage.h16
-rw-r--r--vcs/cvsservice/cvsdir.cpp122
-rw-r--r--vcs/cvsservice/cvsdir.h36
-rw-r--r--vcs/cvsservice/cvsentry.cpp52
-rw-r--r--vcs/cvsservice/cvsentry.h28
-rw-r--r--vcs/cvsservice/cvsfileinfoprovider.cpp64
-rw-r--r--vcs/cvsservice/cvsfileinfoprovider.h20
-rw-r--r--vcs/cvsservice/cvsform.cpp18
-rw-r--r--vcs/cvsservice/cvsform.h14
-rw-r--r--vcs/cvsservice/cvslogdialog.cpp30
-rw-r--r--vcs/cvsservice/cvslogdialog.h10
-rw-r--r--vcs/cvsservice/cvslogpage.cpp80
-rw-r--r--vcs/cvsservice/cvslogpage.h26
-rw-r--r--vcs/cvsservice/cvsoptions.cpp46
-rw-r--r--vcs/cvsservice/cvsoptions.h32
-rw-r--r--vcs/cvsservice/cvsoptionswidget.cpp16
-rw-r--r--vcs/cvsservice/cvsoptionswidget.h16
-rw-r--r--vcs/cvsservice/cvspart.cpp130
-rw-r--r--vcs/cvsservice/cvspart.h20
-rw-r--r--vcs/cvsservice/cvspartimpl.cpp154
-rw-r--r--vcs/cvsservice/cvspartimpl.h50
-rw-r--r--vcs/cvsservice/cvsprocesswidget.cpp80
-rw-r--r--vcs/cvsservice/cvsprocesswidget.h24
-rw-r--r--vcs/cvsservice/cvsservicedcopIface.h6
-rw-r--r--vcs/cvsservice/diffdialog.cpp16
-rw-r--r--vcs/cvsservice/diffdialog.h6
-rw-r--r--vcs/cvsservice/diffwidget.cpp82
-rw-r--r--vcs/cvsservice/diffwidget.h30
-rw-r--r--vcs/cvsservice/editorsdialog.cpp36
-rw-r--r--vcs/cvsservice/editorsdialog.h10
-rw-r--r--vcs/cvsservice/integrator/cvsserviceintegrator.cpp8
-rw-r--r--vcs/cvsservice/integrator/cvsserviceintegrator.h8
-rw-r--r--vcs/cvsservice/integrator/integratordlg.cpp60
-rw-r--r--vcs/cvsservice/integrator/integratordlg.h10
-rw-r--r--vcs/cvsservice/releaseinputdialog.cpp12
-rw-r--r--vcs/cvsservice/releaseinputdialog.h6
-rw-r--r--vcs/cvsservice/tagdialog.cpp8
-rw-r--r--vcs/cvsservice/tagdialog.h6
-rw-r--r--vcs/perforce/commitdlg.cpp64
-rw-r--r--vcs/perforce/commitdlg.h26
-rw-r--r--vcs/perforce/integrator/perforceintegrator.cpp8
-rw-r--r--vcs/perforce/integrator/perforceintegrator.h8
-rw-r--r--vcs/perforce/integrator/pfintegratordlg.cpp6
-rw-r--r--vcs/perforce/integrator/pfintegratordlg.h6
-rw-r--r--vcs/perforce/perforcepart.cpp112
-rw-r--r--vcs/perforce/perforcepart.h32
-rw-r--r--vcs/subversion/commitdlg.cpp10
-rw-r--r--vcs/subversion/commitdlg.h4
-rw-r--r--vcs/subversion/integrator/subversionintegrator.cpp8
-rw-r--r--vcs/subversion/integrator/subversionintegrator.h8
-rw-r--r--vcs/subversion/integrator/svnintegratordlg.cpp22
-rw-r--r--vcs/subversion/integrator/svnintegratordlg.h10
-rw-r--r--vcs/subversion/kdevsvnd.cpp122
-rw-r--r--vcs/subversion/kdevsvnd.h12
-rw-r--r--vcs/subversion/kdevsvnd_widgets.cpp30
-rw-r--r--vcs/subversion/kdevsvnd_widgets.h6
-rw-r--r--vcs/subversion/subversion_core.cpp232
-rw-r--r--vcs/subversion/subversion_core.h38
-rw-r--r--vcs/subversion/subversion_fileinfo.cpp108
-rw-r--r--vcs/subversion/subversion_fileinfo.h18
-rw-r--r--vcs/subversion/subversion_global.h8
-rw-r--r--vcs/subversion/subversion_part.cpp176
-rw-r--r--vcs/subversion/subversion_part.h26
-rw-r--r--vcs/subversion/subversion_widget.cpp30
-rw-r--r--vcs/subversion/subversion_widget.h34
-rw-r--r--vcs/subversion/svn_blamewidget.cpp64
-rw-r--r--vcs/subversion/svn_blamewidget.h46
-rw-r--r--vcs/subversion/svn_copywidget.cpp16
-rw-r--r--vcs/subversion/svn_copywidget.h4
-rw-r--r--vcs/subversion/svn_fileselectdlg_commit.cpp40
-rw-r--r--vcs/subversion/svn_fileselectdlg_commit.h8
-rw-r--r--vcs/subversion/svn_kio.cpp370
-rw-r--r--vcs/subversion/svn_kio.h46
-rw-r--r--vcs/subversion/svn_logviewwidget.cpp96
-rw-r--r--vcs/subversion/svn_logviewwidget.h42
-rw-r--r--vcs/subversion/svn_mergewidget.cpp14
-rw-r--r--vcs/subversion/svn_mergewidget.h2
-rw-r--r--vcs/subversion/svn_switchwidget.cpp14
-rw-r--r--vcs/subversion/svn_switchwidget.h6
1465 files changed, 38886 insertions, 38886 deletions
diff --git a/buildtools/ada/adaglobaloptionsdlg.cpp b/buildtools/ada/adaglobaloptionsdlg.cpp
index a8171c81..e44a15be 100644
--- a/buildtools/ada/adaglobaloptionsdlg.cpp
+++ b/buildtools/ada/adaglobaloptionsdlg.cpp
@@ -6,10 +6,10 @@
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*/
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qlineedit.h>
-#include <qcombobox.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
+#include <tqcombobox.h>
#include <kurlrequester.h>
#include <kdebug.h>
@@ -21,7 +21,7 @@
#include "adaproject_part.h"
#include "adaglobaloptionsdlg.h"
-AdaGlobalOptionsDlg::AdaGlobalOptionsDlg(AdaProjectPart *part, QWidget* parent, const char* name, WFlags fl)
+AdaGlobalOptionsDlg::AdaGlobalOptionsDlg(AdaProjectPart *part, TQWidget* parent, const char* name, WFlags fl)
:AdaProjectOptionsDlgBase(parent,name,fl), m_part(part)
{
delete config_label;
@@ -44,7 +44,7 @@ AdaGlobalOptionsDlg::AdaGlobalOptionsDlg(AdaProjectPart *part, QWidget* parent,
if (offers.isEmpty())
options_button->setEnabled(false);
- currentCompiler = QString::null;
+ currentCompiler = TQString::null;
/*kdDebug() << ServiceComboBox::defaultCompiler() << endl;
kdDebug() << ServiceComboBox::itemForText(ServiceComboBox::defaultCompiler(), service_names) << endl;
@@ -60,17 +60,17 @@ AdaGlobalOptionsDlg::~AdaGlobalOptionsDlg()
void AdaGlobalOptionsDlg::optionsButtonClicked()
{
- QString name = ServiceComboBox::currentText(compiler_box, service_names);
+ TQString name = ServiceComboBox::currentText(compiler_box, service_names);
KDevCompilerOptions *plugin = m_part->createCompilerOptions(name);
if (plugin) {
- QString flags = plugin->exec(this, options_edit->text());
+ TQString flags = plugin->exec(this, options_edit->text());
options_edit->setText(flags);
delete plugin;
}
}
-void AdaGlobalOptionsDlg::compiler_box_activated(const QString& text)
+void AdaGlobalOptionsDlg::compiler_box_activated(const TQString& text)
{
kdDebug() << "text changed from " << currentCompiler << " to " << text << endl;
if (currentCompiler == text)
@@ -88,14 +88,14 @@ void AdaGlobalOptionsDlg::accept()
saveConfigCache();
}
-void AdaGlobalOptionsDlg::saveCompilerOpts( QString compiler )
+void AdaGlobalOptionsDlg::saveCompilerOpts( TQString compiler )
{
configCache[compiler] = options_edit->text();
}
-void AdaGlobalOptionsDlg::readCompilerOpts( QString compiler )
+void AdaGlobalOptionsDlg::readCompilerOpts( TQString compiler )
{
- QString settings = configCache[compiler];
+ TQString settings = configCache[compiler];
if (settings.isEmpty())
{
KConfig *config = KGlobal::config();
@@ -111,7 +111,7 @@ void AdaGlobalOptionsDlg::readConfigCache( )
/* KConfig *config = KGlobal::config();
config->setGroup("Ada Compiler");
- QMap<QString, QString> settings = config->entryMap("Ada Compiler");
+ TQMap<TQString, TQString> settings = config->entryMap("Ada Compiler");
*/
}
@@ -120,7 +120,7 @@ void AdaGlobalOptionsDlg::saveConfigCache( )
KConfig *config = KGlobal::config();
config->setGroup("Ada Compiler");
- for (QMap<QString, QString>::iterator it = configCache.begin(); it != configCache.end(); ++it)
+ for (TQMap<TQString, TQString>::iterator it = configCache.begin(); it != configCache.end(); ++it)
{
config->writeEntry(it.key(), it.data());
}
diff --git a/buildtools/ada/adaglobaloptionsdlg.h b/buildtools/ada/adaglobaloptionsdlg.h
index 92001a1b..1a186ce9 100644
--- a/buildtools/ada/adaglobaloptionsdlg.h
+++ b/buildtools/ada/adaglobaloptionsdlg.h
@@ -9,7 +9,7 @@
#ifndef ADAGLOBALOPTIONSDLG_H
#define ADAGLOBALOPTIONSDLG_H
-#include <qmap.h>
+#include <tqmap.h>
#include <ktrader.h>
@@ -22,7 +22,7 @@ class AdaGlobalOptionsDlg : public AdaProjectOptionsDlgBase
Q_OBJECT
public:
- AdaGlobalOptionsDlg(AdaProjectPart *part, QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ AdaGlobalOptionsDlg(AdaProjectPart *part, TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~AdaGlobalOptionsDlg();
public slots:
@@ -30,18 +30,18 @@ public slots:
protected slots:
virtual void optionsButtonClicked();
- virtual void compiler_box_activated(const QString& text);
+ virtual void compiler_box_activated(const TQString& text);
private:
AdaProjectPart *m_part;
KTrader::OfferList offers;
- QString currentCompiler;
- QStringList service_names;
- QStringList service_execs;
- QMap<QString, QString> configCache;
+ TQString currentCompiler;
+ TQStringList service_names;
+ TQStringList service_execs;
+ TQMap<TQString, TQString> configCache;
- void saveCompilerOpts(QString compiler);
- void readCompilerOpts(QString compiler);
+ void saveCompilerOpts(TQString compiler);
+ void readCompilerOpts(TQString compiler);
void readConfigCache();
void saveConfigCache();
diff --git a/buildtools/ada/adaproject_part.cpp b/buildtools/ada/adaproject_part.cpp
index 33ba166b..f226809d 100644
--- a/buildtools/ada/adaproject_part.cpp
+++ b/buildtools/ada/adaproject_part.cpp
@@ -8,12 +8,12 @@
*/
#include "adaproject_part.h"
-#include <qdom.h>
-#include <qfileinfo.h>
-#include <qdir.h>
-#include <qvaluestack.h>
-#include <qregexp.h>
-#include <qvbox.h>
+#include <tqdom.h>
+#include <tqfileinfo.h>
+#include <tqdir.h>
+#include <tqvaluestack.h>
+#include <tqregexp.h>
+#include <tqvbox.h>
#include <kiconloader.h>
#include <klocale.h>
@@ -46,7 +46,7 @@ typedef KDevGenericFactory<AdaProjectPart> AdaProjectFactory;
static const KDevPluginInfo data("kdevadaproject");
K_EXPORT_COMPONENT_FACTORY( libkdevadaproject, AdaProjectFactory( data ) )
-AdaProjectPart::AdaProjectPart(QObject *parent, const char *name, const QStringList& )
+AdaProjectPart::AdaProjectPart(TQObject *parent, const char *name, const TQStringList& )
:KDevBuildTool(&data, parent, name ? name : "AdaProjectPart" )
{
setInstance(AdaProjectFactory::instance());
@@ -54,21 +54,21 @@ AdaProjectPart::AdaProjectPart(QObject *parent, const char *name, const QStringL
KAction *action;
action = new KAction( i18n("&Build Project"), "make_kdevelop", Key_F8,
- this, SLOT(slotBuild()),
+ this, TQT_SLOT(slotBuild()),
actionCollection(), "build_build" );
action = new KAction( i18n("Execute Program"), "exec", 0,
- this, SLOT(slotExecute()),
+ this, TQT_SLOT(slotExecute()),
actionCollection(), "build_execute" );
- connect( core(), SIGNAL(projectConfigWidget(KDialogBase*)),
- this, SLOT(projectConfigWidget(KDialogBase*)) );
+ connect( core(), TQT_SIGNAL(projectConfigWidget(KDialogBase*)),
+ this, TQT_SLOT(projectConfigWidget(KDialogBase*)) );
- connect( core(), SIGNAL(configWidget(KDialogBase*)),
- this, SLOT(configWidget(KDialogBase*)) );
+ connect( core(), TQT_SIGNAL(configWidget(KDialogBase*)),
+ this, TQT_SLOT(configWidget(KDialogBase*)) );
// m_widget = new AdaProjectWidget(this);
-// 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.
@@ -89,11 +89,11 @@ AdaProjectPart::~AdaProjectPart()
* This should really be merged with FileTreeWidget::matchesHidePattern()
* and put in its own class. Currently this is repeated in scriptprojectpart.cpp, pascalproject_part.cpp, adaproject_part.cpp
*/
-static bool matchesPattern(const QString &fileName, const QStringList &patternList)
+static bool matchesPattern(const TQString &fileName, const TQStringList &patternList)
{
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for (it = patternList.begin(); it != patternList.end(); ++it) {
- QRegExp re(*it, true, true);
+ TQRegExp re(*it, true, true);
if (re.search(fileName) == 0 && re.matchedLength() == (int)fileName.length())
return true;
}
@@ -101,13 +101,13 @@ static bool matchesPattern(const QString &fileName, const QStringList &patternLi
return false;
}
-void AdaProjectPart::openProject(const QString &dirName, const QString &projectName)
+void AdaProjectPart::openProject(const TQString &dirName, const TQString &projectName)
{
m_buildDir = dirName;
m_projectDir = dirName;
m_projectName = projectName;
- QDomDocument &dom = *projectDom();
+ TQDomDocument &dom = *projectDom();
// Set the default directory radio to "executable"
if (DomUtil::readEntry(dom, "/kdevadaproject/run/directoryradio") == "" ) {
DomUtil::writeEntry(dom, "/kdevadaproject/run/directoryradio", "executable");
@@ -116,11 +116,11 @@ void AdaProjectPart::openProject(const QString &dirName, const QString &projectN
loadProjectConfig();
// Put all files from all subdirectories into file list
- QValueStack<QString> s;
+ TQValueStack<TQString> s;
int prefixlen = m_projectDir.length()+1;
s.push(m_projectDir);
- QStringList includepatternList;
+ TQStringList includepatternList;
if ( languageSupport() )
{
@@ -132,10 +132,10 @@ void AdaProjectPart::openProject(const QString &dirName, const QString &projectN
}
}
- QString excludepatterns = "*~";
- QStringList excludepatternList = QStringList::split(",", excludepatterns);
+ TQString excludepatterns = "*~";
+ TQStringList excludepatternList = TQStringList::split(",", excludepatterns);
- QDir dir;
+ TQDir dir;
do {
dir.setPath(s.pop());
kdDebug() << "AdaProjectPart::openProject examining: " << dir.path() << endl;
@@ -143,12 +143,12 @@ void AdaProjectPart::openProject(const QString &dirName, const QString &projectN
if( !dirEntries )
break;
- 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() << "AdaProjectPart::openProject pushing: " << path << endl;
s.push(path);
@@ -188,9 +188,9 @@ DomUtil::PairList AdaProjectPart::runEnvironmentVars() const
* if run/directoryradio == custom
* The custom directory absolute path
*/
-QString AdaProjectPart::runDirectory() const
+TQString AdaProjectPart::runDirectory() const
{
- QString cwd = defaultRunDirectory("kdevadaproject");
+ TQString cwd = defaultRunDirectory("kdevadaproject");
if (cwd.isEmpty())
cwd = buildDirectory();
return cwd;
@@ -206,15 +206,15 @@ QString AdaProjectPart::runDirectory() const
* if run/directoryradio == custom or relative == false
* The absolute path to executable
*/
-QString AdaProjectPart::mainProgram() const
+TQString AdaProjectPart::mainProgram() const
{
- QDomDocument * dom = projectDom();
+ TQDomDocument * dom = projectDom();
- if ( !dom ) return QString();
+ if ( !dom ) return TQString();
- QString DomMainProgram = DomUtil::readEntry( *dom, "/kdevadaproject/run/mainprogram");
+ TQString DomMainProgram = DomUtil::readEntry( *dom, "/kdevadaproject/run/mainprogram");
- if ( DomMainProgram.isEmpty() ) return QString();
+ if ( DomMainProgram.isEmpty() ) return TQString();
if ( DomMainProgram.startsWith("/") ) // assume absolute path
{
@@ -225,68 +225,68 @@ QString AdaProjectPart::mainProgram() const
return projectDirectory() + "/" + DomMainProgram;
}
- return QString();
+ return TQString();
}
-/** Retuns a QString with the run command line arguments */
-QString AdaProjectPart::debugArguments() const
+/** Retuns a TQString with the run command line arguments */
+TQString AdaProjectPart::debugArguments() const
{
return DomUtil::readEntry(*projectDom(), "/kdevadaproject/run/globaldebugarguments");
}
-/** Retuns a QString with the run command line arguments */
-QString AdaProjectPart::runArguments() const
+/** Retuns a TQString with the run command line arguments */
+TQString AdaProjectPart::runArguments() const
{
return DomUtil::readEntry(*projectDom(), "/kdevadaproject/run/programargs");
}
-QString AdaProjectPart::mainSource() const
+TQString AdaProjectPart::mainSource() const
{
return projectDirectory() + "/" + m_mainSource;
}
-void AdaProjectPart::setMainSource(QString fullPath)
+void AdaProjectPart::setMainSource(TQString fullPath)
{
- QString olddir = activeDirectory();
- m_mainSource = fullPath.replace(QRegExp(QString(projectDirectory() + QString("/"))),"");
+ TQString olddir = activeDirectory();
+ m_mainSource = fullPath.replace(TQRegExp(TQString(projectDirectory() + TQString("/"))),"");
emit activeDirectoryChanged( olddir, activeDirectory() );
}
-QString AdaProjectPart::projectDirectory() const
+TQString AdaProjectPart::projectDirectory() const
{
return m_projectDir;
}
-QString AdaProjectPart::projectName() const
+TQString AdaProjectPart::projectName() const
{
return m_projectName;
}
-QString AdaProjectPart::activeDirectory() const
+TQString AdaProjectPart::activeDirectory() const
{
- QFileInfo fi(mainSource());
- return fi.dirPath(true).replace(QRegExp(projectDirectory()),"");
+ TQFileInfo fi(mainSource());
+ return fi.dirPath(true).replace(TQRegExp(projectDirectory()),"");
}
-QString AdaProjectPart::buildDirectory() const
+TQString AdaProjectPart::buildDirectory() const
{
- QFileInfo fi(mainSource());
+ TQFileInfo fi(mainSource());
return fi.dirPath(true);
}
-void AdaProjectPart::listOfFiles(QStringList &result, QString path) const
+void AdaProjectPart::listOfFiles(TQStringList &result, TQString path) const
{
- QDir d(path);
+ TQDir d(path);
if (!d.exists())
return;
- const QFileInfoList *entries = d.entryInfoList(QDir::Dirs | QDir::Files | QDir::Hidden);
+ const QFileInfoList *entries = d.entryInfoList(TQDir::Dirs | TQDir::Files | TQDir::Hidden);
if( !entries )
return;
QFileInfoListIterator it( *entries );
- while( const QFileInfo* fileInfo = it.current() )
+ while( const TQFileInfo* fileInfo = it.current() )
{
++it;
@@ -303,9 +303,9 @@ void AdaProjectPart::listOfFiles(QStringList &result, QString path) const
}
}
-QStringList AdaProjectPart::allFiles() const
+TQStringList AdaProjectPart::allFiles() const
{
-// QStringList files;
+// TQStringList files;
// listOfFiles(files, projectDirectory());
@@ -313,19 +313,19 @@ QStringList AdaProjectPart::allFiles() const
return m_sourceFiles;
}
-void AdaProjectPart::addFile(const QString& /*fileName*/)
+void AdaProjectPart::addFile(const TQString& /*fileName*/)
{
}
-void AdaProjectPart::addFiles(const QStringList& /*fileList*/)
+void AdaProjectPart::addFiles(const TQStringList& /*fileList*/)
{
}
-void AdaProjectPart::removeFile(const QString& /*fileName*/)
+void AdaProjectPart::removeFile(const TQString& /*fileName*/)
{
}
-void AdaProjectPart::removeFiles(const QStringList& /*fileList*/)
+void AdaProjectPart::removeFiles(const TQStringList& /*fileList*/)
{
}
@@ -334,7 +334,7 @@ void AdaProjectPart::slotBuild()
if (partController()->saveAllFiles()==false)
return; //user cancelled
- QString cmdline = m_compilerExec + " " + m_compilerOpts + " ";
+ TQString cmdline = m_compilerExec + " " + m_compilerOpts + " ";
if (cmdline.isEmpty())
{
@@ -342,10 +342,10 @@ void AdaProjectPart::slotBuild()
return;
}
- QFileInfo fi(mainSource());
+ TQFileInfo fi(mainSource());
cmdline += fi.fileName();
- QString dircmd = "cd ";
+ TQString dircmd = "cd ";
dircmd += KProcess::quote(buildDirectory());
dircmd += " && ";
@@ -355,42 +355,42 @@ void AdaProjectPart::slotBuild()
void AdaProjectPart::slotExecute()
{
partController()->saveAllFiles();
- QString program = "./";
+ TQString program = "./";
appFrontend()->startAppCommand(buildDirectory(), mainProgram(), true);
}
-void AdaProjectPart::changedFiles( const QStringList & fileList )
+void AdaProjectPart::changedFiles( const TQStringList & fileList )
{
KDevProject::changedFiles(fileList);
}
-void AdaProjectPart::changedFile( const QString & fileName )
+void AdaProjectPart::changedFile( const TQString & fileName )
{
KDevProject::changedFile(fileName);
}
void AdaProjectPart::projectConfigWidget( KDialogBase * dlg )
{
- QVBox *vbox;
+ TQVBox *vbox;
vbox = dlg->addVBoxPage(i18n("Ada Compiler"));
AdaProjectOptionsDlg *w = new AdaProjectOptionsDlg(this, vbox);
- connect( dlg, SIGNAL(okClicked()), w, SLOT(accept()) );
- connect( dlg, SIGNAL(okClicked()), this, SLOT(loadProjectConfig()) );
+ connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()) );
+ connect( dlg, TQT_SIGNAL(okClicked()), this, TQT_SLOT(loadProjectConfig()) );
}
void AdaProjectPart::loadProjectConfig( )
{
- QDomDocument &dom = *(projectDom());
+ TQDomDocument &dom = *(projectDom());
- QString config = DomUtil::readEntry(dom, "/kdevadaproject/general/useconfiguration", "default");
- m_mainSource = DomUtil::readEntry(dom, QString("/kdevadaproject/configurations/") + config + QString("/mainsource") );
- m_compilerOpts = DomUtil::readEntry(dom, QString("/kdevadaproject/configurations/") + config + QString("/compileroptions"));
- m_compilerExec = DomUtil::readEntry(dom, QString("/kdevadaproject/configurations/") + config + QString("/compilerexec"));
+ TQString config = DomUtil::readEntry(dom, "/kdevadaproject/general/useconfiguration", "default");
+ m_mainSource = DomUtil::readEntry(dom, TQString("/kdevadaproject/configurations/") + config + TQString("/mainsource") );
+ m_compilerOpts = DomUtil::readEntry(dom, TQString("/kdevadaproject/configurations/") + config + TQString("/compileroptions"));
+ m_compilerExec = DomUtil::readEntry(dom, TQString("/kdevadaproject/configurations/") + config + TQString("/compilerexec"));
if (m_compilerExec.isEmpty())
{
KTrader::OfferList offers = KTrader::self()->query("KDevelop/CompilerOptions", "[X-KDevelop-Language] == 'Ada'");
- QValueList<KService::Ptr>::ConstIterator it;
+ TQValueList<KService::Ptr>::ConstIterator it;
for (it = offers.begin(); it != offers.end(); ++it) {
if ((*it)->property("X-KDevelop-Default").toBool()) {
m_compilerExec = (*it)->exec();
@@ -402,13 +402,13 @@ void AdaProjectPart::loadProjectConfig( )
void AdaProjectPart::configWidget( KDialogBase * dlg )
{
- QVBox *vbox;
+ TQVBox *vbox;
vbox = dlg->addVBoxPage(i18n("Ada Compiler"));
AdaGlobalOptionsDlg *w = new AdaGlobalOptionsDlg(this, vbox);
- connect( dlg, SIGNAL(okClicked()), w, SLOT(accept()) );
+ connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()) );
}
-KDevCompilerOptions *AdaProjectPart::createCompilerOptions(const QString &name)
+KDevCompilerOptions *AdaProjectPart::createCompilerOptions(const TQString &name)
{
KService::Ptr service = KService::serviceByDesktopName(name);
if (!service) {
@@ -416,20 +416,20 @@ KDevCompilerOptions *AdaProjectPart::createCompilerOptions(const QString &name)
return 0;
}
- KLibFactory *factory = KLibLoader::self()->factory(QFile::encodeName(service->library()));
+ KLibFactory *factory = KLibLoader::self()->factory(TQFile::encodeName(service->library()));
if (!factory) {
- QString errorMessage = KLibLoader::self()->lastErrorMessage();
+ TQString errorMessage = KLibLoader::self()->lastErrorMessage();
KMessageBox::error(0, i18n("There was an error loading the module %1.\n"
"The diagnostics are:\n%2").arg(service->name()).arg(errorMessage));
exit(1);
}
- QStringList args;
- QVariant prop = service->property("X-KDevelop-Args");
+ TQStringList args;
+ TQVariant prop = service->property("X-KDevelop-Args");
if (prop.isValid())
- args = QStringList::split(" ", prop.toString());
+ args = TQStringList::split(" ", prop.toString());
- QObject *obj = factory->create(this, service->name().latin1(),
+ TQObject *obj = factory->create(this, service->name().latin1(),
"KDevCompilerOptions", args);
if (!obj->inherits("KDevCompilerOptions")) {
@@ -441,7 +441,7 @@ KDevCompilerOptions *AdaProjectPart::createCompilerOptions(const QString &name)
return dlg;
}
-QString AdaProjectPart::defaultOptions( const QString compiler )
+TQString AdaProjectPart::defaultOptions( const TQString compiler )
{
KConfig *config = KGlobal::config();
config->setGroup("Ada Compiler");
@@ -454,12 +454,12 @@ QString AdaProjectPart::defaultOptions( const QString compiler )
/*!
\fn AdaProjectPart::distFiles() const
*/
-QStringList AdaProjectPart::distFiles() const
+TQStringList AdaProjectPart::distFiles() const
{
- QStringList sourceList = allFiles();
+ TQStringList sourceList = allFiles();
// Scan current source directory for any .pro files.
- QString projectDir = projectDirectory();
- QDir dir(projectDir);
- QStringList files = dir.entryList( "Makefile");
+ TQString projectDir = projectDirectory();
+ TQDir dir(projectDir);
+ TQStringList files = dir.entryList( "Makefile");
return sourceList + files;
}
diff --git a/buildtools/ada/adaproject_part.h b/buildtools/ada/adaproject_part.h
index 88966ae2..b62cf204 100644
--- a/buildtools/ada/adaproject_part.h
+++ b/buildtools/ada/adaproject_part.h
@@ -9,7 +9,7 @@
#ifndef __KDEVPART_ADAPROJECT_H__
#define __KDEVPART_ADAPROJECT_H__
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
#include "kdevbuildtool.h"
@@ -21,47 +21,47 @@ class AdaProjectPart : public KDevBuildTool
{
Q_OBJECT
public:
- AdaProjectPart(QObject *parent, const char *name, const QStringList &);
+ AdaProjectPart(TQObject *parent, const char *name, const TQStringList &);
~AdaProjectPart();
- virtual void openProject(const QString &dirName, const QString &projectName);
+ virtual void openProject(const TQString &dirName, const TQString &projectName);
virtual void closeProject();
/**Returns the name of the main source file without extension.
We assume that all Ada compilers call the binary that way. */
- virtual QString mainProgram() const;
+ virtual TQString mainProgram() const;
/**Main source file (like src/main.adb)*/
- virtual QString mainSource() const;
- virtual void setMainSource(QString fullPath);
+ virtual TQString mainSource() const;
+ virtual void setMainSource(TQString fullPath);
- virtual QString projectDirectory() const;
- virtual QString projectName() const;
- virtual QString activeDirectory() const;
+ virtual TQString projectDirectory() const;
+ virtual TQString projectName() const;
+ virtual TQString activeDirectory() const;
/**The location of the main source file*/
- virtual QString buildDirectory() const;
- virtual QString runDirectory() const;
- virtual QString debugArguments() const;
- virtual QString runArguments() const;
+ virtual TQString buildDirectory() const;
+ virtual TQString runDirectory() const;
+ virtual TQString debugArguments() const;
+ virtual TQString runArguments() const;
virtual DomUtil::PairList runEnvironmentVars() const;
/**Returns everything in the project directory*/
- virtual QStringList allFiles() const;
+ virtual TQStringList allFiles() const;
/**This does absolutelly nothing*/
- virtual void addFile(const QString &fileName);
+ virtual void addFile(const TQString &fileName);
/**This does absolutelly nothing*/
- virtual void addFiles(const QStringList &fileList);
+ virtual void addFiles(const TQStringList &fileList);
/**This does absolutelly nothing*/
- virtual void removeFile(const QString &fileName);
+ virtual void removeFile(const TQString &fileName);
/**This does absolutelly nothing*/
- virtual void removeFiles(const QStringList &fileList);
+ virtual void removeFiles(const TQStringList &fileList);
- virtual void changedFiles( const QStringList & fileList );
- virtual void changedFile( const QString & fileName );
+ virtual void changedFiles( const TQStringList & fileList );
+ virtual void changedFile( const TQString & fileName );
- KDevCompilerOptions *createCompilerOptions(const QString &name);
+ KDevCompilerOptions *createCompilerOptions(const TQString &name);
- virtual QString defaultOptions(const QString compiler);
- QStringList distFiles() const;
+ virtual TQString defaultOptions(const TQString compiler);
+ TQStringList distFiles() const;
public slots:
/**loads config from project file*/
@@ -74,20 +74,20 @@ private slots:
void configWidget(KDialogBase *dlg);
private:
- QGuardedPtr<AdaProjectWidget> m_widget;
+ TQGuardedPtr<AdaProjectWidget> m_widget;
- void listOfFiles(QStringList &result, QString path) const;
+ void listOfFiles(TQStringList &result, TQString path) const;
- QString m_buildDir;
- QString m_projectDir;
- QString m_projectName;
+ TQString m_buildDir;
+ TQString m_projectDir;
+ TQString m_projectName;
- QString m_mainProg;
- QString m_mainSource;
- QString m_compilerExec;
- QString m_compilerOpts;
+ TQString m_mainProg;
+ TQString m_mainSource;
+ TQString m_compilerExec;
+ TQString m_compilerOpts;
- QStringList m_sourceFiles;
+ TQStringList m_sourceFiles;
};
#endif
diff --git a/buildtools/ada/adaproject_widget.cpp b/buildtools/ada/adaproject_widget.cpp
index d4bdf37b..2e5d818a 100644
--- a/buildtools/ada/adaproject_widget.cpp
+++ b/buildtools/ada/adaproject_widget.cpp
@@ -10,7 +10,7 @@
AdaProjectWidget::AdaProjectWidget(AdaProjectPart *part)
- : QWidget(0, "AdaProject widget")
+ : TQWidget(0, "AdaProject widget")
{
Q_UNUSED( part );
}
diff --git a/buildtools/ada/adaproject_widget.h b/buildtools/ada/adaproject_widget.h
index dc6b4ec4..5e7038f2 100644
--- a/buildtools/ada/adaproject_widget.h
+++ b/buildtools/ada/adaproject_widget.h
@@ -1,8 +1,8 @@
#ifndef __ADAPROJECT_WIDGET_H__
#define __ADAPROJECT_WIDGET_H__
-#include <qwidget.h>
-#include <qstring.h>
+#include <tqwidget.h>
+#include <tqstring.h>
class KDevProject;
class AdaProjectPart;
diff --git a/buildtools/ada/adaprojectoptionsdlg.cpp b/buildtools/ada/adaprojectoptionsdlg.cpp
index 3eafb082..ee08da6d 100644
--- a/buildtools/ada/adaprojectoptionsdlg.cpp
+++ b/buildtools/ada/adaprojectoptionsdlg.cpp
@@ -12,10 +12,10 @@
#include <kmessagebox.h>
#include <klocale.h>
-#include <qlineedit.h>
-#include <qcombobox.h>
-#include <qregexp.h>
-#include <qvalidator.h>
+#include <tqlineedit.h>
+#include <tqcombobox.h>
+#include <tqregexp.h>
+#include <tqvalidator.h>
#include "domutil.h"
#include "kdevcompileroptions.h"
@@ -24,10 +24,10 @@
#include "adaproject_part.h"
#include "adaprojectoptionsdlg.h"
-AdaProjectOptionsDlg::AdaProjectOptionsDlg(AdaProjectPart *part, QWidget* parent, const char* name, WFlags fl)
+AdaProjectOptionsDlg::AdaProjectOptionsDlg(AdaProjectPart *part, TQWidget* parent, const char* name, WFlags fl)
: AdaProjectOptionsDlgBase(parent,name, fl), m_part(part)
{
- config_combo->setValidator(new QRegExpValidator(QRegExp("^\\D.*"), this));
+ config_combo->setValidator(new TQRegExpValidator(TQRegExp("^\\D.*"), this));
offers = KTrader::self()->query("KDevelop/CompilerOptions", "[X-KDevelop-Language] == 'Ada'");
@@ -41,8 +41,8 @@ AdaProjectOptionsDlg::AdaProjectOptionsDlg(AdaProjectPart *part, QWidget* parent
dirty = false;
- QDomDocument &dom = *(m_part->projectDom());
- currentConfig = QString::null;
+ TQDomDocument &dom = *(m_part->projectDom());
+ currentConfig = TQString::null;
configChanged(DomUtil::readEntry(dom, "/kdevadaproject/general/useconfiguration", "default"));
}
@@ -50,17 +50,17 @@ AdaProjectOptionsDlg::~AdaProjectOptionsDlg()
{
}
-QStringList AdaProjectOptionsDlg::allBuildConfigs()
+TQStringList AdaProjectOptionsDlg::allBuildConfigs()
{
- QDomDocument &dom = *(m_part->projectDom());
+ TQDomDocument &dom = *(m_part->projectDom());
- QStringList allConfigs;
+ TQStringList allConfigs;
allConfigs.append("default");
- QDomNode node = dom.documentElement().namedItem("kdevadaproject").namedItem("configurations");
- QDomElement childEl = node.firstChild().toElement();
+ TQDomNode node = dom.documentElement().namedItem("kdevadaproject").namedItem("configurations");
+ TQDomElement childEl = node.firstChild().toElement();
while (!childEl.isNull()) {
- QString config = childEl.tagName();
+ TQString config = childEl.tagName();
kdDebug() << "Found config " << config << endl;
if (config != "default")
allConfigs.append(config);
@@ -79,35 +79,35 @@ void AdaProjectOptionsDlg::accept()
}
}
-void AdaProjectOptionsDlg::compiler_box_activated( const QString& /*s*/ )
+void AdaProjectOptionsDlg::compiler_box_activated( const TQString& /*s*/ )
{
- QString exec = ServiceComboBox::currentText(compiler_box, service_execs);
+ TQString exec = ServiceComboBox::currentText(compiler_box, service_execs);
exec_edit->setText(exec);
}
-void AdaProjectOptionsDlg::saveConfig( QString config )
+void AdaProjectOptionsDlg::saveConfig( TQString config )
{
- QDomDocument dom = *m_part->projectDom();
- QString prefix = "/kdevadaproject/configurations/" + config + "/";
+ TQDomDocument dom = *m_part->projectDom();
+ TQString prefix = "/kdevadaproject/configurations/" + config + "/";
DomUtil::writeEntry(dom, prefix + "compiler",
ServiceComboBox::currentText(compiler_box, service_names));
DomUtil::writeEntry(dom, prefix + "compileroptions", options_edit->text());
DomUtil::writeEntry(dom, prefix + "compilerexec", exec_edit->text());
- DomUtil::writeEntry(dom, prefix + "mainsource", mainSourceUrl->url().replace(QRegExp(m_part->projectDirectory() + QString("/")),""));
+ DomUtil::writeEntry(dom, prefix + "mainsource", mainSourceUrl->url().replace(TQRegExp(m_part->projectDirectory() + TQString("/")),""));
}
-void AdaProjectOptionsDlg::readConfig( QString config )
+void AdaProjectOptionsDlg::readConfig( TQString config )
{
- QDomDocument dom = *m_part->projectDom();
- QString prefix = "/kdevadaproject/configurations/" + config + "/";
+ TQDomDocument dom = *m_part->projectDom();
+ TQString prefix = "/kdevadaproject/configurations/" + config + "/";
- QString compiler = DomUtil::readEntry(dom, prefix + "compiler", "");
+ TQString compiler = DomUtil::readEntry(dom, prefix + "compiler", "");
if (compiler.isEmpty())
{
offers = KTrader::self()->query("KDevelop/CompilerOptions", "[X-KDevelop-Language] == 'Ada'");
- QValueList<KService::Ptr>::ConstIterator it;
+ TQValueList<KService::Ptr>::ConstIterator it;
for (it = offers.begin(); it != offers.end(); ++it) {
if ((*it)->property("X-KDevelop-Default").toBool()) {
compiler = (*it)->name();
@@ -118,7 +118,7 @@ void AdaProjectOptionsDlg::readConfig( QString config )
}
ServiceComboBox::setCurrentText(compiler_box, compiler, service_names);
- QString exec = DomUtil::readEntry(dom, prefix + "compilerexec", "");
+ TQString exec = DomUtil::readEntry(dom, prefix + "compilerexec", "");
if (exec.isEmpty())
exec = ServiceComboBox::currentText(compiler_box, service_execs);
exec_edit->setText(exec);
@@ -126,7 +126,7 @@ void AdaProjectOptionsDlg::readConfig( QString config )
mainSourceUrl->setURL(m_part->projectDirectory() + "/" + DomUtil::readEntry(dom, prefix + "mainsource"));
}
-void AdaProjectOptionsDlg::configComboTextChanged(const QString &config)
+void AdaProjectOptionsDlg::configComboTextChanged(const TQString &config)
{
bool canAdd = !allConfigs.contains(config) && !config.contains("/") && !config.isEmpty();
bool canRemove = allConfigs.contains(config) && config != "default";
@@ -135,7 +135,7 @@ void AdaProjectOptionsDlg::configComboTextChanged(const QString &config)
}
-void AdaProjectOptionsDlg::configChanged(const QString &config)
+void AdaProjectOptionsDlg::configChanged(const TQString &config)
{
if (config == currentConfig || !allConfigs.contains(config))
return;
@@ -155,7 +155,7 @@ void AdaProjectOptionsDlg::configChanged(const QString &config)
void AdaProjectOptionsDlg::configAdded()
{
- QString config = config_combo->currentText();
+ TQString config = config_combo->currentText();
allConfigs.append(config);
@@ -168,27 +168,27 @@ void AdaProjectOptionsDlg::configAdded()
void AdaProjectOptionsDlg::configRemoved()
{
- QString config = config_combo->currentText();
+ TQString config = config_combo->currentText();
- QDomDocument dom = *m_part->projectDom();
- QDomNode node = dom.documentElement().namedItem("kdevadaproject").namedItem("configurations");
+ TQDomDocument dom = *m_part->projectDom();
+ TQDomNode node = dom.documentElement().namedItem("kdevadaproject").namedItem("configurations");
node.removeChild(node.namedItem(config));
allConfigs.remove(config);
config_combo->clear();
config_combo->insertStringList(allConfigs);
- currentConfig = QString::null;
+ currentConfig = TQString::null;
configChanged("default");
}
void AdaProjectOptionsDlg::optionsButtonClicked( )
{
- QString name = ServiceComboBox::currentText(compiler_box, service_names);
+ TQString name = ServiceComboBox::currentText(compiler_box, service_names);
KDevCompilerOptions *plugin = m_part->createCompilerOptions(name);
if (plugin) {
- QString flags = plugin->exec(this, options_edit->text());
+ TQString flags = plugin->exec(this, options_edit->text());
options_edit->setText(flags);
delete plugin;
}
diff --git a/buildtools/ada/adaprojectoptionsdlg.h b/buildtools/ada/adaprojectoptionsdlg.h
index d91c5266..5e40547d 100644
--- a/buildtools/ada/adaprojectoptionsdlg.h
+++ b/buildtools/ada/adaprojectoptionsdlg.h
@@ -21,16 +21,16 @@ class AdaProjectOptionsDlg : public AdaProjectOptionsDlgBase
Q_OBJECT
public:
- AdaProjectOptionsDlg(AdaProjectPart *part, QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ AdaProjectOptionsDlg(AdaProjectPart *part, TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~AdaProjectOptionsDlg();
public slots:
virtual void accept();
protected slots:
- virtual void compiler_box_activated(const QString &s);
- void configComboTextChanged(const QString &config);
- void configChanged(const QString &config);
+ virtual void compiler_box_activated(const TQString &s);
+ void configComboTextChanged(const TQString &config);
+ void configChanged(const TQString &config);
void configAdded();
void configRemoved();
void optionsButtonClicked();
@@ -38,19 +38,19 @@ protected slots:
void setDefaultOptions();
private:
- QStringList allConfigs;
- QString currentConfig;
+ TQStringList allConfigs;
+ TQString currentConfig;
bool dirty;
KTrader::OfferList offers;
- QStringList service_names;
- QStringList service_execs;
+ TQStringList service_names;
+ TQStringList service_execs;
AdaProjectPart *m_part;
- void saveConfig(QString config);
- void readConfig(QString config);
- QStringList allBuildConfigs();
+ void saveConfig(TQString config);
+ void readConfig(TQString config);
+ TQStringList allBuildConfigs();
};
#endif
diff --git a/buildtools/ada/service.cpp b/buildtools/ada/service.cpp
index 02081a58..97b4f2f5 100644
--- a/buildtools/ada/service.cpp
+++ b/buildtools/ada/service.cpp
@@ -8,8 +8,8 @@
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*/
-#include <qcombobox.h>
-#include <qvaluelist.h>
+#include <tqcombobox.h>
+#include <tqvaluelist.h>
#include <kservice.h>
#include <kdebug.h>
@@ -17,10 +17,10 @@
#include "service.h"
-void ServiceComboBox::insertStringList(QComboBox *combo, const QValueList<KService::Ptr> &list,
- QStringList *names, QStringList *execs)
+void ServiceComboBox::insertStringList(TQComboBox *combo, const TQValueList<KService::Ptr> &list,
+ TQStringList *names, TQStringList *execs)
{
- QValueList<KService::Ptr>::ConstIterator it;
+ TQValueList<KService::Ptr>::ConstIterator it;
for (it = list.begin(); it != list.end(); ++it) {
combo->insertItem((*it)->comment());
(*names) << (*it)->desktopEntryName();
@@ -29,16 +29,16 @@ void ServiceComboBox::insertStringList(QComboBox *combo, const QValueList<KServi
}
}
-QString ServiceComboBox::currentText(QComboBox *combo, const QStringList &names)
+TQString ServiceComboBox::currentText(TQComboBox *combo, const TQStringList &names)
{
if (combo->currentItem() == -1)
- return QString::null;
+ return TQString::null;
return names[combo->currentItem()];
}
-void ServiceComboBox::setCurrentText(QComboBox *combo, const QString &str, const QStringList &names)
+void ServiceComboBox::setCurrentText(TQComboBox *combo, const TQString &str, const TQStringList &names)
{
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
int i = 0;
for (it = names.begin(); it != names.end(); ++it) {
if (*it == str) {
@@ -49,9 +49,9 @@ void ServiceComboBox::setCurrentText(QComboBox *combo, const QString &str, const
}
}
-int ServiceComboBox::itemForText(const QString &str, const QStringList &names)
+int ServiceComboBox::itemForText(const TQString &str, const TQStringList &names)
{
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
int i = 0;
for (it = names.begin(); it != names.end(); ++it) {
if (*it == str) {
@@ -62,10 +62,10 @@ int ServiceComboBox::itemForText(const QString &str, const QStringList &names)
return 0;
}
-QString ServiceComboBox::defaultCompiler()
+TQString ServiceComboBox::defaultCompiler()
{
KTrader::OfferList offers = KTrader::self()->query("KDevelop/CompilerOptions", "[X-KDevelop-Language] == 'Ada'");
- QValueList<KService::Ptr>::ConstIterator it;
+ TQValueList<KService::Ptr>::ConstIterator it;
for (it = offers.begin(); it != offers.end(); ++it) {
if ((*it)->property("X-KDevelop-Default").toBool()) {
return (*it)->name();;
diff --git a/buildtools/ada/service.h b/buildtools/ada/service.h
index f9671d0a..f170bb54 100644
--- a/buildtools/ada/service.h
+++ b/buildtools/ada/service.h
@@ -16,12 +16,12 @@
class ServiceComboBox
{
public:
- static void insertStringList(QComboBox *combo, const QValueList<KService::Ptr> &list,
- QStringList *names, QStringList *execs);
- static QString currentText(QComboBox *combo, const QStringList &names);
- static void setCurrentText(QComboBox *combo, const QString &str, const QStringList &names);
- static int itemForText(const QString &str, const QStringList &names);
- static QString defaultCompiler();
+ static void insertStringList(TQComboBox *combo, const TQValueList<KService::Ptr> &list,
+ TQStringList *names, TQStringList *execs);
+ static TQString currentText(TQComboBox *combo, const TQStringList &names);
+ static void setCurrentText(TQComboBox *combo, const TQString &str, const TQStringList &names);
+ static int itemForText(const TQString &str, const TQStringList &names);
+ static TQString defaultCompiler();
};
#endif
diff --git a/buildtools/ant/antprojectpart.cpp b/buildtools/ant/antprojectpart.cpp
index a7f0ea25..d6f66b46 100644
--- a/buildtools/ant/antprojectpart.cpp
+++ b/buildtools/ant/antprojectpart.cpp
@@ -1,14 +1,14 @@
#include "antprojectpart.h"
-#include <qapplication.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qpopupmenu.h>
-#include <qvbox.h>
-#include <qtable.h>
-#include <qtextstream.h>
-#include <qvaluestack.h>
-#include <qdir.h>
+#include <tqapplication.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqpopupmenu.h>
+#include <tqvbox.h>
+#include <tqtable.h>
+#include <tqtextstream.h>
+#include <tqvaluestack.h>
+#include <tqdir.h>
#include <kdevgenericfactory.h>
@@ -45,7 +45,7 @@ AntOptions::AntOptions()
}
-AntProjectPart::AntProjectPart(QObject *parent, const char *name, const QStringList &)
+AntProjectPart::AntProjectPart(TQObject *parent, const char *name, const TQStringList &)
: KDevBuildTool(&data, parent, name ? name : "AntProjectPart")
{
setInstance(AntProjectFactory::instance());
@@ -53,7 +53,7 @@ AntProjectPart::AntProjectPart(QObject *parent, const char *name, const QStringL
setXMLFile("kdevantproject.rc");
m_buildProjectAction = new KAction(i18n("&Build Project"), "make_kdevelop", Key_F8,
- this, SLOT(slotBuild()),
+ this, TQT_SLOT(slotBuild()),
actionCollection(), "build_build" );
m_buildProjectAction->setToolTip(i18n("Build project"));
m_buildProjectAction->setWhatsThis(i18n("<b>Build project</b><p>Executes <b>ant dist</b> command to build the project."));
@@ -65,9 +65,9 @@ AntProjectPart::AntProjectPart(QObject *parent, const char *name, const QStringL
m_targetMenu = menu->popupMenu();
- connect(m_targetMenu, SIGNAL(activated(int)), this, SLOT(slotTargetMenuActivated(int)));
- connect(core(), SIGNAL(projectConfigWidget(KDialogBase*)), this, SLOT(projectConfigWidget(KDialogBase*)));
- connect(core(), SIGNAL(contextMenu(QPopupMenu *, const Context *)), this, SLOT(contextMenu(QPopupMenu *, const Context *)));
+ connect(m_targetMenu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotTargetMenuActivated(int)));
+ 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 *)));
m_antOptionsWidget = 0;
}
@@ -78,12 +78,12 @@ AntProjectPart::~AntProjectPart()
}
-void AntProjectPart::openProject(const QString &dirName, const QString &projectName)
+void AntProjectPart::openProject(const TQString &dirName, const TQString &projectName)
{
m_projectDirectory = dirName;
m_projectName = projectName;
- QDomDocument &dom = *projectDom();
+ TQDomDocument &dom = *projectDom();
// Set the default directory radio to "executable"
/// \FIXME there is no kdevantproject so this will not work !
if (DomUtil::readEntry(dom, "/kdevantproject/run/directoryradio") == "" ) {
@@ -97,13 +97,13 @@ void AntProjectPart::openProject(const QString &dirName, const QString &projectN
fillMenu();
- QFile f(dirName + "/" + projectName.lower() + ".kdevelop" + ".filelist");
+ TQFile f(dirName + "/" + projectName.lower() + ".kdevelop" + ".filelist");
if (f.open(IO_ReadOnly))
{
- QTextStream stream(&f);
+ TQTextStream stream(&f);
while (!stream.atEnd())
{
- QString s = stream.readLine();
+ TQString s = stream.readLine();
if (!s.startsWith("#"))
m_sourceFiles << s;
}
@@ -117,25 +117,25 @@ void AntProjectPart::openProject(const QString &dirName, const QString &projectN
void AntProjectPart::populateProject()
{
- QApplication::setOverrideCursor(Qt::waitCursor);
+ TQApplication::setOverrideCursor(Qt::waitCursor);
- QValueStack<QString> s;
+ TQValueStack<TQString> s;
int prefixlen = m_projectDirectory.length()+1;
s.push(m_projectDirectory);
- QDir dir;
+ TQDir dir;
do
{
dir.setPath(s.pop());
kdDebug() << "Examining: " << dir.path() << endl;
const QFileInfoList *dirEntries = dir.entryInfoList();
- 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() << "Pushing: " << path << endl;
@@ -150,7 +150,7 @@ void AntProjectPart::populateProject()
}
while (!s.isEmpty());
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
}
@@ -164,32 +164,32 @@ void AntProjectPart::closeProject()
m_antOptions = AntOptions();
- QFile f(m_projectDirectory + "/" + m_projectName.lower() + ".kdevelop" + ".filelist");
+ TQFile f(m_projectDirectory + "/" + m_projectName.lower() + ".kdevelop" + ".filelist");
if (!f.open(IO_WriteOnly))
return;
- QTextStream stream(&f);
+ TQTextStream stream(&f);
stream << "# KDevelop Ant Project File List" << endl;
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for (it = m_sourceFiles.begin(); it != m_sourceFiles.end(); ++it)
stream << (*it) << endl;
f.close();
}
-QString AntProjectPart::projectDirectory() const
+TQString AntProjectPart::projectDirectory() const
{
return m_projectDirectory;
}
-QString AntProjectPart::buildDirectory() const
+TQString AntProjectPart::buildDirectory() const
{
return m_projectDirectory;
}
-QString AntProjectPart::projectName() const
+TQString AntProjectPart::projectName() const
{
return m_projectName;
}
@@ -212,16 +212,16 @@ DomUtil::PairList AntProjectPart::runEnvironmentVars() const
* if run/directoryradio == custom
* The custom directory absolute path
*/
-QString AntProjectPart::runDirectory() const
+TQString AntProjectPart::runDirectory() const
{
return buildDirectory();
/// \FIXME put the code below into use!
- QDomDocument &dom = *projectDom();
+ TQDomDocument &dom = *projectDom();
/// \FIXME there is no kdevantproject so this will not work !
- QString directoryRadioString = DomUtil::readEntry(dom, "/kdevantproject/run/directoryradio");
- QString DomMainProgram = DomUtil::readEntry(dom, "/kdevantproject/run/mainprogram");
+ TQString directoryRadioString = DomUtil::readEntry(dom, "/kdevantproject/run/directoryradio");
+ TQString DomMainProgram = DomUtil::readEntry(dom, "/kdevantproject/run/mainprogram");
if ( directoryRadioString == "build" )
return buildDirectory();
@@ -247,15 +247,15 @@ QString AntProjectPart::runDirectory() const
* if run/directoryradio == custom or relative == false
* The absolute path to executable
*/
-QString AntProjectPart::mainProgram() const
+TQString AntProjectPart::mainProgram() const
{
- QDomDocument * dom = projectDom();
+ TQDomDocument * dom = projectDom();
- if ( !dom ) return QString();
+ if ( !dom ) return TQString();
- QString DomMainProgram = DomUtil::readEntry( *dom, "/kdevantproject/run/mainprogram");
+ TQString DomMainProgram = DomUtil::readEntry( *dom, "/kdevantproject/run/mainprogram");
- if ( DomMainProgram.isEmpty() ) return QString();
+ if ( DomMainProgram.isEmpty() ) return TQString();
if ( DomMainProgram.startsWith("/") ) // assume absolute path
{
@@ -266,24 +266,24 @@ QString AntProjectPart::mainProgram() const
return projectDirectory() + "/" + DomMainProgram;
}
- return QString();
+ return TQString();
}
-QString AntProjectPart::debugArguments() const
+TQString AntProjectPart::debugArguments() const
{
- return QString("");
+ return TQString("");
}
-/** Retuns a QString with the run command line arguments */
-QString AntProjectPart::runArguments() const
+/** Retuns a TQString with the run command line arguments */
+TQString AntProjectPart::runArguments() const
{
/// \FIXME there is no kdevantproject so this will not work !
return DomUtil::readEntry(*projectDom(), "/kdevantproject/run/programargs");
}
-QString AntProjectPart::activeDirectory() const
+TQString AntProjectPart::activeDirectory() const
{
/// \FIXME
@@ -291,18 +291,18 @@ QString AntProjectPart::activeDirectory() const
// returning m_projectDirectory is wrong, the path returned should be _relative_ to the project dir
// returning an empty string until antproject supports the idea of an active directory
- return QString("");
+ return TQString("");
}
-QStringList AntProjectPart::allFiles() const
+TQStringList AntProjectPart::allFiles() const
{
-/* QStringList res;
+/* TQStringList res;
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for (it = m_sourceFiles.begin(); it != m_sourceFiles.end(); ++it)
{
- QString fileName = *it;
+ TQString fileName = *it;
if (!fileName.startsWith("/"))
{
fileName.prepend("/");
@@ -318,17 +318,17 @@ QStringList AntProjectPart::allFiles() const
}
-void AntProjectPart::addFile(const QString &fileName)
+void AntProjectPart::addFile(const TQString &fileName)
{
- QStringList fileList;
+ TQStringList fileList;
fileList.append ( fileName );
this->addFiles ( fileList );
}
-void AntProjectPart::addFiles ( const QStringList& fileList )
+void AntProjectPart::addFiles ( const TQStringList& fileList )
{
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = fileList.begin(); it != fileList.end(); ++it )
{
@@ -339,20 +339,20 @@ void AntProjectPart::addFiles ( const QStringList& fileList )
emit addedFilesToProject(fileList);
}
-void AntProjectPart::removeFile(const QString &fileName)
+void AntProjectPart::removeFile(const TQString &fileName)
{
- QStringList fileList;
+ TQStringList fileList;
fileList.append ( fileName );
this->removeFiles ( fileList );
}
-void AntProjectPart::removeFiles ( const QStringList& fileList )
+void AntProjectPart::removeFiles ( const TQStringList& fileList )
{
kdDebug() << "Emitting removedFilesFromProject" << endl;
emit removedFilesFromProject(fileList);
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = fileList.begin(); it != fileList.end(); ++it )
{
@@ -367,12 +367,12 @@ void AntProjectPart::parseBuildXML()
m_antOptions.m_defineProperties.clear();
// open build file
- QFile bf(m_projectDirectory + "/" + m_antOptions.m_buildXML);
+ TQFile bf(m_projectDirectory + "/" + m_antOptions.m_buildXML);
if (!bf.open(IO_ReadOnly))
return;
// parse build file
- QDomDocument dom;
+ TQDomDocument dom;
if (!dom.setContent(&bf))
{
bf.close();
@@ -383,7 +383,7 @@ void AntProjectPart::parseBuildXML()
m_projectName = dom.documentElement().attribute("name", m_projectName);
m_antOptions.m_defaultTarget = dom.documentElement().attribute("default", "");
- QDomNode node = dom.documentElement().firstChild();
+ TQDomNode node = dom.documentElement().firstChild();
while (!node.isNull())
{
if (node.toElement().tagName() == "target")
@@ -412,7 +412,7 @@ void AntProjectPart::fillMenu()
m_targetMenu->clear();
int id = 0;
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for (it = m_antOptions.m_targets.begin(); it != m_antOptions.m_targets.end(); ++it)
m_targetMenu->insertItem(*it, id++);
}
@@ -430,11 +430,11 @@ void AntProjectPart::slotTargetMenuActivated(int id)
}
-void AntProjectPart::ant(const QString &target)
+void AntProjectPart::ant(const TQString &target)
{
- QString cmd = "%0 cd %1 && ant %2 -buildfile %3 %4 %5";
+ TQString cmd = "%0 cd %1 && ant %2 -buildfile %3 %4 %5";
- QString verb = "";
+ TQString verb = "";
switch (m_antOptions.m_verbosity)
{
case AntOptions::Quiet:
@@ -448,13 +448,13 @@ void AntProjectPart::ant(const QString &target)
break;
}
- QString options = "";
- QMap<QString,QString>::Iterator it;
+ TQString options = "";
+ TQMap<TQString,TQString>::Iterator it;
for (it = m_antOptions.m_properties.begin(); it != m_antOptions.m_properties.end(); ++it)
if (m_antOptions.m_defineProperties[it.key()])
options += "-D" + it.key() + "=\"" + it.data() + "\" ";
- QString cp;
+ TQString cp;
if (!m_classPath.count() == 0)
cp = "CLASSPATH="+m_classPath.join(":");
@@ -464,7 +464,7 @@ void AntProjectPart::ant(const QString &target)
void AntProjectPart::projectConfigWidget(KDialogBase *dlg)
{
- QVBox *vbox = dlg->addVBoxPage(i18n("Ant Options"));
+ TQVBox *vbox = dlg->addVBoxPage(i18n("Ant Options"));
m_antOptionsWidget = new AntOptionsWidget(vbox);
m_antOptionsWidget->BuildXML->setURL(m_antOptions.m_buildXML);
@@ -485,19 +485,19 @@ void AntProjectPart::projectConfigWidget(KDialogBase *dlg)
m_antOptionsWidget->Properties->setNumRows(m_antOptions.m_properties.count());
m_antOptionsWidget->Properties->setNumCols(2);
- QMap<QString,QString>::Iterator it;
+ TQMap<TQString,TQString>::Iterator it;
int i=0;
for (it = m_antOptions.m_properties.begin(); it != m_antOptions.m_properties.end(); ++it)
{
- QCheckTableItem *citem = new QCheckTableItem(m_antOptionsWidget->Properties, it.key());
+ TQCheckTableItem *citem = new TQCheckTableItem(m_antOptionsWidget->Properties, it.key());
citem->setChecked(m_antOptions.m_defineProperties[it.key()]);
m_antOptionsWidget->Properties->setItem(i,0, citem);
- QTableItem *item = new QTableItem(m_antOptionsWidget->Properties, QTableItem::WhenCurrent, it.data());
+ TQTableItem *item = new TQTableItem(m_antOptionsWidget->Properties, TQTableItem::WhenCurrent, it.data());
m_antOptionsWidget->Properties->setItem(i,1, item);
++i;
}
- connect(dlg, SIGNAL(okClicked()), this, SLOT(optionsAccepted()));
+ connect(dlg, TQT_SIGNAL(okClicked()), this, TQT_SLOT(optionsAccepted()));
vbox = dlg->addVBoxPage(i18n("Classpath"));
m_classPathWidget = new ClassPathWidget(vbox);
@@ -528,11 +528,11 @@ void AntProjectPart::optionsAccepted()
for (int i=0; i<m_antOptionsWidget->Properties->numRows(); ++i)
{
- QString key = m_antOptionsWidget->Properties->text(i,0);
+ TQString key = m_antOptionsWidget->Properties->text(i,0);
m_antOptions.m_properties.replace(key, m_antOptionsWidget->Properties->text(i,1));
kdDebug() << "PROP: " << key << " = " << m_antOptionsWidget->Properties->text(i,1);
- QCheckTableItem *item =(QCheckTableItem*) m_antOptionsWidget->Properties->item(i,0);
+ TQCheckTableItem *item =(TQCheckTableItem*) m_antOptionsWidget->Properties->item(i,0);
m_antOptions.m_defineProperties.replace(key, item->isChecked());
}
@@ -543,7 +543,7 @@ void AntProjectPart::optionsAccepted()
}
-void AntProjectPart::contextMenu(QPopupMenu *popup, const Context *context)
+void AntProjectPart::contextMenu(TQPopupMenu *popup, const Context *context)
{
if (!context->hasType( Context::FileContext ))
return;
@@ -555,7 +555,7 @@ void AntProjectPart::contextMenu(QPopupMenu *popup, const Context *context)
m_contextFileName = url.fileName();
bool inProject = project()->allFiles().contains(m_contextFileName.mid ( project()->projectDirectory().length() + 1 ) );
- QString popupstr = QFileInfo(m_contextFileName).fileName();
+ TQString popupstr = TQFileInfo(m_contextFileName).fileName();
if (m_contextFileName.startsWith(projectDirectory()+ "/"))
m_contextFileName.remove(0, projectDirectory().length()+1);
@@ -563,13 +563,13 @@ void AntProjectPart::contextMenu(QPopupMenu *popup, const Context *context)
if (inProject)
{
int id = popup->insertItem( i18n("Remove %1 From Project").arg(popupstr),
- this, SLOT(slotRemoveFromProject()) );
+ this, TQT_SLOT(slotRemoveFromProject()) );
popup->setWhatsThis(id, i18n("<b>Remove from project</b><p>Removes current file from the project."));
}
else
{
int id = popup->insertItem( i18n("Add %1 to Project").arg(popupstr),
- this, SLOT(slotAddToProject()) );
+ this, TQT_SLOT(slotAddToProject()) );
popup->setWhatsThis(id, i18n("<b>Add to project</b><p>Adds current file from the project."));
}
}
@@ -577,7 +577,7 @@ void AntProjectPart::contextMenu(QPopupMenu *popup, const Context *context)
void AntProjectPart::slotAddToProject()
{
- QStringList fileList;
+ TQStringList fileList;
fileList.append ( m_contextFileName );
addFiles ( fileList );
}
@@ -585,7 +585,7 @@ void AntProjectPart::slotAddToProject()
void AntProjectPart::slotRemoveFromProject()
{
- QStringList fileList;
+ TQStringList fileList;
fileList.append ( m_contextFileName );
removeFiles ( fileList );
}
@@ -597,12 +597,12 @@ void AntProjectPart::slotRemoveFromProject()
/*!
\fn AntProjectPart::distFiles() const
*/
-QStringList AntProjectPart::distFiles() const
+TQStringList AntProjectPart::distFiles() const
{
- QStringList sourceList = allFiles();
+ TQStringList sourceList = allFiles();
// Scan current source directory for any .pro files.
- QString projectDir = projectDirectory();
- QDir dir(projectDir);
- QStringList files = dir.entryList( "build.xml");
+ TQString projectDir = projectDirectory();
+ TQDir dir(projectDir);
+ TQStringList files = dir.entryList( "build.xml");
return sourceList + files;
}
diff --git a/buildtools/ant/antprojectpart.h b/buildtools/ant/antprojectpart.h
index d6540c48..b40740b5 100644
--- a/buildtools/ant/antprojectpart.h
+++ b/buildtools/ant/antprojectpart.h
@@ -2,9 +2,9 @@
#define _ANTPROJECTPART_H_
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qmap.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqmap.h>
class QPopupMenu;
@@ -30,11 +30,11 @@ public:
enum Verbosity { Quiet, Verbose, Debug };
- QString m_buildXML;
- QString m_defaultTarget;
- QStringList m_targets;
- QMap<QString,QString> m_properties;
- QMap<QString,bool> m_defineProperties;
+ TQString m_buildXML;
+ TQString m_defaultTarget;
+ TQStringList m_targets;
+ TQMap<TQString,TQString> m_properties;
+ TQMap<TQString,bool> m_defineProperties;
Verbosity m_verbosity;
};
@@ -46,31 +46,31 @@ class AntProjectPart : public KDevBuildTool
public:
- AntProjectPart(QObject *parent, const char *name, const QStringList &args);
+ AntProjectPart(TQObject *parent, const char *name, const TQStringList &args);
~AntProjectPart();
- QStringList distFiles() const;
+ TQStringList distFiles() const;
protected:
- virtual void openProject(const QString &dirName, const QString &projectName);
+ virtual void openProject(const TQString &dirName, const TQString &projectName);
virtual void closeProject();
- virtual QString projectDirectory() const;
- virtual QString projectName() const;
- virtual QString mainProgram() const;
- virtual QString activeDirectory() const;
- virtual QStringList allFiles() const;
- virtual QString buildDirectory() const;
- virtual QString runDirectory() const;
- virtual QString runArguments() const;
- virtual QString debugArguments() const;
+ virtual TQString projectDirectory() const;
+ virtual TQString projectName() const;
+ virtual TQString mainProgram() const;
+ virtual TQString activeDirectory() const;
+ virtual TQStringList allFiles() const;
+ virtual TQString buildDirectory() const;
+ virtual TQString runDirectory() const;
+ virtual TQString runArguments() const;
+ virtual TQString debugArguments() const;
virtual DomUtil::PairList runEnvironmentVars() const;
- virtual void addFile(const QString &fileName);
- virtual void addFiles ( const QStringList &fileList );
- virtual void removeFile(const QString &fileName);
- virtual void removeFiles ( const QStringList& fileList );
+ virtual void addFile(const TQString &fileName);
+ virtual void addFiles ( const TQStringList &fileList );
+ virtual void removeFile(const TQString &fileName);
+ virtual void removeFiles ( const TQStringList& fileList );
private slots:
@@ -79,7 +79,7 @@ private slots:
void slotTargetMenuActivated(int id);
void projectConfigWidget(KDialogBase *dlg);
- void contextMenu(QPopupMenu *popup, const Context *context);
+ void contextMenu(TQPopupMenu *popup, const Context *context);
void optionsAccepted();
@@ -93,23 +93,23 @@ private:
void fillMenu();
void populateProject();
- void ant(const QString &target);
+ void ant(const TQString &target);
- QString m_projectDirectory, m_projectName;
- QStringList m_classPath;
+ TQString m_projectDirectory, m_projectName;
+ TQStringList m_classPath;
- QStringList m_sourceFiles;
+ TQStringList m_sourceFiles;
AntOptions m_antOptions;
KAction *m_buildProjectAction;
- QPopupMenu *m_targetMenu;
+ TQPopupMenu *m_targetMenu;
AntOptionsWidget *m_antOptionsWidget;
ClassPathWidget *m_classPathWidget;
- QString m_contextFileName;
+ TQString m_contextFileName;
};
diff --git a/buildtools/autotools/addapplicationdlg.cpp b/buildtools/autotools/addapplicationdlg.cpp
index 04e132dd..f0cd3693 100644
--- a/buildtools/autotools/addapplicationdlg.cpp
+++ b/buildtools/autotools/addapplicationdlg.cpp
@@ -11,13 +11,13 @@
#include "addapplicationdlg.h"
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qfile.h>
-#include <qheader.h>
-#include <qlistview.h>
-#include <qtextstream.h>
-#include <qapplication.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
+#include <tqfile.h>
+#include <tqheader.h>
+#include <tqlistview.h>
+#include <tqtextstream.h>
+#include <tqapplication.h>
#include <klineedit.h>
#include <kdebug.h>
#include <kicondialog.h>
@@ -33,7 +33,7 @@
AddApplicationDialog::AddApplicationDialog(AutoProjectWidget *widget, SubprojectItem *spitem,
- QWidget *parent, const char *name)
+ TQWidget *parent, const char *name)
: AddApplicationDialogBase(parent, name, true)
{
filename_edit->setText(".desktop");
@@ -41,27 +41,27 @@ AddApplicationDialog::AddApplicationDialog(AutoProjectWidget *widget, Subproject
filename_edit->setFocus();
chosentypes_listview->header()->hide();
availtypes_listview->header()->hide();
- QString addApplication = add_button->text();
- QString removeApplication = remove_button->text();
+ TQString addApplication = add_button->text();
+ TQString removeApplication = remove_button->text();
- add_button->setText( QApplication::reverseLayout() ? removeApplication : addApplication );
- remove_button->setText( QApplication::reverseLayout() ? addApplication : removeApplication );
+ add_button->setText( TQApplication::reverseLayout() ? removeApplication : addApplication );
+ remove_button->setText( TQApplication::reverseLayout() ? addApplication : removeApplication );
m_widget = widget;
subProject = spitem;
// Fill the combo box with program names in the directory
- QPtrListIterator<TargetItem> tit(spitem->targets);
+ TQPtrListIterator<TargetItem> tit(spitem->targets);
for (; tit.current(); ++tit) {
if ((*tit)->primary == "PROGRAMS")
- executable_combo->insertItem(QString((*tit)->name));
+ executable_combo->insertItem(TQString((*tit)->name));
}
// Fill the list of available mime types
KMimeType::List l = KMimeType::allMimeTypes();
KMimeType::List::Iterator it;
for (it = l.begin(); it != l.end(); ++it)
- new QListViewItem(availtypes_listview, (*it)->name());
+ new TQListViewItem(availtypes_listview, (*it)->name());
setIcon ( SmallIcon ( "window_new" ) );
}
@@ -74,7 +74,7 @@ AddApplicationDialog::~AddApplicationDialog()
void AddApplicationDialog::iconClicked()
{
KIconLoader *loader = AutoProjectFactory::instance()->iconLoader();
- QString name = KIconDialog::getIcon(KIcon::Desktop);
+ TQString name = KIconDialog::getIcon(KIcon::Desktop);
if (!name.isNull()) {
iconName = name;
icon_button->setPixmap(loader->loadIcon(name, KIcon::Desktop));
@@ -84,17 +84,17 @@ void AddApplicationDialog::iconClicked()
void AddApplicationDialog::addTypeClicked()
{
- QListViewItem *selitem = availtypes_listview->selectedItem();
+ TQListViewItem *selitem = availtypes_listview->selectedItem();
if (!selitem)
return;
- QListViewItem *olditem = chosentypes_listview->firstChild();
+ TQListViewItem *olditem = chosentypes_listview->firstChild();
while (olditem) {
if (selitem->text(0) == olditem->text(0))
return;
olditem = olditem->nextSibling();
}
- new QListViewItem(chosentypes_listview, selitem->text(0));
+ new TQListViewItem(chosentypes_listview, selitem->text(0));
}
@@ -107,36 +107,36 @@ void AddApplicationDialog::removeTypeClicked()
void AddApplicationDialog::accept()
{
// Create list of mime types
- QStringList mimeTypes;
- QListViewItem *item = chosentypes_listview->firstChild();
+ TQStringList mimeTypes;
+ TQListViewItem *item = chosentypes_listview->firstChild();
while (item) {
mimeTypes.append(item->text(0));
item = item->nextSibling();
}
// Some plausibility tests
- QString fileName = filename_edit->text();
+ TQString fileName = filename_edit->text();
if (fileName.isEmpty() || fileName == ".desktop") {
KMessageBox::sorry(this, i18n("You have to enter a file name."));
filename_edit->setFocus();
return;
}
- QString executable = executable_combo->currentText();
+ TQString executable = executable_combo->currentText();
if (executable.isEmpty()) {
KMessageBox::sorry(this, i18n("You have to enter the file name of an executable program."));
executable_combo->setFocus();
return;
}
- QString name = name_edit->text();
+ TQString name = name_edit->text();
if (name.isEmpty()) {
KMessageBox::sorry(this, i18n("You have to enter an application name."));
name_edit->setFocus();
return;
}
- QFile f(subProject->path + "/" + fileName);
+ TQFile f(subProject->path + "/" + fileName);
if (f.exists()) {
KMessageBox::sorry(this, i18n("A file with this name exists already."));
filename_edit->setFocus();
@@ -147,7 +147,7 @@ void AddApplicationDialog::accept()
return;
}
- QTextStream stream(&f);
+ TQTextStream stream(&f);
stream << "[Desktop Entry]" << endl;
stream << "Type=Application" << endl;
stream << "Name=" << name << endl;
@@ -161,15 +161,15 @@ void AddApplicationDialog::accept()
// Find a prefix that points to the applnk directory.
// If there is none, use appslnksection
- QString section = section_combo->currentText();
- QString appsdir = "$(kde_appsdir)/" + section;
- QMap<QString,QString>::ConstIterator it;
+ TQString section = section_combo->currentText();
+ TQString appsdir = "$(kde_appsdir)/" + section;
+ TQMap<TQString,TQString>::ConstIterator it;
for (it = subProject->prefixes.begin(); it != subProject->prefixes.end(); ++it)
if (it.data() == appsdir)
break;
- QMap<QString, QString> replaceMap;
- QString prefix;
+ TQMap<TQString, TQString> replaceMap;
+ TQString prefix;
if (it == subProject->prefixes.end()) {
prefix = "applnk" + section;
replaceMap.insert(prefix + "dir", appsdir);
@@ -177,7 +177,7 @@ void AddApplicationDialog::accept()
} else {
prefix = it.key();
}
- QString varname = prefix + "_DATA";
+ TQString varname = prefix + "_DATA";
// Look if a list view item for this prefix exists already.
// Create a new one otherwise
@@ -201,7 +201,7 @@ void AddApplicationDialog::accept()
replaceMap.insert(varname, subProject->variables[varname]);
AutoProjectTool::addToMakefileam(subProject->path + "/Makefile.am", replaceMap);
- QDialog::accept();
+ TQDialog::accept();
}
#include "addapplicationdlg.moc"
diff --git a/buildtools/autotools/addapplicationdlg.h b/buildtools/autotools/addapplicationdlg.h
index d9f8e6fc..4ab74ef2 100644
--- a/buildtools/autotools/addapplicationdlg.h
+++ b/buildtools/autotools/addapplicationdlg.h
@@ -25,7 +25,7 @@ class AddApplicationDialog : public AddApplicationDialogBase
public:
AddApplicationDialog( AutoProjectWidget *widget, SubprojectItem *spitem,
- QWidget *parent = 0, const char *name = 0 );
+ TQWidget *parent = 0, const char *name = 0 );
~AddApplicationDialog();
protected:
@@ -37,7 +37,7 @@ protected:
private:
AutoProjectWidget *m_widget;
SubprojectItem *subProject;
- QString iconName;
+ TQString iconName;
};
#endif
diff --git a/buildtools/autotools/addexistingdirectoriesdlg.cpp b/buildtools/autotools/addexistingdirectoriesdlg.cpp
index 625d6af1..912edc52 100644
--- a/buildtools/autotools/addexistingdirectoriesdlg.cpp
+++ b/buildtools/autotools/addexistingdirectoriesdlg.cpp
@@ -14,8 +14,8 @@
* *
***************************************************************************/
-#include <qgroupbox.h>
-#include <qlayout.h>
+#include <tqgroupbox.h>
+#include <tqlayout.h>
#include <kprogress.h>
#include <klocale.h>
@@ -34,7 +34,7 @@
#include "addexistingdirectoriesdlg.h"
-AddExistingDirectoriesDialog::AddExistingDirectoriesDialog ( AutoProjectPart* part, AutoProjectWidget *widget, SubprojectItem* spitem, QWidget* parent, const char* name, bool modal, WFlags fl )
+AddExistingDirectoriesDialog::AddExistingDirectoriesDialog ( AutoProjectPart* part, AutoProjectWidget *widget, SubprojectItem* spitem, TQWidget* parent, const char* name, bool modal, WFlags fl )
: AddExistingDlgBase ( parent, name, modal, fl )
{
setIcon ( SmallIcon ( "fileimport.png" ) );
@@ -62,13 +62,13 @@ AddExistingDirectoriesDialog::AddExistingDirectoriesDialog ( AutoProjectPart* pa
setIcon ( SmallIcon ( "fileimport.png" ) );
- QWidget::setTabOrder(sourceSelector, addAllButton);
- QWidget::setTabOrder(addAllButton, addSelectedButton);
- QWidget::setTabOrder(addSelectedButton, importView);
- QWidget::setTabOrder(importView, removeAllButton);
- QWidget::setTabOrder(removeAllButton, removeSelectedButton);
- QWidget::setTabOrder(removeSelectedButton, okButton);
- QWidget::setTabOrder(okButton, cancelButton);
+ TQWidget::setTabOrder(sourceSelector, addAllButton);
+ TQWidget::setTabOrder(addAllButton, addSelectedButton);
+ TQWidget::setTabOrder(addSelectedButton, importView);
+ TQWidget::setTabOrder(importView, removeAllButton);
+ TQWidget::setTabOrder(removeAllButton, removeSelectedButton);
+ TQWidget::setTabOrder(removeSelectedButton, okButton);
+ TQWidget::setTabOrder(okButton, cancelButton);
sourceSelector->setFocus();
@@ -87,14 +87,14 @@ void AddExistingDirectoriesDialog::init()
importView->setMode ( KIconView::Select );
importView->setItemsMovable ( false );
- connect ( okButton, SIGNAL ( clicked () ), this, SLOT ( slotOk () ) );
+ connect ( okButton, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( slotOk () ) );
- connect ( addSelectedButton, SIGNAL ( clicked () ), this, SLOT ( slotAddSelected() ) );
- connect ( addAllButton, SIGNAL ( clicked () ), this, SLOT ( slotAddAll() ) );
- connect ( removeSelectedButton, SIGNAL ( clicked () ), this, SLOT ( slotRemoveSelected() ) );
- connect ( removeAllButton, SIGNAL ( clicked () ), this, SLOT ( slotRemoveAll() ) );
+ connect ( addSelectedButton, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( slotAddSelected() ) );
+ connect ( addAllButton, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( slotAddAll() ) );
+ connect ( removeSelectedButton, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( slotRemoveSelected() ) );
+ connect ( removeAllButton, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( slotRemoveAll() ) );
- connect ( importView, SIGNAL ( dropped( QDropEvent* ) ), this, SLOT ( slotDropped ( QDropEvent* ) ) );
+ connect ( importView, TQT_SIGNAL ( dropped( TQDropEvent* ) ), this, TQT_SLOT ( slotDropped ( TQDropEvent* ) ) );
importView->setSelectionMode ( KFile::Multi );
@@ -112,7 +112,7 @@ void AddExistingDirectoriesDialog::importItems()
// items already added to the importView
KFileItemListIterator importedList ( *importView->items() );
- QStringList duplicateList;
+ TQStringList duplicateList;
importedList.toFirst();
@@ -156,11 +156,11 @@ void AddExistingDirectoriesDialog::importItems()
void AddExistingDirectoriesDialog::slotOk()
{
- if ( importView->items()->count() == 0 ) QDialog::reject();
+ if ( importView->items()->count() == 0 ) TQDialog::reject();
KFileItemListIterator items ( *importView->items() );
- QStringList dirs;
+ TQStringList dirs;
for ( ; items.current(); ++items )
{
@@ -181,17 +181,17 @@ void AddExistingDirectoriesDialog::slotOk()
dirs << items.current()->name();
}
- for (QStringList::const_iterator it = dirs.begin(); it != dirs.end(); ++it)
+ for (TQStringList::const_iterator it = dirs.begin(); it != dirs.end(); ++it)
{
- QString name = *it;
+ TQString name = *it;
// Adjust SUBDIRS variable in containing Makefile.am
if (m_spitem->variables["SUBDIRS"].find("$(TOPSUBDIRS)") != -1)
{
- QFile subdirsfile( m_spitem->path + "/subdirs" );
+ TQFile subdirsfile( m_spitem->path + "/subdirs" );
if ( subdirsfile.open( IO_WriteOnly | IO_Append ) )
{
- QTextStream subdirsstream( &subdirsfile );
+ TQTextStream subdirsstream( &subdirsfile );
subdirsstream << name << endl;
subdirsfile.close();
}
@@ -202,7 +202,7 @@ void AddExistingDirectoriesDialog::slotOk()
else
{
m_spitem->variables["SUBDIRS"] += (" " + name);
- QMap<QString,QString> replaceMap;
+ TQMap<TQString,TQString> replaceMap;
replaceMap.insert("SUBDIRS", m_spitem->variables["SUBDIRS"]);
AutoProjectTool::addToMakefileam(m_spitem->path + "/Makefile.am", replaceMap);
}
@@ -215,7 +215,7 @@ void AddExistingDirectoriesDialog::slotOk()
newitem->setOpen(true);
// Move to the bottom of the list
- QListViewItem *lastItem = m_spitem->firstChild();
+ TQListViewItem *lastItem = m_spitem->firstChild();
while (lastItem->nextSibling())
lastItem = lastItem->nextSibling();
if (lastItem != newitem)
@@ -223,8 +223,8 @@ void AddExistingDirectoriesDialog::slotOk()
// Create a Makefile in the new subdirectory
- QDir dir( m_spitem->path + "/" + name );
- QFile f( dir.filePath("Makefile.am") );
+ TQDir dir( m_spitem->path + "/" + name );
+ TQFile f( dir.filePath("Makefile.am") );
if (f.exists()) {
m_widget->getSubprojectView()->parse( newitem );
} else {
@@ -232,7 +232,7 @@ void AddExistingDirectoriesDialog::slotOk()
// KMessageBox::sorry(this, i18n("Could not create Makefile.am in subdirectory %1.").arg(name));
continue;
}
- QTextStream stream(&f);
+ TQTextStream stream(&f);
stream << "INCLUDES = " << newitem->variables["INCLUDES"] << endl << "METASOURCES = AUTO" << endl;
f.close();
}
@@ -241,13 +241,13 @@ void AddExistingDirectoriesDialog::slotOk()
// if !isKDE: add the new sub-proj to configure.in or configure.ac
if ( !m_part->isKDE() ) {
- QString projroot = m_part->projectDirectory() + "/";
- QString subdirectory = dir.path();
- QString relpath = subdirectory.replace(0, projroot.length(),"");
+ TQString projroot = m_part->projectDirectory() + "/";
+ TQString subdirectory = dir.path();
+ TQString relpath = subdirectory.replace(0, projroot.length(),"");
- QString configureFile = m_part->getAutoConfFile(projroot);
+ TQString configureFile = m_part->getAutoConfFile(projroot);
- QStringList list = AutoProjectTool::configureinLoadMakefiles(configureFile);
+ TQStringList list = AutoProjectTool::configureinLoadMakefiles(configureFile);
if ( !list.isEmpty() )
{
list.push_back( relpath + "/Makefile" );
@@ -258,7 +258,7 @@ void AddExistingDirectoriesDialog::slotOk()
m_part->needMakefileCvs();
}
- QDialog::accept();
+ TQDialog::accept();
}
void AddExistingDirectoriesDialog::slotAddSelected()
@@ -267,7 +267,7 @@ void AddExistingDirectoriesDialog::slotAddSelected()
for ( ; it.current(); ++it )
{
- QString relPath = URLUtil::extractPathNameRelative(m_part->projectDirectory(), ( *it )->url());
+ TQString relPath = URLUtil::extractPathNameRelative(m_part->projectDirectory(), ( *it )->url());
if (relPath[relPath.length()-1] == '/')
relPath = relPath.left(relPath.length()-1);
if ( (relPath.isEmpty()) || (! m_widget->allSubprojects().contains( relPath )) )
@@ -285,7 +285,7 @@ void AddExistingDirectoriesDialog::slotAddAll()
for ( ; it.current(); ++it )
{
- QString relPath = URLUtil::extractPathNameRelative(m_part->projectDirectory(), ( *it )->url());
+ TQString relPath = URLUtil::extractPathNameRelative(m_part->projectDirectory(), ( *it )->url());
if (relPath[relPath.length()-1] == '/')
relPath = relPath.left(relPath.length()-1);
if ( (relPath.isEmpty()) || ( ! m_widget->allSubprojects().contains( relPath )) )
@@ -345,7 +345,7 @@ void AddExistingDirectoriesDialog::slotRemoveSelected()
importView->viewport()->update();
}
-void AddExistingDirectoriesDialog::slotDropped ( QDropEvent* ev )
+void AddExistingDirectoriesDialog::slotDropped ( TQDropEvent* ev )
{
kdDebug ( 9020 ) << "AddExistingDirectoriesDialog::dropped()" << endl;
@@ -360,7 +360,7 @@ void AddExistingDirectoriesDialog::slotDropped ( QDropEvent* ev )
for ( KURL::List::Iterator it = urls.begin(); it != urls.end(); ++it )
{
//check if this subproject is already in project
- QString relPath = URLUtil::extractPathNameRelative(m_part->projectDirectory(), *it);
+ TQString relPath = URLUtil::extractPathNameRelative(m_part->projectDirectory(), *it);
if (relPath[relPath.length()-1] == '/')
relPath = relPath.left(relPath.length()-1);
if ( (relPath.isEmpty()) || ( ! m_widget->allSubprojects().contains( relPath )) )
diff --git a/buildtools/autotools/addexistingdirectoriesdlg.h b/buildtools/autotools/addexistingdirectoriesdlg.h
index c4dd048e..3b8853ee 100644
--- a/buildtools/autotools/addexistingdirectoriesdlg.h
+++ b/buildtools/autotools/addexistingdirectoriesdlg.h
@@ -19,7 +19,7 @@
#include "addexistingdlgbase.h"
-#include <qdialog.h>
+#include <tqdialog.h>
#include <kfile.h>
#include "misc.h"
@@ -39,7 +39,7 @@ class AddExistingDirectoriesDialog : public AddExistingDlgBase
public:
AddExistingDirectoriesDialog ( AutoProjectPart* part, AutoProjectWidget *widget,
- SubprojectItem* spitem, QWidget* parent = 0,
+ SubprojectItem* spitem, TQWidget* parent = 0,
const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~AddExistingDirectoriesDialog();
@@ -64,7 +64,7 @@ protected slots:
void slotAddAll();
void slotRemoveAll();
void slotRemoveSelected();
- void slotDropped ( QDropEvent* ev );
+ void slotDropped ( TQDropEvent* ev );
void slotOk();
};
diff --git a/buildtools/autotools/addexistingfilesdlg.cpp b/buildtools/autotools/addexistingfilesdlg.cpp
index 00f3e61b..6d3224df 100644
--- a/buildtools/autotools/addexistingfilesdlg.cpp
+++ b/buildtools/autotools/addexistingfilesdlg.cpp
@@ -16,15 +16,15 @@
/** Here resides the Import-existing-files-dialog of the Automake Manager (a KDevelop build tool part) **/
-#include <qapplication.h>
-#include <qgroupbox.h>
-#include <qlabel.h>
-//#include <qlistbox.h>
-#include <qpushbutton.h>
-#include <qlayout.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qpixmap.h>
+#include <tqapplication.h>
+#include <tqgroupbox.h>
+#include <tqlabel.h>
+//#include <tqlistbox.h>
+#include <tqpushbutton.h>
+#include <tqlayout.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqpixmap.h>
#include <kdebug.h>
#include <kfileview.h>
@@ -56,7 +56,7 @@
* TRUE to construct a modal dialog.
*/
-AddExistingFilesDialog::AddExistingFilesDialog ( AutoProjectPart* part, AutoProjectWidget *widget, SubprojectItem* spitem, TargetItem* titem, QWidget* parent, const char* name, bool modal, WFlags fl )
+AddExistingFilesDialog::AddExistingFilesDialog ( AutoProjectPart* part, AutoProjectWidget *widget, SubprojectItem* spitem, TargetItem* titem, TQWidget* parent, const char* name, bool modal, WFlags fl )
: AddExistingDlgBase ( parent, name, modal, fl )
{
m_spitem = spitem;
@@ -72,7 +72,7 @@ AddExistingFilesDialog::AddExistingFilesDialog ( AutoProjectPart* part, AutoProj
if ( titem->name.isEmpty() )
{
- QString target = i18n ( "%1 in %2" ).arg ( titem->primary ).arg ( titem->prefix );
+ TQString target = i18n ( "%1 in %2" ).arg ( titem->primary ).arg ( titem->prefix );
targetLabel->setText ( target );
}
else
@@ -89,13 +89,13 @@ AddExistingFilesDialog::AddExistingFilesDialog ( AutoProjectPart* part, AutoProj
destGroupBoxLayout->addWidget ( importView );
//destGroupBoxLayout->setStretchFactor(dir, 2);
- QWidget::setTabOrder(sourceSelector, addAllButton);
- QWidget::setTabOrder(addAllButton, addSelectedButton);
- QWidget::setTabOrder(addSelectedButton, importView);
- QWidget::setTabOrder(importView, removeAllButton);
- QWidget::setTabOrder(removeAllButton, removeSelectedButton);
- QWidget::setTabOrder(removeSelectedButton, okButton);
- QWidget::setTabOrder(okButton, cancelButton);
+ TQWidget::setTabOrder(sourceSelector, addAllButton);
+ TQWidget::setTabOrder(addAllButton, addSelectedButton);
+ TQWidget::setTabOrder(addSelectedButton, importView);
+ TQWidget::setTabOrder(importView, removeAllButton);
+ TQWidget::setTabOrder(removeAllButton, removeSelectedButton);
+ TQWidget::setTabOrder(removeSelectedButton, okButton);
+ TQWidget::setTabOrder(okButton, cancelButton);
sourceSelector->setFocus();
@@ -114,7 +114,7 @@ AddExistingFilesDialog::~AddExistingFilesDialog()
}
-// void AddExistingFilesDialog::resizeEvent ( QResizeEvent* ev )
+// void AddExistingFilesDialog::resizeEvent ( TQResizeEvent* ev )
// {
// AddExistingDlgBase::resizeEvent ( ev );
// //importView->update();
@@ -128,14 +128,14 @@ void AddExistingFilesDialog::init()
importView->setMode ( KIconView::Select );
importView->setItemsMovable ( false );
- connect ( okButton, SIGNAL ( clicked () ), this, SLOT ( slotOk () ) );
+ connect ( okButton, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( slotOk () ) );
- connect ( addSelectedButton, SIGNAL ( clicked () ), this, SLOT ( slotAddSelected() ) );
- connect ( addAllButton, SIGNAL ( clicked () ), this, SLOT ( slotAddAll() ) );
- connect ( removeSelectedButton, SIGNAL ( clicked () ), this, SLOT ( slotRemoveSelected() ) );
- connect ( removeAllButton, SIGNAL ( clicked () ), this, SLOT ( slotRemoveAll() ) );
+ connect ( addSelectedButton, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( slotAddSelected() ) );
+ connect ( addAllButton, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( slotAddAll() ) );
+ connect ( removeSelectedButton, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( slotRemoveSelected() ) );
+ connect ( removeAllButton, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( slotRemoveAll() ) );
- connect ( importView, SIGNAL ( dropped( QDropEvent* ) ), this, SLOT ( slotDropped ( QDropEvent* ) ) );
+ connect ( importView, TQT_SIGNAL ( dropped( TQDropEvent* ) ), this, TQT_SLOT ( slotDropped ( TQDropEvent* ) ) );
importView->setSelectionMode ( KFile::Multi );
@@ -154,9 +154,9 @@ void AddExistingFilesDialog::importItems()
// items already added to the importView
KFileItemListIterator importedList ( *importView->items() );
- QListViewItem* child = m_titem->firstChild();
+ TQListViewItem* child = m_titem->firstChild();
- QStringList duplicateList;
+ TQStringList duplicateList;
while ( child )
{
@@ -229,7 +229,7 @@ void AddExistingFilesDialog::importItems()
void AddExistingFilesDialog::slotOk()
{
- if ( importView->items()->count() == 0 ) QDialog::reject();
+ if ( importView->items()->count() == 0 ) TQDialog::reject();
progressBar->show();
progressBar->setFormat ( i18n ( "Importing... %p%" ) );
@@ -241,7 +241,7 @@ void AddExistingFilesDialog::slotOk()
// contains at the end only the imported files outside the subproject directory
KFileItemList outsideList;
- QStringList stringList;
+ TQStringList stringList;
for ( ; items.current(); ++items )
{
@@ -300,16 +300,16 @@ void AddExistingFilesDialog::slotOk()
items.toFirst();
- QString canontargetname = AutoProjectTool::canonicalize ( m_titem->name );
- QString varname;
+ TQString canontargetname = AutoProjectTool::canonicalize ( m_titem->name );
+ TQString varname;
if( m_titem->primary == "PROGRAMS" || m_titem->primary == "LIBRARIES" || m_titem->primary == "LTLIBRARIES" )
varname = canontargetname + "_SOURCES";
else
varname = m_titem->prefix + "_" + m_titem->primary;
- QMap<QString,QString> replaceMap;
+ TQMap<TQString,TQString> replaceMap;
FileItem* fitem = 0L;
- QStringList fileList;
+ TQStringList fileList;
for ( ; items.current(); ++items )
{
@@ -329,7 +329,7 @@ void AddExistingFilesDialog::slotOk()
AutoProjectTool::addToMakefileam ( m_spitem->path + "/Makefile.am", replaceMap );
- QDialog::accept();
+ TQDialog::accept();
}
@@ -413,7 +413,7 @@ void AddExistingFilesDialog::slotRemoveSelected()
}
-void AddExistingFilesDialog::slotDropped ( QDropEvent* ev )
+void AddExistingFilesDialog::slotDropped ( TQDropEvent* ev )
{
kdDebug ( 9020 ) << "AddExistingFilesDialog::dropped()" << endl;
diff --git a/buildtools/autotools/addexistingfilesdlg.h b/buildtools/autotools/addexistingfilesdlg.h
index 5bee18b6..aa00a99e 100644
--- a/buildtools/autotools/addexistingfilesdlg.h
+++ b/buildtools/autotools/addexistingfilesdlg.h
@@ -20,7 +20,7 @@
#ifndef ADDEXISTINGFILESDLG_H
#define ADDEXISTINGFILESDLG_H
-#include <qdialog.h>
+#include <tqdialog.h>
#include <kfile.h>
#include "addexistingdlgbase.h"
@@ -42,7 +42,7 @@ class AddExistingFilesDialog : public AddExistingDlgBase
public:
AddExistingFilesDialog( AutoProjectPart* part, AutoProjectWidget *widget,
- SubprojectItem* spitem, TargetItem* titem, QWidget* parent = 0,
+ SubprojectItem* spitem, TargetItem* titem, TQWidget* parent = 0,
const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~AddExistingFilesDialog();
@@ -59,7 +59,7 @@ private:
KFileItemList m_importList;
protected:
- // virtual void resizeEvent ( QResizeEvent* ev );
+ // virtual void resizeEvent ( TQResizeEvent* ev );
void init();
void importItems ();
@@ -68,7 +68,7 @@ protected slots:
void slotAddAll();
void slotRemoveAll();
void slotRemoveSelected();
- void slotDropped ( QDropEvent* ev );
+ void slotDropped ( TQDropEvent* ev );
void slotOk();
};
diff --git a/buildtools/autotools/addfiledlg.cpp b/buildtools/autotools/addfiledlg.cpp
index 46529086..56df4998 100644
--- a/buildtools/autotools/addfiledlg.cpp
+++ b/buildtools/autotools/addfiledlg.cpp
@@ -11,14 +11,14 @@
#include "addfiledlg.h"
-#include <qcheckbox.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
-#include <qtextstream.h>
+#include <tqcheckbox.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqlineedit.h>
+#include <tqpushbutton.h>
+#include <tqtextstream.h>
#include <kbuttonbox.h>
#include <kdebug.h>
@@ -40,11 +40,11 @@
AddFileDialog::AddFileDialog(AutoProjectPart *part, AutoProjectWidget *widget,
SubprojectItem *spitem, TargetItem *item,
- QWidget *parent, const char *name)
+ TQWidget *parent, const char *name)
: AddFileDlgBase(parent, name, true)
{
- connect ( createButton, SIGNAL ( clicked() ), this, SLOT ( accept() ) );
- connect ( cancelButton, SIGNAL ( clicked() ), this, SLOT ( reject() ) );
+ connect ( createButton, TQT_SIGNAL ( clicked() ), this, TQT_SLOT ( accept() ) );
+ connect ( cancelButton, TQT_SIGNAL ( clicked() ), this, TQT_SLOT ( reject() ) );
directoryLabel->setText ( spitem->path );
if ( item->name.isEmpty() )
@@ -67,13 +67,13 @@ AddFileDialog::~AddFileDialog()
void AddFileDialog::accept()
{
- QString name = fileEdit->text();
+ TQString name = fileEdit->text();
if (name.find('/') != -1) {
KMessageBox::sorry(this, i18n("Please enter the file name without '/' and so on."));
return;
}
- QListViewItem *child = target->firstChild();
+ TQListViewItem *child = target->firstChild();
while (child) {
FileItem *item = static_cast<FileItem*>(child);
if (name == item->name) {
@@ -84,27 +84,27 @@ void AddFileDialog::accept()
}
if (templateCheckBox->isChecked()) {
- QString srcdir = m_part->projectDirectory();
- QString destdir = subProject->path;
- QString destpath = destdir + "/" + name;
- if (QFileInfo(destpath).exists()) {
+ TQString srcdir = m_part->projectDirectory();
+ TQString destdir = subProject->path;
+ TQString destpath = destdir + "/" + name;
+ if (TQFileInfo(destpath).exists()) {
KMessageBox::sorry(this, i18n("<b>A file with this name already exists.</b><br><br>Please use the \"Add existing file\" dialog."));
return;
}
- if( !FileTemplate::copy(m_part, QFileInfo(name).extension(), destpath) )
+ if( !FileTemplate::copy(m_part, TQFileInfo(name).extension(), destpath) )
kdDebug(9020) << "cannot create file " << destpath << endl;
} else {
// create an empty file
- QString srcdir = m_part->projectDirectory();
- QString destdir = subProject->path;
- QString destpath = destdir + "/" + name;
+ TQString srcdir = m_part->projectDirectory();
+ TQString destdir = subProject->path;
+ TQString destpath = destdir + "/" + name;
- if (QFileInfo(destpath).exists()) {
+ if (TQFileInfo(destpath).exists()) {
KMessageBox::sorry(this, i18n("<b>A file with this name already exists.</b><br><br>Please use the \"Add existing file\" dialog."));
return;
}
- QFile f( destpath );
+ TQFile f( destpath );
if( f.open(IO_WriteOnly) )
f.close();
}
@@ -113,15 +113,15 @@ void AddFileDialog::accept()
target->sources.append(fitem);
target->insertItem(fitem);
- QString canontargetname = AutoProjectTool::canonicalize(target->name);
- QString varname;
+ TQString canontargetname = AutoProjectTool::canonicalize(target->name);
+ TQString varname;
if( target->primary == "PROGRAMS" || target->primary == "LIBRARIES" || target->primary == "LTLIBRARIES" )
varname = canontargetname + "_SOURCES";
else
varname = target->prefix + "_" + target->primary;
subProject->variables[varname] += (" " + name);
- QMap<QString,QString> replaceMap;
+ TQMap<TQString,TQString> replaceMap;
replaceMap.insert(varname, subProject->variables[varname]);
AutoProjectTool::addToMakefileam(subProject->path + "/Makefile.am", replaceMap);
@@ -129,7 +129,7 @@ void AddFileDialog::accept()
m_widget->emitAddedFile( subProject->path.mid ( m_part->project()->projectDirectory().length() + 1 ) + "/" + name );
m_part->partController()->editDocument ( KURL ( subProject->path + "/" + name ) );
- QDialog::accept();
+ TQDialog::accept();
}
#include "addfiledlg.moc"
diff --git a/buildtools/autotools/addfiledlg.h b/buildtools/autotools/addfiledlg.h
index 328e3593..4b1b78a0 100644
--- a/buildtools/autotools/addfiledlg.h
+++ b/buildtools/autotools/addfiledlg.h
@@ -12,7 +12,7 @@
#ifndef _ADDFILEDLG_H_
#define _ADDFILEDLG_H_
-#include <qdialog.h>
+#include <tqdialog.h>
#include "addfiledlgbase.h"
@@ -31,7 +31,7 @@ class AddFileDialog : public AddFileDlgBase
public:
AddFileDialog( AutoProjectPart *part, AutoProjectWidget *widget,
SubprojectItem *spitem, TargetItem *item,
- QWidget *parent = 0, const char *name = 0 );
+ TQWidget *parent = 0, const char *name = 0 );
~AddFileDialog();
protected:
diff --git a/buildtools/autotools/addicondlg.cpp b/buildtools/autotools/addicondlg.cpp
index 251601f7..5531c656 100644
--- a/buildtools/autotools/addicondlg.cpp
+++ b/buildtools/autotools/addicondlg.cpp
@@ -11,8 +11,8 @@
#include "addicondlg.h"
-#include <qcombobox.h>
-#include <qlabel.h>
+#include <tqcombobox.h>
+#include <tqlabel.h>
#include <klineedit.h>
#include <kdebug.h>
#include <klocale.h>
@@ -39,7 +39,7 @@ const char *size_map[] = {
AddIconDialog::AddIconDialog(AutoProjectPart *part, AutoProjectWidget *widget,
SubprojectItem *spitem, TargetItem *titem,
- QWidget *parent, const char *name)
+ TQWidget *parent, const char *name)
: AddIconDialogBase(parent, name, true)
{
type_combo->insertItem(i18n("Application"));
@@ -72,9 +72,9 @@ AddIconDialog::~AddIconDialog()
void AddIconDialog::somethingChanged()
{
- QString size = size_map[size_combo->currentItem()];
- QString type = type_map[type_combo->currentItem()];
- QString name = name_edit->text();
+ TQString size = size_map[size_combo->currentItem()];
+ TQString type = type_map[type_combo->currentItem()];
+ TQString name = name_edit->text();
filename_edit->setText(size + "-" + type + "-" + name + ".png");
}
@@ -82,15 +82,15 @@ void AddIconDialog::somethingChanged()
void AddIconDialog::accept()
{
- QString name = filename_edit->text();
+ TQString name = filename_edit->text();
- QString destdir = m_subProject->subdir;
- QString destpath = destdir + "/" + name;
+ TQString destdir = m_subProject->subdir;
+ TQString destpath = destdir + "/" + name;
- QString size = size_combo->currentText();
- QString unknown = KIconTheme::defaultThemeName()+ "/" + size + "x" + size + "/mimetypes/unknown.png";
+ TQString size = size_combo->currentText();
+ TQString unknown = KIconTheme::defaultThemeName()+ "/" + size + "x" + size + "/mimetypes/unknown.png";
- QString templateFileName = locate("icon", unknown);
+ TQString templateFileName = locate("icon", unknown);
kdDebug(9020) << "Unknown: " << unknown << ", template: " << templateFileName << endl;
if (!templateFileName.isEmpty()) {
@@ -105,11 +105,11 @@ void AddIconDialog::accept()
m_target->sources.append(fitem);
m_target->insertItem(fitem);
- m_part->startMakeCommand(destdir, QString::fromLatin1("force-reedit"));
+ m_part->startMakeCommand(destdir, TQString::fromLatin1("force-reedit"));
m_widget->emitAddedFile(destpath);
- QDialog::accept();
+ TQDialog::accept();
}
#include "addicondlg.moc"
diff --git a/buildtools/autotools/addicondlg.h b/buildtools/autotools/addicondlg.h
index 64fac0a5..8ab8437f 100644
--- a/buildtools/autotools/addicondlg.h
+++ b/buildtools/autotools/addicondlg.h
@@ -27,7 +27,7 @@ class AddIconDialog : public AddIconDialogBase
public:
AddIconDialog( AutoProjectPart *part, AutoProjectWidget *widget,
SubprojectItem *spitem, TargetItem *titem,
- QWidget *parent = 0, const char *name = 0 );
+ TQWidget *parent = 0, const char *name = 0 );
~AddIconDialog();
diff --git a/buildtools/autotools/addprefixdlg.cpp b/buildtools/autotools/addprefixdlg.cpp
index d1557114..c4570d8f 100644
--- a/buildtools/autotools/addprefixdlg.cpp
+++ b/buildtools/autotools/addprefixdlg.cpp
@@ -11,54 +11,54 @@
#include "addprefixdlg.h"
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
#include <kbuttonbox.h>
#include <kfiledialog.h>
#include <klocale.h>
#include <kstdguiitem.h>
#include <kdeversion.h>
-AddPrefixDialog::AddPrefixDialog( const QString& nameEdit, const QString& pathEdit,
- QWidget *parent, const char *name)
- : QDialog(parent, name, true)
+AddPrefixDialog::AddPrefixDialog( const TQString& nameEdit, const TQString& pathEdit,
+ TQWidget *parent, const char *name)
+ : TQDialog(parent, name, true)
{
setCaption(i18n("Add Prefix"));
- QLabel *name_label = new QLabel(i18n("&Name:"), this);
+ TQLabel *name_label = new TQLabel(i18n("&Name:"), this);
name_edit = new KLineEdit(nameEdit, this);
name_edit->setFocus();
name_label->setBuddy(name_edit);
- connect( name_edit, SIGNAL( textChanged ( const QString & ) ), SLOT( slotPrefixChanged() ) );
+ connect( name_edit, TQT_SIGNAL( textChanged ( const TQString & ) ), TQT_SLOT( slotPrefixChanged() ) );
- QLabel *path_label = new QLabel(i18n("&Path:"), this);
+ TQLabel *path_label = new TQLabel(i18n("&Path:"), this);
path_edit = new KLineEdit(pathEdit, this);
path_label->setBuddy(path_edit);
- QFontMetrics fm(path_edit->fontMetrics());
+ TQFontMetrics fm(path_edit->fontMetrics());
path_edit->setMinimumWidth(fm.width('X')*35);
- connect( path_edit, SIGNAL( textChanged ( const QString & ) ), SLOT( slotPrefixChanged() ) );
+ connect( path_edit, TQT_SIGNAL( textChanged ( const TQString & ) ), TQT_SLOT( slotPrefixChanged() ) );
- QVBoxLayout *layout = new QVBoxLayout(this, 10);
+ TQVBoxLayout *layout = new TQVBoxLayout(this, 10);
- QGridLayout *grid = new QGridLayout(2, 2);
+ TQGridLayout *grid = new TQGridLayout(2, 2);
layout->addLayout(grid);
grid->addWidget(name_label, 0, 0);
grid->addWidget(name_edit, 0, 1);
grid->addWidget(path_label, 1, 0);
grid->addWidget(path_edit, 1, 1);
- QFrame *frame = new QFrame(this);
- frame->setFrameStyle(QFrame::HLine | QFrame::Sunken);
+ TQFrame *frame = new TQFrame(this);
+ frame->setFrameStyle(TQFrame::HLine | TQFrame::Sunken);
layout->addWidget(frame, 0);
KButtonBox *buttonbox = new KButtonBox(this);
buttonbox->addStretch();
m_pOk = buttonbox->addButton(KStdGuiItem::ok());
- QPushButton *cancel = buttonbox->addButton(KStdGuiItem::cancel());
+ TQPushButton *cancel = buttonbox->addButton(KStdGuiItem::cancel());
m_pOk->setDefault(true);
- connect( m_pOk, SIGNAL(clicked()), this, SLOT(accept()) );
- connect( cancel, SIGNAL(clicked()), this, SLOT(reject()) );
+ connect( m_pOk, TQT_SIGNAL(clicked()), this, TQT_SLOT(accept()) );
+ connect( cancel, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject()) );
buttonbox->layout();
layout->addWidget(buttonbox, 0);
slotPrefixChanged();
diff --git a/buildtools/autotools/addprefixdlg.h b/buildtools/autotools/addprefixdlg.h
index a20bc63a..8712f47f 100644
--- a/buildtools/autotools/addprefixdlg.h
+++ b/buildtools/autotools/addprefixdlg.h
@@ -12,7 +12,7 @@
#ifndef _ADDPREFIXDLG_H_
#define _ADDPREFIXDLG_H_
-#include <qdialog.h>
+#include <tqdialog.h>
#include <klineedit.h>
class QPushButton;
@@ -21,15 +21,15 @@ class AddPrefixDialog : public QDialog
Q_OBJECT
public:
- AddPrefixDialog( const QString& nameEdit = "", const QString& pathEdit = "",
- QWidget *parent = 0, const char *name = 0 );
+ AddPrefixDialog( const TQString& nameEdit = "", const TQString& pathEdit = "",
+ TQWidget *parent = 0, const char *name = 0 );
~AddPrefixDialog();
- QString name() const
+ TQString name() const
{
return name_edit->text();
}
- QString path() const
+ TQString path() const
{
return path_edit->text();
}
@@ -39,7 +39,7 @@ private slots:
private:
KLineEdit *name_edit;
KLineEdit *path_edit;
- QPushButton *m_pOk;
+ TQPushButton *m_pOk;
};
#endif
diff --git a/buildtools/autotools/addservicedlg.cpp b/buildtools/autotools/addservicedlg.cpp
index 2dc76e5e..dde34053 100644
--- a/buildtools/autotools/addservicedlg.cpp
+++ b/buildtools/autotools/addservicedlg.cpp
@@ -11,11 +11,11 @@
#include "addservicedlg.h"
-#include <qcombobox.h>
-#include <qfile.h>
-#include <qheader.h>
-#include <qlistview.h>
-#include <qtextstream.h>
+#include <tqcombobox.h>
+#include <tqfile.h>
+#include <tqheader.h>
+#include <tqlistview.h>
+#include <tqtextstream.h>
#include <klineedit.h>
#include <kdebug.h>
#include <kicondialog.h>
@@ -32,7 +32,7 @@
AddServiceDialog::AddServiceDialog(AutoProjectWidget *widget, SubprojectItem *spitem,
- QWidget *parent, const char *name)
+ TQWidget *parent, const char *name)
: AddServiceDialogBase(parent, name, true)
{
filename_edit->setText(".desktop");
@@ -45,10 +45,10 @@ AddServiceDialog::AddServiceDialog(AutoProjectWidget *widget, SubprojectItem *sp
subProject = spitem;
// Fill the combo box with library names in the directory
- QPtrListIterator<TargetItem> tit(spitem->targets);
+ TQPtrListIterator<TargetItem> tit(spitem->targets);
for (; tit.current(); ++tit) {
if ((*tit)->primary == "LTLIBRARIES")
- library_combo->insertItem(QString((*tit)->name));
+ library_combo->insertItem(TQString((*tit)->name));
}
// Fill the list of available service types
@@ -56,7 +56,7 @@ AddServiceDialog::AddServiceDialog(AutoProjectWidget *widget, SubprojectItem *sp
KServiceType::List::Iterator it;
for (it = l.begin(); it != l.end(); ++it)
if (!(*it)->isType(KST_KMimeType))
- new QListViewItem(availtypes_listview, (*it)->name());
+ new TQListViewItem(availtypes_listview, (*it)->name());
setIcon ( SmallIcon ( "servicenew_kdevelop.png" ) );
}
@@ -68,14 +68,14 @@ AddServiceDialog::~AddServiceDialog()
void AddServiceDialog::updateProperties()
{
- QStringList props;
+ TQStringList props;
- QListViewItem *item = static_cast<QCheckListItem*>(chosentypes_listview->firstChild());
+ TQListViewItem *item = static_cast<TQCheckListItem*>(chosentypes_listview->firstChild());
while (item) {
KServiceType::Ptr type = KServiceType::serviceType(item->text(0));
if (type) {
- QStringList stprops = type->propertyDefNames();
- QStringList::ConstIterator stit;
+ TQStringList stprops = type->propertyDefNames();
+ TQStringList::ConstIterator stit;
for (stit = stprops.begin(); stit != stprops.end(); ++stit)
if (props.find(*stit) == props.end() && (*stit) != "Name" && (*stit) != "Comment"
&& (*stit) != "Icon")
@@ -85,16 +85,16 @@ void AddServiceDialog::updateProperties()
}
properties_listview->clear();
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for (it = props.begin(); it != props.end(); ++it)
- new QListViewItem(properties_listview, *it);
+ new TQListViewItem(properties_listview, *it);
}
void AddServiceDialog::iconClicked()
{
KIconLoader *loader = AutoProjectFactory::instance()->iconLoader();
- QString name = KIconDialog::getIcon(KIcon::Desktop);
+ TQString name = KIconDialog::getIcon(KIcon::Desktop);
if (!name.isNull()) {
iconName = name;
icon_button->setPixmap(loader->loadIcon(name, KIcon::Desktop));
@@ -104,17 +104,17 @@ void AddServiceDialog::iconClicked()
void AddServiceDialog::addTypeClicked()
{
- QListViewItem *selitem = availtypes_listview->selectedItem();
+ TQListViewItem *selitem = availtypes_listview->selectedItem();
if (!selitem)
return;
- QListViewItem *olditem = chosentypes_listview->firstChild();
+ TQListViewItem *olditem = chosentypes_listview->firstChild();
while (olditem) {
if (selitem->text(0) == olditem->text(0))
return;
olditem = olditem->nextSibling();
}
- new QListViewItem(chosentypes_listview, selitem->text(0));
+ new TQListViewItem(chosentypes_listview, selitem->text(0));
updateProperties();
}
@@ -128,13 +128,13 @@ void AddServiceDialog::removeTypeClicked()
}
-void AddServiceDialog::propertyExecuted(QListViewItem *item)
+void AddServiceDialog::propertyExecuted(TQListViewItem *item)
{
if (!item)
return;
- QString prop = item->text(0);
- QString value = item->text(1);
+ TQString prop = item->text(0);
+ TQString value = item->text(1);
bool ok;
value = KInputDialog::getText(i18n("Enter Value"), i18n("Property %1:").arg(prop), value, &ok, this);
if (!ok)
@@ -147,29 +147,29 @@ void AddServiceDialog::propertyExecuted(QListViewItem *item)
void AddServiceDialog::accept()
{
// Create list of service types
- QStringList serviceTypes;
- QListViewItem *item = chosentypes_listview->firstChild();
+ TQStringList serviceTypes;
+ TQListViewItem *item = chosentypes_listview->firstChild();
while (item) {
serviceTypes.append(item->text(0));
item = item->nextSibling();
}
// Some plausibility tests
- QString fileName = filename_edit->text();
+ TQString fileName = filename_edit->text();
if (fileName.isEmpty() || fileName == ".desktop") {
KMessageBox::sorry(this, i18n("You have to enter a file name."));
filename_edit->setFocus();
return;
}
- QString name = name_edit->text();
+ TQString name = name_edit->text();
if (name.isEmpty()) {
KMessageBox::sorry(this, i18n("You have to enter a service name."));
name_edit->setFocus();
return;
}
- QFile f(subProject->path + "/" + fileName);
+ TQFile f(subProject->path + "/" + fileName);
if (f.exists()) {
KMessageBox::sorry(this, i18n("A file with this name exists already."));
filename_edit->setFocus();
@@ -180,7 +180,7 @@ void AddServiceDialog::accept()
return;
}
- QTextStream stream(&f);
+ TQTextStream stream(&f);
stream << "[Desktop Entry]" << endl;
stream << "Type=Service" << endl;
stream << "Name=" << name << endl;
@@ -197,12 +197,12 @@ void AddServiceDialog::accept()
// Find a prefix that points to the services directory.
// If there is none, use kde_services
- QMap<QString,QString>::ConstIterator it;
+ TQMap<TQString,TQString>::ConstIterator it;
for (it = subProject->prefixes.begin(); it != subProject->prefixes.end(); ++it)
if (it.data() == "$(kde_servicesdir)")
break;
- QString prefix = (it == subProject->prefixes.end())? QString("kde_services") : it.key();
- QString varname = prefix + "_DATA";
+ TQString prefix = (it == subProject->prefixes.end())? TQString("kde_services") : it.key();
+ TQString varname = prefix + "_DATA";
// Look if a list view item for this prefix exists already.
// Create a new one otherwise
@@ -223,11 +223,11 @@ void AddServiceDialog::accept()
titem->sources.append(fitem);
subProject->variables[varname] += (" " + fileName);
- QMap<QString, QString> replaceMap;
+ TQMap<TQString, TQString> replaceMap;
replaceMap.insert(varname, subProject->variables[varname]);
AutoProjectTool::addToMakefileam(subProject->path + "/Makefile.am", replaceMap);
- QDialog::accept();
+ TQDialog::accept();
}
#include "addservicedlg.moc"
diff --git a/buildtools/autotools/addservicedlg.h b/buildtools/autotools/addservicedlg.h
index c8b694a5..84469e0c 100644
--- a/buildtools/autotools/addservicedlg.h
+++ b/buildtools/autotools/addservicedlg.h
@@ -25,14 +25,14 @@ class AddServiceDialog : public AddServiceDialogBase
public:
AddServiceDialog( AutoProjectWidget *widget, SubprojectItem *spitem,
- QWidget *parent = 0, const char *name = 0 );
+ TQWidget *parent = 0, const char *name = 0 );
~AddServiceDialog();
protected:
virtual void iconClicked();
virtual void addTypeClicked();
virtual void removeTypeClicked();
- virtual void propertyExecuted( QListViewItem *item );
+ virtual void propertyExecuted( TQListViewItem *item );
virtual void accept();
private:
@@ -40,7 +40,7 @@ private:
AutoProjectWidget *m_widget;
SubprojectItem *subProject;
- QString iconName;
+ TQString iconName;
};
#endif
diff --git a/buildtools/autotools/addsubprojectdlg.cpp b/buildtools/autotools/addsubprojectdlg.cpp
index 8011886b..9aeef695 100644
--- a/buildtools/autotools/addsubprojectdlg.cpp
+++ b/buildtools/autotools/addsubprojectdlg.cpp
@@ -11,11 +11,11 @@
#include "addsubprojectdlg.h"
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qstringlist.h>
-#include <qtextstream.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
+#include <tqstringlist.h>
+#include <tqtextstream.h>
#include <kbuttonbox.h>
#include <kdebug.h>
#include <kfiledialog.h>
@@ -32,13 +32,13 @@
AddSubprojectDialog::AddSubprojectDialog(AutoProjectPart *part, AutoSubprojectView *view,
- SubprojectItem *item, QWidget *parent, const char *name)
+ SubprojectItem *item, TQWidget *parent, const char *name)
: AddSubprojectDlgBase(parent, name, true)
{
setIcon(SmallIcon("folder_new.png"));
- connect( createButton, SIGNAL(clicked()), this, SLOT(accept()) );
- connect( cancelButton, SIGNAL(clicked()), this, SLOT(reject()) );
+ connect( createButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(accept()) );
+ connect( cancelButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject()) );
m_subProject = item;
m_subprojectView = view;
@@ -52,14 +52,14 @@ AddSubprojectDialog::~AddSubprojectDialog()
void AddSubprojectDialog::accept()
{
- QString name = spEdit->text().stripWhiteSpace();
+ TQString name = spEdit->text().stripWhiteSpace();
if (name.isEmpty()) {
KMessageBox::sorry(this, i18n("You have to give the subproject a name."));
return;
}
- QListViewItem *childItem = m_subProject->firstChild();
+ TQListViewItem *childItem = m_subProject->firstChild();
while (childItem) {
if (name == static_cast<SubprojectItem*>(childItem)->subdir) {
KMessageBox::sorry(this, i18n("A subproject with this name already exists."));
@@ -71,47 +71,47 @@ void AddSubprojectDialog::accept()
#if 0
// check for config.status
- if( !QFileInfo(m_part->projectDirectory(), "config.status").exists() ){
+ if( !TQFileInfo(m_part->projectDirectory(), "config.status").exists() ){
KMessageBox::sorry(this, i18n("There is no config.status in the project root directory. Run 'Configure' first"));
- QDialog::accept();
+ TQDialog::accept();
return;
}
#endif
- QDir dir( m_subProject->path );
- QFileInfo file( dir, name );
+ TQDir dir( m_subProject->path );
+ TQFileInfo file( dir, name );
if( file.exists() && !file.isDir() ) {
KMessageBox::sorry(this, i18n("A file named %1 already exists.").arg(name));
- QDialog::accept();
+ TQDialog::accept();
return;
} else if( file.isDir() ) {
if( KMessageBox::warningContinueCancel(this,
i18n("A subdirectory %1 already exists. "
"Do you wish to add it as a subproject?").arg(name))
== KMessageBox::Cancel ){
- QDialog::accept();
+ TQDialog::accept();
return;
}
} else if (!dir.mkdir(name)) {
KMessageBox::sorry(this, i18n("Could not create subdirectory %1.").arg(name));
- QDialog::accept();
+ TQDialog::accept();
return;
}
if(!dir.cd(name)) {
KMessageBox::sorry(this, i18n("Could not access the subdirectory %1.").arg(name));
- QDialog::accept();
+ TQDialog::accept();
return;
}
// Adjust SUBDIRS variable in containing Makefile.am
if (m_subProject->variables["SUBDIRS"].find("$(TOPSUBDIRS)") != -1)
{
- QFile subdirsfile( m_subProject->path + "/subdirs" );
+ TQFile subdirsfile( m_subProject->path + "/subdirs" );
if ( subdirsfile.open( IO_WriteOnly | IO_Append ) )
{
- QTextStream subdirsstream( &subdirsfile );
+ TQTextStream subdirsstream( &subdirsfile );
subdirsstream << name << endl;
subdirsfile.close();
}
@@ -122,7 +122,7 @@ void AddSubprojectDialog::accept()
else
{
m_subProject->variables["SUBDIRS"] += (" " + name);
- QMap<QString,QString> replaceMap;
+ TQMap<TQString,TQString> replaceMap;
replaceMap.insert("SUBDIRS", m_subProject->variables["SUBDIRS"]);
AutoProjectTool::addToMakefileam(m_subProject->path + "/Makefile.am", replaceMap);
}
@@ -135,7 +135,7 @@ void AddSubprojectDialog::accept()
newitem->setOpen(true);
// Move to the bottom of the list
- QListViewItem *lastItem = m_subProject->firstChild();
+ TQListViewItem *lastItem = m_subProject->firstChild();
while (lastItem->nextSibling())
lastItem = lastItem->nextSibling();
if (lastItem != newitem)
@@ -143,7 +143,7 @@ void AddSubprojectDialog::accept()
// Create a Makefile in the new subdirectory
- QFile f( dir.filePath("Makefile.am") );
+ TQFile f( dir.filePath("Makefile.am") );
if (f.exists()) {
m_subprojectView->parse( newitem );
} else {
@@ -151,7 +151,7 @@ void AddSubprojectDialog::accept()
KMessageBox::sorry(this, i18n("Could not create Makefile.am in subdirectory %1.").arg(name));
return;
}
- QTextStream stream(&f);
+ TQTextStream stream(&f);
stream << "INCLUDES = " << newitem->variables["INCLUDES"] << endl << "METASOURCES = AUTO" << endl;
f.close();
}
@@ -160,13 +160,13 @@ void AddSubprojectDialog::accept()
// if !isKDE: add the new sub-proj to configure.in
if ( !m_part->isKDE() ) {
- QString projroot = m_part->projectDirectory() + "/";
- QString subdirectory = dir.path();
- QString relpath = subdirectory.replace(0, projroot.length(),"");
+ TQString projroot = m_part->projectDirectory() + "/";
+ TQString subdirectory = dir.path();
+ TQString relpath = subdirectory.replace(0, projroot.length(),"");
- QString configureFile = m_part->getAutoConfFile(projroot);
+ TQString configureFile = m_part->getAutoConfFile(projroot);
- QStringList list = AutoProjectTool::configureinLoadMakefiles(configureFile);
+ TQStringList list = AutoProjectTool::configureinLoadMakefiles(configureFile);
if ( !list.isEmpty() )
{
list.push_back( relpath + "/Makefile" );
@@ -175,10 +175,10 @@ void AddSubprojectDialog::accept()
}
#if 0
- QString relmakefile = (m_subProject->path + "/" + name + "/Makefile").mid(m_part->projectDirectory().length()+1);
+ TQString relmakefile = (m_subProject->path + "/" + name + "/Makefile").mid(m_part->projectDirectory().length()+1);
kdDebug(9020) << "Relative makefile path: " << relmakefile << endl;
- QString cmdline = "cd ";
+ TQString cmdline = "cd ";
cmdline += KProcess::quote(m_part->projectDirectory());
cmdline += " && automake ";
cmdline += KProcess::quote(relmakefile);
@@ -192,7 +192,7 @@ void AddSubprojectDialog::accept()
m_part->needMakefileCvs();
- QDialog::accept();
+ TQDialog::accept();
}
#include "addsubprojectdlg.moc"
diff --git a/buildtools/autotools/addsubprojectdlg.h b/buildtools/autotools/addsubprojectdlg.h
index eabfc0e1..c1d3b7bf 100644
--- a/buildtools/autotools/addsubprojectdlg.h
+++ b/buildtools/autotools/addsubprojectdlg.h
@@ -12,7 +12,7 @@
#ifndef _ADDSUBPROJECTDLG_H_
#define _ADDSUBPROJECTDLG_H_
-#include <qdialog.h>
+#include <tqdialog.h>
#include <klineedit.h>
#include "addsubprojectdlgbase.h"
@@ -28,7 +28,7 @@ class AddSubprojectDialog : public AddSubprojectDlgBase
public:
AddSubprojectDialog( AutoProjectPart *part, AutoSubprojectView *widget,
- SubprojectItem *item, QWidget *parent = 0, const char *name = 0 );
+ SubprojectItem *item, TQWidget *parent = 0, const char *name = 0 );
~AddSubprojectDialog();
private:
diff --git a/buildtools/autotools/addtargetdlg.cpp b/buildtools/autotools/addtargetdlg.cpp
index b01b5b82..5ca96c45 100644
--- a/buildtools/autotools/addtargetdlg.cpp
+++ b/buildtools/autotools/addtargetdlg.cpp
@@ -11,10 +11,10 @@
#include "addtargetdlg.h"
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qgroupbox.h>
-#include <qvalidator.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
+#include <tqgroupbox.h>
+#include <tqvalidator.h>
#include <klineedit.h>
#include <klocale.h>
@@ -29,7 +29,7 @@
AddTargetDialog::AddTargetDialog(AutoProjectWidget *widget, SubprojectItem *item,
- QWidget *parent, const char *name)
+ TQWidget *parent, const char *name)
: AddTargetDialogBase(parent, name, true)
{
m_subproject = item;
@@ -50,11 +50,11 @@ AddTargetDialog::AddTargetDialog(AutoProjectWidget *widget, SubprojectItem *item
if (widget->kdeMode())
ldflagsother_edit->setText("$(all_libraries)");
- connect( filename_edit, SIGNAL( textChanged(const QString&) ), this, SLOT( slotFileNameChanged (const QString&) ) );
+ connect( filename_edit, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( slotFileNameChanged (const TQString&) ) );
setIcon ( SmallIcon ( "targetnew_kdevelop.png" ) );
- canonicalLabel->setText ( QString::null );
+ canonicalLabel->setText ( TQString::null );
}
@@ -64,7 +64,7 @@ AddTargetDialog::~AddTargetDialog()
void AddTargetDialog::primaryChanged()
{
- QStringList list;
+ TQStringList list;
switch (primary_combo->currentItem()) {
case 0: // Program
list.append("bin");
@@ -108,8 +108,8 @@ void AddTargetDialog::primaryChanged()
prefix_combo->clear();
prefix_combo->insertStringList(list);
- QStringList prefixes;
- QMap<QString,QString>::ConstIterator it;
+ TQStringList prefixes;
+ TQMap<TQString,TQString>::ConstIterator it;
for (it = m_subproject->prefixes.begin(); it != m_subproject->prefixes.end(); ++it)
prefix_combo->insertItem(it.key());
@@ -126,10 +126,10 @@ void AddTargetDialog::primaryChanged()
void AddTargetDialog::accept()
{
- QString name = filename_edit->text().stripWhiteSpace();
- QString prefix = prefix_combo->currentText();
+ TQString name = filename_edit->text().stripWhiteSpace();
+ TQString prefix = prefix_combo->currentText();
- QString primary;
+ TQString primary;
switch (primary_combo->currentItem()) {
case 0: primary = "PROGRAMS"; break;
case 1: primary = "LIBRARIES"; break;
@@ -165,22 +165,22 @@ void AddTargetDialog::accept()
#endif
if( primary.endsWith("LIBRARIES") && !name.startsWith("lib") && !module_box->isChecked() )
- name.prepend( QString::fromLatin1("lib") );
+ name.prepend( TQString::fromLatin1("lib") );
if( primary == "LTLIBRARIES" && !name.endsWith(".la") )
- name.append( QString::fromLatin1(".la") );
+ name.append( TQString::fromLatin1(".la") );
if ( primary == "LIBRARIES" && !name.endsWith(".a") )
- name.append ( QString::fromLatin1(".a") );
+ name.append ( TQString::fromLatin1(".a") );
- QPtrListIterator<TargetItem> it(m_subproject->targets);
+ TQPtrListIterator<TargetItem> it(m_subproject->targets);
for (; it.current(); ++it)
if (name == (*it)->name) {
KMessageBox::sorry(this, i18n("A target with this name already exists."));
return;
}
- QStringList flagslist;
+ TQStringList flagslist;
if (primary == "LTLIBRARIES") {
if (allstatic_box->isChecked())
flagslist.append("-all-static");
@@ -192,18 +192,18 @@ void AddTargetDialog::accept()
flagslist.append("-no-undefined");
}
flagslist.append(ldflagsother_edit->text());
- QString ldflags = flagslist.join( " " );
+ TQString ldflags = flagslist.join( " " );
TargetItem *titem = m_widget->createTargetItem(name, prefix, primary, false);
// m_detailsView->insertItem ( titem );
m_subproject->targets.append(titem);
- QString canonname = AutoProjectTool::canonicalize(name);
+ TQString canonname = AutoProjectTool::canonicalize(name);
- QMap<QString,QString> replaceMap;
+ TQMap<TQString,TQString> replaceMap;
if( primary == "PROGRAMS" || primary == "LIBRARIES" || primary == "LTLIBRARIES" || primary == "DATA" ){
- QString varname = prefix + "_" + primary;
+ TQString varname = prefix + "_" + primary;
m_subproject->variables[varname] += (" " + name);
replaceMap.insert(varname, m_subproject->variables[varname]);
if ( primary != "DATA" ){
@@ -215,10 +215,10 @@ void AddTargetDialog::accept()
AutoProjectTool::addToMakefileam(m_subproject->path + "/Makefile.am", replaceMap);
- QDialog::accept();
+ TQDialog::accept();
}
-void AddTargetDialog::slotFileNameChanged ( const QString& text )
+void AddTargetDialog::slotFileNameChanged ( const TQString& text )
{
canonicalLabel->setText ( AutoProjectTool::canonicalize ( text ) );
}
diff --git a/buildtools/autotools/addtargetdlg.h b/buildtools/autotools/addtargetdlg.h
index 98708531..8c44aef4 100644
--- a/buildtools/autotools/addtargetdlg.h
+++ b/buildtools/autotools/addtargetdlg.h
@@ -25,11 +25,11 @@ class AddTargetDialog : public AddTargetDialogBase
public:
AddTargetDialog( AutoProjectWidget *widget, SubprojectItem *item,
- QWidget *parent = 0, const char *name = 0 );
+ TQWidget *parent = 0, const char *name = 0 );
~AddTargetDialog();
protected slots:
- virtual void slotFileNameChanged ( const QString& );
+ virtual void slotFileNameChanged ( const TQString& );
private:
virtual void primaryChanged();
diff --git a/buildtools/autotools/addtranslationdlg.cpp b/buildtools/autotools/addtranslationdlg.cpp
index 993dee7d..559e1369 100644
--- a/buildtools/autotools/addtranslationdlg.cpp
+++ b/buildtools/autotools/addtranslationdlg.cpp
@@ -11,15 +11,15 @@
#include "addtranslationdlg.h"
-#include <qcombobox.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qhbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
-#include <qstrlist.h>
+#include <tqcombobox.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqhbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqlineedit.h>
+#include <tqpushbutton.h>
+#include <tqstrlist.h>
#include <kbuttonbox.h>
#include <kdialog.h>
#include <klocale.h>
@@ -31,35 +31,35 @@
#include "autoprojectpart.h"
-AddTranslationDialog::AddTranslationDialog(AutoProjectPart *part, QWidget *parent, const char *name)
- : QDialog(parent, name, true)
+AddTranslationDialog::AddTranslationDialog(AutoProjectPart *part, TQWidget *parent, const char *name)
+ : TQDialog(parent, name, true)
{
setCaption(i18n("Add Translation"));
m_part = part;
- QHBox *hbox = new QHBox(this);
- (void) new QLabel(i18n("Language:"), hbox);
- lang_combo = new QComboBox(hbox);
+ TQHBox *hbox = new TQHBox(this);
+ (void) new TQLabel(i18n("Language:"), hbox);
+ lang_combo = new TQComboBox(hbox);
- QVBoxLayout *layout = new QVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ TQVBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
layout->addWidget(hbox);
- QFrame *frame = new QFrame(this);
- frame->setFrameStyle(QFrame::HLine | QFrame::Sunken);
+ TQFrame *frame = new TQFrame(this);
+ frame->setFrameStyle(TQFrame::HLine | TQFrame::Sunken);
layout->addWidget(frame, 0);
KButtonBox *buttonbox = new KButtonBox(this);
buttonbox->addStretch();
- QPushButton *ok_button = buttonbox->addButton(KStdGuiItem::ok());
- QPushButton *cancel_button = buttonbox->addButton(KStdGuiItem::cancel());
+ TQPushButton *ok_button = buttonbox->addButton(KStdGuiItem::ok());
+ TQPushButton *cancel_button = buttonbox->addButton(KStdGuiItem::cancel());
ok_button->setDefault(true);
- connect( ok_button, SIGNAL(clicked()), this, SLOT(accept()) );
- connect( cancel_button, SIGNAL(clicked()), this, SLOT(reject()) );
+ connect( ok_button, TQT_SIGNAL(clicked()), this, TQT_SLOT(accept()) );
+ connect( cancel_button, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject()) );
buttonbox->layout();
layout->addWidget(buttonbox, 0);
- QStringList rawlist, list;
+ TQStringList rawlist, list;
rawlist << "af" << "ar" << "bg" << "bo" << "br" << "bs" << "ca" << "cs" << "cy" << "da"
<< "de" << "el" << "en_GB" << "eo" << "es" << "et" << "eu" << "fi" << "fr";
rawlist << "ga" << "gl" << "gu" << "he" << "hi" << "hu" << "id" << "is" << "it" << "ja"
@@ -68,9 +68,9 @@ AddTranslationDialog::AddTranslationDialog(AutoProjectPart *part, QWidget *paren
<< "ta" << "th" << "tr" << "uk" << "wa" << "zh_CN.GB2312" << "zh_TW.Big5";
// Remove already added languages
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for (it = rawlist.begin(); it != rawlist.end(); ++it) {
- QFileInfo fi(m_part->projectDirectory() + "/po/" + (*it) + ".po");
+ TQFileInfo fi(m_part->projectDirectory() + "/po/" + (*it) + ".po");
if (!fi.exists())
list.append(*it);
}
@@ -89,10 +89,10 @@ AddTranslationDialog::~AddTranslationDialog()
void AddTranslationDialog::accept()
{
- QString dir = m_part->projectDirectory() + "/po";
- QString fileName = dir + "/" + lang_combo->currentText() + ".po";
+ TQString dir = m_part->projectDirectory() + "/po";
+ TQString fileName = dir + "/" + lang_combo->currentText() + ".po";
- QFile f(fileName);
+ TQFile f(fileName);
if (f.exists()) {
KMessageBox::information(this, i18n("A translation file for the language %1 exists already."));
return;
@@ -101,9 +101,9 @@ void AddTranslationDialog::accept()
f.close();
dir = m_part->buildDirectory() + "/po";
- m_part->startMakeCommand(dir, QString::fromLatin1("force-reedit"));
+ m_part->startMakeCommand(dir, TQString::fromLatin1("force-reedit"));
- QDialog::accept();
+ TQDialog::accept();
}
#include "addtranslationdlg.moc"
diff --git a/buildtools/autotools/addtranslationdlg.h b/buildtools/autotools/addtranslationdlg.h
index cd14ddf2..7ad5cbdb 100644
--- a/buildtools/autotools/addtranslationdlg.h
+++ b/buildtools/autotools/addtranslationdlg.h
@@ -12,7 +12,7 @@
#ifndef _ADDTRANSLATIONDLG_H_
#define _ADDTRANSLATIONDLG_H_
-#include <qdialog.h>
+#include <tqdialog.h>
class QComboBox;
class AutoProjectPart;
@@ -23,13 +23,13 @@ class AddTranslationDialog : public QDialog
Q_OBJECT
public:
- AddTranslationDialog( AutoProjectPart *part, QWidget *parent = 0, const char *name = 0 );
+ AddTranslationDialog( AutoProjectPart *part, TQWidget *parent = 0, const char *name = 0 );
~AddTranslationDialog();
private:
virtual void accept();
- QComboBox *lang_combo;
+ TQComboBox *lang_combo;
AutoProjectPart *m_part;
};
diff --git a/buildtools/autotools/autodetailsview.cpp b/buildtools/autotools/autodetailsview.cpp
index 26255fd3..d3cf3864 100644
--- a/buildtools/autotools/autodetailsview.cpp
+++ b/buildtools/autotools/autodetailsview.cpp
@@ -16,11 +16,11 @@
#include "autodetailsview.h"
/** Qt */
-#include <qregexp.h>
-#include <qlistview.h>
-#include <qwidget.h>
-#include <qheader.h>
-#include <qlayout.h>
+#include <tqregexp.h>
+#include <tqlistview.h>
+#include <tqwidget.h>
+#include <tqheader.h>
+#include <tqlayout.h>
/** KDE Libs */
#include <kxmlguiclient.h>
@@ -57,21 +57,21 @@
#include "subclassesdlg.h"
-AutoDetailsView::AutoDetailsView(AutoProjectWidget* widget, AutoProjectPart* part, QWidget *parent, const char *name)
+AutoDetailsView::AutoDetailsView(AutoProjectWidget* widget, AutoProjectPart* part, TQWidget *parent, const char *name)
: AutoProjectViewBase(parent, name)
{
m_widget = widget;
m_part = part;
initActions();
- QDomDocument dom = *(m_part->projectDom());
+ TQDomDocument dom = *(m_part->projectDom());
m_subclasslist = DomUtil::readPairListEntry(dom, "/kdevautoproject/subclassing",
"subclass","sourcefile", "uifile");
m_listView->setAllColumnsShowFocus( true );
m_listView->setRootIsDecorated( true );
- m_listView->setResizeMode( QListView::LastColumn );
- m_listView->addColumn( QString::null );
+ m_listView->setResizeMode( TQListView::LastColumn );
+ m_listView->addColumn( TQString::null );
m_listView->header()->hide();
targetOptionsAction->setEnabled( false );
addNewFileAction->setEnabled( false );
@@ -79,10 +79,10 @@ AutoDetailsView::AutoDetailsView(AutoProjectWidget* widget, AutoProjectPart* par
buildTargetAction->setEnabled( false );
executeTargetAction->setEnabled( false );
removeDetailAction->setEnabled(false);
- connect( m_listView, SIGNAL( selectionChanged( QListViewItem* ) ),
- this, SLOT( slotSelectionChanged( QListViewItem* ) ) );
- connect( m_listView, SIGNAL( selectionChanged() ),
- this, SLOT( slotSelectionChanged( ) ) );
+ connect( m_listView, TQT_SIGNAL( selectionChanged( TQListViewItem* ) ),
+ this, TQT_SLOT( slotSelectionChanged( TQListViewItem* ) ) );
+ connect( m_listView, TQT_SIGNAL( selectionChanged() ),
+ this, TQT_SLOT( slotSelectionChanged( ) ) );
}
@@ -110,7 +110,7 @@ void AutoDetailsView::slotSelectionChanged( ){
* This is never called if nothing is selected..
* @param item
*/
-void AutoDetailsView::slotSelectionChanged( QListViewItem* item )
+void AutoDetailsView::slotSelectionChanged( TQListViewItem* item )
{
bool isTarget = false;
bool isRegularTarget = false;
@@ -128,7 +128,7 @@ void AutoDetailsView::slotSelectionChanged( QListViewItem* item )
{
titem = static_cast <TargetItem*> ( pvitem->parent() );
- QString primary = titem->primary;
+ TQString primary = titem->primary;
if ( primary == "PROGRAMS" || primary == "LIBRARIES" ||
primary == "LTLIBRARIES" || primary == "JAVA" )
{
@@ -142,7 +142,7 @@ void AutoDetailsView::slotSelectionChanged( QListViewItem* item )
isTarget = true;
}
- QString primary = titem->primary;
+ TQString primary = titem->primary;
if ( primary == "PROGRAMS" || primary == "LIBRARIES" ||
primary == "LTLIBRARIES" || primary == "JAVA" )
{
@@ -177,7 +177,7 @@ void AutoDetailsView::initActions()
KActionCollection * actions = new KActionCollection( this );
targetOptionsAction = new AutoToolsAction( i18n( "Options..." ), "configure", 0,
- this, SLOT( slotTargetOptions() ), actions,
+ this, TQT_SLOT( slotTargetOptions() ), actions,
"target options" );
targetOptionsAction->setWhatsThis(i18n("<b>Options</b><p>Target options dialog that "
"provides settings for linker flags and lists "
@@ -186,18 +186,18 @@ void AutoDetailsView::initActions()
targetOptionsAction->plug( m_optionsButton );
targetOptionsAction->setEnabled( false );
- QToolTip::add( m_button1, tr2i18n( "Create New File..." ) );
+ TQToolTip::add( m_button1, tr2i18n( "Create New File..." ) );
addNewFileAction = new AutoToolsAction( i18n( "Create New File..." ), "filenew", 0,
- this, SLOT( slotAddNewFile() ), actions,
+ this, TQT_SLOT( slotAddNewFile() ), actions,
"add new file" );
addNewFileAction->setWhatsThis(i18n("<b>Create new file</b><p>Creates a new file and "
"adds it to a currently selected target."));
addNewFileAction->plug( m_button1 );
addNewFileAction->setEnabled( false );
- QToolTip::add( m_button2, tr2i18n( "Add Existing Files..." ) );
+ TQToolTip::add( m_button2, tr2i18n( "Add Existing Files..." ) );
addExistingFileAction = new AutoToolsAction( i18n( "Add Existing Files..." ), "fileimport", 0,
- this, SLOT( slotAddExistingFile() ), actions,
+ this, TQT_SLOT( slotAddExistingFile() ), actions,
"add existing file" );
addExistingFileAction->setWhatsThis(i18n("<b>Add existing files</b><p>Adds existing "
"file to a currently selected target. Header "
@@ -208,12 +208,12 @@ void AutoDetailsView::initActions()
addExistingFileAction->setEnabled( false );
addIconAction = new KAction( i18n( "Add Icon..." ), "iconadd_kdevelop", 0,
- this, SLOT( slotAddIcon() ), actions, "add icon" );
+ this, TQT_SLOT( slotAddIcon() ), actions, "add icon" );
addIconAction->setWhatsThis(i18n("<b>Add icon</b><p>Adds an icon to a KDEICON target."));
- QToolTip::add( m_button4, tr2i18n( "Build Target"));
+ TQToolTip::add( m_button4, tr2i18n( "Build Target"));
buildTargetAction = new AutoToolsAction( i18n( "Build Target..." ), "launch", 0,
- this, SLOT( slotBuildTarget() ), actions,
+ this, TQT_SLOT( slotBuildTarget() ), actions,
"build target" );
buildTargetAction->setWhatsThis(i18n("<b>Build target</b><p>Constructs a series of "
"make commands to build the selected target. "
@@ -221,9 +221,9 @@ void AutoDetailsView::initActions()
buildTargetAction->plug( m_button4 );
buildTargetAction->setEnabled( false );
- QToolTip::add( m_button5, tr2i18n( "Execute Target..."));
+ TQToolTip::add( m_button5, tr2i18n( "Execute Target..."));
executeTargetAction = new AutoToolsAction( i18n( "Execute Target..." ), "exec", 0,
- this, SLOT( slotExecuteTarget() ), actions,
+ this, TQT_SLOT( slotExecuteTarget() ), actions,
"execute target" );
executeTargetAction->setWhatsThis(i18n("<b>Execute target</b><p>Executes the target "
"and tries to build in case it is not built."));
@@ -231,7 +231,7 @@ void AutoDetailsView::initActions()
executeTargetAction->setEnabled( false );
setActiveTargetAction = new KAction( i18n( "Make Target Active" ), "", 0,
- this, SLOT( slotSetActiveTarget() ), actions,
+ this, TQT_SLOT( slotSetActiveTarget() ), actions,
"set active target" );
setActiveTargetAction->setWhatsThis(i18n("<b>Make target active</b><p>Marks the "
"currently selected target as 'active'. New "
@@ -240,9 +240,9 @@ void AutoDetailsView::initActions()
"Using the <b>Build Active Target</b> menu "
"command builds it."));
- QToolTip::add( m_button3, tr2i18n( "Remove"));
+ TQToolTip::add( m_button3, tr2i18n( "Remove"));
removeDetailAction = new AutoToolsAction( i18n( "Remove" ), "editdelete", 0, this,
- SLOT( slotRemoveDetail() ), actions,
+ TQT_SLOT( slotRemoveDetail() ), actions,
"remove detail" );
removeDetailAction->setWhatsThis(i18n("<b>Remove</b><p>Shows a list of targets "
"dependent on the selected target or file and "
@@ -251,25 +251,25 @@ void AutoDetailsView::initActions()
removeDetailAction->plug( m_button3 );
removeDetailAction->setEnabled( false );
- connect( m_listView, SIGNAL( executed( QListViewItem* ) ),
- this, SLOT( slotDetailsExecuted( QListViewItem* ) ) );
- connect( m_listView, SIGNAL( returnPressed( QListViewItem* ) ),
- this, SLOT( slotDetailsExecuted( QListViewItem* ) ) );
- connect( m_listView, SIGNAL( contextMenu( KListView*, QListViewItem*, const QPoint& ) ),
- this, SLOT( slotDetailsContextMenu( KListView*, QListViewItem*, const QPoint& ) ) );
+ connect( m_listView, TQT_SIGNAL( executed( TQListViewItem* ) ),
+ this, TQT_SLOT( slotDetailsExecuted( TQListViewItem* ) ) );
+ connect( m_listView, TQT_SIGNAL( returnPressed( TQListViewItem* ) ),
+ this, TQT_SLOT( slotDetailsExecuted( TQListViewItem* ) ) );
+ connect( m_listView, TQT_SIGNAL( contextMenu( KListView*, TQListViewItem*, const TQPoint& ) ),
+ this, TQT_SLOT( slotDetailsContextMenu( KListView*, TQListViewItem*, const TQPoint& ) ) );
}
-QString AutoDetailsView::getUiFileLink(const QString& relpath, const QString& filename)
+TQString AutoDetailsView::getUiFileLink(const TQString& relpath, const TQString& filename)
{
DomUtil::PairList::iterator it;
for (it=m_subclasslist.begin(); it != m_subclasslist.end(); ++it)
{
- if ((*it).first == QString("/")+relpath+filename)
+ if ((*it).first == TQString("/")+relpath+filename)
return (*it).second;
}
- return QString::null;
+ return TQString::null;
}
void AutoDetailsView::slotTargetOptions()
@@ -298,7 +298,7 @@ void AutoDetailsView::slotAddNewFile()
if (createFileSupport)
{
KDevCreateFile::CreatedFile crFile =
- createFileSupport->createNewFile(QString::null,
+ createFileSupport->createNewFile(TQString::null,
m_widget->selectedSubproject()->path);
/* if (crFile.status == KDevCreateFile::CreatedFile::STATUS_OK)
{
@@ -310,7 +310,7 @@ void AutoDetailsView::slotAddNewFile()
} else {
AddFileDialog dlg( m_part, m_widget, m_widget->selectedSubproject(), titem,
this, "add file dialog" );
- QString caption;
+ TQString caption;
if ( titem->name.isEmpty() )
caption = i18n ( "%1 in %2" ).arg ( titem->primary ).arg ( titem->prefix );
else
@@ -332,7 +332,7 @@ void AutoDetailsView::slotAddExistingFile()
AddExistingFilesDialog dlg( m_part, m_widget, m_widget->selectedSubproject(), titem,
this, "add existing files" );
- QString caption;
+ TQString caption;
if ( titem->name.isEmpty() )
caption = i18n ( "%1 in %2" ).arg ( titem->primary ).arg ( titem->prefix );
else
@@ -369,7 +369,7 @@ void AutoDetailsView::slotBuildTarget()
else
titem = static_cast <TargetItem*> ( m_listView->selectedItem() );
- QString relpath = URLUtil::getRelativePath( m_part->topsourceDirectory(), m_part->projectDirectory() ) + "/" + m_widget->selectedSubproject()->relativePath();
+ TQString relpath = URLUtil::getRelativePath( m_part->topsourceDirectory(), m_part->projectDirectory() ) + "/" + m_widget->selectedSubproject()->relativePath();
m_part->buildTarget(relpath, titem);
}
@@ -387,8 +387,8 @@ void AutoDetailsView::slotExecuteTarget()
else
titem = static_cast <TargetItem*> ( m_listView->selectedItem() );
- QString relpath = URLUtil::getRelativePath( m_part->topsourceDirectory(), m_part->projectDirectory() ) + "/" + m_part->activeDirectory();
- m_part->executeTarget(QDir( DomUtil::readEntry( *m_part->projectDom(), "/kdevautoproject/run/cwd/"+titem->name )), titem);
+ TQString relpath = URLUtil::getRelativePath( m_part->topsourceDirectory(), m_part->projectDirectory() ) + "/" + m_part->activeDirectory();
+ m_part->executeTarget(TQDir( DomUtil::readEntry( *m_part->projectDom(), "/kdevautoproject/run/cwd/"+titem->name )), titem);
}
void AutoDetailsView::slotRemoveDetail()
@@ -404,7 +404,7 @@ void AutoDetailsView::slotRemoveDetail()
return;
}
- QListViewItem* sibling = fitem->nextSibling();
+ TQListViewItem* sibling = fitem->nextSibling();
if ( !fitem )
return;
@@ -414,7 +414,7 @@ void AutoDetailsView::slotRemoveDetail()
RemoveFileDialog dlg( m_widget, m_part, m_widget->selectedSubproject(),
titem, fitem->text( 0 ), this, "remove file dialog" );
- QString caption;
+ TQString caption;
if ( titem->name.isEmpty() )
caption = i18n ( "%1 in %2" ).arg ( titem->primary ).arg ( titem->prefix );
else
@@ -439,7 +439,7 @@ void AutoDetailsView::slotRemoveDetail()
if ( pvitem && ( pvitem->type() == ProjectItem::Target ) )
{
TargetItem* titem = static_cast <TargetItem*> ( m_listView->selectedItem() );
- QListViewItem* sibling = titem->nextSibling();
+ TQListViewItem* sibling = titem->nextSibling();
if ( !titem ) return;
@@ -469,7 +469,7 @@ void AutoDetailsView::slotRemoveDetail()
}
-void AutoDetailsView::slotDetailsContextMenu( KListView *, QListViewItem *item, const QPoint &p )
+void AutoDetailsView::slotDetailsContextMenu( KListView *, TQListViewItem *item, const TQPoint &p )
{
if ( !item )
return;
@@ -493,7 +493,7 @@ void AutoDetailsView::slotDetailsContextMenu( KListView *, QListViewItem *item,
return;
}
- QString caption;
+ TQString caption;
if ( titem->name.isEmpty() )
caption = i18n ( "%1 in %2" ).arg ( titem->primary ).arg ( titem->prefix );
else
@@ -587,7 +587,7 @@ void AutoDetailsView::slotDetailsContextMenu( KListView *, QListViewItem *item,
popup.setWhatsThis(idViewUIH, i18n("<b>Open ui.h file</b><p>Opens .ui.h file "
"associated with the selected .ui."));
- if (!fitem->name.contains(QRegExp("ui$")) || fitem->is_subst == true)
+ if (!fitem->name.contains(TQRegExp("ui$")) || fitem->is_subst == true)
{
popup.removeItem(idUISubclasses);
popup.removeItem(idViewUIH);
@@ -605,27 +605,27 @@ void AutoDetailsView::slotDetailsContextMenu( KListView *, QListViewItem *item,
if(r == idViewUIH)
{
m_part->partController()->editDocument(KURL(m_widget->selectedSubproject()->path
- + "/" + QString(fitem->name + ".h")));
+ + "/" + TQString(fitem->name + ".h")));
}
else if (r == idSubclassWidget)
{
- QStringList newFileNames;
+ TQStringList newFileNames;
newFileNames = m_part->languageSupport()->subclassWidget(m_widget->selectedSubproject()->path + "/" + fitem->name);
if (!newFileNames.empty())
{
- QDomDocument &dom = *(m_part->projectDom());
+ TQDomDocument &dom = *(m_part->projectDom());
for (uint i=0; i<newFileNames.count(); i++)
{
- QString srcfile_relpath = newFileNames[i];
+ TQString srcfile_relpath = newFileNames[i];
srcfile_relpath.remove(0,m_part->projectDirectory().length());
- QString uifile_relpath = QString(m_widget->selectedSubproject()->path + "/" + fitem->name).remove(0,m_part->projectDirectory().length());
+ TQString uifile_relpath = TQString(m_widget->selectedSubproject()->path + "/" + fitem->name).remove(0,m_part->projectDirectory().length());
DomUtil::PairList list = DomUtil::readPairListEntry(dom,"/kdevautoproject/subclassing",
"subclass","sourcefile", "uifile");
list << DomUtil::Pair(srcfile_relpath,uifile_relpath);
DomUtil::writePairListEntry(dom, "/kdevautoproject/subclassing",
"subclass", "sourcefile", "uifile", list);
- newFileNames[i] = newFileNames[i].replace(QRegExp(m_part->projectDirectory()+"/"),"");
+ newFileNames[i] = newFileNames[i].replace(TQRegExp(m_part->projectDirectory()+"/"),"");
}
m_subclasslist = DomUtil::readPairListEntry(dom,"/kdevautoproject/subclassing",
"subclass","sourcefile", "uifile");
@@ -634,17 +634,17 @@ void AutoDetailsView::slotDetailsContextMenu( KListView *, QListViewItem *item,
}
else if (r == idUpdateWidgetclass)
{
- QString noext = m_widget->selectedSubproject()->path + "/" + fitem->name;
+ TQString noext = m_widget->selectedSubproject()->path + "/" + fitem->name;
if (noext.findRev('.')>-1)
noext = noext.left(noext.findRev('.'));
- QStringList dummy;
- QString uifile = fitem->uiFileLink;
+ TQStringList dummy;
+ TQString uifile = fitem->uiFileLink;
if (uifile.findRev('/')>-1)
{
- QStringList uisplit = QStringList::split('/',uifile);
+ TQStringList uisplit = TQStringList::split('/',uifile);
uifile=uisplit[uisplit.count()-1];
}
@@ -653,16 +653,16 @@ void AutoDetailsView::slotDetailsContextMenu( KListView *, QListViewItem *item,
}
else if (r == idUISubclasses)
{
- QDomDocument &dom = *(m_part->projectDom());
+ TQDomDocument &dom = *(m_part->projectDom());
DomUtil::PairList list = DomUtil::readPairListEntry(dom,"/kdevautoproject/subclassing",
"subclass","sourcefile", "uifile");
- SubclassesDlg *sbdlg = new SubclassesDlg( QString(m_widget->selectedSubproject()->path + "/" +fitem->name).remove(0,m_part->projectDirectory().length()),
+ SubclassesDlg *sbdlg = new SubclassesDlg( TQString(m_widget->selectedSubproject()->path + "/" +fitem->name).remove(0,m_part->projectDirectory().length()),
list, m_part->projectDirectory());
if (sbdlg->exec())
{
- QDomElement el = DomUtil::elementByPath( dom, "/kdevautoproject");
- QDomElement el2 = DomUtil::elementByPath( dom, "/kdevautoproject/subclassing");
+ TQDomElement el = DomUtil::elementByPath( dom, "/kdevautoproject");
+ TQDomElement el2 = DomUtil::elementByPath( dom, "/kdevautoproject/subclassing");
if ( (!el.isNull()) && (!el2.isNull()) )
{
el.removeChild(el2);
@@ -679,7 +679,7 @@ void AutoDetailsView::slotDetailsContextMenu( KListView *, QListViewItem *item,
}
-void AutoDetailsView::slotDetailsExecuted( QListViewItem *item )
+void AutoDetailsView::slotDetailsExecuted( TQListViewItem *item )
{
if ( !item )
return ;
@@ -691,7 +691,7 @@ void AutoDetailsView::slotDetailsExecuted( QListViewItem *item )
if ( !m_widget->selectedSubproject() )
return;
- QString dirName = m_widget->selectedSubproject()->path;
+ TQString dirName = m_widget->selectedSubproject()->path;
FileItem *fitem = static_cast<FileItem*>( item );
if(fitem->is_subst)
{
@@ -710,15 +710,15 @@ void AutoDetailsView::slotSetActiveTarget()
SubprojectItem * subpitem = m_widget->selectedSubproject();
if ( !subpitem ) return;
- QString targetPath = subpitem->path + "/" + titem->name;
+ TQString targetPath = subpitem->path + "/" + titem->name;
targetPath = targetPath.mid( m_part->projectDirectory().length() + 1 );
kdDebug( 9020 ) << "Setting active " << targetPath << endl;
m_widget->setActiveTarget( targetPath );
- QDomDocument &dom = *m_part->projectDom();
+ TQDomDocument &dom = *m_part->projectDom();
DomUtil::writeEntry( dom, "/kdevautoproject/general/activetarget", targetPath );
}
-void AutoDetailsView::focusOutEvent(QFocusEvent */*e*/)
+void AutoDetailsView::focusOutEvent(TQFocusEvent */*e*/)
{
m_widget->setLastFocusedView(AutoProjectWidget::DetailsView);
}
diff --git a/buildtools/autotools/autodetailsview.h b/buildtools/autotools/autodetailsview.h
index ee67558d..60f10738 100644
--- a/buildtools/autotools/autodetailsview.h
+++ b/buildtools/autotools/autodetailsview.h
@@ -34,29 +34,29 @@ class AutoDetailsView : protected AutoProjectViewBase
Q_OBJECT
public:
- AutoDetailsView( AutoProjectWidget* widget, AutoProjectPart* part, QWidget *parent, const char *name );
+ AutoDetailsView( AutoProjectWidget* widget, AutoProjectPart* part, TQWidget *parent, const char *name );
virtual ~AutoDetailsView();
- QString getUiFileLink( const QString &path, const QString& filename );
+ TQString getUiFileLink( const TQString &path, const TQString& filename );
KListView* listView()
{
return m_listView;
}
public slots:
- void slotSelectionChanged( QListViewItem* item );
+ void slotSelectionChanged( TQListViewItem* item );
void slotSelectionChanged();
signals:
- void selectionChanged( QListViewItem* );
+ void selectionChanged( TQListViewItem* );
protected:
void initActions ();
- virtual void focusOutEvent( QFocusEvent *e );
+ virtual void focusOutEvent( TQFocusEvent *e );
private slots:
- void slotDetailsExecuted( QListViewItem *item );
- void slotDetailsContextMenu( KListView *, QListViewItem *item, const QPoint &p );
+ void slotDetailsExecuted( TQListViewItem *item );
+ void slotDetailsContextMenu( KListView *, TQListViewItem *item, const TQPoint &p );
void slotTargetOptions ();
void slotAddNewFile();
diff --git a/buildtools/autotools/autolistviewitems.cpp b/buildtools/autotools/autolistviewitems.cpp
index 454d12f5..865e82d0 100644
--- a/buildtools/autotools/autolistviewitems.cpp
+++ b/buildtools/autotools/autolistviewitems.cpp
@@ -12,9 +12,9 @@
* *
***************************************************************************/
-#include <qpainter.h>
-#include <qinputdialog.h>
-#include <qregexp.h>
+#include <tqpainter.h>
+#include <tqinputdialog.h>
+#include <tqregexp.h>
#include <kiconloader.h>
#include "misc.h"
@@ -27,30 +27,30 @@
* Class ProjectItem
*/
-ProjectItem::ProjectItem( Type type, QListView *parent, const QString &text )
- : QListViewItem( parent, text ), typ( type )
+ProjectItem::ProjectItem( Type type, TQListView *parent, const TQString &text )
+ : TQListViewItem( parent, text ), typ( type )
{
bld = false;
}
-ProjectItem::ProjectItem( Type type, ProjectItem *parent, const QString &text )
- : QListViewItem( parent, text ), typ( type )
+ProjectItem::ProjectItem( Type type, ProjectItem *parent, const TQString &text )
+ : TQListViewItem( parent, text ), typ( type )
{
bld = false;
}
-void ProjectItem::paintCell( QPainter *p, const QColorGroup &cg,
+void ProjectItem::paintCell( TQPainter *p, const TQColorGroup &cg,
int column, int width, int alignment )
{
if ( isBold() )
{
- QFont font( p->font() );
+ TQFont font( p->font() );
font.setBold( true );
p->setFont( font );
}
- QListViewItem::paintCell( p, cg, column, width, alignment );
+ TQListViewItem::paintCell( p, cg, column, width, alignment );
}
@@ -58,14 +58,14 @@ void ProjectItem::paintCell( QPainter *p, const QColorGroup &cg,
* Class SubprojectItem
*/
-SubprojectItem::SubprojectItem( QListView *parent, const QString &text )
+SubprojectItem::SubprojectItem( TQListView *parent, const TQString &text )
: ProjectItem( Subproject, parent, text )
{
init();
}
-SubprojectItem::SubprojectItem( SubprojectItem *parent, const QString &text )
+SubprojectItem::SubprojectItem( SubprojectItem *parent, const TQString &text )
: ProjectItem( Subproject, parent, text )
{
init();
@@ -79,9 +79,9 @@ void SubprojectItem::init()
}
-QString SubprojectItem::relativePath()
+TQString SubprojectItem::relativePath()
{
- QString relpath = subdir;
+ TQString relpath = subdir;
SubprojectItem *it = this;
while ( (it= dynamic_cast<SubprojectItem*>(it->parent())) )
@@ -98,7 +98,7 @@ QString SubprojectItem::relativePath()
* Class TargetItem
*/
-TargetItem::TargetItem( QListView *lv, bool group, const QString &text )
+TargetItem::TargetItem( TQListView *lv, bool group, const TQString &text )
: ProjectItem( Target, lv, text )
{
sources.setAutoDelete( true );
@@ -110,7 +110,7 @@ TargetItem::TargetItem( QListView *lv, bool group, const QString &text )
* Class FileItem
*/
-FileItem::FileItem( QListView *lv, const QString &text, bool set_is_subst )
+FileItem::FileItem( TQListView *lv, const TQString &text, bool set_is_subst )
: ProjectItem( File, lv, text ) , is_subst(set_is_subst)
{
if(!is_subst)
@@ -130,13 +130,13 @@ if(!is_subst)
return;
bool ok;
- QString text = QInputDialog::getText(
- i18n("Edit Substitution"), i18n("Substitution:"), QLineEdit::Normal,
+ TQString text = QInputDialog::getText(
+ i18n("Edit Substitution"), i18n("Substitution:"), TQLineEdit::Normal,
name, &ok );
if ( ok && !text.isEmpty() )
{
// user entered something and pressed OK
- QString new_name = text;
+ TQString new_name = text;
if(new_name == name)
return;
setText(0,new_name);
@@ -150,14 +150,14 @@ return;
}
}
-void FileItem::changeMakefileEntry(const QString& new_name)
+void FileItem::changeMakefileEntry(const TQString& new_name)
{
TargetItem* target = dynamic_cast<TargetItem*>(parent());
- QMap<QString,QString> replaceMap;
+ TQMap<TQString,TQString> replaceMap;
- QString canontargetname = AutoProjectTool::canonicalize(target->name);
- QString varname;
+ TQString canontargetname = AutoProjectTool::canonicalize(target->name);
+ TQString varname;
if( target->primary == "PROGRAMS" || target->primary == "LIBRARIES" || target->primary == "LTLIBRARIES" )
varname = canontargetname + "_SOURCES";
else
@@ -166,8 +166,8 @@ void FileItem::changeMakefileEntry(const QString& new_name)
{
if ( SubprojectItem* subProject = lv->m_part->m_widget->selectedSubproject() )
{
- QStringList sources = QStringList::split(QRegExp("[ \t\n]"), subProject->variables[varname]);
- QStringList::iterator it = sources.find(name);
+ TQStringList sources = TQStringList::split(TQRegExp("[ \t\n]"), subProject->variables[varname]);
+ TQStringList::iterator it = sources.find(name);
(*it) = new_name;
subProject->variables[varname] = sources.join(" ");
replaceMap.insert(varname, subProject->variables[varname]);
diff --git a/buildtools/autotools/autolistviewitems.h b/buildtools/autotools/autolistviewitems.h
index 0dece2a2..008fecc4 100644
--- a/buildtools/autotools/autolistviewitems.h
+++ b/buildtools/autotools/autolistviewitems.h
@@ -15,9 +15,9 @@
#ifndef AUTOLISTVIEWITEMS_H
#define AUTOLISTVIEWITEMS_H
-#include <qptrlist.h>
+#include <tqptrlist.h>
-#include <qlistview.h>
+#include <tqlistview.h>
class TargetItem;
class FileItem;
@@ -31,10 +31,10 @@ class ProjectItem : public QListViewItem
public:
enum Type { Subproject, Target, File };
- ProjectItem( Type type, QListView *parent, const QString &text );
- ProjectItem( Type type, ProjectItem *parent, const QString &text );
+ ProjectItem( Type type, TQListView *parent, const TQString &text );
+ ProjectItem( Type type, ProjectItem *parent, const TQString &text );
- void paintCell( QPainter *p, const QColorGroup &cg,
+ void paintCell( TQPainter *p, const TQColorGroup &cg,
int column, int width, int alignment );
void setBold( bool b )
{
@@ -62,21 +62,21 @@ private:
class SubprojectItem : public ProjectItem
{
public:
- SubprojectItem( QListView *parent, const QString &text );
- SubprojectItem( SubprojectItem *parent, const QString &text );
+ SubprojectItem( TQListView *parent, const TQString &text );
+ SubprojectItem( SubprojectItem *parent, const TQString &text );
/** name of the directory */
- QString subdir;
+ TQString subdir;
/** absolute path */
- QString path;
+ TQString path;
/** mapping from prefix to path */
- QMap<QString, QString> prefixes;
+ TQMap<TQString, TQString> prefixes;
/** mapping from variable name to value */
- QMap<QString, QString> variables;
+ TQMap<TQString, TQString> variables;
/** list of targets */
- QPtrList<TargetItem> targets;
+ TQPtrList<TargetItem> targets;
- QString relativePath();
+ TQString relativePath();
private:
void init();
@@ -99,28 +99,28 @@ class TargetItem : public ProjectItem
public:
//enum TargetKind { Program, Library, DataGroup, IconGroup, DocGroup };
- TargetItem( QListView *lv, bool group, const QString &text );
+ TargetItem( TQListView *lv, bool group, const TQString &text );
// Target kind - not used currently
//TargetKind kind;
//! Name of target, e.g. foo
- QString name;
+ TQString name;
//! One of PROGRAMS, LIBRARIES, LTLIBRARIES, SCRIPTS, HEADERS, DATA, JAVA
//! In addition to these automake primaries, we use KDEICON and KDEDOCS
//! for am_edit magic
- QString primary;
+ TQString primary;
//! May be bin, pkglib, noinst, check, sbin, pkgdata, java...
- QString prefix;
+ TQString prefix;
//! Content of foo_SOURCES (or java_JAVA) assignment
- QPtrList<FileItem> sources;
+ TQPtrList<FileItem> sources;
//! Content of foo_LDFLAGS assignment
- QString ldflags;
+ TQString ldflags;
//! Content of foo_LDADD assignment
- QString ldadd;
+ TQString ldadd;
//! Content of foo_LIBADD assignment
- QString libadd;
+ TQString libadd;
//! Content of foo_DEPENDENCIES assignment
- QString dependencies;
+ TQString dependencies;
};
@@ -129,12 +129,12 @@ class FileItem : public ProjectItem
{
public:
- FileItem( QListView *lv, const QString &text, bool set_is_subst = false );
+ FileItem( TQListView *lv, const TQString &text, bool set_is_subst = false );
void changeSubstitution();
- void changeMakefileEntry( const QString& );
+ void changeMakefileEntry( const TQString& );
- QString name;
- QString uiFileLink;
+ TQString name;
+ TQString uiFileLink;
const bool is_subst;
};
diff --git a/buildtools/autotools/autoprojectpart.cpp b/buildtools/autotools/autoprojectpart.cpp
index ea0b6896..38604ee0 100644
--- a/buildtools/autotools/autoprojectpart.cpp
+++ b/buildtools/autotools/autoprojectpart.cpp
@@ -21,14 +21,14 @@
#include "addicondlg.h"
#include "autoprojectwidget.h"
-#include <qdom.h>
-#include <qdir.h>
-#include <qfileinfo.h>
-#include <qpopupmenu.h>
-#include <qstringlist.h>
-#include <qwhatsthis.h>
-#include <qregexp.h>
-#include <qgroupbox.h>
+#include <tqdom.h>
+#include <tqdir.h>
+#include <tqfileinfo.h>
+#include <tqpopupmenu.h>
+#include <tqstringlist.h>
+#include <tqwhatsthis.h>
+#include <tqregexp.h>
+#include <tqgroupbox.h>
#include <kapplication.h>
@@ -65,7 +65,7 @@ static const KDevPluginInfo data("kdevautoproject");
K_EXPORT_COMPONENT_FACTORY( libkdevautoproject, AutoProjectFactory( data ) )
-AutoProjectPart::AutoProjectPart(QObject *parent, const char *name, const QStringList &args)
+AutoProjectPart::AutoProjectPart(TQObject *parent, const char *name, const TQStringList &args)
: KDevBuildTool(&data, parent, name ? name : "AutoProjectPart")
, m_lastCompilationFailed(false)
{
@@ -80,7 +80,7 @@ AutoProjectPart::AutoProjectPart(QObject *parent, const char *name, const QStrin
m_widget = new AutoProjectWidget(this, m_isKDE);
m_widget->setIcon(SmallIcon( info()->icon() ));
m_widget->setCaption(i18n("Automake Manager"));
- QWhatsThis::add(m_widget, i18n("<b>Automake manager</b><p>"
+ TQWhatsThis::add(m_widget, i18n("<b>Automake manager</b><p>"
"The project tree consists of two parts. The 'overview' "
"in the upper half shows the subprojects, each one having a "
"Makefile.am. The 'details' view in the lower half shows the "
@@ -90,7 +90,7 @@ AutoProjectPart::AutoProjectPart(QObject *parent, const char *name, const QStrin
KAction *action;
action = new KAction( i18n("Add Translation..."), 0,
- this, SLOT(slotAddTranslation()),
+ this, TQT_SLOT(slotAddTranslation()),
actionCollection(), "project_addtranslation" );
action->setToolTip(i18n("Add translation"));
action->setWhatsThis(i18n("<b>Add translation</b><p>Creates .po file for the selected language."));
@@ -101,7 +101,7 @@ AutoProjectPart::AutoProjectPart(QObject *parent, const char *name, const QStrin
action->setEnabled(false);
action = new KAction( i18n("&Build Project"), "make_kdevelop", Key_F8,
- this, SLOT(slotBuild()),
+ this, TQT_SLOT(slotBuild()),
actionCollection(), "build_build" );
action->setToolTip(i18n("Build project"));
action->setWhatsThis(i18n("<b>Build project</b><p>Runs <b>make</b> from the project directory.<br>"
@@ -110,7 +110,7 @@ AutoProjectPart::AutoProjectPart(QObject *parent, const char *name, const QStrin
action->setGroup("autotools");
action = new KAction( i18n("Build &Active Target"), "make_kdevelop", Key_F7,
- this, SLOT(slotBuildActiveTarget()),
+ this, TQT_SLOT(slotBuildActiveTarget()),
actionCollection(), "build_buildactivetarget" );
action->setToolTip(i18n("Build active target"));
action->setWhatsThis(i18n("<b>Build active target</b><p>Constructs a series of make commands to build an active target. "
@@ -120,7 +120,7 @@ AutoProjectPart::AutoProjectPart(QObject *parent, const char *name, const QStrin
action->setGroup("autotools");
action = new KAction( i18n("Compile &File"), "make_kdevelop",
- this, SLOT(slotCompileFile()),
+ this, TQT_SLOT(slotCompileFile()),
actionCollection(), "build_compilefile" );
action->setToolTip(i18n("Compile file"));
action->setWhatsThis(i18n("<b>Compile file</b><p>Runs <b>make filename.o</b> command from the directory where 'filename' is the name of currently opened file.<br>"
@@ -129,7 +129,7 @@ AutoProjectPart::AutoProjectPart(QObject *parent, const char *name, const QStrin
action->setGroup("autotools");
action = new KAction( i18n("Run Configure"), 0,
- this, SLOT(slotConfigure()),
+ this, TQT_SLOT(slotConfigure()),
actionCollection(), "build_configure" );
action->setToolTip(i18n("Run configure"));
action->setWhatsThis(i18n("<b>Run configure</b><p>Executes <b>configure</b> with flags, arguments "
@@ -138,14 +138,14 @@ AutoProjectPart::AutoProjectPart(QObject *parent, const char *name, const QStrin
action->setGroup("autotools");
action = new KAction( i18n("Run automake && friends"), 0,
- this, SLOT(slotMakefilecvs()),
+ this, TQT_SLOT(slotMakefilecvs()),
actionCollection(), "build_makefilecvs" );
action->setToolTip(i18n("Run automake && friends"));
action->setWhatsThis(i18n("<b>Run automake && friends</b><p>Executes<br><b>make -f Makefile.cvs</b><br><b>./configure</b><br>commands from the project directory."));
action->setGroup("autotools");
action = new KAction( i18n("Install"), 0,
- this, SLOT(slotInstall()),
+ this, TQT_SLOT(slotInstall()),
actionCollection(), "build_install" );
action->setToolTip(i18n("Install"));
action->setWhatsThis(i18n("<b>Install</b><p>Runs <b>make install</b> command from the project directory.<br>"
@@ -154,7 +154,7 @@ AutoProjectPart::AutoProjectPart(QObject *parent, const char *name, const QStrin
action->setGroup("autotools");
action = new KAction( i18n("Install (as root user)"), 0,
- this, SLOT(slotInstallWithKdesu()),
+ this, TQT_SLOT(slotInstallWithKdesu()),
actionCollection(), "build_install_kdesu" );
action->setToolTip(i18n("Install as root user"));
action->setWhatsThis(i18n("<b>Install</b><p>Runs <b>make install</b> command from the project directory with root privileges.<br>"
@@ -164,7 +164,7 @@ AutoProjectPart::AutoProjectPart(QObject *parent, const char *name, const QStrin
action->setGroup("autotools");
action = new KAction( i18n("&Clean Project"), 0,
- this, SLOT(slotClean()),
+ this, TQT_SLOT(slotClean()),
actionCollection(), "build_clean" );
action->setToolTip(i18n("Clean project"));
action->setWhatsThis(i18n("<b>Clean project</b><p>Runs <b>make clean</b> command from the project directory.<br>"
@@ -173,7 +173,7 @@ AutoProjectPart::AutoProjectPart(QObject *parent, const char *name, const QStrin
action->setGroup("autotools");
action = new KAction( i18n("&Distclean"), 0,
- this, SLOT(slotDistClean()),
+ this, TQT_SLOT(slotDistClean()),
actionCollection(), "build_distclean" );
action->setToolTip(i18n("Distclean"));
action->setWhatsThis(i18n("<b>Distclean</b><p>Runs <b>make distclean</b> command from the project directory.<br>"
@@ -182,7 +182,7 @@ AutoProjectPart::AutoProjectPart(QObject *parent, const char *name, const QStrin
action->setGroup("autotools");
action = new KAction( i18n("Make Messages && Merge"), 0,
- this, SLOT(slotMakeMessages()),
+ this, TQT_SLOT(slotMakeMessages()),
actionCollection(), "build_messages" );
action->setToolTip(i18n("Make messages && merge"));
action->setWhatsThis(i18n("<b>Make messages && merge</b><p>Runs <b>make package-messages</b> command from the project directory.<br>"
@@ -202,36 +202,36 @@ AutoProjectPart::AutoProjectPart(QObject *parent, const char *name, const QStrin
"Modify build configurations in project settings dialog, <b>Configure Options</b> tab."));
buildConfigAction->setGroup("autotools");
- QDomDocument &dom = *projectDom();
+ TQDomDocument &dom = *projectDom();
if (!DomUtil::readBoolEntry(dom, "/kdevautoproject/run/disable_default")) {
//ok we handle the execute in this kpart
action = new KAction( i18n("Execute Program"), "exec", SHIFT+Key_F9,
- this, SLOT(slotExecute()),
+ this, TQT_SLOT(slotExecute()),
actionCollection(), "build_execute" );
action->setToolTip(i18n("Execute program"));
action->setWhatsThis(i18n("<b>Execute program</b><p>Executes the currently active target or the main program specified in project settings, <b>Run Options</b> tab."));
action->setGroup("autotools");
}
- connect( buildConfigAction, SIGNAL(activated(const QString&)),
- this, SLOT(slotBuildConfigChanged(const QString&)) );
- connect( buildConfigAction->popupMenu(), SIGNAL(aboutToShow()),
- this, SLOT(slotBuildConfigAboutToShow()) );
+ connect( buildConfigAction, TQT_SIGNAL(activated(const TQString&)),
+ this, TQT_SLOT(slotBuildConfigChanged(const TQString&)) );
+ connect( buildConfigAction->popupMenu(), TQT_SIGNAL(aboutToShow()),
+ this, TQT_SLOT(slotBuildConfigAboutToShow()) );
-// connect( core(), SIGNAL(projectConfigWidget(KDialogBase*)), this, SLOT(projectConfigWidget(KDialogBase*)) );
+// connect( core(), TQT_SIGNAL(projectConfigWidget(KDialogBase*)), this, TQT_SLOT(projectConfigWidget(KDialogBase*)) );
_configProxy = new ConfigWidgetProxy( core() );
_configProxy->createProjectConfigPage( i18n("Configure Options"), CONFIGURE_OPTIONS, info()->icon() );
_configProxy->createProjectConfigPage( i18n("Run Options"), RUN_OPTIONS, info()->icon() );
_configProxy->createProjectConfigPage( i18n("Make Options"), MAKE_OPTIONS, info()->icon() );
- connect( _configProxy, SIGNAL(insertConfigWidget(const KDialogBase*, QWidget*, unsigned int )),
- this, SLOT(insertConfigWidget(const KDialogBase*, QWidget*, unsigned int )) );
+ connect( _configProxy, TQT_SIGNAL(insertConfigWidget(const KDialogBase*, TQWidget*, unsigned int )),
+ this, TQT_SLOT(insertConfigWidget(const KDialogBase*, TQWidget*, unsigned int )) );
- connect( makeFrontend(), SIGNAL(commandFinished(const QString&)),
- this, SLOT(slotCommandFinished(const QString&)) );
- connect( makeFrontend(), SIGNAL(commandFailed(const QString&)),
- this, SLOT(slotCommandFailed(const QString&)) );
+ connect( makeFrontend(), TQT_SIGNAL(commandFinished(const TQString&)),
+ this, TQT_SLOT(slotCommandFinished(const TQString&)) );
+ connect( makeFrontend(), TQT_SIGNAL(commandFailed(const TQString&)),
+ this, TQT_SLOT(slotCommandFailed(const TQString&)) );
setWantautotools();
@@ -250,25 +250,25 @@ AutoProjectPart::~AutoProjectPart()
}
-void AutoProjectPart::insertConfigWidget( const KDialogBase* dlg, QWidget * page, unsigned int pagenumber )
+void AutoProjectPart::insertConfigWidget( const KDialogBase* dlg, TQWidget * page, unsigned int pagenumber )
{
switch ( pagenumber )
{
case CONFIGURE_OPTIONS:
{
ConfigureOptionsWidget *w2 = new ConfigureOptionsWidget(this, page );
- connect( dlg, SIGNAL(okClicked()), w2, SLOT(accept()) );
+ connect( dlg, TQT_SIGNAL(okClicked()), w2, TQT_SLOT(accept()) );
}
break;
case RUN_OPTIONS:
{
- QDomDocument &dom = *projectDom();
+ TQDomDocument &dom = *projectDom();
if (!DomUtil::readBoolEntry(dom, "/kdevautoproject/run/disable_default"))
{
//ok we handle the execute in this kpart
RunOptionsWidget *w3 = new RunOptionsWidget(*projectDom(), "/kdevautoproject", buildDirectory(), page );
- connect( dlg, SIGNAL(okClicked()), w3, SLOT(accept()) );
+ connect( dlg, TQT_SIGNAL(okClicked()), w3, TQT_SLOT(accept()) );
}
}
break;
@@ -276,21 +276,21 @@ void AutoProjectPart::insertConfigWidget( const KDialogBase* dlg, QWidget * page
case MAKE_OPTIONS:
{
MakeOptionsWidget *w4 = new MakeOptionsWidget(*projectDom(), "/kdevautoproject", page );
- connect( dlg, SIGNAL(okClicked()), w4, SLOT(accept()) );
+ connect( dlg, TQT_SIGNAL(okClicked()), w4, TQT_SLOT(accept()) );
}
break;
}
}
-void AutoProjectPart::openProject(const QString &dirName, const QString &projectName)
+void AutoProjectPart::openProject(const TQString &dirName, const TQString &projectName)
{
m_projectName = projectName;
m_projectPath =dirName;
m_widget->openProject(dirName);
- QDomDocument &dom = *projectDom();
- QString activeTarget = DomUtil::readEntry(dom, "/kdevautoproject/general/activetarget");
+ TQDomDocument &dom = *projectDom();
+ TQString activeTarget = DomUtil::readEntry(dom, "/kdevautoproject/general/activetarget");
kdDebug(9020) << k_funcinfo << "activeTarget " << activeTarget << endl;
if (!activeTarget.isEmpty())
m_widget->setActiveTarget(activeTarget);
@@ -312,13 +312,13 @@ void AutoProjectPart::closeProject()
}
-QString AutoProjectPart::projectDirectory() const
+TQString AutoProjectPart::projectDirectory() const
{
return m_projectPath;
}
-QString AutoProjectPart::projectName() const
+TQString AutoProjectPart::projectName() const
{
return m_projectName;
}
@@ -342,12 +342,12 @@ DomUtil::PairList AutoProjectPart::runEnvironmentVars() const
* if /kdevautoproject/run/directoryradio == custom
* The custom directory absolute path
*/
-QString AutoProjectPart::runDirectory() const
+TQString AutoProjectPart::runDirectory() const
{
- QDomDocument &dom = *projectDom();
+ TQDomDocument &dom = *projectDom();
- QString cwd;
+ TQString cwd;
if( DomUtil::readBoolEntry(dom, "/kdevautoproject/run/useglobalprogram", false) || !m_widget->activeTarget() )
{
cwd = defaultRunDirectory("kdevautoproject");
@@ -374,17 +374,17 @@ QString AutoProjectPart::runDirectory() const
* The absolute path to executable
*/
-QString AutoProjectPart::mainProgram() const
+TQString AutoProjectPart::mainProgram() const
{
- QDomDocument * dom = projectDom();
+ TQDomDocument * dom = projectDom();
- if ( !dom ) return QString();
+ if ( !dom ) return TQString();
if( DomUtil::readBoolEntry(*dom, "/kdevautoproject/run/useglobalprogram", false) )
{
- QString DomMainProgram = DomUtil::readEntry(*dom, "/kdevautoproject/run/mainprogram");
+ TQString DomMainProgram = DomUtil::readEntry(*dom, "/kdevautoproject/run/mainprogram");
- if ( DomMainProgram.isEmpty() ) return QString();
+ if ( DomMainProgram.isEmpty() ) return TQString();
if ( DomMainProgram.startsWith("/") ) // assume absolute path
{
@@ -392,7 +392,7 @@ QString AutoProjectPart::mainProgram() const
}
else // assume builddir relative path
{
- QString relprojectpath = URLUtil::getRelativePath( topsourceDirectory(), projectDirectory() );
+ TQString relprojectpath = URLUtil::getRelativePath( topsourceDirectory(), projectDirectory() );
if( !relprojectpath.isEmpty() )
relprojectpath = "/" + relprojectpath;
return buildDirectory() + relprojectpath + "/" + DomMainProgram;
@@ -407,7 +407,7 @@ QString AutoProjectPart::mainProgram() const
KMessageBox::error( m_widget, i18n("There is no active target.\n"
"Unable to determine the main program."), i18n("No active target found") );
kdDebug ( 9020 ) << k_funcinfo << "Error! : There's no active target! -> Unable to determine the main program in AutoProjectPart::mainProgram()" << endl;
- return QString::null;
+ return TQString::null;
}
if ( titem->primary != "PROGRAMS" ) {
@@ -416,10 +416,10 @@ QString AutoProjectPart::mainProgram() const
"to be the active target, set a main program under\n"
"Project -> Project Options -> Run Options").arg(titem->name).arg(titem->primary), i18n("Active target is not a library") );
kdDebug ( 9020 ) << k_funcinfo << "Error! : Active target isn't binary (" << titem->primary << ") ! -> Unable to determine the main program in AutoProjectPart::mainProgram()" << endl;
- return QString::null;
+ return TQString::null;
}
- QString relprojectpath = URLUtil::getRelativePath( topsourceDirectory(), projectDirectory() );
+ TQString relprojectpath = URLUtil::getRelativePath( topsourceDirectory(), projectDirectory() );
if( !relprojectpath.isEmpty() )
relprojectpath = "/" + relprojectpath;
return buildDirectory() + relprojectpath + "/" + activeDirectory() + "/" + titem->name;
@@ -427,10 +427,10 @@ QString AutoProjectPart::mainProgram() const
}
-/** Retuns a QString with the debug command line arguments */
-QString AutoProjectPart::debugArguments() const
+/** Retuns a TQString with the debug command line arguments */
+TQString AutoProjectPart::debugArguments() const
{
- QDomDocument &dom = *projectDom();
+ TQDomDocument &dom = *projectDom();
if( DomUtil::readBoolEntry(dom, "/kdevautoproject/run/useglobalprogram", false) || !m_widget->activeTarget() )
{
@@ -442,10 +442,10 @@ QString AutoProjectPart::debugArguments() const
}
-/** Retuns a QString with the run command line arguments */
-QString AutoProjectPart::runArguments() const
+/** Retuns a TQString with the run command line arguments */
+TQString AutoProjectPart::runArguments() const
{
- QDomDocument &dom = *projectDom();
+ TQDomDocument &dom = *projectDom();
if( DomUtil::readBoolEntry(dom, "/kdevautoproject/run/useglobalprogram", false) || !m_widget->activeTarget() )
{
@@ -457,13 +457,13 @@ QString AutoProjectPart::runArguments() const
}
-QString AutoProjectPart::activeDirectory() const
+TQString AutoProjectPart::activeDirectory() const
{
return m_widget->activeDirectory();
}
-QStringList AutoProjectPart::allFiles() const
+TQStringList AutoProjectPart::allFiles() const
{
return m_widget->allFiles();
}
@@ -471,8 +471,8 @@ QStringList AutoProjectPart::allFiles() const
void AutoProjectPart::setWantautotools()
{
- QDomDocument &dom = *projectDom();
- QDomElement el = DomUtil::elementByPath(dom, "/kdevautoproject/make");
+ TQDomDocument &dom = *projectDom();
+ TQDomElement el = DomUtil::elementByPath(dom, "/kdevautoproject/make");
if ( el.namedItem("envvars").isNull() ) {
DomUtil::PairList list;
list << DomUtil::Pair("WANT_AUTOCONF_2_5", "1");
@@ -482,7 +482,7 @@ void AutoProjectPart::setWantautotools()
}
-QString AutoProjectPart::makeEnvironment() const
+TQString AutoProjectPart::makeEnvironment() const
{
// Get the make environment variables pairs into the environstr string
// in the form of: "ENV_VARIABLE=ENV_VALUE"
@@ -491,7 +491,7 @@ QString AutoProjectPart::makeEnvironment() const
DomUtil::PairList envvars =
DomUtil::readPairListEntry(*projectDom(), "/kdevautoproject/make/envvars", "envvar", "name", "value");
- QString environstr;
+ TQString environstr;
DomUtil::PairList::ConstIterator it;
for (it = envvars.begin(); it != envvars.end(); ++it)
{
@@ -509,18 +509,18 @@ QString AutoProjectPart::makeEnvironment() const
}
-void AutoProjectPart::addFile(const QString &fileName)
+void AutoProjectPart::addFile(const TQString &fileName)
{
- QStringList fileList;
+ TQStringList fileList;
fileList.append ( fileName );
this->addFiles ( fileList );
}
-void AutoProjectPart::addFiles ( const QStringList& fileList )
+void AutoProjectPart::addFiles ( const TQStringList& fileList )
{
- QString directory, name;
- QStringList::ConstIterator it;
+ TQString directory, name;
+ TQStringList::ConstIterator it;
bool messageBoxShown = false;
for ( it = fileList.begin(); it != fileList.end(); ++it )
@@ -554,15 +554,15 @@ void AutoProjectPart::addFiles ( const QStringList& fileList )
m_widget->addFiles(fileList);
}
-void AutoProjectPart::removeFile(const QString &fileName)
+void AutoProjectPart::removeFile(const TQString &fileName)
{
- QStringList fileList;
+ TQStringList fileList;
fileList.append ( fileName );
this->removeFiles ( fileList );
}
-void AutoProjectPart::removeFiles ( const QStringList& fileList )
+void AutoProjectPart::removeFiles ( const TQStringList& fileList )
{
/// \FIXME m_widget->removeFiles does nothing!
m_widget->removeFiles ( fileList );
@@ -570,18 +570,18 @@ void AutoProjectPart::removeFiles ( const QStringList& fileList )
emit removedFilesFromProject ( fileList );
}
-QStringList AutoProjectPart::allBuildConfigs() const
+TQStringList AutoProjectPart::allBuildConfigs() const
{
- QDomDocument &dom = *projectDom();
+ TQDomDocument &dom = *projectDom();
- QStringList allConfigs;
+ TQStringList allConfigs;
allConfigs.append("default");
- QDomNode node = dom.documentElement().namedItem("kdevautoproject").namedItem("configurations");
- QDomElement childEl = node.firstChild().toElement();
+ TQDomNode node = dom.documentElement().namedItem("kdevautoproject").namedItem("configurations");
+ TQDomElement childEl = node.firstChild().toElement();
while (!childEl.isNull())
{
- QString config = childEl.tagName();
+ TQString config = childEl.tagName();
kdDebug(9020) << k_funcinfo << "Found config " << config << endl;
if (config != "default")
allConfigs.append(config);
@@ -592,11 +592,11 @@ QStringList AutoProjectPart::allBuildConfigs() const
}
-QString AutoProjectPart::currentBuildConfig() const
+TQString AutoProjectPart::currentBuildConfig() const
{
- QDomDocument &dom = *projectDom();
+ TQDomDocument &dom = *projectDom();
- QString config = DomUtil::readEntry(dom, "/kdevautoproject/general/useconfiguration");
+ TQString config = DomUtil::readEntry(dom, "/kdevautoproject/general/useconfiguration");
if (config.isEmpty() || !allBuildConfigs().contains(config))
config = "default";
@@ -604,11 +604,11 @@ QString AutoProjectPart::currentBuildConfig() const
}
-QString AutoProjectPart::buildDirectory() const
+TQString AutoProjectPart::buildDirectory() const
{
- QString prefix = "/kdevautoproject/configurations/" + currentBuildConfig() + "/";
+ TQString prefix = "/kdevautoproject/configurations/" + currentBuildConfig() + "/";
- QString builddir = DomUtil::readEntry(*projectDom(), prefix + "builddir");
+ TQString builddir = DomUtil::readEntry(*projectDom(), prefix + "builddir");
if (builddir.isEmpty())
return topsourceDirectory();
else if (builddir.startsWith("/"))
@@ -617,11 +617,11 @@ QString AutoProjectPart::buildDirectory() const
return projectDirectory() + "/" + builddir;
}
-QString AutoProjectPart::topsourceDirectory() const
+TQString AutoProjectPart::topsourceDirectory() const
{
- QString prefix = "/kdevautoproject/configurations/" + currentBuildConfig() + "/";
+ TQString prefix = "/kdevautoproject/configurations/" + currentBuildConfig() + "/";
- QString topsourcedir = DomUtil::readEntry(*projectDom(), prefix + "topsourcedir");
+ TQString topsourcedir = DomUtil::readEntry(*projectDom(), prefix + "topsourcedir");
if (topsourcedir.isEmpty())
return projectDirectory();
else if (topsourcedir.startsWith("/"))
@@ -630,45 +630,45 @@ QString AutoProjectPart::topsourceDirectory() const
return projectDirectory() + "/" + topsourcedir;
}
-QString AutoProjectPart::constructMakeCommandLine(const QString &dir, const QString &target) const
+TQString AutoProjectPart::constructMakeCommandLine(const TQString &dir, const TQString &target) const
{
- QString preCommand;
- QFileInfo fi1();
+ TQString preCommand;
+ TQFileInfo fi1();
kdDebug(9020) << k_funcinfo << "Looking for Makefile in " << dir << endl;
- if ( !QFile::exists(dir + "/GNUmakefile") && !QFile::exists(dir + "/makefile")
- && ! QFile::exists(dir + "/Makefile") )
+ if ( !TQFile::exists(dir + "/GNUmakefile") && !TQFile::exists(dir + "/makefile")
+ && ! TQFile::exists(dir + "/Makefile") )
{
- if (!QFile::exists(buildDirectory() + "/configure"))
+ if (!TQFile::exists(buildDirectory() + "/configure"))
{
int r = KMessageBox::questionYesNo(m_widget, i18n("%1\nThere is no Makefile in this directory\n"
"and no configure script for this project.\n"
- "Run automake & friends and configure first?").arg(buildDirectory()), QString::null, i18n("Run Them"), i18n("Do Not Run"));
+ "Run automake & friends and configure first?").arg(buildDirectory()), TQString::null, i18n("Run Them"), i18n("Do Not Run"));
if (r == KMessageBox::No)
- return QString::null;
+ return TQString::null;
preCommand = makefileCvsCommand();
if (preCommand.isNull())
- return QString::null;
+ return TQString::null;
preCommand += " && ";
preCommand += configureCommand() + " && ";
}
else
{
- int r = KMessageBox::questionYesNo(m_widget, i18n("%1\nThere is no Makefile in this directory. Run 'configure' first?").arg(dir), QString::null, i18n("Run configure"), i18n("Do Not Run"));
+ int r = KMessageBox::questionYesNo(m_widget, i18n("%1\nThere is no Makefile in this directory. Run 'configure' first?").arg(dir), TQString::null, i18n("Run configure"), i18n("Do Not Run"));
if (r == KMessageBox::No)
- return QString::null;
+ return TQString::null;
preCommand = configureCommand() + " && ";
}
}
- QDomDocument &dom = *projectDom();
+ TQDomDocument &dom = *projectDom();
- QString cmdline = DomUtil::readEntry(dom, "/kdevautoproject/make/makebin");
+ TQString cmdline = DomUtil::readEntry(dom, "/kdevautoproject/make/makebin");
int prio = DomUtil::readIntEntry(dom, "/kdevautoproject/make/prio");
- QString nice;
+ TQString nice;
kdDebug(9020) << k_funcinfo << "nice = " << prio<< endl;
if (prio != 0)
{
- nice = QString("nice -n%1 ").arg(prio);
+ nice = TQString("nice -n%1 ").arg(prio);
}
if (cmdline.isEmpty())
@@ -680,7 +680,7 @@ QString AutoProjectPart::constructMakeCommandLine(const QString &dir, const QStr
if (runmultiple && jobs != 0)
{
cmdline += " -j";
- cmdline += QString::number(jobs);
+ cmdline += TQString::number(jobs);
}
if (DomUtil::readBoolEntry(dom, "/kdevautoproject/make/dontact"))
cmdline += " -n";
@@ -690,7 +690,7 @@ QString AutoProjectPart::constructMakeCommandLine(const QString &dir, const QStr
cmdline.prepend(nice);
cmdline.prepend(makeEnvironment());
- QString dircmd = "cd ";
+ TQString dircmd = "cd ";
dircmd += KProcess::quote(dir);
dircmd += " && ";
@@ -698,7 +698,7 @@ QString AutoProjectPart::constructMakeCommandLine(const QString &dir, const QStr
}
-void AutoProjectPart::startMakeCommand(const QString &dir, const QString &target, bool withKdesu)
+void AutoProjectPart::startMakeCommand(const TQString &dir, const TQString &target, bool withKdesu)
{
if (partController()->saveAllFiles()==false)
return; //user cancelled
@@ -715,18 +715,18 @@ void AutoProjectPart::startMakeCommand(const QString &dir, const QString &target
/** Adds the make command for the libraries that the target depends on
* to the make frontend queue (this is a recursive function) */
-bool AutoProjectPart::queueInternalLibDependenciesBuild(TargetItem* titem, QStringList& alreadyScheduledDeps)
+bool AutoProjectPart::queueInternalLibDependenciesBuild(TargetItem* titem, TQStringList& alreadyScheduledDeps)
{
- QString addstr = (titem->primary == "PROGRAMS")? titem->ldadd : titem->libadd;
- QStringList l2 = QStringList::split(QRegExp("[ \t]"), addstr); // list of dependencies
- QString tdir; // temp target directory
- QString tname; // temp target name
- QString tcmd; // temp command line
- QStringList::Iterator l2it;
+ TQString addstr = (titem->primary == "PROGRAMS")? titem->ldadd : titem->libadd;
+ TQStringList l2 = TQStringList::split(TQRegExp("[ \t]"), addstr); // list of dependencies
+ TQString tdir; // temp target directory
+ TQString tname; // temp target name
+ TQString tcmd; // temp command line
+ TQStringList::Iterator l2it;
for (l2it = l2.begin(); l2it != l2.end(); ++l2it)
{
- QString dependency = *l2it;
+ TQString dependency = *l2it;
if (dependency.startsWith("$(top_builddir)/"))
{
// These are the internal libraries
@@ -753,7 +753,7 @@ bool AutoProjectPart::queueInternalLibDependenciesBuild(TargetItem* titem, QStri
SubprojectItem *spi = m_widget->subprojectItemForPath( dependency.left(pos) );
if (spi)
{
- QPtrList< TargetItem > tl = spi->targets;
+ TQPtrList< TargetItem > tl = spi->targets;
// Cycle through the list of targets to find the one we're looking for
TargetItem *ti = tl.first();
do
@@ -812,11 +812,11 @@ void AutoProjectPart::slotBuild()
m_needMakefileCvs = false;
}
- startMakeCommand(buildDirectory(), QString::fromLatin1(""));
+ startMakeCommand(buildDirectory(), TQString::fromLatin1(""));
}
-void AutoProjectPart::buildTarget(QString relpath, TargetItem* titem)
+void AutoProjectPart::buildTarget(TQString relpath, TargetItem* titem)
{
if ( !titem )
@@ -825,12 +825,12 @@ void AutoProjectPart::buildTarget(QString relpath, TargetItem* titem)
//m_lastCompilationFailed = false;
// Calculate the complete name of the target and store it in name
- QString name = titem->name;
+ TQString name = titem->name;
if ( titem->primary == "KDEDOCS" )
name = "index.cache.bz2";
// Calculate the full path of the target and store it in path
- QString path = buildDirectory();
+ TQString path = buildDirectory();
if (!path.endsWith("/") && !path.isEmpty())
path += "/";
if (relpath.at(0) == '/')
@@ -843,16 +843,16 @@ void AutoProjectPart::buildTarget(QString relpath, TargetItem* titem)
// Add the make command for the libraries that the target depends on to the make frontend queue
// if this recursive behavour is un-wanted comment the next line
- QStringList deps;
+ TQStringList deps;
if( !queueInternalLibDependenciesBuild(titem, deps) )
return;
// Calculate the "make" command line for the target
- //QString relpath = dir.path().mid( projectDirectory().length() );
+ //TQString relpath = dir.path().mid( projectDirectory().length() );
m_runProg=buildDirectory() + "/" + relpath+"/"+name;
kdDebug(9020) << "buildTarget:" << buildDirectory()<< endl;
kdDebug(9020) << "buildTarget:" << relpath << " " << path << ": "<< name << " : " << m_runProg << endl;
- QString tcmd = constructMakeCommandLine( path, name );
+ TQString tcmd = constructMakeCommandLine( path, name );
// Call make
if (!tcmd.isNull())
@@ -882,60 +882,60 @@ void AutoProjectPart::slotCompileFile()
if (!part || !part->url().isLocalFile())
return;
- QString fileName = part->url().path();
- QFileInfo fi(fileName);
- QString sourceDir = fi.dirPath();
- QString baseName = fi.baseName(true);
+ TQString fileName = part->url().path();
+ TQFileInfo fi(fileName);
+ TQString sourceDir = fi.dirPath();
+ TQString baseName = fi.baseName(true);
kdDebug(9020) << "Compiling " << fileName
<< " in dir " << sourceDir
<< " with baseName " << baseName << endl;
- QString projectDir = projectDirectory();
+ TQString projectDir = projectDirectory();
if (!sourceDir.startsWith(projectDir)) {
KMessageBox::sorry(m_widget, i18n("Can only compile files in directories which belong to the project."));
return;
}
- QString buildDir = buildDirectory() + sourceDir.mid(projectDir.length());
- QString target = baseName + ".lo";
+ TQString buildDir = buildDirectory() + sourceDir.mid(projectDir.length());
+ TQString target = baseName + ".lo";
kdDebug(9020) << "builddir " << buildDir << ", target " << target << endl;
startMakeCommand(buildDir, target);
}
-QString AutoProjectPart::configureCommand() const
+TQString AutoProjectPart::configureCommand() const
{
- QDomDocument &dom = *projectDom();
- QString prefix = "/kdevautoproject/configurations/" + currentBuildConfig() + "/";
+ TQDomDocument &dom = *projectDom();
+ TQString prefix = "/kdevautoproject/configurations/" + currentBuildConfig() + "/";
- QString cmdline = "\"" + topsourceDirectory();
+ TQString cmdline = "\"" + topsourceDirectory();
cmdline += "/configure\"";
- QString cc = DomUtil::readEntry(dom, prefix + "ccompilerbinary");
+ TQString cc = DomUtil::readEntry(dom, prefix + "ccompilerbinary");
if (!cc.isEmpty())
- cmdline.prepend(QString("CC=%1 ").arg(cc));
- QString cflags = DomUtil::readEntry(dom, prefix + "cflags");
+ cmdline.prepend(TQString("CC=%1 ").arg(cc));
+ TQString cflags = DomUtil::readEntry(dom, prefix + "cflags");
if (!cflags.isEmpty())
- cmdline.prepend(QString("CFLAGS=\"%1\" ").arg(cflags));
- QString cxx = DomUtil::readEntry(dom, prefix + "cxxcompilerbinary");
+ cmdline.prepend(TQString("CFLAGS=\"%1\" ").arg(cflags));
+ TQString cxx = DomUtil::readEntry(dom, prefix + "cxxcompilerbinary");
if (!cxx.isEmpty())
- cmdline.prepend(QString("CXX=%1 ").arg(cxx));
- QString cxxflags = DomUtil::readEntry(dom, prefix + "cxxflags");
+ cmdline.prepend(TQString("CXX=%1 ").arg(cxx));
+ TQString cxxflags = DomUtil::readEntry(dom, prefix + "cxxflags");
if (!cxxflags.isEmpty())
- cmdline.prepend(QString("CXXFLAGS=\"%1\" ").arg(cxxflags));
- QString f77 = DomUtil::readEntry(dom, prefix + "f77compilerbinary");
+ cmdline.prepend(TQString("CXXFLAGS=\"%1\" ").arg(cxxflags));
+ TQString f77 = DomUtil::readEntry(dom, prefix + "f77compilerbinary");
if (!f77.isEmpty())
- cmdline.prepend(QString("F77=%1 ").arg(f77));
- QString fflags = DomUtil::readEntry(dom, prefix + "f77flags");
+ cmdline.prepend(TQString("F77=%1 ").arg(f77));
+ TQString fflags = DomUtil::readEntry(dom, prefix + "f77flags");
if (!fflags.isEmpty())
- cmdline.prepend(QString("FFLAGS=\"%1\" ").arg(fflags));
- QString cppflags = DomUtil::readEntry(dom, prefix + "cppflags");
+ cmdline.prepend(TQString("FFLAGS=\"%1\" ").arg(fflags));
+ TQString cppflags = DomUtil::readEntry(dom, prefix + "cppflags");
if (!cppflags.isEmpty())
- cmdline.prepend(QString("CPPFLAGS=\"%1\" ").arg(cppflags));
- QString ldflags = DomUtil::readEntry(dom, prefix + "ldflags");
+ cmdline.prepend(TQString("CPPFLAGS=\"%1\" ").arg(cppflags));
+ TQString ldflags = DomUtil::readEntry(dom, prefix + "ldflags");
if (!ldflags.isEmpty())
- cmdline.prepend(QString("LDFLAGS=\"%1\" ").arg(ldflags));
+ cmdline.prepend(TQString("LDFLAGS=\"%1\" ").arg(ldflags));
- QString configargs = DomUtil::readEntry(dom, prefix + "configargs");
+ TQString configargs = DomUtil::readEntry(dom, prefix + "configargs");
if (!configargs.isEmpty()) {
cmdline += " ";
cmdline += configargs;
@@ -944,7 +944,7 @@ QString AutoProjectPart::configureCommand() const
DomUtil::PairList envvars =
DomUtil::readPairListEntry(*projectDom(), prefix + "envvars", "envvar", "name", "value");
- QString environstr;
+ TQString environstr;
DomUtil::PairList::ConstIterator it;
for (it = envvars.begin(); it != envvars.end(); ++it) {
environstr += (*it).first;
@@ -954,11 +954,11 @@ QString AutoProjectPart::configureCommand() const
}
cmdline.prepend(environstr);
- QString builddir = buildDirectory();
- QString dircmd;
+ TQString builddir = buildDirectory();
+ TQString dircmd;
// if the build directory doesn't exist, add it's creation to the configureCommand
- if ( !QFile::exists(builddir)) {
+ if ( !TQFile::exists(builddir)) {
dircmd = "mkdir ";
dircmd += KProcess::quote(builddir);
dircmd += " && ";
@@ -974,14 +974,14 @@ QString AutoProjectPart::configureCommand() const
void AutoProjectPart::slotConfigure()
{
- QString cmdline = configureCommand();
+ TQString cmdline = configureCommand();
if (cmdline.isNull())
return;
makeFrontend()->queueCommand(buildDirectory(), cmdline);
}
-QString AutoProjectPart::makefileCvsCommand() const
+TQString AutoProjectPart::makefileCvsCommand() const
{
kdDebug(9020) << "makefileCvsCommand: runDirectory :" << runDirectory() << ":" <<endl;
kdDebug(9020) << "makefileCvsCommand: topsourceDirectory :" << topsourceDirectory() << ":" <<endl;
@@ -989,33 +989,33 @@ QString AutoProjectPart::makefileCvsCommand() const
kdDebug(9020) << "makefileCvsCommand: currentBuildConfig :" << currentBuildConfig() << ":" <<endl;
- QString cmdline = DomUtil::readEntry(*projectDom(), "/kdevautoproject/make/makebin");
+ TQString cmdline = DomUtil::readEntry(*projectDom(), "/kdevautoproject/make/makebin");
if (cmdline.isEmpty())
cmdline = MAKE_COMMAND;
int prio = DomUtil::readIntEntry(*projectDom(), "/kdevautoproject/make/prio");
- QString nice;
+ TQString nice;
kdDebug(9020) << "makefileCvsCommand() nice = " << prio<< endl;
if (prio != 0) {
- nice = QString("nice -n%1 ").arg(prio);
+ nice = TQString("nice -n%1 ").arg(prio);
}
- if (QFile::exists(topsourceDirectory() + "/Makefile.cvs"))
+ if (TQFile::exists(topsourceDirectory() + "/Makefile.cvs"))
cmdline += " -f Makefile.cvs";
- else if (QFile::exists(topsourceDirectory() + "/Makefile.dist"))
+ else if (TQFile::exists(topsourceDirectory() + "/Makefile.dist"))
cmdline += " -f Makefile.dist";
- else if (QFile::exists(topsourceDirectory() + "/autogen.sh"))
+ else if (TQFile::exists(topsourceDirectory() + "/autogen.sh"))
cmdline = "./autogen.sh";
else {
KMessageBox::sorry(m_widget, i18n("There is neither a Makefile.cvs file nor an "
"autogen.sh script in the project directory."));
- return QString::null;
+ return TQString::null;
}
cmdline.prepend(nice);
cmdline.prepend(makeEnvironment());
- QString dircmd = "cd ";
+ TQString dircmd = "cd ";
dircmd += KProcess::quote(topsourceDirectory());
dircmd += " && ";
@@ -1024,7 +1024,7 @@ QString AutoProjectPart::makefileCvsCommand() const
void AutoProjectPart::slotMakefilecvs()
{
- QString cmdline = makefileCvsCommand();
+ TQString cmdline = makefileCvsCommand();
if ( cmdline.isNull() )
return;
@@ -1034,7 +1034,7 @@ void AutoProjectPart::slotMakefilecvs()
void AutoProjectPart::slotInstall()
{
- startMakeCommand(buildDirectory(), QString::fromLatin1("install"));
+ startMakeCommand(buildDirectory(), TQString::fromLatin1("install"));
}
@@ -1045,25 +1045,25 @@ void AutoProjectPart::slotInstallWithKdesu()
slotBuild();
// After that issue "make install" with the root user
- startMakeCommand(buildDirectory(), QString::fromLatin1("install"), true);
+ startMakeCommand(buildDirectory(), TQString::fromLatin1("install"), true);
}
void AutoProjectPart::slotClean()
{
- startMakeCommand(buildDirectory(), QString::fromLatin1("clean"));
+ startMakeCommand(buildDirectory(), TQString::fromLatin1("clean"));
}
void AutoProjectPart::slotDistClean()
{
- startMakeCommand(buildDirectory(), QString::fromLatin1("distclean"));
+ startMakeCommand(buildDirectory(), TQString::fromLatin1("distclean"));
}
void AutoProjectPart::slotMakeMessages()
{
- startMakeCommand(buildDirectory(), QString::fromLatin1("package-messages"));
+ startMakeCommand(buildDirectory(), TQString::fromLatin1("package-messages"));
}
@@ -1076,7 +1076,7 @@ void AutoProjectPart::slotMakeMessages()
void AutoProjectPart::slotExecute()
{
partController()->saveAllFiles();
- QDomDocument &dom = *projectDom();
+ TQDomDocument &dom = *projectDom();
m_runProg=m_runProg.isEmpty()?mainProgram():m_runProg;
@@ -1103,7 +1103,7 @@ void AutoProjectPart::slotExecute()
if( DomUtil::readBoolEntry(dom, "/kdevautoproject/run/autokdesu", false) ){
//slotInstallWithKdesu assumes that it hasn't just been build...
kdDebug(9020) << "slotExecute: before startMakeCommand" << endl;
- _auto ? slotInstallWithKdesu() : startMakeCommand(buildDirectory(), QString::fromLatin1("install"), true);
+ _auto ? slotInstallWithKdesu() : startMakeCommand(buildDirectory(), TQString::fromLatin1("install"), true);
}
else{
kdDebug(9020) << "slotExecute: before slotInstall" << endl;
@@ -1120,7 +1120,7 @@ void AutoProjectPart::slotExecute()
if (appFrontend()->isRunning()) {
if (KMessageBox::questionYesNo(m_widget, i18n("Your application is currently running. Do you want to restart it?"), i18n("Application Already Running"), i18n("&Restart Application"), i18n("Do &Nothing")) == KMessageBox::No)
return;
- connect(appFrontend(), SIGNAL(processExited()), SLOT(slotExecute2()));
+ connect(appFrontend(), TQT_SIGNAL(processExited()), TQT_SLOT(slotExecute2()));
appFrontend()->stopApplication();
return;
}
@@ -1128,30 +1128,30 @@ void AutoProjectPart::slotExecute()
slotExecute2();
}
-void AutoProjectPart::executeTarget(const QDir& dir, const TargetItem* titem)
+void AutoProjectPart::executeTarget(const TQDir& dir, const TargetItem* titem)
{
m_executeAfterBuild=true;
partController()->saveAllFiles();
bool is_dirty = false;
- QDateTime t = QFileInfo(dir , titem->name ).lastModified();
- QPtrListIterator<FileItem> it( titem->sources );
+ TQDateTime t = TQFileInfo(dir , titem->name ).lastModified();
+ TQPtrListIterator<FileItem> it( titem->sources );
for( ; it.current() ; ++it )
{
- if( t < QFileInfo(dir , (*it)->name).lastModified())
+ if( t < TQFileInfo(dir , (*it)->name).lastModified())
is_dirty = true;
}
if( DomUtil::readBoolEntry(*projectDom(), "/kdevautoproject/run/autocompile", true) && is_dirty )
{
- connect( makeFrontend(), SIGNAL(commandFinished(const QString&)), this, SLOT(slotExecuteTargetAfterBuild(const QString&)) );
- connect( makeFrontend(), SIGNAL(commandFailed(const QString&)), this, SLOT(slotNotExecuteTargetAfterBuildFailed(const QString&)) );
+ connect( makeFrontend(), TQT_SIGNAL(commandFinished(const TQString&)), this, TQT_SLOT(slotExecuteTargetAfterBuild(const TQString&)) );
+ connect( makeFrontend(), TQT_SIGNAL(commandFailed(const TQString&)), this, TQT_SLOT(slotNotExecuteTargetAfterBuildFailed(const TQString&)) );
m_runProg=titem->name;
m_executeTargetAfterBuild.first = dir;
m_executeTargetAfterBuild.second = const_cast<TargetItem*>(titem);
- QString relpath = "/" + URLUtil::getRelativePath( topsourceDirectory(), projectDirectory() ) + "/" + m_widget->selectedSubproject()->subdir;
+ TQString relpath = "/" + URLUtil::getRelativePath( topsourceDirectory(), projectDirectory() ) + "/" + m_widget->selectedSubproject()->subdir;
kdDebug(9020) << "executeTarget: before buildTarget " << relpath << endl;
buildTarget(relpath, const_cast<TargetItem*>(titem));
return;
@@ -1160,7 +1160,7 @@ void AutoProjectPart::executeTarget(const QDir& dir, const TargetItem* titem)
bool inTerminal = DomUtil::readBoolEntry(*projectDom(), "/kdevautoproject/run/terminal");
- QString program = environString();
+ TQString program = environString();
if ( !titem ) {
KMessageBox::error( m_widget, i18n("There is no active target.\n"
@@ -1177,7 +1177,7 @@ void AutoProjectPart::executeTarget(const QDir& dir, const TargetItem* titem)
}else
program += buildDirectory() + "/" + URLUtil::getRelativePath( topsourceDirectory(), projectDirectory() ) + "/" + m_widget->selectedSubproject()->relativePath()+ "/" + titem->name;
- QString args = DomUtil::readEntry(*projectDom(), "/kdevautoproject/run/runarguments/" + titem->name);
+ TQString args = DomUtil::readEntry(*projectDom(), "/kdevautoproject/run/runarguments/" + titem->name);
program += " " + args;
kdDebug(9020) << "executeTarget:cmd=" << dir.path() << " " << program << endl;
@@ -1186,27 +1186,27 @@ void AutoProjectPart::executeTarget(const QDir& dir, const TargetItem* titem)
}
-void AutoProjectPart::slotExecuteTargetAfterBuild(const QString& command)
+void AutoProjectPart::slotExecuteTargetAfterBuild(const TQString& command)
{
kdDebug(9020) << "slotExecuteTargetAfterBuild " << command << endl;
if ( m_executeAfterBuild && constructMakeCommandLine(m_executeTargetAfterBuild.first.path(), m_executeTargetAfterBuild.second->name) == command )
{
- disconnect( makeFrontend(), SIGNAL(commandFinished(const QString&)), this, SLOT(slotExecuteAfterTargetBuild()) );
- disconnect( makeFrontend(), SIGNAL(commandFailed(const QString&)), this, SLOT(slotExecuteAfterTargetBuildFailed()) );
+ disconnect( makeFrontend(), TQT_SIGNAL(commandFinished(const TQString&)), this, TQT_SLOT(slotExecuteAfterTargetBuild()) );
+ disconnect( makeFrontend(), TQT_SIGNAL(commandFailed(const TQString&)), this, TQT_SLOT(slotExecuteAfterTargetBuildFailed()) );
kdDebug(9020) << "slotExecuteTargetAfterBuild " << endl;
executeTarget(m_executeTargetAfterBuild.first, m_executeTargetAfterBuild.second);
}
}
-void AutoProjectPart::slotNotExecuteTargetAfterBuildFailed(const QString& command)
+void AutoProjectPart::slotNotExecuteTargetAfterBuildFailed(const TQString& command)
{
kdDebug(9020) << "executeTargetAfterBuildFailed" << endl;
if ( constructMakeCommandLine(m_executeTargetAfterBuild.first.path(), m_executeTargetAfterBuild.second->name) == command )
{
m_executeAfterBuild=false;
- disconnect( makeFrontend(), SIGNAL(commandFinished(const QString&)), this, SLOT(slotExecuteTargetAfterBuild()) );
- disconnect( makeFrontend(), SIGNAL(commandFailed(const QString&)), this, SLOT(slotNotExecuteTargetAfterBuildFailed()) );
+ disconnect( makeFrontend(), TQT_SIGNAL(commandFinished(const TQString&)), this, TQT_SLOT(slotExecuteTargetAfterBuild()) );
+ disconnect( makeFrontend(), TQT_SIGNAL(commandFailed(const TQString&)), this, TQT_SLOT(slotNotExecuteTargetAfterBuildFailed()) );
}
}
@@ -1215,10 +1215,10 @@ void AutoProjectPart::slotNotExecuteTargetAfterBuildFailed(const QString& comman
* in the form of: "ENV_VARIABLE=ENV_VALUE"
* Note that we quote the variable value due to the possibility of
* embedded spaces. */
-QString AutoProjectPart::environString() const
+TQString AutoProjectPart::environString() const
{
DomUtil::PairList envvars = runEnvironmentVars();
- QString environstr;
+ TQString environstr;
DomUtil::PairList::ConstIterator it;
for (it = envvars.begin(); it != envvars.end(); ++it) {
environstr += (*it).first;
@@ -1235,14 +1235,14 @@ QString AutoProjectPart::environString() const
*/
void AutoProjectPart::slotExecute2()
{
- disconnect(appFrontend(), SIGNAL(processExited()), this, SLOT(slotExecute2()));
+ disconnect(appFrontend(), TQT_SIGNAL(processExited()), this, TQT_SLOT(slotExecute2()));
if (m_runProg.isEmpty()){
// Do not execute non executable targets
return;
}
- QString program = environString();
+ TQString program = environString();
// Adds the ./ that is necessary to execute the program in bash shells
if (!m_runProg.startsWith("/")){
program += "./";
@@ -1271,7 +1271,7 @@ void AutoProjectPart::slotAddTranslation()
}
-void AutoProjectPart::slotBuildConfigChanged(const QString &config)
+void AutoProjectPart::slotBuildConfigChanged(const TQString &config)
{
DomUtil::writeEntry(*projectDom(), "/kdevautoproject/general/useconfiguration", config);
kdDebug(9020) << "Changed used configuration to " << config << endl;
@@ -1280,19 +1280,19 @@ void AutoProjectPart::slotBuildConfigChanged(const QString &config)
void AutoProjectPart::slotBuildConfigAboutToShow()
{
- QStringList l = allBuildConfigs();
+ TQStringList l = allBuildConfigs();
buildConfigAction->setItems(l);
buildConfigAction->setCurrentItem(l.findIndex(currentBuildConfig()));
}
-void AutoProjectPart::restorePartialProjectSession ( const QDomElement* el )
+void AutoProjectPart::restorePartialProjectSession ( const TQDomElement* el )
{
m_widget->restoreSession ( el );
}
-void AutoProjectPart::savePartialProjectSession ( QDomElement* el )
+void AutoProjectPart::savePartialProjectSession ( TQDomElement* el )
{
- QDomDocument domDoc = el->ownerDocument();
+ TQDomDocument domDoc = el->ownerDocument();
KMessageBox::information ( 0, "Hallo, Welt!" );
@@ -1309,23 +1309,23 @@ void AutoProjectPart::savePartialProjectSession ( QDomElement* el )
m_widget->saveSession ( el );
}
-void AutoProjectPart::slotCommandFinished( const QString& command )
+void AutoProjectPart::slotCommandFinished( const TQString& command )
{
kdDebug(9020) << k_funcinfo << endl;
if( m_buildCommand != command )
return;
- m_buildCommand = QString::null;
+ m_buildCommand = TQString::null;
m_timestamp.clear();
- QStringList fileList = allFiles();
- QStringList::Iterator it = fileList.begin();
+ TQStringList fileList = allFiles();
+ TQStringList::Iterator it = fileList.begin();
while( it != fileList.end() ){
- QString fileName = *it;
+ TQString fileName = *it;
++it;
- m_timestamp[ fileName ] = QFileInfo( projectDirectory(), fileName ).lastModified();
+ m_timestamp[ fileName ] = TQFileInfo( projectDirectory(), fileName ).lastModified();
}
emit projectCompiled();
@@ -1338,7 +1338,7 @@ void AutoProjectPart::slotCommandFinished( const QString& command )
}
}
-void AutoProjectPart::slotCommandFailed( const QString& /*command*/ )
+void AutoProjectPart::slotCommandFailed( const TQString& /*command*/ )
{
kdDebug(9020) << "slotCommandFinished " << k_funcinfo << endl;
@@ -1350,14 +1350,14 @@ bool AutoProjectPart::isDirty()
{
if (m_lastCompilationFailed) return true;
- QStringList fileList = allFiles();
- QStringList::Iterator it = fileList.begin();
+ TQStringList fileList = allFiles();
+ TQStringList::Iterator it = fileList.begin();
while( it != fileList.end() ){
- QString fileName = *it;
+ TQString fileName = *it;
++it;
- QMap<QString, QDateTime>::Iterator it = m_timestamp.find( fileName );
- QDateTime t = QFileInfo( projectDirectory(), fileName ).lastModified();
+ TQMap<TQString, TQDateTime>::Iterator it = m_timestamp.find( fileName );
+ TQDateTime t = TQFileInfo( projectDirectory(), fileName ).lastModified();
if( it == m_timestamp.end() || *it != t ){
return true;
}
@@ -1381,25 +1381,25 @@ KDevProject::Options AutoProjectPart::options() const
return UsesAutotoolsBuildSystem;
}
-QStringList recursiveATFind( const QString &currDir, const QString &baseDir )
+TQStringList recursiveATFind( const TQString &currDir, const TQString &baseDir )
{
kdDebug(9020) << "Dir " << currDir << endl;
- QStringList fileList;
+ TQStringList fileList;
if( !currDir.contains( "/..") && !currDir.contains("/.") )
{
- QDir dir(currDir);
- QStringList dirList = dir.entryList(QDir::Dirs );
- QStringList::Iterator idx = dirList.begin();
+ TQDir dir(currDir);
+ TQStringList dirList = dir.entryList(TQDir::Dirs );
+ TQStringList::Iterator idx = dirList.begin();
for( ; idx != dirList.end(); ++idx )
{
fileList += recursiveATFind( currDir + "/" + (*idx),baseDir );
}
- QStringList newFiles = dir.entryList("*.am *.in");
+ TQStringList newFiles = dir.entryList("*.am *.in");
idx = newFiles.begin();
for( ; idx != newFiles.end(); ++idx )
{
- QString file = currDir + "/" + (*idx);
+ TQString file = currDir + "/" + (*idx);
fileList.append( file.remove( baseDir ) );
}
}
@@ -1411,21 +1411,21 @@ QStringList recursiveATFind( const QString &currDir, const QString &baseDir )
/*!
\fn AutoProjectPart::distFiles() const
*/
-QStringList AutoProjectPart::distFiles() const
+TQStringList AutoProjectPart::distFiles() const
{
- QStringList sourceList = allFiles();
+ TQStringList sourceList = allFiles();
// Scan current source directory for any .pro files.
- QString projectDir = projectDirectory();
- QDir dir(projectDir);
- QDir admin(projectDir +"/admin");
- QStringList files = dir.entryList( "Makefile.cvs Makefile.am configure* INSTALL README NEWS TODO ChangeLog COPYING AUTHORS stamp-h.in acinclude.m4 config.h.in Makefile.in install-sh config.sub config.guess mkinstalldirs missing ltmain.sh depcomp");
- QStringList adminFiles = admin.entryList(QDir::Files);
- QStringList::Iterator idx = adminFiles.begin();
+ TQString projectDir = projectDirectory();
+ TQDir dir(projectDir);
+ TQDir admin(projectDir +"/admin");
+ TQStringList files = dir.entryList( "Makefile.cvs Makefile.am configure* INSTALL README NEWS TODO ChangeLog COPYING AUTHORS stamp-h.in acinclude.m4 config.h.in Makefile.in install-sh config.sub config.guess mkinstalldirs missing ltmain.sh depcomp");
+ TQStringList adminFiles = admin.entryList(TQDir::Files);
+ TQStringList::Iterator idx = adminFiles.begin();
for( ; idx != adminFiles.end(); ++idx)
{
files.append( "admin/" + (*idx) );
}
- QStringList srcDirs = dir.entryList(QDir::Dirs);
+ TQStringList srcDirs = dir.entryList(TQDir::Dirs);
idx = srcDirs.begin();
for(; idx != srcDirs.end(); ++idx)
{
@@ -1434,17 +1434,17 @@ QStringList AutoProjectPart::distFiles() const
return sourceList + files;
}
-void AutoProjectPart::startSimpleMakeCommand( const QString & dir, const QString & command, bool withKdesu )
+void AutoProjectPart::startSimpleMakeCommand( const TQString & dir, const TQString & command, bool withKdesu )
{
if (partController()->saveAllFiles()==false)
return; //user cancelled
// m_buildCommand = constructMakeCommandLine(dir, target);
- QString cmdline = command;
+ TQString cmdline = command;
cmdline.prepend(makeEnvironment());
- QString dircmd = "cd ";
+ TQString dircmd = "cd ";
dircmd += KProcess::quote(dir);
dircmd += " && ";
@@ -1457,10 +1457,10 @@ void AutoProjectPart::startSimpleMakeCommand( const QString & dir, const QString
makeFrontend()->queueCommand(dir, m_buildCommand);
}
-QString AutoProjectPart::getAutoConfFile(const QString& dir){
+TQString AutoProjectPart::getAutoConfFile(const TQString& dir){
- QFile inFile(dir + "/configure.in");
- QFile acFile(dir + "/configure.ac");
+ TQFile inFile(dir + "/configure.in");
+ TQFile acFile(dir + "/configure.ac");
if ( inFile.exists()){
return inFile.name();
}else if (acFile.exists()){
diff --git a/buildtools/autotools/autoprojectpart.h b/buildtools/autotools/autoprojectpart.h
index d0862cc3..c48e2fe7 100644
--- a/buildtools/autotools/autoprojectpart.h
+++ b/buildtools/autotools/autoprojectpart.h
@@ -15,11 +15,11 @@
#ifndef _AUTOPROJECTPART_H_
#define _AUTOPROJECTPART_H_
-#include <qdict.h>
-#include <qguardedptr.h>
-#include <qmap.h>
-#include <qdatetime.h>
-#include <qdir.h>
+#include <tqdict.h>
+#include <tqguardedptr.h>
+#include <tqmap.h>
+#include <tqdatetime.h>
+#include <tqdir.h>
#include <kdevgenericfactory.h>
#include "kdevbuildtool.h"
@@ -36,58 +36,58 @@ class AutoProjectPart : public KDevBuildTool
Q_OBJECT
public:
- AutoProjectPart( QObject *parent, const char *name, const QStringList &args );
+ AutoProjectPart( TQObject *parent, const char *name, const TQStringList &args );
virtual ~AutoProjectPart();
/**
* Implementation of the KDevProject interface.
*/
- virtual QString projectDirectory() const;
- virtual QString projectName() const;
+ virtual TQString projectDirectory() const;
+ virtual TQString projectName() const;
virtual DomUtil::PairList runEnvironmentVars() const;
- virtual QString runDirectory() const;
- virtual QString mainProgram() const;
- virtual QString debugArguments() const;
- virtual QString runArguments() const;
- virtual QString environString() const;
- virtual QString activeDirectory() const;
- virtual QStringList allFiles() const;
- virtual void addFile( const QString &fileName );
- virtual void addFiles ( const QStringList& fileList );
- virtual void removeFile( const QString &fileName );
- virtual void removeFiles ( const QStringList& fileList );
- virtual QString buildDirectory() const;
+ virtual TQString runDirectory() const;
+ virtual TQString mainProgram() const;
+ virtual TQString debugArguments() const;
+ virtual TQString runArguments() const;
+ virtual TQString environString() const;
+ virtual TQString activeDirectory() const;
+ virtual TQStringList allFiles() const;
+ virtual void addFile( const TQString &fileName );
+ virtual void addFiles ( const TQStringList& fileList );
+ virtual void removeFile( const TQString &fileName );
+ virtual void removeFiles ( const TQStringList& fileList );
+ virtual TQString buildDirectory() const;
virtual Options options() const;
/**
* Implementation of the KDevPlugin interface.
*/
- virtual void restorePartialProjectSession ( const QDomElement* el );
- virtual void savePartialProjectSession ( QDomElement* el );
+ virtual void restorePartialProjectSession ( const TQDomElement* el );
+ virtual void savePartialProjectSession ( TQDomElement* el );
/**
* automake specific methods.
*/
- QStringList allBuildConfigs() const;
- QString currentBuildConfig() const;
- QString topsourceDirectory() const;
- void startMakeCommand( const QString &dir, const QString &target, bool withKdesu = false );
- void startSimpleMakeCommand( const QString &dir, const QString &command, bool withKdesu = false );
- void buildTarget( QString relpath, TargetItem* titem );
- void executeTarget( const QDir& dir, const TargetItem* titem );
+ TQStringList allBuildConfigs() const;
+ TQString currentBuildConfig() const;
+ TQString topsourceDirectory() const;
+ void startMakeCommand( const TQString &dir, const TQString &target, bool withKdesu = false );
+ void startSimpleMakeCommand( const TQString &dir, const TQString &command, bool withKdesu = false );
+ void buildTarget( TQString relpath, TargetItem* titem );
+ void executeTarget( const TQDir& dir, const TargetItem* titem );
void needMakefileCvs();
bool isDirty();
bool isKDE() const;
- QStringList distFiles() const;
- QString getAutoConfFile(const QString& dir);
+ TQStringList distFiles() const;
+ TQString getAutoConfFile(const TQString& dir);
protected:
/**
* Reimplemented from KDevProject. These methods are only
* for use by the application core.
*/
- virtual void openProject( const QString &dirName, const QString &projectName );
+ virtual void openProject( const TQString &dirName, const TQString &projectName );
virtual void closeProject();
private slots:
@@ -105,35 +105,35 @@ private slots:
void slotConfigure();
void slotExecute();
void slotExecute2();
- void slotExecuteTargetAfterBuild( const QString& command );
- void slotNotExecuteTargetAfterBuildFailed( const QString& command );
- void slotBuildConfigChanged( const QString &config );
+ void slotExecuteTargetAfterBuild( const TQString& command );
+ void slotNotExecuteTargetAfterBuildFailed( const TQString& command );
+ void slotBuildConfigChanged( const TQString &config );
void slotBuildConfigAboutToShow();
- void slotCommandFinished( const QString& command );
- void slotCommandFailed( const QString& command );
+ void slotCommandFinished( const TQString& command );
+ void slotCommandFailed( const TQString& command );
//void slotImportExisting();
- void insertConfigWidget( const KDialogBase* dlg, QWidget * page, unsigned int );
+ void insertConfigWidget( const KDialogBase* dlg, TQWidget * page, unsigned int );
private:
- QGuardedPtr<AutoProjectWidget> m_widget;
- QString m_projectName;
- QString m_projectPath;
+ TQGuardedPtr<AutoProjectWidget> m_widget;
+ TQString m_projectName;
+ TQString m_projectPath;
KSelectAction *buildConfigAction;
- QString makeEnvironment() const;
+ TQString makeEnvironment() const;
void setWantautotools();
- QString makefileCvsCommand() const;
- QString configureCommand() const;
+ TQString makefileCvsCommand() const;
+ TQString configureCommand() const;
- QMap<QString, QDateTime> m_timestamp;
+ TQMap<TQString, TQDateTime> m_timestamp;
bool m_executeAfterBuild;
- QString m_buildCommand;
+ TQString m_buildCommand;
bool m_needMakefileCvs;
bool m_lastCompilationFailed;
bool m_isKDE;
- QPair<QDir, TargetItem*> m_executeTargetAfterBuild;
- QString m_runProg;
+ QPair<TQDir, TargetItem*> m_executeTargetAfterBuild;
+ TQString m_runProg;
ConfigWidgetProxy * _configProxy;
@@ -143,8 +143,8 @@ private:
friend class FileItem;
// For make commands queuing
- QString constructMakeCommandLine( const QString &dir, const QString &target ) const;
- bool queueInternalLibDependenciesBuild( TargetItem* titem, QStringList& list );
+ TQString constructMakeCommandLine( const TQString &dir, const TQString &target ) const;
+ bool queueInternalLibDependenciesBuild( TargetItem* titem, TQStringList& list );
};
typedef KDevGenericFactory<AutoProjectPart> AutoProjectFactory;
diff --git a/buildtools/autotools/autoprojectwidget.cpp b/buildtools/autotools/autoprojectwidget.cpp
index c3248504..321aa349 100644
--- a/buildtools/autotools/autoprojectwidget.cpp
+++ b/buildtools/autotools/autoprojectwidget.cpp
@@ -17,20 +17,20 @@
#include "autoprojectwidget.h"
-#include <qcheckbox.h>
-#include <qdom.h>
-#include <qfile.h>
-#include <qheader.h>
-#include <qpainter.h>
-#include <qptrstack.h>
-#include <qregexp.h>
-#include <qsplitter.h>
-#include <qstringlist.h>
-#include <qtextstream.h>
-#include <qtoolbutton.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qtimer.h>
+#include <tqcheckbox.h>
+#include <tqdom.h>
+#include <tqfile.h>
+#include <tqheader.h>
+#include <tqpainter.h>
+#include <tqptrstack.h>
+#include <tqregexp.h>
+#include <tqsplitter.h>
+#include <tqstringlist.h>
+#include <tqtextstream.h>
+#include <tqtoolbutton.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqtimer.h>
#include <kdebug.h>
#include <kfiledialog.h>
@@ -55,7 +55,7 @@
#include "urlutil.h"
#include "makefilehandler.h"
-static QString nicePrimary( const QString &primary )
+static TQString nicePrimary( const TQString &primary )
{
if ( primary == "PROGRAMS" )
return i18n( "Program" );
@@ -72,12 +72,12 @@ static QString nicePrimary( const QString &primary )
else if ( primary == "JAVA" )
return i18n( "Java" );
else
- return QString::null;
+ return TQString::null;
}
AutoProjectWidget::AutoProjectWidget( AutoProjectPart *part, bool kde )
- : QVBox( 0, "auto project widget" )
+ : TQVBox( 0, "auto project widget" )
{
m_part = part;
m_kdeMode = kde;
@@ -87,7 +87,7 @@ AutoProjectWidget::AutoProjectWidget( AutoProjectPart *part, bool kde )
m_choosenTarget = 0;
m_makefileHandler = new MakefileHandler();
- QSplitter *splitter = new QSplitter(Vertical, this);
+ TQSplitter *splitter = new TQSplitter(Vertical, this);
initOverview ( splitter );
initDetailview ( splitter );
@@ -101,20 +101,20 @@ AutoProjectWidget::~AutoProjectWidget()
delete m_makefileHandler;
}
-void AutoProjectWidget::initOverview ( QWidget* parent )
+void AutoProjectWidget::initOverview ( TQWidget* parent )
{
m_subprojectView = new AutoSubprojectView( this, m_part, parent, "project overview widget" );
}
-void AutoProjectWidget::initDetailview ( QWidget* parent )
+void AutoProjectWidget::initDetailview ( TQWidget* parent )
{
m_detailView = new AutoDetailsView( this, m_part, parent, "project details widget" );
}
void AutoProjectWidget::initActions()
{
- connect( m_subprojectView, SIGNAL( selectionChanged( QListViewItem* ) ),
- this, SLOT( slotOverviewSelectionChanged( QListViewItem* ) ) );
+ connect( m_subprojectView, TQT_SIGNAL( selectionChanged( TQListViewItem* ) ),
+ this, TQT_SLOT( slotOverviewSelectionChanged( TQListViewItem* ) ) );
}
AutoSubprojectView* AutoProjectWidget::getSubprojectView ()
@@ -127,7 +127,7 @@ AutoDetailsView* AutoProjectWidget::getDetailsView ()
return m_detailView;
}
-void AutoProjectWidget::openProject( const QString &dirName )
+void AutoProjectWidget::openProject( const TQString &dirName )
{
m_subprojectView->loadMakefileams ( dirName );
MakefileHandler mfh;
@@ -153,29 +153,29 @@ TargetItem* AutoProjectWidget::activeTarget ()
return m_activeTarget;
}
-QStringList AutoProjectWidget::allSubprojects()
+TQStringList AutoProjectWidget::allSubprojects()
{
int prefixlen = m_part->projectDirectory().length() + 1;
- QStringList res;
+ TQStringList res;
- QListViewItemIterator it( m_subprojectView->listView() );
+ TQListViewItemIterator it( m_subprojectView->listView() );
for ( ; it.current(); ++it )
{
// Skip root subproject
// if ( it.current() == m_subprojectView->firstChild() )
// continue;
- QString path = static_cast<SubprojectItem*>( it.current() ) ->path;
+ TQString path = static_cast<SubprojectItem*>( it.current() ) ->path;
res.append( path.mid( prefixlen ) );
}
return res;
}
-QPtrList <SubprojectItem> AutoProjectWidget::allSubprojectItems()
+TQPtrList <SubprojectItem> AutoProjectWidget::allSubprojectItems()
{
- QPtrList <SubprojectItem> res;
+ TQPtrList <SubprojectItem> res;
- QListViewItemIterator it ( m_subprojectView->listView() );
+ TQListViewItemIterator it ( m_subprojectView->listView() );
for ( ; it.current(); ++it )
{
@@ -190,16 +190,16 @@ QPtrList <SubprojectItem> AutoProjectWidget::allSubprojectItems()
return res;
}
-SubprojectItem* AutoProjectWidget::subprojectItemForPath(const QString & path, bool pathIsAbsolute)
+SubprojectItem* AutoProjectWidget::subprojectItemForPath(const TQString & path, bool pathIsAbsolute)
{
kdDebug(9020) << "Looking for path " << path << endl;
int prefixLen = m_part->projectDirectory().length() + 1;
- QListViewItemIterator it( m_subprojectView->listView() );
+ TQListViewItemIterator it( m_subprojectView->listView() );
for(; it.current(); ++it)
{
SubprojectItem* spitem = static_cast<SubprojectItem*>(it.current() );
- QString relpath = (spitem->path).mid(prefixLen);
+ TQString relpath = (spitem->path).mid(prefixLen);
kdDebug(9020) << " ... checking -" << spitem->path << "-" << endl;
kdDebug(9020) << " ... (tailored: -" << relpath << "- against -" << (pathIsAbsolute ? path.mid(prefixLen) : path) << "- )" << endl;
if ( relpath == (pathIsAbsolute ? path.mid(prefixLen) : path))
@@ -212,15 +212,15 @@ SubprojectItem* AutoProjectWidget::subprojectItemForPath(const QString & path, b
return NULL;
}
-QString AutoProjectWidget::pathForTarget(const TargetItem *titem) const
+TQString AutoProjectWidget::pathForTarget(const TargetItem *titem) const
{
if (!titem)
- return QString::null;
+ return TQString::null;
kdDebug(9020) << "Looking for target " << titem->name << endl;
int prefixLen = m_part->projectDirectory().length() + 1;
- QListViewItemIterator it( m_subprojectView->listView() );
+ TQListViewItemIterator it( m_subprojectView->listView() );
for(; it.current(); ++it)
{
SubprojectItem* spitem = static_cast<SubprojectItem*>(it.current() );
@@ -228,31 +228,31 @@ QString AutoProjectWidget::pathForTarget(const TargetItem *titem) const
if (spitem->targets.containsRef(titem))
{
kdDebug(9020) << "Found it!" << endl;
- QString relpath = (spitem->path).mid(prefixLen);
+ TQString relpath = (spitem->path).mid(prefixLen);
return relpath;
}
}
kdDebug(9020) << "Not found" << endl;
- return QString::null;
+ return TQString::null;
}
-QStringList AutoProjectWidget::allLibraries()
+TQStringList AutoProjectWidget::allLibraries()
{
int prefixlen = m_part->projectDirectory().length() + 1;
- QStringList res;
+ TQStringList res;
- QListViewItemIterator it( m_subprojectView->listView() );
+ TQListViewItemIterator it( m_subprojectView->listView() );
for ( ; it.current(); ++it )
{
SubprojectItem *spitem = static_cast<SubprojectItem*>( it.current() );
- QString path = spitem->path;
- QPtrListIterator<TargetItem> tit( spitem->targets );
+ TQString path = spitem->path;
+ TQPtrListIterator<TargetItem> tit( spitem->targets );
for ( ; tit.current(); ++tit )
{
- QString primary = ( *tit ) ->primary;
+ TQString primary = ( *tit ) ->primary;
if ( primary == "LIBRARIES" || primary == "LTLIBRARIES" )
{
- QString fullname = path + "/" + ( *tit ) ->name;
+ TQString fullname = path + "/" + ( *tit ) ->name;
res.append( fullname.mid( prefixlen ) );
}
}
@@ -262,12 +262,12 @@ QStringList AutoProjectWidget::allLibraries()
}
-QStringList AutoProjectWidget::allFiles()
+TQStringList AutoProjectWidget::allFiles()
{
- QPtrStack<QListViewItem> s;
- QMap<QString, bool> dict;
+ TQPtrStack<TQListViewItem> s;
+ TQMap<TQString, bool> dict;
- for ( QListViewItem * item = m_subprojectView->listView()->firstChild(); item;
+ for ( TQListViewItem * item = m_subprojectView->listView()->firstChild(); item;
item = item->nextSibling() ? item->nextSibling() : s.pop() )
{
if ( item->firstChild() )
@@ -275,18 +275,18 @@ QStringList AutoProjectWidget::allFiles()
SubprojectItem *spitem = static_cast<SubprojectItem*>( item );
// use URLUtil so paths in root project dir are worked out correctly
- QString relPath = URLUtil::relativePath(m_part->projectDirectory(), spitem->path, URLUtil::SLASH_SUFFIX);
- QPtrListIterator<TargetItem> tit( spitem->targets );
+ TQString relPath = URLUtil::relativePath(m_part->projectDirectory(), spitem->path, URLUtil::SLASH_SUFFIX);
+ TQPtrListIterator<TargetItem> tit( spitem->targets );
for ( ; tit.current(); ++tit )
{
- QPtrListIterator<FileItem> fit( tit.current() ->sources );
+ TQPtrListIterator<FileItem> fit( tit.current() ->sources );
for ( ; fit.current(); ++fit )
{
if((*fit)->is_subst)
continue;
- QFileInfo fileInfo( (*fit)->name );
+ TQFileInfo fileInfo( (*fit)->name );
if( fileInfo.extension() == "ui" )
{
dict.insert( relPath + fileInfo.baseName() + ".h", true );
@@ -300,8 +300,8 @@ QStringList AutoProjectWidget::allFiles()
// Files may be in multiple targets, so we have to remove
// duplicates
- QStringList res;
- QMap<QString, bool>::Iterator it = dict.begin();
+ TQStringList res;
+ TQMap<TQString, bool>::Iterator it = dict.begin();
while( it != dict.end() ){
res << it.key();
++it;
@@ -311,36 +311,36 @@ QStringList AutoProjectWidget::allFiles()
}
-QString AutoProjectWidget::subprojectDirectory()
+TQString AutoProjectWidget::subprojectDirectory()
{
if ( !selectedSubproject() )
- return QString::null;
+ return TQString::null;
return selectedSubproject()->path;
}
-void AutoProjectWidget::setActiveTarget( const QString &targetPath )
+void AutoProjectWidget::setActiveTarget( const TQString &targetPath )
{
int prefixlen = m_part->projectDirectory().length() + 1;
- QString olddir = m_part->activeDirectory();
+ TQString olddir = m_part->activeDirectory();
m_activeSubproject = 0;
m_activeTarget = 0;
- QListViewItemIterator it( m_subprojectView->listView() );
+ TQListViewItemIterator it( m_subprojectView->listView() );
for ( ; it.current(); ++it )
{
SubprojectItem *spitem = static_cast<SubprojectItem*>( it.current() );
- QString path = spitem->path;
- QPtrListIterator<TargetItem> tit( spitem->targets );
+ TQString path = spitem->path;
+ TQPtrListIterator<TargetItem> tit( spitem->targets );
for ( ; tit.current(); ++tit )
{
- QString primary = ( *tit ) ->primary;
+ TQString primary = ( *tit ) ->primary;
if ( primary != "PROGRAMS" && primary != "LIBRARIES"
&& primary != "LTLIBRARIES" && primary != "JAVA" )
continue;
- QString currentTargetPath = ( path + "/" + ( *tit ) ->name ).mid( prefixlen );
+ TQString currentTargetPath = ( path + "/" + ( *tit ) ->name ).mid( prefixlen );
bool hasTarget = ( targetPath == currentTargetPath );
( *tit )->setBold( hasTarget );
@@ -378,7 +378,7 @@ void AutoProjectWidget::setActiveTarget( const QString &targetPath )
}
-QString AutoProjectWidget::activeDirectory()
+TQString AutoProjectWidget::activeDirectory()
{
if ( m_activeSubproject )
return m_activeSubproject->path.mid( m_part->projectDirectory().length() + 1 );
@@ -387,21 +387,21 @@ QString AutoProjectWidget::activeDirectory()
/* if ( selectedSubproject() )
return selectedSubproject()->path;
else*/
- return QString::null;
+ return TQString::null;
}
}
-void AutoProjectWidget::addFiles( const QStringList &list )
+void AutoProjectWidget::addFiles( const TQStringList &list )
{
- QDomDocument &dom = *m_part->projectDom();
- QStringList fileList = list;
+ TQDomDocument &dom = *m_part->projectDom();
+ TQStringList fileList = list;
if ( DomUtil::readBoolEntry( dom, "/kdevautoproject/general/useactivetarget" ) )
{
- QStringList::iterator it;
+ TQStringList::iterator it;
- QString fileName;
+ TQString fileName;
for ( it = fileList.begin(); it != fileList.end(); ++it )
{
@@ -422,7 +422,7 @@ void AutoProjectWidget::addFiles( const QStringList &list )
{
TargetItem *titem = dynamic_cast <TargetItem*> ( m_detailView->listView()->selectedItem() );
SubprojectItem * subitem = dynamic_cast <SubprojectItem*> ( m_subprojectView->listView()->selectedItem() );
- QString relativeDir = URLUtil::directory(*it);
+ TQString relativeDir = URLUtil::directory(*it);
SubprojectItem* spitem = subprojectItemForPath(relativeDir);
if( titem && subitem && subitem == spitem )
@@ -437,11 +437,11 @@ void AutoProjectWidget::addFiles( const QStringList &list )
addToTarget(fileName, m_activeSubproject, m_activeTarget);
}
-// QString canontargetname = AutoProjectTool::canonicalize( m_activeTarget->name );
-// QString varname = canontargetname + "_SOURCES";
+// TQString canontargetname = AutoProjectTool::canonicalize( m_activeTarget->name );
+// TQString varname = canontargetname + "_SOURCES";
// m_activeSubproject->variables[ varname ] += ( " " + fileName );
//
-// QMap<QString, QString> replaceMap;
+// TQMap<TQString, TQString> replaceMap;
// replaceMap.insert( varname, m_activeSubproject->variables[ varname ] );
//
// AutoProjectTool::addToMakefileam( m_activeSubproject->path + "/Makefile.am", replaceMap );
@@ -451,18 +451,18 @@ void AutoProjectWidget::addFiles( const QStringList &list )
}
else
{
- QStringList doManually, doneAutomatically;
+ TQStringList doManually, doneAutomatically;
// First check wether the detail view has a selected target and the subproject
// view selected subproject matches the path of the new file. Then
// we can assume the user used the right-click option on the target
- for( QStringList::iterator it = fileList.begin(); it != fileList.end(); ++it)
+ for( TQStringList::iterator it = fileList.begin(); it != fileList.end(); ++it)
{
bool autoAdded = false;
if( m_detailView->listView()->selectedItem() && m_subprojectView->listView()->selectedItem() )
{
TargetItem *titem = dynamic_cast <TargetItem*> ( m_detailView->listView()->selectedItem() );
SubprojectItem * subitem = dynamic_cast <SubprojectItem*> ( m_subprojectView->listView()->selectedItem() );
- QString relativeDir = URLUtil::directory(*it);
+ TQString relativeDir = URLUtil::directory(*it);
SubprojectItem* spitem = subprojectItemForPath(relativeDir);
if( titem && subitem && subitem == spitem )
{
@@ -477,16 +477,16 @@ void AutoProjectWidget::addFiles( const QStringList &list )
// See if we can figure out the target for each file without asking the user
// I think it's a valid assumption that if a directory contains only one target
// the file can be added to that target (Julian Rockey linux at jrockey.com)
- QStringList temp = doManually;
+ TQStringList temp = doManually;
doManually.clear();
- for(QStringList::iterator it = temp.begin();it!=temp.end();++it)
+ for(TQStringList::iterator it = temp.begin();it!=temp.end();++it)
{
bool autoAdded = false;
- QString relativeDir = URLUtil::directory(*it);
+ TQString relativeDir = URLUtil::directory(*it);
SubprojectItem* spitem = subprojectItemForPath(relativeDir);
if (spitem)
{
- QPtrList<TargetItem> titemList = spitem->targets;
+ TQPtrList<TargetItem> titemList = spitem->targets;
if (titemList.count()==1) {
addToTarget( URLUtil::filename(*it), spitem, titemList.first() );
doneAutomatically.append(*it);
@@ -511,9 +511,9 @@ void AutoProjectWidget::addFiles( const QStringList &list )
}
}
-void AutoProjectWidget::addToTarget(const QString & fileName, SubprojectItem* spitem, TargetItem* titem)
+void AutoProjectWidget::addToTarget(const TQString & fileName, SubprojectItem* spitem, TargetItem* titem)
{
- QString varname;
+ TQString varname;
/// \FIXME a quick hack to prevent adding header files to _SOURCES and display them in noinst_HEADERS
if (AutoProjectPrivate::isHeader(fileName) &&
( titem->primary == "PROGRAMS" || titem->primary == "LIBRARIES" || titem->primary == "LTLIBRARIES" ) )
@@ -531,12 +531,12 @@ void AutoProjectWidget::addToTarget(const QString & fileName, SubprojectItem* sp
titem->sources.append( fitem );
titem->insertItem( fitem );
- QString canontargetname = AutoProjectTool::canonicalize( titem->name );
+ TQString canontargetname = AutoProjectTool::canonicalize( titem->name );
varname = canontargetname + "_SOURCES";
}
spitem->variables[ varname ] += ( " " + fileName );
- QMap<QString, QString> replaceMap;
+ TQMap<TQString, TQString> replaceMap;
replaceMap.insert( varname, spitem->variables[ varname ] );
AutoProjectTool::addToMakefileam( spitem->path + "/Makefile.am", replaceMap );
@@ -544,12 +544,12 @@ void AutoProjectWidget::addToTarget(const QString & fileName, SubprojectItem* sp
m_detailView->slotSelectionChanged( spitem );
}
-void AutoProjectWidget::removeFiles( const QStringList &list )
+void AutoProjectWidget::removeFiles( const TQStringList &list )
{
Q_UNUSED( list )
}
-void AutoProjectWidget::slotOverviewSelectionChanged( QListViewItem *item )
+void AutoProjectWidget::slotOverviewSelectionChanged( TQListViewItem *item )
{
if ( !item )
return;
@@ -560,10 +560,10 @@ void AutoProjectWidget::slotOverviewSelectionChanged( QListViewItem *item )
// Remove all TargetItems and all of their children from the view
kdDebug ( 9020 ) << "m_shownSubproject (before takeItem()): " << m_shownSubproject->subdir << endl;
- QListViewItem* i = m_detailView->listView()->firstChild();
+ TQListViewItem* i = m_detailView->listView()->firstChild();
while( i )
{
- QListViewItem* o = i;
+ TQListViewItem* o = i;
i = i->nextSibling();
m_detailView->listView()->takeItem(o);
}
@@ -576,15 +576,15 @@ void AutoProjectWidget::slotOverviewSelectionChanged( QListViewItem *item )
kdDebug ( 9020 ) << "m_shownSubproject (after takeItem()): " << selectedSubproject()->subdir << endl;
// Insert all TargetItems and all of their children into the view
- QPtrListIterator<TargetItem> it2( selectedSubproject()->targets );
+ TQPtrListIterator<TargetItem> it2( selectedSubproject()->targets );
for ( ; it2.current(); ++it2 )
{
kdDebug ( 9020 ) << "insertItem in detail " << ( *it2 )->name << endl;
m_detailView->listView()->insertItem( *it2 );
- QPtrListIterator<FileItem> it3( ( *it2 ) ->sources );
+ TQPtrListIterator<FileItem> it3( ( *it2 ) ->sources );
for ( ; it3.current(); ++it3 )
( *it2 )->insertItem( *it3 );
- QString primary = ( *it2 ) ->primary;
+ TQString primary = ( *it2 ) ->primary;
if ( primary == "PROGRAMS" || primary == "LIBRARIES" ||
primary == "LTLIBRARIES" || primary == "JAVA" )
( *it2 ) ->setOpen( true );
@@ -620,15 +620,15 @@ SubprojectItem* AutoProjectWidget::selectedSubproject()
return static_cast <SubprojectItem*> ( pvitem );
}
-TargetItem *AutoProjectWidget::createTargetItem( const QString &name,
- const QString &prefix, const QString &primary,
+TargetItem *AutoProjectWidget::createTargetItem( const TQString &name,
+ const TQString &prefix, const TQString &primary,
bool take )
{
bool docgroup = ( primary == "KDEDOCS" );
bool icongroup = ( primary == "KDEICON" );
bool group = !(docgroup || icongroup);
- QString text;
+ TQString text;
if ( docgroup )
text = i18n( "Documentation data" );
else if ( icongroup )
@@ -636,7 +636,7 @@ TargetItem *AutoProjectWidget::createTargetItem( const QString &name,
else
text = i18n( "%1 (%2 in %3)" ).arg( name ).arg( nicePrimary( primary ) ).arg( prefix );
- // Workaround because of QListView not being able to create
+ // Workaround because of TQListView not being able to create
// items without actually inserting them
TargetItem *titem = new TargetItem( m_detailView->listView(), group, text );
titem->name = name;
@@ -649,7 +649,7 @@ TargetItem *AutoProjectWidget::createTargetItem( const QString &name,
}
-FileItem *AutoProjectWidget::createFileItem( const QString &name, SubprojectItem *subproject )
+FileItem *AutoProjectWidget::createFileItem( const TQString &name, SubprojectItem *subproject )
{
bool is_subst;
if(name.find("$(") == 0 || name.find("${") == 0)
@@ -666,45 +666,45 @@ FileItem *AutoProjectWidget::createFileItem( const QString &name, SubprojectItem
}
-void AutoProjectWidget::emitAddedFiles( const QStringList &fileList )
+void AutoProjectWidget::emitAddedFiles( const TQStringList &fileList )
{
emit m_part->addedFilesToProject( fileList );
}
-void AutoProjectWidget::emitAddedFile( const QString &name )
+void AutoProjectWidget::emitAddedFile( const TQString &name )
{
- QStringList fileList;
+ TQStringList fileList;
fileList.append ( name );
emit m_part->addedFilesToProject( fileList );
}
-void AutoProjectWidget::emitRemovedFiles( const QStringList &fileList )
+void AutoProjectWidget::emitRemovedFiles( const TQStringList &fileList )
{
emit m_part->removedFilesFromProject( fileList );
}
-void AutoProjectWidget::emitRemovedFile( const QString &name )
+void AutoProjectWidget::emitRemovedFile( const TQString &name )
{
- QStringList fileList;
+ TQStringList fileList;
fileList.append ( name );
emit m_part->removedFilesFromProject( fileList );
}
-void AutoProjectWidget::restoreSession ( const QDomElement* el )
+void AutoProjectWidget::restoreSession ( const TQDomElement* el )
{
Q_UNUSED( el );
}
-void AutoProjectWidget::saveSession ( QDomElement* el )
+void AutoProjectWidget::saveSession ( TQDomElement* el )
{
if ( m_activeTarget && m_activeSubproject )
{
- QDomDocument domDoc = el->ownerDocument();
+ TQDomDocument domDoc = el->ownerDocument();
- QString activeTargetPath = m_activeSubproject->path.mid ( m_part->project()->projectDirectory().length() + 1 );
+ TQString activeTargetPath = m_activeSubproject->path.mid ( m_part->project()->projectDirectory().length() + 1 );
activeTargetPath = activeTargetPath + "/" + m_activeTarget->name;
- QDomElement generalEl = domDoc.createElement("general");
+ TQDomElement generalEl = domDoc.createElement("general");
kdDebug ( 9020 ) << k_funcinfo << "Saving session data of AutoProjectWidget: " << activeTargetPath << endl;
@@ -715,12 +715,12 @@ void AutoProjectWidget::saveSession ( QDomElement* el )
void AutoProjectWidget::setActiveSubproject( SubprojectItem * spitem )
{
- QString olddir = m_part->activeDirectory();
+ TQString olddir = m_part->activeDirectory();
m_activeSubproject = spitem;
emit m_part->activeDirectoryChanged( olddir, m_part->activeDirectory() );
}
-void AutoProjectWidget::focusInEvent( QFocusEvent */*e*/ )
+void AutoProjectWidget::focusInEvent( TQFocusEvent */*e*/ )
{
switch (m_lastFocusedView)
{
diff --git a/buildtools/autotools/autoprojectwidget.h b/buildtools/autotools/autoprojectwidget.h
index 0f4a8b13..6c578506 100644
--- a/buildtools/autotools/autoprojectwidget.h
+++ b/buildtools/autotools/autoprojectwidget.h
@@ -17,13 +17,13 @@
#ifndef _AUTOPROJECTWIDGET_