From 2fb700f92bb787fab0845a63a541cd5640daa449 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 26 Jan 2013 13:18:13 -0600 Subject: Rename a number of libraries and executables to avoid conflicts with KDE4 --- languages/cpp/addattributedialog.cpp | 4 +- languages/cpp/addmethoddialog.cpp | 4 +- languages/cpp/app_templates/CMakeLists.txt | 4 +- languages/cpp/app_templates/Makefile.am | 2 +- .../cpp/app_templates/chello_gba/app.tdevelop | 2 +- languages/cpp/app_templates/kapp/README | 2 +- languages/cpp/app_templates/kapp/appview.h | 2 +- languages/cpp/app_templates/kconfig35/README | 2 +- languages/cpp/app_templates/kdecpp.appwizard | 2 +- .../cpp/app_templates/kdevpart/kdevpart_widget.cpp | 2 +- .../app_templates/kdevpart2/kdevpart_widget.cpp | 2 +- languages/cpp/app_templates/kpartapp/app.h | 2 +- languages/cpp/app_templates/kpartapp/app_part.h | 4 +- .../cpp/app_templates/kpartplugin/plugin_app.cpp | 2 +- .../cpp/app_templates/kpartplugin/plugin_app.h | 4 +- .../cpp/app_templates/kpartplugin/src-Makefile.am | 2 +- .../cpp/app_templates/kscons_kmdi/CMakeLists.txt | 30 -- languages/cpp/app_templates/kscons_kmdi/INSTALL | 83 ----- .../cpp/app_templates/kscons_kmdi/Makefile.am | 21 -- languages/cpp/app_templates/kscons_kmdi/QUICKSTART | 164 --------- languages/cpp/app_templates/kscons_kmdi/README | 111 ------ .../cpp/app_templates/kscons_kmdi/SConscript-doc | 92 ----- .../cpp/app_templates/kscons_kmdi/SConscript-src | 60 ---- languages/cpp/app_templates/kscons_kmdi/SConstruct | 112 ------ languages/cpp/app_templates/kscons_kmdi/VERSION | 1 - languages/cpp/app_templates/kscons_kmdi/app.kcfg | 12 - .../cpp/app_templates/kscons_kmdi/app.tdevelop | 169 --------- .../cpp/app_templates/kscons_kmdi/app_part.cpp | 159 --------- languages/cpp/app_templates/kscons_kmdi/app_part.h | 75 ---- .../cpp/app_templates/kscons_kmdi/app_part.rc | 17 - .../cpp/app_templates/kscons_kmdi/app_shell.rc | 33 -- .../cpp/app_templates/kscons_kmdi/appkmdi.cpp | 394 --------------------- languages/cpp/app_templates/kscons_kmdi/appkmdi.h | 83 ----- .../cpp/app_templates/kscons_kmdi/appkmdiView.cpp | 63 ---- .../cpp/app_templates/kscons_kmdi/appkmdiView.h | 30 -- .../cpp/app_templates/kscons_kmdi/kmdikonsole.cpp | 76 ---- .../cpp/app_templates/kscons_kmdi/kmdikonsole.h | 33 -- .../kscons_kmdi/kscons_kmdi.kdevtemplate | 271 -------------- .../cpp/app_templates/kscons_kmdi/kscons_kmdi.png | Bin 13151 -> 0 bytes languages/cpp/app_templates/kscons_kmdi/main.cpp | 60 ---- .../cpp/app_templates/kscons_kmdi/messages.sh | 60 ---- languages/cpp/app_templates/kscons_kmdi/prefs.ui | 30 -- .../cpp/app_templates/kscons_kmdi/settings.kcfgc | 6 - languages/cpp/app_templates/kscons_kmdi/tips | 6 - languages/cpp/app_templates/kscons_kxt/README | 2 +- .../cpp/app_templates/kscons_tdemdi/CMakeLists.txt | 30 ++ languages/cpp/app_templates/kscons_tdemdi/INSTALL | 83 +++++ .../cpp/app_templates/kscons_tdemdi/Makefile.am | 21 ++ .../cpp/app_templates/kscons_tdemdi/QUICKSTART | 164 +++++++++ languages/cpp/app_templates/kscons_tdemdi/README | 111 ++++++ .../cpp/app_templates/kscons_tdemdi/SConscript-doc | 92 +++++ .../cpp/app_templates/kscons_tdemdi/SConscript-src | 60 ++++ .../cpp/app_templates/kscons_tdemdi/SConstruct | 112 ++++++ languages/cpp/app_templates/kscons_tdemdi/VERSION | 1 + languages/cpp/app_templates/kscons_tdemdi/app.kcfg | 12 + .../cpp/app_templates/kscons_tdemdi/app.tdevelop | 169 +++++++++ .../cpp/app_templates/kscons_tdemdi/app_part.cpp | 159 +++++++++ .../cpp/app_templates/kscons_tdemdi/app_part.h | 75 ++++ .../cpp/app_templates/kscons_tdemdi/app_part.rc | 17 + .../cpp/app_templates/kscons_tdemdi/app_shell.rc | 33 ++ .../cpp/app_templates/kscons_tdemdi/apptdemdi.cpp | 394 +++++++++++++++++++++ .../cpp/app_templates/kscons_tdemdi/apptdemdi.h | 83 +++++ .../app_templates/kscons_tdemdi/apptdemdiView.cpp | 63 ++++ .../app_templates/kscons_tdemdi/apptdemdiView.h | 30 ++ .../kscons_tdemdi/kscons_tdemdi.kdevtemplate | 271 ++++++++++++++ .../app_templates/kscons_tdemdi/kscons_tdemdi.png | Bin 0 -> 13151 bytes languages/cpp/app_templates/kscons_tdemdi/main.cpp | 60 ++++ .../cpp/app_templates/kscons_tdemdi/messages.sh | 60 ++++ languages/cpp/app_templates/kscons_tdemdi/prefs.ui | 30 ++ .../cpp/app_templates/kscons_tdemdi/settings.kcfgc | 6 + .../app_templates/kscons_tdemdi/tdemdikonsole.cpp | 76 ++++ .../app_templates/kscons_tdemdi/tdemdikonsole.h | 33 ++ languages/cpp/app_templates/kscons_tdemdi/tips | 6 + .../cpp/app_templates/kscreensaver/.kdev_ignore | 0 .../cpp/app_templates/kscreensaver/CMakeLists.txt | 27 -- .../cpp/app_templates/kscreensaver/Makefile.am | 19 - .../app_templates/kscreensaver/kscreensaver.cpp | 107 ------ .../kscreensaver/kscreensaver.desktop | 124 ------- .../cpp/app_templates/kscreensaver/kscreensaver.h | 37 -- .../kscreensaver/kscreensaver.kdevtemplate | 203 ----------- .../app_templates/kscreensaver/kscreensaver.png | Bin 12032 -> 0 bytes .../kscreensaver/kscreensaver.tdevelop | 113 ------ .../app_templates/kscreensaver/kscreensaverui.ui | 79 ----- .../cpp/app_templates/kscreensaver/src-Makefile.am | 24 -- languages/cpp/app_templates/kscreensaver/subdirs | 3 - languages/cpp/app_templates/kxt/README | 2 +- languages/cpp/app_templates/tdecmodule/module.cpp | 2 +- .../cpp/app_templates/tdescreensaver/.kdev_ignore | 0 .../app_templates/tdescreensaver/CMakeLists.txt | 27 ++ .../cpp/app_templates/tdescreensaver/Makefile.am | 19 + .../app_templates/tdescreensaver/src-Makefile.am | 24 ++ languages/cpp/app_templates/tdescreensaver/subdirs | 3 + .../tdescreensaver/tdescreensaver.cpp | 107 ++++++ .../tdescreensaver/tdescreensaver.desktop | 124 +++++++ .../app_templates/tdescreensaver/tdescreensaver.h | 37 ++ .../tdescreensaver/tdescreensaver.kdevtemplate | 203 +++++++++++ .../tdescreensaver/tdescreensaver.png | Bin 0 -> 12032 bytes .../tdescreensaver/tdescreensaver.tdevelop | 113 ++++++ .../tdescreensaver/tdescreensaverui.ui | 79 +++++ languages/cpp/ast_utils.cpp | 2 +- languages/cpp/backgroundparser.cpp | 8 +- languages/cpp/codecompletionentry.h | 2 +- languages/cpp/codeinformationrepository.h | 2 +- languages/cpp/cppcodecompletion.cpp | 4 +- languages/cpp/cppcodecompletion.h | 12 +- languages/cpp/cppsupportpart.cpp | 16 +- languages/cpp/createpcsdialog.cpp | 2 +- languages/cpp/debugger/debuggerpart.cpp | 4 +- languages/cpp/doc/kde2book.toc | 12 +- .../tdelibsimporter/kdevtdelibsimporter.cpp | 4 +- languages/cpp/problemreporter.cpp | 12 +- languages/cpp/qtdesignercppintegration.cpp | 6 +- languages/cpp/typedesc.h | 2 +- 113 files changed, 3055 insertions(+), 3055 deletions(-) delete mode 100644 languages/cpp/app_templates/kscons_kmdi/CMakeLists.txt delete mode 100644 languages/cpp/app_templates/kscons_kmdi/INSTALL delete mode 100644 languages/cpp/app_templates/kscons_kmdi/Makefile.am delete mode 100644 languages/cpp/app_templates/kscons_kmdi/QUICKSTART delete mode 100644 languages/cpp/app_templates/kscons_kmdi/README delete mode 100644 languages/cpp/app_templates/kscons_kmdi/SConscript-doc delete mode 100644 languages/cpp/app_templates/kscons_kmdi/SConscript-src delete mode 100644 languages/cpp/app_templates/kscons_kmdi/SConstruct delete mode 100644 languages/cpp/app_templates/kscons_kmdi/VERSION delete mode 100644 languages/cpp/app_templates/kscons_kmdi/app.kcfg delete mode 100644 languages/cpp/app_templates/kscons_kmdi/app.tdevelop delete mode 100644 languages/cpp/app_templates/kscons_kmdi/app_part.cpp delete mode 100644 languages/cpp/app_templates/kscons_kmdi/app_part.h delete mode 100644 languages/cpp/app_templates/kscons_kmdi/app_part.rc delete mode 100644 languages/cpp/app_templates/kscons_kmdi/app_shell.rc delete mode 100644 languages/cpp/app_templates/kscons_kmdi/appkmdi.cpp delete mode 100644 languages/cpp/app_templates/kscons_kmdi/appkmdi.h delete mode 100644 languages/cpp/app_templates/kscons_kmdi/appkmdiView.cpp delete mode 100644 languages/cpp/app_templates/kscons_kmdi/appkmdiView.h delete mode 100644 languages/cpp/app_templates/kscons_kmdi/kmdikonsole.cpp delete mode 100644 languages/cpp/app_templates/kscons_kmdi/kmdikonsole.h delete mode 100644 languages/cpp/app_templates/kscons_kmdi/kscons_kmdi.kdevtemplate delete mode 100644 languages/cpp/app_templates/kscons_kmdi/kscons_kmdi.png delete mode 100644 languages/cpp/app_templates/kscons_kmdi/main.cpp delete mode 100755 languages/cpp/app_templates/kscons_kmdi/messages.sh delete mode 100644 languages/cpp/app_templates/kscons_kmdi/prefs.ui delete mode 100644 languages/cpp/app_templates/kscons_kmdi/settings.kcfgc delete mode 100644 languages/cpp/app_templates/kscons_kmdi/tips create mode 100644 languages/cpp/app_templates/kscons_tdemdi/CMakeLists.txt create mode 100644 languages/cpp/app_templates/kscons_tdemdi/INSTALL create mode 100644 languages/cpp/app_templates/kscons_tdemdi/Makefile.am create mode 100644 languages/cpp/app_templates/kscons_tdemdi/QUICKSTART create mode 100644 languages/cpp/app_templates/kscons_tdemdi/README create mode 100644 languages/cpp/app_templates/kscons_tdemdi/SConscript-doc create mode 100644 languages/cpp/app_templates/kscons_tdemdi/SConscript-src create mode 100644 languages/cpp/app_templates/kscons_tdemdi/SConstruct create mode 100644 languages/cpp/app_templates/kscons_tdemdi/VERSION create mode 100644 languages/cpp/app_templates/kscons_tdemdi/app.kcfg create mode 100644 languages/cpp/app_templates/kscons_tdemdi/app.tdevelop create mode 100644 languages/cpp/app_templates/kscons_tdemdi/app_part.cpp create mode 100644 languages/cpp/app_templates/kscons_tdemdi/app_part.h create mode 100644 languages/cpp/app_templates/kscons_tdemdi/app_part.rc create mode 100644 languages/cpp/app_templates/kscons_tdemdi/app_shell.rc create mode 100644 languages/cpp/app_templates/kscons_tdemdi/apptdemdi.cpp create mode 100644 languages/cpp/app_templates/kscons_tdemdi/apptdemdi.h create mode 100644 languages/cpp/app_templates/kscons_tdemdi/apptdemdiView.cpp create mode 100644 languages/cpp/app_templates/kscons_tdemdi/apptdemdiView.h create mode 100644 languages/cpp/app_templates/kscons_tdemdi/kscons_tdemdi.kdevtemplate create mode 100644 languages/cpp/app_templates/kscons_tdemdi/kscons_tdemdi.png create mode 100644 languages/cpp/app_templates/kscons_tdemdi/main.cpp create mode 100755 languages/cpp/app_templates/kscons_tdemdi/messages.sh create mode 100644 languages/cpp/app_templates/kscons_tdemdi/prefs.ui create mode 100644 languages/cpp/app_templates/kscons_tdemdi/settings.kcfgc create mode 100644 languages/cpp/app_templates/kscons_tdemdi/tdemdikonsole.cpp create mode 100644 languages/cpp/app_templates/kscons_tdemdi/tdemdikonsole.h create mode 100644 languages/cpp/app_templates/kscons_tdemdi/tips delete mode 100644 languages/cpp/app_templates/kscreensaver/.kdev_ignore delete mode 100644 languages/cpp/app_templates/kscreensaver/CMakeLists.txt delete mode 100644 languages/cpp/app_templates/kscreensaver/Makefile.am delete mode 100644 languages/cpp/app_templates/kscreensaver/kscreensaver.cpp delete mode 100644 languages/cpp/app_templates/kscreensaver/kscreensaver.desktop delete mode 100644 languages/cpp/app_templates/kscreensaver/kscreensaver.h delete mode 100644 languages/cpp/app_templates/kscreensaver/kscreensaver.kdevtemplate delete mode 100644 languages/cpp/app_templates/kscreensaver/kscreensaver.png delete mode 100644 languages/cpp/app_templates/kscreensaver/kscreensaver.tdevelop delete mode 100644 languages/cpp/app_templates/kscreensaver/kscreensaverui.ui delete mode 100644 languages/cpp/app_templates/kscreensaver/src-Makefile.am delete mode 100644 languages/cpp/app_templates/kscreensaver/subdirs create mode 100644 languages/cpp/app_templates/tdescreensaver/.kdev_ignore create mode 100644 languages/cpp/app_templates/tdescreensaver/CMakeLists.txt create mode 100644 languages/cpp/app_templates/tdescreensaver/Makefile.am create mode 100644 languages/cpp/app_templates/tdescreensaver/src-Makefile.am create mode 100644 languages/cpp/app_templates/tdescreensaver/subdirs create mode 100644 languages/cpp/app_templates/tdescreensaver/tdescreensaver.cpp create mode 100644 languages/cpp/app_templates/tdescreensaver/tdescreensaver.desktop create mode 100644 languages/cpp/app_templates/tdescreensaver/tdescreensaver.h create mode 100644 languages/cpp/app_templates/tdescreensaver/tdescreensaver.kdevtemplate create mode 100644 languages/cpp/app_templates/tdescreensaver/tdescreensaver.png create mode 100644 languages/cpp/app_templates/tdescreensaver/tdescreensaver.tdevelop create mode 100644 languages/cpp/app_templates/tdescreensaver/tdescreensaverui.ui (limited to 'languages/cpp') diff --git a/languages/cpp/addattributedialog.cpp b/languages/cpp/addattributedialog.cpp index 8d12b40f..885aad6d 100644 --- a/languages/cpp/addattributedialog.cpp +++ b/languages/cpp/addattributedialog.cpp @@ -28,8 +28,8 @@ #include #include -#include -#include +#include +#include #include #include diff --git a/languages/cpp/addmethoddialog.cpp b/languages/cpp/addmethoddialog.cpp index 07ecde2b..ae4b5a61 100644 --- a/languages/cpp/addmethoddialog.cpp +++ b/languages/cpp/addmethoddialog.cpp @@ -29,8 +29,8 @@ #include #include -#include -#include +#include +#include #include #include diff --git a/languages/cpp/app_templates/CMakeLists.txt b/languages/cpp/app_templates/CMakeLists.txt index c8c21605..94a914ac 100644 --- a/languages/cpp/app_templates/CMakeLists.txt +++ b/languages/cpp/app_templates/CMakeLists.txt @@ -19,7 +19,7 @@ add_subdirectory( kdevpart ) add_subdirectory( kdevpart2 ) add_subdirectory( chello ) add_subdirectory( cpphello ) -add_subdirectory( kscreensaver ) +add_subdirectory( tdescreensaver ) add_subdirectory( kofficepart ) add_subdirectory( chello_gba ) add_subdirectory( dcopservice ) @@ -58,7 +58,7 @@ add_subdirectory( cmakesimplec ) add_subdirectory( cmakelibcpp ) add_subdirectory( cmakelibc ) add_subdirectory( kscons_kxt ) -add_subdirectory( kscons_kmdi ) +add_subdirectory( kscons_tdemdi ) add_subdirectory( qt4hello ) add_subdirectory( qmakeempty ) add_subdirectory( automakeempty ) diff --git a/languages/cpp/app_templates/Makefile.am b/languages/cpp/app_templates/Makefile.am index d77ef765..09e63e1a 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 kscreensaver 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_kmdi qt4hello qmakeempty automakeempty makefileempty qtopia4app kde4app +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 profilescdir = $(kde_datadir)/tdevelop/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CIDE profilesc_DATA = c.appwizard diff --git a/languages/cpp/app_templates/chello_gba/app.tdevelop b/languages/cpp/app_templates/chello_gba/app.tdevelop index 2f59c978..88e5395f 100644 --- a/languages/cpp/app_templates/chello_gba/app.tdevelop +++ b/languages/cpp/app_templates/chello_gba/app.tdevelop @@ -24,7 +24,7 @@ --host=arm-gcc-elf --build=i386 - -T lnkscript crt0.o + -T lntdescript crt0.o kdevgccoptions kdevgppoptions kdevg77options diff --git a/languages/cpp/app_templates/kapp/README b/languages/cpp/app_templates/kapp/README index 1db7896b..1ddb40a1 100644 --- a/languages/cpp/app_templates/kapp/README +++ b/languages/cpp/app_templates/kapp/README @@ -53,7 +53,7 @@ embeddable in other apps. For example, the kmplayer kpart can be called to play in your app. For more details, consult : -http://www-106.ibm.com/developerworks/library/l-kparts/ +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 diff --git a/languages/cpp/app_templates/kapp/appview.h b/languages/cpp/app_templates/kapp/appview.h index be484fec..79513a9d 100644 --- a/languages/cpp/app_templates/kapp/appview.h +++ b/languages/cpp/app_templates/kapp/appview.h @@ -4,7 +4,7 @@ #define _%{APPNAMEUC}VIEW_H_ #include -#include +#include #include <%{APPNAMELC}iface.h> class TQPainter; diff --git a/languages/cpp/app_templates/kconfig35/README b/languages/cpp/app_templates/kconfig35/README index 6f91629b..a27cdb29 100644 --- a/languages/cpp/app_templates/kconfig35/README +++ b/languages/cpp/app_templates/kconfig35/README @@ -62,7 +62,7 @@ embeddable in other apps. For example, the kmplayer kpart can be called to play in your app. For more details, consult : -http://www-106.ibm.com/developerworks/library/l-kparts/ +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 diff --git a/languages/cpp/app_templates/kdecpp.appwizard b/languages/cpp/app_templates/kdecpp.appwizard index ad9bb0d2..1823e891 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,kscreensaver,kscons_kxt,kscons_kmdi +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 diff --git a/languages/cpp/app_templates/kdevpart/kdevpart_widget.cpp b/languages/cpp/app_templates/kdevpart/kdevpart_widget.cpp index 1fe3558c..65bb996e 100644 --- a/languages/cpp/app_templates/kdevpart/kdevpart_widget.cpp +++ b/languages/cpp/app_templates/kdevpart/kdevpart_widget.cpp @@ -3,7 +3,7 @@ #include #include -#include +#include #include diff --git a/languages/cpp/app_templates/kdevpart2/kdevpart_widget.cpp b/languages/cpp/app_templates/kdevpart2/kdevpart_widget.cpp index 1fe3558c..65bb996e 100644 --- a/languages/cpp/app_templates/kdevpart2/kdevpart_widget.cpp +++ b/languages/cpp/app_templates/kdevpart2/kdevpart_widget.cpp @@ -3,7 +3,7 @@ #include #include -#include +#include #include diff --git a/languages/cpp/app_templates/kpartapp/app.h b/languages/cpp/app_templates/kpartapp/app.h index 91207694..6b470b92 100644 --- a/languages/cpp/app_templates/kpartapp/app.h +++ b/languages/cpp/app_templates/kpartapp/app.h @@ -7,7 +7,7 @@ #endif #include -#include +#include class KToggleAction; diff --git a/languages/cpp/app_templates/kpartapp/app_part.h b/languages/cpp/app_templates/kpartapp/app_part.h index 418d7327..6ea44663 100644 --- a/languages/cpp/app_templates/kpartapp/app_part.h +++ b/languages/cpp/app_templates/kpartapp/app_part.h @@ -2,8 +2,8 @@ #ifndef _%{APPNAMEUC}PART_H_ #define _%{APPNAMEUC}PART_H_ -#include -#include +#include +#include class TQWidget; class TQPainter; diff --git a/languages/cpp/app_templates/kpartplugin/plugin_app.cpp b/languages/cpp/app_templates/kpartplugin/plugin_app.cpp index c5bdb434..c9717c29 100644 --- a/languages/cpp/app_templates/kpartplugin/plugin_app.cpp +++ b/languages/cpp/app_templates/kpartplugin/plugin_app.cpp @@ -1,7 +1,7 @@ #include "plugin_%{APPNAMELC}.h" -#include +#include #include #include #include diff --git a/languages/cpp/app_templates/kpartplugin/plugin_app.h b/languages/cpp/app_templates/kpartplugin/plugin_app.h index 132ce724..16142b33 100644 --- a/languages/cpp/app_templates/kpartplugin/plugin_app.h +++ b/languages/cpp/app_templates/kpartplugin/plugin_app.h @@ -2,8 +2,8 @@ #ifndef _PLUGIN_%{APPNAMEUC}_H_ #define _PLUGIN_%{APPNAMEUC}_H_ -#include -#include +#include +#include class Plugin%{APPNAME} : public KParts::Plugin { diff --git a/languages/cpp/app_templates/kpartplugin/src-Makefile.am b/languages/cpp/app_templates/kpartplugin/src-Makefile.am index 633ca883..a0da7254 100644 --- a/languages/cpp/app_templates/kpartplugin/src-Makefile.am +++ b/languages/cpp/app_templates/kpartplugin/src-Makefile.am @@ -14,7 +14,7 @@ lib%{APPNAMELC}plugin_la_LDFLAGS = -module -avoid-version -no-undefined $(KDE_PL # Install the .rc file in the Part's directory (in this case, the part # is KHTMLPart) -pluginsdir = $(kde_datadir)/khtml/kpartplugins +pluginsdir = $(kde_datadir)/tdehtml/kpartplugins plugins_DATA = plugin_%{APPNAMELC}.rc messages: rc.cpp diff --git a/languages/cpp/app_templates/kscons_kmdi/CMakeLists.txt b/languages/cpp/app_templates/kscons_kmdi/CMakeLists.txt deleted file mode 100644 index c42fac4f..00000000 --- a/languages/cpp/app_templates/kscons_kmdi/CMakeLists.txt +++ /dev/null @@ -1,30 +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( kscons_kmdi.tar.gz ALL - COMMAND tar zcf kscons_kmdi.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} - app.kcfg app.tdevelop appkmdi.cpp appkmdi.h appkmdiView.cpp - appkmdiView.h INSTALL kmdikonsole.cpp kmdikonsole.h - main.cpp messages.sh prefs.ui QUICKSTART README - SConscript-doc SConscript-src SConstruct settings.kcfgc - tips VERSION app_part.cpp app_part.h app_part.rc - app_shell.rc -) - - -install( FILES - ${CMAKE_CURRENT_BINARY_DIR}/kscons_kmdi.tar.gz kscons_kmdi.png - DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard ) - - -install( FILES - kscons_kmdi.kdevtemplate - DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates ) diff --git a/languages/cpp/app_templates/kscons_kmdi/INSTALL b/languages/cpp/app_templates/kscons_kmdi/INSTALL deleted file mode 100644 index e61a3acc..00000000 --- a/languages/cpp/app_templates/kscons_kmdi/INSTALL +++ /dev/null @@ -1,83 +0,0 @@ -REQUIREMENTS ------------- - -* TDE headers & libraries for tdelibs -* A Python interpreter for the compilation - -scons v0.96.1 or newer is recommended, but it's not required since a -minimum scons distribution is included in the package. - -BUILDING AND INSTALLING ------------------------ - -For configuring, compiling and installing the application and -if you do have Scons 0.96.1 or newer installed, just run: - -$ scons -$ scons install (as root user) - -In case you don't have Scons installed, you can use -the accompanying minimum scons by running: - -$ tar xjvf admin/scons-mini.tar.bz2 -$ ./scons -$ ./scons install - -ADVANCED BUILD FEATURES & DEINSTALLING --------------------------------------- - -In case you want to execute many compilation jobs in parallel (because you -want to make use of a SMP system or a compile cluster, for instance), -you can use ('N' is the number of jobs which should be run in parallel): - -$ scons -jN - -A debug build of the program can be created by running: - -$ scons configure debug=1 -$ scons - -Finally, the software can be removed from your system by running - -$ scons -c install - -CONFIGURATION NOTES -------------------- - -The installation scripts are relying on the tde-config program. -The programs tde-config, qmake, uic and moc must be accesssible -through your PATH. - -Qt and kde may not be installed as expected (in QTDIR and TDEDIR) -So until tde-config is able to give that information, you may -have to give those paths. You may also want to tune the build. - -In these cases, you must first run "scons configure" with some options -before running "scons" and "scons install" - -Here are some examples : -On Fedora/Redhat -$ scons configure kdeincludes=/usr/include/tde/ -On Debian -$ scons configure qtincludes=/usr/include/qt/ kdeinclude=/usr/include/tde/ -To install in some particular location with additional include paths -$ scons configure prefix=~/tmp extraincludes=/tmp/include:/usr/local/include -For AMD64 and platforms where folders are like /usr/lib64 -$ scons configure libsuffix=64 - -For more options, run -scons --help - -The build system is based on bksys, a build system that replaces -autoconf, automake and make in a row. Feel free to report your opinion -about it to the bksys authors. - -PACKAGE CREATION ----------------- - -RPM packagers can use the DESTDIR environment variable -$ DESTDIR=/tmp/build-rpm/ scons install - -To use checkinstall, pass the following option -$ checkinstall --fstrans=no --nodoc scons install - diff --git a/languages/cpp/app_templates/kscons_kmdi/Makefile.am b/languages/cpp/app_templates/kscons_kmdi/Makefile.am deleted file mode 100644 index e349e104..00000000 --- a/languages/cpp/app_templates/kscons_kmdi/Makefile.am +++ /dev/null @@ -1,21 +0,0 @@ -dataFiles = app.kcfg app.tdevelop appkmdi.cpp appkmdi.h appkmdiView.cpp \ -appkmdiView.h INSTALL kmdikonsole.cpp kmdikonsole.h main.cpp \ -messages.sh prefs.ui QUICKSTART README SConscript-doc SConscript-src \ -SConstruct settings.kcfgc tips VERSION \ -app_part.cpp app_part.h app_part.rc app_shell.rc - -templateName= kscons_kmdi - -### no need to change below: -template_DATA = $(templateName).kdevtemplate -templatedir = ${appwizarddatadir}/templates - -appwizarddatadir = ${kde_datadir}/kdevappwizard -$(templateName).tar.gz: ${dataFiles} ${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/kscons_kmdi/QUICKSTART b/languages/cpp/app_templates/kscons_kmdi/QUICKSTART deleted file mode 100644 index a5fbba33..00000000 --- a/languages/cpp/app_templates/kscons_kmdi/QUICKSTART +++ /dev/null @@ -1,164 +0,0 @@ ------------------------------------------- -SUMMARY : - -scons -scons install - - -The online documentation of bksys can be found at: -http://freehackers.org/~tnagy/bksys_manual.html - - ... and now for the quickstart: - -CONFIGURING AND COMPILING THE PROJECT(S) -SCONS TIPS -MOC PROCESSING -SCONS MINIMUM DISTRIBUTION -MORE TIPS - ------------------------------------------- -CONFIGURING AND COMPILING THE PROJECT(S) - -The program scons is usually launched as "scons" -When it is not intalled globally, one can run -"./scons" instead of "scons" (ie : to use the local scons -that comes with bksys - see below SCONS MINIMUM DISTRIBUTION -if you do not have scons already) - -To compile the project, you will then only need to launch -scons on the top-level directory, the scripts find and -cache the environment detected *automatically* : --> scons - -To clean the project -> scons -c - -To install the project -> scons install -To install as root user -> su -c 'scons install' -To uninstall the project -> scons -c install -To uninstall (as root) -> su -c 'scons -c install' -To consult the help -> scons -h - -To (re)configure the project and give particular arguments, use : - -> scons configure debug=1 - -The variables are saved automatically after the first run -in files named *.cache.py (look at kde.cache.py, ..) - ------------------------------------------- -SCONS TIPS - -In a subdirectory, it is necessary to launch scons with the -u flag : -scons -u - -This is annoying and you probably want to add this to your .bashrc -export SCONSFLAGS=-u -and forget about it :) - -To make .deb or .rpm packages of your program, use : -checkinstall --fstrans=no --nodoc scons install -(if you have checkinstall on your system of course) - -To make scons run (much) faster, consult ./addons/README in bksys - ------------------------------------------- -MOC PROCESSING - -In qt programs, when a header 'foo.h' contains a class that has -Q_SIGNALS and Q_SLOTS, then 'foo.h' must contain the macro Q_OBJECT -in order to compile. foo_moc.cpp is usually generated, and is -used to produce foo_moc.o which is linked with the -program or the library. - -In kde programs, 'foo.moc' is generated instead of foo_moc.cpp, -and it must be included at the very end of foo.cpp -(add #include "foo.moc" : this increases the speed of -compilation a *lot* and makes less object files. - -Both modes are provided though, see test6-mocfiesta/ - ------------------------------------------- -MINIMUM SCONS DISTRIBUTION - -A minimum scons distribution is included in the archive -for convenience to those who do not have scons packages -for their operating system or their linux -distribution. For a full and more recent version of scons, -please consult http://www.scons.org - -Including this scons distribution to your archive will add -about 63kb (compressed) , while including the necessary -kdescripts (admin/ directory, configure, autom4 cache stuff, -Makefile.in) can add easily 500kb (compressed). - -To compile with the scons distribution : -* unpack it with : - tar xjvf admin/scons-mini.tar.bz2 -* compile the program with : - ./scons (instead of just 'scons') -* install the program with : - ./scons install (instead of just 'scons install') - -More options : -* clean the object files with : - ./scons -c -* uninstall the program with with : - ./scons -c install -* create a package : - ./scons dist - ------------------------------------------- -MORE TIPS - -** static libraries ** -With Makefile.am, one had to make static libraries all the time -because it did not allow having source code in other directories. -This is not the case anymore with scons, so you can specify -sources in other directories relative to the sconscript file, ie: - test1_sources = ['mainfiles/main.cpp', 'otherfile/program.cpp'] - myenv.Program( target = "test1", source = test1_sources ) -To encourage you to switch to the new scheme, the static library -helper has been omitted (look at the end of kde.py if you need one) - -** libtool ** -The LaFile build tool is a cheat that allows klibloader to load -.so files without complaints. If you need real libtool support -you can have a look to the libtool directory : it can work but -remember that libtool is broken on many systems (invalid flags -among others), so when you can work without libtool -(small projects especially), just do it. - -** moc processing ** -As stated above, you should always add #include "foo.moc" -for your qt classes (Q_OBJECT) to save precious compilation time. - -** using a cache ** -It is a good idea to enable the cache feature in SConstruct, -especially if you are doing experiments (it saves your computer -from recompiling the same files over and over again ..). - -** threading ** -myenv.AppendUnique( CPPFLAGS = ['-DQT_THREAD_SUPPORT', '-D_REENTRANT'] ) - -** final notes *** -A medium-sized project containing several targets, libraries and data -files can be converted very quickly. -Also, remember that SConscript files are actually python scripts .. -you can use whatever python feature you want in them, ie: "for" loops, -this is how the kde helpers work (TDEprogram, TDEshlib ..). - -If you are stuck, you can also have a look at more complicated -bksys-based projects like kdissert or kshaderdesigner - -The scons man page and the wiki can be very useful, do not forget to -consult them when you encounter an issue - ------------------------------------------- - -I hope you will enjoy this alternative to the autotools -scripts for kde programming, at least as much as I do : -http://freehackers.org/~tnagy/kdissert/index.html - -Happy kde hacking, - -Thomas Nagy, 2004, 2005 - diff --git a/languages/cpp/app_templates/kscons_kmdi/README b/languages/cpp/app_templates/kscons_kmdi/README deleted file mode 100644 index bf4edf71..00000000 --- a/languages/cpp/app_templates/kscons_kmdi/README +++ /dev/null @@ -1,111 +0,0 @@ ------------------------------------------------ -Kde scons template quickstart -Author: Thomas Nagy -Date: 2005-04-04 ------------------------------------------------ - -This README file explains basic concepts necessary -for starting with this application template. - - -** Building and installing ** - -* To configure the application run "scons configure" - In some rare cases you may need to add flags: - scons configure qtincludes=/usr/include/qt3/include kdeincludes=/usr/lib/trinity/include - -* After building, launch the application and test the dcop - interface by using the command (search a bit) : - dcop - dcop appname-... - dcop appname-... instancenumber - dcop appname-... instancenumber switch_colors - dcop appname switch_colors - Or launch kdcop and search in the menus for your program - name and double-click on 'switch_colors()' - -* The usual targets call the following scons commands : - make -> scons - make clean -> scons -c - make install -> scons install - make uninstall -> scons -c install - make dist -> scons dist - -* To build apps, use TDEprogram, TDEshlib, etc. - these functions are documented at the bottom of kde.py - More information can be found in the QUICKSTART - -* The scons scripts for building kde applications originate - from the 'bksys' distribution. It contains several other examples - that detail the kpart building and the dcop interface - processing : - http://www.kde-apps.org/content/show.php?content=19243 - -* Extending the scons scripts for building the application : - The scons scripts are actually python scripts, so all the - usual tricks apply : 'for' and 'while' loops, 'if', 'else' .. - consult : - http://www.python.org for more information about python - http://www.scons.org for more informationabout scons - -* Simplify your life : install the project in your home directory for -testing purposes. -scons 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-kparts/ -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 : -refer to the file po/SConscript and po/messages.sh - -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/kscons_kmdi/SConscript-doc b/languages/cpp/app_templates/kscons_kmdi/SConscript-doc deleted file mode 100644 index 0c3e07e7..00000000 --- a/languages/cpp/app_templates/kscons_kmdi/SConscript-doc +++ /dev/null @@ -1,92 +0,0 @@ -#! /usr/bin/env python -## This script demonstrates to build and install -## the documentation of a kde program with scons -## -## Thomas Nagy, 2005 - -## This file can be reused freely for any project (see COPYING) - -## First load the environment set in the top-level SConstruct file -Import( 'env' ) -myenv=env.Copy() - -## The following looks complicated but it is not -## We first define a function to install all files as documentation -## The documentation is of course lying in subfolders from here -## * normal files are installed under TDEDOC/destination -## * meinproc files are not installed, but processed into a single -## index.cache.bz2 which is installed afterwards - -## This is far more maintainable to have *one* file than -## having lots of almost empty SConscript in several folders - -################################################################### -# COMMON PART FOR PROCESSING DOCUMENTATION FOLDERS -################################################################### - -import os -import sys -import glob -import SCons.Util - -## Define this to 1 if you are writing documentation else to 0 :) -i_am_a_documentation_writer = 0 - -## This function uses env imported above -def processfolder(folder, lang, destination=""): - # folder is the folder to process - # lang is the language - # destination is the subdirectory in TDEDOC - - docfiles = glob.glob(folder+"/???*.*") # file files that are at least 4 chars wide :) - - # warn about errors - #if len(lang) != 2: - # print "error, lang must be a two-letter string, like 'en'" - - # when the destination is not given, use the folder - if len(destination) == 0: - destination=folder - - docbook_list = [] - for file in docfiles: - - # do not process folders - if not os.path.isfile(file): - continue - # do not process the cache file - if file == 'index.cache.bz2': - continue - # ignore invalid files (TODO??) - if len( SCons.Util.splitext( file ) ) <= 1 : - continue - - ext = SCons.Util.splitext( file )[1] - - # docbook files are processed by meinproc - if ext == '.docbook': - docbook_list.append( file ) - continue - - myenv.TDEinstall('TDEDOC', lang+'/'+destination, file) - - # Now process the index.docbook files .. - if len(docbook_list) == 0: - return - if not os.path.isfile( folder+'/index.docbook' ): - print "Error, index.docbook was not found in "+folder+'/index.docbook' - return - if i_am_a_documentation_writer: - for file in docbook_list: - myenv.Depends( folder+'index.cache.bz2', file ) - myenv.Meinproc( folder+'/index.cache.bz2', folder+'/index.docbook' ) - myenv.TDEinstall( 'TDEDOC', lang+'/'+destination, folder+'/index.cache.bz2' ) - -################################################################### -# TELL WHICH FOLDERS TO PROCESS -################################################################### - -## Use processfolder for each documentation directory -processfolder('en/', 'en', '%{APPNAMELC}') -processfolder('fr/', 'fr', '%{APPNAMELC}') - diff --git a/languages/cpp/app_templates/kscons_kmdi/SConscript-src b/languages/cpp/app_templates/kscons_kmdi/SConscript-src deleted file mode 100644 index c1f9742d..00000000 --- a/languages/cpp/app_templates/kscons_kmdi/SConscript-src +++ /dev/null @@ -1,60 +0,0 @@ -#! /usr/bin/env python -## This script is a quick test to demonstrate (and test) -## the bksys moc handling '#include "file.moc"' can be added .. or not -## -## Thomas Nagy, 2005 -## This file can be reused freely for any project (see COPYING) - -Import('env') -myenv=env.Copy() - -## First build : the shell -## Each tab in it will hold an instance of the part .. - -%{APPNAMELC}_sources=""" -main.cpp -%{APPNAMELC}kmdi.cpp -%{APPNAMELC}kmdiView.cpp -kmdikonsole.cpp -settings.kcfgc -prefs.ui -""" -# Now that we have our list of sources we can build the program -myenv.TDEprogram( '%{APPNAMELC}', %{APPNAMELC}_sources ) # main program -myenv.TDEaddpaths_includes( './ ../' ) # additional paths -myenv.TDEaddlibs( 'qt-mt tdecore kio kparts kmdi' ) # additional libraries - -## Next, the kpart library -## using TDEshlib, the .so and .la are installed automatically when needed - -myenv2=env.Copy() -%{APPNAMELC}part_sources = '%{APPNAMELC}_part.cpp' -myenv2.TDEshlib( 'lib%{APPNAMELC}part', %{APPNAMELC}part_sources) -myenv2.TDEaddpaths_includes( './ #/' ) # the '#' means the top-level directory -myenv2.TDEaddlibs( 'qt-mt kio tdecore tdeprint kparts' ) -# myenv2.TDEaddflags_link( '-DQT_THREAD_SUPPORT' ) - -############################# -## Data files to install - -## NOTE: TDEinstall( resource_type, subdir, list of files ) - -## the .kcfg file -myenv.TDEinstall( 'TDEKCFG', '', '%{APPNAMELC}.kcfg' ) - -## the program .desktop file -myenv.TDEinstall( 'TDEMENU', '/Utilities', '%{APPNAMELC}.desktop' ) - -## the rc file - named *_shell.rc instead of *ui.rc for kpart apps -myenv.TDEinstall( 'TDEDATA', '/%{APPNAMELC}', '%{APPNAMELC}_shell.rc' ) - -## this servicetype desktop file goes in TDEXDG whether the other one goes in TDEMENU -myenv.TDEinstall( 'TDEXDG', '', '%{APPNAMELC}_part.desktop' ) - -## the kpart resource file -myenv.TDEinstall( 'TDEDATA', '/%{APPNAMELC}part', '%{APPNAMELC}_part.rc' ) - -## Installing icons is easy (hi-16-app-%{APPNAMELC}.png, hi-22-app-%{APPNAMELC}.png) -#myenv.TDEicon() - -## do not forget that this is a python script so even loops are allowed... :) diff --git a/languages/cpp/app_templates/kscons_kmdi/SConstruct b/languages/cpp/app_templates/kscons_kmdi/SConstruct deleted file mode 100644 index 3954247c..00000000 --- a/languages/cpp/app_templates/kscons_kmdi/SConstruct +++ /dev/null @@ -1,112 +0,0 @@ -#! /usr/bin/env python - -""" -help -> scons -h -compile -> scons -clean -> scons -c -install -> scons install -uninstall -> scons -c install -configure -> scons configure prefix=/tmp/ita debug=full extraincludes=/usr/local/include:/tmp/include prefix=/usr/local - -Run from a subdirectory -> scons -u -The variables are saved automatically after the first run (look at cache/kde.cache.py, ..) -""" - -################################################################### -# LOAD THE ENVIRONMENT AND SET UP THE TOOLS -################################################################### - -## Load the builders in config -env = Environment( tools=['default', 'generic', 'kde'], toolpath=['./', './admin']) -#env = Environment( tools=['default', 'generic', 'kde', 'othertool'], toolpath=['./', './admin']) - -env.TDEuse("environ rpath") -#env.TDEuse("environ rpath lang_qt thread nohelp") - -################################################################### -# SCRIPTS FOR BUILDING THE TARGETS -################################################################### - -dirs=""" -src -doc -""" -env.subdirs(dirs) - -## Process the translations in the po/ directory -env.TDElang('po/', '%{APPNAMELC}') - -################################################################### -# CONVENIENCE FUNCTIONS TO EMULATE 'make dist' and 'make distclean' -################################################################### - -### To make a tarball of your masterpiece, use 'scons dist' -if 'dist' in COMMAND_LINE_TARGETS: - - ## The target scons dist requires the python module shutil which is in 2.3 - env.EnsurePythonVersion(2, 3) - - import os - APPNAME = 'bksys' - VERSION = os.popen("cat VERSION").read().rstrip() - FOLDER = APPNAME+'-'+VERSION - ARCHIVE = FOLDER+'.tar.bz2' - - ## If your app name and version number are defined in 'version.h', use this instead: - ## (contributed by Dennis Schridde devurandom@gmx@net) - #import re - #INFO = dict( re.findall( '(?m)^#define\s+(\w+)\s+(.*)(?<=\S)', open(r"version.h","rb").read() ) ) - #APPNAME = INFO['APPNAME'] - #VERSION = INFO['VERSION'] - - import shutil - import glob - - ## check if the temporary directory already exists - if os.path.isdir(FOLDER): - shutil.rmtree(FOLDER) - if os.path.isfile(ARCHIVE): - os.remove(ARCHIVE) - - ## create a temporary directory - startdir = os.getcwd() - shutil.copytree(startdir, FOLDER) - - ## remove our object files first - os.popen("find "+FOLDER+" -name \"*cache*\" | xargs rm -rf") - os.popen("find "+FOLDER+" -name \"*.pyc\" | xargs rm -f") - #os.popen("pushd %s && scons -c " % FOLDER) # TODO - - ## CVS cleanup - os.popen("find "+FOLDER+" -name \"CVS\" | xargs rm -rf") - os.popen("find "+FOLDER+" -name \".cvsignore\" | xargs rm -rf") - - ## Subversion cleanup - os.popen("find %s -name .svn -type d | xargs rm -rf" % FOLDER) - - ## GNU Arch cleanup - os.popen("find "+FOLDER+" -name \"{arch}\" | xargs rm -rf") - os.popen("find "+FOLDER+" -name \".arch-i*\" | xargs rm -rf") - - ## Create the tarball (coloured output) - print "\033[92m"+"Writing archive "+ARCHIVE+"\033[0m" - os.popen("tar cjf "+ARCHIVE+" "+FOLDER) - - ## Remove the temporary directory - if os.path.isdir(FOLDER): - shutil.rmtree(FOLDER) - - env.Default(None) - env.Exit(0) - -### Emulate "make distclean" -if 'distclean' in COMMAND_LINE_TARGETS: - ## Remove the cache directory - import os, shutil - if os.path.isdir(env['CACHEDIR']): - shutil.rmtree(env['CACHEDIR']) - os.popen("find . -name \"*.pyc\" | xargs rm -rf") - - env.Default(None) - env.Exit(0) - diff --git a/languages/cpp/app_templates/kscons_kmdi/VERSION b/languages/cpp/app_templates/kscons_kmdi/VERSION deleted file mode 100644 index 2e293c30..00000000 --- a/languages/cpp/app_templates/kscons_kmdi/VERSION +++ /dev/null @@ -1 +0,0 @@ -%{VERSION} diff --git a/languages/cpp/app_templates/kscons_kmdi/app.kcfg b/languages/cpp/app_templates/kscons_kmdi/app.kcfg deleted file mode 100644 index f2c46b64..00000000 --- a/languages/cpp/app_templates/kscons_kmdi/app.kcfg +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - true - - - diff --git a/languages/cpp/app_templates/kscons_kmdi/app.tdevelop b/languages/cpp/app_templates/kscons_kmdi/app.tdevelop deleted file mode 100644 index 317a4cbc..00000000 --- a/languages/cpp/app_templates/kscons_kmdi/app.tdevelop +++ /dev/null @@ -1,169 +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/kscons_kmdi/app_part.cpp b/languages/cpp/app_templates/kscons_kmdi/app_part.cpp deleted file mode 100644 index 70f13d98..00000000 --- a/languages/cpp/app_templates/kscons_kmdi/app_part.cpp +++ /dev/null @@ -1,159 +0,0 @@ -%{CPP_TEMPLATE} - -#include "%{APPNAMELC}_part.h" - -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include - -typedef KParts::GenericFactory<%{APPNAMELC}Part> %{APPNAMELC}PartFactory; -K_EXPORT_COMPONENT_FACTORY( lib%{APPNAMELC}part, %{APPNAMELC}PartFactory ); - -%{APPNAMELC}Part::%{APPNAMELC}Part( TQWidget *parentWidget, const char *widgetName, - TQObject *parent, const char *name, const TQStringList & /*args*/) - : KParts::ReadWritePart(parent) -{ - // we need an instance - setInstance( %{APPNAMELC}PartFactory::instance() ); - - // this should be your custom internal widget - m_widget = new TQMultiLineEdit( parentWidget, widgetName ); - - // notify the part that this is our internal widget - setWidget(m_widget); - - // create our actions - KStdAction::open(this, TQT_SLOT(fileOpen()), actionCollection()); - KStdAction::saveAs(this, TQT_SLOT(fileSaveAs()), actionCollection()); - KStdAction::save(this, TQT_SLOT(save()), actionCollection()); - - // set our XML-UI resource file - setXMLFile("%{APPNAMELC}_part.rc"); - - // we are read-write by default - setReadWrite(true); - - // we are not modified since we haven't done anything yet - setModified(false); -} - -%{APPNAMELC}Part::~%{APPNAMELC}Part() -{ -} - -TDEAboutData *%{APPNAMELC}Part::createAboutData() -{ - // The non-i18n name here must be the same as the directory in - // which the part's rc file is installed - TDEAboutData *aboutData = new TDEAboutData("%{APPNAMELC}part", I18N_NOOP("%{APPNAMELC}Part"), "0.0.1"); - aboutData->addAuthor("%{AUTHOR}", 0, "%{EMAIL}"); - return aboutData; -} - -void %{APPNAMELC}Part::setReadWrite(bool rw) -{ - // notify your internal widget of the read-write state - m_widget->setReadOnly(!rw); - if (rw) - connect(m_widget, TQT_SIGNAL(textChanged()), - this, TQT_SLOT(setModified())); - else - { - disconnect(m_widget, TQT_SIGNAL(textChanged()), - this, TQT_SLOT(setModified())); - } - - ReadWritePart::setReadWrite(rw); -} - -void %{APPNAMELC}Part::setModified(bool modified) -{ - // get a handle on our Save action and make sure it is valid - KAction *save = actionCollection()->action(KStdAction::stdName(KStdAction::Save)); - if (!save) - return; - - // if so, we either enable or disable it based on the current - // state - if (modified) - save->setEnabled(true); - else - save->setEnabled(false); - - // in any event, we want our parent to do it's thing - ReadWritePart::setModified(modified); -} - -bool %{APPNAMELC}Part::openFile() -{ - // m_file is always local so we can use TQFile on it - TQFile file(m_file); - if (file.open(IO_ReadOnly) == false) - return false; - - // our example widget is text-based, so we use TQTextStream instead - // of a raw TQDataStream - TQTextStream stream(&file); - TQString str; - while (!stream.eof()) - str += stream.readLine() + "\n"; - - file.close(); - - // now that we have the entire file, display it - m_widget->setText(str); - - // just for fun, set the status bar - emit setStatusBarText( m_url.prettyURL() ); - - return true; -} - -bool %{APPNAMELC}Part::saveFile() -{ - // if we aren't read-write, return immediately - if (isReadWrite() == false) - return false; - - // m_file is always local, so we use TQFile - TQFile file(m_file); - if (file.open(IO_WriteOnly) == false) - return false; - - // use TQTextStream to dump the text to the file - TQTextStream stream(&file); - stream << m_widget->text(); - - file.close(); - - return true; -} - -void %{APPNAMELC}Part::fileOpen() -{ - // this slot is called whenever the File->Open menu is selected, - // the Open shortcut is pressed (usually CTRL+O) or the Open toolbar - // button is clicked - TQString file_name = KFileDialog::getOpenFileName(); - - if (file_name.isEmpty() == false) - openURL(file_name); -} - -void %{APPNAMELC}Part::fileSaveAs() -{ - // this slot is called whenever the File->Save As menu is selected, - TQString file_name = KFileDialog::getSaveFileName(); - if (file_name.isEmpty() == false) - saveAs(file_name); -} - -#include "%{APPNAMELC}_part.moc" diff --git a/languages/cpp/app_templates/kscons_kmdi/app_part.h b/languages/cpp/app_templates/kscons_kmdi/app_part.h deleted file mode 100644 index 42d1b22c..00000000 --- a/languages/cpp/app_templates/kscons_kmdi/app_part.h +++ /dev/null @@ -1,75 +0,0 @@ -%{H_TEMPLATE} - -#ifndef _%{APPNAMEUC}PART_H_ -#define _%{APPNAMEUC}PART_H_ - -#include -#include - -class TQMultiLineEdit; -class TQWidget; -class TQPainter; -class KURL; -class TDEAboutData; - -/** - * This is a "Part". It that does all the real work in a KPart - * application. - * - * @short Main Part - * @author %{AUTHOR} - * @version %{VERSION} - */ -class %{APPNAMELC}Part : public KParts::ReadWritePart -{ - Q_OBJECT - -public: - /** - * Default constructor - */ - %{APPNAMELC}Part(TQWidget *parentWidget, const char *widgetName, - TQObject *parent, const char *name, const TQStringList & /*args*/); - - /** - * Destructor - */ - virtual ~%{APPNAMELC}Part(); - - /** - * This is a virtual function inherited from KParts::ReadWritePart. - * A shell will use this to inform this Part if it should act - * read-only - */ - virtual void setReadWrite(bool rw); - - /** - * Reimplemented to disable and enable Save action - */ - virtual void setModified(bool modified); - - /** - * About data for the part - */ - static TDEAboutData *createAboutData(); - -protected: - /** - * This must be implemented by each part - */ - virtual bool openFile(); - - /** - * This must be implemented by each read-write part - */ - virtual bool saveFile(); - -protected slots: - void fileOpen(); - void fileSaveAs(); - -private: - TQMultiLineEdit *m_widget; -}; - -#endif // _%{APPNAMEUC}PART_H_ diff --git a/languages/cpp/app_templates/kscons_kmdi/app_part.rc b/languages/cpp/app_templates/kscons_kmdi/app_part.rc deleted file mode 100644 index cec8ec5c..00000000 --- a/languages/cpp/app_templates/kscons_kmdi/app_part.rc +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/languages/cpp/app_templates/kscons_kmdi/app_shell.rc b/languages/cpp/app_templates/kscons_kmdi/app_shell.rc deleted file mode 100644 index c8b2bb98..00000000 --- a/languages/cpp/app_templates/kscons_kmdi/app_shell.rc +++ /dev/null @@ -1,33 +0,0 @@ - - - - &File - - - - - - - - &View - - &Settings - - - - - - - - - - - - -Main Toolbar - - - - - - diff --git a/languages/cpp/app_templates/kscons_kmdi/appkmdi.cpp b/languages/cpp/app_templates/kscons_kmdi/appkmdi.cpp deleted file mode 100644 index 30e6647c..00000000 --- a/languages/cpp/app_templates/kscons_kmdi/appkmdi.cpp +++ /dev/null @@ -1,394 +0,0 @@ -%{CPP_TEMPLATE} - -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "settings.h" -#include "prefs.h" -#include "%{APPNAMELC}kmdiView.h" -#include "kmdikonsole.h" -#include "%{APPNAMELC}kmdi.h" - -%{APPNAMELC}kmdi::%{APPNAMELC}kmdi(KMdi::MdiMode mode) - : KMdiMainFrm( 0, "%{APPNAMELC}", mode ) -{ - resize( 800, 600 ); // start at 800x600 the first time - - setManagedDockPositionModeEnabled(true); - setStandardMDIMenuEnabled(false); - - m_manager = new KParts::PartManager(this); - connect(m_manager, TQT_SIGNAL(activePartChanged(KParts::Part*)), - this, TQT_SLOT(createGUI(KParts::Part*)) ); - -#if KDE_IS_VERSION(3, 3, 0) - setToolviewStyle( KMdi::TextAndIcon ); - tabWidget()->setHoverCloseButton( false ); -#endif - - setMenuForSDIModeSysButtons( menuBar() ); - setManagedDockPositionModeEnabled(true); - - m_console = NULL; - - // accept dnd - setAcceptDrops(true); - - // then, setup our actions - setupActions(); - - //createShellGUI( true ); - - // and a status bar - statusBar()->show(); - - connect( this, TQT_SIGNAL( viewActivated( KMdiChildView * ) ), this, TQT_SLOT( currentChanged( KMdiChildView * ) ) ); - - m_console = new kmdikonsole(this, "konsole"); - m_console->setIcon( SmallIcon("konsole") ); - m_console->setCaption( i18n("Terminal") ); - addToolWindow( m_console, KDockWidget::DockBottom, getMainDockWidget(), 20 ); - - -#if KDE_IS_VERSION(3, 3, 0) - if (Settings::showCloseTabsButton()) - { - TQToolButton *but = new TQToolButton(tabWidget()); - but->setIconSet(SmallIcon("tab_remove")); - but->adjustSize(); - but->hide(); - connect(but, TQT_SIGNAL(clicked()), actionCollection()->action( "file_close" ), TQT_SIGNAL(activated())); - tabWidget()->setCornerWidget(but, TopRight); - } -#endif - - // 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(); - - // Read the dock config only if the app was started at least only once - kmdi is tricky - TDEConfig *cfg = new TDEConfig("%{APPNAMELC}_dockposrc"); - if (cfg->readNumEntry("%{APPNAMELC}_main_dock_settings", 0) == 1) manager()->readConfig(cfg); - cfg->writeEntry("%{APPNAMELC}_main_dock_settings", 1); - delete cfg; - - showTipOnStart(); -} - -%{APPNAMELC}kmdi::~%{APPNAMELC}kmdi() -{ - // Write the dock config on exit - TDEConfig *cfg = new TDEConfig("%{APPNAMELC}_dockposrc"); - manager()->writeConfig(cfg); - delete cfg; - delete m_console; -} - -void %{APPNAMELC}kmdi::setupActions() -{ - setXMLFile("%{APPNAMELC}_shell.rc"); - - KStdAction::openNew(this, TQT_SLOT(slotFileNew()), actionCollection()); - - KStdAction::tipOfDay( this, TQT_SLOT( showTip() ), actionCollection() - )->setWhatsThis(i18n("This shows useful tips on the use of this application.")); - - KStdAction::close(this, TQT_SLOT(slotFileClose()), actionCollection()); - KStdAction::quit(this, TQT_SLOT(slotFileQuit()), actionCollection()); - - m_toolbarAction = KStdAction::showToolbar(this, TQT_SLOT(optionsShowToolbar()), actionCollection()); - m_statusbarAction = KStdAction::showStatusbar(this, TQT_SLOT(optionsShowStatusbar()), actionCollection()); - - KStdAction::keyBindings(this, TQT_SLOT(optionsConfigureKeys()), actionCollection()); - KStdAction::preferences(this, TQT_SLOT(optionsPreferences()), actionCollection()); - - KAction* action = KStdAction::configureToolbars(this, - TQT_SLOT(optionsConfigureToolbars()), actionCollection()); - - createGUI( NULL ); -} - -void %{APPNAMELC}kmdi::showTip() -{ - KTipDialog::showTip(this,TQString(),true); -} - -void %{APPNAMELC}kmdi::showTipOnStart() -{ - KTipDialog::showTip(this); -} - -void %{APPNAMELC}kmdi::slotFileNew() -{ - %{APPNAMELC}kmdiView *view = new %{APPNAMELC}kmdiView(this); - m_manager->addPart( view->part() ); - - addWindow( view ); - - // add the tree view to the widget stack - m_views += view; - - currentChanged( view ); -} - -void %{APPNAMELC}kmdi::openURL(const KURL & url) -{ - // check if the url is not already opened first - TQValueList<%{APPNAMELC}kmdiView*>::iterator it = m_views.begin(); - TQValueList<%{APPNAMELC}kmdiView*>::iterator end = m_views.end(); - for (; it != end; ++it) - { - %{APPNAMELC}kmdiView *view = *it; - if (view->part()->url() == url) - { - activateView(view); - return; - } - } - - %{APPNAMELC}kmdiView *view = new %{APPNAMELC}kmdiView(this); - m_manager->addPart( view->part() ); - - addWindow( view ); - - m_views += view; - - view->part()->openURL(url); - currentChanged( view ); -} - -void %{APPNAMELC}kmdi::currentChanged( KMdiChildView *current ) -{ - //kdWarning()<<"current view changed"<setActivePart(NULL); - //setCaption("()"); - return; - } - - // switch to the corresponding document - if ( m_views.contains( (%{APPNAMELC}kmdiView*) current ) ) - { - %{APPNAMELC}kmdiView *view = (%{APPNAMELC}kmdiView*) current; - //view->updateCaption(); - m_manager->setActivePart( view->part() ); - } -} - -void %{APPNAMELC}kmdi::slotFileClose() -{ - requestClose( activeWindow() ); -} - -bool %{APPNAMELC}kmdi::requestClose(KMdiChildView* v) -{ - // kdWarning()<<"closing view"<part()->queryClose()) - { - m_manager->removePart( view->part() ); - - closeWindow( view ); - m_views.clear(); - setCaption("kdissert"); - return true; - } - return false; - } - return true; - } - - %{APPNAMELC}kmdiView *view = (%{APPNAMELC}kmdiView*) v; - if ( m_views.contains( view ) ) - { - m_views.remove( view ); - if ( view->part()->queryClose() ) - { - m_manager->removePart( view->part() ); - - closeWindow( view ); - return true; - } - return false; - } - return true; -} - -void %{APPNAMELC}kmdi::slotFileQuit() -{ - close(); -} - -void %{APPNAMELC}kmdi::optionsShowToolbar() -{ - if (m_toolbarAction->isChecked()) - toolBar()->show(); - else - toolBar()->hide(); -} - -void %{APPNAMELC}kmdi::optionsShowStatusbar() -{ - if (m_statusbarAction->isChecked()) - statusBar()->show(); - else - statusBar()->hide(); -} - -void %{APPNAMELC}kmdi::optionsConfigureKeys() -{ - //KKeyDialog::configure(actionCollection()); - KKeyDialog dlg( false, this ); - TQPtrList clients = guiFactory()->clients(); - - for( TQPtrListIterator it( clients ); it.current(); ++it ) - dlg.insert ( (*it)->actionCollection(), (*it)->instance()->aboutData()->programName() ); - - dlg.configure(); - - for (int i=0; ipart()->reloadXML(); - } -} - -void %{APPNAMELC}kmdi::optionsConfigureToolbars() -{ - //saveMainWindowSettings(TDEGlobal::config(), autoSaveGroup()); -} - -void %{APPNAMELC}kmdi::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.) - //createGUI(); - //applyMainWindowSettings(TDEGlobal::config(), autoSaveGroup()); -} - -void %{APPNAMELC}kmdi::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 - if (TDEConfigDialog::showDialog("settings")) - return; - - TDEConfigDialog *dialog = new TDEConfigDialog(this, "settings", Settings::self(), KDialogBase::Swallow); - dialog->addPage(new prefs(), i18n("General"), "package_settings"); - connect(dialog, TQT_SIGNAL(settingsChanged()), this, TQT_SLOT(settingsChanged())); - dialog->show(); -} - -void %{APPNAMELC}kmdi::settingsChanged() -{ - // propagate the changes to our views - /*TQValueList<%{APPNAMELC}kmdiView*>::iterator it = m_views.begin(); - TQValueList<%{APPNAMELC}kmdiView*>::iterator end = m_views.end(); - for (; it != end; ++it) - { - %{APPNAMELC}kmdiView *view = *it; - view->settingsChanged(); - }*/ -} - -void %{APPNAMELC}kmdi::changeStatusbar(const TQString& text) -{ - // display the text on the statusbar - statusBar()->message(text, 2000); -} - -void %{APPNAMELC}kmdi::dragEnterEvent(TQDragEnterEvent *event) -{ - // accept uri drops only - event->accept(KURLDrag::canDecode(event)); -} - -void %{APPNAMELC}kmdi::dropEvent(TQDropEvent *event) -{ - KURL::List urls; - - // see if we can decode a URI.. if not, just ignore it - if (KURLDrag::decode(event, urls) && !urls.isEmpty()) - { - // okay, we have a URI.. process it - const KURL &url = urls.first(); - - // load in the file - openURL(url); - } -} - -bool %{APPNAMELC}kmdi::queryClose() -{ - TQValueList<%{APPNAMELC}kmdiView*>::iterator it; - - // check if we can close all documents - for (it = m_views.begin(); it != m_views.end(); ++it) - { - // kdWarning()<<"searching for the part"<part()->queryClose()) - { - return false; - } - } - - // and now close the documents - for (it = m_views.begin(); it != m_views.end(); ++it) - { - // now close all views - %{APPNAMELC}kmdiView *view = *it; - - m_manager->removePart( view->part() ); - closeWindow( view ); - } - - return true; -} - -#include "%{APPNAMELC}kmdi.moc" diff --git a/languages/cpp/app_templates/kscons_kmdi/appkmdi.h b/languages/cpp/app_templates/kscons_kmdi/appkmdi.h deleted file mode 100644 index fc4d73aa..00000000 --- a/languages/cpp/app_templates/kscons_kmdi/appkmdi.h +++ /dev/null @@ -1,83 +0,0 @@ -%{H_TEMPLATE} - -#ifndef _%{APPNAMEUC}KMDI_H -#define _%{APPNAMEUC}KMDI_H - -#include - -#include -#include -#include - -class KToggleAction; -class KRecentFilesAction; - -class kmdikonsole; -class KMdiChildView; -class TQWidgetStack; -class %{APPNAMELC}kmdiView; -class TextProperties; -class MiscProperties; - -/** - * This class serves as the main window for %{APPNAMELC}kmdi. It handles the - * menus, toolbars, and status bars. - * - * @short Main window class - */ -class %{APPNAMELC}kmdi : public KMdiMainFrm -{ - Q_OBJECT - - public: - %{APPNAMELC}kmdi( KMdi::MdiMode mode ); - virtual ~%{APPNAMELC}kmdi(); - void showTipOnStart(); - - public slots: - void openURL( const KURL& ); - - protected: - virtual void dragEnterEvent(TQDragEnterEvent *event); - virtual void dropEvent(TQDropEvent *event); - virtual bool queryClose(); - - private slots: - void slotFileNew(); - void slotFileClose(); - void slotFileQuit(); - - /// this is called when a new file is saved - void showTip(); - - void optionsShowToolbar(); - void optionsShowStatusbar(); - void optionsConfigureKeys(); - void optionsConfigureToolbars(); - void optionsPreferences(); - void newToolbarConfig(); - - - void changeStatusbar(const TQString& text); - - void currentChanged( KMdiChildView *current ); - bool requestClose(KMdiChildView* view); - - void settingsChanged(); - - private: - void setupAccel(); - void setupActions(); - - TQValueList<%{APPNAMELC}kmdiView*> m_views; - - KToggleAction *m_toolbarAction; - KToggleAction *m_statusbarAction; - - KParts::PartManager *m_manager; - - kmdikonsole *m_console; -}; - -#endif // _%{APPNAMEUC}KMDI_H - diff --git a/languages/cpp/app_templates/kscons_kmdi/appkmdiView.cpp b/languages/cpp/app_templates/kscons_kmdi/appkmdiView.cpp deleted file mode 100644 index d7c00001..00000000 --- a/languages/cpp/app_templates/kscons_kmdi/appkmdiView.cpp +++ /dev/null @@ -1,63 +0,0 @@ -%{CPP_TEMPLATE} - -#include -#include - -#include -#include -#include -#include -#include -#include - -#include "%{APPNAMELC}kmdiView.h" - - - %{APPNAMELC}kmdiView::%{APPNAMELC}kmdiView( TQWidget *parentWidget, const char *name ) -: KMdiChildView( parentWidget, name ) -{ - m_part = NULL; - - // this routine will find and load our Part. it finds the Part by - // name which is a bad idea usually.. but it's alright in this - // case since our Part is made for this Shell - KLibFactory *factory = KLibLoader::self()->factory("lib%{APPNAMELC}part"); - //KLibFactory *factory = KLibLoader::self()->factory("libkatepart"); - if (factory) - { - // now that the Part is loaded, we cast it to a Part to get - // our hands on it - m_part = static_cast(factory->create( - this, "katepart", "KParts::ReadWritePart" )); - - if (m_part) - { - part()->widget()->setFocus(); - setFocusProxy(part()->widget()); - - TQBoxLayout* layout = new TQHBoxLayout(this, 0, -1, "kdissertviewlayout" ); - part()->widget()->reparent( this, TQPoint(0, 0) ); - layout->addWidget( part()->widget() ); - - // connect( m_part, TQT_SIGNAL(stateChanged()), this, TQT_SLOT(updateCaption()) ); - } - else - { - KMessageBox::error(this, i18n("Could not find our part.")); - } - } - else - { - // if we couldn't find our Part, we exit since the Shell by - // itself can't do anything useful - KMessageBox::error(this, i18n("Could not find our part.")); - return; - } -} - -%{APPNAMELC}kmdiView::~%{APPNAMELC}kmdiView() -{ - delete m_part->widget(); -} - -#include "%{APPNAMELC}kmdiView.moc" diff --git a/languages/cpp/app_templates/kscons_kmdi/appkmdiView.h b/languages/cpp/app_templates/kscons_kmdi/appkmdiView.h deleted file mode 100644 index d0fde2f8..00000000 --- a/languages/cpp/app_templates/kscons_kmdi/appkmdiView.h +++ /dev/null @@ -1,30 +0,0 @@ -%{H_TEMPLATE} - -#ifndef _%{APPNAMEUC}KMDIVIEW_H -#define _%{APPNAMEUC}KMDIVIEW_H - -#include -#include -#include - -/** - * This class serves as the %{APPNAMELC}kmdi view. - * - * @short main view class - */ -class %{APPNAMELC}kmdiView : public KMdiChildView -{ - Q_OBJECT - - public: - %{APPNAMELC}kmdiView( TQWidget *parentWidget=0L, const char *name=0L ); - virtual ~%{APPNAMELC}kmdiView(); - - KParts::ReadWritePart *part() { return m_part; } - - private: - KParts::ReadWritePart *m_part; -}; - -#endif // _%{APPNAMEUC}KMDIVIEW_H - diff --git a/languages/cpp/app_templates/kscons_kmdi/kmdikonsole.cpp b/languages/cpp/app_templates/kscons_kmdi/kmdikonsole.cpp deleted file mode 100644 index 5bd6b949..00000000 --- a/languages/cpp/app_templates/kscons_kmdi/kmdikonsole.cpp +++ /dev/null @@ -1,76 +0,0 @@ -%{CPP_TEMPLATE} - -#include -#include - -#include -#include -#include -#include -#include -#include - -#include "kmdikonsole.h" - -kmdikonsole::kmdikonsole(TQWidget *parent, const char *name) : TQVBox(parent, name) -{ - m_haskonsole = false; - respawn(); -} - -kmdikonsole::~kmdikonsole() -{ -} - -void kmdikonsole::respawn() -{ - KLibFactory *factory = KLibLoader::self()->factory("libkonsolepart"); - - if (!factory) return; - m_part = (KParts::ReadOnlyPart *) factory->create(this); - - if (!m_part) return; - - if (m_part->widget()->inherits(TQFRAME_OBJECT_NAME_STRING)) - ((TQFrame*)m_part->widget())->setFrameStyle(TQFrame::Panel|TQFrame::Sunken); - - m_haskonsole=true; - connect( m_part, TQT_SIGNAL(destroyed()), this, TQT_SLOT(slotDestroyed()) ); - - m_part->widget()->show(); - show(); -} - -void kmdikonsole::setDirectory(const TQString &dirname) -{ - if (m_haskonsole) - { - KURL url(dirname); - if (m_part->url() != url) - m_part->openURL(url); - } -} - -void kmdikonsole::showEvent(TQShowEvent *ev) -{ - TQWidget::showEvent(ev); - activate(); -} - -void kmdikonsole::activate() -{ - if (m_haskonsole) - { - m_part->widget()->show(); - setFocusProxy(m_part->widget()); - m_part->widget()->setFocus(); - } -} - -void kmdikonsole::slotDestroyed() -{ - m_haskonsole=false; - respawn(); -} - -#include "kmdikonsole.moc" diff --git a/languages/cpp/app_templates/kscons_kmdi/kmdikonsole.h b/languages/cpp/app_templates/kscons_kmdi/kmdikonsole.h deleted file mode 100644 index df3a1526..00000000 --- a/languages/cpp/app_templates/kscons_kmdi/kmdikonsole.h +++ /dev/null @@ -1,33 +0,0 @@ -%{H_TEMPLATE} - -#ifndef KMDIKONSOLE_H -#define KMDIKONSOLE_H - -#include - -class kmdikonsole : public TQVBox -{ - Q_OBJECT - - - public: - kmdikonsole( TQWidget* parent, const char* name=0); - ~kmdikonsole(); - - public slots: - void setDirectory(const TQString & dir); - void activate(); - - private slots: - void slotDestroyed(); - void respawn(); - - protected: - void showEvent(TQShowEvent *ev); - - private: - KParts::ReadOnlyPart *m_part; - bool m_haskonsole; -}; - -#endif // KMDIKONSOLE_H diff --git a/languages/cpp/app_templates/kscons_kmdi/kscons_kmdi.kdevtemplate b/languages/cpp/app_templates/kscons_kmdi/kscons_kmdi.kdevtemplate deleted file mode 100644 index 8f8fb599..00000000 --- a/languages/cpp/app_templates/kscons_kmdi/kscons_kmdi.kdevtemplate +++ /dev/null @@ -1,271 +0,0 @@ -# TDE Config File -[General] -Name=Scons-based KMDI application -Name[ca]=Aplicació per a KMDI basada en Scons -Name[da]=Scons-baseret KMDI-program -Name[de]=Auf Scons basierende KMDI-Anwendung -Name[el]=Μια εφαρμογή KMDI βασισμένης στο Scons -Name[es]=Aplicación KMDI basada en Scons -Name[et]=KMDI rakendus Sconsi põhjal -Name[eu]=Scons-en oinarritutako KMDI aplikazioa -Name[fa]=کاربرد KMDI بر مبنای Scons -Name[fr]=Application KMDI basée sur Scons -Name[ga]=Feidhmchlár KMDI bunaithe ar Scons -Name[gl]=Aplicación KMDI baseada en Scons -Name[hu]=Scons-alapú KMDI-alkalmazás -Name[it]=Applicazione KMDI basata su scons -Name[ja]=Scons ベースの KMDI アプリケーション -Name[nds]=Op "scons" opbuut KMDI-Programm -Name[ne]=स्कोन-आधारित KMDI अनुप्रयोग -Name[nl]=Scons gebaseerde KMDI-toepassing -Name[pl]=Program KMDI wykorzystujący Scons -Name[pt]=Aplicação KMDI usando Scons -Name[pt_BR]=Aplicação KMDI usando Scons -Name[ru]=Многооконное приложение TDE на базе Scons -Name[sk]=KMDI aplikácia založená na Scons -Name[sr]=KMDI програм на основу Scons-а -Name[sr@Latn]=KMDI program na osnovu Scons-a -Name[sv]=Scons-baserat KMDI-program -Name[tr]=Scons tabanlı KMDI uygulaması -Name[zh_CN]=基于 Scons 的 KMDI 应用程序 -Name[zh_TW]=Scons 為基礎的 KMDI 應用程式 -Category=C++/TDE -Icon=kscons_kmdi.png -Comment=Generates a complex KMDI application. Scons scripts are provided for compiling and installing the application. -Comment[ca]=Genera una complexa aplicació per a KMDI. Els scripts en Scons són proveïts per a compilar i instal·lar l'aplicació. -Comment[da]=Genererer et komplekst TDE-program. Der sørges for scons-scripter til at kompilere og installere programmet. -Comment[de]=Erstellt eine aufwändige KMDI-Anwendung. Scons-Skripte zum Kompilieren und Installieren der Anwendung werden zur Verfügung gestellt. -Comment[el]=Δημιουργεί μια πολύπλοκη εφαρμογή KMDI. Προσφέρονται σενάρια Scons για τη μεταγλώττιση και εγκατάσταση της εφαρμογής. -Comment[es]=Genera una aplicación KMDI compleja. Se proporcionan guiones en Scons para compilar e instalar la aplicación. -Comment[et]=Keerulise KMDI rakenduse loomine. Luuakse ka Sconsi skriptid rakenduse kompileerimiseks ja paigaldamiseks. -Comment[eu]=KMDI aplikazio konplexu bat sortzen du. Aplikazioak konpilatu eta aplikazioa instalatzeko Scons script-ak sortzen ditu. -Comment[fa]=یک کاربرد پیچیدۀ KMDI تولید می‌کند. دست‌نوشته‌های Scons برای ترجمه و نصب کاربرد فراهم می‌شوند. -Comment[fr]=Génère une application KMDI évoluée. Des scripts Scons sont fournis pour compiler et installer l'application. -Comment[gl]=Xera unha aplicación complexa KMDI. Os scripts Scons proporciónanse para compilar e instalar a aplicación. -Comment[hu]=Létrehoz egy komplex KMDI alkalmazást. Az alkalmazás lefordításához és telepítéséhez Scons-szkriptek állnak rendelkezésre. -Comment[it]=Genera una applicazione KMDI complessa. Gli script scons sono forniti per compilare e istallare l'applicazione. -Comment[nds]=Stellt en vigeliensch KMDI-Programm op. Stellt Scons-Skripten för't Kompileren un Installeren vun't Programm praat. -Comment[ne]=जटिल KMDI अनुप्रयोग उत्पन्न गर्दछ । स्कोन स्क्रिप्टहरू अनुप्रयोग स्थापना र कम्पाइल गर्नका लागि प्रदान गरिन्छ । -Comment[nl]=Genereert een complexe KMDI-applicatie. Scons-scripts worden gebruikt voor compilatie en installatie. -Comment[pl]=Generuje złożony program z powłoką KMDI. Do kompilacji i instalacji wykorzystywany jest skrypt Scons. -Comment[pt]=Gera uma aplicação complexa com KMDI. Os ficheiros do Scons são fornecidos para compilar e instalar a aplicação. -Comment[pt_BR]=Gera uma aplicação complexa com KMDI. Os ficheiros do Scons são fornecidos para compilar e instalar a aplicação. -Comment[ru]=Создание полноценного многооконного приложения TDE. Для сборки и установки этого приложения будут использованы скрипты Scons. -Comment[sk]=Vygeneruje komplexnú KMDI aplikáciu. K dispozícii je Scons skriptna kompiláciu a inštaláciu aplikácie. -Comment[sr]=Прави сложени KMDI програм. Дате су Scons скрипте за превођење и инсталирање програма. -Comment[sr@Latn]=Pravi složeni KMDI program. Date su Scons skripte za prevođenje i instaliranje programa. -Comment[sv]=Skapar ett komplext KMDI-program. Scons-skript tillhandahålls för att kompilera och installera programmet. -Comment[tr]=Karmaşık bir KMDI uygulaması yaratır. Uygulamayı derlemek ve kurmak için scons betikleri sağlanmıştır. -Comment[zh_CN]=生成一个复杂的 KMDI 应用程序。此时会提供 Scons 脚本以供编译并安装应用程序。 -Comment[zh_TW]=產生一個複雜的 KMDI 應用程式。Scons 文稿是用於編譯與安裝應用程式。 -FileTemplates=h,CStyle,cpp,CStyle -ShowFilesAfterGeneration=%{dest}/QUICKSTART -Archive=kscons_kmdi.tar.gz - -[SCONS] -Type=include -File=%{tdevelop}/template-common/scons.kdevtemplate - -[MKDIR_DOCBOOK1] -Type=mkdir -Dir=%{dest}/doc - -[MKDIR_DOCBOOK2] -Type=mkdir -Dir=%{dest}/doc/en - -[FILE1] -Type=install -Source=%{src}/SConscript-doc -Dest=%{dest}/doc/SConscript - -[FILE2] -Type=install -EscapeXML=true -Source=%{tdevelop}/template-common/kde-index.docbook -Dest=%{dest}/doc/en/index.docbook - -[FILE3] -Type=install -EscapeXML=true -Source=%{src}/app.tdevelop -Dest=%{dest}/%{APPNAMELC}.tdevelop - -[FILE4] -Type=install -Source=%{src}/SConstruct -Dest=%{dest}/SConstruct - -[MkDir3] -Type=mkdir -Dir=%{dest}/src - -[FILE6] -Type=install -Source=%{tdevelop}/template-common/tde-app.desktop -Dest=%{dest}/src/%{APPNAMELC}.desktop - -[FILE7] -Type=install -Source=%{tdevelop}/template-common/hi16-app-app.png -Dest=%{dest}/src/hi16-app-%{APPNAMELC}.png -Process=false - -[FILE8] -Type=install -Source=%{tdevelop}/template-common/hi32-app-app.png -Dest=%{dest}/src/hi32-app-%{APPNAMELC}.png -Process=false - -[MkDir4] -Type=mkdir -Dir=%{dest}/po - -[FILE10] -Type=install -Source=%{src}/SConscript-src -Dest=%{dest}/src/SConscript - -[FILE11] -Type=install -Source=%{src}/appkmdi.cpp -Dest=%{dest}/src/%{APPNAMELC}kmdi.cpp - -[FILE12] -Type=install -Source=%{src}/appkmdi.h -Dest=%{dest}/src/%{APPNAMELC}kmdi.h - -[FILE13] -Type=install -EscapeXML=true -Source=%{src}/prefs.ui -Dest=%{dest}/src/prefs.ui - -[FILE14] -Type=install -Source=%{src}/appkmdiView.cpp -Dest=%{dest}/src/%{APPNAMELC}kmdiView.cpp - -[FILE15] -Type=install -Source=%{src}/appkmdiView.h -Dest=%{dest}/src/%{APPNAMELC}kmdiView.h - -[FILE19] -Type=install -Source=%{src}/main.cpp -Dest=%{dest}/src/main.cpp - -[FILE20] -Type=install -EscapeXML=true -Source=%{src}/app_shell.rc -Dest=%{dest}/src/%{APPNAMELC}_shell.rc - -[FILE21] -Type=install -Source=%{src}/README -Dest=%{dest}/src/README - -[FILE22] -Type=install -Source=%{src}/app.kcfg -Dest=%{dest}/src/%{APPNAMELC}.kcfg - -[FILE23] -Type=install -Source=%{src}/settings.kcfgc -Dest=%{dest}/src/settings.kcfgc - -[FILE25] -Type=install -Source=%{src}/tips -Dest=%{dest}/src/tips - -[FILE27] -Type=install -Source=%{src}/VERSION -Dest=%{dest}/VERSION - -[FILE28] -Type=install -Source=%{src}/INSTALL -Dest=%{dest}/INSTALL - -[FILE29] -Type=install -Source=%{src}/QUICKSTART -Dest=%{dest}/QUICKSTART - -[FILE30] -Type=install -Source=%{src}/messages.sh -Dest=%{dest}/po/messages.sh - -[FILE31] -Type=install -Source=%{src}/kmdikonsole.cpp -Dest=%{dest}/src/kmdikonsole.cpp - -[FILE32] -Type=install -Source=%{src}/kmdikonsole.h -Dest=%{dest}/src/kmdikonsole.h - -[FILE34] -Type=install -Source=%{src}/app_part.cpp -Dest=%{dest}/src/%{APPNAMELC}_part.cpp - -[FILE35] -Type=install -Source=%{src}/app_part.h -Dest=%{dest}/src/%{APPNAMELC}_part.h - -[FILE36] -Type=install -Source=%{tdevelop}/template-common/tde-app.desktop -Dest=%{dest}/src/%{APPNAMELC}.desktop - -[FILE37] -Type=install -Source=%{tdevelop}/template-common/tde-part.desktop -Dest=%{dest}/src/%{APPNAMELC}_part.desktop - -[FILE38] -Type=install -Source=%{src}/app_part.rc -Dest=%{dest}/src/%{APPNAMELC}_part.rc - -[MSG] -Type=message -Comment=A TDE application with scons scripts was created in %{dest} -Comment[ca]=Una aplicació per al TDE amb scripts en Scons ha estat creada e n %{dest} -Comment[da]=Et TDE program med scons-scripter blev oprette i %{dest} -Comment[de]=Eine TDE-Anwendung mit Scons-Skripten wurde in %{dest} erstellt. -Comment[el]=Μια εφαρμογή TDE με σενάρια scons δημιουργήθηκε στο %{dest} -Comment[es]=Una aplicación para TDE con guiones de Scons ha sido creada en %{dest} -Comment[et]=TDE rakendus Sconsi skriptidega loodi asukohta %{dest} -Comment[eu]=Scons script-dun TDE aplikazio bat sortu da hemen: %{dest} -Comment[fa]=یک کاربرد TDE با دست‌نوشته‌های scons در %{dest} ایجاد شد -Comment[fr]=Une application TDE comprenant des scripts Scons a été créée dans %{dest} -Comment[ga]=Cruthaíodh feidhmchlár TDE le scripteanna scons i %{dest} -Comment[gl]=Creouse unha aplicación TDE con scripts scons en %{dest} -Comment[hu]=Létrejött egy Scons-szkripteket használó TDE-alapú alkalmazás itt: %{dest} -Comment[it]=È stata creata un'applicazione TDE con gli script scons in %{dest} -Comment[ja]=Scons スクリプトを使った TDE アプリケーションを %{dest} に作成しました -Comment[nds]=In %{dest} wöör en TDE-Programm mit scons-Skripten opstellt -Comment[ne]=स्कोन स्क्रिप्टसँग केडीई अनुप्रयोग %{dest} मा सिर्जना गरियो -Comment[nl]=Een TDE applicatie inclusief Scons-scripts is aangemaakt in %{dest} -Comment[pl]=Program TDE ze skryptami scons utworzony w %{dest} -Comment[pt]=Foi criada uma aplicação do TDE com ficheiros do 'scons' em %{dest} -Comment[pt_BR]=Foi criada uma aplicação do TDE com ficheiros do 'scons' em %{dest} -Comment[ru]=Приложение TDE со скриптами Scons создано в %{dest} -Comment[sk]=TDE aplikácia so scons skriptom bola vytvorená v %{dest} -Comment[sr]=TDE програм са scons скриптама направљен је у %{dest} -Comment[sr@Latn]=TDE program sa scons skriptama napravljen je u %{dest} -Comment[sv]=Ett TDE-program med Scons-skript skapades i %{dest} -Comment[tr]=Scons betikleri olan bir TDE uygulaması %{dest} içinde yaratıldı. -Comment[zh_CN]=在 %{dest} 中创建了带 scons 脚本的 TDE 应用程序 -Comment[zh_TW]=一個內含 scons 文稿的 TDE 應用程式已建立於 %{dest} diff --git a/languages/cpp/app_templates/kscons_kmdi/kscons_kmdi.png b/languages/cpp/app_templates/kscons_kmdi/kscons_kmdi.png deleted file mode 100644 index 72a347ee..00000000 Binary files a/languages/cpp/app_templates/kscons_kmdi/kscons_kmdi.png and /dev/null differ diff --git a/languages/cpp/app_templates/kscons_kmdi/main.cpp b/languages/cpp/app_templates/kscons_kmdi/main.cpp deleted file mode 100644 index dca1e7a6..00000000 --- a/languages/cpp/app_templates/kscons_kmdi/main.cpp +++ /dev/null @@ -1,60 +0,0 @@ -%{CPP_TEMPLATE} - -#include -#include -#include -#include -#include - -#include "%{APPNAMELC}kmdi.h" - -static const char description[] = -I18N_NOOP("A simple kmdi app"); - -static const char version[] = "0.0.1"; - -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}" ); - - // warning, utf-8 char - //about.addCredit( "bksys authors", "Thomas Nagy, Julien Antille" ); - - TDECmdLineArgs::init(argc, argv, &about); - TDECmdLineArgs::addCmdLineOptions(options); - - TDEApplication app; - - // see if we are starting with session management - /*if (app.isRestored()) - { - RESTORE((%{APPNAME}); - } else */ - { - // no session.. just start up normally - TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); - - %{APPNAMELC}kmdi *widget = new %{APPNAMELC}kmdi( KMdi::IDEAlMode ); - - if (args->count() != 0) - { - for (int i=0; i < args->count(); i++) - { - widget->openURL( args->url( i ) ); - } - } - widget->show(); - args->clear(); - } - - return app.exec(); -} - diff --git a/languages/cpp/app_templates/kscons_kmdi/messages.sh b/languages/cpp/app_templates/kscons_kmdi/messages.sh deleted file mode 100755 index a0ce678a..00000000 --- a/languages/cpp/app_templates/kscons_kmdi/messages.sh +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/sh - -# Inspired by Makefile.common from coolo -# this script is used to update the .po files - -# To update the translations, you will need a specific gettext -# patched for kde and a lot of patience, tenacity, luck, time .. - - -# I guess one should only update the .po files when all .cpp files -# are generated (after a make or scons) - -# If you have a better way to do this, do not keep that info -# 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 -TIPSDIR=$SRCDIR # tipsdir is the directory containing the tips - -TDEDIR=`tde-config --prefix` -EXTRACTRC=extractrc -TDEPOT=`tde-config --prefix`/include/kde.pot -XGETTEXT="xgettext -C -ki18n -ktr2i18n -kI18N_NOOP -ktranslate -kaliasLocale -x $TDEPOT " - -## check that kde.pot is available -if ! test -e $TDEPOT; then - echo "$TDEPOT does not exist, there is something wrong with your installation!" - XGETTEXT="xgettext -C -ki18n -ktr2i18n -kI18N_NOOP -ktranslate -kaliasLocale " -fi - -> rc.cpp - -## extract the strings -echo "extracting the strings" - -# process the .ui and .rc files -$EXTRACTRC `find $SRCDIR -iname *.rc` >> rc.cpp -$EXTRACTRC `find $SRCDIR -iname *.ui` >> rc.cpp -echo -e 'i18n("_: NAME OF TRANSLATORS\\n"\n"Your names")\ni18n("_: EMAIL OF TRANSLATORS\\n"\n"Your emails")' > $SRCDIR/_translatorinfo.cpp - -# process the tips - $SRCDIR is supposed to be where the tips are living -pushd $TIPSDIR; preparetips >tips.cpp; popd - -$XGETTEXT `find $SRCDIR -name "*.cpp"` -o kdissert.pot - -# remove the intermediate files -rm -f $TIPSDIR/tips.cpp -rm -f rc.cpp -rm -f $SRCDIR/_translatorinfo.cpp - -## now merge the .po files .. -echo "merging the .po files" - -for i in `ls *.po`; do - msgmerge $i kdissert.pot -o $i || exit 1 -done - -## finished -echo "Done" - diff --git a/languages/cpp/app_templates/kscons_kmdi/prefs.ui b/languages/cpp/app_templates/kscons_kmdi/prefs.ui deleted file mode 100644 index 7830280b..00000000 --- a/languages/cpp/app_templates/kscons_kmdi/prefs.ui +++ /dev/null @@ -1,30 +0,0 @@ - -prefs - - -prefs - - - -0 -0 -241 -47 - - - - -unnamed - - - -kcfg_showCloseTabsButton - - -Show close buttons on the right of tabs - - - - - - diff --git a/languages/cpp/app_templates/kscons_kmdi/settings.kcfgc b/languages/cpp/app_templates/kscons_kmdi/settings.kcfgc deleted file mode 100644 index 384510cd..00000000 --- a/languages/cpp/app_templates/kscons_kmdi/settings.kcfgc +++ /dev/null @@ -1,6 +0,0 @@ -# Code generation options for kconfig_compiler -File=%{APPNAMELC}.kcfg -ClassName=Settings -Singleton=true -Mutators=col_background,col_foreground -# will create the necessary code for setting those variables diff --git a/languages/cpp/app_templates/kscons_kmdi/tips b/languages/cpp/app_templates/kscons_kmdi/tips deleted file mode 100644 index b9618b42..00000000 --- a/languages/cpp/app_templates/kscons_kmdi/tips +++ /dev/null @@ -1,6 +0,0 @@ - - -

