From c0b24fe164924298d7e6ae33964b3c65fadbcba3 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 27 Jan 2013 01:06:29 -0600 Subject: Rename a number of libraries and executables to avoid conflicts with KDE4 --- ChangeLog | 8 +- Doxyfile | 2 +- buildtools/ada/adaglobaloptionsdlg.cpp | 2 +- buildtools/ada/adaproject_part.cpp | 2 +- buildtools/autotools/CMakeLists.txt | 2 +- buildtools/autotools/Makefile.am | 2 +- buildtools/autotools/addexistingdirectoriesdlg.cpp | 2 +- buildtools/autotools/addexistingdirectoriesdlg.h | 2 +- buildtools/autotools/addexistingfilesdlg.cpp | 2 +- buildtools/autotools/addexistingfilesdlg.h | 2 +- buildtools/autotools/addprefixdlg.cpp | 2 +- buildtools/autotools/addsubprojectdlg.cpp | 2 +- buildtools/autotools/autoprojectpart.cpp | 2 +- buildtools/autotools/autoprojectwidget.cpp | 4 +- buildtools/autotools/configureoptionswidget.cpp | 2 +- buildtools/autotools/fileselectorwidget.cpp | 12 +- buildtools/autotools/fileselectorwidget.h | 6 +- buildtools/autotools/kfilednddetailview.cpp | 212 -------- buildtools/autotools/kfilednddetailview.h | 137 ----- buildtools/autotools/kfiledndiconview.cpp | 194 ------- buildtools/autotools/kfiledndiconview.h | 129 ----- buildtools/autotools/kimporticonview.h | 2 +- buildtools/autotools/subprojectoptionsdlg.cpp | 2 +- buildtools/autotools/targetoptionsdlg.cpp | 2 +- buildtools/autotools/tdefilednddetailview.cpp | 212 ++++++++ buildtools/autotools/tdefilednddetailview.h | 137 +++++ buildtools/autotools/tdefiledndiconview.cpp | 194 +++++++ buildtools/autotools/tdefiledndiconview.h | 129 +++++ .../custommakefiles/custombuildoptionswidget.cpp | 2 +- buildtools/custommakefiles/custommanagerwidget.cpp | 2 +- buildtools/custommakefiles/customprojectpart.cpp | 2 +- .../lib/parsers/autotools/autotoolsdriver.cpp | 2 +- buildtools/lib/parsers/qmake/CMakeLists.txt | 2 +- buildtools/lib/parsers/qmake/qmakedriver.cpp | 2 +- buildtools/lib/widgets/addfilesdialog.h | 2 +- buildtools/lib/widgets/runoptionswidget.cpp | 2 +- buildtools/pascal/pascalglobaloptionsdlg.cpp | 2 +- buildtools/pascal/pascalproject_part.cpp | 2 +- buildtools/qmake/createscopedlg.cpp | 4 +- buildtools/qmake/newwidgetdlg.cpp | 2 +- buildtools/qmake/projectconfigurationdlg.cpp | 2 +- buildtools/qmake/trollprojectpart.cpp | 4 +- buildtools/qmake/trollprojectwidget.cpp | 4 +- doc/kde_app_devel/index.docbook | 2 +- doc/kdearch/index.docbook | 54 +- doc/tdevelop/tdevelop-install.docbook | 10 +- editors/editor-chooser/editorchooser_widget.cpp | 2 +- embedded/visualboyadvance/vbaconfigwidget.cpp | 2 +- kdevdesigner/designer/CMakeLists.txt | 2 +- kdevdesigner/designer/customwidgeteditorimpl.cpp | 2 +- kdevdesigner/designer/filechooser.cpp | 2 +- kdevdesigner/designer/formfile.cpp | 2 +- kdevdesigner/designer/kdevdesigner_part.cpp | 2 +- kdevdesigner/designer/mainwindowactions.cpp | 2 +- kdevdesigner/designer/pixmapchooser.cpp | 2 +- kdevdesigner/designer/projectsettingsimpl.cpp | 2 +- kdevdesigner/designer/resource.cpp | 2 +- kdevdesigner/designer/sourcefile.cpp | 2 +- kdevdesigner/src/kdevdesigner.cpp | 4 +- languages/ada/configproblemreporter.ui.h | 2 +- languages/ada/problemreporter.cpp | 2 +- languages/cpp/addattributedialog.cpp | 2 +- languages/cpp/addmethoddialog.cpp | 2 +- languages/cpp/app_templates/CMakeLists.txt | 6 +- languages/cpp/app_templates/Makefile.am | 2 +- .../app_templates/dcopservice/dcopservice.tdevelop | 2 +- languages/cpp/app_templates/kapp/README | 2 +- languages/cpp/app_templates/kapp/app.cpp | 6 +- .../cpp/app_templates/kateplugin2/plugin_app.cpp | 2 +- .../cpp/app_templates/kconfig35/CMakeLists.txt | 28 - languages/cpp/app_templates/kconfig35/Makefile.am | 19 - languages/cpp/app_templates/kconfig35/README | 90 ---- languages/cpp/app_templates/kconfig35/app.cpp | 105 ---- languages/cpp/app_templates/kconfig35/app.desktop | 40 -- languages/cpp/app_templates/kconfig35/app.h | 61 --- languages/cpp/app_templates/kconfig35/app.kcfg | 21 - languages/cpp/app_templates/kconfig35/app.tdevelop | 168 ------ languages/cpp/app_templates/kconfig35/appui.rc | 8 - languages/cpp/app_templates/kconfig35/appview.cpp | 41 -- languages/cpp/app_templates/kconfig35/appview.h | 53 -- .../cpp/app_templates/kconfig35/appview_base.ui | 33 -- .../app_templates/kconfig35/kconfig35.kdevtemplate | 245 --------- .../cpp/app_templates/kconfig35/kconfig35.png | Bin 6975 -> 0 bytes languages/cpp/app_templates/kconfig35/kxt35.png | Bin 6975 -> 0 bytes languages/cpp/app_templates/kconfig35/main.cpp | 57 -- .../cpp/app_templates/kconfig35/prefs-base.ui | 127 ----- languages/cpp/app_templates/kconfig35/prefs.cpp | 12 - languages/cpp/app_templates/kconfig35/prefs.h | 11 - .../cpp/app_templates/kconfig35/settings.kcfgc | 6 - .../cpp/app_templates/kconfig35/src-Makefile.am | 41 -- .../app_templates/kconfig35/src-configure.in.in | 7 - languages/cpp/app_templates/kconfig35/subdirs | 3 - languages/cpp/app_templates/kde4app/kapp4.cpp | 2 +- languages/cpp/app_templates/kde4app/settings.kcfgc | 2 +- languages/cpp/app_templates/kdecpp.appwizard | 2 +- .../cpp/app_templates/kfileplugin/.kdev_ignore | 0 .../cpp/app_templates/kfileplugin/CMakeLists.txt | 27 - .../cpp/app_templates/kfileplugin/Makefile.am | 18 - .../cpp/app_templates/kfileplugin/README.devel | 9 - .../cpp/app_templates/kfileplugin/kfile_plugin.cpp | 55 -- .../app_templates/kfileplugin/kfile_plugin.desktop | 39 -- .../cpp/app_templates/kfileplugin/kfile_plugin.h | 25 - .../cpp/app_templates/kfileplugin/kfileplugin | 8 - .../kfileplugin/kfileplugin.kdevtemplate | 166 ------ .../cpp/app_templates/kfileplugin/kfileplugin.png | Bin 11953 -> 0 bytes .../cpp/app_templates/kfileplugin/plugin.tdevelop | 114 ---- .../cpp/app_templates/kfileplugin/src-Makefile.am | 22 - languages/cpp/app_templates/kfileplugin/subdirs | 3 - languages/cpp/app_templates/kicker/applet.cpp | 2 +- languages/cpp/app_templates/kicker/applet.h | 2 +- languages/cpp/app_templates/kioslave/.kdev_ignore | 0 .../cpp/app_templates/kioslave/CMakeLists.txt | 26 - languages/cpp/app_templates/kioslave/Makefile.am | 17 - .../app_templates/kioslave/kioslave.kdevtemplate | 183 ------- languages/cpp/app_templates/kioslave/kioslave.png | Bin 9524 -> 0 bytes languages/cpp/app_templates/kioslave/slave.cpp | 88 ---- languages/cpp/app_templates/kioslave/slave.h | 23 - .../cpp/app_templates/kioslave/slave.protocol | 39 -- .../cpp/app_templates/kioslave/slave.tdevelop | 113 ---- .../cpp/app_templates/kioslave/src-Makefile.am | 14 - languages/cpp/app_templates/kioslave/subdirs | 3 - .../cpp/app_templates/kofficepart/kopart.tdevelop | 2 +- .../cpp/app_templates/konqnavpanel/konqnavpanel.h | 2 +- languages/cpp/app_templates/kpartapp/app.cpp | 4 +- languages/cpp/app_templates/kpartapp/app_part.cpp | 2 +- languages/cpp/app_templates/kscons_kxt/README | 2 +- languages/cpp/app_templates/kscons_kxt/app.cpp | 2 +- languages/cpp/app_templates/kscons_kxt/messages.sh | 2 +- .../cpp/app_templates/kscons_kxt/settings.kcfgc | 2 +- languages/cpp/app_templates/kscons_tdemdi/README | 2 +- .../cpp/app_templates/kscons_tdemdi/app_part.cpp | 2 +- .../cpp/app_templates/kscons_tdemdi/apptdemdi.cpp | 8 +- .../cpp/app_templates/kscons_tdemdi/messages.sh | 2 +- .../cpp/app_templates/kscons_tdemdi/settings.kcfgc | 2 +- languages/cpp/app_templates/kxt/README | 2 +- languages/cpp/app_templates/kxt/app.cpp | 2 +- languages/cpp/app_templates/kxt/settings.kcfgc | 2 +- .../cpp/app_templates/noatunui/plugin_impl.cpp | 4 +- languages/cpp/app_templates/opieapp/app.pro | 2 +- languages/cpp/app_templates/opieapplet/app.pro | 2 +- languages/cpp/app_templates/opieinput/app.pro | 2 +- languages/cpp/app_templates/opiemenu/app.pro | 2 +- languages/cpp/app_templates/opienet/app.pro | 2 +- .../cpp/app_templates/opienet/opienet.kdevtemplate | 4 +- languages/cpp/app_templates/opietoday/app.pro | 2 +- .../cpp/app_templates/tdecmodule/module.desktop | 2 +- .../cpp/app_templates/tdeconfig35/CMakeLists.txt | 28 + .../cpp/app_templates/tdeconfig35/Makefile.am | 19 + languages/cpp/app_templates/tdeconfig35/README | 90 ++++ languages/cpp/app_templates/tdeconfig35/app.cpp | 105 ++++ .../cpp/app_templates/tdeconfig35/app.desktop | 40 ++ languages/cpp/app_templates/tdeconfig35/app.h | 61 +++ languages/cpp/app_templates/tdeconfig35/app.kcfg | 21 + .../cpp/app_templates/tdeconfig35/app.tdevelop | 168 ++++++ languages/cpp/app_templates/tdeconfig35/appui.rc | 8 + .../cpp/app_templates/tdeconfig35/appview.cpp | 41 ++ languages/cpp/app_templates/tdeconfig35/appview.h | 53 ++ .../cpp/app_templates/tdeconfig35/appview_base.ui | 33 ++ languages/cpp/app_templates/tdeconfig35/kxt35.png | Bin 0 -> 6975 bytes languages/cpp/app_templates/tdeconfig35/main.cpp | 57 ++ .../cpp/app_templates/tdeconfig35/prefs-base.ui | 127 +++++ languages/cpp/app_templates/tdeconfig35/prefs.cpp | 12 + languages/cpp/app_templates/tdeconfig35/prefs.h | 11 + .../cpp/app_templates/tdeconfig35/settings.kcfgc | 6 + .../cpp/app_templates/tdeconfig35/src-Makefile.am | 41 ++ .../app_templates/tdeconfig35/src-configure.in.in | 7 + languages/cpp/app_templates/tdeconfig35/subdirs | 3 + .../tdeconfig35/tdeconfig35.kdevtemplate | 245 +++++++++ .../cpp/app_templates/tdeconfig35/tdeconfig35.png | Bin 0 -> 6975 bytes .../cpp/app_templates/tdefileplugin/.kdev_ignore | 0 .../cpp/app_templates/tdefileplugin/CMakeLists.txt | 27 + .../cpp/app_templates/tdefileplugin/Makefile.am | 18 + .../cpp/app_templates/tdefileplugin/README.devel | 9 + .../app_templates/tdefileplugin/plugin.tdevelop | 114 ++++ .../app_templates/tdefileplugin/src-Makefile.am | 22 + languages/cpp/app_templates/tdefileplugin/subdirs | 3 + .../app_templates/tdefileplugin/tdefile_plugin.cpp | 55 ++ .../tdefileplugin/tdefile_plugin.desktop | 39 ++ .../app_templates/tdefileplugin/tdefile_plugin.h | 25 + .../cpp/app_templates/tdefileplugin/tdefileplugin | 8 + .../tdefileplugin/tdefileplugin.kdevtemplate | 166 ++++++ .../app_templates/tdefileplugin/tdefileplugin.png | Bin 0 -> 11953 bytes .../cpp/app_templates/tdeioslave/.kdev_ignore | 0 .../cpp/app_templates/tdeioslave/CMakeLists.txt | 26 + languages/cpp/app_templates/tdeioslave/Makefile.am | 17 + languages/cpp/app_templates/tdeioslave/slave.cpp | 88 ++++ languages/cpp/app_templates/tdeioslave/slave.h | 23 + .../cpp/app_templates/tdeioslave/slave.protocol | 39 ++ .../cpp/app_templates/tdeioslave/slave.tdevelop | 113 ++++ .../cpp/app_templates/tdeioslave/src-Makefile.am | 14 + languages/cpp/app_templates/tdeioslave/subdirs | 3 + .../tdeioslave/tdeioslave.kdevtemplate | 183 +++++++ .../cpp/app_templates/tdeioslave/tdeioslave.png | Bin 0 -> 9524 bytes .../tdescreensaver/tdescreensaver.cpp | 2 +- .../tdescreensaver/tdescreensaver.tdevelop | 2 +- languages/cpp/ccconfigwidget.cpp | 4 +- languages/cpp/classgeneratorconfig.cpp | 2 +- languages/cpp/configproblemreporter.ui.h | 2 +- languages/cpp/cppsupport_utils.cpp | 2 +- languages/cpp/cppsupportpart.cpp | 2 +- languages/cpp/debugger/debuggerpart.cpp | 2 +- languages/cpp/debugger/gdbcontroller.cpp | 2 +- languages/cpp/doc/gnome1.toc | 2 +- languages/cpp/doc/kde2book.toc | 12 +- .../tdelibsimporter/kdevtdelibsimporter.cpp | 2 +- languages/cpp/problemreporter.cpp | 2 +- languages/cpp/subclassingdlg.cpp | 4 +- languages/csharp/CMakeLists.txt | 2 +- languages/csharp/csharpdoc.h | 2 +- languages/fortran/CMakeLists.txt | 2 +- languages/fortran/Makefile.am | 2 +- languages/fortran/fortransupportpart.cpp | 2 +- languages/fortran/ftnchekconfigwidget.cpp | 290 ---------- languages/fortran/ftnchekconfigwidget.h | 42 -- languages/fortran/ftnchekconfigwidgetbase.ui | 584 --------------------- languages/fortran/ftnchetdeconfigwidget.cpp | 290 ++++++++++ languages/fortran/ftnchetdeconfigwidget.h | 42 ++ languages/fortran/ftnchetdeconfigwidgetbase.ui | 584 +++++++++++++++++++++ languages/java/configproblemreporter.ui.h | 2 +- languages/java/javasupportpart.cpp | 2 +- languages/java/problemreporter.cpp | 2 +- languages/kjssupport/subclassingdlg.cpp | 4 +- languages/pascal/problemreporter.cpp | 2 +- languages/perl/CMakeLists.txt | 2 +- languages/perl/perldoc.h | 2 +- languages/php/phpconfigwidget.cpp | 2 +- languages/php/phperrorview.cpp | 2 +- languages/php/phpnewclassdlg.cpp | 2 +- languages/php/phpsupportpart.h | 2 +- languages/python/CMakeLists.txt | 4 +- languages/python/Makefile.am | 2 +- languages/python/pydoc.h | 2 +- languages/ruby/app_templates/kapp/README | 2 +- languages/ruby/app_templates/kxt/settings.kcfgc | 2 +- languages/ruby/app_templates/kxt/src-Makefile.am | 2 +- languages/ruby/debugger/debuggerpart.cpp | 2 +- languages/ruby/debugger/rdbcontroller.cpp | 2 +- lib/cppparser/CMakeLists.txt | 2 +- lib/interfaces/external/CMakeLists.txt | 4 - lib/util/settings.cpp | 2 +- lib/widgets/CMakeLists.txt | 2 +- lib/widgets/flagboxes.h | 2 +- lib/widgets/kdevhtmlpart.cpp | 6 +- lib/widgets/klistviewaction.cpp | 2 +- lib/widgets/propeditor/CMakeLists.txt | 2 +- lib/widgets/propeditor/ppixmapedit.cpp | 2 +- lib/widgets/propeditor/purledit.h | 2 +- parts/abbrev/abbrevconfigwidget.cpp | 2 +- parts/abbrev/abbrevpart.cpp | 4 +- parts/appwizard/README.dox | 2 +- parts/appwizard/appwizarddlg.cpp | 12 +- parts/appwizard/importdlg.cpp | 4 +- parts/appwizard/misc.cpp | 2 +- parts/appwizard/profilesupport.cpp | 2 +- parts/astyle/astyle_adaptor.cpp | 2 +- parts/astyle/astyle_part.cpp | 4 +- parts/bookmarks/bookmarks_config.cpp | 2 +- parts/classview/classtoolwidget.cpp | 2 +- parts/classview/classtreebase.cpp | 2 +- parts/classview/classviewwidget.cpp | 2 +- parts/classview/hierarchydlg.cpp | 4 +- parts/classview/navigator.cpp | 2 +- parts/ctags2/ctags2_part.cpp | 2 +- parts/ctags2/ctags2_settingswidget.cpp | 2 +- parts/diff/diffpart.cpp | 6 +- parts/diff/diffwidget.cpp | 8 +- parts/distpart/distpart_widget.cpp | 4 +- parts/distpart/specsupport.cpp | 2 +- parts/documentation/docglobalconfigwidget.cpp | 2 +- parts/documentation/documentation_part.cpp | 4 +- parts/documentation/documentation_widget.cpp | 2 +- parts/documentation/find_documentation_options.cpp | 2 +- parts/documentation/interfaces/CMakeLists.txt | 2 +- .../interfaces/kdevdocumentationplugin.cpp | 2 +- .../interfaces/kdevdocumentationplugin.h | 2 +- parts/documentation/plugins/chm/docchmplugin.cpp | 6 +- .../plugins/custom/doccustomplugin.cpp | 2 +- .../plugins/devhelp/docdevhelpplugin.cpp | 2 +- parts/documentation/plugins/djvu/docdjvuplugin.cpp | 2 +- .../plugins/doxygen/docdoxygenplugin.cpp | 2 +- .../plugins/kdevtoc/dockdevtocplugin.cpp | 2 +- parts/documentation/plugins/pdb/docpdbplugin.cpp | 2 +- parts/documentation/plugins/pdf/docpdfplugin.cpp | 2 +- parts/documentation/plugins/qt/docqtplugin.cpp | 2 +- parts/documentation/protocols/chm/CMakeLists.txt | 2 +- parts/documentation/protocols/chm/Makefile.am | 2 +- parts/documentation/protocols/chm/chm.h | 4 +- parts/documentation/protocols/chm/chm.protocol | 36 +- parts/documentation/protocols/chm/kchmpart.h | 4 +- parts/documentation/searchview.cpp | 2 +- parts/documentation/tools/htdig/CMakeLists.txt | 2 +- parts/documentation/tools/htdig/htdigindex.cpp | 2 +- parts/doxygen/input.cpp | 2 +- parts/filecreate/fcconfigwidget.cpp | 2 +- parts/filecreate/filecreate_filedialog.h | 2 +- parts/filecreate/filecreate_part.cpp | 2 +- parts/filelist/filelist_item.cpp | 2 +- parts/filelist/projectviewconfig.cpp | 2 +- parts/filelist/projectviewpart.cpp | 2 +- parts/fileselector/fileselector_part.cpp | 4 +- parts/fileselector/fileselector_part.h | 2 +- parts/fileselector/fileselector_widget.cpp | 6 +- parts/fileselector/fileselector_widget.h | 2 +- parts/fileview/fileitemfactory.h | 2 +- parts/fileview/filetreeviewwidgetimpl.h | 2 +- parts/fileview/filetreewidget.cpp | 2 +- parts/fileview/filetreewidget.h | 2 +- parts/filter/shellfilterdlg.cpp | 2 +- parts/filter/shellinsertdlg.cpp | 2 +- parts/grepview/grepdlg.cpp | 4 +- parts/konsole/konsoleviewwidget.cpp | 2 +- parts/outputviews/appoutputwidget.cpp | 4 +- parts/outputviews/makeactionfilter.cpp | 18 +- parts/outputviews/makewidget.cpp | 2 +- parts/partexplorer/README.dox | 2 +- parts/scripting/scriptingglobalconfig.cpp | 6 +- parts/scripting/scriptingpart.cpp | 2 +- parts/snippet/snippet_widget.cpp | 2 +- parts/tipofday/tipofday_part.cpp | 2 +- parts/tools/tools_part.cpp | 2 +- parts/tools/toolsconfigwidget.cpp | 2 +- parts/uimode/uichooser_widget.cpp | 2 +- parts/valgrind/valgrind_part.cpp | 2 +- src/CMakeLists.txt | 2 +- src/Makefile.am | 2 +- src/core.cpp | 2 +- src/editorproxy.cpp | 2 +- src/kconf_update/CMakeLists.txt | 32 -- src/kconf_update/Makefile.am | 18 - .../kdev-gen-settings-kconf_update.cpp | 113 ---- src/kconf_update/kdev-gen-settings.upd | 8 - src/kdevideextension.cpp | 2 +- src/languageselectwidget.cpp | 2 +- src/mainwindowshare.cpp | 2 +- src/newui/CMakeLists.txt | 4 - src/newui/button.cpp | 2 +- src/newui/buttonbar.cpp | 2 +- src/newui/ddockwindow.cpp | 2 +- src/newui/dmainwindow.cpp | 2 +- src/newui/dtabwidget.cpp | 2 +- src/partcontroller.cpp | 4 +- src/plugincontroller.cpp | 2 +- src/profileengine/editor/CMakeLists.txt | 2 +- src/profileengine/lib/CMakeLists.txt | 2 +- src/profileengine/lib/profile.cpp | 4 +- src/projectmanager.cpp | 4 +- src/simplemainwindow.cpp | 6 +- src/tdeconf_update/CMakeLists.txt | 32 ++ src/tdeconf_update/Makefile.am | 18 + .../kdev-gen-settings-tdeconf_update.cpp | 113 ++++ src/tdeconf_update/kdev-gen-settings.upd | 8 + src/toplevel.cpp | 2 +- vcs/cvsservice/checkoutdialog.cpp | 2 +- vcs/cvsservice/cvsoptions.cpp | 2 +- vcs/cvsservice/diffwidget.cpp | 8 +- vcs/subversion/CMakeLists.txt | 4 +- vcs/subversion/README.dox | 2 +- vcs/subversion/configure.in.bot | 2 +- vcs/subversion/configure.in.in | 2 +- vcs/subversion/integrator/svnintegratordlg.cpp | 8 +- vcs/subversion/kdevsvnd.cpp | 2 +- vcs/subversion/subversion_core.cpp | 6 +- vcs/subversion/subversion_core.h | 2 +- vcs/subversion/subversion_fileinfo.cpp | 2 +- vcs/subversion/subversion_fileinfo.h | 2 +- vcs/subversion/subversion_widget.h | 2 +- vcs/subversion/svn_fileselectdlg_commit.cpp | 2 +- vcs/subversion/svn_kio.h | 4 +- 368 files changed, 4310 insertions(+), 4318 deletions(-) delete mode 100644 buildtools/autotools/kfilednddetailview.cpp delete mode 100644 buildtools/autotools/kfilednddetailview.h delete mode 100644 buildtools/autotools/kfiledndiconview.cpp delete mode 100644 buildtools/autotools/kfiledndiconview.h create mode 100644 buildtools/autotools/tdefilednddetailview.cpp create mode 100644 buildtools/autotools/tdefilednddetailview.h create mode 100644 buildtools/autotools/tdefiledndiconview.cpp create mode 100644 buildtools/autotools/tdefiledndiconview.h delete mode 100644 languages/cpp/app_templates/kconfig35/CMakeLists.txt delete mode 100644 languages/cpp/app_templates/kconfig35/Makefile.am delete mode 100644 languages/cpp/app_templates/kconfig35/README delete mode 100644 languages/cpp/app_templates/kconfig35/app.cpp delete mode 100644 languages/cpp/app_templates/kconfig35/app.desktop delete mode 100644 languages/cpp/app_templates/kconfig35/app.h delete mode 100644 languages/cpp/app_templates/kconfig35/app.kcfg delete mode 100644 languages/cpp/app_templates/kconfig35/app.tdevelop delete mode 100644 languages/cpp/app_templates/kconfig35/appui.rc delete mode 100644 languages/cpp/app_templates/kconfig35/appview.cpp delete mode 100644 languages/cpp/app_templates/kconfig35/appview.h delete mode 100644 languages/cpp/app_templates/kconfig35/appview_base.ui delete mode 100644 languages/cpp/app_templates/kconfig35/kconfig35.kdevtemplate delete mode 100644 languages/cpp/app_templates/kconfig35/kconfig35.png delete mode 100644 languages/cpp/app_templates/kconfig35/kxt35.png delete mode 100644 languages/cpp/app_templates/kconfig35/main.cpp delete mode 100644 languages/cpp/app_templates/kconfig35/prefs-base.ui delete mode 100644 languages/cpp/app_templates/kconfig35/prefs.cpp delete mode 100644 languages/cpp/app_templates/kconfig35/prefs.h delete mode 100644 languages/cpp/app_templates/kconfig35/settings.kcfgc delete mode 100644 languages/cpp/app_templates/kconfig35/src-Makefile.am delete mode 100644 languages/cpp/app_templates/kconfig35/src-configure.in.in delete mode 100644 languages/cpp/app_templates/kconfig35/subdirs delete mode 100644 languages/cpp/app_templates/kfileplugin/.kdev_ignore delete mode 100644 languages/cpp/app_templates/kfileplugin/CMakeLists.txt delete mode 100644 languages/cpp/app_templates/kfileplugin/Makefile.am delete mode 100644 languages/cpp/app_templates/kfileplugin/README.devel delete mode 100644 languages/cpp/app_templates/kfileplugin/kfile_plugin.cpp delete mode 100644 languages/cpp/app_templates/kfileplugin/kfile_plugin.desktop delete mode 100644 languages/cpp/app_templates/kfileplugin/kfile_plugin.h delete mode 100644 languages/cpp/app_templates/kfileplugin/kfileplugin delete mode 100644 languages/cpp/app_templates/kfileplugin/kfileplugin.kdevtemplate delete mode 100644 languages/cpp/app_templates/kfileplugin/kfileplugin.png delete mode 100644 languages/cpp/app_templates/kfileplugin/plugin.tdevelop delete mode 100644 languages/cpp/app_templates/kfileplugin/src-Makefile.am delete mode 100644 languages/cpp/app_templates/kfileplugin/subdirs delete mode 100644 languages/cpp/app_templates/kioslave/.kdev_ignore delete mode 100644 languages/cpp/app_templates/kioslave/CMakeLists.txt delete mode 100644 languages/cpp/app_templates/kioslave/Makefile.am delete mode 100644 languages/cpp/app_templates/kioslave/kioslave.kdevtemplate delete mode 100644 languages/cpp/app_templates/kioslave/kioslave.png delete mode 100644 languages/cpp/app_templates/kioslave/slave.cpp delete mode 100644 languages/cpp/app_templates/kioslave/slave.h delete mode 100644 languages/cpp/app_templates/kioslave/slave.protocol delete mode 100644 languages/cpp/app_templates/kioslave/slave.tdevelop delete mode 100644 languages/cpp/app_templates/kioslave/src-Makefile.am delete mode 100644 languages/cpp/app_templates/kioslave/subdirs create mode 100644 languages/cpp/app_templates/tdeconfig35/CMakeLists.txt create mode 100644 languages/cpp/app_templates/tdeconfig35/Makefile.am create mode 100644 languages/cpp/app_templates/tdeconfig35/README create mode 100644 languages/cpp/app_templates/tdeconfig35/app.cpp create mode 100644 languages/cpp/app_templates/tdeconfig35/app.desktop create mode 100644 languages/cpp/app_templates/tdeconfig35/app.h create mode 100644 languages/cpp/app_templates/tdeconfig35/app.kcfg create mode 100644 languages/cpp/app_templates/tdeconfig35/app.tdevelop create mode 100644 languages/cpp/app_templates/tdeconfig35/appui.rc create mode 100644 languages/cpp/app_templates/tdeconfig35/appview.cpp create mode 100644 languages/cpp/app_templates/tdeconfig35/appview.h create mode 100644 languages/cpp/app_templates/tdeconfig35/appview_base.ui create mode 100644 languages/cpp/app_templates/tdeconfig35/kxt35.png create mode 100644 languages/cpp/app_templates/tdeconfig35/main.cpp create mode 100644 languages/cpp/app_templates/tdeconfig35/prefs-base.ui create mode 100644 languages/cpp/app_templates/tdeconfig35/prefs.cpp create mode 100644 languages/cpp/app_templates/tdeconfig35/prefs.h create mode 100644 languages/cpp/app_templates/tdeconfig35/settings.kcfgc create mode 100644 languages/cpp/app_templates/tdeconfig35/src-Makefile.am create mode 100644 languages/cpp/app_templates/tdeconfig35/src-configure.in.in create mode 100644 languages/cpp/app_templates/tdeconfig35/subdirs create mode 100644 languages/cpp/app_templates/tdeconfig35/tdeconfig35.kdevtemplate create mode 100644 languages/cpp/app_templates/tdeconfig35/tdeconfig35.png create mode 100644 languages/cpp/app_templates/tdefileplugin/.kdev_ignore create mode 100644 languages/cpp/app_templates/tdefileplugin/CMakeLists.txt create mode 100644 languages/cpp/app_templates/tdefileplugin/Makefile.am create mode 100644 languages/cpp/app_templates/tdefileplugin/README.devel create mode 100644 languages/cpp/app_templates/tdefileplugin/plugin.tdevelop create mode 100644 languages/cpp/app_templates/tdefileplugin/src-Makefile.am create mode 100644 languages/cpp/app_templates/tdefileplugin/subdirs create mode 100644 languages/cpp/app_templates/tdefileplugin/tdefile_plugin.cpp create mode 100644 languages/cpp/app_templates/tdefileplugin/tdefile_plugin.desktop create mode 100644 languages/cpp/app_templates/tdefileplugin/tdefile_plugin.h create mode 100644 languages/cpp/app_templates/tdefileplugin/tdefileplugin create mode 100644 languages/cpp/app_templates/tdefileplugin/tdefileplugin.kdevtemplate create mode 100644 languages/cpp/app_templates/tdefileplugin/tdefileplugin.png create mode 100644 languages/cpp/app_templates/tdeioslave/.kdev_ignore create mode 100644 languages/cpp/app_templates/tdeioslave/CMakeLists.txt create mode 100644 languages/cpp/app_templates/tdeioslave/Makefile.am create mode 100644 languages/cpp/app_templates/tdeioslave/slave.cpp create mode 100644 languages/cpp/app_templates/tdeioslave/slave.h create mode 100644 languages/cpp/app_templates/tdeioslave/slave.protocol create mode 100644 languages/cpp/app_templates/tdeioslave/slave.tdevelop create mode 100644 languages/cpp/app_templates/tdeioslave/src-Makefile.am create mode 100644 languages/cpp/app_templates/tdeioslave/subdirs create mode 100644 languages/cpp/app_templates/tdeioslave/tdeioslave.kdevtemplate create mode 100644 languages/cpp/app_templates/tdeioslave/tdeioslave.png delete mode 100644 languages/fortran/ftnchekconfigwidget.cpp delete mode 100644 languages/fortran/ftnchekconfigwidget.h delete mode 100644 languages/fortran/ftnchekconfigwidgetbase.ui create mode 100644 languages/fortran/ftnchetdeconfigwidget.cpp create mode 100644 languages/fortran/ftnchetdeconfigwidget.h create mode 100644 languages/fortran/ftnchetdeconfigwidgetbase.ui delete mode 100644 src/kconf_update/CMakeLists.txt delete mode 100644 src/kconf_update/Makefile.am delete mode 100644 src/kconf_update/kdev-gen-settings-kconf_update.cpp delete mode 100644 src/kconf_update/kdev-gen-settings.upd create mode 100644 src/tdeconf_update/CMakeLists.txt create mode 100644 src/tdeconf_update/Makefile.am create mode 100644 src/tdeconf_update/kdev-gen-settings-tdeconf_update.cpp create mode 100644 src/tdeconf_update/kdev-gen-settings.upd diff --git a/ChangeLog b/ChangeLog index ff5fbb5b..531caf59 100644 --- a/ChangeLog +++ b/ChangeLog @@ -237,7 +237,7 @@ 2004-11-22 Alexander Dymo * Implemented simple VCS integrators for Clearcase, Perforce and Subversion. * Reenabled subversion support plugin. - * Imported svn kioslave from tdesdk HEAD into a compat library therefore svn + * Imported svn tdeioslave from tdesdk HEAD into a compat library therefore svn will work on KDE<3.3.90 too. 2004-11-21 Alexander Dymo @@ -576,7 +576,7 @@ 2003-10-17 Dominik Haumann * new Application templates in cpp: kateplugin2, noatunvisual, - noatunui, kbearimportfilter, kbearplugin, kfileplugin + noatunui, kbearimportfilter, kbearplugin, tdefileplugin * fixed 53943, 64028 * parts/appwizard: Now you can add "ShowFilesAfterGeneration=file1,file2" to the app_tamplate's information-file (example: khello/khello) so that @@ -1797,7 +1797,7 @@ * continued the import existing dialog -> ONLY adding existing files works at the moment! * add Bjrn Sahlstrm's drag 'n drop support to the FileSelector - -> see kfilednd*view.* for details + -> see tdefilednd*view.* for details * added new bullets to the make outputview * everything needs a little bit code clean-up, so don't worry :-) @@ -2706,7 +2706,7 @@ * Added cast methods to the editor interfaces, so you don't have to pass strings around any longer 2001-05-19 Bernd Gehrmann - * Added kicker, kioslave and tdecmodule templates + * Added kicker, tdeioslave and tdecmodule templates * Each template can define an icon which is shown in the app wizard * The Big TDEInstance Cleanup diff --git a/Doxyfile b/Doxyfile index 1ef8ee85..8e293249 100644 --- a/Doxyfile +++ b/Doxyfile @@ -236,7 +236,7 @@ TAGFILES = $(TDEDIR)/share/doc/tde/HTML/en/tdelibs-apidocs/dcop/dc $(TDEDIR)/share/doc/tde/HTML/en/tdelibs-apidocs/tdefx/tdefx.tag=$(TDEDIR)/share/doc/tde/HTML/en/tdelibs-apidocs/tdefx/html/ \ $(TDEDIR)/share/doc/tde/HTML/en/tdelibs-apidocs/tdeui/tdeui.tag=$(TDEDIR)/share/doc/tde/HTML/en/tdelibs-apidocs/tdeui/html/ \ $(TDEDIR)/share/doc/tde/HTML/en/tdelibs-apidocs/tdehtml/tdehtml.tag=$(TDEDIR)/share/doc/tde/HTML/en/tdelibs-apidocs/tdehtml/html/ \ - $(TDEDIR)/share/doc/tde/HTML/en/tdelibs-apidocs/kio/kio.tag=$(TDEDIR)/share/doc/tde/HTML/en/tdelibs-apidocs/kio/html/ \ + $(TDEDIR)/share/doc/tde/HTML/en/tdelibs-apidocs/tdeio/tdeio.tag=$(TDEDIR)/share/doc/tde/HTML/en/tdelibs-apidocs/tdeio/html/ \ $(TDEDIR)/share/doc/tde/HTML/en/tdelibs-apidocs/kjs/kjs.tag=$(TDEDIR)/share/doc/tde/HTML/en/tdelibs-apidocs/kjs/html/ \ $(TDEDIR)/share/doc/tde/HTML/en/tdelibs-apidocs/tdeparts/tdeparts.tag=$(TDEDIR)/share/doc/tde/HTML/en/tdelibs-apidocs/tdeparts/html/ \ $(TDEDIR)/share/doc/tde/HTML/en/tdelibs-apidocs/tdemdi/tdemdi.tag=$(TDEDIR)/share/doc/tde/HTML/en/tdelibs-apidocs/tdemdi/html/ \ diff --git a/buildtools/ada/adaglobaloptionsdlg.cpp b/buildtools/ada/adaglobaloptionsdlg.cpp index 33e432cf..a39c9c3f 100644 --- a/buildtools/ada/adaglobaloptionsdlg.cpp +++ b/buildtools/ada/adaglobaloptionsdlg.cpp @@ -13,7 +13,7 @@ #include #include -#include +#include #include "kdevcompileroptions.h" diff --git a/buildtools/ada/adaproject_part.cpp b/buildtools/ada/adaproject_part.cpp index 96b01a51..e402d9a1 100644 --- a/buildtools/ada/adaproject_part.cpp +++ b/buildtools/ada/adaproject_part.cpp @@ -25,7 +25,7 @@ #include #include #include -#include +#include #include "domutil.h" #include "kdevcore.h" diff --git a/buildtools/autotools/CMakeLists.txt b/buildtools/autotools/CMakeLists.txt index d4e68654..f7af5bc6 100644 --- a/buildtools/autotools/CMakeLists.txt +++ b/buildtools/autotools/CMakeLists.txt @@ -50,7 +50,7 @@ tde_add_kpart( libkdevautoproject AUTOMOC addfiledlgbase.ui addfiledlg.cpp removefiledlgbase.ui removefiledlg.cpp addicondlgbase.ui addicondlg.cpp addtranslationdlg.cpp addprefixdlg.cpp - kfilednddetailview.cpp kfiledndiconview.cpp + tdefilednddetailview.cpp tdefiledndiconview.cpp fileselectorwidget.cpp misc.cpp addsubprojectdlgbase.ui removetargetdlg.cpp removetargetdlgbase.ui choosetargetdialog.cpp choosetargetdlgbase.ui diff --git a/buildtools/autotools/Makefile.am b/buildtools/autotools/Makefile.am index 8a21dc09..76bbffec 100644 --- a/buildtools/autotools/Makefile.am +++ b/buildtools/autotools/Makefile.am @@ -20,7 +20,7 @@ libkdevautoproject_la_SOURCES = autoprojectpart.cpp autoprojectwidget.cpp \ addservicedlgbase.ui addapplicationdlg.cpp addapplicationdlgbase.ui addtargetdlg.cpp \ addtargetdlgbase.ui addsubprojectdlg.cpp addfiledlgbase.ui addfiledlg.cpp \ removefiledlgbase.ui removefiledlg.cpp addicondlgbase.ui addicondlg.cpp \ - addtranslationdlg.cpp addprefixdlg.cpp kfilednddetailview.cpp kfiledndiconview.cpp \ + addtranslationdlg.cpp addprefixdlg.cpp tdefilednddetailview.cpp tdefiledndiconview.cpp \ fileselectorwidget.cpp misc.cpp addsubprojectdlgbase.ui removetargetdlg.cpp \ removetargetdlgbase.ui choosetargetdialog.cpp choosetargetdlgbase.ui addexistingdlgbase.ui \ addexistingfilesdlg.cpp addexistingdirectoriesdlg.cpp kimporticonview.cpp \ diff --git a/buildtools/autotools/addexistingdirectoriesdlg.cpp b/buildtools/autotools/addexistingdirectoriesdlg.cpp index 181f7c5b..d9168924 100644 --- a/buildtools/autotools/addexistingdirectoriesdlg.cpp +++ b/buildtools/autotools/addexistingdirectoriesdlg.cpp @@ -19,7 +19,7 @@ #include #include -#include +#include #include #include "autolistviewitems.h" diff --git a/buildtools/autotools/addexistingdirectoriesdlg.h b/buildtools/autotools/addexistingdirectoriesdlg.h index d09d53db..7b1d9c8e 100644 --- a/buildtools/autotools/addexistingdirectoriesdlg.h +++ b/buildtools/autotools/addexistingdirectoriesdlg.h @@ -20,7 +20,7 @@ #include "addexistingdlgbase.h" #include -#include +#include #include "misc.h" #include "fileselectorwidget.h" diff --git a/buildtools/autotools/addexistingfilesdlg.cpp b/buildtools/autotools/addexistingfilesdlg.cpp index b17eb118..0c3796d9 100644 --- a/buildtools/autotools/addexistingfilesdlg.cpp +++ b/buildtools/autotools/addexistingfilesdlg.cpp @@ -27,7 +27,7 @@ #include #include -#include +#include #include #include #include diff --git a/buildtools/autotools/addexistingfilesdlg.h b/buildtools/autotools/addexistingfilesdlg.h index ea556226..2b44bba1 100644 --- a/buildtools/autotools/addexistingfilesdlg.h +++ b/buildtools/autotools/addexistingfilesdlg.h @@ -21,7 +21,7 @@ #define ADDEXISTINGFILESDLG_H #include -#include +#include #include "addexistingdlgbase.h" #include "fileselectorwidget.h" diff --git a/buildtools/autotools/addprefixdlg.cpp b/buildtools/autotools/addprefixdlg.cpp index 06aab18b..f37b6626 100644 --- a/buildtools/autotools/addprefixdlg.cpp +++ b/buildtools/autotools/addprefixdlg.cpp @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/buildtools/autotools/addsubprojectdlg.cpp b/buildtools/autotools/addsubprojectdlg.cpp index ea3d2b7a..373a3861 100644 --- a/buildtools/autotools/addsubprojectdlg.cpp +++ b/buildtools/autotools/addsubprojectdlg.cpp @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/buildtools/autotools/autoprojectpart.cpp b/buildtools/autotools/autoprojectpart.cpp index 0e665eb7..801d5234 100644 --- a/buildtools/autotools/autoprojectpart.cpp +++ b/buildtools/autotools/autoprojectpart.cpp @@ -32,7 +32,7 @@ #include -#include +#include #include #include #include diff --git a/buildtools/autotools/autoprojectwidget.cpp b/buildtools/autotools/autoprojectwidget.cpp index 7ffa0ef0..6ac797b9 100644 --- a/buildtools/autotools/autoprojectwidget.cpp +++ b/buildtools/autotools/autoprojectwidget.cpp @@ -33,12 +33,12 @@ #include #include -#include +#include #include #include #include #include -#include +#include #include #include diff --git a/buildtools/autotools/configureoptionswidget.cpp b/buildtools/autotools/configureoptionswidget.cpp index 5ff3e67e..e65d4a35 100644 --- a/buildtools/autotools/configureoptionswidget.cpp +++ b/buildtools/autotools/configureoptionswidget.cpp @@ -22,7 +22,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/buildtools/autotools/fileselectorwidget.cpp b/buildtools/autotools/fileselectorwidget.cpp index 2235f357..842358e4 100644 --- a/buildtools/autotools/fileselectorwidget.cpp +++ b/buildtools/autotools/fileselectorwidget.cpp @@ -27,7 +27,7 @@ #include #include #include -#include +#include #include #include @@ -36,17 +36,17 @@ #include "fileselectorwidget.h" #include #include -#include -#include -#include +#include +#include +#include #include #include "autoprojectwidget.h" #include "autoprojectpart.h" #include "kdevlanguagesupport.h" -#include "kfilednddetailview.h" -#include "kfiledndiconview.h" +#include "tdefilednddetailview.h" +#include "tdefiledndiconview.h" KDnDDirOperator::KDnDDirOperator ( const KURL &urlName, TQWidget* parent, const char* name ) : KDirOperator ( urlName, parent, name ) { diff --git a/buildtools/autotools/fileselectorwidget.h b/buildtools/autotools/fileselectorwidget.h index 09d589de..a9b7abd7 100644 --- a/buildtools/autotools/fileselectorwidget.h +++ b/buildtools/autotools/fileselectorwidget.h @@ -22,14 +22,14 @@ #include #include #include -#include +#include #include #include #include #include -#include -#include +#include +#include #include diff --git a/buildtools/autotools/kfilednddetailview.cpp b/buildtools/autotools/kfilednddetailview.cpp deleted file mode 100644 index 405ff249..00000000 --- a/buildtools/autotools/kfilednddetailview.cpp +++ /dev/null @@ -1,212 +0,0 @@ -/*************************************************************************** -* kfilednddetailview.cpp - description -* ------------------- -* begin : Wed Nov 1 2000 -* copyright : (C) 2000 by Bj�n Sahlstr� -* email : kbjorn@users.sourceforge.net -***************************************************************************/ - -/*************************************************************************** -* * -* This program is free software; you can redistribute it and/or modify * -* it under the terms of the GNU General Public License as published by * -* the Free Software Foundation; either version 2 of the License, or * -* (at your option) any later version. * -* * -***************************************************************************/ - -////////////////////////////////////////////////////// -// TQt specific includes -#include -#include -////////////////////////////////////////////////////// -// KDE specific includes -#include -#include -#include -////////////////////////////////////////////////////// -// Application specific includes -#include "kfilednddetailview.h" - -#ifndef AUTO_OPEN_TIME -#define AUTO_OPEN_TIME - static int autoOpenTime = 750; -#endif -//----------------------------------------------- -KFileDnDDetailView::KFileDnDDetailView(TQWidget *parent, const char *name ) - : KFileDetailView(parent,name), m_autoOpenTimer( this ), - m_autoOpenTime( autoOpenTime ), m_useAutoOpenTimer( true ), - m_dropItem(0), m_dndEnabled( true ) -{ - setAutoUpdate( true ); - setDnDEnabled( true ); - useAutoOpenTimer( true ); -} -//----------------------------------------------- -KFileDnDDetailView::~KFileDnDDetailView(){ -} -//----------------------------------------------- -void KFileDnDDetailView::readConfig( TDEConfig* config, const TQString& group ) { - TDEConfigGroupSaver cs( config, group ); - bool dnd = config->readBoolEntry("DragAndDrop", true ); - setDnDEnabled( dnd ); - KFileDetailView::readConfig( config, group ); -} -//----------------------------------------------- -void KFileDnDDetailView::writeConfig( TDEConfig* config, const TQString& group ) { - TDEConfigGroupSaver cs( config, group ); - config->writeEntry("DragAndDrop", m_dndEnabled ); - KFileDetailView::writeConfig( config, group ); -} -//----------------------------------------------- -void KFileDnDDetailView::slotOpenFolder(){ - if( m_useAutoOpenTimer ) { - m_autoOpenTimer.stop(); - if( !m_dropItem ) - return; - } - KFileItemListIterator it( * KFileView::items() ); - for( ; it.current() ;++it ){ - if( (*it)->name() == m_dropItem->text(0) ) { - if( (*it)->isFile() ) - return; - else if( (*it)->isDir() || (*it)->isLink()) { - sig->activate( (*it) ); - return; - } - } - } -} -//----------------------------------------------- -void KFileDnDDetailView::contentsDragEnterEvent( TQDragEnterEvent *e ) { - - kdDebug (9020) << "KFileDnDDetailView::contentsDragEnterEvent" << endl; - - if ( ! acceptDrag( e ) ) { - e->accept( false ); - return; - } - e->acceptAction(); - TQListViewItem *i = itemAt( contentsToViewport( e->pos() ) ); - if ( i && m_useAutoOpenTimer ) { - m_dropItem = i; - m_autoOpenTimer.start( m_autoOpenTime ); - } -} -//----------------------------------------------- -void KFileDnDDetailView::contentsDragMoveEvent( TQDragMoveEvent *e ) { - - kdDebug (9020) << "KFileDnDDetailView::contentsDragMoveEvent" << endl; - - if ( ! acceptDrag( e ) ) { - e->accept( false ); - return; - } - e->acceptAction(); - TQListViewItem *i = itemAt( contentsToViewport( e->pos() ) ); - if( ! m_useAutoOpenTimer ) - return; - if ( i ) { - if ( i != m_dropItem ) { - m_autoOpenTimer.stop(); - m_dropItem = i; - m_autoOpenTimer.start( m_autoOpenTime ); - } - } - else - m_autoOpenTimer.stop(); -} -//----------------------------------------------- -void KFileDnDDetailView::contentsDragLeaveEvent( TQDragLeaveEvent* ) { - - kdDebug (9020) << "KFileDnDDetailView::contentsDragLeaveEvent" << endl; - - if( m_useAutoOpenTimer ) { - m_autoOpenTimer.stop(); - m_dropItem = 0L; - } -} -//----------------------------------------------- -void KFileDnDDetailView::contentsDropEvent( TQDropEvent* e ) { - - kdDebug (9020) << "KFileDndDetailView::contentsDropEvent" << endl; - - if( m_useAutoOpenTimer ) { - m_autoOpenTimer.stop(); - m_dropItem = 0L; - } - if( ! acceptDrag( e ) ) { - e->acceptAction( false ); - return; - } - e->acceptAction(); - // the drop was accepted so lets emit this to the outside world - KURL::List urls; - KURLDrag::decode( e, urls ); - emit dropped( e ); - emit dropped( this, e ); - emit dropped( this, urls ); -} -//----------------------------------------------- -void KFileDnDDetailView::startDrag(){ - - kdDebug (9020) << "KFileDnDDetailView::startDrag()" << endl; - - // create a list of the URL:s that we want to drag - KURL::List urls; - KFileItemListIterator it( * KFileView::selectedItems() ); - for ( ; it.current(); ++it ){ - urls.append( (*it)->url() ); - } - TQPixmap pixmap; - if( urls.count() > 1 ){ - pixmap = DesktopIcon( "tdemultiple", 16 ); - } - if( pixmap.isNull() ) - pixmap = currentFileItem()->pixmap( 16 ); - TQPoint hotspot; - hotspot.setX( pixmap.width() / 2 ); - hotspot.setY( pixmap.height() / 2 ); - m_dragObject = KURLDrag::newDrag( urls, widget() ); - m_dragObject->setPixmap( pixmap, hotspot ); - m_dragObject->drag(); // start the drag -} -//----------------------------------------------- -TQDragObject* KFileDnDDetailView::dragObject() const { - return m_dragObject; -} -//----------------------------------------------- -bool KFileDnDDetailView::acceptDrag(TQDropEvent* e ) const { - return KURLDrag::canDecode( e ) && - ( e->action() == TQDropEvent::Copy - || e->action() == TQDropEvent::Move - || e->action() == TQDropEvent::Link ); -} -//----------------------------------------------- -void KFileDnDDetailView::setAutoOpenTime( const int& time ){ - m_autoOpenTime = time; - useAutoOpenTimer(); -} -//----------------------------------------------- -void KFileDnDDetailView::useAutoOpenTimer( bool use ){ - m_useAutoOpenTimer = use; - if( use ) - connect( &m_autoOpenTimer, TQT_SIGNAL( timeout() ),this, TQT_SLOT( slotOpenFolder() ) ); - else { - disconnect( &m_autoOpenTimer, TQT_SIGNAL( timeout() ),this, TQT_SLOT( slotOpenFolder() ) ); - m_dropItem = 0L; - m_autoOpenTimer.stop(); - } -} -//----------------------------------------------- -void KFileDnDDetailView::setDnDEnabled( bool useDnD ){ - m_dndEnabled = useDnD; - setDragEnabled( useDnD ); - setDropVisualizer( useDnD ); - setAcceptDrops( useDnD ); - viewport()->setAcceptDrops( useDnD ); -} -//----------------------------------------------- -#ifndef NO_INCLUDE_MOCFILES -#include "kfilednddetailview.moc" -#endif diff --git a/buildtools/autotools/kfilednddetailview.h b/buildtools/autotools/kfilednddetailview.h deleted file mode 100644 index a6dd87c0..00000000 --- a/buildtools/autotools/kfilednddetailview.h +++ /dev/null @@ -1,137 +0,0 @@ -/*************************************************************************** -* kfilednddetailview.h - description -* ------------------- -* begin : Wed Nov 1 2000 -* copyright : (C) 2000 by Bjrn Sahlstrm -* email : kbjorn@users.sourceforge.net -***************************************************************************/ - -/*************************************************************************** -* * -* This program is free software; you can redistribute it and/or modify * -* it under the terms of the GNU General Public License as published by * -* the Free Software Foundation; either version 2 of the License, or * -* (at your option) any later version. * -* * -**************************************************************************/ - -#ifndef KFILEDNDDETAILVIEW_H -#define KFILEDNDDETAILVIEW_H - -////////////////////////////////////////////////////////////////////// -// TQt specific include files -#include -#include -////////////////////////////////////////////////////////////////////// -// KDE specific include files -#include -#include - - -/** - *This is a fileview inherited from @ref KFileDetailView. - *It adds "drag and drop" handling to the view suitable for a @ref KFileDetailView. - * No special setup is needed, just connect to the @ref dropped signals - * and the view will take care of the rest. - *@short "Drag and drop" aware @ref KFileDetailView - *@author Bjrn Sahlstrm - */ - -class KFileDnDDetailView : public KFileDetailView -{ - Q_OBJECT - -public: - /** */ - KFileDnDDetailView( TQWidget *parent = 0, const char *name = 0 ); - /** */ - virtual ~KFileDnDDetailView(); - /** - * Set this to true if Drag'n drop should be enabled or not, default is enabled - */ - void setDnDEnabled( bool ); - /** - * @returns wether DnD is enabled or not. - */ - bool isDnDEnabled() const - { - return m_dndEnabled; - } - /** - *Sets the auto open time, which means the time that will - *elapse before a directory is automatically opened after entered by DnD. - *Only need to call this if you want to change the predefined time that is 750 ms. - *This also calls @ref #useAutoOpenTimer so no need to call this to. - */ - void setAutoOpenTime( const int& time ); - /** - *Set this to true if you want the view to use it's auto open functionallity otherwhise set it to false. - *By default this is turned ON. - */ - void useAutoOpenTimer( bool on = true ); - /** - *@returns true if auto open functionallity is turned ON (default), otherwhise false - *@see #useAutoOpenTimer - *@see #setAutoOpenTime - */ - bool isAutoOpening() const - { - return m_useAutoOpenTimer; - } - /** */ - virtual void readConfig( TDEConfig*, const TQString& group = TQString() ); - /** */ - virtual void writeConfig( TDEConfig*, const TQString& group = TQString() ); -signals: // Signals - /** - * Emitted whenever an decodable item is dropped in the view. - * Note: The @ref TQDropEvent contains a @ref KURLDrag object. - */ - void dropped( TQDropEvent* ); - /** - * Emitted whenever an decodable item is dropped in the view - * Note: The @ref TQDropEvent contains a @ref KURLDrag object. - */ - void dropped( KFileView*, TQDropEvent* ); - /** - * Emitted whenever an decodable item is dropped in the view. - *@param urls contains a list of all dropped @ref KURL - */ - void dropped( KFileView*, KURL::List& urls ); -protected slots: // Protected slots - /** - * Called when the auto timer times out. Open the current folder. - */ - void slotOpenFolder(); -protected: //Protected Methods - /** */ - virtual void contentsDragEnterEvent( TQDragEnterEvent *e ); - /** */ - virtual void contentsDragMoveEvent( TQDragMoveEvent *e ); - /** */ - virtual void contentsDragLeaveEvent( TQDragLeaveEvent *e ); - /** */ - virtual void contentsDropEvent( TQDropEvent* e ); - /** - * Create dragobject encoding the current selection and starts the drag - */ - virtual void startDrag(); - /** - * @returns the dragObject - */ - virtual TQDragObject* dragObject() const; - /** - * @returns true if we can decode the drag and support the action - */ - virtual bool acceptDrag( TQDropEvent* event ) const; -protected: // Private attributes - TQTimer m_autoOpenTimer; - int m_autoOpenTime; - bool m_useAutoOpenTimer; - TQListViewItem* m_dropItem; - KURLDrag* m_dragObject; - bool m_dndEnabled; -}; - -#endif -// kate: indent-mode csands; tab-width 4; diff --git a/buildtools/autotools/kfiledndiconview.cpp b/buildtools/autotools/kfiledndiconview.cpp deleted file mode 100644 index e7b727e5..00000000 --- a/buildtools/autotools/kfiledndiconview.cpp +++ /dev/null @@ -1,194 +0,0 @@ -/*************************************************************************** -* kfiledndiconview.cpp - description -* ------------------- -* begin : Wed Nov 1 2000 -* copyright : (C) 2000 by Bj�rn Sahlstr�m -* email : kbjorn@users.sourceforge.net -***************************************************************************/ - -/*************************************************************************** -* * -* This program is free software; you can redistribute it and/or modify * -* it under the terms of the GNU General Public License as published by * -* the Free Software Foundation; either version 2 of the License, or * -* (at your option) any later version. * -* * -***************************************************************************/ - -////////////////////////////////////////////////////// -// TQt specific includes -#include -#include -////////////////////////////////////////////////////// -// KDE specific includes -#include -#include -#include -////////////////////////////////////////////////////// -// Application specific includes -#include "kfiledndiconview.h" - -#ifndef AUTO_OPEN_TIME -#define AUTO_OPEN_TIME - static int autoOpenTime = 750; -#endif -//----------------------------------------------- -KFileDnDIconView::KFileDnDIconView( TQWidget *parent, const char *name ) - : KFileIconView(parent,name), m_autoOpenTimer( this ), - m_autoOpenTime( autoOpenTime ), m_useAutoOpenTimer( true ), - m_dropItem(0), m_dndEnabled( true ) -{ - setDnDEnabled( true ); - setAutoUpdate( true ); - useAutoOpenTimer( true ); -} -//----------------------------------------------- -KFileDnDIconView::~KFileDnDIconView(){ -} -//----------------------------------------------- -void KFileDnDIconView::readConfig( TDEConfig* config, const TQString& group ) { - TDEConfigGroupSaver cs( config, group ); - bool dnd = config->readBoolEntry("EnableDND", true ); - setDnDEnabled( dnd ); - KFileIconView::readConfig( config, group ); -} -//----------------------------------------------- -void KFileDnDIconView::writeConfig( TDEConfig* config, const TQString& group ) { - TDEConfigGroupSaver cs( config, group ); - config->writeEntry("EnableDND", m_dndEnabled ); - KFileIconView::writeConfig( config, group ); -} -//----------------------------------------------- -void KFileDnDIconView::slotOpenFolder(){ - if( m_useAutoOpenTimer ) { - m_autoOpenTimer.stop(); - if( !m_dropItem ) - return; - } - KFileItemListIterator it( * KFileView::items() ); - for( ; it.current() ;++it ){ - if( (*it)->name() == m_dropItem->text() ) { - if( (*it)->isFile() ) - return; - else if( (*it)->isDir() || (*it)->isLink()) { - sig->activate( (*it) ); - return; - } - } - } -} -//----------------------------------------------- -void KFileDnDIconView::contentsDragEnterEvent( TQDragEnterEvent *e ) { - if ( ! acceptDrag( e ) ) { // can we decode this ? - e->accept( false ); // No - return; - } - e->acceptAction(); // Yes - TQIconViewItem *i = findItem( contentsToViewport( e->pos() ) ); - if ( i && m_useAutoOpenTimer) { // are we over an item ? - m_dropItem = i; // set new m_dropItem - m_autoOpenTimer.start( m_autoOpenTime ); // restart timer - } -} -//----------------------------------------------- -void KFileDnDIconView::contentsDragMoveEvent( TQDragMoveEvent *e ) { - if ( ! acceptDrag( e ) ) { // can we decode this ? - e->accept( false ); // No - return; - } - e->acceptAction(); // Yes - TQIconViewItem *i = findItem( contentsToViewport( e->pos() ) ); - if( ! m_useAutoOpenTimer ) - return; - if ( i ) { // are we over an item ? - if ( i != m_dropItem ) { // if so, is it a new one ? - m_autoOpenTimer.stop(); // stop timer - m_dropItem = i; // set new m_dropItem - m_autoOpenTimer.start( m_autoOpenTime ); // restart timer - } - } - else - m_autoOpenTimer.stop(); // stop timer -} -//----------------------------------------------- -void KFileDnDIconView::contentsDragLeaveEvent( TQDragLeaveEvent* ) { - if( m_useAutoOpenTimer ) { - m_autoOpenTimer.stop(); - m_dropItem = 0L; - } -} -//----------------------------------------------- -void KFileDnDIconView::contentsDropEvent( TQDropEvent* e ) { - if( m_useAutoOpenTimer ) { - m_autoOpenTimer.stop(); - m_dropItem = 0L; - } - if( ! acceptDrag( e ) ) { - e->acceptAction( false ); - return; - } - e->acceptAction(); - // the drop was accepted so lets emit this - KURL::List urls; - KURLDrag::decode( e, urls ); - emit dropped( e ); -} -//----------------------------------------------- -void KFileDnDIconView::startDrag(){ - if ( ! currentItem() ) // is there any selected items ? - return; // nope - dragObject()->dragCopy(); // start the drag -} -//----------------------------------------------- -TQDragObject* KFileDnDIconView::dragObject() { - // create a list of the URL:s that we want to drag - KURL::List urls; - KFileItemListIterator it( * KFileView::selectedItems() ); - for ( ; it.current(); ++it ){ - urls.append( (*it)->url() ); - } - TQPixmap pixmap; - if( urls.count() > 1 ) - pixmap = DesktopIcon( "tdemultiple", iconSize() ); - if( pixmap.isNull() ) - pixmap = currentFileItem()->pixmap( iconSize() ); - TQPoint hotspot; - hotspot.setX( pixmap.width() / 2 ); - hotspot.setY( pixmap.height() / 2 ); - TQDragObject* myDragObject = KURLDrag::newDrag( urls, widget() ); - myDragObject->setPixmap( pixmap, hotspot ); - return myDragObject; -} -//----------------------------------------------- -void KFileDnDIconView::setAutoOpenTime( const int& time ){ - m_autoOpenTime = time; - useAutoOpenTimer(); -} -//----------------------------------------------- -void KFileDnDIconView::useAutoOpenTimer( bool use ){ - m_useAutoOpenTimer = use; - if ( use ) - connect( &m_autoOpenTimer, TQT_SIGNAL( timeout() ),this, TQT_SLOT( slotOpenFolder() ) ); - else { - disconnect( &m_autoOpenTimer, TQT_SIGNAL( timeout() ),this, TQT_SLOT( slotOpenFolder() ) ); - m_dropItem = 0L; - m_autoOpenTimer.stop(); - } -} -//----------------------------------------------- -void KFileDnDIconView::setDnDEnabled( bool useDnD ){ - m_dndEnabled = useDnD; - setAcceptDrops( useDnD ); - viewport()->setAcceptDrops( useDnD ); -} -//----------------------------------------------- -bool KFileDnDIconView::acceptDrag(TQDropEvent* e ) const { - return KURLDrag::canDecode( e ) && - ( e->action() == TQDropEvent::Copy - || e->action() == TQDropEvent::Move - || e->action() == TQDropEvent::Link ); -} -//----------------------------------------------- -#ifndef NO_INCLUDE_MOCFILES -#include "kfiledndiconview.moc" -#endif diff --git a/buildtools/autotools/kfiledndiconview.h b/buildtools/autotools/kfiledndiconview.h deleted file mode 100644 index 0e45d174..00000000 --- a/buildtools/autotools/kfiledndiconview.h +++ /dev/null @@ -1,129 +0,0 @@ -/************************************************************************** -* kfiledndiconview.h - description -* ------------------- -* begin : Wed Nov 1 2000 -* copyright : (C) 2000 by Bjrn Sahlstrm -* email : kbjorn@users.sourceforge.net -***************************************************************************/ - -/*************************************************************************** -* * -* This program is free software; you can redistribute it and/or modify * -* it under the terms of the GNU General Public License as published by * -* the Free Software Foundation; either version 2 of the License, or * -* (at your option) any later version. * -* * -**************************************************************************/ - -#ifndef KFILEDNDICONVIEW_H -#define KFILEDNDICONVIEW_H - -#include -#include -#include -#include - -/** - * This is a fileview inherited from @ref KFileIconView. - * It adds "drag and drop" suitable for a @ref KFileIconView - * No special setup is needed, just connect to the @ref dropped signals - * and the view will take care of the rest. - * @short Drag and drop" aware @ref KFileIconView - * @author Bjrn Sahlstrm -*/ - -class KFileDnDIconView : public KFileIconView -{ - Q_OBJECT - -public: // Public methods - - KFileDnDIconView( TQWidget *parent = 0, const char *name = 0 ); - virtual ~KFileDnDIconView(); - - /** - * Set if Drag'n drop should be enabled or not, default is enabled. - */ - void setDnDEnabled( bool ); - - /** - * @returns wether DnD is enabled or not. - */ - bool isDnDEnabled() const - { - return m_dndEnabled; - } - - /** - * Sets the auto open time, which means the time that will - * elapse before a directory is automatically opened after entered by DnD. - * Only need to call this if you want to change the predefined time that is 750 ms. - * This also calls @ref #useAutoOpenTimer so no need to call this to. - */ - void setAutoOpenTime( const int& time ); - - /** - * Set this to true if you want the view to use it's auto open functionallity otherwhise set it to false. - * By default this is turned ON. - */ - void useAutoOpenTimer( bool on = true ); - - /** - * @returns true if auto open functionallity is turned ON (default), otherwhise false - * @see #useAutoOpenTimer - * @see #setAutoOpenTime - */ - bool isAutoOpening() const - { - return m_useAutoOpenTimer; - } - - virtual void readConfig( TDEConfig*, const TQString& group = TQString() ); - virtual void writeConfig( TDEConfig*, const TQString& group = TQString() ); -signals: - - /** - * Emitted whenever an decodable item is dropped in the view. - * Note: The @ref TQDropEvent contains a @ref KURLDrag object. - */ - void dropped( TQDropEvent* ); - -protected slots: - /** - * Called when the auto timer times out. Open the current folder. - */ - void slotOpenFolder(); - -protected: - virtual void contentsDragEnterEvent( TQDragEnterEvent *e ); - virtual void contentsDragMoveEvent( TQDragMoveEvent *e ); - virtual void contentsDragLeaveEvent( TQDragLeaveEvent *e ); - virtual void contentsDropEvent( TQDropEvent* e ); - - /** - * Creates a @ref TQDragObject containing all urls of the selected @ref KFileItem of the view, - * @returns the @ref TQDragObject - */ - virtual TQDragObject* dragObject(); - - /** - *Creates the drag item and starts the drag - */ - virtual void startDrag(); - - /** - *@returns true if we can decode the drag and support the action - */ - virtual bool acceptDrag( TQDropEvent* event ) const; - -protected: - - TQTimer m_autoOpenTimer; - int m_autoOpenTime; - bool m_useAutoOpenTimer; - TQIconViewItem* m_dropItem; - bool m_dndEnabled; -}; -#endif -// kate: indent-mode csands; tab-width 4; auto-insert-doxygen on; - diff --git a/buildtools/autotools/kimporticonview.h b/buildtools/autotools/kimporticonview.h index 430f430c..d66c74ba 100644 --- a/buildtools/autotools/kimporticonview.h +++ b/buildtools/autotools/kimporticonview.h @@ -19,7 +19,7 @@ #include -#include "kfiledndiconview.h" +#include "tdefiledndiconview.h" class KImportIconView : public KFileDnDIconView { diff --git a/buildtools/autotools/subprojectoptionsdlg.cpp b/buildtools/autotools/subprojectoptionsdlg.cpp index aabb4b5e..f25a3958 100644 --- a/buildtools/autotools/subprojectoptionsdlg.cpp +++ b/buildtools/autotools/subprojectoptionsdlg.cpp @@ -30,7 +30,7 @@ #include #include #include -#include +#include #include "domutil.h" #include "misc.h" #include "addprefixdlg.h" diff --git a/buildtools/autotools/targetoptionsdlg.cpp b/buildtools/autotools/targetoptionsdlg.cpp index f462ee60..bc81ef30 100644 --- a/buildtools/autotools/targetoptionsdlg.cpp +++ b/buildtools/autotools/targetoptionsdlg.cpp @@ -25,7 +25,7 @@ #include #include #include -#include +#include #include "autolistviewitems.h" #include "misc.h" diff --git a/buildtools/autotools/tdefilednddetailview.cpp b/buildtools/autotools/tdefilednddetailview.cpp new file mode 100644 index 00000000..74492577 --- /dev/null +++ b/buildtools/autotools/tdefilednddetailview.cpp @@ -0,0 +1,212 @@ +/*************************************************************************** +* tdefilednddetailview.cpp - description +* ------------------- +* begin : Wed Nov 1 2000 +* copyright : (C) 2000 by Bj�n Sahlstr� +* email : kbjorn@users.sourceforge.net +***************************************************************************/ + +/*************************************************************************** +* * +* This program is free software; you can redistribute it and/or modify * +* it under the terms of the GNU General Public License as published by * +* the Free Software Foundation; either version 2 of the License, or * +* (at your option) any later version. * +* * +***************************************************************************/ + +////////////////////////////////////////////////////// +// TQt specific includes +#include +#include +////////////////////////////////////////////////////// +// KDE specific includes +#include +#include +#include +////////////////////////////////////////////////////// +// Application specific includes +#include "tdefilednddetailview.h" + +#ifndef AUTO_OPEN_TIME +#define AUTO_OPEN_TIME + static int autoOpenTime = 750; +#endif +//----------------------------------------------- +KFileDnDDetailView::KFileDnDDetailView(TQWidget *parent, const char *name ) + : KFileDetailView(parent,name), m_autoOpenTimer( this ), + m_autoOpenTime( autoOpenTime ), m_useAutoOpenTimer( true ), + m_dropItem(0), m_dndEnabled( true ) +{ + setAutoUpdate( true ); + setDnDEnabled( true ); + useAutoOpenTimer( true ); +} +//----------------------------------------------- +KFileDnDDetailView::~KFileDnDDetailView(){ +} +//----------------------------------------------- +void KFileDnDDetailView::readConfig( TDEConfig* config, const TQString& group ) { + TDEConfigGroupSaver cs( config, group ); + bool dnd = config->readBoolEntry("DragAndDrop", true ); + setDnDEnabled( dnd ); + KFileDetailView::readConfig( config, group ); +} +//----------------------------------------------- +void KFileDnDDetailView::writeConfig( TDEConfig* config, const TQString& group ) { + TDEConfigGroupSaver cs( config, group ); + config->writeEntry("DragAndDrop", m_dndEnabled ); + KFileDetailView::writeConfig( config, group ); +} +//----------------------------------------------- +void KFileDnDDetailView::slotOpenFolder(){ + if( m_useAutoOpenTimer ) { + m_autoOpenTimer.stop(); + if( !m_dropItem ) + return; + } + KFileItemListIterator it( * KFileView::items() ); + for( ; it.current() ;++it ){ + if( (*it)->name() == m_dropItem->text(0) ) { + if( (*it)->isFile() ) + return; + else if( (*it)->isDir() || (*it)->isLink()) { + sig->activate( (*it) ); + return; + } + } + } +} +//----------------------------------------------- +void KFileDnDDetailView::contentsDragEnterEvent( TQDragEnterEvent *e ) { + + kdDebug (9020) << "KFileDnDDetailView::contentsDragEnterEvent" << endl; + + if ( ! acceptDrag( e ) ) { + e->accept( false ); + return; + } + e->acceptAction(); + TQListViewItem *i = itemAt( contentsToViewport( e->pos() ) ); + if ( i && m_useAutoOpenTimer ) { + m_dropItem = i; + m_autoOpenTimer.start( m_autoOpenTime ); + } +} +//----------------------------------------------- +void KFileDnDDetailView::contentsDragMoveEvent( TQDragMoveEvent *e ) { + + kdDebug (9020) << "KFileDnDDetailView::contentsDragMoveEvent" << endl; + + if ( ! acceptDrag( e ) ) { + e->accept( false ); + return; + } + e->acceptAction(); + TQListViewItem *i = itemAt( contentsToViewport( e->pos() ) ); + if( ! m_useAutoOpenTimer ) + return; + if ( i ) { + if ( i != m_dropItem ) { + m_autoOpenTimer.stop(); + m_dropItem = i; + m_autoOpenTimer.start( m_autoOpenTime ); + } + } + else + m_autoOpenTimer.stop(); +} +//----------------------------------------------- +void KFileDnDDetailView::contentsDragLeaveEvent( TQDragLeaveEvent* ) { + + kdDebug (9020) << "KFileDnDDetailView::contentsDragLeaveEvent" << endl; + + if( m_useAutoOpenTimer ) { + m_autoOpenTimer.stop(); + m_dropItem = 0L; + } +} +//----------------------------------------------- +void KFileDnDDetailView::contentsDropEvent( TQDropEvent* e ) { + + kdDebug (9020) << "KFileDndDetailView::contentsDropEvent" << endl; + + if( m_useAutoOpenTimer ) { + m_autoOpenTimer.stop(); + m_dropItem = 0L; + } + if( ! acceptDrag( e ) ) { + e->acceptAction( false ); + return; + } + e->acceptAction(); + // the drop was accepted so lets emit this to the outside world + KURL::List urls; + KURLDrag::decode( e, urls ); + emit dropped( e ); + emit dropped( this, e ); + emit dropped( this, urls ); +} +//----------------------------------------------- +void KFileDnDDetailView::startDrag(){ + + kdDebug (9020) << "KFileDnDDetailView::startDrag()" << endl; + + // create a list of the URL:s that we want to drag + KURL::List urls; + KFileItemListIterator it( * KFileView::selectedItems() ); + for ( ; it.current(); ++it ){ + urls.append( (*it)->url() ); + } + TQPixmap pixmap; + if( urls.count() > 1 ){ + pixmap = DesktopIcon( "tdemultiple", 16 ); + } + if( pixmap.isNull() ) + pixmap = currentFileItem()->pixmap( 16 ); + TQPoint hotspot; + hotspot.setX( pixmap.width() / 2 ); + hotspot.setY( pixmap.height() / 2 ); + m_dragObject = KURLDrag::newDrag( urls, widget() ); + m_dragObject->setPixmap( pixmap, hotspot ); + m_dragObject->drag(); // start the drag +} +//----------------------------------------------- +TQDragObject* KFileDnDDetailView::dragObject() const { + return m_dragObject; +} +//----------------------------------------------- +bool KFileDnDDetailView::acceptDrag(TQDropEvent* e ) const { + return KURLDrag::canDecode( e ) && + ( e->action() == TQDropEvent::Copy + || e->action() == TQDropEvent::Move + || e->action() == TQDropEvent::Link ); +} +//----------------------------------------------- +void KFileDnDDetailView::setAutoOpenTime( const int& time ){ + m_autoOpenTime = time; + useAutoOpenTimer(); +} +//----------------------------------------------- +void KFileDnDDetailView::useAutoOpenTimer( bool use ){ + m_useAutoOpenTimer = use; + if( use ) + connect( &m_autoOpenTimer, TQT_SIGNAL( timeout() ),this, TQT_SLOT( slotOpenFolder() ) ); + else { + disconnect( &m_autoOpenTimer, TQT_SIGNAL( timeout() ),this, TQT_SLOT( slotOpenFolder() ) ); + m_dropItem = 0L; + m_autoOpenTimer.stop(); + } +} +//----------------------------------------------- +void KFileDnDDetailView::setDnDEnabled( bool useDnD ){ + m_dndEnabled = useDnD; + setDragEnabled( useDnD ); + setDropVisualizer( useDnD ); + setAcceptDrops( useDnD ); + viewport()->setAcceptDrops( useDnD ); +} +//----------------------------------------------- +#ifndef NO_INCLUDE_MOCFILES +#include "tdefilednddetailview.moc" +#endif diff --git a/buildtools/autotools/tdefilednddetailview.h b/buildtools/autotools/tdefilednddetailview.h new file mode 100644 index 00000000..95f7d663 --- /dev/null +++ b/buildtools/autotools/tdefilednddetailview.h @@ -0,0 +1,137 @@ +/*************************************************************************** +* tdefilednddetailview.h - description +* ------------------- +* begin : Wed Nov 1 2000 +* copyright : (C) 2000 by Bjrn Sahlstrm +* email : kbjorn@users.sourceforge.net +***************************************************************************/ + +/*************************************************************************** +* * +* This program is free software; you can redistribute it and/or modify * +* it under the terms of the GNU General Public License as published by * +* the Free Software Foundation; either version 2 of the License, or * +* (at your option) any later version. * +* * +**************************************************************************/ + +#ifndef KFILEDNDDETAILVIEW_H +#define KFILEDNDDETAILVIEW_H + +////////////////////////////////////////////////////////////////////// +// TQt specific include files +#include +#include +////////////////////////////////////////////////////////////////////// +// KDE specific include files +#include +#include + + +/** + *This is a fileview inherited from @ref KFileDetailView. + *It adds "drag and drop" handling to the view suitable for a @ref KFileDetailView. + * No special setup is needed, just connect to the @ref dropped signals + * and the view will take care of the rest. + *@short "Drag and drop" aware @ref KFileDetailView + *@author Bjrn Sahlstrm + */ + +class KFileDnDDetailView : public KFileDetailView +{ + Q_OBJECT + +public: + /** */ + KFileDnDDetailView( TQWidget *parent = 0, const char *name = 0 ); + /** */ + virtual ~KFileDnDDetailView(); + /** + * Set this to true if Drag'n drop should be enabled or not, default is enabled + */ + void setDnDEnabled( bool ); + /** + * @returns wether DnD is enabled or not. + */ + bool isDnDEnabled() const + { + return m_dndEnabled; + } + /** + *Sets the auto open time, which means the time that will + *elapse before a directory is automatically opened after entered by DnD. + *Only need to call this if you want to change the predefined time that is 750 ms. + *This also calls @ref #useAutoOpenTimer so no need to call this to. + */ + void setAutoOpenTime( const int& time ); + /** + *Set this to true if you want the view to use it's auto open functionallity otherwhise set it to false. + *By default this is turned ON. + */ + void useAutoOpenTimer( bool on = true ); + /** + *@returns true if auto open functionallity is turned ON (default), otherwhise false + *@see #useAutoOpenTimer + *@see #setAutoOpenTime + */ + bool isAutoOpening() const + { + return m_useAutoOpenTimer; + } + /** */ + virtual void readConfig( TDEConfig*, const TQString& group = TQString() ); + /** */ + virtual void writeConfig( TDEConfig*, const TQString& group = TQString() ); +signals: // Signals + /** + * Emitted whenever an decodable item is dropped in the view. + * Note: The @ref TQDropEvent contains a @ref KURLDrag object. + */ + void dropped( TQDropEvent* ); + /** + * Emitted whenever an decodable item is dropped in the view + * Note: The @ref TQDropEvent contains a @ref KURLDrag object. + */ + void dropped( KFileView*, TQDropEvent* ); + /** + * Emitted whenever an decodable item is dropped in the view. + *@param urls contains a list of all dropped @ref KURL + */ + void dropped( KFileView*, KURL::List& urls ); +protected slots: // Protected slots + /** + * Called when the auto timer times out. Open the current folder. + */ + void slotOpenFolder(); +protected: //Protected Methods + /** */ + virtual void contentsDragEnterEvent( TQDragEnterEvent *e ); + /** */ + virtual void contentsDragMoveEvent( TQDragMoveEvent *e ); + /** */ + virtual void contentsDragLeaveEvent( TQDragLeaveEvent *e ); + /** */ + virtual void contentsDropEvent( TQDropEvent* e ); + /** + * Create dragobject encoding the current selection and starts the drag + */ + virtual void startDrag(); + /** + * @returns the dragObject + */ + virtual TQDragObject* dragObject() const; + /** + * @returns true if we can decode the drag and support the action + */ + virtual bool acceptDrag( TQDropEvent* event ) const; +protected: // Private attributes + TQTimer m_autoOpenTimer; + int m_autoOpenTime; + bool m_useAutoOpenTimer; + TQListViewItem* m_dropItem; + KURLDrag* m_dragObject; + bool m_dndEnabled; +}; + +#endif +// kate: indent-mode csands; tab-width 4; diff --git a/buildtools/autotools/tdefiledndiconview.cpp b/buildtools/autotools/tdefiledndiconview.cpp new file mode 100644 index 00000000..d192b3b0 --- /dev/null +++ b/buildtools/autotools/tdefiledndiconview.cpp @@ -0,0 +1,194 @@ +/*************************************************************************** +* tdefiledndiconview.cpp - description +* ------------------- +* begin : Wed Nov 1 2000 +* copyright : (C) 2000 by Bj�rn Sahlstr�m +* email : kbjorn@users.sourceforge.net +***************************************************************************/ + +/*************************************************************************** +* * +* This program is free software; you can redistribute it and/or modify * +* it under the terms of the GNU General Public License as published by * +* the Free Software Foundation; either version 2 of the License, or * +* (at your option) any later version. * +* * +***************************************************************************/ + +////////////////////////////////////////////////////// +// TQt specific includes +#include +#include +////////////////////////////////////////////////////// +// KDE specific includes +#include +#include +#include +////////////////////////////////////////////////////// +// Application specific includes +#include "tdefiledndiconview.h" + +#ifndef AUTO_OPEN_TIME +#define AUTO_OPEN_TIME + static int autoOpenTime = 750; +#endif +//----------------------------------------------- +KFileDnDIconView::KFileDnDIconView( TQWidget *parent, const char *name ) + : KFileIconView(parent,name), m_autoOpenTimer( this ), + m_autoOpenTime( autoOpenTime ), m_useAutoOpenTimer( true ), + m_dropItem(0), m_dndEnabled( true ) +{ + setDnDEnabled( true ); + setAutoUpdate( true ); + useAutoOpenTimer( true ); +} +//----------------------------------------------- +KFileDnDIconView::~KFileDnDIconView(){ +} +//----------------------------------------------- +void KFileDnDIconView::readConfig( TDEConfig* config, const TQString& group ) { + TDEConfigGroupSaver cs( config, group ); + bool dnd = config->readBoolEntry("EnableDND", true ); + setDnDEnabled( dnd ); + KFileIconView::readConfig( config, group ); +} +//----------------------------------------------- +void KFileDnDIconView::writeConfig( TDEConfig* config, const TQString& group ) { + TDEConfigGroupSaver cs( config, group ); + config->writeEntry("EnableDND", m_dndEnabled ); + KFileIconView::writeConfig( config, group ); +} +//----------------------------------------------- +void KFileDnDIconView::slotOpenFolder(){ + if( m_useAutoOpenTimer ) { + m_autoOpenTimer.stop(); + if( !m_dropItem ) + return; + } + KFileItemListIterator it( * KFileView::items() ); + for( ; it.current() ;++it ){ + if( (*it)->name() == m_dropItem->text() ) { + if( (*it)->isFile() ) + return; + else if( (*it)->isDir() || (*it)->isLink()) { + sig->activate( (*it) ); + return; + } + } + } +} +//----------------------------------------------- +void KFileDnDIconView::contentsDragEnterEvent( TQDragEnterEvent *e ) { + if ( ! acceptDrag( e ) ) { // can we decode this ? + e->accept( false ); // No + return; + } + e->acceptAction(); // Yes + TQIconViewItem *i = findItem( contentsToViewport( e->pos() ) ); + if ( i && m_useAutoOpenTimer) { // are we over an item ? + m_dropItem = i; // set new m_dropItem + m_autoOpenTimer.start( m_autoOpenTime ); // restart timer + } +} +//----------------------------------------------- +void KFileDnDIconView::contentsDragMoveEvent( TQDragMoveEvent *e ) { + if ( ! acceptDrag( e ) ) { // can we decode this ? + e->accept( false ); // No + return; + } + e->acceptAction(); // Yes + TQIconViewItem *i = findItem( contentsToViewport( e->pos() ) ); + if( ! m_useAutoOpenTimer ) + return; + if ( i ) { // are we over an item ? + if ( i != m_dropItem ) { // if so, is it a new one ? + m_autoOpenTimer.stop(); // stop timer + m_dropItem = i; // set new m_dropItem + m_autoOpenTimer.start( m_autoOpenTime ); // restart timer + } + } + else + m_autoOpenTimer.stop(); // stop timer +} +//----------------------------------------------- +void KFileDnDIconView::contentsDragLeaveEvent( TQDragLeaveEvent* ) { + if( m_useAutoOpenTimer ) { + m_autoOpenTimer.stop(); + m_dropItem = 0L; + } +} +//----------------------------------------------- +void KFileDnDIconView::contentsDropEvent( TQDropEvent* e ) { + if( m_useAutoOpenTimer ) { + m_autoOpenTimer.stop(); + m_dropItem = 0L; + } + if( ! acceptDrag( e ) ) { + e->acceptAction( false ); + return; + } + e->acceptAction(); + // the drop was accepted so lets emit this + KURL::List urls; + KURLDrag::decode( e, urls ); + emit dropped( e ); +} +//----------------------------------------------- +void KFileDnDIconView::startDrag(){ + if ( ! currentItem() ) // is there any selected items ? + return; // nope + dragObject()->dragCopy(); // start the drag +} +//----------------------------------------------- +TQDragObject* KFileDnDIconView::dragObject() { + // create a list of the URL:s that we want to drag + KURL::List urls; + KFileItemListIterator it( * KFileView::selectedItems() ); + for ( ; it.current(); ++it ){ + urls.append( (*it)->url() ); + } + TQPixmap pixmap; + if( urls.count() > 1 ) + pixmap = DesktopIcon( "tdemultiple", iconSize() ); + if( pixmap.isNull() ) + pixmap = currentFileItem()->pixmap( iconSize() ); + TQPoint hotspot; + hotspot.setX( pixmap.width() / 2 ); + hotspot.setY( pixmap.height() / 2 ); + TQDragObject* myDragObject = KURLDrag::newDrag( urls, widget() ); + myDragObject->setPixmap( pixmap, hotspot ); + return myDragObject; +} +//----------------------------------------------- +void KFileDnDIconView::setAutoOpenTime( const int& time ){ + m_autoOpenTime = time; + useAutoOpenTimer(); +} +//----------------------------------------------- +void KFileDnDIconView::useAutoOpenTimer( bool use ){ + m_useAutoOpenTimer = use; + if ( use ) + connect( &m_autoOpenTimer, TQT_SIGNAL( timeout() ),this, TQT_SLOT( slotOpenFolder() ) ); + else { + disconnect( &m_autoOpenTimer, TQT_SIGNAL( timeout() ),this, TQT_SLOT( slotOpenFolder() ) ); + m_dropItem = 0L; + m_autoOpenTimer.stop(); + } +} +//----------------------------------------------- +void KFileDnDIconView::setDnDEnabled( bool useDnD ){ + m_dndEnabled = useDnD; + setAcceptDrops( useDnD ); + viewport()->setAcceptDrops( useDnD ); +} +//----------------------------------------------- +bool KFileDnDIconView::acceptDrag(TQDropEvent* e ) const { + return KURLDrag::canDecode( e ) && + ( e->action() == TQDropEvent::Copy + || e->action() == TQDropEvent::Move + || e->action() == TQDropEvent::Link ); +} +//----------------------------------------------- +#ifndef NO_INCLUDE_MOCFILES +#include "tdefiledndiconview.moc" +#endif diff --git a/buildtools/autotools/tdefiledndiconview.h b/buildtools/autotools/tdefiledndiconview.h new file mode 100644 index 00000000..84148362 --- /dev/null +++ b/buildtools/autotools/tdefiledndiconview.h @@ -0,0 +1,129 @@ +/************************************************************************** +* tdefiledndiconview.h - description +* ------------------- +* begin : Wed Nov 1 2000 +* copyright : (C) 2000 by Bjrn Sahlstrm +* email : kbjorn@users.sourceforge.net +***************************************************************************/ + +/*************************************************************************** +* * +* This program is free software; you can redistribute it and/or modify * +* it under the terms of the GNU General Public License as published by * +* the Free Software Foundation; either version 2 of the License, or * +* (at your option) any later version. * +* * +**************************************************************************/ + +#ifndef KFILEDNDICONVIEW_H +#define KFILEDNDICONVIEW_H + +#include +#include +#include +#include + +/** + * This is a fileview inherited from @ref KFileIconView. + * It adds "drag and drop" suitable for a @ref KFileIconView + * No special setup is needed, just connect to the @ref dropped signals + * and the view will take care of the rest. + * @short Drag and drop" aware @ref KFileIconView + * @author Bjrn Sahlstrm +*/ + +class KFileDnDIconView : public KFileIconView +{ + Q_OBJECT + +public: // Public methods + + KFileDnDIconView( TQWidget *parent = 0, const char *name = 0 ); + virtual ~KFileDnDIconView(); + + /** + * Set if Drag'n drop should be enabled or not, default is enabled. + */ + void setDnDEnabled( bool ); + + /** + * @returns wether DnD is enabled or not. + */ + bool isDnDEnabled() const + { + return m_dndEnabled; + } + + /** + * Sets the auto open time, which means the time that will + * elapse before a directory is automatically opened after entered by DnD. + * Only need to call this if you want to change the predefined time that is 750 ms. + * This also calls @ref #useAutoOpenTimer so no need to call this to. + */ + void setAutoOpenTime( const int& time ); + + /** + * Set this to true if you want the view to use it's auto open functionallity otherwhise set it to false. + * By default this is turned ON. + */ + void useAutoOpenTimer( bool on = true ); + + /** + * @returns true if auto open functionallity is turned ON (default), otherwhise false + * @see #useAutoOpenTimer + * @see #setAutoOpenTime + */ + bool isAutoOpening() const + { + return m_useAutoOpenTimer; + } + + virtual void readConfig( TDEConfig*, const TQString& group = TQString() ); + virtual void writeConfig( TDEConfig*, const TQString& group = TQString() ); +signals: + + /** + * Emitted whenever an decodable item is dropped in the view. + * Note: The @ref TQDropEvent contains a @ref KURLDrag object. + */ + void dropped( TQDropEvent* ); + +protected slots: + /** + * Called when the auto timer times out. Open the current folder. + */ + void slotOpenFolder(); + +protected: + virtual void contentsDragEnterEvent( TQDragEnterEvent *e ); + virtual void contentsDragMoveEvent( TQDragMoveEvent *e ); + virtual void contentsDragLeaveEvent( TQDragLeaveEvent *e ); + virtual void contentsDropEvent( TQDropEvent* e ); + + /** + * Creates a @ref TQDragObject containing all urls of the selected @ref KFileItem of the view, + * @returns the @ref TQDragObject + */ + virtual TQDragObject* dragObject(); + + /** + *Creates the drag item and starts the drag + */ + virtual void startDrag(); + + /** + *@returns true if we can decode the drag and support the action + */ + virtual bool acceptDrag( TQDropEvent* event ) const; + +protected: + + TQTimer m_autoOpenTimer; + int m_autoOpenTime; + bool m_useAutoOpenTimer; + TQIconViewItem* m_dropItem; + bool m_dndEnabled; +}; +#endif +// kate: indent-mode csands; tab-width 4; auto-insert-doxygen on; + diff --git a/buildtools/custommakefiles/custombuildoptionswidget.cpp b/buildtools/custommakefiles/custombuildoptionswidget.cpp index 920a0908..31f3161f 100644 --- a/buildtools/custommakefiles/custombuildoptionswidget.cpp +++ b/buildtools/custommakefiles/custombuildoptionswidget.cpp @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include #include #include "domutil.h" diff --git a/buildtools/custommakefiles/custommanagerwidget.cpp b/buildtools/custommakefiles/custommanagerwidget.cpp index 7062ab18..6c09541b 100644 --- a/buildtools/custommakefiles/custommanagerwidget.cpp +++ b/buildtools/custommakefiles/custommanagerwidget.cpp @@ -20,7 +20,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/buildtools/custommakefiles/customprojectpart.cpp b/buildtools/custommakefiles/customprojectpart.cpp index b39dc00f..6e5bc476 100644 --- a/buildtools/custommakefiles/customprojectpart.cpp +++ b/buildtools/custommakefiles/customprojectpart.cpp @@ -27,7 +27,7 @@ #include #include -#include +#include #include #include #include diff --git a/buildtools/lib/parsers/autotools/autotoolsdriver.cpp b/buildtools/lib/parsers/autotools/autotoolsdriver.cpp index a9620598..c31a5574 100644 --- a/buildtools/lib/parsers/autotools/autotoolsdriver.cpp +++ b/buildtools/lib/parsers/autotools/autotoolsdriver.cpp @@ -25,7 +25,7 @@ #include #include -#include +#include extern FILE *yyin, *yyout; extern int yyparse(); diff --git a/buildtools/lib/parsers/qmake/CMakeLists.txt b/buildtools/lib/parsers/qmake/CMakeLists.txt index 73296c7b..b8328a84 100644 --- a/buildtools/lib/parsers/qmake/CMakeLists.txt +++ b/buildtools/lib/parsers/qmake/CMakeLists.txt @@ -34,6 +34,6 @@ tde_add_library( kdevqmakeparser SHARED qmake_lex.cpp qmake_yacc.cpp qmakeast.cpp qmakeastvisitor.cpp qmakedriver.cpp VERSION 0.0.0 - LINK kio-shared + LINK tdeio-shared DESTINATION ${LIB_INSTALL_DIR} ) diff --git a/buildtools/lib/parsers/qmake/qmakedriver.cpp b/buildtools/lib/parsers/qmake/qmakedriver.cpp index e5a8f994..8b73814d 100644 --- a/buildtools/lib/parsers/qmake/qmakedriver.cpp +++ b/buildtools/lib/parsers/qmake/qmakedriver.cpp @@ -21,7 +21,7 @@ #include "qmakeast.h" #include -#include +#include #include #include diff --git a/buildtools/lib/widgets/addfilesdialog.h b/buildtools/lib/widgets/addfilesdialog.h index edc5c7be..8a7ed5c9 100644 --- a/buildtools/lib/widgets/addfilesdialog.h +++ b/buildtools/lib/widgets/addfilesdialog.h @@ -20,7 +20,7 @@ #define ADDFILESDIALOG_H #include -#include +#include class TQComboBox; diff --git a/buildtools/lib/widgets/runoptionswidget.cpp b/buildtools/lib/widgets/runoptionswidget.cpp index 0985e037..079f436e 100644 --- a/buildtools/lib/widgets/runoptionswidget.cpp +++ b/buildtools/lib/widgets/runoptionswidget.cpp @@ -20,7 +20,7 @@ #include "runoptionswidget.h" #include -#include +#include #include #include #include diff --git a/buildtools/pascal/pascalglobaloptionsdlg.cpp b/buildtools/pascal/pascalglobaloptionsdlg.cpp index 62facc8d..cf9e42cf 100644 --- a/buildtools/pascal/pascalglobaloptionsdlg.cpp +++ b/buildtools/pascal/pascalglobaloptionsdlg.cpp @@ -15,7 +15,7 @@ #include #include -#include +#include #include "kdevcompileroptions.h" diff --git a/buildtools/pascal/pascalproject_part.cpp b/buildtools/pascal/pascalproject_part.cpp index a2cb5723..4dd34709 100644 --- a/buildtools/pascal/pascalproject_part.cpp +++ b/buildtools/pascal/pascalproject_part.cpp @@ -27,7 +27,7 @@ #include #include #include -#include +#include #include #include diff --git a/buildtools/qmake/createscopedlg.cpp b/buildtools/qmake/createscopedlg.cpp index 4f65dd17..267bd471 100644 --- a/buildtools/qmake/createscopedlg.cpp +++ b/buildtools/qmake/createscopedlg.cpp @@ -14,11 +14,11 @@ #include #include #include -#include +#include #include #include #include -#include +#include #include #include "urlutil.h" diff --git a/buildtools/qmake/newwidgetdlg.cpp b/buildtools/qmake/newwidgetdlg.cpp index ab3e72f7..99d39a93 100644 --- a/buildtools/qmake/newwidgetdlg.cpp +++ b/buildtools/qmake/newwidgetdlg.cpp @@ -14,7 +14,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/buildtools/qmake/projectconfigurationdlg.cpp b/buildtools/qmake/projectconfigurationdlg.cpp index e5e80b2e..8f4ffc70 100644 --- a/buildtools/qmake/projectconfigurationdlg.cpp +++ b/buildtools/qmake/projectconfigurationdlg.cpp @@ -20,7 +20,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/buildtools/qmake/trollprojectpart.cpp b/buildtools/qmake/trollprojectpart.cpp index 58c4ba22..69c030b7 100644 --- a/buildtools/qmake/trollprojectpart.cpp +++ b/buildtools/qmake/trollprojectpart.cpp @@ -31,12 +31,12 @@ #include #include #include -#include +#include #include #include #include #include -#include +#include #include diff --git a/buildtools/qmake/trollprojectwidget.cpp b/buildtools/qmake/trollprojectwidget.cpp index 5b1f528b..77301f95 100644 --- a/buildtools/qmake/trollprojectwidget.cpp +++ b/buildtools/qmake/trollprojectwidget.cpp @@ -39,7 +39,7 @@ #include #include #include -#include +#include #include #include #include @@ -57,7 +57,7 @@ #include #include #include -#include +#include #include #include "kdevcore.h" diff --git a/doc/kde_app_devel/index.docbook b/doc/kde_app_devel/index.docbook index a73c681a..374e0e37 100644 --- a/doc/kde_app_devel/index.docbook +++ b/doc/kde_app_devel/index.docbook @@ -531,7 +531,7 @@ the tdecore library, containing all classes that are non-visible elements to pro the tdeui library, containing user interface elements like menubars, toolbars, etc. -the kfile library, containing the file selection dialogs +the tdefile library, containing the file selection dialogs diff --git a/doc/kdearch/index.docbook b/doc/kdearch/index.docbook index 7bccb9fa..6e4cc884 100644 --- a/doc/kdearch/index.docbook +++ b/doc/kdearch/index.docbook @@ -71,7 +71,7 @@ respecting user preferences. -kio +kio The kio library contains facilities for asynchronous, network transparent I/O and access to mimetype handling. It also provides the @@ -381,13 +381,13 @@ Generic auto-completion of strings. -<ulink url="kdeapi:kio/KURLCompletion">KURLCompletion</ulink> +<ulink url="kdeapi:tdeio/KURLCompletion">KURLCompletion</ulink> Auto-completion of URLs. -<ulink url="kdeapi:kio/KShellCompletion">KShellCompletion</ulink> +<ulink url="kdeapi:tdeio/KShellCompletion">KShellCompletion</ulink> Auto-completion of executables. @@ -455,7 +455,7 @@ A combo box for selecting file names and URLs. -<ulink url="kdeapi:kfile/KURLRequester">KURLRequester</ulink> +<ulink url="kdeapi:tdefile/KURLRequester">KURLRequester</ulink> A line edit for selecting file names and URLs. @@ -494,7 +494,7 @@ Dialogs - full-featured dialogs for file, color and font selection. -<ulink url="kdeapi:kfile/KFileDialog">KFileDialog</ulink> +<ulink url="kdeapi:tdefile/KFileDialog">KFileDialog</ulink> A file selection dialog. @@ -512,7 +512,7 @@ A font selection dialog. -<ulink url="kdeapi:kfile/KIconDialog">KIconDialog</ulink> +<ulink url="kdeapi:tdefile/KIconDialog">KIconDialog</ulink> An icon selection dialog. @@ -548,7 +548,7 @@ A simple dialog for entering text. -<ulink url="kdeapi:kfile/KURLRequesterDlg">KURLRequesterDlg</ulink> +<ulink url="kdeapi:tdefile/KURLRequesterDlg">KURLRequesterDlg</ulink> A simple dialog for entering URLs. @@ -624,31 +624,31 @@ Object factory in plugins. -<ulink url="kdeapi:kio/KServiceType">KServiceType</ulink> +<ulink url="kdeapi:tdeio/KServiceType">KServiceType</ulink> Represents a service type. -<ulink url="kdeapi:kio/KService">KService</ulink> +<ulink url="kdeapi:tdeio/KService">KService</ulink> Represents a service. -<ulink url="kdeapi:kio/KMimeType">KMimeType</ulink> +<ulink url="kdeapi:tdeio/KMimeType">KMimeType</ulink> Represents a MIME type. -<ulink url="kdeapi:kio/KServiceTypeProfile">KServiceTypeProfile</ulink> +<ulink url="kdeapi:tdeio/KServiceTypeProfile">KServiceTypeProfile</ulink> User preferences for MIME type mappings. -<ulink url="kdeapi:kio/KServiceTypeProfile">KTrader</ulink> +<ulink url="kdeapi:tdeio/KServiceTypeProfile">KTrader</ulink> Querying for services. @@ -2019,7 +2019,7 @@ objects or in most cases the generic In order to use a shared library service in an application, you need to obtain a -KService object +KService object representing it. This is discussed in the section about MIME types (and in a section about the trader to be written :-) @@ -2073,7 +2073,7 @@ A DCOP service is usually implemented as a program that is started up when it is needed. It then goes into a loop and listens for DCOP connections. The program may be an interactive one, but it may also run completely or for a part of its lifetime as a daemon in the background without the user noticing it. An example -for such a daemon is kio_uiserver, which implements user interaction +for such a daemon is tdeio_uiserver, which implements user interaction such as progress dialog for the KIO library. The advantage of such a centralized daemon in this context is that e.g. the download progress for several different files can be shown in one window, even if those downloads were initiated from @@ -2115,14 +2115,14 @@ on the user's settings, the cursor will be changed. -Here is the definition of kio_uiserver: +Here is the definition of tdeio_uiserver: [Desktop Entry] Type=Service -Name=kio_uiserver -Exec=kio_uiserver +Name=tdeio_uiserver +Exec=tdeio_uiserver X-DCOP-ServiceType=Unique X-TDE-StartupNotify=false @@ -2141,9 +2141,9 @@ class: DCOPClient *client = kapp->dcopClient(); client->attach(); -if (!client->isApplicationRegistered("kio_uiserver")) { +if (!client->isApplicationRegistered("tdeio_uiserver")) { QString error; - if (TDEApplication::startServiceByName("kio_uiserver", QStringList(), &error)) + if (TDEApplication::startServiceByName("tdeio_uiserver", QStringList(), &error)) cout << "Starting kioserver failed with message " << error << endl; } ... @@ -2151,9 +2151,9 @@ QByteArray data, replyData; QCString replyType; QDataStream arg(data, IO_WriteOnly); arg << true; -if (!client->call("kio_uiserver", "UIServer", "setListMode(bool)", +if (!client->call("tdeio_uiserver", "UIServer", "setListMode(bool)", data, replyType, replyData)) - cout << "Call to kio_uiserver failed" << endl; + cout << "Call to tdeio_uiserver failed" << endl; ... @@ -2170,7 +2170,7 @@ the name is appearing in the Name line of the desktop file. An alternative is to use TDEApplication::startServiceByDesktopName(), which takes the file name of its desktop file as argument, i.e. in this case -"kio_uiserver.desktop". +"tdeio_uiserver.desktop". @@ -2297,7 +2297,7 @@ an icon fooicon.png, which represents the file e.g. in In the KDE libraries, such a type definition is mapped to an instance of the -class KMimeType. +class KMimeType. Use this like in the following example: @@ -2350,7 +2350,7 @@ forget about them.) You may want to find out a MIME from the contents of file instead of the file name. This is more reliable, but also slower, as it requires reading a part of the file. This is done with the -KMimeMagic +KMimeMagic class, which has different error handling: @@ -2481,12 +2481,12 @@ else For even more complex queries, there is a full-blown CORBA-like -trader. +trader. In order to run an application service with some URLs, use -KRun: +KRun: @@ -2602,7 +2602,7 @@ deletes itself. Thus, a typical use case will look like this: void FooClass::makeDirectory() { - SimpleJob *job = TDEIO::mkdir(KURL("file:/home/bernd/kiodir")); + SimpleJob *job = TDEIO::mkdir(KURL("file:/home/bernd/tdeiodir")); connect( job, SIGNAL(result(TDEIO::Job*)), this, SLOT(mkdirResult(TDEIO::Job*)) ); } diff --git a/doc/tdevelop/tdevelop-install.docbook b/doc/tdevelop/tdevelop-install.docbook index 5e07b0b6..14f7236b 100644 --- a/doc/tdevelop/tdevelop-install.docbook +++ b/doc/tdevelop/tdevelop-install.docbook @@ -608,7 +608,7 @@ That's all. If you installed &tdevelop; in the default &kde; directory you may n TDEDIRS - kbuildsycoca + tdebuildsycoca By default configure prepares the IDE to be installed in the default &kde; directory. This is necessary because &tdevelop; assumes direct access to some tools and parts which reside there. If want to use your own installation directory, you must tell configure this by the option: @@ -635,7 +635,7 @@ Call up a shell and have the following commands executed before you start &tdeve ~> - kbuildsycoca + tdebuildsycoca (Now start &tdevelop;:) @@ -661,14 +661,14 @@ In a tcsh shell you must set the environment variables using: setenv TDEDIRS /usr/local/kde:/opt/trinity -The kbuildsycoca command (build system control cache) looks around for libraries and caches their location and version, so that &tdevelop; can find them. The caveat is that it takes noticeable time—and it has to be run any time you call up the shell to start &tdevelop; from a non-default directory. You may want to put the above commands into a shell script to reduce the typing effort. +The tdebuildsycoca command (build system control cache) looks around for libraries and caches their location and version, so that &tdevelop; can find them. The caveat is that it takes noticeable time—and it has to be run any time you call up the shell to start &tdevelop; from a non-default directory. You may want to put the above commands into a shell script to reduce the typing effort. -(You could as well put the lines in your .bashrc or .cshrc file, but this is not advisable as kbuildsycoca will then be run any time you call up the shell.) +(You could as well put the lines in your .bashrc or .cshrc file, but this is not advisable as tdebuildsycoca will then be run any time you call up the shell.) -The kbuildsycoca command does not run from within the root. You must call it from a non-root user. (But is not a very good idea after all to do software development from within the root!) +The tdebuildsycoca command does not run from within the root. You must call it from a non-root user. (But is not a very good idea after all to do software development from within the root!) diff --git a/editors/editor-chooser/editorchooser_widget.cpp b/editors/editor-chooser/editorchooser_widget.cpp index fc3a041a..012d1a15 100644 --- a/editors/editor-chooser/editorchooser_widget.cpp +++ b/editors/editor-chooser/editorchooser_widget.cpp @@ -6,7 +6,7 @@ #include #include #include -#include +#include #include "editorchooser_widget.h" diff --git a/embedded/visualboyadvance/vbaconfigwidget.cpp b/embedded/visualboyadvance/vbaconfigwidget.cpp index 7f95a901..d790e3cd 100644 --- a/embedded/visualboyadvance/vbaconfigwidget.cpp +++ b/embedded/visualboyadvance/vbaconfigwidget.cpp @@ -23,7 +23,7 @@ #include #include -#include +#include #include "domutil.h" diff --git a/kdevdesigner/designer/CMakeLists.txt b/kdevdesigner/designer/CMakeLists.txt index 298fb20d..c0370f26 100644 --- a/kdevdesigner/designer/CMakeLists.txt +++ b/kdevdesigner/designer/CMakeLists.txt @@ -102,6 +102,6 @@ tde_add_kpart( libkdevdesignerpart AUTOMOC SOURCES ${SRCS} LINK kdevqui-static shared-static kinterfacedesigner-shared - kio-shared tdeparts-shared qassistantclient + tdeio-shared tdeparts-shared qassistantclient DESTINATION ${PLUGIN_INSTALL_DIR} ) diff --git a/kdevdesigner/designer/customwidgeteditorimpl.cpp b/kdevdesigner/designer/customwidgeteditorimpl.cpp index 5759de20..f923f604 100644 --- a/kdevdesigner/designer/customwidgeteditorimpl.cpp +++ b/kdevdesigner/designer/customwidgeteditorimpl.cpp @@ -33,7 +33,7 @@ #include "widgetfactory.h" #include "widgetdatabase.h" -#include +#include #include #include diff --git a/kdevdesigner/designer/filechooser.cpp b/kdevdesigner/designer/filechooser.cpp index 9c2bb751..0f4c426e 100644 --- a/kdevdesigner/designer/filechooser.cpp +++ b/kdevdesigner/designer/filechooser.cpp @@ -30,7 +30,7 @@ #include #include -#include +#include FileChooser::FileChooser( TQWidget *parent, const char *name ) : TQWidget( parent, name ), md( File ) diff --git a/kdevdesigner/designer/formfile.cpp b/kdevdesigner/designer/formfile.cpp index 4c60eaab..c893b42f 100644 --- a/kdevdesigner/designer/formfile.cpp +++ b/kdevdesigner/designer/formfile.cpp @@ -43,7 +43,7 @@ #include "designerappiface.h" #include -#include +#include #include #include "kdevdesigner_part.h" diff --git a/kdevdesigner/designer/kdevdesigner_part.cpp b/kdevdesigner/designer/kdevdesigner_part.cpp index 798b8b6c..2e84b2ad 100644 --- a/kdevdesigner/designer/kdevdesigner_part.cpp +++ b/kdevdesigner/designer/kdevdesigner_part.cpp @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/kdevdesigner/designer/mainwindowactions.cpp b/kdevdesigner/designer/mainwindowactions.cpp index 0aa0275e..17583ecf 100644 --- a/kdevdesigner/designer/mainwindowactions.cpp +++ b/kdevdesigner/designer/mainwindowactions.cpp @@ -27,7 +27,7 @@ #include "mainwindow.h" #include -#include +#include #include #include diff --git a/kdevdesigner/designer/pixmapchooser.cpp b/kdevdesigner/designer/pixmapchooser.cpp index a050f4da..92d68ac1 100644 --- a/kdevdesigner/designer/pixmapchooser.cpp +++ b/kdevdesigner/designer/pixmapchooser.cpp @@ -28,7 +28,7 @@ #include #include -#include +#include #include #include diff --git a/kdevdesigner/designer/projectsettingsimpl.cpp b/kdevdesigner/designer/projectsettingsimpl.cpp index 5cea9192..ca6c34ea 100644 --- a/kdevdesigner/designer/projectsettingsimpl.cpp +++ b/kdevdesigner/designer/projectsettingsimpl.cpp @@ -34,7 +34,7 @@ #include "sourcefile.h" #include "workspace.h" -#include +#include #include #include diff --git a/kdevdesigner/designer/resource.cpp b/kdevdesigner/designer/resource.cpp index 4f1e9a37..02b50684 100644 --- a/kdevdesigner/designer/resource.cpp +++ b/kdevdesigner/designer/resource.cpp @@ -82,7 +82,7 @@ #include #include -#include +#include #include #include "kdevdesigner_part.h" diff --git a/kdevdesigner/designer/sourcefile.cpp b/kdevdesigner/designer/sourcefile.cpp index b0061f24..9713fed9 100644 --- a/kdevdesigner/designer/sourcefile.cpp +++ b/kdevdesigner/designer/sourcefile.cpp @@ -37,7 +37,7 @@ #include "workspace.h" #include -#include +#include #include SourceFile::SourceFile( const TQString &fn, bool temp, Project *p ) diff --git a/kdevdesigner/src/kdevdesigner.cpp b/kdevdesigner/src/kdevdesigner.cpp index 6d1d5270..e184fe01 100644 --- a/kdevdesigner/src/kdevdesigner.cpp +++ b/kdevdesigner/src/kdevdesigner.cpp @@ -22,8 +22,8 @@ #include #include -#include -#include +#include +#include #include #include diff --git a/languages/ada/configproblemreporter.ui.h b/languages/ada/configproblemreporter.ui.h index 9c586fa4..546c160f 100644 --- a/languages/ada/configproblemreporter.ui.h +++ b/languages/ada/configproblemreporter.ui.h @@ -6,7 +6,7 @@ ** a constructor, and a destroy() slot in place of a destructor. *****************************************************************************/ -#include +#include #include void ConfigureProblemReporter::init() diff --git a/languages/ada/problemreporter.cpp b/languages/ada/problemreporter.cpp index cf816ca1..5e672c41 100644 --- a/languages/ada/problemreporter.cpp +++ b/languages/ada/problemreporter.cpp @@ -41,7 +41,7 @@ #include #include -#include +#include #include #include diff --git a/languages/cpp/addattributedialog.cpp b/languages/cpp/addattributedialog.cpp index 885aad6d..78c9dc84 100644 --- a/languages/cpp/addattributedialog.cpp +++ b/languages/cpp/addattributedialog.cpp @@ -27,7 +27,7 @@ #include -#include +#include #include #include #include diff --git a/languages/cpp/addmethoddialog.cpp b/languages/cpp/addmethoddialog.cpp index ae4b5a61..3faf0e97 100644 --- a/languages/cpp/addmethoddialog.cpp +++ b/languages/cpp/addmethoddialog.cpp @@ -28,7 +28,7 @@ #include #include -#include +#include #include #include #include diff --git a/languages/cpp/app_templates/CMakeLists.txt b/languages/cpp/app_templates/CMakeLists.txt index 94a914ac..52229fc6 100644 --- a/languages/cpp/app_templates/CMakeLists.txt +++ b/languages/cpp/app_templates/CMakeLists.txt @@ -14,7 +14,7 @@ add_subdirectory( kpartapp ) add_subdirectory( kpartplugin ) add_subdirectory( tdecmodule ) add_subdirectory( kicker ) -add_subdirectory( kioslave ) +add_subdirectory( tdeioslave ) add_subdirectory( kdevpart ) add_subdirectory( kdevpart2 ) add_subdirectory( chello ) @@ -35,12 +35,12 @@ add_subdirectory( qtopiaapp ) add_subdirectory( kdedcop ) add_subdirectory( wxhello ) add_subdirectory( cppsdlhello ) -add_subdirectory( kconfig35 ) +add_subdirectory( tdeconfig35 ) add_subdirectory( kdevlang ) add_subdirectory( noatunvisual ) add_subdirectory( noatunui ) add_subdirectory( kmod ) -add_subdirectory( kfileplugin ) +add_subdirectory( tdefileplugin ) add_subdirectory( clanlib ) add_subdirectory( opieapp ) add_subdirectory( opieapplet ) diff --git a/languages/cpp/app_templates/Makefile.am b/languages/cpp/app_templates/Makefile.am index 09e63e1a..8350118d 100644 --- a/languages/cpp/app_templates/Makefile.am +++ b/languages/cpp/app_templates/Makefile.am @@ -1,4 +1,4 @@ -SUBDIRS = kapp kpartapp kpartplugin tdecmodule kicker kioslave kdevpart kdevpart2 chello cpphello tdescreensaver kofficepart chello_gba dcopservice konqnavpanel qmakesimple qmakeapp qt4makeapp khello khello2 kateplugin kateplugin2 qtopiaapp kdedcop wxhello cppsdlhello kconfig35 kdevlang noatunvisual noatunui kmod kfileplugin clanlib opieapp opieapplet opieinput opiemenu opienet opietoday kxt gtk2mmapp cppcurseshello win32hello win32gui cmakesimple cmakesimplec cmakelibcpp cmakelibc kscons_kxt kscons_tdemdi qt4hello qmakeempty automakeempty makefileempty qtopia4app kde4app +SUBDIRS = kapp kpartapp kpartplugin tdecmodule kicker tdeioslave kdevpart kdevpart2 chello cpphello tdescreensaver kofficepart chello_gba dcopservice konqnavpanel qmakesimple qmakeapp qt4makeapp khello khello2 kateplugin kateplugin2 qtopiaapp kdedcop wxhello cppsdlhello tdeconfig35 kdevlang noatunvisual noatunui kmod tdefileplugin clanlib opieapp opieapplet opieinput opiemenu opienet opietoday kxt gtk2mmapp cppcurseshello win32hello win32gui cmakesimple cmakesimplec cmakelibcpp cmakelibc kscons_kxt kscons_tdemdi qt4hello qmakeempty automakeempty makefileempty qtopia4app kde4app profilescdir = $(kde_datadir)/tdevelop/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CIDE profilesc_DATA = c.appwizard diff --git a/languages/cpp/app_templates/dcopservice/dcopservice.tdevelop b/languages/cpp/app_templates/dcopservice/dcopservice.tdevelop index ab65a7a0..59569583 100644 --- a/languages/cpp/app_templates/dcopservice/dcopservice.tdevelop +++ b/languages/cpp/app_templates/dcopservice/dcopservice.tdevelop @@ -11,7 +11,7 @@ Code Qt TDE - kioslave + tdeioslave diff --git a/languages/cpp/app_templates/kapp/README b/languages/cpp/app_templates/kapp/README index 1ddb40a1..7720e6b4 100644 --- a/languages/cpp/app_templates/kapp/README +++ b/languages/cpp/app_templates/kapp/README @@ -46,7 +46,7 @@ http://developer.kde.org/documentation/tutorials/xmlui/preface.html them more maintainable. For more details, consult : -http://developer.kde.org/documentation/tutorials/kconfigxt/kconfigxt.html +http://developer.kde.org/documentation/tutorials/tdeconfigxt/tdeconfigxt.html * With KParts, you can embed other kde components in your program, or make your program embeddable in other apps. For example, the kmplayer kpart can be called to play videos diff --git a/languages/cpp/app_templates/kapp/app.cpp b/languages/cpp/app_templates/kapp/app.cpp index cc77371d..cefcc605 100644 --- a/languages/cpp/app_templates/kapp/app.cpp +++ b/languages/cpp/app_templates/kapp/app.cpp @@ -14,9 +14,9 @@ #include #include #include -#include -#include -#include +#include +#include +#include #include #include #include diff --git a/languages/cpp/app_templates/kateplugin2/plugin_app.cpp b/languages/cpp/app_templates/kateplugin2/plugin_app.cpp index c74deda0..008db5a8 100644 --- a/languages/cpp/app_templates/kateplugin2/plugin_app.cpp +++ b/languages/cpp/app_templates/kateplugin2/plugin_app.cpp @@ -5,7 +5,7 @@ #include #include #include -#include +#include #include #include diff --git a/languages/cpp/app_templates/kconfig35/CMakeLists.txt b/languages/cpp/app_templates/kconfig35/CMakeLists.txt deleted file mode 100644 index 412cabdf..00000000 --- a/languages/cpp/app_templates/kconfig35/CMakeLists.txt +++ /dev/null @@ -1,28 +0,0 @@ -################################################# -# -# (C) 2010-2011 Serghei Amelian -# serghei (DOT) amelian (AT) gmail.com -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -add_custom_target( kconfig35.tar.gz ALL - COMMAND tar zcf kconfig35.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} - src-Makefile.am app.cpp app.h main.cpp appui.rc - app.tdevelop subdirs app.desktop kxt35.png appview.h - appview.cpp appview_base.ui prefs-base.ui prefs.cpp prefs.h - app.kcfg settings.kcfgc README src-configure.in.in -) - - -install( FILES - ${CMAKE_CURRENT_BINARY_DIR}/kconfig35.tar.gz kconfig35.png - DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard ) - - -install( FILES - kconfig35.kdevtemplate - DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates ) diff --git a/languages/cpp/app_templates/kconfig35/Makefile.am b/languages/cpp/app_templates/kconfig35/Makefile.am deleted file mode 100644 index e6695775..00000000 --- a/languages/cpp/app_templates/kconfig35/Makefile.am +++ /dev/null @@ -1,19 +0,0 @@ -dataFiles = src-Makefile.am app.cpp app.h main.cpp appui.rc app.tdevelop \ - subdirs app.desktop kxt35.png appview.h appview.cpp appview_base.ui \ - prefs-base.ui prefs.cpp prefs.h app.kcfg settings.kcfgc README \ - src-configure.in.in -templateName= kconfig35 - -### no need to change below: -template_DATA = $(templateName).kdevtemplate -templatedir = ${appwizarddatadir}/templates - -appwizarddatadir = ${kde_datadir}/kdevappwizard -$(templateName).tar.gz: ${dataFiles} - $(TAR) -cf $(templateName).tar -C $(srcdir) ${dataFiles} - $(GZIP_COMMAND) -f9 $(templateName).tar - -archivedir = ${appwizarddatadir} -archive_DATA = $(templateName).tar.gz ${templateName}.png - -CLEANFILES = *.tar.gz diff --git a/languages/cpp/app_templates/kconfig35/README b/languages/cpp/app_templates/kconfig35/README deleted file mode 100644 index a27cdb29..00000000 --- a/languages/cpp/app_templates/kconfig35/README +++ /dev/null @@ -1,90 +0,0 @@ ------------------------------------------------ -Kde templates quickstart -Author: Thomas Nagy -Date: 2004-03-22 ------------------------------------------------ - -This README file explains you basic things for starting with -this application template. - ------------------------------------------------ ---NOTE--: you need tdelibs 3.5 and tdelibs headers 3.5 (devel package) in order to build this template. -Qt version might be 3.3.4 or 3.3.5 ------------------------------------------------ - -** Building and installing ** - -* Build the configure script by "make -f Makefile.cvs" - -* To clean, use "make clean", and to clean everything -(remove the makefiles, etc), use "make distclean" - -* To distribute your program, try "make dist". -This will make a compact tarball archive of your release with the -necessary scripts inside. - -* Modifying the auto-tools scripts -for automake scripts there is an excellent tutorial there : -http://developer.kde.org/documentation/other/makefile_am_howto.html - -* Simplify your life : install the project in your home directory for -testing purposes. -./configure --prefix=/home/user/dummyfolder/ -In the end when you finished the development you can -rm -rf /home/user/dummyfolder/ -without fear. - - -** Technologies ** - -* Build the menus of your application easily -kde applications now use an xml file (*ui.rc file) to build the menus. -This allow a great customization of the application. However, when -programming the menu is shown only after a "make install" - -For more details, consult : -http://devel-home.kde.org/~larrosa/tutorial/p9.html -http://developer.kde.org/documentation/tutorials/xmlui/preface.html - -* Use TDEConfig XT to create your configuration dialogs and make -them more maintainable. - -For that, you will need to write two simple configuration files -in the src directory : .kcfg and a .kcfgc -The configure.in.in will need to be modified : change the line #MIN_CONFIG(3.0.0) -into #MIN_CONFIG(3.2.0) - -Take an example on the many apps found in the tdegames source package and consult : -http://developer.kde.org/documentation/tutorials/kconfigxt/kconfigxt.html - -* With KParts, you can embed other kde components in your program, or make your program -embeddable in other apps. For example, the kmplayer kpart can be called to play videos -in your app. - -For more details, consult : -http://www-106.ibm.com/developerworks/library/l-tdeparts/ -http://developer.kde.org/documentation/tutorials/dot/writing-plugins.html -http://developer.kde.org/documentation/tutorials/developing-a-plugin-structure/index.html - -* With dcop, you can control your app from other applications -Make sure to include K_DCOP and a kdcop: section in your .h file -http://developer.kde.org/documentation/tutorials/dot/dcopiface/dcop-interface.html - - -** Documentation ** - -* For the translations : -1. Download a patched gettext which can be found at: - http://public.kde.planetmirror.com/pub/kde/devel/gettext-kde/ -2. Install that gettext in ~/bin/ -3. cd ~/yourproject, export PATH=~/bin:$PATH, export -TDEDIR=/where_your_TDE3_is -4. make -f admin/Makefile.common package-messages -5. make package-messages -6. Translate the po files (not the pot!!) with kbabel or xemacs - -* Do not forget to write the documentation for your kde app -edit the documentation template index.docbook in doc/ - - - diff --git a/languages/cpp/app_templates/kconfig35/app.cpp b/languages/cpp/app_templates/kconfig35/app.cpp deleted file mode 100644 index 0fb99ee1..00000000 --- a/languages/cpp/app_templates/kconfig35/app.cpp +++ /dev/null @@ -1,105 +0,0 @@ -%{CPP_TEMPLATE} - -#include "%{APPNAMELC}.h" -#include "settings.h" -#include "prefs.h" - -#include - -#include -#include -#include -#include -#include -#include - -%{APPNAMELC}::%{APPNAMELC}() - : KMainWindow( 0, "%{APPNAMELC}" ), - m_view(new %{APPNAMELC}View(this)), - m_printer(0) -{ - // accept dnd - setAcceptDrops(true); - - // tell the KMainWindow that this is indeed the main widget - setCentralWidget(m_view); - // and a status bar - statusBar()->show(); - // then, setup our actions - setupActions(); - - // apply the saved mainwindow settings, if any, and ask the mainwindow - // to automatically save settings if changed: window size, toolbar - // position, icon size, etc. - setAutoSaveSettings(); - - // allow the view to change the statusbar and caption - connect(m_view, TQT_SIGNAL(signalChangeStatusbar(const TQString&)), - this, TQT_SLOT(changeStatusbar(const TQString&))); - connect(m_view, TQT_SIGNAL(signalChangeCaption(const TQString&)), - this, TQT_SLOT(changeCaption(const TQString&))); - -} - -%{APPNAMELC}::~%{APPNAMELC}() -{ -} - -void %{APPNAMELC}::setupActions() -{ - KStdAction::openNew(this, TQT_SLOT(fileNew()), actionCollection()); - KStdAction::quit(kapp, TQT_SLOT(quit()), actionCollection()); - - KStdAction::preferences(this, TQT_SLOT(optionsPreferences()), actionCollection()); - - // custom menu and menu item - KAction *custom = new KAction(i18n("Swi&tch Colors"), 0, - m_view, TQT_SLOT(switchColors()), - actionCollection(), "switch_action"); - - setupGUI(); -} - -void %{APPNAMELC}::newToolbarConfig() -{ - // this slot is called when user clicks "Ok" or "Apply" in the toolbar editor. - // recreate our GUI, and re-apply the settings (e.g. "text under icons", etc.) - setupGUI(); -} - -void %{APPNAMELC}::optionsPreferences() -{ - // The preference dialog is derived from prefs-base.ui which is subclassed into Prefs - // - // compare the names of the widgets in the .ui file - // to the names of the variables in the .kcfg file - TDEConfigDialog *dialog = new TDEConfigDialog(this, "settings", Settings::self(), KDialogBase::Swallow); - dialog->addPage(new Prefs(), i18n("General"), "package_settings"); - connect(dialog, TQT_SIGNAL(settingsChanged()), m_view, TQT_SLOT(settingsChanged())); - dialog->show(); -} - -void %{APPNAMELC}::changeCaption(const TQString& text) -{ - // display the text on the caption - setCaption(text); -} - -void %{APPNAMELC}::changeStatusbar(const TQString& text) -{ - // display the text on the statusbar - statusBar()->message(text); -} - -void %{APPNAMELC}::fileNew() -{ - // this slot is called whenever the File->New menu is selected, - // the New shortcut is pressed (usually CTRL+N) or the New toolbar - // button is clicked - - // create a new window - (new %{APPNAMELC})->show(); -} - -#include "%{APPNAMELC}.moc" - diff --git a/languages/cpp/app_templates/kconfig35/app.desktop b/languages/cpp/app_templates/kconfig35/app.desktop deleted file mode 100644 index 5beccc5d..00000000 --- a/languages/cpp/app_templates/kconfig35/app.desktop +++ /dev/null @@ -1,40 +0,0 @@ -[Desktop Entry] -Name=%{APPNAME} -Exec=%{APPNAMELC} -Icon=%{APPNAMELC} -Type=Application -Comment=A simple TDE Application -Comment[br]=Ur meziant eeun evit TDE -Comment[ca]=Una simple aplicació per al TDE -Comment[da]=Et simpelt TDE program -Comment[de]=Eine einfache TDE-Anwendung -Comment[el]=Μια απλή εφαρμογή του TDE -Comment[es]=Una aplicación de TDE sencilla -Comment[et]=Lihtne TDE rakendus -Comment[eu]=TDE aplikazio simple bat -Comment[fa]=یک کاربرد سادۀ TDE -Comment[fr]=Une application simple pour TDE -Comment[ga]=Feidhmchlár Simplí TDE -Comment[gl]=Unha aplicación TDE sinxela -Comment[hi]=एक सादा केडीई अनुप्रयोग -Comment[hu]=Egyszerű TDE-alkalmazás -Comment[is]=Einfalt TDE forrit -Comment[it]=Una semplice applicazione TDE -Comment[ja]=簡単な TDE アプリケーション -Comment[nds]=En eenfach TDE-Programm -Comment[ne]=एउटा साधारण केडीई अनुप्रयोग -Comment[nl]=Een eenvoudige TDE-toepassing -Comment[pl]=Prosty program TDE -Comment[pt]=Uma aplicação simples do TDE -Comment[pt_BR]=Um simples Aplicativo do TDE -Comment[ru]=Простое приложение TDE -Comment[sk]=Jednoduchá TDE aplikácia -Comment[sl]=Preprost program za TDE -Comment[sr]=Једноставан TDE програм -Comment[sr@Latn]=Jednostavan TDE program -Comment[sv]=Ett enkelt TDE-program -Comment[ta]=ஒரு சாதாரண கெடிஇ பயன்பாடு -Comment[tg]=Гузориши оддиTDE -Comment[tr]=Basit bir TDE Uygulaması -Comment[zh_CN]=一个简单的 TDE 应用程序 -Comment[zh_TW]=簡單的 TDE 應用程式 diff --git a/languages/cpp/app_templates/kconfig35/app.h b/languages/cpp/app_templates/kconfig35/app.h deleted file mode 100644 index c1aac7e4..00000000 --- a/languages/cpp/app_templates/kconfig35/app.h +++ /dev/null @@ -1,61 +0,0 @@ -%{H_TEMPLATE} - -#ifndef _%{APPNAMEUC}_H_ -#define _%{APPNAMEUC}_H_ - -#ifdef HAVE_CONFIG_H -#include -#endif - -#include -#include - -#include "%{APPNAMELC}view.h" - -class KPrinter; -class KURL; - -/** - * This class serves as the main window for %{APPNAME}. It handles the - * menus, toolbars, and status bars. - * - * @short Main window class - * @author %{AUTHOR} <%{EMAIL}> - * @version %{VERSION} - */ -class %{APPNAMELC} : public KMainWindow -{ - Q_OBJECT - -public: - /** - * Default Constructor - */ - %{APPNAMELC}(); - - /** - * Default Destructor - */ - virtual ~%{APPNAMELC}(); - -private slots: - - void fileNew(); - void optionsPreferences(); - void newToolbarConfig(); - - void changeStatusbar(const TQString& text); - void changeCaption(const TQString& text); - -private: - - void setupActions(); - -private: - %{APPNAMELC}View *m_view; - - KPrinter *m_printer; -}; - -#endif // _%{APPNAMEUC}_H_ - diff --git a/languages/cpp/app_templates/kconfig35/app.kcfg b/languages/cpp/app_templates/kconfig35/app.kcfg deleted file mode 100644 index 686f25f2..00000000 --- a/languages/cpp/app_templates/kconfig35/app.kcfg +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - black - - - - yellow - - - - 2 - - - diff --git a/languages/cpp/app_templates/kconfig35/app.tdevelop b/languages/cpp/app_templates/kconfig35/app.tdevelop deleted file mode 100644 index 6a53f237..00000000 --- a/languages/cpp/app_templates/kconfig35/app.tdevelop +++ /dev/null @@ -1,168 +0,0 @@ - - - - %{AUTHOR} - %{EMAIL} - %{VERSION} - KDevTDEAutoProject - C++ - - C++ - Code - Qt - TDE - - . - false - - - - - - 3 - true - 3 - EmbeddedKDevDesigner - - - - - src/%{APPNAMELC} - debug - - - src/%{APPNAMELC} - false - - - - - - - false - 1 - false - - - - - optimized - kdevgccoptions - kdevgppoptions - kdevg77options - -O2 -g0 - - - --enable-debug=full - debug - kdevgccoptions - kdevgppoptions - kdevg77options - -O0 -g3 - - - - - - - - - - - - - false - *.o,*.lo,CVS - - - - - ada - ada_bugs_gcc - bash - bash_bugs - clanlib - w3c-dom-level2-html - fortran_bugs_gcc - gnome1 - gnustep - gtk - gtk_bugs - haskell - haskell_bugs_ghc - java_bugs_gcc - java_bugs_sun - pascal_bugs_fp - php - php_bugs - perl - perl_bugs - python - python_bugs - ruby - ruby_bugs - sdl - w3c-svg - sw - w3c-uaag10 - wxwidgets_bugs - - - qmake User Guide - - - - - libtool - - - true - false - false - true - - - false - true - - - - - - - - - - - - -f - - -dP - - -f - -u3 -p - - - - - - - false - - - .h - .cpp - true - - - - true - 2 - - - - Doxygen Documentation Collection - %{APPNAMELC}.tag - - - diff --git a/languages/cpp/app_templates/kconfig35/appui.rc b/languages/cpp/app_templates/kconfig35/appui.rc deleted file mode 100644 index 06549878..00000000 --- a/languages/cpp/app_templates/kconfig35/appui.rc +++ /dev/null @@ -1,8 +0,0 @@ - - - - &Move - - - - diff --git a/languages/cpp/app_templates/kconfig35/appview.cpp b/languages/cpp/app_templates/kconfig35/appview.cpp deleted file mode 100644 index 30d627fe..00000000 --- a/languages/cpp/app_templates/kconfig35/appview.cpp +++ /dev/null @@ -1,41 +0,0 @@ -%{CPP_TEMPLATE} - -#include "%{APPNAMELC}view.h" -#include "settings.h" - -#include -#include - -%{APPNAMELC}View::%{APPNAMELC}View(TQWidget *parent) - : %{APPNAMELC}view_base(parent) -{ - settingsChanged(); -} - -%{APPNAMELC}View::~%{APPNAMELC}View() -{ - -} - -void %{APPNAMELC}View::switchColors() -{ - // switch the foreground/background colors of the label - TQColor color = Settings::col_background(); - Settings::setCol_background( Settings::col_foreground() ); - Settings::setCol_foreground( color ); - - settingsChanged(); -} - -void %{APPNAMELC}View::settingsChanged() -{ - sillyLabel->setPaletteBackgroundColor( Settings::col_background() ); - sillyLabel->setPaletteForegroundColor( Settings::col_foreground() ); - - // i18n : internationalization - sillyLabel->setText( i18n("This project is %1 days old").arg(Settings::val_time()) ); - emit signalChangeStatusbar( i18n("Settings changed") ); -} - -#include "%{APPNAMELC}view.moc" - diff --git a/languages/cpp/app_templates/kconfig35/appview.h b/languages/cpp/app_templates/kconfig35/appview.h deleted file mode 100644 index a486ec43..00000000 --- a/languages/cpp/app_templates/kconfig35/appview.h +++ /dev/null @@ -1,53 +0,0 @@ -%{H_TEMPLATE} - -#ifndef _%{APPNAMEUC}VIEW_H_ -#define _%{APPNAMEUC}VIEW_H_ - -#include - -#include "%{APPNAMELC}view_base.h" - -class TQPainter; -class KURL; - -/** - * This is the main view class for %{APPNAME}. Most of the non-menu, - * non-toolbar, and non-statusbar (e.g., non frame) GUI code should go - * here. - * - * @short Main view - * @author %{AUTHOR} <%{EMAIL}> - * @version %{VERSION} - */ -class %{APPNAMELC}View : public %{APPNAMELC}view_base -{ - Q_OBJECT - -public: - /** - * Default constructor - */ - %{APPNAMELC}View(TQWidget *parent); - - /** - * Destructor - */ - virtual ~%{APPNAMELC}View(); - -signals: - /** - * Use this signal to change the content of the statusbar - */ - void signalChangeStatusbar(const TQString& text); - - /** - * Use this signal to change the content of the caption - */ - void signalChangeCaption(const TQString& text); - -private slots: - void switchColors(); - void settingsChanged(); -}; - -#endif // _%{APPNAMEUC}VIEW_H_ diff --git a/languages/cpp/app_templates/kconfig35/appview_base.ui b/languages/cpp/app_templates/kconfig35/appview_base.ui deleted file mode 100644 index 3ee8d513..00000000 --- a/languages/cpp/app_templates/kconfig35/appview_base.ui +++ /dev/null @@ -1,33 +0,0 @@ - -%{APPNAMELC}view_base - - -%{APPNAMELC}view_base - - - -0 -0 -268 -164 - - - -%{APPNAMELC}_base - - - -unnamed - - - -sillyLabel - - -hello, world - - - - - - diff --git a/languages/cpp/app_templates/kconfig35/kconfig35.kdevtemplate b/languages/cpp/app_templates/kconfig35/kconfig35.kdevtemplate deleted file mode 100644 index 3f5a2a81..00000000 --- a/languages/cpp/app_templates/kconfig35/kconfig35.kdevtemplate +++ /dev/null @@ -1,245 +0,0 @@ -# TDE Config File -[General] -Name=TDEConfig XT for TDE 3.5 -Name[ca]=TDEConfig XT per a TDE 3.5 -Name[de]=TDEConfigXT-Anwendung für TDE 3.5 -Name[el]=Εφαρμογή TDEConfig XT για το TDE 3.5 -Name[es]=TDEConfig XT para TDE 3.5 -Name[et]=TDEConfig XT TDE 3.5 jaoks -Name[fr]=Application TDEConfig XT pour TDE 3.5 -Name[hu]=TDEConfig XT a TDE 3.5-höz -Name[it]=TDEConfig XT per TDE 3.5 -Name[ja]=TDE 3.5 用 TDEConfig XT -Name[nds]=TDEConfig-XT-Programm för TDE 3.5 -Name[nl]=TDEConfig XT voor TDE 3.5 -Name[pl]=Program TDEConfig XT dla TDE 3.5 -Name[pt]=Aplicação do TDEConfig XT para o TDE 3.5 -Name[pt_BR]=Aplicação do TDEConfig XT para o TDE 3.5 -Name[ru]=Приложение TDE 3.5 с TDEConfig XT -Name[sk]=TDEConfig XT pre TDE 3.5 -Name[sr]=TDEConfig XT програм за TDE 3.5 -Name[sr@Latn]=TDEConfig XT program za TDE 3.5 -Name[sv]=TDEConfig XT för TDE 3.5 -Name[zh_TW]=TDE 3.5 的 TDEConfig XT 應用程式 -Category=C++/TDE -Icon=kxt.png -Comment=Generates a simple TDE application with one widget and a configuration dialog compatible with TDE 3.5 only -Comment[ca]=Genera una simple aplicació per al TDE amb un estri i un diàleg de configuració compatible només amb TDE 3.5. -Comment[da]=Genererer et simpelt TDE-program med en kontrol og en indstillingsdialog der kun er kompatibelt med TDE 3.5 -Comment[de]=Erstellt eine einfache TDE-Anwendung für TDE 3.5 mit einem Widget und einem Einstellungsdialog. -Comment[el]=Δημιουργεί μια απλή εφαρμογή TDE με ένα γραφικό συστατικό, ένα διάλογο ρύθμισης συμβατό μόνο με το TDE 3.5 -Comment[en_GB]=Generates a simple TDE application with one widget and a configuration dialogue compatible with TDE 3.5 only -Comment[es]=Genera una sencilla aplicación para TDE con un widget y un diálogo de configuración compatible solo con TDE 3.5 -Comment[et]=Lihtsa TDE rakenduse loomine ühe vidina ja vaid TDE 3.5-ga ühilduva seadistustedialoogiga. -Comment[fr]=Génère une application TDE simple comprenant un seul élément graphique et une boîte de dialogue de configuration compatible avec TDE 3.5 uniquement -Comment[hu]=Létrehoz egy egyszerű TDE-alkalmazást egy grafikus elemmel és egy beállítóablakkal, csak a TDE 3.5-tel kompatibilis -Comment[it]=Genera una semplice applicazione TDE con un elemento grafico e una finestra di configurazione compatibile solo con TDE 3.5 -Comment[ja]=一つのウィジェットと設定ダイアログを含む簡単な TDE アプリケーションを作成します (TDE 3.5 用) -Comment[nds]=Stellt en eenfach TDE-Programm mit een Element un en Instelldialoog op, de bloots mit TDE 3.5 kompatibel is. -Comment[nl]=Genereert een eenvoudige TDE-toepassing met één widget en een configuratiedialoog die alleen met TDE 3.5 compatible is -Comment[pl]=Generuje prosty program TDE z jednym widżetem i oknem konfiguracyjnym zgodnym z TDE 3.5 -Comment[pt]=Gera uma aplicação simples do TDE com uma janela principal e outra para configuração, apenas para o TDE 3.5 -Comment[pt_BR]=Gera uma aplicação simples do TDE com uma janela principal e outra para configuração, apenas para o TDE 3.5 -Comment[ru]=Создание простого приложения TDE с одним виджетом и диалогом конфигурации, совместимое только с TDE 3.5. -Comment[sk]=Vygeneruje jednoduchú TDE aplikáciu s jedným oknom a konfiguračným dialógom kompatibilnú len s TDE 3.5 -Comment[sr]=Прави једноставан TDE програм са једном контролом и дијалогом за подешавање, компатибилан само са TDE-ом 3.5 -Comment[sr@Latn]=Pravi jednostavan TDE program sa jednom kontrolom i dijalogom za podešavanje, kompatibilan samo sa TDE-om 3.5 -Comment[sv]=Skapar ett enkelt TDE-program med en grafisk komponent och en inställningsdialogruta, som bara fungerar med TDE 3.5 -Comment[zh_TW]=產生一個簡單的 TDE 3.5 上的應用程式,內含一個元件與一個設定對話框。 -FileTemplates=h,CStyle,cpp,CStyle -ShowFilesAfterGeneration=%{dest}/src/%{APPNAMELC}.cpp,%{dest}/README -Archive=kconfig35.tar.gz - -[ADMIN] -Type=include -File=%{tdevelop}/template-common/admin.kdevtemplate - -[GNU] -Type=include -File=%{tdevelop}/template-common/gnu.kdevtemplate - -[MKDIR_DOCBOOK1] -Type=mkdir -Dir=%{dest}/doc - -[MKDIR_DOCBOOK2] -Type=mkdir -Dir=%{dest}/doc/en - -[FILE1] -Type=install -Source=%{tdevelop}/template-common/kde-doc-Makefile.am -Dest=%{dest}/doc/Makefile.am - -[FILE2] -Type=install -Source=%{tdevelop}/template-common/kde-doc-en-Makefile.am -Dest=%{dest}/doc/en/Makefile.am - -[FILE3] -Type=install -EscapeXML=true -Source=%{tdevelop}/template-common/kde-index.docbook -Dest=%{dest}/doc/en/index.docbook - -[FILE4] -Type=install -EscapeXML=true -Source=%{src}/app.tdevelop -Dest=%{dest}/%{APPNAMELC}.tdevelop - -[FILE5] -Type=install -Source=%{tdevelop}/template-common/kde-Makefile.am -Dest=%{dest}/Makefile.am - -[FILE6] -Type=install -Source=%{tdevelop}/template-common/kde-Makefile.cvs -Dest=%{dest}/Makefile.cvs - -[FILE7] -Type=install -Source=%{tdevelop}/template-common/tde-configure.in.in -Dest=%{dest}/configure.in.in - -[MkDir3] -Type=mkdir -Dir=%{dest}/src - -[FILE8] -Type=install -Source=%{tdevelop}/template-common/tde-app.desktop -Dest=%{dest}/src/%{APPNAMELC}.desktop - -[FILE9] -Type=install -Source=%{tdevelop}/template-common/kde-app.lsm -Dest=%{dest}/src/%{APPNAMELC}.lsm - -[FILE10] -Type=install -Source=%{tdevelop}/template-common/hi16-app-app.png -Dest=%{dest}/src/hi16-app-%{APPNAMELC}.png - -[FILE11] -Type=install -Source=%{tdevelop}/template-common/hi32-app-app.png -Dest=%{dest}/src/hi32-app-%{APPNAMELC}.png - -[MkDir4] -Type=mkdir -Dir=%{dest}/po - -[FILE12] -Type=install -Source=%{tdevelop}/template-common/kde-po-Makefile.am -Dest=%{dest}/po/Makefile.am - -[FILE13] -Type=install -Source=%{src}/subdirs -Dest=%{dest}/subdirs - -[FILE14] -Type=install -Source=%{src}/src-Makefile.am -Dest=%{dest}/src/Makefile.am - -[FILE15] -Type=install -Source=%{src}/app.cpp -Dest=%{dest}/src/%{APPNAMELC}.cpp - -[FILE16] -Type=install -Source=%{src}/app.h -Dest=%{dest}/src/%{APPNAMELC}.h - -[FILE17] -Type=install -EscapeXML=true -Source=%{src}/appview_base.ui -Dest=%{dest}/src/%{APPNAMELC}view_base.ui - -[FILE18] -Type=install -Source=%{src}/appview.cpp -Dest=%{dest}/src/%{APPNAMELC}view.cpp - -[FILE19] -Type=install -Source=%{src}/appview.h -Dest=%{dest}/src/%{APPNAMELC}view.h - -[FILE20] -Type=install -EscapeXML=true -Source=%{src}/prefs-base.ui -Dest=%{dest}/src/prefs-base.ui - -[FILE21] -Type=install -Source=%{src}/prefs.cpp -Dest=%{dest}/src/prefs.cpp - -[FILE22] -Type=install -Source=%{src}/prefs.h -Dest=%{dest}/src/prefs.h - -[FILE23] -Type=install -Source=%{src}/main.cpp -Dest=%{dest}/src/main.cpp - -[FILE24] -Type=install -EscapeXML=true -Source=%{src}/appui.rc -Dest=%{dest}/src/%{APPNAMELC}ui.rc - -[FILE25] -Type=install -Source=%{src}/README -Dest=%{dest}/README - -[FILE26] -Type=install -Source=%{src}/app.kcfg -Dest=%{dest}/src/%{APPNAMELC}.kcfg - -[FILE27] -Type=install -Source=%{src}/settings.kcfgc -Dest=%{dest}/src/settings.kcfgc - -[FILE28] -Type=install -Source=%{src}/src-configure.in.in -Dest=%{dest}/configure.in.in - -[MSG] -Type=message -Comment=A TDE 3.5 TDEConfig XT application was created in %{dest} -Comment[ca]=Una aplicació TDEConfig XT per al TDE ha estat creada en %{dest} -Comment[da]=Et TDE 3.5 TDEConfig XT-program blev oprettet i %{dest} -Comment[de]=Eine TDEConfig-XT-Anwendung für TDE 3.5 wurde in %{dest} erstellt. -Comment[el]=Μια εφαρμογή TDEConfig XT του TDE 3.5 δημιουργήθηκε στο %{dest} -Comment[es]=Una aplicación TDEConfig XT para TDE 3.5 ha sido creada en %{dest} -Comment[et]=TDE 3.5 TDEConfig XT rakendus loodi asukohta %{dest} -Comment[fr]=Une application TDEConfig XT pour TDE 3.5 a été créée dans %{dest} -Comment[hu]=Létrejött egy TDEConfig XT-alapú TDE 3.5-alkalmazás itt: %{dest} -Comment[it]=È stata creata un'applicazione TDEConfig XT per TDE 3.5 in %{dest} -Comment[ja]=TDE 3.5 用 TDEConfig XT アプリケーションを %{dest} に作成しました -Comment[nds]=In %{dest} wöör en TDEConfig-XT-Programm för TDE 3.5 opstellt -Comment[nl]=Een TDE 3.5 TDEConfig XT-toepassing is aangemaakt in %{dest} -Comment[pl]=Program TDEConfig XT dla TDE 3.5 został utworzony w %{dest} -Comment[pt]=Foi criada uma aplicação do TDEConfig XT para o TDE 3.5 em %{dest} -Comment[pt_BR]=Foi criada uma aplicação do TDEConfig XT para o TDE 3.5 em %{dest} -Comment[ru]=Приложение TDE с TDEConfig XT создано в %{dest} -Comment[sk]=TDEConfig XT pre TDE 3.5 bola vytvorená v %{dest} -Comment[sr]=TDEConfig XT програм за TDE 3.5 направљен је у %{dest} -Comment[sr@Latn]=TDEConfig XT program za TDE 3.5 napravljen je u %{dest} -Comment[sv]=Ett TDE 3.5 TDEConfig XT-program skapades i %{dest} -Comment[zh_TW]=一個 TDE 3.5 上的 TDEConfig XT 應用程式已建立於 %{dest} diff --git a/languages/cpp/app_templates/kconfig35/kconfig35.png b/languages/cpp/app_templates/kconfig35/kconfig35.png deleted file mode 100644 index a3866883..00000000 Binary files a/languages/cpp/app_templates/kconfig35/kconfig35.png and /dev/null differ diff --git a/languages/cpp/app_templates/kconfig35/kxt35.png b/languages/cpp/app_templates/kconfig35/kxt35.png deleted file mode 100644 index a3866883..00000000 Binary files a/languages/cpp/app_templates/kconfig35/kxt35.png and /dev/null differ diff --git a/languages/cpp/app_templates/kconfig35/main.cpp b/languages/cpp/app_templates/kconfig35/main.cpp deleted file mode 100644 index 3c912936..00000000 --- a/languages/cpp/app_templates/kconfig35/main.cpp +++ /dev/null @@ -1,57 +0,0 @@ -%{CPP_TEMPLATE} - -#include "%{APPNAMELC}.h" -#include -#include -#include -#include - -static const char description[] = - I18N_NOOP("A TDE Application"); - -static const char version[] = "%{VERSION}"; - -static KCmdLineOptions options[] = -{ - { "+[URL]", I18N_NOOP( "Document to open" ), 0 }, - KCmdLineLastOption -}; - -int main(int argc, char **argv) -{ - TDEAboutData about("%{APPNAMELC}", I18N_NOOP("%{APPNAME}"), version, description, - TDEAboutData::License_%{LICENSE}, "(C) %{YEAR} %{AUTHOR}", 0, 0, "%{EMAIL}"); - about.addAuthor( "%{AUTHOR}", 0, "%{EMAIL}" ); - TDECmdLineArgs::init(argc, argv, &about); - TDECmdLineArgs::addCmdLineOptions(options); - TDEApplication app; - - // see if we are starting with session management - if (app.isRestored()) - { - RESTORE(%{APPNAMELC}); - } - else - { - // no session.. just start up normally - TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); - if (args->count() == 0) - { - %{APPNAMELC} *widget = new %{APPNAMELC}; - widget->show(); - } - else - { - int i = 0; - for (; i < args->count(); i++) - { - %{APPNAMELC} *widget = new %{APPNAMELC}; - widget->show(); - } - } - args->clear(); - } - - return app.exec(); -} - diff --git a/languages/cpp/app_templates/kconfig35/prefs-base.ui b/languages/cpp/app_templates/kconfig35/prefs-base.ui deleted file mode 100644 index 03af967a..00000000 --- a/languages/cpp/app_templates/kconfig35/prefs-base.ui +++ /dev/null @@ -1,127 +0,0 @@ - -Prefs_base - - - Prefs_base - - - - 0 - 0 - 282 - 156 - - - - - unnamed - - - - textLabel2_2 - - - Background color: - - - - - kcfg_col_background - - - - - - - - textLabel1 - - - Project age: - - - - - textLabel2 - - - Foreground color: - - - - - kcfg_col_foreground - - - - - - - - spacer1 - - - Horizontal - - - Expanding - - - - 41 - 20 - - - - - - spacer2 - - - Horizontal - - - Expanding - - - - 41 - 20 - - - - - - kcfg_val_time - - - 1 - - - 2 - - - - - spacer3 - - - Horizontal - - - Expanding - - - - 41 - 20 - - - - - - - - kcolorbutton.h - - diff --git a/languages/cpp/app_templates/kconfig35/prefs.cpp b/languages/cpp/app_templates/kconfig35/prefs.cpp deleted file mode 100644 index e7a46ddf..00000000 --- a/languages/cpp/app_templates/kconfig35/prefs.cpp +++ /dev/null @@ -1,12 +0,0 @@ -%{CPP_TEMPLATE} - -#include "prefs.h" -#include - -Prefs::Prefs() - : Prefs_base() -{ -// debugging : -// kdWarning()<<"creating a pref dialog"< rc.cpp - $(XGETTEXT) *.cpp -o $(podir)/%{APPNAMELC}.pot - -KDE_ICON = AUTO - -# this is where the kdelnk file will go -kdelnkdir = $(kde_appsdir)/Utilities -kdelnk_DATA = %{APPNAMELC}.desktop - -# this is where the XML-GUI resource file goes -rcdir = $(kde_datadir)/%{APPNAMELC} -rc_DATA = %{APPNAMELC}ui.rc diff --git a/languages/cpp/app_templates/kconfig35/src-configure.in.in b/languages/cpp/app_templates/kconfig35/src-configure.in.in deleted file mode 100644 index 1f29bc08..00000000 --- a/languages/cpp/app_templates/kconfig35/src-configure.in.in +++ /dev/null @@ -1,7 +0,0 @@ - -#MIN_CONFIG(3.2.0) - -AM_INIT_AUTOMAKE(%{APPNAMELC}, %{VERSION}) -AC_C_BIGENDIAN -AC_CHECK_TDEMAXPATHLEN - diff --git a/languages/cpp/app_templates/kconfig35/subdirs b/languages/cpp/app_templates/kconfig35/subdirs deleted file mode 100644 index 0e678106..00000000 --- a/languages/cpp/app_templates/kconfig35/subdirs +++ /dev/null @@ -1,3 +0,0 @@ -doc -po -src diff --git a/languages/cpp/app_templates/kde4app/kapp4.cpp b/languages/cpp/app_templates/kde4app/kapp4.cpp index d2e09025..5320898d 100644 --- a/languages/cpp/app_templates/kde4app/kapp4.cpp +++ b/languages/cpp/app_templates/kde4app/kapp4.cpp @@ -7,7 +7,7 @@ #include #include -#include +#include #include #include diff --git a/languages/cpp/app_templates/kde4app/settings.kcfgc b/languages/cpp/app_templates/kde4app/settings.kcfgc index 384510cd..402fad09 100644 --- a/languages/cpp/app_templates/kde4app/settings.kcfgc +++ b/languages/cpp/app_templates/kde4app/settings.kcfgc @@ -1,4 +1,4 @@ -# Code generation options for kconfig_compiler +# Code generation options for tdeconfig_compiler File=%{APPNAMELC}.kcfg ClassName=Settings Singleton=true diff --git a/languages/cpp/app_templates/kdecpp.appwizard b/languages/cpp/app_templates/kdecpp.appwizard index 1823e891..14bcbeaa 100644 --- a/languages/cpp/app_templates/kdecpp.appwizard +++ b/languages/cpp/app_templates/kdecpp.appwizard @@ -1,2 +1,2 @@ [General] -List=kdedcop,kioslave,kxt,kdevlang,kmake,kapp,kconfig35,kdevlang,kdevpart,kateplugin,kdevpart2,kopart,noatunui,kateplugin2,kfileplugin,konqnavpanel,noatunvisual,dcopservice,khello,kpartapp,khello2,kpartplugin,tdecmodule,kicker,tdescreensaver,kscons_kxt,kscons_tdemdi +List=kdedcop,tdeioslave,kxt,kdevlang,kmake,kapp,tdeconfig35,kdevlang,kdevpart,kateplugin,kdevpart2,kopart,noatunui,kateplugin2,tdefileplugin,konqnavpanel,noatunvisual,dcopservice,khello,kpartapp,khello2,kpartplugin,tdecmodule,kicker,tdescreensaver,kscons_kxt,kscons_tdemdi diff --git a/languages/cpp/app_templates/kfileplugin/.kdev_ignore b/languages/cpp/app_templates/kfileplugin/.kdev_ignore deleted file mode 100644 index e69de29b..00000000 diff --git a/languages/cpp/app_templates/kfileplugin/CMakeLists.txt b/languages/cpp/app_templates/kfileplugin/CMakeLists.txt deleted file mode 100644 index fb3aab6b..00000000 --- a/languages/cpp/app_templates/kfileplugin/CMakeLists.txt +++ /dev/null @@ -1,27 +0,0 @@ -################################################# -# -# (C) 2010-2011 Serghei Amelian -# serghei (DOT) amelian (AT) gmail.com -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -add_custom_target( kfileplugin.tar.gz ALL - COMMAND tar zcf kfileplugin.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} - README.devel kfile_plugin.cpp kfile_plugin.desktop - kfile_plugin.h plugin.tdevelop kfileplugin kfileplugin.png - src-Makefile.am subdirs -) - - -install( FILES - ${CMAKE_CURRENT_BINARY_DIR}/kfileplugin.tar.gz kfileplugin.png - DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard ) - - -install( FILES - kfileplugin.kdevtemplate - DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates ) diff --git a/languages/cpp/app_templates/kfileplugin/Makefile.am b/languages/cpp/app_templates/kfileplugin/Makefile.am deleted file mode 100644 index 97f8a748..00000000 --- a/languages/cpp/app_templates/kfileplugin/Makefile.am +++ /dev/null @@ -1,18 +0,0 @@ -dataFiles = README.devel kfile_plugin.cpp kfile_plugin.desktop \ - kfile_plugin.h plugin.tdevelop kfileplugin kfileplugin.png \ - src-Makefile.am subdirs -templateName = kfileplugin - -### no need to change below: -template_DATA = $(templateName).kdevtemplate -templatedir = ${appwizarddatadir}/templates - -appwizarddatadir = ${kde_datadir}/kdevappwizard -$(templateName).tar.gz: ${dataFiles} - $(TAR) -cf $(templateName).tar -C $(srcdir) ${dataFiles} - $(GZIP_COMMAND) -f9 $(templateName).tar - -archivedir = ${appwizarddatadir} -archive_DATA = $(templateName).tar.gz ${templateName}.png - -CLEANFILES = *.tar.gz \ No newline at end of file diff --git a/languages/cpp/app_templates/kfileplugin/README.devel b/languages/cpp/app_templates/kfileplugin/README.devel deleted file mode 100644 index 21ee67c7..00000000 --- a/languages/cpp/app_templates/kfileplugin/README.devel +++ /dev/null @@ -1,9 +0,0 @@ -@todo: - -1. add information to src/kfile_%{APPNAMELC}.desktop -MimeType= -PreferredGroups= -PreferredItems= - -2. plugin -Note: Please change to "Optimized" compilation if you want to make a release. diff --git a/languages/cpp/app_templates/kfileplugin/kfile_plugin.cpp b/languages/cpp/app_templates/kfileplugin/kfile_plugin.cpp deleted file mode 100644 index db259cb3..00000000 --- a/languages/cpp/app_templates/kfileplugin/kfile_plugin.cpp +++ /dev/null @@ -1,55 +0,0 @@ -%{CPP_TEMPLATE} - -#include -#include "kfile_%{APPNAMELC}.h" - -#include -//#include - -//#include -//#include - -typedef KGenericFactory<%{APPNAME}Plugin> %{APPNAME}Factory; - -K_EXPORT_COMPONENT_FACTORY(kfile_%{APPNAME}, %{APPNAME}Factory( "kfile_%{APPNAMELC}" )) - -%{APPNAME}Plugin::%{APPNAME}Plugin(TQObject *parent, const char *name, - const TQStringList &args) - : KFilePlugin(parent, name, args) -{ - //add the mimetype here - example: - //KFileMimeTypeInfo* info = addMimeTypeInfo( "text/html" ); - KFileMimeTypeInfo* info = addMimeTypeInfo( "text/html" ); - - // our new group - KFileMimeTypeInfo::GroupInfo* group = 0L; - group = addGroupInfo(info, "%{APPNAME}Info", i18n("%{APPNAME} Information")); - - KFileMimeTypeInfo::ItemInfo* item; - - // our new items in the group - item = addItemInfo(group, "Items", i18n("Items"), TQVariant::Int); - item = addItemInfo(group, "Size", i18n("Size"), TQVariant::Int); - setUnit(item, KFileMimeTypeInfo::KiloBytes); - - // strings are possible, too: - //addItemInfo(group, "Text", i18n("Document Type"), TQVariant::String); -} - -bool %{APPNAME}Plugin::readInfo( KFileMetaInfo& info, uint /*what*/) -{ - KFileMetaInfoGroup group = appendGroup(info, "%{APPNAME}Info"); - - // add your "calculations" here - // if something goes wrong, "return false;" - - - // and finally display it! - appendItem(group, "Items", 100); - appendItem(group, "Size", int(5000/1024)); - - return true; -} - -#include "kfile_%{APPNAMELC}.moc" - diff --git a/languages/cpp/app_templates/kfileplugin/kfile_plugin.desktop b/languages/cpp/app_templates/kfileplugin/kfile_plugin.desktop deleted file mode 100644 index 8a2f40ee..00000000 --- a/languages/cpp/app_templates/kfileplugin/kfile_plugin.desktop +++ /dev/null @@ -1,39 +0,0 @@ -[Desktop Entry] -Type=Service -Name=%{APPNAME} Info -Name[br]=Titouriñ diwar-benn %{APPNAME} -Name[ca]=Informació per a %{APPNAME} -Name[da]=%{APPNAME} info -Name[el]=Πληροφορίες %{APPNAME} -Name[es]=Información de %{APPNAME} -Name[et]=%{APPNAME} info -Name[eu]=%{APPNAME} informazioa -Name[fa]=اطلاعات %{APPNAME} -Name[fr]=Informations sur %{APPNAME} -Name[ga]=Eolas faoi %{APPNAME} -Name[gl]=Información de %{APPNAME} -Name[hu]=%{APPNAME} jellemzői -Name[it]=Informazioni su %{APPNAME} -Name[nds]=%{APPNAME}-Info -Name[ne]=%{APPNAME} सूचना -Name[pl]=Informacje dla %{APPNAME} -Name[pt]=Informação do %{APPNAME} -Name[pt_BR]=Informações de %{APPNAME} -Name[ru]=Информация о %{APPNAME} -Name[sk]=%{APPNAME} info -Name[sl]=Informacije o %{APPNAME} -Name[sr]=Информације за %{APPNAME} -Name[sr@Latn]=Informacije za %{APPNAME} -Name[sv]=%{APPNAME} information -Name[ta]=%{APPNAME} தகவல் -Name[tg]=Маълумот дар бораи %{APPNAME} -Name[zh_CN]=%{APPNAME}的信息 -Name[zh_TW]=%{APPNAME} 資訊 -ServiceTypes=KFilePlugin -X-TDE-Library=kfile_%{APPNAMELC} -# change MimeType here! (example: inode/directory) -MimeType= -# change PreferredGroups here! (example: FolderInfo) -PreferredGroups= -# change PreferredItems here! (example: Items;Size) -PreferredItems= diff --git a/languages/cpp/app_templates/kfileplugin/kfile_plugin.h b/languages/cpp/app_templates/kfileplugin/kfile_plugin.h deleted file mode 100644 index 50db1252..00000000 --- a/languages/cpp/app_templates/kfileplugin/kfile_plugin.h +++ /dev/null @@ -1,25 +0,0 @@ -%{H_TEMPLATE} - -#ifndef __KFILE_%{APPNAMEUC}_H__ -#define __KFILE_%{APPNAMEUC}_H__ - -/** - * Note: For further information look into <$TDEDIR/include/kfilemetainfo.h> - */ -#include - -class TQStringList; - -class %{APPNAME}Plugin: public KFilePlugin -{ - Q_OBJECT - - -public: - %{APPNAME}Plugin( TQObject *parent, const char *name, const TQStringList& args ); - - virtual bool readInfo( KFileMetaInfo& info, uint what); -}; - -#endif // __KFILE_%{APPNAMEUC}_H__ - diff --git a/languages/cpp/app_templates/kfileplugin/kfileplugin b/languages/cpp/app_templates/kfileplugin/kfileplugin deleted file mode 100644 index a17a7af0..00000000 --- a/languages/cpp/app_templates/kfileplugin/kfileplugin +++ /dev/null @@ -1,8 +0,0 @@ -# TDE Config File -[General] -Name=KFile plugin -Icon=kfileplugin.png -Category=C++/TDE -Comment=Generates a KFile plugin for konqueror to display meta information. -FileTemplates=h,CStyle,cpp,CStyle -ShowFilesAfterGeneration=README.devel,src/kfile_APPNAMELC.cpp diff --git a/languages/cpp/app_templates/kfileplugin/kfileplugin.kdevtemplate b/languages/cpp/app_templates/kfileplugin/kfileplugin.kdevtemplate deleted file mode 100644 index 762ca3b8..00000000 --- a/languages/cpp/app_templates/kfileplugin/kfileplugin.kdevtemplate +++ /dev/null @@ -1,166 +0,0 @@ -# TDE Config File -[General] -Name=KFile plugin -Name[br]=Lugent KFile -Name[ca]=Connector KFile -Name[de]=KFile-Modul -Name[el]=Πρόσθετο KFile -Name[es]=Complemento para KFile -Name[et]=KFile'i plugin -Name[eu]=KFile plugin-a -Name[fa]=وصلۀ KFile -Name[fr]=Module externe KFile -Name[ga]=Breiseán KFile -Name[gl]=Extensión para KFile -Name[hu]=KFile-bővítőmodul -Name[it]=Plugin KFile -Name[ja]=KFile プラグイン -Name[nds]=KFile-Moduul -Name[ne]=केडीई फाइल प्लगइन -Name[nl]=KFile-plugin -Name[pl]=Wtyczka do KFile -Name[pt]='Plugin' do KFile -Name[pt_BR]='Plugin' do KFile -Name[ru]=Модуль KFile -Name[sk]=KFile modul -Name[sl]=Vstavek za KFile -Name[sr]=Прикључак за KFile -Name[sr@Latn]=Priključak za KFile -Name[sv]=KFile-insticksprogram -Name[tr]=KFile Eklentisi -Name[zh_CN]=KFile 插件 -Name[zh_TW]=KFile 外掛程式 -Icon=kfileplugin.png -Category=C++/TDE -Comment=Generates a KFile plugin for konqueror to display meta information. -Comment[ca]=Genera un connector KFile per al konqueror per a mostrar meta informació. -Comment[da]=Genererer et KFile-plugin for konqueror til at vise meta-information. -Comment[de]=Erstellt ein KFile-Modul für Konqueror zur Anzeige von Meta-Daten. -Comment[el]=Δημιουργεί ένα πρόσθετο KFile για την εμφάνιση μεταπληροφοριών στον konqueror. -Comment[es]=Genera un complemento de KFile para Konqueror que muestra metainformación. -Comment[et]=Konquerori KFile'i plugina loomine, mis näitab metainfot. -Comment[eu]=Meta-informazioa bistaratzeko Konqueror-en KFile plugin bat sortzen du. -Comment[fa]=یک وصلۀ KFile برای konqueror جهت نمایش فرااطلاعات تولید می‌کند. -Comment[fr]=Génère un module externe KFile pour que Konqueror affiche des méta-informations. -Comment[gl]=Xera unha extensión para KFile para permitir a konqueror mostrar metainformación. -Comment[hu]=Létrehoz egy KFile-bővítőmodult, mellyel a Konquerorban dokumentumjellemzőket lehet megjeleníteni. -Comment[it]=Genera un plugin KFile per Konqueror per mostrare meta informazioni. -Comment[nds]=Stellt en KFile-Moduul för Konqueror op, dat Metadaten wiest. -Comment[ne]=मेटा सूचना देखाउन कन्क्वेररका लागि केडीई फाइल प्लगइन उत्पन्न गर्दछ । -Comment[nl]=Genereert een KFile-plugin voor konqueror voor het weergeven van meta-informatie. -Comment[pl]=Generuje wtyczkę KFile dla Konquerora do wyświetlania informacji meta. -Comment[pt]=Gera um 'plugin' do KFile para o Konqueror poder mostrar meta-informações. -Comment[pt_BR]=Gera um 'plugin' do KFile para o Konqueror poder mostrar meta-informações. -Comment[ru]=Создание модуля KFile для показа метаданных в Konqueror. -Comment[sk]=Vygeneruje KFile modul pre konqueror na zobrazenie meta informácií. -Comment[sr]=Прави прикључак за KFile за приказ метаинформација у Konqueror-у. -Comment[sr@Latn]=Pravi priključak za KFile za prikaz metainformacija u Konqueror-u. -Comment[sv]=Skapar ett KFile-insticksprogram till Konqueror för att visa metainformation. -Comment[tr]=Meta bilgisini göstermesi için Konqueror'a bir KFile eklentisi yaratır. -Comment[zh_CN]=生成一个可显示元信息的 Konqueror KFile 插件。 -Comment[zh_TW]=產生一個 Konqueror 的 KFile 外掛程式,顯示中繼資訊 -FileTemplates=h,CStyle,cpp,CStyle -ShowFilesAfterGeneration=${dest}/README.devel,%{dest}/src/kfile_%{APPNAMELC}.cpp -Archive=kfileplugin.tar.gz - -[ADMIN] -Type=include -File=%{tdevelop}/template-common/admin.kdevtemplate - -[GNU] -Type=include -File=%{tdevelop}/template-common/gnu.kdevtemplate - -[MKDIR_DOCBOOK1] -Type=mkdir -Dir=%{dest}/doc - -[MKDIR_DOCBOOK2] -Type=mkdir -Dir=%{dest}/doc/en - -[FILE1] -Type=install -Source=%{tdevelop}/template-common/kde-doc-Makefile.am -Dest=%{dest}/doc/Makefile.am - -[FILE2] -Type=install -Source=%{tdevelop}/template-common/kde-doc-en-Makefile.am -Dest=%{dest}/doc/en/Makefile.am - -[FILE3] -Type=install -EscapeXML=true -Source=%{tdevelop}/template-common/kde-index.docbook -Dest=%{dest}/doc/en/index.docbook - -[FILE4] -Type=install -EscapeXML=true -Source=%{src}/plugin.tdevelop -Dest=%{dest}/%{APPNAMELC}.tdevelop - -[FILE5] -Type=install -Source=%{tdevelop}/template-common/kde-Makefile.cvs -Dest=%{dest}/Makefile.cvs - -[FILE6] -Type=install -Source=%{tdevelop}/template-common/kde-Makefile.am -Dest=%{dest}/Makefile.am - -[FILE7] -Type=install -Source=%{tdevelop}/template-common/tde-configure.in.in -Dest=%{dest}/configure.in.in - -[MkDir3] -Type=mkdir -Dir=%{dest}/src - -[FILE8] -Type=install -Source=%{tdevelop}/template-common/kde-app.lsm -Dest=%{dest}/src/%{APPNAMELC}.lsm - -[MkDir4] -Type=mkdir -Dir=%{dest}/po - -[FILE9] -Type=install -Source=%{tdevelop}/template-common/kde-po-Makefile.am -Dest=%{dest}/po/Makefile.am - -[FILE10] -Type=install -Source=%{src}/subdirs -Dest=%{dest}/subdirs - -[FILE11] -Type=install -Source=%{src}/src-Makefile.am -Dest=%{dest}/src/Makefile.am - -[FILE12] -Type=install -Source=%{src}/kfile_plugin.desktop -Dest=%{dest}/src/kfile_%{APPNAMELC}.desktop - -[FILE13] -Type=install -Source=%{src}/kfile_plugin.cpp -Dest=%{dest}/src/kfile_%{APPNAMELC}.cpp - -[FILE14] -Type=install -Source=%{src}/kfile_plugin.h -Dest=%{dest}/src/kfile_%{APPNAMELC}.h - -[FILE15] -Type=install -Source=%{src}/README.devel -Dest=%{dest}/README.devel - diff --git a/languages/cpp/app_templates/kfileplugin/kfileplugin.png b/languages/cpp/app_templates/kfileplugin/kfileplugin.png deleted file mode 100644 index d2a56245..00000000 Binary files a/languages/cpp/app_templates/kfileplugin/kfileplugin.png and /dev/null differ diff --git a/languages/cpp/app_templates/kfileplugin/plugin.tdevelop b/languages/cpp/app_templates/kfileplugin/plugin.tdevelop deleted file mode 100644 index 2414a429..00000000 --- a/languages/cpp/app_templates/kfileplugin/plugin.tdevelop +++ /dev/null @@ -1,114 +0,0 @@ - - - - %{AUTHOR} - %{EMAIL} - %{VERSION} - KDevTDEAutoProject - C++ - - C++ - Code - Qt - TDE - - - - - 3 - true - 3 - EmbeddedKDevDesigner - - - - - - src/kfile_%{APPNAMELC}.la - debug - - - - optimized - kdevgccoptions - kdevgppoptions - kdevg77options - -O2 -g0 - - - --enable-debug=full - debug - kdevgccoptions - kdevgppoptions - kdevg77options - -O0 -g3 - - - - - - - - - - - - - - - ada - ada_bugs_gcc - bash - bash_bugs - clanlib - fortran_bugs_gcc - gnome1 - gnustep - gtk - gtk_bugs - haskell - haskell_bugs_ghc - java_bugs_gcc - java_bugs_sun - opengl - pascal_bugs_fp - php - php_bugs - perl - perl_bugs - python - python_bugs - ruby - ruby_bugs - sdl - stl - sw - w3c-dom-level2-html - w3c-svg - w3c-uaag10 - wxwidgets_bugs - - - qmake User Guide - - - - - libtool - - - - - - - - - - - - - Doxygen Documentation Collection - %{APPNAMELC}.tag - - - diff --git a/languages/cpp/app_templates/kfileplugin/src-Makefile.am b/languages/cpp/app_templates/kfileplugin/src-Makefile.am deleted file mode 100644 index 6d6bb859..00000000 --- a/languages/cpp/app_templates/kfileplugin/src-Makefile.am +++ /dev/null @@ -1,22 +0,0 @@ -## Makefile.am for folder file meta info plugin - -INCLUDES = $(all_includes) - -# these are the headers for your project -noinst_HEADERS = kfile_%{APPNAMELC}.h - -kde_module_LTLIBRARIES = kfile_%{APPNAMELC}.la - -kfile_%{APPNAMELC}_la_SOURCES = kfile_%{APPNAMELC}.cpp -kfile_%{APPNAMELC}_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN) $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEUI) $(LIB_KPARTS) $(LIB_KIO) -kfile_%{APPNAMELC}_la_LIBADD = $(LIB_KIO) - -# let automoc handle all of the meta source files ((moc)) -METASOURCES = AUTO - -services_DATA = kfile_%{APPNAMELC}.desktop -servicesdir = $(kde_servicesdir) - -messages: rc.cpp - $(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp - $(XGETTEXT) *.cpp -o $(podir)/kfile_%{APPNAMELC}.pot diff --git a/languages/cpp/app_templates/kfileplugin/subdirs b/languages/cpp/app_templates/kfileplugin/subdirs deleted file mode 100644 index 0e678106..00000000 --- a/languages/cpp/app_templates/kfileplugin/subdirs +++ /dev/null @@ -1,3 +0,0 @@ -doc -po -src diff --git a/languages/cpp/app_templates/kicker/applet.cpp b/languages/cpp/app_templates/kicker/applet.cpp index 8db1939e..78558f78 100644 --- a/languages/cpp/app_templates/kicker/applet.cpp +++ b/languages/cpp/app_templates/kicker/applet.cpp @@ -3,7 +3,7 @@ #include #include #include -#include +#include #include #include diff --git a/languages/cpp/app_templates/kicker/applet.h b/languages/cpp/app_templates/kicker/applet.h index ba7157a3..7d272743 100644 --- a/languages/cpp/app_templates/kicker/applet.h +++ b/languages/cpp/app_templates/kicker/applet.h @@ -9,7 +9,7 @@ #include #include -#include +#include class %{APPNAME} : public KPanelApplet diff --git a/languages/cpp/app_templates/kioslave/.kdev_ignore b/languages/cpp/app_templates/kioslave/.kdev_ignore deleted file mode 100644 index e69de29b..00000000 diff --git a/languages/cpp/app_templates/kioslave/CMakeLists.txt b/languages/cpp/app_templates/kioslave/CMakeLists.txt deleted file mode 100644 index c0f70115..00000000 --- a/languages/cpp/app_templates/kioslave/CMakeLists.txt +++ /dev/null @@ -1,26 +0,0 @@ -################################################# -# -# (C) 2010-2011 Serghei Amelian -# serghei (DOT) amelian (AT) gmail.com -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -add_custom_target( kioslave.tar.gz ALL - COMMAND tar zcf kioslave.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} - slave.cpp slave.h slave.protocol slave.tdevelop - src-Makefile.am kioslave.png subdirs -) - - -install( FILES - ${CMAKE_CURRENT_BINARY_DIR}/kioslave.tar.gz kioslave.png - DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard ) - - -install( FILES - kioslave.kdevtemplate - DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates ) diff --git a/languages/cpp/app_templates/kioslave/Makefile.am b/languages/cpp/app_templates/kioslave/Makefile.am deleted file mode 100644 index 1d9a8224..00000000 --- a/languages/cpp/app_templates/kioslave/Makefile.am +++ /dev/null @@ -1,17 +0,0 @@ -dataFiles = slave.cpp slave.h slave.protocol slave.tdevelop \ - src-Makefile.am kioslave.png subdirs -templateName = kioslave - -### no need to change below: -template_DATA = $(templateName).kdevtemplate -templatedir = ${appwizarddatadir}/templates - -appwizarddatadir = ${kde_datadir}/kdevappwizard -$(templateName).tar.gz: ${dataFiles} - $(TAR) -cf $(templateName).tar -C $(srcdir) ${dataFiles} - $(GZIP_COMMAND) -f9 $(templateName).tar - -archivedir = ${appwizarddatadir} -archive_DATA = $(templateName).tar.gz ${templateName}.png - -CLEANFILES = *.tar.gz \ No newline at end of file diff --git a/languages/cpp/app_templates/kioslave/kioslave.kdevtemplate b/languages/cpp/app_templates/kioslave/kioslave.kdevtemplate deleted file mode 100644 index a49c36f8..00000000 --- a/languages/cpp/app_templates/kioslave/kioslave.kdevtemplate +++ /dev/null @@ -1,183 +0,0 @@ -# TDE Config File -[General] -Name=KIO slave -Name[br]=Sklav KIO -Name[ca]=Esclau KIO -Name[da]=KIO-slave -Name[de]=Ein-/Ausgabemodul -Name[el]=Υπηρέτης KIO -Name[es]=Esclavo KIO -Name[et]=KIO-moodul -Name[eu]=KIO morroia -Name[fr]=Esclave KIO -Name[ga]=Sclábhaí KIO -Name[gl]=Escravo KIO -Name[hu]=TDE-protokoll (KIOslave) -Name[it]=Slave KIO -Name[nds]=In-/Utgaavmoduul -Name[ne]=KIO स्लेभ -Name[nl]=KIO-slave -Name[pt]=KIO Slave -Name[sk]=KIO otrok -Name[sv]=I/O-slav -Icon=kioslave.png -Category=C++/TDE -Comment=Generates a framework for an IO slave -Comment[ca]=Genera una infraestructura per a un esclau IO -Comment[da]=Genererer et skelet for en IO-slave -Comment[de]=Erstellt das Grundgerüst für ein Ein-/Ausgabemodul. -Comment[el]=Δημιουργεί ένα πλαίσιο για έναν υπηρέτη IO -Comment[es]=Genera una infraestructura para un esclavo de E/S -Comment[et]=IO-mooduli raamistiku loomine -Comment[eu]=IO morroi baterako lan-marko bat sortzen du -Comment[fa]=چارچوبی برای یک IO slave تولید می‌کند -Comment[fr]=Génère une infrastructure pour un esclave d'entrée / sortie -Comment[ga]=Cruthaíonn sé seo creatlach le haghaidh sclábhaí IO -Comment[gl]=Xera un contorno de traballo para un escravo IO -Comment[hu]=Létrehoz egy kiindulási keretprogramot KIOslave készítéséhez -Comment[it]=Genera l'infrastruttura per uno slave di I/O -Comment[ja]=IO slave のフレームワークを作成します -Comment[nds]=Stellt dat Rahmenwark för en In-/Utgaavmoduul op -Comment[ne]=IO स्लेभका लागि फ्रेमवर्क उत्पन्न गर्दछ -Comment[nl]=Genereert een framework voor een IO-slave -Comment[pl]=Generuje szablon dla IO slave -Comment[pt]=Gera a plataforma para um 'IO slave' -Comment[pt_BR]=Gera a plataforma para um 'IO slave' -Comment[ru]=Создание канала IO slave для TDE -Comment[sk]=Vygeneruje framework pre IO otroka -Comment[sr]=Прави радни оквир за IO slave -Comment[sr@Latn]=Pravi radni okvir za IO slave -Comment[sv]=Skapar ett ramverk för en I/O-slav -Comment[zh_CN]=生成一个 IO slave 的框架 -Comment[zh_TW]=產生一個 IO slave 的框架 -FileTemplates=h,CStyle,cpp,CStyle -ShowFilesAfterGeneration=%{dest}/src/%{APPNAMELC}.cpp -Archive=kioslave.tar.gz - -[ADMIN] -Type=include -File=%{tdevelop}/template-common/admin.kdevtemplate - -[GNU] -Type=include -File=%{tdevelop}/template-common/gnu.kdevtemplate - -[MKDIR_DOCBOOK1] -Type=mkdir -Dir=%{dest}/doc - -[MKDIR_DOCBOOK2] -Type=mkdir -Dir=%{dest}/doc/en - -[FILE1] -Type=install -Source=%{tdevelop}/template-common/kde-doc-Makefile.am -Dest=%{dest}/doc/Makefile.am - -[FILE2] -Type=install -Source=%{tdevelop}/template-common/kde-doc-en-Makefile.am -Dest=%{dest}/doc/en/Makefile.am - -[FILE3] -Type=install -EscapeXML=true -Source=%{tdevelop}/template-common/kde-index.docbook -Dest=%{dest}/doc/en/index.docbook - -[FILE4] -Type=install -EscapeXML=true -Source=%{src}/slave.tdevelop -Dest=%{dest}/%{APPNAMELC}.tdevelop - -[MkDir3] -Type=mkdir -Dir=%{dest}/src - -[FILE5] -Type=install -Source=%{tdevelop}/template-common/kde-app.lsm -Dest=%{dest}/src/%{APPNAMELC}.lsm - -[MkDir4] -Type=mkdir -Dir=%{dest}/po - -[FILE6] -Type=install -Source=%{tdevelop}/template-common/kde-po-Makefile.am -Dest=%{dest}/po/Makefile.am - -[FILE7] -Type=install -Source=%{tdevelop}/template-common/kde-Makefile.am -Dest=%{dest}/Makefile.am - -[FILE8] -Type=install -Source=%{tdevelop}/template-common/kde-Makefile.cvs -Dest=%{dest}/Makefile.cvs - -[FILE9] -Type=install -Source=%{tdevelop}/template-common/tde-configure.in.in -Dest=%{dest}/configure.in.in - -[FILE10] -Type=install -Source=%{src}/subdirs -Dest=%{dest}/subdirs - -[FILE11] -Type=install -Source=%{src}/src-Makefile.am -Dest=%{dest}/src/Makefile.am - -[FILE12] -Type=install -Source=%{src}/slave.cpp -Dest=%{dest}/src/%{APPNAMELC}.cpp - -[FILE13] -Type=install -Source=%{src}/slave.h -Dest=%{dest}/src/%{APPNAMELC}.h - -[FILE14] -Type=install -Source=%{src}/slave.protocol -Dest=%{dest}/src/%{APPNAMELC}.protocol - -[MSG] -Type=message -Comment=A KIO slave was created in %{dest} -Comment[ca]=Un esclau KIO ha estat creat en %{dest} -Comment[da]=En KIO-slave blev oprettet i %{dest} -Comment[de]=Ein Ein-/Ausgabemodul wurde in %{dest} erstellt. -Comment[el]=Ένας υπηρέτης KIO δημιουργήθηκε στο %{dest} -Comment[es]=Un esclavo KIO ha sido creado en %{dest} -Comment[et]=KIO-moodul loodi asukohta %{dest} -Comment[eu]=KIO morroi bat sortu da hemen: %{dest} -Comment[fa]=یک KIO slave در %{dest} ایجاد شد -Comment[fr]=Un esclave d'entrée / sortie a été créé dans %{dest} -Comment[ga]=Cruthaíodh sclábhaí KIO i %{dest} -Comment[gl]=Creouse un escravo KIO en %{dest} -Comment[hu]=Létrejött egy KIOslave itt: %{dest} -Comment[it]=È stato generato un slave KIO in %{dest} -Comment[ja]=KIO slave を %{dest} に作成しました。 -Comment[nds]=In %{dest} wöör en In-/Utgaavmoduul opstellt -Comment[ne]=KIO स्लेभ %{dest} मा सिर्जना गरियो -Comment[nl]=Een KIO-slave is aangemaakt in %{dest} -Comment[pl]=KIO slave został utworzony w %{dest} -Comment[pt]=Foi criado um 'KIO slave' em %{dest} -Comment[pt_BR]=Foi criado um 'KIO slave' em %{dest} -Comment[ru]=Канал KIO slave создан в %{dest} -Comment[sk]=KIO otrok bol vytvorený v %{dest} -Comment[sr]=KIO slave је направљен у %{dest} -Comment[sr@Latn]=KIO slave je napravljen u %{dest} -Comment[sv]=En I/O-slav skapades i %{dest} -Comment[tr]=Bir KIO slave'i %{dest} içinde yaratıldı. -Comment[zh_CN]=在 %{dest} 中创建了一个 KIO slave -Comment[zh_TW]=一個 KIO slave 已建立於 %{dest} diff --git a/languages/cpp/app_templates/kioslave/kioslave.png b/languages/cpp/app_templates/kioslave/kioslave.png deleted file mode 100644 index f0cd89a8..00000000 Binary files a/languages/cpp/app_templates/kioslave/kioslave.png and /dev/null differ diff --git a/languages/cpp/app_templates/kioslave/slave.cpp b/languages/cpp/app_templates/kioslave/slave.cpp deleted file mode 100644 index 3c780e7f..00000000 --- a/languages/cpp/app_templates/kioslave/slave.cpp +++ /dev/null @@ -1,88 +0,0 @@ - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "%{APPNAMELC}.h" - -using namespace TDEIO; - - -kio_%{APPNAMELC}Protocol::kio_%{APPNAMELC}Protocol(const TQCString &pool_socket, const TQCString &app_socket) - : SlaveBase("kio_%{APPNAMELC}", pool_socket, app_socket) -{ - kdDebug() << "kio_%{APPNAMELC}Protocol::kio_%{APPNAMELC}Protocol()" << endl; -} - - -kio_%{APPNAMELC}Protocol::~kio_%{APPNAMELC}Protocol() -{ - kdDebug() << "kio_%{APPNAMELC}Protocol::~kio_%{APPNAMELC}Protocol()" << endl; -} - - -void kio_%{APPNAMELC}Protocol::get(const KURL& url ) -{ - kdDebug() << "kio_%{APPNAMELC}::get(const KURL& url)" << endl ; - - kdDebug() << "Seconds: " << url.query() << endl; - TQString remoteServer = url.host(); - int remotePort = url.port(); - kdDebug() << "myURL: " << url.prettyURL() << endl; - - infoMessage(i18n("Looking for %1...").arg( remoteServer ) ); - // Send the mimeType as soon as it is known - mimeType("text/plain"); - // Send the data - TQString theData = "This is a test of kio_%{APPNAMELC}"; - data(TQCString(theData.local8Bit())); - data(TQByteArray()); // empty array means we're done sending the data - finished(); -} - - -void kio_%{APPNAMELC}Protocol::mimetype(const KURL & /*url*/) -{ - mimeType("text/plain"); - finished(); -} - - -extern "C" -{ - int kdemain(int argc, char **argv) - { - TDEInstance instance( "kio_%{APPNAMELC}" ); - - kdDebug(7101) << "*** Starting kio_%{APPNAMELC} " << endl; - - if (argc != 4) { - kdDebug(7101) << "Usage: kio_%{APPNAMELC} protocol domain-socket1 domain-socket2" << endl; - exit(-1); - } - - kio_%{APPNAMELC}Protocol slave(argv[2], argv[3]); - slave.dispatchLoop(); - - kdDebug(7101) << "*** kio_%{APPNAMELC} Done" << endl; - return 0; - } -} diff --git a/languages/cpp/app_templates/kioslave/slave.h b/languages/cpp/app_templates/kioslave/slave.h deleted file mode 100644 index 07bf9c6e..00000000 --- a/languages/cpp/app_templates/kioslave/slave.h +++ /dev/null @@ -1,23 +0,0 @@ - -#ifndef _%{APPNAMELC}_H_ -#define _%{APPNAMELC}_H_ - -#include -#include - -#include -#include -#include - -class TQCString; - -class kio_%{APPNAMELC}Protocol : public TDEIO::SlaveBase -{ -public: - kio_%{APPNAMELC}Protocol(const TQCString &pool_socket, const TQCString &app_socket); - virtual ~kio_%{APPNAMELC}Protocol(); - virtual void mimetype(const KURL& url); - virtual void get(const KURL& url); -}; - -#endif diff --git a/languages/cpp/app_templates/kioslave/slave.protocol b/languages/cpp/app_templates/kioslave/slave.protocol deleted file mode 100644 index 2e2cc076..00000000 --- a/languages/cpp/app_templates/kioslave/slave.protocol +++ /dev/null @@ -1,39 +0,0 @@ -[Protocol] -exec=kio_%{APPNAMELC} -protocol=%{APPNAMELC} -input=none -output=stream -reading=true -defaultMimetype=text/plain -Icon=remote -Description=A kioslave for %{APPNAMELC} -Description[br]=Ur c'hioslave evit %{APPNAMELC} -Description[ca]=Un kioslave per a %{APPNAMELC} -Description[da]=En kioslave til %{APPNAMELC} -Description[de]=Ein Ein-/Ausgabemodul für %{APPNAMELC} -Description[el]=Ένα υπηρέτης kio για %{APPNAMELC} -Description[es]=Un kioslave para %{APPNAMELC} -Description[et]=%{APPNAMELC} IO-moodul -Description[eu]=kioslave bat honentzat: %{APPNAMELC} -Description[fa]=یک kioslave برای %{APPNAMELC} -Description[fr]=Un esclave d'E/S (kioslave) pour %{APPNAMELC} -Description[ga]=kioslave le haghaidh %{APPNAMELC} -Description[gl]=Un kioslave para %{APPNAMELC} -Description[hu]=%{APPNAMELC}-támogató KIOslave -Description[it]=Un kioslave per %{APPNAMELC} -Description[ja]=%{APPNAMELC} のための kioslave -Description[nds]=En In-/Utgaavmoduul för %{APPNAMELC} -Description[ne]= %{APPNAMELC} का लागि किवस्लेभ -Description[nl]=Kioslave voor %{APPNAMELC} -Description[pl]=kioslave dla %{APPNAMELC} -Description[pt]=Um 'kioslave' para %{APPNAMELC} -Description[pt_BR]=Um kioslave para %{APPNAMELC} -Description[ru]=Канал kioslave для %{APPNAMELC} -Description[sk]=kioslave pre %{APPNAMELC} -Description[sl]=kioslave za %{APPNAMELC} -Description[sr]=KIOSlave за %{APPNAMELC} -Description[sr@Latn]=KIOSlave za %{APPNAMELC} -Description[sv]=En I/O-slav för %{APPNAMELC} -Description[tr]=%{APPNAMELC} için bir kioslave -Description[zh_CN]=%{APPNAMELC} 的 kioslave -Description[zh_TW]=%{APPNAMELC} 的 kioslave diff --git a/languages/cpp/app_templates/kioslave/slave.tdevelop b/languages/cpp/app_templates/kioslave/slave.tdevelop deleted file mode 100644 index 4c7c2d2e..00000000 --- a/languages/cpp/app_templates/kioslave/slave.tdevelop +++ /dev/null @@ -1,113 +0,0 @@ - - - - %{AUTHOR} - %{EMAIL} - %{VERSION} - KDevTDEAutoProject - C++ - - C++ - Code - Qt - TDE - kioslave - - - - - 3 - true - 3 - EmbeddedKDevDesigner - - - - - - src/lib%{APPNAMELC}.la - debug - - - - optimized - kdevgccoptions - kdevgppoptions - kdevg77options - -O2 -g0 - - - --enable-debug=full - debug - kdevgccoptions - kdevgppoptions - kdevg77options - -O0 -g3 - - - - - - - - - - - - - bash - bash_bugs - clanlib - fortran_bugs_gcc - gnome1 - gnustep - gtk - gtk_bugs - haskell - haskell_bugs_ghc - java_bugs_gcc - java_bugs_sun - opengl - pascal_bugs_fp - php - php_bugs - perl - perl_bugs - python - python_bugs - ruby - ruby_bugs - sdl - stl - sw - w3c-dom-level2-html - w3c-svg - w3c-uaag10 - wxwidgets_bugs - - - Guide to the Qt Translation Tools - Qt Assistant Manual - Qt Designer Manual - Qt Reference Documentation - - - - - libtool - - - - - - - - - - - - Doxygen Documentation Collection - %{APPNAMELC}.tag - - - diff --git a/languages/cpp/app_templates/kioslave/src-Makefile.am b/languages/cpp/app_templates/kioslave/src-Makefile.am deleted file mode 100644 index 7aedfa33..00000000 --- a/languages/cpp/app_templates/kioslave/src-Makefile.am +++ /dev/null @@ -1,14 +0,0 @@ -INCLUDES = $(all_includes) - -kde_module_LTLIBRARIES = kio_%{APPNAMELC}.la - -kio_%{APPNAMELC}_la_SOURCES = %{APPNAMELC}.cpp -kio_%{APPNAMELC}_la_LIBADD = -lkio -kio_%{APPNAMELC}_la_LDFLAGS = -module -avoid-version $(all_libraries) $(KDE_PLUGIN) $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEUI) $(LIB_KPARTS) - -protocol_DATA = %{APPNAMELC}.protocol -protocoldir = $(kde_servicesdir) - -messages: rc.cpp - $(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp - $(XGETTEXT) *.cpp -o $(podir)/kio_%{APPNAMELC}.pot diff --git a/languages/cpp/app_templates/kioslave/subdirs b/languages/cpp/app_templates/kioslave/subdirs deleted file mode 100644 index 0e678106..00000000 --- a/languages/cpp/app_templates/kioslave/subdirs +++ /dev/null @@ -1,3 +0,0 @@ -doc -po -src diff --git a/languages/cpp/app_templates/kofficepart/kopart.tdevelop b/languages/cpp/app_templates/kofficepart/kopart.tdevelop index e3b6cc3f..194157d7 100644 --- a/languages/cpp/app_templates/kofficepart/kopart.tdevelop +++ b/languages/cpp/app_templates/kofficepart/kopart.tdevelop @@ -11,7 +11,7 @@ Code Qt TDE - kioslave + tdeioslave diff --git a/languages/cpp/app_templates/konqnavpanel/konqnavpanel.h b/languages/cpp/app_templates/konqnavpanel/konqnavpanel.h index c54c096a..527be77e 100644 --- a/languages/cpp/app_templates/konqnavpanel/konqnavpanel.h +++ b/languages/cpp/app_templates/konqnavpanel/konqnavpanel.h @@ -8,7 +8,7 @@ #include #include -#include +#include class %{APPNAME} : public KonqSidebarPlugin diff --git a/languages/cpp/app_templates/kpartapp/app.cpp b/languages/cpp/app_templates/kpartapp/app.cpp index c5d30f14..7e7dc64d 100644 --- a/languages/cpp/app_templates/kpartapp/app.cpp +++ b/languages/cpp/app_templates/kpartapp/app.cpp @@ -2,8 +2,8 @@ #include "%{APPNAMELC}.h" #include -#include -#include +#include +#include #include #include diff --git a/languages/cpp/app_templates/kpartapp/app_part.cpp b/languages/cpp/app_templates/kpartapp/app_part.cpp index e46d21ca..518d4514 100644 --- a/languages/cpp/app_templates/kpartapp/app_part.cpp +++ b/languages/cpp/app_templates/kpartapp/app_part.cpp @@ -4,7 +4,7 @@ #include #include #include -#include +#include #include #include diff --git a/languages/cpp/app_templates/kscons_kxt/README b/languages/cpp/app_templates/kscons_kxt/README index e7aa2647..10859289 100644 --- a/languages/cpp/app_templates/kscons_kxt/README +++ b/languages/cpp/app_templates/kscons_kxt/README @@ -76,7 +76,7 @@ The configure.in.in will need to be modified : change the line #MIN_CONFIG(3.0.0 into #MIN_CONFIG(3.2.0) Take an example on the many apps found in the tdegames source package and consult : -http://developer.kde.org/documentation/tutorials/kconfigxt/kconfigxt.html +http://developer.kde.org/documentation/tutorials/tdeconfigxt/tdeconfigxt.html * With KParts, you can embed other kde components in your program, or make your program embeddable in other apps. For example, the kmplayer kpart can be called to play videos diff --git a/languages/cpp/app_templates/kscons_kxt/app.cpp b/languages/cpp/app_templates/kscons_kxt/app.cpp index bbf648ea..2895fb0a 100644 --- a/languages/cpp/app_templates/kscons_kxt/app.cpp +++ b/languages/cpp/app_templates/kscons_kxt/app.cpp @@ -9,7 +9,7 @@ #include #include -#include +#include #include #include #include diff --git a/languages/cpp/app_templates/kscons_kxt/messages.sh b/languages/cpp/app_templates/kscons_kxt/messages.sh index a0ce678a..5c497f99 100755 --- a/languages/cpp/app_templates/kscons_kxt/messages.sh +++ b/languages/cpp/app_templates/kscons_kxt/messages.sh @@ -14,7 +14,7 @@ # for yourself and help me to improve this script, thanks # (tnagyemail-mail tat yahoo d0tt fr) -SRCDIR=../test1-kconfigxt # srcdir is the directory containing the source code +SRCDIR=../test1-tdeconfigxt # srcdir is the directory containing the source code TIPSDIR=$SRCDIR # tipsdir is the directory containing the tips TDEDIR=`tde-config --prefix` diff --git a/languages/cpp/app_templates/kscons_kxt/settings.kcfgc b/languages/cpp/app_templates/kscons_kxt/settings.kcfgc index 384510cd..402fad09 100644 --- a/languages/cpp/app_templates/kscons_kxt/settings.kcfgc +++ b/languages/cpp/app_templates/kscons_kxt/settings.kcfgc @@ -1,4 +1,4 @@ -# Code generation options for kconfig_compiler +# Code generation options for tdeconfig_compiler File=%{APPNAMELC}.kcfg ClassName=Settings Singleton=true diff --git a/languages/cpp/app_templates/kscons_tdemdi/README b/languages/cpp/app_templates/kscons_tdemdi/README index e7aa2647..10859289 100644 --- a/languages/cpp/app_templates/kscons_tdemdi/README +++ b/languages/cpp/app_templates/kscons_tdemdi/README @@ -76,7 +76,7 @@ The configure.in.in will need to be modified : change the line #MIN_CONFIG(3.0.0 into #MIN_CONFIG(3.2.0) Take an example on the many apps found in the tdegames source package and consult : -http://developer.kde.org/documentation/tutorials/kconfigxt/kconfigxt.html +http://developer.kde.org/documentation/tutorials/tdeconfigxt/tdeconfigxt.html * With KParts, you can embed other kde components in your program, or make your program embeddable in other apps. For example, the kmplayer kpart can be called to play videos diff --git a/languages/cpp/app_templates/kscons_tdemdi/app_part.cpp b/languages/cpp/app_templates/kscons_tdemdi/app_part.cpp index 2bdb725d..5ea5d069 100644 --- a/languages/cpp/app_templates/kscons_tdemdi/app_part.cpp +++ b/languages/cpp/app_templates/kscons_tdemdi/app_part.cpp @@ -6,7 +6,7 @@ #include #include #include -#include +#include #include #include diff --git a/languages/cpp/app_templates/kscons_tdemdi/apptdemdi.cpp b/languages/cpp/app_templates/kscons_tdemdi/apptdemdi.cpp index 0ef16672..7ea17587 100644 --- a/languages/cpp/app_templates/kscons_tdemdi/apptdemdi.cpp +++ b/languages/cpp/app_templates/kscons_tdemdi/apptdemdi.cpp @@ -13,15 +13,15 @@ #include #include -#include +#include #include #include #include -#include -#include +#include +#include #include #include -#include +#include #include #include #include diff --git a/languages/cpp/app_templates/kscons_tdemdi/messages.sh b/languages/cpp/app_templates/kscons_tdemdi/messages.sh index a0ce678a..5c497f99 100755 --- a/languages/cpp/app_templates/kscons_tdemdi/messages.sh +++ b/languages/cpp/app_templates/kscons_tdemdi/messages.sh @@ -14,7 +14,7 @@ # for yourself and help me to improve this script, thanks # (tnagyemail-mail tat yahoo d0tt fr) -SRCDIR=../test1-kconfigxt # srcdir is the directory containing the source code +SRCDIR=../test1-tdeconfigxt # srcdir is the directory containing the source code TIPSDIR=$SRCDIR # tipsdir is the directory containing the tips TDEDIR=`tde-config --prefix` diff --git a/languages/cpp/app_templates/kscons_tdemdi/settings.kcfgc b/languages/cpp/app_templates/kscons_tdemdi/settings.kcfgc index 384510cd..402fad09 100644 --- a/languages/cpp/app_templates/kscons_tdemdi/settings.kcfgc +++ b/languages/cpp/app_templates/kscons_tdemdi/settings.kcfgc @@ -1,4 +1,4 @@ -# Code generation options for kconfig_compiler +# Code generation options for tdeconfig_compiler File=%{APPNAMELC}.kcfg ClassName=Settings Singleton=true diff --git a/languages/cpp/app_templates/kxt/README b/languages/cpp/app_templates/kxt/README index a24ad60a..d8bc639b 100644 --- a/languages/cpp/app_templates/kxt/README +++ b/languages/cpp/app_templates/kxt/README @@ -51,7 +51,7 @@ The configure.in.in will need to be modified : change the line #MIN_CONFIG(3.0.0 into #MIN_CONFIG(3.2.0) Take an example on the many apps found in the tdegames source package and consult : -http://developer.kde.org/documentation/tutorials/kconfigxt/kconfigxt.html +http://developer.kde.org/documentation/tutorials/tdeconfigxt/tdeconfigxt.html * With KParts, you can embed other kde components in your program, or make your program embeddable in other apps. For example, the kmplayer kpart can be called to play videos diff --git a/languages/cpp/app_templates/kxt/app.cpp b/languages/cpp/app_templates/kxt/app.cpp index ef50718c..6f3e19fb 100644 --- a/languages/cpp/app_templates/kxt/app.cpp +++ b/languages/cpp/app_templates/kxt/app.cpp @@ -9,7 +9,7 @@ #include #include -#include +#include #include #include #include diff --git a/languages/cpp/app_templates/kxt/settings.kcfgc b/languages/cpp/app_templates/kxt/settings.kcfgc index 384510cd..402fad09 100644 --- a/languages/cpp/app_templates/kxt/settings.kcfgc +++ b/languages/cpp/app_templates/kxt/settings.kcfgc @@ -1,4 +1,4 @@ -# Code generation options for kconfig_compiler +# Code generation options for tdeconfig_compiler File=%{APPNAMELC}.kcfg ClassName=Settings Singleton=true diff --git a/languages/cpp/app_templates/noatunui/plugin_impl.cpp b/languages/cpp/app_templates/noatunui/plugin_impl.cpp index 8608ba88..849f332a 100644 --- a/languages/cpp/app_templates/noatunui/plugin_impl.cpp +++ b/languages/cpp/app_templates/noatunui/plugin_impl.cpp @@ -22,8 +22,8 @@ #include #include #include -//#include -//#include +//#include +//#include %{APPNAME}UI::%{APPNAME}UI() : TQWidget(0,"%{APPNAME}UI"), UserInterface() { diff --git a/languages/cpp/app_templates/opieapp/app.pro b/languages/cpp/app_templates/opieapp/app.pro index f4111696..541721e6 100644 --- a/languages/cpp/app_templates/opieapp/app.pro +++ b/languages/cpp/app_templates/opieapp/app.pro @@ -13,7 +13,7 @@ contains( TEMPLATE, quick-template ){ contains( QUICK_SPEC_FOO, quick-app-lib ){ message( "foo" ) system( rm $$TARGET ) - system( ln -s $$(OPIEDIR)/bin/quicklauncher $$TARGET) + system( ln -s $$(OPIEDIR)/bin/quictdelauncher $$TARGET) DEFINES += OPIE_APP_INTERFACE TEMPLATE = lib CONFIG += dll diff --git a/languages/cpp/app_templates/opieapplet/app.pro b/languages/cpp/app_templates/opieapplet/app.pro index e1cc1e3b..7794dfc4 100644 --- a/languages/cpp/app_templates/opieapplet/app.pro +++ b/languages/cpp/app_templates/opieapplet/app.pro @@ -10,7 +10,7 @@ contains( TEMPLATE, quick-template ){ contains( QUICK_SPEC_FOO, quick-app-lib ){ message( "foo" ) system( rm $$TARGET ) - system( ln -s $$(OPIEDIR)/bin/quicklauncher $$TARGET) + system( ln -s $$(OPIEDIR)/bin/quictdelauncher $$TARGET) DEFINES += OPIE_APP_INTERFACE TEMPLATE = lib CONFIG += dll diff --git a/languages/cpp/app_templates/opieinput/app.pro b/languages/cpp/app_templates/opieinput/app.pro index 1711c78f..4419e74e 100644 --- a/languages/cpp/app_templates/opieinput/app.pro +++ b/languages/cpp/app_templates/opieinput/app.pro @@ -10,7 +10,7 @@ contains( TEMPLATE, quick-template ){ contains( QUICK_SPEC_FOO, quick-app-lib ){ message( "foo" ) system( rm $$TARGET ) - system( ln -s $$(OPIEDIR)/bin/quicklauncher $$TARGET) + system( ln -s $$(OPIEDIR)/bin/quictdelauncher $$TARGET) DEFINES += OPIE_APP_INTERFACE TEMPLATE = lib CONFIG += dll diff --git a/languages/cpp/app_templates/opiemenu/app.pro b/languages/cpp/app_templates/opiemenu/app.pro index 71bc208c..9488b244 100644 --- a/languages/cpp/app_templates/opiemenu/app.pro +++ b/languages/cpp/app_templates/opiemenu/app.pro @@ -10,7 +10,7 @@ contains( TEMPLATE, quick-template ){ contains( QUICK_SPEC_FOO, quick-app-lib ){ message( "foo" ) system( rm $$TARGET ) - system( ln -s $$(OPIEDIR)/bin/quicklauncher $$TARGET) + system( ln -s $$(OPIEDIR)/bin/quictdelauncher $$TARGET) DEFINES += OPIE_APP_INTERFACE TEMPLATE = lib CONFIG += dll diff --git a/languages/cpp/app_templates/opienet/app.pro b/languages/cpp/app_templates/opienet/app.pro index 53fb6eea..30b811fe 100644 --- a/languages/cpp/app_templates/opienet/app.pro +++ b/languages/cpp/app_templates/opienet/app.pro @@ -11,7 +11,7 @@ contains( TEMPLATE, quick-template ){ contains( QUICK_SPEC_FOO, quick-app-lib ){ message( "foo" ) system( rm $$TARGET ) - system( ln -s $$(OPIEDIR)/bin/quicklauncher $$TARGET) + system( ln -s $$(OPIEDIR)/bin/quictdelauncher $$TARGET) DEFINES += OPIE_APP_INTERFACE TEMPLATE = lib CONFIG += dll diff --git a/languages/cpp/app_templates/opienet/opienet.kdevtemplate b/languages/cpp/app_templates/opienet/opienet.kdevtemplate index 23223d28..c5b22cd4 100644 --- a/languages/cpp/app_templates/opienet/opienet.kdevtemplate +++ b/languages/cpp/app_templates/opienet/opienet.kdevtemplate @@ -48,7 +48,7 @@ Comment[it]=Genera un plugin di configurazione di rete Opie. Comment[ja]=Opie ネットワーク設定プラグインを作成 Comment[nds]=Stellt en Moduul för Opie-Nettwarkinstellen op. Comment[ne]=ओपिइ सञ्जाल कन्फिग प्लगइन उत्पन्न गर्नुहोस् -Comment[nl]=Genereert een Opie netwerkconfiguratieplugin. +Comment[nl]=Genereert een Opie netwertdeconfiguratieplugin. Comment[pl]=Generuje wtyczkę do ustawień sieciowych Opie Comment[pt]=Gera um 'plugin' de configuração da rede do Opie. Comment[pt_BR]=Gera um 'plugin' de configuração da rede do Opie. @@ -127,7 +127,7 @@ Comment[it]=È stato creato un plugin per le impostazioni di rete di Opie in %{d Comment[ja]=Opie ネットワーク設定プラグインを %{dest} に作成しました Comment[nds]=In %{dest} wöör en Nettwarkinstellenmoduul för Opie opstellt Comment[ne]=ओपिइ सञ्जाल सेटिङ प्लगइन %{dest} मा सिर्जना गरियो -Comment[nl]=Een Opie netwerkconfiguratieplugin is aangemaakt in %{dest} +Comment[nl]=Een Opie netwertdeconfiguratieplugin is aangemaakt in %{dest} Comment[pl]=Wtyczka ustawień sieciowych Opie została utworzona w %{dest} Comment[pt]=Foi criado um 'plugin' de configuração da rede do Opie em %{dest} Comment[pt_BR]=Foi criado um 'plugin' de configuração da rede do Opie em %{dest} diff --git a/languages/cpp/app_templates/opietoday/app.pro b/languages/cpp/app_templates/opietoday/app.pro index 152dc6f6..c8009e24 100644 --- a/languages/cpp/app_templates/opietoday/app.pro +++ b/languages/cpp/app_templates/opietoday/app.pro @@ -10,7 +10,7 @@ contains( TEMPLATE, quick-template ){ contains( QUICK_SPEC_FOO, quick-app-lib ){ message( "foo" ) system( rm $$TARGET ) - system( ln -s $$(OPIEDIR)/bin/quicklauncher $$TARGET) + system( ln -s $$(OPIEDIR)/bin/quictdelauncher $$TARGET) DEFINES += OPIE_APP_INTERFACE TEMPLATE = lib CONFIG += dll diff --git a/languages/cpp/app_templates/tdecmodule/module.desktop b/languages/cpp/app_templates/tdecmodule/module.desktop index 3a316965..447e8df1 100644 --- a/languages/cpp/app_templates/tdecmodule/module.desktop +++ b/languages/cpp/app_templates/tdecmodule/module.desktop @@ -1,5 +1,5 @@ [Desktop Entry] -Exec=kcmshell %{APPNAMELC} +Exec=tdecmshell %{APPNAMELC} Icon=misc Type=Application diff --git a/languages/cpp/app_templates/tdeconfig35/CMakeLists.txt b/languages/cpp/app_templates/tdeconfig35/CMakeLists.txt new file mode 100644 index 00000000..32dd830c --- /dev/null +++ b/languages/cpp/app_templates/tdeconfig35/CMakeLists.txt @@ -0,0 +1,28 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_custom_target( tdeconfig35.tar.gz ALL + COMMAND tar zcf tdeconfig35.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} + src-Makefile.am app.cpp app.h main.cpp appui.rc + app.tdevelop subdirs app.desktop kxt35.png appview.h + appview.cpp appview_base.ui prefs-base.ui prefs.cpp prefs.h + app.kcfg settings.kcfgc README src-configure.in.in +) + + +install( FILES + ${CMAKE_CURRENT_BINARY_DIR}/tdeconfig35.tar.gz tdeconfig35.png + DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard ) + + +install( FILES + tdeconfig35.kdevtemplate + DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates ) diff --git a/languages/cpp/app_templates/tdeconfig35/Makefile.am b/languages/cpp/app_templates/tdeconfig35/Makefile.am new file mode 100644 index 00000000..a172f05f --- /dev/null +++ b/languages/cpp/app_templates/tdeconfig35/Makefile.am @@ -0,0 +1,19 @@ +dataFiles = src-Makefile.am app.cpp app.h main.cpp appui.rc app.tdevelop \ + subdirs app.desktop kxt35.png appview.h appview.cpp appview_base.ui \ + prefs-base.ui prefs.cpp prefs.h app.kcfg settings.kcfgc README \ + src-configure.in.in +templateName= tdeconfig35 + +### no need to change below: +template_DATA = $(templateName).kdevtemplate +templatedir = ${appwizarddatadir}/templates + +appwizarddatadir = ${kde_datadir}/kdevappwizard +$(templateName).tar.gz: ${dataFiles} + $(TAR) -cf $(templateName).tar -C $(srcdir) ${dataFiles} + $(GZIP_COMMAND) -f9 $(templateName).tar + +archivedir = ${appwizarddatadir} +archive_DATA = $(templateName).tar.gz ${templateName}.png + +CLEANFILES = *.tar.gz diff --git a/languages/cpp/app_templates/tdeconfig35/README b/languages/cpp/app_templates/tdeconfig35/README new file mode 100644 index 00000000..e35da710 --- /dev/null +++ b/languages/cpp/app_templates/tdeconfig35/README @@ -0,0 +1,90 @@ +----------------------------------------------- +Kde templates quickstart +Author: Thomas Nagy +Date: 2004-03-22 +----------------------------------------------- + +This README file explains you basic things for starting with +this application template. + +----------------------------------------------- +--NOTE--: you need tdelibs 3.5 and tdelibs headers 3.5 (devel package) in order to build this template. +Qt version might be 3.3.4 or 3.3.5 +----------------------------------------------- + +** Building and installing ** + +* Build the configure script by "make -f Makefile.cvs" + +* To clean, use "make clean", and to clean everything +(remove the makefiles, etc), use "make distclean" + +* To distribute your program, try "make dist". +This will make a compact tarball archive of your release with the +necessary scripts inside. + +* Modifying the auto-tools scripts +for automake scripts there is an excellent tutorial there : +http://developer.kde.org/documentation/other/makefile_am_howto.html + +* Simplify your life : install the project in your home directory for +testing purposes. +./configure --prefix=/home/user/dummyfolder/ +In the end when you finished the development you can +rm -rf /home/user/dummyfolder/ +without fear. + + +** Technologies ** + +* Build the menus of your application easily +kde applications now use an xml file (*ui.rc file) to build the menus. +This allow a great customization of the application. However, when +programming the menu is shown only after a "make install" + +For more details, consult : +http://devel-home.kde.org/~larrosa/tutorial/p9.html +http://developer.kde.org/documentation/tutorials/xmlui/preface.html + +* Use TDEConfig XT to create your configuration dialogs and make +them more maintainable. + +For that, you will need to write two simple configuration files +in the src directory : .kcfg and a .kcfgc +The configure.in.in will need to be modified : change the line #MIN_CONFIG(3.0.0) +into #MIN_CONFIG(3.2.0) + +Take an example on the many apps found in the tdegames source package and consult : +http://developer.kde.org/documentation/tutorials/tdeconfigxt/tdeconfigxt.html + +* With KParts, you can embed other kde components in your program, or make your program +embeddable in other apps. For example, the kmplayer kpart can be called to play videos +in your app. + +For more details, consult : +http://www-106.ibm.com/developerworks/library/l-tdeparts/ +http://developer.kde.org/documentation/tutorials/dot/writing-plugins.html +http://developer.kde.org/documentation/tutorials/developing-a-plugin-structure/index.html + +* With dcop, you can control your app from other applications +Make sure to include K_DCOP and a kdcop: section in your .h file +http://developer.kde.org/documentation/tutorials/dot/dcopiface/dcop-interface.html + + +** Documentation ** + +* For the translations : +1. Download a patched gettext which can be found at: + http://public.kde.planetmirror.com/pub/kde/devel/gettext-kde/ +2. Install that gettext in ~/bin/ +3. cd ~/yourproject, export PATH=~/bin:$PATH, export +TDEDIR=/where_your_TDE3_is +4. make -f admin/Makefile.common package-messages +5. make package-messages +6. Translate the po files (not the pot!!) with kbabel or xemacs + +* Do not forget to write the documentation for your kde app +edit the documentation template index.docbook in doc/ + + + diff --git a/languages/cpp/app_templates/tdeconfig35/app.cpp b/languages/cpp/app_templates/tdeconfig35/app.cpp new file mode 100644 index 00000000..d158e45f --- /dev/null +++ b/languages/cpp/app_templates/tdeconfig35/app.cpp @@ -0,0 +1,105 @@ +%{CPP_TEMPLATE} + +#include "%{APPNAMELC}.h" +#include "settings.h" +#include "prefs.h" + +#include + +#include +#include +#include +#include +#include +#include + +%{APPNAMELC}::%{APPNAMELC}() + : KMainWindow( 0, "%{APPNAMELC}" ), + m_view(new %{APPNAMELC}View(this)), + m_printer(0) +{ + // accept dnd + setAcceptDrops(true); + + // tell the KMainWindow that this is indeed the main widget + setCentralWidget(m_view); + // and a status bar + statusBar()->show(); + // then, setup our actions + setupActions(); + + // apply the saved mainwindow settings, if any, and ask the mainwindow + // to automatically save settings if changed: window size, toolbar + // position, icon size, etc. + setAutoSaveSettings(); + + // allow the view to change the statusbar and caption + connect(m_view, TQT_SIGNAL(signalChangeStatusbar(const TQString&)), + this, TQT_SLOT(changeStatusbar(const TQString&))); + connect(m_view, TQT_SIGNAL(signalChangeCaption(const TQString&)), + this, TQT_SLOT(changeCaption(const TQString&))); + +} + +%{APPNAMELC}::~%{APPNAMELC}() +{ +} + +void %{APPNAMELC}::setupActions() +{ + KStdAction::openNew(this, TQT_SLOT(fileNew()), actionCollection()); + KStdAction::quit(kapp, TQT_SLOT(quit()), actionCollection()); + + KStdAction::preferences(this, TQT_SLOT(optionsPreferences()), actionCollection()); + + // custom menu and menu item + KAction *custom = new KAction(i18n("Swi&tch Colors"), 0, + m_view, TQT_SLOT(switchColors()), + actionCollection(), "switch_action"); + + setupGUI(); +} + +void %{APPNAMELC}::newToolbarConfig() +{ + // this slot is called when user clicks "Ok" or "Apply" in the toolbar editor. + // recreate our GUI, and re-apply the settings (e.g. "text under icons", etc.) + setupGUI(); +} + +void %{APPNAMELC}::optionsPreferences() +{ + // The preference dialog is derived from prefs-base.ui which is subclassed into Prefs + // + // compare the names of the widgets in the .ui file + // to the names of the variables in the .kcfg file + TDEConfigDialog *dialog = new TDEConfigDialog(this, "settings", Settings::self(), KDialogBase::Swallow); + dialog->addPage(new Prefs(), i18n("General"), "package_settings"); + connect(dialog, TQT_SIGNAL(settingsChanged()), m_view, TQT_SLOT(settingsChanged())); + dialog->show(); +} + +void %{APPNAMELC}::changeCaption(const TQString& text) +{ + // display the text on the caption + setCaption(text); +} + +void %{APPNAMELC}::changeStatusbar(const TQString& text) +{ + // display the text on the statusbar + statusBar()->message(text); +} + +void %{APPNAMELC}::fileNew() +{ + // this slot is called whenever the File->New menu is selected, + // the New shortcut is pressed (usually CTRL+N) or the New toolbar + // button is clicked + + // create a new window + (new %{APPNAMELC})->show(); +} + +#include "%{APPNAMELC}.moc" + diff --git a/languages/cpp/app_templates/tdeconfig35/app.desktop b/languages/cpp/app_templates/tdeconfig35/app.desktop new file mode 100644 index 00000000..5beccc5d --- /dev/null +++ b/languages/cpp/app_templates/tdeconfig35/app.desktop @@ -0,0 +1,40 @@ +[Desktop Entry] +Name=%{APPNAME} +Exec=%{APPNAMELC} +Icon=%{APPNAMELC} +Type=Application +Comment=A simple TDE Application +Comment[br]=Ur meziant eeun evit TDE +Comment[ca]=Una simple aplicació per al TDE +Comment[da]=Et simpelt TDE program +Comment[de]=Eine einfache TDE-Anwendung +Comment[el]=Μια απλή εφαρμογή του TDE +Comment[es]=Una aplicación de TDE sencilla +Comment[et]=Lihtne TDE rakendus +Comment[eu]=TDE aplikazio simple bat +Comment[fa]=یک کاربرد سادۀ TDE +Comment[fr]=Une application simple pour TDE +Comment[ga]=Feidhmchlár Simplí TDE +Comment[gl]=Unha aplicación TDE sinxela +Comment[hi]=एक सादा केडीई अनुप्रयोग +Comment[hu]=Egyszerű TDE-alkalmazás +Comment[is]=Einfalt TDE forrit +Comment[it]=Una semplice applicazione TDE +Comment[ja]=簡単な TDE アプリケーション +Comment[nds]=En eenfach TDE-Programm +Comment[ne]=एउटा साधारण केडीई अनुप्रयोग +Comment[nl]=Een eenvoudige TDE-toepassing +Comment[pl]=Prosty program TDE +Comment[pt]=Uma aplicação simples do TDE +Comment[pt_BR]=Um simples Aplicativo do TDE +Comment[ru]=Простое приложение TDE +Comment[sk]=Jednoduchá TDE aplikácia +Comment[sl]=Preprost program za TDE +Comment[sr]=Једноставан TDE програм +Comment[sr@Latn]=Jednostavan TDE program +Comment[sv]=Ett enkelt TDE-program +Comment[ta]=ஒரு சாதாரண கெடிஇ பயன்பாடு +Comment[tg]=Гузориши оддиTDE +Comment[tr]=Basit bir TDE Uygulaması +Comment[zh_CN]=一个简单的 TDE 应用程序 +Comment[zh_TW]=簡單的 TDE 應用程式 diff --git a/languages/cpp/app_templates/tdeconfig35/app.h b/languages/cpp/app_templates/tdeconfig35/app.h new file mode 100644 index 00000000..c1aac7e4 --- /dev/null +++ b/languages/cpp/app_templates/tdeconfig35/app.h @@ -0,0 +1,61 @@ +%{H_TEMPLATE} + +#ifndef _%{APPNAMEUC}_H_ +#define _%{APPNAMEUC}_H_ + +#ifdef HAVE_CONFIG_H +#include +#endif + +#include +#include + +#include "%{APPNAMELC}view.h" + +class KPrinter; +class KURL; + +/** + * This class serves as the main window for %{APPNAME}. It handles the + * menus, toolbars, and status bars. + * + * @short Main window class + * @author %{AUTHOR} <%{EMAIL}> + * @version %{VERSION} + */ +class %{APPNAMELC} : public KMainWindow +{ + Q_OBJECT + +public: + /** + * Default Constructor + */ + %{APPNAMELC}(); + + /** + * Default Destructor + */ + virtual ~%{APPNAMELC}(); + +private slots: + + void fileNew(); + void optionsPreferences(); + void newToolbarConfig(); + + void changeStatusbar(const TQString& text); + void changeCaption(const TQString& text); + +private: + + void setupActions(); + +private: + %{APPNAMELC}View *m_view; + + KPrinter *m_printer; +}; + +#endif // _%{APPNAMEUC}_H_ + diff --git a/languages/cpp/app_templates/tdeconfig35/app.kcfg b/languages/cpp/app_templates/tdeconfig35/app.kcfg new file mode 100644 index 00000000..686f25f2 --- /dev/null +++ b/languages/cpp/app_templates/tdeconfig35/app.kcfg @@ -0,0 +1,21 @@ + + + + + + + black + + + + yellow + + + + 2 + + + diff --git a/languages/cpp/app_templates/tdeconfig35/app.tdevelop b/languages/cpp/app_templates/tdeconfig35/app.tdevelop new file mode 100644 index 00000000..6a53f237 --- /dev/null +++ b/languages/cpp/app_templates/tdeconfig35/app.tdevelop @@ -0,0 +1,168 @@ + + + + %{AUTHOR} + %{EMAIL} + %{VERSION} + KDevTDEAutoProject + C++ + + C++ + Code + Qt + TDE + + . + false + + + + + + 3 + true + 3 + EmbeddedKDevDesigner + + + + + src/%{APPNAMELC} + debug + + + src/%{APPNAMELC} + false + + + + + + + false + 1 + false + + + + + optimized + kdevgccoptions + kdevgppoptions + kdevg77options + -O2 -g0 + + + --enable-debug=full + debug + kdevgccoptions + kdevgppoptions + kdevg77options + -O0 -g3 + + + + + + + + + + + + + false + *.o,*.lo,CVS + + + + + ada + ada_bugs_gcc + bash + bash_bugs + clanlib + w3c-dom-level2-html + fortran_bugs_gcc + gnome1 + gnustep + gtk + gtk_bugs + haskell + haskell_bugs_ghc + java_bugs_gcc + java_bugs_sun + pascal_bugs_fp + php + php_bugs + perl + perl_bugs + python + python_bugs + ruby + ruby_bugs + sdl + w3c-svg + sw + w3c-uaag10 + wxwidgets_bugs + + + qmake User Guide + + + + + libtool + + + true + false + false + true + + + false + true + + + + + + + + + + + + -f + + -dP + + -f + -u3 -p + + + + + + + false + + + .h + .cpp + true + + + + true + 2 + + + + Doxygen Documentation Collection + %{APPNAMELC}.tag + + + diff --git a/languages/cpp/app_templates/tdeconfig35/appui.rc b/languages/cpp/app_templates/tdeconfig35/appui.rc new file mode 100644 index 00000000..06549878 --- /dev/null +++ b/languages/cpp/app_templates/tdeconfig35/appui.rc @@ -0,0 +1,8 @@ + + + + &Move + + + + diff --git a/languages/cpp/app_templates/tdeconfig35/appview.cpp b/languages/cpp/app_templates/tdeconfig35/appview.cpp new file mode 100644 index 00000000..30d627fe --- /dev/null +++ b/languages/cpp/app_templates/tdeconfig35/appview.cpp @@ -0,0 +1,41 @@ +%{CPP_TEMPLATE} + +#include "%{APPNAMELC}view.h" +#include "settings.h" + +#include +#include + +%{APPNAMELC}View::%{APPNAMELC}View(TQWidget *parent) + : %{APPNAMELC}view_base(parent) +{ + settingsChanged(); +} + +%{APPNAMELC}View::~%{APPNAMELC}View() +{ + +} + +void %{APPNAMELC}View::switchColors() +{ + // switch the foreground/background colors of the label + TQColor color = Settings::col_background(); + Settings::setCol_background( Settings::col_foreground() ); + Settings::setCol_foreground( color ); + + settingsChanged(); +} + +void %{APPNAMELC}View::settingsChanged() +{ + sillyLabel->setPaletteBackgroundColor( Settings::col_background() ); + sillyLabel->setPaletteForegroundColor( Settings::col_foreground() ); + + // i18n : internationalization + sillyLabel->setText( i18n("This project is %1 days old").arg(Settings::val_time()) ); + emit signalChangeStatusbar( i18n("Settings changed") ); +} + +#include "%{APPNAMELC}view.moc" + diff --git a/languages/cpp/app_templates/tdeconfig35/appview.h b/languages/cpp/app_templates/tdeconfig35/appview.h new file mode 100644 index 00000000..a486ec43 --- /dev/null +++ b/languages/cpp/app_templates/tdeconfig35/appview.h @@ -0,0 +1,53 @@ +%{H_TEMPLATE} + +#ifndef _%{APPNAMEUC}VIEW_H_ +#define _%{APPNAMEUC}VIEW_H_ + +#include + +#include "%{APPNAMELC}view_base.h" + +class TQPainter; +class KURL; + +/** + * This is the main view class for %{APPNAME}. Most of the non-menu, + * non-toolbar, and non-statusbar (e.g., non frame) GUI code should go + * here. + * + * @short Main view + * @author %{AUTHOR} <%{EMAIL}> + * @version %{VERSION} + */ +class %{APPNAMELC}View : public %{APPNAMELC}view_base +{ + Q_OBJECT + +public: + /** + * Default constructor + */ + %{APPNAMELC}View(TQWidget *parent); + + /** + * Destructor + */ + virtual ~%{APPNAMELC}View(); + +signals: + /** + * Use this signal to change the content of the statusbar + */ + void signalChangeStatusbar(const TQString& text); + + /** + * Use this signal to change the content of the caption + */ + void signalChangeCaption(const TQString& text); + +private slots: + void switchColors(); + void settingsChanged(); +}; + +#endif // _%{APPNAMEUC}VIEW_H_ diff --git a/languages/cpp/app_templates/tdeconfig35/appview_base.ui b/languages/cpp/app_templates/tdeconfig35/appview_base.ui new file mode 100644 index 00000000..3ee8d513 --- /dev/null +++ b/languages/cpp/app_templates/tdeconfig35/appview_base.ui @@ -0,0 +1,33 @@ + +%{APPNAMELC}view_base + + +%{APPNAMELC}view_base + + + +0 +0 +268 +164 + + + +%{APPNAMELC}_base + + + +unnamed + + + +sillyLabel + + +hello, world + + + + + + diff --git a/languages/cpp/app_templates/tdeconfig35/kxt35.png b/languages/cpp/app_templates/tdeconfig35/kxt35.png new file mode 100644 index 00000000..a3866883 Binary files /dev/null and b/languages/cpp/app_templates/tdeconfig35/kxt35.png differ diff --git a/languages/cpp/app_templates/tdeconfig35/main.cpp b/languages/cpp/app_templates/tdeconfig35/main.cpp new file mode 100644 index 00000000..3c912936 --- /dev/null +++ b/languages/cpp/app_templates/tdeconfig35/main.cpp @@ -0,0 +1,57 @@ +%{CPP_TEMPLATE} + +#include "%{APPNAMELC}.h" +#include +#include +#include +#include + +static const char description[] = + I18N_NOOP("A TDE Application"); + +static const char version[] = "%{VERSION}"; + +static KCmdLineOptions options[] = +{ + { "+[URL]", I18N_NOOP( "Document to open" ), 0 }, + KCmdLineLastOption +}; + +int main(int argc, char **argv) +{ + TDEAboutData about("%{APPNAMELC}", I18N_NOOP("%{APPNAME}"), version, description, + TDEAboutData::License_%{LICENSE}, "(C) %{YEAR} %{AUTHOR}", 0, 0, "%{EMAIL}"); + about.addAuthor( "%{AUTHOR}", 0, "%{EMAIL}" ); + TDECmdLineArgs::init(argc, argv, &about); + TDECmdLineArgs::addCmdLineOptions(options); + TDEApplication app; + + // see if we are starting with session management + if (app.isRestored()) + { + RESTORE(%{APPNAMELC}); + } + else + { + // no session.. just start up normally + TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); + if (args->count() == 0) + { + %{APPNAMELC} *widget = new %{APPNAMELC}; + widget->show(); + } + else + { + int i = 0; + for (; i < args->count(); i++) + { + %{APPNAMELC} *widget = new %{APPNAMELC}; + widget->show(); + } + } + args->clear(); + } + + return app.exec(); +} + diff --git a/languages/cpp/app_templates/tdeconfig35/prefs-base.ui b/languages/cpp/app_templates/tdeconfig35/prefs-base.ui new file mode 100644 index 00000000..03af967a --- /dev/null +++ b/languages/cpp/app_templates/tdeconfig35/prefs-base.ui @@ -0,0 +1,127 @@ + +Prefs_base + + + Prefs_base + + + + 0 + 0 + 282 + 156 + + + + + unnamed + + + + textLabel2_2 + + + Background color: + + + + + kcfg_col_background + + + + + + + + textLabel1 + + + Project age: + + + + + textLabel2 + + + Foreground color: + + + + + kcfg_col_foreground + + + + + + + + spacer1 + + + Horizontal + + + Expanding + + + + 41 + 20 + + + + + + spacer2 + + + Horizontal + + + Expanding + + + + 41 + 20 + + + + + + kcfg_val_time + + + 1 + + + 2 + + + + + spacer3 + + + Horizontal + + + Expanding + + + + 41 + 20 + + + + + + + + kcolorbutton.h + + diff --git a/languages/cpp/app_templates/tdeconfig35/prefs.cpp b/languages/cpp/app_templates/tdeconfig35/prefs.cpp new file mode 100644 index 00000000..e7a46ddf --- /dev/null +++ b/languages/cpp/app_templates/tdeconfig35/prefs.cpp @@ -0,0 +1,12 @@ +%{CPP_TEMPLATE} + +#include "prefs.h" +#include + +Prefs::Prefs() + : Prefs_base() +{ +// debugging : +// kdWarning()<<"creating a pref dialog"< rc.cpp + $(XGETTEXT) *.cpp -o $(podir)/%{APPNAMELC}.pot + +KDE_ICON = AUTO + +# this is where the kdelnk file will go +kdelnkdir = $(kde_appsdir)/Utilities +kdelnk_DATA = %{APPNAMELC}.desktop + +# this is where the XML-GUI resource file goes +rcdir = $(kde_datadir)/%{APPNAMELC} +rc_DATA = %{APPNAMELC}ui.rc diff --git a/languages/cpp/app_templates/tdeconfig35/src-configure.in.in b/languages/cpp/app_templates/tdeconfig35/src-configure.in.in new file mode 100644 index 00000000..1f29bc08 --- /dev/null +++ b/languages/cpp/app_templates/tdeconfig35/src-configure.in.in @@ -0,0 +1,7 @@ + +#MIN_CONFIG(3.2.0) + +AM_INIT_AUTOMAKE(%{APPNAMELC}, %{VERSION}) +AC_C_BIGENDIAN +AC_CHECK_TDEMAXPATHLEN + diff --git a/languages/cpp/app_templates/tdeconfig35/subdirs b/languages/cpp/app_templates/tdeconfig35/subdirs new file mode 100644 index 00000000..0e678106 --- /dev/null +++ b/languages/cpp/app_templates/tdeconfig35/subdirs @@ -0,0 +1,3 @@ +doc +po +src diff --git a/languages/cpp/app_templates/tdeconfig35/tdeconfig35.kdevtemplate b/languages/cpp/app_templates/tdeconfig35/tdeconfig35.kdevtemplate new file mode 100644 index 00000000..60cb5238 --- /dev/null +++ b/languages/cpp/app_templates/tdeconfig35/tdeconfig35.kdevtemplate @@ -0,0 +1,245 @@ +# TDE Config File +[General] +Name=TDEConfig XT for TDE 3.5 +Name[ca]=TDEConfig XT per a TDE 3.5 +Name[de]=TDEConfigXT-Anwendung für TDE 3.5 +Name[el]=Εφαρμογή TDEConfig XT για το TDE 3.5 +Name[es]=TDEConfig XT para TDE 3.5 +Name[et]=TDEConfig XT TDE 3.5 jaoks +Name[fr]=Application TDEConfig XT pour TDE 3.5 +Name[hu]=TDEConfig XT a TDE 3.5-höz +Name[it]=TDEConfig XT per TDE 3.5 +Name[ja]=TDE 3.5 用 TDEConfig XT +Name[nds]=TDEConfig-XT-Programm för TDE 3.5 +Name[nl]=TDEConfig XT voor TDE 3.5 +Name[pl]=Program TDEConfig XT dla TDE 3.5 +Name[pt]=Aplicação do TDEConfig XT para o TDE 3.5 +Name[pt_BR]=Aplicação do TDEConfig XT para o TDE 3.5 +Name[ru]=Приложение TDE 3.5 с TDEConfig XT +Name[sk]=TDEConfig XT pre TDE 3.5 +Name[sr]=TDEConfig XT програм за TDE 3.5 +Name[sr@Latn]=TDEConfig XT program za TDE 3.5 +Name[sv]=TDEConfig XT för TDE 3.5 +Name[zh_TW]=TDE 3.5 的 TDEConfig XT 應用程式 +Category=C++/TDE +Icon=kxt.png +Comment=Generates a simple TDE application with one widget and a configuration dialog compatible with TDE 3.5 only +Comment[ca]=Genera una simple aplicació per al TDE amb un estri i un diàleg de configuració compatible només amb TDE 3.5. +Comment[da]=Genererer et simpelt TDE-program med en kontrol og en indstillingsdialog der kun er kompatibelt med TDE 3.5 +Comment[de]=Erstellt eine einfache TDE-Anwendung für TDE 3.5 mit einem Widget und einem Einstellungsdialog. +Comment[el]=Δημιουργεί μια απλή εφαρμογή TDE με ένα γραφικό συστατικό, ένα διάλογο ρύθμισης συμβατό μόνο με το TDE 3.5 +Comment[en_GB]=Generates a simple TDE application with one widget and a configuration dialogue compatible with TDE 3.5 only +Comment[es]=Genera una sencilla aplicación para TDE con un widget y un diálogo de configuración compatible solo con TDE 3.5 +Comment[et]=Lihtsa TDE rakenduse loomine ühe vidina ja vaid TDE 3.5-ga ühilduva seadistustedialoogiga. +Comment[fr]=Génère une application TDE simple comprenant un seul élément graphique et une boîte de dialogue de configuration compatible avec TDE 3.5 uniquement +Comment[hu]=Létrehoz egy egyszerű TDE-alkalmazást egy grafikus elemmel és egy beállítóablakkal, csak a TDE 3.5-tel kompatibilis +Comment[it]=Genera una semplice applicazione TDE con un elemento grafico e una finestra di configurazione compatibile solo con TDE 3.5 +Comment[ja]=一つのウィジェットと設定ダイアログを含む簡単な TDE アプリケーションを作成します (TDE 3.5 用) +Comment[nds]=Stellt en eenfach TDE-Programm mit een Element un en Instelldialoog op, de bloots mit TDE 3.5 kompatibel is. +Comment[nl]=Genereert een eenvoudige TDE-toepassing met één widget en een configuratiedialoog die alleen met TDE 3.5 compatible is +Comment[pl]=Generuje prosty program TDE z jednym widżetem i oknem konfiguracyjnym zgodnym z TDE 3.5 +Comment[pt]=Gera uma aplicação simples do TDE com uma janela principal e outra para configuração, apenas para o TDE 3.5 +Comment[pt_BR]=Gera uma aplicação simples do TDE com uma janela principal e outra para configuração, apenas para o TDE 3.5 +Comment[ru]=Создание простого приложения TDE с одним виджетом и диалогом конфигурации, совместимое только с TDE 3.5. +Comment[sk]=Vygeneruje jednoduchú TDE aplikáciu s jedným oknom a konfiguračným dialógom kompatibilnú len s TDE 3.5 +Comment[sr]=Прави једноставан TDE програм са једном контролом и дијалогом за подешавање, компатибилан само са TDE-ом 3.5 +Comment[sr@Latn]=Pravi jednostavan TDE program sa jednom kontrolom i dijalogom za podešavanje, kompatibilan samo sa TDE-om 3.5 +Comment[sv]=Skapar ett enkelt TDE-program med en grafisk komponent och en inställningsdialogruta, som bara fungerar med TDE 3.5 +Comment[zh_TW]=產生一個簡單的 TDE 3.5 上的應用程式,內含一個元件與一個設定對話框。 +FileTemplates=h,CStyle,cpp,CStyle +ShowFilesAfterGeneration=%{dest}/src/%{APPNAMELC}.cpp,%{dest}/README +Archive=tdeconfig35.tar.gz + +[ADMIN] +Type=include +File=%{tdevelop}/template-common/admin.kdevtemplate + +[GNU] +Type=include +File=%{tdevelop}/template-common/gnu.kdevtemplate + +[MKDIR_DOCBOOK1] +Type=mkdir +Dir=%{dest}/doc + +[MKDIR_DOCBOOK2] +Type=mkdir +Dir=%{dest}/doc/en + +[FILE1] +Type=install +Source=%{tdevelop}/template-common/kde-doc-Makefile.am +Dest=%{dest}/doc/Makefile.am + +[FILE2] +Type=install +Source=%{tdevelop}/template-common/kde-doc-en-Makefile.am +Dest=%{dest}/doc/en/Makefile.am + +[FILE3] +Type=install +EscapeXML=true +Source=%{tdevelop}/template-common/kde-index.docbook +Dest=%{dest}/doc/en/index.docbook + +[FILE4] +Type=install +EscapeXML=true +Source=%{src}/app.tdevelop +Dest=%{dest}/%{APPNAMELC}.tdevelop + +[FILE5] +Type=install +Source=%{tdevelop}/template-common/kde-Makefile.am +Dest=%{dest}/Makefile.am + +[FILE6] +Type=install +Source=%{tdevelop}/template-common/kde-Makefile.cvs +Dest=%{dest}/Makefile.cvs + +[FILE7] +Type=install +Source=%{tdevelop}/template-common/tde-configure.in.in +Dest=%{dest}/configure.in.in + +[MkDir3] +Type=mkdir +Dir=%{dest}/src + +[FILE8] +Type=install +Source=%{tdevelop}/template-common/tde-app.desktop +Dest=%{dest}/src/%{APPNAMELC}.desktop + +[FILE9] +Type=install +Source=%{tdevelop}/template-common/kde-app.lsm +Dest=%{dest}/src/%{APPNAMELC}.lsm + +[FILE10] +Type=install +Source=%{tdevelop}/template-common/hi16-app-app.png +Dest=%{dest}/src/hi16-app-%{APPNAMELC}.png + +[FILE11] +Type=install +Source=%{tdevelop}/template-common/hi32-app-app.png +Dest=%{dest}/src/hi32-app-%{APPNAMELC}.png + +[MkDir4] +Type=mkdir +Dir=%{dest}/po + +[FILE12] +Type=install +Source=%{tdevelop}/template-common/kde-po-Makefile.am +Dest=%{dest}/po/Makefile.am + +[FILE13] +Type=install +Source=%{src}/subdirs +Dest=%{dest}/subdirs + +[FILE14] +Type=install +Source=%{src}/src-Makefile.am +Dest=%{dest}/src/Makefile.am + +[FILE15] +Type=install +Source=%{src}/app.cpp +Dest=%{dest}/src/%{APPNAMELC}.cpp + +[FILE16] +Type=install +Source=%{src}/app.h +Dest=%{dest}/src/%{APPNAMELC}.h + +[FILE17] +Type=install +EscapeXML=true +Source=%{src}/appview_base.ui +Dest=%{dest}/src/%{APPNAMELC}view_base.ui + +[FILE18] +Type=install +Source=%{src}/appview.cpp +Dest=%{dest}/src/%{APPNAMELC}view.cpp + +[FILE19] +Type=install +Source=%{src}/appview.h +Dest=%{dest}/src/%{APPNAMELC}view.h + +[FILE20] +Type=install +EscapeXML=true +Source=%{src}/prefs-base.ui +Dest=%{dest}/src/prefs-base.ui + +[FILE21] +Type=install +Source=%{src}/prefs.cpp +Dest=%{dest}/src/prefs.cpp + +[FILE22] +Type=install +Source=%{src}/prefs.h +Dest=%{dest}/src/prefs.h + +[FILE23] +Type=install +Source=%{src}/main.cpp +Dest=%{dest}/src/main.cpp + +[FILE24] +Type=install +EscapeXML=true +Source=%{src}/appui.rc +Dest=%{dest}/src/%{APPNAMELC}ui.rc + +[FILE25] +Type=install +Source=%{src}/README +Dest=%{dest}/README + +[FILE26] +Type=install +Source=%{src}/app.kcfg +Dest=%{dest}/src/%{APPNAMELC}.kcfg + +[FILE27] +Type=install +Source=%{src}/settings.kcfgc +Dest=%{dest}/src/settings.kcfgc + +[FILE28] +Type=install +Source=%{src}/src-configure.in.in +Dest=%{dest}/configure.in.in + +[MSG] +Type=message +Comment=A TDE 3.5 TDEConfig XT application was created in %{dest} +Comment[ca]=Una aplicació TDEConfig XT per al TDE ha estat creada en %{dest} +Comment[da]=Et TDE 3.5 TDEConfig XT-program blev oprettet i %{dest} +Comment[de]=Eine TDEConfig-XT-Anwendung für TDE 3.5 wurde in %{dest} erstellt. +Comment[el]=Μια εφαρμογή TDEConfig XT του TDE 3.5 δημιουργήθηκε στο %{dest} +Comment[es]=Una aplicación TDEConfig XT para TDE 3.5 ha sido creada en %{dest} +Comment[et]=TDE 3.5 TDEConfig XT rakendus loodi asukohta %{dest} +Comment[fr]=Une application TDEConfig XT pour TDE 3.5 a été créée dans %{dest} +Comment[hu]=Létrejött egy TDEConfig XT-alapú TDE 3.5-alkalmazás itt: %{dest} +Comment[it]=È stata creata un'applicazione TDEConfig XT per TDE 3.5 in %{dest} +Comment[ja]=TDE 3.5 用 TDEConfig XT アプリケーションを %{dest} に作成しました +Comment[nds]=In %{dest} wöör en TDEConfig-XT-Programm för TDE 3.5 opstellt +Comment[nl]=Een TDE 3.5 TDEConfig XT-toepassing is aangemaakt in %{dest} +Comment[pl]=Program TDEConfig XT dla TDE 3.5 został utworzony w %{dest} +Comment[pt]=Foi criada uma aplicação do TDEConfig XT para o TDE 3.5 em %{dest} +Comment[pt_BR]=Foi criada uma aplicação do TDEConfig XT para o TDE 3.5 em %{dest} +Comment[ru]=Приложение TDE с TDEConfig XT создано в %{dest} +Comment[sk]=TDEConfig XT pre TDE 3.5 bola vytvorená v %{dest} +Comment[sr]=TDEConfig XT програм за TDE 3.5 направљен је у %{dest} +Comment[sr@Latn]=TDEConfig XT program za TDE 3.5 napravljen je u %{dest} +Comment[sv]=Ett TDE 3.5 TDEConfig XT-program skapades i %{dest} +Comment[zh_TW]=一個 TDE 3.5 上的 TDEConfig XT 應用程式已建立於 %{dest} diff --git a/languages/cpp/app_templates/tdeconfig35/tdeconfig35.png b/languages/cpp/app_templates/tdeconfig35/tdeconfig35.png new file mode 100644 index 00000000..a3866883 Binary files /dev/null and b/languages/cpp/app_templates/tdeconfig35/tdeconfig35.png differ diff --git a/languages/cpp/app_templates/tdefileplugin/.kdev_ignore b/languages/cpp/app_templates/tdefileplugin/.kdev_ignore new file mode 100644 index 00000000..e69de29b diff --git a/languages/cpp/app_templates/tdefileplugin/CMakeLists.txt b/languages/cpp/app_templates/tdefileplugin/CMakeLists.txt new file mode 100644 index 00000000..5462742c --- /dev/null +++ b/languages/cpp/app_templates/tdefileplugin/CMakeLists.txt @@ -0,0 +1,27 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_custom_target( tdefileplugin.tar.gz ALL + COMMAND tar zcf tdefileplugin.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} + README.devel tdefile_plugin.cpp tdefile_plugin.desktop + tdefile_plugin.h plugin.tdevelop tdefileplugin tdefileplugin.png + src-Makefile.am subdirs +) + + +install( FILES + ${CMAKE_CURRENT_BINARY_DIR}/tdefileplugin.tar.gz tdefileplugin.png + DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard ) + + +install( FILES + tdefileplugin.kdevtemplate + DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates ) diff --git a/languages/cpp/app_templates/tdefileplugin/Makefile.am b/languages/cpp/app_templates/tdefileplugin/Makefile.am new file mode 100644 index 00000000..019d2d7c --- /dev/null +++ b/languages/cpp/app_templates/tdefileplugin/Makefile.am @@ -0,0 +1,18 @@ +dataFiles = README.devel tdefile_plugin.cpp tdefile_plugin.desktop \ + tdefile_plugin.h plugin.tdevelop tdefileplugin tdefileplugin.png \ + src-Makefile.am subdirs +templateName = tdefileplugin + +### no need to change below: +template_DATA = $(templateName).kdevtemplate +templatedir = ${appwizarddatadir}/templates + +appwizarddatadir = ${kde_datadir}/kdevappwizard +$(templateName).tar.gz: ${dataFiles} + $(TAR) -cf $(templateName).tar -C $(srcdir) ${dataFiles} + $(GZIP_COMMAND) -f9 $(templateName).tar + +archivedir = ${appwizarddatadir} +archive_DATA = $(templateName).tar.gz ${templateName}.png + +CLEANFILES = *.tar.gz \ No newline at end of file diff --git a/languages/cpp/app_templates/tdefileplugin/README.devel b/languages/cpp/app_templates/tdefileplugin/README.devel new file mode 100644 index 00000000..4417fa74 --- /dev/null +++ b/languages/cpp/app_templates/tdefileplugin/README.devel @@ -0,0 +1,9 @@ +@todo: + +1. add information to src/tdefile_%{APPNAMELC}.desktop +MimeType= +PreferredGroups= +PreferredItems= + +2. plugin +Note: Please change to "Optimized" compilation if you want to make a release. diff --git a/languages/cpp/app_templates/tdefileplugin/plugin.tdevelop b/languages/cpp/app_templates/tdefileplugin/plugin.tdevelop new file mode 100644 index 00000000..f09030c1 --- /dev/null +++ b/languages/cpp/app_templates/tdefileplugin/plugin.tdevelop @@ -0,0 +1,114 @@ + + + + %{AUTHOR} + %{EMAIL} + %{VERSION} + KDevTDEAutoProject + C++ + + C++ + Code + Qt + TDE + + + + + 3 + true + 3 + EmbeddedKDevDesigner + + + + + + src/tdefile_%{APPNAMELC}.la + debug + + + + optimized + kdevgccoptions + kdevgppoptions + kdevg77options + -O2 -g0 + + + --enable-debug=full + debug + kdevgccoptions + kdevgppoptions + kdevg77options + -O0 -g3 + + + + + + + + + + + + + + + ada + ada_bugs_gcc + bash + bash_bugs + clanlib + fortran_bugs_gcc + gnome1 + gnustep + gtk + gtk_bugs + haskell + haskell_bugs_ghc + java_bugs_gcc + java_bugs_sun + opengl + pascal_bugs_fp + php + php_bugs + perl + perl_bugs + python + python_bugs + ruby + ruby_bugs + sdl + stl + sw + w3c-dom-level2-html + w3c-svg + w3c-uaag10 + wxwidgets_bugs + + + qmake User Guide + + + + + libtool + + + + + + + + + + + + + Doxygen Documentation Collection + %{APPNAMELC}.tag + + + diff --git a/languages/cpp/app_templates/tdefileplugin/src-Makefile.am b/languages/cpp/app_templates/tdefileplugin/src-Makefile.am new file mode 100644 index 00000000..c96817d5 --- /dev/null +++ b/languages/cpp/app_templates/tdefileplugin/src-Makefile.am @@ -0,0 +1,22 @@ +## Makefile.am for folder file meta info plugin + +INCLUDES = $(all_includes) + +# these are the headers for your project +noinst_HEADERS = tdefile_%{APPNAMELC}.h + +kde_module_LTLIBRARIES = tdefile_%{APPNAMELC}.la + +tdefile_%{APPNAMELC}_la_SOURCES = tdefile_%{APPNAMELC}.cpp +tdefile_%{APPNAMELC}_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN) $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEUI) $(LIB_KPARTS) $(LIB_KIO) +tdefile_%{APPNAMELC}_la_LIBADD = $(LIB_KIO) + +# let automoc handle all of the meta source files ((moc)) +METASOURCES = AUTO + +services_DATA = tdefile_%{APPNAMELC}.desktop +servicesdir = $(kde_servicesdir) + +messages: rc.cpp + $(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp + $(XGETTEXT) *.cpp -o $(podir)/tdefile_%{APPNAMELC}.pot diff --git a/languages/cpp/app_templates/tdefileplugin/subdirs b/languages/cpp/app_templates/tdefileplugin/subdirs new file mode 100644 index 00000000..0e678106 --- /dev/null +++ b/languages/cpp/app_templates/tdefileplugin/subdirs @@ -0,0 +1,3 @@ +doc +po +src diff --git a/languages/cpp/app_templates/tdefileplugin/tdefile_plugin.cpp b/languages/cpp/app_templates/tdefileplugin/tdefile_plugin.cpp new file mode 100644 index 00000000..1d590f97 --- /dev/null +++ b/languages/cpp/app_templates/tdefileplugin/tdefile_plugin.cpp @@ -0,0 +1,55 @@ +%{CPP_TEMPLATE} + +#include +#include "tdefile_%{APPNAMELC}.h" + +#include +//#include + +//#include +//#include + +typedef KGenericFactory<%{APPNAME}Plugin> %{APPNAME}Factory; + +K_EXPORT_COMPONENT_FACTORY(tdefile_%{APPNAME}, %{APPNAME}Factory( "tdefile_%{APPNAMELC}" )) + +%{APPNAME}Plugin::%{APPNAME}Plugin(TQObject *parent, const char *name, + const TQStringList &args) + : KFilePlugin(parent, name, args) +{ + //add the mimetype here - example: + //KFileMimeTypeInfo* info = addMimeTypeInfo( "text/html" ); + KFileMimeTypeInfo* info = addMimeTypeInfo( "text/html" ); + + // our new group + KFileMimeTypeInfo::GroupInfo* group = 0L; + group = addGroupInfo(info, "%{APPNAME}Info", i18n("%{APPNAME} Information")); + + KFileMimeTypeInfo::ItemInfo* item; + + // our new items in the group + item = addItemInfo(group, "Items", i18n("Items"), TQVariant::Int); + item = addItemInfo(group, "Size", i18n("Size"), TQVariant::Int); + setUnit(item, KFileMimeTypeInfo::KiloBytes); + + // strings are possible, too: + //addItemInfo(group, "Text", i18n("Document Type"), TQVariant::String); +} + +bool %{APPNAME}Plugin::readInfo( KFileMetaInfo& info, uint /*what*/) +{ + KFileMetaInfoGroup group = appendGroup(info, "%{APPNAME}Info"); + + // add your "calculations" here + // if something goes wrong, "return false;" + + + // and finally display it! + appendItem(group, "Items", 100); + appendItem(group, "Size", int(5000/1024)); + + return true; +} + +#include "tdefile_%{APPNAMELC}.moc" + diff --git a/languages/cpp/app_templates/tdefileplugin/tdefile_plugin.desktop b/languages/cpp/app_templates/tdefileplugin/tdefile_plugin.desktop new file mode 100644 index 00000000..42f19e60 --- /dev/null +++ b/languages/cpp/app_templates/tdefileplugin/tdefile_plugin.desktop @@ -0,0 +1,39 @@ +[Desktop Entry] +Type=Service +Name=%{APPNAME} Info +Name[br]=Titouriñ diwar-benn %{APPNAME} +Name[ca]=Informació per a %{APPNAME} +Name[da]=%{APPNAME} info +Name[el]=Πληροφορίες %{APPNAME} +Name[es]=Información de %{APPNAME} +Name[et]=%{APPNAME} info +Name[eu]=%{APPNAME} informazioa +Name[fa]=اطلاعات %{APPNAME} +Name[fr]=Informations sur %{APPNAME} +Name[ga]=Eolas faoi %{APPNAME} +Name[gl]=Información de %{APPNAME} +Name[hu]=%{APPNAME} jellemzői +Name[it]=Informazioni su %{APPNAME} +Name[nds]=%{APPNAME}-Info +Name[ne]=%{APPNAME} सूचना +Name[pl]=Informacje dla %{APPNAME} +Name[pt]=Informação do %{APPNAME} +Name[pt_BR]=Informações de %{APPNAME} +Name[ru]=Информация о %{APPNAME} +Name[sk]=%{APPNAME} info +Name[sl]=Informacije o %{APPNAME} +Name[sr]=Информације за %{APPNAME} +Name[sr@Latn]=Informacije za %{APPNAME} +Name[sv]=%{APPNAME} information +Name[ta]=%{APPNAME} தகவல் +Name[tg]=Маълумот дар бораи %{APPNAME} +Name[zh_CN]=%{APPNAME}的信息 +Name[zh_TW]=%{APPNAME} 資訊 +ServiceTypes=KFilePlugin +X-TDE-Library=tdefile_%{APPNAMELC} +# change MimeType here! (example: inode/directory) +MimeType= +# change PreferredGroups here! (example: FolderInfo) +PreferredGroups= +# change PreferredItems here! (example: Items;Size) +PreferredItems= diff --git a/languages/cpp/app_templates/tdefileplugin/tdefile_plugin.h b/languages/cpp/app_templates/tdefileplugin/tdefile_plugin.h new file mode 100644 index 00000000..96fcaf0d --- /dev/null +++ b/languages/cpp/app_templates/tdefileplugin/tdefile_plugin.h @@ -0,0 +1,25 @@ +%{H_TEMPLATE} + +#ifndef __KFILE_%{APPNAMEUC}_H__ +#define __KFILE_%{APPNAMEUC}_H__ + +/** + * Note: For further information look into <$TDEDIR/include/tdefilemetainfo.h> + */ +#include + +class TQStringList; + +class %{APPNAME}Plugin: public KFilePlugin +{ + Q_OBJECT + + +public: + %{APPNAME}Plugin( TQObject *parent, const char *name, const TQStringList& args ); + + virtual bool readInfo( KFileMetaInfo& info, uint what); +}; + +#endif // __KFILE_%{APPNAMEUC}_H__ + diff --git a/languages/cpp/app_templates/tdefileplugin/tdefileplugin b/languages/cpp/app_templates/tdefileplugin/tdefileplugin new file mode 100644 index 00000000..b902179d --- /dev/null +++ b/languages/cpp/app_templates/tdefileplugin/tdefileplugin @@ -0,0 +1,8 @@ +# TDE Config File +[General] +Name=KFile plugin +Icon=tdefileplugin.png +Category=C++/TDE +Comment=Generates a KFile plugin for konqueror to display meta information. +FileTemplates=h,CStyle,cpp,CStyle +ShowFilesAfterGeneration=README.devel,src/tdefile_APPNAMELC.cpp diff --git a/languages/cpp/app_templates/tdefileplugin/tdefileplugin.kdevtemplate b/languages/cpp/app_templates/tdefileplugin/tdefileplugin.kdevtemplate new file mode 100644 index 00000000..52afe804 --- /dev/null +++ b/languages/cpp/app_templates/tdefileplugin/tdefileplugin.kdevtemplate @@ -0,0 +1,166 @@ +# TDE Config File +[General] +Name=KFile plugin +Name[br]=Lugent KFile +Name[ca]=Connector KFile +Name[de]=KFile-Modul +Name[el]=Πρόσθετο KFile +Name[es]=Complemento para KFile +Name[et]=KFile'i plugin +Name[eu]=KFile plugin-a +Name[fa]=وصلۀ KFile +Name[fr]=Module externe KFile +Name[ga]=Breiseán KFile +Name[gl]=Extensión para KFile +Name[hu]=KFile-bővítőmodul +Name[it]=Plugin KFile +Name[ja]=KFile プラグイン +Name[nds]=KFile-Moduul +Name[ne]=केडीई फाइल प्लगइन +Name[nl]=KFile-plugin +Name[pl]=Wtyczka do KFile +Name[pt]='Plugin' do KFile +Name[pt_BR]='Plugin' do KFile +Name[ru]=Модуль KFile +Name[sk]=KFile modul +Name[sl]=Vstavek za KFile +Name[sr]=Прикључак за KFile +Name[sr@Latn]=Priključak za KFile +Name[sv]=KFile-insticksprogram +Name[tr]=KFile Eklentisi +Name[zh_CN]=KFile 插件 +Name[zh_TW]=KFile 外掛程式 +Icon=tdefileplugin.png +Category=C++/TDE +Comment=Generates a KFile plugin for konqueror to display meta information. +Comment[ca]=Genera un connector KFile per al konqueror per a mostrar meta informació. +Comment[da]=Genererer et KFile-plugin for konqueror til at vise meta-information. +Comment[de]=Erstellt ein KFile-Modul für Konqueror zur Anzeige von Meta-Daten. +Comment[el]=Δημιουργεί ένα πρόσθετο KFile για την εμφάνιση μεταπληροφοριών στον konqueror. +Comment[es]=Genera un complemento de KFile para Konqueror que muestra metainformación. +Comment[et]=Konquerori KFile'i plugina loomine, mis näitab metainfot. +Comment[eu]=Meta-informazioa bistaratzeko Konqueror-en KFile plugin bat sortzen du. +Comment[fa]=یک وصلۀ KFile برای konqueror جهت نمایش فرااطلاعات تولید می‌کند. +Comment[fr]=Génère un module externe KFile pour que Konqueror affiche des méta-informations. +Comment[gl]=Xera unha extensión para KFile para permitir a konqueror mostrar metainformación. +Comment[hu]=Létrehoz egy KFile-bővítőmodult, mellyel a Konquerorban dokumentumjellemzőket lehet megjeleníteni. +Comment[it]=Genera un plugin KFile per Konqueror per mostrare meta informazioni. +Comment[nds]=Stellt en KFile-Moduul för Konqueror op, dat Metadaten wiest. +Comment[ne]=मेटा सूचना देखाउन कन्क्वेररका लागि केडीई फाइल प्लगइन उत्पन्न गर्दछ । +Comment[nl]=Genereert een KFile-plugin voor konqueror voor het weergeven van meta-informatie. +Comment[pl]=Generuje wtyczkę KFile dla Konquerora do wyświetlania informacji meta. +Comment[pt]=Gera um 'plugin' do KFile para o Konqueror poder mostrar meta-informações. +Comment[pt_BR]=Gera um 'plugin' do KFile para o Konqueror poder mostrar meta-informações. +Comment[ru]=Создание модуля KFile для показа метаданных в Konqueror. +Comment[sk]=Vygeneruje KFile modul pre konqueror na zobrazenie meta informácií. +Comment[sr]=Прави прикључак за KFile за приказ метаинформација у Konqueror-у. +Comment[sr@Latn]=Pravi priključak za KFile za prikaz metainformacija u Konqueror-u. +Comment[sv]=Skapar ett KFile-insticksprogram till Konqueror för att visa metainformation. +Comment[tr]=Meta bilgisini göstermesi için Konqueror'a bir KFile eklentisi yaratır. +Comment[zh_CN]=生成一个可显示元信息的 Konqueror KFile 插件。 +Comment[zh_TW]=產生一個 Konqueror 的 KFile 外掛程式,顯示中繼資訊 +FileTemplates=h,CStyle,cpp,CStyle +ShowFilesAfterGeneration=${dest}/README.devel,%{dest}/src/tdefile_%{APPNAMELC}.cpp +Archive=tdefileplugin.tar.gz + +[ADMIN] +Type=include +File=%{tdevelop}/template-common/admin.kdevtemplate + +[GNU] +Type=include +File=%{tdevelop}/template-common/gnu.kdevtemplate + +[MKDIR_DOCBOOK1] +Type=mkdir +Dir=%{dest}/doc + +[MKDIR_DOCBOOK2] +Type=mkdir +Dir=%{dest}/doc/en + +[FILE1] +Type=install +Source=%{tdevelop}/template-common/kde-doc-Makefile.am +Dest=%{dest}/doc/Makefile.am + +[FILE2] +Type=install +Source=%{tdevelop}/template-common/kde-doc-en-Makefile.am +Dest=%{dest}/doc/en/Makefile.am + +[FILE3] +Type=install +EscapeXML=true +Source=%{tdevelop}/template-common/kde-index.docbook +Dest=%{dest}/doc/en/index.docbook + +[FILE4] +Type=install +EscapeXML=true +Source=%{src}/plugin.tdevelop +Dest=%{dest}/%{APPNAMELC}.tdevelop + +[FILE5] +Type=install +Source=%{tdevelop}/template-common/kde-Makefile.cvs +Dest=%{dest}/Makefile.cvs + +[FILE6] +Type=install +Source=%{tdevelop}/template-common/kde-Makefile.am +Dest=%{dest}/Makefile.am + +[FILE7] +Type=install +Source=%{tdevelop}/template-common/tde-configure.in.in +Dest=%{dest}/configure.in.in + +[MkDir3] +Type=mkdir +Dir=%{dest}/src + +[FILE8] +Type=install +Source=%{tdevelop}/template-common/kde-app.lsm +Dest=%{dest}/src/%{APPNAMELC}.lsm + +[MkDir4] +Type=mkdir +Dir=%{dest}/po + +[FILE9] +Type=install +Source=%{tdevelop}/template-common/kde-po-Makefile.am +Dest=%{dest}/po/Makefile.am + +[FILE10] +Type=install +Source=%{src}/subdirs +Dest=%{dest}/subdirs + +[FILE11] +Type=install +Source=%{src}/src-Makefile.am +Dest=%{dest}/src/Makefile.am + +[FILE12] +Type=install +Source=%{src}/tdefile_plugin.desktop +Dest=%{dest}/src/tdefile_%{APPNAMELC}.desktop + +[FILE13] +Type=install +Source=%{src}/tdefile_plugin.cpp +Dest=%{dest}/src/tdefile_%{APPNAMELC}.cpp + +[FILE14] +Type=install +Source=%{src}/tdefile_plugin.h +Dest=%{dest}/src/tdefile_%{APPNAMELC}.h + +[FILE15] +Type=install +Source=%{src}/README.devel +Dest=%{dest}/README.devel + diff --git a/languages/cpp/app_templates/tdefileplugin/tdefileplugin.png b/languages/cpp/app_templates/tdefileplugin/tdefileplugin.png new file mode 100644 index 00000000..d2a56245 Binary files /dev/null and b/languages/cpp/app_templates/tdefileplugin/tdefileplugin.png differ diff --git a/languages/cpp/app_templates/tdeioslave/.kdev_ignore b/languages/cpp/app_templates/tdeioslave/.kdev_ignore new file mode 100644 index 00000000..e69de29b diff --git a/languages/cpp/app_templates/tdeioslave/CMakeLists.txt b/languages/cpp/app_templates/tdeioslave/CMakeLists.txt new file mode 100644 index 00000000..584bdc19 --- /dev/null +++ b/languages/cpp/app_templates/tdeioslave/CMakeLists.txt @@ -0,0 +1,26 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_custom_target( tdeioslave.tar.gz ALL + COMMAND tar zcf tdeioslave.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} + slave.cpp slave.h slave.protocol slave.tdevelop + src-Makefile.am tdeioslave.png subdirs +) + + +install( FILES + ${CMAKE_CURRENT_BINARY_DIR}/tdeioslave.tar.gz tdeioslave.png + DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard ) + + +install( FILES + tdeioslave.kdevtemplate + DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates ) diff --git a/languages/cpp/app_templates/tdeioslave/Makefile.am b/languages/cpp/app_templates/tdeioslave/Makefile.am new file mode 100644 index 00000000..bee7ddb6 --- /dev/null +++ b/languages/cpp/app_templates/tdeioslave/Makefile.am @@ -0,0 +1,17 @@ +dataFiles = slave.cpp slave.h slave.protocol slave.tdevelop \ + src-Makefile.am tdeioslave.png subdirs +templateName = tdeioslave + +### no need to change below: +template_DATA = $(templateName).kdevtemplate +templatedir = ${appwizarddatadir}/templates + +appwizarddatadir = ${kde_datadir}/kdevappwizard +$(templateName).tar.gz: ${dataFiles} + $(TAR) -cf $(templateName).tar -C $(srcdir) ${dataFiles} + $(GZIP_COMMAND) -f9 $(templateName).tar + +archivedir = ${appwizarddatadir} +archive_DATA = $(templateName).tar.gz ${templateName}.png + +CLEANFILES = *.tar.gz \ No newline at end of file diff --git a/languages/cpp/app_templates/tdeioslave/slave.cpp b/languages/cpp/app_templates/tdeioslave/slave.cpp new file mode 100644 index 00000000..3c780e7f --- /dev/null +++ b/languages/cpp/app_templates/tdeioslave/slave.cpp @@ -0,0 +1,88 @@ + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "%{APPNAMELC}.h" + +using namespace TDEIO; + + +kio_%{APPNAMELC}Protocol::kio_%{APPNAMELC}Protocol(const TQCString &pool_socket, const TQCString &app_socket) + : SlaveBase("kio_%{APPNAMELC}", pool_socket, app_socket) +{ + kdDebug() << "kio_%{APPNAMELC}Protocol::kio_%{APPNAMELC}Protocol()" << endl; +} + + +kio_%{APPNAMELC}Protocol::~kio_%{APPNAMELC}Protocol() +{ + kdDebug() << "kio_%{APPNAMELC}Protocol::~kio_%{APPNAMELC}Protocol()" << endl; +} + + +void kio_%{APPNAMELC}Protocol::get(const KURL& url ) +{ + kdDebug() << "kio_%{APPNAMELC}::get(const KURL& url)" << endl ; + + kdDebug() << "Seconds: " << url.query() << endl; + TQString remoteServer = url.host(); + int remotePort = url.port(); + kdDebug() << "myURL: " << url.prettyURL() << endl; + + infoMessage(i18n("Looking for %1...").arg( remoteServer ) ); + // Send the mimeType as soon as it is known + mimeType("text/plain"); + // Send the data + TQString theData = "This is a test of kio_%{APPNAMELC}"; + data(TQCString(theData.local8Bit())); + data(TQByteArray()); // empty array means we're done sending the data + finished(); +} + + +void kio_%{APPNAMELC}Protocol::mimetype(const KURL & /*url*/) +{ + mimeType("text/plain"); + finished(); +} + + +extern "C" +{ + int kdemain(int argc, char **argv) + { + TDEInstance instance( "kio_%{APPNAMELC}" ); + + kdDebug(7101) << "*** Starting kio_%{APPNAMELC} " << endl; + + if (argc != 4) { + kdDebug(7101) << "Usage: kio_%{APPNAMELC} protocol domain-socket1 domain-socket2" << endl; + exit(-1); + } + + kio_%{APPNAMELC}Protocol slave(argv[2], argv[3]); + slave.dispatchLoop(); + + kdDebug(7101) << "*** kio_%{APPNAMELC} Done" << endl; + return 0; + } +} diff --git a/languages/cpp/app_templates/tdeioslave/slave.h b/languages/cpp/app_templates/tdeioslave/slave.h new file mode 100644 index 00000000..672e6121 --- /dev/null +++ b/languages/cpp/app_templates/tdeioslave/slave.h @@ -0,0 +1,23 @@ + +#ifndef _%{APPNAMELC}_H_ +#define _%{APPNAMELC}_H_ + +#include +#include + +#include +#include +#include + +class TQCString; + +class kio_%{APPNAMELC}Protocol : public TDEIO::SlaveBase +{ +public: + kio_%{APPNAMELC}Protocol(const TQCString &pool_socket, const TQCString &app_socket); + virtual ~kio_%{APPNAMELC}Protocol(); + virtual void mimetype(const KURL& url); + virtual void get(const KURL& url); +}; + +#endif diff --git a/languages/cpp/app_templates/tdeioslave/slave.protocol b/languages/cpp/app_templates/tdeioslave/slave.protocol new file mode 100644 index 00000000..5a1f6445 --- /dev/null +++ b/languages/cpp/app_templates/tdeioslave/slave.protocol @@ -0,0 +1,39 @@ +[Protocol] +exec=kio_%{APPNAMELC} +protocol=%{APPNAMELC} +input=none +output=stream +reading=true +defaultMimetype=text/plain +Icon=remote +Description=A tdeioslave for %{APPNAMELC} +Description[br]=Ur c'hioslave evit %{APPNAMELC} +Description[ca]=Un tdeioslave per a %{APPNAMELC} +Description[da]=En tdeioslave til %{APPNAMELC} +Description[de]=Ein Ein-/Ausgabemodul für %{APPNAMELC} +Description[el]=Ένα υπηρέτης kio για %{APPNAMELC} +Description[es]=Un tdeioslave para %{APPNAMELC} +Description[et]=%{APPNAMELC} IO-moodul +Description[eu]=tdeioslave bat honentzat: %{APPNAMELC} +Description[fa]=یک tdeioslave برای %{APPNAMELC} +Description[fr]=Un esclave d'E/S (tdeioslave) pour %{APPNAMELC} +Description[ga]=tdeioslave le haghaidh %{APPNAMELC} +Description[gl]=Un tdeioslave para %{APPNAMELC} +Description[hu]=%{APPNAMELC}-támogató KIOslave +Description[it]=Un tdeioslave per %{APPNAMELC} +Description[ja]=%{APPNAMELC} のための tdeioslave +Description[nds]=En In-/Utgaavmoduul för %{APPNAMELC} +Description[ne]= %{APPNAMELC} का लागि किवस्लेभ +Description[nl]=Kioslave voor %{APPNAMELC} +Description[pl]=tdeioslave dla %{APPNAMELC} +Description[pt]=Um 'tdeioslave' para %{APPNAMELC} +Description[pt_BR]=Um tdeioslave para %{APPNAMELC} +Description[ru]=Канал tdeioslave для %{APPNAMELC} +Description[sk]=tdeioslave pre %{APPNAMELC} +Description[sl]=tdeioslave za %{APPNAMELC} +Description[sr]=KIOSlave за %{APPNAMELC} +Description[sr@Latn]=KIOSlave za %{APPNAMELC} +Description[sv]=En I/O-slav för %{APPNAMELC} +Description[tr]=%{APPNAMELC} için bir tdeioslave +Description[zh_CN]=%{APPNAMELC} 的 tdeioslave +Description[zh_TW]=%{APPNAMELC} 的 tdeioslave diff --git a/languages/cpp/app_templates/tdeioslave/slave.tdevelop b/languages/cpp/app_templates/tdeioslave/slave.tdevelop new file mode 100644 index 00000000..cb257385 --- /dev/null +++ b/languages/cpp/app_templates/tdeioslave/slave.tdevelop @@ -0,0 +1,113 @@ + + + + %{AUTHOR} + %{EMAIL} + %{VERSION} + KDevTDEAutoProject + C++ + + C++ + Code + Qt + TDE + tdeioslave + + + + + 3 + true + 3 + EmbeddedKDevDesigner + + + + + + src/lib%{APPNAMELC}.la + debug + + + + optimized + kdevgccoptions + kdevgppoptions + kdevg77options + -O2 -g0 + + + --enable-debug=full + debug + kdevgccoptions + kdevgppoptions + kdevg77options + -O0 -g3 + + + + + + + + + + + + + bash + bash_bugs + clanlib + fortran_bugs_gcc + gnome1 + gnustep + gtk + gtk_bugs + haskell + haskell_bugs_ghc + java_bugs_gcc + java_bugs_sun + opengl + pascal_bugs_fp + php + php_bugs + perl + perl_bugs + python + python_bugs + ruby + ruby_bugs + sdl + stl + sw + w3c-dom-level2-html + w3c-svg + w3c-uaag10 + wxwidgets_bugs + + + Guide to the Qt Translation Tools + Qt Assistant Manual + Qt Designer Manual + Qt Reference Documentation + + + + + libtool + + + + + + + + + + + + Doxygen Documentation Collection + %{APPNAMELC}.tag + + + diff --git a/languages/cpp/app_templates/tdeioslave/src-Makefile.am b/languages/cpp/app_templates/tdeioslave/src-Makefile.am new file mode 100644 index 00000000..b160d973 --- /dev/null +++ b/languages/cpp/app_templates/tdeioslave/src-Makefile.am @@ -0,0 +1,14 @@ +INCLUDES = $(all_includes) + +kde_module_LTLIBRARIES = kio_%{APPNAMELC}.la + +kio_%{APPNAMELC}_la_SOURCES = %{APPNAMELC}.cpp +kio_%{APPNAMELC}_la_LIBADD = -lkio +kio_%{APPNAMELC}_la_LDFLAGS = -module -avoid-version $(all_libraries) $(KDE_PLUGIN) $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEUI) $(LIB_KPARTS) + +protocol_DATA = %{APPNAMELC}.protocol +protocoldir = $(kde_servicesdir) + +messages: rc.cpp + $(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp + $(XGETTEXT) *.cpp -o $(podir)/tdeio_%{APPNAMELC}.pot diff --git a/languages/cpp/app_templates/tdeioslave/subdirs b/languages/cpp/app_templates/tdeioslave/subdirs new file mode 100644 index 00000000..0e678106 --- /dev/null +++ b/languages/cpp/app_templates/tdeioslave/subdirs @@ -0,0 +1,3 @@ +doc +po +src diff --git a/languages/cpp/app_templates/tdeioslave/tdeioslave.kdevtemplate b/languages/cpp/app_templates/tdeioslave/tdeioslave.kdevtemplate new file mode 100644 index 00000000..27279fd2 --- /dev/null +++ b/languages/cpp/app_templates/tdeioslave/tdeioslave.kdevtemplate @@ -0,0 +1,183 @@ +# TDE Config File +[General] +Name=KIO slave +Name[br]=Sklav KIO +Name[ca]=Esclau KIO +Name[da]=KIO-slave +Name[de]=Ein-/Ausgabemodul +Name[el]=Υπηρέτης KIO +Name[es]=Esclavo KIO +Name[et]=KIO-moodul +Name[eu]=KIO morroia +Name[fr]=Esclave KIO +Name[ga]=Sclábhaí KIO +Name[gl]=Escravo KIO +Name[hu]=TDE-protokoll (KIOslave) +Name[it]=Slave KIO +Name[nds]=In-/Utgaavmoduul +Name[ne]=KIO स्लेभ +Name[nl]=KIO-slave +Name[pt]=KIO Slave +Name[sk]=KIO otrok +Name[sv]=I/O-slav +Icon=tdeioslave.png +Category=C++/TDE +Comment=Generates a framework for an IO slave +Comment[ca]=Genera una infraestructura per a un esclau IO +Comment[da]=Genererer et skelet for en IO-slave +Comment[de]=Erstellt das Grundgerüst für ein Ein-/Ausgabemodul. +Comment[el]=Δημιουργεί ένα πλαίσιο για έναν υπηρέτη IO +Comment[es]=Genera una infraestructura para un esclavo de E/S +Comment[et]=IO-mooduli raamistiku loomine +Comment[eu]=IO morroi baterako lan-marko bat sortzen du +Comment[fa]=چارچوبی برای یک IO slave تولید می‌کند +Comment[fr]=Génère une infrastructure pour un esclave d'entrée / sortie +Comment[ga]=Cruthaíonn sé seo creatlach le haghaidh sclábhaí IO +Comment[gl]=Xera un contorno de traballo para un escravo IO +Comment[hu]=Létrehoz egy kiindulási keretprogramot KIOslave készítéséhez +Comment[it]=Genera l'infrastruttura per uno slave di I/O +Comment[ja]=IO slave のフレームワークを作成します +Comment[nds]=Stellt dat Rahmenwark för en In-/Utgaavmoduul op +Comment[ne]=IO स्लेभका लागि फ्रेमवर्क उत्पन्न गर्दछ +Comment[nl]=Genereert een framework voor een IO-slave +Comment[pl]=Generuje szablon dla IO slave +Comment[pt]=Gera a plataforma para um 'IO slave' +Comment[pt_BR]=Gera a plataforma para um 'IO slave' +Comment[ru]=Создание канала IO slave для TDE +Comment[sk]=Vygeneruje framework pre IO otroka +Comment[sr]=Прави радни оквир за IO slave +Comment[sr@Latn]=Pravi radni okvir za IO slave +Comment[sv]=Skapar ett ramverk för en I/O-slav +Comment[zh_CN]=生成一个 IO slave 的框架 +Comment[zh_TW]=產生一個 IO slave 的框架 +FileTemplates=h,CStyle,cpp,CStyle +ShowFilesAfterGeneration=%{dest}/src/%{APPNAMELC}.cpp +Archive=tdeioslave.tar.gz + +[ADMIN] +Type=include +File=%{tdevelop}/template-common/admin.kdevtemplate + +[GNU] +Type=include +File=%{tdevelop}/template-common/gnu.kdevtemplate + +[MKDIR_DOCBOOK1] +Type=mkdir +Dir=%{dest}/doc + +[MKDIR_DOCBOOK2] +Type=mkdir +Dir=%{dest}/doc/en + +[FILE1] +Type=install +Source=%{tdevelop}/template-common/kde-doc-Makefile.am +Dest=%{dest}/doc/Makefile.am + +[FILE2] +Type=install +Source=%{tdevelop}/template-common/kde-doc-en-Makefile.am +Dest=%{dest}/doc/en/Makefile.am + +[FILE3] +Type=install +EscapeXML=true +Source=%{tdevelop}/template-common/kde-index.docbook +Dest=%{dest}/doc/en/index.docbook + +[FILE4] +Type=install +EscapeXML=true +Source=%{src}/slave.tdevelop +Dest=%{dest}/%{APPNAMELC}.tdevelop + +[MkDir3] +Type=mkdir +Dir=%{dest}/src + +[FILE5] +Type=install +Source=%{tdevelop}/template-common/kde-app.lsm +Dest=%{dest}/src/%{APPNAMELC}.lsm + +[MkDir4] +Type=mkdir +Dir=%{dest}/po + +[FILE6] +Type=install +Source=%{tdevelop}/template-common/kde-po-Makefile.am +Dest=%{dest}/po/Makefile.am + +[FILE7] +Type=install +Source=%{tdevelop}/template-common/kde-Makefile.am +Dest=%{dest}/Makefile.am + +[FILE8] +Type=install +Source=%{tdevelop}/template-common/kde-Makefile.cvs +Dest=%{dest}/Makefile.cvs + +[FILE9] +Type=install +Source=%{tdevelop}/template-common/tde-configure.in.in +Dest=%{dest}/configure.in.in + +[FILE10] +Type=install +Source=%{src}/subdirs +Dest=%{dest}/subdirs + +[FILE11] +Type=install +Source=%{src}/src-Makefile.am +Dest=%{dest}/src/Makefile.am + +[FILE12] +Type=install +Source=%{src}/slave.cpp +Dest=%{dest}/src/%{APPNAMELC}.cpp + +[FILE13] +Type=install +Source=%{src}/slave.h +Dest=%{dest}/src/%{APPNAMELC}.h + +[FILE14] +Type=install +Source=%{src}/slave.protocol +Dest=%{dest}/src/%{APPNAMELC}.protocol + +[MSG] +Type=message +Comment=A KIO slave was created in %{dest} +Comment[ca]=Un esclau KIO ha estat creat en %{dest} +Comment[da]=En KIO-slave blev oprettet i %{dest} +Comment[de]=Ein Ein-/Ausgabemodul wurde in %{dest} erstellt. +Comment[el]=Ένας υπηρέτης KIO δημιουργήθηκε στο %{dest} +Comment[es]=Un esclavo KIO ha sido creado en %{dest} +Comment[et]=KIO-moodul loodi asukohta %{dest} +Comment[eu]=KIO morroi bat sortu da hemen: %{dest} +Comment[fa]=یک KIO slave در %{dest} ایجاد شد +Comment[fr]=Un esclave d'entrée / sortie a été créé dans %{dest} +Comment[ga]=Cruthaíodh sclábhaí KIO i %{dest} +Comment[gl]=Creouse un escravo KIO en %{dest} +Comment[hu]=Létrejött egy KIOslave itt: %{dest} +Comment[it]=È stato generato un slave KIO in %{dest} +Comment[ja]=KIO slave を %{dest} に作成しました。 +Comment[nds]=In %{dest} wöör en In-/Utgaavmoduul opstellt +Comment[ne]=KIO स्लेभ %{dest} मा सिर्जना गरियो +Comment[nl]=Een KIO-slave is aangemaakt in %{dest} +Comment[pl]=KIO slave został utworzony w %{dest} +Comment[pt]=Foi criado um 'KIO slave' em %{dest} +Comment[pt_BR]=Foi criado um 'KIO slave' em %{dest} +Comment[ru]=Канал KIO slave создан в %{dest} +Comment[sk]=KIO otrok bol vytvorený v %{dest} +Comment[sr]=KIO slave је направљен у %{dest} +Comment[sr@Latn]=KIO slave je napravljen u %{dest} +Comment[sv]=En I/O-slav skapades i %{dest} +Comment[tr]=Bir KIO slave'i %{dest} içinde yaratıldı. +Comment[zh_CN]=在 %{dest} 中创建了一个 KIO slave +Comment[zh_TW]=一個 KIO slave 已建立於 %{dest} diff --git a/languages/cpp/app_templates/tdeioslave/tdeioslave.png b/languages/cpp/app_templates/tdeioslave/tdeioslave.png new file mode 100644 index 00000000..f0cd89a8 Binary files /dev/null and b/languages/cpp/app_templates/tdeioslave/tdeioslave.png differ diff --git a/languages/cpp/app_templates/tdescreensaver/tdescreensaver.cpp b/languages/cpp/app_templates/tdescreensaver/tdescreensaver.cpp index f8e88db8..21d6db32 100644 --- a/languages/cpp/app_templates/tdescreensaver/tdescreensaver.cpp +++ b/languages/cpp/app_templates/tdescreensaver/tdescreensaver.cpp @@ -6,7 +6,7 @@ #include #include #include -#include +#include #include #include "%{APPNAMELC}.h" #include "%{APPNAMELC}ui.h" diff --git a/languages/cpp/app_templates/tdescreensaver/tdescreensaver.tdevelop b/languages/cpp/app_templates/tdescreensaver/tdescreensaver.tdevelop index 38429f89..28e0a678 100644 --- a/languages/cpp/app_templates/tdescreensaver/tdescreensaver.tdevelop +++ b/languages/cpp/app_templates/tdescreensaver/tdescreensaver.tdevelop @@ -11,7 +11,7 @@ Code Qt TDE - kioslave + tdeioslave diff --git a/languages/cpp/ccconfigwidget.cpp b/languages/cpp/ccconfigwidget.cpp index 140bb46b..e1d2940a 100644 --- a/languages/cpp/ccconfigwidget.cpp +++ b/languages/cpp/ccconfigwidget.cpp @@ -26,12 +26,12 @@ // kde includes #include -#include +#include #include #include #include #include -#include +#include #include #include #include diff --git a/languages/cpp/classgeneratorconfig.cpp b/languages/cpp/classgeneratorconfig.cpp index 2ed3ba0a..f3dba7fb 100644 --- a/languages/cpp/classgeneratorconfig.cpp +++ b/languages/cpp/classgeneratorconfig.cpp @@ -16,7 +16,7 @@ #include #include -#include +#include #include "cppsupportfactory.h" #include "classgeneratorconfig.h" diff --git a/languages/cpp/configproblemreporter.ui.h b/languages/cpp/configproblemreporter.ui.h index 9b9b59fb..c9e23652 100644 --- a/languages/cpp/configproblemreporter.ui.h +++ b/languages/cpp/configproblemreporter.ui.h @@ -10,7 +10,7 @@ #include -#include +#include #include #include #include diff --git a/languages/cpp/cppsupport_utils.cpp b/languages/cpp/cppsupport_utils.cpp index 85148c30..c8ffb1de 100644 --- a/languages/cpp/cppsupport_utils.cpp +++ b/languages/cpp/cppsupport_utils.cpp @@ -1,7 +1,7 @@ #include #include -#include +#include #include #include diff --git a/languages/cpp/cppsupportpart.cpp b/languages/cpp/cppsupportpart.cpp index f0ec6fa9..8f66283d 100644 --- a/languages/cpp/cppsupportpart.cpp +++ b/languages/cpp/cppsupportpart.cpp @@ -80,7 +80,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/languages/cpp/debugger/debuggerpart.cpp b/languages/cpp/debugger/debuggerpart.cpp index 9c2ade95..c18d581d 100644 --- a/languages/cpp/debugger/debuggerpart.cpp +++ b/languages/cpp/debugger/debuggerpart.cpp @@ -22,7 +22,7 @@ #include #include -#include +#include #include #include #include diff --git a/languages/cpp/debugger/gdbcontroller.cpp b/languages/cpp/debugger/gdbcontroller.cpp index a46b6d6a..e5081fbd 100644 --- a/languages/cpp/debugger/gdbcontroller.cpp +++ b/languages/cpp/debugger/gdbcontroller.cpp @@ -25,7 +25,7 @@ #include "mi/miparser.h" #include -#include +#include #include #include #include diff --git a/languages/cpp/doc/gnome1.toc b/languages/cpp/doc/gnome1.toc index 74d0872f..2295f820 100644 --- a/languages/cpp/doc/gnome1.toc +++ b/languages/cpp/doc/gnome1.toc @@ -158,7 +158,7 @@ - + diff --git a/languages/cpp/doc/kde2book.toc b/languages/cpp/doc/kde2book.toc index 1156df06..ec22d851 100644 --- a/languages/cpp/doc/kde2book.toc +++ b/languages/cpp/doc/kde2book.toc @@ -1284,10 +1284,10 @@ - - - - + + + + @@ -1675,8 +1675,8 @@ - - + + diff --git a/languages/cpp/pcsimporter/tdelibsimporter/kdevtdelibsimporter.cpp b/languages/cpp/pcsimporter/tdelibsimporter/kdevtdelibsimporter.cpp index 174219a3..0dc82191 100644 --- a/languages/cpp/pcsimporter/tdelibsimporter/kdevtdelibsimporter.cpp +++ b/languages/cpp/pcsimporter/tdelibsimporter/kdevtdelibsimporter.cpp @@ -60,7 +60,7 @@ TQStringList KDevKDELibsImporter::fileList() files += fileList( m_settings->kdeDir() + "/kabc" ); files += fileList( m_settings->kdeDir() + "/tdeprint" ); files += fileList( m_settings->kdeDir() + "/tdesu" ); - files += fileList( m_settings->kdeDir() + "/kio" ); + files += fileList( m_settings->kdeDir() + "/tdeio" ); files += fileList( m_settings->kdeDir() + "/kjs" ); files += fileList( m_settings->kdeDir() + "/tdeparts" ); files += fileList( m_settings->kdeDir() + "/tdetexteditor" ); diff --git a/languages/cpp/problemreporter.cpp b/languages/cpp/problemreporter.cpp index 6f87771f..baea54d7 100644 --- a/languages/cpp/problemreporter.cpp +++ b/languages/cpp/problemreporter.cpp @@ -42,7 +42,7 @@ #include #include -#include +#include #include #include diff --git a/languages/cpp/subclassingdlg.cpp b/languages/cpp/subclassingdlg.cpp index 0db80fa8..5d3ed2be 100644 --- a/languages/cpp/subclassingdlg.cpp +++ b/languages/cpp/subclassingdlg.cpp @@ -26,7 +26,7 @@ #include #include #include -#include +#include #include #include #include @@ -36,7 +36,7 @@ #include #include #include -#include +#include #define WIDGET_CAPTION_NAME "widget/property|name=caption/string" diff --git a/languages/csharp/CMakeLists.txt b/languages/csharp/CMakeLists.txt index b509fd03..362a22fe 100644 --- a/languages/csharp/CMakeLists.txt +++ b/languages/csharp/CMakeLists.txt @@ -54,6 +54,6 @@ tde_add_kpart( libkdevcsharpsupport AUTOMOC tde_add_kpart( kio_csharpdoc AUTOMOC SOURCES csharpdoc.cpp - LINK kio-shared + LINK tdeio-shared DESTINATION ${PLUGIN_INSTALL_DIR} ) diff --git a/languages/csharp/csharpdoc.h b/languages/csharp/csharpdoc.h index 7abaac1e..81329e52 100644 --- a/languages/csharp/csharpdoc.h +++ b/languages/csharp/csharpdoc.h @@ -2,7 +2,7 @@ #define _CSHARPDOC_H_ #include -#include +#include class CSharpdocProtocol : public TDEIO::SlaveBase diff --git a/languages/fortran/CMakeLists.txt b/languages/fortran/CMakeLists.txt index 507795aa..3b2dd46a 100644 --- a/languages/fortran/CMakeLists.txt +++ b/languages/fortran/CMakeLists.txt @@ -40,7 +40,7 @@ install( FILES kdevfortransupport.rc DESTINATION ${DATA_INSTALL_DIR}/kdevfortran tde_add_kpart( libkdevfortransupport AUTOMOC SOURCES fortransupportpart.cpp fixedformparser.cpp - ftnchekconfigwidget.cpp ftnchekconfigwidgetbase.ui + ftnchetdeconfigwidget.cpp ftnchetdeconfigwidgetbase.ui LINK tdevelop-shared DESTINATION ${PLUGIN_INSTALL_DIR} ) diff --git a/languages/fortran/Makefile.am b/languages/fortran/Makefile.am index 73f4582c..148c4228 100644 --- a/languages/fortran/Makefile.am +++ b/languages/fortran/Makefile.am @@ -9,7 +9,7 @@ kde_module_LTLIBRARIES = libkdevfortransupport.la libkdevfortransupport_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) libkdevfortransupport_la_LIBADD = $(top_builddir)/lib/libtdevelop.la -libkdevfortransupport_la_SOURCES = fortransupportpart.cpp fixedformparser.cpp ftnchekconfigwidget.cpp ftnchekconfigwidgetbase.ui +libkdevfortransupport_la_SOURCES = fortransupportpart.cpp fixedformparser.cpp ftnchetdeconfigwidget.cpp ftnchetdeconfigwidgetbase.ui METASOURCES = AUTO diff --git a/languages/fortran/fortransupportpart.cpp b/languages/fortran/fortransupportpart.cpp index 44068db8..4eeae482 100644 --- a/languages/fortran/fortransupportpart.cpp +++ b/languages/fortran/fortransupportpart.cpp @@ -14,7 +14,7 @@ ***************************************************************************/ #include "fortransupportpart.h" -#include "ftnchekconfigwidget.h" +#include "ftnchetdeconfigwidget.h" #include "fixedformparser.h" #include diff --git a/languages/fortran/ftnchekconfigwidget.cpp b/languages/fortran/ftnchekconfigwidget.cpp deleted file mode 100644 index 8acc9985..00000000 --- a/languages/fortran/ftnchekconfigwidget.cpp +++ /dev/null @@ -1,290 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2001 by Bernd Gehrmann * - * bernd@tdevelop.org * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ - -#include "ftnchekconfigwidget.h" - -#include -#include -#include -#include -#include -#include -#include - -#include "domutil.h" - - -class FtnchekItem : public TQCheckListItem -{ -public: - FtnchekItem(TQListView *parent, const TQString &flagstr, - const TQString &description) - : TQCheckListItem(parent, flagstr, TQCheckListItem::CheckBox), - flag(flagstr), desc(description) - { - setText(1, desc); - } - - static void readFlagsToListView(TQListView *listview, TQStringList *list); - static void writeFlagsFromListView(TQListView *listview, TQStringList *list); - -private: - TQString flag; - TQString desc; - friend class FtnchekToolTip; -}; - - -void FtnchekItem::readFlagsToListView(TQListView *listview, TQStringList *list) -{ - TQListViewItem *item = listview->firstChild(); - for (; item; item = item->nextSibling()) { - FtnchekItem *flitem = static_cast(item); - TQStringList::Iterator sli = list->find(flitem->flag); - if (sli != list->end()) { - flitem->setOn(true); - list->remove(sli); - } - } -} - - -void FtnchekItem::writeFlagsFromListView(TQListView *listview, TQStringList *list) -{ - (*list).clear(); - - TQListViewItem *item = listview->firstChild(); - for (; item; item = item->nextSibling()) { - FtnchekItem *flitem = static_cast(item); - if (flitem->isOn()) - (*list) << flitem->flag; - } -} - - -class FtnchekToolTip : public TQToolTip -{ -public: - FtnchekToolTip(TQWidget *parent) - : TQToolTip(parent) - {} -protected: - void maybeTip(const TQPoint &pos) - { - TQListView *listview = static_cast(parentWidget()); - TQListViewItem *item = listview->itemAt(pos); - FtnchekItem *flitem = static_cast(item); - - if (item) - tip(listview->itemRect(item), flitem->desc); - } -}; - - -const char *arguments_flags[] = { - "arrayness", I18N_NOOP("Warn about inconsistent use of arguments that use arrays"), - "type", I18N_NOOP("Warn about dummy arguments of a data type different from " - "the actual arguments"), - "function-type", I18N_NOOP("Warn if the invocation assumes a different data type for the return type, " - "different from the actual return type"), - "number", I18N_NOOP("Warn about invoking a subprogram with an incorrect number of arguments"), - 0, 0 -}; - - -const char *common_flags[] = { - "dimension", I18N_NOOP("Corresponding arrays in each declaration of a block must agree in size " - "and number of dimensions"), - "exact", I18N_NOOP("The comparison of two blocks is done variable-by-variable"), - "length", I18N_NOOP("Warn if different declarations of the same block are not equal in total length"), - "type", I18N_NOOP("In each declaration of a block, corresponding memory locations " - "must agree in data type"), - 0, 0 -}; - - -const char *truncation_flags[] = { - "int-div-exponent", I18N_NOOP("Use of the result of integer division as an exponent"), - "int-div-real", I18N_NOOP("Conversion of an expression involving an integer division to real"), - "int-div-zero", I18N_NOOP("Division in an integer constant expression that yields a result of zero"), - 0, 0 -}; - - -const char *usage_flags[] = { - "arg-alias", I18N_NOOP("A scalar dummy argument is actually the same as another " - "and is (or may be) modified"), - "arg-array-alias", I18N_NOOP("A dummy argument which is an array or array element " - "is the same array as another and is modified"), - "arg-common-alias", I18N_NOOP("A scalar dummy argument is the same as a common variable in " - "the subprogram, and either is modified"), - 0, 0 -}; - - -const char *f77_flags[] = { - "accept-type", I18N_NOOP("ACCEPT and TYPE I/O statements"), - "array-bounds", I18N_NOOP("Expressions defining array bounds that contain array " - "elements or function references"), - "assignment-stmt", I18N_NOOP("Assignment statements involving arrays"), - 0, 0 -}; - - -const char *portability_flags[] = { - "backslash", I18N_NOOP("Backslash characters in strings"), - "common-alignment", I18N_NOOP("COMMON block variables not in descending order of storage sizes"), - "hollerith", I18N_NOOP("Hollerith constants"), - 0, 0 -}; - - -FtnchekConfigWidget::FtnchekConfigWidget(TQDomDocument &projectDom, TQWidget *parent, const char *name) - : FtnchekConfigWidgetBase(parent, name), dom(projectDom) -{ - arguments_group = new TQButtonGroup; - arguments_group->insert(argumentsall_button); - arguments_group->insert(argumentsonly_button); - common_group = new TQButtonGroup; - common_group->insert(commonall_button); - common_group->insert(commononly_button); - truncation_group = new TQButtonGroup; - truncation_group->insert(truncationall_button); - truncation_group->insert(truncationonly_button); - usage_group = new TQButtonGroup; - usage_group->insert(usageall_button); - usage_group->insert(usageonly_button); - f77_group = new TQButtonGroup; - f77_group->insert(f77all_button); - f77_group->insert(f77only_button); - portability_group = new TQButtonGroup; - portability_group->insert(portabilityall_button); - portability_group->insert(portabilityonly_button); - - arguments_listview->header()->hide(); - new FtnchekToolTip(arguments_listview); - - common_listview->header()->hide(); - new FtnchekToolTip(common_listview); - - truncation_listview->header()->hide(); - new FtnchekToolTip(truncation_listview); - - usage_listview->header()->hide(); - new FtnchekToolTip(usage_listview); - - f77_listview->header()->hide(); - new FtnchekToolTip(f77_listview); - - portability_listview->header()->hide(); - new FtnchekToolTip(portability_listview); - - for (const char **p = arguments_flags; *p; p += 2) - new FtnchekItem(arguments_listview, TQString::fromUtf8(*p), i18n(*(p+1))); - - for (const char **p = common_flags; *p; p += 2) - new FtnchekItem(common_listview, TQString::fromUtf8(*p), i18n(*(p+1))); - - for (const char **p = truncation_flags; *p; p += 2) - new FtnchekItem(truncation_listview, TQString::fromUtf8(*p), i18n(*(p+1))); - - for (const char **p = usage_flags; *p; p += 2) - new FtnchekItem(usage_listview, TQString::fromUtf8(*p), i18n(*(p+1))); - - for (const char **p = f77_flags; *p; p += 2) - new FtnchekItem(f77_listview, TQString::fromUtf8(*p), i18n(*(p+1))); - - for (const char **p = portability_flags; *p; p += 2) - new FtnchekItem(portability_listview, TQString::fromUtf8(*p), i18n(*(p+1))); - - readConfig(); -} - - -FtnchekConfigWidget::~FtnchekConfigWidget() -{ - delete arguments_group; - delete common_group; - delete truncation_group; - delete usage_group; - delete f77_group; - delete portability_group; -} - - -void FtnchekConfigWidget::accept() -{ - storeConfig(); -} - - -void FtnchekConfigWidget::readConfig() -{ - division_box->setChecked(DomUtil::readBoolEntry(dom, "/kdevfortransupport/ftnchek/division")); - extern_box->setChecked(DomUtil::readBoolEntry(dom, "/kdevfortransupport/ftnchek/extern")); - declare_box->setChecked(DomUtil::readBoolEntry(dom, "/kdevfortransupport/ftnchek/declare")); - pure_box->setChecked(DomUtil::readBoolEntry(dom, "/kdevfortransupport/ftnchek/pure")); - - argumentsall_button->setChecked(DomUtil::readBoolEntry(dom, "/kdevfortransupport/ftnchek/argumentsall")); - commonall_button->setChecked(DomUtil::readBoolEntry(dom, "/kdevfortransupport/ftnchek/commonall")); - truncationall_button->setChecked(DomUtil::readBoolEntry(dom, "/kdevfortransupport/ftnchek/truncationall")); - usageall_button->setChecked(DomUtil::readBoolEntry(dom, "/kdevfortransupport/ftnchek/usageall")); - f77all_button->setChecked(DomUtil::readBoolEntry(dom, "/kdevfortransupport/ftnchek/f77all")); - portabilityall_button->setChecked(DomUtil::readBoolEntry(dom, "/kdevfortransupport/ftnchek/portabilityall")); - - TQStringList list; - - list = TQStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/argumentsonly")); - FtnchekItem::readFlagsToListView(arguments_listview, &list); - list = TQStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/commononly")); - FtnchekItem::readFlagsToListView(common_listview, &list); - list = TQStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/truncationonly")); - FtnchekItem::readFlagsToListView(truncation_listview, &list); - list = TQStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/usageonly")); - FtnchekItem::readFlagsToListView(usage_listview, &list); - list = TQStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/f77only")); - FtnchekItem::readFlagsToListView(f77_listview, &list); - list = TQStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/portabilityonly")); - FtnchekItem::readFlagsToListView(portability_listview, &list); -} - - -void FtnchekConfigWidget::storeConfig() -{ - DomUtil::writeBoolEntry(dom, "/kdevfortransupport/ftnchek/division", division_box->isChecked()); - DomUtil::writeBoolEntry(dom, "/kdevfortransupport/ftnchek/extern", extern_box->isChecked()); - DomUtil::writeBoolEntry(dom, "/kdevfortransupport/ftnchek/declare", declare_box->isChecked()); - DomUtil::writeBoolEntry(dom, "/kdevfortransupport/ftnchek/pure", pure_box->isChecked()); - - DomUtil::writeBoolEntry(dom, "/kdevfortransupport/ftnchek/argumentsall", argumentsall_button->isChecked()); - DomUtil::writeBoolEntry(dom, "/kdevfortransupport/ftnchek/commonall", commonall_button->isChecked()); - DomUtil::writeBoolEntry(dom, "/kdevfortransupport/ftnchek/truncationall", truncationall_button->isChecked()); - DomUtil::writeBoolEntry(dom, "/kdevfortransupport/ftnchek/usageall", usageall_button->isChecked()); - DomUtil::writeBoolEntry(dom, "/kdevfortransupport/ftnchek/f77all", f77all_button->isChecked()); - DomUtil::writeBoolEntry(dom, "/kdevfortransupport/ftnchek/portabilityall", portabilityall_button->isChecked()); - - TQStringList list; - - FtnchekItem::writeFlagsFromListView(arguments_listview, &list); - DomUtil::writeEntry(dom, "/kdevfortransupport/ftnchek/argumentsonly", list.join(",")); - FtnchekItem::writeFlagsFromListView(common_listview, &list); - DomUtil::writeEntry(dom, "/kdevfortransupport/ftnchek/commononly", list.join(",")); - FtnchekItem::writeFlagsFromListView(truncation_listview, &list); - DomUtil::writeEntry(dom, "/kdevfortransupport/ftnchek/truncationonly", list.join(",")); - FtnchekItem::writeFlagsFromListView(usage_listview, &list); - DomUtil::writeEntry(dom, "/kdevfortransupport/ftnchek/usageonly", list.join(",")); - FtnchekItem::writeFlagsFromListView(f77_listview, &list); - DomUtil::writeEntry(dom, "/kdevfortransupport/ftnchek/f77only", list.join(",")); - FtnchekItem::writeFlagsFromListView(portability_listview, &list); - DomUtil::writeEntry(dom, "/kdevfortransupport/ftnchek/portabilityonly", list.join(",")); -} - -#include "ftnchekconfigwidget.moc" diff --git a/languages/fortran/ftnchekconfigwidget.h b/languages/fortran/ftnchekconfigwidget.h deleted file mode 100644 index 786701ce..00000000 --- a/languages/fortran/ftnchekconfigwidget.h +++ /dev/null @@ -1,42 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2001 by Bernd Gehrmann * - * bernd@tdevelop.org * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ - -#ifndef _FTNCHEKCONFIGWIDGET_H_ -#define _FTNCHEKCONFIGWIDGET_H_ - -#include -#include "ftnchekconfigwidgetbase.h" - -class TQButtonGroup; - -class FtnchekConfigWidget : public FtnchekConfigWidgetBase -{ - Q_OBJECT - - -public: - FtnchekConfigWidget(TQDomDocument &projectDom, TQWidget *parent, const char *name); - ~FtnchekConfigWidget(); - -public slots: - void accept(); - -private: - void readConfig(); - void storeConfig(); - - TQButtonGroup *arguments_group, *common_group; - TQButtonGroup *truncation_group, *usage_group; - TQButtonGroup *f77_group, *portability_group; - TQDomDocument dom; -}; - -#endif diff --git a/languages/fortran/ftnchekconfigwidgetbase.ui b/languages/fortran/ftnchekconfigwidgetbase.ui deleted file mode 100644 index f01271af..00000000 --- a/languages/fortran/ftnchekconfigwidgetbase.ui +++ /dev/null @@ -1,584 +0,0 @@ - -FtnchekConfigWidgetBase - - - ftcheck_config_widget - - - - 0 - 0 - 798 - 507 - - - - Ftnchek Options - - - - unnamed - - - 0 - - - 0 - - - - TabWidget4 - - - - tab - - - &1 - - - - unnamed - - - - extern_box - - - &External subprograms without definition - - - - - division_box - - - &Divisions - - - - - declare_box - - - &Identifiers without explicit type - - - - - pure_box - - - &Assume functions have no side effects - - - - - Spacer2_3 - - - Vertical - - - Preferred - - - - 20 - 20 - - - - - - TextLabel1 - - - Ar&guments: - - - argumentsall_button - - - - - argumentsall_button - - - All - - - false - - - - - argumentsonly_button - - - Only the following: - - - true - - - - - Spacer4 - - - Horizontal - - - Preferred - - - - 20 - 20 - - - - - - Spacer3 - - - Vertical - - - Preferred - - - - 20 - 20 - - - - - - commonall_button - - - All - - - - - commononly_button - - - Only the following: - - - true - - - - - - - - - true - - - true - - - - - - - - true - - - true - - - - arguments_listview - - - NoColumn - - - - - - - - - true - - - true - - - - - - - - true - - - true - - - - common_listview - - - NoColumn - - - - - TextLabel2 - - - Common &blocks: - - - commonall_button - - - - - - - tab - - - &2 - - - - unnamed - - - - truncationonly_button - - - Only the following: - - - true - - - - - TextLabel4 - - - &Truncation and roundoff errors: - - - truncationall_button - - - - - truncationall_button - - - All - - - - - TextLabel3 - - - &Use of variables: - - - usageall_button - - - - - usageall_button - - - All - - - - - - - - - true - - - true - - - - - - - - true - - - true - - - - truncation_listview - - - NoColumn - - - - - usageonly_button - - - Only the following: - - - true - - - - - Spacer1_2 - - - Horizontal - - - Preferred - - - - 20 - 20 - - - - - - - - - - true - - - true - - - - - - - - true - - - true - - - - usage_listview - - - NoColumn - - - - - - - tab - - - &3 - - - - unnamed - - - - f77all_button - - - All - - - - - f77only_button - - - Only the following: - - - true - - - - - - - - - true - - - true - - - - - - - - true - - - true - - - - f77_listview - - - NoColumn - - - - - - - - - true - - - true - - - - - - - - true - - - true - - - - portability_listview - - - NoColumn - - - - - Spacer2 - - - Horizontal - - - Preferred - - - - 20 - 20 - - - - - - TextLabel4_2 - - - Fortran 77 language &extensions: - - - f77all_button - - - - - TextLabel3_2 - - - Other &portability warnings: - - - portabilityall_button - - - - - portabilityall_button - - - All - - - - - portabilityonly_button - - - Only the following: - - - true - - - - - - - - - declare_box - pure_box - extern_box - division_box - argumentsall_button - argumentsonly_button - arguments_listview - commonall_button - commononly_button - common_listview - TabWidget4 - truncationall_button - truncationonly_button - truncation_listview - usageall_button - usageonly_button - usage_listview - f77all_button - f77only_button - f77_listview - portabilityall_button - portabilityonly_button - portability_listview - - - kdialog.h - - - - diff --git a/languages/fortran/ftnchetdeconfigwidget.cpp b/languages/fortran/ftnchetdeconfigwidget.cpp new file mode 100644 index 00000000..6fa68605 --- /dev/null +++ b/languages/fortran/ftnchetdeconfigwidget.cpp @@ -0,0 +1,290 @@ +/*************************************************************************** + * Copyright (C) 2001 by Bernd Gehrmann * + * bernd@tdevelop.org * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#include "ftnchetdeconfigwidget.h" + +#include +#include +#include +#include +#include +#include +#include + +#include "domutil.h" + + +class FtnchekItem : public TQCheckListItem +{ +public: + FtnchekItem(TQListView *parent, const TQString &flagstr, + const TQString &description) + : TQCheckListItem(parent, flagstr, TQCheckListItem::CheckBox), + flag(flagstr), desc(description) + { + setText(1, desc); + } + + static void readFlagsToListView(TQListView *listview, TQStringList *list); + static void writeFlagsFromListView(TQListView *listview, TQStringList *list); + +private: + TQString flag; + TQString desc; + friend class FtnchekToolTip; +}; + + +void FtnchekItem::readFlagsToListView(TQListView *listview, TQStringList *list) +{ + TQListViewItem *item = listview->firstChild(); + for (; item; item = item->nextSibling()) { + FtnchekItem *flitem = static_cast(item); + TQStringList::Iterator sli = list->find(flitem->flag); + if (sli != list->end()) { + flitem->setOn(true); + list->remove(sli); + } + } +} + + +void FtnchekItem::writeFlagsFromListView(TQListView *listview, TQStringList *list) +{ + (*list).clear(); + + TQListViewItem *item = listview->firstChild(); + for (; item; item = item->nextSibling()) { + FtnchekItem *flitem = static_cast(item); + if (flitem->isOn()) + (*list) << flitem->flag; + } +} + + +class FtnchekToolTip : public TQToolTip +{ +public: + FtnchekToolTip(TQWidget *parent) + : TQToolTip(parent) + {} +protected: + void maybeTip(const TQPoint &pos) + { + TQListView *listview = static_cast(parentWidget()); + TQListViewItem *item = listview->itemAt(pos); + FtnchekItem *flitem = static_cast(item); + + if (item) + tip(listview->itemRect(item), flitem->desc); + } +}; + + +const char *arguments_flags[] = { + "arrayness", I18N_NOOP("Warn about inconsistent use of arguments that use arrays"), + "type", I18N_NOOP("Warn about dummy arguments of a data type different from " + "the actual arguments"), + "function-type", I18N_NOOP("Warn if the invocation assumes a different data type for the return type, " + "different from the actual return type"), + "number", I18N_NOOP("Warn about invoking a subprogram with an incorrect number of arguments"), + 0, 0 +}; + + +const char *common_flags[] = { + "dimension", I18N_NOOP("Corresponding arrays in each declaration of a block must agree in size " + "and number of dimensions"), + "exact", I18N_NOOP("The comparison of two blocks is done variable-by-variable"), + "length", I18N_NOOP("Warn if different declarations of the same block are not equal in total length"), + "type", I18N_NOOP("In each declaration of a block, corresponding memory locations " + "must agree in data type"), + 0, 0 +}; + + +const char *truncation_flags[] = { + "int-div-exponent", I18N_NOOP("Use of the result of integer division as an exponent"), + "int-div-real", I18N_NOOP("Conversion of an expression involving an integer division to real"), + "int-div-zero", I18N_NOOP("Division in an integer constant expression that yields a result of zero"), + 0, 0 +}; + + +const char *usage_flags[] = { + "arg-alias", I18N_NOOP("A scalar dummy argument is actually the same as another " + "and is (or may be) modified"), + "arg-array-alias", I18N_NOOP("A dummy argument which is an array or array element " + "is the same array as another and is modified"), + "arg-common-alias", I18N_NOOP("A scalar dummy argument is the same as a common variable in " + "the subprogram, and either is modified"), + 0, 0 +}; + + +const char *f77_flags[] = { + "accept-type", I18N_NOOP("ACCEPT and TYPE I/O statements"), + "array-bounds", I18N_NOOP("Expressions defining array bounds that contain array " + "elements or function references"), + "assignment-stmt", I18N_NOOP("Assignment statements involving arrays"), + 0, 0 +}; + + +const char *portability_flags[] = { + "backslash", I18N_NOOP("Backslash characters in strings"), + "common-alignment", I18N_NOOP("COMMON block variables not in descending order of storage sizes"), + "hollerith", I18N_NOOP("Hollerith constants"), + 0, 0 +}; + + +FtnchekConfigWidget::FtnchekConfigWidget(TQDomDocument &projectDom, TQWidget *parent, const char *name) + : FtnchekConfigWidgetBase(parent, name), dom(projectDom) +{ + arguments_group = new TQButtonGroup; + arguments_group->insert(argumentsall_button); + arguments_group->insert(argumentsonly_button); + common_group = new TQButtonGroup; + common_group->insert(commonall_button); + common_group->insert(commononly_button); + truncation_group = new TQButtonGroup; + truncation_group->insert(truncationall_button); + truncation_group->insert(truncationonly_button); + usage_group = new TQButtonGroup; + usage_group->insert(usageall_button); + usage_group->insert(usageonly_button); + f77_group = new TQButtonGroup; + f77_group->insert(f77all_button); + f77_group->insert(f77only_button); + portability_group = new TQButtonGroup; + portability_group->insert(portabilityall_button); + portability_group->insert(portabilityonly_button); + + arguments_listview->header()->hide(); + new FtnchekToolTip(arguments_listview); + + common_listview->header()->hide(); + new FtnchekToolTip(common_listview); + + truncation_listview->header()->hide(); + new FtnchekToolTip(truncation_listview); + + usage_listview->header()->hide(); + new FtnchekToolTip(usage_listview); + + f77_listview->header()->hide(); + new FtnchekToolTip(f77_listview); + + portability_listview->header()->hide(); + new FtnchekToolTip(portability_listview); + + for (const char **p = arguments_flags; *p; p += 2) + new FtnchekItem(arguments_listview, TQString::fromUtf8(*p), i18n(*(p+1))); + + for (const char **p = common_flags; *p; p += 2) + new FtnchekItem(common_listview, TQString::fromUtf8(*p), i18n(*(p+1))); + + for (const char **p = truncation_flags; *p; p += 2) + new FtnchekItem(truncation_listview, TQString::fromUtf8(*p), i18n(*(p+1))); + + for (const char **p = usage_flags; *p; p += 2) + new FtnchekItem(usage_listview, TQString::fromUtf8(*p), i18n(*(p+1))); + + for (const char **p = f77_flags; *p; p += 2) + new FtnchekItem(f77_listview, TQString::fromUtf8(*p), i18n(*(p+1))); + + for (const char **p = portability_flags; *p; p += 2) + new FtnchekItem(portability_listview, TQString::fromUtf8(*p), i18n(*(p+1))); + + readConfig(); +} + + +FtnchekConfigWidget::~FtnchekConfigWidget() +{ + delete arguments_group; + delete common_group; + delete truncation_group; + delete usage_group; + delete f77_group; + delete portability_group; +} + + +void FtnchekConfigWidget::accept() +{ + storeConfig(); +} + + +void FtnchekConfigWidget::readConfig() +{ + division_box->setChecked(DomUtil::readBoolEntry(dom, "/kdevfortransupport/ftnchek/division")); + extern_box->setChecked(DomUtil::readBoolEntry(dom, "/kdevfortransupport/ftnchek/extern")); + declare_box->setChecked(DomUtil::readBoolEntry(dom, "/kdevfortransupport/ftnchek/declare")); + pure_box->setChecked(DomUtil::readBoolEntry(dom, "/kdevfortransupport/ftnchek/pure")); + + argumentsall_button->setChecked(DomUtil::readBoolEntry(dom, "/kdevfortransupport/ftnchek/argumentsall")); + commonall_button->setChecked(DomUtil::readBoolEntry(dom, "/kdevfortransupport/ftnchek/commonall")); + truncationall_button->setChecked(DomUtil::readBoolEntry(dom, "/kdevfortransupport/ftnchek/truncationall")); + usageall_button->setChecked(DomUtil::readBoolEntry(dom, "/kdevfortransupport/ftnchek/usageall")); + f77all_button->setChecked(DomUtil::readBoolEntry(dom, "/kdevfortransupport/ftnchek/f77all")); + portabilityall_button->setChecked(DomUtil::readBoolEntry(dom, "/kdevfortransupport/ftnchek/portabilityall")); + + TQStringList list; + + list = TQStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/argumentsonly")); + FtnchekItem::readFlagsToListView(arguments_listview, &list); + list = TQStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/commononly")); + FtnchekItem::readFlagsToListView(common_listview, &list); + list = TQStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/truncationonly")); + FtnchekItem::readFlagsToListView(truncation_listview, &list); + list = TQStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/usageonly")); + FtnchekItem::readFlagsToListView(usage_listview, &list); + list = TQStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/f77only")); + FtnchekItem::readFlagsToListView(f77_listview, &list); + list = TQStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/portabilityonly")); + FtnchekItem::readFlagsToListView(portability_listview, &list); +} + + +void FtnchekConfigWidget::storeConfig() +{ + DomUtil::writeBoolEntry(dom, "/kdevfortransupport/ftnchek/division", division_box->isChecked()); + DomUtil::writeBoolEntry(dom, "/kdevfortransupport/ftnchek/extern", extern_box->isChecked()); + DomUtil::writeBoolEntry(dom, "/kdevfortransupport/ftnchek/declare", declare_box->isChecked()); + DomUtil::writeBoolEntry(dom, "/kdevfortransupport/ftnchek/pure", pure_box->isChecked()); + + DomUtil::writeBoolEntry(dom, "/kdevfortransupport/ftnchek/argumentsall", argumentsall_button->isChecked()); + DomUtil::writeBoolEntry(dom, "/kdevfortransupport/ftnchek/commonall", commonall_button->isChecked()); + DomUtil::writeBoolEntry(dom, "/kdevfortransupport/ftnchek/truncationall", truncationall_button->isChecked()); + DomUtil::writeBoolEntry(dom, "/kdevfortransupport/ftnchek/usageall", usageall_button->isChecked()); + DomUtil::writeBoolEntry(dom, "/kdevfortransupport/ftnchek/f77all", f77all_button->isChecked()); + DomUtil::writeBoolEntry(dom, "/kdevfortransupport/ftnchek/portabilityall", portabilityall_button->isChecked()); + + TQStringList list; + + FtnchekItem::writeFlagsFromListView(arguments_listview, &list); + DomUtil::writeEntry(dom, "/kdevfortransupport/ftnchek/argumentsonly", list.join(",")); + FtnchekItem::writeFlagsFromListView(common_listview, &list); + DomUtil::writeEntry(dom, "/kdevfortransupport/ftnchek/commononly", list.join(",")); + FtnchekItem::writeFlagsFromListView(truncation_listview, &list); + DomUtil::writeEntry(dom, "/kdevfortransupport/ftnchek/truncationonly", list.join(",")); + FtnchekItem::writeFlagsFromListView(usage_listview, &list); + DomUtil::writeEntry(dom, "/kdevfortransupport/ftnchek/usageonly", list.join(",")); + FtnchekItem::writeFlagsFromListView(f77_listview, &list); + DomUtil::writeEntry(dom, "/kdevfortransupport/ftnchek/f77only", list.join(",")); + FtnchekItem::writeFlagsFromListView(portability_listview, &list); + DomUtil::writeEntry(dom, "/kdevfortransupport/ftnchek/portabilityonly", list.join(",")); +} + +#include "ftnchetdeconfigwidget.moc" diff --git a/languages/fortran/ftnchetdeconfigwidget.h b/languages/fortran/ftnchetdeconfigwidget.h new file mode 100644 index 00000000..0636aff9 --- /dev/null +++ b/languages/fortran/ftnchetdeconfigwidget.h @@ -0,0 +1,42 @@ +/*************************************************************************** + * Copyright (C) 2001 by Bernd Gehrmann * + * bernd@tdevelop.org * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#ifndef _FTNCHEKCONFIGWIDGET_H_ +#define _FTNCHEKCONFIGWIDGET_H_ + +#include +#include "ftnchetdeconfigwidgetbase.h" + +class TQButtonGroup; + +class FtnchekConfigWidget : public FtnchekConfigWidgetBase +{ + Q_OBJECT + + +public: + FtnchekConfigWidget(TQDomDocument &projectDom, TQWidget *parent, const char *name); + ~FtnchekConfigWidget(); + +public slots: + void accept(); + +private: + void readConfig(); + void storeConfig(); + + TQButtonGroup *arguments_group, *common_group; + TQButtonGroup *truncation_group, *usage_group; + TQButtonGroup *f77_group, *portability_group; + TQDomDocument dom; +}; + +#endif diff --git a/languages/fortran/ftnchetdeconfigwidgetbase.ui b/languages/fortran/ftnchetdeconfigwidgetbase.ui new file mode 100644 index 00000000..f01271af --- /dev/null +++ b/languages/fortran/ftnchetdeconfigwidgetbase.ui @@ -0,0 +1,584 @@ + +FtnchekConfigWidgetBase + + + ftcheck_config_widget + + + + 0 + 0 + 798 + 507 + + + + Ftnchek Options + + + + unnamed + + + 0 + + + 0 + + + + TabWidget4 + + + + tab + + + &1 + + + + unnamed + + + + extern_box + + + &External subprograms without definition + + + + + division_box + + + &Divisions + + + + + declare_box + + + &Identifiers without explicit type + + + + + pure_box + + + &Assume functions have no side effects + + + + + Spacer2_3 + + + Vertical + + + Preferred + + + + 20 + 20 + + + + + + TextLabel1 + + + Ar&guments: + + + argumentsall_button + + + + + argumentsall_button + + + All + + + false + + + + + argumentsonly_button + + + Only the following: + + + true + + + + + Spacer4 + + + Horizontal + + + Preferred + + + + 20 + 20 + + + + + + Spacer3 + + + Vertical + + + Preferred + + + + 20 + 20 + + + + + + commonall_button + + + All + + + + + commononly_button + + + Only the following: + + + true + + + + + + + + + true + + + true + + + + + + + + true + + + true + + + + arguments_listview + + + NoColumn + + + + + + + + + true + + + true + + + + + + + + true + + + true + + + + common_listview + + + NoColumn + + + + + TextLabel2 + + + Common &blocks: + + + commonall_button + + + + + + + tab + + + &2 + + + + unnamed + + + + truncationonly_button + + + Only the following: + + + true + + + + + TextLabel4 + + + &Truncation and roundoff errors: + + + truncationall_button + + + + + truncationall_button + + + All + + + + + TextLabel3 + + + &Use of variables: + + + usageall_button + + + + + usageall_button + + + All + + + + + + + + + true + + + true + + + + + + + + true + + + true + + + + truncation_listview + + + NoColumn + + + + + usageonly_button + + + Only the following: + + + true + + + + + Spacer1_2 + + + Horizontal + + + Preferred + + + + 20 + 20 + + + + + + + + + + true + + + true + + + + + + + + true + + + true + + + + usage_listview + + + NoColumn + + + + + + + tab + + + &3 + + + + unnamed + + + + f77all_button + + + All + + + + + f77only_button + + + Only the following: + + + true + + + + + + + + + true + + + true + + + + + + + + true + + + true + + + + f77_listview + + + NoColumn + + + + + + + + + true + + + true + + + + + + + + true + + + true + + + + portability_listview + + + NoColumn + + + + + Spacer2 + + + Horizontal + + + Preferred + + + + 20 + 20 + + + + + + TextLabel4_2 + + + Fortran 77 language &extensions: + + + f77all_button + + + + + TextLabel3_2 + + + Other &portability warnings: + + + portabilityall_button + + + + + portabilityall_button + + + All + + + + + portabilityonly_button + + + Only the following: + + + true + + + + + + + + + declare_box + pure_box + extern_box + division_box + argumentsall_button + argumentsonly_button + arguments_listview + commonall_button + commononly_button + common_listview + TabWidget4 + truncationall_button + truncationonly_button + truncation_listview + usageall_button + usageonly_button + usage_listview + f77all_button + f77only_button + f77_listview + portabilityall_button + portabilityonly_button + portability_listview + + + kdialog.h + + + + diff --git a/languages/java/configproblemreporter.ui.h b/languages/java/configproblemreporter.ui.h index 9534cc2f..b03bb05e 100644 --- a/languages/java/configproblemreporter.ui.h +++ b/languages/java/configproblemreporter.ui.h @@ -5,7 +5,7 @@ ** update this file, preserving your code. Create an init() slot in place of ** a constructor, and a destroy() slot in place of a destructor. *****************************************************************************/ -#include +#include #include #include diff --git a/languages/java/javasupportpart.cpp b/languages/java/javasupportpart.cpp index 4ab43d38..d5aaeda0 100644 --- a/languages/java/javasupportpart.cpp +++ b/languages/java/javasupportpart.cpp @@ -49,7 +49,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/languages/java/problemreporter.cpp b/languages/java/problemreporter.cpp index 5dffdecd..a451abf3 100644 --- a/languages/java/problemreporter.cpp +++ b/languages/java/problemreporter.cpp @@ -41,7 +41,7 @@ #include #include -#include +#include #include #include diff --git a/languages/kjssupport/subclassingdlg.cpp b/languages/kjssupport/subclassingdlg.cpp index 33568735..12ec0179 100644 --- a/languages/kjssupport/subclassingdlg.cpp +++ b/languages/kjssupport/subclassingdlg.cpp @@ -25,7 +25,7 @@ #include #include #include -#include +#include #include #include #include @@ -35,7 +35,7 @@ #include #include #include -#include +#include #define WIDGET_CAPTION_NAME "widget/property|name=caption/string" diff --git a/languages/pascal/problemreporter.cpp b/languages/pascal/problemreporter.cpp index 3b2ffbc4..5ddc8dc4 100644 --- a/languages/pascal/problemreporter.cpp +++ b/languages/pascal/problemreporter.cpp @@ -38,7 +38,7 @@ #include #include -#include +#include #include #include diff --git a/languages/perl/CMakeLists.txt b/languages/perl/CMakeLists.txt index d8c68f75..f67ec9c0 100644 --- a/languages/perl/CMakeLists.txt +++ b/languages/perl/CMakeLists.txt @@ -50,6 +50,6 @@ tde_add_kpart( libkdevperlsupport AUTOMOC tde_add_kpart( kio_perldoc SOURCES perldoc.cpp - LINK kio-shared + LINK tdeio-shared DESTINATION ${PLUGIN_INSTALL_DIR} ) diff --git a/languages/perl/perldoc.h b/languages/perl/perldoc.h index 0ea1bf3a..dab66b60 100644 --- a/languages/perl/perldoc.h +++ b/languages/perl/perldoc.h @@ -2,7 +2,7 @@ #define _PERLDOC_H_ #include -#include +#include class PerldocProtocol : public TDEIO::SlaveBase diff --git a/languages/php/phpconfigwidget.cpp b/languages/php/phpconfigwidget.cpp index 01cd950c..27ef1baf 100644 --- a/languages/php/phpconfigwidget.cpp +++ b/languages/php/phpconfigwidget.cpp @@ -7,7 +7,7 @@ #include #include -#include +#include #include #include "phpinfodlg.h" diff --git a/languages/php/phperrorview.cpp b/languages/php/phperrorview.cpp index 47d869b7..d3134a89 100644 --- a/languages/php/phperrorview.cpp +++ b/languages/php/phperrorview.cpp @@ -41,7 +41,7 @@ #include #include -#include +#include #include #include diff --git a/languages/php/phpnewclassdlg.cpp b/languages/php/phpnewclassdlg.cpp index ddc3b507..3ed6d952 100644 --- a/languages/php/phpnewclassdlg.cpp +++ b/languages/php/phpnewclassdlg.cpp @@ -18,7 +18,7 @@ #include "phpnewclassdlg.h" #include #include -#include +#include #include #include #include diff --git a/languages/php/phpsupportpart.h b/languages/php/phpsupportpart.h index 572be8c8..ac4ca8dc 100644 --- a/languages/php/phpsupportpart.h +++ b/languages/php/phpsupportpart.h @@ -26,7 +26,7 @@ #include #include "kdevlanguagesupport.h" -#include +#include #include #include diff --git a/languages/python/CMakeLists.txt b/languages/python/CMakeLists.txt index f2e63076..93ba69c2 100644 --- a/languages/python/CMakeLists.txt +++ b/languages/python/CMakeLists.txt @@ -33,7 +33,7 @@ link_directories( ##### other data ################################ install( FILES kdevpythonsupport.desktop pydoc.protocol DESTINATION ${SERVICES_INSTALL_DIR} ) -install( FILES kde_pydoc.py DESTINATION ${DATA_INSTALL_DIR}/kio_pydoc ) +install( FILES kde_pydoc.py DESTINATION ${DATA_INSTALL_DIR}/tdeio_pydoc ) install( FILES kdevpythonsupport.rc DESTINATION ${DATA_INSTALL_DIR}/kdevpythonsupport ) @@ -53,6 +53,6 @@ tde_add_kpart( libkdevpythonsupport AUTOMOC tde_add_kpart( kio_pydoc SOURCES pydoc.cpp - LINK kio-shared + LINK tdeio-shared DESTINATION ${PLUGIN_INSTALL_DIR} ) diff --git a/languages/python/Makefile.am b/languages/python/Makefile.am index bd2e8813..3474eceb 100644 --- a/languages/python/Makefile.am +++ b/languages/python/Makefile.am @@ -21,7 +21,7 @@ kio_pydoc_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN) METASOURCES = AUTO -slavedir = $(kde_datadir)/kio_pydoc +slavedir = $(kde_datadir)/tdeio_pydoc slave_DATA = kde_pydoc.py servicedir = $(kde_servicesdir) diff --git a/languages/python/pydoc.h b/languages/python/pydoc.h index f5e639d7..b4354ca5 100644 --- a/languages/python/pydoc.h +++ b/languages/python/pydoc.h @@ -2,7 +2,7 @@ #define _PYDOC_H_ #include -#include +#include class PydocProtocol : public TDEIO::SlaveBase diff --git a/languages/ruby/app_templates/kapp/README b/languages/ruby/app_templates/kapp/README index f7d35069..39de8b2f 100644 --- a/languages/ruby/app_templates/kapp/README +++ b/languages/ruby/app_templates/kapp/README @@ -46,7 +46,7 @@ http://developer.kde.org/documentation/tutorials/xmlui/preface.html them more maintainable. For more details, consult : -http://developer.kde.org/documentation/tutorials/kconfigxt/kconfigxt.html +http://developer.kde.org/documentation/tutorials/tdeconfigxt/tdeconfigxt.html * With KParts, you can embed other kde components in your program, or make your program embeddable in other apps. For example, the kmplayer kpart can be called to play videos diff --git a/languages/ruby/app_templates/kxt/settings.kcfgc b/languages/ruby/app_templates/kxt/settings.kcfgc index 384510cd..402fad09 100644 --- a/languages/ruby/app_templates/kxt/settings.kcfgc +++ b/languages/ruby/app_templates/kxt/settings.kcfgc @@ -1,4 +1,4 @@ -# Code generation options for kconfig_compiler +# Code generation options for tdeconfig_compiler File=%{APPNAMELC}.kcfg ClassName=Settings Singleton=true diff --git a/languages/ruby/app_templates/kxt/src-Makefile.am b/languages/ruby/app_templates/kxt/src-Makefile.am index 6351533d..1e51351e 100644 --- a/languages/ruby/app_templates/kxt/src-Makefile.am +++ b/languages/ruby/app_templates/kxt/src-Makefile.am @@ -41,7 +41,7 @@ rubyuidir = $(kde_datadir)/%{APPNAMELC} %.rb: %.ui $(RBUIC) -tr ${UIC_TR} -kde $< -o $@ -RBKCONFIG_COMPILER = rbkconfig_compiler +RBKCONFIG_COMPILER = rbtdeconfig_compiler settings.rb: %{APPNAMELC}.kcfg settings.kcfgc $(RBKCONFIG_COMPILER) ./%{APPNAMELC}.kcfg ./settings.kcfgc diff --git a/languages/ruby/debugger/debuggerpart.cpp b/languages/ruby/debugger/debuggerpart.cpp index 091649e1..3daefeff 100644 --- a/languages/ruby/debugger/debuggerpart.cpp +++ b/languages/ruby/debugger/debuggerpart.cpp @@ -25,7 +25,7 @@ #include #include -#include +#include #include #include #include diff --git a/languages/ruby/debugger/rdbcontroller.cpp b/languages/ruby/debugger/rdbcontroller.cpp index 278d0ff2..5f1aacfe 100644 --- a/languages/ruby/debugger/rdbcontroller.cpp +++ b/languages/ruby/debugger/rdbcontroller.cpp @@ -38,7 +38,7 @@ #include "settings.h" #include -#include +#include #include #include #include diff --git a/lib/cppparser/CMakeLists.txt b/lib/cppparser/CMakeLists.txt index e9da8af2..3b53e900 100644 --- a/lib/cppparser/CMakeLists.txt +++ b/lib/cppparser/CMakeLists.txt @@ -38,6 +38,6 @@ tde_add_library( kdevcppparser SHARED AUTOMOC ast.cpp cachemanager.cpp driver.cpp errors.cpp lexer.cpp lexercache.cpp lookup.cpp parser.cpp tree_parser.cpp VERSION 0.0.0 - LINK kdevinterfaces-static kio-shared + LINK kdevinterfaces-static tdeio-shared DESTINATION ${LIB_INSTALL_DIR} ) diff --git a/lib/interfaces/external/CMakeLists.txt b/lib/interfaces/external/CMakeLists.txt index 46e2bfa7..353721fd 100644 --- a/lib/interfaces/external/CMakeLists.txt +++ b/lib/interfaces/external/CMakeLists.txt @@ -15,10 +15,6 @@ include_directories( ${TQT_INCLUDE_DIRS} ) -link_directories( - ${TQT_LIBRARY_DIRS} -) - ##### headers ################################### diff --git a/lib/util/settings.cpp b/lib/util/settings.cpp index f7895145..0b05d445 100644 --- a/lib/util/settings.cpp +++ b/lib/util/settings.cpp @@ -9,7 +9,7 @@ * * ***************************************************************************/ -#include +#include #include #include diff --git a/lib/widgets/CMakeLists.txt b/lib/widgets/CMakeLists.txt index d7e92092..d9003dbd 100644 --- a/lib/widgets/CMakeLists.txt +++ b/lib/widgets/CMakeLists.txt @@ -47,6 +47,6 @@ tde_add_library( kdevwidgets SHARED AUTOMOC processlinemaker.cpp processwidget.cpp ksavealldialog.cpp fancylistviewitem.cpp VERSION 0.0.0 - LINK kio-shared tdehtml-shared + LINK tdeio-shared tdehtml-shared DESTINATION ${LIB_INSTALL_DIR} ) diff --git a/lib/widgets/flagboxes.h b/lib/widgets/flagboxes.h index ce5c6205..60b9d850 100644 --- a/lib/widgets/flagboxes.h +++ b/lib/widgets/flagboxes.h @@ -21,7 +21,7 @@ #ifndef _FLAGBOXES_H_ #define _FLAGBOXES_H_ -#include +#include /** @file flagboxes.h diff --git a/lib/widgets/kdevhtmlpart.cpp b/lib/widgets/kdevhtmlpart.cpp index 85990989..49ac87d2 100644 --- a/lib/widgets/kdevhtmlpart.cpp +++ b/lib/widgets/kdevhtmlpart.cpp @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include @@ -169,7 +169,7 @@ TQString KDevHTMLPart::context() const } -// Note: this function is a copy of code in tdecore/kconfigbase.cpp ;) +// Note: this function is a copy of code in tdecore/tdeconfigbase.cpp ;) static bool isUtf8(const char *buf) { int i, n; register unsigned char c; @@ -256,7 +256,7 @@ TQString KDevHTMLPart::resolveEnvVarsInURL(const TQString& url) TQString path = url; int nDollarPos = path.find( '$' ); - // Note: the while loop below is a copy of code in tdecore/kconfigbase.cpp ;) + // Note: the while loop below is a copy of code in tdecore/tdeconfigbase.cpp ;) while( nDollarPos != -1 && nDollarPos+1 < static_cast(path.length())) { // there is at least one $ if( (path)[nDollarPos+1] == '(' ) { diff --git a/lib/widgets/klistviewaction.cpp b/lib/widgets/klistviewaction.cpp index b4110375..631ad9d1 100644 --- a/lib/widgets/klistviewaction.cpp +++ b/lib/widgets/klistviewaction.cpp @@ -23,7 +23,7 @@ #include #include -#include +#include #include KListViewAction::~KListViewAction() diff --git a/lib/widgets/propeditor/CMakeLists.txt b/lib/widgets/propeditor/CMakeLists.txt index 08a1b665..2620aaa0 100644 --- a/lib/widgets/propeditor/CMakeLists.txt +++ b/lib/widgets/propeditor/CMakeLists.txt @@ -54,6 +54,6 @@ tde_add_library( kdevpropertyeditor SHARED AUTOMOC pspinbox.cpp propertywidgetproxy.cpp plinestyleedit.cpp qeditlistbox.cpp VERSION 0.0.0 - LINK kio-shared + LINK tdeio-shared DESTINATION ${LIB_INSTALL_DIR} ) diff --git a/lib/widgets/propeditor/ppixmapedit.cpp b/lib/widgets/propeditor/ppixmapedit.cpp index bd8af048..e7980d66 100644 --- a/lib/widgets/propeditor/ppixmapedit.cpp +++ b/lib/widgets/propeditor/ppixmapedit.cpp @@ -33,7 +33,7 @@ #endif #ifndef PURE_QT -#include +#include #else #include #endif diff --git a/lib/widgets/propeditor/purledit.h b/lib/widgets/propeditor/purledit.h index 88435a40..bed86853 100644 --- a/lib/widgets/propeditor/purledit.h +++ b/lib/widgets/propeditor/purledit.h @@ -23,7 +23,7 @@ #include "propertywidget.h" #ifndef PURE_QT -#include +#include class KURLRequester; #else #include diff --git a/parts/abbrev/abbrevconfigwidget.cpp b/parts/abbrev/abbrevconfigwidget.cpp index c21857f8..0d22005b 100644 --- a/parts/abbrev/abbrevconfigwidget.cpp +++ b/parts/abbrev/abbrevconfigwidget.cpp @@ -15,7 +15,7 @@ #include "abbrevconfigwidget.h" -#include +#include #include #include diff --git a/parts/abbrev/abbrevpart.cpp b/parts/abbrev/abbrevpart.cpp index 3abe3b09..86dfe96f 100644 --- a/parts/abbrev/abbrevpart.cpp +++ b/parts/abbrev/abbrevpart.cpp @@ -26,8 +26,8 @@ #include #include #include -#include -#include +#include +#include #include #include diff --git a/parts/appwizard/README.dox b/parts/appwizard/README.dox index 5baf78d0..05333af3 100644 --- a/parts/appwizard/README.dox +++ b/parts/appwizard/README.dox @@ -59,7 +59,7 @@ GBA Game Boy Advance KDE KDE application/applet Qt Qt based Kicker Kicker applet -kioslave KDE ioslave +tdeioslave KDE ioslave KOffice KOffice application KDevelop TDevelop plugin GNOME GNOME application diff --git a/parts/appwizard/appwizarddlg.cpp b/parts/appwizard/appwizarddlg.cpp index 11552b27..176bf9cc 100644 --- a/parts/appwizard/appwizarddlg.cpp +++ b/parts/appwizard/appwizarddlg.cpp @@ -35,7 +35,7 @@ #include #include #include -#include +#include #include #include #include @@ -45,21 +45,21 @@ #include #include #include -#include -#include +#include +#include #include #include #include #include -#include +#include #include #include #include #include #include -#include -#include +#include +#include #include diff --git a/parts/appwizard/importdlg.cpp b/parts/appwizard/importdlg.cpp index 34b5422c..c66cb6fa 100644 --- a/parts/appwizard/importdlg.cpp +++ b/parts/appwizard/importdlg.cpp @@ -25,13 +25,13 @@ #include #include #include -#include +#include #include #include #include #include #include -#include +#include #include #include #include diff --git a/parts/appwizard/misc.cpp b/parts/appwizard/misc.cpp index 50399aef..5546b404 100644 --- a/parts/appwizard/misc.cpp +++ b/parts/appwizard/misc.cpp @@ -19,7 +19,7 @@ #include #include #include -#include +#include void AppWizardUtil::guessAuthorAndEmail(TQString *author, TQString *email) { diff --git a/parts/appwizard/profilesupport.cpp b/parts/appwizard/profilesupport.cpp index 3d5fcff2..2c48d6f2 100644 --- a/parts/appwizard/profilesupport.cpp +++ b/parts/appwizard/profilesupport.cpp @@ -22,7 +22,7 @@ #include #include -#include +#include #include diff --git a/parts/astyle/astyle_adaptor.cpp b/parts/astyle/astyle_adaptor.cpp index 6d6d44b6..1f8c3ff7 100644 --- a/parts/astyle/astyle_adaptor.cpp +++ b/parts/astyle/astyle_adaptor.cpp @@ -9,7 +9,7 @@ #include #include #include -#include +#include diff --git a/parts/astyle/astyle_part.cpp b/parts/astyle/astyle_part.cpp index 18675ad5..ed0720a4 100644 --- a/parts/astyle/astyle_part.cpp +++ b/parts/astyle/astyle_part.cpp @@ -23,8 +23,8 @@ #include #include #include -#include -#include +#include +#include #include #include #include diff --git a/parts/bookmarks/bookmarks_config.cpp b/parts/bookmarks/bookmarks_config.cpp index f2164fd8..5fe6a4aa 100644 --- a/parts/bookmarks/bookmarks_config.cpp +++ b/parts/bookmarks/bookmarks_config.cpp @@ -9,7 +9,7 @@ * * ***************************************************************************/ -#include +#include #include #include "bookmarks_config.h" diff --git a/parts/classview/classtoolwidget.cpp b/parts/classview/classtoolwidget.cpp index 251ff556..41020bd0 100644 --- a/parts/classview/classtoolwidget.cpp +++ b/parts/classview/classtoolwidget.cpp @@ -13,7 +13,7 @@ #include "classtoolwidget.h" -#include +#include #include #include #include diff --git a/parts/classview/classtreebase.cpp b/parts/classview/classtreebase.cpp index a541251b..6aefc1fa 100644 --- a/parts/classview/classtreebase.cpp +++ b/parts/classview/classtreebase.cpp @@ -17,7 +17,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/parts/classview/classviewwidget.cpp b/parts/classview/classviewwidget.cpp index 1f047168..cba88bf5 100644 --- a/parts/classview/classviewwidget.cpp +++ b/parts/classview/classviewwidget.cpp @@ -28,7 +28,7 @@ #include #include #include -#include +#include #include #include diff --git a/parts/classview/hierarchydlg.cpp b/parts/classview/hierarchydlg.cpp index 2d55199c..bda529d5 100644 --- a/parts/classview/hierarchydlg.cpp +++ b/parts/classview/hierarchydlg.cpp @@ -15,8 +15,8 @@ #include #include #include -#include -#include +#include +#include #include #include #include diff --git a/parts/classview/navigator.cpp b/parts/classview/navigator.cpp index b24917df..f5959d73 100644 --- a/parts/classview/navigator.cpp +++ b/parts/classview/navigator.cpp @@ -23,7 +23,7 @@ #include -#include +#include #include #include #include diff --git a/parts/ctags2/ctags2_part.cpp b/parts/ctags2/ctags2_part.cpp index fef1372e..0f4f7b5c 100644 --- a/parts/ctags2/ctags2_part.cpp +++ b/parts/ctags2/ctags2_part.cpp @@ -28,7 +28,7 @@ #include #include #include -#include +#include #include #include "kdevappfrontend.h" diff --git a/parts/ctags2/ctags2_settingswidget.cpp b/parts/ctags2/ctags2_settingswidget.cpp index 1cdbc187..49503cdc 100644 --- a/parts/ctags2/ctags2_settingswidget.cpp +++ b/parts/ctags2/ctags2_settingswidget.cpp @@ -19,7 +19,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/parts/diff/diffpart.cpp b/parts/diff/diffpart.cpp index 2f899828..4d36bd17 100644 --- a/parts/diff/diffpart.cpp +++ b/parts/diff/diffpart.cpp @@ -18,10 +18,10 @@ #include #include #include -#include +#include #include -#include -#include +#include +#include #include #include #include diff --git a/parts/diff/diffwidget.cpp b/parts/diff/diffwidget.cpp index 539108e1..298e2083 100644 --- a/parts/diff/diffwidget.cpp +++ b/parts/diff/diffwidget.cpp @@ -15,21 +15,21 @@ #include #include -#include +#include #include #include #include #include #include #include -#include +#include #include #include #include -#include -#include +#include +#include #include diff --git a/parts/distpart/distpart_widget.cpp b/parts/distpart/distpart_widget.cpp index 40d482b5..b29b4d6c 100644 --- a/parts/distpart/distpart_widget.cpp +++ b/parts/distpart/distpart_widget.cpp @@ -24,8 +24,8 @@ #include #include #include -#include -#include +#include +#include #include #include "kdevproject.h" #include "domutil.h" diff --git a/parts/distpart/specsupport.cpp b/parts/distpart/specsupport.cpp index 153c0c3d..a942d69e 100644 --- a/parts/distpart/specsupport.cpp +++ b/parts/distpart/specsupport.cpp @@ -24,7 +24,7 @@ #include "distpart_widget.h" #include -#include +#include #include #include #include diff --git a/parts/documentation/docglobalconfigwidget.cpp b/parts/documentation/docglobalconfigwidget.cpp index 21fc1b5b..fa6bafd0 100644 --- a/parts/documentation/docglobalconfigwidget.cpp +++ b/parts/documentation/docglobalconfigwidget.cpp @@ -29,7 +29,7 @@ #include #include -#include +#include #include #include #include diff --git a/parts/documentation/documentation_part.cpp b/parts/documentation/documentation_part.cpp index 77b4e6b2..b436520f 100644 --- a/parts/documentation/documentation_part.cpp +++ b/parts/documentation/documentation_part.cpp @@ -44,7 +44,7 @@ #include #include #include -#include +#include #include #include @@ -636,7 +636,7 @@ TQCString DocumentationPart::startAssistant() TQDataStream arg(data, IO_WriteOnly); arg << app << URLs; - if (!TDEApplication::dcopClient()->call("klauncher", "klauncher", function, data, replyType, replyData)) + if (!TDEApplication::dcopClient()->call("tdelauncher", "tdelauncher", function, data, replyType, replyData)) { kdDebug() << "call failed" << endl; lastAssistant = ""; diff --git a/parts/documentation/documentation_widget.cpp b/parts/documentation/documentation_widget.cpp index 567237e2..e7bbc6c3 100644 --- a/parts/documentation/documentation_widget.cpp +++ b/parts/documentation/documentation_widget.cpp @@ -29,7 +29,7 @@ #include #include #include -#include +#include #include #include diff --git a/parts/documentation/find_documentation_options.cpp b/parts/documentation/find_documentation_options.cpp index df04ca81..54aac7ac 100644 --- a/parts/documentation/find_documentation_options.cpp +++ b/parts/documentation/find_documentation_options.cpp @@ -25,7 +25,7 @@ #include #include -#include +#include #include FindDocumentationOptions::FindDocumentationOptions(TQWidget* parent, const char* name, bool modal) diff --git a/parts/documentation/interfaces/CMakeLists.txt b/parts/documentation/interfaces/CMakeLists.txt index 2809877a..f4a2ff08 100644 --- a/parts/documentation/interfaces/CMakeLists.txt +++ b/parts/documentation/interfaces/CMakeLists.txt @@ -39,6 +39,6 @@ install( FILES tde_add_library( documentation_interfaces SHARED AUTOMOC SOURCES kdevdocumentationplugin.cpp VERSION 0.0.0 - LINK kio-shared + LINK tdeio-shared DESTINATION ${LIB_INSTALL_DIR} ) diff --git a/parts/documentation/interfaces/kdevdocumentationplugin.cpp b/parts/documentation/interfaces/kdevdocumentationplugin.cpp index 5c261c4c..6c6805e1 100644 --- a/parts/documentation/interfaces/kdevdocumentationplugin.cpp +++ b/parts/documentation/interfaces/kdevdocumentationplugin.cpp @@ -26,7 +26,7 @@ #include #include -#include +#include #include #include #include diff --git a/parts/documentation/interfaces/kdevdocumentationplugin.h b/parts/documentation/interfaces/kdevdocumentationplugin.h index aa329ac5..9c61e208 100644 --- a/parts/documentation/interfaces/kdevdocumentationplugin.h +++ b/parts/documentation/interfaces/kdevdocumentationplugin.h @@ -26,7 +26,7 @@ #include #include #include -#include +#include #define CACHE_VERSION "3" diff --git a/parts/documentation/plugins/chm/docchmplugin.cpp b/parts/documentation/plugins/chm/docchmplugin.cpp index 7293d985..e17ec86b 100644 --- a/parts/documentation/plugins/chm/docchmplugin.cpp +++ b/parts/documentation/plugins/chm/docchmplugin.cpp @@ -21,10 +21,10 @@ #include #include -#include +#include #include #include -#include +#include #include #include #include @@ -101,7 +101,7 @@ TQString DocCHMPlugin::getSpecialData(const TQString& name, KURL url) { } -///this currently is useless, because htdig cannot use kioslaves +///this currently is useless, because htdig cannot use tdeioslaves TQStringList DocCHMPlugin::fullTextSearchLocations() { //return TQStringList::split( '\n', getSpecialData("contents", m_url)); diff --git a/parts/documentation/plugins/custom/doccustomplugin.cpp b/parts/documentation/plugins/custom/doccustomplugin.cpp index fb1a028b..cbf966a6 100644 --- a/parts/documentation/plugins/custom/doccustomplugin.cpp +++ b/parts/documentation/plugins/custom/doccustomplugin.cpp @@ -21,7 +21,7 @@ #include #include -#include +#include #include #include diff --git a/parts/documentation/plugins/devhelp/docdevhelpplugin.cpp b/parts/documentation/plugins/devhelp/docdevhelpplugin.cpp index 33a1fc77..d794f2a3 100644 --- a/parts/documentation/plugins/devhelp/docdevhelpplugin.cpp +++ b/parts/documentation/plugins/devhelp/docdevhelpplugin.cpp @@ -28,7 +28,7 @@ #include #include -#include +#include #include #include diff --git a/parts/documentation/plugins/djvu/docdjvuplugin.cpp b/parts/documentation/plugins/djvu/docdjvuplugin.cpp index fca1b3b8..c156a085 100644 --- a/parts/documentation/plugins/djvu/docdjvuplugin.cpp +++ b/parts/documentation/plugins/djvu/docdjvuplugin.cpp @@ -21,7 +21,7 @@ #include #include -#include +#include #include #include diff --git a/parts/documentation/plugins/doxygen/docdoxygenplugin.cpp b/parts/documentation/plugins/doxygen/docdoxygenplugin.cpp index a0df440a..13cee5d0 100644 --- a/parts/documentation/plugins/doxygen/docdoxygenplugin.cpp +++ b/parts/documentation/plugins/doxygen/docdoxygenplugin.cpp @@ -30,7 +30,7 @@ #include #include -#include +#include #include #include diff --git a/parts/documentation/plugins/kdevtoc/dockdevtocplugin.cpp b/parts/documentation/plugins/kdevtoc/dockdevtocplugin.cpp index 50a5fd35..681fdbba 100644 --- a/parts/documentation/plugins/kdevtoc/dockdevtocplugin.cpp +++ b/parts/documentation/plugins/kdevtoc/dockdevtocplugin.cpp @@ -28,7 +28,7 @@ #include #include -#include +#include #include #include #include diff --git a/parts/documentation/plugins/pdb/docpdbplugin.cpp b/parts/documentation/plugins/pdb/docpdbplugin.cpp index f252c03e..06692f6c 100644 --- a/parts/documentation/plugins/pdb/docpdbplugin.cpp +++ b/parts/documentation/plugins/pdb/docpdbplugin.cpp @@ -21,7 +21,7 @@ #include #include -#include +#include #include #include diff --git a/parts/documentation/plugins/pdf/docpdfplugin.cpp b/parts/documentation/plugins/pdf/docpdfplugin.cpp index c6dcb8ee..9bc4285a 100644 --- a/parts/documentation/plugins/pdf/docpdfplugin.cpp +++ b/parts/documentation/plugins/pdf/docpdfplugin.cpp @@ -21,7 +21,7 @@ #include #include -#include +#include #include #include diff --git a/parts/documentation/plugins/qt/docqtplugin.cpp b/parts/documentation/plugins/qt/docqtplugin.cpp index b3e43388..19017d96 100644 --- a/parts/documentation/plugins/qt/docqtplugin.cpp +++ b/parts/documentation/plugins/qt/docqtplugin.cpp @@ -27,7 +27,7 @@ #include #include -#include +#include #include #include diff --git a/parts/documentation/protocols/chm/CMakeLists.txt b/parts/documentation/protocols/chm/CMakeLists.txt index 49745057..3a7ae935 100644 --- a/parts/documentation/protocols/chm/CMakeLists.txt +++ b/parts/documentation/protocols/chm/CMakeLists.txt @@ -34,7 +34,7 @@ install( FILES tde_add_kpart( kio_chm SOURCES decompress.cpp chmfile.cpp chm.cpp - LINK kio-shared + LINK tdeio-shared DESTINATION ${PLUGIN_INSTALL_DIR} ) diff --git a/parts/documentation/protocols/chm/Makefile.am b/parts/documentation/protocols/chm/Makefile.am index d68f20bd..933f4685 100644 --- a/parts/documentation/protocols/chm/Makefile.am +++ b/parts/documentation/protocols/chm/Makefile.am @@ -1,4 +1,4 @@ -## Makefile.am of tdebase/kioslave/chm +## Makefile.am of tdebase/tdeioslave/chm INCLUDES = -I$(top_srcdir)/lib/widgets $(all_includes) diff --git a/parts/documentation/protocols/chm/chm.h b/parts/documentation/protocols/chm/chm.h index 333b5ca3..23d9f232 100644 --- a/parts/documentation/protocols/chm/chm.h +++ b/parts/documentation/protocols/chm/chm.h @@ -20,8 +20,8 @@ #include #include #include -#include -#include +#include +#include #include "chmfile.h" class TQCString; diff --git a/parts/documentation/protocols/chm/chm.protocol b/parts/documentation/protocols/chm/chm.protocol index 90daa4c5..492524e0 100644 --- a/parts/documentation/protocols/chm/chm.protocol +++ b/parts/documentation/protocols/chm/chm.protocol @@ -5,32 +5,32 @@ input=none output=filesystem reading=true defaultMimetype=text/html -Description=A kioslave for displaying WinHelp files -Description[ca]=Un kioslave per a mostrar fitxers WinHelp -Description[da]=En kioslave til visning af Windows hjælpefiler +Description=A tdeioslave for displaying WinHelp files +Description[ca]=Un tdeioslave per a mostrar fitxers WinHelp +Description[da]=En tdeioslave til visning af Windows hjælpefiler Description[de]=Ein Ein-/Ausgabemodul zur Anzeige von WinHelp-Dateien Description[el]=Ένας υπηρέτης kio για εμφάνιση αρχείων WinHelp -Description[es]=Un kioslave para mostrar archivos WinHelp +Description[es]=Un tdeioslave para mostrar archivos WinHelp Description[et]=WinHelp-failide kuvamise IO-moodul -Description[eu]=WinHelp fitxategiak bistaratzeko kioslave bat -Description[fa]=یک kioslave برای نمایش پرونده‌های WinHelp -Description[fr]=Un esclave d'E/S (kioslave) pour l'affichage des fichiers WinHelp -Description[gl]=Un kioslave para mostrar ficheiros WinHelp +Description[eu]=WinHelp fitxategiak bistaratzeko tdeioslave bat +Description[fa]=یک tdeioslave برای نمایش پرونده‌های WinHelp +Description[fr]=Un esclave d'E/S (tdeioslave) pour l'affichage des fichiers WinHelp +Description[gl]=Un tdeioslave para mostrar ficheiros WinHelp Description[hu]=KDE-protokoll WinHelp-fájlok megjelenítéséhez -Description[it]=Un kioslave per mostrare i file WinHelp -Description[ja]=WinHelp を表示するための kioslave +Description[it]=Un tdeioslave per mostrare i file WinHelp +Description[ja]=WinHelp を表示するための tdeioslave Description[nds]=En In-/Utgaavmoduul för't Wiesen vun "WinHelp"-Dateien Description[ne]=WinHelp फाइलहरूका लागि किवस्लेभ -Description[nl]=Een kioslave voor het weergeven van WinHelp-bestanden -Description[pl]=kioslave do pokazywania plików WinHelp -Description[pt]=A 'kioslave' para mostrar ficheiros WinHelp -Description[pt_BR]=Um kioslave para exibir arquivos WinHelp +Description[nl]=Een tdeioslave voor het weergeven van WinHelp-bestanden +Description[pl]=tdeioslave do pokazywania plików WinHelp +Description[pt]=A 'tdeioslave' para mostrar ficheiros WinHelp +Description[pt_BR]=Um tdeioslave para exibir arquivos WinHelp Description[ru]=Обработчик ввода-вывода для файлов WinHelp -Description[sk]=kioslave pre zobrazenie WinHelp súborov +Description[sk]=tdeioslave pre zobrazenie WinHelp súborov Description[sr]=KIOSlave за приказ WinHelp фајлова Description[sr@Latn]=KIOSlave za prikaz WinHelp fajlova Description[sv]=En I/O-slav för att visa WinHelp-filer -Description[tr]=WinHelp dosyalarını görüntülemek için bir kioslave -Description[zh_CN]=显示 WinHelp 文件的 kioslave -Description[zh_TW]=顯示 WinHelp 檔案的 kioslave +Description[tr]=WinHelp dosyalarını görüntülemek için bir tdeioslave +Description[zh_CN]=显示 WinHelp 文件的 tdeioslave +Description[zh_TW]=顯示 WinHelp 檔案的 tdeioslave Icon=help diff --git a/parts/documentation/protocols/chm/kchmpart.h b/parts/documentation/protocols/chm/kchmpart.h index f8779d75..9d1812b1 100644 --- a/parts/documentation/protocols/chm/kchmpart.h +++ b/parts/documentation/protocols/chm/kchmpart.h @@ -21,8 +21,8 @@ #include #include #include -#include -#include +#include +#include #include #include diff --git a/parts/documentation/searchview.cpp b/parts/documentation/searchview.cpp index 16f71171..28e3a2eb 100644 --- a/parts/documentation/searchview.cpp +++ b/parts/documentation/searchview.cpp @@ -39,7 +39,7 @@ #include #include #include -#include +#include #include #include diff --git a/parts/documentation/tools/htdig/CMakeLists.txt b/parts/documentation/tools/htdig/CMakeLists.txt index b3a627ac..35080ec6 100644 --- a/parts/documentation/tools/htdig/CMakeLists.txt +++ b/parts/documentation/tools/htdig/CMakeLists.txt @@ -24,6 +24,6 @@ link_directories( tde_add_executable( tdevelop-htdig AUTOMOC SOURCES htdigindex.cpp - LINK kio-shared + LINK tdeio-shared DESTINATION ${BIN_INSTALL_DIR} ) diff --git a/parts/documentation/tools/htdig/htdigindex.cpp b/parts/documentation/tools/htdig/htdigindex.cpp index b7b56304..57dde9ee 100644 --- a/parts/documentation/tools/htdig/htdigindex.cpp +++ b/parts/documentation/tools/htdig/htdigindex.cpp @@ -27,7 +27,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/parts/doxygen/input.cpp b/parts/doxygen/input.cpp index 29cd1ec6..f9ec69a8 100644 --- a/parts/doxygen/input.cpp +++ b/parts/doxygen/input.cpp @@ -19,7 +19,7 @@ #include #include #include -#include +#include #include #include diff --git a/parts/filecreate/fcconfigwidget.cpp b/parts/filecreate/fcconfigwidget.cpp index 45721e17..dc818db1 100644 --- a/parts/filecreate/fcconfigwidget.cpp +++ b/parts/filecreate/fcconfigwidget.cpp @@ -21,7 +21,7 @@ #include #include -#include +#include #include #include #include diff --git a/parts/filecreate/filecreate_filedialog.h b/parts/filecreate/filecreate_filedialog.h index 023f3277..54365717 100644 --- a/parts/filecreate/filecreate_filedialog.h +++ b/parts/filecreate/filecreate_filedialog.h @@ -13,7 +13,7 @@ #ifndef __KDEVPART_FILECREATE_FILEDIALOG_H__ #define __KDEVPART_FILECREATE_FILEDIALOG_H__ -#include +#include #include "filecreate_typechooser.h" diff --git a/parts/filecreate/filecreate_part.cpp b/parts/filecreate/filecreate_part.cpp index 2a598f36..0c907db1 100644 --- a/parts/filecreate/filecreate_part.cpp +++ b/parts/filecreate/filecreate_part.cpp @@ -20,7 +20,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/parts/filelist/filelist_item.cpp b/parts/filelist/filelist_item.cpp index 9fd8fe31..9e6b1fdd 100644 --- a/parts/filelist/filelist_item.cpp +++ b/parts/filelist/filelist_item.cpp @@ -16,7 +16,7 @@ #include "filelist_item.h" #include -#include +#include FileListItem * FileListItem::s_activeItem = 0; diff --git a/parts/filelist/projectviewconfig.cpp b/parts/filelist/projectviewconfig.cpp index 0aeac511..90475668 100644 --- a/parts/filelist/projectviewconfig.cpp +++ b/parts/filelist/projectviewconfig.cpp @@ -21,7 +21,7 @@ #include -#include +#include #include diff --git a/parts/filelist/projectviewpart.cpp b/parts/filelist/projectviewpart.cpp index 62cae2b0..e963ac9f 100644 --- a/parts/filelist/projectviewpart.cpp +++ b/parts/filelist/projectviewpart.cpp @@ -48,7 +48,7 @@ #include #include #include -#include +#include #include #include diff --git a/parts/fileselector/fileselector_part.cpp b/parts/fileselector/fileselector_part.cpp index cbe1cd06..82587ac0 100644 --- a/parts/fileselector/fileselector_part.cpp +++ b/parts/fileselector/fileselector_part.cpp @@ -11,8 +11,8 @@ #include #include #include -#include -#include +#include +#include #include #include #include diff --git a/parts/fileselector/fileselector_part.h b/parts/fileselector/fileselector_part.h index 29e535dc..c4cae6e1 100644 --- a/parts/fileselector/fileselector_part.h +++ b/parts/fileselector/fileselector_part.h @@ -4,7 +4,7 @@ #include #include -#include +#include #include diff --git a/parts/fileselector/fileselector_widget.cpp b/parts/fileselector/fileselector_widget.cpp index cfa72b6c..284b24da 100644 --- a/parts/fileselector/fileselector_widget.cpp +++ b/parts/fileselector/fileselector_widget.cpp @@ -56,7 +56,7 @@ #include #include #include -#include +#include #include #include #include @@ -65,13 +65,13 @@ #include #include #include -#include +#include #include //END Includes -// from kfiledialog.cpp - avoid qt warning in STDERR (~/.xsessionerrors) +// from tdefiledialog.cpp - avoid qt warning in STDERR (~/.xsessionerrors) static void silenceTQToolBar(TQtMsgType, const char *) {} diff --git a/parts/fileselector/fileselector_widget.h b/parts/fileselector/fileselector_widget.h index 17c533ee..7c80a6de 100644 --- a/parts/fileselector/fileselector_widget.h +++ b/parts/fileselector/fileselector_widget.h @@ -23,7 +23,7 @@ #define FILESELECTOR_WIDGET_H #include -#include +#include #include #include #include diff --git a/parts/fileview/fileitemfactory.h b/parts/fileview/fileitemfactory.h index 065591d7..9a9ebb98 100644 --- a/parts/fileview/fileitemfactory.h +++ b/parts/fileview/fileitemfactory.h @@ -12,7 +12,7 @@ #ifndef FILEITEMFACTORY_H #define FILEITEMFACTORY_H -#include +#include class FileTreeWidget; diff --git a/parts/fileview/filetreeviewwidgetimpl.h b/parts/fileview/filetreeviewwidgetimpl.h index eaffa71f..6cee53f8 100644 --- a/parts/fileview/filetreeviewwidgetimpl.h +++ b/parts/fileview/filetreeviewwidgetimpl.h @@ -14,7 +14,7 @@ #include #include -#include +#include #include #include "fileitemfactory.h" diff --git a/parts/fileview/filetreewidget.cpp b/parts/fileview/filetreewidget.cpp index fb4560fc..904f3710 100644 --- a/parts/fileview/filetreewidget.cpp +++ b/parts/fileview/filetreewidget.cpp @@ -22,7 +22,7 @@ #include #include #include -#include +#include #include #include diff --git a/parts/fileview/filetreewidget.h b/parts/fileview/filetreewidget.h index dfdff858..5d844aa5 100644 --- a/parts/fileview/filetreewidget.h +++ b/parts/fileview/filetreewidget.h @@ -15,7 +15,7 @@ #define _FILETREEWIDGET_H_ #include -#include +#include #include diff --git a/parts/filter/shellfilterdlg.cpp b/parts/filter/shellfilterdlg.cpp index 59b598e1..a381098e 100644 --- a/parts/filter/shellfilterdlg.cpp +++ b/parts/filter/shellfilterdlg.cpp @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/parts/filter/shellinsertdlg.cpp b/parts/filter/shellinsertdlg.cpp index fd8752e4..7b46ff7d 100644 --- a/parts/filter/shellinsertdlg.cpp +++ b/parts/filter/shellinsertdlg.cpp @@ -14,7 +14,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/parts/grepview/grepdlg.cpp b/parts/grepview/grepdlg.cpp index e792b04b..74e6bf03 100644 --- a/parts/grepview/grepdlg.cpp +++ b/parts/grepview/grepdlg.cpp @@ -18,13 +18,13 @@ #include #include #include -#include +#include #include #include #include #include #include -#include +#include #include #include #include diff --git a/parts/konsole/konsoleviewwidget.cpp b/parts/konsole/konsoleviewwidget.cpp index a9f84bb6..4a326343 100644 --- a/parts/konsole/konsoleviewwidget.cpp +++ b/parts/konsole/konsoleviewwidget.cpp @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include "kdevcore.h" #include "kdevproject.h" diff --git a/parts/outputviews/appoutputwidget.cpp b/parts/outputviews/appoutputwidget.cpp index 6020b1d6..6c7f525a 100644 --- a/parts/outputviews/appoutputwidget.cpp +++ b/parts/outputviews/appoutputwidget.cpp @@ -26,10 +26,10 @@ #include #include #include -#include +#include #include #include -#include +#include #include "appoutputviewpart.h" #include "filterdlg.h" diff --git a/parts/outputviews/makeactionfilter.cpp b/parts/outputviews/makeactionfilter.cpp index a1b1cb70..1f0d6cd5 100644 --- a/parts/outputviews/makeactionfilter.cpp +++ b/parts/outputviews/makeactionfilter.cpp @@ -231,19 +231,19 @@ void MakeActionFilter::test() << TestItem( //libtool, linking 2 "/bin/sh ../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic " "-W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts " - "-fno-builtin -g3 -fno-exceptions -fno-check-new -fno-common -o libkfilereplacepart.la.closure libkfilereplacepart_la_closure.lo " - "-module -no-undefined -L/usr/X11R6/lib -L/usr/lib/qt3/lib -L/opt/trinity/lib -version-info 1:0:0 kfilereplacepart.lo kfilereplacedoc.lo " - "kfilereplaceview.lo kaboutkfilereplace.lo kaddstringdlg.lo kconfirmdlg.lo kernel.lo kexpression.lo kfilereplacepref.lo " + "-fno-builtin -g3 -fno-exceptions -fno-check-new -fno-common -o libtdefilereplacepart.la.closure libtdefilereplacepart_la_closure.lo " + "-module -no-undefined -L/usr/X11R6/lib -L/usr/lib/qt3/lib -L/opt/trinity/lib -version-info 1:0:0 tdefilereplacepart.lo tdefilereplacedoc.lo " + "tdefilereplaceview.lo kabouttdefilereplace.lo kaddstringdlg.lo tdeconfirmdlg.lo kernel.lo kexpression.lo tdefilereplacepref.lo " "klistviewstring.lo knewprojectdlg.lo koptionsdlg.lo kresultview.lo filelib.lo knewprojectdlgs.lo -lkio -ltdeparts -ltdehtml", - "linking", "libtool", "libkfilereplacepart.la.closure") + "linking", "libtool", "libtdefilereplacepart.la.closure") << TestItem( //libtool, linking 3 "/bin/sh ../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic " "-W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts " - "-fno-builtin -g3 -fno-exceptions -fno-check-new -fno-common -o libkfilereplacepart.la -rpath /opt/trinity/lib/trinity " - "-module -no-undefined -L/usr/X11R6/lib -L/usr/lib/qt3/lib -L/opt/trinity/lib -version-info 1:0:0 kfilereplacepart.lo " - "kfilereplacedoc.lo kfilereplaceview.lo kaboutkfilereplace.lo kaddstringdlg.lo kconfirmdlg.lo kernel.lo kexpression.lo " - "kfilereplacepref.lo klistviewstring.lo knewprojectdlg.lo koptionsdlg.lo kresultview.lo filelib.lo knewprojectdlgs.lo -lkio -ltdeparts -ltdehtml", - "linking", "libtool", "libkfilereplacepart.la") + "-fno-builtin -g3 -fno-exceptions -fno-check-new -fno-common -o libtdefilereplacepart.la -rpath /opt/trinity/lib/trinity " + "-module -no-undefined -L/usr/X11R6/lib -L/usr/lib/qt3/lib -L/opt/trinity/lib -version-info 1:0:0 tdefilereplacepart.lo " + "tdefilereplacedoc.lo tdefilereplaceview.lo kabouttdefilereplace.lo kaddstringdlg.lo tdeconfirmdlg.lo kernel.lo kexpression.lo " + "tdefilereplacepref.lo klistviewstring.lo knewprojectdlg.lo koptionsdlg.lo kresultview.lo filelib.lo knewprojectdlgs.lo -lkio -ltdeparts -ltdehtml", + "linking", "libtool", "libtdefilereplacepart.la") << TestItem( //automake, builddir!=srcdir, libtool=no, compiling " g++ -DHAVE_CONFIG_H -I. -I/home/andris/cvs-developement/head/quanta/quanta/project " "-I../.. -I/home/andris/cvs-developement/head/quanta/quanta/dialogs -I/opt/trinity/include -I/usr/lib/qt3/include -I/usr/X11R6/include " diff --git a/parts/outputviews/makewidget.cpp b/parts/outputviews/makewidget.cpp index 07204c8c..54e13fb8 100644 --- a/parts/outputviews/makewidget.cpp +++ b/parts/outputviews/makewidget.cpp @@ -31,7 +31,7 @@ #include #include #include -#include +#include #include #include diff --git a/parts/partexplorer/README.dox b/parts/partexplorer/README.dox index 0b95d89c..8a28ad5e 100644 --- a/parts/partexplorer/README.dox +++ b/parts/partexplorer/README.dox @@ -1,7 +1,7 @@ /** \class PartExplorerPlugin A Graphical tool for performing KTrader-like queries about registered services -PartExplorer is a frontend to KTrader class (http://developer.kde.org/documentation/library/3.1-api/kio/html/classKTrader.html) +PartExplorer is a frontend to KTrader class (http://developer.kde.org/documentation/library/3.1-api/tdeio/html/classKTrader.html) and uses its syntax, no more no less: so before saying "it really sucks", give a look at http://developer.kde.org/documentation/library/kdeqt/tradersyntax.html. diff --git a/parts/scripting/scriptingglobalconfig.cpp b/parts/scripting/scriptingglobalconfig.cpp index 45d005a3..e1bbf414 100644 --- a/parts/scripting/scriptingglobalconfig.cpp +++ b/parts/scripting/scriptingglobalconfig.cpp @@ -23,11 +23,11 @@ #include "scriptingpart.h" #include #include -#include +#include scriptingGlobalConfig::scriptingGlobalConfig(scriptingPart *part, TQWidget *parent, const char *name) : scriptingGlobalConfigBase(parent, name), m_part(part) { - // read kconfig and post list to the m_dirs + // read tdeconfig and post list to the m_dirs TDEConfig *cfg = kapp->config(); TQStringList searchDirs = cfg->readListEntry("SearchDirs"); m_dirs->clear(); @@ -36,7 +36,7 @@ scriptingGlobalConfig::scriptingGlobalConfig(scriptingPart *part, TQWidget *pare void scriptingGlobalConfig::accept() { - // read mdirs and save to kconfig + // read mdirs and save to tdeconfig TDEConfig *cfg = kapp->config(); if( !m_dirs->isEnabled() ) cfg->writeEntry("SearchDirs", TQStringList() ); diff --git a/parts/scripting/scriptingpart.cpp b/parts/scripting/scriptingpart.cpp index 35b0f9b0..8f799242 100644 --- a/parts/scripting/scriptingpart.cpp +++ b/parts/scripting/scriptingpart.cpp @@ -36,7 +36,7 @@ #include #include #include -#include +#include #include "scriptingglobalconfig.h" #include "tdescriptactionmanager.h" diff --git a/parts/snippet/snippet_widget.cpp b/parts/snippet/snippet_widget.cpp index 8e54fd75..447193f4 100644 --- a/parts/snippet/snippet_widget.cpp +++ b/parts/snippet/snippet_widget.cpp @@ -23,7 +23,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/parts/tipofday/tipofday_part.cpp b/parts/tipofday/tipofday_part.cpp index 5efd3870..774df47c 100644 --- a/parts/tipofday/tipofday_part.cpp +++ b/parts/tipofday/tipofday_part.cpp @@ -7,7 +7,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/parts/tools/tools_part.cpp b/parts/tools/tools_part.cpp index b35ac551..28af7745 100644 --- a/parts/tools/tools_part.cpp +++ b/parts/tools/tools_part.cpp @@ -9,7 +9,7 @@ #include #include -#include +#include #include #include #include diff --git a/parts/tools/toolsconfigwidget.cpp b/parts/tools/toolsconfigwidget.cpp index ef34eb97..f6cec15a 100644 --- a/parts/tools/toolsconfigwidget.cpp +++ b/parts/tools/toolsconfigwidget.cpp @@ -16,7 +16,7 @@ #include #include -#include +#include #include #include #include diff --git a/parts/uimode/uichooser_widget.cpp b/parts/uimode/uichooser_widget.cpp index 25df2d5a..c2d88499 100644 --- a/parts/uimode/uichooser_widget.cpp +++ b/parts/uimode/uichooser_widget.cpp @@ -19,7 +19,7 @@ #include #include #include -#include +#include #include #include diff --git a/parts/valgrind/valgrind_part.cpp b/parts/valgrind/valgrind_part.cpp index 287dd7ec..aa530e95 100644 --- a/parts/valgrind/valgrind_part.cpp +++ b/parts/valgrind/valgrind_part.cpp @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include "kdevcore.h" diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ca02daae..558caeb4 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -12,7 +12,7 @@ add_subdirectory( profiles ) add_subdirectory( profileengine ) add_subdirectory( newui ) -add_subdirectory( kconf_update ) +add_subdirectory( tdeconf_update ) include_directories( ${CMAKE_CURRENT_BINARY_DIR} diff --git a/src/Makefile.am b/src/Makefile.am index 4cf58098..d2d434da 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -34,7 +34,7 @@ rc_DATA = tdevelopui.rc eventsrc tdevelopdatadir = $(kde_confdir) tdevelopdata_DATA = tdeveloprc kdevassistantrc -SUBDIRS = profiles profileengine newui kconf_update +SUBDIRS = profiles profileengine newui tdeconf_update kdevassistant_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -ltdetexteditor -ltdevelop -L../lib/.libs -L../lib/interfaces/external/.libs -lkinterfacedesigner kdevassistant_SOURCES = main_assistant.cpp kdevassistantextension.cpp kdevassistant_LDADD = libkdevshell.la -L../lib/interfaces/external/.libs -lkinterfacedesigner diff --git a/src/core.cpp b/src/core.cpp index d08a826e..7d937d16 100644 --- a/src/core.cpp +++ b/src/core.cpp @@ -5,7 +5,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/editorproxy.cpp b/src/editorproxy.cpp index 55861014..c9d34e29 100644 --- a/src/editorproxy.cpp +++ b/src/editorproxy.cpp @@ -4,7 +4,7 @@ #include #include -#include +#include #include #include diff --git a/src/kconf_update/CMakeLists.txt b/src/kconf_update/CMakeLists.txt deleted file mode 100644 index a374f34a..00000000 --- a/src/kconf_update/CMakeLists.txt +++ /dev/null @@ -1,32 +0,0 @@ -################################################# -# -# (C) 2010-2011 Serghei Amelian -# serghei (DOT) amelian (AT) gmail.com -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -include_directories( - ${TQT_INCLUDE_DIRS} -) - -link_directories( - ${TQT_LIBRARY_DIRS} -) - - -##### other data ################################ - -install( FILES kdev-gen-settings.upd DESTINATION ${KCONF_UPDATE_INSTALL_DIR} ) - - -##### kdev-gen-settings-kconf_update (executable) - -tde_add_executable( kdev-gen-settings-kconf_update - SOURCES kdev-gen-settings-kconf_update.cpp - LINK ${TQT_LIBRARIES} - DESTINATION ${LIB_INSTALL_DIR}/kconf_update_bin -) diff --git a/src/kconf_update/Makefile.am b/src/kconf_update/Makefile.am deleted file mode 100644 index e7317f2b..00000000 --- a/src/kconf_update/Makefile.am +++ /dev/null @@ -1,18 +0,0 @@ -AM_CPPFLAGS = -DKDE_NO_COMPAT -DQT_NO_COMPAT $(all_includes) - -update_DATA = kdev-gen-settings.upd -updatedir = $(kde_datadir)/kconf_update - -# The Qt app cannot go into kde_datadir, that is not portable. -# install to kde_bindir/kconf_update_bin instead. -# KDE 3.2 will allow kconf_update scripts to run directly from there, -# but for us that's too late. Use the .sh script as a workaround. -kconf_PROGRAMS = kdev-gen-settings-kconf_update -kconfdir = $(libdir)/kconf_update_bin - -kdev_gen_settings_kconf_update_SOURCES = kdev-gen-settings-kconf_update.cpp -kdev_gen_settings_kconf_update_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -ltdetexteditor -kdev_gen_settings_kconf_update_LDADD = $(LIB_QT) - -# vim: set noet: - diff --git a/src/kconf_update/kdev-gen-settings-kconf_update.cpp b/src/kconf_update/kdev-gen-settings-kconf_update.cpp deleted file mode 100644 index 64c0b791..00000000 --- a/src/kconf_update/kdev-gen-settings-kconf_update.cpp +++ /dev/null @@ -1,113 +0,0 @@ -/* - kconf_update app for migrating tdevelop's ui settings to the new - code that will be in 3.3. - - Copyright (c) 2005 by Matt Rogers - Based on code Copyright (c) 2003 by Martijn Klingens - - ************************************************************************* - * * - * This program is free software; you can redistribute it and/or * - * modify it under the terms of the GNU Lesser General Public * - * License as published by the Free Software Foundation; either * - * version 2 of the License, or (at your option) any later version. * - * * - ************************************************************************* -*/ - -#include -#include -#include - -static TQTextStream qcin ( stdin, IO_ReadOnly ); -static TQTextStream qcout( stdout, IO_WriteOnly ); -static TQTextStream qcerr( stderr, IO_WriteOnly ); - -// Group cache. Yes, I know global vars are ugly :) -bool needFlush = false; -TQString newKeyValue; -int newDataValue; - -void parseKey( const TQString &group, const TQString &key, - const TQString &value, const TQString &rawLine ) -{ - - //qcerr << "*** group='" << group << "'" << endl; - if ( group == "General Options" && key == "Embed KDevDesigner") - { - newKeyValue = "Designer App"; - if ( value.lower() == "true" ) - newDataValue = 0; - else - newDataValue = 2; - qcout << newKeyValue << "=" << newDataValue << endl; - qcout << "# DELETE [" << key << "]" << endl; - - } - else if ( group == "General Options" && key == "Application Font" ) - { - newKeyValue = "OutputViewFont"; - qcout << newKeyValue << "=" << value << endl; - qcout << "# DELETE [" << key << "]" << endl; - } - else if ( group == "MakeOutputView" && key == "Messages Font" ) - { - qcout << "# DELETE [" << key << "]" << endl; - } - else if ( group == "TerminalEmulator" && key == "UseKDESetting" ) - { - newKeyValue = "UseKDESetting"; - if ( value.lower() == "true" ) - newDataValue = 0; - else - newDataValue = 1; - qcout << newKeyValue << "=" << newDataValue << endl; - } - else - { - // keys we don't convert. output the raw line instead. - qcout << rawLine << endl; - } -} - -int main() -{ - qcin.setEncoding( TQTextStream::UnicodeUTF8 ); - qcout.setEncoding( TQTextStream::UnicodeUTF8 ); - - TQString curGroup; - - TQRegExp groupRegExp( "^\\[(.*)\\]" ); - TQRegExp keyRegExp( "^([a-zA-Z0-9:, _-]*)\\s*=\\s*(.*)\\s*" ); - TQRegExp commentRegExp( "^(#.*)?$" ); - - while ( !qcin.atEnd() ) - { - TQString line = qcin.readLine(); - - if ( commentRegExp.exactMatch( line ) ) - { - // We found a comment, leave unchanged - qcout << line << endl; - } - else if ( groupRegExp.exactMatch( line ) ) - { - curGroup = groupRegExp.capturedTexts()[ 1 ]; - qcout << line << endl; - } - else if ( keyRegExp.exactMatch( line ) ) - { - // We found the a key line - parseKey( curGroup, keyRegExp.capturedTexts()[ 1 ], keyRegExp.capturedTexts()[ 2 ], line ); - } - else - { - qcout << line << endl; - } - } - - return 0; -} - -// vim: set noet ts=4 sts=4 sw=4: - diff --git a/src/kconf_update/kdev-gen-settings.upd b/src/kconf_update/kdev-gen-settings.upd deleted file mode 100644 index 85f2235d..00000000 --- a/src/kconf_update/kdev-gen-settings.upd +++ /dev/null @@ -1,8 +0,0 @@ -#Update the KDevelop General Settings page to work with the -#new UI file created on 20050406 -Id=kdev-gen-settings-update/5 -File=tdeveloprc -Script=kdev-gen-settings-kconf_update -Options=overwrite -AllKeys - diff --git a/src/kdevideextension.cpp b/src/kdevideextension.cpp index a034cc52..f56294a3 100644 --- a/src/kdevideextension.cpp +++ b/src/kdevideextension.cpp @@ -27,7 +27,7 @@ #include #include -#include +#include #include #include #include diff --git a/src/languageselectwidget.cpp b/src/languageselectwidget.cpp index 51cb3901..25f2514d 100644 --- a/src/languageselectwidget.cpp +++ b/src/languageselectwidget.cpp @@ -19,7 +19,7 @@ #include #include -#include +#include #include #include #include diff --git a/src/mainwindowshare.cpp b/src/mainwindowshare.cpp index d03fffed..1b9f492f 100644 --- a/src/mainwindowshare.cpp +++ b/src/mainwindowshare.cpp @@ -31,7 +31,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/newui/CMakeLists.txt b/src/newui/CMakeLists.txt index e6f6b124..b1f89a56 100644 --- a/src/newui/CMakeLists.txt +++ b/src/newui/CMakeLists.txt @@ -15,10 +15,6 @@ include_directories( ${TQT_INCLUDE_DIRS} ) -link_directories( - ${TQT_LIBRARY_DIRS} -) - ##### d (shared) ################################ diff --git a/src/newui/button.cpp b/src/newui/button.cpp index 4381ee2d..fc6720f9 100644 --- a/src/newui/button.cpp +++ b/src/newui/button.cpp @@ -33,7 +33,7 @@ #include #include #include -#include +#include #include "buttonbar.h" diff --git a/src/newui/buttonbar.cpp b/src/newui/buttonbar.cpp index f64e0695..13afb6c0 100644 --- a/src/newui/buttonbar.cpp +++ b/src/newui/buttonbar.cpp @@ -22,7 +22,7 @@ #include #include -#include +#include #include #include diff --git a/src/newui/ddockwindow.cpp b/src/newui/ddockwindow.cpp index d8abfde7..091ad1c0 100644 --- a/src/newui/ddockwindow.cpp +++ b/src/newui/ddockwindow.cpp @@ -29,7 +29,7 @@ #include #include -#include +#include #include #include #include diff --git a/src/newui/dmainwindow.cpp b/src/newui/dmainwindow.cpp index d8b79f22..1cdd0551 100644 --- a/src/newui/dmainwindow.cpp +++ b/src/newui/dmainwindow.cpp @@ -21,7 +21,7 @@ #include #include -#include +#include #include #include diff --git a/src/newui/dtabwidget.cpp b/src/newui/dtabwidget.cpp index 92148207..e56a83f8 100644 --- a/src/newui/dtabwidget.cpp +++ b/src/newui/dtabwidget.cpp @@ -22,7 +22,7 @@ #include #include -#include +#include #include #include diff --git a/src/partcontroller.cpp b/src/partcontroller.cpp index ab13eff5..d3e3faa5 100644 --- a/src/partcontroller.cpp +++ b/src/partcontroller.cpp @@ -23,14 +23,14 @@ #include #include #include -#include +#include #include #include #include #include #include #include -#include +#include #include #include #include diff --git a/src/plugincontroller.cpp b/src/plugincontroller.cpp index 18440daa..91abe5e7 100644 --- a/src/plugincontroller.cpp +++ b/src/plugincontroller.cpp @@ -7,7 +7,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/profileengine/editor/CMakeLists.txt b/src/profileengine/editor/CMakeLists.txt index ddc82809..cfd7c59c 100644 --- a/src/profileengine/editor/CMakeLists.txt +++ b/src/profileengine/editor/CMakeLists.txt @@ -25,7 +25,7 @@ link_directories( tde_add_executable( kdevprofileeditor SOURCES main.cpp - LINK profileeditor-static profileengine-shared kio-shared + LINK profileeditor-static profileengine-shared tdeio-shared DESTINATION ${BIN_INSTALL_DIR} ) diff --git a/src/profileengine/lib/CMakeLists.txt b/src/profileengine/lib/CMakeLists.txt index cd36b2da..286a0e04 100644 --- a/src/profileengine/lib/CMakeLists.txt +++ b/src/profileengine/lib/CMakeLists.txt @@ -32,6 +32,6 @@ install( FILES tde_add_library( profileengine SHARED SOURCES profileengine.cpp profile.cpp VERSION 0.0.0 - LINK kio-shared + LINK tdeio-shared DESTINATION ${LIB_INSTALL_DIR} ) diff --git a/src/profileengine/lib/profile.cpp b/src/profileengine/lib/profile.cpp index e568313f..db6cb3fc 100644 --- a/src/profileengine/lib/profile.cpp +++ b/src/profileengine/lib/profile.cpp @@ -23,8 +23,8 @@ #include #include -#include -#include +#include +#include Profile::Profile(Profile *parent, const TQString &name) :m_parent(parent), m_name(name) diff --git a/src/projectmanager.cpp b/src/projectmanager.cpp index dffe9b92..80b3670f 100644 --- a/src/projectmanager.cpp +++ b/src/projectmanager.cpp @@ -15,7 +15,7 @@ class TQDomDocument; #include #include #include -#include +#include #include #include #include @@ -24,7 +24,7 @@ class TQDomDocument; #include #include #include -#include +#include #include #include #include diff --git a/src/simplemainwindow.cpp b/src/simplemainwindow.cpp index 3f685c3c..d51bc31e 100644 --- a/src/simplemainwindow.cpp +++ b/src/simplemainwindow.cpp @@ -34,7 +34,7 @@ #include #include #include -#include +#include #include #include @@ -99,9 +99,9 @@ void SimpleMainWindow::init() " properly.\nPlease make sure " "that TDevelop is installed in your TDE directory; otherwise, you have " "to add TDevelop's installation " - "path to the environment variable TDEDIRS and run kbuildsycoca. Restart " + "path to the environment variable TDEDIRS and run tdebuildsycoca. Restart " "TDevelop afterwards.\n" - "Example for BASH users:\nexport TDEDIRS=/path/to/tdevelop:$TDEDIRS && kbuildsycoca"), + "Example for BASH users:\nexport TDEDIRS=/path/to/tdevelop:$TDEDIRS && tdebuildsycoca"), i18n("Could Not Find Plugins") ); } diff --git a/src/tdeconf_update/CMakeLists.txt b/src/tdeconf_update/CMakeLists.txt new file mode 100644 index 00000000..4b605615 --- /dev/null +++ b/src/tdeconf_update/CMakeLists.txt @@ -0,0 +1,32 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES kdev-gen-settings.upd DESTINATION ${KCONF_UPDATE_INSTALL_DIR} ) + + +##### kdev-gen-settings-tdeconf_update (executable) + +tde_add_executable( kdev-gen-settings-tdeconf_update + SOURCES kdev-gen-settings-tdeconf_update.cpp + LINK ${TQT_LIBRARIES} + DESTINATION ${LIB_INSTALL_DIR}/tdeconf_update_bin +) diff --git a/src/tdeconf_update/Makefile.am b/src/tdeconf_update/Makefile.am new file mode 100644 index 00000000..d256951b --- /dev/null +++ b/src/tdeconf_update/Makefile.am @@ -0,0 +1,18 @@ +AM_CPPFLAGS = -DKDE_NO_COMPAT -DQT_NO_COMPAT $(all_includes) + +update_DATA = kdev-gen-settings.upd +updatedir = $(kde_datadir)/tdeconf_update + +# The Qt app cannot go into kde_datadir, that is not portable. +# install to kde_bindir/tdeconf_update_bin instead. +# KDE 3.2 will allow tdeconf_update scripts to run directly from there, +# but for us that's too late. Use the .sh script as a workaround. +tdeconf_PROGRAMS = kdev-gen-settings-tdeconf_update +tdeconfdir = $(libdir)/tdeconf_update_bin + +kdev_gen_settings_tdeconf_update_SOURCES = kdev-gen-settings-tdeconf_update.cpp +kdev_gen_settings_tdeconf_update_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -ltdetexteditor +kdev_gen_settings_tdeconf_update_LDADD = $(LIB_QT) + +# vim: set noet: + diff --git a/src/tdeconf_update/kdev-gen-settings-tdeconf_update.cpp b/src/tdeconf_update/kdev-gen-settings-tdeconf_update.cpp new file mode 100644 index 00000000..63e4a834 --- /dev/null +++ b/src/tdeconf_update/kdev-gen-settings-tdeconf_update.cpp @@ -0,0 +1,113 @@ +/* + tdeconf_update app for migrating tdevelop's ui settings to the new + code that will be in 3.3. + + Copyright (c) 2005 by Matt Rogers + Based on code Copyright (c) 2003 by Martijn Klingens + + ************************************************************************* + * * + * This program is free software; you can redistribute it and/or * + * modify it under the terms of the GNU Lesser General Public * + * License as published by the Free Software Foundation; either * + * version 2 of the License, or (at your option) any later version. * + * * + ************************************************************************* +*/ + +#include +#include +#include + +static TQTextStream qcin ( stdin, IO_ReadOnly ); +static TQTextStream qcout( stdout, IO_WriteOnly ); +static TQTextStream qcerr( stderr, IO_WriteOnly ); + +// Group cache. Yes, I know global vars are ugly :) +bool needFlush = false; +TQString newKeyValue; +int newDataValue; + +void parseKey( const TQString &group, const TQString &key, + const TQString &value, const TQString &rawLine ) +{ + + //qcerr << "*** group='" << group << "'" << endl; + if ( group == "General Options" && key == "Embed KDevDesigner") + { + newKeyValue = "Designer App"; + if ( value.lower() == "true" ) + newDataValue = 0; + else + newDataValue = 2; + qcout << newKeyValue << "=" << newDataValue << endl; + qcout << "# DELETE [" << key << "]" << endl; + + } + else if ( group == "General Options" && key == "Application Font" ) + { + newKeyValue = "OutputViewFont"; + qcout << newKeyValue << "=" << value << endl; + qcout << "# DELETE [" << key << "]" << endl; + } + else if ( group == "MakeOutputView" && key == "Messages Font" ) + { + qcout << "# DELETE [" << key << "]" << endl; + } + else if ( group == "TerminalEmulator" && key == "UseKDESetting" ) + { + newKeyValue = "UseKDESetting"; + if ( value.lower() == "true" ) + newDataValue = 0; + else + newDataValue = 1; + qcout << newKeyValue << "=" << newDataValue << endl; + } + else + { + // keys we don't convert. output the raw line instead. + qcout << rawLine << endl; + } +} + +int main() +{ + qcin.setEncoding( TQTextStream::UnicodeUTF8 ); + qcout.setEncoding( TQTextStream::UnicodeUTF8 ); + + TQString curGroup; + + TQRegExp groupRegExp( "^\\[(.*)\\]" ); + TQRegExp keyRegExp( "^([a-zA-Z0-9:, _-]*)\\s*=\\s*(.*)\\s*" ); + TQRegExp commentRegExp( "^(#.*)?$" ); + + while ( !qcin.atEnd() ) + { + TQString line = qcin.readLine(); + + if ( commentRegExp.exactMatch( line ) ) + { + // We found a comment, leave unchanged + qcout << line << endl; + } + else if ( groupRegExp.exactMatch( line ) ) + { + curGroup = groupRegExp.capturedTexts()[ 1 ]; + qcout << line << endl; + } + else if ( keyRegExp.exactMatch( line ) ) + { + // We found the a key line + parseKey( curGroup, keyRegExp.capturedTexts()[ 1 ], keyRegExp.capturedTexts()[ 2 ], line ); + } + else + { + qcout << line << endl; + } + } + + return 0; +} + +// vim: set noet ts=4 sts=4 sw=4: + diff --git a/src/tdeconf_update/kdev-gen-settings.upd b/src/tdeconf_update/kdev-gen-settings.upd new file mode 100644 index 00000000..1fd3803f --- /dev/null +++ b/src/tdeconf_update/kdev-gen-settings.upd @@ -0,0 +1,8 @@ +#Update the KDevelop General Settings page to work with the +#new UI file created on 20050406 +Id=kdev-gen-settings-update/5 +File=tdeveloprc +Script=kdev-gen-settings-tdeconf_update +Options=overwrite +AllKeys + diff --git a/src/toplevel.cpp b/src/toplevel.cpp index 048b325c..2e41e1dc 100644 --- a/src/toplevel.cpp +++ b/src/toplevel.cpp @@ -1,6 +1,6 @@ #include #include -#include +#include #include "toplevel.h" diff --git a/vcs/cvsservice/checkoutdialog.cpp b/vcs/cvsservice/checkoutdialog.cpp index 07745c5c..17260ab4 100644 --- a/vcs/cvsservice/checkoutdialog.cpp +++ b/vcs/cvsservice/checkoutdialog.cpp @@ -19,7 +19,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/vcs/cvsservice/cvsoptions.cpp b/vcs/cvsservice/cvsoptions.cpp index 723ad9d5..f1b45c30 100644 --- a/vcs/cvsservice/cvsoptions.cpp +++ b/vcs/cvsservice/cvsoptions.cpp @@ -13,7 +13,7 @@ #include #include -#include +#include #include #include "domutil.h" diff --git a/vcs/cvsservice/diffwidget.cpp b/vcs/cvsservice/diffwidget.cpp index fae85d9d..2261e2be 100644 --- a/vcs/cvsservice/diffwidget.cpp +++ b/vcs/cvsservice/diffwidget.cpp @@ -15,21 +15,21 @@ #include #include -#include +#include #include #include #include #include #include #include -#include +#include #include #include #include -#include -#include +#include +#include #include "diffwidget.h" diff --git a/vcs/subversion/CMakeLists.txt b/vcs/subversion/CMakeLists.txt index 294537a2..0e902488 100644 --- a/vcs/subversion/CMakeLists.txt +++ b/vcs/subversion/CMakeLists.txt @@ -64,7 +64,7 @@ tde_add_kpart( libkdevsubversion AUTOMOC tde_add_kpart( kio_kdevsvn AUTOMOC SOURCES svn_kio.cpp - LINK kio-shared ${SVN_LIBRARIES} ${APR_LIBRARIES} + LINK tdeio-shared ${SVN_LIBRARIES} ${APR_LIBRARIES} DESTINATION ${PLUGIN_INSTALL_DIR} ) @@ -75,6 +75,6 @@ tde_add_kpart( kded_kdevsvnd AUTOMOC SOURCES commitdlg.cpp commitdlgbase.ui kdevsvnd.cpp kdevsvnd.skel kdevsvnd_widgets.cpp svnssltrustpromptbase.ui - LINK kio-shared tdeinit_kded-shared + LINK tdeio-shared tdeinit_kded-shared DESTINATION ${PLUGIN_INSTALL_DIR} ) diff --git a/vcs/subversion/README.dox b/vcs/subversion/README.dox index d784bd30..c463a997 100644 --- a/vcs/subversion/README.dox +++ b/vcs/subversion/README.dox @@ -7,7 +7,7 @@ Integrates the SVN (Subversion) version management system into KDevelop. \feature Integrates the SVN (Subversion) version management system into KDevelop. -\requirement You need to compile and install tdesdk/kioslave/svn +\requirement You need to compile and install tdesdk/tdeioslave/svn */ diff --git a/vcs/subversion/configure.in.bot b/vcs/subversion/configure.in.bot index ccab94db..d89532c2 100644 --- a/vcs/subversion/configure.in.bot +++ b/vcs/subversion/configure.in.bot @@ -3,7 +3,7 @@ if test "x$with_subversion" = xcheck && test -z "$SVN_SUBDIR"; then echo "You're missing Subversion libraries (1.x)" echo "KDE will not be able to browse Subversion repositories without it," echo "consider installing it." - echo "Look at kioslave/svn/README for more information" + echo "Look at tdeioslave/svn/README for more information" echo "" all_tests=bad fi diff --git a/vcs/subversion/configure.in.in b/vcs/subversion/configure.in.in index 6c132ae3..7a1bb3c2 100644 --- a/vcs/subversion/configure.in.in +++ b/vcs/subversion/configure.in.in @@ -132,4 +132,4 @@ AM_CONDITIONAL(include_subversion, test -n "$SVN_SUBDIR") AC_SUBST(SVN_INCLUDE) AC_SUBST(SVN_LIB) AC_SUBST(SVN_CPPFLAGS) -AM_CONDITIONAL(include_kioslave_svn, test -n "$SVN_SUBDIR") +AM_CONDITIONAL(include_tdeioslave_svn, test -n "$SVN_SUBDIR") diff --git a/vcs/subversion/integrator/svnintegratordlg.cpp b/vcs/subversion/integrator/svnintegratordlg.cpp index 94ceca77..bdba679f 100644 --- a/vcs/subversion/integrator/svnintegratordlg.cpp +++ b/vcs/subversion/integrator/svnintegratordlg.cpp @@ -22,19 +22,19 @@ #include "svnintegratordlg.h" #include "blockingkprocess.h" #include -#include -#include +#include +#include #include #include #include -#include +#include #include #include #include #include #include -#include +#include using namespace TDEIO; diff --git a/vcs/subversion/kdevsvnd.cpp b/vcs/subversion/kdevsvnd.cpp index 5e2ec8d9..112990bf 100644 --- a/vcs/subversion/kdevsvnd.cpp +++ b/vcs/subversion/kdevsvnd.cpp @@ -22,7 +22,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/vcs/subversion/subversion_core.cpp b/vcs/subversion/subversion_core.cpp index 9f517c07..6dc79169 100644 --- a/vcs/subversion/subversion_core.cpp +++ b/vcs/subversion/subversion_core.cpp @@ -30,9 +30,9 @@ #include "svn_co.h" #include #include -#include -#include -#include +#include +#include +#include #include #include #include diff --git a/vcs/subversion/subversion_core.h b/vcs/subversion/subversion_core.h index 28d98d3c..f2f3f6da 100644 --- a/vcs/subversion/subversion_core.h +++ b/vcs/subversion/subversion_core.h @@ -23,7 +23,7 @@ #include #include -#include +#include #include #include #include "subversion_fileinfo.h" diff --git a/vcs/subversion/subversion_fileinfo.cpp b/vcs/subversion/subversion_fileinfo.cpp index 6f960e0a..d9d3d6e1 100644 --- a/vcs/subversion/subversion_fileinfo.cpp +++ b/vcs/subversion/subversion_fileinfo.cpp @@ -29,7 +29,7 @@ #include #include -#include +#include #include SVNFileInfoProvider::SVNFileInfoProvider(subversionPart *parent, const char *name) diff --git a/vcs/subversion/subversion_fileinfo.h b/vcs/subversion/subversion_fileinfo.h index 7a1c9bf7..9b322463 100644 --- a/vcs/subversion/subversion_fileinfo.h +++ b/vcs/subversion/subversion_fileinfo.h @@ -24,7 +24,7 @@ #include #include -#include +#include #include #include #include diff --git a/vcs/subversion/subversion_widget.h b/vcs/subversion/subversion_widget.h index a74f7182..d59f8394 100644 --- a/vcs/subversion/subversion_widget.h +++ b/vcs/subversion/subversion_widget.h @@ -27,7 +27,7 @@ class subversionPart; #include -#include +#include #include class KTextEdit; class SvnLogHolder; diff --git a/vcs/subversion/svn_fileselectdlg_commit.cpp b/vcs/subversion/svn_fileselectdlg_commit.cpp index 0c014a9d..a37577bd 100644 --- a/vcs/subversion/svn_fileselectdlg_commit.cpp +++ b/vcs/subversion/svn_fileselectdlg_commit.cpp @@ -115,7 +115,7 @@ SVNFileSelectDlgCommit::~SVNFileSelectDlgCommit() int SVNFileSelectDlgCommit::exec() { if (listView()->childCount() <= 0){ - //TODO if klauncher fails, this spot is also reached. We should show correct error message to user + //TODO if tdelauncher fails, this spot is also reached. We should show correct error message to user KMessageBox::information( (TQWidget*)m_part->project()->mainWindow()->main(), i18n("No added/modified/deleted file(s) to commit") ); return TQDialog::Rejected; } diff --git a/vcs/subversion/svn_kio.h b/vcs/subversion/svn_kio.h index 0a6d56b2..b00cddb8 100644 --- a/vcs/subversion/svn_kio.h +++ b/vcs/subversion/svn_kio.h @@ -24,8 +24,8 @@ #include #include -#include -#include +#include +#include #include #include #include -- cgit v1.2.1