summaryrefslogtreecommitdiffstats
path: root/parts
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /parts
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts')
-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
342 files changed, 6850 insertions, 6850 deletions
diff --git a/parts/abbrev/abbrevconfigwidget.cpp b/parts/abbrev/abbrevconfigwidget.cpp
index d7729249..6e174603 100644
--- a/parts/abbrev/abbrevconfigwidget.cpp
+++ b/parts/abbrev/abbrevconfigwidget.cpp
@@ -18,25 +18,25 @@
#include <kconfig.h>
#include <kiconloader.h>
-#include <qlistview.h>
-#include <qmultilineedit.h>
-#include <qcheckbox.h>
+#include <tqlistview.h>
+#include <tqmultilineedit.h>
+#include <tqcheckbox.h>
#include "addtemplatedlg.h"
#include "abbrevpart.h"
-AbbrevConfigWidget::AbbrevConfigWidget(AbbrevPart *part, QWidget *parent, const char *name)
+AbbrevConfigWidget::AbbrevConfigWidget(AbbrevPart *part, TQWidget *parent, const char *name)
: AbbrevConfigWidgetBase(parent, name)
{
m_part = part;
qWarning("creating abbrevconfigwidget for %d abbrevs", part->templates().allTemplates().count());
- QPtrList<CodeTemplate> templates = part->templates().allTemplates();
+ TQPtrList<CodeTemplate> templates = part->templates().allTemplates();
CodeTemplate *templ;
for (templ = templates.first(); templ; templ = templates.next())
{
qWarning("creating item for code template ");
- QListViewItem *it = new QListViewItem( listTemplates,
+ TQListViewItem *it = new TQListViewItem( listTemplates,
templ->name,
templ->description,
templ->suffixes,
@@ -56,15 +56,15 @@ AbbrevConfigWidget::~AbbrevConfigWidget()
void AbbrevConfigWidget::addTemplate()
{
- QStringList suffixesList = m_part->templates().suffixes();
+ TQStringList suffixesList = m_part->templates().suffixes();
AddTemplateDialog dlg( suffixesList, this );
if( dlg.exec() ){
- QString templ = dlg.templ();
- QString description = dlg.description();
- QString suffixes = dlg.suffixes();
+ TQString templ = dlg.templ();
+ TQString description = dlg.description();
+ TQString suffixes = dlg.suffixes();
if( !(templ.isEmpty() || description.isEmpty()) || suffixes.isEmpty()) {
- QListViewItem* item = new QListViewItem( listTemplates, templ, description, suffixes );
+ TQListViewItem* item = new TQListViewItem( listTemplates, templ, description, suffixes );
listTemplates->setSelected( item, true );
editCode->setFocus();
}
@@ -82,7 +82,7 @@ void AbbrevConfigWidget::removeTemplate()
void AbbrevConfigWidget::selectionChanged()
{
- QListViewItem* item = listTemplates->selectedItem();
+ TQListViewItem* item = listTemplates->selectedItem();
if( item ){
editCode->setText( item->text(3) );
}
@@ -91,7 +91,7 @@ void AbbrevConfigWidget::selectionChanged()
void AbbrevConfigWidget::codeChanged()
{
- QListViewItem* item = listTemplates->selectedItem();
+ TQListViewItem* item = listTemplates->selectedItem();
if( item ){
item->setText( 3, editCode->text() );
if (item->text(3) == item->text(4))
@@ -106,7 +106,7 @@ void AbbrevConfigWidget::accept()
{
m_part->clearTemplates();
- QListViewItem* item = listTemplates->firstChild();
+ TQListViewItem* item = listTemplates->firstChild();
while( item ){
m_part->addTemplate( item->text(0),
item->text(1),
diff --git a/parts/abbrev/abbrevconfigwidget.h b/parts/abbrev/abbrevconfigwidget.h
index b8cc1983..818aa3ba 100644
--- a/parts/abbrev/abbrevconfigwidget.h
+++ b/parts/abbrev/abbrevconfigwidget.h
@@ -25,7 +25,7 @@ class AbbrevConfigWidget : public AbbrevConfigWidgetBase
Q_OBJECT
public:
- AbbrevConfigWidget(AbbrevPart *part, QWidget *parent=0, const char *name=0);
+ AbbrevConfigWidget(AbbrevPart *part, TQWidget *parent=0, const char *name=0);
~AbbrevConfigWidget();
public slots:
diff --git a/parts/abbrev/abbrevpart.cpp b/parts/abbrev/abbrevpart.cpp
index 181606f4..a86d98f8 100644
--- a/parts/abbrev/abbrevpart.cpp
+++ b/parts/abbrev/abbrevpart.cpp
@@ -15,10 +15,10 @@
#include "abbrevpart.h"
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qregexp.h>
-#include <qvbox.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqregexp.h>
+#include <tqvbox.h>
#include <kdebug.h>
#include <kdialogbase.h>
#include <klocale.h>
@@ -65,26 +65,26 @@ public:
K_EXPORT_COMPONENT_FACTORY( libkdevabbrev, AbbrevFactory )
-AbbrevPart::AbbrevPart(QObject *parent, const char *name, const QStringList &)
+AbbrevPart::AbbrevPart(TQObject *parent, const char *name, const TQStringList &)
: KDevPlugin(&data, parent, name ? name : "AbbrevPart")
{
setInstance(AbbrevFactory::instance());
setXMLFile("kdevabbrev.rc");
- connect(partController(), SIGNAL(activePartChanged(KParts::Part*)),
- this, SLOT(slotActivePartChanged(KParts::Part*)) );
+ connect(partController(), TQT_SIGNAL(activePartChanged(KParts::Part*)),
+ this, TQT_SLOT(slotActivePartChanged(KParts::Part*)) );
- connect(core(), SIGNAL(configWidget(KDialogBase*)), this, SLOT(configWidget(KDialogBase*)));
+ connect(core(), TQT_SIGNAL(configWidget(KDialogBase*)), this, TQT_SLOT(configWidget(KDialogBase*)));
KAction *action;
action = new KAction( i18n("Expand Text"), CTRL + Key_J,
- this, SLOT(slotExpandText()),
+ this, TQT_SLOT(slotExpandText()),
actionCollection(), "edit_expandtext" );
action->setToolTip( i18n("Expand current word") );
action->setWhatsThis( i18n("<b>Expand current word</b><p>Current word can be completed using the list of similar words in source files.") );
action = new KAction( i18n("Expand Abbreviation"), CTRL + Key_L,
- this, SLOT(slotExpandAbbrev()),
+ this, TQT_SLOT(slotExpandAbbrev()),
actionCollection(), "edit_expandabbrev" );
action->setToolTip( i18n("Expand abbreviation") );
action->setWhatsThis( i18n("<b>Expand abbreviation</b><p>Enable and configure abbreviations in <b>KDevelop Settings</b>, <b>Abbreviations</b> tab.") );
@@ -140,56 +140,56 @@ void AbbrevPart::setAutoWordCompletionEnabled( bool enabled )
disconnect( docIface->widget(), 0, this, 0 );
if( m_autoWordCompletionEnabled ){
- connect( docIface->widget(), SIGNAL(completionAborted()),
- this, SLOT(slotCompletionAborted()) );
- connect( docIface->widget(), SIGNAL(completionDone()),
- this, SLOT(slotCompletionDone()) );
- connect( docIface->widget(), SIGNAL(aboutToShowCompletionBox()),
- this, SLOT(slotAboutToShowCompletionBox()) );
-
- connect( docIface, SIGNAL(textChanged()), this, SLOT(slotTextChanged()) );
+ connect( docIface->widget(), TQT_SIGNAL(completionAborted()),
+ this, TQT_SLOT(slotCompletionAborted()) );
+ connect( docIface->widget(), TQT_SIGNAL(completionDone()),
+ this, TQT_SLOT(slotCompletionDone()) );
+ connect( docIface->widget(), TQT_SIGNAL(aboutToShowCompletionBox()),
+ this, TQT_SLOT(slotAboutToShowCompletionBox()) );
+
+ connect( docIface, TQT_SIGNAL(textChanged()), this, TQT_SLOT(slotTextChanged()) );
}
}
void AbbrevPart::load()
{
KStandardDirs *dirs = AbbrevFactory::instance()->dirs();
- QString localTemplatesFile = locateLocal("codetemplates", "templates", AbbrevFactory::instance());
- QStringList files;
- if (QFileInfo(localTemplatesFile).exists())
+ TQString localTemplatesFile = locateLocal("codetemplates", "templates", AbbrevFactory::instance());
+ TQStringList files;
+ if (TQFileInfo(localTemplatesFile).exists())
files << localTemplatesFile;
else
- files = dirs->findAllResources("codetemplates", QString::null, false, true);
+ files = dirs->findAllResources("codetemplates", TQString::null, false, true);
- QString localSourcesFile = locateLocal("sources", "sources", AbbrevFactory::instance());
- QStringList sourceFiles;
- if (QFileInfo(localSourcesFile).exists())
+ TQString localSourcesFile = locateLocal("sources", "sources", AbbrevFactory::instance());
+ TQStringList sourceFiles;
+ if (TQFileInfo(localSourcesFile).exists())
sourceFiles << localSourcesFile;
else
- sourceFiles = dirs->findAllResources("sources", QString::null, false, true);
+ sourceFiles = dirs->findAllResources("sources", TQString::null, false, true);
kdDebug(9028) << "=========> sourceFiles: " << sourceFiles.join(" ") << endl;
- this->m_completionFile = QString::null;
- for( QStringList::Iterator it=sourceFiles.begin(); it!=sourceFiles.end(); ++it ) {
- QString fn = *it;
+ this->m_completionFile = TQString::null;
+ for( TQStringList::Iterator it=sourceFiles.begin(); it!=sourceFiles.end(); ++it ) {
+ TQString fn = *it;
kdDebug(9028) << "===> load file: " << fn << endl;
- QFile f( fn );
+ TQFile f( fn );
if ( f.open(IO_ReadOnly) ) {
- QTextStream stream( &f );
- m_completionFile += ( stream.read() + QString("\n") );
+ TQTextStream stream( &f );
+ m_completionFile += ( stream.read() + TQString("\n") );
f.close();
}
}
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for (it = files.begin(); it != files.end(); ++it) {
- QString fn = *it;
+ TQString fn = *it;
kdDebug(9028) << "fn = " << fn << endl;
- QFile f( fn );
+ TQFile f( fn );
if ( f.open(IO_ReadOnly) ) {
- QDomDocument doc;
+ TQDomDocument doc;
doc.setContent( &f );
- QDomElement root = doc.firstChild().toElement();
- QDomElement e = root.firstChild().toElement();
+ TQDomElement root = doc.firstChild().toElement();
+ TQDomElement e = root.firstChild().toElement();
while ( !e.isNull() ){
addTemplate( e.attribute("name"),
e.attribute("description"),
@@ -205,18 +205,18 @@ void AbbrevPart::load()
void AbbrevPart::save()
{
- QString fn = AbbrevFactory::instance()->dirs()->saveLocation("codetemplates", "", true);
+ TQString fn = AbbrevFactory::instance()->dirs()->saveLocation("codetemplates", "", true);
kdDebug(9028) << "fn = " << fn << endl;
- QDomDocument doc( "Templates" );
- QDomElement root = doc.createElement( "Templates" );
+ TQDomDocument doc( "Templates" );
+ TQDomElement root = doc.createElement( "Templates" );
doc.appendChild( root );
- QPtrList<CodeTemplate> templates = m_templates.allTemplates();
+ TQPtrList<CodeTemplate> templates = m_templates.allTemplates();
CodeTemplate *templ;
for (templ = templates.first(); templ; templ = templates.next())
{
- QDomElement e = doc.createElement( "Template" );
+ TQDomElement e = doc.createElement( "Template" );
e.setAttribute( "name", templ->name );
e.setAttribute( "description", templ->description );
e.setAttribute( "suffixes", templ->suffixes );
@@ -224,16 +224,16 @@ void AbbrevPart::save()
root.appendChild( e );
}
- QFile f( fn + "templates" );
+ TQFile f( fn + "templates" );
if( f.open(IO_WriteOnly) ){
- QTextStream stream( &f );
+ TQTextStream stream( &f );
stream << doc.toString();
f.close();
}
}
-QString AbbrevPart::currentWord() const
+TQString AbbrevPart::currentWord() const
{
return KDevEditorUtil::currentWord( dynamic_cast<KTextEditor::Document*>( partController()->activePart() ) );
}
@@ -241,9 +241,9 @@ QString AbbrevPart::currentWord() const
void AbbrevPart::configWidget(KDialogBase *dlg)
{
- QVBox *vbox = dlg->addVBoxPage(i18n("Abbreviations"), i18n("Abbreviations"), BarIcon( info()->icon(), KIcon::SizeMedium) );
+ TQVBox *vbox = dlg->addVBoxPage(i18n("Abbreviations"), i18n("Abbreviations"), BarIcon( info()->icon(), KIcon::SizeMedium) );
AbbrevConfigWidget *w = new AbbrevConfigWidget(this, vbox, "abbrev config widget");
- connect(dlg, SIGNAL(okClicked()), w, SLOT(accept()));
+ connect(dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()));
}
@@ -252,17 +252,17 @@ void AbbrevPart::slotExpandText()
if( !editIface || !completionIface || !viewCursorIface )
return;
- QString word = currentWord();
+ TQString word = currentWord();
if (word.isEmpty())
return;
- QValueList<KTextEditor::CompletionEntry> entries = findAllWords(editIface->text(), word);
+ TQValueList<KTextEditor::CompletionEntry> entries = findAllWords(editIface->text(), word);
if (entries.count() == 0) {
; // some statusbar message?
// } else if (entries.count() == 1) {
// uint line, col;
// viewCursorIface->cursorPositionReal(&line, &col);
-// QString txt = entries[0].text.mid(word.length());
+// TQString txt = entries[0].text.mid(word.length());
// editIface->insertText( line, col, txt );
// viewCursorIface->setCursorPositionReal( line, col + txt.length() );
} else {
@@ -272,32 +272,32 @@ void AbbrevPart::slotExpandText()
}
-QValueList<KTextEditor::CompletionEntry> AbbrevPart::findAllWords(const QString &text, const QString &prefix)
+TQValueList<KTextEditor::CompletionEntry> AbbrevPart::findAllWords(const TQString &text, const TQString &prefix)
{
- QValueList<KTextEditor::CompletionEntry> entries;
+ TQValueList<KTextEditor::CompletionEntry> entries;
KParts::ReadWritePart *part = dynamic_cast<KParts::ReadWritePart*>(partController()->activePart());
- QWidget *view = partController()->activeWidget();
+ TQWidget *view = partController()->activeWidget();
if (!part || !view) {
kdDebug(9028) << "no rw part" << endl;
return entries;
}
- QString suffix = part->url().url();
+ TQString suffix = part->url().url();
int pos = suffix.findRev('.');
if (pos != -1)
suffix.remove(0, pos+1);
kdDebug(9028) << "AbbrevPart::findAllWords with suffix " << suffix << endl;
- QMap<QString, bool> map;
- QRegExp rx( QString("\\b") + prefix + "[a-zA-Z0-9_]+\\b" );
+ TQMap<TQString, bool> map;
+ TQRegExp rx( TQString("\\b") + prefix + "[a-zA-Z0-9_]+\\b" );
int idx = 0;
pos = 0;
int len = 0;
while ( (pos = rx.search(text, idx)) != -1 ) {
len = rx.matchedLength();
- QString word = text.mid(pos, len);
+ TQString word = text.mid(pos, len);
if (map.find(word) == map.end()) {
KTextEditor::CompletionEntry e;
e.text = word;
@@ -312,7 +312,7 @@ QValueList<KTextEditor::CompletionEntry> AbbrevPart::findAllWords(const QString
len = 0;
while ( (pos = rx.search(m_completionFile, idx)) != -1 ) {
len = rx.matchedLength();
- QString word = m_completionFile.mid(pos, len);
+ TQString word = m_completionFile.mid(pos, len);
if (map.find(word) == map.end()) {
KTextEditor::CompletionEntry e;
e.text = word;
@@ -323,8 +323,8 @@ QValueList<KTextEditor::CompletionEntry> AbbrevPart::findAllWords(const QString
}
- QMap<QString, CodeTemplate*> m = m_templates[suffix];
- for (QMap<QString, CodeTemplate*>::const_iterator it = m.begin(); it != m.end() ; ++it) {
+ TQMap<TQString, CodeTemplate*> m = m_templates[suffix];
+ for (TQMap<TQString, CodeTemplate*>::const_iterator it = m.begin(); it != m.end() ; ++it) {
KTextEditor::CompletionEntry e;
e.text = it.data()->description + " <abbrev>";
e.userdata = it.key();
@@ -338,13 +338,13 @@ QValueList<KTextEditor::CompletionEntry> AbbrevPart::findAllWords(const QString
void AbbrevPart::slotExpandAbbrev()
{
KParts::ReadWritePart *part = dynamic_cast<KParts::ReadWritePart*>(partController()->activePart());
- QWidget *view = partController()->activeWidget();
+ TQWidget *view = partController()->activeWidget();
if (!part || !view) {
kdDebug(9028) << "no rw part" << endl;
return;
}
- QString suffix = part->url().url();
+ TQString suffix = part->url().url();
int pos = suffix.findRev('.');
if (pos != -1)
suffix.remove(0, pos+1);
@@ -362,18 +362,18 @@ void AbbrevPart::slotExpandAbbrev()
return;
}
- QString word = currentWord();
+ TQString word = currentWord();
kdDebug(9028) << "Expanding word " << word << " with suffix " << suffix << "." << endl;
- QMap<QString, CodeTemplate*> m = m_templates[suffix];
- for (QMap<QString, CodeTemplate*>::const_iterator it = m.begin(); it != m.end() ; ++it) {
+ TQMap<TQString, CodeTemplate*> m = m_templates[suffix];
+ for (TQMap<TQString, CodeTemplate*>::const_iterator it = m.begin(); it != m.end() ; ++it) {
if (it.key() != word)
continue;
uint line, col;
cursoriface->cursorPositionReal(&line, &col);
- QString linestr = editIface->textLine(line);
+ TQString linestr = editIface->textLine(line);
int startPos = QMAX( QMIN( (int)col, (int)linestr.length()-1 ), 0 );
int endPos = startPos;
startPos--;
@@ -388,15 +388,15 @@ void AbbrevPart::slotExpandAbbrev()
}
-void AbbrevPart::insertChars( const QString &chars )
+void AbbrevPart::insertChars( const TQString &chars )
{
unsigned line=0, col=0;
viewCursorIface->cursorPositionReal( &line, &col );
unsigned int currentLine=line, currentCol=col;
- QString spaces;
- QString s = editIface->textLine( currentLine );
+ TQString spaces;
+ TQString s = editIface->textLine( currentLine );
uint i=0;
while( i<s.length() && s[ i ].isSpace() ){
spaces += s[ i ];
@@ -404,13 +404,13 @@ void AbbrevPart::insertChars( const QString &chars )
}
bool foundPipe = false;
- QString str;
- QTextStream stream( &str, IO_WriteOnly );
- QStringList lines = QStringList::split( "\n", chars );
- QStringList::Iterator it = lines.begin();
+ TQString str;
+ TQTextStream stream( &str, IO_WriteOnly );
+ TQStringList lines = TQStringList::split( "\n", chars );
+ TQStringList::Iterator it = lines.begin();
line = currentLine;
while( it != lines.end() ){
- QString lineText = *it;
+ TQString lineText = *it;
if( it != lines.begin() ){
stream << spaces;
if( !foundPipe )
@@ -444,16 +444,16 @@ void AbbrevPart::insertChars( const QString &chars )
viewCursorIface->setCursorPositionReal( currentLine, currentCol );
}
-void AbbrevPart::addTemplate( const QString& templ,
- const QString& descr,
- const QString& suffixes,
- const QString& code)
+void AbbrevPart::addTemplate( const TQString& templ,
+ const TQString& descr,
+ const TQString& suffixes,
+ const TQString& code)
{
m_templates.insert(templ, descr, code, suffixes);
}
-void AbbrevPart::removeTemplate( const QString &suffixes, const QString &name )
+void AbbrevPart::removeTemplate( const TQString &suffixes, const TQString &name )
{
m_templates.remove( suffixes, name );
}
@@ -502,14 +502,14 @@ void AbbrevPart::slotActivePartChanged( KParts::Part* part )
disconnect( part->widget(), 0, this, 0 );
disconnect( doc, 0, this, 0 );
- connect( part->widget(), SIGNAL(filterInsertString(KTextEditor::CompletionEntry*, QString*)),
- this, SLOT(slotFilterInsertString(KTextEditor::CompletionEntry*, QString*)) );
+ connect( part->widget(), TQT_SIGNAL(filterInsertString(KTextEditor::CompletionEntry*, TQString*)),
+ this, TQT_SLOT(slotFilterInsertString(KTextEditor::CompletionEntry*, TQString*)) );
if( autoWordCompletionEnabled() ){
- connect( part->widget(), SIGNAL(completionAborted()), this, SLOT(slotCompletionAborted()) );
- connect( part->widget(), SIGNAL(completionDone()), this, SLOT(slotCompletionDone()) );
- connect( part->widget(), SIGNAL(aboutToShowCompletionBox()), this, SLOT(slotAboutToShowCompletionBox()) );
- connect( doc, SIGNAL(textChanged()), this, SLOT(slotTextChanged()) );
+ connect( part->widget(), TQT_SIGNAL(completionAborted()), this, TQT_SLOT(slotCompletionAborted()) );
+ connect( part->widget(), TQT_SIGNAL(completionDone()), this, TQT_SLOT(slotCompletionDone()) );
+ connect( part->widget(), TQT_SIGNAL(aboutToShowCompletionBox()), this, TQT_SLOT(slotAboutToShowCompletionBox()) );
+ connect( doc, TQT_SIGNAL(textChanged()), this, TQT_SLOT(slotTextChanged()) );
}
m_prevLine = -1;
@@ -533,11 +533,11 @@ void AbbrevPart::slotTextChanged()
return;
}
- QString textLine = editIface->textLine( line );
- QChar ch = textLine[ col-1 ];
- QChar currentChar = textLine[ col ];
+ TQString textLine = editIface->textLine( line );
+ TQChar ch = textLine[ col-1 ];
+ TQChar currentChar = textLine[ col ];
- if( currentChar.isLetterOrNumber() || currentChar == QChar('_') || !(ch.isLetterOrNumber() || ch == QChar('_')) ){
+ if( currentChar.isLetterOrNumber() || currentChar == TQChar('_') || !(ch.isLetterOrNumber() || ch == TQChar('_')) ){
// reset
m_prevLine = -1;
return;
@@ -551,17 +551,17 @@ void AbbrevPart::slotTextChanged()
m_prevColumn = col;
}
-void AbbrevPart::slotFilterInsertString( KTextEditor::CompletionEntry* entry, QString* text )
+void AbbrevPart::slotFilterInsertString( KTextEditor::CompletionEntry* entry, TQString* text )
{
kdDebug(9028) << "AbbrevPart::slotFilterInsertString()" << endl;
KParts::ReadWritePart *part = dynamic_cast<KParts::ReadWritePart*>(partController()->activePart());
- QWidget *view = partController()->activeWidget();
+ TQWidget *view = partController()->activeWidget();
if (!part || !view) {
kdDebug(9028) << "no rw part" << endl;
return;
}
- QString suffix = part->url().url();
+ TQString suffix = part->url().url();
int pos = suffix.findRev('.');
if (pos != -1)
suffix.remove(0, pos+1);
@@ -570,9 +570,9 @@ void AbbrevPart::slotFilterInsertString( KTextEditor::CompletionEntry* entry, QS
if( !entry || !text || !viewCursorIface || !editIface )
return;
- QString expand( " <abbrev>" );
+ TQString expand( " <abbrev>" );
if( !entry->userdata.isNull() && entry->text.endsWith(expand) ){
- QString macro = entry->text.left( entry->text.length() - expand.length() );
+ TQString macro = entry->text.left( entry->text.length() - expand.length() );
*text = "";
uint line, col;
viewCursorIface->cursorPositionReal( &line, &col );
@@ -614,19 +614,19 @@ CodeTemplateList::~ CodeTemplateList( )
{
}
-QMap< QString, CodeTemplate * > CodeTemplateList::operator [ ]( QString suffix )
+TQMap< TQString, CodeTemplate * > CodeTemplateList::operator [ ]( TQString suffix )
{
kdDebug(9028) << "CodeTemplateList::operator []" << endl;
- QMap< QString, CodeTemplate * > selectedTemplates;
- for (QMap<QString, QMap<QString, CodeTemplate* > >::const_iterator it = templates.begin(); it != templates.end(); ++it)
+ TQMap< TQString, CodeTemplate * > selectedTemplates;
+ for (TQMap<TQString, TQMap<TQString, CodeTemplate* > >::const_iterator it = templates.begin(); it != templates.end(); ++it)
{
kdDebug(9028) << "CodeTemplateList::operator [] - suffixes " << it.key() << endl;
- if (QStringList::split(",", it.key()).contains(suffix))
+ if (TQStringList::split(",", it.key()).contains(suffix))
{
kdDebug(9028) << "CodeTemplateList::operator [] - suffixes " << it.key() << " contains " << suffix << endl;
- QMap<QString, CodeTemplate* > m = it.data();
- for (QMap<QString, CodeTemplate* >::const_iterator itt = m.begin(); itt != m.end(); ++itt)
+ TQMap<TQString, CodeTemplate* > m = it.data();
+ for (TQMap<TQString, CodeTemplate* >::const_iterator itt = m.begin(); itt != m.end(); ++itt)
{
kdDebug(9028) << "x" << endl;
selectedTemplates[itt.key()] = itt.data();
@@ -636,10 +636,10 @@ QMap< QString, CodeTemplate * > CodeTemplateList::operator [ ]( QString suffix )
return selectedTemplates;
}
-void CodeTemplateList::insert( QString name, QString description, QString code, QString suffixes )
+void CodeTemplateList::insert( TQString name, TQString description, TQString code, TQString suffixes )
{
- QString origSuffixes = suffixes;
-// QStringList suffixList;
+ TQString origSuffixes = suffixes;
+// TQStringList suffixList;
int pos = suffixes.find('(');
if (pos == -1)
return;
@@ -648,7 +648,7 @@ void CodeTemplateList::insert( QString name, QString description, QString code,
if (pos == -1)
return;
suffixes.remove(pos, suffixes.length()-pos);
-// suffixList = QStringList::split(",", suffixes);
+// suffixList = TQStringList::split(",", suffixes);
CodeTemplate *t;
if (templates.contains(suffixes) && templates[suffixes].contains(name))
@@ -671,12 +671,12 @@ void CodeTemplateList::insert( QString name, QString description, QString code,
m_suffixes.append(origSuffixes);
}
-QPtrList< CodeTemplate > CodeTemplateList::allTemplates( ) const
+TQPtrList< CodeTemplate > CodeTemplateList::allTemplates( ) const
{
return allCodeTemplates;
}
-void CodeTemplateList::remove( const QString & suffixes, const QString & name )
+void CodeTemplateList::remove( const TQString & suffixes, const TQString & name )
{
allCodeTemplates.remove(templates[suffixes][name]);
templates[suffixes].remove(name);
@@ -688,7 +688,7 @@ void CodeTemplateList::clear( )
allCodeTemplates.clear();
}
-QStringList CodeTemplateList::suffixes( )
+TQStringList CodeTemplateList::suffixes( )
{
return m_suffixes;
}
diff --git a/parts/abbrev/abbrevpart.h b/parts/abbrev/abbrevpart.h
index f0029b51..d1c1bc7c 100644
--- a/parts/abbrev/abbrevpart.h
+++ b/parts/abbrev/abbrevpart.h
@@ -16,8 +16,8 @@
#ifndef _ABBREVPART_H_
#define _ABBREVPART_H_
-#include <qmap.h>
-#include <qptrlist.h>
+#include <tqmap.h>
+#include <tqptrlist.h>
#include "kdevplugin.h"
#include <ktexteditor/codecompletioninterface.h>
@@ -35,10 +35,10 @@ namespace KTextEditor{
}
struct CodeTemplate {
- QString name;
- QString description;
- QString code;
- QString suffixes;
+ TQString name;
+ TQString description;
+ TQString code;
+ TQString suffixes;
};
class CodeTemplateList {
@@ -46,18 +46,18 @@ public:
CodeTemplateList();
~CodeTemplateList();
- QMap<QString, CodeTemplate* > operator[](QString suffix);
- void insert(QString name, QString description, QString code, QString suffixes);
- void remove(const QString &suffixes, const QString &name);
+ TQMap<TQString, CodeTemplate* > operator[](TQString suffix);
+ void insert(TQString name, TQString description, TQString code, TQString suffixes);
+ void remove(const TQString &suffixes, const TQString &name);
void clear();
- QStringList suffixes();
+ TQStringList suffixes();
- QPtrList<CodeTemplate> allTemplates() const;
+ TQPtrList<CodeTemplate> allTemplates() const;
private:
- QMap<QString, QMap<QString, CodeTemplate* > > templates;
- QPtrList<CodeTemplate> allCodeTemplates;
- QStringList m_suffixes;
+ TQMap<TQString, TQMap<TQString, CodeTemplate* > > templates;
+ TQPtrList<CodeTemplate> allCodeTemplates;
+ TQStringList m_suffixes;
};
class AbbrevPart : public KDevPlugin
@@ -65,15 +65,15 @@ class AbbrevPart : public KDevPlugin
Q_OBJECT
public:
- AbbrevPart( QObject *parent, const char *name, const QStringList & );
+ AbbrevPart( TQObject *parent, const char *name, const TQStringList & );
~AbbrevPart();
bool autoWordCompletionEnabled() const;
void setAutoWordCompletionEnabled( bool enabled );
- void addTemplate(const QString &templ, const QString &descr,
- const QString &suffixes, const QString &code);
- void removeTemplate(const QString &suffixes, const QString &name);
+ void addTemplate(const TQString &templ, const TQString &descr,
+ const TQString &suffixes, const TQString &code);
+ void removeTemplate(const TQString &suffixes, const TQString &name);
void clearTemplates();
CodeTemplateList templates() const;
@@ -85,24 +85,24 @@ private slots:
void slotTextChanged();
void slotCompletionAborted();
void slotCompletionDone();
- void slotFilterInsertString( KTextEditor::CompletionEntry*, QString* );
+ void slotFilterInsertString( KTextEditor::CompletionEntry*, TQString* );
void slotAboutToShowCompletionBox();
private:
void updateActions();
void load();
void save();
- QString currentWord() const;
- QValueList<KTextEditor::CompletionEntry> findAllWords(const QString &text, const QString &prefix);
- void insertChars( const QString &chars );
-// QAsciiDict<CodeTemplate> m_templates;
+ TQString currentWord() const;
+ TQValueList<KTextEditor::CompletionEntry> findAllWords(const TQString &text, const TQString &prefix);
+ void insertChars( const TQString &chars );
+// TQAsciiDict<CodeTemplate> m_templates;
CodeTemplateList m_templates;
bool m_inCompletion;
int m_prevLine;
int m_prevColumn;
int m_sequenceLength;
bool m_autoWordCompletionEnabled;
- QString m_completionFile;
+ TQString m_completionFile;
KTextEditor::Document* docIface;
KTextEditor::EditInterface* editIface;
diff --git a/parts/abbrev/addtemplatedlg.cpp b/parts/abbrev/addtemplatedlg.cpp
index 35342ffe..a837c08a 100644
--- a/parts/abbrev/addtemplatedlg.cpp
+++ b/parts/abbrev/addtemplatedlg.cpp
@@ -18,17 +18,17 @@
*
*/
#include "addtemplatedlg.h"
-#include <qcombobox.h>
+#include <tqcombobox.h>
#include <klineedit.h>
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
-AddTemplateDialog::AddTemplateDialog( QStringList suffixesList, QWidget *parent, const char *name )
+AddTemplateDialog::AddTemplateDialog( TQStringList suffixesList, TQWidget *parent, const char *name )
: AddTemplateDialogBase( parent, name )
{
setFocusProxy( editTemplate );
comboSuffixes->insertStringList(suffixesList);
- connect( editTemplate, SIGNAL(textChanged ( const QString & )), this, SLOT( textChanged()));
- connect( editDescription, SIGNAL(textChanged ( const QString & )), this, SLOT( textChanged()));
+ connect( editTemplate, TQT_SIGNAL(textChanged ( const TQString & )), this, TQT_SLOT( textChanged()));
+ connect( editDescription, TQT_SIGNAL(textChanged ( const TQString & )), this, TQT_SLOT( textChanged()));
buttonOk->setEnabled(false);
}
@@ -41,17 +41,17 @@ void AddTemplateDialog::textChanged()
buttonOk->setEnabled( !editTemplate->text().isEmpty() && !editDescription->text().isEmpty() );
}
-QString AddTemplateDialog::templ() const
+TQString AddTemplateDialog::templ() const
{
return editTemplate->text();
}
-QString AddTemplateDialog::description() const
+TQString AddTemplateDialog::description() const
{
return editDescription->text();
}
-QString AddTemplateDialog::suffixes() const
+TQString AddTemplateDialog::suffixes() const
{
return comboSuffixes->currentText();
}
diff --git a/parts/abbrev/addtemplatedlg.h b/parts/abbrev/addtemplatedlg.h
index 9a20479e..64bcc24e 100644
--- a/parts/abbrev/addtemplatedlg.h
+++ b/parts/abbrev/addtemplatedlg.h
@@ -28,12 +28,12 @@ class AddTemplateDialog: public AddTemplateDialogBase
Q_OBJECT
public:
- AddTemplateDialog( QStringList suffixesList, QWidget *parent=0, const char *name=0 );
+ AddTemplateDialog( TQStringList suffixesList, TQWidget *parent=0, const char *name=0 );
virtual ~AddTemplateDialog();
- QString templ() const;
- QString description() const;
- QString suffixes() const;
+ TQString templ() const;
+ TQString description() const;
+ TQString suffixes() const;
private slots:
void textChanged();
};
diff --git a/parts/appwizard/appwizarddlg.cpp b/parts/appwizard/appwizarddlg.cpp
index 816786ff..3d854ba0 100644
--- a/parts/appwizard/appwizarddlg.cpp
+++ b/parts/appwizard/appwizarddlg.cpp
@@ -13,26 +13,26 @@
#include "appwizarddlg.h"
-#include <qvbox.h>
-#include <qbuttongroup.h>
-#include <qcombobox.h>
-#include <qtabwidget.h>
-#include <qwidgetstack.h>
-#include <qdir.h>
-#include <qfileinfo.h>
-#include <qgrid.h>
-#include <qheader.h>
-#include <qmap.h>
-#include <qmultilineedit.h>
-#include <qpushbutton.h>
-#include <qradiobutton.h>
-#include <qregexp.h>
-#include <qtextstream.h>
-#include <qtextview.h>
-#include <qtoolbutton.h>
-#include <qtooltip.h>
-#include <qvalidator.h>
-#include <qtimer.h>
+#include <tqvbox.h>
+#include <tqbuttongroup.h>
+#include <tqcombobox.h>
+#include <tqtabwidget.h>
+#include <tqwidgetstack.h>
+#include <tqdir.h>
+#include <tqfileinfo.h>
+#include <tqgrid.h>
+#include <tqheader.h>
+#include <tqmap.h>
+#include <tqmultilineedit.h>
+#include <tqpushbutton.h>
+#include <tqradiobutton.h>
+#include <tqregexp.h>
+#include <tqtextstream.h>
+#include <tqtextview.h>
+#include <tqtoolbutton.h>
+#include <tqtooltip.h>
+#include <tqvalidator.h>
+#include <tqtimer.h>
#include <klistview.h>
#include <kiconview.h>
#include <kconfig.h>
@@ -53,7 +53,7 @@
#include <ktrader.h>
#include <kparts/componentfactory.h>
#include <kio/netaccess.h>
-#include <qfile.h>
+#include <tqfile.h>
#include <kmacroexpander.h>
#include <karchive.h>
#include <ktar.h>
@@ -61,7 +61,7 @@
#include <kfileitem.h>
#include <kio/chmodjob.h>
-#include <qlayout.h>
+#include <tqlayout.h>
#include "domutil.h"
#include "kdevversioncontrol.h"
@@ -90,7 +90,7 @@
#include "propeditor/propertylist.h"
#include "propeditor/propertyeditor.h"
-AppWizardDialog::AppWizardDialog(AppWizardPart *part, QWidget *parent, const char *name)
+AppWizardDialog::AppWizardDialog(AppWizardPart *part, TQWidget *parent, const char *name)
: AppWizardDialogBase(parent, name,true), m_pCurrentAppInfo(0),
m_profileSupport(new ProfileSupport(part))
{
@@ -98,17 +98,17 @@ AppWizardDialog::AppWizardDialog(AppWizardPart *part, QWidget *parent, const cha
m_customOptions = 0L;
loadLicenses();
- connect( this, SIGNAL( selected( const QString & ) ), this, SLOT( pageChanged() ) );
+ connect( this, TQT_SIGNAL( selected( const TQString & ) ), this, TQT_SLOT( pageChanged() ) );
helpButton()->hide();
templates_listview->header()->hide();
- templates_listview->setColumnWidthMode(0, QListView::Maximum); //to provide horiz scrollbar.
+ templates_listview->setColumnWidthMode(0, TQListView::Maximum); //to provide horiz scrollbar.
m_templatesMenu = new KPopupMenu(templates_listview);
- m_templatesMenu->insertItem(i18n("&Add to Favorites"), this, SLOT(addTemplateToFavourites()));
+ m_templatesMenu->insertItem(i18n("&Add to Favorites"), this, TQT_SLOT(addTemplateToFavourites()));
m_favouritesMenu = new KPopupMenu(favourites_iconview);
- m_favouritesMenu->insertItem(i18n("&Remove Favorite"), this, SLOT(removeFavourite()));
+ m_favouritesMenu->insertItem(i18n("&Remove Favorite"), this, TQT_SLOT(removeFavourite()));
m_pathIsValid=false;
m_part = part;
@@ -122,15 +122,15 @@ AppWizardDialog::AppWizardDialog(AppWizardPart *part, QWidget *parent, const cha
//templates_tabwidget->setCurrentPage(config->readNumEntry("CurrentTab", 0));
config->setGroup("General Options");
- QString defaultProjectsDir = config->readPathEntry("DefaultProjectsDir", QDir::homeDirPath()+"/");
+ TQString defaultProjectsDir = config->readPathEntry("DefaultProjectsDir", TQDir::homeDirPath()+"/");
KStandardDirs *dirs = AppWizardFactory::instance()->dirs();
- QStringList m_templateNames = dirs->findAllResources("apptemplates", QString::null, false, true);
+ TQStringList m_templateNames = dirs->findAllResources("apptemplates", TQString::null, false, true);
kdDebug(9010) << "Templates: " << endl;
- QStringList categories;
+ TQStringList categories;
- QStringList::Iterator it;
+ TQStringList::Iterator it;
for (it = m_templateNames.begin(); it != m_templateNames.end(); ++it) {
kdDebug(9010) << (*it) << endl;
@@ -147,10 +147,10 @@ AppWizardDialog::AppWizardDialog(AppWizardPart *part, QWidget *parent, const cha
info->comment = templateConfig.readEntry("Comment");
info->fileTemplates = templateConfig.readEntry("FileTemplates");
info->openFilesAfterGeneration = templateConfig.readListEntry("ShowFilesAfterGeneration");
- QString destDir = templateConfig.readPathEntry("DefaultDestinatonDir", defaultProjectsDir);
- destDir.replace(QRegExp("HOMEDIR"), QDir::homeDirPath());
+ TQString destDir = templateConfig.readPathEntry("DefaultDestinatonDir", defaultProjectsDir);
+ destDir.replace(TQRegExp("HOMEDIR"), TQDir::homeDirPath());
info->defaultDestDir = destDir;
- QString category = templateConfig.readEntry("Category");
+ TQString category = templateConfig.readEntry("Category");
// format category to a unique status
if (category.right(1) == "/")
category.remove(category.length()-1, 1); // remove /
@@ -161,13 +161,13 @@ AppWizardDialog::AppWizardDialog(AppWizardPart *part, QWidget *parent, const cha
info->sourceArchive = templateConfig.readEntry("Archive");
// Grab includes list
- QStringList groups = templateConfig.groupList();
+ TQStringList groups = templateConfig.groupList();
groups.remove("General");
- QStringList::Iterator group = groups.begin();
+ TQStringList::Iterator group = groups.begin();
for( ; group != groups.end(); ++group)
{
templateConfig.setGroup( (*group) );
- QString type = templateConfig.readEntry("Type").lower();
+ TQString type = templateConfig.readEntry("Type").lower();
if( type == "include" ) // Add value
{
info->includes.append( templateConfig.readEntry( "File" ) );
@@ -176,16 +176,16 @@ AppWizardDialog::AppWizardDialog(AppWizardPart *part, QWidget *parent, const cha
}
// Build builtins map to bootstrap.
- QString source = kdevRoot( info->templateName );
+ TQString source = kdevRoot( info->templateName );
info->subMap.insert("kdevelop", source );
// Add includes to the main template...
- QStringList::Iterator include = info->includes.begin();
+ TQStringList::Iterator include = info->includes.begin();
for( ; include != info->includes.end(); ++include)
{
if( !(*include).isEmpty() )
{
- QString file = KMacroExpander::expandMacros( ( *include ), info->subMap);
+ TQString file = KMacroExpander::expandMacros( ( *include ), info->subMap);
KConfig tmpCfg( file );
tmpCfg.copyTo( "", &templateConfig);
kdDebug(9010) << "Merging: " << tmpCfg.name() << endl;
@@ -197,15 +197,15 @@ AppWizardDialog::AppWizardDialog(AppWizardPart *part, QWidget *parent, const cha
for( ; group != groups.end(); ++group)
{
templateConfig.setGroup( (*group) );
- QString type = templateConfig.readEntry("Type", "value").lower();
+ TQString type = templateConfig.readEntry("Type", "value").lower();
kdDebug(9010) << "Reading " << (*group) << " of type " << type << endl;
if( type == "value" ) // Add value
{
- QString name = templateConfig.readEntry( "Value" );
- QString label = templateConfig.readEntry( "Comment" );
- QString type = templateConfig.readEntry( "ValueType", "String" );
- QVariant::Type variantType = QVariant::nameToType( type.latin1());
- QVariant value = templateConfig.readPropertyEntry( "Default", variantType );
+ TQString name = templateConfig.readEntry( "Value" );
+ TQString label = templateConfig.readEntry( "Comment" );
+ TQString type = templateConfig.readEntry( "ValueType", "String" );
+ TQVariant::Type variantType = TQVariant::nameToType( type.latin1());
+ TQVariant value = templateConfig.readPropertyEntry( "Default", variantType );
value.cast( variantType ); // fix this in kdelibs...
if( !name.isEmpty() && !label.isEmpty() )
info->propValues->addProperty( new PropertyLib::Property( (int)variantType, name, label, value ) );
@@ -245,7 +245,7 @@ AppWizardDialog::AppWizardDialog(AppWizardPart *part, QWidget *parent, const cha
}
else if( type == "ui")
{
- QString name = templateConfig.readPathEntry("File");
+ TQString name = templateConfig.readPathEntry("File");
info->customUI = name;
}
else if( type == "message" )
@@ -264,9 +264,9 @@ AppWizardDialog::AppWizardDialog(AppWizardPart *part, QWidget *parent, const cha
insertCategoryIntoTreeView(*it);
// Insert items into list view
- QPtrListIterator<ApplicationInfo> ait(m_appsInfo);
+ TQPtrListIterator<ApplicationInfo> ait(m_appsInfo);
for (; ait.current(); ++ait) {
- QListViewItem *item = m_categoryMap.find(ait.current()->category);
+ TQListViewItem *item = m_categoryMap.find(ait.current()->category);
if (item)
{
item = new KListViewItem(item, ait.current()->name);
@@ -281,11 +281,11 @@ AppWizardDialog::AppWizardDialog(AppWizardPart *part, QWidget *parent, const cha
//Load favourites from config
populateFavourites();
- QString author, email;
+ TQString author, email;
AppWizardUtil::guessAuthorAndEmail(&author, &email);
author_edit->setText(author);
email_edit->setText(email);
- QToolTip::add( dest_edit->button(), i18n("Choose projects directory") );
+ TQToolTip::add( dest_edit->button(), i18n("Choose projects directory") );
dest_edit->setURL(defaultProjectsDir);
dest_edit->setMode(KFile::Directory|KFile::ExistingOnly|KFile::LocalOnly);
@@ -297,20 +297,20 @@ AppWizardDialog::AppWizardDialog(AppWizardPart *part, QWidget *parent, const cha
setNextEnabled(generalPage, false);
-// QRegExp appname_regexp ("[a-zA-Z][a-zA-Z0-9_]*"); //Non-Unicode version
+// TQRegExp appname_regexp ("[a-zA-Z][a-zA-Z0-9_]*"); //Non-Unicode version
/* appname will start with a letter, and will contain letters,
digits or underscores. */
- QRegExp appname_regexp ("[a-zA-Z][a-zA-Z0-9_]*");
+ TQRegExp appname_regexp ("[a-zA-Z][a-zA-Z0-9_]*");
// How about names like "__" or "123" for project name? Are they legal?
- QRegExpValidator *appname_edit_validator;
- appname_edit_validator = new QRegExpValidator (appname_regexp,
+ TQRegExpValidator *appname_edit_validator;
+ appname_edit_validator = new TQRegExpValidator (appname_regexp,
appname_edit,
"AppNameValidator");
appname_edit->setValidator(appname_edit_validator);
// insert the licenses into the license_combo
- QDict< KDevLicense > lics( licenses() );
- QDictIterator< KDevLicense > dit(lics);
+ TQDict< KDevLicense > lics( licenses() );
+ TQDictIterator< KDevLicense > dit(lics);
int idx=1;
for( ; dit.current(); ++dit )
{
@@ -319,9 +319,9 @@ AppWizardDialog::AppWizardDialog(AppWizardPart *part, QWidget *parent, const cha
license_combo->setCurrentItem( idx - 1 );
}
- connect( license_combo, SIGNAL(activated(int)), this, SLOT(licenseChanged()) );
+ connect( license_combo, TQT_SIGNAL(activated(int)), this, TQT_SLOT(licenseChanged()) );
- m_custom_options_layout = new QHBoxLayout( custom_options );
+ m_custom_options_layout = new TQHBoxLayout( custom_options );
m_custom_options_layout->setAutoAdd(true);
showTemplates(false);
@@ -347,15 +347,15 @@ void AppWizardDialog::loadVcs()
kdDebug(9010) << "AppWizardDialog::loadVcs: creating vcs integrator "
<< service->name() << endl;
- 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();
kdDebug(9010) << "There was an error loading the module " << service->name() << endl <<
"The diagnostics is:" << endl << errorMessage << endl;
continue;
}
- QStringList args;
- QObject *obj = factory->create(0, service->name().latin1(),
+ TQStringList args;
+ TQObject *obj = factory->create(0, service->name().latin1(),
"KDevVCSIntegrator", args);
KDevVCSIntegrator *integrator = (KDevVCSIntegrator*) obj;
@@ -365,7 +365,7 @@ void AppWizardDialog::loadVcs()
{
kdDebug(9010) << " success" << endl;
- QString vcsName = service->property("X-KDevelop-VCS").toString();
+ TQString vcsName = service->property("X-KDevelop-VCS").toString();
m_vcsForm->combo->insertItem(vcsName, i);
m_integrators.insert(vcsName, integrator);
@@ -373,7 +373,7 @@ void AppWizardDialog::loadVcs()
if (vcs)
{
m_integratorDialogs[i] = vcs;
- QWidget *w = vcs->self();
+ TQWidget *w = vcs->self();
if (w)
m_vcsForm->stack->addWidget(w, i++);
else
@@ -409,19 +409,19 @@ void AppWizardDialog::textChanged()
void AppWizardDialog::licenseChanged()
{
- QValueList<AppWizardFileTemplate>::Iterator it;
+ TQValueList<AppWizardFileTemplate>::Iterator it;
if( license_combo->currentItem() == 0 )
{
for (it = m_fileTemplates.begin(); it != m_fileTemplates.end(); ++it)
{
- QMultiLineEdit *edit = (*it).edit;
- edit->setText( QString::null );
+ TQMultiLineEdit *edit = (*it).edit;
+ edit->setText( TQString::null );
}
} else {
KDevLicense* lic = licenses()[ license_combo->currentText() ];
for (it = m_fileTemplates.begin(); it != m_fileTemplates.end(); ++it) {
- QString style = (*it).style;
- QMultiLineEdit *edit = (*it).edit;
+ TQString style = (*it).style;
+ TQMultiLineEdit *edit = (*it).edit;
KDevFile::CommentingStyle commentStyle = KDevFile::CPPStyle;
if (style == "PStyle") {
@@ -434,25 +434,25 @@ void AppWizardDialog::licenseChanged()
commentStyle = KDevFile::XMLStyle;
}
- QString text;
+ TQString text;
text = lic->assemble( commentStyle, author_edit->text(), email_edit->text() , 0 );
edit->setText(text);
}
}
}
-QString AppWizardDialog::kdevRoot(const QString &templateName ) const
+TQString AppWizardDialog::kdevRoot(const TQString &templateName ) const
{
- QString source;
- QFileInfo finfo(templateName);
- QDir dir(finfo.dir());
+ TQString source;
+ TQFileInfo finfo(templateName);
+ TQDir dir(finfo.dir());
dir.cdUp();
return dir.absPath();
}
void AppWizardDialog::accept()
{
- QFileInfo fi(finalLoc_label->text());
+ TQFileInfo fi(finalLoc_label->text());
// check /again/ whether the dir already exists; maybe users create it in the meantime
if (fi.exists() ) {
KMessageBox::sorry(this, i18n("The directory you have chosen as the location for "
@@ -463,7 +463,7 @@ void AppWizardDialog::accept()
return;
}
- if( !QFileInfo(dest_edit->url()).isWritable() ){
+ if( !TQFileInfo(dest_edit->url()).isWritable() ){
KMessageBox::sorry(this, i18n("The directory you have chosen as the location for "
"the project is not writeable."));
showPage(generalPage);
@@ -472,7 +472,7 @@ void AppWizardDialog::accept()
return;
}
- QString source = kdevRoot( m_pCurrentAppInfo->templateName );
+ TQString source = kdevRoot( m_pCurrentAppInfo->templateName );
// Unpack template archive to temp dir, and get the name
kdDebug(9010) << "Unpacking archive to temp dir" << endl;
@@ -503,18 +503,18 @@ void AppWizardDialog::accept()
m_pCurrentAppInfo->subMap.insert("dest", finalLoc_label->text() );
m_pCurrentAppInfo->subMap.insert("APPNAME", appname_edit->text() );
m_pCurrentAppInfo->subMap.insert("APPNAMELC", appname_edit->text().lower() );
- m_pCurrentAppInfo->subMap.insert("APPNAMESC", QString(appname_edit->text()[0]).upper() + appname_edit->text().mid(1));
+ m_pCurrentAppInfo->subMap.insert("APPNAMESC", TQString(appname_edit->text()[0]).upper() + appname_edit->text().mid(1));
m_pCurrentAppInfo->subMap.insert("APPNAMEUC", appname_edit->text().upper() );
m_pCurrentAppInfo->subMap.insert("AUTHOR", author_edit->text() );
m_pCurrentAppInfo->subMap.insert("EMAIL", email_edit->text() );
m_pCurrentAppInfo->subMap.insert("VERSION", version_edit->text());
m_pCurrentAppInfo->subMap.insert( "I18N", "i18n" );
- m_pCurrentAppInfo->subMap.insert("YEAR", QString::number( QDate::currentDate().year() ) );
+ m_pCurrentAppInfo->subMap.insert("YEAR", TQString::number( TQDate::currentDate().year() ) );
// This isn't too pretty, but we have several templates that use KAboutData::License_${LICENSE}
// and unsurprisingly, KAboutData doesn't cover every imaginable case.
// These are the licenses known to KDE-3.2 KAboutData, KDevelop doesn't have all of these as prepared options today
- QString license = license_combo->currentText();
+ TQString license = license_combo->currentText();
if ( license == "GPL" || license == "GPL_V2" || license == "LGPL" || license == "LGPL_V2"||
license == "BSD" || license == "NCSA" || license == "MIT" || license == "Artistic" ||
license == "QPL" || license == "QPL_V1_0" )
@@ -527,7 +527,7 @@ void AppWizardDialog::accept()
}
- QStringList cleanUpSubstMap;
+ TQStringList cleanUpSubstMap;
cleanUpSubstMap << "src" << "I18N" << "kdevelop";
@@ -542,37 +542,37 @@ void AppWizardDialog::accept()
m_pCurrentAppInfo->dirList.prepend( baseDir );
// This is too silly for words, but it's either this or reimplementing FileTemplate
- QString tempProjectDomSource = "<!DOCTYPE kdevelop><kdevelop><general><author>%1</author><email>%2</email><version>%3</version></general></kdevelop>";
+ TQString tempProjectDomSource = "<!DOCTYPE kdevelop><kdevelop><general><author>%1</author><email>%2</email><version>%3</version></general></kdevelop>";
tempProjectDomSource = tempProjectDomSource.arg( author_edit->text() ).arg( email_edit->text() ).arg( version_edit->text() );
- QDomDocument tempProjectDom;
+ TQDomDocument tempProjectDom;
tempProjectDom.setContent( tempProjectDomSource );
- QValueList<AppWizardFileTemplate>::Iterator it;
+ TQValueList<AppWizardFileTemplate>::Iterator it;
for (it = m_fileTemplates.begin(); it != m_fileTemplates.end(); ++it) {
KTempFile *tempFile = new KTempFile();
m_tempFiles.append(tempFile);
- QString templateText( FileTemplate::makeSubstitutions( tempProjectDom, (*it).edit->text() ) );
- QFile f;
+ TQString templateText( FileTemplate::makeSubstitutions( tempProjectDom, (*it).edit->text() ) );
+ TQFile f;
f.open(IO_WriteOnly, tempFile->handle());
- QTextStream temps(&f);
- temps.setEncoding(QTextStream::UnicodeUTF8);
+ TQTextStream temps(&f);
+ temps.setEncoding(TQTextStream::UnicodeUTF8);
temps << templateText;
f.flush();
- QString templateName( QString( "%1_TEMPLATE" ).arg( (*it).suffix ).upper() );
+ TQString templateName( TQString( "%1_TEMPLATE" ).arg( (*it).suffix ).upper() );
cleanUpSubstMap << templateName;
m_pCurrentAppInfo->subMap.insert( templateName, KMacroExpander::expandMacros(templateText , m_pCurrentAppInfo->subMap) );
installFile file;
file.source = tempFile->name();
- file.dest = QString( "%{dest}/templates/%1" ).arg( (*it).suffix );
+ file.dest = TQString( "%{dest}/templates/%1" ).arg( (*it).suffix );
file.process = true;
file.isXML = false;
m_pCurrentAppInfo->fileList.append( file );
}
// Add license file to the file list
- QString licenseFile, licenseName = i18n("Custom");
+ TQString licenseFile, licenseName = i18n("Custom");
if( license_combo->currentItem() != 0 )
{
@@ -580,13 +580,13 @@ void AppWizardDialog::accept()
KDevLicense* lic = licenses()[ licenseName ];
if( lic )
{
- QStringList files( lic->copyFiles() );
- QStringList::Iterator it = files.begin();
+ TQStringList files( lic->copyFiles() );
+ TQStringList::Iterator it = files.begin();
for( ; it != files.end(); ++it )
{
installFile file;
- file.source = QString( "%{kdevelop}/template-common/%1" ).arg( *it );
- file.dest = QString("%{dest}/%1").arg( *it );
+ file.source = TQString( "%{kdevelop}/template-common/%1" ).arg( *it );
+ file.dest = TQString("%{dest}/%1").arg( *it );
file.process = true;
file.isXML = false;
m_pCurrentAppInfo->fileList.append( file );
@@ -597,7 +597,7 @@ void AppWizardDialog::accept()
}
// Run macro expander on both the dir map and file maps
- QValueList<installFile>::Iterator fileIt = m_pCurrentAppInfo->fileList.begin();
+ TQValueList<installFile>::Iterator fileIt = m_pCurrentAppInfo->fileList.begin();
for( ; fileIt != m_pCurrentAppInfo->fileList.end(); ++fileIt)
{
(*fileIt).source = KMacroExpander::expandMacros((*fileIt).source , m_pCurrentAppInfo->subMap);
@@ -605,14 +605,14 @@ void AppWizardDialog::accept()
(*fileIt).dest = KMacroExpander::expandMacros((*fileIt).dest , m_pCurrentAppInfo->subMap);
}
- QValueList<installArchive>::Iterator archIt = m_pCurrentAppInfo->archList.begin();
+ TQValueList<installArchive>::Iterator archIt = m_pCurrentAppInfo->archList.begin();
for( ; archIt != m_pCurrentAppInfo->archList.end(); ++archIt)
{
(*archIt).source = KMacroExpander::expandMacros((*archIt).source , m_pCurrentAppInfo->subMap);
(*archIt).dest = KMacroExpander::expandMacros((*archIt).dest , m_pCurrentAppInfo->subMap);
}
- QValueList<installDir>::Iterator dirIt = m_pCurrentAppInfo->dirList.begin();
+ TQValueList<installDir>::Iterator dirIt = m_pCurrentAppInfo->dirList.begin();
for( ; dirIt != m_pCurrentAppInfo->dirList.end(); ++dirIt)
{
(*dirIt).dir = KMacroExpander::expandMacros((*dirIt).dir , m_pCurrentAppInfo->subMap);
@@ -626,10 +626,10 @@ void AppWizardDialog::accept()
m_pCurrentAppInfo->finishCmdDir, m_pCurrentAppInfo->subMap );
}
- QMap<QString,QString>::Iterator mapIt( m_pCurrentAppInfo->subMap.begin() );
+ TQMap<TQString,TQString>::Iterator mapIt( m_pCurrentAppInfo->subMap.begin() );
for( ; mapIt != m_pCurrentAppInfo->subMap.end(); ++mapIt )
{
- QString escaped( mapIt.data() );
+ TQString escaped( mapIt.data() );
escaped.replace( "&", "&amp;" );
escaped.replace( "<", "&lt;" );
escaped.replace( ">", "&gt;" );
@@ -698,7 +698,7 @@ void AppWizardDialog::accept()
// KMessageBox::information(this, KMacroExpander::expandMacros(m_pCurrentAppInfo->message, m_pCurrentAppInfo->subMap));
- QStringList::Iterator cleanIt = cleanUpSubstMap.begin();
+ TQStringList::Iterator cleanIt = cleanUpSubstMap.begin();
for(;cleanIt != cleanUpSubstMap.end(); ++cleanIt )
{
m_pCurrentAppInfo->subMap.remove( *cleanIt );
@@ -737,7 +737,7 @@ void AppWizardDialog::accept()
kdDebug(9010) << "vcs integrator wasn't selected" << endl;
openAfterGeneration();
- QWizard::accept();
+ TQWizard::accept();
}
bool AppWizardDialog::copyFile( const installFile& file )
@@ -751,23 +751,23 @@ bool AppWizardDialog::copyFile( const installFile& file )
#include <sys/stat.h>
#include <unistd.h>
-bool AppWizardDialog::copyFile( const QString &source, const QString &dest, bool isXML, bool process )
+bool AppWizardDialog::copyFile( const TQString &source, const TQString &dest, bool isXML, bool process )
{
kdDebug( 9010 ) << "Copy: " << source << " to " << dest << endl;
if( process )
{
// Process the file and save it at the destFile location
- QFile inputFile( source);
- QFile outputFile( dest );
+ TQFile inputFile( source);
+ TQFile outputFile( dest );
- const QMap<QString,QString> &subMap = isXML ?
+ const TQMap<TQString,TQString> &subMap = isXML ?
m_pCurrentAppInfo->subMapXML : m_pCurrentAppInfo->subMap;
if( inputFile.open( IO_ReadOnly ) && outputFile.open(IO_WriteOnly) )
{
- QTextStream input( &inputFile );
- input.setEncoding(QTextStream::UnicodeUTF8);
- QTextStream output( &outputFile );
- output.setEncoding(QTextStream::UnicodeUTF8);
+ TQTextStream input( &inputFile );
+ input.setEncoding(TQTextStream::UnicodeUTF8);
+ TQTextStream output( &outputFile );
+ output.setEncoding(TQTextStream::UnicodeUTF8);
while( !input.atEnd() )
output << KMacroExpander::expandMacros(input.readLine(), subMap) << "\n";
// Preserve file mode...
@@ -791,16 +791,16 @@ bool AppWizardDialog::copyFile( const QString &source, const QString &dest, bool
return true;
}
-void AppWizardDialog::unpackArchive( const KArchiveDirectory *dir, const QString &dest, bool process )
+void AppWizardDialog::unpackArchive( const KArchiveDirectory *dir, const TQString &dest, bool process )
{
KIO::NetAccess::mkdir( dest , this );
kdDebug(9010) << "Dir : " << dir->name() << " at " << dest << endl;
- QStringList entries = dir->entries();
+ TQStringList entries = dir->entries();
kdDebug(9010) << "Entries : " << entries.join(",") << endl;
KTempDir tdir;
- QStringList::Iterator entry = entries.begin();
+ TQStringList::Iterator entry = entries.begin();
for( ; entry != entries.end(); ++entry )
{
@@ -822,7 +822,7 @@ void AppWizardDialog::unpackArchive( const KArchiveDirectory *dir, const QString
file->copyTo(tdir.name());
// assume that an archive does not contain XML files
// ( where should we currently get that info from? )
- if ( !copyFile( QDir::cleanDirPath(tdir.name()+"/"+file->name()), dest + "/" + file->name(), false, process ) )
+ if ( !copyFile( TQDir::cleanDirPath(tdir.name()+"/"+file->name()), dest + "/" + file->name(), false, process ) )
{
KMessageBox::sorry(this, i18n("The file %1 cannot be created.").arg( dest) );
return;
@@ -834,14 +834,14 @@ void AppWizardDialog::unpackArchive( const KArchiveDirectory *dir, const QString
tdir.unlink();
}
-void AppWizardDialog::templatesTreeViewClicked(QListViewItem *item)
+void AppWizardDialog::templatesTreeViewClicked(TQListViewItem *item)
{
if( m_customOptions )
delete m_customOptions;
// Delete old file template pages
while (!m_fileTemplates.isEmpty()) {
- QMultiLineEdit *edit = m_fileTemplates.first().edit;
+ TQMultiLineEdit *edit = m_fileTemplates.first().edit;
removePage(edit);
delete edit;
m_fileTemplates.remove(m_fileTemplates.begin());
@@ -852,10 +852,10 @@ void AppWizardDialog::templatesTreeViewClicked(QListViewItem *item)
if (info) {
m_pCurrentAppInfo = info;
if (!info->icon.isEmpty()) {
- QFileInfo fi(info->templateName);
- QDir dir(fi.dir());
+ TQFileInfo fi(info->templateName);
+ TQDir dir(fi.dir());
dir.cdUp();
- QPixmap pm;
+ TQPixmap pm;
pm.load(dir.filePath(info->icon));
icon_label->setPixmap(pm);
} else {
@@ -872,11 +872,11 @@ void AppWizardDialog::templatesTreeViewClicked(QListViewItem *item)
// Create new file template pages
- QStringList l = QStringList::split(",", info->fileTemplates);
+ TQStringList l = TQStringList::split(",", info->fileTemplates);
if (l.empty()) //if the app template doesn't show file templates, we need to set another m_lastPage, aleXXX
m_lastPage=m_vcsForm;
- QStringList::ConstIterator it = l.begin();
+ TQStringList::ConstIterator it = l.begin();
while (it != l.end()) {
AppWizardFileTemplate fileTemplate;
fileTemplate.suffix = *it;
@@ -887,8 +887,8 @@ void AppWizardDialog::templatesTreeViewClicked(QListViewItem *item)
} else
fileTemplate.style = "";
- QMultiLineEdit *edit = new QMultiLineEdit(this);
- edit->setWordWrap(QTextEdit::NoWrap);
+ TQMultiLineEdit *edit = new TQMultiLineEdit(this);
+ edit->setWordWrap(TQTextEdit::NoWrap);
edit->setFont(KGlobalSettings::fixedFont());
if (it == l.end())
m_lastPage = edit;
@@ -908,15 +908,15 @@ void AppWizardDialog::templatesTreeViewClicked(QListViewItem *item)
}
-void AppWizardDialog::destButtonClicked(const QString& dir)
+void AppWizardDialog::destButtonClicked(const TQString& dir)
{
if(!dir.isEmpty()) {
// set new location as default project dir?
KConfig *config = kapp->config();
config->setGroup("General Options");
- QDir defPrjDir( config->readPathEntry("DefaultProjectsDir", QDir::homeDirPath()) );
- QDir newDir (dir);
+ TQDir defPrjDir( config->readPathEntry("DefaultProjectsDir", TQDir::homeDirPath()) );
+ TQDir newDir (dir);
kdDebug(9010) << "DevPrjDir == newdir?: " << defPrjDir.absPath() << " == " << newDir.absPath() << endl;
if (defPrjDir != newDir) {
if (KMessageBox::questionYesNo(this, i18n("Set default project location to: %1?").arg( newDir.absPath() ),
@@ -941,8 +941,8 @@ void AppWizardDialog::projectLocationChanged()
// Jakob Simon-Gaarde: Got tired of the anoying bug with the appname/location confussion.
// This version insures WYSIWYG and checks pathvalidity
finalLoc_label->setText(dest_edit->url() + (dest_edit->url().right(1)=="/" ? "":"/") + appname_edit->text());
- QDir qd(dest_edit->url());
- QFileInfo fi(dest_edit->url() + "/" + appname_edit->text());
+ TQDir qd(dest_edit->url());
+ TQFileInfo fi(dest_edit->url() + "/" + appname_edit->text());
if (!qd.exists() || appname_edit->displayText().isEmpty()||fi.exists())
{
if (!fi.exists() || appname_edit->displayText().isEmpty()) {
@@ -958,17 +958,17 @@ void AppWizardDialog::projectLocationChanged()
}
-void AppWizardDialog::insertCategoryIntoTreeView(const QString &completeCategoryPath)
+void AppWizardDialog::insertCategoryIntoTreeView(const TQString &completeCategoryPath)
{
kdDebug(9010) << "TemplateCategory: " << completeCategoryPath << endl;
- QStringList categories = QStringList::split("/", completeCategoryPath);
- QString category ="";
- QListViewItem* pParentItem=0;
+ TQStringList categories = TQStringList::split("/", completeCategoryPath);
+ TQString category ="";
+ TQListViewItem* pParentItem=0;
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for (it = categories.begin(); it != categories.end(); ++it) {
category = category + "/" + *it;
- QListViewItem *item = m_categoryMap.find(category);
+ TQListViewItem *item = m_categoryMap.find(category);
if (!item) { // not found, create it
if (!pParentItem)
pParentItem = new KListViewItem(templates_listview,*it);
@@ -987,9 +987,9 @@ void AppWizardDialog::insertCategoryIntoTreeView(const QString &completeCategory
}
-ApplicationInfo *AppWizardDialog::templateForItem(QListViewItem *item)
+ApplicationInfo *AppWizardDialog::templateForItem(TQListViewItem *item)
{
- QPtrListIterator<ApplicationInfo> it(m_appsInfo);
+ TQPtrListIterator<ApplicationInfo> it(m_appsInfo);
for (; it.current(); ++it)
if (it.current()->item == item)
return it.current();
@@ -999,16 +999,16 @@ ApplicationInfo *AppWizardDialog::templateForItem(QListViewItem *item)
void AppWizardDialog::openAfterGeneration()
{
- QString projectFile( finalLoc_label->text() + "/" + appname_edit->text().lower() + ".kdevelop" );
+ TQString projectFile( finalLoc_label->text() + "/" + appname_edit->text().lower() + ".kdevelop" );
// Read the DOM of the newly created project
- QFile file( projectFile );
+ TQFile file( projectFile );
if( !file.open( IO_ReadOnly ) )
return;
- QDomDocument projectDOM;
+ TQDomDocument projectDOM;
int errorLine, errorCol;
- QString errorMsg;
+ TQString errorMsg;
bool success = projectDOM.setContent( &file, &errorMsg, &errorLine, &errorCol);
file.close();
if ( !success )
@@ -1023,7 +1023,7 @@ void AppWizardDialog::openAfterGeneration()
DomUtil::writeMapEntry( projectDOM, "substmap", m_pCurrentAppInfo->subMap );
//save the selected vcs
- KTrader::OfferList offers = KTrader::self()->query("KDevelop/VCSIntegrator", QString("[X-KDevelop-VCS]=='%1'").arg(m_vcsForm->combo->currentText()));
+ KTrader::OfferList offers = KTrader::self()->query("KDevelop/VCSIntegrator", TQString("[X-KDevelop-VCS]=='%1'").arg(m_vcsForm->combo->currentText()));
if (offers.count() == 1)
{
KService::Ptr service = offers.first();
@@ -1031,11 +1031,11 @@ void AppWizardDialog::openAfterGeneration()
}
// figure out what plugins we should disable by default
- QString profileName = DomUtil::readEntry( projectDOM, "general/profile" );
+ TQString profileName = DomUtil::readEntry( projectDOM, "general/profile" );
if ( profileName.isEmpty() )
{
- QString language = DomUtil::readEntry( projectDOM, "general/primarylanguage" );
- QStringList keywords = DomUtil::readListEntry( projectDOM, "general/keywords", "keyword" );
+ TQString language = DomUtil::readEntry( projectDOM, "general/primarylanguage" );
+ TQStringList keywords = DomUtil::readListEntry( projectDOM, "general/keywords", "keyword" );
profileName = Settings::profileByAttributes( language, keywords );
}
@@ -1043,14 +1043,14 @@ void AppWizardDialog::openAfterGeneration()
ProfileEngine & engine = m_part->pluginController()->engine();
Profile * profile = engine.findProfile( profileName );
- QStringList disableList;
+ TQStringList disableList;
Profile::EntryList disableEntryList = profile->list( Profile::ExplicitDisable );
for ( Profile::EntryList::const_iterator it = disableEntryList.constBegin(); it != disableEntryList.constEnd(); ++it )
{
disableList << (*it).name;
}
- QStringList projectIgnoreparts = DomUtil::readListEntry( projectDOM, "/general/ignoreparts", "part" );
+ TQStringList projectIgnoreparts = DomUtil::readListEntry( projectDOM, "/general/ignoreparts", "part" );
projectIgnoreparts += disableList;
DomUtil::writeListEntry( projectDOM, "/general/ignoreparts", "part", projectIgnoreparts );
@@ -1059,8 +1059,8 @@ void AppWizardDialog::openAfterGeneration()
// write the dom back
if( !file.open( IO_WriteOnly ) )
return;
- QTextStream ts( &file );
- ts.setEncoding(QTextStream::UnicodeUTF8);
+ TQTextStream ts( &file );
+ ts.setEncoding(TQTextStream::UnicodeUTF8);
ts << projectDOM.toString(2);
file.close();
@@ -1071,10 +1071,10 @@ void AppWizardDialog::openAfterGeneration()
// timer to queue opening (so that files will not be opened before the project
// which is also queued by ProjectManager )
KURL::List urlsToOpen;
- QStringList::Iterator it = m_pCurrentAppInfo->openFilesAfterGeneration.begin();
+ TQStringList::Iterator it = m_pCurrentAppInfo->openFilesAfterGeneration.begin();
for( ; it != m_pCurrentAppInfo->openFilesAfterGeneration.end(); ++it )
{
- QString fileName( *it );
+ TQString fileName( *it );
if ( !fileName.isNull() )
{
fileName = KMacroExpander::expandMacros(fileName, m_pCurrentAppInfo->subMap);
@@ -1093,7 +1093,7 @@ void AppWizardDialog::pageChanged()
//it is possible that project name was changed - we need to update all vcs integrator dialogs
- for (QMap<int, VCSDialog*>::iterator it = m_integratorDialogs.begin();
+ for (TQMap<int, VCSDialog*>::iterator it = m_integratorDialogs.begin();
it != m_integratorDialogs.end(); ++it)
(*it)->init(getProjectName(), getProjectLocation());
}
@@ -1103,7 +1103,7 @@ void AppWizardDialog::addTemplateToFavourites()
addFavourite(templates_listview->currentItem());
}
-void AppWizardDialog::addFavourite(QListViewItem* item, QString favouriteName)
+void AppWizardDialog::addFavourite(TQListViewItem* item, TQString favouriteName)
{
if(item->childCount())
return;
@@ -1120,9 +1120,9 @@ void AppWizardDialog::addFavourite(QListViewItem* item, QString favouriteName)
}
}
-ApplicationInfo* AppWizardDialog::findFavouriteInfo(QIconViewItem* item)
+ApplicationInfo* AppWizardDialog::findFavouriteInfo(TQIconViewItem* item)
{
- QPtrListIterator<ApplicationInfo> info(m_appsInfo);
+ TQPtrListIterator<ApplicationInfo> info(m_appsInfo);
for (; info.current(); ++info)
if (info.current()->favourite == item)
return info.current();
@@ -1130,7 +1130,7 @@ ApplicationInfo* AppWizardDialog::findFavouriteInfo(QIconViewItem* item)
return 0;
}
-void AppWizardDialog::favouritesIconViewClicked( QIconViewItem* item)
+void AppWizardDialog::favouritesIconViewClicked( TQIconViewItem* item)
{
ApplicationInfo* info = findFavouriteInfo(item);
templatesTreeViewClicked(info->item);
@@ -1138,10 +1138,10 @@ void AppWizardDialog::favouritesIconViewClicked( QIconViewItem* item)
void AppWizardDialog::removeFavourite()
{
- QIconViewItem* curFavourite = favourites_iconview->currentItem();
+ TQIconViewItem* curFavourite = favourites_iconview->currentItem();
//remove reference to favourite from associated appinfo
- QPtrListIterator<ApplicationInfo> info(m_appsInfo);
+ TQPtrListIterator<ApplicationInfo> info(m_appsInfo);
for (; info.current(); ++info)
{
if(info.current()->favourite && info.current()->favourite == curFavourite)
@@ -1163,14 +1163,14 @@ void AppWizardDialog::populateFavourites()
//favourites are stored in config as a list of templates and a seperate
//list of icon names.
- QStringList templatesList = config->readPathListEntry("FavTemplates");
- QStringList iconNamesList = config->readListEntry("FavNames");
+ TQStringList templatesList = config->readPathListEntry("FavTemplates");
+ TQStringList iconNamesList = config->readListEntry("FavNames");
- QStringList::Iterator curTemplate = templatesList.begin();
- QStringList::Iterator curIconName = iconNamesList.begin();
+ TQStringList::Iterator curTemplate = templatesList.begin();
+ TQStringList::Iterator curIconName = iconNamesList.begin();
while(curTemplate != templatesList.end())
{
- QPtrListIterator<ApplicationInfo> info(m_appsInfo);
+ TQPtrListIterator<ApplicationInfo> info(m_appsInfo);
for (; info.current(); ++info)
{
if(info.current()->templateName == *curTemplate)
@@ -1190,11 +1190,11 @@ void AppWizardDialog::done(int r)
//it's icon name. We have a one list for the templates
//and one for the names.
- QStringList templatesList;
- QStringList iconNamesList;
+ TQStringList templatesList;
+ TQStringList iconNamesList;
//Built the stringlists for each template that has a favourite.
- QPtrListIterator<ApplicationInfo> it(m_appsInfo);
+ TQPtrListIterator<ApplicationInfo> it(m_appsInfo);
for (; it.current(); ++it)
{
if(it.current()->favourite)
@@ -1211,24 +1211,24 @@ void AppWizardDialog::done(int r)
//config->writeEntry("CurrentTab", templates_tabwidget->currentPageIndex());
config->sync();
- QDialog::done(r);
+ TQDialog::done(r);
}
-void AppWizardDialog::templatesContextMenu(QListViewItem* item, const QPoint& point, int)
+void AppWizardDialog::templatesContextMenu(TQListViewItem* item, const TQPoint& point, int)
{
if(item && !item->childCount())
m_templatesMenu->popup(point);
}
-void AppWizardDialog::favouritesContextMenu(QIconViewItem* item, const QPoint& point)
+void AppWizardDialog::favouritesContextMenu(TQIconViewItem* item, const TQPoint& point)
{
if(item)
m_favouritesMenu->popup(point);
}
-void AppWizardDialog::setPermissions(const KArchiveFile *source, QString dest)
+void AppWizardDialog::setPermissions(const KArchiveFile *source, TQString dest)
{
- kdDebug(9010) << "AppWizardDialog::setPermissions(const KArchiveFile *source, QString dest)" << endl;
+ kdDebug(9010) << "AppWizardDialog::setPermissions(const KArchiveFile *source, TQString dest)" << endl;
kdDebug(9010) << " dest: " << dest << endl;
if (source->permissions() & 00100)
@@ -1273,7 +1273,7 @@ void AppWizardDialog::setPermissions(const installFile &file)
}
}
-QDict<KDevLicense> AppWizardDialog::licenses()
+TQDict<KDevLicense> AppWizardDialog::licenses()
{
return m_licenses;
}
@@ -1283,14 +1283,14 @@ void AppWizardDialog::loadLicenses()
// kdDebug(9010) << "======================== Entering loadLicenses" << endl;
KStandardDirs* dirs = KGlobal::dirs();
dirs->addResourceType( "licenses", KStandardDirs::kde_default( "data" ) + "kdevelop/licenses/" );
- QStringList licNames = dirs->findAllResources( "licenses", QString::null, false, true );
+ TQStringList licNames = dirs->findAllResources( "licenses", TQString::null, false, true );
- QStringList::Iterator it;
+ TQStringList::Iterator it;
for (it = licNames.begin(); it != licNames.end(); ++it)
{
- QString licPath( dirs->findResource( "licenses", *it ) );
+ TQString licPath( dirs->findResource( "licenses", *it ) );
kdDebug(9010) << "Loading license file: " << licPath << endl;
- QString licName = licPath.mid( licPath.findRev('/') + 1 );
+ TQString licName = licPath.mid( licPath.findRev('/') + 1 );
KDevLicense* lic = new KDevLicense( licName, licPath );
m_licenses.insert( licName, lic );
}
@@ -1301,7 +1301,7 @@ void AppWizardDialog::showTemplates(bool all)
{
if (all)
{
- QListViewItemIterator it(templates_listview);
+ TQListViewItemIterator it(templates_listview);
while ( it.current() ) {
it.current()->setVisible(true);
++it;
@@ -1309,19 +1309,19 @@ void AppWizardDialog::showTemplates(bool all)
}
else
{
- QPtrListIterator<ApplicationInfo> ait(m_appsInfo);
+ TQPtrListIterator<ApplicationInfo> ait(m_appsInfo);
for (; ait.current(); ++ait)
{
ait.current()->item->setVisible(m_profileSupport->isInTemplateList(ait.current()->templateName));
}
- QDictIterator<QListViewItem> dit(m_categoryMap);
+ TQDictIterator<TQListViewItem> dit(m_categoryMap);
for (; dit.current(); ++dit)
{
//checking whether all children are not visible
kdDebug(9010) << "check: " << dit.current()->text(0) << endl;
bool visible = false;
- QListViewItemIterator it(dit.current());
+ TQListViewItemIterator it(dit.current());
while ( it.current() ) {
if ((it.current()->childCount() == 0) && it.current()->isVisible())
{
@@ -1337,9 +1337,9 @@ void AppWizardDialog::showTemplates(bool all)
}
}
-void AppWizardDialog::checkAndHideItems(QListView *view)
+void AppWizardDialog::checkAndHideItems(TQListView *view)
{
- QListViewItem *item = view->firstChild();
+ TQListViewItem *item = view->firstChild();
while (item)
{
if (!m_categoryItems.contains(item))
@@ -1349,11 +1349,11 @@ void AppWizardDialog::checkAndHideItems(QListView *view)
}
}
-bool AppWizardDialog::checkAndHideItems(QListViewItem *item)
+bool AppWizardDialog::checkAndHideItems(TQListViewItem *item)
{
if (!m_categoryItems.contains(item))
return !item->isVisible();
- QListViewItem *child = item->firstChild();
+ TQListViewItem *child = item->firstChild();
bool hide = true;
while (child)
{
diff --git a/parts/appwizard/appwizarddlg.h b/parts/appwizard/appwizarddlg.h
index 7ce8c2ff..d69d069c 100644
--- a/parts/appwizard/appwizarddlg.h
+++ b/parts/appwizard/appwizarddlg.h
@@ -25,11 +25,11 @@ class QHBoxLayout;
class KArchiveDirectory;
class KArchiveFile;
class ProfileSupport;
-#include <qptrlist.h>
-#include <qdict.h>
+#include <tqptrlist.h>
+#include <tqdict.h>
#include <klineedit.h>
-#include <qlabel.h>
-#include <qstringlist.h>
+#include <tqlabel.h>
+#include <tqstringlist.h>
#include <klistview.h>
#include <kiconview.h>
#include "kdevversioncontrol.h"
@@ -46,60 +46,60 @@ namespace PropertyLib {
struct installFile
{
- QString source;
- QString dest;
- QString option;
+ TQString source;
+ TQString dest;
+ TQString option;
bool process;
bool isXML;
};
struct installArchive
{
- QString source;
- QString dest;
- QString option;
+ TQString source;
+ TQString dest;
+ TQString option;
bool process;
};
struct installDir
{
- QString dir;
- QString option;
+ TQString dir;
+ TQString option;
int perms;
};
struct ApplicationInfo
{
- QString templateName;
- QString name;
- QString comment;
- QString icon;
- QString category;
- QString defaultDestDir;
- QString fileTemplates;
- QStringList openFilesAfterGeneration;
- QString templateFile;
- QMap<QString,QString> subMap;
- QMap<QString,QString> subMapXML;
- QStringList includes;
-
- //QMap<autoKey,QVariant> subValues;
+ TQString templateName;
+ TQString name;
+ TQString comment;
+ TQString icon;
+ TQString category;
+ TQString defaultDestDir;
+ TQString fileTemplates;
+ TQStringList openFilesAfterGeneration;
+ TQString templateFile;
+ TQMap<TQString,TQString> subMap;
+ TQMap<TQString,TQString> subMapXML;
+ TQStringList includes;
+
+ //TQMap<autoKey,TQVariant> subValues;
PropertyLib::PropertyList *propValues;
- QValueList<installFile> fileList;
- QValueList<installArchive> archList;
- QValueList<installDir> dirList;
- QString customUI;
- QString message;
- QString finishCmd;
- QString finishCmdDir;
- QString sourceArchive;
+ TQValueList<installFile> fileList;
+ TQValueList<installArchive> archList;
+ TQValueList<installDir> dirList;
+ TQString customUI;
+ TQString message;
+ TQString finishCmd;
+ TQString finishCmdDir;
+ TQString sourceArchive;
//! item pointer to the listview
- QListViewItem *item;
+ TQListViewItem *item;
//! pointer to favourite icon (NULL if there isn't one)
- QIconViewItem *favourite;
+ TQIconViewItem *favourite;
ApplicationInfo()
: item( 0 ), favourite( 0 )
@@ -108,9 +108,9 @@ struct ApplicationInfo
struct AppWizardFileTemplate
{
- QString suffix;
- QString style;
- QMultiLineEdit *edit;
+ TQString suffix;
+ TQString style;
+ TQMultiLineEdit *edit;
AppWizardFileTemplate()
: edit( 0 )
@@ -123,27 +123,27 @@ class AppWizardDialog : public AppWizardDialogBase
Q_OBJECT
public:
- AppWizardDialog( AppWizardPart *part, QWidget *parent=0, const char *name=0 );
+ AppWizardDialog( AppWizardPart *part, TQWidget *parent=0, const char *name=0 );
~AppWizardDialog();
- QString getProjectName() { return appname_edit->text(); }
- QString getProjectLocation() { return finalLoc_label->text(); }
+ TQString getProjectName() { return appname_edit->text(); }
+ TQString getProjectLocation() { return finalLoc_label->text(); }
protected:
virtual void accept();
- virtual QDict<KDevLicense> licenses();
+ virtual TQDict<KDevLicense> licenses();
void loadLicenses();
protected slots:
- virtual void templatesTreeViewClicked(QListViewItem*);
+ virtual void templatesTreeViewClicked(TQListViewItem*);
virtual void textChanged();
virtual void licenseChanged();
- virtual void destButtonClicked(const QString&);
+ virtual void destButtonClicked(const TQString&);
virtual void projectNameChanged();
virtual void projectLocationChanged();
- virtual void favouritesIconViewClicked( QIconViewItem * );
- virtual void templatesContextMenu(QListViewItem*, const QPoint&, int);
- virtual void favouritesContextMenu(QIconViewItem* item, const QPoint& point);
+ virtual void favouritesIconViewClicked( TQIconViewItem * );
+ virtual void templatesContextMenu(TQListViewItem*, const TQPoint&, int);
+ virtual void favouritesContextMenu(TQIconViewItem* item, const TQPoint& point);
virtual void addTemplateToFavourites();
virtual void done(int r);
virtual void removeFavourite();
@@ -151,42 +151,42 @@ protected slots:
private: //methods
- ApplicationInfo *templateForItem(QListViewItem *item);
- void insertCategoryIntoTreeView(const QString &completeCategoryPath);
+ ApplicationInfo *templateForItem(TQListViewItem *item);
+ void insertCategoryIntoTreeView(const TQString &completeCategoryPath);
void loadVcs();
void updateNextButtons();
void populateFavourites();
- void addFavourite(QListViewItem* item, QString favouriteName="");
- ApplicationInfo* findFavouriteInfo(QIconViewItem* item);
+ void addFavourite(TQListViewItem* item, TQString favouriteName="");
+ ApplicationInfo* findFavouriteInfo(TQIconViewItem* item);
- void unpackArchive( const KArchiveDirectory *dir, const QString &dest, bool process );
+ void unpackArchive( const KArchiveDirectory *dir, const TQString &dest, bool process );
bool copyFile( const installFile& file );
- bool copyFile( const QString &source, const QString &dest, bool isXML, bool process );
- QString kdevRoot(const QString &templateName ) const;
+ bool copyFile( const TQString &source, const TQString &dest, bool isXML, bool process );
+ TQString kdevRoot(const TQString &templateName ) const;
void openAfterGeneration();
- void setPermissions(const KArchiveFile *source, QString dest);
+ void setPermissions(const KArchiveFile *source, TQString dest);
void setPermissions(const installFile &file);
- void checkAndHideItems(QListView *view);
- bool checkAndHideItems(QListViewItem *item);
+ void checkAndHideItems(TQListView *view);
+ bool checkAndHideItems(TQListViewItem *item);
private: //data
- QPtrList<ApplicationInfo> m_appsInfo;
- QValueList<AppWizardFileTemplate> m_fileTemplates;
+ TQPtrList<ApplicationInfo> m_appsInfo;
+ TQValueList<AppWizardFileTemplate> m_fileTemplates;
//! Store the category name and the pointer in the treeview
- QDict<QListViewItem> m_categoryMap;
- QValueList<QListViewItem*> m_categoryItems;
+ TQDict<TQListViewItem> m_categoryMap;
+ TQValueList<TQListViewItem*> m_categoryItems;
//! A list of currently available version control systems
-// QDict<KDevVersionControl> m_availVcs;
+// TQDict<KDevVersionControl> m_availVcs;
- QHBoxLayout *m_custom_options_layout;
+ TQHBoxLayout *m_custom_options_layout;
PropertyLib::PropertyEditor *m_customOptions;
AppWizardPart *m_part;
- QWidget *m_lastPage;
- QPtrList<KTempFile> m_tempFiles;
+ TQWidget *m_lastPage;
+ TQPtrList<KTempFile> m_tempFiles;
ApplicationInfo* m_pCurrentAppInfo;
bool m_projectLocationWasChanged;
VcsForm *m_vcsForm;
@@ -194,9 +194,9 @@ private: //data
KPopupMenu* m_favouritesMenu;
KPopupMenu* m_templatesMenu;
- QDict<KDevLicense> m_licenses;
- QDict<KDevVCSIntegrator> m_integrators;
- QMap<int, VCSDialog*> m_integratorDialogs;
+ TQDict<KDevLicense> m_licenses;
+ TQDict<KDevVCSIntegrator> m_integrators;
+ TQMap<int, VCSDialog*> m_integratorDialogs;
ProfileSupport *m_profileSupport;
diff --git a/parts/appwizard/appwizardpart.cpp b/parts/appwizard/appwizardpart.cpp
index 8a19f548..6b57b320 100644
--- a/parts/appwizard/appwizardpart.cpp
+++ b/parts/appwizard/appwizardpart.cpp
@@ -9,9 +9,9 @@
* *
***************************************************************************/
-#include <qdir.h>
-#include <qwidget.h>
-#include <qtimer.h>
+#include <tqdir.h>
+#include <tqwidget.h>
+#include <tqtimer.h>
#include "appwizardpart.h"
@@ -23,7 +23,7 @@
#include <kgenericfactory.h>
#include <kstandarddirs.h>
#include <kaction.h>
-#include <qmessagebox.h>
+#include <tqmessagebox.h>
#include "importdlg.h"
#include "appwizarddlg.h"
@@ -34,7 +34,7 @@
#include <kdevcore.h>
#include <codemodel.h>
-AppWizardPart::AppWizardPart(QObject *parent, const char *name, const QStringList &)
+AppWizardPart::AppWizardPart(TQObject *parent, const char *name, const TQStringList &)
: KDevPlugin(AppWizardFactory::info(), parent, name ? name : "AppWizardPart")
{
setInstance(AppWizardFactory::instance());
@@ -43,7 +43,7 @@ AppWizardPart::AppWizardPart(QObject *parent, const char *name, const QStringLis
KAction *action;
action = new KAction( i18n("&New Project..."), "window_new", 0,
- this, SLOT(slotNewProject()),
+ this, TQT_SLOT(slotNewProject()),
actionCollection(), "project_new" );
action->setToolTip( i18n("Generate a new project from a template") );
action->setWhatsThis( i18n("<b>New project</b><p>"
@@ -52,7 +52,7 @@ AppWizardPart::AppWizardPart(QObject *parent, const char *name, const QStringLis
"application from a set of templates.") );
action = new KAction( i18n("&Import Existing Project..."),"wizard", 0,
- this, SLOT(slotImportProject()),
+ this, TQT_SLOT(slotImportProject()),
actionCollection(), "project_import" );
action->setToolTip( i18n("Import existing project") );
action->setWhatsThis( i18n("<b>Import existing project</b><p>Creates a project file for a given directory.") );
@@ -82,7 +82,7 @@ void AppWizardPart::slotImportProject()
void AppWizardPart::openFilesAfterGeneration(const KURL::List urlsToOpen)
{
m_urlsToOpen = urlsToOpen;
- connect( core(), SIGNAL( projectOpened() ), this, SLOT( openFilesAfterGeneration() ) );
+ connect( core(), TQT_SIGNAL( projectOpened() ), this, TQT_SLOT( openFilesAfterGeneration() ) );
}
void AppWizardPart::openFilesAfterGeneration()
@@ -90,7 +90,7 @@ void AppWizardPart::openFilesAfterGeneration()
for (KURL::List::const_iterator it = m_urlsToOpen.begin(); it != m_urlsToOpen.end(); ++it)
partController()->editDocument(*it);
m_urlsToOpen.clear();
- disconnect( core(), SIGNAL( projectOpened() ), this, SLOT( openFilesAfterGeneration() ) );
+ disconnect( core(), TQT_SIGNAL( projectOpened() ), this, TQT_SLOT( openFilesAfterGeneration() ) );
}
#include "appwizardpart.moc"
diff --git a/parts/appwizard/appwizardpart.h b/parts/appwizard/appwizardpart.h
index 0678d04a..5b434ebf 100644
--- a/parts/appwizard/appwizardpart.h
+++ b/parts/appwizard/appwizardpart.h
@@ -12,10 +12,10 @@
#ifndef _APPWIZARDPART_H_
#define _APPWIZARDPART_H_
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
#include "kdevplugin.h"
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
#include <kurl.h>
class AppWizardDialog;
@@ -26,7 +26,7 @@ class AppWizardPart : public KDevPlugin
Q_OBJECT
public:
- AppWizardPart( QObject *parent, const char *name, const QStringList & );
+ AppWizardPart( TQObject *parent, const char *name, const TQStringList & );
~AppWizardPart();
void openFilesAfterGeneration(const KURL::List urlsToOpen);
diff --git a/parts/appwizard/filepropspage.cpp b/parts/appwizard/filepropspage.cpp
index 8b60e369..e7436d04 100644
--- a/parts/appwizard/filepropspage.cpp
+++ b/parts/appwizard/filepropspage.cpp
@@ -1,18 +1,18 @@
#include "filepropspage.h"
-#include <qlistbox.h>
+#include <tqlistbox.h>
#include <klineedit.h>
-#include <qtextview.h>
+#include <tqtextview.h>
#include <klocale.h>
-#include <qlabel.h>
-#include <qmultilineedit.h>
+#include <tqlabel.h>
+#include <tqmultilineedit.h>
/*
* Constructs a FilePropsPage which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*/
-FilePropsPage::FilePropsPage( QWidget* parent, const char* name, WFlags fl )
+FilePropsPage::FilePropsPage( TQWidget* parent, const char* name, WFlags fl )
: FilePropsPageBase( parent, name, fl ){
- m_props = new QPtrList<ClassFileProp>;
+ m_props = new TQPtrList<ClassFileProp>;
m_current_class = 9999; // no current
}
@@ -60,7 +60,7 @@ void FilePropsPage::slotSelectionChanged()
m_current_class = item;
}
-void FilePropsPage::setClassFileProps(QPtrList<ClassFileProp> props,bool different_header_impl){
+void FilePropsPage::setClassFileProps(TQPtrList<ClassFileProp> props,bool different_header_impl){
*m_props = props;
m_different_header_impl = different_header_impl;
if (!m_different_header_impl){
@@ -78,10 +78,10 @@ void FilePropsPage::setClassFileProps(QPtrList<ClassFileProp> props,bool differe
slotSelectionChanged();
}
-QPtrList<ClassFileProp> FilePropsPage::getClassFileProps(){
+TQPtrList<ClassFileProp> FilePropsPage::getClassFileProps(){
return *m_props;
}
-void FilePropsPage::slotClassnameChanged(const QString& text){
+void FilePropsPage::slotClassnameChanged(const TQString& text){
classes_listbox->changeItem(text, classes_listbox->currentItem());
}
diff --git a/parts/appwizard/filepropspage.h b/parts/appwizard/filepropspage.h
index 3435dfa2..a0c923ed 100644
--- a/parts/appwizard/filepropspage.h
+++ b/parts/appwizard/filepropspage.h
@@ -1,19 +1,19 @@
#ifndef FILEPROPSPAGE_H
#define FILEPROPSPAGE_H
#include "filepropspagebase.h"
-#include <qstring.h>
-#include <qptrlist.h>
+#include <tqstring.h>
+#include <tqptrlist.h>
class ClassFileProp {
public:
- QString m_classname;
- QString m_implfile;
- QString m_headerfile;
- QString m_baseclass;
- QString m_description; // rich text
+ TQString m_classname;
+ TQString m_implfile;
+ TQString m_headerfile;
+ TQString m_baseclass;
+ TQString m_description; // rich text
/** to idetify this object*/
- QString m_key;
+ TQString m_key;
bool m_change_baseclass;
};
@@ -22,17 +22,17 @@ class FilePropsPage : public FilePropsPageBase
Q_OBJECT
public:
- FilePropsPage( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ FilePropsPage( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~FilePropsPage();
- void setClassFileProps(QPtrList<ClassFileProp> props,bool different_header_impl=true);
- QPtrList<ClassFileProp> getClassFileProps();
+ void setClassFileProps(TQPtrList<ClassFileProp> props,bool different_header_impl=true);
+ TQPtrList<ClassFileProp> getClassFileProps();
public slots:
void slotSelectionChanged();
- virtual void slotClassnameChanged(const QString&);
+ virtual void slotClassnameChanged(const TQString&);
protected:
- QPtrList<ClassFileProp>* m_props;
+ TQPtrList<ClassFileProp>* m_props;
bool m_different_header_impl;
uint m_current_class;
diff --git a/parts/appwizard/importdlg.cpp b/parts/appwizard/importdlg.cpp
index b900181d..9cb9838a 100644
--- a/parts/appwizard/importdlg.cpp
+++ b/parts/appwizard/importdlg.cpp
@@ -11,17 +11,17 @@
#include "importdlg.h"
#include <stdlib.h>
-#include <qcombobox.h>
-#include <qdir.h>
-#include <qfile.h>
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqcombobox.h>
+#include <tqdir.h>
+#include <tqfile.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
#include <klineedit.h>
-#include <qpushbutton.h>
-#include <qregexp.h>
-#include <qtextstream.h>
-#include <qtooltip.h>
-#include <qcheckbox.h>
+#include <tqpushbutton.h>
+#include <tqregexp.h>
+#include <tqtextstream.h>
+#include <tqtooltip.h>
+#include <tqcheckbox.h>
#include <kbuttonbox.h>
#include <kdebug.h>
#include <kdialog.h>
@@ -51,25 +51,25 @@
#include "misc.h"
-ImportDialog::ImportDialog(AppWizardPart *part, QWidget *parent, const char *name)
+ImportDialog::ImportDialog(AppWizardPart *part, TQWidget *parent, const char *name)
: ImportDialogBase(parent, name, true), m_part(part)
{
- QString author, email;
+ TQString author, email;
AppWizardUtil::guessAuthorAndEmail(&author, &email);
author_edit->setText(author);
email_edit->setText(email);
- QToolTip::add( urlinput_edit->button(), i18n("Choose directory to import") );
+ TQToolTip::add( urlinput_edit->button(), i18n("Choose directory to import") );
urlinput_edit->setMode(KFile::Directory|KFile::ExistingOnly|KFile::LocalOnly);
KStandardDirs *dirs = AppWizardFactory::instance()->dirs();
- importNames = dirs->findAllResources("appimports", QString::null, false, true);
+ importNames = dirs->findAllResources("appimports", TQString::null, false, true);
importNames.sort();
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for (it = importNames.begin(); it != importNames.end(); ++it) {
KConfig config(KGlobal::dirs()->findResource("appimports", *it));
config.setGroup("General");
- QString type = config.readEntry("Comment");
+ TQString type = config.readEntry("Comment");
project_combo->insertItem(type);
if (config.hasGroup("Infrastructure"))
@@ -86,12 +86,12 @@ ImportDialog::ImportDialog(AppWizardPart *part, QWidget *parent, const char *nam
infrastructureBox->setEnabled(false);
setProjectType("c");
- connect( name_edit, SIGNAL( textChanged ( const QString & ) ), this, SLOT( slotProjectNameChanged( const QString & ) ) );
+ connect( name_edit, TQT_SIGNAL( textChanged ( const TQString & ) ), this, TQT_SLOT( slotProjectNameChanged( const TQString & ) ) );
// scanAvailableVCS();
- connect( fetchModuleButton, SIGNAL(clicked()),
- this, SLOT(slotFetchModulesFromRepository()) );
- connect(urlinput_edit, SIGNAL(urlSelected(const QString& )), this, SLOT(dirChanged()));
- connect(urlinput_edit, SIGNAL(returnPressed(const QString& )), this, SLOT(dirChanged()));
+ connect( fetchModuleButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotFetchModulesFromRepository()) );
+ connect(urlinput_edit, TQT_SIGNAL(urlSelected(const TQString& )), this, TQT_SLOT(dirChanged()));
+ connect(urlinput_edit, TQT_SIGNAL(returnPressed(const TQString& )), this, TQT_SLOT(dirChanged()));
slotProjectNameChanged( name_edit->text() );
}
@@ -99,20 +99,20 @@ ImportDialog::ImportDialog(AppWizardPart *part, QWidget *parent, const char *nam
ImportDialog::~ImportDialog()
{}
-void ImportDialog::slotProjectNameChanged( const QString &_text )
+void ImportDialog::slotProjectNameChanged( const TQString &_text )
{
- ok_button->setEnabled( !_text.isEmpty() && !urlinput_edit->url().contains( QRegExp("\\s") ) );
+ ok_button->setEnabled( !_text.isEmpty() && !urlinput_edit->url().contains( TQRegExp("\\s") ) );
}
void ImportDialog::accept()
{
- QDir dir(urlinput_edit->url());
+ TQDir dir(urlinput_edit->url());
if (urlinput_edit->url().isEmpty() || !dir.exists()) {
KMessageBox::sorry(this, i18n("You have to choose a directory."));
return;
}
- QString projectName = name_edit->text();
+ TQString projectName = name_edit->text();
if (projectName.isEmpty()) {
KMessageBox::sorry(this, i18n("You have to choose a project name."));
return;
@@ -127,13 +127,13 @@ void ImportDialog::accept()
if (infrastructureBox->isVisible() && infrastructureBox->isChecked())
createProjectInfrastructure();
-// QString author = author_edit->text();
-// QString email = email_edit->text();
+// TQString author = author_edit->text();
+// TQString email = email_edit->text();
- QFileInfo finfo(importNames[project_combo->currentItem()]);
- QDir importdir(finfo.dir());
+ TQFileInfo finfo(importNames[project_combo->currentItem()]);
+ TQDir importdir(finfo.dir());
importdir.cdUp();
- QFile src(importdir.filePath("importfiles/" + finfo.fileName() + ".kdevelop"));
+ TQFile src(importdir.filePath("importfiles/" + finfo.fileName() + ".kdevelop"));
kdDebug(9010) << "Import template " << src.name() << endl;
if (!src.open(IO_ReadOnly)) {
KMessageBox::sorry(this, i18n("Cannot open project template."));
@@ -141,10 +141,10 @@ void ImportDialog::accept()
}
// Read the DOM of the newly created project
- QDomDocument projectDOM;
+ TQDomDocument projectDOM;
int errorLine, errorCol;
- QString errorMsg;
+ TQString errorMsg;
bool success = projectDOM.setContent( &src, &errorMsg, &errorLine, &errorCol);
src.close();
if ( !success )
@@ -165,11 +165,11 @@ void ImportDialog::accept()
}
// figure out what plugins we should disable by default
- QString profileName = DomUtil::readEntry( projectDOM, "general/profile" );
+ TQString profileName = DomUtil::readEntry( projectDOM, "general/profile" );
if ( profileName.isEmpty() )
{
- QString language = DomUtil::readEntry( projectDOM, "general/primarylanguage" );
- QStringList keywords = DomUtil::readListEntry( projectDOM, "general/keywords", "keyword" );
+ TQString language = DomUtil::readEntry( projectDOM, "general/primarylanguage" );
+ TQStringList keywords = DomUtil::readListEntry( projectDOM, "general/keywords", "keyword" );
profileName = Settings::profileByAttributes( language, keywords );
}
@@ -177,7 +177,7 @@ void ImportDialog::accept()
ProfileEngine & engine = m_part->pluginController()->engine();
Profile * profile = engine.findProfile( profileName );
- QStringList disableList;
+ TQStringList disableList;
Profile::EntryList disableEntryList = profile->list( Profile::ExplicitDisable );
for ( Profile::EntryList::const_iterator it = disableEntryList.constBegin(); it != disableEntryList.constEnd(); ++it )
{
@@ -188,25 +188,25 @@ void ImportDialog::accept()
// write the dom back
- QFile dest(dir.filePath(projectName + ".kdevelop"));
+ TQFile dest(dir.filePath(projectName + ".kdevelop"));
if (!dest.open(IO_WriteOnly)) {
KMessageBox::sorry(this, i18n("Cannot write the project file."));
return;
}
- QTextStream ts( &dest );
- ts.setEncoding(QTextStream::UnicodeUTF8);
+ TQTextStream ts( &dest );
+ ts.setEncoding(TQTextStream::UnicodeUTF8);
ts << projectDOM.toString(2);
dest.close();
-// QTextStream srcstream(&src);
-// QTextStream deststream(&dest);
+// TQTextStream srcstream(&src);
+// TQTextStream deststream(&dest);
//
// while (!srcstream.atEnd()) {
-// QString line = srcstream.readLine();
-// line.replace(QRegExp("\\$APPNAMELC\\$"), projectName);
-// line.replace(QRegExp("\\$AUTHOR\\$"), author);
-// line.replace(QRegExp("\\$EMAIL\\$"), email);
+// TQString line = srcstream.readLine();
+// line.replace(TQRegExp("\\$APPNAMELC\\$"), projectName);
+// line.replace(TQRegExp("\\$AUTHOR\\$"), author);
+// line.replace(TQRegExp("\\$EMAIL\\$"), email);
// deststream << line << endl;
// }
//
@@ -217,31 +217,31 @@ void ImportDialog::accept()
kdDebug(9010) << "OPENING PROJECT: " << dir.filePath(projectName + ".kdevelop") << endl;
- QDialog::accept();
+ TQDialog::accept();
}
// Checks if the directory dir and all of its subdirectories
// (one level recursion) have files that follow patterns
// patterns is comma-separated
-static bool dirHasFiles(QDir &dir, const QString &patterns)
+static bool dirHasFiles(TQDir &dir, const TQString &patterns)
{
- QStringList::ConstIterator pit, sit;
+ TQStringList::ConstIterator pit, sit;
- QStringList patternList = QStringList::split(",", patterns);
+ TQStringList patternList = TQStringList::split(",", patterns);
for (pit = patternList.begin(); pit != patternList.end(); ++pit) {
- if (!dir.entryList(*pit, QDir::Files).isEmpty()) {
+ if (!dir.entryList(*pit, TQDir::Files).isEmpty()) {
kdDebug(9010) << "Has files " << (*pit) << endl;
return true;
}
}
- QStringList subdirList = dir.entryList("*", QDir::Dirs);
+ TQStringList subdirList = dir.entryList("*", TQDir::Dirs);
for (sit = subdirList.begin(); sit != subdirList.end(); ++sit) {
- QDir subdir(dir);
+ TQDir subdir(dir);
subdir.cd(*sit);
for (pit = patternList.begin(); pit != patternList.end(); ++pit) {
- if (!subdir.entryList(*pit, QDir::Files).isEmpty()) {
+ if (!subdir.entryList(*pit, TQDir::Files).isEmpty()) {
kdDebug(9010) << "Has files " << (*pit) << " in " << (*sit) << endl;
return true;
}
@@ -255,12 +255,12 @@ static bool dirHasFiles(QDir &dir, const QString &patterns)
void ImportDialog::dirChanged()
{
kdDebug(9010) << "ImportDialog::dirChanged" << endl;
- QString dirName = urlinput_edit->url();
- QDir dir(dirName);
+ TQString dirName = urlinput_edit->url();
+ TQDir dir(dirName);
if (!dir.exists())
return;
- if ( dirName.contains( QRegExp("\\s") ) )
+ if ( dirName.contains( TQRegExp("\\s") ) )
{
ok_button->setEnabled( false );
return;
@@ -270,7 +270,7 @@ void ImportDialog::dirChanged()
}
// KDevelop legacy project?
- QStringList files = dir.entryList("*.kdevprj");
+ TQStringList files = dir.entryList("*.kdevprj");
if (!files.isEmpty()) {
scanLegacyKDevelopProject(dir.absFilePath(files.first()));
return;
@@ -290,7 +290,7 @@ void ImportDialog::dirChanged()
}
// Remove any characters from the dirName that would be invalid in a project name
- QString projectName(dir.dirName().replace(QRegExp("[^a-zA-Z0-9_]"), "_"));
+ TQString projectName(dir.dirName().replace(TQRegExp("[^a-zA-Z0-9_]"), "_"));
// Set the project name
name_edit->setText(projectName);
@@ -328,7 +328,7 @@ void ImportDialog::dirChanged()
}
-void ImportDialog::scanLegacyKDevelopProject(const QString &fileName)
+void ImportDialog::scanLegacyKDevelopProject(const TQString &fileName)
{
kdDebug(9010) << "Scanning legacy KDevelop project file " << fileName << endl;
@@ -338,8 +338,8 @@ void ImportDialog::scanLegacyKDevelopProject(const QString &fileName)
email_edit->setText(config.readEntry("email"));
name_edit->setText(config.readEntry("project_name"));
- QString legacyType = config.readEntry("project_type");
- if (QStringList::split(",", "normal_kde,normal_kde2,kde2_normal,mdi_kde2").contains(legacyType))
+ TQString legacyType = config.readEntry("project_type");
+ if (TQStringList::split(",", "normal_kde,normal_kde2,kde2_normal,mdi_kde2").contains(legacyType))
setProjectType("kde");
else if (legacyType == "normal_gnome")
setProjectType("gnome");
@@ -350,7 +350,7 @@ void ImportDialog::scanLegacyKDevelopProject(const QString &fileName)
}
-void ImportDialog::scanLegacyStudioProject(const QString &fileName)
+void ImportDialog::scanLegacyStudioProject(const TQString &fileName)
{
kdDebug(9010) << "Scanning legacy studio project file " << fileName << endl;
@@ -361,15 +361,15 @@ void ImportDialog::scanLegacyStudioProject(const QString &fileName)
}
-void ImportDialog::scanAutomakeProject(const QString &dirName)
+void ImportDialog::scanAutomakeProject(const TQString &dirName)
{
kdDebug(9010) << "Scanning automake project directory " << dirName << endl;
bool stop = false;
- if (QFile::exists(dirName + "/admin/am_edit")) {
+ if (TQFile::exists(dirName + "/admin/am_edit")) {
setProjectType("kde");
stop = true;
- } else if (QFile::exists(dirName + "/macros/gnome.m4")) {
+ } else if (TQFile::exists(dirName + "/macros/gnome.m4")) {
setProjectType("gnome");
stop = true;
} else {
@@ -377,13 +377,13 @@ void ImportDialog::scanAutomakeProject(const QString &dirName)
}
// if we get an authors file, use it.
- QFile af(dirName + "/AUTHORS");
+ TQFile af(dirName + "/AUTHORS");
if (af.open(IO_ReadOnly)){
- QTextStream astream(&af);
+ TQTextStream astream(&af);
- QRegExp authorre("(.*)<(.*)>");
+ TQRegExp authorre("(.*)<(.*)>");
while (!astream.atEnd()) {
- QString s = astream.readLine();
+ TQString s = astream.readLine();
if (authorre.search(s) != -1) {
author_edit->setText(authorre.cap(1).stripWhiteSpace());
email_edit->setText(authorre.cap(2).stripWhiteSpace());
@@ -396,30 +396,30 @@ void ImportDialog::scanAutomakeProject(const QString &dirName)
// we ignore old AC_INIT that had no version..
// only match the if there is a comma and at least two args..
// AC_INIT (package, version, [bug-report], [tarname])
- QRegExp ac_init("^AC_INIT\\s*\\(\\s*([^,]+),([^,\\)]+)(.*)");
+ TQRegExp ac_init("^AC_INIT\\s*\\(\\s*([^,]+),([^,\\)]+)(.*)");
// AM_INIT_AUTOMAKE([OPTIONS])
// example: AM_INIT_AUTOMAKE([gnits 1.5 no-define dist-bzip2])
- QRegExp am_autoSpace("^AM_INIT_AUTOMAKE\\s{0,}\\(\\s{0,}([\\[\\s]{0,}[^\\s]+)\\s+([^\\s\\)\\]]+)(.*)");
+ TQRegExp am_autoSpace("^AM_INIT_AUTOMAKE\\s{0,}\\(\\s{0,}([\\[\\s]{0,}[^\\s]+)\\s+([^\\s\\)\\]]+)(.*)");
// AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
- QRegExp am_autoComma("^AM_INIT_AUTOMAKE\\s*\\(\\s*([^,]+),([^,\\)]+)(.*)");
+ TQRegExp am_autoComma("^AM_INIT_AUTOMAKE\\s*\\(\\s*([^,]+),([^,\\)]+)(.*)");
// look for version in a define.
// AC_DEFINE(VERSION, "5.6")
- QRegExp ac_define("^AC_DEFINE\\s*\\(\\s*[^,]+,([^\\)]+)");
- QRegExp version("(\\bversion\\b)");
+ TQRegExp ac_define("^AC_DEFINE\\s*\\(\\s*[^,]+,([^\\)]+)");
+ TQRegExp version("(\\bversion\\b)");
version.setCaseSensitive(FALSE);
- QTextStream cstream;
+ TQTextStream cstream;
// try for configure.in.in, configure.in, then configure.ac
- QFile configInIn(dirName + "/configure.in.in");
- QFile configIn(dirName+"/configure.in");
- QFile configAc(dirName+"/configure.ac");
+ TQFile configInIn(dirName + "/configure.in.in");
+ TQFile configIn(dirName+"/configure.in");
+ TQFile configAc(dirName+"/configure.ac");
if (configInIn.open(IO_ReadOnly)){
cstream.setDevice(&configInIn);
while (!cstream.atEnd()) {
- QString line = cstream.readLine();
+ TQString line = cstream.readLine();
if ( ac_init.search(line) >= 0){
projectVersion=ac_init.cap(2).stripWhiteSpace();
}
@@ -448,11 +448,11 @@ void ImportDialog::scanAutomakeProject(const QString &dirName)
}
}
- QRegExp namere("\\s*AM_INIT_AUTOMAKE\\((.*),.*\\).*");
- QRegExp cppre("\\s*AC_PROG_CXX");
- QRegExp f77re("\\s*AC_PROG_F77");
+ TQRegExp namere("\\s*AM_INIT_AUTOMAKE\\((.*),.*\\).*");
+ TQRegExp cppre("\\s*AC_PROG_CXX");
+ TQRegExp f77re("\\s*AC_PROG_F77");
while (!cstream.atEnd()) {
- QString line = cstream.readLine();
+ TQString line = cstream.readLine();
if ( ac_init.search(line) >= 0){
projectVersion=ac_init.cap(2).stripWhiteSpace();
}
@@ -481,14 +481,14 @@ void ImportDialog::scanAutomakeProject(const QString &dirName)
}
-void ImportDialog::setProjectType(const QString &type)
+void ImportDialog::setProjectType(const TQString &type)
{
kdDebug(9010) << "Setting project type " << type << endl;
- QString suffix = "/" + type;
+ TQString suffix = "/" + type;
int suffixLength = suffix.length();
int i=0;
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for (it = importNames.begin(); it != importNames.end(); ++it) {
if ((*it).right(suffixLength) == suffix) {
project_combo->setCurrentItem(i);
@@ -512,7 +512,7 @@ void ImportDialog::scanAvailableVCS()
}
*/
/*
-void ImportDialog::slotFinishedCheckout( QString destinationDir )
+void ImportDialog::slotFinishedCheckout( TQString destinationDir )
{
urlinput_edit->setURL( destinationDir );
@@ -531,8 +531,8 @@ void ImportDialog::slotFetchModulesFromRepository()
setCursor( KCursor::waitCursor() );
// setEnabled( false );
- connect( vcs, SIGNAL(finishedFetching(QString)),
- this, SLOT(slotFinishedCheckout(QString)) );
+ connect( vcs, TQT_SIGNAL(finishedFetching(TQString)),
+ this, TQT_SLOT(slotFinishedCheckout(TQString)) );
//restore cursor if we can't fetch repository
if ( !vcs->fetchFromRepository() )
@@ -540,7 +540,7 @@ void ImportDialog::slotFetchModulesFromRepository()
}
*/
-void ImportDialog::projectTypeChanged( const QString &type )
+void ImportDialog::projectTypeChanged( const TQString &type )
{
if (m_infrastructure[type].isOn)
{
@@ -561,14 +561,14 @@ void ImportDialog::createProjectInfrastructure( )
if (!cmd.isOn)
return;
- QDir dir (urlinput_edit->url());
- QStringList files = dir.entryList(cmd.existingPattern);
+ TQDir dir (urlinput_edit->url());
+ TQStringList files = dir.entryList(cmd.existingPattern);
if (!files.isEmpty()) {
- if (KMessageBox::questionYesNo(this, i18n("Project infrastrucure already exists in target directory.\nGenerate new project infrastructure and overwrite old?"), QString::null, i18n("Generate"), i18n("Do Not Generate")) == KMessageBox::No)
+ if (KMessageBox::questionYesNo(this, i18n("Project infrastrucure already exists in target directory.\nGenerate new project infrastructure and overwrite old?"), TQString::null, i18n("Generate"), i18n("Do Not Generate")) == KMessageBox::No)
return;
}
- QString command = "cd " + urlinput_edit->url() + " && " + cmd.command;
+ TQString command = "cd " + urlinput_edit->url() + " && " + cmd.command;
kdDebug(9010) << "executing " << command.ascii() << endl;
system(command.ascii());
}
diff --git a/parts/appwizard/importdlg.h b/parts/appwizard/importdlg.h
index daa136b6..35772133 100644
--- a/parts/appwizard/importdlg.h
+++ b/parts/appwizard/importdlg.h
@@ -13,16 +13,16 @@
#define _IMPORTDLG_H_
#include "importdlgbase.h"
-#include <qstringlist.h>
+#include <tqstringlist.h>
class AppWizardPart;
struct InfrastructureCmd{
bool isOn;
- QString comment;
- QString command;
- QString existingPattern;
+ TQString comment;
+ TQString command;
+ TQString existingPattern;
};
class ImportDialog : public ImportDialogBase
@@ -30,7 +30,7 @@ class ImportDialog : public ImportDialogBase
Q_OBJECT
public:
- ImportDialog( AppWizardPart *part, QWidget *parent=0, const char *name=0 );
+ ImportDialog( AppWizardPart *part, TQWidget *parent=0, const char *name=0 );
~ImportDialog();
protected:
@@ -38,27 +38,27 @@ protected:
protected slots:
virtual void dirChanged();
- virtual void projectTypeChanged(const QString &type);
+ virtual void projectTypeChanged(const TQString &type);
virtual void projectTypeChanged(int type);
private slots:
-// void slotFinishedCheckout( QString destinationDir );
+// void slotFinishedCheckout( TQString destinationDir );
// void slotFetchModulesFromRepository();
- void slotProjectNameChanged( const QString &_text );
+ void slotProjectNameChanged( const TQString &_text );
private:
// void scanAvailableVCS();
- void scanLegacyKDevelopProject(const QString &fileName);
- void scanLegacyStudioProject(const QString &fileName);
- void scanAutomakeProject(const QString &dirName);
- void setProjectType(const QString &type);
+ void scanLegacyKDevelopProject(const TQString &fileName);
+ void scanLegacyStudioProject(const TQString &fileName);
+ void scanAutomakeProject(const TQString &dirName);
+ void setProjectType(const TQString &type);
void createProjectInfrastructure();
- QStringList importNames;
+ TQStringList importNames;
AppWizardPart *m_part;
- QString projectVersion;
+ TQString projectVersion;
- QMap<QString, InfrastructureCmd> m_infrastructure;
+ TQMap<TQString, InfrastructureCmd> m_infrastructure;
};
#endif
diff --git a/parts/appwizard/kdevfile.cpp b/parts/appwizard/kdevfile.cpp
index 12e4826f..4edb62c7 100644
--- a/parts/appwizard/kdevfile.cpp
+++ b/parts/appwizard/kdevfile.cpp
@@ -40,7 +40,7 @@ static struct MimeTypeMapping
{ NULL, KDevFile::NoCommenting }
};
-KDevFile::CommentingStyle KDevFile::commentingStyleFromMimeType( const QString& mimeType )
+KDevFile::CommentingStyle KDevFile::commentingStyleFromMimeType( const TQString& mimeType )
{
int idx = 0;
while( mimeTypeMapping[idx].szMimeType )
diff --git a/parts/appwizard/kdevfile.h b/parts/appwizard/kdevfile.h
index ea822357..6b2e2699 100644
--- a/parts/appwizard/kdevfile.h
+++ b/parts/appwizard/kdevfile.h
@@ -47,7 +47,7 @@ public:
public:
/**@return A commenting style for a given mime type.
@param mimeType A string which defines a mime type (like "text/x-c+++src").*/
- static CommentingStyle commentingStyleFromMimeType(const QString& mimeType);
+ static CommentingStyle commentingStyleFromMimeType(const TQString& mimeType);
/**@return A commenting style for a given mime type.
@param mimeType The mime type.*/
diff --git a/parts/appwizard/kdevlicense.cpp b/parts/appwizard/kdevlicense.cpp
index 6987a54d..5e189422 100644
--- a/parts/appwizard/kdevlicense.cpp
+++ b/parts/appwizard/kdevlicense.cpp
@@ -18,23 +18,23 @@
*/
#include "kdevlicense.h"
-#include <qfile.h>
-#include <qdatetime.h>
-#include <qregexp.h>
+#include <tqfile.h>
+#include <tqdatetime.h>
+#include <tqregexp.h>
-KDevLicense::KDevLicense( const QString& name, const QString& fileName )
+KDevLicense::KDevLicense( const TQString& name, const TQString& fileName )
: m_name( name )
{
readFile( fileName );
}
-void KDevLicense::readFile( const QString& fileName )
+void KDevLicense::readFile( const TQString& fileName )
{
- QFile f(fileName);
+ TQFile f(fileName);
if (!f.open(IO_ReadOnly))
return;
- QTextStream stream(&f);
- QString str;
+ TQTextStream stream(&f);
+ TQString str;
enum { readingText, readingFiles } mode = readingText;
for(;;)
{
@@ -57,25 +57,25 @@ void KDevLicense::readFile( const QString& fileName )
}
-QString KDevLicense::assemble( KDevFile::CommentingStyle commentingStyle, const QString& author, const QString& email, int leadingSpaces )
+TQString KDevLicense::assemble( KDevFile::CommentingStyle commentingStyle, const TQString& author, const TQString& email, int leadingSpaces )
{
// first, build a CPP Style license
- QString strFill;
+ TQString strFill;
strFill.fill( ' ', leadingSpaces );
- QString str =
+ TQString str =
strFill + "/***************************************************************************\n" +
strFill + " * Copyright (C) $YEAR$ by $AUTHOR$ *\n" +
strFill + " * $EMAIL$ *\n" +
strFill + " * *\n";
-// str = str.arg(QDate::currentDate().year()).arg(author.left(45),-45).arg(email.left(67),-67);
+// str = str.arg(TQDate::currentDate().year()).arg(author.left(45),-45).arg(email.left(67),-67);
- QStringList::Iterator it;
+ TQStringList::Iterator it;
for( it = m_rawLines.begin(); it != m_rawLines.end(); ++it )
{
- str += QString( "%1 * %2 *\n").arg( strFill ).arg( *it, -69 );
+ str += TQString( "%1 * %2 *\n").arg( strFill ).arg( *it, -69 );
}
str += strFill + " ***************************************************************************/\n";
@@ -87,28 +87,28 @@ QString KDevLicense::assemble( KDevFile::CommentingStyle commentingStyle, const
return str;
case KDevFile::PascalStyle:
- str.replace(QRegExp("/\\**\n \\*"), "{\n ");
- str.replace(QRegExp("\\*\n \\*"), " \n ");
- str.replace(QRegExp(" *\\**/\n"), "}\n");
+ str.replace(TQRegExp("/\\**\n \\*"), "{\n ");
+ str.replace(TQRegExp("\\*\n \\*"), " \n ");
+ str.replace(TQRegExp(" *\\**/\n"), "}\n");
return str;
case KDevFile::AdaStyle:
- str.replace(QRegExp("/\\*"), "--");
- str.replace(QRegExp(" \\*"), "--");
- str.replace(QRegExp("\\*/"), "*");
+ str.replace(TQRegExp("/\\*"), "--");
+ str.replace(TQRegExp(" \\*"), "--");
+ str.replace(TQRegExp("\\*/"), "*");
return str;
case KDevFile::BashStyle:
- str.replace(QRegExp("\\*|/"), "#");
- str.replace(QRegExp("\n ##"), "\n##");
- str.replace(QRegExp("\n #"), "\n# ");
+ str.replace(TQRegExp("\\*|/"), "#");
+ str.replace(TQRegExp("\n ##"), "\n##");
+ str.replace(TQRegExp("\n #"), "\n# ");
return str;
case KDevFile::XMLStyle:
- str.replace(QRegExp("/\\*"), "<!--");
- str.replace(QRegExp("\n \\*"), "\n<!--");
- str.replace(QRegExp("\\*/?\n"), "-->\n");
- str.replace(QRegExp("\\*"), "_");
+ str.replace(TQRegExp("/\\*"), "<!--");
+ str.replace(TQRegExp("\n \\*"), "\n<!--");
+ str.replace(TQRegExp("\\*/?\n"), "-->\n");
+ str.replace(TQRegExp("\\*"), "_");
return str;
}
diff --git a/parts/appwizard/kdevlicense.h b/parts/appwizard/kdevlicense.h
index 0f8a41ce..2e81c9ec 100644
--- a/parts/appwizard/kdevlicense.h
+++ b/parts/appwizard/kdevlicense.h
@@ -24,7 +24,7 @@
The interface to installed licenses.
*/
-#include <qstringlist.h>
+#include <tqstringlist.h>
#include "kdevfile.h"
@@ -35,41 +35,41 @@ public:
/**Constructs a KDevLicense and loads the given license template file.
@param name The name of this license.
@param fileName The file name where license template text is kept.*/
- KDevLicense(const QString& name, const QString& fileName);
+ KDevLicense(const TQString& name, const TQString& fileName);
public:
/**Assembles the license to a string suitable for replacement of a %{LICENSE} .*/
- QString assemble(KDevFile::CommentingStyle commentingStyle, const QString& author, const QString& email, int leadingSpaces );
+ TQString assemble(KDevFile::CommentingStyle commentingStyle, const TQString& author, const TQString& email, int leadingSpaces );
/**
* returns the name of this license.
*/
- QString name() const { return m_name; }
+ TQString name() const { return m_name; }
/**
* returns list of files tat must be present in the project's root directory
* if any source files uses this license.
*/
- QStringList copyFiles(){ return m_copyFiles; }
+ TQStringList copyFiles(){ return m_copyFiles; }
private:
- void readFile( const QString& fileName );
+ void readFile( const TQString& fileName );
private:
/**
* Name of this license
*/
- QString m_name;
+ TQString m_name;
/**
* Raw lines of the license. Should contain no spaces at
* the start or end of each line.
*/
- QStringList m_rawLines;
+ TQStringList m_rawLines;
/**
* List of files that must be added to the project, if any
* file in the project uses this license.
*/
- QStringList m_copyFiles;
+ TQStringList m_copyFiles;
};
#endif
diff --git a/parts/appwizard/misc.cpp b/parts/appwizard/misc.cpp
index 3590b589..63d670b5 100644
--- a/parts/appwizard/misc.cpp
+++ b/parts/appwizard/misc.cpp
@@ -11,7 +11,7 @@
#include "misc.h"
-#include <qstring.h>
+#include <tqstring.h>
#include <kemailsettings.h>
#include <pwd.h>
@@ -21,12 +21,12 @@
#include <kstandarddirs.h>
#include <kconfig.h>
-void AppWizardUtil::guessAuthorAndEmail(QString *author, QString *email)
+void AppWizardUtil::guessAuthorAndEmail(TQString *author, TQString *email)
{
KEMailSettings emailConfig;
emailConfig.setProfile( emailConfig.defaultProfileName() );
- QString fromAddr = emailConfig.getSetting( KEMailSettings::EmailAddress );
- QString name = emailConfig.getSetting( KEMailSettings::RealName );
+ TQString fromAddr = emailConfig.getSetting( KEMailSettings::EmailAddress );
+ TQString name = emailConfig.getSetting( KEMailSettings::RealName );
if ( !fromAddr.isEmpty() && !name.isEmpty() ) {
*author = name;
@@ -45,11 +45,11 @@ void AppWizardUtil::guessAuthorAndEmail(QString *author, QString *email)
(void) ::gethostname(hostname, sizeof hostname);
if ( name.isEmpty() )
- *author = QString::fromLocal8Bit( pw->pw_gecos );
+ *author = TQString::fromLocal8Bit( pw->pw_gecos );
else
*author = name;
if ( fromAddr.isEmpty() )
- *email = QString(pw->pw_name) + "@" + hostname;
+ *email = TQString(pw->pw_name) + "@" + hostname;
else
*email = fromAddr;
}
diff --git a/parts/appwizard/misc.h b/parts/appwizard/misc.h
index 1378943b..8d9402b3 100644
--- a/parts/appwizard/misc.h
+++ b/parts/appwizard/misc.h
@@ -12,12 +12,12 @@
#ifndef _MISC_H_
#define _MISC_H_
-#include <qstring.h>
+#include <tqstring.h>
class AppWizardUtil
{
public:
- static void guessAuthorAndEmail(QString *author, QString *email);
+ static void guessAuthorAndEmail(TQString *author, TQString *email);
};
#endif
diff --git a/parts/appwizard/profilesupport.cpp b/parts/appwizard/profilesupport.cpp
index e50e5535..084156f5 100644
--- a/parts/appwizard/profilesupport.cpp
+++ b/parts/appwizard/profilesupport.cpp
@@ -19,7 +19,7 @@
***************************************************************************/
#include "profilesupport.h"
-#include <qfileinfo.h>
+#include <tqfileinfo.h>
#include <kdebug.h>
#include <kconfig.h>
@@ -38,7 +38,7 @@ ProfileSupport::ProfileSupport(KDevPlugin *parent)
}
}
-bool ProfileSupport::isInTemplateList(const QString &templateUrl)
+bool ProfileSupport::isInTemplateList(const TQString &templateUrl)
{
- return m_templateList.contains(QFileInfo(templateUrl).baseName());
+ return m_templateList.contains(TQFileInfo(templateUrl).baseName());
}
diff --git a/parts/appwizard/profilesupport.h b/parts/appwizard/profilesupport.h
index f3b89ac8..b18a9620 100644
--- a/parts/appwizard/profilesupport.h
+++ b/parts/appwizard/profilesupport.h
@@ -25,10 +25,10 @@
class ProfileSupport{
public:
ProfileSupport(KDevPlugin *parent);
- bool isInTemplateList(const QString &templateUrl);
+ bool isInTemplateList(const TQString &templateUrl);
private:
- QStringList m_templateList;
+ TQStringList m_templateList;
};
#endif
diff --git a/parts/astyle/astyle_adaptor.cpp b/parts/astyle/astyle_adaptor.cpp
index 124da96e..6d6d44b6 100644
--- a/parts/astyle/astyle_adaptor.cpp
+++ b/parts/astyle/astyle_adaptor.cpp
@@ -4,19 +4,19 @@
#include <string>
-#include <qradiobutton.h>
-#include <qspinbox.h>
-#include <qcheckbox.h>
+#include <tqradiobutton.h>
+#include <tqspinbox.h>
+#include <tqcheckbox.h>
#include <kdebug.h>
#include <kapplication.h>
#include <kconfig.h>
-ASStringIterator::ASStringIterator(const QString &text)
+ASStringIterator::ASStringIterator(const TQString &text)
: ASSourceIterator(), _content(text)
{
- _is = new QTextStream(&_content, IO_ReadOnly);
+ _is = new TQTextStream(&_content, IO_ReadOnly);
}
@@ -38,9 +38,9 @@ string ASStringIterator::nextLine()
}
-KDevFormatter::KDevFormatter(const QMap<QString, QVariant>& options)
+KDevFormatter::KDevFormatter(const TQMap<TQString, TQVariant>& options)
{
-// for ( QMap<QString, QVariant>::ConstIterator iter = options.begin();iter != options.end();iter++ )
+// for ( TQMap<TQString, TQVariant>::ConstIterator iter = options.begin();iter != options.end();iter++ )
// {
// kdDebug ( 9009 ) << "format: " << iter.key() << "=" << iter.data() << endl;
// }
@@ -48,7 +48,7 @@ KDevFormatter::KDevFormatter(const QMap<QString, QVariant>& options)
setCStyle();
// style
- QString s = options["FStyle"].toString();
+ TQString s = options["FStyle"].toString();
if ( predefinedStyle( s ) )
{
return;
@@ -215,7 +215,7 @@ KDevFormatter::KDevFormatter( AStyleWidget * widget )
setSingleStatementsMode( !widget->Keep_Statements->isChecked() );
}
-bool KDevFormatter::predefinedStyle( const QString & style )
+bool KDevFormatter::predefinedStyle( const TQString & style )
{
if (style == "ANSI")
{
diff --git a/parts/astyle/astyle_adaptor.h b/parts/astyle/astyle_adaptor.h
index 2367c4d7..21398fbb 100644
--- a/parts/astyle/astyle_adaptor.h
+++ b/parts/astyle/astyle_adaptor.h
@@ -2,10 +2,10 @@
#define __ASTYLE_ADAPTOR_H__
-#include <qstring.h>
-#include <qtextstream.h>
-#include <qmap.h>
-#include <qvariant.h>
+#include <tqstring.h>
+#include <tqtextstream.h>
+#include <tqmap.h>
+#include <tqvariant.h>
#include "astyle.h"
@@ -17,7 +17,7 @@ class ASStringIterator : public astyle::ASSourceIterator
{
public:
- ASStringIterator(const QString &string);
+ ASStringIterator(const TQString &string);
virtual ~ASStringIterator();
virtual bool hasMoreLines() const;
@@ -26,8 +26,8 @@ public:
private:
- QString _content;
- QTextStream *_is;
+ TQString _content;
+ TQTextStream *_is;
};
@@ -37,18 +37,18 @@ class KDevFormatter : public astyle::ASFormatter
{
public:
- KDevFormatter(const QMap<QString, QVariant>& options);
+ KDevFormatter(const TQMap<TQString, TQVariant>& options);
KDevFormatter( AStyleWidget * widget );
- QString indentString() const
+ TQString indentString() const
{
return m_indentString;
}
private:
- bool predefinedStyle( const QString & style );
+ bool predefinedStyle( const TQString & style );
private:
- QString m_indentString;
+ TQString m_indentString;
};
diff --git a/parts/astyle/astyle_part.cpp b/parts/astyle/astyle_part.cpp
index 526af170..f89c2b95 100644
--- a/parts/astyle/astyle_part.cpp
+++ b/parts/astyle/astyle_part.cpp
@@ -1,9 +1,9 @@
#include "astyle_part.h"
-#include <qwhatsthis.h>
-#include <qvbox.h>
-#include <qtextstream.h>
-#include <qpopupmenu.h>
+#include <tqwhatsthis.h>
+#include <tqvbox.h>
+#include <tqtextstream.h>
+#include <tqpopupmenu.h>
#include <kdeversion.h>
#include <kdebug.h>
#include <kdialogbase.h>
@@ -27,8 +27,8 @@
#include <kfiledialog.h>
#include <klocale.h>
#include <kmessagebox.h>
-#include <qlineedit.h>
-#include <qregexp.h>
+#include <tqlineedit.h>
+#include <tqregexp.h>
#include "astyle_widget.h"
#include "astyle_adaptor.h"
@@ -43,20 +43,20 @@ namespace {
typedef KDevGenericFactory<AStylePart> AStyleFactory;
K_EXPORT_COMPONENT_FACTORY( libkdevastyle, AStyleFactory( data ) )
-AStylePart::AStylePart(QObject *parent, const char *name, const QStringList &)
+AStylePart::AStylePart(TQObject *parent, const char *name, const TQStringList &)
: KDevSourceFormatter(&data, parent, name ? name : "AStylePart")
{
setInstance(AStyleFactory::instance());
setXMLFile("kdevpart_astyle.rc");
- formatTextAction = new KAction(i18n("&Reformat Source"), 0, this, SLOT(beautifySource()), actionCollection(), "edit_astyle");
+ formatTextAction = new KAction(i18n("&Reformat Source"), 0, this, TQT_SLOT(beautifySource()), actionCollection(), "edit_astyle");
formatTextAction->setEnabled(false);
formatTextAction->setToolTip(i18n("Reformat source"));
formatTextAction->setWhatsThis(i18n("<b>Reformat source</b><p>Source reformatting functionality using <b>astyle</b> library. "
"Also available in <b>New Class</b> and <b>Subclassing</b> wizards."));
- formatFileAction = new KAction(i18n("Format files"), 0, this, SLOT(formatFilesSelect()), actionCollection(), "tools_astyle");
+ formatFileAction = new KAction(i18n("Format files"), 0, this, TQT_SLOT(formatFilesSelect()), actionCollection(), "tools_astyle");
formatFileAction->setEnabled(false);
formatFileAction->setToolTip(i18n("Format files"));
formatFileAction->setWhatsThis(i18n("<b>Fomat files</b><p>Formatting functionality using <b>astyle</b> library. "
@@ -68,11 +68,11 @@ AStylePart::AStylePart(QObject *parent, const char *name, const QStringList &)
m_configProxy->createProjectConfigPage(i18n("Formatting"), PROJECTDOC_OPTIONS, info()->icon());
- connect(m_configProxy, SIGNAL(insertConfigWidget(const KDialogBase* ,QWidget*,unsigned int)), this, SLOT(insertConfigWidget(const KDialogBase*,QWidget*,unsigned int)));
+ connect(m_configProxy, TQT_SIGNAL(insertConfigWidget(const KDialogBase* ,TQWidget*,unsigned int)), this, TQT_SLOT(insertConfigWidget(const KDialogBase*,TQWidget*,unsigned int)));
- connect(partController(), SIGNAL(activePartChanged(KParts::Part*)), this, SLOT(activePartChanged(KParts::Part*)));
+ connect(partController(), TQT_SIGNAL(activePartChanged(KParts::Part*)), this, TQT_SLOT(activePartChanged(KParts::Part*)));
- connect( core(), SIGNAL(contextMenu(QPopupMenu *, const Context *)), this, SLOT(contextMenu(QPopupMenu *, const Context *)) );
+ connect( core(), TQT_SIGNAL(contextMenu(TQPopupMenu *, const Context *)), this, TQT_SLOT(contextMenu(TQPopupMenu *, const Context *)) );
loadGlobal();
//use the globals first, project level will override later..
@@ -90,18 +90,18 @@ void AStylePart::loadGlobal()
// kdDebug(9009) << "Load global"<<endl;
KConfig *config = kapp->config();
config->setGroup("AStyle");
- QString options = config->readEntry("Options","BlockBreak=0,BlockBreakAll=0,BlockIfElse=0,Brackets=Break,BracketsCloseHeaders=0,FStyle=UserDefined,Fill=Tabs,FillCount=4,FillEmptyLines=0,FillForce=0,IndentBlocks=0,IndentBrackets=0,IndentCases=0,IndentClasses=1,IndentLabels=1,IndentNamespaces=1,IndentPreprocessors=0,IndentSwitches=1,KeepBlocks=1,KeepStatements=1,MaxStatement=40,MinConditional=-1,PadOperators=0,PadParenthesesIn=1,PadParenthesesOut=1,PadParenthesesUn=1,");
- m_globalExtensions=QStringList::split(",",config->readEntry("Extensions",defaultFormatExtensions));
+ TQString options = config->readEntry("Options","BlockBreak=0,BlockBreakAll=0,BlockIfElse=0,Brackets=Break,BracketsCloseHeaders=0,FStyle=UserDefined,Fill=Tabs,FillCount=4,FillEmptyLines=0,FillForce=0,IndentBlocks=0,IndentBrackets=0,IndentCases=0,IndentClasses=1,IndentLabels=1,IndentNamespaces=1,IndentPreprocessors=0,IndentSwitches=1,KeepBlocks=1,KeepStatements=1,MaxStatement=40,MinConditional=-1,PadOperators=0,PadParenthesesIn=1,PadParenthesesOut=1,PadParenthesesUn=1,");
+ m_globalExtensions=TQStringList::split(",",config->readEntry("Extensions",defaultFormatExtensions));
- QStringList pairs = QStringList::split( ",", options);
- QStringList::Iterator it;
+ TQStringList pairs = TQStringList::split( ",", options);
+ TQStringList::Iterator it;
for ( it = pairs.begin(); it != pairs.end(); ++it ) {
- QStringList bits = QStringList::split( "=", (*it) );
+ TQStringList bits = TQStringList::split( "=", (*it) );
m_global[bits[0]] = bits[1];
}
-// for (QMap<QString, QVariant>::iterator iter = m_global.begin();iter != m_global.end();iter++)
+// for (TQMap<TQString, TQVariant>::iterator iter = m_global.begin();iter != m_global.end();iter++)
// {
// kdDebug(9009) << "load: " <<iter.key() << "="<< iter.data() << endl;
// }
@@ -109,8 +109,8 @@ void AStylePart::loadGlobal()
void AStylePart::saveGlobal()
{
- QString options;
- for (QMap<QString, QVariant>::iterator iter = m_global.begin();iter != m_global.end();iter++)
+ TQString options;
+ for (TQMap<TQString, TQVariant>::iterator iter = m_global.begin();iter != m_global.end();iter++)
{
// kdDebug(9009) <<"saveGlobal" <<iter.key() << "="<< iter.data() << endl;
options += iter.key();
@@ -118,7 +118,7 @@ void AStylePart::saveGlobal()
options += iter.data().toString();
options += ",";
}
-// for (QMap<QString, QVariant>::iterator iter = m_project.begin();iter != m_project.end();iter++)
+// for (TQMap<TQString, TQVariant>::iterator iter = m_project.begin();iter != m_project.end();iter++)
// {
// kdDebug(9009) << "project before: " <<iter.key() << "="<< iter.data() << endl;
// }
@@ -129,11 +129,11 @@ void AStylePart::saveGlobal()
config->writeEntry("Extensions",m_globalExtensions.join(","));
config->sync();
-// for (QMap<QString, QVariant>::iterator iter = m_global.begin();iter != m_global.end();iter++)
+// for (TQMap<TQString, TQVariant>::iterator iter = m_global.begin();iter != m_global.end();iter++)
// {
// kdDebug(9009) << "global after: " <<iter.key() << "="<< iter.data() << endl;
// }
-// for (QMap<QString, QVariant>::iterator iter = m_project.begin();iter != m_project.end();iter++)
+// for (TQMap<TQString, TQVariant>::iterator iter = m_project.begin();iter != m_project.end();iter++)
// {
// kdDebug(9009) << "project after: " <<iter.key() << "="<< iter.data() << endl;
// }
@@ -165,19 +165,19 @@ void AStylePart::beautifySource()
formatter.init(&is);
- QString output;
- QTextStream os(&output, IO_WriteOnly);
+ TQString output;
+ TQTextStream os(&output, IO_WriteOnly);
// put the selection back to the same indent level.
// taking note of the config options.
unsigned int indentCount=0;
- QString indentWith("");
+ TQString indentWith("");
if ( has_selection){
- QString original = sel_iface->selection();
+ TQString original = sel_iface->selection();
for (;indentCount<original.length();indentCount++){
- QChar ch = original[indentCount];
+ TQChar ch = original[indentCount];
if ( ch.isSpace()){
- if ( ch == QChar('\n') || ch == QChar('\r')){
+ if ( ch == TQChar('\n') || ch == TQChar('\r')){
indentWith="";
}
else{
@@ -193,21 +193,21 @@ void AStylePart::beautifySource()
if (m_project["Fill"].toString() == "Tabs")
{
// tabs and wsCount spaces to be a tab
- QString replace;
+ TQString replace;
for (int i =0;i<wsCount;i++)
replace+=' ';
- indentWith=indentWith.replace(replace, QChar('\t'));
+ indentWith=indentWith.replace(replace, TQChar('\t'));
indentWith=indentWith.remove(' ');
} else
{
if ( m_project["FillForce"].toBool()){
//convert tabs to spaces
- QString replace;
+ TQString replace;
for (int i =0;i<wsCount;i++)
replace+=' ';
- indentWith=indentWith.replace(QChar('\t'),replace);
+ indentWith=indentWith.replace(TQChar('\t'),replace);
}
}
}
@@ -216,7 +216,7 @@ void AStylePart::beautifySource()
if ( has_selection ){
os << indentWith;
}
- os << QString::fromUtf8(formatter.nextLine().c_str()) << endl;
+ os << TQString::fromUtf8(formatter.nextLine().c_str()) << endl;
}
uint col = 0;
@@ -242,31 +242,31 @@ void AStylePart::beautifySource()
setCursorPos( partController()->activePart(), col, line );
}
-void AStylePart::insertConfigWidget(const KDialogBase *dlg, QWidget *page, unsigned int pageNo)
+void AStylePart::insertConfigWidget(const KDialogBase *dlg, TQWidget *page, unsigned int pageNo)
{
switch (pageNo)
{
case GLOBALDOC_OPTIONS:
{
AStyleWidget *w = new AStyleWidget(this, true, page, "astyle config widget");
- connect(dlg, SIGNAL(okClicked()), w, SLOT(accept()));
+ connect(dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()));
break;
}
case PROJECTDOC_OPTIONS:
{
AStyleWidget *w = new AStyleWidget(this, false, page, "astyle config widget");
- connect(dlg, SIGNAL(okClicked()), w, SLOT(accept()));
+ connect(dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()));
break;
}
}
}
-QString AStylePart::getGlobalExtensions(){
- QString values = m_globalExtensions.join("\n");
+TQString AStylePart::getGlobalExtensions(){
+ TQString values = m_globalExtensions.join("\n");
return values.stripWhiteSpace();
}
-QString AStylePart::getProjectExtensions(){
- QString values = m_projectExtensions.join("\n");
+TQString AStylePart::getProjectExtensions(){
+ TQString values = m_projectExtensions.join("\n");
return values.stripWhiteSpace();
}
@@ -277,21 +277,21 @@ QString AStylePart::getProjectExtensions(){
* end up at the top
* @param ext
*/
-void AStylePart::setExtensions ( QString ext, bool global )
+void AStylePart::setExtensions ( TQString ext, bool global )
{
kdDebug(9009) << "setExtensions " << ext<<endl;
if ( global){
m_globalExtensions.clear();
- m_globalExtensions=QStringList::split ( QRegExp("\n"), ext );
+ m_globalExtensions=TQStringList::split ( TQRegExp("\n"), ext );
}
else{
m_searchExtensions.clear();
m_projectExtensions.clear();
- m_projectExtensions = QStringList::split ( QRegExp("\n"), ext );
- QStringList bits = QStringList::split(QRegExp("\\s+"),ext);
- for ( QStringList::Iterator iter = bits.begin(); iter != bits.end(); iter++ )
+ m_projectExtensions = TQStringList::split ( TQRegExp("\n"), ext );
+ TQStringList bits = TQStringList::split(TQRegExp("\\s+"),ext);
+ for ( TQStringList::Iterator iter = bits.begin(); iter != bits.end(); iter++ )
{
- QString ending=*iter;
+ TQString ending=*iter;
if ( ending.startsWith ( "*" ) )
{
if (ending.length() ==1 ){
@@ -325,7 +325,7 @@ void AStylePart::activePartChanged ( KParts::Part *part )
// check for the everything case..
if ( m_searchExtensions.find ( "*" ) == m_searchExtensions.end() )
{
- QString extension = rw_part->url().path();
+ TQString extension = rw_part->url().path();
int pos = extension.findRev ( '.' );
if ( pos >= 0 )
{
@@ -343,18 +343,18 @@ void AStylePart::activePartChanged ( KParts::Part *part )
formatTextAction->setEnabled ( enabled );
}
-QString AStylePart::formatSource( const QString text, AStyleWidget * widget, const QMap<QString, QVariant>& options )
+TQString AStylePart::formatSource( const TQString text, AStyleWidget * widget, const TQMap<TQString, TQVariant>& options )
{
ASStringIterator is(text);
KDevFormatter * formatter = ( widget)? new KDevFormatter( widget ) : new KDevFormatter(options);
formatter->init(&is);
- QString output;
- QTextStream os(&output, IO_WriteOnly);
+ TQString output;
+ TQTextStream os(&output, IO_WriteOnly);
while ( formatter->hasMoreLines() )
- os << QString::fromUtf8( formatter->nextLine().c_str() ) << endl;
+ os << TQString::fromUtf8( formatter->nextLine().c_str() ) << endl;
delete formatter;
@@ -383,23 +383,23 @@ void AStylePart::setCursorPos( KParts::Part *part, uint line, uint col )
}
}
-QString AStylePart::formatSource( const QString text )
+TQString AStylePart::formatSource( const TQString text )
{
return formatSource(text, 0, m_project);
}
-QString AStylePart::indentString( ) const
+TQString AStylePart::indentString( ) const
{
KDevFormatter formatter(m_project);
return formatter.indentString();
}
-void AStylePart::contextMenu(QPopupMenu *popup, const Context *context)
+void AStylePart::contextMenu(TQPopupMenu *popup, const Context *context)
{
if (context->hasType( Context::EditorContext ))
{
popup->insertSeparator();
- int id = popup->insertItem( i18n("Format selection"), this, SLOT(beautifySource()) );
+ int id = popup->insertItem( i18n("Format selection"), this, TQT_SLOT(beautifySource()) );
popup->setWhatsThis(id, i18n("<b>Format</b><p>Formats the current selection, if possible"));
}
else if ( context->hasType( Context::FileContext )){
@@ -407,16 +407,16 @@ void AStylePart::contextMenu(QPopupMenu *popup, const Context *context)
m_urls = ctx->urls();
popup->insertSeparator();
- int id = popup->insertItem( i18n("Format files"), this, SLOT(formatFiles()) );
+ int id = popup->insertItem( i18n("Format files"), this, TQT_SLOT(formatFiles()) );
popup->setWhatsThis(id, i18n("<b>Format files</b><p>Formats selected files if possible"));
}
}
-void AStylePart::restorePartialProjectSession(const QDomElement * el)
+void AStylePart::restorePartialProjectSession(const TQDomElement * el)
{
kdDebug(9009) << "Load project" << endl;
- QDomElement style = el->namedItem("AStyle").toElement();
+ TQDomElement style = el->namedItem("AStyle").toElement();
if (style.attribute("FStyle", "GLOBAL") == "GLOBAL")
{
@@ -426,36 +426,36 @@ void AStylePart::restorePartialProjectSession(const QDomElement * el)
}
else
{
- for (QMap<QString, QVariant>::iterator iter = m_global.begin();iter != m_global.end();iter++)
+ for (TQMap<TQString, TQVariant>::iterator iter = m_global.begin();iter != m_global.end();iter++)
{
m_project[iter.key()] = style.attribute(iter.key(),iter.data().toString());
}
- QDomElement exten = el->namedItem("Extensions").toElement();
- QString ext = exten.attribute("ext").simplifyWhiteSpace();
+ TQDomElement exten = el->namedItem("Extensions").toElement();
+ TQString ext = exten.attribute("ext").simplifyWhiteSpace();
if ( ext.isEmpty()){
ext=defaultFormatExtensions;
}
- setExtensions(ext.replace(QChar(','), QChar('\n')),false);
+ setExtensions(ext.replace(TQChar(','), TQChar('\n')),false);
}
}
-void AStylePart::savePartialProjectSession(QDomElement * el)
+void AStylePart::savePartialProjectSession(TQDomElement * el)
{
- QDomDocument domDoc = el->ownerDocument();
+ TQDomDocument domDoc = el->ownerDocument();
if (domDoc.isNull())
return;
- QDomElement style = domDoc.createElement("AStyle");
+ TQDomElement style = domDoc.createElement("AStyle");
style.setAttribute("FStyle", m_project["FStyle"].toString());
if (m_project["FStyle"] != "GLOBAL")
{
- for (QMap<QString, QVariant>::iterator iter = m_project.begin();iter != m_project.end();iter++)
+ for (TQMap<TQString, TQVariant>::iterator iter = m_project.begin();iter != m_project.end();iter++)
{
style.setAttribute(iter.key(),iter.data().toString());
}
- QDomElement exten = domDoc.createElement ( "Extensions" );
+ TQDomElement exten = domDoc.createElement ( "Extensions" );
exten.setAttribute ( "ext", m_projectExtensions.join(",").simplifyWhiteSpace() );
el->appendChild(exten);
}
@@ -464,9 +464,9 @@ void AStylePart::savePartialProjectSession(QDomElement * el)
void AStylePart::formatFilesSelect(){
m_urls.clear();
- QStringList filenames = KFileDialog::getOpenFileNames ( QString::null, getProjectExtensions(),0,"Select files to format" );
+ TQStringList filenames = KFileDialog::getOpenFileNames ( TQString::null, getProjectExtensions(),0,"Select files to format" );
- for(QStringList::Iterator it = filenames.begin(); it != filenames.end();it++){
+ for(TQStringList::Iterator it = filenames.begin(); it != filenames.end();it++){
m_urls << *it;
}
formatFiles();
@@ -488,12 +488,12 @@ void AStylePart::formatFiles()
uint processed = 0;
for ( uint fileCount = 0; fileCount < m_urls.size(); fileCount++ )
{
- QString fileName = m_urls[fileCount].pathOrURL();
+ TQString fileName = m_urls[fileCount].pathOrURL();
bool found = false;
- for ( QMap<QString, QString>::Iterator it = m_searchExtensions.begin(); it != m_searchExtensions.end(); ++it )
+ for ( TQMap<TQString, TQString>::Iterator it = m_searchExtensions.begin(); it != m_searchExtensions.end(); ++it )
{
- QRegExp re ( it.data(), true, true );
+ TQRegExp re ( it.data(), true, true );
if ( re.search ( fileName ) == 0 && ( uint ) re.matchedLength() == fileName.length() )
{
found = true;
@@ -503,19 +503,19 @@ void AStylePart::formatFiles()
if ( found )
{
- QString backup = fileName + "#";
- QFile fin ( fileName );
- QFile fout ( backup );
+ TQString backup = fileName + "#";
+ TQFile fin ( fileName );
+ TQFile fout ( backup );
if ( fin.open ( IO_ReadOnly ) )
{
if ( fout.open ( IO_WriteOnly ) )
{
- QString fileContents ( fin.readAll() );
+ TQString fileContents ( fin.readAll() );
fin.close();
- QTextStream outstream ( &fout );
+ TQTextStream outstream ( &fout );
outstream << formatSource ( fileContents );
fout.close();
- QDir().rename ( backup, fileName );
+ TQDir().rename ( backup, fileName );
processed++;
}
else
diff --git a/parts/astyle/astyle_part.h b/parts/astyle/astyle_part.h
index bf572dcc..377a2b85 100644
--- a/parts/astyle/astyle_part.h
+++ b/parts/astyle/astyle_part.h
@@ -12,8 +12,8 @@ class KDialogBase;
#include <kparts/part.h>
#include <kdevplugin.h>
#include <kdebug.h>
-#include <qmap.h>
-#include <qvariant.h>
+#include <tqmap.h>
+#include <tqvariant.h>
class AStyleWidget;
class QPopupMenu;
@@ -26,21 +26,21 @@ class AStylePart : public KDevSourceFormatter
public:
- AStylePart(QObject *parent, const char *name, const QStringList &);
+ AStylePart(TQObject *parent, const char *name, const TQStringList &);
~AStylePart();
- QString formatSource(const QString text, AStyleWidget * widget, const QMap<QString, QVariant>& options);
- virtual QString formatSource(const QString text);
- QString indentString() const;
+ TQString formatSource(const TQString text, AStyleWidget * widget, const TQMap<TQString, TQVariant>& options);
+ virtual TQString formatSource(const TQString text);
+ TQString indentString() const;
void saveGlobal();
- void setExtensions(QString ext, bool global);
- QString getProjectExtensions();
- QString getGlobalExtensions();
- void restorePartialProjectSession(const QDomElement * el);
- void savePartialProjectSession(QDomElement * el);
+ void setExtensions(TQString ext, bool global);
+ TQString getProjectExtensions();
+ TQString getGlobalExtensions();
+ void restorePartialProjectSession(const TQDomElement * el);
+ void savePartialProjectSession(TQDomElement * el);
- QMap<QString, QVariant>& getProjectOptions(){return m_project;}
- QMap<QString, QVariant>& getGlobalOptions(){return m_global;}
+ TQMap<TQString, TQVariant>& getProjectOptions(){return m_project;}
+ TQMap<TQString, TQVariant>& getGlobalOptions(){return m_global;}
private slots:
@@ -49,8 +49,8 @@ private slots:
void beautifySource();
void formatFiles();
void formatFilesSelect();
- void insertConfigWidget(const KDialogBase *dlg, QWidget *page, unsigned int pageNo);
- void contextMenu(QPopupMenu *popup, const Context *context);
+ void insertConfigWidget(const KDialogBase *dlg, TQWidget *page, unsigned int pageNo);
+ void contextMenu(TQPopupMenu *popup, const Context *context);
private:
@@ -64,11 +64,11 @@ private:
KAction *formatFileAction;
// the configurable options.
- QMap<QString, QVariant> m_project;
- QMap<QString, QVariant> m_global;
- QStringList m_projectExtensions;
- QStringList m_globalExtensions;
- QMap<QString, QString> m_searchExtensions;
+ TQMap<TQString, TQVariant> m_project;
+ TQMap<TQString, TQVariant> m_global;
+ TQStringList m_projectExtensions;
+ TQStringList m_globalExtensions;
+ TQMap<TQString, TQString> m_searchExtensions;
KURL::List m_urls;
};
diff --git a/parts/astyle/astyle_widget.cpp b/parts/astyle/astyle_widget.cpp
index 0622b91b..0cb26abb 100644
--- a/parts/astyle/astyle_widget.cpp
+++ b/parts/astyle/astyle_widget.cpp
@@ -1,59 +1,59 @@
#include "astyle_part.h"
#include "astyle_widget.h"
-#include <qradiobutton.h>
-#include <qtabwidget.h>
-#include <qmultilineedit.h>
-#include <qbuttongroup.h>
-#include <qpushbutton.h>
-#include <qcheckbox.h>
-#include <qspinbox.h>
+#include <tqradiobutton.h>
+#include <tqtabwidget.h>
+#include <tqmultilineedit.h>
+#include <tqbuttongroup.h>
+#include <tqpushbutton.h>
+#include <tqcheckbox.h>
+#include <tqspinbox.h>
#include <kapplication.h>
#include <kdebug.h>
#include <kdevcore.h>
-AStyleWidget::AStyleWidget(AStylePart * part, bool global, QWidget *parent, const char *name)
+AStyleWidget::AStyleWidget(AStylePart * part, bool global, TQWidget *parent, const char *name)
: AStyleConfig(parent, name), m_part(part), isGlobalWidget(global)
{
// which style changed - disable the other pages.
- connect(StyleGroup, SIGNAL(clicked(int)), this, SLOT(styleChanged()));
- connect(ConfigTabs, SIGNAL(currentChanged(QWidget*)), this, SLOT(styleChanged()) );
+ connect(StyleGroup, TQT_SIGNAL(clicked(int)), this, TQT_SLOT(styleChanged()));
+ connect(ConfigTabs, TQT_SIGNAL(currentChanged(TQWidget*)), this, TQT_SLOT(styleChanged()) );
- connect(FillingGroup, SIGNAL(clicked(int)), this, SLOT(styleChanged()));
- connect(Fill_ForceTabs, SIGNAL(clicked()), this, SLOT(styleChanged()));
- connect(Fill_TabCount, SIGNAL(valueChanged(int)), this, SLOT(styleChanged()));
- connect(Fill_SpaceCount, SIGNAL(valueChanged(int)), this, SLOT(styleChanged()));
+ connect(FillingGroup, TQT_SIGNAL(clicked(int)), this, TQT_SLOT(styleChanged()));
+ connect(Fill_ForceTabs, TQT_SIGNAL(clicked()), this, TQT_SLOT(styleChanged()));
+ connect(Fill_TabCount, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(styleChanged()));
+ connect(Fill_SpaceCount, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(styleChanged()));
- connect(BracketGroup, SIGNAL(clicked(int)), this, SLOT(styleChanged()));
- connect(Brackets_CloseHeaders, SIGNAL(clicked()), this, SLOT(styleChanged()));
+ connect(BracketGroup, TQT_SIGNAL(clicked(int)), this, TQT_SLOT(styleChanged()));
+ connect(Brackets_CloseHeaders, TQT_SIGNAL(clicked()), this, TQT_SLOT(styleChanged()));
- connect(Indent_Switches, SIGNAL(clicked()), this, SLOT(styleChanged()));
- connect(Indent_Cases, SIGNAL(clicked()), this, SLOT(styleChanged()));
- connect(Indent_Classes, SIGNAL(clicked()), this, SLOT(styleChanged()));
- connect(Indent_Brackets, SIGNAL(clicked()), this, SLOT(styleChanged()));
- connect(Indent_Namespaces, SIGNAL(clicked()), this, SLOT(styleChanged()));
- connect(Indent_Labels, SIGNAL(clicked()), this, SLOT(styleChanged()));
- connect(Indent_Blocks, SIGNAL(clicked()), this, SLOT(styleChanged()));
- connect(Indent_Preprocessors, SIGNAL(clicked()), this, SLOT(styleChanged()));
+ connect(Indent_Switches, TQT_SIGNAL(clicked()), this, TQT_SLOT(styleChanged()));
+ connect(Indent_Cases, TQT_SIGNAL(clicked()), this, TQT_SLOT(styleChanged()));
+ connect(Indent_Classes, TQT_SIGNAL(clicked()), this, TQT_SLOT(styleChanged()));
+ connect(Indent_Brackets, TQT_SIGNAL(clicked()), this, TQT_SLOT(styleChanged()));
+ connect(Indent_Namespaces, TQT_SIGNAL(clicked()), this, TQT_SLOT(styleChanged()));
+ connect(Indent_Labels, TQT_SIGNAL(clicked()), this, TQT_SLOT(styleChanged()));
+ connect(Indent_Blocks, TQT_SIGNAL(clicked()), this, TQT_SLOT(styleChanged()));
+ connect(Indent_Preprocessors, TQT_SIGNAL(clicked()), this, TQT_SLOT(styleChanged()));
- connect(Continue_MaxStatement, SIGNAL(valueChanged(int)), this, SLOT(styleChanged()));
- connect(Continue_MinConditional, SIGNAL(valueChanged(int)), this, SLOT(styleChanged()));
+ connect(Continue_MaxStatement, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(styleChanged()));
+ connect(Continue_MinConditional, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(styleChanged()));
- connect(Block_Break, SIGNAL(clicked()), this, SLOT(styleChanged()));
- connect(Block_BreakAll, SIGNAL(clicked()), this, SLOT(styleChanged()));
- connect(Block_IfElse, SIGNAL(clicked()), this, SLOT(styleChanged()));
+ connect(Block_Break, TQT_SIGNAL(clicked()), this, TQT_SLOT(styleChanged()));
+ connect(Block_BreakAll, TQT_SIGNAL(clicked()), this, TQT_SLOT(styleChanged()));
+ connect(Block_IfElse, TQT_SIGNAL(clicked()), this, TQT_SLOT(styleChanged()));
- connect(Pad_ParenthesesIn, SIGNAL(clicked()), this, SLOT(styleChanged()));
- connect(Pad_ParenthesesOut, SIGNAL(clicked()), this, SLOT(styleChanged()));
- connect(Pad_ParenthesesUn, SIGNAL(clicked()), this, SLOT(styleChanged()));
- connect(Pad_Operators, SIGNAL(clicked()), this, SLOT(styleChanged()));
+ connect(Pad_ParenthesesIn, TQT_SIGNAL(clicked()), this, TQT_SLOT(styleChanged()));
+ connect(Pad_ParenthesesOut, TQT_SIGNAL(clicked()), this, TQT_SLOT(styleChanged()));
+ connect(Pad_ParenthesesUn, TQT_SIGNAL(clicked()), this, TQT_SLOT(styleChanged()));
+ connect(Pad_Operators, TQT_SIGNAL(clicked()), this, TQT_SLOT(styleChanged()));
- connect(Keep_Statements, SIGNAL(clicked()), this, SLOT(styleChanged()));
- connect(Keep_Blocks, SIGNAL(clicked()), this, SLOT(styleChanged()));
+ connect(Keep_Statements, TQT_SIGNAL(clicked()), this, TQT_SLOT(styleChanged()));
+ connect(Keep_Blocks, TQT_SIGNAL(clicked()), this, TQT_SLOT(styleChanged()));
- QMap<QString, QVariant> option;
+ TQMap<TQString, TQVariant> option;
if ( isGlobalWidget){
Style_Global->hide();
option = m_part->getGlobalOptions();
@@ -64,7 +64,7 @@ AStyleWidget::AStyleWidget(AStylePart * part, bool global, QWidget *parent, cons
}
// style
- QString s = option["FStyle"].toString();
+ TQString s = option["FStyle"].toString();
// fake the id so we disable the other pages.
int id=0;
if (s == "ANSI") id=1;
@@ -172,7 +172,7 @@ AStyleWidget::~AStyleWidget()
void AStyleWidget::accept()
{
- QMap<QString, QVariant>* m_option;
+ TQMap<TQString, TQVariant>* m_option;
if ( isGlobalWidget){
m_option = &(m_part->getGlobalOptions());
m_part->setExtensions(GeneralExtension->text(),true);
@@ -195,8 +195,8 @@ void AStyleWidget::accept()
else if (Style_JAVA->isChecked())
(*m_option)["FStyle"] = "JAVA";
else if (Style_Global->isChecked()){
- QMap<QString,QVariant>& global = m_part->getGlobalOptions();
- QMap<QString,QVariant>& project = m_part->getProjectOptions();
+ TQMap<TQString,TQVariant>& global = m_part->getGlobalOptions();
+ TQMap<TQString,TQVariant>& project = m_part->getProjectOptions();
project=global;
project["FStyle"]="GLOBAL";
}
@@ -264,7 +264,7 @@ void AStyleWidget::accept()
}
if ( isGlobalWidget){
- QMap<QString, QVariant>& project = m_part->getProjectOptions();
+ TQMap<TQString, TQVariant>& project = m_part->getProjectOptions();
if ( project["FStyle"] == "GLOBAL"){
project = m_part->getGlobalOptions();
project["FStyle"] = "GLOBAL";
@@ -272,7 +272,7 @@ void AStyleWidget::accept()
m_part->saveGlobal();
}
-// for ( QMap<QString, QVariant>::ConstIterator iter = m_option->begin();iter != m_option->end();iter++ )
+// for ( TQMap<TQString, TQVariant>::ConstIterator iter = m_option->begin();iter != m_option->end();iter++ )
// {
// kdDebug ( 9009 ) << "widget: " << iter.key() << "=" << iter.data() << endl;
// }
@@ -296,13 +296,13 @@ void AStyleWidget::styleChanged( )
StyleExample->clear();
- QString bracketSample = "namespace foospace {\n\tint Foo(){\n\tif (isBar)\n{\nbar(); \n\treturn 1; } else \nreturn 0;}}\n\nvoid test(){\n\tif (isFoo){\n\tbar();\n} else\n{\n\tbar();\n}\n}\n";
+ TQString bracketSample = "namespace foospace {\n\tint Foo(){\n\tif (isBar)\n{\nbar(); \n\treturn 1; } else \nreturn 0;}}\n\nvoid test(){\n\tif (isFoo){\n\tbar();\n} else\n{\n\tbar();\n}\n}\n";
- QString indentSample = "#define foobar(A)\\\n{Foo();Bar();}\n#define anotherFoo(B)\\\nreturn Bar()\n\nnamespace Bar\n{\nclass Foo\n{public:\nFoo();\nvirtual ~Foo();\n};\nswitch (foo)\n{\ncase 1:\na+=1;\nbreak;\ncase 2:\n{\na += 2;\n break;\n}\n}\nif (isFoo)\n{\nbar();\n}\nelse\n{\nanotherBar();\n}\nint foo()\n\twhile(isFoo)\n\t\t{\n\t\t\t...\n\t\t\tgoto error;\n\t\t....\n\t\terror:\n\t\t\t...\n\t\t}\n\t}\nfooArray[]={ red,\n\tgreen,\n\tdarkblue};\nfooFunction(barArg1,\n\tbarArg2,\n\tbarArg3);\n";
+ TQString indentSample = "#define foobar(A)\\\n{Foo();Bar();}\n#define anotherFoo(B)\\\nreturn Bar()\n\nnamespace Bar\n{\nclass Foo\n{public:\nFoo();\nvirtual ~Foo();\n};\nswitch (foo)\n{\ncase 1:\na+=1;\nbreak;\ncase 2:\n{\na += 2;\n break;\n}\n}\nif (isFoo)\n{\nbar();\n}\nelse\n{\nanotherBar();\n}\nint foo()\n\twhile(isFoo)\n\t\t{\n\t\t\t...\n\t\t\tgoto error;\n\t\t....\n\t\terror:\n\t\t\t...\n\t\t}\n\t}\nfooArray[]={ red,\n\tgreen,\n\tdarkblue};\nfooFunction(barArg1,\n\tbarArg2,\n\tbarArg3);\n";
- QString formattingSample = "void func(){\n\tif(isFoo(a,b))\n\tbar(a,b);\nif(isFoo)\n\ta=bar((b-c)*a,*d--);\nif( isFoo( a,b ) )\n\tbar(a, b);\nif (isFoo) {isFoo=false;cat << isFoo <<endl;}\nif(isFoo)DoBar();if (isFoo){\n\tbar();\n}\n\telse if(isBar()){\n\tannotherBar();\n}\n}\n";
+ TQString formattingSample = "void func(){\n\tif(isFoo(a,b))\n\tbar(a,b);\nif(isFoo)\n\ta=bar((b-c)*a,*d--);\nif( isFoo( a,b ) )\n\tbar(a, b);\nif (isFoo) {isFoo=false;cat << isFoo <<endl;}\nif(isFoo)DoBar();if (isFoo){\n\tbar();\n}\n\telse if(isBar()){\n\tannotherBar();\n}\n}\n";
- QString styleSample = "\t//Tabs & Brackets\nnamespace foo{\n" + bracketSample + "}\n\t// Indentation\n" + indentSample + "\t// Formatting\n" + formattingSample;
+ TQString styleSample = "\t//Tabs & Brackets\nnamespace foo{\n" + bracketSample + "}\n\t// Indentation\n" + indentSample + "\t// Formatting\n" + formattingSample;
switch(id){
case 1:
diff --git a/parts/astyle/astyle_widget.h b/parts/astyle/astyle_widget.h
index ac779985..0d379fc0 100644
--- a/parts/astyle/astyle_widget.h
+++ b/parts/astyle/astyle_widget.h
@@ -13,7 +13,7 @@ class AStyleWidget : public AStyleConfig
public:
- AStyleWidget( AStylePart * part, bool global, QWidget *parent=0, const char *name=0 );
+ AStyleWidget( AStylePart * part, bool global, TQWidget *parent=0, const char *name=0 );
~AStyleWidget();
@@ -28,7 +28,7 @@ private slots:
private:
AStylePart * m_part;
bool isGlobalWidget;
- QString m_lastExt;
+ TQString m_lastExt;
bool globalOptions;
};
diff --git a/parts/bookmarks/bookmarks_config.cpp b/parts/bookmarks/bookmarks_config.cpp
index 095c3f83..939dc6c2 100644
--- a/parts/bookmarks/bookmarks_config.cpp
+++ b/parts/bookmarks/bookmarks_config.cpp
@@ -125,12 +125,12 @@ void BookmarksConfig::setToolTip( bool tooltip )
_tooltip = tooltip;
}
-QString BookmarksConfig::token( )
+TQString BookmarksConfig::token( )
{
return _token;
}
-void BookmarksConfig::setToken( QString const & token )
+void BookmarksConfig::setToken( TQString const & token )
{
_token = token;
}
diff --git a/parts/bookmarks/bookmarks_config.h b/parts/bookmarks/bookmarks_config.h
index c372eb51..38a3f0e9 100644
--- a/parts/bookmarks/bookmarks_config.h
+++ b/parts/bookmarks/bookmarks_config.h
@@ -34,8 +34,8 @@ public:
unsigned int context();
void setContext( unsigned int );
- QString token();
- void setToken( QString const & );
+ TQString token();
+ void setToken( TQString const & );
void readConfig();
void writeConfig();
@@ -44,7 +44,7 @@ private:
bool _tooltip;
CodeLineType _codeline;
unsigned int _context;
- QString _token;
+ TQString _token;
};
diff --git a/parts/bookmarks/bookmarks_part.cpp b/parts/bookmarks/bookmarks_part.cpp
index f23863af..50830723 100644
--- a/parts/bookmarks/bookmarks_part.cpp
+++ b/parts/bookmarks/bookmarks_part.cpp
@@ -9,11 +9,11 @@
* *
***************************************************************************/
-#include <qwhatsthis.h>
-#include <qvbox.h>
-#include <qtimer.h>
-#include <qtextstream.h>
-#include <qfile.h>
+#include <tqwhatsthis.h>
+#include <tqvbox.h>
+#include <tqtimer.h>
+#include <tqtextstream.h>
+#include <tqfile.h>
#include <kdebug.h>
#include <kiconloader.h>
@@ -44,7 +44,7 @@ typedef KDevGenericFactory<BookmarksPart> BookmarksFactory;
static const KDevPluginInfo data("kdevbookmarks");
K_EXPORT_COMPONENT_FACTORY( libkdevbookmarks, BookmarksFactory( data ) )
-BookmarksPart::BookmarksPart(QObject *parent, const char *name, const QStringList& )
+BookmarksPart::BookmarksPart(TQObject *parent, const char *name, const TQStringList& )
: KDevPlugin(&data, parent, name ? name : "BookmarksPart" )
{
setInstance(BookmarksFactory::instance());
@@ -54,9 +54,9 @@ BookmarksPart::BookmarksPart(QObject *parent, const char *name, const QStringLis
_widget->setCaption(i18n("Bookmarks"));
_widget->setIcon(SmallIcon( info()->icon() ));
- _marksChangeTimer = new QTimer( this );
+ _marksChangeTimer = new TQTimer( this );
- QWhatsThis::add(_widget, i18n("<b>Bookmarks</b><p>"
+ TQWhatsThis::add(_widget, i18n("<b>Bookmarks</b><p>"
"The bookmark viewer shows all the source bookmarks in the project."));
mainWindow()->embedSelectView(_widget, i18n("Bookmarks"), i18n("Source bookmarks"));
@@ -64,19 +64,19 @@ BookmarksPart::BookmarksPart(QObject *parent, const char *name, const QStringLis
_editorMap.setAutoDelete( true );
_settingMarks = false;
- connect( partController(), SIGNAL( partAdded( KParts::Part * ) ), this, SLOT( partAdded( KParts::Part * ) ) );
+ connect( partController(), TQT_SIGNAL( partAdded( KParts::Part * ) ), this, TQT_SLOT( partAdded( KParts::Part * ) ) );
_configProxy = new ConfigWidgetProxy( core() );
_configProxy->createProjectConfigPage( i18n("Bookmarks"), BOOKMARKSETTINGSPAGE, 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( _widget, SIGNAL( removeAllBookmarksForURL( const KURL & ) ),
- this, SLOT( removeAllBookmarksForURL( const KURL & ) ) );
- connect( _widget, SIGNAL( removeBookmarkForURL( const KURL &, int ) ),
- this, SLOT( removeBookmarkForURL( const KURL &, int ) ) );
+ connect( _widget, TQT_SIGNAL( removeAllBookmarksForURL( const KURL & ) ),
+ this, TQT_SLOT( removeAllBookmarksForURL( const KURL & ) ) );
+ connect( _widget, TQT_SIGNAL( removeBookmarkForURL( const KURL &, int ) ),
+ this, TQT_SLOT( removeBookmarkForURL( const KURL &, int ) ) );
- connect( _marksChangeTimer, SIGNAL( timeout() ), this, SLOT( marksChanged() ) );
+ connect( _marksChangeTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( marksChanged() ) );
_config = new BookmarksConfig;
_config->readConfig();
@@ -112,10 +112,10 @@ void BookmarksPart::partAdded( KParts::Part * part )
// connect to this editor
KTextEditor::Document * doc = static_cast<KTextEditor::Document*>( ro_part );
- connect( doc, SIGNAL( marksChanged() ), this, SLOT( marksEvent() ) );
+ connect( doc, TQT_SIGNAL( marksChanged() ), this, TQT_SLOT( marksEvent() ) );
// workaround for a katepart oddity where it drops all bookmarks on 'reload'
- connect( doc, SIGNAL( completed() ), this, SLOT( reload() ) );
+ connect( doc, TQT_SIGNAL( completed() ), this, TQT_SLOT( reload() ) );
}
}
}
@@ -124,7 +124,7 @@ void BookmarksPart::reload()
{
//kdDebug(0) << "BookmarksPart::reload()" << endl;
- QObject * senderobj = const_cast<QObject*>( sender() );
+ TQObject * senderobj = const_cast<TQObject*>( sender() );
if ( KParts::ReadOnlyPart * ro_part = dynamic_cast<KParts::ReadOnlyPart *>( senderobj ) )
{
if ( partIsSane( ro_part ) )
@@ -140,7 +140,7 @@ void BookmarksPart::marksEvent()
if ( ! _settingMarks )
{
- QObject * senderobj = const_cast<QObject*>( sender() );
+ TQObject * senderobj = const_cast<TQObject*>( sender() );
KParts::ReadOnlyPart * ro_part = dynamic_cast<KParts::ReadOnlyPart *>( senderobj );
if ( partIsSane( ro_part ) && !_dirtyParts.contains( ro_part ) )
@@ -155,7 +155,7 @@ void BookmarksPart::marksChanged()
{
//kdDebug(0) << "BookmarksPart::marksChanged()" << endl;
- QValueListIterator<KParts::ReadOnlyPart*> it = _dirtyParts.begin();
+ TQValueListIterator<KParts::ReadOnlyPart*> it = _dirtyParts.begin();
while ( it != _dirtyParts.end() )
{
KParts::ReadOnlyPart * ro_part = *it;
@@ -179,31 +179,31 @@ void BookmarksPart::marksChanged()
_dirtyParts.clear();
}
-void BookmarksPart::restorePartialProjectSession( const QDomElement * el )
+void BookmarksPart::restorePartialProjectSession( const TQDomElement * el )
{
//kdDebug(0) << "BookmarksPart::restorePartialProjectSession()" << endl;
if ( ! el ) return;
- QDomElement bookmarksList = el->namedItem( "bookmarks" ).toElement();
+ TQDomElement bookmarksList = el->namedItem( "bookmarks" ).toElement();
if ( bookmarksList.isNull() ) return;
- QDomElement bookmark = bookmarksList.firstChild().toElement();
+ TQDomElement bookmark = bookmarksList.firstChild().toElement();
while ( ! bookmark.isNull() )
{
- QString path = bookmark.attribute( "url" );
- if ( path != QString::null )
+ TQString path = bookmark.attribute( "url" );
+ if ( path != TQString::null )
{
EditorData * data = new EditorData;
data->url.setPath( path );
- QDomElement mark = bookmark.firstChild().toElement();
+ TQDomElement mark = bookmark.firstChild().toElement();
while ( ! mark.isNull() )
{
- QString line = mark.attribute( "line" );
- if ( line != QString::null )
+ TQString line = mark.attribute( "line" );
+ if ( line != TQString::null )
{
- data->marks.append( qMakePair( line.toInt(), QString() ) );
+ data->marks.append( qMakePair( line.toInt(), TQString() ) );
}
mark = mark.nextSibling().toElement();
}
@@ -224,28 +224,28 @@ void BookmarksPart::restorePartialProjectSession( const QDomElement * el )
_widget->update( _editorMap );
}
-void BookmarksPart::savePartialProjectSession( QDomElement * el )
+void BookmarksPart::savePartialProjectSession( TQDomElement * el )
{
//kdDebug(0) << "BookmarksPart::savePartialProjectSession()" << endl;
if ( ! el ) return;
- QDomDocument domDoc = el->ownerDocument();
+ TQDomDocument domDoc = el->ownerDocument();
if ( domDoc.isNull() ) return;
- QDomElement bookmarksList = domDoc.createElement( "bookmarks" );
+ TQDomElement bookmarksList = domDoc.createElement( "bookmarks" );
- QDictIterator<EditorData> it( _editorMap );
+ TQDictIterator<EditorData> it( _editorMap );
while ( it.current() )
{
- QDomElement bookmark = domDoc.createElement( "bookmark" );
+ TQDomElement bookmark = domDoc.createElement( "bookmark" );
bookmark.setAttribute( "url", it.current()->url.path() );
bookmarksList.appendChild( bookmark );
- QValueListIterator< QPair<int,QString> > it2 = it.current()->marks.begin();
+ TQValueListIterator< QPair<int,TQString> > it2 = it.current()->marks.begin();
while ( it2 != it.current()->marks.end() )
{
- QDomElement line = domDoc.createElement( "mark" );
+ TQDomElement line = domDoc.createElement( "mark" );
line.setAttribute( "line", (*it2).first );
bookmark.appendChild( line );
++it2;
@@ -275,7 +275,7 @@ void BookmarksPart::removeBookmarkForURL( KURL const & url, int line )
if ( EditorData * data = _editorMap.find( url.path() ) )
{
- QValueListIterator< QPair<int,QString> > it = data->marks.begin();
+ TQValueListIterator< QPair<int,TQString> > it = data->marks.begin();
while ( it != data->marks.end() )
{
if ( (*it).first == line )
@@ -309,7 +309,7 @@ void BookmarksPart::updateContextStringForURL( KParts::ReadOnlyPart * ro_part )
if ( ! ( data && ed ) ) return;
- QValueListIterator< QPair<int,QString> > it = data->marks.begin();
+ TQValueListIterator< QPair<int,TQString> > it = data->marks.begin();
while ( it != data->marks.end() )
{
(*it).second = ed->textLine( (*it).first );
@@ -324,7 +324,7 @@ void BookmarksPart::updateContextStringForURL( KURL const & url )
void BookmarksPart::updateContextStringForAll()
{
- QDictIterator<EditorData> it( _editorMap );
+ TQDictIterator<EditorData> it( _editorMap );
while ( it.current() )
{
if ( ! it.current()->marks.isEmpty() )
@@ -347,7 +347,7 @@ bool BookmarksPart::setBookmarksForURL( KParts::ReadOnlyPart * ro_part )
{
// we've seen this one before, apply stored bookmarks
- QValueListIterator< QPair<int,QString> > it = data->marks.begin();
+ TQValueListIterator< QPair<int,TQString> > it = data->marks.begin();
while ( it != data->marks.end() )
{
mi->addMark( (*it).first, KTextEditor::MarkInterface::markType01 );
@@ -371,8 +371,8 @@ bool BookmarksPart::clearBookmarksForURL( KParts::ReadOnlyPart * ro_part )
{
_settingMarks = true;
- QPtrList<KTextEditor::Mark> marks = mi->marks();
- QPtrListIterator<KTextEditor::Mark> it( marks );
+ TQPtrList<KTextEditor::Mark> marks = mi->marks();
+ TQPtrListIterator<KTextEditor::Mark> it( marks );
while ( it.current() )
{
if ( it.current()->type & KTextEditor::MarkInterface::markType01 )
@@ -402,14 +402,14 @@ EditorData * BookmarksPart::storeBookmarksForURL( KParts::ReadOnlyPart * ro_part
// removing previous data for this url, if any
_editorMap.remove( data->url.path() );
- QPtrList<KTextEditor::Mark> marks = mi->marks();
- QPtrListIterator<KTextEditor::Mark> it( marks );
+ TQPtrList<KTextEditor::Mark> marks = mi->marks();
+ TQPtrListIterator<KTextEditor::Mark> it( marks );
while ( it.current() )
{
if ( it.current()->type & KTextEditor::MarkInterface::markType01 )
{
int line = it.current()->line;
- data->marks.append( qMakePair( line, QString() ) );
+ data->marks.append( qMakePair( line, TQString() ) );
}
++it;
}
@@ -430,9 +430,9 @@ EditorData * BookmarksPart::storeBookmarksForURL( KParts::ReadOnlyPart * ro_part
void BookmarksPart::setBookmarksForAllURLs()
{
- if( const QPtrList<KParts::Part> * partlist = partController()->parts() )
+ if( const TQPtrList<KParts::Part> * partlist = partController()->parts() )
{
- QPtrListIterator<KParts::Part> it( *partlist );
+ TQPtrListIterator<KParts::Part> it( *partlist );
while ( KParts::Part* part = it.current() )
{
if ( KParts::ReadOnlyPart * ro_part = dynamic_cast<KParts::ReadOnlyPart *>( part ) )
@@ -446,9 +446,9 @@ void BookmarksPart::setBookmarksForAllURLs()
void BookmarksPart::storeBookmarksForAllURLs()
{
- if( const QPtrList<KParts::Part> * partlist = partController()->parts() )
+ if( const TQPtrList<KParts::Part> * partlist = partController()->parts() )
{
- QPtrListIterator<KParts::Part> it( *partlist );
+ TQPtrListIterator<KParts::Part> it( *partlist );
while ( KParts::Part* part = it.current() )
{
if ( KParts::ReadOnlyPart * ro_part = dynamic_cast<KParts::ReadOnlyPart *>( part ) )
@@ -463,7 +463,7 @@ void BookmarksPart::storeBookmarksForAllURLs()
// reimplemented from PartController::partForURL to avoid linking
KParts::ReadOnlyPart * BookmarksPart::partForURL( KURL const & url )
{
- QPtrListIterator<KParts::Part> it( *partController()->parts() );
+ TQPtrListIterator<KParts::Part> it( *partController()->parts() );
while( it.current() )
{
KParts::ReadOnlyPart *ro_part = dynamic_cast<KParts::ReadOnlyPart*>(it.current());
@@ -483,20 +483,20 @@ bool BookmarksPart::partIsSane( KParts::ReadOnlyPart * ro_part )
!ro_part->url().path().isEmpty();
}
-void BookmarksPart::insertConfigWidget( const KDialogBase * dlg, QWidget * page, unsigned int pagenumber )
+void BookmarksPart::insertConfigWidget( const KDialogBase * dlg, TQWidget * page, unsigned int pagenumber )
{
kdDebug() << k_funcinfo << endl;
if ( pagenumber == BOOKMARKSETTINGSPAGE )
{
BookmarkSettings * w = new BookmarkSettings( this, page );
- connect( dlg, SIGNAL(okClicked()), w, SLOT(slotAccept()) );
+ connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(slotAccept()) );
}
}
////////////////////////////////////////////
-QStringList BookmarksPart::getContextFromStream( QTextStream & istream, unsigned int line, unsigned int context )
+TQStringList BookmarksPart::getContextFromStream( TQTextStream & istream, unsigned int line, unsigned int context )
{
kdDebug() << k_funcinfo << endl;
@@ -504,10 +504,10 @@ QStringList BookmarksPart::getContextFromStream( QTextStream & istream, unsigned
int endline = line + context;
int n = 0;
- QStringList list;
+ TQStringList list;
while ( !istream.atEnd() )
{
- QString templine = istream.readLine();
+ TQString templine = istream.readLine();
if ( (n >= startline) && ( n <= endline ) )
{
list << templine;
@@ -531,31 +531,31 @@ QStringList BookmarksPart::getContextFromStream( QTextStream & istream, unsigned
return list;
}
-QStringList BookmarksPart::getContext( KURL const & url, unsigned int line, unsigned int context )
+TQStringList BookmarksPart::getContext( KURL const & url, unsigned int line, unsigned int context )
{
// if the file is open - get the line from the editor buffer
if ( KTextEditor::EditInterface * ei = dynamic_cast<KTextEditor::EditInterface*>( partForURL( url ) ) )
{
kdDebug() << "the file is open - get the line from the editor buffer" << endl;
- QString ibuffer = ei->text();
- QTextStream istream( &ibuffer, IO_ReadOnly );
+ TQString ibuffer = ei->text();
+ TQTextStream istream( &ibuffer, IO_ReadOnly );
return getContextFromStream( istream, line, context );
}
else if ( url.isLocalFile() ) // else the file is not open - get the line from the file on disk
{
kdDebug() << "the file is not open - get the line from the file on disk" << endl;
- QFile file( url.path() );
- QString buffer;
+ TQFile file( url.path() );
+ TQString buffer;
if ( file.open( IO_ReadOnly ) )
{
- QTextStream istream( &file );
+ TQTextStream istream( &file );
return getContextFromStream( istream, line, context );
}
}
- return QStringList( i18n("Could not find file") );
+ return TQStringList( i18n("Could not find file") );
}
BookmarksConfig * BookmarksPart::config( )
diff --git a/parts/bookmarks/bookmarks_part.h b/parts/bookmarks/bookmarks_part.h
index 32a105ad..7abfeb9e 100644
--- a/parts/bookmarks/bookmarks_part.h
+++ b/parts/bookmarks/bookmarks_part.h
@@ -14,10 +14,10 @@
#define __KDEVPART_BOOKMARKS_H__
-#include <qguardedptr.h>
-#include <qvaluelist.h>
-#include <qdict.h>
-#include <qpair.h>
+#include <tqguardedptr.h>
+#include <tqvaluelist.h>
+#include <tqdict.h>
+#include <tqpair.h>
#include <kparts/part.h>
#include <kurl.h>
@@ -32,7 +32,7 @@ class ConfigWidgetProxy;
struct EditorData
{
KURL url;
- QValueList< QPair<int,QString> > marks;
+ TQValueList< QPair<int,TQString> > marks;
};
class BookmarksWidget;
@@ -44,16 +44,16 @@ class BookmarksPart : public KDevPlugin
public:
- BookmarksPart(QObject *parent, const char *name, const QStringList &);
+ BookmarksPart(TQObject *parent, const char *name, const TQStringList &);
~BookmarksPart();
// reimplemented from KDevPlugin
- void restorePartialProjectSession( const QDomElement * el );
- void savePartialProjectSession( QDomElement * el );
+ void restorePartialProjectSession( const TQDomElement * el );
+ void savePartialProjectSession( TQDomElement * el );
BookmarksConfig * config();
- QStringList getContext( KURL const & url, unsigned int line, unsigned int context );
+ TQStringList getContext( KURL const & url, unsigned int line, unsigned int context );
private slots:
// connected to partcontroller
@@ -72,7 +72,7 @@ private slots:
void removeAllBookmarksForURL( const KURL & );
void removeBookmarkForURL( const KURL &, int );
- void insertConfigWidget( const KDialogBase * dlg, QWidget * page, unsigned int );
+ void insertConfigWidget( const KDialogBase * dlg, TQWidget * page, unsigned int );
private:
bool setBookmarksForURL( KParts::ReadOnlyPart * );
@@ -86,21 +86,21 @@ private:
void updateContextStringForURL( KURL const & url );
void updateContextStringForAll();
- QStringList getContextFromStream( QTextStream & istream, unsigned int line, unsigned int context );
+ TQStringList getContextFromStream( TQTextStream & istream, unsigned int line, unsigned int context );
KParts::ReadOnlyPart * partForURL( KURL const & url );
bool partIsSane( KParts::ReadOnlyPart * );
- QGuardedPtr<BookmarksWidget> _widget;
- QDict<EditorData> _editorMap;
+ TQGuardedPtr<BookmarksWidget> _widget;
+ TQDict<EditorData> _editorMap;
bool _settingMarks; // are we currently in the process of setting bookmarks?
BookmarksConfig * _config;
ConfigWidgetProxy * _configProxy;
- QTimer * _marksChangeTimer;
- QValueList<KParts::ReadOnlyPart*> _dirtyParts;
+ TQTimer * _marksChangeTimer;
+ TQValueList<KParts::ReadOnlyPart*> _dirtyParts;
};
diff --git a/parts/bookmarks/bookmarks_settings.cpp b/parts/bookmarks/bookmarks_settings.cpp
index 235ec261..58369d92 100644
--- a/parts/bookmarks/bookmarks_settings.cpp
+++ b/parts/bookmarks/bookmarks_settings.cpp
@@ -9,9 +9,9 @@
* *
***************************************************************************/
-#include <qradiobutton.h>
-#include <qcheckbox.h>
-#include <qspinbox.h>
+#include <tqradiobutton.h>
+#include <tqcheckbox.h>
+#include <tqspinbox.h>
#include <klineedit.h>
#include "bookmarks_part.h"
@@ -19,7 +19,7 @@
#include "bookmarks_settings.h"
-BookmarkSettings::BookmarkSettings( BookmarksPart * part, QWidget* parent, const char* name, WFlags fl )
+BookmarkSettings::BookmarkSettings( BookmarksPart * part, TQWidget* parent, const char* name, WFlags fl )
: BookmarkSettingsBase( parent, name, fl ), m_part( part )
{
m_part->config()->readConfig();
diff --git a/parts/bookmarks/bookmarks_settings.h b/parts/bookmarks/bookmarks_settings.h
index 3fa6c5e9..699941ca 100644
--- a/parts/bookmarks/bookmarks_settings.h
+++ b/parts/bookmarks/bookmarks_settings.h
@@ -21,7 +21,7 @@ class BookmarkSettings : public BookmarkSettingsBase
Q_OBJECT
public:
- BookmarkSettings( BookmarksPart * part, QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ BookmarkSettings( BookmarksPart * part, TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~BookmarkSettings();
public slots:
diff --git a/parts/bookmarks/bookmarks_widget.cpp b/parts/bookmarks/bookmarks_widget.cpp
index 683c32e1..20ab2cd9 100644
--- a/parts/bookmarks/bookmarks_widget.cpp
+++ b/parts/bookmarks/bookmarks_widget.cpp
@@ -9,11 +9,11 @@
* *
***************************************************************************/
-#include <qdict.h>
-#include <qheader.h>
-#include <qtooltip.h>
-#include <qpair.h>
-#include <qstylesheet.h>
+#include <tqdict.h>
+#include <tqheader.h>
+#include <tqtooltip.h>
+#include <tqpair.h>
+#include <tqstylesheet.h>
#include <kparts/part.h>
#include <klibloader.h>
@@ -59,13 +59,13 @@ static const char* const bookmark_xpm[]={
class BookmarkItem : public QListViewItem
{
public:
- BookmarkItem( QListView * parent, KURL const & url )
- : QListViewItem( parent, url.fileName() ),
+ BookmarkItem( TQListView * parent, KURL const & url )
+ : TQListViewItem( parent, url.fileName() ),
_url( url ), _line( -1 ), _isBookmark( false )
{}
- BookmarkItem( QListViewItem * parent, KURL const & url, QPair<int,QString> mark )
- : QListViewItem( parent, QString::number( mark.first +1 ).rightJustify( 5 ) ),
+ BookmarkItem( TQListViewItem * parent, KURL const & url, QPair<int,TQString> mark )
+ : TQListViewItem( parent, TQString::number( mark.first +1 ).rightJustify( 5 ) ),
_url( url ), _line( mark.first ), _isBookmark( true )
{
BookmarksWidget * lv = static_cast<BookmarksWidget*>( listView() );
@@ -97,17 +97,17 @@ public:
return _line;
}
- QString tipText()
+ TQString tipText()
{
if ( _isBookmark )
{
BookmarksWidget * w = static_cast<BookmarksWidget*> ( listView() );
- QStringList list = w->getContext( _url, _line );
+ TQStringList list = w->getContext( _url, _line );
- QString code = "<qt><table><tr><td><pre>";
+ TQString code = "<qt><table><tr><td><pre>";
for ( uint i = 0; i < list.count(); i++)
{
- QString temp = QStyleSheet::escape( list[i] );
+ TQString temp = TQStyleSheet::escape( list[i] );
if ( i == (list.count() / 2) ) // count() is always odd
{
@@ -134,40 +134,40 @@ private:
KURL _url;
int _line;
bool _isBookmark;
- QString _code;
+ TQString _code;
};
BookmarksWidget::BookmarksWidget(BookmarksPart *part)
- : KListView(0, "bookmarks widget"), QToolTip( viewport() ),
+ : KListView(0, "bookmarks widget"), TQToolTip( viewport() ),
_part( part )
{
- addColumn( QString::null );
+ addColumn( TQString::null );
header()->hide();
setRootIsDecorated( true );
- setResizeMode( QListView::LastColumn );
+ setResizeMode( TQListView::LastColumn );
setAllColumnsShowFocus( true );
// setSortColumn( -1 );
- connect( this, SIGNAL( executed( QListViewItem * ) ), this, SLOT( itemClicked( QListViewItem * ) ) );
- connect( this, SIGNAL( returnPressed( QListViewItem * ) ), this, SLOT( itemClicked( QListViewItem * ) ) );
- connect( this, SIGNAL( contextMenuRequested ( QListViewItem *, const QPoint & , int ) ),
- this, SLOT( popupMenu(QListViewItem *, const QPoint & , int ) ) );
+ connect( this, TQT_SIGNAL( executed( TQListViewItem * ) ), this, TQT_SLOT( itemClicked( TQListViewItem * ) ) );
+ connect( this, TQT_SIGNAL( returnPressed( TQListViewItem * ) ), this, TQT_SLOT( itemClicked( TQListViewItem * ) ) );
+ connect( this, TQT_SIGNAL( contextMenuRequested ( TQListViewItem *, const TQPoint & , int ) ),
+ this, TQT_SLOT( popupMenu(TQListViewItem *, const TQPoint & , int ) ) );
}
BookmarksWidget::~BookmarksWidget()
{}
-void BookmarksWidget::maybeTip(const QPoint &p)
+void BookmarksWidget::maybeTip(const TQPoint &p)
{
// kdDebug(0) << "ToolTip::maybeTip()" << endl;
if ( ! _part->config()->toolTip() ) return;
BookmarkItem * item = dynamic_cast<BookmarkItem*>( itemAt( p ) );
- QRect r = itemRect( item );
+ TQRect r = itemRect( item );
if ( item && r.isValid() )
{
@@ -175,13 +175,13 @@ void BookmarksWidget::maybeTip(const QPoint &p)
}
}
-void BookmarksWidget::update( QDict<EditorData> const & map )
+void BookmarksWidget::update( TQDict<EditorData> const & map )
{
// kdDebug(0) << "BookmarksWidget::update()" << endl;
- QListView::clear();
+ TQListView::clear();
- QDictIterator<EditorData> it( map );
+ TQDictIterator<EditorData> it( map );
while ( it.current() )
{
if ( ! it.current()->marks.isEmpty() )
@@ -209,15 +209,15 @@ void BookmarksWidget::createURL( EditorData * data )
if ( data )
{
- QListViewItem * file = new BookmarkItem( this, data->url );
+ TQListViewItem * file = new BookmarkItem( this, data->url );
file->setOpen( true );
file->setPixmap( 0, SmallIcon( "document" ) );
- QValueListIterator< QPair<int,QString> > it = data->marks.begin();
+ TQValueListIterator< QPair<int,TQString> > it = data->marks.begin();
while ( it != data->marks.end() )
{
- QListViewItem * item = new BookmarkItem( file, data->url, *it );
- item->setPixmap( 0, QPixmap((const char**)bookmark_xpm) );
+ TQListViewItem * item = new BookmarkItem( file, data->url, *it );
+ item->setPixmap( 0, TQPixmap((const char**)bookmark_xpm) );
++it;
}
}
@@ -227,7 +227,7 @@ bool BookmarksWidget::removeURL( KURL const & url )
{
// kdDebug(0) << "BookmarksWidget::removeURL()" << endl;
- QListViewItem * item = firstChild();
+ TQListViewItem * item = firstChild();
while ( item )
{
BookmarkItem * bm = static_cast<BookmarkItem*>(item);
@@ -255,7 +255,7 @@ void BookmarksWidget::doEmitRemoveBookMark()
}
}
-void BookmarksWidget::popupMenu( QListViewItem * item, const QPoint & p, int )
+void BookmarksWidget::popupMenu( TQListViewItem * item, const TQPoint & p, int )
{
// kdDebug(0) << "BookmarksWidget::contextMenuRequested()" << endl;
@@ -268,27 +268,27 @@ void BookmarksWidget::popupMenu( QListViewItem * item, const QPoint & p, int )
if ( _selectedItem->isBookmark() )
{
popup.insertTitle( _selectedItem->url().fileName() + i18n(", line ")
- + QString::number( _selectedItem->line() +1 ) );
+ + TQString::number( _selectedItem->line() +1 ) );
- popup.insertItem( i18n("Remove This Bookmark"), this, SLOT( doEmitRemoveBookMark() ) );
+ popup.insertItem( i18n("Remove This Bookmark"), this, TQT_SLOT( doEmitRemoveBookMark() ) );
}
else
{
popup.insertTitle( _selectedItem->url().fileName() + i18n( ", All" ) );
- popup.insertItem( i18n("Remove These Bookmarks"), this, SLOT( doEmitRemoveBookMark() ) );
+ popup.insertItem( i18n("Remove These Bookmarks"), this, TQT_SLOT( doEmitRemoveBookMark() ) );
}
popup.insertSeparator();
- popup.insertItem( i18n( "Collapse All" ), this, SLOT(collapseAll()) );
- popup.insertItem( i18n( "Expand All" ), this, SLOT(expandAll()) );
+ popup.insertItem( i18n( "Collapse All" ), this, TQT_SLOT(collapseAll()) );
+ popup.insertItem( i18n( "Expand All" ), this, TQT_SLOT(expandAll()) );
popup.exec(p);
}
}
-void BookmarksWidget::itemClicked( QListViewItem * clickedItem )
+void BookmarksWidget::itemClicked( TQListViewItem * clickedItem )
{
// kdDebug(0) << "BookmarksWidget::itemClicked()" << endl;
@@ -305,14 +305,14 @@ BookmarksConfig * BookmarksWidget::config( )
return _part->config();
}
-QStringList BookmarksWidget::getContext( KURL const & url, unsigned int line )
+TQStringList BookmarksWidget::getContext( KURL const & url, unsigned int line )
{
return _part->getContext( url, line, config()->context() );
}
void BookmarksWidget::collapseAll( )
{
- QListViewItem * it = firstChild();
+ TQListViewItem * it = firstChild();
while( it )
{
it->setOpen( false );
@@ -322,7 +322,7 @@ void BookmarksWidget::collapseAll( )
void BookmarksWidget::expandAll( )
{
- QListViewItem * it = firstChild();
+ TQListViewItem * it = firstChild();
while( it )
{
it->setOpen( true );
diff --git a/parts/bookmarks/bookmarks_widget.h b/parts/bookmarks/bookmarks_widget.h
index 96bfe046..6af0b563 100644
--- a/parts/bookmarks/bookmarks_widget.h
+++ b/parts/bookmarks/bookmarks_widget.h
@@ -13,10 +13,10 @@
#define __BOOKMARKS_WIDGET_H__
-#include <qwidget.h>
-#include <qstring.h>
-//#include <qlistview.h>
-#include <qtooltip.h>
+#include <tqwidget.h>
+#include <tqstring.h>
+//#include <tqlistview.h>
+#include <tqtooltip.h>
#include <klistview.h>
@@ -34,23 +34,23 @@ public:
BookmarksWidget( BookmarksPart * );
~BookmarksWidget();
- void update( QDict<EditorData> const & );
+ void update( TQDict<EditorData> const & );
void updateURL( EditorData * );
bool removeURL( KURL const & );
BookmarksConfig * config();
- QStringList getContext( KURL const &, unsigned int );
+ TQStringList getContext( KURL const &, unsigned int );
signals:
void removeAllBookmarksForURL( const KURL & );
void removeBookmarkForURL( const KURL &, int );
protected:
- void maybeTip( QPoint const & );
+ void maybeTip( TQPoint const & );
private slots:
- void itemClicked( QListViewItem * );
- void popupMenu( QListViewItem * , const QPoint & , int );
+ void itemClicked( TQListViewItem * );
+ void popupMenu( TQListViewItem * , const TQPoint & , int );
void collapseAll();
void expandAll();
void doEmitRemoveBookMark();
diff --git a/parts/classview/classtooldlg.cpp b/parts/classview/classtooldlg.cpp
index 91ed28fc..df51f6f4 100644
--- a/parts/classview/classtooldlg.cpp
+++ b/parts/classview/classtooldlg.cpp
@@ -13,9 +13,9 @@
#include "classtooldlg.h"
-#include <qlistbox.h>
-#include <qpushbutton.h>
-#include <qtooltip.h>
+#include <tqlistbox.h>
+#include <tqpushbutton.h>
+#include <tqtooltip.h>
#include <kdialog.h>
#include <kiconloader.h>
#include <klocale.h>
@@ -27,54 +27,54 @@
ClassToolDialog::ClassToolDialog( ClassViewPart *part )
- : QWidget(0, "class tool dialog")
+ : TQWidget(0, "class tool dialog")
{
currentOperation = ViewNone;
comboAccess = (PIAccess)-1;
currentClass = 0;
m_part = part;
- class_combo = new QComboBox(false, this);
+ class_combo = new TQComboBox(false, this);
- QPushButton *close_button = new KPushButton(KStdGuiItem::close(), this);
+ TQPushButton *close_button = new KPushButton(KStdGuiItem::close(), this);
- parents_button = new QToolButton(this);
+ parents_button = new TQToolButton(this);
parents_button->setPixmap( UserIcon("CTparents", KIcon::DefaultState, ClassViewFactory::instance()) );
parents_button->setToggleButton(true);
parents_button->setFixedSize(parents_button->sizeHint());
- QToolTip::add(parents_button, i18n("Show parents"));
+ TQToolTip::add(parents_button, i18n("Show parents"));
- children_button = new QToolButton(this);
+ children_button = new TQToolButton(this);
children_button->setPixmap( UserIcon("CTchildren", KIcon::DefaultState, ClassViewFactory::instance()) );
children_button->setToggleButton(true);
children_button->setFixedSize(children_button->sizeHint());
- QToolTip::add(children_button, i18n("Show children"));
+ TQToolTip::add(children_button, i18n("Show children"));
- clients_button = new QToolButton(this);
+ clients_button = new TQToolButton(this);
clients_button->setPixmap( UserIcon("CTclients", KIcon::DefaultState, ClassViewFactory::instance()) );
clients_button->setToggleButton(true);
clients_button->setFixedSize(clients_button->sizeHint());
- QToolTip::add(clients_button, i18n("Show clients"));
+ TQToolTip::add(clients_button, i18n("Show clients"));
- suppliers_button = new QToolButton(this);
+ suppliers_button = new TQToolButton(this);
suppliers_button->setPixmap( UserIcon("CTsuppliers", KIcon::DefaultState, ClassViewFactory::instance()) );
suppliers_button->setToggleButton(true);
suppliers_button->setFixedSize(suppliers_button->sizeHint());
- QToolTip::add(suppliers_button, i18n("Show suppliers"));
+ TQToolTip::add(suppliers_button, i18n("Show suppliers"));
- methods_button = new QToolButton(this);
+ methods_button = new TQToolButton(this);
methods_button->setPixmap( UserIcon("CVpublic_meth", KIcon::DefaultState, ClassViewFactory::instance()) );
methods_button->setToggleButton(true);
methods_button->setFixedSize(methods_button->sizeHint());
- QToolTip::add(methods_button, i18n("Show methods"));
+ TQToolTip::add(methods_button, i18n("Show methods"));
- attributes_button = new QToolButton(this);
+ attributes_button = new TQToolButton(this);
attributes_button->setPixmap( UserIcon("CVpublic_var", KIcon::DefaultState, ClassViewFactory::instance()) );
attributes_button->setToggleButton(true);
attributes_button->setFixedSize(attributes_button->sizeHint());
- QToolTip::add(attributes_button, i18n("Show attributes"));
+ TQToolTip::add(attributes_button, i18n("Show attributes"));
- access_combo = new QComboBox(false, this, "access combo");
+ access_combo = new TQComboBox(false, this, "access combo");
access_combo->setMinimumWidth(100);
access_combo->setSizeLimit(10);
access_combo->insertItem(i18n("member access","All"));
@@ -86,9 +86,9 @@ ClassToolDialog::ClassToolDialog( ClassViewPart *part )
class_tree = new ClassToolWidget(part, this);
// classTree->setMinimumSize( 500, 400 );
- QVBoxLayout *layout = new QVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
- QHBoxLayout *firstrowLayout = new QHBoxLayout();
- QHBoxLayout *secondrowLayout = new QHBoxLayout();
+ TQVBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ TQHBoxLayout *firstrowLayout = new TQHBoxLayout();
+ TQHBoxLayout *secondrowLayout = new TQHBoxLayout();
layout->addLayout(firstrowLayout);
layout->addLayout(secondrowLayout);
@@ -106,21 +106,21 @@ ClassToolDialog::ClassToolDialog( ClassViewPart *part )
layout->addWidget(class_tree, 10);
- connect( class_combo, SIGNAL(activated(const QString&)),
- this, SLOT(slotClassComboChoice(const QString&)) );
- connect( close_button, SIGNAL(clicked()),
- this, SLOT(slotClose()) );
- connect( access_combo, SIGNAL(activated(const QString&)),
- this, SLOT(slotAccessComboChoice(const QString&)) );
- connect( parents_button, SIGNAL(clicked()), SLOT(viewParents()));
- connect( children_button, SIGNAL(clicked()), SLOT(viewChildren()));
- connect( clients_button, SIGNAL(clicked()), SLOT(viewClients()));
- connect( suppliers_button, SIGNAL(clicked()), SLOT(viewSuppliers()));
- connect( methods_button, SIGNAL(clicked()), SLOT(viewMethods()));
- connect( attributes_button, SIGNAL(clicked()), SLOT(viewAttributes()));
-
- connect( part, SIGNAL(setLanguageSupport(KDevLanguageSupport*)),
- this, SLOT(setLanguageSupport(KDevLanguageSupport*)) );
+ connect( class_combo, TQT_SIGNAL(activated(const TQString&)),
+ this, TQT_SLOT(slotClassComboChoice(const TQString&)) );
+ connect( close_button, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotClose()) );
+ connect( access_combo, TQT_SIGNAL(activated(const TQString&)),
+ this, TQT_SLOT(slotAccessComboChoice(const TQString&)) );
+ connect( parents_button, TQT_SIGNAL(clicked()), TQT_SLOT(viewParents()));
+ connect( children_button, TQT_SIGNAL(clicked()), TQT_SLOT(viewChildren()));
+ connect( clients_button, TQT_SIGNAL(clicked()), TQT_SLOT(viewClients()));
+ connect( suppliers_button, TQT_SIGNAL(clicked()), TQT_SLOT(viewSuppliers()));
+ connect( methods_button, TQT_SIGNAL(clicked()), TQT_SLOT(viewMethods()));
+ connect( attributes_button, TQT_SIGNAL(clicked()), TQT_SLOT(viewAttributes()));
+
+ connect( part, TQT_SIGNAL(setLanguageSupport(KDevLanguageSupport*)),
+ this, TQT_SLOT(setLanguageSupport(KDevLanguageSupport*)) );
m_part->registerClassToolDialog(this);
}
@@ -136,7 +136,7 @@ void ClassToolDialog::setLanguageSupport(KDevLanguageSupport *ls)
{
if (ls) {
disconnect(ls, 0, this, 0);
- connect(ls, SIGNAL(updatedSourceInfo()), this, SLOT(refresh()));
+ connect(ls, TQT_SIGNAL(updatedSourceInfo()), this, TQT_SLOT(refresh()));
} else
refresh();
@@ -144,11 +144,11 @@ void ClassToolDialog::setLanguageSupport(KDevLanguageSupport *ls)
}
-void ClassToolDialog::setClassName(const QString &name)
+void ClassToolDialog::setClassName(const TQString &name)
{
if ( class_combo->count() == 0 ) refresh();
- QListBox *lb = class_combo->listBox();
+ TQListBox *lb = class_combo->listBox();
for (int i=0; i < (int)lb->count(); ++i)
if (lb->text(i) == name) {
@@ -218,7 +218,7 @@ void ClassToolDialog::viewAttributes()
}
-void ClassToolDialog::slotAccessComboChoice(const QString &str)
+void ClassToolDialog::slotAccessComboChoice(const TQString &str)
{
if( str == i18n("member access","All") )
comboAccess = (PIAccess)-1;
@@ -240,7 +240,7 @@ void ClassToolDialog::slotAccessComboChoice(const QString &str)
void ClassToolDialog::slotClose()
{
delete this;
- // QTimer::singleShot(0, this, SLOT(delayedClose()));
+ // TQTimer::singleShot(0, this, TQT_SLOT(delayedClose()));
}
@@ -250,7 +250,7 @@ void ClassToolDialog::delayedClose()
}
-void ClassToolDialog::slotClassComboChoice(const QString &str)
+void ClassToolDialog::slotClassComboChoice(const TQString &str)
{
setClassName(str);
refresh();
@@ -262,10 +262,10 @@ void ClassToolDialog::refresh()
// Clear the combo box and fill it with the new items.
// Try to select the previously selected class
- QString oldName = class_combo->currentText();
+ TQString oldName = class_combo->currentText();
class_combo->clear();
- QStringList list = m_part->classStore()->getSortedClassNameList();
+ TQStringList list = m_part->classStore()->getSortedClassNameList();
class_combo->insertStringList(list);
setClassName(oldName);
@@ -277,8 +277,8 @@ void ClassToolDialog::refresh()
/** Change the caption depending on the current operation. */
void ClassToolDialog::updateCaptionAndButtons()
{
- QString caption;
- QToolButton *button;
+ TQString caption;
+ TQToolButton *button;
switch (currentOperation)
{
@@ -343,19 +343,19 @@ void ClassToolDialog::buildTree()
break;
case ViewChildren:
{
- QValueList<ParsedClass*> list = m_part->classStore()->getClassesByParent(currentClass->name());
+ TQValueList<ParsedClass*> list = m_part->classStore()->getClassesByParent(currentClass->name());
class_tree->insertClassAndClasses(currentClass, list);
}
break;
case ViewClients:
{
- QValueList<ParsedClass*> list = m_part->classStore()->getClassClients(currentClass->name());
+ TQValueList<ParsedClass*> list = m_part->classStore()->getClassClients(currentClass->name());
class_tree->insertClassAndClasses(currentClass, list);
}
break;
case ViewSuppliers:
{
- QValueList<ParsedClass*> list = m_part->classStore()->getClassSuppliers(currentClass->name());
+ TQValueList<ParsedClass*> list = m_part->classStore()->getClassSuppliers(currentClass->name());
class_tree->insertClassAndClasses(currentClass, list);
}
break;
diff --git a/parts/classview/classtooldlg.h b/parts/classview/classtooldlg.h
index 1ab8b5c1..01c86f3b 100644
--- a/parts/classview/classtooldlg.h
+++ b/parts/classview/classtooldlg.h
@@ -14,11 +14,11 @@
#ifndef _CLASSTOOLDLG_H_
#define _CLASSTOOLDLG_H_
-#include <qdialog.h>
-#include <qlabel.h>
-#include <qtoolbutton.h>
-#include <qcombobox.h>
-#include <qlayout.h>
+#include <tqdialog.h>
+#include <tqlabel.h>
+#include <tqtoolbutton.h>
+#include <tqcombobox.h>
+#include <tqlayout.h>
#include "classtoolwidget.h"
#include "parseditem.h"
@@ -38,7 +38,7 @@ public:
ClassToolDialog( ClassViewPart *part );
~ClassToolDialog();
- void setClassName(const QString &name);
+ void setClassName(const TQString &name);
public slots:
@@ -63,8 +63,8 @@ private slots:
void delayedClose();
void slotClose();
- void slotAccessComboChoice(const QString &str);
- void slotClassComboChoice(const QString &str);
+ void slotAccessComboChoice(const TQString &str);
+ void slotClassComboChoice(const TQString &str);
private:
@@ -72,15 +72,15 @@ private:
void buildTree();
ClassToolWidget *class_tree;
- QComboBox *class_combo;
+ TQComboBox *class_combo;
- QToolButton *parents_button;
- QToolButton *children_button;
- QToolButton *clients_button;
- QToolButton *suppliers_button;
- QToolButton *methods_button;
- QToolButton *attributes_button;
- QComboBox *access_combo;
+ TQToolButton *parents_button;
+ TQToolButton *children_button;
+ TQToolButton *clients_button;
+ TQToolButton *suppliers_button;
+ TQToolButton *methods_button;
+ TQToolButton *attributes_button;
+ TQComboBox *access_combo;
/** Store that holds all classes in the system. */
ClassStore *m_store;
diff --git a/parts/classview/classtoolwidget.cpp b/parts/classview/classtoolwidget.cpp
index f800bd15..5aefe6e5 100644
--- a/parts/classview/classtoolwidget.cpp
+++ b/parts/classview/classtoolwidget.cpp
@@ -20,7 +20,7 @@
#include "classstore.h"
-ClassToolWidget::ClassToolWidget(ClassViewPart *part, QWidget *parent)
+ClassToolWidget::ClassToolWidget(ClassViewPart *part, TQWidget *parent)
: ClassTreeBase(part, parent, "class tool widget")
{}
@@ -41,13 +41,13 @@ KPopupMenu *ClassToolWidget::createPopup()
}
-void ClassToolWidget::insertClassAndClasses(ParsedClass *parsedClass, QValueList<ParsedClass*> classList)
+void ClassToolWidget::insertClassAndClasses(ParsedClass *parsedClass, TQValueList<ParsedClass*> classList)
{
ClassTreeItem *root = new ClassTreeClassItem(this, 0, parsedClass);
ClassTreeItem *lastItem = 0;
- QValueList<ParsedClass*>::ConstIterator it;
+ TQValueList<ParsedClass*>::ConstIterator it;
for (it = classList.begin(); it != classList.end(); ++it) {
lastItem = new ClassTreeClassItem(root, lastItem, *it);
lastItem->setExpandable(false);
@@ -60,13 +60,13 @@ void ClassToolWidget::insertClassAndClasses(ParsedClass *parsedClass, QValueList
}
-void ClassToolWidget::insertClassAndClasses(ParsedClass *parsedClass, const QPtrList<ParsedParent> &parentList)
+void ClassToolWidget::insertClassAndClasses(ParsedClass *parsedClass, const TQPtrList<ParsedParent> &parentList)
{
ClassTreeItem *root = new ClassTreeClassItem(this, 0, parsedClass);
ClassTreeItem *lastItem = 0;
- QPtrListIterator<ParsedParent> it(parentList);
+ TQPtrListIterator<ParsedParent> it(parentList);
for (; it.current(); ++it) {
ParsedClass *parentClass = m_part->classStore()->getClassByName((*it)->name());
lastItem = new ClassTreeClassItem(root, lastItem, parentClass);
@@ -86,8 +86,8 @@ void ClassToolWidget::addClassAndAttributes(ParsedClass *parsedClass, PIAccess f
ClassTreeItem *ilastItem = 0;
- QValueList<ParsedAttribute*> attrList = parsedClass->getSortedAttributeList();
- QValueList<ParsedAttribute*>::ConstIterator it;
+ TQValueList<ParsedAttribute*> attrList = parsedClass->getSortedAttributeList();
+ TQValueList<ParsedAttribute*>::ConstIterator it;
for (it = attrList.begin(); it != attrList.end(); ++it) {
if (filter == (PIAccess)-1 || filter == (*it)->access())
ilastItem = new ClassTreeAttrItem(*lastItem, ilastItem, *it);
@@ -106,8 +106,8 @@ void ClassToolWidget::addClassAndMethods(ParsedClass *parsedClass, PIAccess filt
ClassTreeItem *ilastItem = 0;
- QValueList<ParsedMethod*> methodList = parsedClass->getSortedMethodList();
- QValueList<ParsedMethod*>::ConstIterator it;
+ TQValueList<ParsedMethod*> methodList = parsedClass->getSortedMethodList();
+ TQValueList<ParsedMethod*>::ConstIterator it;
for (it = methodList.begin(); it != methodList.end(); ++it) {
if (filter == (PIAccess)-1 || filter == (*it)->access())
ilastItem = new ClassTreeMethodItem(*lastItem, ilastItem, *it);
diff --git a/parts/classview/classtoolwidget.h b/parts/classview/classtoolwidget.h
index 75119e8f..4d7d8036 100644
--- a/parts/classview/classtoolwidget.h
+++ b/parts/classview/classtoolwidget.h
@@ -22,11 +22,11 @@ class ClassToolWidget : public ClassTreeBase
Q_OBJECT
public:
- ClassToolWidget(ClassViewPart *part, QWidget *parent=0);
+ ClassToolWidget(ClassViewPart *part, TQWidget *parent=0);
~ClassToolWidget();
- void insertClassAndClasses(ParsedClass *parsedClass, QValueList<ParsedClass*> classList);
- void insertClassAndClasses(ParsedClass *parsedClass, const QPtrList<ParsedParent> &parentList);
+ void insertClassAndClasses(ParsedClass *parsedClass, TQValueList<ParsedClass*> classList);
+ void insertClassAndClasses(ParsedClass *parsedClass, const TQPtrList<ParsedParent> &parentList);
void insertAllClassMethods(ParsedClass *parsedClass, PIAccess filter);
void insertAllClassAttributes(ParsedClass *parsedClass, PIAccess filter);
diff --git a/parts/classview/classtreebase.cpp b/parts/classview/classtreebase.cpp
index f5c0f4b9..c6d2770e 100644
--- a/parts/classview/classtreebase.cpp
+++ b/parts/classview/classtreebase.cpp
@@ -13,9 +13,9 @@
#include "classtreebase.h"
-#include <qtooltip.h>
-#include <qheader.h>
-#include <qregexp.h>
+#include <tqtooltip.h>
+#include <tqheader.h>
+#include <tqregexp.h>
#include <kdebug.h>
#include <kconfig.h>
#include <kpopupmenu.h>
@@ -40,11 +40,11 @@ KPopupMenu *ClassTreeItem::createPopup()
KPopupMenu *popup = new KPopupMenu();
if (features & KDevLanguageSupport::Declarations)
- popup->insertItem( i18n("Go to Declaration"), classTree(), SLOT(slotGotoDeclaration()) );
+ popup->insertItem( i18n("Go to Declaration"), classTree(), TQT_SLOT(slotGotoDeclaration()) );
if (m_item->itemType() == PIT_METHOD)
- popup->insertItem( i18n("Go to Definition"), classTree(), SLOT(slotGotoImplementation()) );
+ popup->insertItem( i18n("Go to Definition"), classTree(), TQT_SLOT(slotGotoImplementation()) );
- QString title;
+ TQString title;
switch(m_item->itemType()) {
case PIT_CLASS:
{
@@ -52,13 +52,13 @@ KPopupMenu *ClassTreeItem::createPopup()
bool hasAddMethod = features & KDevLanguageSupport::AddMethod;
bool hasAddAttribute = features & KDevLanguageSupport::AddAttribute;
if (hasAddMethod)
- popup->insertItem( i18n("Add Method..."), classTree(), SLOT(slotAddMethod()));
+ popup->insertItem( i18n("Add Method..."), classTree(), TQT_SLOT(slotAddMethod()));
if (hasAddAttribute)
- popup->insertItem( i18n("Add Attribute..."), classTree(), SLOT(slotAddAttribute()));
+ popup->insertItem( i18n("Add Attribute..."), classTree(), TQT_SLOT(slotAddAttribute()));
popup->insertSeparator();
- popup->insertItem( i18n("Parent Classes..."), classTree(), SLOT(slotClassBaseClasses()));
- popup->insertItem( i18n("Child Classes..."), classTree(), SLOT(slotClassDerivedClasses()));
- popup->insertItem( i18n("Class Tool..."), classTree(), SLOT(slotClassTool()));
+ popup->insertItem( i18n("Parent Classes..."), classTree(), TQT_SLOT(slotClassBaseClasses()));
+ popup->insertItem( i18n("Child Classes..."), classTree(), TQT_SLOT(slotClassDerivedClasses()));
+ popup->insertItem( i18n("Class Tool..."), classTree(), TQT_SLOT(slotClassTool()));
}
break;
case PIT_STRUCT:
@@ -90,16 +90,16 @@ KPopupMenu *ClassTreeItem::createPopup()
}
-QString ClassTreeItem::scopedText() const
+TQString ClassTreeItem::scopedText() const
{
if (m_item)
return m_item->path();
- return QString::null;
+ return TQString::null;
}
-void ClassTreeItem::getDeclaration(QString *toFile, int *toLine)
+void ClassTreeItem::getDeclaration(TQString *toFile, int *toLine)
{
if (m_item) {
*toFile = m_item->declaredInFile();
@@ -108,7 +108,7 @@ void ClassTreeItem::getDeclaration(QString *toFile, int *toLine)
}
-void ClassTreeItem::getImplementation(QString *toFile, int *toLine)
+void ClassTreeItem::getImplementation(TQString *toFile, int *toLine)
{
if (m_item) {
*toFile = m_item->definedInFile();
@@ -117,15 +117,15 @@ void ClassTreeItem::getImplementation(QString *toFile, int *toLine)
}
-QString ClassTreeItem::text( int ) const
+TQString ClassTreeItem::text( int ) const
{
if (m_item)
return m_item->asString();
- return QString::null;
+ return TQString::null;
}
-QString ClassTreeItem::tipText() const
+TQString ClassTreeItem::tipText() const
{
// Purposefully avoid virtual dispatch here
return ClassTreeItem::text(0);
@@ -146,10 +146,10 @@ void ClassTreeScopeItem::init()
}
-QString ClassTreeScopeItem::text( int col ) const
+TQString ClassTreeScopeItem::text( int col ) const
{
if (!m_item)
- return QString::null;
+ return TQString::null;
if (m_item->name().isEmpty())
return i18n("Global");
return ClassTreeItem::text( col );
@@ -171,39 +171,39 @@ void ClassTreeScopeItem::setOpen(bool o)
KDevLanguageSupport::Features features = classTree()->m_part->languageSupport()->features();
// Add namespaces
- QValueList<ParsedScopeContainer*> scopeList = pScope->getSortedScopeList();
- QValueList<ParsedScopeContainer*>::ConstIterator it;
+ TQValueList<ParsedScopeContainer*> scopeList = pScope->getSortedScopeList();
+ TQValueList<ParsedScopeContainer*>::ConstIterator it;
for (it = scopeList.begin(); it != scopeList.end(); ++it)
lastItem = new ClassTreeScopeItem(this, lastItem, *it);
if (features & KDevLanguageSupport::Classes) {
// Add classes
- QValueList<ParsedClass*> classList = pScope->getSortedClassList();
- QValueList<ParsedClass*>::ConstIterator it;
+ TQValueList<ParsedClass*> classList = pScope->getSortedClassList();
+ TQValueList<ParsedClass*>::ConstIterator it;
for (it = classList.begin(); it != classList.end(); ++it)
lastItem = new ClassTreeClassItem(this, lastItem, *it);
}
if (features & KDevLanguageSupport::Structs) {
// Add structs
- QValueList<ParsedClass*> structList = pScope->getSortedStructList();
- QValueList<ParsedClass*>::ConstIterator it;
+ TQValueList<ParsedClass*> structList = pScope->getSortedStructList();
+ TQValueList<ParsedClass*>::ConstIterator it;
for (it = structList.begin(); it != structList.end(); ++it)
lastItem = new ClassTreeClassItem(this, lastItem, *it, true);
}
if (features & KDevLanguageSupport::Functions) {
// Add functions
- QValueList<ParsedMethod*> methodList = pScope->getSortedMethodList();
- QValueList<ParsedMethod*>::ConstIterator it;
+ TQValueList<ParsedMethod*> methodList = pScope->getSortedMethodList();
+ TQValueList<ParsedMethod*>::ConstIterator it;
for (it = methodList.begin(); it != methodList.end(); ++it)
lastItem = new ClassTreeMethodItem(this, lastItem, *it);
}
if (features & KDevLanguageSupport::Variables) {
// Add attributes
- QValueList<ParsedAttribute*> attrList = pScope->getSortedAttributeList();
- QValueList<ParsedAttribute*>::ConstIterator it;
+ TQValueList<ParsedAttribute*> attrList = pScope->getSortedAttributeList();
+ TQValueList<ParsedAttribute*>::ConstIterator it;
for (it = attrList.begin(); it != attrList.end(); ++it)
lastItem = new ClassTreeAttrItem(this, lastItem, *it);
}
@@ -232,38 +232,38 @@ void ClassTreeClassItem::setOpen(bool o)
ClassTreeItem *lastItem = 0;
// Add nested classes
- QValueList<ParsedClass*> classList = pClass->getSortedClassList();
- QValueList<ParsedClass*>::ConstIterator classIt;
+ TQValueList<ParsedClass*> classList = pClass->getSortedClassList();
+ TQValueList<ParsedClass*>::ConstIterator classIt;
for (classIt = classList.begin(); classIt != classList.end(); ++classIt)
lastItem = new ClassTreeClassItem(this, lastItem, *classIt);
// Add nested structs
- QValueList<ParsedClass*> structList = pClass->getSortedStructList();
- QValueList<ParsedClass*>::ConstIterator structIt;
+ TQValueList<ParsedClass*> structList = pClass->getSortedStructList();
+ TQValueList<ParsedClass*>::ConstIterator structIt;
for (structIt = structList.begin(); structIt != structList.end(); ++structIt)
lastItem = new ClassTreeClassItem(this, lastItem, *structIt, true);
// Add methods
- QValueList<ParsedMethod*> methodList = pClass->getSortedMethodList();
- QValueList<ParsedMethod*>::ConstIterator methodIt;
+ TQValueList<ParsedMethod*> methodList = pClass->getSortedMethodList();
+ TQValueList<ParsedMethod*>::ConstIterator methodIt;
for (methodIt = methodList.begin(); methodIt != methodList.end(); ++methodIt)
lastItem = new ClassTreeMethodItem(this, lastItem, *methodIt);
// Add slots
- QValueList<ParsedMethod*> slotList = pClass->getSortedSlotList();
- QValueList<ParsedMethod*>::ConstIterator slotIt;
+ TQValueList<ParsedMethod*> slotList = pClass->getSortedSlotList();
+ TQValueList<ParsedMethod*>::ConstIterator slotIt;
for (slotIt = slotList.begin(); slotIt != slotList.end(); ++slotIt)
lastItem = new ClassTreeMethodItem(this, lastItem, *slotIt);
// Add signals
- QValueList<ParsedMethod*> signalList = pClass->getSortedSignalList();
- QValueList<ParsedMethod*>::ConstIterator signalIt;
+ TQValueList<ParsedMethod*> signalList = pClass->getSortedSignalList();
+ TQValueList<ParsedMethod*>::ConstIterator signalIt;
for (signalIt = signalList.begin(); signalIt != signalList.end(); ++signalIt)
lastItem = new ClassTreeMethodItem(this, lastItem, *signalIt);
// Add attributes
- QValueList<ParsedAttribute*> attrList = pClass->getSortedAttributeList();
- QValueList<ParsedAttribute*>::ConstIterator attrIt;
+ TQValueList<ParsedAttribute*> attrList = pClass->getSortedAttributeList();
+ TQValueList<ParsedAttribute*>::ConstIterator attrIt;
for (attrIt = attrList.begin(); attrIt != attrList.end(); ++attrIt)
lastItem = new ClassTreeAttrItem(this, lastItem, *attrIt);
@@ -276,7 +276,7 @@ ClassTreeMethodItem::ClassTreeMethodItem(ClassTreeItem *parent, ClassTreeItem *l
ParsedMethod *parsedMethod)
: ClassTreeItem(parent, lastSibling, parsedMethod)
{
- QString icon;
+ TQString icon;
if ( !parsedMethod )
return;
@@ -305,12 +305,12 @@ ClassTreeMethodItem::ClassTreeMethodItem(ClassTreeItem *parent, ClassTreeItem *l
setPixmap(0, UserIcon(icon, KIcon::DefaultState, ClassViewFactory::instance()));
}
-QString ClassTreeMethodItem::text( int ) const
+TQString ClassTreeMethodItem::text( int ) const
{
- QString str;
+ TQString str;
if ( !m_item )
- return QString::null;
+ return TQString::null;
ParsedMethod* method = static_cast<ParsedMethod*>(m_item);
@@ -340,7 +340,7 @@ ClassTreeAttrItem::ClassTreeAttrItem(ClassTreeItem *parent, ClassTreeItem *lastS
ParsedAttribute *parsedAttr)
: ClassTreeItem(parent, lastSibling, parsedAttr)
{
- QString icon;
+ TQString icon;
if ( !parsedAttr )
return;
@@ -360,10 +360,10 @@ ClassTreeAttrItem::ClassTreeAttrItem(ClassTreeItem *parent, ClassTreeItem *lastS
}
-QString ClassTreeAttrItem::text( int ) const
+TQString ClassTreeAttrItem::text( int ) const
{
if ( !m_item )
- return QString::null;
+ return TQString::null;
return m_item->name();
}
@@ -371,7 +371,7 @@ ClassTreeScriptItem::ClassTreeScriptItem(ClassTreeItem *parent, ClassTreeItem *l
ParsedScript *parsedScript)
: ClassTreeItem(parent, lastSibling, parsedScript)
{
- QString icon;
+ TQString icon;
if ( !parsedScript )
return;
@@ -384,10 +384,10 @@ ClassTreeScriptItem::ClassTreeScriptItem(ClassTreeItem *parent, ClassTreeItem *l
}
-QString ClassTreeScriptItem::text( int ) const
+TQString ClassTreeScriptItem::text( int ) const
{
if ( !m_item )
- return QString::null;
+ return TQString::null;
return m_item->name();
}
@@ -402,14 +402,14 @@ void ClassTreeScriptItem::setOpen(bool o)
ClassTreeItem *lastItem = 0;
// Add methods
- QValueList<ParsedMethod*> methodList = pClass->getSortedMethodList();
- QValueList<ParsedMethod*>::ConstIterator methodIt;
+ TQValueList<ParsedMethod*> methodList = pClass->getSortedMethodList();
+ TQValueList<ParsedMethod*>::ConstIterator methodIt;
for (methodIt = methodList.begin(); methodIt != methodList.end(); ++methodIt)
lastItem = new ClassTreeMethodItem(this, lastItem, *methodIt);
// Add attributes
- QValueList<ParsedAttribute*> attrList = pClass->getSortedAttributeList();
- QValueList<ParsedAttribute*>::ConstIterator attrIt;
+ TQValueList<ParsedAttribute*> attrList = pClass->getSortedAttributeList();
+ TQValueList<ParsedAttribute*>::ConstIterator attrIt;
for (attrIt = attrList.begin(); attrIt != attrList.end(); ++attrIt)
lastItem = new ClassTreeAttrItem(this, lastItem, *attrIt);
@@ -422,51 +422,51 @@ void ClassTreeScriptItem::setOpen(bool o)
class ClassToolTip : public QToolTip
{
public:
- ClassToolTip( QWidget *parent )
- : QToolTip(parent)
+ ClassToolTip( TQWidget *parent )
+ : TQToolTip(parent)
{}
protected:
- void maybeTip(const QPoint &p);
+ void maybeTip(const TQPoint &p);
};
-void ClassToolTip::maybeTip(const QPoint &p)
+void ClassToolTip::maybeTip(const TQPoint &p)
{
ClassTreeBase *ctw = static_cast<ClassTreeBase*>(parentWidget());
- QListViewItem *item = ctw->itemAt(p);
- QRect r = ctw->itemRect(item);
+ TQListViewItem *item = ctw->itemAt(p);
+ TQRect r = ctw->itemRect(item);
if (item && r.isValid()) {
ClassTreeItem *ctitem = static_cast<ClassTreeItem*>(item);
- QString str = ctitem->tipText();
+ TQString str = ctitem->tipText();
if (!str.isEmpty())
tip(r, str);
}
}
-ClassTreeBase::ClassTreeBase(ClassViewPart *part, QWidget *parent, const char *name)
+ClassTreeBase::ClassTreeBase(ClassViewPart *part, TQWidget *parent, const char *name)
: KListView(parent, name)
{
setFocusPolicy(ClickFocus);
setRootIsDecorated(true);
- setResizeMode(QListView::LastColumn);
+ setResizeMode(TQListView::LastColumn);
setSorting(-1);
header()->hide();
- addColumn(QString::null);
+ addColumn(TQString::null);
(void) new ClassToolTip(this);
- connect( this, SIGNAL(executed(QListViewItem*)),
- this, SLOT(slotItemExecuted(QListViewItem*)) );
- connect( this, SIGNAL(mouseButtonPressed(int, QListViewItem*, const QPoint&, int)),
- this, SLOT(slotItemPressed(int, QListViewItem*)) );
- connect( this, SIGNAL(returnPressed( QListViewItem*)),
- SLOT( slotItemExecuted(QListViewItem*)) );
- connect( this, SIGNAL(contextMenuRequested(QListViewItem*, const QPoint&, int)),
- this, SLOT(slotContextMenuRequested(QListViewItem*, const QPoint&)) );
+ connect( this, TQT_SIGNAL(executed(TQListViewItem*)),
+ this, TQT_SLOT(slotItemExecuted(TQListViewItem*)) );
+ connect( this, TQT_SIGNAL(mouseButtonPressed(int, TQListViewItem*, const TQPoint&, int)),
+ this, TQT_SLOT(slotItemPressed(int, TQListViewItem*)) );
+ connect( this, TQT_SIGNAL(returnPressed( TQListViewItem*)),
+ TQT_SLOT( slotItemExecuted(TQListViewItem*)) );
+ connect( this, TQT_SIGNAL(contextMenuRequested(TQListViewItem*, const TQPoint&, int)),
+ this, TQT_SLOT(slotContextMenuRequested(TQListViewItem*, const TQPoint&)) );
m_part = part;
}
@@ -481,11 +481,11 @@ ClassTreeBase::TreeState ClassTreeBase::treeState() const
TreeState state;
ClassTreeBase *that = const_cast<ClassTreeBase*>(this);
- QListViewItemIterator it(that);
+ TQListViewItemIterator it(that);
for (; it.current(); ++it)
if (it.current()->isOpen()) {
- QStringList path;
- QListViewItem *item = it.current();
+ TQStringList path;
+ TQListViewItem *item = it.current();
while (item) {
path.prepend(item->text(0));
item = item->parent();
@@ -501,10 +501,10 @@ void ClassTreeBase::setTreeState(TreeState state)
{
TreeStateIterator tsit;
for (tsit = state.begin(); tsit != state.end(); ++tsit) {
- QListViewItemIterator it(this);
+ TQListViewItemIterator it(this);
for (; it.current(); ++it) {
- QStringList path;
- QListViewItem *item = it.current();
+ TQStringList path;
+ TQListViewItem *item = it.current();
while (item) {
path.prepend(item->text(0));
item = item->parent();
@@ -520,7 +520,7 @@ void ClassTreeBase::setTreeState(TreeState state)
-void ClassTreeBase::slotItemExecuted( QListViewItem* item )
+void ClassTreeBase::slotItemExecuted( TQListViewItem* item )
{
if (!item)
return;
@@ -535,7 +535,7 @@ void ClassTreeBase::slotItemExecuted( QListViewItem* item )
if (ctitem->isOrganizer())
return;
- QString toFile;
+ TQString toFile;
int toLine = -1;
if (dynamic_cast<ClassTreeClassItem*>(item)) {
ctitem->getDeclaration(&toFile, &toLine);
@@ -548,7 +548,7 @@ void ClassTreeBase::slotItemExecuted( QListViewItem* item )
}
-void ClassTreeBase::slotItemPressed(int button, QListViewItem *item)
+void ClassTreeBase::slotItemPressed(int button, TQListViewItem *item)
{
if (!item)
return;
@@ -560,7 +560,7 @@ void ClassTreeBase::slotItemPressed(int button, QListViewItem *item)
return;
if (button == MidButton) {
- QString toFile;
+ TQString toFile;
int toLine = -1;
ctitem->getDeclaration(&toFile, &toLine);
m_part->partController()->editDocument(toFile, toLine);
@@ -568,7 +568,7 @@ void ClassTreeBase::slotItemPressed(int button, QListViewItem *item)
}
}
-void ClassTreeBase::slotContextMenuRequested(QListViewItem *item, const QPoint &p)
+void ClassTreeBase::slotContextMenuRequested(TQListViewItem *item, const TQPoint &p)
{
contextItem = static_cast<ClassTreeItem*>(item);
@@ -579,7 +579,7 @@ void ClassTreeBase::slotContextMenuRequested(QListViewItem *item, const QPoint &
void ClassTreeBase::slotGotoDeclaration()
{
- QString toFile;
+ TQString toFile;
int toLine = -1;
contextItem->getDeclaration(&toFile, &toLine);
@@ -589,7 +589,7 @@ void ClassTreeBase::slotGotoDeclaration()
void ClassTreeBase::slotGotoImplementation()
{
- QString toFile;
+ TQString toFile;
int toLine = -1;
contextItem->getImplementation(&toFile, &toLine);
diff --git a/parts/classview/classtreebase.h b/parts/classview/classtreebase.h
index e019bcc2..91ac8054 100644
--- a/parts/classview/classtreebase.h
+++ b/parts/classview/classtreebase.h
@@ -32,12 +32,12 @@ class ClassTreeBase : public KListView
Q_OBJECT
public:
- ClassTreeBase( ClassViewPart *part, QWidget *parent=0, const char *name=0 );
+ ClassTreeBase( ClassViewPart *part, TQWidget *parent=0, const char *name=0 );
~ClassTreeBase();
protected:
- typedef QValueList<QStringList> TreeState;
- typedef QValueList<QStringList>::Iterator TreeStateIterator;
+ typedef TQValueList<TQStringList> TreeState;
+ typedef TQValueList<TQStringList>::Iterator TreeStateIterator;
TreeState treeState() const;
void setTreeState(TreeState state);
@@ -45,9 +45,9 @@ protected:
virtual KPopupMenu *createPopup() = 0;
private slots:
- void slotItemExecuted(QListViewItem*);
- void slotItemPressed(int button, QListViewItem *item);
- void slotContextMenuRequested(QListViewItem *item, const QPoint &p);
+ void slotItemExecuted(TQListViewItem*);
+ void slotItemPressed(int button, TQListViewItem *item);
+ void slotContextMenuRequested(TQListViewItem *item, const TQPoint &p);
void slotGotoDeclaration();
void slotGotoImplementation();
void slotAddMethod();
@@ -63,21 +63,21 @@ protected:
};
-class ClassTreeItem : public QListViewItem, public NotifyClient
+class ClassTreeItem : public TQListViewItem, public NotifyClient
{
public:
ClassTreeItem( ClassTreeBase *parent, ClassTreeItem *lastSibling, ParsedItem *parsedItem )
- : QListViewItem(parent, lastSibling), NotifyClient(), m_item(parsedItem)
+ : TQListViewItem(parent, lastSibling), NotifyClient(), m_item(parsedItem)
{
init();
}
ClassTreeItem( ClassTreeItem *parent, ClassTreeItem *lastSibling, ParsedItem *parsedItem )
- : QListViewItem(parent, lastSibling), NotifyClient(), m_item(parsedItem)
+ : TQListViewItem(parent, lastSibling), NotifyClient(), m_item(parsedItem)
{
init();
}
ClassTreeItem( const ClassTreeItem& other )
- : QListViewItem( other.parent(), other.nextSibling()), NotifyClient()
+ : TQListViewItem( other.parent(), other.nextSibling()), NotifyClient()
{
m_item = other.m_item;
init();
@@ -105,12 +105,12 @@ public:
m_item->registerNotifyClient( (NotifyClient*)this );
}
- void getDeclaration(QString *toFile, int *toLine);
- void getImplementation(QString *toFile, int *toLine);
+ void getDeclaration(TQString *toFile, int *toLine);
+ void getImplementation(TQString *toFile, int *toLine);
- virtual QString scopedText() const;
- virtual QString text( int ) const;
- virtual QString tipText() const;
+ virtual TQString scopedText() const;
+ virtual TQString text( int ) const;
+ virtual TQString tipText() const;
protected:
ClassTreeBase *classTree()
@@ -123,22 +123,22 @@ class ClassTreeOrganizerItem : public ClassTreeItem
{
public:
ClassTreeOrganizerItem( ClassTreeBase *parent, ClassTreeItem *lastSibling,
- const QString &text )
+ const TQString &text )
: ClassTreeItem(parent, lastSibling, 0 )
, m_text( text )
{ init(); }
ClassTreeOrganizerItem( ClassTreeItem *parent, ClassTreeItem *lastSibling,
- const QString &text )
+ const TQString &text )
: ClassTreeItem(parent, lastSibling, 0 )
, m_text( text )
{ init(); }
~ClassTreeOrganizerItem()
{}
- virtual QString text( int ) const { return m_text; }
+ virtual TQString text( int ) const { return m_text; }
private:
- QString m_text;
+ TQString m_text;
void init();
};
@@ -163,7 +163,7 @@ public:
{
}
- virtual QString text( int ) const;
+ virtual TQString text( int ) const;
virtual void setOpen(bool o);
private:
@@ -209,7 +209,7 @@ public:
{
}
- virtual QString text( int ) const;
+ virtual TQString text( int ) const;
};
@@ -222,7 +222,7 @@ public:
{
}
- virtual QString text( int ) const;
+ virtual TQString text( int ) const;
};
class ClassTreeScriptItem : public ClassTreeItem
@@ -234,7 +234,7 @@ public:
{
}
- virtual QString text( int ) const;
+ virtual TQString text( int ) const;
virtual void setOpen(bool o);
};
diff --git a/parts/classview/classviewpart.cpp b/parts/classview/classviewpart.cpp
index 42410fbe..24163bf4 100644
--- a/parts/classview/classviewpart.cpp
+++ b/parts/classview/classviewpart.cpp
@@ -19,10 +19,10 @@
*
*/
-#include <qwhatsthis.h>
-#include <qlistview.h>
-#include <qfileinfo.h>
-#include <qlineedit.h>
+#include <tqwhatsthis.h>
+#include <tqlistview.h>
+#include <tqfileinfo.h>
+#include <tqlineedit.h>
#include <kiconloader.h>
#include <klocale.h>
@@ -63,13 +63,13 @@ class FunctionCompletion : public CustomCompleter {
FunctionCompletion() {
setOrder( Insertion );
};
- typedef QMap<QString, QString> FuncMap;
+ typedef TQMap<TQString, TQString> FuncMap;
FuncMap nameMap; /// real -> short
FuncMap revNameMap; /// short -> real
- static const QString processName( QString function ) {
- QString args;
- QString fScope;
+ static const TQString processName( TQString function ) {
+ TQString args;
+ TQString fScope;
int cutpos;
if((cutpos = function.find('(')) != -1) {
@@ -86,10 +86,10 @@ class FunctionCompletion : public CustomCompleter {
return function;
}
- virtual void addItem ( const QString &item ) {
- QString newItemName = item;
+ virtual void addItem ( const TQString &item ) {
+ TQString newItemName = item;
KCompletion::addItem(newItemName);
- QString tx = processName( item );
+ TQString tx = processName( item );
tx += " \"" + item + "\"";
nameMap[item] = tx;
revNameMap[tx] = item;
@@ -102,7 +102,7 @@ class FunctionCompletion : public CustomCompleter {
KCompletion::addItem( item );
}
- virtual void removeItem ( const QString &item ) {
+ virtual void removeItem ( const TQString &item ) {
FuncMap::iterator it = nameMap.find( item );
if( it != nameMap.end() ) {
KCompletion::removeItem( *it );
@@ -117,15 +117,15 @@ class FunctionCompletion : public CustomCompleter {
KCompletion::clear();
}
- virtual void postProcessMatch ( QString *match ) const {
+ virtual void postProcessMatch ( TQString *match ) const {
FuncMap::const_iterator it = revNameMap.find( *match );
if( it != revNameMap.end() ) {
*match = *it;
}
};
- virtual void postProcessMatches ( QStringList *matches ) const {
- QStringList::iterator it = matches->begin();
+ virtual void postProcessMatches ( TQStringList *matches ) const {
+ TQStringList::iterator it = matches->begin();
while( it != matches->end() ) {
postProcessMatch( &(*it) );
@@ -142,7 +142,7 @@ typedef KDevGenericFactory<ClassViewPart> ClassViewFactory;
static const KDevPluginInfo data("kdevclassview");
K_EXPORT_COMPONENT_FACTORY( libkdevclassview, ClassViewFactory( data ) )
-ClassViewPart::ClassViewPart(QObject *parent, const char *name, const QStringList& )
+ClassViewPart::ClassViewPart(TQObject *parent, const char *name, const TQStringList& )
:/// KDevPlugin( &data, parent, name ? name : "ClassViewPart" ),
KDevCodeBrowserFrontend( &data, parent, name ? name : "ClassViewPart" ),
m_activeDocument(0), m_activeView(0), m_activeSelection(0), m_activeEditor(0), m_activeViewCursor(0), m_hierarchyDlg(0)
@@ -158,14 +158,14 @@ ClassViewPart::ClassViewPart(QObject *parent, const char *name, const QStringLis
m_widget->setIcon( SmallIcon("view_tree") );
m_widget->setCaption(i18n("Class Browser"));
mainWindow()->embedSelectView( m_widget, i18n("Classes"), i18n("Class browser") );
- QWhatsThis::add(m_widget, i18n("<b>Class browser</b><p>"
+ TQWhatsThis::add(m_widget, i18n("<b>Class browser</b><p>"
"The class browser shows all namespaces, classes and namespace and class members in a project."));
- connect( core(), SIGNAL(projectOpened()), this, SLOT(slotProjectOpened()) );
- connect( core(), SIGNAL(projectClosed()), this, SLOT(slotProjectClosed()) );
- connect( core(), SIGNAL(languageChanged()), this, SLOT(slotProjectOpened()) );
- connect( partController(), SIGNAL(activePartChanged(KParts::Part*)),
- this, SLOT(activePartChanged(KParts::Part*)));
+ connect( core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(slotProjectOpened()) );
+ connect( core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(slotProjectClosed()) );
+ connect( core(), TQT_SIGNAL(languageChanged()), this, TQT_SLOT(slotProjectOpened()) );
+ connect( partController(), TQT_SIGNAL(activePartChanged(KParts::Part*)),
+ this, TQT_SLOT(activePartChanged(KParts::Part*)));
}
bool ClassViewPart::jumpedToItem( ItemDom item ) {
@@ -182,34 +182,34 @@ ClassViewPart::~ClassViewPart()
void ClassViewPart::slotProjectOpened( )
{
- connect( languageSupport(), SIGNAL(updatedSourceInfo()), navigator, SLOT(refresh()) );
- connect( languageSupport(), SIGNAL(addedSourceInfo(const QString& )), navigator, SLOT(addFile(const QString& )));
+ connect( languageSupport(), TQT_SIGNAL(updatedSourceInfo()), navigator, TQT_SLOT(refresh()) );
+ connect( languageSupport(), TQT_SIGNAL(addedSourceInfo(const TQString& )), navigator, TQT_SLOT(addFile(const TQString& )));
navigator->refresh();
}
void ClassViewPart::slotProjectClosed( )
{
// navigator->refresh();
-// disconnect( languageSupport(), SIGNAL(updatedSourceInfo()), navigator, SLOT(refresh()) );
+// disconnect( languageSupport(), TQT_SIGNAL(updatedSourceInfo()), navigator, TQT_SLOT(refresh()) );
}
void ClassViewPart::setupActions( )
{
m_functionsnav = new KListViewAction( new KComboView(true, 150, 0, "m_functionsnav_combo", new FunctionCompletion() ), i18n("Functions Navigation"), 0, 0, 0, actionCollection(), "functionsnav_combo", true );
- connect(m_functionsnav->view(), SIGNAL(activated(QListViewItem*)), navigator, SLOT(selectFunctionNav(QListViewItem*)));
+ connect(m_functionsnav->view(), TQT_SIGNAL(activated(TQListViewItem*)), navigator, TQT_SLOT(selectFunctionNav(TQListViewItem*)));
// m_functionsnav->view()->setEditable(false);
- connect(m_functionsnav->view(), SIGNAL(focusGranted()), navigator, SLOT(functionNavFocused()));
- connect(m_functionsnav->view(), SIGNAL(focusLost()), navigator, SLOT(functionNavUnFocused()));
+ connect(m_functionsnav->view(), TQT_SIGNAL(focusGranted()), navigator, TQT_SLOT(functionNavFocused()));
+ connect(m_functionsnav->view(), TQT_SIGNAL(focusLost()), navigator, TQT_SLOT(functionNavUnFocused()));
m_functionsnav->setToolTip(i18n("Functions in file"));
m_functionsnav->setWhatsThis(i18n("<b>Function navigator</b><p>Navigates over functions contained in the file."));
// m_functionsnav->view()->setCurrentText(NAV_NODEFINITION);
m_functionsnav->view()->setDefaultText(NAV_NODEFINITION);
- new KAction( i18n("Focus Navigator"), 0, this, SLOT(slotFocusNavbar()), actionCollection(), "focus_navigator" );
+ new KAction( i18n("Focus Navigator"), 0, this, TQT_SLOT(slotFocusNavbar()), actionCollection(), "focus_navigator" );
if (langHasFeature(KDevLanguageSupport::Classes))
{
- KAction *ac = new KAction(i18n("Class Inheritance Diagram"), "view_tree", 0, this, SLOT(graphicalClassView()), actionCollection(), "inheritance_dia");
+ KAction *ac = new KAction(i18n("Class Inheritance Diagram"), "view_tree", 0, this, TQT_SLOT(graphicalClassView()), actionCollection(), "inheritance_dia");
ac->setToolTip(i18n("Class inheritance diagram"));
ac->setWhatsThis(i18n("<b>Class inheritance diagram</b><p>Displays inheritance relationship between classes in project. "
"Note, it does not display classes outside inheritance hierarchy."));
@@ -242,8 +242,8 @@ void ClassViewPart::activePartChanged( KParts::Part * part)
navigator->stopTimer();
if (m_activeView)
{
- disconnect(m_activeView, SIGNAL(cursorPositionChanged()),
- navigator, SLOT(slotCursorPositionChanged()));
+ disconnect(m_activeView, TQT_SIGNAL(cursorPositionChanged()),
+ navigator, TQT_SLOT(slotCursorPositionChanged()));
}
kdDebug() << "ClassViewPart::activePartChanged()" << endl;
@@ -254,7 +254,7 @@ void ClassViewPart::activePartChanged( KParts::Part * part)
m_activeSelection = dynamic_cast<KTextEditor::SelectionInterface*>( part );
m_activeViewCursor = part ? dynamic_cast<KTextEditor::ViewCursorInterface*>( m_activeView ) : 0;
- m_activeFileName = QString::null;
+ m_activeFileName = TQString::null;
if (m_activeDocument)
{
@@ -263,12 +263,12 @@ void ClassViewPart::activePartChanged( KParts::Part * part)
navigator->syncFunctionNavDelayed(200);
/* if ( languageSupport()->mimeTypes().find(
KMimeType::findByPath(m_activeFileName)) != languageSupport()->mimeTypes().end() )
- m_activeFileName = QString::null;*/
+ m_activeFileName = TQString::null;*/
}
if( m_activeViewCursor )
{
- connect(m_activeView, SIGNAL(cursorPositionChanged()),
- navigator, SLOT(slotCursorPositionChanged()) );
+ connect(m_activeView, TQT_SIGNAL(cursorPositionChanged()),
+ navigator, TQT_SLOT(slotCursorPositionChanged()) );
}
}
void ClassViewPart::slotFocusNavbar()
diff --git a/parts/classview/classviewpart.h b/parts/classview/classviewpart.h
index 0f4aa115..ffa1cc1f 100644
--- a/parts/classview/classviewpart.h
+++ b/parts/classview/classviewpart.h
@@ -24,8 +24,8 @@
#include "kdevlanguagesupport.h"
#include "viewcombos.h"
-#include <qguardedptr.h>
-#include <qmap.h>
+#include <tqguardedptr.h>
+#include <tqmap.h>
#include <kdevplugin.h>
@@ -56,7 +56,7 @@ class ClassViewPart : public Extensions::KDevCodeBrowserFrontend
{
Q_OBJECT
public:
- ClassViewPart(QObject *parent, const char *name, const QStringList &);
+ ClassViewPart(TQObject *parent, const char *name, const TQStringList &);
virtual ~ClassViewPart();
bool langHasFeature(KDevLanguageSupport::Features feature);
@@ -82,9 +82,9 @@ private slots:
private:
void setupActions();
- QGuardedPtr<ClassViewWidget> m_widget;
+ TQGuardedPtr<ClassViewWidget> m_widget;
- QString m_activeFileName;
+ TQString m_activeFileName;
KTextEditor::Document* m_activeDocument;
KTextEditor::View* m_activeView;
KTextEditor::SelectionInterface* m_activeSelection;
diff --git a/parts/classview/classviewwidget.cpp b/parts/classview/classviewwidget.cpp
index 0ab90856..64079546 100644
--- a/parts/classview/classviewwidget.cpp
+++ b/parts/classview/classviewwidget.cpp
@@ -41,15 +41,15 @@
#include <klocale.h>
#include <kdebug.h>
-#include <qheader.h>
-#include <qdir.h>
-#include <qstylesheet.h>
-#include <qstringlist.h>
+#include <tqheader.h>
+#include <tqdir.h>
+#include <tqstylesheet.h>
+#include <tqstringlist.h>
// namespace ?!?
ClassViewWidget::ClassViewWidget( ClassViewPart * part )
- : KListView( 0, "ClassViewWidget" ), QToolTip( viewport() ), m_part( part ), m_projectDirectoryLength( 0 )
+ : KListView( 0, "ClassViewWidget" ), TQToolTip( viewport() ), m_part( part ), m_projectDirectoryLength( 0 )
{
addColumn( "" );
header()->hide();
@@ -59,40 +59,40 @@ ClassViewWidget::ClassViewWidget( ClassViewPart * part )
m_projectItem = 0;
- connect( this, SIGNAL(returnPressed(QListViewItem*)), this, SLOT(slotExecuted(QListViewItem*)) );
- connect( this, SIGNAL(executed(QListViewItem*)), this, SLOT(slotExecuted(QListViewItem*)) );
- connect( m_part->core(), SIGNAL(projectOpened()), this, SLOT(slotProjectOpened()) );
- connect( m_part->core(), SIGNAL(projectClosed()), this, SLOT(slotProjectClosed()) );
- connect( m_part->core(), SIGNAL(languageChanged()), this, SLOT(slotProjectOpened()) );
+ connect( this, TQT_SIGNAL(returnPressed(TQListViewItem*)), this, TQT_SLOT(slotExecuted(TQListViewItem*)) );
+ connect( this, TQT_SIGNAL(executed(TQListViewItem*)), this, TQT_SLOT(slotExecuted(TQListViewItem*)) );
+ connect( m_part->core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(slotProjectOpened()) );
+ connect( m_part->core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(slotProjectClosed()) );
+ connect( m_part->core(), TQT_SIGNAL(languageChanged()), this, TQT_SLOT(slotProjectOpened()) );
- QStringList lst;
+ TQStringList lst;
lst << i18n( "Group by Directories" ) << i18n( "Plain List" ) << i18n( "Java Like Mode" );
m_actionViewMode = new KSelectAction( i18n("View Mode"), KShortcut(), m_part->actionCollection(), "classview_mode" );
m_actionViewMode->setItems( lst );
m_actionViewMode->setWhatsThis(i18n("<b>View mode</b><p>Class browser items can be grouped by directories, listed in a plain or java like view."));
- m_actionNewClass = new KAction( i18n("New Class..."), KShortcut(), this, SLOT(slotNewClass()),
+ m_actionNewClass = new KAction( i18n("New Class..."), KShortcut(), this, TQT_SLOT(slotNewClass()),
m_part->actionCollection(), "classview_new_class" );
m_actionNewClass->setWhatsThis(i18n("<b>New class</b><p>Calls the <b>New Class</b> wizard."));
- m_actionCreateAccessMethods = new KAction( i18n("Create get/set Methods"), KShortcut(), this, SLOT(slotCreateAccessMethods()), m_part->actionCollection(), "classview_create_access_methods" );
+ m_actionCreateAccessMethods = new KAction( i18n("Create get/set Methods"), KShortcut(), this, TQT_SLOT(slotCreateAccessMethods()), m_part->actionCollection(), "classview_create_access_methods" );
- m_actionAddMethod = new KAction( i18n("Add Method..."), KShortcut(), this, SLOT(slotAddMethod()),
+ m_actionAddMethod = new KAction( i18n("Add Method..."), KShortcut(), this, TQT_SLOT(slotAddMethod()),
m_part->actionCollection(), "classview_add_method" );
m_actionAddMethod->setWhatsThis(i18n("<b>Add method</b><p>Calls the <b>New Method</b> wizard."));
- m_actionAddAttribute = new KAction( i18n("Add Attribute..."), KShortcut(), this, SLOT(slotAddAttribute()),
+ m_actionAddAttribute = new KAction( i18n("Add Attribute..."), KShortcut(), this, TQT_SLOT(slotAddAttribute()),
m_part->actionCollection(), "classview_add_attribute" );
m_actionAddAttribute->setWhatsThis(i18n("<b>Add attribute</b><p>Calls the <b>New Attribute</b> wizard."));
- m_actionOpenDeclaration = new KAction( i18n("Open Declaration"), KShortcut(), this, SLOT(slotOpenDeclaration()),
+ m_actionOpenDeclaration = new KAction( i18n("Open Declaration"), KShortcut(), this, TQT_SLOT(slotOpenDeclaration()),
m_part->actionCollection(), "classview_open_declaration" );
m_actionOpenDeclaration->setWhatsThis(i18n("<b>Open declaration</b><p>Opens a file where the selected item is declared and jumps to the declaration line."));
- m_actionOpenImplementation = new KAction( i18n("Open Implementation"), KShortcut(), this, SLOT(slotOpenImplementation()),
+ m_actionOpenImplementation = new KAction( i18n("Open Implementation"), KShortcut(), this, TQT_SLOT(slotOpenImplementation()),
m_part->actionCollection(), "classview_open_implementation" );
m_actionOpenImplementation->setWhatsThis(i18n("<b>Open implementation</b><p>Opens a file where the selected item is defined (implemented) and jumps to the definition line."));
- m_actionFollowEditor = new KToggleAction( i18n("Follow Editor"), KShortcut(), this, SLOT(slotFollowEditor()), m_part->actionCollection(), "classview_follow_editor" );
+ m_actionFollowEditor = new KToggleAction( i18n("Follow Editor"), KShortcut(), this, TQT_SLOT(slotFollowEditor()), m_part->actionCollection(), "classview_follow_editor" );
KConfig* config = m_part->instance()->config();
config->setGroup( "General" );
@@ -110,13 +110,13 @@ ClassViewWidget::~ClassViewWidget( )
}
template <class ModelType, class ListItemType>
- static bool selectItemG( ItemDom item, const QMap<KSharedPtr<ModelType>, ListItemType*>& map )
+ static bool selectItemG( ItemDom item, const TQMap<KSharedPtr<ModelType>, ListItemType*>& map )
{
ModelType* c = dynamic_cast<ModelType*>( &(*item) );
if( c ) {
KSharedPtr<ModelType> d( c );
- typename QMap<KSharedPtr<ModelType>, ListItemType*>::ConstIterator it = map.find(d);
+ typename TQMap<KSharedPtr<ModelType>, ListItemType*>::ConstIterator it = map.find(d);
if( it != map.end() ) {
( *it )->select();
return true;
@@ -126,7 +126,7 @@ template <class ModelType, class ListItemType>
}
-void ClassViewWidget::slotExecuted( QListViewItem* item )
+void ClassViewWidget::slotExecuted( TQListViewItem* item )
{
if( ClassViewItem* cbitem = dynamic_cast<ClassViewItem*>( item ) ){
if( cbitem->hasImplementation() )
@@ -143,7 +143,7 @@ void ClassViewWidget::clear( )
m_projectItem = 0;
}
-void restoreOpenNodes( QStringList & list, QListViewItem * item )
+void restoreOpenNodes( TQStringList & list, TQListViewItem * item )
{
if ( item && !list.isEmpty() )
{
@@ -160,13 +160,13 @@ void restoreOpenNodes( QStringList & list, QListViewItem * item )
}
}
-void storeOpenNodes( QValueList<QStringList> & openNodes, QStringList const & list, QListViewItem * item )
+void storeOpenNodes( TQValueList<TQStringList> & openNodes, TQStringList const & list, TQListViewItem * item )
{
if ( item )
{
if ( item->isOpen() )
{
- QStringList mylist( list );
+ TQStringList mylist( list );
mylist << item->text( 0 );
openNodes << mylist;
storeOpenNodes( openNodes, mylist, item->firstChild() );
@@ -180,8 +180,8 @@ void ClassViewWidget::refresh()
if( !m_part->project() )
return;
- QValueList<QStringList> openNodes;
- storeOpenNodes( openNodes, QStringList(), firstChild() );
+ TQValueList<TQStringList> openNodes;
+ storeOpenNodes( openNodes, TQStringList(), firstChild() );
int scrollbarPos = verticalScrollBar()->value();
clear();
@@ -196,7 +196,7 @@ void ClassViewWidget::refresh()
++it;
}
- QValueList<QStringList>::iterator itt = openNodes.begin();
+ TQValueList<TQStringList>::iterator itt = openNodes.begin();
while ( itt != openNodes.end() )
{
restoreOpenNodes ( *itt, firstChild() );
@@ -218,12 +218,12 @@ void ClassViewWidget::slotProjectOpened( )
m_projectDirectoryLength = m_projectDirectory.length() + 1;
- connect( m_part->languageSupport(), SIGNAL(updatedSourceInfo()),
- this, SLOT(refresh()) );
- connect( m_part->languageSupport(), SIGNAL(aboutToRemoveSourceInfo(const QString&)),
- this, SLOT(removeFile(const QString&)) );
- connect( m_part->languageSupport(), SIGNAL(addedSourceInfo(const QString&)),
- this, SLOT(insertFile(const QString&)) );
+ connect( m_part->languageSupport(), TQT_SIGNAL(updatedSourceInfo()),
+ this, TQT_SLOT(refresh()) );
+ connect( m_part->languageSupport(), TQT_SIGNAL(aboutToRemoveSourceInfo(const TQString&)),
+ this, TQT_SLOT(removeFile(const TQString&)) );
+ connect( m_part->languageSupport(), TQT_SIGNAL(addedSourceInfo(const TQString&)),
+ this, TQT_SLOT(insertFile(const TQString&)) );
}
void ClassViewWidget::slotProjectClosed( )
@@ -231,9 +231,9 @@ void ClassViewWidget::slotProjectClosed( )
}
-void ClassViewWidget::insertFile( const QString& fileName )
+void ClassViewWidget::insertFile( const TQString& fileName )
{
- QString fn = URLUtil::canonicalPath( fileName );
+ TQString fn = URLUtil::canonicalPath( fileName );
//kdDebug() << "======================== insertFile(" << fn << ")" << endl;
FileDom dom = m_part->codeModel()->fileByName( fn );
@@ -241,13 +241,13 @@ void ClassViewWidget::insertFile( const QString& fileName )
return;
fn = URLUtil::relativePathToFile(m_part->project()->projectDirectory(), fn);
- QStringList path;
+ TQStringList path;
switch( viewMode() )
{
case KDevelop3ViewMode:
{
- path = QStringList::split( "/", fn );
+ path = TQStringList::split( "/", fn );
path.pop_back();
}
break;
@@ -259,10 +259,10 @@ void ClassViewWidget::insertFile( const QString& fileName )
case JavaLikeViewMode:
{
- QStringList l = QStringList::split( "/", fn );
+ TQStringList l = TQStringList::split( "/", fn );
l.pop_back();
- QString package = l.join(".");
+ TQString package = l.join(".");
if( !package.isEmpty() )
path.push_back( package );
}
@@ -272,9 +272,9 @@ void ClassViewWidget::insertFile( const QString& fileName )
m_projectItem->processFile( dom, path );
}
-void ClassViewWidget::removeFile( const QString& fileName )
+void ClassViewWidget::removeFile( const TQString& fileName )
{
- QString fn = URLUtil::canonicalPath( fileName );
+ TQString fn = URLUtil::canonicalPath( fileName );
//kdDebug() << "======================== removeFile(" << fn << ")" << endl;
FileDom dom = m_part->codeModel()->fileByName( fn );
@@ -282,13 +282,13 @@ void ClassViewWidget::removeFile( const QString& fileName )
return;
fn = URLUtil::relativePathToFile(m_part->project()->projectDirectory(), fn);
- QStringList path;
+ TQStringList path;
switch( viewMode() )
{
case KDevelop3ViewMode:
{
- path = QStringList::split( "/", fn );
+ path = TQStringList::split( "/", fn );
path.pop_back();
}
break;
@@ -300,10 +300,10 @@ void ClassViewWidget::removeFile( const QString& fileName )
case JavaLikeViewMode:
{
- QStringList l = QStringList::split( "/", fn );
+ TQStringList l = TQStringList::split( "/", fn );
l.pop_back();
- QString package = l.join(".");
+ TQString package = l.join(".");
if( !package.isEmpty() )
path.push_back( package );
}
@@ -313,7 +313,7 @@ void ClassViewWidget::removeFile( const QString& fileName )
m_projectItem->processFile( dom, path, true );
}
-void ClassViewWidget::contentsContextMenuEvent( QContextMenuEvent * ev )
+void ClassViewWidget::contentsContextMenuEvent( TQContextMenuEvent * ev )
{
KPopupMenu menu( this );
@@ -376,14 +376,14 @@ int ClassViewWidget::viewMode( ) const
return m_actionViewMode->currentItem();
}
-QString ClassViewItem::comment() {
- return QString();
+TQString ClassViewItem::comment() {
+ return TQString();
}
void ClassViewItem::select( ) {
setOpen(true);
listView()->setCurrentItem(this);
- QListViewItem* c = firstChild();
+ TQListViewItem* c = firstChild();
int size = 0;
if(c != 0) {
while(c->nextSibling()) {
@@ -411,7 +411,7 @@ bool ClassViewWidget::selectItem( ItemDom item ) {
}
-QString NamespaceDomBrowserItem::comment() {
+TQString NamespaceDomBrowserItem::comment() {
return m_dom->comment();
}
@@ -437,17 +437,17 @@ bool FolderBrowserItem::selectItem(ItemDom item)
///searching for namespaces is currently not supported and not useful
}
- for( QMap<ClassDom, ClassDomBrowserItem*>::Iterator it = m_classes.begin(); it != m_classes.end(); ++it ) {
+ for( TQMap<ClassDom, ClassDomBrowserItem*>::Iterator it = m_classes.begin(); it != m_classes.end(); ++it ) {
if( (*it)->selectItem(item) )
return true;
}
- for( QMap<QString, NamespaceDomBrowserItem*>::Iterator it = m_namespaces.begin(); it != m_namespaces.end(); ++it ) {
+ for( TQMap<TQString, NamespaceDomBrowserItem*>::Iterator it = m_namespaces.begin(); it != m_namespaces.end(); ++it ) {
if( (*it)->selectItem(item) )
return true;
}
- for( QMap<QString, FolderBrowserItem*>::Iterator it = m_folders.begin(); it != m_folders.end(); ++it ) {
+ for( TQMap<TQString, FolderBrowserItem*>::Iterator it = m_folders.begin(); it != m_folders.end(); ++it ) {
if( (*it)->selectItem(item) ) {
return true;
}
@@ -456,7 +456,7 @@ bool FolderBrowserItem::selectItem(ItemDom item)
}
-void FolderBrowserItem::processFile( FileDom file, QStringList& path, bool remove )
+void FolderBrowserItem::processFile( FileDom file, TQStringList& path, bool remove )
{
if( path.isEmpty() ){
NamespaceList namespaceList = file->namespaceList();
@@ -479,7 +479,7 @@ void FolderBrowserItem::processFile( FileDom file, QStringList& path, bool remov
return;
}
- QString current = path.front();
+ TQString current = path.front();
path.pop_front();
FolderBrowserItem* item = m_folders.contains( current ) ? m_folders[ current ] : 0;
@@ -664,12 +664,12 @@ bool NamespaceDomBrowserItem::selectItem( ItemDom item)
///currently not neccessary..
}
- for(QMap<ClassDom, ClassDomBrowserItem*>::Iterator it = m_classes.begin(); it != m_classes.end(); ++it) {
+ for(TQMap<ClassDom, ClassDomBrowserItem*>::Iterator it = m_classes.begin(); it != m_classes.end(); ++it) {
if( (*it)->selectItem(item) )
return true;
}
- for(QMap<QString, NamespaceDomBrowserItem*>::Iterator it = m_namespaces.begin(); it != m_namespaces.end(); ++it) {
+ for(TQMap<TQString, NamespaceDomBrowserItem*>::Iterator it = m_namespaces.begin(); it != m_namespaces.end(); ++it) {
if( (*it)->selectItem(item) )
return true;
}
@@ -834,7 +834,7 @@ bool ClassDomBrowserItem::selectItem(ItemDom item)
if( selectItemG ( item, m_variables ) ) return true;
}
- for(QMap<ClassDom, ClassDomBrowserItem*>::Iterator it = m_classes.begin(); it != m_classes.end(); ++it) {
+ for(TQMap<ClassDom, ClassDomBrowserItem*>::Iterator it = m_classes.begin(); it != m_classes.end(); ++it) {
if( (*it)->selectItem(item) )
return true;
}
@@ -951,7 +951,7 @@ void NamespaceDomBrowserItem::setup( )
setPixmap( 0, UserIcon("CVnamespace", KIcon::DefaultState, listView()->m_part->instance()) );
setExpandable( true );
- QString txt = listView()->m_part->languageSupport()->formatModelItem(m_dom.data(), true);
+ TQString txt = listView()->m_part->languageSupport()->formatModelItem(m_dom.data(), true);
setText( 0, txt );
}
@@ -961,7 +961,7 @@ void ClassDomBrowserItem::setup( )
setPixmap( 0, UserIcon("CVclass", KIcon::DefaultState, listView()->m_part->instance()) );
setExpandable( true );
- QString txt = listView()->m_part->languageSupport()->formatModelItem(m_dom.data(), true);
+ TQString txt = listView()->m_part->languageSupport()->formatModelItem(m_dom.data(), true);
setText( 0, txt );
}
@@ -971,7 +971,7 @@ void TypeAliasDomBrowserItem::setup( )
setPixmap( 0, UserIcon("CVtypedef", KIcon::DefaultState, listView()->m_part->instance()) );
setExpandable( false );
- QString txt = listView()->m_part->languageSupport()->formatModelItem(m_dom.data(), true);
+ TQString txt = listView()->m_part->languageSupport()->formatModelItem(m_dom.data(), true);
setText( 0, txt );
}
@@ -979,8 +979,8 @@ void FunctionDomBrowserItem::setup( )
{
ClassViewItem::setup();
- QString iconName;
- QString methodType;
+ TQString iconName;
+ TQString methodType;
if ( m_dom->isSignal() )
methodType = "signal";
@@ -998,7 +998,7 @@ void FunctionDomBrowserItem::setup( )
setPixmap( 0, UserIcon(iconName, KIcon::DefaultState, listView()->m_part->instance()) );
- QString txt = listView()->m_part->languageSupport()->formatModelItem(m_dom.data(), true);
+ TQString txt = listView()->m_part->languageSupport()->formatModelItem(m_dom.data(), true);
item() = highlightFunctionName(txt, 1, m_styles);
}
@@ -1020,13 +1020,13 @@ void FunctionDomBrowserItem::openImplementation()
return;
FunctionDefinitionDom fun;
- QFileInfo fileInfo( m_dom->fileName() );
- QString path = fileInfo.dirPath( true );
+ TQFileInfo fileInfo( m_dom->fileName() );
+ TQString path = fileInfo.dirPath( true );
for( FunctionDefinitionList::Iterator it=lst.begin(); it!=lst.end(); ++it )
{
- QFileInfo defFileInfo( (*it)->fileName() );
- QString defPath = defFileInfo.dirPath( true );
+ TQFileInfo defFileInfo( (*it)->fileName() );
+ TQString defPath = defFileInfo.dirPath( true );
if( path != defPath )
continue;
@@ -1050,7 +1050,7 @@ void FunctionDomBrowserItem::openImplementation()
void VariableDomBrowserItem::setup( )
{
ClassViewItem::setup();
- QString iconName;
+ TQString iconName;
if( m_dom->access() == CodeModelItem::Private )
iconName = "CVprivate_var";
else if( m_dom->access() == CodeModelItem::Protected )
@@ -1060,7 +1060,7 @@ void VariableDomBrowserItem::setup( )
setPixmap( 0, UserIcon(iconName, KIcon::DefaultState, listView()->m_part->instance()) );
- QString txt = listView()->m_part->languageSupport()->formatModelItem(m_dom.data(), true);
+ TQString txt = listView()->m_part->languageSupport()->formatModelItem(m_dom.data(), true);
setText( 0, txt );
}
@@ -1076,32 +1076,32 @@ void VariableDomBrowserItem::openImplementation()
{
}
-QString FolderBrowserItem::key( int , bool ) const
+TQString FolderBrowserItem::key( int , bool ) const
{
return "0 " + text( 0 );
}
-QString NamespaceDomBrowserItem::key( int , bool ) const
+TQString NamespaceDomBrowserItem::key( int , bool ) const
{
return "1 " + text( 0 );
}
-QString ClassDomBrowserItem::key( int , bool ) const
+TQString ClassDomBrowserItem::key( int , bool ) const
{
return "2 " + text( 0 );
}
-QString TypeAliasDomBrowserItem::key( int , bool ) const
+TQString TypeAliasDomBrowserItem::key( int , bool ) const
{
return "3 " + text( 0 );
}
-QString FunctionDomBrowserItem::key( int , bool ) const
+TQString FunctionDomBrowserItem::key( int , bool ) const
{
return "4 " + text( 0 );
}
-QString VariableDomBrowserItem::key( int , bool ) const
+TQString VariableDomBrowserItem::key( int , bool ) const
{
return "5 " + text( 0 );
}
@@ -1165,12 +1165,12 @@ bool FunctionDomBrowserItem::hasImplementation() const
return !lst.isEmpty();
}
-void ClassViewWidget::maybeTip( QPoint const & p )
+void ClassViewWidget::maybeTip( TQPoint const & p )
{
ClassViewItem * item = dynamic_cast<ClassViewItem*>( itemAt( p ) );
if ( !item ) return;
- QString tooltip;
+ TQString tooltip;
if ( item->isNamespace() )
{
@@ -1195,7 +1195,7 @@ void ClassViewWidget::maybeTip( QPoint const & p )
FunctionDomBrowserItem * fitem = dynamic_cast<FunctionDomBrowserItem*>( item );
if ( fitem )
{
- QString access;
+ TQString access;
if ( fitem->dom()->access() == CodeModelItem::Private )
access = "[private] ";
else if ( fitem->dom()->access() == CodeModelItem::Protected )
@@ -1203,7 +1203,7 @@ void ClassViewWidget::maybeTip( QPoint const & p )
else if ( fitem->dom()->access() == CodeModelItem::Public )
access = "[public] ";
- QStringList arguments;
+ TQStringList arguments;
ArgumentList const & list = fitem->dom()->argumentList();
ArgumentList::ConstIterator it( list.begin() );
while ( it != list.end() )
@@ -1212,13 +1212,13 @@ void ClassViewWidget::maybeTip( QPoint const & p )
++it;
}
- QString strstatic = fitem->dom()->isStatic() ? QString( "[static] " ) : QString::null;
- QString strsignal = fitem->dom()->isSignal() ? QString( "[signal] " ) : QString::null;
- QString strslot = fitem->dom()->isSlot() ? QString( "[slot] " ) : QString::null;
- QString strresult = !fitem->dom()->resultType().isEmpty() ? fitem->dom()->resultType() + " " : QString::null;
+ TQString strstatic = fitem->dom()->isStatic() ? TQString( "[static] " ) : TQString::null;
+ TQString strsignal = fitem->dom()->isSignal() ? TQString( "[signal] " ) : TQString::null;
+ TQString strslot = fitem->dom()->isSlot() ? TQString( "[slot] " ) : TQString::null;
+ TQString strresult = !fitem->dom()->resultType().isEmpty() ? fitem->dom()->resultType() + " " : TQString::null;
- QString strconstant = fitem->dom()->isConstant() ? QString( " [const]" ) : QString::null;
- QString strabstract = fitem->dom()->isAbstract() ? QString( " [abstract]" ) : QString::null;
+ TQString strconstant = fitem->dom()->isConstant() ? TQString( " [const]" ) : TQString::null;
+ TQString strabstract = fitem->dom()->isAbstract() ? TQString( " [abstract]" ) : TQString::null;
tooltip = access + strstatic + strsignal + strslot + strresult
+ fitem->dom()->scope().join("::") + "::" + fitem->dom()->name()
@@ -1230,7 +1230,7 @@ void ClassViewWidget::maybeTip( QPoint const & p )
VariableDomBrowserItem * vitem = dynamic_cast<VariableDomBrowserItem*>( item );
if ( vitem )
{
- QString access;
+ TQString access;
if ( vitem->dom()->access() == CodeModelItem::Private )
access = "[private] ";
else if ( vitem->dom()->access() == CodeModelItem::Protected )
@@ -1238,7 +1238,7 @@ void ClassViewWidget::maybeTip( QPoint const & p )
else if ( vitem->dom()->access() == CodeModelItem::Public )
access = "[public] ";
- QString strstatic = vitem->dom()->isStatic() ? QString( "[static] " ) : QString::null;
+ TQString strstatic = vitem->dom()->isStatic() ? TQString( "[static] " ) : TQString::null;
tooltip = access + strstatic + vitem->dom()->type() + " " + vitem->dom()->name();
}
}
@@ -1246,7 +1246,7 @@ void ClassViewWidget::maybeTip( QPoint const & p )
{
if( TypeAliasDomBrowserItem * titem = dynamic_cast<TypeAliasDomBrowserItem*>( item ) )
{
- tooltip = QString( "[Type] " ) + titem->dom()->type() + " " + titem->dom()->name();
+ tooltip = TQString( "[Type] " ) + titem->dom()->type() + " " + titem->dom()->name();
}
}
@@ -1259,11 +1259,11 @@ void ClassViewWidget::maybeTip( QPoint const & p )
kdDebug(0) << tooltip << endl;
- QRect r = itemRect( item );
+ TQRect r = itemRect( item );
if ( item && r.isValid() && !tooltip.isEmpty() )
{
- tip( r, QString("<qt><pre>") + QStyleSheet::escape( tooltip ) + QString("</pre></qt>") );
+ tip( r, TQString("<qt><pre>") + TQStyleSheet::escape( tooltip ) + TQString("</pre></qt>") );
}
}
diff --git a/parts/classview/classviewwidget.h b/parts/classview/classviewwidget.h
index 975f6e09..0ace5692 100644
--- a/parts/classview/classviewwidget.h
+++ b/parts/classview/classviewwidget.h
@@ -23,10 +23,10 @@
#define __CLASSVIEW_WIDGET_H__
#include <klistview.h>
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qmap.h>
-#include <qtooltip.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqmap.h>
+#include <tqtooltip.h>
#include <codemodel.h>
#include <fancylistviewitem.h>
#include <navigator.h>
@@ -80,21 +80,21 @@ private slots:
void slotFollowEditor();
protected:
- void contentsContextMenuEvent( QContextMenuEvent* );
- void maybeTip( QPoint const & );
+ void contentsContextMenuEvent( TQContextMenuEvent* );
+ void maybeTip( TQPoint const & );
private slots:
void slotProjectOpened();
void slotProjectClosed();
void refresh();
- void insertFile( const QString& fileName );
- void removeFile( const QString& fileName );
- void slotExecuted( QListViewItem* item );
+ void insertFile( const TQString& fileName );
+ void removeFile( const TQString& fileName );
+ void slotExecuted( TQListViewItem* item );
private:
ClassViewPart* m_part;
- QStringList removedText;
- QString m_projectDirectory;
+ TQStringList removedText;
+ TQString m_projectDirectory;
int m_projectDirectoryLength;
FolderBrowserItem* m_projectItem;
KSelectAction* m_actionViewMode;
@@ -120,9 +120,9 @@ class ClassViewItem: public FancyListViewItem
{
private:
public:
- ClassViewItem( QListView* parent, const QString& text=QString::null )
+ ClassViewItem( TQListView* parent, const TQString& text=TQString::null )
: FancyListViewItem( static_cast<ClassViewWidget*>( parent )->m_paintStyles, parent, text ) {}
- ClassViewItem( QListViewItem* parent, const QString& text=QString::null )
+ ClassViewItem( TQListViewItem* parent, const TQString& text=TQString::null )
: FancyListViewItem( static_cast<ClassViewWidget*>( parent->listView() )->m_paintStyles, parent, text ) {}
virtual const CodeModelItem* model() const { return 0; }
@@ -143,26 +143,26 @@ public:
void select();
- virtual QString comment();
+ virtual TQString comment();
- ClassViewWidget* listView() { return static_cast<ClassViewWidget*>( QListViewItem::listView() ); }
- const ClassViewWidget* listView() const { return static_cast<ClassViewWidget*>( QListViewItem::listView() ); }
+ ClassViewWidget* listView() { return static_cast<ClassViewWidget*>( TQListViewItem::listView() ); }
+ const ClassViewWidget* listView() const { return static_cast<ClassViewWidget*>( TQListViewItem::listView() ); }
};
class FolderBrowserItem: public ClassViewItem
{
public:
- FolderBrowserItem( ClassViewWidget* widget, QListView* parent, const QString& name=QString::null )
+ FolderBrowserItem( ClassViewWidget* widget, TQListView* parent, const TQString& name=TQString::null )
: ClassViewItem( parent, name ), m_widget(widget) {}
- FolderBrowserItem( ClassViewWidget* widget, QListViewItem* parent, const QString& name=QString::null )
+ FolderBrowserItem( ClassViewWidget* widget, TQListViewItem* parent, const TQString& name=TQString::null )
: ClassViewItem( parent, name ), m_widget(widget) {}
virtual bool isFolder() const { return true; }
void setup();
- QString key( int, bool ) const;
+ TQString key( int, bool ) const;
- void processFile( FileDom file, QStringList& path, bool remove=false );
+ void processFile( FileDom file, TQStringList& path, bool remove=false );
void processNamespace( NamespaceDom ns, bool remove=false );
void processClass( ClassDom klass, bool remove=false );
void processTypeAlias( TypeAliasDom typeAlias, bool remove=false );
@@ -171,12 +171,12 @@ public:
bool selectItem(ItemDom item);
private:
- QMap<QString, FolderBrowserItem*> m_folders;
- QMap<QString, NamespaceDomBrowserItem*> m_namespaces;
- QMap<ClassDom, ClassDomBrowserItem*> m_classes;
- QMap<TypeAliasDom, TypeAliasDomBrowserItem*> m_typeAliases;
- QMap<FunctionDom, FunctionDomBrowserItem*> m_functions;
- QMap<VariableDom, VariableDomBrowserItem*> m_variables;
+ TQMap<TQString, FolderBrowserItem*> m_folders;
+ TQMap<TQString, NamespaceDomBrowserItem*> m_namespaces;
+ TQMap<ClassDom, ClassDomBrowserItem*> m_classes;
+ TQMap<TypeAliasDom, TypeAliasDomBrowserItem*> m_typeAliases;
+ TQMap<FunctionDom, FunctionDomBrowserItem*> m_functions;
+ TQMap<VariableDom, VariableDomBrowserItem*> m_variables;
ClassViewWidget* m_widget;
};
@@ -184,9 +184,9 @@ private:
class NamespaceDomBrowserItem: public ClassViewItem
{
public:
- NamespaceDomBrowserItem( QListView* parent, NamespaceDom dom )
+ NamespaceDomBrowserItem( TQListView* parent, NamespaceDom dom )
: ClassViewItem( parent, dom->name() ), m_dom( dom ) {}
- NamespaceDomBrowserItem( QListViewItem* parent, NamespaceDom dom )
+ NamespaceDomBrowserItem( TQListViewItem* parent, NamespaceDom dom )
: ClassViewItem( parent, dom->name() ), m_dom( dom ) {}
const CodeModelItem* model() const { return m_dom; }
@@ -194,7 +194,7 @@ public:
virtual bool isNamespace() const { return true; }
void setup();
- QString key( int, bool ) const;
+ TQString key( int, bool ) const;
void processNamespace( NamespaceDom ns, bool remove=false );
void processClass( ClassDom klass, bool remove=false );
@@ -202,25 +202,25 @@ public:
void processFunction( FunctionDom fun, bool remove=false );
void processVariable( VariableDom var, bool remove=false );
bool selectItem( ItemDom item );
- virtual QString comment();
+ virtual TQString comment();
NamespaceDom dom() { return m_dom; }
private:
NamespaceDom m_dom;
- QMap<QString, NamespaceDomBrowserItem*> m_namespaces;
- QMap<ClassDom, ClassDomBrowserItem*> m_classes;
- QMap<TypeAliasDom, TypeAliasDomBrowserItem*> m_typeAliases;
- QMap<FunctionDom, FunctionDomBrowserItem*> m_functions;
- QMap<VariableDom, VariableDomBrowserItem*> m_variables;
+ TQMap<TQString, NamespaceDomBrowserItem*> m_namespaces;
+ TQMap<ClassDom, ClassDomBrowserItem*> m_classes;
+ TQMap<TypeAliasDom, TypeAliasDomBrowserItem*> m_typeAliases;
+ TQMap<FunctionDom, FunctionDomBrowserItem*> m_functions;
+ TQMap<VariableDom, VariableDomBrowserItem*> m_variables;
};
class ClassDomBrowserItem: public ClassViewItem
{
public:
- ClassDomBrowserItem( QListView* parent, ClassDom dom )
+ ClassDomBrowserItem( TQListView* parent, ClassDom dom )
: ClassViewItem( parent, dom->name() ), m_dom( dom ) {}
- ClassDomBrowserItem( QListViewItem* parent, ClassDom dom )
+ ClassDomBrowserItem( TQListViewItem* parent, ClassDom dom )
: ClassViewItem( parent, dom->name() ), m_dom( dom ) {}
const CodeModelItem* model() const { return m_dom; }
@@ -230,14 +230,14 @@ public:
virtual void openDeclaration();
void setup();
- QString key( int, bool ) const;
+ TQString key( int, bool ) const;
void processClass( ClassDom klass, bool remove=false );
void processTypeAlias( TypeAliasDom typeAlias, bool remove=false );
void processFunction( FunctionDom fun, bool remove=false );
void processVariable( VariableDom var, bool remove=false );
- virtual QString comment() {
+ virtual TQString comment() {
if( !m_dom ) return "";
return m_dom->comment();
}
@@ -247,18 +247,18 @@ public:
private:
ClassDom m_dom;
- QMap<ClassDom, ClassDomBrowserItem*> m_classes;
- QMap<TypeAliasDom, TypeAliasDomBrowserItem*> m_typeAliases;
- QMap<FunctionDom, FunctionDomBrowserItem*> m_functions;
- QMap<VariableDom, VariableDomBrowserItem*> m_variables;
+ TQMap<ClassDom, ClassDomBrowserItem*> m_classes;
+ TQMap<TypeAliasDom, TypeAliasDomBrowserItem*> m_typeAliases;
+ TQMap<FunctionDom, FunctionDomBrowserItem*> m_functions;
+ TQMap<VariableDom, VariableDomBrowserItem*> m_variables;
};
class TypeAliasDomBrowserItem: public ClassViewItem
{
public:
- TypeAliasDomBrowserItem( QListView* parent, TypeAliasDom dom )
+ TypeAliasDomBrowserItem( TQListView* parent, TypeAliasDom dom )
: ClassViewItem( parent, dom->name() ), m_dom( dom ) {}
- TypeAliasDomBrowserItem( QListViewItem* parent, TypeAliasDom dom )
+ TypeAliasDomBrowserItem( TQListViewItem* parent, TypeAliasDom dom )
: ClassViewItem( parent, dom->name() ), m_dom( dom ) {}
const CodeModelItem* model() const { return m_dom; }
@@ -267,13 +267,13 @@ public:
virtual bool hasDeclaration() const { return true; }
virtual void openDeclaration();
- virtual QString comment() {
+ virtual TQString comment() {
if( !m_dom ) return "";
return m_dom->comment();
}
void setup();
- QString key( int, bool ) const;
+ TQString key( int, bool ) const;
TypeAliasDom dom() { return m_dom; }
@@ -284,9 +284,9 @@ private:
class FunctionDomBrowserItem: public ClassViewItem
{
public:
- FunctionDomBrowserItem( QListView* parent, FunctionDom dom )
+ FunctionDomBrowserItem( TQListView* parent, FunctionDom dom )
: ClassViewItem( parent, dom->name() ), m_dom( dom ) {}
- FunctionDomBrowserItem( QListViewItem* parent, FunctionDom dom )
+ FunctionDomBrowserItem( TQListViewItem* parent, FunctionDom dom )
: ClassViewItem( parent, dom->name() ), m_dom( dom ) {}
const CodeModelItem* model() const { return m_dom; }
@@ -298,13 +298,13 @@ public:
virtual void openDeclaration();
virtual void openImplementation();
- virtual QString comment() {
+ virtual TQString comment() {
if( !m_dom ) return "";
return m_dom->comment();
}
void setup();
- QString key( int, bool ) const;
+ TQString key( int, bool ) const;
FunctionDom dom() { return m_dom; }
@@ -315,9 +315,9 @@ private:
class VariableDomBrowserItem: public ClassViewItem
{
public:
- VariableDomBrowserItem( QListView* parent, VariableDom dom )
+ VariableDomBrowserItem( TQListView* parent, VariableDom dom )
: ClassViewItem( parent, dom->name() ), m_dom( dom ) {}
- VariableDomBrowserItem( QListViewItem* parent, VariableDom dom )
+ VariableDomBrowserItem( TQListViewItem* parent, VariableDom dom )
: ClassViewItem( parent, dom->name() ), m_dom( dom ) {}
const CodeModelItem* model() const { return m_dom; }
@@ -326,7 +326,7 @@ public:
virtual bool hasDeclaration() const { return true; }
virtual bool hasImplementation() const { return false; }
- virtual QString comment() {
+ virtual TQString comment() {
if( !m_dom ) return "";
return m_dom->comment();
}
@@ -335,7 +335,7 @@ public:
virtual void openImplementation();
void setup();
- QString key( int, bool ) const;
+ TQString key( int, bool ) const;
VariableDom dom() { return m_dom; }
@@ -355,8 +355,8 @@ struct FindOp2 ///a template would look nicer
if( m_dom->isConstant() != m_dom->isConstant() )
return false;
- QString scope1 = QString("::") + m_dom->scope().join("::");
- QString scope2 = QString("::") + def->scope().join("::");
+ TQString scope1 = TQString("::") + m_dom->scope().join("::");
+ TQString scope2 = TQString("::") + def->scope().join("::");
if( !scope1.endsWith(scope2) )
return false;
@@ -389,8 +389,8 @@ struct FindOp
if( m_dom->isConstant() != m_dom->isConstant() )
return false;
- QString scope1 = QString("::") + m_dom->scope().join("::");
- QString scope2 = QString("::") + def->scope().join("::");
+ TQString scope1 = TQString("::") + m_dom->scope().join("::");
+ TQString scope2 = TQString("::") + def->scope().join("::");
if( !scope1.endsWith(scope2) )
return false;
diff --git a/parts/classview/digraphview.cpp b/parts/classview/digraphview.cpp
index b566757f..8bb8e963 100644
--- a/parts/classview/digraphview.cpp
+++ b/parts/classview/digraphview.cpp
@@ -13,10 +13,10 @@
#include <math.h>
#include <stdlib.h>
-#include <qapplication.h>
-#include <qpainter.h>
-#include <qpaintdevicemetrics.h>
-#include <qtextstream.h>
+#include <tqapplication.h>
+#include <tqpainter.h>
+#include <tqpaintdevicemetrics.h>
+#include <tqtextstream.h>
#include <kglobal.h>
#include <klocale.h>
#include <kmessagebox.h>
@@ -33,22 +33,22 @@ struct DigraphNode
int y;
int w;
int h;
- QString name;
+ TQString name;
};
struct DigraphEdge
{
- QPointArray points;
+ TQPointArray points;
};
-DigraphView::DigraphView(QWidget *parent, const char *name)
- : QScrollView(parent, name, WRepaintNoErase|WStaticContents|WResizeNoErase)
+DigraphView::DigraphView(TQWidget *parent, const char *name)
+ : TQScrollView(parent, name, WRepaintNoErase|WStaticContents|WResizeNoErase)
{
viewport()->setBackgroundMode(PaletteBase);
- QPaintDeviceMetrics m(this);
+ TQPaintDeviceMetrics m(this);
xscale = m.logicalDpiX();
yscale = m.logicalDpiY();
@@ -86,7 +86,7 @@ void DigraphView::setRenderedExtent(double w, double h)
}
-void DigraphView::addRenderedNode(const QString &name,
+void DigraphView::addRenderedNode(const TQString &name,
double x, double y, double w, double h)
{
DigraphNode *node = new DigraphNode;
@@ -99,8 +99,8 @@ void DigraphView::addRenderedNode(const QString &name,
}
-void DigraphView::addRenderedEdge(const QString &/*name1*/, const QString &/*name2*/,
- QMemArray<double> coords)
+void DigraphView::addRenderedEdge(const TQString &/*name1*/, const TQString &/*name2*/,
+ TQMemArray<double> coords)
{
if (coords.count() < 4)
return;
@@ -109,15 +109,15 @@ void DigraphView::addRenderedEdge(const QString &/*name1*/, const QString &/*nam
edge->points.resize(coords.count()/2);
for (uint i = 0; i < edge->points.count(); ++i)
- edge->points[i] = QPoint(toXPixel(coords[2*i]), toYPixel(coords[2*i+1]));
+ edge->points[i] = TQPoint(toXPixel(coords[2*i]), toYPixel(coords[2*i+1]));
edges.append(edge);
}
-void DigraphView::addEdge(const QString &name1, const QString &name2)
+void DigraphView::addEdge(const TQString &name1, const TQString &name2)
{
- QString line;
+ TQString line;
line = "\"";
line += name1;
line += "\" -> \"";
@@ -139,9 +139,9 @@ void DigraphView::clear()
}
-void DigraphView::setSelected(const QString &name)
+void DigraphView::setSelected(const TQString &name)
{
- QPtrListIterator<DigraphNode> it(nodes);
+ TQPtrListIterator<DigraphNode> it(nodes);
for (; it.current(); ++it) {
if (it.current()->name == name) {
updateContents(selNode->x-selNode->w/2, selNode->y-selNode->h/2,
@@ -155,21 +155,21 @@ void DigraphView::setSelected(const QString &name)
}
-void DigraphView::ensureVisible(const QString &name)
+void DigraphView::ensureVisible(const TQString &name)
{
- QPtrListIterator<DigraphNode> it(nodes);
+ TQPtrListIterator<DigraphNode> it(nodes);
for (; it.current(); ++it) {
if (it.current()->name == name) {
- QScrollView::ensureVisible((*it)->x, (*it)->y, (*it)->w, (*it)->h);
+ TQScrollView::ensureVisible((*it)->x, (*it)->y, (*it)->w, (*it)->h);
return;
}
}
}
-QStringList DigraphView::splitLine(QString str)
+TQStringList DigraphView::splitLine(TQString str)
{
- QStringList result;
+ TQStringList result;
while (!str.isEmpty()) {
if (str[0] == '"') {
@@ -193,11 +193,11 @@ QStringList DigraphView::splitLine(QString str)
}
-void DigraphView::parseDotResults(const QStringList &list)
+void DigraphView::parseDotResults(const TQStringList &list)
{
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for (it = list.begin(); it != list.end(); ++it) {
- QStringList tokens = splitLine(*it);
+ TQStringList tokens = splitLine(*it);
if (tokens.count() == 0)
continue;
if (tokens[0] == "graph") {
@@ -212,7 +212,7 @@ void DigraphView::parseDotResults(const QStringList &list)
} else if (tokens[0] == "edge") {
if (tokens.count() < 8)
continue;
- QMemArray<double> coords(tokens.count()-6);
+ TQMemArray<double> coords(tokens.count()-6);
for (uint i=0; i != tokens.count()-6; ++i)
coords[i] = tokens[i+4].toDouble();
addRenderedEdge(tokens[1], tokens[2], coords);
@@ -221,22 +221,22 @@ void DigraphView::parseDotResults(const QStringList &list)
}
-void DigraphView::process( const QString& file, const QString& ext )
+void DigraphView::process( const TQString& file, const TQString& ext )
{
- QString cmd = KGlobal::dirs()->findExe("dot");
+ TQString cmd = KGlobal::dirs()->findExe("dot");
if (cmd.isEmpty()) {
KMessageBox::sorry(0, i18n("You do not have 'dot' installed.\nIt can be downloaded from www.graphviz.org."));
return;
}
- QStringList results;
+ TQStringList results;
KTempFile ifile, ofile;
- QTextStream &is = *ifile.textStream();
+ TQTextStream &is = *ifile.textStream();
is << "digraph G {" << endl;
is << "rankdir=LR;" << endl;
is << "node [shape=box,fontname=Helvetica,fontsize=12];" << endl;
- QStringList::Iterator it;
+ TQStringList::Iterator it;
for (it = inputs.begin(); it != inputs.end(); ++it)
is << (*it) << endl;
is << "}" << endl;
@@ -245,8 +245,8 @@ void DigraphView::process( const QString& file, const QString& ext )
KProcess proc;
if( !file.isEmpty() && !ext.isEmpty() )
{
- proc << cmd << QString("-T")+ext << ifile.name() << "-o" << file;
- kdDebug() << "Executing: " << cmd <<" "<<QString("-T")+ext <<" "<< ifile.name() << "-o"<<file << endl;
+ proc << cmd << TQString("-T")+ext << ifile.name() << "-o" << file;
+ kdDebug() << "Executing: " << cmd <<" "<<TQString("-T")+ext <<" "<< ifile.name() << "-o"<<file << endl;
}else
{
proc << cmd << "-Tplain" << ifile.name() << "-o" << ofile.name();
@@ -258,7 +258,7 @@ void DigraphView::process( const QString& file, const QString& ext )
return;
}
- QTextStream &os = *ofile.textStream();
+ TQTextStream &os = *ofile.textStream();
while (!os.atEnd())
results << os.readLine();
ofile.close();
@@ -271,61 +271,61 @@ void DigraphView::process( const QString& file, const QString& ext )
viewport()->update();
}
-void DigraphView::drawContents(QPainter* p, int clipx, int clipy, int clipw, int cliph)
+void DigraphView::drawContents(TQPainter* p, int clipx, int clipy, int clipw, int cliph)
{
- QRect clipRect(clipx, clipy, clipw, cliph);
+ TQRect clipRect(clipx, clipy, clipw, cliph);
p->eraseRect(clipRect);
p->setFont(KGlobalSettings::generalFont());
- QPtrListIterator<DigraphNode> it1(nodes);
+ TQPtrListIterator<DigraphNode> it1(nodes);
for (; it1.current(); ++it1) {
- QRect r((*it1)->x-(*it1)->w/2, (*it1)->y-(*it1)->h/2, (*it1)->w, (*it1)->h);
+ TQRect r((*it1)->x-(*it1)->w/2, (*it1)->y-(*it1)->h/2, (*it1)->w, (*it1)->h);
if (r.intersects(clipRect)) {
if (it1.current() == selNode)
- p->fillRect(r, QBrush(lightGray, SolidPattern));
+ p->fillRect(r, TQBrush(lightGray, SolidPattern));
else
p->drawRect(r);
p->drawText(r, AlignCenter, (*it1)->name);
}
}
- p->setBrush(QBrush(black, SolidPattern));
- QPtrListIterator<DigraphEdge> it2(edges);
+ p->setBrush(TQBrush(black, SolidPattern));
+ TQPtrListIterator<DigraphEdge> it2(edges);
for (; it2.current(); ++it2) {
int n = (*it2)->points.count();
for (int i=0; i+3 < n; i+=3)
{
- QPointArray a(4);
- QPointArray &b = (*it2)->points;
+ TQPointArray a(4);
+ TQPointArray &b = (*it2)->points;
for (int j=0; j<4; ++j)
a.setPoint(j, b.point(i+j));
if (a.boundingRect().intersects(clipRect))
p->drawCubicBezier((*it2)->points, i);
}
- QPoint p1 = (*it2)->points[n-2];
- QPoint p2 = (*it2)->points[n-1];
- QPoint d = p1-p2;
+ TQPoint p1 = (*it2)->points[n-2];
+ TQPoint p2 = (*it2)->points[n-1];
+ TQPoint d = p1-p2;
double l = sqrt(d.x()*d.x()+d.y()*d.y());
double d11 = (10.0)/l*d.x();
double d12 = (10.0)/l*d.y();
double d21 = -(3.0/l)*d.y();
double d22 = (3.0/l)*d.x();
- QPointArray triangle(3);
- triangle[0] = p2 + QPoint((int)(d11+d21),(int)(d12+d22));
- triangle[1] = p2 + QPoint((int)(d11-d21),(int)(d12-d22));
+ TQPointArray triangle(3);
+ triangle[0] = p2 + TQPoint((int)(d11+d21),(int)(d12+d22));
+ triangle[1] = p2 + TQPoint((int)(d11-d21),(int)(d12-d22));
triangle[2] = p2;
p->drawPolygon(triangle, true);
}
}
-void DigraphView::contentsMousePressEvent(QMouseEvent *e)
+void DigraphView::contentsMousePressEvent(TQMouseEvent *e)
{
- QPtrListIterator<DigraphNode> it1(nodes);
+ TQPtrListIterator<DigraphNode> it1(nodes);
for (; it1.current(); ++it1) {
- QRect r((*it1)->x-(*it1)->w/2, (*it1)->y-(*it1)->h/2, (*it1)->w, (*it1)->h);
+ TQRect r((*it1)->x-(*it1)->w/2, (*it1)->y-(*it1)->h/2, (*it1)->w, (*it1)->h);
if (r.contains(e->pos())) {
if (selNode) {
- QRect oldr(selNode->x-selNode->w/2, selNode->y-selNode->h/2,
+ TQRect oldr(selNode->x-selNode->w/2, selNode->y-selNode->h/2,
selNode->w, selNode->h);
updateContents(oldr);
}
@@ -338,21 +338,21 @@ void DigraphView::contentsMousePressEvent(QMouseEvent *e)
}
-QSize DigraphView::sizeHint() const
+TQSize DigraphView::sizeHint() const
{
if (width == -1)
- return QSize(100, 100); // arbitrary
+ return TQSize(100, 100); // arbitrary
- QSize dsize = KGlobalSettings::desktopGeometry(viewport()).size();
+ TQSize dsize = KGlobalSettings::desktopGeometry(viewport()).size();
kdDebug(9003) << "sizehint for inheritance diagram" << dsize << " " << width << " " << height << endl;
- return QSize(width, height).boundedTo(QSize(dsize.width()*2/3, dsize.height()*2/3));
+ return TQSize(width, height).boundedTo(TQSize(dsize.width()*2/3, dsize.height()*2/3));
}
#if 0
int main(int argc, char **argv)
{
- QApplication app(argc, argv);
+ TQApplication app(argc, argv);
DigraphView *dw = new DigraphView(0, "dot widget");
dw->addEdge( "5th Edition", "6th Edition");
diff --git a/parts/classview/digraphview.h b/parts/classview/digraphview.h
index c5fb2a28..b7215075 100644
--- a/parts/classview/digraphview.h
+++ b/parts/classview/digraphview.h
@@ -12,10 +12,10 @@
#ifndef _DIGRAPHVIEW_H_
#define _DIGRAPHVIEW_H_
-#include <qptrlist.h>
-#include <qscrollview.h>
-#include <qstringlist.h>
-#include <qimage.h>
+#include <tqptrlist.h>
+#include <tqscrollview.h>
+#include <tqstringlist.h>
+#include <tqimage.h>
class DigraphNode;
class DigraphEdge;
@@ -26,40 +26,40 @@ class DigraphView : public QScrollView
Q_OBJECT
public:
- DigraphView(QWidget *parent, const char *name);
+ DigraphView(TQWidget *parent, const char *name);
~DigraphView();
- void addEdge(const QString &name1, const QString &name2);
- void process(const QString& file = "", const QString& ext = "");
+ void addEdge(const TQString &name1, const TQString &name2);
+ void process(const TQString& file = "", const TQString& ext = "");
void clear();
- void setSelected(const QString &name);
- void ensureVisible(const QString &name);
+ void setSelected(const TQString &name);
+ void ensureVisible(const TQString &name);
signals:
- void selected(const QString &name);
+ void selected(const TQString &name);
protected:
- virtual void drawContents(QPainter* p, int clipx, int clipy, int clipw, int cliph);
- virtual void contentsMousePressEvent(QMouseEvent *e);
- virtual QSize sizeHint() const;
+ virtual void drawContents(TQPainter* p, int clipx, int clipy, int clipw, int cliph);
+ virtual void contentsMousePressEvent(TQMouseEvent *e);
+ virtual TQSize sizeHint() const;
private:
int toXPixel(double x);
int toYPixel(double x);
void setRenderedExtent(double w, double h);
- void addRenderedNode(const QString &name,
+ void addRenderedNode(const TQString &name,
double x, double y, double w, double h);
- void addRenderedEdge(const QString &name1, const QString &name2,
- QMemArray<double> coords);
- static QStringList splitLine(QString str);
- void parseDotResults(const QStringList &list);
+ void addRenderedEdge(const TQString &name1, const TQString &name2,
+ TQMemArray<double> coords);
+ static TQStringList splitLine(TQString str);
+ void parseDotResults(const TQStringList &list);
double xscale, yscale;
int width, height;
- QStringList inputs;
- QPtrList<DigraphNode> nodes;
- QPtrList<DigraphEdge> edges;
+ TQStringList inputs;
+ TQPtrList<DigraphNode> nodes;
+ TQPtrList<DigraphEdge> edges;
DigraphNode *selNode;
};
diff --git a/parts/classview/hierarchydlg.cpp b/parts/classview/hierarchydlg.cpp
index 21a54031..a1f2c763 100644
--- a/parts/classview/hierarchydlg.cpp
+++ b/parts/classview/hierarchydlg.cpp
@@ -22,11 +22,11 @@
#include <kmessagebox.h>
#include <kdebug.h>
-#include <qlayout.h>
-#include <qfileinfo.h>
-#include <qlistview.h>
-#include <qapplication.h>
-#include <qsplitter.h>
+#include <tqlayout.h>
+#include <tqfileinfo.h>
+#include <tqlistview.h>
+#include <tqapplication.h>
+#include <tqsplitter.h>
#include "kdevlanguagesupport.h"
#include "kcomboview.h"
@@ -38,25 +38,25 @@
HierarchyDialog::HierarchyDialog( ClassViewPart *part )
- : QDialog(0, "hierarchy dialog", false)
+ : TQDialog(0, "hierarchy dialog", false)
{
class_combo = new KComboView(true, 150, this);
- class_combo->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Preferred );
+ class_combo->setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Preferred );
// class_combo->setMinimumWidth(150);
namespace_combo = new KComboView(true, 150, this);
- namespace_combo->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Preferred );
+ namespace_combo->setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Preferred );
// namespace_combo->setMinimumWidth(150);
- QPushButton *close_button = new KPushButton(KStdGuiItem::close(), this);
- QPushButton *save_button = new KPushButton(KStdGuiItem::save(), this);
- QPushButton *refresh_button = new KPushButton(i18n("Refresh"), this);
+ TQPushButton *close_button = new KPushButton(KStdGuiItem::close(), this);
+ TQPushButton *save_button = new KPushButton(KStdGuiItem::save(), this);
+ TQPushButton *refresh_button = new KPushButton(i18n("Refresh"), this);
- QSplitter *splitter = new QSplitter(Vertical, this);
+ TQSplitter *splitter = new TQSplitter(Vertical, this);
digraph = new DigraphView(splitter, "digraph view");
// member_tree = new ClassToolWidget(part, splitter);
- QBoxLayout *layout = new QVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
- QBoxLayout *combo_layout = new QHBoxLayout();
+ TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ TQBoxLayout *combo_layout = new TQHBoxLayout();
layout->addLayout(combo_layout);
combo_layout->addWidget(namespace_combo);
combo_layout->addWidget(class_combo);
@@ -66,22 +66,22 @@ HierarchyDialog::HierarchyDialog( ClassViewPart *part )
combo_layout->addWidget(close_button);
layout->addWidget(splitter);
- connect( namespace_combo, SIGNAL(activated(QListViewItem*)),
- this, SLOT(slotNamespaceComboChoice(QListViewItem*)) );
- connect( class_combo, SIGNAL(activated(QListViewItem*)),
- this, SLOT(slotClassComboChoice(QListViewItem*)) );
- connect( namespace_combo, SIGNAL(textChanged(const QString&)),
- this, SLOT(slotNamespaceComboChoice(const QString&)) );
- connect( class_combo, SIGNAL(textChanged(const QString&)),
- this, SLOT(slotClassComboChoice(const QString&)) );
- connect( close_button, SIGNAL(clicked()),
- this, SLOT(hide()) );
- connect( save_button, SIGNAL(clicked()),
- this, SLOT(save()) );
- connect( refresh_button, SIGNAL(clicked()),
- this, SLOT(refresh()) );
- connect( digraph, SIGNAL(selected(const QString&)),
- this, SLOT(classSelected(const QString&)) );
+ connect( namespace_combo, TQT_SIGNAL(activated(TQListViewItem*)),
+ this, TQT_SLOT(slotNamespaceComboChoice(TQListViewItem*)) );
+ connect( class_combo, TQT_SIGNAL(activated(TQListViewItem*)),
+ this, TQT_SLOT(slotClassComboChoice(TQListViewItem*)) );
+ connect( namespace_combo, TQT_SIGNAL(textChanged(const TQString&)),
+ this, TQT_SLOT(slotNamespaceComboChoice(const TQString&)) );
+ connect( class_combo, TQT_SIGNAL(textChanged(const TQString&)),
+ this, TQT_SLOT(slotClassComboChoice(const TQString&)) );
+ connect( close_button, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(hide()) );
+ connect( save_button, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(save()) );
+ connect( refresh_button, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(refresh()) );
+ connect( digraph, TQT_SIGNAL(selected(const TQString&)),
+ this, TQT_SLOT(classSelected(const TQString&)) );
m_part = part;
// m_part->registerHierarchyDialog(this);
@@ -96,33 +96,33 @@ HierarchyDialog::~HierarchyDialog()
void HierarchyDialog::save()
{
- KURLRequesterDlg dlg(QString::null, this, "save_inheritance");
+ KURLRequesterDlg dlg(TQString::null, this, "save_inheritance");
dlg.fileDialog()->setFilter("image/png image/jpeg image/bmp image/svg+xml");
dlg.fileDialog()->setOperationMode( KFileDialog::Saving );
dlg.fileDialog()->setMode( KFile::File | KFile::LocalOnly );
dlg.urlRequester()->setMode( KFile::File | KFile::LocalOnly );
if(dlg.exec() && dlg.selectedURL().isLocalFile())
{
- QFileInfo fi(dlg.selectedURL().pathOrURL());
- QApplication::setOverrideCursor( Qt::waitCursor );
+ TQFileInfo fi(dlg.selectedURL().pathOrURL());
+ TQApplication::setOverrideCursor( Qt::waitCursor );
KDevLanguageSupport *ls = m_part->languageSupport();
- for (QMap<QString, ClassDom>::const_iterator it = classes.begin(); it != classes.end(); ++it)
+ for (TQMap<TQString, ClassDom>::const_iterator it = classes.begin(); it != classes.end(); ++it)
{
kdDebug(9003) << "Adding class to graph: " << it.key() << endl;
- QString formattedName = ls->formatClassName(it.key());
- QStringList baseClasses = it.data()->baseClassList();
- for (QStringList::const_iterator bit = baseClasses.begin(); bit != baseClasses.end(); ++bit)
+ TQString formattedName = ls->formatClassName(it.key());
+ TQStringList baseClasses = it.data()->baseClassList();
+ for (TQStringList::const_iterator bit = baseClasses.begin(); bit != baseClasses.end(); ++bit)
{
- QMap<QString, QString>::const_iterator baseIt = uclasses.find(*bit);
+ TQMap<TQString, TQString>::const_iterator baseIt = uclasses.find(*bit);
if (baseIt != uclasses.end())
{
- QString formattedParentName = ls->formatClassName(baseIt.data());
+ TQString formattedParentName = ls->formatClassName(baseIt.data());
digraph->addEdge(formattedParentName, formattedName);
}
}
}
digraph->process(fi.absFilePath(), fi.extension());
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
}
}
@@ -136,17 +136,17 @@ void HierarchyDialog::refresh()
KDevLanguageSupport *ls = m_part->languageSupport();
- for (QMap<QString, ClassDom>::const_iterator it = classes.begin(); it != classes.end(); ++it)
+ for (TQMap<TQString, ClassDom>::const_iterator it = classes.begin(); it != classes.end(); ++it)
{
kdDebug(9003) << "Adding class to graph: " << it.key() << endl;
- QString formattedName = ls->formatClassName(it.key());
- QStringList baseClasses = it.data()->baseClassList();
- for (QStringList::const_iterator bit = baseClasses.begin(); bit != baseClasses.end(); ++bit)
+ TQString formattedName = ls->formatClassName(it.key());
+ TQStringList baseClasses = it.data()->baseClassList();
+ for (TQStringList::const_iterator bit = baseClasses.begin(); bit != baseClasses.end(); ++bit)
{
- QMap<QString, QString>::const_iterator baseIt = uclasses.find(*bit);
+ TQMap<TQString, TQString>::const_iterator baseIt = uclasses.find(*bit);
if (baseIt != uclasses.end())
{
- QString formattedParentName = ls->formatClassName(baseIt.data());
+ TQString formattedParentName = ls->formatClassName(baseIt.data());
digraph->addEdge(formattedParentName, formattedName);
}
}
@@ -157,13 +157,13 @@ void HierarchyDialog::refresh()
void HierarchyDialog::setLanguageSupport(KDevLanguageSupport *ls)
{
if (ls)
- connect(ls, SIGNAL(updatedSourceInfo()), this, SLOT(refresh()));
+ connect(ls, TQT_SIGNAL(updatedSourceInfo()), this, TQT_SLOT(refresh()));
else
refresh();
}
-void HierarchyDialog::slotClassComboChoice(QListViewItem * item)
+void HierarchyDialog::slotClassComboChoice(TQListViewItem * item)
{
ClassItem *ci = dynamic_cast<ClassItem*>(item);
if (!ci)
@@ -171,15 +171,15 @@ void HierarchyDialog::slotClassComboChoice(QListViewItem * item)
KDevLanguageSupport *ls = m_part->languageSupport();
- QString className = ls->formatClassName(uclasses[item->text(0)]);
+ TQString className = ls->formatClassName(uclasses[item->text(0)]);
digraph->setSelected(className);
digraph->ensureVisible(className);
classSelected(className);
}
-void HierarchyDialog::slotClassComboChoice( const QString& itemText )
+void HierarchyDialog::slotClassComboChoice( const TQString& itemText )
{
- QListViewItem* item = class_combo->listView()->firstChild();
+ TQListViewItem* item = class_combo->listView()->firstChild();
while( item )
{
if( item->text(0) == itemText )
@@ -190,7 +190,7 @@ void HierarchyDialog::slotClassComboChoice( const QString& itemText )
KDevLanguageSupport *ls = m_part->languageSupport();
- QString className = ls->formatClassName(uclasses[item->text(0)]);
+ TQString className = ls->formatClassName(uclasses[item->text(0)]);
digraph->setSelected(className);
digraph->ensureVisible(className);
classSelected(className);
@@ -200,7 +200,7 @@ void HierarchyDialog::slotClassComboChoice( const QString& itemText )
}
}
-void HierarchyDialog::classSelected(const QString &/*className*/)
+void HierarchyDialog::classSelected(const TQString &/*className*/)
{
/* ParsedClass *currentClass = m_part->classStore()->getClassByName(className);
member_tree->clear();
@@ -213,7 +213,7 @@ void HierarchyDialog::classSelected(const QString &/*className*/)
}*/
}
-void HierarchyDialog::slotNamespaceComboChoice( QListViewItem * item )
+void HierarchyDialog::slotNamespaceComboChoice( TQListViewItem * item )
{
NamespaceItem *ni = dynamic_cast<NamespaceItem*>(item);
if (!ni)
@@ -221,9 +221,9 @@ void HierarchyDialog::slotNamespaceComboChoice( QListViewItem * item )
ViewCombosOp::refreshClasses(m_part, class_combo, ni->dom()->name());
}
-void HierarchyDialog::slotNamespaceComboChoice( const QString& itemText )
+void HierarchyDialog::slotNamespaceComboChoice( const TQString& itemText )
{
- QListViewItem* item = namespace_combo->listView()->firstChild();
+ TQListViewItem* item = namespace_combo->listView()->firstChild();
while( item )
{
if( item->text(0) == itemText )
@@ -238,11 +238,11 @@ void HierarchyDialog::slotNamespaceComboChoice( const QString& itemText )
}
}
-void HierarchyDialog::processNamespace( QString prefix, NamespaceDom dom )
+void HierarchyDialog::processNamespace( TQString prefix, NamespaceDom dom )
{
qWarning("processNamespace: prefix %s", prefix.latin1());
- QString prefixInc = prefix.isEmpty() ? "" : ".";
-// QString nsprefix = dom->name().isEmpty() ? QString("") : prefixInc + dom->name();
+ TQString prefixInc = prefix.isEmpty() ? "" : ".";
+// TQString nsprefix = dom->name().isEmpty() ? TQString("") : prefixInc + dom->name();
NamespaceList namespaceList = dom->namespaceList();
for (NamespaceList::const_iterator it = namespaceList.begin(); it != namespaceList.end(); ++it)
@@ -258,11 +258,11 @@ void HierarchyDialog::processNamespace( QString prefix, NamespaceDom dom )
}
}
-void HierarchyDialog::processClass( QString prefix, ClassDom dom )
+void HierarchyDialog::processClass( TQString prefix, ClassDom dom )
{
qWarning("processClass: prefix %s class %s", prefix.latin1(), dom->name().latin1());
- QString prefixInc = prefix.isEmpty() ? "" : ".";
+ TQString prefixInc = prefix.isEmpty() ? "" : ".";
classes[prefix + prefixInc + dom->name()] = dom;
uclasses[dom->name()] = prefix + prefixInc + dom->name();
diff --git a/parts/classview/hierarchydlg.h b/parts/classview/hierarchydlg.h
index 82cf2d4a..79a6d470 100644
--- a/parts/classview/hierarchydlg.h
+++ b/parts/classview/hierarchydlg.h
@@ -12,7 +12,7 @@
#ifndef _HIERARCHYDLG_H_
#define _HIERARCHYDLG_H_
-#include <qdialog.h>
+#include <tqdialog.h>
#include "codemodel.h"
@@ -35,21 +35,21 @@ public slots:
private slots:
void setLanguageSupport(KDevLanguageSupport *ls);
- void slotClassComboChoice(QListViewItem *item);
- void slotNamespaceComboChoice(QListViewItem *item);
- void slotClassComboChoice(const QString&);
- void slotNamespaceComboChoice(const QString&);
- void classSelected(const QString &className);
+ void slotClassComboChoice(TQListViewItem *item);
+ void slotNamespaceComboChoice(TQListViewItem *item);
+ void slotClassComboChoice(const TQString&);
+ void slotNamespaceComboChoice(const TQString&);
+ void classSelected(const TQString &className);
void save();
private:
- void processNamespace(QString prefix, NamespaceDom dom);
- void processClass(QString prefix, ClassDom dom);
+ void processNamespace(TQString prefix, NamespaceDom dom);
+ void processClass(TQString prefix, ClassDom dom);
- QMap<QString, ClassDom> classes;
- //QMap<class name, fully qualified class name>
+ TQMap<TQString, ClassDom> classes;
+ //TQMap<class name, fully qualified class name>
//like MyClass - MyNamespace.MyClass
- QMap<QString, QString> uclasses;
+ TQMap<TQString, TQString> uclasses;
KComboView *namespace_combo;
KComboView *class_combo;
diff --git a/parts/classview/navigator.cpp b/parts/classview/navigator.cpp
index 596b5786..fa83a4ff 100644
--- a/parts/classview/navigator.cpp
+++ b/parts/classview/navigator.cpp
@@ -21,7 +21,7 @@
***************************************************************************/
#include "navigator.h"
-#include <qtimer.h>
+#include <tqtimer.h>
#include <kconfig.h>
#include <kdebug.h>
@@ -46,10 +46,10 @@
namespace
{
template<class T>
- QValueList<T> QValueList_reversed ( const QValueList<T> & list )
+ TQValueList<T> QValueList_reversed ( const TQValueList<T> & list )
{
- QValueList<T> rList;
- typename QValueList<T>::ConstIterator it = list.begin();
+ TQValueList<T> rList;
+ typename TQValueList<T>::ConstIterator it = list.begin();
while ( it != list.end() )
{
rList.push_front ( *it );
@@ -61,7 +61,7 @@ namespace
struct NavOp
{
- NavOp(Navigator *navigator, const QString &fullName)
+ NavOp(Navigator *navigator, const TQString &fullName)
:m_navigator(navigator), m_fullName(fullName) {}
bool operator() ( const FunctionDefinitionDom& def ) const
@@ -75,7 +75,7 @@ struct NavOp
private:
Navigator *m_navigator;
- QString m_fullName;
+ TQString m_fullName;
};
@@ -85,9 +85,9 @@ private:
public:
enum Type { Declaration, Definition };
- FunctionNavItem(TextPaintStyleStore& styles, ClassViewPart *part, QListView *parent, QString name, Type type)
+ FunctionNavItem(TextPaintStyleStore& styles, ClassViewPart *part, TQListView *parent, TQString name, Type type)
:FancyListViewItem(styles, parent, name, ""), m_part(part), m_type(type) {}
- FunctionNavItem(TextPaintStyleStore& styles, ClassViewPart *part, QListViewItem *parent, QString name, Type type)
+ FunctionNavItem(TextPaintStyleStore& styles, ClassViewPart *part, TQListViewItem *parent, TQString name, Type type)
:FancyListViewItem(styles, parent, name, ""), m_part(part), m_type(type) {}
~FunctionNavItem() {}
@@ -105,31 +105,31 @@ private:
Navigator::Navigator(ClassViewPart *parent, const char *name)
- : QObject(parent, name), m_part(parent)
+ : TQObject(parent, name), m_part(parent)
{
m_state = GoToDefinitions;
m_navNoDefinition = true;
m_actionSyncWithEditor = new KAction( i18n("Sync ClassView"), "view_tree", KShortcut(), this,
- SLOT(slotSyncWithEditor()), m_part->actionCollection(), "classview_sync_with_editor" );
+ TQT_SLOT(slotSyncWithEditor()), m_part->actionCollection(), "classview_sync_with_editor" );
KAction * action = new KAction( i18n("Jump to next function"), CTRL+ALT+Key_PageDown, this,
- SLOT(slotJumpToNextFunction()), m_part->actionCollection(), "navigator_jump_to_next_function" );
+ TQT_SLOT(slotJumpToNextFunction()), m_part->actionCollection(), "navigator_jump_to_next_function" );
action->plug( &m_dummyActionWidget );
action = new KAction( i18n("Jump to previous function"), CTRL+ALT+Key_PageUp, this,
- SLOT(slotJumpToPreviousFunction()), m_part->actionCollection(), "navigator_jump_to_previous_function" );
+ TQT_SLOT(slotJumpToPreviousFunction()), m_part->actionCollection(), "navigator_jump_to_previous_function" );
action->plug( &m_dummyActionWidget );
- m_syncTimer = new QTimer(this);
- connect(m_syncTimer, SIGNAL(timeout()), this, SLOT(syncFunctionNav()));
+ m_syncTimer = new TQTimer(this);
+ connect(m_syncTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(syncFunctionNav()));
}
Navigator::~Navigator()
{
}
-void Navigator::selectFunctionNav(QListViewItem *item)
+void Navigator::selectFunctionNav(TQListViewItem *item)
{
FunctionNavItem *nav = dynamic_cast<FunctionNavItem*>(item);
if (!nav)
@@ -247,7 +247,7 @@ void Navigator::syncFunctionNav()
m_part->m_functionsnav->view()->setCurrentText(NAV_NODEFINITION);
}
-void Navigator::refreshNavBars(const QString &activeFileName, bool clear)
+void Navigator::refreshNavBars(const TQString &activeFileName, bool clear)
{
kdDebug(9003) << k_funcinfo << endl;
if (clear)
@@ -261,13 +261,13 @@ void Navigator::refreshNavBars(const QString &activeFileName, bool clear)
if (!file)
return;
- QStringList toLeave;
+ TQStringList toLeave;
FunctionList list1 = CodeModelUtils::allFunctionsExhaustive(file);
FunctionList::const_iterator flEnd = list1.end();
for (FunctionList::const_iterator it = list1.begin(); it != flEnd; ++it)
{
- QString fullName = fullFunctionDeclarationName(*it);
+ TQString fullName = fullFunctionDeclarationName(*it);
if (clear || !m_functionNavDecls[fullName] && m_part->m_functionsnav->view()->listView())
{
@@ -284,10 +284,10 @@ void Navigator::refreshNavBars(const QString &activeFileName, bool clear)
kdDebug(9003) << k_funcinfo << "leave list: " << toLeave << endl;
//remove items not in toLeave list
- QMap<QString, QListViewItem*>::iterator it = m_functionNavDecls.begin();
+ TQMap<TQString, TQListViewItem*>::iterator it = m_functionNavDecls.begin();
while ( it != m_functionNavDecls.end() )
{
- QMap<QString, QListViewItem*>::iterator it2 = it;
+ TQMap<TQString, TQListViewItem*>::iterator it2 = it;
++it;
if ( !toLeave.contains( it2.key() ) )
{
@@ -303,7 +303,7 @@ void Navigator::refreshNavBars(const QString &activeFileName, bool clear)
FunctionDefinitionList list = CodeModelUtils::allFunctionDefinitionsExhaustive(file);
for (FunctionDefinitionList::const_iterator it = list.begin(); it != list.end(); ++it)
{
- QString fullName = fullFunctionDefinitionName(*it);
+ TQString fullName = fullFunctionDefinitionName(*it);
if (clear || !m_functionNavDefs[fullName])
{
@@ -326,10 +326,10 @@ void Navigator::refreshNavBars(const QString &activeFileName, bool clear)
kdDebug(9003) << k_funcinfo << "leave list: " << toLeave << endl;
//remove items not in toLeave list
- QMap<QString, QListViewItem*>::iterator itt = m_functionNavDefs.begin();
+ TQMap<TQString, TQListViewItem*>::iterator itt = m_functionNavDefs.begin();
while ( itt != m_functionNavDefs.end() )
{
- QMap<QString, QListViewItem*>::iterator it2 = itt;
+ TQMap<TQString, TQListViewItem*>::iterator it2 = itt;
++itt;
if ( !toLeave.contains( it2.key() ) )
{
@@ -347,7 +347,7 @@ void Navigator::refresh()
refreshNavBars(m_part->m_activeFileName, true);
}
-void Navigator::addFile(const QString & file)
+void Navigator::addFile(const TQString & file)
{
kdDebug(9003) << k_funcinfo << "file: " << file << endl;
if (file == m_part->m_activeFileName)
@@ -374,16 +374,16 @@ FunctionDom Navigator::currentFunction()
///Some time this might be moved into the language-support-part, so each language
///can highlight as it likes
-TextPaintItem highlightFunctionName(QString function, int type, TextPaintStyleStore& styles) {
+TextPaintItem highlightFunctionName(TQString function, int type, TextPaintStyleStore& styles) {
TextPaintItem ret;
if( !styles.hasStyle( type ) ) {
- QFont font = styles.getStyle( 0 ).font;
+ TQFont font = styles.getStyle( 0 ).font;
switch(type) {
case 1:
default:
- font.setWeight( QFont::DemiBold );
+ font.setWeight( TQFont::DemiBold );
///since bold makes the font a little bigger, make it smaller again
#ifdef BOLDFONTSMALLER
font.setPointSize( (font.pointSize() * 9) / 10 );
@@ -393,8 +393,8 @@ TextPaintItem highlightFunctionName(QString function, int type, TextPaintStyleSt
styles.addStyle( type, font );
}
- QString args;
- QString fScope;
+ TQString args;
+ TQString fScope;
int cutpos;
if((cutpos = function.find('(')) != -1) {
@@ -419,8 +419,8 @@ template <class DomType>
TextPaintItem Navigator::fullFunctionItem(DomType fun)
{
- QStringList scope = fun->scope();
- QString function = scope.join(".");
+ TQStringList scope = fun->scope();
+ TQString function = scope.join(".");
if (!function.isEmpty())
function += ".";
function += m_part->languageSupport()->formatModelItem(fun, true);
@@ -429,10 +429,10 @@ TextPaintItem Navigator::fullFunctionItem(DomType fun)
return highlightFunctionName(function, 1, m_styles);
}
-QString Navigator::fullFunctionDefinitionName(FunctionDefinitionDom fun)
+TQString Navigator::fullFunctionDefinitionName(FunctionDefinitionDom fun)
{
- QStringList scope = fun->scope();
- QString funName = scope.join(".");
+ TQStringList scope = fun->scope();
+ TQString funName = scope.join(".");
if (!funName.isEmpty())
funName += ".";
funName += m_part->languageSupport()->formatModelItem(fun, true);
@@ -441,10 +441,10 @@ QString Navigator::fullFunctionDefinitionName(FunctionDefinitionDom fun)
return funName;
}
-QString Navigator::fullFunctionDeclarationName(FunctionDom fun)
+TQString Navigator::fullFunctionDeclarationName(FunctionDom fun)
{
- QStringList scope = fun->scope();
- QString funName = scope.join(".");
+ TQStringList scope = fun->scope();
+ TQString funName = scope.join(".");
if (!funName.isEmpty())
funName += ".";
funName += m_part->languageSupport()->formatModelItem(fun, true);
@@ -474,10 +474,10 @@ void Navigator::slotJumpToNextFunction()
unsigned int currentLine, currentCol;
m_part->m_activeViewCursor->cursorPositionReal ( &currentLine, &currentCol );
- QValueList<int> lines = functionStartLines();
+ TQValueList<int> lines = functionStartLines();
if ( lines.isEmpty() ) return;
- QValueList<int>::iterator it = lines.begin();
+ TQValueList<int>::iterator it = lines.begin();
while ( it != lines.end() )
{
if ( *it > currentLine )
@@ -499,10 +499,10 @@ void Navigator::slotJumpToPreviousFunction()
unsigned int currentLine, currentCol;
m_part->m_activeViewCursor->cursorPositionReal ( &currentLine, &currentCol );
- QValueList<int> lines = QValueList_reversed<int> ( functionStartLines() );
+ TQValueList<int> lines = QValueList_reversed<int> ( functionStartLines() );
if ( lines.isEmpty() ) return;
- QValueList<int>::iterator it = lines.begin();
+ TQValueList<int>::iterator it = lines.begin();
while ( it != lines.end() )
{
if ( *it < currentLine )
@@ -516,12 +516,12 @@ void Navigator::slotJumpToPreviousFunction()
}
}
-QValueList<int> Navigator::functionStartLines()
+TQValueList<int> Navigator::functionStartLines()
{
FileDom file = m_part->codeModel()->fileByName ( m_part->m_activeFileName );
- if ( !file ) return QValueList<int>();
+ if ( !file ) return TQValueList<int>();
- QValueList<int> lines;
+ TQValueList<int> lines;
FunctionDefinitionList list = CodeModelUtils::allFunctionDefinitionsExhaustive ( file );
FunctionDefinitionList::const_iterator it = list.begin();
while ( it != list.end() )
diff --git a/parts/classview/navigator.h b/parts/classview/navigator.h
index 6953c55d..48470f19 100644
--- a/parts/classview/navigator.h
+++ b/parts/classview/navigator.h
@@ -20,9 +20,9 @@
#ifndef NAVIGATOR_H
#define NAVIGATOR_H
-#include <qobject.h>
+#include <tqobject.h>
#include <codemodel.h>
-#include <qfont.h>
+#include <tqfont.h>
#include <fancylistviewitem.h>
class TextPaintStyleStore;
@@ -34,7 +34,7 @@ class KAction;
#define NAV_NODEFINITION "(no function)"
class TextPaintItem;
-TextPaintItem highlightFunctionName( QString function, int type, TextPaintStyleStore& styles );
+TextPaintItem highlightFunctionName( TQString function, int type, TextPaintStyleStore& styles );
class Navigator : public QObject
{
@@ -46,23 +46,23 @@ public:
~Navigator();
void stopTimer();
- void refreshNavBars(const QString &activeFileName, bool clear = true);
+ void refreshNavBars(const TQString &activeFileName, bool clear = true);
- QString fullFunctionDefinitionName(FunctionDefinitionDom fun);
- QString fullFunctionDeclarationName(FunctionDom fun);
+ TQString fullFunctionDefinitionName(FunctionDefinitionDom fun);
+ TQString fullFunctionDeclarationName(FunctionDom fun);
template <class DomType>
TextPaintItem fullFunctionItem(DomType fun);
public slots:
- void selectFunctionNav(QListViewItem *item);
+ void selectFunctionNav(TQListViewItem *item);
void syncFunctionNav();
void syncFunctionNavDelayed(int delay);
void functionNavFocused();
void functionNavUnFocused();
void slotCursorPositionChanged();
void refresh();
- void addFile(const QString &file);
+ void addFile(const TQString &file);
void slotSyncWithEditor();
void slotJumpToNextFunction();
void slotJumpToPreviousFunction();
@@ -70,20 +70,20 @@ public slots:
protected:
FunctionDom currentFunction();
- QValueList<int> functionStartLines();
+ TQValueList<int> functionStartLines();
private:
ClassViewPart *m_part;
- QTimer *m_syncTimer;
+ TQTimer *m_syncTimer;
NavigationState m_state;
- QWidget m_dummyActionWidget;
+ TQWidget m_dummyActionWidget;
KAction* m_actionSyncWithEditor;
bool m_navNoDefinition;
- QMap<QString, QListViewItem*> m_functionNavDefs;
- QMap<QString, QListViewItem*> m_functionNavDecls;
+ TQMap<TQString, TQListViewItem*> m_functionNavDefs;
+ TQMap<TQString, TQListViewItem*> m_functionNavDecls;
TextPaintStyleStore m_styles;
};
diff --git a/parts/classview/viewcombos.cpp b/parts/classview/viewcombos.cpp
index 63e861c6..bb7bf01d 100644
--- a/parts/classview/viewcombos.cpp
+++ b/parts/classview/viewcombos.cpp
@@ -27,13 +27,13 @@
#include "viewcombos.h"
#include "classviewpart.h"
-NamespaceItem::NamespaceItem(ClassViewPart *part, QListView *parent, QString name, NamespaceDom dom)
- :QListViewItem(parent, name), m_dom(dom), m_part(part)
+NamespaceItem::NamespaceItem(ClassViewPart *part, TQListView *parent, TQString name, NamespaceDom dom)
+ :TQListViewItem(parent, name), m_dom(dom), m_part(part)
{
}
-NamespaceItem::NamespaceItem(ClassViewPart *part, QListViewItem *parent, QString name, NamespaceDom dom)
- :QListViewItem(parent, name), m_dom(dom), m_part(part)
+NamespaceItem::NamespaceItem(ClassViewPart *part, TQListViewItem *parent, TQString name, NamespaceDom dom)
+ :TQListViewItem(parent, name), m_dom(dom), m_part(part)
{
}
@@ -48,18 +48,18 @@ NamespaceDom NamespaceItem::dom() const
void NamespaceItem::setup()
{
- QListViewItem::setup();
+ TQListViewItem::setup();
setPixmap( 0, UserIcon("CVnamespace", KIcon::DefaultState, m_part->instance()) );
}
-ClassItem::ClassItem(ClassViewPart *part, QListView *parent, QString name, ClassDom dom)
- :QListViewItem(parent, name), m_dom(dom), m_part(part)
+ClassItem::ClassItem(ClassViewPart *part, TQListView *parent, TQString name, ClassDom dom)
+ :TQListViewItem(parent, name), m_dom(dom), m_part(part)
{
}
-ClassItem::ClassItem(ClassViewPart *part, QListViewItem *parent, QString name, ClassDom dom)
- :QListViewItem(parent, name), m_dom(dom), m_part(part)
+ClassItem::ClassItem(ClassViewPart *part, TQListViewItem *parent, TQString name, ClassDom dom)
+ :TQListViewItem(parent, name), m_dom(dom), m_part(part)
{
}
@@ -74,18 +74,18 @@ ClassDom ClassItem::dom() const
void ClassItem::setup()
{
- QListViewItem::setup();
+ TQListViewItem::setup();
setPixmap( 0, UserIcon("CVclass", KIcon::DefaultState, m_part->instance()) );
}
-FunctionItem::FunctionItem(ClassViewPart *part, QListView *parent, QString name, FunctionDom dom)
- :QListViewItem(parent, name), m_dom(dom), m_part(part)
+FunctionItem::FunctionItem(ClassViewPart *part, TQListView *parent, TQString name, FunctionDom dom)
+ :TQListViewItem(parent, name), m_dom(dom), m_part(part)
{
}
-FunctionItem::FunctionItem(ClassViewPart *part, QListViewItem *parent, QString name, FunctionDom dom)
- :QListViewItem(parent, name), m_dom(dom), m_part(part)
+FunctionItem::FunctionItem(ClassViewPart *part, TQListViewItem *parent, TQString name, FunctionDom dom)
+ :TQListViewItem(parent, name), m_dom(dom), m_part(part)
{
}
@@ -100,8 +100,8 @@ FunctionDom FunctionItem::dom() const
void FunctionItem::setup()
{
- QListViewItem::setup();
- QString iconName;
+ TQListViewItem::setup();
+ TQString iconName;
if( m_dom->access() == CodeModelItem::Private )
iconName = "CVprivate_meth";
else if( m_dom->access() == CodeModelItem::Protected )
@@ -131,7 +131,7 @@ void refreshNamespaces(ClassViewPart *part, KComboView *view)
view->setCurrentActiveItem(global_item);
}
-void refreshClasses(ClassViewPart *part, KComboView *view, const QString &dom)
+void refreshClasses(ClassViewPart *part, KComboView *view, const TQString &dom)
{
view->clear();
@@ -168,7 +168,7 @@ void refreshFunctions(ClassViewPart *part, KComboView *view, const ClassDom & do
}
}
-void refreshFunctions(ClassViewPart *part, KComboView *view, const QString & dom)
+void refreshFunctions(ClassViewPart *part, KComboView *view, const TQString & dom)
{
view->clear();
@@ -194,7 +194,7 @@ void refreshFunctions(ClassViewPart *part, KComboView *view, const QString & dom
}
-NamespaceDom ViewCombosOp::namespaceByName( NamespaceDom dom, QString name )
+NamespaceDom ViewCombosOp::namespaceByName( NamespaceDom dom, TQString name )
{
NamespaceDom result;
diff --git a/parts/classview/viewcombos.h b/parts/classview/viewcombos.h
index 7c63ccd8..7525a5d8 100644
--- a/parts/classview/viewcombos.h
+++ b/parts/classview/viewcombos.h
@@ -22,20 +22,20 @@
#include <klocale.h>
-#include <qlistview.h>
+#include <tqlistview.h>
#include "codemodel.h"
class ClassViewPart;
class KComboView;
-const QString EmptyClasses = i18n("(Classes)");
-const QString EmptyFunctions = i18n("(Functions)");
+const TQString EmptyClasses = i18n("(Classes)");
+const TQString EmptyFunctions = i18n("(Functions)");
class NamespaceItem: public QListViewItem{
public:
- NamespaceItem(ClassViewPart *part, QListView *parent, QString name, NamespaceDom dom);
- NamespaceItem(ClassViewPart *part, QListViewItem *parent, QString name, NamespaceDom dom);
+ NamespaceItem(ClassViewPart *part, TQListView *parent, TQString name, NamespaceDom dom);
+ NamespaceItem(ClassViewPart *part, TQListViewItem *parent, TQString name, NamespaceDom dom);
~NamespaceItem();
NamespaceDom dom() const;
virtual void setup();
@@ -46,8 +46,8 @@ private:
class ClassItem: public QListViewItem{
public:
- ClassItem(ClassViewPart *part, QListView *parent, QString name, ClassDom dom);
- ClassItem(ClassViewPart *part, QListViewItem *parent, QString name, ClassDom dom);
+ ClassItem(ClassViewPart *part, TQListView *parent, TQString name, ClassDom dom);
+ ClassItem(ClassViewPart *part, TQListViewItem *parent, TQString name, ClassDom dom);
~ClassItem();
ClassDom dom() const;
virtual void setup();
@@ -58,8 +58,8 @@ private:
class FunctionItem: public QListViewItem{
public:
- FunctionItem(ClassViewPart *part, QListView *parent, QString name, FunctionDom dom);
- FunctionItem(ClassViewPart *part, QListViewItem *parent, QString name, FunctionDom dom);
+ FunctionItem(ClassViewPart *part, TQListView *parent, TQString name, FunctionDom dom);
+ FunctionItem(ClassViewPart *part, TQListViewItem *parent, TQString name, FunctionDom dom);
~FunctionItem();
FunctionDom dom() const;
virtual void setup();
@@ -73,11 +73,11 @@ namespace ViewCombosOp{
enum ProcessType {Refresh, Reload};
void refreshNamespaces(ClassViewPart *part, KComboView *view);
-void refreshClasses(ClassViewPart *part, KComboView *view, const QString &dom);
+void refreshClasses(ClassViewPart *part, KComboView *view, const TQString &dom);
void refreshFunctions(ClassViewPart *part, KComboView *view, const ClassDom & dom);
-void refreshFunctions(ClassViewPart *part, KComboView *view, const QString & dom);
+void refreshFunctions(ClassViewPart *part, KComboView *view, const TQString & dom);
-NamespaceDom namespaceByName(NamespaceDom dom, QString name);
+NamespaceDom namespaceByName(NamespaceDom dom, TQString name);
}
diff --git a/parts/ctags2/ctags2_createtagfile.cpp b/parts/ctags2/ctags2_createtagfile.cpp
index b1ced0dd..5193d8cd 100644
--- a/parts/ctags2/ctags2_createtagfile.cpp
+++ b/parts/ctags2/ctags2_createtagfile.cpp
@@ -16,7 +16,7 @@
#include "ctags2_part.h"
-CreateTagFile::CreateTagFile(QWidget* parent, const char* name, bool modal, WFlags fl)
+CreateTagFile::CreateTagFile(TQWidget* parent, const char* name, bool modal, WFlags fl)
: CTags2CreateTagFileBase( parent, name, modal, fl )
{
dirToTag->setMode( KFile::Directory | KFile::ExistingOnly | KFile::LocalOnly);
@@ -35,17 +35,17 @@ void CreateTagFile::validate()
createTagFileButton->setEnabled( valid );
}
-QString CreateTagFile::name( )
+TQString CreateTagFile::name( )
{
return displayName->text();
}
-QString CreateTagFile::tagsfilePath( )
+TQString CreateTagFile::tagsfilePath( )
{
return newTagFilePath->url();
}
-QString CreateTagFile::directory( )
+TQString CreateTagFile::directory( )
{
return dirToTag->url();
}
diff --git a/parts/ctags2/ctags2_createtagfile.h b/parts/ctags2/ctags2_createtagfile.h
index 93b530d4..068c1815 100644
--- a/parts/ctags2/ctags2_createtagfile.h
+++ b/parts/ctags2/ctags2_createtagfile.h
@@ -21,11 +21,11 @@ class CreateTagFile : public CTags2CreateTagFileBase {
Q_OBJECT
public:
- CreateTagFile(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+ CreateTagFile(TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~CreateTagFile();
- QString name();
- QString tagsfilePath();
- QString directory();
+ TQString name();
+ TQString tagsfilePath();
+ TQString directory();
private:
diff --git a/parts/ctags2/ctags2_part.cpp b/parts/ctags2/ctags2_part.cpp
index 29b564e6..b05a12a4 100644
--- a/parts/ctags2/ctags2_part.cpp
+++ b/parts/ctags2/ctags2_part.cpp
@@ -9,11 +9,11 @@
* *
***************************************************************************/
-#include <qwhatsthis.h>
-#include <qpopupmenu.h>
-#include <qtextstream.h>
-#include <qfile.h>
-#include <qregexp.h>
+#include <tqwhatsthis.h>
+#include <tqpopupmenu.h>
+#include <tqtextstream.h>
+#include <tqfile.h>
+#include <tqregexp.h>
#include <klineedit.h>
#include <klistview.h>
@@ -58,41 +58,41 @@ typedef KDevGenericFactory<CTags2Part> CTags2Factory;
static const KDevPluginInfo data("kdevctags2");
K_EXPORT_COMPONENT_FACTORY( libkdevctags2, CTags2Factory( data ) )
-CTags2Part::CTags2Part(QObject *parent, const char *name, const QStringList& )
+CTags2Part::CTags2Part(TQObject *parent, const char *name, const TQStringList& )
: KDevPlugin(&data, parent, name ? name : "ctags2Part" )
{
setInstance(CTags2Factory::instance());
setXMLFile("kdevpart_ctags2.rc");
- QDomDocument & dom = *projectDom();
- QString customTagFile = DomUtil::readEntry( dom, "/ctagspart/customTagfilePath" );
+ TQDomDocument & dom = *projectDom();
+ TQString customTagFile = DomUtil::readEntry( dom, "/ctagspart/customTagfilePath" );
if ( customTagFile.isEmpty() )
{
customTagFile = project()->projectDirectory() + "/tags";
}
- QStringList tagFiles = DomUtil::readListEntry(dom, "/ctagspart/activeTagsFiles", "file");
+ TQStringList tagFiles = DomUtil::readListEntry(dom, "/ctagspart/activeTagsFiles", "file");
tagFiles.push_front(customTagFile);
Tags::setTagFiles(tagFiles);
m_widget = new CTags2Widget(this);
- QWhatsThis::add(m_widget, i18n("<b>CTags</b><p>Result view for a tag lookup. Click a line to go to the corresponding place in the code."));
+ TQWhatsThis::add(m_widget, i18n("<b>CTags</b><p>Result view for a tag lookup. Click a line to go to the corresponding place in the code."));
m_widget->setCaption(i18n("CTags Lookup"));
mainWindow()->embedOutputView( m_widget, i18n( "CTags" ), i18n( "CTags lookup results" ) );
- connect( core(), SIGNAL(contextMenu(QPopupMenu *, const Context *)), this, SLOT(contextMenu(QPopupMenu *, const Context *)) );
+ connect( core(), TQT_SIGNAL(contextMenu(TQPopupMenu *, const Context *)), this, TQT_SLOT(contextMenu(TQPopupMenu *, const Context *)) );
_configProxy = new ConfigWidgetProxy( core() );
_configProxy->createProjectConfigPage( i18n("CTags"), CTAGSSETTINGSPAGE, info()->icon() );
- connect( _configProxy, SIGNAL(insertConfigWidget(const KDialogBase*, QWidget*, unsigned int )),
- this, SLOT(insertConfigWidget(const KDialogBase*, QWidget*, unsigned int )) );
-
- new KAction( i18n("Lookup Current Text"), 0, CTRL+Key_Underscore, this, SLOT(slotLookup()), actionCollection(), "ctags_lookup_shortcut");
- new KAction( i18n("Lookup Current Text as Declaration"), 0, CTRL+Key_Semicolon, this, SLOT(slotLookupDeclaration()), actionCollection(), "ctags_declaration_shortcut");
- new KAction( i18n("Lookup Current Text as Definition"), 0, CTRL+Key_Colon, this, SLOT(slotLookupDefinition()), actionCollection(), "ctags_definition_shortcut");
- new KAction( i18n("Jump to Next Match"), 0, 0, this, SLOT(slotGoToNext()), actionCollection(), "ctags_jump_to_next");
- new KAction( i18n("Open Lookup Dialog"), 0, 0, this, SLOT(slotOpenLookup()), actionCollection(), "ctags_input_shortcut");
+ connect( _configProxy, TQT_SIGNAL(insertConfigWidget(const KDialogBase*, TQWidget*, unsigned int )),
+ this, TQT_SLOT(insertConfigWidget(const KDialogBase*, TQWidget*, unsigned int )) );
+
+ new KAction( i18n("Lookup Current Text"), 0, CTRL+Key_Underscore, this, TQT_SLOT(slotLookup()), actionCollection(), "ctags_lookup_shortcut");
+ new KAction( i18n("Lookup Current Text as Declaration"), 0, CTRL+Key_Semicolon, this, TQT_SLOT(slotLookupDeclaration()), actionCollection(), "ctags_declaration_shortcut");
+ new KAction( i18n("Lookup Current Text as Definition"), 0, CTRL+Key_Colon, this, TQT_SLOT(slotLookupDefinition()), actionCollection(), "ctags_definition_shortcut");
+ new KAction( i18n("Jump to Next Match"), 0, 0, this, TQT_SLOT(slotGoToNext()), actionCollection(), "ctags_jump_to_next");
+ new KAction( i18n("Open Lookup Dialog"), 0, 0, this, TQT_SLOT(slotOpenLookup()), actionCollection(), "ctags_input_shortcut");
}
@@ -106,17 +106,17 @@ CTags2Part::~CTags2Part()
delete _configProxy;
}
-void CTags2Part::insertConfigWidget( const KDialogBase * dlg, QWidget * page, unsigned int pagenumber )
+void CTags2Part::insertConfigWidget( const KDialogBase * dlg, TQWidget * page, unsigned int pagenumber )
{
if ( pagenumber == CTAGSSETTINGSPAGE )
{
CTags2SettingsWidget * w = new CTags2SettingsWidget( this, page );
- connect( dlg, SIGNAL(okClicked()), w, SLOT(slotAccept()) );
- connect( w, SIGNAL(newTagsfileName(const QString& )), this, SLOT(updateTagsfileName(const QString& )) );
+ connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(slotAccept()) );
+ connect( w, TQT_SIGNAL(newTagsfileName(const TQString& )), this, TQT_SLOT(updateTagsfileName(const TQString& )) );
}
}
-void CTags2Part::updateTagsfileName( const QString & )
+void CTags2Part::updateTagsfileName( const TQString & )
{
m_widget->updateDBDateLabel();
}
@@ -125,14 +125,14 @@ void CTags2Part::updateTagsfileName( const QString & )
bool CTags2Part::createTagsFile()
{
// check if user specified a custom tag file name
- QDomDocument & dom = *projectDom();
- QString tagsFileCustom = DomUtil::readEntry( dom, "/ctagspart/customTagfilePath" ).stripWhiteSpace();
+ TQDomDocument & dom = *projectDom();
+ TQString tagsFileCustom = DomUtil::readEntry( dom, "/ctagspart/customTagfilePath" ).stripWhiteSpace();
return createTagsFile(tagsFileCustom, project()->projectDirectory());
}
// creates a new tag file with the specified name for the specified source directory
-bool CTags2Part::createTagsFile(const QString& tagFile, const QString& dir)
+bool CTags2Part::createTagsFile(const TQString& tagFile, const TQString& dir)
{
/*
KProcess proc;
@@ -149,18 +149,18 @@ bool CTags2Part::createTagsFile(const QString& tagFile, const QString& dir)
// get name of the ctags binary
KConfig * config = kapp->config();
config->setGroup( "CTAGS" );
- QString ctagsBinary = config->readEntry( "ctags binary" ).stripWhiteSpace();
+ TQString ctagsBinary = config->readEntry( "ctags binary" ).stripWhiteSpace();
if ( ctagsBinary.isEmpty() )
{
ctagsBinary = "ctags";
}
// set a default argument list
- QString argsDefault = "-R --c++-types=+px --excmd=pattern --exclude=Makefile --exclude=.";
+ TQString argsDefault = "-R --c++-types=+px --excmd=pattern --exclude=Makefile --exclude=.";
- QDomDocument & dom = *projectDom();
- QString argsCustom = DomUtil::readEntry( dom, "/ctagspart/customArguments" ).stripWhiteSpace();
- QString commandline = ctagsBinary + " " + ( argsCustom.isEmpty() ? argsDefault : argsCustom ) + ( tagFile.isEmpty() ? "" : " -f " + tagFile );
+ TQDomDocument & dom = *projectDom();
+ TQString argsCustom = DomUtil::readEntry( dom, "/ctagspart/customArguments" ).stripWhiteSpace();
+ TQString commandline = ctagsBinary + " " + ( argsCustom.isEmpty() ? argsDefault : argsCustom ) + ( tagFile.isEmpty() ? "" : " -f " + tagFile );
commandline += " ";
commandline += dir;
@@ -170,13 +170,13 @@ bool CTags2Part::createTagsFile(const QString& tagFile, const QString& dir)
return true;
}
-void CTags2Part::contextMenu(QPopupMenu *popup, const Context *context)
+void CTags2Part::contextMenu(TQPopupMenu *popup, const Context *context)
{
if (!context->hasType( Context::EditorContext ))
return;
const EditorContext *econtext = static_cast<const EditorContext*>(context);
- QString ident = econtext->currentWord();
+ TQString ident = econtext->currentWord();
if (ident.isEmpty())
return;
@@ -189,18 +189,18 @@ void CTags2Part::contextMenu(QPopupMenu *popup, const Context *context)
if ( Tags::hasTag( ident ) && ( showDefinition || showDeclaration || showLookup ) )
{
m_contextString = ident;
- QString squeezed = KStringHandler::csqueeze(ident, 30);
+ TQString squeezed = KStringHandler::csqueeze(ident, 30);
popup->insertSeparator();
if ( showDeclaration )
- popup->insertItem( i18n("CTags - Go to Declaration: %1").arg(squeezed), this, SLOT(slotGotoDeclaration()) );
+ popup->insertItem( i18n("CTags - Go to Declaration: %1").arg(squeezed), this, TQT_SLOT(slotGotoDeclaration()) );
if ( showDefinition )
- popup->insertItem( i18n("CTags - Go to Definition: %1").arg(squeezed), this, SLOT(slotGotoDefinition()) );
+ popup->insertItem( i18n("CTags - Go to Definition: %1").arg(squeezed), this, TQT_SLOT(slotGotoDefinition()) );
if ( showLookup )
- popup->insertItem( i18n("CTags - Lookup: %1").arg(squeezed), this, SLOT(slotGotoTag()) );
+ popup->insertItem( i18n("CTags - Lookup: %1").arg(squeezed), this, TQT_SLOT(slotGotoTag()) );
}
}
@@ -217,7 +217,7 @@ void CTags2Part::slotGotoTag( )
showHits( Tags::getExactMatches( m_contextString ) );
}
-void CTags2Part::gotoTagForTypes( QStringList const & types )
+void CTags2Part::gotoTagForTypes( TQStringList const & types )
{
Tags::TagList list = Tags::getMatches( m_contextString, false, types );
@@ -231,7 +231,7 @@ void CTags2Part::gotoTagForTypes( QStringList const & types )
{
Tags::TagEntry tag = list.first();
KURL url;
- QString fileWithTagInside;
+ TQString fileWithTagInside;
// assume relative path to project directory if path does not start with slash
if (tag.file[0] != '/') {
fileWithTagInside = project()->projectDirectory() + "/" + tag.file;
@@ -251,25 +251,25 @@ void CTags2Part::gotoTagForTypes( QStringList const & types )
void CTags2Part::slotGotoDefinition( )
{
- QStringList types;
+ TQStringList types;
types << "S" << "d" << "f" << "t" << "v";
gotoTagForTypes( types );
}
void CTags2Part::slotGotoDeclaration( )
{
- QStringList types;
+ TQStringList types;
types << "L" << "c" << "e" << "g" << "m" << "n" << "p" << "s" << "u" << "x";
gotoTagForTypes( types );
}
-int CTags2Part::getFileLineFromStream( QTextStream & istream, QString const & pattern )
+int CTags2Part::getFileLineFromStream( TQTextStream & istream, TQString const & pattern )
{
if ( pattern.isEmpty() ) return -1;
// ctags interestingly escapes "/", but apparently nothing else. lets revert that
- QString unescaped = pattern;
+ TQString unescaped = pattern;
unescaped.replace( "\\/", "/" );
// most of the time, the ctags pattern has the form /^foo$/
@@ -277,21 +277,21 @@ int CTags2Part::getFileLineFromStream( QTextStream & istream, QString const & pa
// where the form is only /^foo/
// I have no idea if this is a ctags bug or not, but we have to deal with it
- QString reduced, escaped, re_string;
+ TQString reduced, escaped, re_string;
if ( unescaped.endsWith( "$/" ) )
{
reduced = unescaped.mid( 2, unescaped.length() -4 );
- escaped = QRegExp::escape( reduced );
- re_string = QString( "^" + escaped + "$" );
+ escaped = TQRegExp::escape( reduced );
+ re_string = TQString( "^" + escaped + "$" );
}
else
{
reduced = unescaped.mid( 2, unescaped.length() -3 );
- escaped = QRegExp::escape( reduced );
- re_string = QString( "^" + escaped );
+ escaped = TQRegExp::escape( reduced );
+ re_string = TQString( "^" + escaped );
}
- QRegExp re( re_string );
+ TQRegExp re( re_string );
int n = 0;
while ( !istream.atEnd() )
@@ -305,23 +305,23 @@ int CTags2Part::getFileLineFromStream( QTextStream & istream, QString const & pa
return -1;
}
-int CTags2Part::getFileLineFromPattern( KURL const & url, QString const & pattern )
+int CTags2Part::getFileLineFromPattern( KURL const & url, TQString const & pattern )
{
// if the file is open - get the line from the editor buffer
if ( KTextEditor::EditInterface * ei = dynamic_cast<KTextEditor::EditInterface*>( partController()->partForURL( url ) ) )
{
- QString ibuffer = ei->text();
- QTextStream istream( &ibuffer, IO_ReadOnly );
+ TQString ibuffer = ei->text();
+ TQTextStream istream( &ibuffer, IO_ReadOnly );
return getFileLineFromStream( istream, pattern );
}
else // else the file is not open - get the line from the file on disk
{
- QFile file( url.path() );
- QString buffer;
+ TQFile file( url.path() );
+ TQString buffer;
if ( file.open( IO_ReadOnly ) )
{
- QTextStream istream( &file );
+ TQTextStream istream( &file );
return getFileLineFromStream( istream, pattern );
}
}
diff --git a/parts/ctags2/ctags2_part.h b/parts/ctags2/ctags2_part.h
index 77725500..b602ca35 100644
--- a/parts/ctags2/ctags2_part.h
+++ b/parts/ctags2/ctags2_part.h
@@ -12,8 +12,8 @@
#ifndef __KDEVPART_CTAGS2_H__
#define __KDEVPART_CTAGS2_H__
-#include <qguardedptr.h>
-#include <qstring.h>
+#include <tqguardedptr.h>
+#include <tqstring.h>
#include <kdevplugin.h>
#include "tags.h"
@@ -32,12 +32,12 @@ class CTags2Part : public KDevPlugin
public:
- CTags2Part(QObject *parent, const char *name, const QStringList &);
+ CTags2Part(TQObject *parent, const char *name, const TQStringList &);
~CTags2Part();
- int getFileLineFromPattern( KURL const & url, QString const & pattern);
+ int getFileLineFromPattern( KURL const & url, TQString const & pattern);
bool createTagsFile();
- bool createTagsFile(const QString& tagFile, const QString& dir);
+ bool createTagsFile(const TQString& tagFile, const TQString& dir);
private slots:
void slotLookupDeclaration();
@@ -48,17 +48,17 @@ private slots:
void slotGotoDefinition();
void slotGotoDeclaration();
void slotGotoTag();
- void contextMenu(QPopupMenu *, const Context *);
- void insertConfigWidget( const KDialogBase * dlg, QWidget * page, unsigned int );
- void updateTagsfileName( const QString & name );
+ void contextMenu(TQPopupMenu *, const Context *);
+ void insertConfigWidget( const KDialogBase * dlg, TQWidget * page, unsigned int );
+ void updateTagsfileName( const TQString & name );
private:
- int getFileLineFromStream( QTextStream & stream, QString const & pattern);
- void gotoTagForTypes( QStringList const & types );
+ int getFileLineFromStream( TQTextStream & stream, TQString const & pattern);
+ void gotoTagForTypes( TQStringList const & types );
void showHits( Tags::TagList const & tags );
- QGuardedPtr<CTags2Widget> m_widget;
- QString m_contextString ;
+ TQGuardedPtr<CTags2Widget> m_widget;
+ TQString m_contextString ;
ConfigWidgetProxy * _configProxy;
};
diff --git a/parts/ctags2/ctags2_selecttagfile.cpp b/parts/ctags2/ctags2_selecttagfile.cpp
index d9ae94be..adb3ee78 100644
--- a/parts/ctags2/ctags2_selecttagfile.cpp
+++ b/parts/ctags2/ctags2_selecttagfile.cpp
@@ -15,7 +15,7 @@
#include "ctags2_selecttagfile.h"
-SelectTagFile::SelectTagFile( QWidget* parent, const char* name, bool modal, WFlags fl)
+SelectTagFile::SelectTagFile( TQWidget* parent, const char* name, bool modal, WFlags fl)
: SelectTagFileBase( parent, name, modal, fl )
{
tagFile->setMode( KFile::File | KFile::ExistingOnly | KFile::LocalOnly );
@@ -33,12 +33,12 @@ void SelectTagFile::validate()
okButton->setEnabled( valid );
}
-QString SelectTagFile::name( )
+TQString SelectTagFile::name( )
{
return displayName->text();
}
-QString SelectTagFile::tagsfilePath( )
+TQString SelectTagFile::tagsfilePath( )
{
return tagFile->url();
}
diff --git a/parts/ctags2/ctags2_selecttagfile.h b/parts/ctags2/ctags2_selecttagfile.h
index 103ba98c..d4f4f5f9 100644
--- a/parts/ctags2/ctags2_selecttagfile.h
+++ b/parts/ctags2/ctags2_selecttagfile.h
@@ -18,10 +18,10 @@ class SelectTagFile : public SelectTagFileBase {
Q_OBJECT
public:
- SelectTagFile( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+ SelectTagFile( TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~SelectTagFile();
- QString name();
- QString tagsfilePath();
+ TQString name();
+ TQString tagsfilePath();
public slots:
virtual void validate();
diff --git a/parts/ctags2/ctags2_settingswidget.cpp b/parts/ctags2/ctags2_settingswidget.cpp
index 4bcdb122..d7458a85 100644
--- a/parts/ctags2/ctags2_settingswidget.cpp
+++ b/parts/ctags2/ctags2_settingswidget.cpp
@@ -9,9 +9,9 @@
* *
***************************************************************************/
-#include <qcheckbox.h>
-#include <qradiobutton.h>
-#include <qheader.h>
+#include <tqcheckbox.h>
+#include <tqradiobutton.h>
+#include <tqheader.h>
#include <klineedit.h>
#include <klistview.h>
@@ -30,7 +30,7 @@
#include "ctags2_createtagfile.h"
-CTags2SettingsWidget::CTags2SettingsWidget( CTags2Part * part, QWidget* parent, const char* name, WFlags fl )
+CTags2SettingsWidget::CTags2SettingsWidget( CTags2Part * part, TQWidget* parent, const char* name, WFlags fl )
: CTags2SettingsWidgetBase( parent, name, fl ), m_part( part )
{
binaryPath->completionObject()->setMode( KURLCompletion::FileCompletion );
@@ -55,23 +55,23 @@ CTags2SettingsWidget::~CTags2SettingsWidget()
void CTags2SettingsWidget::loadSettings()
{
- QDomDocument & dom = *m_part->projectDom();
+ TQDomDocument & dom = *m_part->projectDom();
- QString customArgs = DomUtil::readEntry( dom, "/ctagspart/customArguments" );
+ TQString customArgs = DomUtil::readEntry( dom, "/ctagspart/customArguments" );
if ( !customArgs.isEmpty() )
{
tagfileCustomBox->setChecked( true );
tagfileCustomEdit->setText( customArgs );
}
- QString customTagfile = DomUtil::readEntry( dom, "/ctagspart/customTagfilePath" );
+ TQString customTagfile = DomUtil::readEntry( dom, "/ctagspart/customTagfilePath" );
if (customTagfile.isEmpty())
{
customTagfile = m_part->project()->projectDirectory() + "/tags";
}
tagfilePath->setURL(customTagfile);
- QStringList activeTagsFiles = DomUtil::readListEntry(dom, "/ctagspart/activeTagsFiles", "file");
+ TQStringList activeTagsFiles = DomUtil::readListEntry(dom, "/ctagspart/activeTagsFiles", "file");
KConfig * config = kapp->config();
config->setGroup( "CTAGS" );
@@ -79,18 +79,18 @@ void CTags2SettingsWidget::loadSettings()
showDefinitionBox->setChecked( config->readBoolEntry( "ShowDefinition", true ) );
showLookupBox->setChecked( config->readBoolEntry( "ShowLookup", true ) );
jumpToFirstBox->setChecked( config->readBoolEntry( "JumpToFirst", false ) );
- QString ctagsBinary = config->readEntry( "ctags binary" ).stripWhiteSpace();
+ TQString ctagsBinary = config->readEntry( "ctags binary" ).stripWhiteSpace();
if ( !ctagsBinary.isEmpty() )
{
binaryPath->setURL( ctagsBinary );
}
config->setGroup( "CTAGS-tagsfiles" );
- QMap<QString,QString> entryMap = config->entryMap( "CTAGS-tagsfiles" );
- QMap<QString,QString>::const_iterator it = entryMap.begin();
+ TQMap<TQString,TQString> entryMap = config->entryMap( "CTAGS-tagsfiles" );
+ TQMap<TQString,TQString>::const_iterator it = entryMap.begin();
while ( it != entryMap.end() )
{
- QString file = config->readPathEntry( it.key() );
+ TQString file = config->readPathEntry( it.key() );
new TagsItem( otherTagFiles, it.key(), file, activeTagsFiles.contains( file ) );
++it;
}
@@ -98,7 +98,7 @@ void CTags2SettingsWidget::loadSettings()
void CTags2SettingsWidget::storeSettings()
{
- QDomDocument & dom = *m_part->projectDom();
+ TQDomDocument & dom = *m_part->projectDom();
DomUtil::writeEntry( dom, "/ctagspart/customArguments", tagfileCustomEdit->text() );
DomUtil::writeEntry( dom, "/ctagspart/customTagfilePath", tagfilePath->url() );
@@ -113,7 +113,7 @@ void CTags2SettingsWidget::storeSettings()
config->deleteGroup( "CTAGS-tagsfiles" );
config->setGroup( "CTAGS-tagsfiles" );
- QStringList activeTagsFiles;
+ TQStringList activeTagsFiles;
TagsItem * item = static_cast<TagsItem*>( otherTagFiles->firstChild() );
while ( item )
{
@@ -142,7 +142,7 @@ void CTags2SettingsWidget::slotAccept( )
void CTags2SettingsWidget::createNewTagSlot()
{
CreateTagFile* dlg = new CreateTagFile;
- if ( dlg->exec() == QDialog::Accepted )
+ if ( dlg->exec() == TQDialog::Accepted )
{
m_part->createTagsFile( dlg->tagsfilePath(), dlg->directory() );
new TagsItem( otherTagFiles, dlg->name(), dlg->tagsfilePath(), true );
@@ -153,7 +153,7 @@ void CTags2SettingsWidget::addNewTagFile()
{
SelectTagFile* dlg = new SelectTagFile;
- if ( dlg->exec() == QDialog::Accepted )
+ if ( dlg->exec() == TQDialog::Accepted )
{
new TagsItem( otherTagFiles, dlg->name(), dlg->tagsfilePath(), true );
}
diff --git a/parts/ctags2/ctags2_settingswidget.h b/parts/ctags2/ctags2_settingswidget.h
index ac208ad4..5a9d5c71 100644
--- a/parts/ctags2/ctags2_settingswidget.h
+++ b/parts/ctags2/ctags2_settingswidget.h
@@ -12,7 +12,7 @@
#ifndef CTAGS2_SETTINGSWIDGET_H
#define CTAGS2_SETTINGSWIDGET_H
-#include <qlistview.h>
+#include <tqlistview.h>
#include "ctags2_settingswidgetbase.h"
@@ -21,18 +21,18 @@ class CTags2Part;
class TagsItem : public QCheckListItem
{
public:
- TagsItem( QListView * parent, QString name, QString tagsfilePath, bool active )
- : QCheckListItem( parent, name, QCheckListItem::CheckBox ), m_name( name ), m_tagsfilePath( tagsfilePath )
+ TagsItem( TQListView * parent, TQString name, TQString tagsfilePath, bool active )
+ : TQCheckListItem( parent, name, TQCheckListItem::CheckBox ), m_name( name ), m_tagsfilePath( tagsfilePath )
{
setOn( active );
setText( 1, tagsfilePath );
}
- QString name() { return m_name; }
- QString tagsfilePath() { return m_tagsfilePath; }
+ TQString name() { return m_name; }
+ TQString tagsfilePath() { return m_tagsfilePath; }
private:
- QString m_name;
- QString m_tagsfilePath;
+ TQString m_name;
+ TQString m_tagsfilePath;
};
@@ -42,11 +42,11 @@ class CTags2SettingsWidget : public CTags2SettingsWidgetBase
Q_OBJECT
public:
- CTags2SettingsWidget( CTags2Part * part, QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ CTags2SettingsWidget( CTags2Part * part, TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~CTags2SettingsWidget();
signals:
- void newTagsfileName( const QString & name );
+ void newTagsfileName( const TQString & name );
public slots:
void slotAccept();
diff --git a/parts/ctags2/ctags2_widget.cpp b/parts/ctags2/ctags2_widget.cpp
index 7196ed1b..ab277966 100644
--- a/parts/ctags2/ctags2_widget.cpp
+++ b/parts/ctags2/ctags2_widget.cpp
@@ -9,11 +9,11 @@
* *
***************************************************************************/
-#include <qtimer.h>
-#include <qlabel.h>
-#include <qfileinfo.h>
-#include <qdatetime.h>
-#include <qfocusdata.h>
+#include <tqtimer.h>
+#include <tqlabel.h>
+#include <tqfileinfo.h>
+#include <tqdatetime.h>
+#include <tqfocusdata.h>
#include <klineedit.h>
#include <klistview.h>
@@ -31,31 +31,31 @@
class TagItem : public QListViewItem
{
public:
- TagItem(QListView * lv, QString const & tag, QString const & type, QString const & file, QString const & pattern );
+ TagItem(TQListView * lv, TQString const & tag, TQString const & type, TQString const & file, TQString const & pattern );
- QString tag;
- QString type;
- QString file;
- QString pattern;
+ TQString tag;
+ TQString type;
+ TQString file;
+ TQString pattern;
};
-TagItem::TagItem( QListView * lv, QString const & tag, QString const & type, QString const & file, QString const & pattern )
- : QListViewItem( lv, tag, type, file ), tag(tag), type(type), file(file), pattern(pattern)
+TagItem::TagItem( TQListView * lv, TQString const & tag, TQString const & type, TQString const & file, TQString const & pattern )
+ : TQListViewItem( lv, tag, type, file ), tag(tag), type(type), file(file), pattern(pattern)
{
}
CTags2Widget::CTags2Widget( CTags2Part * part, const char* name, WFlags fl)
: CTags2WidgetBase(0,name,fl), _part(part)
{
- output_view->setColumnWidthMode(0,QListView::Maximum);
- output_view->setColumnWidthMode(1,QListView::Maximum);
- output_view->setColumnWidthMode(2,QListView::Maximum);
+ output_view->setColumnWidthMode(0,TQListView::Maximum);
+ output_view->setColumnWidthMode(1,TQListView::Maximum);
+ output_view->setColumnWidthMode(2,TQListView::Maximum);
- _typeTimeout = new QTimer( this );
- connect( _typeTimeout, SIGNAL(timeout()), this, SLOT(line_edit_changed()) );
+ _typeTimeout = new TQTimer( this );
+ connect( _typeTimeout, TQT_SIGNAL(timeout()), this, TQT_SLOT(line_edit_changed()) );
- connect( output_view, SIGNAL(executed(QListViewItem*)), this, SLOT(itemExecuted(QListViewItem*)) );
- connect( output_view, SIGNAL(returnPressed(QListViewItem*)), this, SLOT(itemExecuted(QListViewItem*)) );
+ connect( output_view, TQT_SIGNAL(executed(TQListViewItem*)), this, TQT_SLOT(itemExecuted(TQListViewItem*)) );
+ connect( output_view, TQT_SIGNAL(returnPressed(TQListViewItem*)), this, TQT_SLOT(itemExecuted(TQListViewItem*)) );
updateDBDateLabel();
}
@@ -112,12 +112,12 @@ int CTags2Widget::calculateHitCount( )
return Tags::numberOfPartialMatches( input_edit->text() ) ;
}
-void CTags2Widget::itemExecuted( QListViewItem * item )
+void CTags2Widget::itemExecuted( TQListViewItem * item )
{
TagItem * tagItem = static_cast<TagItem*>( item );
KURL url;
- QString fileWithTagInside;
+ TQString fileWithTagInside;
// assume relative path to project directory if path does not start with slash
if (tagItem->file[0] != '/') {
fileWithTagInside = _part->project()->projectDirectory() + "/" + tagItem->file;
@@ -133,19 +133,19 @@ void CTags2Widget::itemExecuted( QListViewItem * item )
void CTags2Widget::regeneratebutton_clicked()
{
- QApplication::setOverrideCursor(Qt::waitCursor);
+ TQApplication::setOverrideCursor(Qt::waitCursor);
_part->createTagsFile();
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
updateDBDateLabel();
}
void CTags2Widget::updateDBDateLabel( )
{
- QStringList tagFiles = Tags::getTagFiles();
- QFileInfo tagsdb(tagFiles[0]);
+ TQStringList tagFiles = Tags::getTagFiles();
+ TQFileInfo tagsdb(tagFiles[0]);
if ( tagsdb.exists() )
{
datetime_label->setText( tagsdb.created().date().toString( Qt::ISODate ) );
@@ -156,7 +156,7 @@ void CTags2Widget::updateDBDateLabel( )
}
}
-void CTags2Widget::focusInEvent( QFocusEvent* )
+void CTags2Widget::focusInEvent( TQFocusEvent* )
{
updateDBDateLabel();
input_edit->setFocus();
@@ -164,7 +164,7 @@ void CTags2Widget::focusInEvent( QFocusEvent* )
void CTags2Widget::goToNext( )
{
- QListViewItem * item = output_view->firstChild();
+ TQListViewItem * item = output_view->firstChild();
while( item )
{
if ( item->isSelected() )
diff --git a/parts/ctags2/ctags2_widget.h b/parts/ctags2/ctags2_widget.h
index 2a4423a4..758e73b1 100644
--- a/parts/ctags2/ctags2_widget.h
+++ b/parts/ctags2/ctags2_widget.h
@@ -34,20 +34,20 @@ public:
void goToNext();
protected:
- void focusInEvent( QFocusEvent *e );
+ void focusInEvent( TQFocusEvent *e );
private slots:
virtual void line_edit_changed();
virtual void line_edit_changed_delayed();
virtual void regeneratebutton_clicked();
- void itemExecuted( QListViewItem * );
+ void itemExecuted( TQListViewItem * );
private:
void showHitCount( int );
int calculateHitCount();
CTags2Part * _part;
- QTimer * _typeTimeout;
+ TQTimer * _typeTimeout;
};
diff --git a/parts/ctags2/ctagskinds.cpp b/parts/ctags2/ctagskinds.cpp
index c8d5ef93..e198c577 100644
--- a/parts/ctags2/ctagskinds.cpp
+++ b/parts/ctags2/ctagskinds.cpp
@@ -273,7 +273,7 @@ static CTagsExtensionMapping extensionMapping[] = {
};
-static CTagsKindMapping *findKindMapping(const QString &extension)
+static CTagsKindMapping *findKindMapping(const TQString &extension)
{
const char *pextension = extension.latin1();
@@ -288,9 +288,9 @@ static CTagsKindMapping *findKindMapping(const QString &extension)
}
-QString CTagsKinds::findKind( const char * kindChar, const QString &extension )
+TQString CTagsKinds::findKind( const char * kindChar, const TQString &extension )
{
- if ( kindChar == 0 ) return QString::null;
+ if ( kindChar == 0 ) return TQString::null;
CTagsKindMapping *kindMapping = findKindMapping(extension);
if (kindMapping) {
@@ -302,5 +302,5 @@ QString CTagsKinds::findKind( const char * kindChar, const QString &extension )
}
}
- return QString::null;
+ return TQString::null;
}
diff --git a/parts/ctags2/ctagskinds.h b/parts/ctags2/ctagskinds.h
index de695319..7bf76a09 100644
--- a/parts/ctags2/ctagskinds.h
+++ b/parts/ctags2/ctagskinds.h
@@ -12,13 +12,13 @@
#ifndef _CTAGSKINDS_H_
#define _CTAGSKINDS_H_
-#include <qstring.h>
+#include <tqstring.h>
class CTagsKinds
{
public:
- static QString findKind( const char * kindChar, const QString &extension);
+ static TQString findKind( const char * kindChar, const TQString &extension);
};
#endif
diff --git a/parts/ctags2/tagitem.cpp b/parts/ctags2/tagitem.cpp
index e2ddf158..36220db5 100644
--- a/parts/ctags2/tagitem.cpp
+++ b/parts/ctags2/tagitem.cpp
@@ -11,8 +11,8 @@
#include "tagitem.h"
-TagItem::TagItem( QListView * lv, QString const & tag, QString const & type, QString const & file, QString const & pattern )
- : QListViewItem( lv ), tag(tag), type(type), file(file), pattern(pattern)
+TagItem::TagItem( TQListView * lv, TQString const & tag, TQString const & type, TQString const & file, TQString const & pattern )
+ : TQListViewItem( lv ), tag(tag), type(type), file(file), pattern(pattern)
{}
TagItem::~TagItem()
diff --git a/parts/ctags2/tagitem.h b/parts/ctags2/tagitem.h
index fddb823d..19bc0a59 100644
--- a/parts/ctags2/tagitem.h
+++ b/parts/ctags2/tagitem.h
@@ -12,18 +12,18 @@
#ifndef TAGITEM_H
#define TAGITEM_H
-#include <qlistview.h>
+#include <tqlistview.h>
class TagItem : public QListViewItem
{
public:
- TagItem(QListView * lv, QString const & tag, QString const & type, QString const & file, QString const & pattern );
+ TagItem(TQListView * lv, TQString const & tag, TQString const & type, TQString const & file, TQString const & pattern );
~TagItem();
- QString tag;
- QString type;
- QString file;
- QString pattern;
+ TQString tag;
+ TQString type;
+ TQString file;
+ TQString pattern;
};
#endif
diff --git a/parts/ctags2/tags.cpp b/parts/ctags2/tags.cpp
index 3ba98159..19993823 100644
--- a/parts/ctags2/tags.cpp
+++ b/parts/ctags2/tags.cpp
@@ -18,18 +18,18 @@ namespace ctags
#include "tags.h"
-QStringList Tags::_tagFiles;
+TQStringList Tags::_tagFiles;
Tags::TagEntry::TagEntry() {}
-Tags::TagEntry::TagEntry( const QString & tag, const QString & type, const QString & file, const QString & pattern )
+Tags::TagEntry::TagEntry( const TQString & tag, const TQString & type, const TQString & file, const TQString & pattern )
: tag(tag), type(type), file(file), pattern(pattern)
{}
-bool Tags::hasTag(const QString & tag )
+bool Tags::hasTag(const TQString & tag )
{
- QStringList::iterator it;
+ TQStringList::iterator it;
for (it = _tagFiles.begin(); it != _tagFiles.end() ; it++) {
if (hasTag((*it).ascii(), tag))
return true;
@@ -38,7 +38,7 @@ bool Tags::hasTag(const QString & tag )
return false;
}
-bool Tags::hasTag(const char* tagFile, const QString & tag )
+bool Tags::hasTag(const char* tagFile, const TQString & tag )
{
ctags::tagFileInfo info;
ctags::tagFile * file = ctags::tagsOpen(tagFile, &info );
@@ -51,10 +51,10 @@ bool Tags::hasTag(const char* tagFile, const QString & tag )
return found;
}
-unsigned int Tags::numberOfMatches( const QString & tagpart, bool partial )
+unsigned int Tags::numberOfMatches( const TQString & tagpart, bool partial )
{
unsigned int n = 0;
- QStringList::iterator it;
+ TQStringList::iterator it;
for (it = _tagFiles.begin(); it != _tagFiles.end(); it++)
{
n += numberOfMatches( (*it).ascii(), tagpart, partial );
@@ -63,7 +63,7 @@ unsigned int Tags::numberOfMatches( const QString & tagpart, bool partial )
return n;
}
-unsigned int Tags::numberOfMatches(const char* tagFile, const QString & tagpart, bool partial )
+unsigned int Tags::numberOfMatches(const char* tagFile, const TQString & tagpart, bool partial )
{
unsigned int n = 0;
@@ -88,12 +88,12 @@ unsigned int Tags::numberOfMatches(const char* tagFile, const QString & tagpart,
}
-Tags::TagList Tags::getMatches( const QString & tagpart, bool partial, const QStringList & types )
+Tags::TagList Tags::getMatches( const TQString & tagpart, bool partial, const TQStringList & types )
{
Tags::TagList list;
// build a compound tag list from all the configured tag files
- QStringList::iterator it;
+ TQStringList::iterator it;
for ( it = _tagFiles.begin(); it != _tagFiles.end(); it++ )
{
list += getMatches((*it).ascii(), tagpart, partial, types);
@@ -102,7 +102,7 @@ Tags::TagList Tags::getMatches( const QString & tagpart, bool partial, const QSt
return list;
}
-Tags::TagList Tags::getMatches(const char* tagFile, const QString & tagpart, bool partial, const QStringList & types )
+Tags::TagList Tags::getMatches(const char* tagFile, const TQString & tagpart, bool partial, const TQStringList & types )
{
Tags::TagList list;
@@ -116,8 +116,8 @@ Tags::TagList Tags::getMatches(const char* tagFile, const QString & tagpart, boo
{
do
{
- QString type( CTagsKinds::findKind( entry.kind, QString( entry.file ).section( '.', -1 ) ) );
- QString file( entry.file );
+ TQString type( CTagsKinds::findKind( entry.kind, TQString( entry.file ).section( '.', -1 ) ) );
+ TQString file( entry.file );
if ( type.isEmpty() && file.endsWith( "Makefile" ) )
{
@@ -125,7 +125,7 @@ Tags::TagList Tags::getMatches(const char* tagFile, const QString & tagpart, boo
}
if ( types.isEmpty() || types.contains( entry.kind ) )
{
- list << TagEntry( QString( entry.name ), type, file, QString( entry.address.pattern ) );
+ list << TagEntry( TQString( entry.name ), type, file, TQString( entry.address.pattern ) );
}
}
while ( ctags::tagsFindNext( file, &entry ) == ctags::TagSuccess );
@@ -136,32 +136,32 @@ Tags::TagList Tags::getMatches(const char* tagFile, const QString & tagpart, boo
return list;
}
-void Tags::setTagFiles(const QStringList& tagFiles )
+void Tags::setTagFiles(const TQStringList& tagFiles )
{
_tagFiles = tagFiles;
}
-QStringList Tags::getTagFiles( )
+TQStringList Tags::getTagFiles( )
{
return _tagFiles;
}
-unsigned int Tags::numberOfPartialMatches( const QString & tagpart )
+unsigned int Tags::numberOfPartialMatches( const TQString & tagpart )
{
return numberOfMatches( tagpart, true );
}
-unsigned int Tags::numberOfExactMatches( const QString & tagpart )
+unsigned int Tags::numberOfExactMatches( const TQString & tagpart )
{
return numberOfMatches( tagpart, false );
}
-Tags::TagList Tags::getPartialMatches( const QString & tagpart )
+Tags::TagList Tags::getPartialMatches( const TQString & tagpart )
{
return getMatches( tagpart, true );
}
-Tags::TagList Tags::getExactMatches( const QString & tag )
+Tags::TagList Tags::getExactMatches( const TQString & tag )
{
return getMatches( tag, false );
}
diff --git a/parts/ctags2/tags.h b/parts/ctags2/tags.h
index 1d7e3604..22b7e7ea 100644
--- a/parts/ctags2/tags.h
+++ b/parts/ctags2/tags.h
@@ -12,10 +12,10 @@
#ifndef TAGS_H
#define TAGS_H
-#include <qvaluelist.h>
-#include <qcstring.h>
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqvaluelist.h>
+#include <tqcstring.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
class Tags
{
@@ -24,49 +24,49 @@ public:
struct TagEntry
{
TagEntry();
- TagEntry( const QString & tag, const QString & type, const QString & file, const QString & pattern );
+ TagEntry( const TQString & tag, const TQString & type, const TQString & file, const TQString & pattern );
- QString tag;
- QString type;
- QString file;
- QString pattern;
+ TQString tag;
+ TQString type;
+ TQString file;
+ TQString pattern;
};
- typedef QValueList<TagEntry> TagList;
+ typedef TQValueList<TagEntry> TagList;
/**
* Method to set the tag database filename
* @param file the tag database filename
*/
- static void setTagFiles(const QStringList& tagFiles);
+ static void setTagFiles(const TQStringList& tagFiles);
- static QStringList getTagFiles();
+ static TQStringList getTagFiles();
/**
* Method to check if the tag database contains a specific tag
* @param tag Tag to look up
* @return returns true if tag database contains 'tag'
*/
- static bool hasTag( const QString & tag );
+ static bool hasTag( const TQString & tag );
- static unsigned int numberOfPartialMatches( const QString & tagpart );
- static unsigned int numberOfExactMatches( const QString & tag );
- static unsigned int numberOfMatches( const QString & tagpart, bool partial );
+ static unsigned int numberOfPartialMatches( const TQString & tagpart );
+ static unsigned int numberOfExactMatches( const TQString & tag );
+ static unsigned int numberOfMatches( const TQString & tagpart, bool partial );
- static TagList getPartialMatches( const QString & tagpart );
- static TagList getExactMatches( const QString & tag );
- static TagList getMatches( const QString & tagpart, bool partial, const QStringList & types = QStringList() );
+ static TagList getPartialMatches( const TQString & tagpart );
+ static TagList getExactMatches( const TQString & tag );
+ static TagList getMatches( const TQString & tagpart, bool partial, const TQStringList & types = TQStringList() );
private:
static Tags::TagList getMatches(const char* tagFile,
- const QString & tagpart,
+ const TQString & tagpart,
bool partial,
- const QStringList & types );
+ const TQStringList & types );
static unsigned int numberOfMatches(const char* tagFile,
- const QString & tagpart,
+ const TQString & tagpart,
bool partial );
- static bool hasTag(const char* tagFile, const QString & tag );
- static QStringList _tagFiles;
+ static bool hasTag(const char* tagFile, const TQString & tag );
+ static TQStringList _tagFiles;
};
#endif
diff --git a/parts/diff/diffdlg.cpp b/parts/diff/diffdlg.cpp
index 049a3d60..e5a8c74d 100644
--- a/parts/diff/diffdlg.cpp
+++ b/parts/diff/diffdlg.cpp
@@ -9,20 +9,20 @@
* *
***************************************************************************/
-#include <qlayout.h>
+#include <tqlayout.h>
#include <klocale.h>
#include "diffdlg.h"
#include "diffwidget.h"
-DiffDlg::DiffDlg( QWidget *parent, const char *name ):
+DiffDlg::DiffDlg( TQWidget *parent, const char *name ):
KDialogBase( parent, name, true, i18n("Difference Viewer"), Ok )
{
diffWidget = new DiffWidget( this, "Main Diff Widget" );
setMainWidget( diffWidget );
- QVBoxLayout* layout = new QVBoxLayout( this, 0, spacingHint() );
+ TQVBoxLayout* layout = new TQVBoxLayout( this, 0, spacingHint() );
layout->addWidget( diffWidget );
}
@@ -35,7 +35,7 @@ void DiffDlg::slotClear()
diffWidget->slotClear();
}
-void DiffDlg::setDiff( const QString& diff )
+void DiffDlg::setDiff( const TQString& diff )
{
diffWidget->setDiff( diff );
}
diff --git a/parts/diff/diffdlg.h b/parts/diff/diffdlg.h
index 6f47dcf2..a25a3957 100644
--- a/parts/diff/diffdlg.h
+++ b/parts/diff/diffdlg.h
@@ -22,14 +22,14 @@ class DiffDlg : public KDialogBase
Q_OBJECT
public:
- DiffDlg( QWidget *parent = 0, const char *name = 0 );
+ DiffDlg( TQWidget *parent = 0, const char *name = 0 );
virtual ~DiffDlg();
public slots:
/** The URL has to point to a diff file */
void openURL( const KURL& url );
/** Pass a diff file in here */
- void setDiff( const QString& diff );
+ void setDiff( const TQString& diff );
/** clears the difference viewer */
void slotClear();
diff --git a/parts/diff/diffpart.cpp b/parts/diff/diffpart.cpp
index 8f04b060..fab596ad 100644
--- a/parts/diff/diffpart.cpp
+++ b/parts/diff/diffpart.cpp
@@ -12,8 +12,8 @@
#include <sys/stat.h>
-#include <qwhatsthis.h>
-#include <qpopupmenu.h>
+#include <tqwhatsthis.h>
+#include <tqpopupmenu.h>
#include <klocale.h>
#include <kdevgenericfactory.h>
@@ -41,7 +41,7 @@ static const KDevPluginInfo data("kdevdiff");
typedef KDevGenericFactory<DiffPart> DiffFactory;
K_EXPORT_COMPONENT_FACTORY( libkdevdiff, DiffFactory( data ) )
-DiffPart::DiffPart(QObject *parent, const char *name, const QStringList &)
+DiffPart::DiffPart(TQObject *parent, const char *name, const TQStringList &)
: KDevDiffFrontend(&data, parent, name ? name : "DiffPart"), proc(0)
{
setInstance(DiffFactory::instance());
@@ -49,22 +49,22 @@ DiffPart::DiffPart(QObject *parent, const char *name, const QStringList &)
diffWidget = new DiffWidget(this, 0, "diffWidget");
diffWidget->setIcon( SmallIcon("editcopy") );
- QString nm( i18n( "Diff" ) );
+ TQString nm( i18n( "Diff" ) );
diffWidget->setCaption( i18n( "Diff Output" ) );
- QWhatsThis::add(diffWidget, i18n("<b>Difference viewer</b><p>Shows output of the diff format. "
+ TQWhatsThis::add(diffWidget, i18n("<b>Difference viewer</b><p>Shows output of the diff format. "
"Can utilize every installed component that is able to show diff output. "
"For example if you have Kompare installed, Difference Viewer can use its graphical diff view."));
mainWindow()->embedOutputView( diffWidget, nm, i18n("Output of the diff command") );
mainWindow()->setViewAvailable( diffWidget, false );
KAction *action = new KAction( i18n("Difference Viewer..."), 0,
- this, SLOT(slotExecDiff()),
+ this, TQT_SLOT(slotExecDiff()),
actionCollection(), "tools_diff" );
action->setToolTip(i18n("Difference viewer"));
action->setWhatsThis(i18n("<b>Difference viewer</b><p>Shows the contents of a patch file."));
- connect( core(), SIGNAL(contextMenu(QPopupMenu *, const Context *)),
- this, SLOT(contextMenu(QPopupMenu *, const Context *)) );
+ connect( core(), TQT_SIGNAL(contextMenu(TQPopupMenu *, const Context *)),
+ this, TQT_SLOT(contextMenu(TQPopupMenu *, const Context *)) );
}
static bool urlIsEqual(const KURL &a, const KURL &b)
@@ -73,8 +73,8 @@ static bool urlIsEqual(const KURL &a, const KURL &b)
{
struct stat aStat, bStat;
- if ((::stat(QFile::encodeName(a.fileName()), &aStat) == 0)
- && (::stat(QFile::encodeName(b.fileName()), &bStat) == 0))
+ if ((::stat(TQFile::encodeName(a.fileName()), &aStat) == 0)
+ && (::stat(TQFile::encodeName(b.fileName()), &bStat) == 0))
{
return (aStat.st_dev == bStat.st_dev) && (aStat.st_ino == bStat.st_ino);
}
@@ -87,7 +87,7 @@ static KParts::ReadWritePart* partForURL(const KURL &url, KDevPartController* pc
{
if ( !pc )
return 0;
- QPtrListIterator<KParts::Part> it(*(pc->parts()));
+ TQPtrListIterator<KParts::Part> it(*(pc->parts()));
for ( ; it.current(); ++it)
{
KParts::ReadWritePart *rw_part = dynamic_cast<KParts::ReadWritePart*>(it.current());
@@ -98,7 +98,7 @@ static KParts::ReadWritePart* partForURL(const KURL &url, KDevPartController* pc
return 0;
}
-void DiffPart::contextMenu( QPopupMenu* popup, const Context* context )
+void DiffPart::contextMenu( TQPopupMenu* popup, const Context* context )
{
if ( context->hasType( Context::EditorContext ) )
{
@@ -121,7 +121,7 @@ void DiffPart::contextMenu( QPopupMenu* popup, const Context* context )
if ( partController()->documentState( rw_part->url() ) != Clean )
{
int id = popup->insertItem( i18n( "Difference to Disk File" ),
- this, SLOT(localDiff()) );
+ this, TQT_SLOT(localDiff()) );
popup->setWhatsThis(id, i18n("<b>Difference to disk file</b><p>Shows the difference between "
"the file contents in this editor and the file contents on disk."));
}
@@ -146,7 +146,7 @@ void DiffPart::localDiff()
if ( !editIface )
return;
buffer = editIface->text().local8Bit();
- resultBuffer = resultErr = QString::null;
+ resultBuffer = resultErr = TQString::null;
delete proc;
proc = new KProcess();
@@ -155,14 +155,14 @@ void DiffPart::localDiff()
*proc << "-u" << popupFile.path() << "-";
proc->setWorkingDirectory( popupFile.directory() );
- connect( proc, SIGNAL(processExited( KProcess* )),
- this, SLOT(processExited( KProcess* )) );
- connect( proc, SIGNAL(receivedStdout( KProcess*, char*, int )),
- this, SLOT(receivedStdout( KProcess*, char*, int )) );
- connect( proc, SIGNAL(receivedStderr( KProcess*, char*, int )),
- this, SLOT(receivedStderr( KProcess*, char*, int )) );
- connect( proc, SIGNAL(wroteStdin( KProcess* )),
- this, SLOT(wroteStdin( KProcess* )) );
+ connect( proc, TQT_SIGNAL(processExited( KProcess* )),
+ this, TQT_SLOT(processExited( KProcess* )) );
+ connect( proc, TQT_SIGNAL(receivedStdout( KProcess*, char*, int )),
+ this, TQT_SLOT(receivedStdout( KProcess*, char*, int )) );
+ connect( proc, TQT_SIGNAL(receivedStderr( KProcess*, char*, int )),
+ this, TQT_SLOT(receivedStderr( KProcess*, char*, int )) );
+ connect( proc, TQT_SIGNAL(wroteStdin( KProcess* )),
+ this, TQT_SLOT(wroteStdin( KProcess* )) );
if ( !proc->start( KProcess::NotifyOnExit, KProcess::All ) ) {
KMessageBox::error( 0, i18n( "Could not invoke the \"diff\" command." ) );
@@ -184,20 +184,20 @@ void DiffPart::processExited( KProcess* p )
} else {
KMessageBox::error( 0, i18n("Diff command failed (%1):\n").arg( p->exitStatus() ) + resultErr );
}
- resultBuffer = resultErr = QString::null;
+ resultBuffer = resultErr = TQString::null;
delete proc;
proc = 0;
}
void DiffPart::receivedStdout( KProcess* /* p */, char* buf, int buflen )
{
- resultBuffer += QString::fromLocal8Bit( buf, buflen );
+ resultBuffer += TQString::fromLocal8Bit( buf, buflen );
}
void DiffPart::receivedStderr( KProcess* /* p */, char* buf, int buflen )
{
- kdDebug(9033) << "received Stderr: " << QString::fromLocal8Bit( buf, buflen ) << endl;
- resultErr += QString::fromLocal8Bit( buf, buflen );
+ kdDebug(9033) << "received Stderr: " << TQString::fromLocal8Bit( buf, buflen ) << endl;
+ resultErr += TQString::fromLocal8Bit( buf, buflen );
}
void DiffPart::wroteStdin( KProcess* p )
@@ -220,7 +220,7 @@ void DiffPart::openURL( const KURL& url )
*/
}
-void DiffPart::showDiff( const QString& diff )
+void DiffPart::showDiff( const TQString& diff )
{
diffWidget->slotClear();
diffWidget->setDiff( diff );
@@ -237,7 +237,7 @@ void DiffPart::showDiff( const QString& diff )
void DiffPart::slotExecDiff()
{
- KURL url = KFileDialog::getOpenURL( QString::null, QString::null, 0, i18n("Please Select Patch File") );
+ KURL url = KFileDialog::getOpenURL( TQString::null, TQString::null, 0, i18n("Please Select Patch File") );
if ( url.isEmpty() )
return;
diff --git a/parts/diff/diffpart.h b/parts/diff/diffpart.h
index f89d0d18..dff5ba0c 100644
--- a/parts/diff/diffpart.h
+++ b/parts/diff/diffpart.h
@@ -12,8 +12,8 @@
#ifndef _DIFFPART_H_
#define _DIFFPART_H_
-#include <qguardedptr.h>
-#include <qcstring.h>
+#include <tqguardedptr.h>
+#include <tqcstring.h>
#include "kdevplugin.h"
#include "kdevdifffrontend.h"
@@ -29,18 +29,18 @@ class DiffPart : public KDevDiffFrontend
Q_OBJECT
public:
- DiffPart( QObject *parent, const char *name, const QStringList & );
+ DiffPart( TQObject *parent, const char *name, const TQStringList & );
virtual ~DiffPart();
void openURL( const KURL& url );
- void showDiff( const QString& diff );
+ void showDiff( const TQString& diff );
void showDiff( const KURL &, const KURL & ) { /** @todo */ }
public slots:
void slotExecDiff();
private slots:
- void contextMenu( QPopupMenu* popup, const Context* context );
+ void contextMenu( TQPopupMenu* popup, const Context* context );
void localDiff();
void processExited( KProcess* p );
void receivedStdout( KProcess* p, char* buf, int buflen );
@@ -48,12 +48,12 @@ private slots:
void wroteStdin( KProcess* p );
private:
- QGuardedPtr<DiffWidget> diffWidget;
+ TQGuardedPtr<DiffWidget> diffWidget;
KURL popupFile;
KProcess* proc;
- QCString buffer;
- QString resultBuffer;
- QString resultErr;
+ TQCString buffer;
+ TQString resultBuffer;
+ TQString resultErr;
};
#endif
diff --git a/parts/diff/diffwidget.cpp b/parts/diff/diffwidget.cpp
index 0b3399ab..7d403e46 100644
--- a/parts/diff/diffwidget.cpp
+++ b/parts/diff/diffwidget.cpp
@@ -9,11 +9,11 @@
* *
***************************************************************************/
-#include <qlayout.h>
-#include <qtextedit.h>
-#include <qpopupmenu.h>
-#include <qcursor.h>
-#include <qfile.h>
+#include <tqlayout.h>
+#include <tqtextedit.h>
+#include <tqpopupmenu.h>
+#include <tqcursor.h>
+#include <tqfile.h>
#include <kconfig.h>
#include <kapplication.h>
@@ -39,10 +39,10 @@
// yup, magic value for the popupmenu-id
static const int POPUP_BASE = 130977;
-QStringList KDiffTextEdit::extParts;
-QStringList KDiffTextEdit::extPartsTranslated;
+TQStringList KDiffTextEdit::extParts;
+TQStringList KDiffTextEdit::extPartsTranslated;
-KDiffTextEdit::KDiffTextEdit( QWidget* parent, const char* name ): QTextEdit( parent, name )
+KDiffTextEdit::KDiffTextEdit( TQWidget* parent, const char* name ): TQTextEdit( parent, name )
{
KConfig* config = kapp->config();
config->setGroup( "Diff" );
@@ -59,51 +59,51 @@ KDiffTextEdit::~KDiffTextEdit()
config->writeEntry( "Highlight", _highlight );
}
-QPopupMenu* KDiffTextEdit::createPopupMenu()
+TQPopupMenu* KDiffTextEdit::createPopupMenu()
{
- return createPopupMenu( QPoint() );
+ return createPopupMenu( TQPoint() );
}
-QPopupMenu* KDiffTextEdit::createPopupMenu( const QPoint& p )
+TQPopupMenu* KDiffTextEdit::createPopupMenu( const TQPoint& p )
{
- QPopupMenu* popup = QTextEdit::createPopupMenu( p );
+ TQPopupMenu* popup = TQTextEdit::createPopupMenu( p );
if ( !popup )
- popup = new QPopupMenu( this );
+ popup = new TQPopupMenu( this );
int i = 0;
- for ( QStringList::Iterator it = extPartsTranslated.begin(); it != extPartsTranslated.end(); ++it ) {
+ for ( TQStringList::Iterator it = extPartsTranslated.begin(); it != extPartsTranslated.end(); ++it ) {
popup->insertItem( i18n( "Show in %1" ).arg( *it ), i + POPUP_BASE, i );
i++;
}
if ( !extPartsTranslated.isEmpty() )
popup->insertSeparator( i );
- connect( popup, SIGNAL(activated(int)), this, SLOT(popupActivated(int)) );
+ connect( popup, TQT_SIGNAL(activated(int)), this, TQT_SLOT(popupActivated(int)) );
- popup->insertItem( SmallIconSet( "filesaveas" ), i18n( "&Save As..." ), this, SLOT(saveAs()), CTRL + Key_S, POPUP_BASE - 2, 0 );
+ popup->insertItem( SmallIconSet( "filesaveas" ), i18n( "&Save As..." ), this, TQT_SLOT(saveAs()), CTRL + Key_S, POPUP_BASE - 2, 0 );
popup->setItemEnabled( POPUP_BASE - 2, length() > 0 );
popup->insertSeparator( 1 );
- popup->insertItem( i18n( "Highlight Syntax" ), this, SLOT(toggleSyntaxHighlight()), 0, POPUP_BASE - 1, 2 );
+ popup->insertItem( i18n( "Highlight Syntax" ), this, TQT_SLOT(toggleSyntaxHighlight()), 0, POPUP_BASE - 1, 2 );
popup->setItemChecked( POPUP_BASE - 1, _highlight );
popup->insertSeparator( 3 );
popup->insertSeparator();
- popup->insertItem( i18n("Hide view"), parent(), SLOT(hideView()) );
+ popup->insertItem( i18n("Hide view"), parent(), TQT_SLOT(hideView()) );
return popup;
}
void KDiffTextEdit::saveAs()
{
- QString fName = KFileDialog::getSaveFileName();
+ TQString fName = KFileDialog::getSaveFileName();
if ( fName.isEmpty() )
return;
- QFile f( fName );
+ TQFile f( fName );
if ( f.open( IO_WriteOnly ) ) {
- QTextStream stream( &f );
+ TQTextStream stream( &f );
int pCount = paragraphs();
for ( int i = 0; i < pCount; ++i )
stream << text( i ) << "\n";
@@ -125,15 +125,15 @@ void KDiffTextEdit::toggleSyntaxHighlight()
void KDiffTextEdit::applySyntaxHighlight()
{
// the diff has been loaded so we apply a simple highlighting
- static QColor cAdded( 190, 190, 237);
- static QColor cRemoved( 190, 237, 190 );
+ static TQColor cAdded( 190, 190, 237);
+ static TQColor cRemoved( 190, 237, 190 );
if ( !_highlight )
return;
int paragCount = paragraphs();
for ( int i = 0; i < paragCount; ++i ) {
- QString txt = text( i );
+ TQString txt = text( i );
if ( txt.length() > 0 ) {
if ( txt.startsWith( "+" ) || txt.startsWith( ">" ) ) {
setParagraphBackgroundColor( i, cAdded );
@@ -180,19 +180,19 @@ void KDiffTextEdit::popupActivated( int id )
emit externalPartRequested( extParts[ id ] );
}
-DiffWidget::DiffWidget( DiffPart * part, QWidget *parent, const char *name, WFlags f ):
- QWidget( parent, name, f ), m_part( part ), tempFile( 0 )
+DiffWidget::DiffWidget( DiffPart * part, TQWidget *parent, const char *name, WFlags f ):
+ TQWidget( parent, name, f ), m_part( part ), tempFile( 0 )
{
job = 0;
extPart = 0;
te = new KDiffTextEdit( this, "Main Diff Viewer" );
te->setReadOnly( true );
- te->setTextFormat( QTextEdit::PlainText );
+ te->setTextFormat( TQTextEdit::PlainText );
// te->setMinimumSize( 300, 200 );
- connect( te, SIGNAL(externalPartRequested(const QString&)), this, SLOT(loadExtPart(const QString&)) );
+ connect( te, TQT_SIGNAL(externalPartRequested(const TQString&)), this, TQT_SLOT(loadExtPart(const TQString&)) );
- QVBoxLayout* layout = new QVBoxLayout( this );
+ TQVBoxLayout* layout = new TQVBoxLayout( this );
layout->addWidget( te );
}
@@ -217,7 +217,7 @@ void DiffWidget::setExtPartVisible( bool visible )
}
}
-void DiffWidget::loadExtPart( const QString& partName )
+void DiffWidget::loadExtPart( const TQString& partName )
{
if ( extPart ) {
setExtPartVisible( false );
@@ -243,22 +243,22 @@ void DiffWidget::loadExtPart( const QString& partName )
void DiffWidget::slotClear()
{
- rawDiff = QString();
+ rawDiff = TQString();
te->clear();
if ( extPart )
extPart->closeURL();
}
// internally for the TextEdit only!
-void DiffWidget::slotAppend( const QString& str )
+void DiffWidget::slotAppend( const TQString& str )
{
te->append( str );
}
// internally for the TextEdit only!
-void DiffWidget::slotAppend( KIO::Job*, const QByteArray& ba )
+void DiffWidget::slotAppend( KIO::Job*, const TQByteArray& ba )
{
- slotAppend( QString( ba ) );
+ slotAppend( TQString( ba ) );
}
void DiffWidget::populateExtPart()
@@ -292,7 +292,7 @@ void DiffWidget::slotFinished()
populateExtPart();
}
-void DiffWidget::setDiff( const QString& diff )
+void DiffWidget::setDiff( const TQString& diff )
{
slotClear();
rawDiff = diff;
@@ -309,24 +309,24 @@ void DiffWidget::openURL( const KURL& url )
if ( !job )
return;
- connect( job, SIGNAL(data( KIO::Job *, const QByteArray & )),
- this, SLOT(slotAppend( KIO::Job*, const QByteArray& )) );
- connect( job, SIGNAL(result( KIO::Job * )),
- this, SLOT(slotFinished()) );
+ connect( job, TQT_SIGNAL(data( KIO::Job *, const TQByteArray & )),
+ this, TQT_SLOT(slotAppend( KIO::Job*, const TQByteArray& )) );
+ connect( job, TQT_SIGNAL(result( KIO::Job * )),
+ this, TQT_SLOT(slotFinished()) );
}
-void DiffWidget::contextMenuEvent( QContextMenuEvent* /* e */ )
+void DiffWidget::contextMenuEvent( TQContextMenuEvent* /* e */ )
{
- QPopupMenu* popup = new QPopupMenu( this );
+ TQPopupMenu* popup = new TQPopupMenu( this );
if ( !te->isVisible() )
{
- popup->insertItem( i18n("Display &Raw Output"), this, SLOT(showTextEdit()) );
+ popup->insertItem( i18n("Display &Raw Output"), this, TQT_SLOT(showTextEdit()) );
popup->insertSeparator();
- popup->insertItem( i18n("Hide view"), this, SLOT(hideView()) );
+ popup->insertItem( i18n("Hide view"), this, TQT_SLOT(hideView()) );
}
- popup->exec( QCursor::pos() );
+ popup->exec( TQCursor::pos() );
delete popup;
}
diff --git a/parts/diff/diffwidget.h b/parts/diff/diffwidget.h
index 665b1110..dc8568c2 100644
--- a/parts/diff/diffwidget.h
+++ b/parts/diff/diffwidget.h
@@ -12,9 +12,9 @@
#ifndef _DIFFWIDGET_H_
#define _DIFFWIDGET_H_
-#include <qwidget.h>
-#include <qtextedit.h>
-#include <qstringlist.h>
+#include <tqwidget.h>
+#include <tqtextedit.h>
+#include <tqstringlist.h>
#include <kurl.h>
@@ -34,17 +34,17 @@ class KDiffTextEdit: public QTextEdit
{
Q_OBJECT
public:
- KDiffTextEdit( QWidget* parent = 0, const char* name = 0 );
+ KDiffTextEdit( TQWidget* parent = 0, const char* name = 0 );
virtual ~KDiffTextEdit();
void applySyntaxHighlight();
void clearSyntaxHighlight();
signals:
- void externalPartRequested( const QString& partName );
+ void externalPartRequested( const TQString& partName );
protected:
- virtual QPopupMenu* createPopupMenu( const QPoint& );
- virtual QPopupMenu* createPopupMenu();
+ virtual TQPopupMenu* createPopupMenu( const TQPoint& );
+ virtual TQPopupMenu* createPopupMenu();
private slots:
void popupActivated( int );
@@ -53,8 +53,8 @@ private slots:
private:
static void searchExtParts();
- static QStringList extParts;
- static QStringList extPartsTranslated;
+ static TQStringList extParts;
+ static TQStringList extPartsTranslated;
bool _highlight;
};
@@ -63,33 +63,33 @@ class DiffWidget : public QWidget
Q_OBJECT
public:
- DiffWidget( DiffPart * part, QWidget *parent = 0, const char *name = 0, WFlags f = 0 );
+ DiffWidget( DiffPart * part, TQWidget *parent = 0, const char *name = 0, WFlags f = 0 );
virtual ~DiffWidget();
public slots:
/** The URL has to point to a diff file */
void openURL( const KURL& url );
/** Pass a diff file in here */
- void setDiff( const QString& diff );
+ void setDiff( const TQString& diff );
/** clears the difference viewer */
void slotClear();
private slots:
/** appends a piece of "diff" */
- void slotAppend( const QString& str );
+ void slotAppend( const TQString& str );
/** overloaded for convenience */
- void slotAppend( KIO::Job*, const QByteArray& ba );
+ void slotAppend( KIO::Job*, const TQByteArray& ba );
/** call this when the whole "diff" has been sent.
* Don't call slotAppend afterwards!
*/
void slotFinished();
void showExtPart();
void showTextEdit();
- void loadExtPart( const QString& partName );
+ void loadExtPart( const TQString& partName );
void hideView();
protected:
- void contextMenuEvent( QContextMenuEvent* e );
+ void contextMenuEvent( TQContextMenuEvent* e );
private:
void setExtPartVisible( bool visible );
@@ -101,7 +101,7 @@ private:
KIO::Job* job;
KParts::ReadOnlyPart* extPart;
KTempFile* tempFile;
- QString rawDiff;
+ TQString rawDiff;
};
#endif
diff --git a/parts/distpart/distpart_part.cpp b/parts/distpart/distpart_part.cpp
index badd4782..77e69705 100644
--- a/parts/distpart/distpart_part.cpp
+++ b/parts/distpart/distpart_part.cpp
@@ -19,7 +19,7 @@
***************************************************************************/
#include "distpart_part.h"
-#include <qwhatsthis.h>
+#include <tqwhatsthis.h>
#include <kiconloader.h>
#include <klocale.h>
@@ -37,7 +37,7 @@ typedef KDevGenericFactory<DistpartPart> DistpartFactory;
static const KDevPluginInfo data("kdevdistpart");
K_EXPORT_COMPONENT_FACTORY( libkdevdistpart, DistpartFactory( data ) )
-DistpartPart::DistpartPart(QObject *parent, const char *name, const QStringList &)
+DistpartPart::DistpartPart(TQObject *parent, const char *name, const TQStringList &)
: KDevPlugin(&data, parent, name ? name : "DistpartPart") {
kdDebug(9007) << "DistpartPart::DistpartPart()" << endl;
@@ -46,20 +46,20 @@ DistpartPart::DistpartPart(QObject *parent, const char *name, const QStringList
setXMLFile("kdevpart_distpart.rc");
m_action = new KAction( i18n("Distribution && Publishing"), "package", 0,
- this, SLOT(show()),
+ this, TQT_SLOT(show()),
actionCollection(), "make_dist" );
m_action->setToolTip(i18n("Make source and binary distribution"));
m_action->setWhatsThis(i18n("<b>Project distribution & publishing</b><p>Helps users package and publish their software."));
- //QWhatsThis::add(m_widget, i18n("This will help users package and publish their software."));
+ //TQWhatsThis::add(m_widget, i18n("This will help users package and publish their software."));
m_dlg = new KDialogBase( 0 , "dist_part", false, i18n("Distribution & Publishing"), KDialogBase::Ok|KDialogBase::Cancel);
m_dialog = new DistpartDialog(this, m_dlg );
m_dlg->setMainWidget(m_dialog);
- connect( m_dlg, SIGNAL(okClicked()), m_dialog, SLOT(slotokayPushButtonPressed()));
- connect( m_dlg, SIGNAL(cancelClicked()), m_dialog, SLOT(slotcancelPushButtonPressed()));
+ connect( m_dlg, TQT_SIGNAL(okClicked()), m_dialog, TQT_SLOT(slotokayPushButtonPressed()));
+ connect( m_dlg, TQT_SIGNAL(cancelClicked()), m_dialog, TQT_SLOT(slotcancelPushButtonPressed()));
// Package types
//RpmPackage = new SpecSupport(this);
//LsmPackage = new LsmSupport(this);
diff --git a/parts/distpart/distpart_part.h b/parts/distpart/distpart_part.h
index 562974e0..d380d4fd 100644
--- a/parts/distpart/distpart_part.h
+++ b/parts/distpart/distpart_part.h
@@ -23,7 +23,7 @@
#define __KDEVPART_DISTPART_H__
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
#include <kdevplugin.h>
#include <kaction.h>
@@ -37,7 +37,7 @@ class DistpartPart : public KDevPlugin {
public:
- DistpartPart(QObject *parent, const char *name, const QStringList &);
+ DistpartPart(TQObject *parent, const char *name, const TQStringList &);
~DistpartPart();
public slots:
@@ -46,9 +46,9 @@ public slots:
private:
packageBase *RpmPackage, *LsmPackage;
- QGuardedPtr<DistpartDialog> m_dialog;
+ TQGuardedPtr<DistpartDialog> m_dialog;
KAction *m_action;
- QGuardedPtr<KDialogBase> m_dlg;
+ TQGuardedPtr<KDialogBase> m_dlg;
};
diff --git a/parts/distpart/distpart_widget.cpp b/parts/distpart/distpart_widget.cpp
index 7942776a..eebbbe36 100644
--- a/parts/distpart/distpart_widget.cpp
+++ b/parts/distpart/distpart_widget.cpp
@@ -33,61 +33,61 @@
#include <kmessagebox.h>
#include <kdevcore.h>
-#include <qgroupbox.h>
-#include <qlayout.h>
-#include <qnetwork.h>
-#include <qurloperator.h>
-#include <qmessagebox.h>
+#include <tqgroupbox.h>
+#include <tqlayout.h>
+#include <tqnetwork.h>
+#include <tqurloperator.h>
+#include <tqmessagebox.h>
#include "distpart_part.h"
-#include <qdir.h>
-#include <qfile.h>
-#include <qregexp.h>
-#include <qstringlist.h>
-#include <qtabwidget.h>
+#include <tqdir.h>
+#include <tqfile.h>
+#include <tqregexp.h>
+#include <tqstringlist.h>
+#include <tqtabwidget.h>
#include "kdevmakefrontend.h"
#include <kprogress.h>
-#include <qerrormessage.h>
+#include <tqerrormessage.h>
#include "specsupport.h"
#include "lsmsupport.h"
-DistpartDialog::DistpartDialog(DistpartPart *part, QWidget *parent)
+DistpartDialog::DistpartDialog(DistpartPart *part, TQWidget *parent)
:distpart_ui(parent, "dist_widget"), m_part(part) {
m_spec = new SpecSupport(m_part);
- connect( customProjectCheckBox, SIGNAL(toggled(bool) ),
- this, SLOT(slotcustomProjectCheckBoxChanged()));
- connect( uploadCustomCheckBox, SIGNAL(toggled(bool)),
- this, SLOT(slotuploadCustomCheckBoxChanged()));
-
-// connect( okayPushButton, SIGNAL(clicked()),
-// this, SLOT(slotokayPushButtonPressed()));
-// connect( cancelPushButton, SIGNAL(clicked()),
-// this, SLOT(slotcancelPushButtonPressed()));
-/* connect(help_PushButton, SIGNAL(clicked()),
- this, SLOT(slothelp_PushButtonPressed()));*/
- connect( createSrcArchPushButton, SIGNAL(clicked()),
- this, SLOT(slotcreateSrcArchPushButtonPressed()));
- connect( resetSrcPushButton, SIGNAL(clicked()),
- this, SLOT(slotresetSrcPushButtonPressed()));
-
- connect( genHTMLPushButton, SIGNAL(clicked()),
- this, SLOT(slotgenHTMLPushButtonPressed()));
- connect( resetHTMLPushButton, SIGNAL(clicked()),
- this, SLOT(slotresetHTMLPushButtonPressed()));
- connect( uploadSubmitPushButton, SIGNAL(clicked()),
- this, SLOT(slotuploadSubmitPushButtonPressed()));
- connect( uploadResetPushButton, SIGNAL(clicked()),
- this, SLOT(slotuploadResetPushButtonPressed()));
- connect( uploadAddFileToolButton, SIGNAL(clicked()),
- this, SLOT(slotuploadAddFileToolButtonPressed()));
- connect( uploadRemoveToolButton, SIGNAL(clicked()),
- this, SLOT(slotuploadRemoveToolButtonPressed()));
- connect ( srcDistFileListBox, SIGNAL(clicked(QListBoxItem *item)), this, SLOT(slotRemoveFile(QListBoxItem *item)));
-// connect( buildAllPushButton, SIGNAL( clicked() ), this, SLOT( slotbuildAllPushButtonPressed() ));
-// connect( exportSPECPushButton, SIGNAL( clicked() ), this, SLOT( slotexportSPECPushButtonPressed( ) ) );
-// connect( srcPackagePushButton, SIGNAL( clicked() ), this, SLOT( slotsrcPackagePushButtonPressed() ) );
-// connect( importSPECPushButton, SIGNAL( clicked() ), this, SLOT( slotimportSPECPushButtonPressed() ) );
+ connect( customProjectCheckBox, TQT_SIGNAL(toggled(bool) ),
+ this, TQT_SLOT(slotcustomProjectCheckBoxChanged()));
+ connect( uploadCustomCheckBox, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotuploadCustomCheckBoxChanged()));
+
+// connect( okayPushButton, TQT_SIGNAL(clicked()),
+// this, TQT_SLOT(slotokayPushButtonPressed()));
+// connect( cancelPushButton, TQT_SIGNAL(clicked()),
+// this, TQT_SLOT(slotcancelPushButtonPressed()));
+/* connect(help_PushButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slothelp_PushButtonPressed()));*/
+ connect( createSrcArchPushButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotcreateSrcArchPushButtonPressed()));
+ connect( resetSrcPushButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotresetSrcPushButtonPressed()));
+
+ connect( genHTMLPushButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotgenHTMLPushButtonPressed()));
+ connect( resetHTMLPushButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotresetHTMLPushButtonPressed()));
+ connect( uploadSubmitPushButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotuploadSubmitPushButtonPressed()));
+ connect( uploadResetPushButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotuploadResetPushButtonPressed()));
+ connect( uploadAddFileToolButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotuploadAddFileToolButtonPressed()));
+ connect( uploadRemoveToolButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotuploadRemoveToolButtonPressed()));
+ connect ( srcDistFileListBox, TQT_SIGNAL(clicked(TQListBoxItem *item)), this, TQT_SLOT(slotRemoveFile(TQListBoxItem *item)));
+// connect( buildAllPushButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotbuildAllPushButtonPressed() ));
+// connect( exportSPECPushButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotexportSPECPushButtonPressed( ) ) );
+// connect( srcPackagePushButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotsrcPackagePushButtonPressed() ) );
+// connect( importSPECPushButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotimportSPECPushButtonPressed() ) );
loadSettings();
@@ -103,39 +103,39 @@ DistpartDialog::DistpartDialog(DistpartPart *part, QWidget *parent)
DistpartDialog::~DistpartDialog() {
}
-// QPushButton* okayPushButton;
+// TQPushButton* okayPushButton;
void DistpartDialog::slotokayPushButtonPressed() {
storeSettings();
// accept();
}
-// QPushButton* cancelPushButton;
+// TQPushButton* cancelPushButton;
void DistpartDialog::slotcancelPushButtonPressed() {
// reject();
}
-// QPushButton* help_PushButton;
+// TQPushButton* help_PushButton;
/*void DistpartDialog::slothelp_PushButtonPressed() {
- QMessageBox::about(this,i18n("Distpart Help"),i18n("In order to build a RPM package :\n\t1) Create a source archive\n\t2) Generate a SPEC File\n\t3) Build the package"));
+ TQMessageBox::about(this,i18n("Distpart Help"),i18n("In order to build a RPM package :\n\t1) Create a source archive\n\t2) Generate a SPEC File\n\t3) Build the package"));
}*/
-// QPushButton* createSrcArchPushButton;
+// TQPushButton* createSrcArchPushButton;
void DistpartDialog::slotcreateSrcArchPushButtonPressed() {
kdDebug() << "Starting archive..." << endl;
- QString dist = (getcustomProjectCheckBoxState() && getbzipCheckBoxState()) ? "application/x-bzip2" : "application/x-gzip";
+ TQString dist = (getcustomProjectCheckBoxState() && getbzipCheckBoxState()) ? "application/x-bzip2" : "application/x-gzip";
- QString filename = m_part->project()->projectDirectory() + "/" + getSourceName();
+ TQString filename = m_part->project()->projectDirectory() + "/" + getSourceName();
KTar tar(filename, dist);
if ( tar.open(IO_WriteOnly) )
{
- //QStringList files = m_part->project()->distFiles();
+ //TQStringList files = m_part->project()->distFiles();
KProgressDialog *prog = new KProgressDialog( 0, "dialog", i18n("Building Package"), "", true );
prog->show();
for( uint idx = 0; idx < srcDistFileListBox->numRows(); ++idx)
{
- QString file = srcDistFileListBox->text(idx);
+ TQString file = srcDistFileListBox->text(idx);
if ( !tar.addLocalFile( m_part->project()->projectDirectory() + "/" + file, getappNameFormatLineEditText() + "/" + file) )
{
kdDebug() << "Failed to write file " << file << endl;
@@ -159,7 +159,7 @@ void DistpartDialog::slotcreateSrcArchPushButtonPressed() {
}
-// QPushButton* resetSrcPushButton;
+// TQPushButton* resetSrcPushButton;
void DistpartDialog::slotresetSrcPushButtonPressed() {
srcDistFileListBox->clear();
loadSettings();
@@ -167,24 +167,24 @@ void DistpartDialog::slotresetSrcPushButtonPressed() {
-// QPushButton* genHTMLPushButton;
+// TQPushButton* genHTMLPushButton;
void DistpartDialog::slotgenHTMLPushButtonPressed() {}
-// QPushButton* resetHTMLPushButton;
+// TQPushButton* resetHTMLPushButton;
void DistpartDialog::slotresetHTMLPushButtonPressed() {}
-// QToolButton* uploadAddFileToolButton;
+// TQToolButton* uploadAddFileToolButton;
void DistpartDialog::slotuploadAddFileToolButtonPressed() {
uploadFileListBox->insertStringList(KFileDialog::getOpenFileNames());
}
-// QToolButton* uploadRemoveToolButton;
+// TQToolButton* uploadRemoveToolButton;
void DistpartDialog::slotuploadRemoveToolButtonPressed() {
for(unsigned int i=0; i< uploadFileListBox->count(); i++)
if ( uploadFileListBox->isSelected(i)) uploadFileListBox->removeItem(i);
}
-// QPushButton* uploadSubmitPushButton;
+// TQPushButton* uploadSubmitPushButton;
void DistpartDialog::slotuploadSubmitPushButtonPressed() {
if(getuploadftpkdeorgCheckBoxState() || getuploadAppsKDEcomCheckBoxState())
@@ -192,11 +192,11 @@ void DistpartDialog::slotuploadSubmitPushButtonPressed() {
else {
for(unsigned int i=0; i< uploadFileListBox->count(); i++)
KIO::NetAccess::copy(KURL::fromPathOrURL( uploadFileListBox->text(i) ),
- KURL::fromPathOrURL( getuploadURLLineEditText() + uploadFileListBox->text(i).replace(QRegExp("[^/]*/"),"") ));
+ KURL::fromPathOrURL( getuploadURLLineEditText() + uploadFileListBox->text(i).replace(TQRegExp("[^/]*/"),"") ));
}
}
-// QPushButton* uploadResetPushButton;
+// TQPushButton* uploadResetPushButton;
void DistpartDialog::slotuploadResetPushButtonPressed() {
uploadFileListBox->clear();
}
@@ -205,7 +205,7 @@ void DistpartDialog::slotuploadResetPushButtonPressed() {
// accessors and mutators
-// QCheckBox* customProjectCheckBox;
+// TQCheckBox* customProjectCheckBox;
void DistpartDialog::slotcustomProjectCheckBoxChanged() {
kdDebug () << "New State" << customProjectCheckBox->isChecked() << endl;
sourceOptionsGroupBox->setEnabled( customProjectCheckBox->isChecked());
@@ -219,7 +219,7 @@ void DistpartDialog::setcustomProjectCheckBoxState(bool state) {
customProjectCheckBox->setChecked(state);
}
-// QCheckBox* uploadCustomCheckBox;
+// TQCheckBox* uploadCustomCheckBox;
void DistpartDialog::slotuploadCustomCheckBoxChanged() {
uploadURLLineEdit->setEnabled( uploadCustomCheckBox->isChecked());
}
@@ -234,7 +234,7 @@ void DistpartDialog::setuploadCustomCheckBoxState(bool state) {
// Add accessors and mutators for the following
-// QCheckBox* bzipCheckBox;
+// TQCheckBox* bzipCheckBox;
bool DistpartDialog::getbzipCheckBoxState() {
return bzipCheckBox->isChecked();
}
@@ -243,7 +243,7 @@ void DistpartDialog::setbzipCheckBoxState(bool state) {
bzipCheckBox->setChecked(state);
}
-// QCheckBox* appIconCheckBox;
+// TQCheckBox* appIconCheckBox;
bool DistpartDialog::getappIconCheckBoxState() {
return appIconCheckBox->isChecked();
}
@@ -252,7 +252,7 @@ void DistpartDialog::setappIconCheckBoxState(bool state) {
appIconCheckBox->setChecked(state);
}
-// QCheckBox* genHTMLCheckBox;
+// TQCheckBox* genHTMLCheckBox;
bool DistpartDialog::getgenHTMLCheckBoxState() {
return genHTMLCheckBox->isChecked();
}
@@ -261,7 +261,7 @@ void DistpartDialog::setgenHTMLCheckBoxState(bool state) {
genHTMLCheckBox->setChecked(state);
}
-// QCheckBox* useRPMInfoCheckBox;
+// TQCheckBox* useRPMInfoCheckBox;
bool DistpartDialog::getuseRPMInfoCheckBoxState() {
return useRPMInfoCheckBox->isChecked();
}
@@ -270,7 +270,7 @@ void DistpartDialog::setuseRPMInfoCheckBoxState(bool state) {
useRPMInfoCheckBox->setChecked(state);
}
-// QCheckBox* uploadAppsKDEcomCheckBox;
+// TQCheckBox* uploadAppsKDEcomCheckBox;
bool DistpartDialog::getuploadAppsKDEcomCheckBoxState() {
return uploadAppsKDEcomCheckBox->isChecked();
}
@@ -279,7 +279,7 @@ void DistpartDialog::setuploadAppsKDEcomCheckBoxState(bool state) {
uploadAppsKDEcomCheckBox->setChecked(state);
}
-// QCheckBox* uploadftpkdeorgCheckBox;
+// TQCheckBox* uploadftpkdeorgCheckBox;
bool DistpartDialog::getuploadftpkdeorgCheckBoxState() {
return uploadftpkdeorgCheckBox->isChecked();
}
@@ -288,7 +288,7 @@ void DistpartDialog::setuploadftpkdeorgCheckBoxState(bool state) {
uploadftpkdeorgCheckBox->setChecked(state);
}
-// QCheckBox* devPackageCheckBox;
+// TQCheckBox* devPackageCheckBox;
bool DistpartDialog::getdevPackageCheckBoxState() {
return devPackageCheckBox->isChecked();
}
@@ -297,7 +297,7 @@ void DistpartDialog::setdevPackageCheckBoxState(bool state) {
devPackageCheckBox->setChecked(state);
}
-// QCheckBox* docsPackageCheckBox;
+// TQCheckBox* docsPackageCheckBox;
bool DistpartDialog::getdocsPackageCheckBoxState() {
return docsPackageCheckBox->isChecked();
}
@@ -306,98 +306,98 @@ void DistpartDialog::setdocsPackageCheckBoxState(bool state) {
docsPackageCheckBox->setChecked(state);
}
-// QLineEdit* archNameFormatLineEdit;
-QString DistpartDialog::getarchNameFormatLineEditText() {
+// TQLineEdit* archNameFormatLineEdit;
+TQString DistpartDialog::getarchNameFormatLineEditText() {
return archNameFormatLineEdit->text();
}
-void DistpartDialog::setarchNameFormatLineEditText(QString text) {
+void DistpartDialog::setarchNameFormatLineEditText(TQString text) {
archNameFormatLineEdit->setText(text);
}
-// QLineEdit* appNameLineEdit;
-QString DistpartDialog::getappNameFormatLineEditText() {
+// TQLineEdit* appNameLineEdit;
+TQString DistpartDialog::getappNameFormatLineEditText() {
return appNameLineEdit->text();
}
-void DistpartDialog::setappNameFormatLineEditText(QString text) {
+void DistpartDialog::setappNameFormatLineEditText(TQString text) {
appNameLineEdit->setText(text);
}
-// QLineEdit* summaryLineEdit;
-QString DistpartDialog::getsummaryLineEditText() {
+// TQLineEdit* summaryLineEdit;
+TQString DistpartDialog::getsummaryLineEditText() {
return summaryLineEdit->text();
}
-void DistpartDialog::setsummaryLineEditText(QString text) {
+void DistpartDialog::setsummaryLineEditText(TQString text) {
summaryLineEdit->setText(text);
}
-// QLineEdit* groupLineEdit;
-QString DistpartDialog::getgroupLineEditText() {
+// TQLineEdit* groupLineEdit;
+TQString DistpartDialog::getgroupLineEditText() {
return groupLineEdit->text();
}
-void DistpartDialog::setgroupLineEditText(QString text) {
+void DistpartDialog::setgroupLineEditText(TQString text) {
groupLineEdit->setText(text);
}
-// QLineEdit* releaseLineEdit;
-QString DistpartDialog::getreleaseLineEditText() {
+// TQLineEdit* releaseLineEdit;
+TQString DistpartDialog::getreleaseLineEditText() {
return releaseLineEdit->text();
}
-void DistpartDialog::setreleaseLineEditText(QString text) {
+void DistpartDialog::setreleaseLineEditText(TQString text) {
releaseLineEdit->setText(text);
}
-// QLineEdit* VersionLineEdit;
-QString DistpartDialog::getversionLineEditText() {
+// TQLineEdit* VersionLineEdit;
+TQString DistpartDialog::getversionLineEditText() {
return versionLineEdit->text();
}
-void DistpartDialog::setversionLineEditText(QString text) {
+void DistpartDialog::setversionLineEditText(TQString text) {
versionLineEdit->setText( text );
}
-// QLineEdit* VendorLineEdit;
-QString DistpartDialog::getvendorLineEditText() {
+// TQLineEdit* VendorLineEdit;
+TQString DistpartDialog::getvendorLineEditText() {
return vendorLineEdit->text();
}
-void DistpartDialog::setvendorLineEditText(QString text) {
+void DistpartDialog::setvendorLineEditText(TQString text) {
vendorLineEdit->setText(text);
}
-// QLineEdit* LicenseLineEdit;
-QString DistpartDialog::getlicenseLineEditText() {
+// TQLineEdit* LicenseLineEdit;
+TQString DistpartDialog::getlicenseLineEditText() {
return licenseLineEdit->text();
}
-void DistpartDialog::setlicenseLineEditText(QString text) {
+void DistpartDialog::setlicenseLineEditText(TQString text) {
licenseLineEdit->setText(text);
}
-// QLineEdit* uploadURLLineEdit;
-QString DistpartDialog::getuploadURLLineEditText() {
+// TQLineEdit* uploadURLLineEdit;
+TQString DistpartDialog::getuploadURLLineEditText() {
return uploadURLLineEdit->text();
}
-void DistpartDialog::setuploadURLLineEditText(QString text) {
+void DistpartDialog::setuploadURLLineEditText(TQString text) {
uploadURLLineEdit->setText(text);
}
-// QLineEdit* PackagerLineEdit;
-QString DistpartDialog::getpackagerLineEditText() {
+// TQLineEdit* PackagerLineEdit;
+TQString DistpartDialog::getpackagerLineEditText() {
return packagerLineEdit->text();
}
-void DistpartDialog::setpackagerLineEditText(QString text) {
+void DistpartDialog::setpackagerLineEditText(TQString text) {
packagerLineEdit->setText(text);
}
-// QComboBox* archComboBox;
-QString DistpartDialog::getarchComboBoxText() {
+// TQComboBox* archComboBox;
+TQString DistpartDialog::getarchComboBoxText() {
return archComboBox->currentText();
}
@@ -409,8 +409,8 @@ void DistpartDialog::setarchComboBoxItem(int item) {
archComboBox->setCurrentItem( item );
}
-// QListBox* uploadFileListBox;
-QString DistpartDialog::getuploadFileListBoxText() {
+// TQListBox* uploadFileListBox;
+TQString DistpartDialog::getuploadFileListBoxText() {
return uploadFileListBox->currentText();
}
@@ -422,8 +422,8 @@ void DistpartDialog::setuploadFileListBoxItem(int item) {
uploadFileListBox->setCurrentItem( item);
}
-// QListBox* srcDistFileListBox;
-QString DistpartDialog::getsrcDistFileListBoxText() {
+// TQListBox* srcDistFileListBox;
+TQString DistpartDialog::getsrcDistFileListBoxText() {
return srcDistFileListBox->currentText ();
}
@@ -435,33 +435,33 @@ void DistpartDialog::setsrcDistFileListBoxItem(int item) {
srcDistFileListBox->setCurrentItem( item );
}
-// QMultiLineEdit* projectDescriptionMultilineEdit;
-QString DistpartDialog::getprojectDescriptionMultilineEditText() {
+// TQMultiLineEdit* projectDescriptionMultilineEdit;
+TQString DistpartDialog::getprojectDescriptionMultilineEditText() {
return projectDescriptionMultilineEdit->text();
}
-void DistpartDialog::setprojectDescriptionMultilineEditText(QString text) {
+void DistpartDialog::setprojectDescriptionMultilineEditText(TQString text) {
projectDescriptionMultilineEdit->setText(text);
}
-QString DistpartDialog::getprojectChangelogMultilineEditText() {
+TQString DistpartDialog::getprojectChangelogMultilineEditText() {
return projectChangelogMultilineEdit->text();
}
-void DistpartDialog::setprojectChangelogMultilineEditText(QString text) {
+void DistpartDialog::setprojectChangelogMultilineEditText(TQString text) {
projectChangelogMultilineEdit->setText(text);
}
-QString DistpartDialog::getSourceName() {
- QString name = (getcustomProjectCheckBoxState()) ? getarchNameFormatLineEditText() : QString("%n-%v");
+TQString DistpartDialog::getSourceName() {
+ TQString name = (getcustomProjectCheckBoxState()) ? getarchNameFormatLineEditText() : TQString("%n-%v");
name += (getcustomProjectCheckBoxState() && getbzipCheckBoxState()) ? ".tar.bz2" : ".tar.gz";
- return name.replace(QRegExp("%n"),getappNameFormatLineEditText())
- .replace(QRegExp("%v"),getversionLineEditText())
- .replace(QRegExp("%d"),QDate::currentDate().toString("yyyyMMdd"));
+ return name.replace(TQRegExp("%n"),getappNameFormatLineEditText())
+ .replace(TQRegExp("%v"),getversionLineEditText())
+ .replace(TQRegExp("%d"),TQDate::currentDate().toString("yyyyMMdd"));
}
void DistpartDialog::loadSettings() {
- QDomDocument &dom = *m_part->projectDom();
+ TQDomDocument &dom = *m_part->projectDom();
srcDistFileListBox->insertStringList( m_part->project()->distFiles() );
@@ -499,7 +499,7 @@ void DistpartDialog::loadSettings() {
}
void DistpartDialog::storeSettings() {
- QDomDocument &dom = *m_part->projectDom();
+ TQDomDocument &dom = *m_part->projectDom();
// First Tab
DomUtil::writeBoolEntry(dom,"/dist/custom",getcustomProjectCheckBoxState());
@@ -584,14 +584,14 @@ void DistpartDialog::slotsrcPackagePushButtonPressed( )
void DistpartDialog::slotAddFileButtonPressed(){
- QStringList filenames = KFileDialog::getOpenFileNames();
+ TQStringList filenames = KFileDialog::getOpenFileNames();
for(uint count =0; count< filenames.size(); count++){
- QString base = m_part->project()->projectDirectory() +"/";
+ TQString base = m_part->project()->projectDirectory() +"/";
srcDistFileListBox->insertItem(filenames[count].remove(base));
}
}
-void DistpartDialog::slotRemoveFile(QListBoxItem *item){
+void DistpartDialog::slotRemoveFile(TQListBoxItem *item){
if ( KMessageBox::Yes == KMessageBox::warningYesNo( this, i18n("Remove %1").arg( item->text() ), i18n("Remove File") )){
for(uint count =0; count< srcDistFileListBox->numRows(); count++){
if ( item == srcDistFileListBox->item(count)){
diff --git a/parts/distpart/distpart_widget.h b/parts/distpart/distpart_widget.h
index 36d3f9ba..87e2c2fd 100644
--- a/parts/distpart/distpart_widget.h
+++ b/parts/distpart/distpart_widget.h
@@ -21,16 +21,16 @@
#define __DISTPART_WIDGET_H__
-#include <qwidget.h>
-#include <qstring.h>
+#include <tqwidget.h>
+#include <tqstring.h>
#include "distpart_ui.h"
#include <klistbox.h>
-#include <qcheckbox.h>
+#include <tqcheckbox.h>
#include <kpushbutton.h>
#include <klineedit.h>
#include <ktextedit.h>
-#include <qcombobox.h>
-#include <qprogressbar.h>
+#include <tqcombobox.h>
+#include <tqprogressbar.h>
class KDevProject;
class DistpartPart;
@@ -49,7 +49,7 @@ class DistpartDialog : public distpart_ui {
public:
- DistpartDialog(DistpartPart *part, QWidget *parent);
+ DistpartDialog(DistpartPart *part, TQWidget *parent);
~DistpartDialog();
signals:
@@ -72,37 +72,37 @@ signals:
public slots:
- // QPushButton* okayPushButton;
+ // TQPushButton* okayPushButton;
void slotokayPushButtonPressed();
- // QPushButton* cancelPushButton;
+ // TQPushButton* cancelPushButton;
void slotcancelPushButtonPressed();
- // QPushButton* help_PushButton;
+ // TQPushButton* help_PushButton;
// void slothelp_PushButtonPressed();
- // QPushButton* createSrcArchPushButton;
+ // TQPushButton* createSrcArchPushButton;
void slotcreateSrcArchPushButtonPressed();
- // QPushButton* resetSrcPushButton;
+ // TQPushButton* resetSrcPushButton;
void slotresetSrcPushButtonPressed();
- // QPushButton* genHTMLPushButton;
+ // TQPushButton* genHTMLPushButton;
void slotgenHTMLPushButtonPressed();
- // QPushButton* resetHTMLPushButton;
+ // TQPushButton* resetHTMLPushButton;
void slotresetHTMLPushButtonPressed();
- // QToolButton* uploadAddFileToolButton;
+ // TQToolButton* uploadAddFileToolButton;
void slotuploadAddFileToolButtonPressed();
- // QToolButton* uploadRemoveToolButton;
+ // TQToolButton* uploadRemoveToolButton;
void slotuploadRemoveToolButtonPressed();
- // QPushButton* uploadSubmitPushButton;
+ // TQPushButton* uploadSubmitPushButton;
void slotuploadSubmitPushButtonPressed();
- // QPushButton* uploadResetPushButton;
+ // TQPushButton* uploadResetPushButton;
void slotuploadResetPushButtonPressed();
// Connect Slots to the following widgets and add
// accessors and mutators
- // QCheckBox* customProjectCheckBox;
+ // TQCheckBox* customProjectCheckBox;
void slotcustomProjectCheckBoxChanged();
- // QCheckBox* uploadCustomCheckBox;
+ // TQCheckBox* uploadCustomCheckBox;
void slotuploadCustomCheckBoxChanged();
void slotbuildAllPushButtonPressed();
@@ -110,7 +110,7 @@ public slots:
void slotimportSPECPushButtonPressed();
void slotsrcPackagePushButtonPressed();
void slotAddFileButtonPressed();
- void slotRemoveFile(QListBoxItem *item);
+ void slotRemoveFile(TQListBoxItem *item);
public:
bool getcustomProjectCheckBoxState();
@@ -120,80 +120,80 @@ public:
// Add accessors and mutators for the following
- // QCheckBox* bzipCheckBox;
+ // TQCheckBox* bzipCheckBox;
bool getbzipCheckBoxState();
void setbzipCheckBoxState(bool state);
- // QCheckBox* appIconCheckBox;
+ // TQCheckBox* appIconCheckBox;
bool getappIconCheckBoxState();
void setappIconCheckBoxState(bool state);
- // QCheckBox* genHTMLCheckBox;
+ // TQCheckBox* genHTMLCheckBox;
bool getgenHTMLCheckBoxState();
void setgenHTMLCheckBoxState(bool state);
- // QCheckBox* useRPMInfoCheckBox;
+ // TQCheckBox* useRPMInfoCheckBox;
bool getuseRPMInfoCheckBoxState();
void setuseRPMInfoCheckBoxState(bool state);
- // QCheckBox* uploadAppsKDEcomCheckBox;
+ // TQCheckBox* uploadAppsKDEcomCheckBox;
bool getuploadAppsKDEcomCheckBoxState();
void setuploadAppsKDEcomCheckBoxState(bool state);
- // QCheckBox* uploadftpkdeorgCheckBox;
+ // TQCheckBox* uploadftpkdeorgCheckBox;
bool getuploadftpkdeorgCheckBoxState();
void setuploadftpkdeorgCheckBoxState(bool state);
- // QCheckBox* devPackageCheckBox;
+ // TQCheckBox* devPackageCheckBox;
bool getdevPackageCheckBoxState();
void setdevPackageCheckBoxState(bool state);
- // QCheckBox* docsPackageCheckBox;
+ // TQCheckBox* docsPackageCheckBox;
bool getdocsPackageCheckBoxState();
void setdocsPackageCheckBoxState(bool state);
- // QLineEdit* archNameFormatLineEdit;
- QString getarchNameFormatLineEditText();
- void setarchNameFormatLineEditText(QString text);
- // QLineEdit* appNameLineEdit;
- QString getappNameFormatLineEditText();
- void setappNameFormatLineEditText(QString text);
- // QLineEdit* summaryLineEdit;
- QString getsummaryLineEditText();
- void setsummaryLineEditText(QString text);
- // QLineEdit* groupLineEdit;
- QString getgroupLineEditText();
- void setgroupLineEditText(QString text);
- // QLineEdit* releaseLineEdit;
- QString getreleaseLineEditText();
- void setreleaseLineEditText(QString text);
- // QLineEdit* VersionLineEdit;
- QString getversionLineEditText();
- void setversionLineEditText(QString text);
- // QLineEdit* VendorLineEdit;
- QString getvendorLineEditText();
- void setvendorLineEditText(QString text);
- // QLineEdit* LicenseLineEdit;
- QString getlicenseLineEditText();
- void setlicenseLineEditText(QString text);
- // QLineEdit* uploadURLLineEdit;
- QString getuploadURLLineEditText();
- void setuploadURLLineEditText(QString text);
- // QLineEdit* PackagerLineEdit;
- QString getpackagerLineEditText();
- void setpackagerLineEditText(QString text);
- // QComboBox* archComboBox;
- QString getarchComboBoxText();
+ // TQLineEdit* archNameFormatLineEdit;
+ TQString getarchNameFormatLineEditText();
+ void setarchNameFormatLineEditText(TQString text);
+ // TQLineEdit* appNameLineEdit;
+ TQString getappNameFormatLineEditText();
+ void setappNameFormatLineEditText(TQString text);
+ // TQLineEdit* summaryLineEdit;
+ TQString getsummaryLineEditText();
+ void setsummaryLineEditText(TQString text);
+ // TQLineEdit* groupLineEdit;
+ TQString getgroupLineEditText();
+ void setgroupLineEditText(TQString text);
+ // TQLineEdit* releaseLineEdit;
+ TQString getreleaseLineEditText();
+ void setreleaseLineEditText(TQString text);
+ // TQLineEdit* VersionLineEdit;
+ TQString getversionLineEditText();
+ void setversionLineEditText(TQString text);
+ // TQLineEdit* VendorLineEdit;
+ TQString getvendorLineEditText();
+ void setvendorLineEditText(TQString text);
+ // TQLineEdit* LicenseLineEdit;
+ TQString getlicenseLineEditText();
+ void setlicenseLineEditText(TQString text);
+ // TQLineEdit* uploadURLLineEdit;
+ TQString getuploadURLLineEditText();
+ void setuploadURLLineEditText(TQString text);
+ // TQLineEdit* PackagerLineEdit;
+ TQString getpackagerLineEditText();
+ void setpackagerLineEditText(TQString text);
+ // TQComboBox* archComboBox;
+ TQString getarchComboBoxText();
int getarchComboBoxItem();
void setarchComboBoxItem(int item);
- // QListBox* uploadFileListBox;
- QString getuploadFileListBoxText();
+ // TQListBox* uploadFileListBox;
+ TQString getuploadFileListBoxText();
int getuploadFileListBoxItem();
void setuploadFileListBoxItem(int item);
- // QListBox* srcDistFileListBox;
- QString getsrcDistFileListBoxText();
+ // TQListBox* srcDistFileListBox;
+ TQString getsrcDistFileListBoxText();
int getsrcDistFileListBoxItem();
void setsrcDistFileListBoxItem(int item);
- // QMultiLineEdit* projectDescriptionMultilineEdit;
- QString getprojectDescriptionMultilineEditText();
- void setprojectDescriptionMultilineEditText(QString text);
+ // TQMultiLineEdit* projectDescriptionMultilineEdit;
+ TQString getprojectDescriptionMultilineEditText();
+ void setprojectDescriptionMultilineEditText(TQString text);
- QString getprojectChangelogMultilineEditText();
- void setprojectChangelogMultilineEditText(QString text);
+ TQString getprojectChangelogMultilineEditText();
+ void setprojectChangelogMultilineEditText(TQString text);
- QString getSourceName();
+ TQString getSourceName();
private:
void loadSettings();
@@ -203,7 +203,7 @@ private:
SpecSupport *m_spec;
DistpartPart *m_part;
- QString dir;
+ TQString dir;
};
diff --git a/parts/distpart/lsmsupport.cpp b/parts/distpart/lsmsupport.cpp
index b9a71e8b..5e3fcd89 100644
--- a/parts/distpart/lsmsupport.cpp
+++ b/parts/distpart/lsmsupport.cpp
@@ -26,7 +26,7 @@ LsmSupport::LsmSupport() : packageBase() {
LsmSupport::~LsmSupport() {
}
-QString LsmSupport::generatePackage( )
+TQString LsmSupport::generatePackage( )
{
return "";
}
diff --git a/parts/distpart/lsmsupport.h b/parts/distpart/lsmsupport.h
index 4d13bc8a..ce52194b 100644
--- a/parts/distpart/lsmsupport.h
+++ b/parts/distpart/lsmsupport.h
@@ -29,7 +29,7 @@ class LsmSupport : public packageBase
public:
LsmSupport();
virtual ~LsmSupport();
-QString generatePackage( );
+TQString generatePackage( );
};
#endif
diff --git a/parts/distpart/packagebase.cpp b/parts/distpart/packagebase.cpp
index 797c2613..f0c2db37 100644
--- a/parts/distpart/packagebase.cpp
+++ b/parts/distpart/packagebase.cpp
@@ -6,112 +6,112 @@ packageBase::packageBase() {
packageBase::~packageBase() {}
-QString packageBase::getAppName() {
+TQString packageBase::getAppName() {
return AppName;
}
-QString packageBase::getAppVersion() {
+TQString packageBase::getAppVersion() {
return AppVersion;
}
-QString packageBase::getAppRevision() {
+TQString packageBase::getAppRevision() {
return AppRevision;
}
-QString packageBase::getAppGroup() {
+TQString packageBase::getAppGroup() {
return AppGroup;
}
-QString packageBase::getAppPackager() {
+TQString packageBase::getAppPackager() {
return AppPackager;
}
-QString packageBase::getAppURL() {
+TQString packageBase::getAppURL() {
return AppURL;
}
-QString packageBase::getAppSummary() {
+TQString packageBase::getAppSummary() {
return AppSummary;
}
-QString packageBase::getAppVendor() {
+TQString packageBase::getAppVendor() {
return AppVendor;
}
-QString packageBase::getAppLicense() {
+TQString packageBase::getAppLicense() {
return AppLicense;
}
-QString packageBase::getAppArch() {
+TQString packageBase::getAppArch() {
return AppArch;
}
-QString packageBase::getAppDescription() {
+TQString packageBase::getAppDescription() {
return AppDescription;
}
-QString packageBase::getAppChangelog() {
+TQString packageBase::getAppChangelog() {
return AppChangelog;
}
-QString packageBase::getAppSource() {
+TQString packageBase::getAppSource() {
return AppSource;
}
-QStringList packageBase::getAppFileList() {
+TQStringList packageBase::getAppFileList() {
return AppFileList;
}
-void packageBase::setAppName(const QString& name) {
+void packageBase::setAppName(const TQString& name) {
AppName = name;
}
-void packageBase::setAppVersion(const QString& version){
+void packageBase::setAppVersion(const TQString& version){
AppVersion = version;
}
-void packageBase::setAppRevision(const QString& revision){
+void packageBase::setAppRevision(const TQString& revision){
AppRevision = revision;
}
-void packageBase::setAppGroup(const QString& group){
+void packageBase::setAppGroup(const TQString& group){
AppGroup = group;
}
-void packageBase::setAppPackager(const QString& packager){
+void packageBase::setAppPackager(const TQString& packager){
AppPackager = packager;
}
-void packageBase::setAppURL(const QString& url)
+void packageBase::setAppURL(const TQString& url)
{
AppURL = url;
}
-void packageBase::setAppSummary(const QString& summary){
+void packageBase::setAppSummary(const TQString& summary){
AppSummary = summary;
}
-void packageBase::setAppVendor(const QString& vendor){
+void packageBase::setAppVendor(const TQString& vendor){
AppVendor = vendor;
}
-void packageBase::setAppLicense(const QString& licence){
+void packageBase::setAppLicense(const TQString& licence){
AppLicense = licence;
}
-void packageBase::setAppArch(const QString& arch){
+void packageBase::setAppArch(const TQString& arch){
AppArch = arch;
}
-void packageBase::setAppDescription(const QString& description){
+void packageBase::setAppDescription(const TQString& description){
AppDescription = description;
}
-void packageBase::setAppChangelog(const QString& changelog){
+void packageBase::setAppChangelog(const TQString& changelog){
AppChangelog = changelog;
}
-void packageBase::setAppFileList( const QStringList & list )
+void packageBase::setAppFileList( const TQStringList & list )
{
AppFileList = list;
}
diff --git a/parts/distpart/packagebase.h b/parts/distpart/packagebase.h
index 95d7d813..b3ba172e 100644
--- a/parts/distpart/packagebase.h
+++ b/parts/distpart/packagebase.h
@@ -21,7 +21,7 @@
#define __PACKAGEBASE_H__
#include <kurl.h>
-#include <qstringlist.h>
+#include <tqstringlist.h>
class packageBase
{
@@ -31,54 +31,54 @@ public:
virtual ~packageBase();
// Generic accessors and mutators for child classes
- virtual QString generatePackage( ) = 0 ;
+ virtual TQString generatePackage( ) = 0 ;
//virtual bool loadFile(KURL theFile) = 0;
//virtual bool saveFile(KURL theFile) = 0;
- virtual QString getAppName();
- virtual QString getAppVersion();
- virtual QString getAppRevision();
- virtual QString getAppGroup();
- virtual QString getAppPackager();
- virtual QString getAppURL();
- virtual QString getAppSummary();
- virtual QString getAppVendor();
- virtual QString getAppLicense();
- virtual QString getAppArch();
- virtual QString getAppDescription();
- virtual QString getAppChangelog();
- virtual QString getAppSource();
- virtual QStringList getAppFileList();
+ virtual TQString getAppName();
+ virtual TQString getAppVersion();
+ virtual TQString getAppRevision();
+ virtual TQString getAppGroup();
+ virtual TQString getAppPackager();
+ virtual TQString getAppURL();
+ virtual TQString getAppSummary();
+ virtual TQString getAppVendor();
+ virtual TQString getAppLicense();
+ virtual TQString getAppArch();
+ virtual TQString getAppDescription();
+ virtual TQString getAppChangelog();
+ virtual TQString getAppSource();
+ virtual TQStringList getAppFileList();
- virtual void setAppName(const QString&);
- virtual void setAppVersion(const QString&);
- virtual void setAppRevision(const QString&);
- virtual void setAppGroup(const QString&);
- virtual void setAppPackager(const QString&);
- virtual void setAppURL(const QString&);
- virtual void setAppSummary(const QString&);
- virtual void setAppVendor(const QString&);
- virtual void setAppLicense(const QString&);
- virtual void setAppArch(const QString&);
- virtual void setAppDescription(const QString&);
- virtual void setAppChangelog(const QString&);
- virtual void setAppFileList(const QStringList &list);
+ virtual void setAppName(const TQString&);
+ virtual void setAppVersion(const TQString&);
+ virtual void setAppRevision(const TQString&);
+ virtual void setAppGroup(const TQString&);
+ virtual void setAppPackager(const TQString&);
+ virtual void setAppURL(const TQString&);
+ virtual void setAppSummary(const TQString&);
+ virtual void setAppVendor(const TQString&);
+ virtual void setAppLicense(const TQString&);
+ virtual void setAppArch(const TQString&);
+ virtual void setAppDescription(const TQString&);
+ virtual void setAppChangelog(const TQString&);
+ virtual void setAppFileList(const TQStringList &list);
private:
- QString AppName;
- QString AppVersion;
- QString AppRevision;
- QString AppGroup;
- QString AppPackager;
- QString AppURL;
- QString AppSummary;
- QString AppVendor;
- QString AppLicense;
- QString AppArch;
- QString AppDescription;
- QString AppChangelog;
- QString AppSource;
- QStringList AppFileList;
+ TQString AppName;
+ TQString AppVersion;
+ TQString AppRevision;
+ TQString AppGroup;
+ TQString AppPackager;
+ TQString AppURL;
+ TQString AppSummary;
+ TQString AppVendor;
+ TQString AppLicense;
+ TQString AppArch;
+ TQString AppDescription;
+ TQString AppChangelog;
+ TQString AppSource;
+ TQStringList AppFileList;
};
#endif
diff --git a/parts/distpart/specsupport.cpp b/parts/distpart/specsupport.cpp
index e3ca8a65..ab4d684f 100644
--- a/parts/distpart/specsupport.cpp
+++ b/parts/distpart/specsupport.cpp
@@ -27,25 +27,25 @@
#include <kfiledialog.h>
#include <klocale.h>
#include <kprocess.h>
-#include <qfile.h>
-#include <qdir.h>
-#include <qerrormessage.h>
-#include <qregexp.h>
-#include <qpushbutton.h>
-//#include <qvbox.h>
-#include <qgroupbox.h>
-#include <qtabwidget.h>
-#include <qmessagebox.h>
+#include <tqfile.h>
+#include <tqdir.h>
+#include <tqerrormessage.h>
+#include <tqregexp.h>
+#include <tqpushbutton.h>
+//#include <tqvbox.h>
+#include <tqgroupbox.h>
+#include <tqtabwidget.h>
+#include <tqmessagebox.h>
/// \FIXME This is at least the fifth place in the kdevelop code something like this exists
-QString QRegExp_escape(const QString& str )
+TQString QRegExp_escape(const TQString& str )
{
#if QT_VERSION >= 0x030100
- return QRegExp::escape(str);
+ return TQRegExp::escape(str);
#else
// this block is copyrighted by Trolltech AS (GPL)
static const char meta[] = "$()*+.?[\\]^{|}";
- QString quoted = str;
+ TQString quoted = str;
int i = 0;
while ( i < (int) quoted.length() ) {
@@ -60,21 +60,21 @@ QString QRegExp_escape(const QString& str )
SpecSupport::SpecSupport(DistpartPart *part) : packageBase(), m_part(part) {
dir = "";
-// srcPackagePushButton = new QPushButton(i18n("Src Package"),area());
-// buildAllPushButton = new QPushButton(i18n("Src/Binary Packages"),area());
-// exportSPECPushButton = new QPushButton(i18n("Export SPEC File"),area());
-// importSPECPushButton = new QPushButton(i18n("Import SPEC File"),area());
+// srcPackagePushButton = new TQPushButton(i18n("Src Package"),area());
+// buildAllPushButton = new TQPushButton(i18n("Src/Binary Packages"),area());
+// exportSPECPushButton = new TQPushButton(i18n("Export SPEC File"),area());
+// importSPECPushButton = new TQPushButton(i18n("Import SPEC File"),area());
//
//
//
-// connect(buildAllPushButton, SIGNAL(clicked()),
-// this, SLOT(slotbuildAllPushButtonPressed()));
-// connect(exportSPECPushButton, SIGNAL(clicked()),
-// this, SLOT(slotexportSPECPushButtonPressed()));
-// connect(importSPECPushButton, SIGNAL(clicked()),
-// this, SLOT(slotimportSPECPushButtonPressed()));
-// connect(srcPackagePushButton, SIGNAL(clicked()),
-// this, SLOT(slotsrcPackagePushButtonPressed()));
+// connect(buildAllPushButton, TQT_SIGNAL(clicked()),
+// this, TQT_SLOT(slotbuildAllPushButtonPressed()));
+// connect(exportSPECPushButton, TQT_SIGNAL(clicked()),
+// this, TQT_SLOT(slotexportSPECPushButtonPressed()));
+// connect(importSPECPushButton, TQT_SIGNAL(clicked()),
+// this, TQT_SLOT(slotimportSPECPushButtonPressed()));
+// connect(srcPackagePushButton, TQT_SIGNAL(clicked()),
+// this, TQT_SLOT(slotsrcPackagePushButtonPressed()));
parseDotRpmmacros();
}
@@ -82,14 +82,14 @@ SpecSupport::SpecSupport(DistpartPart *part) : packageBase(), m_part(part) {
SpecSupport::~SpecSupport() {
}
-// QPushButton* buildAllPushButton;
+// TQPushButton* buildAllPushButton;
void SpecSupport::slotbuildAllPushButtonPressed() {
- QMap<QString,QString>::Iterator it;
- QFile file1(dir + "/" + getAppSource());
- QFile file2(*(map.find("_sourcedir")) + "/" + getAppSource());
+ TQMap<TQString,TQString>::Iterator it;
+ TQFile file1(dir + "/" + getAppSource());
+ TQFile file2(*(map.find("_sourcedir")) + "/" + getAppSource());
if (!file2.exists()) {
if (!file1.exists()) {
- QMessageBox::critical(0 ,i18n("Error"),i18n("You need to create a source archive first."));
+ TQMessageBox::critical(0 ,i18n("Error"),i18n("You need to create a source archive first."));
return;
}
else
@@ -102,15 +102,15 @@ void SpecSupport::slotbuildAllPushButtonPressed() {
" && rpmbuild -ba " + m_part->project()->projectName() + ".spec");
}
-// QPushButton* exportSPECPushButton;
+// TQPushButton* exportSPECPushButton;
void SpecSupport::slotexportSPECPushButtonPressed() {
- QMap<QString,QString>::Iterator it;
- QString specname = ((it = map.find("_specdir")) != map.end()) ? (*it) : (m_part->project()->projectDirectory());
+ TQMap<TQString,TQString>::Iterator it;
+ TQString specname = ((it = map.find("_specdir")) != map.end()) ? (*it) : (m_part->project()->projectDirectory());
specname += ("/" + m_part->project()->projectName() + ".spec");
- QFile file(specname);
+ TQFile file(specname);
if(file.open(IO_WriteOnly)) {
- QTextStream stream(&file);
+ TQTextStream stream(&file);
stream << generatePackage();
file.close();
} else {
@@ -118,26 +118,26 @@ void SpecSupport::slotexportSPECPushButtonPressed() {
}
}
-QString SpecSupport::getInfo(QString s, QString motif) {
- QRegExp re(motif + "[ \t]*([^ \t].*[^ \t])[ \t]*");
+TQString SpecSupport::getInfo(TQString s, TQString motif) {
+ TQRegExp re(motif + "[ \t]*([^ \t].*[^ \t])[ \t]*");
if (re.exactMatch(s))
return re.cap(1);
- return QString::null;
+ return TQString::null;
}
-// QPushButton* importSPECPushButton;
+// TQPushButton* importSPECPushButton;
void SpecSupport::slotimportSPECPushButtonPressed() {
- QString fileName = KFileDialog::getOpenFileName(dir,"*.spec");
+ TQString fileName = KFileDialog::getOpenFileName(dir,"*.spec");
if( fileName.isEmpty())
return;
- QFile file(fileName);
+ TQFile file(fileName);
if(file.open(IO_ReadOnly)) {
- QTextStream stream(&file);
+ TQTextStream stream(&file);
while (!stream.atEnd()) {
- QString s = stream.readLine();
- QString info;
+ TQString s = stream.readLine();
+ TQString info;
if (!(info = getInfo(s,"Name:")).isEmpty())
setAppName(info);
else if (!(info = getInfo(s,"Version:")).isEmpty())
@@ -155,18 +155,18 @@ void SpecSupport::slotimportSPECPushButtonPressed() {
else if (!(info = getInfo(s,"Packager:")).isEmpty())
setAppPackager(info);
else if (s.startsWith("%description")) {
- QString desc;
+ TQString desc;
while (!stream.atEnd()) {
- QString str = stream.readLine();
+ TQString str = stream.readLine();
if (str.startsWith("%")) break;
else desc += str + "\n";
}
setAppDescription(desc);
}
else if (s.startsWith("%changelog")) {
- QString change;
+ TQString change;
while (!stream.atEnd()) {
- QString str = stream.readLine();
+ TQString str = stream.readLine();
if (str.startsWith("%")) break;
else change += str + "\n";
}
@@ -177,18 +177,18 @@ void SpecSupport::slotimportSPECPushButtonPressed() {
}
void SpecSupport::slotAddFileButtonPressed(){
-QString filename = KFileDialog::getOpenFileName ();
+TQString filename = KFileDialog::getOpenFileName ();
}
-// QPushButton* srcPackagePushButton;
+// TQPushButton* srcPackagePushButton;
void SpecSupport::slotsrcPackagePushButtonPressed() {
- QMap<QString,QString>::Iterator it;
+ TQMap<TQString,TQString>::Iterator it;
- QFile file1(dir + "/" + getAppSource());
- QFile file2(*(map.find("_sourcedir")) + "/" + getAppSource());
+ TQFile file1(dir + "/" + getAppSource());
+ TQFile file2(*(map.find("_sourcedir")) + "/" + getAppSource());
if (!file2.exists()) {
if (!file1.exists()) {
- QMessageBox::critical(0,i18n("Error"),i18n("You need to create a source archive first."));
+ TQMessageBox::critical(0,i18n("Error"),i18n("You need to create a source archive first."));
return;
}
else
@@ -202,15 +202,15 @@ void SpecSupport::slotsrcPackagePushButtonPressed() {
}
void SpecSupport::parseDotRpmmacros() {
- QFile dotfile(QDir::homeDirPath() + "/.rpmmacros");
+ TQFile dotfile(TQDir::homeDirPath() + "/.rpmmacros");
if (!dotfile.open(IO_ReadOnly)) {
-// QErrorMessage * msg = new QErrorMessage(this);
+// TQErrorMessage * msg = new TQErrorMessage(this);
// msg->message("It seems you don't have a ~/.rpmmacros\nYou may experience problems building packages.\n");
// msg->exec();
return;
}
- QTextStream stream(&dotfile);
+ TQTextStream stream(&dotfile);
// Perhaps will it appear as a necessity to parse the global rpm config file?
@@ -219,14 +219,14 @@ void SpecSupport::parseDotRpmmacros() {
// .rpmmacros parsing :
while (!stream.atEnd()) {
- QString s = stream.readLine();
- QRegExp re("%([^ \t]*)[ \t][ \t]*([^\t]*)$");
+ TQString s = stream.readLine();
+ TQRegExp re("%([^ \t]*)[ \t][ \t]*([^\t]*)$");
if(re.exactMatch(s)) {
- QRegExp subst("%\\{([^%]*)\\}");
- QString value = re.cap(2).stripWhiteSpace();
+ TQRegExp subst("%\\{([^%]*)\\}");
+ TQString value = re.cap(2).stripWhiteSpace();
while(subst.search(value) != -1) {
- value.replace(QRegExp("%\\{"+ QRegExp_escape( subst.cap(1) ) +"\\}"),*map.find(subst.cap(1)));
+ value.replace(TQRegExp("%\\{"+ QRegExp_escape( subst.cap(1) ) +"\\}"),*map.find(subst.cap(1)));
}
map.insert(re.cap(1),value);
}
@@ -243,18 +243,18 @@ void SpecSupport::parseDotRpmmacros() {
createRpmDirectoryFromMacro("_srcrpmdir");
}
-bool SpecSupport::createRpmDirectoryFromMacro(const QString & name) {
- QMap<QString,QString>::Iterator it;
+bool SpecSupport::createRpmDirectoryFromMacro(const TQString & name) {
+ TQMap<TQString,TQString>::Iterator it;
if((it = map.find(name)) != map.end()) {
- QDir dir(*it);
+ TQDir dir(*it);
if (!dir.exists()) return dir.mkdir(*it);
}
return false;
}
-QString SpecSupport::generatePackage( )
+TQString SpecSupport::generatePackage( )
{
- QString spec;
+ TQString spec;
spec += "# This spec file was generated by KDevelop \n";
spec += "# Please report any problem to KDevelop Team <kdevelop-devel@kdevelop.org> \n";
spec += "# Thanks to Matthias Saou for his explanations on http://freshrpms.net/docs/fight.html\n\n";
diff --git a/parts/distpart/specsupport.h b/parts/distpart/specsupport.h
index 3689771c..aeaca906 100644
--- a/parts/distpart/specsupport.h
+++ b/parts/distpart/specsupport.h
@@ -20,8 +20,8 @@
#ifndef __SPECSUPPORT_H__
#define __SPECSUPPORT_H__
-#include <qstring.h>
-#include <qmap.h>
+#include <tqstring.h>
+#include <tqmap.h>
#include "packagebase.h"
#include "distpart_part.h"
#include "distpart_widget.h"
@@ -33,7 +33,7 @@ public:
~SpecSupport();
public:
- QString generatePackage();
+ TQString generatePackage();
void slotbuildAllPushButtonPressed();
void slotexportSPECPushButtonPressed();
void slotimportSPECPushButtonPressed();
@@ -42,13 +42,13 @@ public:
private:
void parseDotRpmmacros();
- bool createRpmDirectoryFromMacro(const QString & name);
+ bool createRpmDirectoryFromMacro(const TQString & name);
- QString getInfo(QString s, QString motif);
+ TQString getInfo(TQString s, TQString motif);
- QString dir;
+ TQString dir;
DistpartPart *m_part;
- QMap<QString,QString> map;
+ TQMap<TQString,TQString> map;
};
#endif
diff --git a/parts/documentation/KDevDocumentationIface.cpp b/parts/documentation/KDevDocumentationIface.cpp
index 2d64f193..329b8474 100644
--- a/parts/documentation/KDevDocumentationIface.cpp
+++ b/parts/documentation/KDevDocumentationIface.cpp
@@ -22,7 +22,7 @@
#include "documentation_part.h"
KDevDocumentationIface::KDevDocumentationIface(DocumentationPart *part)
- :QObject(part), DCOPObject("KDevDocumentation"), m_part(part)
+ :TQObject(part), DCOPObject("KDevDocumentation"), m_part(part)
{
}
@@ -30,17 +30,17 @@ KDevDocumentationIface::~KDevDocumentationIface()
{
}
-void KDevDocumentationIface::lookupInIndex(QString term)
+void KDevDocumentationIface::lookupInIndex(TQString term)
{
m_part->lookInDocumentationIndex(term);
}
-void KDevDocumentationIface::findInFinder(QString term)
+void KDevDocumentationIface::findInFinder(TQString term)
{
m_part->findInDocumentation(term);
}
-void KDevDocumentationIface::searchInDocumentation(QString term)
+void KDevDocumentationIface::searchInDocumentation(TQString term)
{
m_part->searchInDocumentation(term);
}
@@ -55,12 +55,12 @@ void KDevDocumentationIface::searchInDocumentation()
m_part->searchInDocumentation();
}
-void KDevDocumentationIface::manPage(QString term)
+void KDevDocumentationIface::manPage(TQString term)
{
m_part->manPage(term);
}
-void KDevDocumentationIface::infoPage(QString term)
+void KDevDocumentationIface::infoPage(TQString term)
{
m_part->infoPage(term);
}
diff --git a/parts/documentation/KDevDocumentationIface.h b/parts/documentation/KDevDocumentationIface.h
index 35cd17fb..e398e89d 100644
--- a/parts/documentation/KDevDocumentationIface.h
+++ b/parts/documentation/KDevDocumentationIface.h
@@ -20,12 +20,12 @@
#ifndef KDEVDOCUMENTATIONIFACE_H
#define KDEVDOCUMENTATIONIFACE_H
-#include <qobject.h>
+#include <tqobject.h>
#include <dcopobject.h>
class DocumentationPart;
-class KDevDocumentationIface : public QObject, public DCOPObject {
+class KDevDocumentationIface : public TQObject, public DCOPObject {
Q_OBJECT
K_DCOP
public:
@@ -33,11 +33,11 @@ public:
~KDevDocumentationIface();
k_dcop:
- void lookupInIndex(QString term);
- void findInFinder(QString term);
- void searchInDocumentation(QString term);
- void manPage(QString term);
- void infoPage(QString term);
+ void lookupInIndex(TQString term);
+ void findInFinder(TQString term);
+ void searchInDocumentation(TQString term);
+ void manPage(TQString term);
+ void infoPage(TQString term);
void lookupInIndex();
void findInFinder();
diff --git a/parts/documentation/addcatalogdlg.cpp b/parts/documentation/addcatalogdlg.cpp
index 867f6f6b..21913089 100644
--- a/parts/documentation/addcatalogdlg.cpp
+++ b/parts/documentation/addcatalogdlg.cpp
@@ -20,8 +20,8 @@
#include "addcatalogdlg.h"
-#include <qlabel.h>
-#include <qcombobox.h>
+#include <tqlabel.h>
+#include <tqcombobox.h>
#include <klineedit.h>
#include <kurlrequester.h>
@@ -31,23 +31,23 @@
#include "docutils.h"
#include "kdevdocumentationplugin.h"
-AddCatalogDlg::AddCatalogDlg( QValueList<DocumentationPlugin*> const & plugins,
- QWidget* parent, const char* name, bool modal, WFlags fl)
+AddCatalogDlg::AddCatalogDlg( TQValueList<DocumentationPlugin*> const & plugins,
+ TQWidget* parent, const char* name, bool modal, WFlags fl)
:AddCatalogDlgBase(parent,name, modal,fl), m_plugins( plugins )
{
- for (QValueList<DocumentationPlugin*>::const_iterator it = m_plugins.constBegin(); it != m_plugins.constEnd(); ++it)
+ for (TQValueList<DocumentationPlugin*>::const_iterator it = m_plugins.constBegin(); it != m_plugins.constEnd(); ++it)
{
docTypeCombo->insertItem( (*it)->pluginName() );
}
- docTypeChanged( QString() );
+ docTypeChanged( TQString() );
}
AddCatalogDlg::~AddCatalogDlg()
{
}
-void AddCatalogDlg::locationURLChanged(const QString &text)
+void AddCatalogDlg::locationURLChanged(const TQString &text)
{
DocumentationPlugin * plugin = this->plugin();
if ( !plugin ) return;
@@ -57,32 +57,32 @@ void AddCatalogDlg::locationURLChanged(const QString &text)
void AddCatalogDlg::accept()
{
- QDialog::accept();
+ TQDialog::accept();
}
-QString AddCatalogDlg::title() const
+TQString AddCatalogDlg::title() const
{
return titleEdit->text();
}
-QString AddCatalogDlg::url() const
+TQString AddCatalogDlg::url() const
{
return DocUtils::envURL(locationURL);
}
-void AddCatalogDlg::setTitle(const QString &title)
+void AddCatalogDlg::setTitle(const TQString &title)
{
titleEdit->setText(title);
}
-void AddCatalogDlg::setURL(const QString &url)
+void AddCatalogDlg::setURL(const TQString &url)
{
locationURL->setURL(url);
}
DocumentationPlugin * AddCatalogDlg::plugin( )
{
- for (QValueList<DocumentationPlugin*>::const_iterator it = m_plugins.constBegin(); it != m_plugins.constEnd(); ++it)
+ for (TQValueList<DocumentationPlugin*>::const_iterator it = m_plugins.constBegin(); it != m_plugins.constEnd(); ++it)
{
if ( docTypeCombo->currentText() == (*it)->pluginName() )
{
@@ -92,7 +92,7 @@ DocumentationPlugin * AddCatalogDlg::plugin( )
return 0;
}
-void AddCatalogDlg::docTypeChanged( const QString & )
+void AddCatalogDlg::docTypeChanged( const TQString & )
{
kdDebug() << k_funcinfo << endl;
diff --git a/parts/documentation/addcatalogdlg.h b/parts/documentation/addcatalogdlg.h
index 4599dc8d..0a437294 100644
--- a/parts/documentation/addcatalogdlg.h
+++ b/parts/documentation/addcatalogdlg.h
@@ -21,7 +21,7 @@
#ifndef ADDCATALOGDLG_H
#define ADDCATALOGDLG_H
-#include <qvaluelist.h>
+#include <tqvaluelist.h>
#include "addcatalogdlgbase.h"
class DocumentationPlugin;
@@ -30,24 +30,24 @@ class AddCatalogDlg: public AddCatalogDlgBase
{
Q_OBJECT
public:
- AddCatalogDlg( QValueList<DocumentationPlugin*> const & plugins, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
+ AddCatalogDlg( TQValueList<DocumentationPlugin*> const & plugins, TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~AddCatalogDlg();
- QString title() const;
- void setTitle(const QString &title);
- QString url() const;
- void setURL(const QString &url);
+ TQString title() const;
+ void setTitle(const TQString &title);
+ TQString url() const;
+ void setURL(const TQString &url);
DocumentationPlugin * plugin();
public slots:
- virtual void locationURLChanged(const QString &text);
- virtual void docTypeChanged( const QString & );
+ virtual void locationURLChanged(const TQString &text);
+ virtual void docTypeChanged( const TQString & );
protected slots:
virtual void accept();
private:
- QValueList<DocumentationPlugin*> const & m_plugins;
+ TQValueList<DocumentationPlugin*> const & m_plugins;
};
#endif
diff --git a/parts/documentation/bookmarkview.cpp b/parts/documentation/bookmarkview.cpp
index 742c300a..ff2bbece 100644
--- a/parts/documentation/bookmarkview.cpp
+++ b/parts/documentation/bookmarkview.cpp
@@ -19,9 +19,9 @@
***************************************************************************/
#include "bookmarkview.h"
-#include <qlayout.h>
-#include <qheader.h>
-#include <qpoint.h>
+#include <tqlayout.h>
+#include <tqheader.h>
+#include <tqpoint.h>
#include <klineedit.h>
#include <kstandarddirs.h>
@@ -54,21 +54,21 @@ DocBookmarkOwner::DocBookmarkOwner(DocumentationPart *part)
{
}
-void DocBookmarkOwner::openBookmarkURL(const QString &_url)
+void DocBookmarkOwner::openBookmarkURL(const TQString &_url)
{
m_part->partController()->showDocument(KURL(_url));
}
-QString DocBookmarkOwner::currentURL() const
+TQString DocBookmarkOwner::currentURL() const
{
KParts::ReadOnlyPart *activePart = dynamic_cast<KParts::ReadOnlyPart*>(m_part->partController()->activePart());
if (activePart)
return activePart->url().url();
else
- return QString::null;
+ return TQString::null;
}
-QString DocBookmarkOwner::currentTitle() const
+TQString DocBookmarkOwner::currentTitle() const
{
KParts::ReadOnlyPart *activePart = dynamic_cast<KParts::ReadOnlyPart*>(m_part->partController()->activePart());
if (activePart)
@@ -79,20 +79,20 @@ QString DocBookmarkOwner::currentTitle() const
return activePart->url().prettyURL();
}
else
- return QString::null;
+ return TQString::null;
}
class DocBookmarkItem: public DocumentationItem {
public:
- DocBookmarkItem(Type type, KListView *parent, const QString &name)
+ DocBookmarkItem(Type type, KListView *parent, const TQString &name)
:DocumentationItem(type, parent, name)
{
}
- DocBookmarkItem(Type type, KListView *parent, DocumentationItem *after, const QString &name)
+ DocBookmarkItem(Type type, KListView *parent, DocumentationItem *after, const TQString &name)
:DocumentationItem(type, parent, after, name)
{
}
- DocBookmarkItem(Type type, DocumentationItem *parent, const QString &name)
+ DocBookmarkItem(Type type, DocumentationItem *parent, const TQString &name)
:DocumentationItem(type, parent, name)
{
}
@@ -108,41 +108,41 @@ private:
//class BookmarkView
BookmarkView::BookmarkView(DocumentationWidget *parent, const char *name)
- :QWidget(parent, name), m_widget(parent)
+ :TQWidget(parent, name), m_widget(parent)
{
m_bmManager = new DocBookmarkManager(m_widget->part());
m_bmOwner = new DocBookmarkOwner(m_widget->part());
- QVBoxLayout *l = new QVBoxLayout(this, 0, KDialog::spacingHint());
+ TQVBoxLayout *l = new TQVBoxLayout(this, 0, KDialog::spacingHint());
m_view = new KListView(this);
m_view->addColumn(i18n("Title"));
m_view->setSorting(-1);
m_view->header()->hide();
- m_view->setResizeMode(QListView::AllColumns);
+ m_view->setResizeMode(TQListView::AllColumns);
m_view->setAllColumnsShowFocus( true );
l->addWidget(m_view);
- QHBoxLayout *l2 = new QHBoxLayout(l, KDialog::spacingHint());
+ TQHBoxLayout *l2 = new TQHBoxLayout(l, KDialog::spacingHint());
m_addButton = new KPushButton(i18n("Add"), this);
m_editButton = new KPushButton(i18n("Edit..."), this);
m_removeButton = new KPushButton(i18n("Remove"), this);
l2->addWidget(m_addButton);
l2->addWidget(m_editButton);
l2->addWidget(m_removeButton);
- l2->addItem(new QSpacerItem(1, 1, QSizePolicy::Expanding, QSizePolicy::Fixed));
+ l2->addItem(new TQSpacerItem(1, 1, TQSizePolicy::Expanding, TQSizePolicy::Fixed));
l->addSpacing(2);
showBookmarks();
- connect(m_view, SIGNAL(executed(QListViewItem*, const QPoint&, int )),
- this, SLOT(itemExecuted(QListViewItem*, const QPoint&, int )));
- connect(m_addButton, SIGNAL(pressed()), this, SLOT(addBookmark()));
- connect(m_editButton, SIGNAL(clicked()), this, SLOT(editBookmark()));
- connect(m_removeButton, SIGNAL(clicked()), this, SLOT(removeBookmark()));
+ connect(m_view, TQT_SIGNAL(executed(TQListViewItem*, const TQPoint&, int )),
+ this, TQT_SLOT(itemExecuted(TQListViewItem*, const TQPoint&, int )));
+ connect(m_addButton, TQT_SIGNAL(pressed()), this, TQT_SLOT(addBookmark()));
+ connect(m_editButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(editBookmark()));
+ connect(m_removeButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(removeBookmark()));
- connect(m_widget->part(), SIGNAL(bookmarkLocation(const QString&, const KURL& )),
- this, SLOT(addBookmark(const QString&, const KURL& )));
- connect(m_view, SIGNAL(mouseButtonPressed(int, QListViewItem*, const QPoint&, int )),
- this, SLOT(itemMouseButtonPressed(int, QListViewItem*, const QPoint&, int )));
+ connect(m_widget->part(), TQT_SIGNAL(bookmarkLocation(const TQString&, const KURL& )),
+ this, TQT_SLOT(addBookmark(const TQString&, const KURL& )));
+ connect(m_view, TQT_SIGNAL(mouseButtonPressed(int, TQListViewItem*, const TQPoint&, int )),
+ this, TQT_SLOT(itemMouseButtonPressed(int, TQListViewItem*, const TQPoint&, int )));
}
BookmarkView::~BookmarkView()
@@ -166,7 +166,7 @@ void BookmarkView::showBookmarks()
}
}
-void BookmarkView::itemExecuted(QListViewItem *item, const QPoint &// p
+void BookmarkView::itemExecuted(TQListViewItem *item, const TQPoint &// p
, int // col
)
{
@@ -212,8 +212,8 @@ void BookmarkView::editBookmark()
void BookmarkView::addBookmark()
{
- QString title = m_bmOwner->currentTitle();
- QString url = m_bmOwner->currentURL();
+ TQString title = m_bmOwner->currentTitle();
+ TQString url = m_bmOwner->currentURL();
KPopupMenu menu;
bool useMenu = false;
@@ -227,7 +227,7 @@ void BookmarkView::addBookmark()
if (useMenu)
{
m_addButton->setDown(true);
- mode = menu.exec(mapToGlobal(QPoint(m_addButton->x(), m_addButton->y()+m_addButton->height())));
+ mode = menu.exec(mapToGlobal(TQPoint(m_addButton->x(), m_addButton->y()+m_addButton->height())));
m_addButton->setDown(false);
}
@@ -249,7 +249,7 @@ void BookmarkView::addBookmark()
}
}
-void BookmarkView::addBookmark(const QString &title, const KURL &url)
+void BookmarkView::addBookmark(const TQString &title, const KURL &url)
{
KBookmark bm = m_bmManager->root().addBookmark(m_bmManager, title, url);
m_bmManager->save();
@@ -265,7 +265,7 @@ void BookmarkView::addBookmark(const QString &title, const KURL &url)
item->setBookmark(bm);
}
-void BookmarkView::itemMouseButtonPressed(int button, QListViewItem *item, const QPoint &pos, int // c
+void BookmarkView::itemMouseButtonPressed(int button, TQListViewItem *item, const TQPoint &pos, int // c
)
{
if ((button != Qt::RightButton) || (!item))
@@ -277,7 +277,7 @@ void BookmarkView::itemMouseButtonPressed(int button, QListViewItem *item, const
DocUtils::docItemPopup(m_widget->part(), docItem, pos, false, true);
}
-void BookmarkView::focusInEvent(QFocusEvent */*e*/)
+void BookmarkView::focusInEvent(TQFocusEvent */*e*/)
{
m_view->setFocus();
}
diff --git a/parts/documentation/bookmarkview.h b/parts/documentation/bookmarkview.h
index 82bcaf4b..aaae4a29 100644
--- a/parts/documentation/bookmarkview.h
+++ b/parts/documentation/bookmarkview.h
@@ -20,7 +20,7 @@
#ifndef BOOKMARKVIEW_H
#define BOOKMARKVIEW_H
-#include <qwidget.h>
+#include <tqwidget.h>
#include <kbookmarkmanager.h>
@@ -39,9 +39,9 @@ class DocBookmarkOwner: public KBookmarkOwner {
public:
DocBookmarkOwner(DocumentationPart *part);
- virtual void openBookmarkURL(const QString &_url);
- virtual QString currentTitle() const;
- virtual QString currentURL() const;
+ virtual void openBookmarkURL(const TQString &_url);
+ virtual TQString currentTitle() const;
+ virtual TQString currentURL() const;
private:
DocumentationPart *m_part;
@@ -55,18 +55,18 @@ public:
~BookmarkView();
public slots:
- void addBookmark(const QString &title, const KURL &url);
+ void addBookmark(const TQString &title, const KURL &url);
protected:
void showBookmarks();
- virtual void focusInEvent(QFocusEvent *e);
+ virtual void focusInEvent(TQFocusEvent *e);
protected slots:
- void itemExecuted(QListViewItem *item, const QPoint &p, int col);
+ void itemExecuted(TQListViewItem *item, const TQPoint &p, int col);
void addBookmark();
void editBookmark();
void removeBookmark();
- void itemMouseButtonPressed(int button, QListViewItem *item, const QPoint &pos, int c);
+ void itemMouseButtonPressed(int button, TQListViewItem *item, const TQPoint &pos, int c);
private:
DocumentationWidget *m_widget;
diff --git a/parts/documentation/contentsview.cpp b/parts/documentation/contentsview.cpp
index b2725e1c..2581f5a0 100644
--- a/parts/documentation/contentsview.cpp
+++ b/parts/documentation/contentsview.cpp
@@ -19,8 +19,8 @@
***************************************************************************/
#include "contentsview.h"
-#include <qheader.h>
-#include <qlayout.h>
+#include <tqheader.h>
+#include <tqlayout.h>
#include <kdebug.h>
#include <klistview.h>
@@ -34,23 +34,23 @@
#include "docutils.h"
ContentsView::ContentsView(DocumentationWidget *parent, const char *name)
- :QWidget(parent, name), m_widget(parent)
+ :TQWidget(parent, name), m_widget(parent)
{
- QVBoxLayout *cl = new QVBoxLayout(this, 0, 0);
+ TQVBoxLayout *cl = new TQVBoxLayout(this, 0, 0);
m_view = new KListView(this);
cl->addWidget(m_view);
m_view->addColumn(i18n( "Contents" ));
m_view->header()->hide();
- m_view->setResizeMode(QListView::AllColumns);
+ m_view->setResizeMode(TQListView::AllColumns);
m_view->setRootIsDecorated(true);
m_view->setSorting(-1);
m_view->setAllColumnsShowFocus( true );
- connect(m_view, SIGNAL(executed(QListViewItem*, const QPoint&, int )),
- this, SLOT(itemExecuted(QListViewItem*, const QPoint&, int )));
- connect(m_view, SIGNAL(mouseButtonPressed(int, QListViewItem*, const QPoint&, int )),
- this, SLOT(itemMouseButtonPressed(int, QListViewItem*, const QPoint&, int )));
+ connect(m_view, TQT_SIGNAL(executed(TQListViewItem*, const TQPoint&, int )),
+ this, TQT_SLOT(itemExecuted(TQListViewItem*, const TQPoint&, int )));
+ connect(m_view, TQT_SIGNAL(mouseButtonPressed(int, TQListViewItem*, const TQPoint&, int )),
+ this, TQT_SLOT(itemMouseButtonPressed(int, TQListViewItem*, const TQPoint&, int )));
}
ContentsView::~ContentsView()
@@ -59,7 +59,7 @@ ContentsView::~ContentsView()
m_widget->index()->clear();
}
-void ContentsView::itemExecuted(QListViewItem *item, const QPoint &// p
+void ContentsView::itemExecuted(TQListViewItem *item, const TQPoint &// p
, int // col
)
{
@@ -72,7 +72,7 @@ void ContentsView::itemExecuted(QListViewItem *item, const QPoint &// p
m_widget->part()->partController()->showDocument(url);
}
-void ContentsView::itemMouseButtonPressed(int button, QListViewItem *item, const QPoint &pos, int // c
+void ContentsView::itemMouseButtonPressed(int button, TQListViewItem *item, const TQPoint &pos, int // c
)
{
if ((button != Qt::RightButton) || (!item))
@@ -84,7 +84,7 @@ void ContentsView::itemMouseButtonPressed(int button, QListViewItem *item, const
DocUtils::docItemPopup(m_widget->part(), docItem, pos, true, true);
}
-void ContentsView::focusInEvent(QFocusEvent */*e*/)
+void ContentsView::focusInEvent(TQFocusEvent */*e*/)
{
m_view->setFocus();
}
diff --git a/parts/documentation/contentsview.h b/parts/documentation/contentsview.h
index 54c16486..35595bca 100644
--- a/parts/documentation/contentsview.h
+++ b/parts/documentation/contentsview.h
@@ -20,7 +20,7 @@
#ifndef CONTENTSVIEW_H
#define CONTENTSVIEW_H
-#include <qwidget.h>
+#include <tqwidget.h>
class FindDocumentation;
class DocumentationWidget;
@@ -37,11 +37,11 @@ public:
KListView *view() const { return m_view; }
protected slots:
- void itemExecuted(QListViewItem *item, const QPoint &p, int col);
- void itemMouseButtonPressed(int button, QListViewItem *item, const QPoint &pos, int c);
+ void itemExecuted(TQListViewItem *item, const TQPoint &p, int col);
+ void itemMouseButtonPressed(int button, TQListViewItem *item, const TQPoint &pos, int c);
protected:
- virtual void focusInEvent(QFocusEvent *e);
+ virtual void focusInEvent(TQFocusEvent *e);
private:
DocumentationWidget *m_widget;
diff --git a/parts/documentation/docconfiglistview.cpp b/parts/documentation/docconfiglistview.cpp
index f09a860b..b8d6071c 100644
--- a/parts/documentation/docconfiglistview.cpp
+++ b/parts/documentation/docconfiglistview.cpp
@@ -23,7 +23,7 @@
#include "kdevdocumentationplugin.h"
-DocConfigListView::DocConfigListView(QWidget *parent, const char *name)
+DocConfigListView::DocConfigListView(TQWidget *parent, const char *name)
:KListView(parent, name)
{
// setSorting(-1);
@@ -32,23 +32,23 @@ DocConfigListView::DocConfigListView(QWidget *parent, const char *name)
addColumn(i18n("Search"));
addColumn(i18n("Title"));
// addColumn(i18n("URL"));
- setColumnWidthMode(0, QListView::Maximum);
- setColumnWidthMode(1, QListView::Maximum);
- setColumnWidthMode(2, QListView::Maximum);
- setColumnWidthMode(3, QListView::Maximum);
-// setColumnWidthMode(4, QListView::Maximum);
+ setColumnWidthMode(0, TQListView::Maximum);
+ setColumnWidthMode(1, TQListView::Maximum);
+ setColumnWidthMode(2, TQListView::Maximum);
+ setColumnWidthMode(3, TQListView::Maximum);
+// setColumnWidthMode(4, TQListView::Maximum);
setAllColumnsShowFocus(true);
- setResizeMode( QListView::LastColumn );
+ setResizeMode( TQListView::LastColumn );
- connect(this, SIGNAL(clicked(QListViewItem*, const QPoint&, int)),
- this, SLOT(clickedItem(QListViewItem*, const QPoint&, int )));
+ connect(this, TQT_SIGNAL(clicked(TQListViewItem*, const TQPoint&, int)),
+ this, TQT_SLOT(clickedItem(TQListViewItem*, const TQPoint&, int )));
}
DocConfigListView::~DocConfigListView()
{
}
-void DocConfigListView::clickedItem(QListViewItem *item, const QPoint &// pnt
+void DocConfigListView::clickedItem(TQListViewItem *item, const TQPoint &// pnt
, int c)
{
if (!item)
diff --git a/parts/documentation/docconfiglistview.h b/parts/documentation/docconfiglistview.h
index 0f320099..a7c0aea0 100644
--- a/parts/documentation/docconfiglistview.h
+++ b/parts/documentation/docconfiglistview.h
@@ -26,11 +26,11 @@ class DocConfigListView : public KListView
{
Q_OBJECT
public:
- DocConfigListView(QWidget *parent = 0, const char *name = 0);
+ DocConfigListView(TQWidget *parent = 0, const char *name = 0);
~DocConfigListView();
protected slots:
- void clickedItem(QListViewItem *item, const QPoint &pnt, int c);
+ void clickedItem(TQListViewItem *item, const TQPoint &pnt, int c);
};
#endif
diff --git a/parts/documentation/docglobalconfigwidget.cpp b/parts/documentation/docglobalconfigwidget.cpp
index 5cd6ff31..0184c4c9 100644
--- a/parts/documentation/docglobalconfigwidget.cpp
+++ b/parts/documentation/docglobalconfigwidget.cpp
@@ -23,10 +23,10 @@
***************************************************************************/
#include "docglobalconfigwidget.h"
-#include <qlayout.h>
-#include <qtoolbox.h>
-#include <qcheckbox.h>
-#include <qwidgetstack.h>
+#include <tqlayout.h>
+#include <tqtoolbox.h>
+#include <tqcheckbox.h>
+#include <tqwidgetstack.h>
#include <kdebug.h>
#include <kconfig.h>
@@ -51,13 +51,13 @@
#include "docutils.h"
DocGlobalConfigWidget::DocGlobalConfigWidget(DocumentationPart *part,
- DocumentationWidget *widget, QWidget *parent, const char *name, WFlags fl)
+ DocumentationWidget *widget, TQWidget *parent, const char *name, WFlags fl)
:DocGlobalConfigWidgetBase(parent, name, fl), m_part(part), m_widget(widget)
{
m_View = new DocConfigListView( viewHolder );
viewHolder->addWidget( m_View );
viewHolder->raiseWidget( m_View );
- for (QValueList<DocumentationPlugin*>::const_iterator it = m_part->m_plugins.constBegin();
+ for (TQValueList<DocumentationPlugin*>::const_iterator it = m_part->m_plugins.constBegin();
it != m_part->m_plugins.constEnd(); ++it)
{
(*it)->loadCatalogConfiguration( m_View );
@@ -66,7 +66,7 @@ DocGlobalConfigWidget::DocGlobalConfigWidget(DocumentationPart *part,
KConfig *config = m_part->config();
//read full text search settings
config->setGroup("htdig");
- QString databaseDir = kapp->dirs()->saveLocation("data",
+ TQString databaseDir = kapp->dirs()->saveLocation("data",
"kdevdocumentation/search");
databaseDirEdit->setURL(config->readPathEntry("databaseDir", databaseDir));
htdigbinEdit->setURL(config->readPathEntry("htdigbin", kapp->dirs()->findExe("htdig")));
@@ -74,15 +74,15 @@ DocGlobalConfigWidget::DocGlobalConfigWidget(DocumentationPart *part,
htsearchbinEdit->setURL(config->readPathEntry("htsearchbin", kapp->dirs()->findExe("htsearch")));
if (config->readBoolEntry("IsSetup", false) == false)
{
- QFileInfo fi(htsearchbinEdit->url());
+ TQFileInfo fi(htsearchbinEdit->url());
if (!fi.exists())
{
//try to guess htsearch location on Debian
- QFileInfo fi("/usr/lib/cgi-bin/htsearch");
+ TQFileInfo fi("/usr/lib/cgi-bin/htsearch");
if (!fi.exists())
{
//try to guess htsearch location on SuSE
- QFileInfo fi("/srv/www/cgi-bin/htsearch");
+ TQFileInfo fi("/srv/www/cgi-bin/htsearch");
if (fi.exists())
htsearchbinEdit->setURL("/srv/www/cgi-bin/htsearch");
}
@@ -165,12 +165,12 @@ KListView *DocGlobalConfigWidget::activeView()
void DocGlobalConfigWidget::accept()
{
//write catalog settings
- for (QValueList<DocumentationPlugin*>::const_iterator it = m_part->m_plugins.constBegin();
+ for (TQValueList<DocumentationPlugin*>::const_iterator it = m_part->m_plugins.constBegin();
it != m_part->m_plugins.constEnd(); ++it)
{
(*it)->saveCatalogConfiguration( m_View );
//@todo: take restrictions into account
- (*it)->reinit(m_widget->contents(), m_widget->index(), QStringList());
+ (*it)->reinit(m_widget->contents(), m_widget->index(), TQStringList());
}
KConfig *config = m_part->config();
@@ -182,17 +182,17 @@ void DocGlobalConfigWidget::accept()
config->writePathEntry("htsearchbin", DocUtils::envURL(htsearchbinEdit));
//write full text search locations file
- QString ftsLocationsFile = locateLocal("data", "kdevdocumentation/search/locations.txt");
- QFile f(ftsLocationsFile);
- QStringList locs;
+ TQString ftsLocationsFile = locateLocal("data", "kdevdocumentation/search/locations.txt");
+ TQFile f(ftsLocationsFile);
+ TQStringList locs;
if (f.open(IO_ReadWrite | IO_Truncate))
{
- QTextStream str(&f);
- for (QValueList<DocumentationPlugin*>::const_iterator it = m_part->m_plugins.constBegin();
+ TQTextStream str(&f);
+ for (TQValueList<DocumentationPlugin*>::const_iterator it = m_part->m_plugins.constBegin();
it != m_part->m_plugins.constEnd(); ++ it)
{
- QStringList app = (*it)->fullTextSearchLocations();
- for (QStringList::const_iterator it2 = app.constBegin();
+ TQStringList app = (*it)->fullTextSearchLocations();
+ for (TQStringList::const_iterator it2 = app.constBegin();
it2 != app.constEnd(); ++it2)
{
if (!locs.contains(*it2))
diff --git a/parts/documentation/docglobalconfigwidget.h b/parts/documentation/docglobalconfigwidget.h
index 41b0ba85..afef5730 100644
--- a/parts/documentation/docglobalconfigwidget.h
+++ b/parts/documentation/docglobalconfigwidget.h
@@ -22,7 +22,7 @@
#include "docglobalconfigwidgetbase.h"
-#include <qmap.h>
+#include <tqmap.h>
class DocumentationPart;
class DocumentationWidget;
@@ -34,7 +34,7 @@ class DocGlobalConfigWidget : public DocGlobalConfigWidgetBase
Q_OBJECT
public:
DocGlobalConfigWidget(DocumentationPart *part, DocumentationWidget *widget,
- QWidget *parent = 0, const char *name = 0, WFlags fl = 0);
+ TQWidget *parent = 0, const char *name = 0, WFlags fl = 0);
~DocGlobalConfigWidget();
/*$PUBLIC_FUNCTIONS$*/
diff --git a/parts/documentation/docprojectconfigwidget.cpp b/parts/documentation/docprojectconfigwidget.cpp
index 90950a80..a37ad5cb 100644
--- a/parts/documentation/docprojectconfigwidget.cpp
+++ b/parts/documentation/docprojectconfigwidget.cpp
@@ -19,8 +19,8 @@
***************************************************************************/
#include "docprojectconfigwidget.h"
-#include <qdir.h>
-#include <qcombobox.h>
+#include <tqdir.h>
+#include <tqcombobox.h>
#include <kdebug.h>
#include <kurlrequester.h>
@@ -33,10 +33,10 @@
#include "documentation_part.h"
#include "documentation_widget.h"
-DocProjectConfigWidget::DocProjectConfigWidget(DocumentationPart *part, QWidget *parent, const char *name)
+DocProjectConfigWidget::DocProjectConfigWidget(DocumentationPart *part, TQWidget *parent, const char *name)
:DocProjectConfigWidgetBase(parent, name), m_part(part)
{
- for (QValueList<DocumentationPlugin*>::const_iterator it = m_part->m_plugins.constBegin();
+ for (TQValueList<DocumentationPlugin*>::const_iterator it = m_part->m_plugins.constBegin();
it != m_part->m_plugins.constEnd(); ++it)
{
if ((*it)->hasCapability(DocumentationPlugin::ProjectDocumentation))
@@ -45,7 +45,7 @@ DocProjectConfigWidget::DocProjectConfigWidget(DocumentationPart *part, QWidget
m_plugins[(*it)->pluginName()] = *it;
}
}
- QString projectDocSystem = DomUtil::readEntry(*(m_part->projectDom()), "/kdevdocumentation/projectdoc/docsystem");
+ TQString projectDocSystem = DomUtil::readEntry(*(m_part->projectDom()), "/kdevdocumentation/projectdoc/docsystem");
bool hasProjectDoc = false;
for (int i = 0; i < docSystemCombo->count(); ++i)
@@ -67,7 +67,7 @@ DocProjectConfigWidget::DocProjectConfigWidget(DocumentationPart *part, QWidget
manualURL->setURL(DomUtil::readEntry(*(m_part->projectDom()), "/kdevdocumentation/projectdoc/usermanualurl"));
}
-void DocProjectConfigWidget::changeDocSystem(const QString &text)
+void DocProjectConfigWidget::changeDocSystem(const TQString &text)
{
if (text.isEmpty())
return;
@@ -79,9 +79,9 @@ void DocProjectConfigWidget::changeDocSystem(const QString &text)
catalogURL->setMode(plugin->catalogLocatorProps().first);
catalogURL->setFilter(plugin->catalogLocatorProps().second);
- QString projectDocURL = DomUtil::readEntry(*(m_part->projectDom()), "/kdevdocumentation/projectdoc/docurl");
+ TQString projectDocURL = DomUtil::readEntry(*(m_part->projectDom()), "/kdevdocumentation/projectdoc/docurl");
if (!projectDocURL.isEmpty())
- projectDocURL = QDir::cleanDirPath(m_part->project()->projectDirectory() + "/" + projectDocURL);
+ projectDocURL = TQDir::cleanDirPath(m_part->project()->projectDirectory() + "/" + projectDocURL);
catalogURL->setURL(projectDocURL);
catalogURL->setEnabled(true);
@@ -104,7 +104,7 @@ void DocProjectConfigWidget::accept()
delete m_part->m_userManualPlugin;
m_part->m_userManualPlugin = 0;
}
- for (QValueList<DocumentationPlugin*>::const_iterator it = m_part->m_plugins.constBegin();
+ for (TQValueList<DocumentationPlugin*>::const_iterator it = m_part->m_plugins.constBegin();
it != m_part->m_plugins.constEnd(); ++it)
{
if ((*it)->hasCapability(DocumentationPlugin::ProjectUserManual))
diff --git a/parts/documentation/docprojectconfigwidget.h b/parts/documentation/docprojectconfigwidget.h
index df64f31b..c5d904b5 100644
--- a/parts/documentation/docprojectconfigwidget.h
+++ b/parts/documentation/docprojectconfigwidget.h
@@ -28,14 +28,14 @@ class DocumentationPlugin;
class DocProjectConfigWidget: public DocProjectConfigWidgetBase {
Q_OBJECT
public:
- DocProjectConfigWidget(DocumentationPart *part, QWidget *parent = 0, const char *name = 0);
+ DocProjectConfigWidget(DocumentationPart *part, TQWidget *parent = 0, const char *name = 0);
public slots:
- virtual void changeDocSystem(const QString &text);
+ virtual void changeDocSystem(const TQString &text);
virtual void accept();
private:
DocumentationPart *m_part;
- QMap<QString, DocumentationPlugin*> m_plugins;
+ TQMap<TQString, DocumentationPlugin*> m_plugins;
};
#endif
diff --git a/parts/documentation/documentation_part.cpp b/parts/documentation/documentation_part.cpp
index 9e978f09..32e57d9e 100644
--- a/parts/documentation/documentation_part.cpp
+++ b/parts/documentation/documentation_part.cpp
@@ -21,13 +21,13 @@
#include <unistd.h>
-#include <qtimer.h>
-#include <qdir.h>
-#include <qwhatsthis.h>
-#include <qlayout.h>
-#include <qpopupmenu.h>
-#include <qtabwidget.h>
-#include <qapplication.h>
+#include <tqtimer.h>
+#include <tqdir.h>
+#include <tqwhatsthis.h>
+#include <tqlayout.h>
+#include <tqpopupmenu.h>
+#include <tqtabwidget.h>
+#include <tqapplication.h>
#include <kapplication.h>
#include <dcopclient.h>
@@ -76,7 +76,7 @@ static const KDevPluginInfo data("kdevdocumentation");
typedef KDevGenericFactory<DocumentationPart> DocumentationFactory;
K_EXPORT_COMPONENT_FACTORY( libkdevdocumentation, DocumentationFactory( data ) )
-DocumentationPart::DocumentationPart(QObject *parent, const char *name, const QStringList& )
+DocumentationPart::DocumentationPart(TQObject *parent, const char *name, const TQStringList& )
:KDevPlugin(&data, parent, name ? name : "DocumentationPart" ),
m_projectDocumentationPlugin(0), m_userManualPlugin(0), m_hasIndex(false)
{
@@ -86,17 +86,17 @@ DocumentationPart::DocumentationPart(QObject *parent, const char *name, const QS
m_configProxy = new ConfigWidgetProxy(core());
m_configProxy->createGlobalConfigPage(i18n("Documentation"), GLOBALDOC_OPTIONS, info()->icon() );
m_configProxy->createProjectConfigPage(i18n("Project Documentation"), PROJECTDOC_OPTIONS, info()->icon() );
- connect(m_configProxy, SIGNAL(insertConfigWidget(const KDialogBase*, QWidget*, unsigned int )), this, SLOT(insertConfigWidget(const KDialogBase*, QWidget*, unsigned int)));
- connect(core(), SIGNAL(contextMenu(QPopupMenu *, const Context *)),
- this, SLOT(contextMenu(QPopupMenu *, const Context *)));
- connect(core(), SIGNAL(projectOpened()), this, SLOT(projectOpened()));
- connect(core(), SIGNAL(projectClosed()), this, SLOT(projectClosed()));
+ connect(m_configProxy, TQT_SIGNAL(insertConfigWidget(const KDialogBase*, TQWidget*, unsigned int )), this, TQT_SLOT(insertConfigWidget(const KDialogBase*, TQWidget*, unsigned int)));
+ connect(core(), TQT_SIGNAL(contextMenu(TQPopupMenu *, const Context *)),
+ this, TQT_SLOT(contextMenu(TQPopupMenu *, const Context *)));
+ connect(core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(projectOpened()));
+ connect(core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(projectClosed()));
m_widget = new DocumentationWidget(this);
m_widget->setIcon(SmallIcon( info()->icon() ));
m_widget->setCaption(i18n("Documentation"));
- QWhatsThis::add(m_widget, i18n("<b>Documentation browser</b><p>"
+ TQWhatsThis::add(m_widget, i18n("<b>Documentation browser</b><p>"
"The documentation browser gives access to various "
"documentation sources (Qt DCF, Doxygen, KDoc, KDevelopTOC and DevHelp "
"documentation) and the KDevelop manuals. It also provides documentation index "
@@ -107,7 +107,7 @@ DocumentationPart::DocumentationPart(QObject *parent, const char *name, const QS
setupActions();
- QTimer::singleShot(0, this, SLOT(init()));
+ TQTimer::singleShot(0, this, TQT_SLOT(init()));
new KDevDocumentationIface(this);
}
@@ -125,8 +125,8 @@ DocumentationPart::~DocumentationPart()
void DocumentationPart::loadDocumentationPlugins()
{
KTrader::OfferList docPluginOffers =
- KTrader::self()->query(QString::fromLatin1("KDevelop/DocumentationPlugins"),
- QString("[X-KDevelop-Version] == %1").arg(KDEVELOP_PLUGIN_VERSION));
+ KTrader::self()->query(TQString::fromLatin1("KDevelop/DocumentationPlugins"),
+ TQString("[X-KDevelop-Version] == %1").arg(KDEVELOP_PLUGIN_VERSION));
KTrader::OfferList::ConstIterator serviceIt = docPluginOffers.begin();
for ( ; serviceIt != docPluginOffers.end(); ++serviceIt )
@@ -139,14 +139,14 @@ void DocumentationPart::loadDocumentationPlugins()
int error;
DocumentationPlugin *docPlugin = KParts::ComponentFactory
::createInstanceFromService<DocumentationPlugin>(docPluginService, 0,
- docPluginService->name().latin1(), QStringList(), &error);
+ docPluginService->name().latin1(), TQStringList(), &error);
if (!docPlugin)
kdDebug() << " failed to create doc plugin " << docPluginService->name() << endl;
else
{
kdDebug() << " success" << endl;
docPlugin->init(m_widget->contents());
- connect(this, SIGNAL(indexSelected(IndexBox* )), docPlugin, SLOT(createIndex(IndexBox* )));
+ connect(this, TQT_SIGNAL(indexSelected(IndexBox* )), docPlugin, TQT_SLOT(createIndex(IndexBox* )));
m_plugins.append(docPlugin);
}
}
@@ -156,28 +156,28 @@ void DocumentationPart::emitIndexSelected(IndexBox *indexBox)
{
if (!m_hasIndex)
{
- QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
+ TQApplication::setOverrideCursor(TQCursor(Qt::WaitCursor));
emit indexSelected(indexBox);
indexBox->fill();
m_hasIndex = true;
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
}
}
-void DocumentationPart::insertConfigWidget(const KDialogBase *dlg, QWidget *page, unsigned int pageNo)
+void DocumentationPart::insertConfigWidget(const KDialogBase *dlg, TQWidget *page, unsigned int pageNo)
{
switch (pageNo)
{
case GLOBALDOC_OPTIONS:
{
DocGlobalConfigWidget *w1 = new DocGlobalConfigWidget(this, m_widget, page, "doc config widget");
- connect(dlg, SIGNAL(okClicked()), w1, SLOT(accept()));
+ connect(dlg, TQT_SIGNAL(okClicked()), w1, TQT_SLOT(accept()));
break;
}
case PROJECTDOC_OPTIONS:
{
DocProjectConfigWidget *w1 = new DocProjectConfigWidget(this, page, "doc project config");
- connect(dlg, SIGNAL(okClicked()), w1, SLOT(accept()));
+ connect(dlg, TQT_SIGNAL(okClicked()), w1, TQT_SLOT(accept()));
break;
}
}
@@ -194,12 +194,12 @@ bool DocumentationPart::configure(int page)
KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, m_widget,
"docsettings dialog");
- QVBoxLayout *l = new QVBoxLayout(dlg.plainPage(), 0, 0);
+ TQVBoxLayout *l = new TQVBoxLayout(dlg.plainPage(), 0, 0);
DocGlobalConfigWidget *w1 = new DocGlobalConfigWidget(this, m_widget, dlg.plainPage());
l->addWidget(w1);
w1->docTab->setCurrentPage(page);
- connect(&dlg, SIGNAL(okClicked()), w1, SLOT(accept()));
- return (dlg.exec() == QDialog::Accepted);
+ connect(&dlg, TQT_SIGNAL(okClicked()), w1, TQT_SLOT(accept()));
+ return (dlg.exec() == TQDialog::Accepted);
}
void DocumentationPart::setupActions()
@@ -210,7 +210,7 @@ void DocumentationPart::setupActions()
KAction *action;
action = new KAction(i18n("&Search in Documentation..."), CTRL+ALT+Key_S,
- this, SLOT(searchInDocumentation()),
+ this, TQT_SLOT(searchInDocumentation()),
actionCollection(), "help_search_in_doc" );
action->setToolTip(i18n("Full text search in the documentation"));
action->setWhatsThis(i18n("<b>Search in documentation</b><p>"
@@ -221,7 +221,7 @@ void DocumentationPart::setupActions()
"configuration dialog of the documentation plugin."));
action = new KAction(i18n("&Look in Documentation Index..."), CTRL+ALT+Key_I,
- this, SLOT(lookInDocumentationIndex()),
+ this, TQT_SLOT(lookInDocumentationIndex()),
actionCollection(), "help_look_in_index" );
action->setToolTip(i18n("Look in the documentation index"));
action->setWhatsThis(i18n("<b>Look in documentation index</b><p>"
@@ -230,19 +230,19 @@ void DocumentationPart::setupActions()
"the documentation index."));
action = new KAction(i18n("Man Page..."), 0,
- this, SLOT(manPage()),
+ this, TQT_SLOT(manPage()),
actionCollection(), "help_manpage" );
action->setToolTip(i18n("Show a manpage"));
action->setWhatsThis(i18n("<b>Show a manpage</b><p>Opens a man page using embedded viewer."));
action = new KAction(i18n("Info Page..."), 0,
- this, SLOT(infoPage()),
+ this, TQT_SLOT(infoPage()),
actionCollection(), "help_infopage");
action->setToolTip(i18n("Show an infopage"));
action->setWhatsThis(i18n("<b>Show an infopage</b><p>Opens an info page using embedded viewer."));
action = new KAction(i18n("Find Documentation..."), 0,
- this, SLOT(findInDocumentation()),
+ this, TQT_SLOT(findInDocumentation()),
actionCollection(), "help_find_documentation");
action->setToolTip(i18n("Find Documentation"));
action->setWhatsThis(i18n("<b>Find documentation</b><p>"
@@ -252,14 +252,14 @@ void DocumentationPart::setupActions()
"Google, etc."));
}
-void DocumentationPart::emitBookmarkLocation(const QString &title, const KURL &url)
+void DocumentationPart::emitBookmarkLocation(const TQString &title, const KURL &url)
{
emit bookmarkLocation(title, url);
}
void DocumentationPart::searchInDocumentation()
{
- QString word = KDevEditorUtil::currentWord( dynamic_cast<KTextEditor::Document*>( partController()->activePart() ) );
+ TQString word = KDevEditorUtil::currentWord( dynamic_cast<KTextEditor::Document*>( partController()->activePart() ) );
if ( word.isEmpty() )
{
@@ -274,7 +274,7 @@ void DocumentationPart::searchInDocumentation()
else
{
if ( isAssistantUsed() )
- callAssistant ( "KDevDocumentation", "searchInDocumentation(QString)", word );
+ callAssistant ( "KDevDocumentation", "searchInDocumentation(TQString)", word );
else
{
mainWindow()->raiseView ( m_widget );
@@ -283,7 +283,7 @@ void DocumentationPart::searchInDocumentation()
}
}
-void DocumentationPart::searchInDocumentation(const QString &term)
+void DocumentationPart::searchInDocumentation(const TQString &term)
{
mainWindow()->raiseView(m_widget);
m_widget->searchInDocumentation(term);
@@ -292,14 +292,14 @@ void DocumentationPart::searchInDocumentation(const QString &term)
void DocumentationPart::contextSearchInDocumentation()
{
if (isAssistantUsed())
- callAssistant("KDevDocumentation", "searchInDocumentation(QString)", m_contextStr);
+ callAssistant("KDevDocumentation", "searchInDocumentation(TQString)", m_contextStr);
else
searchInDocumentation(m_contextStr);
}
void DocumentationPart::manPage()
{
- QString word = KDevEditorUtil::currentWord( dynamic_cast<KTextEditor::Document*>( partController()->activePart() ) );
+ TQString word = KDevEditorUtil::currentWord( dynamic_cast<KTextEditor::Document*>( partController()->activePart() ) );
if ( isAssistantUsed() )
{
@@ -309,13 +309,13 @@ void DocumentationPart::manPage()
}
else
{
- callAssistant ( "KDevDocumentation", "manPage(QString)", word );
+ callAssistant ( "KDevDocumentation", "manPage(TQString)", word );
}
}
else
{
bool ok;
- QString manpage = KInputDialog::getText ( i18n ( "Show Manual Page" ), i18n ( "Show manpage on:" ), word, &ok, 0 );
+ TQString manpage = KInputDialog::getText ( i18n ( "Show Manual Page" ), i18n ( "Show manpage on:" ), word, &ok, 0 );
if ( ok && !manpage.isEmpty() )
manPage ( manpage );
}
@@ -323,7 +323,7 @@ void DocumentationPart::manPage()
void DocumentationPart::infoPage()
{
- QString word = KDevEditorUtil::currentWord( dynamic_cast<KTextEditor::Document*>( partController()->activePart() ) );
+ TQString word = KDevEditorUtil::currentWord( dynamic_cast<KTextEditor::Document*>( partController()->activePart() ) );
if ( isAssistantUsed() )
{
@@ -333,34 +333,34 @@ void DocumentationPart::infoPage()
}
else
{
- callAssistant ( "KDevDocumentation", "infoPage(QString)", word );
+ callAssistant ( "KDevDocumentation", "infoPage(TQString)", word );
}
}
else
{
bool ok;
- QString infopage = KInputDialog::getText ( i18n ( "Show Info Page" ), i18n ( "Show infopage on:" ), word, &ok, 0 );
+ TQString infopage = KInputDialog::getText ( i18n ( "Show Info Page" ), i18n ( "Show infopage on:" ), word, &ok, 0 );
if ( ok && !infopage.isEmpty() )
infoPage ( infopage );
}
}
-void DocumentationPart::manPage(const QString &term)
+void DocumentationPart::manPage(const TQString &term)
{
- QString url = QString::fromLatin1("man:/%1").arg(term);
+ TQString url = TQString::fromLatin1("man:/%1").arg(term);
partController()->showDocument(KURL(url));
}
-void DocumentationPart::infoPage(const QString &term)
+void DocumentationPart::infoPage(const TQString &term)
{
- QString url = QString::fromLatin1("info:/%1").arg(term);
+ TQString url = TQString::fromLatin1("info:/%1").arg(term);
partController()->showDocument(KURL(url));
}
void DocumentationPart::contextManPage()
{
if (isAssistantUsed())
- callAssistant("KDevDocumentation", "manPage(QString)", m_contextStr);
+ callAssistant("KDevDocumentation", "manPage(TQString)", m_contextStr);
else
manPage(m_contextStr);
}
@@ -368,7 +368,7 @@ void DocumentationPart::contextManPage()
void DocumentationPart::contextInfoPage()
{
if (isAssistantUsed())
- callAssistant("KDevDocumentation", "infoPage(QString)", m_contextStr);
+ callAssistant("KDevDocumentation", "infoPage(TQString)", m_contextStr);
else
infoPage(m_contextStr);
}
@@ -376,14 +376,14 @@ void DocumentationPart::contextInfoPage()
void DocumentationPart::contextFindDocumentation()
{
if (isAssistantUsed())
- callAssistant("KDevDocumentation", "findInFinder(QString)", m_contextStr);
+ callAssistant("KDevDocumentation", "findInFinder(TQString)", m_contextStr);
else
findInDocumentation(m_contextStr);
}
void DocumentationPart::findInDocumentation()
{
- QString word = KDevEditorUtil::currentWord( dynamic_cast<KTextEditor::Document*>( partController()->activePart() ) );
+ TQString word = KDevEditorUtil::currentWord( dynamic_cast<KTextEditor::Document*>( partController()->activePart() ) );
if ( word.isEmpty() )
{
@@ -398,7 +398,7 @@ void DocumentationPart::findInDocumentation()
else
{
if ( isAssistantUsed() )
- callAssistant ( "KDevDocumentation", "findInFinder(QString)", word );
+ callAssistant ( "KDevDocumentation", "findInFinder(TQString)", word );
else
{
mainWindow()->raiseView ( m_widget );
@@ -407,7 +407,7 @@ void DocumentationPart::findInDocumentation()
}
}
-void DocumentationPart::findInDocumentation(const QString &term)
+void DocumentationPart::findInDocumentation(const TQString &term)
{
mainWindow()->raiseView(m_widget);
m_widget->findInDocumentation(term);
@@ -415,7 +415,7 @@ void DocumentationPart::findInDocumentation(const QString &term)
void DocumentationPart::lookInDocumentationIndex()
{
- QString word = KDevEditorUtil::currentWord( dynamic_cast<KTextEditor::Document*>( partController()->activePart() ) );
+ TQString word = KDevEditorUtil::currentWord( dynamic_cast<KTextEditor::Document*>( partController()->activePart() ) );
if ( word.isEmpty() )
{
@@ -430,7 +430,7 @@ void DocumentationPart::lookInDocumentationIndex()
else
{
if ( isAssistantUsed() )
- callAssistant ( "KDevDocumentation", "lookupInIndex(QString)", word );
+ callAssistant ( "KDevDocumentation", "lookupInIndex(TQString)", word );
else
{
mainWindow()->raiseView ( m_widget );
@@ -439,7 +439,7 @@ void DocumentationPart::lookInDocumentationIndex()
}
}
-void DocumentationPart::lookInDocumentationIndex(const QString &term)
+void DocumentationPart::lookInDocumentationIndex(const TQString &term)
{
mainWindow()->raiseView(m_widget);
m_widget->lookInDocumentationIndex(term);
@@ -448,25 +448,25 @@ void DocumentationPart::lookInDocumentationIndex(const QString &term)
void DocumentationPart::contextLookInDocumentationIndex()
{
if (isAssistantUsed())
- callAssistant("KDevDocumentation", "lookupInIndex(QString)", m_contextStr);
+ callAssistant("KDevDocumentation", "lookupInIndex(TQString)", m_contextStr);
else
lookInDocumentationIndex(m_contextStr);
}
-void DocumentationPart::contextMenu(QPopupMenu *popup, const Context *context)
+void DocumentationPart::contextMenu(TQPopupMenu *popup, const Context *context)
{
if (context->hasType(Context::EditorContext))
{
const EditorContext *econtext = static_cast<const EditorContext*>(context);
- QString ident = econtext->currentWord();
+ TQString ident = econtext->currentWord();
if (!ident.isEmpty())
{
m_contextStr = ident;
- QString squeezed = KStringHandler::csqueeze(m_contextStr, 30);
+ TQString squeezed = KStringHandler::csqueeze(m_contextStr, 30);
int id = -1;
if (hasContextFeature(Finder)) {
id = popup->insertItem(i18n("Find Documentation: %1").arg(squeezed),
- this, SLOT(contextFindDocumentation()));
+ this, TQT_SLOT(contextFindDocumentation()));
popup->setWhatsThis(id, i18n("<b>Find documentation</b><p>"
"Opens the documentation finder tab and searches "
"all possible sources of documentation like "
@@ -475,7 +475,7 @@ void DocumentationPart::contextMenu(QPopupMenu *popup, const Context *context)
}
if (hasContextFeature(IndexLookup)) {
id = popup->insertItem(i18n("Look in Documentation Index: %1").arg(squeezed),
- this, SLOT(contextLookInDocumentationIndex()));
+ this, TQT_SLOT(contextLookInDocumentationIndex()));
popup->setWhatsThis(id, i18n("<b>Look in documentation index</b><p>"
"Opens the documentation index tab. It allows "
"a term to be entered which will be looked for in "
@@ -483,7 +483,7 @@ void DocumentationPart::contextMenu(QPopupMenu *popup, const Context *context)
}
if (hasContextFeature(FullTextSearch)) {
id = popup->insertItem(i18n("Search in Documentation: %1").arg(squeezed),
- this, SLOT(contextSearchInDocumentation()));
+ this, TQT_SLOT(contextSearchInDocumentation()));
popup->setWhatsThis(id, i18n("<b>Search in documentation</b><p>Searches "
"for a term under the cursor in "
"the documentation. For this to work, "
@@ -492,12 +492,12 @@ void DocumentationPart::contextMenu(QPopupMenu *popup, const Context *context)
}
if (hasContextFeature(GotoMan)) {
id = popup->insertItem(i18n("Goto Manpage: %1").arg(squeezed),
- this, SLOT(contextManPage()));
+ this, TQT_SLOT(contextManPage()));
popup->setWhatsThis(id, i18n("<b>Goto manpage</b><p>Tries to open a man page for the term under the cursor."));
}
if (hasContextFeature(GotoInfo)) {
id = popup->insertItem( i18n("Goto Infopage: %1").arg(squeezed),
- this, SLOT(contextInfoPage()) );
+ this, TQT_SLOT(contextInfoPage()) );
popup->setWhatsThis(id, i18n("<b>Goto infopage</b><p>Tries to open an info page for the term under the cursor."));
}
if (id != -1)
@@ -509,7 +509,7 @@ void DocumentationPart::contextMenu(QPopupMenu *popup, const Context *context)
bool DocumentationPart::hasContextFeature(ContextFeature feature)
{
KConfig *config = DocumentationFactory::instance()->config();
- QString group = config->group();
+ TQString group = config->group();
config->setGroup("Context Features");
switch (feature)
{
@@ -536,9 +536,9 @@ bool DocumentationPart::hasContextFeature(ContextFeature feature)
void DocumentationPart::setContextFeature(ContextFeature feature, bool b)
{
KConfig *config = DocumentationFactory::instance()->config();
- QString group = config->group();
+ TQString group = config->group();
config->setGroup("Context Features");
- QString key;
+ TQString key;
switch (feature)
{
case Finder:
@@ -564,13 +564,13 @@ void DocumentationPart::setContextFeature(ContextFeature feature, bool b)
void DocumentationPart::projectOpened()
{
- QString projectDocSystem = DomUtil::readEntry(*(projectDom()), "/kdevdocumentation/projectdoc/docsystem");
- QString projectDocURL = DomUtil::readEntry(*(projectDom()), "/kdevdocumentation/projectdoc/docurl");
+ TQString projectDocSystem = DomUtil::readEntry(*(projectDom()), "/kdevdocumentation/projectdoc/docsystem");
+ TQString projectDocURL = DomUtil::readEntry(*(projectDom()), "/kdevdocumentation/projectdoc/docurl");
if (!projectDocURL.isEmpty())
- projectDocURL = QDir::cleanDirPath(project()->projectDirectory() + "/" + projectDocURL);
- QString userManualURL = DomUtil::readEntry(*(projectDom()), "/kdevdocumentation/projectdoc/usermanualurl");
+ projectDocURL = TQDir::cleanDirPath(project()->projectDirectory() + "/" + projectDocURL);
+ TQString userManualURL = DomUtil::readEntry(*(projectDom()), "/kdevdocumentation/projectdoc/usermanualurl");
- for (QValueList<DocumentationPlugin*>::const_iterator it = m_plugins.constBegin();
+ for (TQValueList<DocumentationPlugin*>::const_iterator it = m_plugins.constBegin();
it != m_plugins.constEnd(); ++it)
{
if ((*it)->hasCapability(DocumentationPlugin::ProjectDocumentation) &&
@@ -604,7 +604,7 @@ void DocumentationPart::saveProjectDocumentationInfo()
{
DomUtil::writeEntry(*(projectDom()), "/kdevdocumentation/projectdoc/docsystem", m_projectDocumentationPlugin->pluginName());
- QString relPath = URLUtil::extractPathNameRelative(project()->projectDirectory(),
+ TQString relPath = URLUtil::extractPathNameRelative(project()->projectDirectory(),
m_projectDocumentationPlugin->catalogURL());
DomUtil::writeEntry(*(projectDom()), "/kdevdocumentation/projectdoc/docurl", relPath);
}
@@ -619,21 +619,21 @@ void DocumentationPart::saveProjectDocumentationInfo()
DomUtil::writeEntry(*(projectDom()), "/kdevdocumentation/projectdoc/usermanualurl", "");
}
-QCString DocumentationPart::startAssistant()
+TQCString DocumentationPart::startAssistant()
{
- static QCString lastAssistant = "";
+ static TQCString lastAssistant = "";
if (!lastAssistant.isEmpty() && KApplication::dcopClient()->isApplicationRegistered(lastAssistant))
return lastAssistant;
const char *function = 0;
- QString app = "kdevassistant";
- function = "start_service_by_desktop_name(QString,QStringList)";
- QStringList URLs;
+ TQString app = "kdevassistant";
+ function = "start_service_by_desktop_name(TQString,TQStringList)";
+ TQStringList URLs;
- QByteArray data, replyData;
- QCString replyType;
- QDataStream arg(data, IO_WriteOnly);
+ TQByteArray data, replyData;
+ TQCString replyType;
+ TQDataStream arg(data, IO_WriteOnly);
arg << app << URLs;
if (!KApplication::dcopClient()->call("klauncher", "klauncher", function, data, replyType, replyData))
@@ -643,7 +643,7 @@ QCString DocumentationPart::startAssistant()
}
else
{
- QDataStream reply(replyData, IO_ReadOnly);
+ TQDataStream reply(replyData, IO_ReadOnly);
if ( replyType != "serviceResult" )
{
@@ -651,8 +651,8 @@ QCString DocumentationPart::startAssistant()
lastAssistant = "";
}
int result;
- QCString dcopName;
- QString error;
+ TQCString dcopName;
+ TQString error;
reply >> result >> dcopName >> error;
if (result != 0)
{
@@ -692,40 +692,40 @@ void DocumentationPart::setAssistantUsed(bool b)
config->writeEntry("UseAssistant", isAssistantUsed());
}
-void DocumentationPart::activateAssistantWindow(const QCString &ref)
+void DocumentationPart::activateAssistantWindow(const TQCString &ref)
{
kdDebug() << "DocumentationPart::activateAssistantWindow" << endl;
- QByteArray data, replyData;
- QCString replyType;
+ TQByteArray data, replyData;
+ TQCString replyType;
if (KApplication::dcopClient()->call(ref, "MainWindow", "getWinID()", data, replyType, replyData))
{
kdDebug() << " call successful " << endl;
- QDataStream reply(replyData, IO_ReadOnly);
+ TQDataStream reply(replyData, IO_ReadOnly);
int winId;
reply >> winId;
kdDebug() << "Win ID: " << winId << endl;
KWin::forceActiveWindow(winId);
- KApplication::dcopClient()->send(ref, "MainWindow", "show()", QByteArray());
+ KApplication::dcopClient()->send(ref, "MainWindow", "show()", TQByteArray());
}
}
-void DocumentationPart::callAssistant(const QCString &interface, const QCString &method)
+void DocumentationPart::callAssistant(const TQCString &interface, const TQCString &method)
{
- QCString ref = startAssistant();
- QByteArray data;
+ TQCString ref = startAssistant();
+ TQByteArray data;
if (KApplication::dcopClient()->send(ref, interface, method, data))
activateAssistantWindow(ref);
else
kdDebug() << "problem communicating with: " << ref;
}
-void DocumentationPart::callAssistant(const QCString &interface, const QCString &method, const QString &dataStr)
+void DocumentationPart::callAssistant(const TQCString &interface, const TQCString &method, const TQString &dataStr)
{
- QCString ref = startAssistant();
- QByteArray data;
- QDataStream arg(data, IO_WriteOnly);
+ TQCString ref = startAssistant();
+ TQByteArray data;
+ TQDataStream arg(data, IO_WriteOnly);
arg << dataStr;
if (KApplication::dcopClient()->send(ref, interface, method, data))
activateAssistantWindow(ref);
@@ -739,7 +739,7 @@ void DocumentationPart::loadSettings()
config->setGroup("Documentation");
m_assistantUsed = config->readBoolEntry("UseAssistant", false);
- if (QString(KGlobal::instance()->aboutData()->appName()) == "kdevassistant")
+ if (TQString(KGlobal::instance()->aboutData()->appName()) == "kdevassistant")
{
int page = config->readNumEntry("LastPage", 0);
switch (page)
diff --git a/parts/documentation/documentation_part.h b/parts/documentation/documentation_part.h
index 9f08029f..a3f761ab 100644
--- a/parts/documentation/documentation_part.h
+++ b/parts/documentation/documentation_part.h
@@ -20,7 +20,7 @@
#ifndef __KDEVPART_DOCUMENTATION_H__
#define __KDEVPART_DOCUMENTATION_H__
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
#include <kdevplugin.h>
@@ -45,11 +45,11 @@ class DocumentationPart : public KDevPlugin
public:
enum ContextFeature { Finder, IndexLookup, FullTextSearch, GotoMan, GotoInfo };
- DocumentationPart(QObject *parent, const char *name, const QStringList &);
+ DocumentationPart(TQObject *parent, const char *name, const TQStringList &);
~DocumentationPart();
void emitIndexSelected(IndexBox *indexBox);
- void emitBookmarkLocation(const QString &title, const KURL &url);
+ void emitBookmarkLocation(const TQString &title, const KURL &url);
bool configure(int page = 0);
bool hasContextFeature(ContextFeature feature);
@@ -60,26 +60,26 @@ public:
public slots:
void lookInDocumentationIndex();
- void lookInDocumentationIndex(const QString &term);
+ void lookInDocumentationIndex(const TQString &term);
void contextLookInDocumentationIndex();
void contextFindDocumentation();
void findInDocumentation();
- void findInDocumentation(const QString &term);
+ void findInDocumentation(const TQString &term);
void searchInDocumentation();
- void searchInDocumentation(const QString &term);
+ void searchInDocumentation(const TQString &term);
void contextSearchInDocumentation();
void manPage();
- void manPage(const QString &term);
+ void manPage(const TQString &term);
void contextManPage();
void infoPage();
- void infoPage(const QString &term);
+ void infoPage(const TQString &term);
void contextInfoPage();
void projectOpened();
void projectClosed();
signals:
void indexSelected(IndexBox *indexBox);
- void bookmarkLocation(const QString &title, const KURL &url);
+ void bookmarkLocation(const TQString &title, const KURL &url);
protected:
void loadDocumentationPlugins();
@@ -88,27 +88,27 @@ protected:
void loadSettings();
void saveProjectDocumentationInfo();
- QCString startAssistant();
- void activateAssistantWindow(const QCString &ref);
- void callAssistant(const QCString &interface, const QCString &method);
- void callAssistant(const QCString &interface, const QCString &method, const QString &dataStr);
+ TQCString startAssistant();
+ void activateAssistantWindow(const TQCString &ref);
+ void callAssistant(const TQCString &interface, const TQCString &method);
+ void callAssistant(const TQCString &interface, const TQCString &method, const TQString &dataStr);
protected slots:
- void insertConfigWidget(const KDialogBase *dlg, QWidget *page, unsigned int pageNo);
- void contextMenu(QPopupMenu *popup, const Context *context);
+ void insertConfigWidget(const KDialogBase *dlg, TQWidget *page, unsigned int pageNo);
+ void contextMenu(TQPopupMenu *popup, const Context *context);
private slots:
void init();
private:
- QGuardedPtr<DocumentationWidget> m_widget;
+ TQGuardedPtr<DocumentationWidget> m_widget;
ConfigWidgetProxy *m_configProxy;
- QValueList<DocumentationPlugin*> m_plugins;
+ TQValueList<DocumentationPlugin*> m_plugins;
ProjectDocumentationPlugin *m_projectDocumentationPlugin;
ProjectDocumentationPlugin *m_userManualPlugin;
- QString m_contextStr;
+ TQString m_contextStr;
bool m_hasIndex;
bool m_assistantUsed;
diff --git a/parts/documentation/documentation_widget.cpp b/parts/documentation/documentation_widget.cpp
index 6a19e896..90cd6234 100644
--- a/parts/documentation/documentation_widget.cpp
+++ b/parts/documentation/documentation_widget.cpp
@@ -19,8 +19,8 @@
***************************************************************************/
#include "documentation_widget.h"
-#include <qlayout.h>
-#include <qtoolbox.h>
+#include <tqlayout.h>
+#include <tqtoolbox.h>
#include <klineedit.h>
#include <kparts/part.h>
@@ -42,11 +42,11 @@
#include "find_documentation.h"
DocumentationWidget::DocumentationWidget(DocumentationPart *part)
- :QWidget(0, "documentation widget"), m_part(part)
+ :TQWidget(0, "documentation widget"), m_part(part)
{
- QVBoxLayout *l = new QVBoxLayout(this, 0, 0);
+ TQVBoxLayout *l = new TQVBoxLayout(this, 0, 0);
- m_tab = new QToolBox(this);
+ m_tab = new TQToolBox(this);
l->addWidget(m_tab);
m_contents = new ContentsView(this);
@@ -64,7 +64,7 @@ DocumentationWidget::DocumentationWidget(DocumentationPart *part)
m_bookmarks = new BookmarkView(this);
m_tab->addItem(m_bookmarks, i18n("Bookmarks"));
- connect(m_tab, SIGNAL(currentChanged(int)), this, SLOT(tabChanged(int)));
+ connect(m_tab, TQT_SIGNAL(currentChanged(int)), this, TQT_SLOT(tabChanged(int)));
}
DocumentationWidget::~DocumentationWidget()
@@ -94,7 +94,7 @@ void DocumentationWidget::searchInDocumentation()
m_search->askSearchTerm();
}
-void DocumentationWidget::searchInDocumentation(const QString &term)
+void DocumentationWidget::searchInDocumentation(const TQString &term)
{
m_tab->setCurrentItem(m_search);
m_search->setSearchTerm(term);
@@ -107,7 +107,7 @@ void DocumentationWidget::lookInDocumentationIndex()
m_index->askSearchTerm();
}
-void DocumentationWidget::lookInDocumentationIndex(const QString &term)
+void DocumentationWidget::lookInDocumentationIndex(const TQString &term)
{
m_tab->setCurrentItem(m_index);
m_index->setSearchTerm(term);
@@ -115,7 +115,7 @@ void DocumentationWidget::lookInDocumentationIndex(const QString &term)
// m_index->searchInIndex();
}
-void DocumentationWidget::findInDocumentation(const QString &term)
+void DocumentationWidget::findInDocumentation(const TQString &term)
{
m_tab->setCurrentItem(m_finder);
m_finder->setSearchTerm(term);
@@ -128,7 +128,7 @@ void DocumentationWidget::findInDocumentation()
m_finder->search_term->setFocus();
}
-void DocumentationWidget::focusInEvent(QFocusEvent */*e*/)
+void DocumentationWidget::focusInEvent(TQFocusEvent */*e*/)
{
if (m_tab->currentItem())
m_tab->currentItem()->setFocus();
diff --git a/parts/documentation/documentation_widget.h b/parts/documentation/documentation_widget.h
index 0bc5fd4a..0043a78a 100644
--- a/parts/documentation/documentation_widget.h
+++ b/parts/documentation/documentation_widget.h
@@ -20,7 +20,7 @@
#ifndef __DOCUMENTATION_WIDGET_H__
#define __DOCUMENTATION_WIDGET_H__
-#include <qwidget.h>
+#include <tqwidget.h>
class FindDocumentation;
class KDevProject;
@@ -48,14 +48,14 @@ public:
public slots:
void lookInDocumentationIndex();
- void lookInDocumentationIndex(const QString &term);
+ void lookInDocumentationIndex(const TQString &term);
void searchInDocumentation();
- void searchInDocumentation(const QString &term);
+ void searchInDocumentation(const TQString &term);
void findInDocumentation();
- void findInDocumentation(const QString &term);
+ void findInDocumentation(const TQString &term);
protected:
- virtual void focusInEvent(QFocusEvent *e);
+ virtual void focusInEvent(TQFocusEvent *e);
protected slots:
void tabChanged(int t);
@@ -67,7 +67,7 @@ private:
SearchView *m_search;
BookmarkView *m_bookmarks;
FindDocumentation *m_finder;
- QToolBox *m_tab;
+ TQToolBox *m_tab;
friend class FindDocumentation;
};
diff --git a/parts/documentation/docutils.cpp b/parts/documentation/docutils.cpp
index f0a00e4e..79fa9915 100644
--- a/parts/documentation/docutils.cpp
+++ b/parts/documentation/docutils.cpp
@@ -32,21 +32,21 @@
#include "kdevdocumentationplugin.h"
#include "documentation_part.h"
-QString DocUtils::noEnvURL(const QString &url)
+TQString DocUtils::noEnvURL(const TQString &url)
{
return KURLCompletion::replacedPath(url, true, true);
}
KURL DocUtils::noEnvURL(const KURL &url)
{
- QString replaced = KURLCompletion::replacedPath(url.url(), true, true);
+ TQString replaced = KURLCompletion::replacedPath(url.url(), true, true);
KURL kurl(replaced);
kurl.setQuery(url.query());
kurl.setRef(url.ref());
return kurl;
}
-QString DocUtils::envURL(KURLRequester *req)
+TQString DocUtils::envURL(KURLRequester *req)
{
if (req->lineEdit())
return req->lineEdit()->text();
@@ -57,12 +57,12 @@ QString DocUtils::envURL(KURLRequester *req)
}
void DocUtils::docItemPopup(DocumentationPart *part, DocumentationItem *docItem,
- const QPoint &pos, bool showBookmark, bool showSearch, int titleCol)
+ const TQPoint &pos, bool showBookmark, bool showSearch, int titleCol)
{
docItemPopup(part, docItem->text(titleCol), docItem->url(), pos, showBookmark, showSearch);
}
-void DocUtils::docItemPopup(DocumentationPart *part, IndexItem *docItem, const QPoint &pos,
+void DocUtils::docItemPopup(DocumentationPart *part, IndexItem *docItem, const TQPoint &pos,
bool showBookmark, bool showSearch)
{
//FIXME: index item can have more than one url, what to do?
@@ -72,8 +72,8 @@ void DocUtils::docItemPopup(DocumentationPart *part, IndexItem *docItem, const Q
docItemPopup(part, docItem->text(), url, pos, showBookmark, showSearch);
}
-void DocUtils::docItemPopup(DocumentationPart *part, const QString &title, const KURL &url,
- const QPoint &pos, bool showBookmark, bool showSearch)
+void DocUtils::docItemPopup(DocumentationPart *part, const TQString &title, const KURL &url,
+ const TQPoint &pos, bool showBookmark, bool showSearch)
{
KPopupMenu menu;
menu.insertTitle(i18n("Documentation"));
@@ -87,7 +87,7 @@ void DocUtils::docItemPopup(DocumentationPart *part, const QString &title, const
if (showSearch)
{
menu.insertSeparator();
- menu.insertItem(QString("%1: %2").arg(i18n("Search")).arg(KStringHandler::csqueeze(title,20)), 4);
+ menu.insertItem(TQString("%1: %2").arg(i18n("Search")).arg(KStringHandler::csqueeze(title,20)), 4);
}
switch (menu.exec(pos))
diff --git a/parts/documentation/docutils.h b/parts/documentation/docutils.h
index b4870809..e4d93e1d 100644
--- a/parts/documentation/docutils.h
+++ b/parts/documentation/docutils.h
@@ -20,7 +20,7 @@
#ifndef DOC_UTILS_H
#define DOC_UTILS_H
-#include <qstring.h>
+#include <tqstring.h>
class KURLRequester;
class KPopupMenu;
@@ -34,18 +34,18 @@ namespace DocUtils{
/**Returns an url selected in KURLRequester but does not
resolve environment variables.*/
-QString envURL(KURLRequester *req);
+TQString envURL(KURLRequester *req);
/**Resolves environment variables in url.*/
-QString noEnvURL(const QString &url);
+TQString noEnvURL(const TQString &url);
/**Resolves environment variables in url.*/
KURL noEnvURL(const KURL &url);
-void docItemPopup(DocumentationPart *part, DocumentationItem *docItem, const QPoint &pos,
+void docItemPopup(DocumentationPart *part, DocumentationItem *docItem, const TQPoint &pos,
bool showBookmark = false, bool showSearch = false, int titleCol = 0);
-void docItemPopup(DocumentationPart *part, IndexItem *docItem, const QPoint &pos,
+void docItemPopup(DocumentationPart *part, IndexItem *docItem, const TQPoint &pos,
bool showBookmark = false, bool showSearch = false);
-void docItemPopup(DocumentationPart *part, const QString &title, const KURL &url,
- const QPoint &pos, bool showBookmark = false, bool showSearch = false);
+void docItemPopup(DocumentationPart *part, const TQString &title, const KURL &url,
+ const TQPoint &pos, bool showBookmark = false, bool showSearch = false);
}
#endif
diff --git a/parts/documentation/editcatalogdlg.cpp b/parts/documentation/editcatalogdlg.cpp
index 9e83a7ba..8bdc19d5 100644
--- a/parts/documentation/editcatalogdlg.cpp
+++ b/parts/documentation/editcatalogdlg.cpp
@@ -19,7 +19,7 @@
***************************************************************************/
#include "editcatalogdlg.h"
-#include <qlabel.h>
+#include <tqlabel.h>
#include <klineedit.h>
#include <kurlrequester.h>
@@ -28,7 +28,7 @@
#include "docutils.h"
#include "kdevdocumentationplugin.h"
-EditCatalogDlg::EditCatalogDlg(DocumentationPlugin *plugin, QWidget* parent,
+EditCatalogDlg::EditCatalogDlg(DocumentationPlugin *plugin, TQWidget* parent,
const char* name, bool modal, WFlags fl)
:EditCatalogBase(parent,name, modal,fl), m_plugin(plugin)
{
@@ -46,32 +46,32 @@ EditCatalogDlg::~EditCatalogDlg()
}
/*$SPECIALIZATION$*/
-void EditCatalogDlg::locationURLChanged(const QString &text)
+void EditCatalogDlg::locationURLChanged(const TQString &text)
{
titleEdit->setText(m_plugin->catalogTitle(DocUtils::noEnvURL(text)));
}
void EditCatalogDlg::accept()
{
- QDialog::accept();
+ TQDialog::accept();
}
-QString EditCatalogDlg::title() const
+TQString EditCatalogDlg::title() const
{
return titleEdit->text();
}
-QString EditCatalogDlg::url() const
+TQString EditCatalogDlg::url() const
{
return DocUtils::envURL(locationURL);
}
-void EditCatalogDlg::setTitle(const QString &title)
+void EditCatalogDlg::setTitle(const TQString &title)
{
titleEdit->setText(title);
}
-void EditCatalogDlg::setURL(const QString &url)
+void EditCatalogDlg::setURL(const TQString &url)
{
locationURL->setURL(url);
}
diff --git a/parts/documentation/editcatalogdlg.h b/parts/documentation/editcatalogdlg.h
index 7d31244c..f8f1fabf 100644
--- a/parts/documentation/editcatalogdlg.h
+++ b/parts/documentation/editcatalogdlg.h
@@ -29,18 +29,18 @@ class EditCatalogDlg : public EditCatalogBase
Q_OBJECT
public:
EditCatalogDlg(DocumentationPlugin *plugin,
- QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
+ TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~EditCatalogDlg();
/*$PUBLIC_FUNCTIONS$*/
- QString title() const;
- void setTitle(const QString &title);
- QString url() const;
- void setURL(const QString &url);
+ TQString title() const;
+ void setTitle(const TQString &title);
+ TQString url() const;
+ void setURL(const TQString &url);
public slots:
/*$PUBLIC_SLOTS$*/
- virtual void locationURLChanged(const QString &text);
+ virtual void locationURLChanged(const TQString &text);
protected:
/*$PROTECTED_FUNCTIONS$*/
diff --git a/parts/documentation/find_documentation.cpp b/parts/documentation/find_documentation.cpp
index 1ca9e81a..782ef467 100644
--- a/parts/documentation/find_documentation.cpp
+++ b/parts/documentation/find_documentation.cpp
@@ -20,10 +20,10 @@
#include "find_documentation.h"
#include <stdlib.h>
-#include <qcheckbox.h>
-#include <qheader.h>
-#include <qapplication.h>
-#include <qstringlist.h>
+#include <tqcheckbox.h>
+#include <tqheader.h>
+#include <tqapplication.h>
+#include <tqstringlist.h>
#include <klineedit.h>
#include <kprocess.h>
@@ -46,20 +46,20 @@ FindDocumentation::FindDocumentation(DocumentationWidget* parent, const char* na
man_item(0), info_item(0), index_item(0), google_item(0), contents_item(0),
last_item(0), m_widget(parent)
{
- QWidget* tmp = QApplication::desktop();
+ TQWidget* tmp = TQApplication::desktop();
setGeometry(tmp->width()/2 - width()/2, tmp->height()/2 - height()/2, width(), height());
proc_man = new KProcess( this );
proc_info = new KProcess( this );
- connect( proc_man, SIGNAL(processExited( KProcess* )),
- this, SLOT(procManExited( KProcess* )) );
- connect( proc_man, SIGNAL(receivedStdout( KProcess*, char*, int)),
- this, SLOT(procManReadStdout( KProcess*, char*, int)) );
+ connect( proc_man, TQT_SIGNAL(processExited( KProcess* )),
+ this, TQT_SLOT(procManExited( KProcess* )) );
+ connect( proc_man, TQT_SIGNAL(receivedStdout( KProcess*, char*, int)),
+ this, TQT_SLOT(procManReadStdout( KProcess*, char*, int)) );
- connect( proc_info, SIGNAL(processExited( KProcess* )),
- this, SLOT(procInfoExited( KProcess* )) );
- connect( proc_info, SIGNAL(receivedStdout( KProcess*, char*, int)),
- this, SLOT(procInfoReadStdout( KProcess*, char*, int)) );
+ connect( proc_info, TQT_SIGNAL(processExited( KProcess* )),
+ this, TQT_SLOT(procInfoExited( KProcess* )) );
+ connect( proc_info, TQT_SIGNAL(receivedStdout( KProcess*, char*, int)),
+ this, TQT_SLOT(procInfoReadStdout( KProcess*, char*, int)) );
result_list->header()->hide();
result_list->setSorting(-1);
@@ -72,7 +72,7 @@ FindDocumentation::~FindDocumentation()
}
/*$SPECIALIZATION$*/
-void FindDocumentation::buttonPressedOnItem( int button, QListViewItem * item, const QPoint & pos, int // c
+void FindDocumentation::buttonPressedOnItem( int button, TQListViewItem * item, const TQPoint & pos, int // c
)
{
if ((button != Qt::RightButton) || (!item))
@@ -84,7 +84,7 @@ void FindDocumentation::buttonPressedOnItem( int button, QListViewItem * item, c
DocUtils::docItemPopup(m_widget->part(), docItem->text(0), docItem->url(), pos, true, false);
}
-void FindDocumentation::clickOnItem( QListViewItem * item )
+void FindDocumentation::clickOnItem( TQListViewItem * item )
{
if(!item)
return;
@@ -106,8 +106,8 @@ void FindDocumentation::procInfoExited( KProcess* )
{
if (proc_info->normalExit() && proc_info->exitStatus() == 0)
{
- QStringList lines = QStringList::split("\n", proc_info_out);
- for( QStringList::const_iterator it = lines.begin(); it != lines.end(); ++it )
+ TQStringList lines = TQStringList::split("\n", proc_info_out);
+ for( TQStringList::const_iterator it = lines.begin(); it != lines.end(); ++it )
{
if( (*it) == "*")
break;
@@ -129,8 +129,8 @@ void FindDocumentation::procManExited( KProcess* )
{
if (proc_man->normalExit() && proc_man->exitStatus() == 0)
{
- QStringList lines = QStringList::split("\n", proc_man_out);
- for( QStringList::const_iterator it = lines.begin(); it != lines.end(); ++it )
+ TQStringList lines = TQStringList::split("\n", proc_man_out);
+ for( TQStringList::const_iterator it = lines.begin(); it != lines.end(); ++it )
{
DocumentationItem* newitem = new DocumentationItem(DocumentationItem::Document, man_item, search_term->text());
newitem->setURL(KURL("man://" + *it));
@@ -147,12 +147,12 @@ void FindDocumentation::procManExited( KProcess* )
void FindDocumentation::procInfoReadStdout( KProcess*, char* buf, int len)
{
- proc_info_out += QString::fromLatin1( buf, len );
+ proc_info_out += TQString::fromLatin1( buf, len );
}
void FindDocumentation::procManReadStdout( KProcess*, char* buf, int len)
{
- proc_man_out += QString::fromLatin1( buf, len );
+ proc_man_out += TQString::fromLatin1( buf, len );
}
void FindDocumentation::searchInInfo()
@@ -217,7 +217,7 @@ void FindDocumentation::searchInContents()
contents_item->setOpen(true);
last_item = contents_item;
- QListViewItemIterator it( m_widget->m_contents->m_view );
+ TQListViewItemIterator it( m_widget->m_contents->m_view );
while ( it.current() )
{
DocumentationItem *docItem = dynamic_cast<DocumentationItem*>(it.current());
@@ -266,7 +266,7 @@ void FindDocumentation::searchInIndex()
IndexItem::List urls = item->urls();
for (IndexItem::List::const_iterator it = urls.begin(); it != urls.end(); ++it)
{
- QString text = item->text();
+ TQString text = item->text();
if (urls.count() > 1)
text = (*it).first;
if(newitem)
@@ -299,19 +299,19 @@ void FindDocumentation::startSearch()
last_item = NULL;
first_match_found = false;
- QListViewItem* item = m_options->source_list->firstChild();
+ TQListViewItem* item = m_options->source_list->firstChild();
while ( item && ( !m_options->goto_first_match->isOn() || !first_match_found ))
{
- if ( m_options->isMan(dynamic_cast<QCheckListItem*>(item)) )
+ if ( m_options->isMan(dynamic_cast<TQCheckListItem*>(item)) )
searchInMan();
- else if ( m_options->isInfo(dynamic_cast<QCheckListItem*>(item)) )
+ else if ( m_options->isInfo(dynamic_cast<TQCheckListItem*>(item)) )
searchInInfo();
- else if ( m_options->isIndex(dynamic_cast<QCheckListItem*>(item)) )
+ else if ( m_options->isIndex(dynamic_cast<TQCheckListItem*>(item)) )
searchInIndex();
- else if ( m_options->isGoogle(dynamic_cast<QCheckListItem*>(item)) )
+ else if ( m_options->isGoogle(dynamic_cast<TQCheckListItem*>(item)) )
searchInGoogle();
- else if ( m_options->isContents(dynamic_cast<QCheckListItem*>(item)) )
+ else if ( m_options->isContents(dynamic_cast<TQCheckListItem*>(item)) )
searchInContents();
item = item->itemBelow();
@@ -325,20 +325,20 @@ void FindDocumentation::startSearch()
}
-void FindDocumentation::setSearchTerm( const QString & term )
+void FindDocumentation::setSearchTerm( const TQString & term )
{
search_term->setText(term);
}
void FindDocumentation::clickOptions()
{
- if( m_options->exec() == QDialog::Accepted )
+ if( m_options->exec() == TQDialog::Accepted )
m_options->writeOptions();
else
m_options->readOptions();
}
-void FindDocumentation::focusInEvent( QFocusEvent * // e
+void FindDocumentation::focusInEvent( TQFocusEvent * // e
)
{
search_term->setFocus();
diff --git a/parts/documentation/find_documentation.h b/parts/documentation/find_documentation.h
index c02e1249..0a9a3e0a 100644
--- a/parts/documentation/find_documentation.h
+++ b/parts/documentation/find_documentation.h
@@ -38,8 +38,8 @@ public:
public slots:
/*$PUBLIC_SLOTS$*/
- virtual void buttonPressedOnItem( int button, QListViewItem * item, const QPoint & pos, int c );
- virtual void clickOnItem( QListViewItem * item );
+ virtual void buttonPressedOnItem( int button, TQListViewItem * item, const TQPoint & pos, int c );
+ virtual void clickOnItem( TQListViewItem * item );
virtual void procInfoExited( KProcess* );
virtual void procManExited( KProcess* );
virtual void procManReadStdout( KProcess*, char*, int );
@@ -50,12 +50,12 @@ public slots:
virtual void searchInContents();
virtual void searchInIndex();
virtual void startSearch();
- virtual void setSearchTerm( const QString & term );
+ virtual void setSearchTerm( const TQString & term );
virtual void clickOptions();
protected:
/*$PROTECTED_FUNCTIONS$*/
- virtual void focusInEvent(QFocusEvent *e);
+ virtual void focusInEvent(TQFocusEvent *e);
protected slots:
/*$PROTECTED_SLOTS$*/
@@ -63,8 +63,8 @@ protected slots:
private:
KProcess* proc_man;
KProcess* proc_info;
- QString proc_man_out;
- QString proc_info_out;
+ TQString proc_man_out;
+ TQString proc_info_out;
KListViewItem* man_item;
KListViewItem* info_item;
KListViewItem* index_item;
diff --git a/parts/documentation/find_documentation_options.cpp b/parts/documentation/find_documentation_options.cpp
index 68f37791..df04ca81 100644
--- a/parts/documentation/find_documentation_options.cpp
+++ b/parts/documentation/find_documentation_options.cpp
@@ -19,8 +19,8 @@
***************************************************************************/
#include "find_documentation_options.h"
-#include <qheader.h>
-#include <qcheckbox.h>
+#include <tqheader.h>
+#include <tqcheckbox.h>
#include <klistview.h>
#include <klocale.h>
@@ -28,7 +28,7 @@
#include <kconfig.h>
#include <kapplication.h>
-FindDocumentationOptions::FindDocumentationOptions(QWidget* parent, const char* name, bool modal)
+FindDocumentationOptions::FindDocumentationOptions(TQWidget* parent, const char* name, bool modal)
:FindDocumentationOptionsBase(parent,name, modal),
m_man_item(0), m_info_item(0), m_index_item(0), m_google_item(0), m_contents_item(0)
{
@@ -43,7 +43,7 @@ FindDocumentationOptions::~FindDocumentationOptions()
}
/*$SPECIALIZATION$*/
-bool FindDocumentationOptions::isContents( QCheckListItem * item )
+bool FindDocumentationOptions::isContents( TQCheckListItem * item )
{
if ( item == m_contents_item && m_contents_item->isOn() )
return true;
@@ -51,7 +51,7 @@ bool FindDocumentationOptions::isContents( QCheckListItem * item )
return false;
}
-bool FindDocumentationOptions::isGoogle( QCheckListItem * item )
+bool FindDocumentationOptions::isGoogle( TQCheckListItem * item )
{
if ( item == m_google_item && m_google_item->isOn() )
return true;
@@ -59,7 +59,7 @@ bool FindDocumentationOptions::isGoogle( QCheckListItem * item )
return false;
}
-bool FindDocumentationOptions::isIndex( QCheckListItem * item )
+bool FindDocumentationOptions::isIndex( TQCheckListItem * item )
{
if ( item == m_index_item && m_index_item->isOn() )
return true;
@@ -67,7 +67,7 @@ bool FindDocumentationOptions::isIndex( QCheckListItem * item )
return false;
}
-bool FindDocumentationOptions::isInfo( QCheckListItem * item )
+bool FindDocumentationOptions::isInfo( TQCheckListItem * item )
{
if ( item == m_info_item && m_info_item->isOn() )
return true;
@@ -75,7 +75,7 @@ bool FindDocumentationOptions::isInfo( QCheckListItem * item )
return false;
}
-bool FindDocumentationOptions::isMan( QCheckListItem * item )
+bool FindDocumentationOptions::isMan( TQCheckListItem * item )
{
if ( item == m_man_item && m_man_item->isOn() )
return true;
@@ -100,7 +100,7 @@ void FindDocumentationOptions::sourceMoveUp()
if (source_list->currentItem() == source_list->firstChild())
return;
- QListViewItem *item = source_list->firstChild();
+ TQListViewItem *item = source_list->firstChild();
while (item->nextSibling() != source_list->currentItem())
item = item->nextSibling();
item->moveItem( source_list->currentItem());
@@ -113,7 +113,7 @@ void FindDocumentationOptions::writeOptions()
config->writeEntry("goto_first_match", goto_first_match->isChecked());
- QListViewItemIterator it( source_list );
+ TQListViewItemIterator it( source_list );
int i = 0;
while ( it.current() )
{
@@ -160,27 +160,27 @@ void FindDocumentationOptions::readOptions()
{
if( config->readPropertyEntry( "Manpage" , 0 ) == i)
{
- m_man_item = new QCheckListItem( source_list, i18n("Manual"), QCheckListItem::CheckBox );
+ m_man_item = new TQCheckListItem( source_list, i18n("Manual"), TQCheckListItem::CheckBox );
m_man_item->setOn(config->readBoolEntry( "ManpageEnabled" , true));
}
if( config->readPropertyEntry( "Info" , 1 ) == i)
{
- m_info_item = new QCheckListItem( source_list, i18n("Info"), QCheckListItem::CheckBox );
+ m_info_item = new TQCheckListItem( source_list, i18n("Info"), TQCheckListItem::CheckBox );
m_info_item->setOn(config->readBoolEntry( "InfoEnabled" , true));
}
if( config->readPropertyEntry( "Index" , 2 ) == i)
{
- m_index_item = new QCheckListItem( source_list, i18n("Index"), QCheckListItem::CheckBox );
+ m_index_item = new TQCheckListItem( source_list, i18n("Index"), TQCheckListItem::CheckBox );
m_index_item->setOn(config->readBoolEntry( "IndexEnabled" , true));
}
if( config->readPropertyEntry( "Google" , 3 ) == i)
{
- m_google_item = new QCheckListItem( source_list, i18n("Google"), QCheckListItem::CheckBox );
+ m_google_item = new TQCheckListItem( source_list, i18n("Google"), TQCheckListItem::CheckBox );
m_google_item->setOn(config->readBoolEntry( "GoogleEnabled" , false));
}
if( config->readPropertyEntry( "Contents" , 4 ) == i)
{
- m_contents_item = new QCheckListItem( source_list, i18n("Contents"), QCheckListItem::CheckBox );
+ m_contents_item = new TQCheckListItem( source_list, i18n("Contents"), TQCheckListItem::CheckBox );
m_contents_item->setOn(config->readBoolEntry( "ContentsEnabled" , false));
}
}
diff --git a/parts/documentation/find_documentation_options.h b/parts/documentation/find_documentation_options.h
index e3da05be..c67206cb 100644
--- a/parts/documentation/find_documentation_options.h
+++ b/parts/documentation/find_documentation_options.h
@@ -30,14 +30,14 @@ class FindDocumentationOptions : public FindDocumentationOptionsBase
{
Q_OBJECT
public:
- FindDocumentationOptions(QWidget* parent = 0, const char* name = 0, bool modal = FALSE);
+ FindDocumentationOptions(TQWidget* parent = 0, const char* name = 0, bool modal = FALSE);
~FindDocumentationOptions();
/*$PUBLIC_FUNCTIONS$*/
- virtual bool isContents( QCheckListItem * item );
- virtual bool isGoogle( QCheckListItem * item );
- virtual bool isIndex( QCheckListItem * item );
- virtual bool isInfo( QCheckListItem * item );
- virtual bool isMan( QCheckListItem * item );
+ virtual bool isContents( TQCheckListItem * item );
+ virtual bool isGoogle( TQCheckListItem * item );
+ virtual bool isIndex( TQCheckListItem * item );
+ virtual bool isInfo( TQCheckListItem * item );
+ virtual bool isMan( TQCheckListItem * item );
public slots:
/*$PUBLIC_SLOTS$*/
@@ -53,11 +53,11 @@ protected slots:
/*$PROTECTED_SLOTS$*/
private:
- QCheckListItem *m_man_item;
- QCheckListItem *m_info_item;
- QCheckListItem *m_index_item;
- QCheckListItem *m_google_item;
- QCheckListItem *m_contents_item;
+ TQCheckListItem *m_man_item;
+ TQCheckListItem *m_info_item;
+ TQCheckListItem *m_index_item;
+ TQCheckListItem *m_google_item;
+ TQCheckListItem *m_contents_item;
KConfig* config;
};
diff --git a/parts/documentation/indexview.cpp b/parts/documentation/indexview.cpp
index 29f0d9d5..6a7eddcf 100644
--- a/parts/documentation/indexview.cpp
+++ b/parts/documentation/indexview.cpp
@@ -19,10 +19,10 @@
***************************************************************************/
#include "indexview.h"
-#include <qapplication.h>
-#include <qevent.h>
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqapplication.h>
+#include <tqevent.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
#include <klineedit.h>
#include <kiconloader.h>
@@ -39,24 +39,24 @@
#include "documentation_widget.h"
IndexView::IndexView(DocumentationWidget *parent, const char *name)
- :QWidget(parent, name), m_widget(parent)
+ :TQWidget(parent, name), m_widget(parent)
{
- QVBoxLayout *l = new QVBoxLayout(this, 0, 0);
+ TQVBoxLayout *l = new TQVBoxLayout(this, 0, 0);
- QHBoxLayout *hl = new QHBoxLayout(this, 0, 0);
+ TQHBoxLayout *hl = new TQHBoxLayout(this, 0, 0);
m_edit = new KLineEdit(this);
- hl->addWidget(new QLabel(m_edit, i18n("&Look for:"), this));
+ hl->addWidget(new TQLabel(m_edit, i18n("&Look for:"), this));
hl->addWidget(m_edit);
l->addLayout(hl);
m_index = new IndexBox(this);
l->addWidget(m_index);
- connect(m_index, SIGNAL(executed(QListBoxItem* )), this, SLOT(searchInIndex(QListBoxItem* )));
- connect(m_index, SIGNAL(mouseButtonPressed(int, QListBoxItem*, const QPoint& )),
- this, SLOT(itemMouseButtonPressed(int, QListBoxItem*, const QPoint& )));
- connect(m_edit, SIGNAL(returnPressed()), this, SLOT(searchInIndex()));
- connect(m_edit, SIGNAL(textChanged(const QString&)), this, SLOT(showIndex(const QString&)));
+ connect(m_index, TQT_SIGNAL(executed(TQListBoxItem* )), this, TQT_SLOT(searchInIndex(TQListBoxItem* )));
+ connect(m_index, TQT_SIGNAL(mouseButtonPressed(int, TQListBoxItem*, const TQPoint& )),
+ this, TQT_SLOT(itemMouseButtonPressed(int, TQListBoxItem*, const TQPoint& )));
+ connect(m_edit, TQT_SIGNAL(returnPressed()), this, TQT_SLOT(searchInIndex()));
+ connect(m_edit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(showIndex(const TQString&)));
m_edit->installEventFilter(this);
}
@@ -71,7 +71,7 @@ void IndexView::searchInIndex()
searchInIndex(m_index->item(m_index->currentItem()));
}
-void IndexView::searchInIndex(QListBoxItem *item)
+void IndexView::searchInIndex(TQListBoxItem *item)
{
kdDebug() << "IndexView::searchInIndex" << endl;
IndexItem *indexItem = dynamic_cast<IndexItem*>(item);
@@ -92,13 +92,13 @@ void IndexView::searchInIndex(QListBoxItem *item)
}
}
-void IndexView::showIndex(const QString &term)
+void IndexView::showIndex(const TQString &term)
{
- QListBoxItem *i = m_index->firstItem();
- QString sl = term.lower();
+ TQListBoxItem *i = m_index->firstItem();
+ TQString sl = term.lower();
while (i)
{
- QString t = i->text();
+ TQString t = i->text();
if ((t.length() >= sl.length()) && (i->text().left(term.length()).lower() == sl))
{
m_index->setCurrentItem(i);
@@ -118,14 +118,14 @@ void IndexView::showIndex(const QString &term)
}*/
}
-bool IndexView::eventFilter(QObject *watched, QEvent *e)
+bool IndexView::eventFilter(TQObject *watched, TQEvent *e)
{
if (!watched || !e)
return true;
- if ((watched == m_edit) && (e->type() == QEvent::KeyPress))
+ if ((watched == m_edit) && (e->type() == TQEvent::KeyPress))
{
- QKeyEvent *ke = (QKeyEvent*)e;
+ TQKeyEvent *ke = (TQKeyEvent*)e;
if (ke->key() == Key_Up)
{
int i = m_index->currentItem();
@@ -150,17 +150,17 @@ bool IndexView::eventFilter(QObject *watched, QEvent *e)
return true;
} else if ((ke->key() == Key_Next) || (ke->key() == Key_Prior))
{
- QApplication::sendEvent(m_index, e);
+ TQApplication::sendEvent(m_index, e);
m_edit->blockSignals(true);
m_edit->setText(m_index->currentText());
m_edit->blockSignals(false);
}
}
- return QWidget::eventFilter(watched, e);
+ return TQWidget::eventFilter(watched, e);
}
-void IndexView::itemMouseButtonPressed(int button, QListBoxItem *item, const QPoint &pos)
+void IndexView::itemMouseButtonPressed(int button, TQListBoxItem *item, const TQPoint &pos)
{
if ((button != Qt::RightButton) || (!item))
return;
@@ -171,7 +171,7 @@ void IndexView::itemMouseButtonPressed(int button, QListBoxItem *item, const QPo
DocUtils::docItemPopup(m_widget->part(), docItem, pos, false, true);
}
-void IndexView::setSearchTerm(const QString &term)
+void IndexView::setSearchTerm(const TQString &term)
{
m_edit->setFocus();
m_edit->setText(term);
@@ -182,7 +182,7 @@ void IndexView::askSearchTerm( )
m_edit->setFocus();
}
-void IndexView::focusInEvent(QFocusEvent */*e*/)
+void IndexView::focusInEvent(TQFocusEvent */*e*/)
{
m_edit->setFocus();
}
diff --git a/parts/documentation/indexview.h b/parts/documentation/indexview.h
index 4a2f336a..af403891 100644
--- a/parts/documentation/indexview.h
+++ b/parts/documentation/indexview.h
@@ -20,7 +20,7 @@
#ifndef INDEXVIEW_H
#define INDEXVIEW_H
-#include <qwidget.h>
+#include <tqwidget.h>
class IndexBox;
class KLineEdit;
@@ -35,22 +35,22 @@ public:
IndexView(DocumentationWidget *parent = 0, const char *name = 0);
~IndexView();
- virtual bool eventFilter(QObject *watched, QEvent *e);
+ virtual bool eventFilter(TQObject *watched, TQEvent *e);
IndexBox *indexBox() const { return m_index; }
public slots:
void searchInIndex();
- void setSearchTerm(const QString &term);
+ void setSearchTerm(const TQString &term);
void askSearchTerm();
protected slots:
- void searchInIndex(QListBoxItem *item);
- void showIndex(const QString &term);
+ void searchInIndex(TQListBoxItem *item);
+ void showIndex(const TQString &term);
- void itemMouseButtonPressed(int button, QListBoxItem *item, const QPoint &pos);
+ void itemMouseButtonPressed(int button, TQListBoxItem *item, const TQPoint &pos);
protected:
- virtual void focusInEvent(QFocusEvent *e);
+ virtual void focusInEvent(TQFocusEvent *e);
private:
DocumentationWidget *m_widget;
diff --git a/parts/documentation/interfaces/kdevdocumentationplugin.cpp b/parts/documentation/interfaces/kdevdocumentationplugin.cpp
index fc63d9e8..3364f71a 100644
--- a/parts/documentation/interfaces/kdevdocumentationplugin.cpp
+++ b/parts/documentation/interfaces/kdevdocumentationplugin.cpp
@@ -18,11 +18,11 @@
*/
#include "kdevdocumentationplugin.h"
-#include <qfile.h>
-#include <qpainter.h>
-#include <qstyle.h>
-#include <qheader.h>
-#include <qtextstream.h>
+#include <tqfile.h>
+#include <tqpainter.h>
+#include <tqstyle.h>
+#include <tqheader.h>
+#include <tqtextstream.h>
#include <kstandarddirs.h>
#include <kiconloader.h>
@@ -34,28 +34,28 @@
//class DocumentationItem
DocumentationItem::DocumentationItem(DocumentationItem::Type type, KListView *parent,
- const QString &name)
+ const TQString &name)
:KListViewItem(parent, name), m_type(type)
{
init();
}
DocumentationItem::DocumentationItem(DocumentationItem::Type type, KListViewItem *parent,
- const QString &name)
+ const TQString &name)
:KListViewItem(parent, name), m_type(type)
{
init();
}
DocumentationItem::DocumentationItem(DocumentationItem::Type type, KListView *parent,
- KListViewItem *after, const QString &name)
+ KListViewItem *after, const TQString &name)
:KListViewItem(parent, after, name), m_type(type)
{
init();
}
DocumentationItem::DocumentationItem(DocumentationItem::Type type, KListViewItem * parent,
- KListViewItem * after, const QString & name )
+ KListViewItem * after, const TQString & name )
:KListViewItem(parent, after, name), m_type(type)
{
init();
@@ -64,7 +64,7 @@ DocumentationItem::DocumentationItem(DocumentationItem::Type type, KListViewItem
void DocumentationItem::init( )
{
- QString icon;
+ TQString icon;
switch (m_type)
{
@@ -90,7 +90,7 @@ void DocumentationItem::init( )
DocumentationCatalogItem::DocumentationCatalogItem(DocumentationPlugin* plugin,
- KListView *parent, const QString &name)
+ KListView *parent, const TQString &name)
:DocumentationItem(DocumentationItem::Catalog, parent, name), m_plugin(plugin),
isLoaded(false), isActivated(false), m_isProjectDocumentationItem(false)
{
@@ -99,7 +99,7 @@ DocumentationCatalogItem::DocumentationCatalogItem(DocumentationPlugin* plugin,
}
DocumentationCatalogItem::DocumentationCatalogItem(DocumentationPlugin* plugin,
- DocumentationItem *parent, const QString &name)
+ DocumentationItem *parent, const TQString &name)
:DocumentationItem(DocumentationItem::Catalog, parent, name), m_plugin(plugin),
isLoaded(false), isActivated(false), m_isProjectDocumentationItem(false)
{
@@ -146,7 +146,7 @@ void DocumentationCatalogItem::activate()
//class IndexItemProto
IndexItemProto::IndexItemProto(DocumentationPlugin *plugin, DocumentationCatalogItem *catalog,
- IndexBox *listbox, const QString &text, const QString &description)
+ IndexBox *listbox, const TQString &text, const TQString &description)
: m_listbox(listbox), m_text(text), m_description(description)
{
plugin->indexes[catalog].append(this);
@@ -161,16 +161,16 @@ IndexItemProto::~IndexItemProto()
//class IndexItem
-IndexItem::IndexItem(IndexBox *listbox, const QString &text)
- :QListBoxText(listbox, text), m_listbox(listbox)
+IndexItem::IndexItem(IndexBox *listbox, const TQString &text)
+ :TQListBoxText(listbox, text), m_listbox(listbox)
{
}
IndexItem::List IndexItem::urls() const
{
List urlList;
- QValueList<IndexItemProto*> itemProtos = m_listbox->items[text()];
- for (QValueList<IndexItemProto*>::const_iterator it = itemProtos.begin();
+ TQValueList<IndexItemProto*> itemProtos = m_listbox->items[text()];
+ for (TQValueList<IndexItemProto*>::const_iterator it = itemProtos.begin();
it != itemProtos.end(); ++it)
urlList.append(qMakePair((*it)->description(), (*it)->url()));
return urlList;
@@ -181,9 +181,9 @@ IndexItem::List IndexItem::urls() const
//class ConfigurationItem
-ConfigurationItem::ConfigurationItem(QListView *parent, DocumentationPlugin * plugin, const QString &title, const QString &url,
+ConfigurationItem::ConfigurationItem(TQListView *parent, DocumentationPlugin * plugin, const TQString &title, const TQString &url,
bool indexPossible, bool fullTextSearchPossible)
- :QCheckListItem(parent, "", QCheckListItem::CheckBox), m_title(title), m_url(url),
+ :TQCheckListItem(parent, "", TQCheckListItem::CheckBox), m_title(title), m_url(url),
m_origTitle(title), m_contents(true), m_index(false), m_fullTextSearch(false),
m_indexPossible(indexPossible), m_fullTextSearchPossible(fullTextSearchPossible),
m_docPlugin( plugin )
@@ -192,7 +192,7 @@ ConfigurationItem::ConfigurationItem(QListView *parent, DocumentationPlugin * pl
setText(4, m_url);
}
-void ConfigurationItem::paintCell(QPainter *p, const QColorGroup &cg, int column,
+void ConfigurationItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column,
int width, int align)
{
if ( (column == 0) || (column == 1) || (column == 2) )
@@ -200,25 +200,25 @@ void ConfigurationItem::paintCell(QPainter *p, const QColorGroup &cg, int column
if ( !p )
return;
- QListView *lv = listView();
+ TQListView *lv = listView();
if ( !lv )
return;
const BackgroundMode bgmode = lv->viewport()->backgroundMode();
- const QColorGroup::ColorRole crole = QPalette::backgroundRoleFromMode( bgmode );
+ const TQColorGroup::ColorRole crole = TQPalette::backgroundRoleFromMode( bgmode );
p->fillRect(0, 0, width, height(), cg.brush(crole));
- QFontMetrics fm(lv->fontMetrics());
- int boxsize = lv->style().pixelMetric(QStyle::PM_CheckListButtonSize, lv);
+ TQFontMetrics fm(lv->fontMetrics());
+ int boxsize = lv->style().pixelMetric(TQStyle::PM_CheckListButtonSize, lv);
int marg = lv->itemMargin();
- int styleflags = QStyle::Style_Default;
+ int styleflags = TQStyle::Style_Default;
if (((column == 0) && m_contents) || ((column == 1) && m_index) || ((column == 2) && m_fullTextSearch))
- styleflags |= QStyle::Style_On;
+ styleflags |= TQStyle::Style_On;
else
- styleflags |= QStyle::Style_Off;
+ styleflags |= TQStyle::Style_Off;
if ((column == 0) || ((column == 1) && m_indexPossible) || ((column == 2) && m_fullTextSearchPossible))
- styleflags |= QStyle::Style_Enabled;
+ styleflags |= TQStyle::Style_Enabled;
int x = 0;
int y = 0;
@@ -228,20 +228,20 @@ void ConfigurationItem::paintCell(QPainter *p, const QColorGroup &cg, int column
else
y = (fm.height() + 2 + marg - boxsize) / 2;
- QStyleOption opt(this);
- lv->style().drawPrimitive(QStyle::PE_CheckListIndicator, p,
- QRect(x, y, boxsize, fm.height() + 2 + marg), cg, styleflags, opt);
+ TQStyleOption opt(this);
+ lv->style().drawPrimitive(TQStyle::PE_CheckListIndicator, p,
+ TQRect(x, y, boxsize, fm.height() + 2 + marg), cg, styleflags, opt);
return;
}
- QListViewItem::paintCell(p, cg, column, width, align);
+ TQListViewItem::paintCell(p, cg, column, width, align);
}
-int ConfigurationItem::width(const QFontMetrics &fm, const QListView *lv, int c) const
+int ConfigurationItem::width(const TQFontMetrics &fm, const TQListView *lv, int c) const
{
if ((c == 0) || (c == 1) || (c == 2))
- return lv->style().pixelMetric(QStyle::PM_CheckListButtonSize, lv) + 4;
- return QListViewItem::width(fm, lv, c);
+ return lv->style().pixelMetric(TQStyle::PM_CheckListButtonSize, lv) + 4;
+ return TQListViewItem::width(fm, lv, c);
}
@@ -253,8 +253,8 @@ int ConfigurationItem::width(const QFontMetrics &fm, const QListView *lv, int c)
//class DocumentationPlugin
-DocumentationPlugin::DocumentationPlugin(KConfig *pluginConfig, QObject *parent, const char *name)
- :QObject(parent, name), config(pluginConfig), m_indexCreated(false)
+DocumentationPlugin::DocumentationPlugin(KConfig *pluginConfig, TQObject *parent, const char *name)
+ :TQObject(parent, name), config(pluginConfig), m_indexCreated(false)
{
}
@@ -277,7 +277,7 @@ void DocumentationPlugin::autoSetup()
void DocumentationPlugin::reload()
{
clear();
- for (QValueList<DocumentationCatalogItem *>::iterator it = catalogs.begin();
+ for (TQValueList<DocumentationCatalogItem *>::iterator it = catalogs.begin();
it != catalogs.end(); ++it)
{
createTOC(*it);
@@ -286,7 +286,7 @@ void DocumentationPlugin::reload()
void DocumentationPlugin::clear()
{
- for (QValueList<DocumentationCatalogItem *>::iterator it = catalogs.begin();
+ for (TQValueList<DocumentationCatalogItem *>::iterator it = catalogs.begin();
it != catalogs.end(); ++it)
{
clearCatalog(*it);
@@ -296,7 +296,7 @@ void DocumentationPlugin::clear()
void DocumentationPlugin::clearCatalog(DocumentationCatalogItem *item)
{
//clear named catalog map
- for (QMap<QString, DocumentationCatalogItem*>::iterator it = namedCatalogs.begin();
+ for (TQMap<TQString, DocumentationCatalogItem*>::iterator it = namedCatalogs.begin();
it != namedCatalogs.end(); ++it)
{
if (it.data() == item)
@@ -306,8 +306,8 @@ void DocumentationPlugin::clearCatalog(DocumentationCatalogItem *item)
}
}
//clear indexes for catalog
- QValueList<IndexItemProto *> idx = indexes[item];
- for (QValueList<IndexItemProto *>::iterator it = idx.begin(); it != idx.end(); ++it)
+ TQValueList<IndexItemProto *> idx = indexes[item];
+ for (TQValueList<IndexItemProto *>::iterator it = idx.begin(); it != idx.end(); ++it)
{
delete *it;
}
@@ -322,7 +322,7 @@ void DocumentationPlugin::createIndex(IndexBox *index)
if (m_indexCreated)
return;
- for (QValueList<DocumentationCatalogItem *>::iterator it = catalogs.begin();
+ for (TQValueList<DocumentationCatalogItem *>::iterator it = catalogs.begin();
it != catalogs.end(); ++it)
{
loadIndex(index, *it);
@@ -334,17 +334,17 @@ void DocumentationPlugin::cacheIndex(DocumentationCatalogItem *item)
{
kdDebug() << "Creating index cache for " << item->text(0) << endl;
- QString cacheName = locateLocal("data", QString("kdevdocumentation/index/cache_") + item->text(0));
- QFile cacheFile(cacheName);
+ TQString cacheName = locateLocal("data", TQString("kdevdocumentation/index/cache_") + item->text(0));
+ TQFile cacheFile(cacheName);
if (!cacheFile.open(IO_WriteOnly))
return;
- QTextStream str(&cacheFile);
- str.setEncoding(QTextStream::Unicode);
+ TQTextStream str(&cacheFile);
+ str.setEncoding(TQTextStream::Unicode);
str << CACHE_VERSION << endl;
- QValueList<IndexItemProto*> catalogIndexes = indexes[item];
- for (QValueList<IndexItemProto*>::const_iterator it = catalogIndexes.constBegin();
+ TQValueList<IndexItemProto*> catalogIndexes = indexes[item];
+ for (TQValueList<IndexItemProto*>::const_iterator it = catalogIndexes.constBegin();
it != catalogIndexes.constEnd(); ++it)
{
str << (*it)->text() << endl;
@@ -357,26 +357,26 @@ void DocumentationPlugin::cacheIndex(DocumentationCatalogItem *item)
bool DocumentationPlugin::loadCachedIndex(IndexBox *index, DocumentationCatalogItem *item)
{
- QString cacheName = locateLocal("data", QString("kdevdocumentation/index/cache_") + item->cacheVersion() + item->text(0));
- QFile cacheFile(cacheName);
+ TQString cacheName = locateLocal("data", TQString("kdevdocumentation/index/cache_") + item->cacheVersion() + item->text(0));
+ TQFile cacheFile(cacheName);
if (!cacheFile.open(IO_ReadOnly))
return false;
kdDebug() << "Using cached index for item: " << item->text(0) << endl;
- QTextStream str(&cacheFile);
- str.setEncoding(QTextStream::Unicode);
- QString cache = str.read();
- QStringList cacheList = QStringList::split("\n", cache, true);
- QString ver = cacheList.first();
+ TQTextStream str(&cacheFile);
+ str.setEncoding(TQTextStream::Unicode);
+ TQString cache = str.read();
+ TQStringList cacheList = TQStringList::split("\n", cache, true);
+ TQString ver = cacheList.first();
if (ver != CACHE_VERSION)
{
kdDebug() << "Wrong cache version: " << ver << endl;
return false;
}
- QStringList::const_iterator it = cacheList.begin();
+ TQStringList::const_iterator it = cacheList.begin();
it++;
- QString s[3]; int c = 0;
+ TQString s[3]; int c = 0;
for (; it != cacheList.end(); ++it)
{
s[c] = *it;
@@ -397,18 +397,18 @@ void DocumentationPlugin::addCatalog(DocumentationCatalogItem *item)
{
catalogs.append(item);
namedCatalogs[item->text(0)] = item;
-// indexes[item] = QValueList<IndexItem*>();
+// indexes[item] = TQValueList<IndexItem*>();
}
void DocumentationPlugin::addCatalogConfiguration(KListView *configurationView,
- const QString &title, const QString &url)
+ const TQString &title, const TQString &url)
{
new ConfigurationItem(configurationView, this, title, url,
hasCapability(Index), hasCapability(FullTextSearch));
}
void DocumentationPlugin::editCatalogConfiguration(ConfigurationItem *configurationItem,
- const QString &title, const QString &url)
+ const TQString &title, const TQString &url)
{
configurationItem->setTitle(title);
configurationItem->setURL(url);
@@ -422,8 +422,8 @@ void DocumentationPlugin::deleteCatalogConfiguration(const ConfigurationItem *co
void DocumentationPlugin::clearCatalogIndex(DocumentationCatalogItem *item)
{
//clear indexes for catalog
- QValueList<IndexItemProto *> idx = indexes[item];
- for (QValueList<IndexItemProto *>::iterator it = idx.begin(); it != idx.end(); ++it)
+ TQValueList<IndexItemProto *> idx = indexes[item];
+ for (TQValueList<IndexItemProto *>::iterator it = idx.begin(); it != idx.end(); ++it)
{
delete *it;
}
@@ -443,9 +443,9 @@ void DocumentationPlugin::loadIndex(IndexBox *index, DocumentationCatalogItem *i
void DocumentationPlugin::init(KListView *contents)
{
config->setGroup("Locations");
- QMap<QString, QString> entryMap = config->entryMap("Locations");
+ TQMap<TQString, TQString> entryMap = config->entryMap("Locations");
- for (QMap<QString, QString>::const_iterator it = entryMap.begin();
+ for (TQMap<TQString, TQString>::const_iterator it = entryMap.begin();
it != entryMap.end(); ++it)
{
if (catalogEnabled(it.key()))
@@ -453,13 +453,13 @@ void DocumentationPlugin::init(KListView *contents)
}
}
-void DocumentationPlugin::reinit(KListView *contents, IndexBox *index, QStringList restrictions)
+void DocumentationPlugin::reinit(KListView *contents, IndexBox *index, TQStringList restrictions)
{
config->setGroup("Locations");
- QMap<QSt