... that automake was not involved in building this kde application ?

-

The tdevelop template "kscons_kxt" was used instead.

- -
diff --git a/languages/cpp/app_templates/kscons_kxt/README b/languages/cpp/app_templates/kscons_kxt/README index bf4edf71..e7aa2647 100644 --- a/languages/cpp/app_templates/kscons_kxt/README +++ b/languages/cpp/app_templates/kscons_kxt/README @@ -83,7 +83,7 @@ embeddable in other apps. For example, the kmplayer kpart can be called to play in your app. For more details, consult : -http://www-106.ibm.com/developerworks/library/l-kparts/ +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 diff --git a/languages/cpp/app_templates/kscons_tdemdi/CMakeLists.txt b/languages/cpp/app_templates/kscons_tdemdi/CMakeLists.txt new file mode 100644 index 00000000..c05f1bb1 --- /dev/null +++ b/languages/cpp/app_templates/kscons_tdemdi/CMakeLists.txt @@ -0,0 +1,30 @@ +################################################# +# +# (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( kscons_tdemdi.tar.gz ALL + COMMAND tar zcf kscons_tdemdi.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} + app.kcfg app.tdevelop apptdemdi.cpp apptdemdi.h apptdemdiView.cpp + apptdemdiView.h INSTALL tdemdikonsole.cpp tdemdikonsole.h + main.cpp messages.sh prefs.ui QUICKSTART README + SConscript-doc SConscript-src SConstruct settings.kcfgc + tips VERSION app_part.cpp app_part.h app_part.rc + app_shell.rc +) + + +install( FILES + ${CMAKE_CURRENT_BINARY_DIR}/kscons_tdemdi.tar.gz kscons_tdemdi.png + DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard ) + + +install( FILES + kscons_tdemdi.kdevtemplate + DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates ) diff --git a/languages/cpp/app_templates/kscons_tdemdi/INSTALL b/languages/cpp/app_templates/kscons_tdemdi/INSTALL new file mode 100644 index 00000000..e61a3acc --- /dev/null +++ b/languages/cpp/app_templates/kscons_tdemdi/INSTALL @@ -0,0 +1,83 @@ +REQUIREMENTS +------------ + +* TDE headers & libraries for tdelibs +* A Python interpreter for the compilation + +scons v0.96.1 or newer is recommended, but it's not required since a +minimum scons distribution is included in the package. + +BUILDING AND INSTALLING +----------------------- + +For configuring, compiling and installing the application and +if you do have Scons 0.96.1 or newer installed, just run: + +$ scons +$ scons install (as root user) + +In case you don't have Scons installed, you can use +the accompanying minimum scons by running: + +$ tar xjvf admin/scons-mini.tar.bz2 +$ ./scons +$ ./scons install + +ADVANCED BUILD FEATURES & DEINSTALLING +-------------------------------------- + +In case you want to execute many compilation jobs in parallel (because you +want to make use of a SMP system or a compile cluster, for instance), +you can use ('N' is the number of jobs which should be run in parallel): + +$ scons -jN + +A debug build of the program can be created by running: + +$ scons configure debug=1 +$ scons + +Finally, the software can be removed from your system by running + +$ scons -c install + +CONFIGURATION NOTES +------------------- + +The installation scripts are relying on the tde-config program. +The programs tde-config, qmake, uic and moc must be accesssible +through your PATH. + +Qt and kde may not be installed as expected (in QTDIR and TDEDIR) +So until tde-config is able to give that information, you may +have to give those paths. You may also want to tune the build. + +In these cases, you must first run "scons configure" with some options +before running "scons" and "scons install" + +Here are some examples : +On Fedora/Redhat +$ scons configure kdeincludes=/usr/include/tde/ +On Debian +$ scons configure qtincludes=/usr/include/qt/ kdeinclude=/usr/include/tde/ +To install in some particular location with additional include paths +$ scons configure prefix=~/tmp extraincludes=/tmp/include:/usr/local/include +For AMD64 and platforms where folders are like /usr/lib64 +$ scons configure libsuffix=64 + +For more options, run +scons --help + +The build system is based on bksys, a build system that replaces +autoconf, automake and make in a row. Feel free to report your opinion +about it to the bksys authors. + +PACKAGE CREATION +---------------- + +RPM packagers can use the DESTDIR environment variable +$ DESTDIR=/tmp/build-rpm/ scons install + +To use checkinstall, pass the following option +$ checkinstall --fstrans=no --nodoc scons install + diff --git a/languages/cpp/app_templates/kscons_tdemdi/Makefile.am b/languages/cpp/app_templates/kscons_tdemdi/Makefile.am new file mode 100644 index 00000000..191ea8ee --- /dev/null +++ b/languages/cpp/app_templates/kscons_tdemdi/Makefile.am @@ -0,0 +1,21 @@ +dataFiles = app.kcfg app.tdevelop apptdemdi.cpp apptdemdi.h apptdemdiView.cpp \ +apptdemdiView.h INSTALL tdemdikonsole.cpp tdemdikonsole.h main.cpp \ +messages.sh prefs.ui QUICKSTART README SConscript-doc SConscript-src \ +SConstruct settings.kcfgc tips VERSION \ +app_part.cpp app_part.h app_part.rc app_shell.rc + +templateName= kscons_tdemdi + +### no need to change below: +template_DATA = $(templateName).kdevtemplate +templatedir = ${appwizarddatadir}/templates + +appwizarddatadir = ${kde_datadir}/kdevappwizard +$(templateName).tar.gz: ${dataFiles} ${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/kscons_tdemdi/QUICKSTART b/languages/cpp/app_templates/kscons_tdemdi/QUICKSTART new file mode 100644 index 00000000..a5fbba33 --- /dev/null +++ b/languages/cpp/app_templates/kscons_tdemdi/QUICKSTART @@ -0,0 +1,164 @@ +------------------------------------------ +SUMMARY : + +scons +scons install + + +The online documentation of bksys can be found at: +http://freehackers.org/~tnagy/bksys_manual.html + + ... and now for the quickstart: + +CONFIGURING AND COMPILING THE PROJECT(S) +SCONS TIPS +MOC PROCESSING +SCONS MINIMUM DISTRIBUTION +MORE TIPS + +------------------------------------------ +CONFIGURING AND COMPILING THE PROJECT(S) + +The program scons is usually launched as "scons" +When it is not intalled globally, one can run +"./scons" instead of "scons" (ie : to use the local scons +that comes with bksys - see below SCONS MINIMUM DISTRIBUTION +if you do not have scons already) + +To compile the project, you will then only need to launch +scons on the top-level directory, the scripts find and +cache the environment detected *automatically* : +-> scons + +To clean the project -> scons -c + +To install the project -> scons install +To install as root user -> su -c 'scons install' +To uninstall the project -> scons -c install +To uninstall (as root) -> su -c 'scons -c install' +To consult the help -> scons -h + +To (re)configure the project and give particular arguments, use : + -> scons configure debug=1 + +The variables are saved automatically after the first run +in files named *.cache.py (look at kde.cache.py, ..) + +------------------------------------------ +SCONS TIPS + +In a subdirectory, it is necessary to launch scons with the -u flag : +scons -u + +This is annoying and you probably want to add this to your .bashrc +export SCONSFLAGS=-u +and forget about it :) + +To make .deb or .rpm packages of your program, use : +checkinstall --fstrans=no --nodoc scons install +(if you have checkinstall on your system of course) + +To make scons run (much) faster, consult ./addons/README in bksys + +------------------------------------------ +MOC PROCESSING + +In qt programs, when a header 'foo.h' contains a class that has +Q_SIGNALS and Q_SLOTS, then 'foo.h' must contain the macro Q_OBJECT +in order to compile. foo_moc.cpp is usually generated, and is +used to produce foo_moc.o which is linked with the +program or the library. + +In kde programs, 'foo.moc' is generated instead of foo_moc.cpp, +and it must be included at the very end of foo.cpp +(add #include "foo.moc" : this increases the speed of +compilation a *lot* and makes less object files. + +Both modes are provided though, see test6-mocfiesta/ + +------------------------------------------ +MINIMUM SCONS DISTRIBUTION + +A minimum scons distribution is included in the archive +for convenience to those who do not have scons packages +for their operating system or their linux +distribution. For a full and more recent version of scons, +please consult http://www.scons.org + +Including this scons distribution to your archive will add +about 63kb (compressed) , while including the necessary +kdescripts (admin/ directory, configure, autom4 cache stuff, +Makefile.in) can add easily 500kb (compressed). + +To compile with the scons distribution : +* unpack it with : + tar xjvf admin/scons-mini.tar.bz2 +* compile the program with : + ./scons (instead of just 'scons') +* install the program with : + ./scons install (instead of just 'scons install') + +More options : +* clean the object files with : + ./scons -c +* uninstall the program with with : + ./scons -c install +* create a package : + ./scons dist + +------------------------------------------ +MORE TIPS + +** static libraries ** +With Makefile.am, one had to make static libraries all the time +because it did not allow having source code in other directories. +This is not the case anymore with scons, so you can specify +sources in other directories relative to the sconscript file, ie: + test1_sources = ['mainfiles/main.cpp', 'otherfile/program.cpp'] + myenv.Program( target = "test1", source = test1_sources ) +To encourage you to switch to the new scheme, the static library +helper has been omitted (look at the end of kde.py if you need one) + +** libtool ** +The LaFile build tool is a cheat that allows klibloader to load +.so files without complaints. If you need real libtool support +you can have a look to the libtool directory : it can work but +remember that libtool is broken on many systems (invalid flags +among others), so when you can work without libtool +(small projects especially), just do it. + +** moc processing ** +As stated above, you should always add #include "foo.moc" +for your qt classes (Q_OBJECT) to save precious compilation time. + +** using a cache ** +It is a good idea to enable the cache feature in SConstruct, +especially if you are doing experiments (it saves your computer +from recompiling the same files over and over again ..). + +** threading ** +myenv.AppendUnique( CPPFLAGS = ['-DQT_THREAD_SUPPORT', '-D_REENTRANT'] ) + +** final notes *** +A medium-sized project containing several targets, libraries and data +files can be converted very quickly. +Also, remember that SConscript files are actually python scripts .. +you can use whatever python feature you want in them, ie: "for" loops, +this is how the kde helpers work (TDEprogram, TDEshlib ..). + +If you are stuck, you can also have a look at more complicated +bksys-based projects like kdissert or kshaderdesigner + +The scons man page and the wiki can be very useful, do not forget to +consult them when you encounter an issue + +------------------------------------------ + +I hope you will enjoy this alternative to the autotools +scripts for kde programming, at least as much as I do : +http://freehackers.org/~tnagy/kdissert/index.html + +Happy kde hacking, + +Thomas Nagy, 2004, 2005 + diff --git a/languages/cpp/app_templates/kscons_tdemdi/README b/languages/cpp/app_templates/kscons_tdemdi/README new file mode 100644 index 00000000..e7aa2647 --- /dev/null +++ b/languages/cpp/app_templates/kscons_tdemdi/README @@ -0,0 +1,111 @@ +----------------------------------------------- +Kde scons template quickstart +Author: Thomas Nagy +Date: 2005-04-04 +----------------------------------------------- + +This README file explains basic concepts necessary +for starting with this application template. + + +** Building and installing ** + +* To configure the application run "scons configure" + In some rare cases you may need to add flags: + scons configure qtincludes=/usr/include/qt3/include kdeincludes=/usr/lib/trinity/include + +* After building, launch the application and test the dcop + interface by using the command (search a bit) : + dcop + dcop appname-... + dcop appname-... instancenumber + dcop appname-... instancenumber switch_colors + dcop appname switch_colors + Or launch kdcop and search in the menus for your program + name and double-click on 'switch_colors()' + +* The usual targets call the following scons commands : + make -> scons + make clean -> scons -c + make install -> scons install + make uninstall -> scons -c install + make dist -> scons dist + +* To build apps, use TDEprogram, TDEshlib, etc. + these functions are documented at the bottom of kde.py + More information can be found in the QUICKSTART + +* The scons scripts for building kde applications originate + from the 'bksys' distribution. It contains several other examples + that detail the kpart building and the dcop interface + processing : + http://www.kde-apps.org/content/show.php?content=19243 + +* Extending the scons scripts for building the application : + The scons scripts are actually python scripts, so all the + usual tricks apply : 'for' and 'while' loops, 'if', 'else' .. + consult : + http://www.python.org for more information about python + http://www.scons.org for more informationabout scons + +* Simplify your life : install the project in your home directory for +testing purposes. +scons 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 : +refer to the file po/SConscript and po/messages.sh + +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/kscons_tdemdi/SConscript-doc b/languages/cpp/app_templates/kscons_tdemdi/SConscript-doc new file mode 100644 index 00000000..0c3e07e7 --- /dev/null +++ b/languages/cpp/app_templates/kscons_tdemdi/SConscript-doc @@ -0,0 +1,92 @@ +#! /usr/bin/env python +## This script demonstrates to build and install +## the documentation of a kde program with scons +## +## Thomas Nagy, 2005 + +## This file can be reused freely for any project (see COPYING) + +## First load the environment set in the top-level SConstruct file +Import( 'env' ) +myenv=env.Copy() + +## The following looks complicated but it is not +## We first define a function to install all files as documentation +## The documentation is of course lying in subfolders from here +## * normal files are installed under TDEDOC/destination +## * meinproc files are not installed, but processed into a single +## index.cache.bz2 which is installed afterwards + +## This is far more maintainable to have *one* file than +## having lots of almost empty SConscript in several folders + +################################################################### +# COMMON PART FOR PROCESSING DOCUMENTATION FOLDERS +################################################################### + +import os +import sys +import glob +import SCons.Util + +## Define this to 1 if you are writing documentation else to 0 :) +i_am_a_documentation_writer = 0 + +## This function uses env imported above +def processfolder(folder, lang, destination=""): + # folder is the folder to process + # lang is the language + # destination is the subdirectory in TDEDOC + + docfiles = glob.glob(folder+"/???*.*") # file files that are at least 4 chars wide :) + + # warn about errors + #if len(lang) != 2: + # print "error, lang must be a two-letter string, like 'en'" + + # when the destination is not given, use the folder + if len(destination) == 0: + destination=folder + + docbook_list = [] + for file in docfiles: + + # do not process folders + if not os.path.isfile(file): + continue + # do not process the cache file + if file == 'index.cache.bz2': + continue + # ignore invalid files (TODO??) + if len( SCons.Util.splitext( file ) ) <= 1 : + continue + + ext = SCons.Util.splitext( file )[1] + + # docbook files are processed by meinproc + if ext == '.docbook': + docbook_list.append( file ) + continue + + myenv.TDEinstall('TDEDOC', lang+'/'+destination, file) + + # Now process the index.docbook files .. + if len(docbook_list) == 0: + return + if not os.path.isfile( folder+'/index.docbook' ): + print "Error, index.docbook was not found in "+folder+'/index.docbook' + return + if i_am_a_documentation_writer: + for file in docbook_list: + myenv.Depends( folder+'index.cache.bz2', file ) + myenv.Meinproc( folder+'/index.cache.bz2', folder+'/index.docbook' ) + myenv.TDEinstall( 'TDEDOC', lang+'/'+destination, folder+'/index.cache.bz2' ) + +################################################################### +# TELL WHICH FOLDERS TO PROCESS +################################################################### + +## Use processfolder for each documentation directory +processfolder('en/', 'en', '%{APPNAMELC}') +processfolder('fr/', 'fr', '%{APPNAMELC}') + diff --git a/languages/cpp/app_templates/kscons_tdemdi/SConscript-src b/languages/cpp/app_templates/kscons_tdemdi/SConscript-src new file mode 100644 index 00000000..97f5140c --- /dev/null +++ b/languages/cpp/app_templates/kscons_tdemdi/SConscript-src @@ -0,0 +1,60 @@ +#! /usr/bin/env python +## This script is a quick test to demonstrate (and test) +## the bksys moc handling '#include "file.moc"' can be added .. or not +## +## Thomas Nagy, 2005 +## This file can be reused freely for any project (see COPYING) + +Import('env') +myenv=env.Copy() + +## First build : the shell +## Each tab in it will hold an instance of the part .. + +%{APPNAMELC}_sources=""" +main.cpp +%{APPNAMELC}tdemdi.cpp +%{APPNAMELC}tdemdiView.cpp +tdemdikonsole.cpp +settings.kcfgc +prefs.ui +""" +# Now that we have our list of sources we can build the program +myenv.TDEprogram( '%{APPNAMELC}', %{APPNAMELC}_sources ) # main program +myenv.TDEaddpaths_includes( './ ../' ) # additional paths +myenv.TDEaddlibs( 'qt-mt tdecore kio tdeparts tdemdi' ) # additional libraries + +## Next, the kpart library +## using TDEshlib, the .so and .la are installed automatically when needed + +myenv2=env.Copy() +%{APPNAMELC}part_sources = '%{APPNAMELC}_part.cpp' +myenv2.TDEshlib( 'lib%{APPNAMELC}part', %{APPNAMELC}part_sources) +myenv2.TDEaddpaths_includes( './ #/' ) # the '#' means the top-level directory +myenv2.TDEaddlibs( 'qt-mt kio tdecore tdeprint tdeparts' ) +# myenv2.TDEaddflags_link( '-DQT_THREAD_SUPPORT' ) + +############################# +## Data files to install + +## NOTE: TDEinstall( resource_type, subdir, list of files ) + +## the .kcfg file +myenv.TDEinstall( 'TDEKCFG', '', '%{APPNAMELC}.kcfg' ) + +## the program .desktop file +myenv.TDEinstall( 'TDEMENU', '/Utilities', '%{APPNAMELC}.desktop' ) + +## the rc file - named *_shell.rc instead of *ui.rc for kpart apps +myenv.TDEinstall( 'TDEDATA', '/%{APPNAMELC}', '%{APPNAMELC}_shell.rc' ) + +## this servicetype desktop file goes in TDEXDG whether the other one goes in TDEMENU +myenv.TDEinstall( 'TDEXDG', '', '%{APPNAMELC}_part.desktop' ) + +## the kpart resource file +myenv.TDEinstall( 'TDEDATA', '/%{APPNAMELC}part', '%{APPNAMELC}_part.rc' ) + +## Installing icons is easy (hi-16-app-%{APPNAMELC}.png, hi-22-app-%{APPNAMELC}.png) +#myenv.TDEicon() + +## do not forget that this is a python script so even loops are allowed... :) diff --git a/languages/cpp/app_templates/kscons_tdemdi/SConstruct b/languages/cpp/app_templates/kscons_tdemdi/SConstruct new file mode 100644 index 00000000..3954247c --- /dev/null +++ b/languages/cpp/app_templates/kscons_tdemdi/SConstruct @@ -0,0 +1,112 @@ +#! /usr/bin/env python + +""" +help -> scons -h +compile -> scons +clean -> scons -c +install -> scons install +uninstall -> scons -c install +configure -> scons configure prefix=/tmp/ita debug=full extraincludes=/usr/local/include:/tmp/include prefix=/usr/local + +Run from a subdirectory -> scons -u +The variables are saved automatically after the first run (look at cache/kde.cache.py, ..) +""" + +################################################################### +# LOAD THE ENVIRONMENT AND SET UP THE TOOLS +################################################################### + +## Load the builders in config +env = Environment( tools=['default', 'generic', 'kde'], toolpath=['./', './admin']) +#env = Environment( tools=['default', 'generic', 'kde', 'othertool'], toolpath=['./', './admin']) + +env.TDEuse("environ rpath") +#env.TDEuse("environ rpath lang_qt thread nohelp") + +################################################################### +# SCRIPTS FOR BUILDING THE TARGETS +################################################################### + +dirs=""" +src +doc +""" +env.subdirs(dirs) + +## Process the translations in the po/ directory +env.TDElang('po/', '%{APPNAMELC}') + +################################################################### +# CONVENIENCE FUNCTIONS TO EMULATE 'make dist' and 'make distclean' +################################################################### + +### To make a tarball of your masterpiece, use 'scons dist' +if 'dist' in COMMAND_LINE_TARGETS: + + ## The target scons dist requires the python module shutil which is in 2.3 + env.EnsurePythonVersion(2, 3) + + import os + APPNAME = 'bksys' + VERSION = os.popen("cat VERSION").read().rstrip() + FOLDER = APPNAME+'-'+VERSION + ARCHIVE = FOLDER+'.tar.bz2' + + ## If your app name and version number are defined in 'version.h', use this instead: + ## (contributed by Dennis Schridde devurandom@gmx@net) + #import re + #INFO = dict( re.findall( '(?m)^#define\s+(\w+)\s+(.*)(?<=\S)', open(r"version.h","rb").read() ) ) + #APPNAME = INFO['APPNAME'] + #VERSION = INFO['VERSION'] + + import shutil + import glob + + ## check if the temporary directory already exists + if os.path.isdir(FOLDER): + shutil.rmtree(FOLDER) + if os.path.isfile(ARCHIVE): + os.remove(ARCHIVE) + + ## create a temporary directory + startdir = os.getcwd() + shutil.copytree(startdir, FOLDER) + + ## remove our object files first + os.popen("find "+FOLDER+" -name \"*cache*\" | xargs rm -rf") + os.popen("find "+FOLDER+" -name \"*.pyc\" | xargs rm -f") + #os.popen("pushd %s && scons -c " % FOLDER) # TODO + + ## CVS cleanup + os.popen("find "+FOLDER+" -name \"CVS\" | xargs rm -rf") + os.popen("find "+FOLDER+" -name \".cvsignore\" | xargs rm -rf") + + ## Subversion cleanup + os.popen("find %s -name .svn -type d | xargs rm -rf" % FOLDER) + + ## GNU Arch cleanup + os.popen("find "+FOLDER+" -name \"{arch}\" | xargs rm -rf") + os.popen("find "+FOLDER+" -name \".arch-i*\" | xargs rm -rf") + + ## Create the tarball (coloured output) + print "\033[92m"+"Writing archive "+ARCHIVE+"\033[0m" + os.popen("tar cjf "+ARCHIVE+" "+FOLDER) + + ## Remove the temporary directory + if os.path.isdir(FOLDER): + shutil.rmtree(FOLDER) + + env.Default(None) + env.Exit(0) + +### Emulate "make distclean" +if 'distclean' in COMMAND_LINE_TARGETS: + ## Remove the cache directory + import os, shutil + if os.path.isdir(env['CACHEDIR']): + shutil.rmtree(env['CACHEDIR']) + os.popen("find . -name \"*.pyc\" | xargs rm -rf") + + env.Default(None) + env.Exit(0) + diff --git a/languages/cpp/app_templates/kscons_tdemdi/VERSION b/languages/cpp/app_templates/kscons_tdemdi/VERSION new file mode 100644 index 00000000..2e293c30 --- /dev/null +++ b/languages/cpp/app_templates/kscons_tdemdi/VERSION @@ -0,0 +1 @@ +%{VERSION} diff --git a/languages/cpp/app_templates/kscons_tdemdi/app.kcfg b/languages/cpp/app_templates/kscons_tdemdi/app.kcfg new file mode 100644 index 00000000..f2c46b64 --- /dev/null +++ b/languages/cpp/app_templates/kscons_tdemdi/app.kcfg @@ -0,0 +1,12 @@ + + + + + + true + + + diff --git a/languages/cpp/app_templates/kscons_tdemdi/app.tdevelop b/languages/cpp/app_templates/kscons_tdemdi/app.tdevelop new file mode 100644 index 00000000..317a4cbc --- /dev/null +++ b/languages/cpp/app_templates/kscons_tdemdi/app.tdevelop @@ -0,0 +1,169 @@ + + + + %{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/kscons_tdemdi/app_part.cpp b/languages/cpp/app_templates/kscons_tdemdi/app_part.cpp new file mode 100644 index 00000000..2bdb725d --- /dev/null +++ b/languages/cpp/app_templates/kscons_tdemdi/app_part.cpp @@ -0,0 +1,159 @@ +%{CPP_TEMPLATE} + +#include "%{APPNAMELC}_part.h" + +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include + +typedef KParts::GenericFactory<%{APPNAMELC}Part> %{APPNAMELC}PartFactory; +K_EXPORT_COMPONENT_FACTORY( lib%{APPNAMELC}part, %{APPNAMELC}PartFactory ); + +%{APPNAMELC}Part::%{APPNAMELC}Part( TQWidget *parentWidget, const char *widgetName, + TQObject *parent, const char *name, const TQStringList & /*args*/) + : KParts::ReadWritePart(parent) +{ + // we need an instance + setInstance( %{APPNAMELC}PartFactory::instance() ); + + // this should be your custom internal widget + m_widget = new TQMultiLineEdit( parentWidget, widgetName ); + + // notify the part that this is our internal widget + setWidget(m_widget); + + // create our actions + KStdAction::open(this, TQT_SLOT(fileOpen()), actionCollection()); + KStdAction::saveAs(this, TQT_SLOT(fileSaveAs()), actionCollection()); + KStdAction::save(this, TQT_SLOT(save()), actionCollection()); + + // set our XML-UI resource file + setXMLFile("%{APPNAMELC}_part.rc"); + + // we are read-write by default + setReadWrite(true); + + // we are not modified since we haven't done anything yet + setModified(false); +} + +%{APPNAMELC}Part::~%{APPNAMELC}Part() +{ +} + +TDEAboutData *%{APPNAMELC}Part::createAboutData() +{ + // The non-i18n name here must be the same as the directory in + // which the part's rc file is installed + TDEAboutData *aboutData = new TDEAboutData("%{APPNAMELC}part", I18N_NOOP("%{APPNAMELC}Part"), "0.0.1"); + aboutData->addAuthor("%{AUTHOR}", 0, "%{EMAIL}"); + return aboutData; +} + +void %{APPNAMELC}Part::setReadWrite(bool rw) +{ + // notify your internal widget of the read-write state + m_widget->setReadOnly(!rw); + if (rw) + connect(m_widget, TQT_SIGNAL(textChanged()), + this, TQT_SLOT(setModified())); + else + { + disconnect(m_widget, TQT_SIGNAL(textChanged()), + this, TQT_SLOT(setModified())); + } + + ReadWritePart::setReadWrite(rw); +} + +void %{APPNAMELC}Part::setModified(bool modified) +{ + // get a handle on our Save action and make sure it is valid + KAction *save = actionCollection()->action(KStdAction::stdName(KStdAction::Save)); + if (!save) + return; + + // if so, we either enable or disable it based on the current + // state + if (modified) + save->setEnabled(true); + else + save->setEnabled(false); + + // in any event, we want our parent to do it's thing + ReadWritePart::setModified(modified); +} + +bool %{APPNAMELC}Part::openFile() +{ + // m_file is always local so we can use TQFile on it + TQFile file(m_file); + if (file.open(IO_ReadOnly) == false) + return false; + + // our example widget is text-based, so we use TQTextStream instead + // of a raw TQDataStream + TQTextStream stream(&file); + TQString str; + while (!stream.eof()) + str += stream.readLine() + "\n"; + + file.close(); + + // now that we have the entire file, display it + m_widget->setText(str); + + // just for fun, set the status bar + emit setStatusBarText( m_url.prettyURL() ); + + return true; +} + +bool %{APPNAMELC}Part::saveFile() +{ + // if we aren't read-write, return immediately + if (isReadWrite() == false) + return false; + + // m_file is always local, so we use TQFile + TQFile file(m_file); + if (file.open(IO_WriteOnly) == false) + return false; + + // use TQTextStream to dump the text to the file + TQTextStream stream(&file); + stream << m_widget->text(); + + file.close(); + + return true; +} + +void %{APPNAMELC}Part::fileOpen() +{ + // this slot is called whenever the File->Open menu is selected, + // the Open shortcut is pressed (usually CTRL+O) or the Open toolbar + // button is clicked + TQString file_name = KFileDialog::getOpenFileName(); + + if (file_name.isEmpty() == false) + openURL(file_name); +} + +void %{APPNAMELC}Part::fileSaveAs() +{ + // this slot is called whenever the File->Save As menu is selected, + TQString file_name = KFileDialog::getSaveFileName(); + if (file_name.isEmpty() == false) + saveAs(file_name); +} + +#include "%{APPNAMELC}_part.moc" diff --git a/languages/cpp/app_templates/kscons_tdemdi/app_part.h b/languages/cpp/app_templates/kscons_tdemdi/app_part.h new file mode 100644 index 00000000..13f773a1 --- /dev/null +++ b/languages/cpp/app_templates/kscons_tdemdi/app_part.h @@ -0,0 +1,75 @@ +%{H_TEMPLATE} + +#ifndef _%{APPNAMEUC}PART_H_ +#define _%{APPNAMEUC}PART_H_ + +#include +#include + +class TQMultiLineEdit; +class TQWidget; +class TQPainter; +class KURL; +class TDEAboutData; + +/** + * This is a "Part". It that does all the real work in a KPart + * application. + * + * @short Main Part + * @author %{AUTHOR} + * @version %{VERSION} + */ +class %{APPNAMELC}Part : public KParts::ReadWritePart +{ + Q_OBJECT + +public: + /** + * Default constructor + */ + %{APPNAMELC}Part(TQWidget *parentWidget, const char *widgetName, + TQObject *parent, const char *name, const TQStringList & /*args*/); + + /** + * Destructor + */ + virtual ~%{APPNAMELC}Part(); + + /** + * This is a virtual function inherited from KParts::ReadWritePart. + * A shell will use this to inform this Part if it should act + * read-only + */ + virtual void setReadWrite(bool rw); + + /** + * Reimplemented to disable and enable Save action + */ + virtual void setModified(bool modified); + + /** + * About data for the part + */ + static TDEAboutData *createAboutData(); + +protected: + /** + * This must be implemented by each part + */ + virtual bool openFile(); + + /** + * This must be implemented by each read-write part + */ + virtual bool saveFile(); + +protected slots: + void fileOpen(); + void fileSaveAs(); + +private: + TQMultiLineEdit *m_widget; +}; + +#endif // _%{APPNAMEUC}PART_H_ diff --git a/languages/cpp/app_templates/kscons_tdemdi/app_part.rc b/languages/cpp/app_templates/kscons_tdemdi/app_part.rc new file mode 100644 index 00000000..cec8ec5c --- /dev/null +++ b/languages/cpp/app_templates/kscons_tdemdi/app_part.rc @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/languages/cpp/app_templates/kscons_tdemdi/app_shell.rc b/languages/cpp/app_templates/kscons_tdemdi/app_shell.rc new file mode 100644 index 00000000..c8b2bb98 --- /dev/null +++ b/languages/cpp/app_templates/kscons_tdemdi/app_shell.rc @@ -0,0 +1,33 @@ + + + + &File + + + + + + + + &View + + &Settings + + + + + + + + + + + + +Main Toolbar + + + + + + diff --git a/languages/cpp/app_templates/kscons_tdemdi/apptdemdi.cpp b/languages/cpp/app_templates/kscons_tdemdi/apptdemdi.cpp new file mode 100644 index 00000000..0ef16672 --- /dev/null +++ b/languages/cpp/app_templates/kscons_tdemdi/apptdemdi.cpp @@ -0,0 +1,394 @@ +%{CPP_TEMPLATE} + +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "settings.h" +#include "prefs.h" +#include "%{APPNAMELC}tdemdiView.h" +#include "tdemdikonsole.h" +#include "%{APPNAMELC}tdemdi.h" + +%{APPNAMELC}tdemdi::%{APPNAMELC}tdemdi(KMdi::MdiMode mode) + : KMdiMainFrm( 0, "%{APPNAMELC}", mode ) +{ + resize( 800, 600 ); // start at 800x600 the first time + + setManagedDockPositionModeEnabled(true); + setStandardMDIMenuEnabled(false); + + m_manager = new KParts::PartManager(this); + connect(m_manager, TQT_SIGNAL(activePartChanged(KParts::Part*)), + this, TQT_SLOT(createGUI(KParts::Part*)) ); + +#if KDE_IS_VERSION(3, 3, 0) + setToolviewStyle( KMdi::TextAndIcon ); + tabWidget()->setHoverCloseButton( false ); +#endif + + setMenuForSDIModeSysButtons( menuBar() ); + setManagedDockPositionModeEnabled(true); + + m_console = NULL; + + // accept dnd + setAcceptDrops(true); + + // then, setup our actions + setupActions(); + + //createShellGUI( true ); + + // and a status bar + statusBar()->show(); + + connect( this, TQT_SIGNAL( viewActivated( KMdiChildView * ) ), this, TQT_SLOT( currentChanged( KMdiChildView * ) ) ); + + m_console = new tdemdikonsole(this, "konsole"); + m_console->setIcon( SmallIcon("konsole") ); + m_console->setCaption( i18n("Terminal") ); + addToolWindow( m_console, KDockWidget::DockBottom, getMainDockWidget(), 20 ); + + +#if KDE_IS_VERSION(3, 3, 0) + if (Settings::showCloseTabsButton()) + { + TQToolButton *but = new TQToolButton(tabWidget()); + but->setIconSet(SmallIcon("tab_remove")); + but->adjustSize(); + but->hide(); + connect(but, TQT_SIGNAL(clicked()), actionCollection()->action( "file_close" ), TQT_SIGNAL(activated())); + tabWidget()->setCornerWidget(but, TopRight); + } +#endif + + // 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(); + + // Read the dock config only if the app was started at least only once - tdemdi is tricky + TDEConfig *cfg = new TDEConfig("%{APPNAMELC}_dockposrc"); + if (cfg->readNumEntry("%{APPNAMELC}_main_dock_settings", 0) == 1) manager()->readConfig(cfg); + cfg->writeEntry("%{APPNAMELC}_main_dock_settings", 1); + delete cfg; + + showTipOnStart(); +} + +%{APPNAMELC}tdemdi::~%{APPNAMELC}tdemdi() +{ + // Write the dock config on exit + TDEConfig *cfg = new TDEConfig("%{APPNAMELC}_dockposrc"); + manager()->writeConfig(cfg); + delete cfg; + delete m_console; +} + +void %{APPNAMELC}tdemdi::setupActions() +{ + setXMLFile("%{APPNAMELC}_shell.rc"); + + KStdAction::openNew(this, TQT_SLOT(slotFileNew()), actionCollection()); + + KStdAction::tipOfDay( this, TQT_SLOT( showTip() ), actionCollection() + )->setWhatsThis(i18n("This shows useful tips on the use of this application.")); + + KStdAction::close(this, TQT_SLOT(slotFileClose()), actionCollection()); + KStdAction::quit(this, TQT_SLOT(slotFileQuit()), actionCollection()); + + m_toolbarAction = KStdAction::showToolbar(this, TQT_SLOT(optionsShowToolbar()), actionCollection()); + m_statusbarAction = KStdAction::showStatusbar(this, TQT_SLOT(optionsShowStatusbar()), actionCollection()); + + KStdAction::keyBindings(this, TQT_SLOT(optionsConfigureKeys()), actionCollection()); + KStdAction::preferences(this, TQT_SLOT(optionsPreferences()), actionCollection()); + + KAction* action = KStdAction::configureToolbars(this, + TQT_SLOT(optionsConfigureToolbars()), actionCollection()); + + createGUI( NULL ); +} + +void %{APPNAMELC}tdemdi::showTip() +{ + KTipDialog::showTip(this,TQString(),true); +} + +void %{APPNAMELC}tdemdi::showTipOnStart() +{ + KTipDialog::showTip(this); +} + +void %{APPNAMELC}tdemdi::slotFileNew() +{ + %{APPNAMELC}tdemdiView *view = new %{APPNAMELC}tdemdiView(this); + m_manager->addPart( view->part() ); + + addWindow( view ); + + // add the tree view to the widget stack + m_views += view; + + currentChanged( view ); +} + +void %{APPNAMELC}tdemdi::openURL(const KURL & url) +{ + // check if the url is not already opened first + TQValueList<%{APPNAMELC}tdemdiView*>::iterator it = m_views.begin(); + TQValueList<%{APPNAMELC}tdemdiView*>::iterator end = m_views.end(); + for (; it != end; ++it) + { + %{APPNAMELC}tdemdiView *view = *it; + if (view->part()->url() == url) + { + activateView(view); + return; + } + } + + %{APPNAMELC}tdemdiView *view = new %{APPNAMELC}tdemdiView(this); + m_manager->addPart( view->part() ); + + addWindow( view ); + + m_views += view; + + view->part()->openURL(url); + currentChanged( view ); +} + +void %{APPNAMELC}tdemdi::currentChanged( KMdiChildView *current ) +{ + //kdWarning()<<"current view changed"<setActivePart(NULL); + //setCaption("()"); + return; + } + + // switch to the corresponding document + if ( m_views.contains( (%{APPNAMELC}tdemdiView*) current ) ) + { + %{APPNAMELC}tdemdiView *view = (%{APPNAMELC}tdemdiView*) current; + //view->updateCaption(); + m_manager->setActivePart( view->part() ); + } +} + +void %{APPNAMELC}tdemdi::slotFileClose() +{ + requestClose( activeWindow() ); +} + +bool %{APPNAMELC}tdemdi::requestClose(KMdiChildView* v) +{ + // kdWarning()<<"closing view"<part()->queryClose()) + { + m_manager->removePart( view->part() ); + + closeWindow( view ); + m_views.clear(); + setCaption("kdissert"); + return true; + } + return false; + } + return true; + } + + %{APPNAMELC}tdemdiView *view = (%{APPNAMELC}tdemdiView*) v; + if ( m_views.contains( view ) ) + { + m_views.remove( view ); + if ( view->part()->queryClose() ) + { + m_manager->removePart( view->part() ); + + closeWindow( view ); + return true; + } + return false; + } + return true; +} + +void %{APPNAMELC}tdemdi::slotFileQuit() +{ + close(); +} + +void %{APPNAMELC}tdemdi::optionsShowToolbar() +{ + if (m_toolbarAction->isChecked()) + toolBar()->show(); + else + toolBar()->hide(); +} + +void %{APPNAMELC}tdemdi::optionsShowStatusbar() +{ + if (m_statusbarAction->isChecked()) + statusBar()->show(); + else + statusBar()->hide(); +} + +void %{APPNAMELC}tdemdi::optionsConfigureKeys() +{ + //KKeyDialog::configure(actionCollection()); + KKeyDialog dlg( false, this ); + TQPtrList clients = guiFactory()->clients(); + + for( TQPtrListIterator it( clients ); it.current(); ++it ) + dlg.insert ( (*it)->actionCollection(), (*it)->instance()->aboutData()->programName() ); + + dlg.configure(); + + for (int i=0; ipart()->reloadXML(); + } +} + +void %{APPNAMELC}tdemdi::optionsConfigureToolbars() +{ + //saveMainWindowSettings(TDEGlobal::config(), autoSaveGroup()); +} + +void %{APPNAMELC}tdemdi::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.) + //createGUI(); + //applyMainWindowSettings(TDEGlobal::config(), autoSaveGroup()); +} + +void %{APPNAMELC}tdemdi::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 + if (TDEConfigDialog::showDialog("settings")) + return; + + TDEConfigDialog *dialog = new TDEConfigDialog(this, "settings", Settings::self(), KDialogBase::Swallow); + dialog->addPage(new prefs(), i18n("General"), "package_settings"); + connect(dialog, TQT_SIGNAL(settingsChanged()), this, TQT_SLOT(settingsChanged())); + dialog->show(); +} + +void %{APPNAMELC}tdemdi::settingsChanged() +{ + // propagate the changes to our views + /*TQValueList<%{APPNAMELC}tdemdiView*>::iterator it = m_views.begin(); + TQValueList<%{APPNAMELC}tdemdiView*>::iterator end = m_views.end(); + for (; it != end; ++it) + { + %{APPNAMELC}tdemdiView *view = *it; + view->settingsChanged(); + }*/ +} + +void %{APPNAMELC}tdemdi::changeStatusbar(const TQString& text) +{ + // display the text on the statusbar + statusBar()->message(text, 2000); +} + +void %{APPNAMELC}tdemdi::dragEnterEvent(TQDragEnterEvent *event) +{ + // accept uri drops only + event->accept(KURLDrag::canDecode(event)); +} + +void %{APPNAMELC}tdemdi::dropEvent(TQDropEvent *event) +{ + KURL::List urls; + + // see if we can decode a URI.. if not, just ignore it + if (KURLDrag::decode(event, urls) && !urls.isEmpty()) + { + // okay, we have a URI.. process it + const KURL &url = urls.first(); + + // load in the file + openURL(url); + } +} + +bool %{APPNAMELC}tdemdi::queryClose() +{ + TQValueList<%{APPNAMELC}tdemdiView*>::iterator it; + + // check if we can close all documents + for (it = m_views.begin(); it != m_views.end(); ++it) + { + // kdWarning()<<"searching for the part"<part()->queryClose()) + { + return false; + } + } + + // and now close the documents + for (it = m_views.begin(); it != m_views.end(); ++it) + { + // now close all views + %{APPNAMELC}tdemdiView *view = *it; + + m_manager->removePart( view->part() ); + closeWindow( view ); + } + + return true; +} + +#include "%{APPNAMELC}tdemdi.moc" diff --git a/languages/cpp/app_templates/kscons_tdemdi/apptdemdi.h b/languages/cpp/app_templates/kscons_tdemdi/apptdemdi.h new file mode 100644 index 00000000..02d26d0c --- /dev/null +++ b/languages/cpp/app_templates/kscons_tdemdi/apptdemdi.h @@ -0,0 +1,83 @@ +%{H_TEMPLATE} + +#ifndef _%{APPNAMEUC}KMDI_H +#define _%{APPNAMEUC}KMDI_H + +#include + +#include +#include +#include + +class KToggleAction; +class KRecentFilesAction; + +class tdemdikonsole; +class KMdiChildView; +class TQWidgetStack; +class %{APPNAMELC}tdemdiView; +class TextProperties; +class MiscProperties; + +/** + * This class serves as the main window for %{APPNAMELC}tdemdi. It handles the + * menus, toolbars, and status bars. + * + * @short Main window class + */ +class %{APPNAMELC}tdemdi : public KMdiMainFrm +{ + Q_OBJECT + + public: + %{APPNAMELC}tdemdi( KMdi::MdiMode mode ); + virtual ~%{APPNAMELC}tdemdi(); + void showTipOnStart(); + + public slots: + void openURL( const KURL& ); + + protected: + virtual void dragEnterEvent(TQDragEnterEvent *event); + virtual void dropEvent(TQDropEvent *event); + virtual bool queryClose(); + + private slots: + void slotFileNew(); + void slotFileClose(); + void slotFileQuit(); + + /// this is called when a new file is saved + void showTip(); + + void optionsShowToolbar(); + void optionsShowStatusbar(); + void optionsConfigureKeys(); + void optionsConfigureToolbars(); + void optionsPreferences(); + void newToolbarConfig(); + + + void changeStatusbar(const TQString& text); + + void currentChanged( KMdiChildView *current ); + bool requestClose(KMdiChildView* view); + + void settingsChanged(); + + private: + void setupAccel(); + void setupActions(); + + TQValueList<%{APPNAMELC}tdemdiView*> m_views; + + KToggleAction *m_toolbarAction; + KToggleAction *m_statusbarAction; + + KParts::PartManager *m_manager; + + tdemdikonsole *m_console; +}; + +#endif // _%{APPNAMEUC}KMDI_H + diff --git a/languages/cpp/app_templates/kscons_tdemdi/apptdemdiView.cpp b/languages/cpp/app_templates/kscons_tdemdi/apptdemdiView.cpp new file mode 100644 index 00000000..a9b9845e --- /dev/null +++ b/languages/cpp/app_templates/kscons_tdemdi/apptdemdiView.cpp @@ -0,0 +1,63 @@ +%{CPP_TEMPLATE} + +#include +#include + +#include +#include +#include +#include +#include +#include + +#include "%{APPNAMELC}tdemdiView.h" + + + %{APPNAMELC}tdemdiView::%{APPNAMELC}tdemdiView( TQWidget *parentWidget, const char *name ) +: KMdiChildView( parentWidget, name ) +{ + m_part = NULL; + + // this routine will find and load our Part. it finds the Part by + // name which is a bad idea usually.. but it's alright in this + // case since our Part is made for this Shell + KLibFactory *factory = KLibLoader::self()->factory("lib%{APPNAMELC}part"); + //KLibFactory *factory = KLibLoader::self()->factory("libkatepart"); + if (factory) + { + // now that the Part is loaded, we cast it to a Part to get + // our hands on it + m_part = static_cast(factory->create( + this, "katepart", "KParts::ReadWritePart" )); + + if (m_part) + { + part()->widget()->setFocus(); + setFocusProxy(part()->widget()); + + TQBoxLayout* layout = new TQHBoxLayout(this, 0, -1, "kdissertviewlayout" ); + part()->widget()->reparent( this, TQPoint(0, 0) ); + layout->addWidget( part()->widget() ); + + // connect( m_part, TQT_SIGNAL(stateChanged()), this, TQT_SLOT(updateCaption()) ); + } + else + { + KMessageBox::error(this, i18n("Could not find our part.")); + } + } + else + { + // if we couldn't find our Part, we exit since the Shell by + // itself can't do anything useful + KMessageBox::error(this, i18n("Could not find our part.")); + return; + } +} + +%{APPNAMELC}tdemdiView::~%{APPNAMELC}tdemdiView() +{ + delete m_part->widget(); +} + +#include "%{APPNAMELC}tdemdiView.moc" diff --git a/languages/cpp/app_templates/kscons_tdemdi/apptdemdiView.h b/languages/cpp/app_templates/kscons_tdemdi/apptdemdiView.h new file mode 100644 index 00000000..00109fdb --- /dev/null +++ b/languages/cpp/app_templates/kscons_tdemdi/apptdemdiView.h @@ -0,0 +1,30 @@ +%{H_TEMPLATE} + +#ifndef _%{APPNAMEUC}KMDIVIEW_H +#define _%{APPNAMEUC}KMDIVIEW_H + +#include +#include +#include + +/** + * This class serves as the %{APPNAMELC}tdemdi view. + * + * @short main view class + */ +class %{APPNAMELC}tdemdiView : public KMdiChildView +{ + Q_OBJECT + + public: + %{APPNAMELC}tdemdiView( TQWidget *parentWidget=0L, const char *name=0L ); + virtual ~%{APPNAMELC}tdemdiView(); + + KParts::ReadWritePart *part() { return m_part; } + + private: + KParts::ReadWritePart *m_part; +}; + +#endif // _%{APPNAMEUC}KMDIVIEW_H + diff --git a/languages/cpp/app_templates/kscons_tdemdi/kscons_tdemdi.kdevtemplate b/languages/cpp/app_templates/kscons_tdemdi/kscons_tdemdi.kdevtemplate new file mode 100644 index 00000000..635d40d8 --- /dev/null +++ b/languages/cpp/app_templates/kscons_tdemdi/kscons_tdemdi.kdevtemplate @@ -0,0 +1,271 @@ +# TDE Config File +[General] +Name=Scons-based KMDI application +Name[ca]=Aplicació per a KMDI basada en Scons +Name[da]=Scons-baseret KMDI-program +Name[de]=Auf Scons basierende KMDI-Anwendung +Name[el]=Μια εφαρμογή KMDI βασισμένης στο Scons +Name[es]=Aplicación KMDI basada en Scons +Name[et]=KMDI rakendus Sconsi põhjal +Name[eu]=Scons-en oinarritutako KMDI aplikazioa +Name[fa]=کاربرد KMDI بر مبنای Scons +Name[fr]=Application KMDI basée sur Scons +Name[ga]=Feidhmchlár KMDI bunaithe ar Scons +Name[gl]=Aplicación KMDI baseada en Scons +Name[hu]=Scons-alapú KMDI-alkalmazás +Name[it]=Applicazione KMDI basata su scons +Name[ja]=Scons ベースの KMDI アプリケーション +Name[nds]=Op "scons" opbuut KMDI-Programm +Name[ne]=स्कोन-आधारित KMDI अनुप्रयोग +Name[nl]=Scons gebaseerde KMDI-toepassing +Name[pl]=Program KMDI wykorzystujący Scons +Name[pt]=Aplicação KMDI usando Scons +Name[pt_BR]=Aplicação KMDI usando Scons +Name[ru]=Многооконное приложение TDE на базе Scons +Name[sk]=KMDI aplikácia založená na Scons +Name[sr]=KMDI програм на основу Scons-а +Name[sr@Latn]=KMDI program na osnovu Scons-a +Name[sv]=Scons-baserat KMDI-program +Name[tr]=Scons tabanlı KMDI uygulaması +Name[zh_CN]=基于 Scons 的 KMDI 应用程序 +Name[zh_TW]=Scons 為基礎的 KMDI 應用程式 +Category=C++/TDE +Icon=kscons_tdemdi.png +Comment=Generates a complex KMDI application. Scons scripts are provided for compiling and installing the application. +Comment[ca]=Genera una complexa aplicació per a KMDI. Els scripts en Scons són proveïts per a compilar i instal·lar l'aplicació. +Comment[da]=Genererer et komplekst TDE-program. Der sørges for scons-scripter til at kompilere og installere programmet. +Comment[de]=Erstellt eine aufwändige KMDI-Anwendung. Scons-Skripte zum Kompilieren und Installieren der Anwendung werden zur Verfügung gestellt. +Comment[el]=Δημιουργεί μια πολύπλοκη εφαρμογή KMDI. Προσφέρονται σενάρια Scons για τη μεταγλώττιση και εγκατάσταση της εφαρμογής. +Comment[es]=Genera una aplicación KMDI compleja. Se proporcionan guiones en Scons para compilar e instalar la aplicación. +Comment[et]=Keerulise KMDI rakenduse loomine. Luuakse ka Sconsi skriptid rakenduse kompileerimiseks ja paigaldamiseks. +Comment[eu]=KMDI aplikazio konplexu bat sortzen du. Aplikazioak konpilatu eta aplikazioa instalatzeko Scons script-ak sortzen ditu. +Comment[fa]=یک کاربرد پیچیدۀ KMDI تولید می‌کند. دست‌نوشته‌های Scons برای ترجمه و نصب کاربرد فراهم می‌شوند. +Comment[fr]=Génère une application KMDI évoluée. Des scripts Scons sont fournis pour compiler et installer l'application. +Comment[gl]=Xera unha aplicación complexa KMDI. Os scripts Scons proporciónanse para compilar e instalar a aplicación. +Comment[hu]=Létrehoz egy komplex KMDI alkalmazást. Az alkalmazás lefordításához és telepítéséhez Scons-szkriptek állnak rendelkezésre. +Comment[it]=Genera una applicazione KMDI complessa. Gli script scons sono forniti per compilare e istallare l'applicazione. +Comment[nds]=Stellt en vigeliensch KMDI-Programm op. Stellt Scons-Skripten för't Kompileren un Installeren vun't Programm praat. +Comment[ne]=जटिल KMDI अनुप्रयोग उत्पन्न गर्दछ । स्कोन स्क्रिप्टहरू अनुप्रयोग स्थापना र कम्पाइल गर्नका लागि प्रदान गरिन्छ । +Comment[nl]=Genereert een complexe KMDI-applicatie. Scons-scripts worden gebruikt voor compilatie en installatie. +Comment[pl]=Generuje złożony program z powłoką KMDI. Do kompilacji i instalacji wykorzystywany jest skrypt Scons. +Comment[pt]=Gera uma aplicação complexa com KMDI. Os ficheiros do Scons são fornecidos para compilar e instalar a aplicação. +Comment[pt_BR]=Gera uma aplicação complexa com KMDI. Os ficheiros do Scons são fornecidos para compilar e instalar a aplicação. +Comment[ru]=Создание полноценного многооконного приложения TDE. Для сборки и установки этого приложения будут использованы скрипты Scons. +Comment[sk]=Vygeneruje komplexnú KMDI aplikáciu. K dispozícii je Scons skriptna kompiláciu a inštaláciu aplikácie. +Comment[sr]=Прави сложени KMDI програм. Дате су Scons скрипте за превођење и инсталирање програма. +Comment[sr@Latn]=Pravi složeni KMDI program. Date su Scons skripte za prevođenje i instaliranje programa. +Comment[sv]=Skapar ett komplext KMDI-program. Scons-skript tillhandahålls för att kompilera och installera programmet. +Comment[tr]=Karmaşık bir KMDI uygulaması yaratır. Uygulamayı derlemek ve kurmak için scons betikleri sağlanmıştır. +Comment[zh_CN]=生成一个复杂的 KMDI 应用程序。此时会提供 Scons 脚本以供编译并安装应用程序。 +Comment[zh_TW]=產生一個複雜的 KMDI 應用程式。Scons 文稿是用於編譯與安裝應用程式。 +FileTemplates=h,CStyle,cpp,CStyle +ShowFilesAfterGeneration=%{dest}/QUICKSTART +Archive=kscons_tdemdi.tar.gz + +[SCONS] +Type=include +File=%{tdevelop}/template-common/scons.kdevtemplate + +[MKDIR_DOCBOOK1] +Type=mkdir +Dir=%{dest}/doc + +[MKDIR_DOCBOOK2] +Type=mkdir +Dir=%{dest}/doc/en + +[FILE1] +Type=install +Source=%{src}/SConscript-doc +Dest=%{dest}/doc/SConscript + +[FILE2] +Type=install +EscapeXML=true +Source=%{tdevelop}/template-common/kde-index.docbook +Dest=%{dest}/doc/en/index.docbook + +[FILE3] +Type=install +EscapeXML=true +Source=%{src}/app.tdevelop +Dest=%{dest}/%{APPNAMELC}.tdevelop + +[FILE4] +Type=install +Source=%{src}/SConstruct +Dest=%{dest}/SConstruct + +[MkDir3] +Type=mkdir +Dir=%{dest}/src + +[FILE6] +Type=install +Source=%{tdevelop}/template-common/tde-app.desktop +Dest=%{dest}/src/%{APPNAMELC}.desktop + +[FILE7] +Type=install +Source=%{tdevelop}/template-common/hi16-app-app.png +Dest=%{dest}/src/hi16-app-%{APPNAMELC}.png +Process=false + +[FILE8] +Type=install +Source=%{tdevelop}/template-common/hi32-app-app.png +Dest=%{dest}/src/hi32-app-%{APPNAMELC}.png +Process=false + +[MkDir4] +Type=mkdir +Dir=%{dest}/po + +[FILE10] +Type=install +Source=%{src}/SConscript-src +Dest=%{dest}/src/SConscript + +[FILE11] +Type=install +Source=%{src}/apptdemdi.cpp +Dest=%{dest}/src/%{APPNAMELC}tdemdi.cpp + +[FILE12] +Type=install +Source=%{src}/apptdemdi.h +Dest=%{dest}/src/%{APPNAMELC}tdemdi.h + +[FILE13] +Type=install +EscapeXML=true +Source=%{src}/prefs.ui +Dest=%{dest}/src/prefs.ui + +[FILE14] +Type=install +Source=%{src}/apptdemdiView.cpp +Dest=%{dest}/src/%{APPNAMELC}tdemdiView.cpp + +[FILE15] +Type=install +Source=%{src}/apptdemdiView.h +Dest=%{dest}/src/%{APPNAMELC}tdemdiView.h + +[FILE19] +Type=install +Source=%{src}/main.cpp +Dest=%{dest}/src/main.cpp + +[FILE20] +Type=install +EscapeXML=true +Source=%{src}/app_shell.rc +Dest=%{dest}/src/%{APPNAMELC}_shell.rc + +[FILE21] +Type=install +Source=%{src}/README +Dest=%{dest}/src/README + +[FILE22] +Type=install +Source=%{src}/app.kcfg +Dest=%{dest}/src/%{APPNAMELC}.kcfg + +[FILE23] +Type=install +Source=%{src}/settings.kcfgc +Dest=%{dest}/src/settings.kcfgc + +[FILE25] +Type=install +Source=%{src}/tips +Dest=%{dest}/src/tips + +[FILE27] +Type=install +Source=%{src}/VERSION +Dest=%{dest}/VERSION + +[FILE28] +Type=install +Source=%{src}/INSTALL +Dest=%{dest}/INSTALL + +[FILE29] +Type=install +Source=%{src}/QUICKSTART +Dest=%{dest}/QUICKSTART + +[FILE30] +Type=install +Source=%{src}/messages.sh +Dest=%{dest}/po/messages.sh + +[FILE31] +Type=install +Source=%{src}/tdemdikonsole.cpp +Dest=%{dest}/src/tdemdikonsole.cpp + +[FILE32] +Type=install +Source=%{src}/tdemdikonsole.h +Dest=%{dest}/src/tdemdikonsole.h + +[FILE34] +Type=install +Source=%{src}/app_part.cpp +Dest=%{dest}/src/%{APPNAMELC}_part.cpp + +[FILE35] +Type=install +Source=%{src}/app_part.h +Dest=%{dest}/src/%{APPNAMELC}_part.h + +[FILE36] +Type=install +Source=%{tdevelop}/template-common/tde-app.desktop +Dest=%{dest}/src/%{APPNAMELC}.desktop + +[FILE37] +Type=install +Source=%{tdevelop}/template-common/tde-part.desktop +Dest=%{dest}/src/%{APPNAMELC}_part.desktop + +[FILE38] +Type=install +Source=%{src}/app_part.rc +Dest=%{dest}/src/%{APPNAMELC}_part.rc + +[MSG] +Type=message +Comment=A TDE application with scons scripts was created in %{dest} +Comment[ca]=Una aplicació per al TDE amb scripts en Scons ha estat creada e n %{dest} +Comment[da]=Et TDE program med scons-scripter blev oprette i %{dest} +Comment[de]=Eine TDE-Anwendung mit Scons-Skripten wurde in %{dest} erstellt. +Comment[el]=Μια εφαρμογή TDE με σενάρια scons δημιουργήθηκε στο %{dest} +Comment[es]=Una aplicación para TDE con guiones de Scons ha sido creada en %{dest} +Comment[et]=TDE rakendus Sconsi skriptidega loodi asukohta %{dest} +Comment[eu]=Scons script-dun TDE aplikazio bat sortu da hemen: %{dest} +Comment[fa]=یک کاربرد TDE با دست‌نوشته‌های scons در %{dest} ایجاد شد +Comment[fr]=Une application TDE comprenant des scripts Scons a été créée dans %{dest} +Comment[ga]=Cruthaíodh feidhmchlár TDE le scripteanna scons i %{dest} +Comment[gl]=Creouse unha aplicación TDE con scripts scons en %{dest} +Comment[hu]=Létrejött egy Scons-szkripteket használó TDE-alapú alkalmazás itt: %{dest} +Comment[it]=È stata creata un'applicazione TDE con gli script scons in %{dest} +Comment[ja]=Scons スクリプトを使った TDE アプリケーションを %{dest} に作成しました +Comment[nds]=In %{dest} wöör en TDE-Programm mit scons-Skripten opstellt +Comment[ne]=स्कोन स्क्रिप्टसँग केडीई अनुप्रयोग %{dest} मा सिर्जना गरियो +Comment[nl]=Een TDE applicatie inclusief Scons-scripts is aangemaakt in %{dest} +Comment[pl]=Program TDE ze skryptami scons utworzony w %{dest} +Comment[pt]=Foi criada uma aplicação do TDE com ficheiros do 'scons' em %{dest} +Comment[pt_BR]=Foi criada uma aplicação do TDE com ficheiros do 'scons' em %{dest} +Comment[ru]=Приложение TDE со скриптами Scons создано в %{dest} +Comment[sk]=TDE aplikácia so scons skriptom bola vytvorená v %{dest} +Comment[sr]=TDE програм са scons скриптама направљен је у %{dest} +Comment[sr@Latn]=TDE program sa scons skriptama napravljen je u %{dest} +Comment[sv]=Ett TDE-program med Scons-skript skapades i %{dest} +Comment[tr]=Scons betikleri olan bir TDE uygulaması %{dest} içinde yaratıldı. +Comment[zh_CN]=在 %{dest} 中创建了带 scons 脚本的 TDE 应用程序 +Comment[zh_TW]=一個內含 scons 文稿的 TDE 應用程式已建立於 %{dest} diff --git a/languages/cpp/app_templates/kscons_tdemdi/kscons_tdemdi.png b/languages/cpp/app_templates/kscons_tdemdi/kscons_tdemdi.png new file mode 100644 index 00000000..72a347ee Binary files /dev/null and b/languages/cpp/app_templates/kscons_tdemdi/kscons_tdemdi.png differ diff --git a/languages/cpp/app_templates/kscons_tdemdi/main.cpp b/languages/cpp/app_templates/kscons_tdemdi/main.cpp new file mode 100644 index 00000000..ccfc4fac --- /dev/null +++ b/languages/cpp/app_templates/kscons_tdemdi/main.cpp @@ -0,0 +1,60 @@ +%{CPP_TEMPLATE} + +#include +#include +#include +#include +#include + +#include "%{APPNAMELC}tdemdi.h" + +static const char description[] = +I18N_NOOP("A simple tdemdi app"); + +static const char version[] = "0.0.1"; + +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}" ); + + // warning, utf-8 char + //about.addCredit( "bksys authors", "Thomas Nagy, Julien Antille" ); + + TDECmdLineArgs::init(argc, argv, &about); + TDECmdLineArgs::addCmdLineOptions(options); + + TDEApplication app; + + // see if we are starting with session management + /*if (app.isRestored()) + { + RESTORE((%{APPNAME}); + } else */ + { + // no session.. just start up normally + TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); + + %{APPNAMELC}tdemdi *widget = new %{APPNAMELC}tdemdi( KMdi::IDEAlMode ); + + if (args->count() != 0) + { + for (int i=0; i < args->count(); i++) + { + widget->openURL( args->url( i ) ); + } + } + widget->show(); + args->clear(); + } + + return app.exec(); +} + diff --git a/languages/cpp/app_templates/kscons_tdemdi/messages.sh b/languages/cpp/app_templates/kscons_tdemdi/messages.sh new file mode 100755 index 00000000..a0ce678a --- /dev/null +++ b/languages/cpp/app_templates/kscons_tdemdi/messages.sh @@ -0,0 +1,60 @@ +#!/bin/sh + +# Inspired by Makefile.common from coolo +# this script is used to update the .po files + +# To update the translations, you will need a specific gettext +# patched for kde and a lot of patience, tenacity, luck, time .. + + +# I guess one should only update the .po files when all .cpp files +# are generated (after a make or scons) + +# If you have a better way to do this, do not keep that info +# 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 +TIPSDIR=$SRCDIR # tipsdir is the directory containing the tips + +TDEDIR=`tde-config --prefix` +EXTRACTRC=extractrc +TDEPOT=`tde-config --prefix`/include/kde.pot +XGETTEXT="xgettext -C -ki18n -ktr2i18n -kI18N_NOOP -ktranslate -kaliasLocale -x $TDEPOT " + +## check that kde.pot is available +if ! test -e $TDEPOT; then + echo "$TDEPOT does not exist, there is something wrong with your installation!" + XGETTEXT="xgettext -C -ki18n -ktr2i18n -kI18N_NOOP -ktranslate -kaliasLocale " +fi + +> rc.cpp + +## extract the strings +echo "extracting the strings" + +# process the .ui and .rc files +$EXTRACTRC `find $SRCDIR -iname *.rc` >> rc.cpp +$EXTRACTRC `find $SRCDIR -iname *.ui` >> rc.cpp +echo -e 'i18n("_: NAME OF TRANSLATORS\\n"\n"Your names")\ni18n("_: EMAIL OF TRANSLATORS\\n"\n"Your emails")' > $SRCDIR/_translatorinfo.cpp + +# process the tips - $SRCDIR is supposed to be where the tips are living +pushd $TIPSDIR; preparetips >tips.cpp; popd + +$XGETTEXT `find $SRCDIR -name "*.cpp"` -o kdissert.pot + +# remove the intermediate files +rm -f $TIPSDIR/tips.cpp +rm -f rc.cpp +rm -f $SRCDIR/_translatorinfo.cpp + +## now merge the .po files .. +echo "merging the .po files" + +for i in `ls *.po`; do + msgmerge $i kdissert.pot -o $i || exit 1 +done + +## finished +echo "Done" + diff --git a/languages/cpp/app_templates/kscons_tdemdi/prefs.ui b/languages/cpp/app_templates/kscons_tdemdi/prefs.ui new file mode 100644 index 00000000..7830280b --- /dev/null +++ b/languages/cpp/app_templates/kscons_tdemdi/prefs.ui @@ -0,0 +1,30 @@ + +prefs + + +prefs + + + +0 +0 +241 +47 + + + + +unnamed + + + +kcfg_showCloseTabsButton + + +Show close buttons on the right of tabs + + + + + + diff --git a/languages/cpp/app_templates/kscons_tdemdi/settings.kcfgc b/languages/cpp/app_templates/kscons_tdemdi/settings.kcfgc new file mode 100644 index 00000000..384510cd --- /dev/null +++ b/languages/cpp/app_templates/kscons_tdemdi/settings.kcfgc @@ -0,0 +1,6 @@ +# Code generation options for kconfig_compiler +File=%{APPNAMELC}.kcfg +ClassName=Settings +Singleton=true +Mutators=col_background,col_foreground +# will create the necessary code for setting those variables diff --git a/languages/cpp/app_templates/kscons_tdemdi/tdemdikonsole.cpp b/languages/cpp/app_templates/kscons_tdemdi/tdemdikonsole.cpp new file mode 100644 index 00000000..0eab6525 --- /dev/null +++ b/languages/cpp/app_templates/kscons_tdemdi/tdemdikonsole.cpp @@ -0,0 +1,76 @@ +%{CPP_TEMPLATE} + +#include +#include + +#include +#include +#include +#include +#include +#include + +#include "tdemdikonsole.h" + +tdemdikonsole::tdemdikonsole(TQWidget *parent, const char *name) : TQVBox(parent, name) +{ + m_haskonsole = false; + respawn(); +} + +tdemdikonsole::~tdemdikonsole() +{ +} + +void tdemdikonsole::respawn() +{ + KLibFactory *factory = KLibLoader::self()->factory("libkonsolepart"); + + if (!factory) return; + m_part = (KParts::ReadOnlyPart *) factory->create(this); + + if (!m_part) return; + + if (m_part->widget()->inherits(TQFRAME_OBJECT_NAME_STRING)) + ((TQFrame*)m_part->widget())->setFrameStyle(TQFrame::Panel|TQFrame::Sunken); + + m_haskonsole=true; + connect( m_part, TQT_SIGNAL(destroyed()), this, TQT_SLOT(slotDestroyed()) ); + + m_part->widget()->show(); + show(); +} + +void tdemdikonsole::setDirectory(const TQString &dirname) +{ + if (m_haskonsole) + { + KURL url(dirname); + if (m_part->url() != url) + m_part->openURL(url); + } +} + +void tdemdikonsole::showEvent(TQShowEvent *ev) +{ + TQWidget::showEvent(ev); + activate(); +} + +void tdemdikonsole::activate() +{ + if (m_haskonsole) + { + m_part->widget()->show(); + setFocusProxy(m_part->widget()); + m_part->widget()->setFocus(); + } +} + +void tdemdikonsole::slotDestroyed() +{ + m_haskonsole=false; + respawn(); +} + +#include "tdemdikonsole.moc" diff --git a/languages/cpp/app_templates/kscons_tdemdi/tdemdikonsole.h b/languages/cpp/app_templates/kscons_tdemdi/tdemdikonsole.h new file mode 100644 index 00000000..db4a4323 --- /dev/null +++ b/languages/cpp/app_templates/kscons_tdemdi/tdemdikonsole.h @@ -0,0 +1,33 @@ +%{H_TEMPLATE} + +#ifndef KMDIKONSOLE_H +#define KMDIKONSOLE_H + +#include + +class tdemdikonsole : public TQVBox +{ + Q_OBJECT + + + public: + tdemdikonsole( TQWidget* parent, const char* name=0); + ~tdemdikonsole(); + + public slots: + void setDirectory(const TQString & dir); + void activate(); + + private slots: + void slotDestroyed(); + void respawn(); + + protected: + void showEvent(TQShowEvent *ev); + + private: + KParts::ReadOnlyPart *m_part; + bool m_haskonsole; +}; + +#endif // KMDIKONSOLE_H diff --git a/languages/cpp/app_templates/kscons_tdemdi/tips b/languages/cpp/app_templates/kscons_tdemdi/tips new file mode 100644 index 00000000..b9618b42 --- /dev/null +++ b/languages/cpp/app_templates/kscons_tdemdi/tips @@ -0,0 +1,6 @@ + + +

... that automake was not involved in building this kde application ?

+

The tdevelop template "kscons_kxt" was used instead.

+ +
diff --git a/languages/cpp/app_templates/kscreensaver/.kdev_ignore b/languages/cpp/app_templates/kscreensaver/.kdev_ignore deleted file mode 100644 index e69de29b..00000000 diff --git a/languages/cpp/app_templates/kscreensaver/CMakeLists.txt b/languages/cpp/app_templates/kscreensaver/CMakeLists.txt deleted file mode 100644 index a74c003c..00000000 --- a/languages/cpp/app_templates/kscreensaver/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( kscreensaver.tar.gz ALL - COMMAND tar zcf kscreensaver.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} - kscreensaver.desktop kscreensaver.png kscreensaver.h - kscreensaverui.ui src-Makefile.am kscreensaver.cpp - kscreensaver.tdevelop subdirs -) - - -install( FILES - ${CMAKE_CURRENT_BINARY_DIR}/kscreensaver.tar.gz kscreensaver.png - DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard ) - - -install( FILES - kscreensaver.kdevtemplate - DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates ) diff --git a/languages/cpp/app_templates/kscreensaver/Makefile.am b/languages/cpp/app_templates/kscreensaver/Makefile.am deleted file mode 100644 index a304c27a..00000000 --- a/languages/cpp/app_templates/kscreensaver/Makefile.am +++ /dev/null @@ -1,19 +0,0 @@ -dataFiles = kscreensaver.desktop kscreensaver.png kscreensaver.h \ - kscreensaverui.ui src-Makefile.am kscreensaver.cpp \ - kscreensaver.tdevelop subdirs - -templateName= kscreensaver - -### 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/kscreensaver/kscreensaver.cpp b/languages/cpp/app_templates/kscreensaver/kscreensaver.cpp deleted file mode 100644 index 12699c32..00000000 --- a/languages/cpp/app_templates/kscreensaver/kscreensaver.cpp +++ /dev/null @@ -1,107 +0,0 @@ -%{CPP_TEMPLATE} - -#include -#include -#include -#include -#include -#include -#include -#include -#include "%{APPNAMELC}.h" -#include "%{APPNAMELC}ui.h" - -//! libkscreensaver interface -extern "C" -{ - const char *kss_applicationName = "%{APPNAMELC}.kss"; - const char *kss_description = I18N_NOOP( "%{APPNAME}" ); - const char *kss_version = "2.2.0"; - - %{APPNAME} *kss_create( WId id ) - { - TDEGlobal::locale()->insertCatalogue("%{APPNAMELC}"); - return new %{APPNAME}( id ); - } - - TQDialog *kss_setup() - { - TDEGlobal::locale()->insertCatalogue("%{APPNAMELC}"); - return new %{APPNAME}Setup(); - } -} - -//----------------------------------------------------------------------------- -//! dialog to setup screen saver parameters -%{APPNAME}Setup::%{APPNAME}Setup( TQWidget *parent, const char *name ) - : %{APPNAME}UI( parent, name, TRUE ) -{ - /// @todo - //Connect your signals and slots here to configure the screen saver. - connect( OkayPushButton, TQT_SIGNAL( released() ), - TQT_SLOT( slotOkPressed() ) ); - connect( CancelPushButton, TQT_SIGNAL( released() ), - TQT_SLOT( slotCancelPressed() ) ); -} - - -//! read settings from config file -void %{APPNAME}Setup::readSettings() -{ - TDEConfig *config = TDEGlobal::config(); - config->setGroup( "Settings" ); - /// @todo - // Add your config options here... - CheckBox1->setChecked(config->readBoolEntry( "somesetting", false )); -} - - -//! Ok pressed - save settings and exit -void %{APPNAME}Setup::slotOkPressed() -{ - TDEConfig *config = TDEGlobal::config(); - config->setGroup( "Settings" ); - /// @todo - // Add your config options here. - config->writeEntry( "somesetting", CheckBox1->isChecked() ); - config->sync(); - - accept(); -} - -void %{APPNAME}Setup::slotCancelPressed() -{ - reject(); -} -//----------------------------------------------------------------------------- - - -%{APPNAME}::%{APPNAME}( WId id ) : KScreenSaver( id ) -{ - readSettings(); - blank(); -} - -%{APPNAME}::~%{APPNAME}() -{} - - -//! read configuration settings from config file -void %{APPNAME}::readSettings() -{ - TDEConfig *config = TDEGlobal::config(); - config->setGroup( "Settings" ); - /// @todo - // Add your config options here... - bool somesetting = config->readBoolEntry( "somesetting", false ); -} - - -void %{APPNAME}::blank() -{ - /// @todo - //Add your code to render the screen. - setBackgroundColor( TQColor(black) ); - // - erase(); -} diff --git a/languages/cpp/app_templates/kscreensaver/kscreensaver.desktop b/languages/cpp/app_templates/kscreensaver/kscreensaver.desktop deleted file mode 100644 index 046eb9a2..00000000 --- a/languages/cpp/app_templates/kscreensaver/kscreensaver.desktop +++ /dev/null @@ -1,124 +0,0 @@ -[Desktop Entry] -Exec=%{APPNAMELC}.kss -Icon=kscreensaver -Type=Application -Actions=Setup;InWindow;Root; -X-TDE-Category=Miscellaneous -Name=%{APPNAME} - -[Desktop Action Setup] -Exec=%{APPNAMELC}.kss -setup -Name=Setup... -Name[br]=Kefluniadur ... -Name[ca]=Configuració... -Name[cy]=Gosod ... -Name[da]=Opsætning... -Name[de]=Einrichtung ... -Name[el]=Ρύθμιση... -Name[es]=Configuración... -Name[et]=Häälestus... -Name[eu]=Konfiguratu... -Name[fa]=برپایی... -Name[fr]=Configuration... -Name[ga]=Cumraigh... -Name[gl]=Configuración... -Name[hu]=Beállítások... -Name[it]=Imposta... -Name[ja]=設定... -Name[lt]=Nustatymas... -Name[ms]=Tetapan... -Name[nds]=Instellen... -Name[ne]=सेटअप... -Name[nl]=Instellen... -Name[pl]=Ustawienia... -Name[pt]=Configurar... -Name[pt_BR]=Configurar... -Name[ru]=Настроить... -Name[rw]=Iboneza... -Name[sk]=Nastavenie... -Name[sl]=Nastavi ... -Name[sr]=Постављање... -Name[sr@Latn]=Postavljanje... -Name[sv]=Inställning... -Name[tr]=Kurulum... -Name[zh_CN]=设置... -Name[zh_TW]=設定... -Icon=kscreensaver - -[Desktop Action InWindow] -Exec=%{APPNAMELC}.kss -window-id %w -Name=Display in Specified Window -Name[br]=Diskwel er prenestr spisaet -Name[ca]=Mostra a la finestra especificada -Name[cy]=Dangos mewn Ffenestr Benodol -Name[da]=Vis i specificeret vindue -Name[de]=Im angegebenen Fenster anzeigen -Name[el]=Προβολή στο ορισμένο παράθυρο -Name[es]=Mostrar en la ventana especificada -Name[et]=Kuva määratud aknas -Name[eu]=Bistaratu zehaztutako lehioan -Name[fa]=نمایش در پنجرۀ مشخص‌شده -Name[fr]=Afficher dans la fenêtre spécifiée -Name[ga]=Taispeáin san Fhuinneog Sonraithe -Name[gl]=Mostrar na xanela especificada -Name[hu]=Megjelenítés egy adott ablakban -Name[it]=Mostra in una finestra specificata -Name[ja]=指定したウィンドウに表示 -Name[lt]=Rodyti nurodytame lange -Name[ms]=Papar dalam Tetingkap Yang Dinyatakan -Name[nds]=Binnen angeven Finster wiesen -Name[ne]=निर्दिष्ट सञ्झ्यालमा प्रर्दशन -Name[nl]=Weergave in aangegeven venster -Name[pl]=Pokazywanie w podanym oknie -Name[pt]=Mostrar na Janela Indicada -Name[pt_BR]=Exibir na Janela Especificada -Name[ru]=Показать в указанном окне -Name[rw]=Kwerekana mu Idirishya Ryihariye -Name[sk]=Zobraziť v špecifickom okne -Name[sl]=Prikaži v določenem oknu -Name[sr]=Прикажи у наведеном прозору -Name[sr@Latn]=Prikaži u navedenom prozoru -Name[sv]=Visa i angivet fönster -Name[tr]=Belirtilen Pencerede Göster -Name[zh_CN]=在指定窗口中显示 -Name[zh_TW]=顯示在指定視窗 -NoDisplay=true - -[Desktop Action Root] -Exec=%{APPNAMELC}.kss -root -Name=Display in Root Window -Name[br]=Diskwel er prenestr gwrizienn -Name[ca]=Mostra a la finestra arrel -Name[cy]=Dangos mewn Ffenestr Wraidd -Name[da]=Vis i rod-vindue -Name[de]=Im Root-Fenster anzeigen -Name[el]=Προβολή στο βασικό παράθυρο -Name[es]=Mostrar en la ventana raíz -Name[et]=Kuva juuraknas -Name[eu]=Bistaratu erro-lehioan -Name[fa]=نمایش در پنجرۀ ریشه -Name[fr]=Afficher dans la fenêtre racine -Name[ga]=Taispeáin sa bhFréamhfhuinneog -Name[gl]=Mostrar na xanela raíz -Name[hu]=Megjelenítés a gyökérablakban -Name[it]=Mostra nella finestra radice -Name[ja]=ルートウィンドウに表示 -Name[lt]=Rodyti root lange -Name[ms]=Papar dalam Tetingkap Root -Name[nds]=Binnen Wörtelfinster wiesen -Name[ne]=रूट सञ्झ्यालमा प्रर्दशन -Name[nl]=Weergave in hoofdvenster -Name[pl]=Pokazywanie w głównym oknie -Name[pt]=Mostrar na Janela de Fundo -Name[pt_BR]=Exibir na Janela Raiz -Name[ru]=Показать в главном окне -Name[rw]=Kwerekana mu Idirishya Umuzi -Name[sk]=Zobraziť v koreňovom okne -Name[sl]=Prikaži v korenskem oknu -Name[sr]=Прикажи у кореном прозору -Name[sr@Latn]=Prikaži u korenom prozoru -Name[sv]=Visa i rotfönster -Name[tr]=Kök Pencerede Göster -Name[zh_CN]=在根窗口中显示 -Name[zh_TW]=顯示在根視窗 -NoDisplay=true diff --git a/languages/cpp/app_templates/kscreensaver/kscreensaver.h b/languages/cpp/app_templates/kscreensaver/kscreensaver.h deleted file mode 100644 index 881137c5..00000000 --- a/languages/cpp/app_templates/kscreensaver/kscreensaver.h +++ /dev/null @@ -1,37 +0,0 @@ -%{CPP_TEMPLATE} - -#ifndef %{APPNAME}_H__ -#define %{APPNAME}_H__ - -#include "kscreensaver.h" -#include "%{APPNAMELC}ui.h" - -class %{APPNAME} : public KScreenSaver -{ - Q_OBJECT - -public: - %{APPNAME}( WId drawable ); - virtual ~%{APPNAME}(); -private: - void readSettings(); - void blank(); -}; - -class %{APPNAME}Setup : public %{APPNAME}UI -{ - Q_OBJECT - -public: - %{APPNAME}Setup( TQWidget *parent = NULL, const char *name = NULL ); - -private slots: - void slotOkPressed(); - void slotCancelPressed(); - -private: - void readSettings(); - %{APPNAME} *saver; -}; - -#endif diff --git a/languages/cpp/app_templates/kscreensaver/kscreensaver.kdevtemplate b/languages/cpp/app_templates/kscreensaver/kscreensaver.kdevtemplate deleted file mode 100644 index 24b96770..00000000 --- a/languages/cpp/app_templates/kscreensaver/kscreensaver.kdevtemplate +++ /dev/null @@ -1,203 +0,0 @@ -# TDE Config File -[General] -Name=TDE Screen Saver -Name[br]=Damanter skramm TDE -Name[ca]=Salvapantalles per al TDE -Name[da]=TDE pauseskærm -Name[de]=TDE-Bildschirmschoner -Name[el]=Προφύλαξη οθόνης του TDE -Name[es]=Salvapantallas para TDE -Name[et]=TDE ekraanisäästja -Name[eu]=TDE pantaila-babeslea -Name[fa]=محافظ صفحۀ TDE -Name[fr]=Écran de veille TDE -Name[ga]=Spárálaí Scáileáin TDE -Name[gl]=Salvapantallas TDE -Name[hu]=TDE-s képernyővédő -Name[it]=Salva schermo di TDE -Name[ja]=TDE スクリーンセーバー -Name[nds]=TDE-Pausschirm -Name[ne]=केडीई स्क्रिन सर्भर -Name[nl]=TDE-schermbeveiliging -Name[pl]=Wygaszacz ekranu TDE -Name[pt]=Protector de Ecrã do TDE -Name[pt_BR]=Protetor de tela do TDE -Name[ru]=Хранитель экрана для TDE -Name[sk]=TDE šetrič obrazovky -Name[sl]=Ohranjevalnik zaslona za TDE -Name[sr]=TDE чувар екрана -Name[sr@Latn]=TDE čuvar ekrana -Name[sv]=TDE-skärmsläckare -Name[tr]=TDE Ekran Koruyucusu -Name[zh_CN]= TDE 屏幕保护程序 -Name[zh_TW]=TDE 螢幕保護程式 -Icon=kscreensaver.png -Category=C++/TDE -Comment=Generates a framework for a TDE screensaver. -Comment[ca]=Genera una infraestructura per a un salvapantalles de TDE. -Comment[da]=Genererer et skelet for en TDE-pauseskærm. -Comment[de]=Erstellt das Gerüst für einen TDE-Bildschirmschoner. -Comment[el]=Δημιουργεί ένα πλαίσιο για μια προφύλαξη οθόνης του TDE. -Comment[es]=Genera una infraestructura para un salvapantallas de TDE -Comment[et]=TDE ekraanisäästja raamistiku loomine. -Comment[eu]=TDE-ren pantaila-babesle baten lan-marko bat sortzen du. -Comment[fa]=چارچوبی برای محافظ صفحۀ TDE تولید می‌کند. -Comment[fr]=Génère une infrastructure pour un écran de veille TDE. -Comment[gl]=Xera un contorno de traballo para un salvapantallas TDE. -Comment[hu]=Létrehoz egy alap TDE-s képernyővédőt. -Comment[it]=Genera l'infrastruttura per un salvaschermo di TDE. -Comment[ja]=TDE スクリーンセーバーのフレームワークを作成します -Comment[nds]=Stellt dat Rahmenwark för en TDE-Pausschirm op. -Comment[ne]=केडीई स्क्रिनसेभरका लागि फ्रेमवर्क उत्पन्न गर्दछ -Comment[nl]=Genereert een framework voor een TDE-schermbeveiliging. -Comment[pl]=Generuje szablon wygaszacza ekranu dla TDE. -Comment[pt]=Gera a plataforma para um protector de ecrã do TDE. -Comment[pt_BR]=Gera a plataforma para um protector de ecrã do TDE. -Comment[ru]=Создание инфраструктуры хранителя экрана для TDE. -Comment[sk]=Vygeneruje framework pre TDE šetrič obrazovky. -Comment[sl]=Ustvari ogrodje ohranjevalnika zaslona za TDE. -Comment[sr]=Прави радни оквир за TDE чувар екрана. -Comment[sr@Latn]=Pravi radni okvir za TDE čuvar ekrana. -Comment[sv]=Skapar ett ramverk för en TDE-skärmsläckare -Comment[tr]=Bir TDE ekran koruyucusu için bir çatı oluşturulur. -Comment[zh_CN]=生成 TDE 屏幕保护程序框架。 -Comment[zh_TW]=產生一個 TDE 螢幕保護程式的框架 -FileTemplates=h,CStyle,cpp,CStyle -ShowFilesAfterGeneration=%{dest}/src/%{APPNAMELC}.cpp -Archive=kscreensaver.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 -EscapeXML=true -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}/kscreensaver.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}/kscreensaver.cpp -Dest=%{dest}/src/%{APPNAMELC}.cpp - -[FILE13] -Type=install -Source=%{src}/kscreensaver.h -Dest=%{dest}/src/%{APPNAMELC}.h - -[FILE14] -Type=install -Source=%{src}/kscreensaver.desktop -Dest=%{dest}/src/%{APPNAMELC}.desktop - -[FILE15] -Type=install -EscapeXML=true -Source=%{src}/kscreensaverui.ui -Dest=%{dest}/src/%{APPNAMELC}ui.ui - -[MSG] -Type=message -Comment=A screensaver application was created in %{dest} -Comment[ca]=Una aplicació de salvapantalles ha estat creada en %{dest} -Comment[da]=Et pauseskærmsprogram blev oprettet i %{dest} -Comment[de]=Ein Bildschirmschoner wurde in %{dest} erstellt. -Comment[el]=Μια εφαρμογή προφύλαξης οθόνης δημιουργήθηκε στο %{dest} -Comment[es]=Una aplicación salvapantallas ha sido creada en %{dest} -Comment[et]=Ekraanisäästja rakendus loodi asukohta %{dest} -Comment[eu]=Pantaila-babesle baten aplikazioa sortu da hemen: %{dest} -Comment[fa]=یک کاربرد محافظ صفحه در %{dest} ایجاد شد -Comment[fr]=Une application écran de veille a été créé dans %{dest} -Comment[ga]=Cruthaíodh spárálaí scáileáin i %{dest} -Comment[gl]=Creouse unha aplicación salvapantallas en %{dest} -Comment[hu]=Létrejött egy alap képernyővédő program itt: %{dest} -Comment[it]=È stata creata un'applicazione salvaschermo in %{dest} -Comment[ja]=スクリーンセーバーアプリケーションを %{dest} に作成しました -Comment[nds]=In %{dest} wöör en Pausschirm opstellt -Comment[ne]=स्क्रिनसेभर अनुप्रयोग %{dest} मा सिर्जना गरियो -Comment[nl]=Een schermbeveiligingstoepassing is aangemaakt in %{dest} -Comment[pl]=Program wygaszacza ekranu został utworzony w %{dest} -Comment[pt]=Foi criada uma aplicação protectora do ecrã em %{dest} -Comment[pt_BR]=Foi criada uma aplicação protectora do ecrã em %{dest} -Comment[ru]=Приложение хранителя экрана создано в %{dest} -Comment[sk]=Aplikácia šetriča obrazovky bola vytvorená v %{dest} -Comment[sl]=Program ohranjevalnika zaslona je bil ustvarjen v %{dest} -Comment[sr]=Програм чувара екрана направљен је у %{dest} -Comment[sr@Latn]=Program čuvara ekrana napravljen je u %{dest} -Comment[sv]=Ett skärmsläckarprogram skapades i %{dest} -Comment[tr]=Bir ekran koruyucusu uygulaması %{dest} içinde yaratıldı. -Comment[zh_CN]=在 %{dest} 中创建了屏幕保护应用程序 -Comment[zh_TW]=一個螢幕保護程式已建立於 %{dest} diff --git a/languages/cpp/app_templates/kscreensaver/kscreensaver.png b/languages/cpp/app_templates/kscreensaver/kscreensaver.png deleted file mode 100644 index e91ec2e2..00000000 Binary files a/languages/cpp/app_templates/kscreensaver/kscreensaver.png and /dev/null differ diff --git a/languages/cpp/app_templates/kscreensaver/kscreensaver.tdevelop b/languages/cpp/app_templates/kscreensaver/kscreensaver.tdevelop deleted file mode 100644 index 38429f89..00000000 --- a/languages/cpp/app_templates/kscreensaver/kscreensaver.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 - - - - - - - - - - - - - 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/kscreensaver/kscreensaverui.ui b/languages/cpp/app_templates/kscreensaver/kscreensaverui.ui deleted file mode 100644 index e83bcda9..00000000 --- a/languages/cpp/app_templates/kscreensaver/kscreensaverui.ui +++ /dev/null @@ -1,79 +0,0 @@ - -%{APPNAME}UI -This is the main UI for setting up your screen saver. -Ian Reinhart Geiser - - - %{APPNAMELC}cfg - - - - 0 - 0 - 257 - 58 - - - - Screen Saver Config - - - - Layout2 - - - - 5 - 0 - 255 - 57 - - - - - unnamed - - - - CheckBox1 - - - Set some setting - - - - - Layout1 - - - - unnamed - - - - - OkayPushButton - - - &OK - - - - - CancelPushButton - - - &Cancel - - - - - - - - - kdialog.h - - - - diff --git a/languages/cpp/app_templates/kscreensaver/src-Makefile.am b/languages/cpp/app_templates/kscreensaver/src-Makefile.am deleted file mode 100644 index 83c32868..00000000 --- a/languages/cpp/app_templates/kscreensaver/src-Makefile.am +++ /dev/null @@ -1,24 +0,0 @@ -# Makefile.am for %{APPNAMELC}. -# - -AM_CPPFLAGS = -UQT_NO_ASCII_CAST -METASOURCES = AUTO - -INCLUDES = $(all_includes) -LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEUI) $(LIB_KPARTS) -LDADD = $(LIB_TDEUI) -lkscreensaver -lm -bin_PROGRAMS = %{APPNAMELC}.kss - -%{APPNAMELC}_kss_SOURCES = %{APPNAMELC}ui.ui %{APPNAMELC}.cpp -%{APPNAMELC}_kss_LDADD = $(LIB_QT) $(LIB_TDECORE) $(LDADD) $(LIB_KSYCOCA) - -#datadir = $(kde_datadir)/%{APPNAMELC} - -desktop_DATA = %{APPNAMELC}.desktop -desktopdir = $(kde_appsdir)/System/ScreenSavers - -EXTRA_DIST = $(desktop_DATA) - -messages: rc.cpp - $(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp - $(XGETTEXT) *.cpp -o $(podir)/%{APPNAMELC}.pot diff --git a/languages/cpp/app_templates/kscreensaver/subdirs b/languages/cpp/app_templates/kscreensaver/subdirs deleted file mode 100644 index 0e678106..00000000 --- a/languages/cpp/app_templates/kscreensaver/subdirs +++ /dev/null @@ -1,3 +0,0 @@ -doc -po -src diff --git a/languages/cpp/app_templates/kxt/README b/languages/cpp/app_templates/kxt/README index a7775d6a..a24ad60a 100644 --- a/languages/cpp/app_templates/kxt/README +++ b/languages/cpp/app_templates/kxt/README @@ -58,7 +58,7 @@ embeddable in other apps. For example, the kmplayer kpart can be called to play in your app. For more details, consult : -http://www-106.ibm.com/developerworks/library/l-kparts/ +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 diff --git a/languages/cpp/app_templates/tdecmodule/module.cpp b/languages/cpp/app_templates/tdecmodule/module.cpp index 2c8d9271..52203d1a 100644 --- a/languages/cpp/app_templates/tdecmodule/module.cpp +++ b/languages/cpp/app_templates/tdecmodule/module.cpp @@ -4,7 +4,7 @@ #include #include -#include +#include #include "%{APPNAMELC}.h" diff --git a/languages/cpp/app_templates/tdescreensaver/.kdev_ignore b/languages/cpp/app_templates/tdescreensaver/.kdev_ignore new file mode 100644 index 00000000..e69de29b diff --git a/languages/cpp/app_templates/tdescreensaver/CMakeLists.txt b/languages/cpp/app_templates/tdescreensaver/CMakeLists.txt new file mode 100644 index 00000000..b1149d88 --- /dev/null +++ b/languages/cpp/app_templates/tdescreensaver/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( tdescreensaver.tar.gz ALL + COMMAND tar zcf tdescreensaver.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} + tdescreensaver.desktop tdescreensaver.png tdescreensaver.h + tdescreensaverui.ui src-Makefile.am tdescreensaver.cpp + tdescreensaver.tdevelop subdirs +) + + +install( FILES + ${CMAKE_CURRENT_BINARY_DIR}/tdescreensaver.tar.gz tdescreensaver.png + DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard ) + + +install( FILES + tdescreensaver.kdevtemplate + DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates ) diff --git a/languages/cpp/app_templates/tdescreensaver/Makefile.am b/languages/cpp/app_templates/tdescreensaver/Makefile.am new file mode 100644 index 00000000..bee93bbc --- /dev/null +++ b/languages/cpp/app_templates/tdescreensaver/Makefile.am @@ -0,0 +1,19 @@ +dataFiles = tdescreensaver.desktop tdescreensaver.png tdescreensaver.h \ + tdescreensaverui.ui src-Makefile.am tdescreensaver.cpp \ + tdescreensaver.tdevelop subdirs + +templateName= tdescreensaver + +### 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/tdescreensaver/src-Makefile.am b/languages/cpp/app_templates/tdescreensaver/src-Makefile.am new file mode 100644 index 00000000..5e2caf20 --- /dev/null +++ b/languages/cpp/app_templates/tdescreensaver/src-Makefile.am @@ -0,0 +1,24 @@ +# Makefile.am for %{APPNAMELC}. +# + +AM_CPPFLAGS = -UQT_NO_ASCII_CAST +METASOURCES = AUTO + +INCLUDES = $(all_includes) +LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEUI) $(LIB_KPARTS) +LDADD = $(LIB_TDEUI) -ltdescreensaver -lm +bin_PROGRAMS = %{APPNAMELC}.kss + +%{APPNAMELC}_kss_SOURCES = %{APPNAMELC}ui.ui %{APPNAMELC}.cpp +%{APPNAMELC}_kss_LDADD = $(LIB_QT) $(LIB_TDECORE) $(LDADD) $(LIB_KSYCOCA) + +#datadir = $(kde_datadir)/%{APPNAMELC} + +desktop_DATA = %{APPNAMELC}.desktop +desktopdir = $(kde_appsdir)/System/ScreenSavers + +EXTRA_DIST = $(desktop_DATA) + +messages: rc.cpp + $(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp + $(XGETTEXT) *.cpp -o $(podir)/%{APPNAMELC}.pot diff --git a/languages/cpp/app_templates/tdescreensaver/subdirs b/languages/cpp/app_templates/tdescreensaver/subdirs new file mode 100644 index 00000000..0e678106 --- /dev/null +++ b/languages/cpp/app_templates/tdescreensaver/subdirs @@ -0,0 +1,3 @@ +doc +po +src diff --git a/languages/cpp/app_templates/tdescreensaver/tdescreensaver.cpp b/languages/cpp/app_templates/tdescreensaver/tdescreensaver.cpp new file mode 100644 index 00000000..f8e88db8 --- /dev/null +++ b/languages/cpp/app_templates/tdescreensaver/tdescreensaver.cpp @@ -0,0 +1,107 @@ +%{CPP_TEMPLATE} + +#include +#include +#include +#include +#include +#include +#include +#include +#include "%{APPNAMELC}.h" +#include "%{APPNAMELC}ui.h" + +//! libtdescreensaver interface +extern "C" +{ + const char *kss_applicationName = "%{APPNAMELC}.kss"; + const char *kss_description = I18N_NOOP( "%{APPNAME}" ); + const char *kss_version = "2.2.0"; + + %{APPNAME} *kss_create( WId id ) + { + TDEGlobal::locale()->insertCatalogue("%{APPNAMELC}"); + return new %{APPNAME}( id ); + } + + TQDialog *kss_setup() + { + TDEGlobal::locale()->insertCatalogue("%{APPNAMELC}"); + return new %{APPNAME}Setup(); + } +} + +//----------------------------------------------------------------------------- +//! dialog to setup screen saver parameters +%{APPNAME}Setup::%{APPNAME}Setup( TQWidget *parent, const char *name ) + : %{APPNAME}UI( parent, name, TRUE ) +{ + /// @todo + //Connect your signals and slots here to configure the screen saver. + connect( OkayPushButton, TQT_SIGNAL( released() ), + TQT_SLOT( slotOkPressed() ) ); + connect( CancelPushButton, TQT_SIGNAL( released() ), + TQT_SLOT( slotCancelPressed() ) ); +} + + +//! read settings from config file +void %{APPNAME}Setup::readSettings() +{ + TDEConfig *config = TDEGlobal::config(); + config->setGroup( "Settings" ); + /// @todo + // Add your config options here... + CheckBox1->setChecked(config->readBoolEntry( "somesetting", false )); +} + + +//! Ok pressed - save settings and exit +void %{APPNAME}Setup::slotOkPressed() +{ + TDEConfig *config = TDEGlobal::config(); + config->setGroup( "Settings" ); + /// @todo + // Add your config options here. + config->writeEntry( "somesetting", CheckBox1->isChecked() ); + config->sync(); + + accept(); +} + +void %{APPNAME}Setup::slotCancelPressed() +{ + reject(); +} +//----------------------------------------------------------------------------- + + +%{APPNAME}::%{APPNAME}( WId id ) : KScreenSaver( id ) +{ + readSettings(); + blank(); +} + +%{APPNAME}::~%{APPNAME}() +{} + + +//! read configuration settings from config file +void %{APPNAME}::readSettings() +{ + TDEConfig *config = TDEGlobal::config(); + config->setGroup( "Settings" ); + /// @todo + // Add your config options here... + bool somesetting = config->readBoolEntry( "somesetting", false ); +} + + +void %{APPNAME}::blank() +{ + /// @todo + //Add your code to render the screen. + setBackgroundColor( TQColor(black) ); + // + erase(); +} diff --git a/languages/cpp/app_templates/tdescreensaver/tdescreensaver.desktop b/languages/cpp/app_templates/tdescreensaver/tdescreensaver.desktop new file mode 100644 index 00000000..b4ec0186 --- /dev/null +++ b/languages/cpp/app_templates/tdescreensaver/tdescreensaver.desktop @@ -0,0 +1,124 @@ +[Desktop Entry] +Exec=%{APPNAMELC}.kss +Icon=tdescreensaver +Type=Application +Actions=Setup;InWindow;Root; +X-TDE-Category=Miscellaneous +Name=%{APPNAME} + +[Desktop Action Setup] +Exec=%{APPNAMELC}.kss -setup +Name=Setup... +Name[br]=Kefluniadur ... +Name[ca]=Configuració... +Name[cy]=Gosod ... +Name[da]=Opsætning... +Name[de]=Einrichtung ... +Name[el]=Ρύθμιση... +Name[es]=Configuración... +Name[et]=Häälestus... +Name[eu]=Konfiguratu... +Name[fa]=برپایی... +Name[fr]=Configuration... +Name[ga]=Cumraigh... +Name[gl]=Configuración... +Name[hu]=Beállítások... +Name[it]=Imposta... +Name[ja]=設定... +Name[lt]=Nustatymas... +Name[ms]=Tetapan... +Name[nds]=Instellen... +Name[ne]=सेटअप... +Name[nl]=Instellen... +Name[pl]=Ustawienia... +Name[pt]=Configurar... +Name[pt_BR]=Configurar... +Name[ru]=Настроить... +Name[rw]=Iboneza... +Name[sk]=Nastavenie... +Name[sl]=Nastavi ... +Name[sr]=Постављање... +Name[sr@Latn]=Postavljanje... +Name[sv]=Inställning... +Name[tr]=Kurulum... +Name[zh_CN]=设置... +Name[zh_TW]=設定... +Icon=tdescreensaver + +[Desktop Action InWindow] +Exec=%{APPNAMELC}.kss -window-id %w +Name=Display in Specified Window +Name[br]=Diskwel er prenestr spisaet +Name[ca]=Mostra a la finestra especificada +Name[cy]=Dangos mewn Ffenestr Benodol +Name[da]=Vis i specificeret vindue +Name[de]=Im angegebenen Fenster anzeigen +Name[el]=Προβολή στο ορισμένο παράθυρο +Name[es]=Mostrar en la ventana especificada +Name[et]=Kuva määratud aknas +Name[eu]=Bistaratu zehaztutako lehioan +Name[fa]=نمایش در پنجرۀ مشخص‌شده +Name[fr]=Afficher dans la fenêtre spécifiée +Name[ga]=Taispeáin san Fhuinneog Sonraithe +Name[gl]=Mostrar na xanela especificada +Name[hu]=Megjelenítés egy adott ablakban +Name[it]=Mostra in una finestra specificata +Name[ja]=指定したウィンドウに表示 +Name[lt]=Rodyti nurodytame lange +Name[ms]=Papar dalam Tetingkap Yang Dinyatakan +Name[nds]=Binnen angeven Finster wiesen +Name[ne]=निर्दिष्ट सञ्झ्यालमा प्रर्दशन +Name[nl]=Weergave in aangegeven venster +Name[pl]=Pokazywanie w podanym oknie +Name[pt]=Mostrar na Janela Indicada +Name[pt_BR]=Exibir na Janela Especificada +Name[ru]=Показать в указанном окне +Name[rw]=Kwerekana mu Idirishya Ryihariye +Name[sk]=Zobraziť v špecifickom okne +Name[sl]=Prikaži v določenem oknu +Name[sr]=Прикажи у наведеном прозору +Name[sr@Latn]=Prikaži u navedenom prozoru +Name[sv]=Visa i angivet fönster +Name[tr]=Belirtilen Pencerede Göster +Name[zh_CN]=在指定窗口中显示 +Name[zh_TW]=顯示在指定視窗 +NoDisplay=true + +[Desktop Action Root] +Exec=%{APPNAMELC}.kss -root +Name=Display in Root Window +Name[br]=Diskwel er prenestr gwrizienn +Name[ca]=Mostra a la finestra arrel +Name[cy]=Dangos mewn Ffenestr Wraidd +Name[da]=Vis i rod-vindue +Name[de]=Im Root-Fenster anzeigen +Name[el]=Προβολή στο βασικό παράθυρο +Name[es]=Mostrar en la ventana raíz +Name[et]=Kuva juuraknas +Name[eu]=Bistaratu erro-lehioan +Name[fa]=نمایش در پنجرۀ ریشه +Name[fr]=Afficher dans la fenêtre racine +Name[ga]=Taispeáin sa bhFréamhfhuinneog +Name[gl]=Mostrar na xanela raíz +Name[hu]=Megjelenítés a gyökérablakban +Name[it]=Mostra nella finestra radice +Name[ja]=ルートウィンドウに表示 +Name[lt]=Rodyti root lange +Name[ms]=Papar dalam Tetingkap Root +Name[nds]=Binnen Wörtelfinster wiesen +Name[ne]=रूट सञ्झ्यालमा प्रर्दशन +Name[nl]=Weergave in hoofdvenster +Name[pl]=Pokazywanie w głównym oknie +Name[pt]=Mostrar na Janela de Fundo +Name[pt_BR]=Exibir na Janela Raiz +Name[ru]=Показать в главном окне +Name[rw]=Kwerekana mu Idirishya Umuzi +Name[sk]=Zobraziť v koreňovom okne +Name[sl]=Prikaži v korenskem oknu +Name[sr]=Прикажи у кореном прозору +Name[sr@Latn]=Prikaži u korenom prozoru +Name[sv]=Visa i rotfönster +Name[tr]=Kök Pencerede Göster +Name[zh_CN]=在根窗口中显示 +Name[zh_TW]=顯示在根視窗 +NoDisplay=true diff --git a/languages/cpp/app_templates/tdescreensaver/tdescreensaver.h b/languages/cpp/app_templates/tdescreensaver/tdescreensaver.h new file mode 100644 index 00000000..e066852a --- /dev/null +++ b/languages/cpp/app_templates/tdescreensaver/tdescreensaver.h @@ -0,0 +1,37 @@ +%{CPP_TEMPLATE} + +#ifndef %{APPNAME}_H__ +#define %{APPNAME}_H__ + +#include "tdescreensaver.h" +#include "%{APPNAMELC}ui.h" + +class %{APPNAME} : public KScreenSaver +{ + Q_OBJECT + +public: + %{APPNAME}( WId drawable ); + virtual ~%{APPNAME}(); +private: + void readSettings(); + void blank(); +}; + +class %{APPNAME}Setup : public %{APPNAME}UI +{ + Q_OBJECT + +public: + %{APPNAME}Setup( TQWidget *parent = NULL, const char *name = NULL ); + +private slots: + void slotOkPressed(); + void slotCancelPressed(); + +private: + void readSettings(); + %{APPNAME} *saver; +}; + +#endif diff --git a/languages/cpp/app_templates/tdescreensaver/tdescreensaver.kdevtemplate b/languages/cpp/app_templates/tdescreensaver/tdescreensaver.kdevtemplate new file mode 100644 index 00000000..df27d577 --- /dev/null +++ b/languages/cpp/app_templates/tdescreensaver/tdescreensaver.kdevtemplate @@ -0,0 +1,203 @@ +# TDE Config File +[General] +Name=TDE Screen Saver +Name[br]=Damanter skramm TDE +Name[ca]=Salvapantalles per al TDE +Name[da]=TDE pauseskærm +Name[de]=TDE-Bildschirmschoner +Name[el]=Προφύλαξη οθόνης του TDE +Name[es]=Salvapantallas para TDE +Name[et]=TDE ekraanisäästja +Name[eu]=TDE pantaila-babeslea +Name[fa]=محافظ صفحۀ TDE +Name[fr]=Écran de veille TDE +Name[ga]=Spárálaí Scáileáin TDE +Name[gl]=Salvapantallas TDE +Name[hu]=TDE-s képernyővédő +Name[it]=Salva schermo di TDE +Name[ja]=TDE スクリーンセーバー +Name[nds]=TDE-Pausschirm +Name[ne]=केडीई स्क्रिन सर्भर +Name[nl]=TDE-schermbeveiliging +Name[pl]=Wygaszacz ekranu TDE +Name[pt]=Protector de Ecrã do TDE +Name[pt_BR]=Protetor de tela do TDE +Name[ru]=Хранитель экрана для TDE +Name[sk]=TDE šetrič obrazovky +Name[sl]=Ohranjevalnik zaslona za TDE +Name[sr]=TDE чувар екрана +Name[sr@Latn]=TDE čuvar ekrana +Name[sv]=TDE-skärmsläckare +Name[tr]=TDE Ekran Koruyucusu +Name[zh_CN]= TDE 屏幕保护程序 +Name[zh_TW]=TDE 螢幕保護程式 +Icon=tdescreensaver.png +Category=C++/TDE +Comment=Generates a framework for a TDE screensaver. +Comment[ca]=Genera una infraestructura per a un salvapantalles de TDE. +Comment[da]=Genererer et skelet for en TDE-pauseskærm. +Comment[de]=Erstellt das Gerüst für einen TDE-Bildschirmschoner. +Comment[el]=Δημιουργεί ένα πλαίσιο για μια προφύλαξη οθόνης του TDE. +Comment[es]=Genera una infraestructura para un salvapantallas de TDE +Comment[et]=TDE ekraanisäästja raamistiku loomine. +Comment[eu]=TDE-ren pantaila-babesle baten lan-marko bat sortzen du. +Comment[fa]=چارچوبی برای محافظ صفحۀ TDE تولید می‌کند. +Comment[fr]=Génère une infrastructure pour un écran de veille TDE. +Comment[gl]=Xera un contorno de traballo para un salvapantallas TDE. +Comment[hu]=Létrehoz egy alap TDE-s képernyővédőt. +Comment[it]=Genera l'infrastruttura per un salvaschermo di TDE. +Comment[ja]=TDE スクリーンセーバーのフレームワークを作成します +Comment[nds]=Stellt dat Rahmenwark för en TDE-Pausschirm op. +Comment[ne]=केडीई स्क्रिनसेभरका लागि फ्रेमवर्क उत्पन्न गर्दछ +Comment[nl]=Genereert een framework voor een TDE-schermbeveiliging. +Comment[pl]=Generuje szablon wygaszacza ekranu dla TDE. +Comment[pt]=Gera a plataforma para um protector de ecrã do TDE. +Comment[pt_BR]=Gera a plataforma para um protector de ecrã do TDE. +Comment[ru]=Создание инфраструктуры хранителя экрана для TDE. +Comment[sk]=Vygeneruje framework pre TDE šetrič obrazovky. +Comment[sl]=Ustvari ogrodje ohranjevalnika zaslona za TDE. +Comment[sr]=Прави радни оквир за TDE чувар екрана. +Comment[sr@Latn]=Pravi radni okvir za TDE čuvar ekrana. +Comment[sv]=Skapar ett ramverk för en TDE-skärmsläckare +Comment[tr]=Bir TDE ekran koruyucusu için bir çatı oluşturulur. +Comment[zh_CN]=生成 TDE 屏幕保护程序框架。 +Comment[zh_TW]=產生一個 TDE 螢幕保護程式的框架 +FileTemplates=h,CStyle,cpp,CStyle +ShowFilesAfterGeneration=%{dest}/src/%{APPNAMELC}.cpp +Archive=tdescreensaver.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 +EscapeXML=true +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}/tdescreensaver.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}/tdescreensaver.cpp +Dest=%{dest}/src/%{APPNAMELC}.cpp + +[FILE13] +Type=install +Source=%{src}/tdescreensaver.h +Dest=%{dest}/src/%{APPNAMELC}.h + +[FILE14] +Type=install +Source=%{src}/tdescreensaver.desktop +Dest=%{dest}/src/%{APPNAMELC}.desktop + +[FILE15] +Type=install +EscapeXML=true +Source=%{src}/tdescreensaverui.ui +Dest=%{dest}/src/%{APPNAMELC}ui.ui + +[MSG] +Type=message +Comment=A screensaver application was created in %{dest} +Comment[ca]=Una aplicació de salvapantalles ha estat creada en %{dest} +Comment[da]=Et pauseskærmsprogram blev oprettet i %{dest} +Comment[de]=Ein Bildschirmschoner wurde in %{dest} erstellt. +Comment[el]=Μια εφαρμογή προφύλαξης οθόνης δημιουργήθηκε στο %{dest} +Comment[es]=Una aplicación salvapantallas ha sido creada en %{dest} +Comment[et]=Ekraanisäästja rakendus loodi asukohta %{dest} +Comment[eu]=Pantaila-babesle baten aplikazioa sortu da hemen: %{dest} +Comment[fa]=یک کاربرد محافظ صفحه در %{dest} ایجاد شد +Comment[fr]=Une application écran de veille a été créé dans %{dest} +Comment[ga]=Cruthaíodh spárálaí scáileáin i %{dest} +Comment[gl]=Creouse unha aplicación salvapantallas en %{dest} +Comment[hu]=Létrejött egy alap képernyővédő program itt: %{dest} +Comment[it]=È stata creata un'applicazione salvaschermo in %{dest} +Comment[ja]=スクリーンセーバーアプリケーションを %{dest} に作成しました +Comment[nds]=In %{dest} wöör en Pausschirm opstellt +Comment[ne]=स्क्रिनसेभर अनुप्रयोग %{dest} मा सिर्जना गरियो +Comment[nl]=Een schermbeveiligingstoepassing is aangemaakt in %{dest} +Comment[pl]=Program wygaszacza ekranu został utworzony w %{dest} +Comment[pt]=Foi criada uma aplicação protectora do ecrã em %{dest} +Comment[pt_BR]=Foi criada uma aplicação protectora do ecrã em %{dest} +Comment[ru]=Приложение хранителя экрана создано в %{dest} +Comment[sk]=Aplikácia šetriča obrazovky bola vytvorená v %{dest} +Comment[sl]=Program ohranjevalnika zaslona je bil ustvarjen v %{dest} +Comment[sr]=Програм чувара екрана направљен је у %{dest} +Comment[sr@Latn]=Program čuvara ekrana napravljen je u %{dest} +Comment[sv]=Ett skärmsläckarprogram skapades i %{dest} +Comment[tr]=Bir ekran koruyucusu uygulaması %{dest} içinde yaratıldı. +Comment[zh_CN]=在 %{dest} 中创建了屏幕保护应用程序 +Comment[zh_TW]=一個螢幕保護程式已建立於 %{dest} diff --git a/languages/cpp/app_templates/tdescreensaver/tdescreensaver.png b/languages/cpp/app_templates/tdescreensaver/tdescreensaver.png new file mode 100644 index 00000000..e91ec2e2 Binary files /dev/null and b/languages/cpp/app_templates/tdescreensaver/tdescreensaver.png differ diff --git a/languages/cpp/app_templates/tdescreensaver/tdescreensaver.tdevelop b/languages/cpp/app_templates/tdescreensaver/tdescreensaver.tdevelop new file mode 100644 index 00000000..38429f89 --- /dev/null +++ b/languages/cpp/app_templates/tdescreensaver/tdescreensaver.tdevelop @@ -0,0 +1,113 @@ + + + + %{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 + + + + + + + + + + + + + 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/tdescreensaver/tdescreensaverui.ui b/languages/cpp/app_templates/tdescreensaver/tdescreensaverui.ui new file mode 100644 index 00000000..e83bcda9 --- /dev/null +++ b/languages/cpp/app_templates/tdescreensaver/tdescreensaverui.ui @@ -0,0 +1,79 @@ + +%{APPNAME}UI +This is the main UI for setting up your screen saver. +Ian Reinhart Geiser + + + %{APPNAMELC}cfg + + + + 0 + 0 + 257 + 58 + + + + Screen Saver Config + + + + Layout2 + + + + 5 + 0 + 255 + 57 + + + + + unnamed + + + + CheckBox1 + + + Set some setting + + + + + Layout1 + + + + unnamed + + + + + OkayPushButton + + + &OK + + + + + CancelPushButton + + + &Cancel + + + + + + + + + kdialog.h + + + + diff --git a/languages/cpp/ast_utils.cpp b/languages/cpp/ast_utils.cpp index f6d19c2a..48eb7bb9 100644 --- a/languages/cpp/ast_utils.cpp +++ b/languages/cpp/ast_utils.cpp @@ -19,7 +19,7 @@ #include #include -#include +#include #include "cppsupport_utils.h" diff --git a/languages/cpp/backgroundparser.cpp b/languages/cpp/backgroundparser.cpp index ab89713f..a19d3289 100644 --- a/languages/cpp/backgroundparser.cpp +++ b/languages/cpp/backgroundparser.cpp @@ -20,10 +20,10 @@ #include -#include -#include -#include -#include +#include +#include +#include +#include #include #include diff --git a/languages/cpp/codecompletionentry.h b/languages/cpp/codecompletionentry.h index e510b765..a219fe7a 100644 --- a/languages/cpp/codecompletionentry.h +++ b/languages/cpp/codecompletionentry.h @@ -24,7 +24,7 @@ #ifndef __CODECOMPLETIONENTRY_H__ #define __CODECOMPLETIONENTRY_H__ -#include +#include //this is just a little helper-class to allow custom sorting, it must stay binary compatible with KTextEditor::CompletionEntry!! class CodeCompletionEntry : public KTextEditor::CompletionEntry diff --git a/languages/cpp/codeinformationrepository.h b/languages/cpp/codeinformationrepository.h index 961af5ef..07655dac 100644 --- a/languages/cpp/codeinformationrepository.h +++ b/languages/cpp/codeinformationrepository.h @@ -16,7 +16,7 @@ #include "cppcodecompletion.h" #include -#include +#include struct TypeProcessor { virtual TQString processType( const TQString& type ) = 0; diff --git a/languages/cpp/cppcodecompletion.cpp b/languages/cpp/cppcodecompletion.cpp index 56e8a644..7ef40424 100644 --- a/languages/cpp/cppcodecompletion.cpp +++ b/languages/cpp/cppcodecompletion.cpp @@ -44,9 +44,9 @@ email : david.nolden.tdevelop@art-master.de #include #include #include -#include +#include #include -#include +#include #include #include diff --git a/languages/cpp/cppcodecompletion.h b/languages/cpp/cppcodecompletion.h index 297f2692..24877215 100644 --- a/languages/cpp/cppcodecompletion.h +++ b/languages/cpp/cppcodecompletion.h @@ -27,12 +27,12 @@ #include #include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include #include diff --git a/languages/cpp/cppsupportpart.cpp b/languages/cpp/cppsupportpart.cpp index 94eab619..f0ec6fa9 100644 --- a/languages/cpp/cppsupportpart.cpp +++ b/languages/cpp/cppsupportpart.cpp @@ -41,7 +41,7 @@ #include "kdevcreatefile.h" #include "qtbuildconfig.h" #include "kdeveditorutil.h" -#include +#include #include // wizards #include "cppnewclassdlg.h" @@ -85,13 +85,13 @@ #include #include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include #include #include diff --git a/languages/cpp/createpcsdialog.cpp b/languages/cpp/createpcsdialog.cpp index 35331654..5c747144 100644 --- a/languages/cpp/createpcsdialog.cpp +++ b/languages/cpp/createpcsdialog.cpp @@ -20,7 +20,7 @@ #include #include -#include +#include #include #include diff --git a/languages/cpp/debugger/debuggerpart.cpp b/languages/cpp/debugger/debuggerpart.cpp index 699b28dd..9c2ade95 100644 --- a/languages/cpp/debugger/debuggerpart.cpp +++ b/languages/cpp/debugger/debuggerpart.cpp @@ -28,8 +28,8 @@ #include #include #include -#include -#include +#include +#include #include #include #include diff --git a/languages/cpp/doc/kde2book.toc b/languages/cpp/doc/kde2book.toc index e0b4db61..1156df06 100644 --- a/languages/cpp/doc/kde2book.toc +++ b/languages/cpp/doc/kde2book.toc @@ -1534,10 +1534,10 @@ - - - - + + + + @@ -1725,8 +1725,8 @@ - - + + diff --git a/languages/cpp/pcsimporter/tdelibsimporter/kdevtdelibsimporter.cpp b/languages/cpp/pcsimporter/tdelibsimporter/kdevtdelibsimporter.cpp index c3e7ca0c..174219a3 100644 --- a/languages/cpp/pcsimporter/tdelibsimporter/kdevtdelibsimporter.cpp +++ b/languages/cpp/pcsimporter/tdelibsimporter/kdevtdelibsimporter.cpp @@ -62,8 +62,8 @@ TQStringList KDevKDELibsImporter::fileList() files += fileList( m_settings->kdeDir() + "/tdesu" ); files += fileList( m_settings->kdeDir() + "/kio" ); files += fileList( m_settings->kdeDir() + "/kjs" ); - files += fileList( m_settings->kdeDir() + "/kparts" ); - files += fileList( m_settings->kdeDir() + "/ktexteditor" ); + files += fileList( m_settings->kdeDir() + "/tdeparts" ); + files += fileList( m_settings->kdeDir() + "/tdetexteditor" ); } else if ( scope == 1 ) { diff --git a/languages/cpp/problemreporter.cpp b/languages/cpp/problemreporter.cpp index 27b139f0..6f87771f 100644 --- a/languages/cpp/problemreporter.cpp +++ b/languages/cpp/problemreporter.cpp @@ -26,13 +26,13 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include -#include -#include +#include +#include #include #include diff --git a/languages/cpp/qtdesignercppintegration.cpp b/languages/cpp/qtdesignercppintegration.cpp index 32d407a4..c87d0266 100644 --- a/languages/cpp/qtdesignercppintegration.cpp +++ b/languages/cpp/qtdesignercppintegration.cpp @@ -27,9 +27,9 @@ #include #include #include -#include -#include -#include +#include +#include +#include #include #include diff --git a/languages/cpp/typedesc.h b/languages/cpp/typedesc.h index de2417a1..0229c781 100644 --- a/languages/cpp/typedesc.h +++ b/languages/cpp/typedesc.h @@ -15,7 +15,7 @@ #ifndef __TYPEDESC_H__ #define __TYPEDESC_H__ -#include +#include #include #include "includefiles.h" -- cgit v1.2.1