From 6392f5a9dfce2bf83617d49bb7f332181ec6004e Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 25 May 2014 15:37:31 +0900 Subject: Revert "Finish renaming tdevelop components" This reverts commit 722ce1efbac31c61b1d4b13f7e075c9f311e3e73. --- languages/java/CMakeLists.txt | 14 +- languages/java/KDevJavaSupportIface.cpp | 24 ++ languages/java/KDevJavaSupportIface.h | 27 ++ languages/java/Makefile.am | 16 +- languages/java/TDevJavaSupportIface.cpp | 24 -- languages/java/TDevJavaSupportIface.h | 27 -- languages/java/app_templates/CMakeLists.txt | 2 +- languages/java/app_templates/Makefile.am | 2 +- languages/java/app_templates/java.appwizard | 2 +- .../java/app_templates/javahello/CMakeLists.txt | 6 +- languages/java/app_templates/javahello/Makefile.am | 4 +- .../app_templates/javahello/javahello.filelist | 2 +- .../app_templates/javahello/javahello.kdevtemplate | 124 +++++++++ .../app_templates/javahello/javahello.tdevelop | 14 +- .../app_templates/javahello/javahello.tdevtemplate | 124 --------- .../java/app_templates/kappjava/CMakeLists.txt | 26 ++ languages/java/app_templates/kappjava/Makefile.am | 17 ++ languages/java/app_templates/kappjava/app.desktop | 41 +++ languages/java/app_templates/kappjava/app.java | 281 +++++++++++++++++++++ languages/java/app_templates/kappjava/app.tdevelop | 88 +++++++ .../java/app_templates/kappjava/app_client.java | 28 ++ languages/java/app_templates/kappjava/appui.rc | 8 + languages/java/app_templates/kappjava/appview.java | 115 +++++++++ languages/java/app_templates/kappjava/kappjava | 10 + .../app_templates/kappjava/kappjava.kdevtemplate | 163 ++++++++++++ languages/java/app_templates/kappjava/kappjava.png | Bin 0 -> 5063 bytes languages/java/app_templates/kappjava/pref.java | 52 ++++ .../java/app_templates/kappjava/src-Makefile.am | 18 ++ languages/java/app_templates/kappjava/subdirs | 3 + .../java/app_templates/superwaba/CMakeLists.txt | 6 +- languages/java/app_templates/superwaba/Makefile.am | 4 +- .../app_templates/superwaba/superwaba.kdevtemplate | 166 ++++++++++++ .../app_templates/superwaba/superwaba.tdevtemplate | 166 ------------ languages/java/app_templates/superwaba/sw.tdevelop | 20 +- .../java/app_templates/tdeappjava/CMakeLists.txt | 26 -- .../java/app_templates/tdeappjava/Makefile.am | 17 -- .../java/app_templates/tdeappjava/app.desktop | 41 --- languages/java/app_templates/tdeappjava/app.java | 281 --------------------- .../java/app_templates/tdeappjava/app.tdevelop | 88 ------- .../java/app_templates/tdeappjava/app_client.java | 28 -- languages/java/app_templates/tdeappjava/appui.rc | 8 - .../java/app_templates/tdeappjava/appview.java | 115 --------- languages/java/app_templates/tdeappjava/pref.java | 52 ---- .../java/app_templates/tdeappjava/src-Makefile.am | 18 -- languages/java/app_templates/tdeappjava/subdirs | 3 - languages/java/app_templates/tdeappjava/tdeappjava | 10 - .../java/app_templates/tdeappjava/tdeappjava.png | Bin 5063 -> 0 bytes .../tdeappjava/tdeappjava.tdevtemplate | 163 ------------ languages/java/backgroundparser.cpp | 10 +- languages/java/backgroundparser.h | 2 +- languages/java/doc/CMakeLists.txt | 2 +- languages/java/doc/Makefile.am | 2 +- languages/java/file_templates/CMakeLists.txt | 2 +- languages/java/file_templates/Makefile.am | 2 +- languages/java/javasupport_events.h | 2 +- languages/java/javasupportfactory.cpp | 16 +- languages/java/javasupportfactory.h | 8 +- languages/java/javasupportpart.cpp | 30 +-- languages/java/javasupportpart.h | 10 +- languages/java/kdevdeepcopy.h | 12 + languages/java/kdevdriver.cpp | 44 ++++ languages/java/kdevdriver.h | 30 +++ languages/java/kdevjavasupport.desktop | 85 +++++++ languages/java/kdevjavasupport.rc | 4 + languages/java/newclass_templates/Makefile.am | 2 +- languages/java/problemreporter.cpp | 4 +- languages/java/tdevdeepcopy.h | 12 - languages/java/tdevdriver.cpp | 44 ---- languages/java/tdevdriver.h | 30 --- languages/java/tdevjavasupport.desktop | 85 ------- languages/java/tdevjavasupport.rc | 4 - 71 files changed, 1458 insertions(+), 1458 deletions(-) create mode 100644 languages/java/KDevJavaSupportIface.cpp create mode 100644 languages/java/KDevJavaSupportIface.h delete mode 100644 languages/java/TDevJavaSupportIface.cpp delete mode 100644 languages/java/TDevJavaSupportIface.h create mode 100644 languages/java/app_templates/javahello/javahello.kdevtemplate delete mode 100644 languages/java/app_templates/javahello/javahello.tdevtemplate create mode 100644 languages/java/app_templates/kappjava/CMakeLists.txt create mode 100644 languages/java/app_templates/kappjava/Makefile.am create mode 100644 languages/java/app_templates/kappjava/app.desktop create mode 100644 languages/java/app_templates/kappjava/app.java create mode 100644 languages/java/app_templates/kappjava/app.tdevelop create mode 100644 languages/java/app_templates/kappjava/app_client.java create mode 100644 languages/java/app_templates/kappjava/appui.rc create mode 100644 languages/java/app_templates/kappjava/appview.java create mode 100644 languages/java/app_templates/kappjava/kappjava create mode 100644 languages/java/app_templates/kappjava/kappjava.kdevtemplate create mode 100644 languages/java/app_templates/kappjava/kappjava.png create mode 100644 languages/java/app_templates/kappjava/pref.java create mode 100644 languages/java/app_templates/kappjava/src-Makefile.am create mode 100644 languages/java/app_templates/kappjava/subdirs create mode 100644 languages/java/app_templates/superwaba/superwaba.kdevtemplate delete mode 100644 languages/java/app_templates/superwaba/superwaba.tdevtemplate delete mode 100644 languages/java/app_templates/tdeappjava/CMakeLists.txt delete mode 100644 languages/java/app_templates/tdeappjava/Makefile.am delete mode 100644 languages/java/app_templates/tdeappjava/app.desktop delete mode 100644 languages/java/app_templates/tdeappjava/app.java delete mode 100644 languages/java/app_templates/tdeappjava/app.tdevelop delete mode 100644 languages/java/app_templates/tdeappjava/app_client.java delete mode 100644 languages/java/app_templates/tdeappjava/appui.rc delete mode 100644 languages/java/app_templates/tdeappjava/appview.java delete mode 100644 languages/java/app_templates/tdeappjava/pref.java delete mode 100644 languages/java/app_templates/tdeappjava/src-Makefile.am delete mode 100644 languages/java/app_templates/tdeappjava/subdirs delete mode 100644 languages/java/app_templates/tdeappjava/tdeappjava delete mode 100644 languages/java/app_templates/tdeappjava/tdeappjava.png delete mode 100644 languages/java/app_templates/tdeappjava/tdeappjava.tdevtemplate create mode 100644 languages/java/kdevdeepcopy.h create mode 100644 languages/java/kdevdriver.cpp create mode 100644 languages/java/kdevdriver.h create mode 100644 languages/java/kdevjavasupport.desktop create mode 100644 languages/java/kdevjavasupport.rc delete mode 100644 languages/java/tdevdeepcopy.h delete mode 100644 languages/java/tdevdriver.cpp delete mode 100644 languages/java/tdevdriver.h delete mode 100644 languages/java/tdevjavasupport.desktop delete mode 100644 languages/java/tdevjavasupport.rc (limited to 'languages/java') diff --git a/languages/java/CMakeLists.txt b/languages/java/CMakeLists.txt index 546c6ac9..d3f7f5a7 100644 --- a/languages/java/CMakeLists.txt +++ b/languages/java/CMakeLists.txt @@ -35,20 +35,20 @@ link_directories( ##### other data ################################ -install( FILES tdevjavasupport.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) -install( FILES tdevjavasupport.rc DESTINATION ${DATA_INSTALL_DIR}/tdevjavasupport ) +install( FILES kdevjavasupport.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES kdevjavasupport.rc DESTINATION ${DATA_INSTALL_DIR}/kdevjavasupport ) -##### libtdevjavasupport (module) ############### +##### libkdevjavasupport (module) ############### -tde_add_kpart( libtdevjavasupport AUTOMOC +tde_add_kpart( libkdevjavasupport AUTOMOC SOURCES - JavaLexer.cpp TDevJavaSupportIface.cpp + JavaLexer.cpp KDevJavaSupportIface.cpp javasupportfactory.cpp JavaRecognizer.cpp backgroundparser.cpp configproblemreporter.ui javasupportpart.cpp JavaStoreWalker.cpp javasupport_utils.cpp problemreporter.cpp driver.cpp - tdevdriver.cpp TDevJavaSupportIface.skel - LINK antlr-static tdevcatalog-shared tdevelop-shared + kdevdriver.cpp KDevJavaSupportIface.skel + LINK antlr-static kdevcatalog-shared tdevelop-shared DESTINATION ${PLUGIN_INSTALL_DIR} ) diff --git a/languages/java/KDevJavaSupportIface.cpp b/languages/java/KDevJavaSupportIface.cpp new file mode 100644 index 00000000..b1225700 --- /dev/null +++ b/languages/java/KDevJavaSupportIface.cpp @@ -0,0 +1,24 @@ + +#include "KDevJavaSupportIface.h" +#include "javasupportpart.h" + +KDevJavaSupportIface::KDevJavaSupportIface( JavaSupportPart* javaSupport ) + : TQObject( javaSupport ), DCOPObject( "KDevJavaSupport" ), m_javaSupport( javaSupport ) +{ +} + +KDevJavaSupportIface::~KDevJavaSupportIface() +{ +} + +void KDevJavaSupportIface::addClass() +{ + m_javaSupport->slotNewClass(); +} + +void KDevJavaSupportIface::parseProject() +{ + m_javaSupport->parseProject(); +} + +#include "KDevJavaSupportIface.moc" diff --git a/languages/java/KDevJavaSupportIface.h b/languages/java/KDevJavaSupportIface.h new file mode 100644 index 00000000..d0c4d441 --- /dev/null +++ b/languages/java/KDevJavaSupportIface.h @@ -0,0 +1,27 @@ + +#ifndef KDEVJAVASUPPORTIFACE_H +#define KDEVJAVASUPPORTIFACE_H + +#include +#include + +class JavaSupportPart; + +class KDevJavaSupportIface : public TQObject, public DCOPObject +{ + Q_OBJECT +// + K_DCOP +public: + KDevJavaSupportIface( JavaSupportPart* javaSupport ); + ~KDevJavaSupportIface(); + +k_dcop: + void addClass(); + void parseProject(); + +private: + JavaSupportPart* m_javaSupport; +}; + +#endif diff --git a/languages/java/Makefile.am b/languages/java/Makefile.am index 8e19da19..a1a1e812 100644 --- a/languages/java/Makefile.am +++ b/languages/java/Makefile.am @@ -10,13 +10,13 @@ INCLUDES = -I$(top_srcdir)/lib/antlr -I$(top_srcdir)/lib/catalog \ -I$(top_srcdir)/lib/interfaces/extensions -I$(top_srcdir)/lib/interfaces/external -I$(top_srcdir)/lib/util \ $(all_includes) -kde_module_LTLIBRARIES = libtdevjavasupport.la -libtdevjavasupport_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) -libtdevjavasupport_la_LIBADD = $(top_builddir)/lib/libtdevelop.la $(top_builddir)/lib/antlr/src/libantlr.la $(top_builddir)/lib/catalog/libtdevcatalog.la +kde_module_LTLIBRARIES = libkdevjavasupport.la +libkdevjavasupport_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) +libkdevjavasupport_la_LIBADD = $(top_builddir)/lib/libtdevelop.la $(top_builddir)/lib/antlr/src/libantlr.la $(top_builddir)/lib/catalog/libkdevcatalog.la -libtdevjavasupport_la_SOURCES = JavaLexer.cpp TDevJavaSupportIface.cpp javasupportfactory.cpp \ +libkdevjavasupport_la_SOURCES = JavaLexer.cpp KDevJavaSupportIface.cpp javasupportfactory.cpp \ JavaRecognizer.cpp backgroundparser.cpp configproblemreporter.ui javasupportpart.cpp \ -JavaStoreWalker.cpp javasupport_utils.cpp problemreporter.cpp driver.cpp tdevdriver.cpp TDevJavaSupportIface.skel +JavaStoreWalker.cpp javasupport_utils.cpp problemreporter.cpp driver.cpp kdevdriver.cpp KDevJavaSupportIface.skel EXTRA_DIST = java.g java.tree.g java.store.g @@ -31,7 +31,7 @@ EXTRA_DIST = java.g java.tree.g java.store.g METASOURCES = AUTO servicedir = $(kde_servicesdir) -service_DATA = tdevjavasupport.desktop +service_DATA = kdevjavasupport.desktop -rcdir = $(kde_datadir)/tdevjavasupport -rc_DATA = tdevjavasupport.rc +rcdir = $(kde_datadir)/kdevjavasupport +rc_DATA = kdevjavasupport.rc diff --git a/languages/java/TDevJavaSupportIface.cpp b/languages/java/TDevJavaSupportIface.cpp deleted file mode 100644 index b9847558..00000000 --- a/languages/java/TDevJavaSupportIface.cpp +++ /dev/null @@ -1,24 +0,0 @@ - -#include "TDevJavaSupportIface.h" -#include "javasupportpart.h" - -TDevJavaSupportIface::TDevJavaSupportIface( JavaSupportPart* javaSupport ) - : TQObject( javaSupport ), DCOPObject( "TDevJavaSupport" ), m_javaSupport( javaSupport ) -{ -} - -TDevJavaSupportIface::~TDevJavaSupportIface() -{ -} - -void TDevJavaSupportIface::addClass() -{ - m_javaSupport->slotNewClass(); -} - -void TDevJavaSupportIface::parseProject() -{ - m_javaSupport->parseProject(); -} - -#include "TDevJavaSupportIface.moc" diff --git a/languages/java/TDevJavaSupportIface.h b/languages/java/TDevJavaSupportIface.h deleted file mode 100644 index 9732ca51..00000000 --- a/languages/java/TDevJavaSupportIface.h +++ /dev/null @@ -1,27 +0,0 @@ - -#ifndef TDEVJAVASUPPORTIFACE_H -#define TDEVJAVASUPPORTIFACE_H - -#include -#include - -class JavaSupportPart; - -class TDevJavaSupportIface : public TQObject, public DCOPObject -{ - Q_OBJECT -// - K_DCOP -public: - TDevJavaSupportIface( JavaSupportPart* javaSupport ); - ~TDevJavaSupportIface(); - -k_dcop: - void addClass(); - void parseProject(); - -private: - JavaSupportPart* m_javaSupport; -}; - -#endif diff --git a/languages/java/app_templates/CMakeLists.txt b/languages/java/app_templates/CMakeLists.txt index 34cc305c..f7e7d242 100644 --- a/languages/java/app_templates/CMakeLists.txt +++ b/languages/java/app_templates/CMakeLists.txt @@ -10,7 +10,7 @@ ################################################# add_subdirectory( javahello ) -add_subdirectory( tdeappjava ) +add_subdirectory( kappjava ) add_subdirectory( superwaba ) install( FILES diff --git a/languages/java/app_templates/Makefile.am b/languages/java/app_templates/Makefile.am index f30aefdb..fe3931a3 100644 --- a/languages/java/app_templates/Makefile.am +++ b/languages/java/app_templates/Makefile.am @@ -1,3 +1,3 @@ -SUBDIRS = javahello tdeappjava superwaba +SUBDIRS = javahello kappjava superwaba profilesdir = $(kde_datadir)/tdevelop/profiles/IDE/CompiledLanguageIDE/JavaIDE profiles_DATA = java.appwizard diff --git a/languages/java/app_templates/java.appwizard b/languages/java/app_templates/java.appwizard index f4f8d6ba..087d6c0c 100644 --- a/languages/java/app_templates/java.appwizard +++ b/languages/java/app_templates/java.appwizard @@ -1,2 +1,2 @@ [General] -List=javahello,tdeappjava,superwaba +List=javahello,kappjava,superwaba diff --git a/languages/java/app_templates/javahello/CMakeLists.txt b/languages/java/app_templates/javahello/CMakeLists.txt index 04fd4963..8129bbc1 100644 --- a/languages/java/app_templates/javahello/CMakeLists.txt +++ b/languages/java/app_templates/javahello/CMakeLists.txt @@ -17,9 +17,9 @@ add_custom_target( javahello.tar.gz ALL install( FILES ${CMAKE_CURRENT_BINARY_DIR}/javahello.tar.gz javahello.png - DESTINATION ${DATA_INSTALL_DIR}/tdevappwizard ) + DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard ) install( FILES - javahello.tdevtemplate - DESTINATION ${DATA_INSTALL_DIR}/tdevappwizard/templates ) + javahello.kdevtemplate + DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates ) diff --git a/languages/java/app_templates/javahello/Makefile.am b/languages/java/app_templates/javahello/Makefile.am index e3e3be27..f47e7056 100644 --- a/languages/java/app_templates/javahello/Makefile.am +++ b/languages/java/app_templates/javahello/Makefile.am @@ -2,10 +2,10 @@ dataFiles = Main.java build.xml javahello.filelist javahello.tdevelop templateName= javahello ### no need to change below: -template_DATA = $(templateName).tdevtemplate +template_DATA = $(templateName).kdevtemplate templatedir = ${appwizarddatadir}/templates -appwizarddatadir = ${kde_datadir}/tdevappwizard +appwizarddatadir = ${kde_datadir}/kdevappwizard $(templateName).tar.gz: ${dataFiles} $(TAR) -cf $(templateName).tar -C $(srcdir) ${dataFiles} $(GZIP_COMMAND) -f9 $(templateName).tar diff --git a/languages/java/app_templates/javahello/javahello.filelist b/languages/java/app_templates/javahello/javahello.filelist index b9ce43ab..97da44be 100644 --- a/languages/java/app_templates/javahello/javahello.filelist +++ b/languages/java/app_templates/javahello/javahello.filelist @@ -1,2 +1,2 @@ -# TDevelop Custom Project File List +# KDevelop Custom Project File List Main.java diff --git a/languages/java/app_templates/javahello/javahello.kdevtemplate b/languages/java/app_templates/javahello/javahello.kdevtemplate new file mode 100644 index 00000000..62fcffc5 --- /dev/null +++ b/languages/java/app_templates/javahello/javahello.kdevtemplate @@ -0,0 +1,124 @@ +# KDE Config File +[General] +Name=Application +Name[br]=Arload +Name[ca]=Aplicació +Name[cy]=Cymhwysiad +Name[da]=Program +Name[de]=Anwendung +Name[el]=Εφαρμογή +Name[es]=Aplicación +Name[et]=Rakendus +Name[eu]=Aplikazioa +Name[fa]=کاربرد +Name[ga]=Feidhmchlár +Name[gl]=Aplicación +Name[hu]=Alkalmazások +Name[it]=Applicazione +Name[ja]=アプリケーション +Name[lt]=Programa +Name[ms]=Aplikasi +Name[nds]=Programm +Name[ne]=अनुप्रयोग +Name[nl]=Toepassing +Name[pl]=Program +Name[pt]=Aplicação +Name[pt_BR]=Aplicativo +Name[ru]=Приложение +Name[rw]=Porogaramu +Name[sk]=Aplikácia +Name[sl]=Program +Name[sr]=Програм +Name[sr@Latn]=Program +Name[sv]=Program +Name[tr]=Uygulama +Name[zh_CN]=应用程序 +Name[zh_TW]=應用程式 +Icon=qmakeapp.png +Category=Java/Ant project +Category[fr]=Java/Ant +Comment=Generate a Java application +Comment[ca]=Genera una aplicació Java +Comment[da]=Generér et Java-program +Comment[de]=Erstellt eine Java-Anwendung +Comment[el]=Δημιουργία μιας εφαρμογής Java +Comment[es]=Genera una aplicación en Java +Comment[et]=Java rakenduse loomine +Comment[eu]=Sortu Java aplikazio bat +Comment[fa]=یک کاربرد جاوا تولید می‌کند +Comment[fr]=Génère une application Java +Comment[ga]=Cruthaigh feidhmchlár Java +Comment[gl]=Xera unha aplicación Java +Comment[hu]=Létrehoz egy Java-alkalmazást +Comment[it]=Genera un'applicazione Java +Comment[ja]= Java アプリケーションを作成 +Comment[nds]=Stellt en Java-Programm op +Comment[ne]=जाभा अनुप्रयोग उत्पन्न गर्नुहोस् +Comment[nl]=Genereer een Java-toepassing +Comment[pl]=Generuj program w Javie +Comment[pt]=Gera uma aplicação em Java +Comment[pt_BR]=Gera uma aplicação em Java +Comment[ru]=Создание приложения Java +Comment[sk]=Vygeneruje Java aplikáciu +Comment[sr]=Прави Java програм +Comment[sr@Latn]=Pravi Java program +Comment[sv]=Skapa ett Java-program +Comment[tr]=Bir Java uygulaması yarat +Comment[zh_CN]=生成一个 Java 应用程序 +Comment[zh_TW]=產生 Java 應用程式 +FileTemplates=java,JavaStyle +ShowFilesAfterGeneration=%{dest}/Main.java +Archive=javahello.tar.gz + +[FILE1] +Type=install +EscapeXML=true +Source=%{src}/javahello.tdevelop +Dest=%{dest}/%{APPNAMELC}.tdevelop + +[FILE2] +Type=install +Source=%{src}/javahello.filelist +Dest=%{dest}/%{APPNAMELC}.filelist + +[FILE3] +Type=install +Source=%{src}/Main.java +Dest=%{dest}/Main.java + +[FILE4] +Type=install +Source=%{src}/build.xml +Dest=%{dest}/build.xml + +[msg] +Type=message +Comment=A JAVA application was created in %{dest} +Comment[ca]=Una aplicació JAVA ha estat creada en %{dest} +Comment[da]=Et JAVA-program blev oprettet i %{dest} +Comment[de]=Eine Java-Anwendung wurde in %{dest} erstellt. +Comment[el]=Μια εφαρμογή JAVA δημιουργήθηκε στο %{dest} +Comment[es]=Una aplicación en Java ha sido creada en %{dest} +Comment[et]=Java rakendus loodi asukohta %{dest} +Comment[eu]=JAVA aplikazio bat sortu da hemen: %{dest} +Comment[fa]=یک کاربرد جاوا در %{dest} ایجاد شد +Comment[fr]=Une application Java a été créée dans %{dest} +Comment[ga]=Cruthaíodh feidhmchlár JAVA i %{dest} +Comment[gl]=Creouse una aplicación JAVA en %{dest} +Comment[hu]=Létrejött egy Java-alkalmazás itt: %{dest} +Comment[it]=È stata creata un'applicazione Java in %{dest} +Comment[ja]=JAVA アプリケーションを %{dest} に作成しました +Comment[nds]=In %{dest} wöör en JAVA-Programm opstellt +Comment[ne]= जाभा अनुप्रयोग %{dest} मा सिर्जना गरियो +Comment[nl]=Een Java-toepassing is aangemaakt in %{dest} +Comment[pl]=Program w Javie został utworzony w %{dest} +Comment[pt]=Foi criada uma aplicação em Java em %{dest} +Comment[pt_BR]=Foi criada uma aplicação em Java em %{dest} +Comment[ru]=Приложение Java создано в %{dest} +Comment[sk]=Java aplikácia bola vytvorená v %{dest} +Comment[sr]=Java програм је направљен у %{dest} +Comment[sr@Latn]=Java program je napravljen u %{dest} +Comment[sv]=Ett Java-program skapades i %{dest} +Comment[tr]=Bir JAVA uygulaması %{dest} içinde yaratıldı. +Comment[zh_CN]=在 %{dest} 创建了一个 Java 应用程序 +Comment[zh_TW]=一個 Java 應用程式已建立於 %{dest} diff --git a/languages/java/app_templates/javahello/javahello.tdevelop b/languages/java/app_templates/javahello/javahello.tdevelop index ade81a9a..a41fae72 100644 --- a/languages/java/app_templates/javahello/javahello.tdevelop +++ b/languages/java/app_templates/javahello/javahello.tdevelop @@ -7,15 +7,15 @@ KDevAntProject Java - TDevDebugger + KDevDebugger - + ant - - + + ada ada_bugs_gcc @@ -59,11 +59,11 @@ KDE Libraries (Doxygen) - - + + false *.o,*.lo,CVS - + diff --git a/languages/java/app_templates/javahello/javahello.tdevtemplate b/languages/java/app_templates/javahello/javahello.tdevtemplate deleted file mode 100644 index 62fcffc5..00000000 --- a/languages/java/app_templates/javahello/javahello.tdevtemplate +++ /dev/null @@ -1,124 +0,0 @@ -# KDE Config File -[General] -Name=Application -Name[br]=Arload -Name[ca]=Aplicació -Name[cy]=Cymhwysiad -Name[da]=Program -Name[de]=Anwendung -Name[el]=Εφαρμογή -Name[es]=Aplicación -Name[et]=Rakendus -Name[eu]=Aplikazioa -Name[fa]=کاربرد -Name[ga]=Feidhmchlár -Name[gl]=Aplicación -Name[hu]=Alkalmazások -Name[it]=Applicazione -Name[ja]=アプリケーション -Name[lt]=Programa -Name[ms]=Aplikasi -Name[nds]=Programm -Name[ne]=अनुप्रयोग -Name[nl]=Toepassing -Name[pl]=Program -Name[pt]=Aplicação -Name[pt_BR]=Aplicativo -Name[ru]=Приложение -Name[rw]=Porogaramu -Name[sk]=Aplikácia -Name[sl]=Program -Name[sr]=Програм -Name[sr@Latn]=Program -Name[sv]=Program -Name[tr]=Uygulama -Name[zh_CN]=应用程序 -Name[zh_TW]=應用程式 -Icon=qmakeapp.png -Category=Java/Ant project -Category[fr]=Java/Ant -Comment=Generate a Java application -Comment[ca]=Genera una aplicació Java -Comment[da]=Generér et Java-program -Comment[de]=Erstellt eine Java-Anwendung -Comment[el]=Δημιουργία μιας εφαρμογής Java -Comment[es]=Genera una aplicación en Java -Comment[et]=Java rakenduse loomine -Comment[eu]=Sortu Java aplikazio bat -Comment[fa]=یک کاربرد جاوا تولید می‌کند -Comment[fr]=Génère une application Java -Comment[ga]=Cruthaigh feidhmchlár Java -Comment[gl]=Xera unha aplicación Java -Comment[hu]=Létrehoz egy Java-alkalmazást -Comment[it]=Genera un'applicazione Java -Comment[ja]= Java アプリケーションを作成 -Comment[nds]=Stellt en Java-Programm op -Comment[ne]=जाभा अनुप्रयोग उत्पन्न गर्नुहोस् -Comment[nl]=Genereer een Java-toepassing -Comment[pl]=Generuj program w Javie -Comment[pt]=Gera uma aplicação em Java -Comment[pt_BR]=Gera uma aplicação em Java -Comment[ru]=Создание приложения Java -Comment[sk]=Vygeneruje Java aplikáciu -Comment[sr]=Прави Java програм -Comment[sr@Latn]=Pravi Java program -Comment[sv]=Skapa ett Java-program -Comment[tr]=Bir Java uygulaması yarat -Comment[zh_CN]=生成一个 Java 应用程序 -Comment[zh_TW]=產生 Java 應用程式 -FileTemplates=java,JavaStyle -ShowFilesAfterGeneration=%{dest}/Main.java -Archive=javahello.tar.gz - -[FILE1] -Type=install -EscapeXML=true -Source=%{src}/javahello.tdevelop -Dest=%{dest}/%{APPNAMELC}.tdevelop - -[FILE2] -Type=install -Source=%{src}/javahello.filelist -Dest=%{dest}/%{APPNAMELC}.filelist - -[FILE3] -Type=install -Source=%{src}/Main.java -Dest=%{dest}/Main.java - -[FILE4] -Type=install -Source=%{src}/build.xml -Dest=%{dest}/build.xml - -[msg] -Type=message -Comment=A JAVA application was created in %{dest} -Comment[ca]=Una aplicació JAVA ha estat creada en %{dest} -Comment[da]=Et JAVA-program blev oprettet i %{dest} -Comment[de]=Eine Java-Anwendung wurde in %{dest} erstellt. -Comment[el]=Μια εφαρμογή JAVA δημιουργήθηκε στο %{dest} -Comment[es]=Una aplicación en Java ha sido creada en %{dest} -Comment[et]=Java rakendus loodi asukohta %{dest} -Comment[eu]=JAVA aplikazio bat sortu da hemen: %{dest} -Comment[fa]=یک کاربرد جاوا در %{dest} ایجاد شد -Comment[fr]=Une application Java a été créée dans %{dest} -Comment[ga]=Cruthaíodh feidhmchlár JAVA i %{dest} -Comment[gl]=Creouse una aplicación JAVA en %{dest} -Comment[hu]=Létrejött egy Java-alkalmazás itt: %{dest} -Comment[it]=È stata creata un'applicazione Java in %{dest} -Comment[ja]=JAVA アプリケーションを %{dest} に作成しました -Comment[nds]=In %{dest} wöör en JAVA-Programm opstellt -Comment[ne]= जाभा अनुप्रयोग %{dest} मा सिर्जना गरियो -Comment[nl]=Een Java-toepassing is aangemaakt in %{dest} -Comment[pl]=Program w Javie został utworzony w %{dest} -Comment[pt]=Foi criada uma aplicação em Java em %{dest} -Comment[pt_BR]=Foi criada uma aplicação em Java em %{dest} -Comment[ru]=Приложение Java создано в %{dest} -Comment[sk]=Java aplikácia bola vytvorená v %{dest} -Comment[sr]=Java програм је направљен у %{dest} -Comment[sr@Latn]=Java program je napravljen u %{dest} -Comment[sv]=Ett Java-program skapades i %{dest} -Comment[tr]=Bir JAVA uygulaması %{dest} içinde yaratıldı. -Comment[zh_CN]=在 %{dest} 创建了一个 Java 应用程序 -Comment[zh_TW]=一個 Java 應用程式已建立於 %{dest} diff --git a/languages/java/app_templates/kappjava/CMakeLists.txt b/languages/java/app_templates/kappjava/CMakeLists.txt new file mode 100644 index 00000000..042872fd --- /dev/null +++ b/languages/java/app_templates/kappjava/CMakeLists.txt @@ -0,0 +1,26 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_custom_target( kappjava.tar.gz ALL + COMMAND tar zcf kappjava.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} + app.java pref.java appview.java app_client.java appui.rc + src-Makefile.am kappjava.png app.tdevelop subdirs +) + + +install( FILES + ${CMAKE_CURRENT_BINARY_DIR}/kappjava.tar.gz kappjava.png + DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard ) + + +install( FILES + kappjava.kdevtemplate + DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates ) diff --git a/languages/java/app_templates/kappjava/Makefile.am b/languages/java/app_templates/kappjava/Makefile.am new file mode 100644 index 00000000..edbd4468 --- /dev/null +++ b/languages/java/app_templates/kappjava/Makefile.am @@ -0,0 +1,17 @@ +dataFiles = app.java pref.java appview.java app_client.java appui.rc \ + src-Makefile.am kappjava.png app.tdevelop subdirs +templateName = kappjava + +### 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/java/app_templates/kappjava/app.desktop b/languages/java/app_templates/kappjava/app.desktop new file mode 100644 index 00000000..3cc75ad8 --- /dev/null +++ b/languages/java/app_templates/kappjava/app.desktop @@ -0,0 +1,41 @@ +[Desktop Entry] +Name=%{APPNAME} +Exec=%{APPNAMELC} %i -caption "%c" +Icon=%{APPNAMELC} +Type=Application +DocPath=%{APPNAMELC}/%{APPNAMELC}.html +Comment=A Java TDE KPart Application +Comment[ca]=Una aplicació KPart en Java per al TDE +Comment[da]=Et Java TDE KPart-program +Comment[de]=Eine TDE-Komponten-Anwendung in Java +Comment[el]=Μια εφαρμογή Java TDE KPart +Comment[es]=Una aplicación KPart en Java para TDE +Comment[et]=Java TDE KPart rakendus +Comment[eu]=Java TDE KPart aplikazio bat +Comment[fa]=یک کاربرد TDE KPart جاوا +Comment[fr]=Une application KPart en JAVA pour TDE +Comment[ga]=Feidhmchlár KPart TDE i Java +Comment[gl]=Unha aplicación KPart de TDE en Java +Comment[hi]=एक जावा केडीई के-पार्ट अनुप्रयोग +Comment[hu]=Java-ban írt, KPart-alapú TDE-alkalmazás +Comment[is]=Java TDE KPart forrit +Comment[it]=Un'applicazione Java TDE KPart +Comment[ja]= Java TDE KPart アプリケーション +Comment[nds]=En TDE-Programm in Java +Comment[ne]=जाभा केडीई KPart अनुप्रयोग +Comment[nl]=Een Java TDE KPart-toepassing +Comment[pl]=Element osadzalny KPart Javy +Comment[pt]=Uma Aplicação TDE KPart em Java +Comment[pt_BR]=Um Aplicativo KPart do TDE para Java +Comment[ru]=Приложение KPart для TDE на Java +Comment[sk]=Java TDE KPart aplikácia +Comment[sl]=Program za Javo TDE KPart +Comment[sr]=Java TDE KPart програм +Comment[sr@Latn]=Java TDE KPart program +Comment[sv]=Ett Java TDE Kpart-program +Comment[ta]=ஜாவா கெடி கெபாகம் பயன்பாடு +Comment[tg]=Гузориш KPart барои TDE дар Java +Comment[tr]=Bir Java TDE KPart Uygulaması +Comment[zh_CN]=一个 Java TDE KPart 应用程序 +Comment[zh_TW]=Java TDE KPart 應用程式 +Terminal=false diff --git a/languages/java/app_templates/kappjava/app.java b/languages/java/app_templates/kappjava/app.java new file mode 100644 index 00000000..40bc6b93 --- /dev/null +++ b/languages/java/app_templates/kappjava/app.java @@ -0,0 +1,281 @@ +/* + * Copyright (C) %{YEAR} %{AUTHOR} <%{EMAIL}> + */ + +import java.util.*; +import org.kde.qt.*; +import org.kde.koala.*; + +/** + * This class serves as the main window for %{APPNAME}. It handles the + * menus, toolbars, and status bars. + * + * @short Main window class + * @author $AUTHOR <$EMAIL> + * @version $APP_VERSION + */ +public class %{APPNAME} extends TDEMainWindow +{ + private %{APPNAME}View m_view; + private QPrinter m_printer; + +%{APPNAME}() +{ + super( null, "%{APPNAME}" ); + m_view = new %{APPNAME}View(this); + m_printer = new QPrinter(); + // accept dnd + setAcceptDrops(true); + + // tell the TDEMainWindow that this is indeed the main widget + setCentralWidget(m_view); + + // then, setup our actions + setupActions(); + + // and a status bar + statusBar().show(); + + // Apply the create the main window and ask the mainwindow to + // automatically save settings if changed: window size, toolbar + // position, icon size, etc. Also to add actions for the statusbar + // toolbar, and keybindings if necessary. + setupGUI(); + + // allow the view to change the statusbar and caption + connect(m_view, SIGNAL("signalChangeStatusbar(String)"), + this, SLOT("changeStatusbar(String)")); + connect(m_view, SIGNAL("signalChangeCaption(String)"), + this, SLOT("changeCaption(String)")); + +} + +public void load(KURL url) +{ + StringBuffer target = new StringBuffer(); + // the below code is what you should normally do. in this + // example case, we want the url to our own. you probably + // want to use this code instead for your app + + // download the contents + if (NetAccess.download(url, target, null)) + { + // set our caption + setCaption(url.fileName()); + + // load in the file (target is always local) +// loadFile(target); + + // and remove the temp file + NetAccess.removeTempFile(target.toString()); + } + + setCaption(url.url()); + m_view.openURL(url); +} + +public void setupActions() +{ + TDEApplication kapp = TDEApplication.kApplication(); + KStdAction.openNew(this, SLOT("fileNew()"), actionCollection()); + KStdAction.open(this, SLOT("fileOpen()"), actionCollection()); + KStdAction.save(this, SLOT("fileSave()"), actionCollection()); + KStdAction.saveAs(this, SLOT("fileSaveAs()"), actionCollection()); + KStdAction.print(this, SLOT("filePrint()"), actionCollection()); + KStdAction.quit(kapp, SLOT("quit()"), actionCollection()); + + KStdAction.preferences(this, SLOT("optionsPreferences()"), actionCollection()); + + // this doesn't do anything useful. it's just here to illustrate + // how to insert a custom menu and menu item + TDEAction custom = new TDEAction(tr("Cus&tom Menuitem"), new TDEShortcut(), + this, SLOT("optionsPreferences()"), + actionCollection(), "custom_action"); +} + +protected void saveProperties(TDEConfig config) +{ + // the 'config' object points to the session managed + // config file. anything you write here will be available + // later when this app is restored + + if (m_view.currentURL() != null) + config.writeEntry("lastURL", m_view.currentURL()); +} + +protected void readProperties(TDEConfig config) +{ + // the 'config' object points to the session managed + // config file. this function is automatically called whenever + // the app is being restored. read in here whatever you wrote + // in 'saveProperties' + + String url = config.readPathEntry("lastURL"); + + if (url != null) + m_view.openURL(new KURL(url)); +} + +protected void dragEnterEvent(QDragEnterEvent event) +{ + // accept uri drops only + event.accept(QUriDrag.canDecode(event)); +} + +protected void dropEvent(QDropEvent event) +{ + // this is a very simplistic implementation of a drop event. we + // will only accept a dropped URL. the Qt dnd code can do *much* + // much more, so please read the docs there + ArrayList uri = new ArrayList(); + + // see if we can decode a URI.. if not, just ignore it + if (QUriDrag.decode(event, (String[]) uri.toArray())) + { + // okay, we have a URI.. process it + String url, target; + url = (String) uri.get(0); + + // load in the file + load(new KURL(url)); + } +} + +private void fileNew() +{ + // this slot is called whenever the File.New menu is selected, + // the New shortcut is pressed (usually CTRL+N) or the New toolbar + // button is clicked + + // create a new window + (new %{APPNAME}()).show(); +} + +private void 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 + KURL url = KURLRequesterDlg.getURL(null, this, tr("Open Location") ); + if (!url.isEmpty()) + m_view.openURL(url); +} + +private void fileSave() +{ + // this slot is called whenever the File.Save menu is selected, + // the Save shortcut is pressed (usually CTRL+S) or the Save toolbar + // button is clicked + + // save the current file +} + +private void fileSaveAs() +{ + // this slot is called whenever the File.Save As menu is selected, + KURL file_url = KFileDialog.getSaveURL(); + if (!file_url.isEmpty() && file_url.isValid()) + { + // save your info, here + } +} + +private void filePrint() +{ + // this slot is called whenever the File.Print menu is selected, + // the Print shortcut is pressed (usually CTRL+P) or the Print toolbar + // button is clicked + if (m_printer == null) m_printer = new QPrinter(); + if (QPrintDialog.getPrinterSetup(m_printer)) + { + // setup the printer. with Qt, you always "print" to a + // QPainter.. whether the output medium is a pixmap, a screen, + // or paper + QPainter p = new QPainter(); + p.begin(m_printer); + + // we let our view do the actual printing + QPaintDeviceMetrics metrics = new QPaintDeviceMetrics(m_printer); + m_view.print(p, metrics.height(), metrics.width()); + + // and send the result to the printer + p.end(); + } +} + +private void optionsPreferences() +{ + // popup some sort of preference dialog, here + %{APPNAME}Preferences dlg = new %{APPNAME}Preferences(); + if (dlg.exec() != 0) + { + // redo your settings + } +} + +private void changeStatusbar(String text) +{ + // display the text on the statusbar + statusBar().message(text); +} + +private void changeCaption(String text) +{ + // display the text on the caption + setCaption(text); +} + +static String description = + "A KDE Application"; + +static String version = "%{VERSION}"; + +static String[][] options = +{ + { "+[URL]", "Document to open.", null } +}; + +static void main(String[] cmdLineArgs) +{ + TDEAboutData about = new TDEAboutData("%{APPNAMELC}", "%{APPNAME}", version, description, + TDEAboutData.License_%{LICENSE}, "(C) %{YEAR} %{AUTHOR}", null, null, "%{EMAIL}"); + about.addAuthor( "%{AUTHOR}", null, "%{EMAIL}" ); + TDECmdLineArgs.init(cmdLineArgs, about); + TDECmdLineArgs.addCmdLineOptions(options); + TDEApplication app = new TDEApplication(); + + // see if we are starting with session management + if (app.isRestored()) + RESTORE("%{APPNAME}"); + else + { + // no session.. just start up normally + TDECmdLineArgs args = TDECmdLineArgs.parsedArgs(); + if (args.count() == 0) + { + %{APPNAME} widget = new %{APPNAME}(); + widget.show(); + } + else + { + int i = 0; + for (; i < args.count(); i++) + { + %{APPNAME} widget = new %{APPNAME}(); + widget.show(); + widget.load(args.url(i)); + } + } + args.clear(); + } + + app.exec(); + return; +} + + static { + qtjava.initialize(); + kdejava.initialize(); + } +} + diff --git a/languages/java/app_templates/kappjava/app.tdevelop b/languages/java/app_templates/kappjava/app.tdevelop new file mode 100644 index 00000000..7ee74558 --- /dev/null +++ b/languages/java/app_templates/kappjava/app.tdevelop @@ -0,0 +1,88 @@ + + + + %{AUTHOR} + %{EMAIL} + %{VERSION} + KDevAutoProject + Java + + Java + Code + Qt + KDE + + + + + src/java + + + src/%{APPNAMELC} + + + + + + + + + + + + + + + + + + ada + ada_bugs_gcc + bash + bash_bugs + c++_bugs_gcc + clanlib + w3c-dom-level2-html + fortran_bugs_gcc + gnome1 + gnustep + gtk + gtk_bugs + haskell + haskell_bugs_ghc + libc + libstdc++ + opengl + pascal_bugs_fp + php + php_bugs + perl + perl_bugs + python + python_bugs + ruby + ruby_bugs + sdl + stl + w3c-svg + sw + w3c-uaag10 + wxwidgets_bugs + + + Guide to the Qt Translation Tools + Qt Assistant Manual + Qt Designer Manual + Qt Reference Documentation + qmake User Guide + + + KDE Libraries (Doxygen) + + + + + + + + diff --git a/languages/java/app_templates/kappjava/app_client.java b/languages/java/app_templates/kappjava/app_client.java new file mode 100644 index 00000000..9648cfad --- /dev/null +++ b/languages/java/app_templates/kappjava/app_client.java @@ -0,0 +1,28 @@ +/* + * Copyright (C) %{YEAR} %{AUTHOR} <%{EMAIL}> + */ + +#include +#include +#include +#include + +int main(int argc, char **argv) +{ + TDEApplication app(argc, argv, "%{APPNAMELC}_client", false); + + // get our DCOP client and attach so that we may use it + DCOPClient *client = app.dcopClient(); + client->attach(); + + // do a 'send' for now + QByteArray data; + QDataStream ds(data, IO_WriteOnly); + if (argc > 1) + ds << QString(argv[1]); + else + ds << QString("http://www.kde.org"); + client->send("%{APPNAMELC}", "%{APPNAME}Iface", "openURL(QString)", data); + + return app.exec(); +} diff --git a/languages/java/app_templates/kappjava/appui.rc b/languages/java/app_templates/kappjava/appui.rc new file mode 100644 index 00000000..ceb4f14e --- /dev/null +++ b/languages/java/app_templates/kappjava/appui.rc @@ -0,0 +1,8 @@ + + + + C&ustom + + + + diff --git a/languages/java/app_templates/kappjava/appview.java b/languages/java/app_templates/kappjava/appview.java new file mode 100644 index 00000000..347ff58f --- /dev/null +++ b/languages/java/app_templates/kappjava/appview.java @@ -0,0 +1,115 @@ +/* + * Copyright (C) %{YEAR} %{AUTHOR} <%{EMAIL}> + */ + +import java.util.*; +import org.kde.qt.*; +import org.kde.koala.*; + +/** + * This is the main view class for %{APPNAME}. Most of the non-menu, + * non-toolbar, and non-statusbar (e.g., non frame) GUI code should go + * here. + * + * This %{APPNAMELC} uses an HTML component as an example. + * + * @short Main view + * @author %{AUTHOR} <%{EMAIL}> + * @version %{VERSION} + */ +public class %{APPNAME}View extends QWidget +{ + + QHBoxLayout top_layout; + +public %{APPNAME}View(QWidget parent) +{ + super(parent, null); + // setup our layout manager to automatically add our widgets + top_layout = new QHBoxLayout(this); + top_layout.setAutoAdd(true); + + // we want to look for all components that satisfy our needs. the + // trader will actually search through *all* registered KDE + // applications and components -- not just KParts. So we have to + // specify two things: a service type and a constraint + // + // the service type is like a mime type. we say that we want all + // applications and components that can handle HTML -- 'text/html' + // + // however, by itself, this will return such things as Netscape.. + // not what we wanted. so we constrain it by saying that the + // string 'KParts/ReadOnlyPart' must be found in the ServiceTypes + // field. with this, only components of the type we want will be + // returned. + ArrayList offers = TDETrader.self().query("text/html", "'KParts/ReadOnlyPart' in ServiceTypes"); + + KLibFactory factory = null; + // in theory, we only care about the first one.. but let's try all + // offers just in case the first can't be loaded for some reason + Iterator it = offers.iterator(); + while(it.hasNext()) + { + KService ptr = (KService) it.next(); + + // we now know that our offer can handle HTML and is a part. + // since it is a part, it must also have a library... let's try to + // load that now + factory = KLibLoader.self().factory( ptr.library() ); + if (factory != null) + { + m_html = (ReadOnlyPart) factory.create(this, ptr.name(), "KParts::ReadOnlyPart"); + break; + } + } + + // if our factory is invalid, then we never found our component + // and we might as well just exit now + if (factory == null) + { + KMessageBox.error(this, "Could not find a suitable HTML component"); + return; + } + + connect(m_html, SIGNAL("setWindowCaption(String)"), + this, SLOT("slotSetTitle(String)")); + connect(m_html, SIGNAL("setStatusBarText(String)"), + this, SLOT("slotOnURL(String)")); + +} + + +public void print(QPainter p, int height, int width) +{ + // do the actual printing, here + // p.drawText(etc..) +} + +public String currentURL() +{ + return m_html.url().url(); +} + +public void openURL(String url) +{ + openURL(new KURL(url)); +} + +public void openURL(KURL url) +{ + m_html.openURL(url); +} + +private void slotOnURL(String url) +{ + emit("signalChangeStatusbar", url); +} + +private void slotSetTitle(String title) +{ + emit("signalChangeCaption", title); +} + +private ReadOnlyPart m_html; + +} diff --git a/languages/java/app_templates/kappjava/kappjava b/languages/java/app_templates/kappjava/kappjava new file mode 100644 index 00000000..e199ac25 --- /dev/null +++ b/languages/java/app_templates/kappjava/kappjava @@ -0,0 +1,10 @@ +# KDE Config File +[General] +Name=Application framework +Name[fr]=Squelette d'application +Icon=kappjava.png +Category=Java/KDE +Comment=Generates a simple Java KDE application with one toplevel window, menus and toolbars. +Comment[fr]=Gnre une simple application KDE dans le language JAVA avec une fentre principale, des menus, et des barres d'outils. +FileTemplates=java,CStyle +ShowFilesAfterGeneration=src/APPNAMEView.java diff --git a/languages/java/app_templates/kappjava/kappjava.kdevtemplate b/languages/java/app_templates/kappjava/kappjava.kdevtemplate new file mode 100644 index 00000000..92cf4710 --- /dev/null +++ b/languages/java/app_templates/kappjava/kappjava.kdevtemplate @@ -0,0 +1,163 @@ +# KDE Config File +[General] +Name=Application framework +Name[ca]=Infraestructura d'aplicacions +Name[da]=Programskelet +Name[de]=Anwendungsgrundgerüst +Name[el]=Πλαίσιο εφαρμογής +Name[es]=Infraestructura de aplicación +Name[et]=Rakenduse raamistik +Name[eu]=Aplikazioen lan-markoa +Name[fa]=چارچوب کاربرد +Name[fr]=Infrastructure d'application +Name[ga]=Creatlach feidhmchláir +Name[gl]=Entorno de traballo para aplicación +Name[hu]=Alkalmazás-keretrendszer +Name[it]=Infrastruttura applicativa +Name[ja]=アプリケーションフレームワーク +Name[nds]=Programmrahmenwark +Name[ne]=अनुप्रयोग फ्रेमवर्क +Name[nl]=Applicationframework +Name[pl]=Szablon programu +Name[pt]=Plataforma de aplicações +Name[pt_BR]=Plataforma de aplicações +Name[ru]=Приложение KDE +Name[sk]=Aplikačný framework +Name[sl]=Ogrodje programa +Name[sr]=Радни оквир програма +Name[sr@Latn]=Radni okvir programa +Name[sv]=Programramverk +Name[tr]=Uygulama Çatısı +Name[zh_CN]=应用程序框架 +Name[zh_TW]=應用程式框架 +Icon=kappjava.png +Category=Java/KDE +Comment=Generates a simple Java KDE application with one toplevel window, menus and toolbars. +Comment[ca]=Genera una simple aplicació per al KDE en Java amb una finestra principal, menús i barres d'eines. +Comment[da]=Genererer et simpelt Java KDE program med et vindue på topniveau, menuer og værktøjslinjer. +Comment[de]=Erstellt eine einfache Java-KDE-Anwendung mit einem Toplevel-Fenster, Menüs und Werkzeugleisten. +Comment[el]=Δημιουργεί μια απλή εφαρμογή Java του KDE με ένα ανώτερο παράθυρο, μενού, και γραμμές εργαλείων. +Comment[es]=Genera una sencilla aplicación para KDE en Java, con una ventana principal, menús y barras de herramientas. +Comment[et]=Lihtsa Java KDE rakenduse loomine ühe tipptaseme akna, menüüde ja tööriistaribadega. +Comment[eu]=Goi-mailako lehio bat, menuak eta tresna-barrak dituen Java KDE aplikazio bat sortzen du. +Comment[fa]=یک کاربرد سادۀ KDE جاوا با یک پنجرۀ سطح بالا، گزینگان و میله‌های ابزار تولید می‌کند. +Comment[fr]=Génère une application KDE simple en Java comprenant une fenêtre de premier niveau, des menus et des barres d'outils. +Comment[gl]=Xera unha aplicación sinxela KDE en Java cunha xanela principal, menús e barras de ferramentas. +Comment[hu]=Létrehoz egy egyszerű Java-alapú KDE-alkalmazást egy főablakkal, menükkel és eszköztárakkal. +Comment[it]=Genera una semplice applicazione KDE Java con una finestra toplevel, menu e barre degli strumenti. +Comment[nds]=Stellt en eenfach KDE-Programm in Java mit een böverst Finster, Menüs un Warktüüchbalkens op. +Comment[ne]=एउटा उच्चतह सञ्झ्याल, मेनु र उपकरणपट्टीसँग साधारण जाभा केडीई अनुप्रयोग उत्पन्न गर्दछ । +Comment[nl]=Genereert een eenvoudige Java KDE-toepassing met een toplevel window, menu's en toolbars. +Comment[pl]=Generuje prosty program KDE w Javie posiadający okno, menu i paski narzędzi. +Comment[pt]=Gera uma aplicação para KDE simples em Java, com uma janela de topo, menus e barras de ferramentas. +Comment[pt_BR]=Gera uma aplicação para KDE simples em Java, com uma janela de topo, menus e barras de ferramentas. +Comment[ru]=Создание простого приложения Java KDE с окном, меню и панелями инструментов. +Comment[sk]=Vygeneruje jednoduchú Java KDE aplikáciu s jedným oknom, menu a panelom nástrojov. +Comment[sr]=Прави једноставан Java KDE програм са једним прозором највишег нивоа, менијима и тракама са алатом. +Comment[sr@Latn]=Pravi jednostavan Java KDE program sa jednim prozorom najvišeg nivoa, menijima i trakama sa alatom. +Comment[sv]=Skapar ett enkelt Java KDE-program med ett toppnivåfönster, menyer och verktygsrader. +Comment[tr]=Bir üst seviye penceresi, menüleri ve araç çubukları olan basit bir Java KDE uygulaması yaratır. +Comment[zh_CN]=生成一个简单的带有顶级窗口、菜单和工具栏的 Java KDE 应用程序。 +Comment[zh_TW]=產生一個簡單的 Java KDE 應用程式,內含頂層視窗、選單與工具列。 +FileTemplates=java,CStyle +ShowFilesAfterGeneration=%{dest}/src/%{APPNAME}View.java +Archive=kappjava.tar.gz + +[ADMIN] +Type=include +File=%{tdevelop}/template-common/admin.kdevtemplate + +[GNU] +Type=include +File=%{tdevelop}/template-common/gnu.kdevtemplate + +[DOCBOOK] +Type=include +File=%{tdevelop}/template-common/dockbook.kdevtemplate + +[FILE4] +Type=install +EscapeXML=true +Source=%{src}/app.tdevelop +Dest=%{dest}/%{APPNAMELC}.tdevelop + +[FILE5] +Type=install +Source=%{tdevelop}/template-common/kde-Makefile.am +Dest=%{dest}/Makefile.am + +[FILE6] +Type=install +Source=%{tdevelop}/template-common/kde-Makefile.cvs +Dest=%{dest}/Makefile.cvs + +[FILE7] +Type=install +Source=%{tdevelop}/template-common/tde-configure.in.in +Dest=%{dest}/configure.in.in + +[MkDir3] +Type=mkdir +Dir=%{dest}/src + +[FILE8] +Type=install +Source=%{tdevelop}/template-common/tde-app.desktop +Dest=%{dest}/src/%{APPNAMELC}.desktop + +[FILE9] +Type=install +Source=%{tdevelop}/template-common/kde-app.lsm +Dest=%{dest}/src/%{APPNAMELC}.lsm + +[FILE10] +Type=install +Source=%{tdevelop}/template-common/hi16-app-app.png +Dest=%{dest}/src/hi16-app-%{APPNAMELC}.png +Process=false + +[FILE11] +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 + +[FILE12] +Type=install +Source=%{tdevelop}/template-common/kde-po-Makefile.am +Dest=%{dest}/po/Makefile.am + +[FILE13] +Type=install +Source=%{src}/subdirs +Dest=%{dest}/subdirs + +[FILE14] +Type=install +Source=%{src}/src-Makefile.am +Dest=%{dest}/src/Makefile.am + +[FILE15] +Type=install +Source=%{src}/app.java +Dest=%{dest}/src/%{APPNAME}.java + +[FILE16] +Type=install +Source=%{src}/appview.java +Dest=%{dest}/src/%{APPNAME}View.java + +[FILE17] +Type=install +Source=%{src}/pref.java +Dest=%{dest}/src/%{APPNAME}Preferences.java + +[FILE18] +Type=install +Source=%{src}/appui.rc +Dest=%{dest}/src/%{APPNAMELC}ui.rc + diff --git a/languages/java/app_templates/kappjava/kappjava.png b/languages/java/app_templates/kappjava/kappjava.png new file mode 100644 index 00000000..913ebb87 Binary files /dev/null and b/languages/java/app_templates/kappjava/kappjava.png differ diff --git a/languages/java/app_templates/kappjava/pref.java b/languages/java/app_templates/kappjava/pref.java new file mode 100644 index 00000000..a50fdb31 --- /dev/null +++ b/languages/java/app_templates/kappjava/pref.java @@ -0,0 +1,52 @@ +/* + * Copyright (C) %{YEAR} %{AUTHOR} <%{EMAIL}> + */ + +import java.util.*; +import org.kde.qt.*; +import org.kde.koala.*; + +public class %{APPNAME}Preferences extends KDialogBase +{ +private %{APPNAME}PrefPageOne m_pageOne; +private %{APPNAME}PrefPageTwo m_pageTwo; + +public %{APPNAME}Preferences() +{ + super(TreeList, "%{APPNAME} Preferences", + Help|Default|Ok|Apply|Cancel, Ok); + + // this is the base class for your preferences dialog. it is now + // a Treelist dialog.. but there are a number of other + // possibilities (including Tab, Swallow, and just Plain) + QFrame frame; + frame = addPage(tr("First Page"), tr("Page One Options")); + m_pageOne = new %{APPNAME}PrefPageOne(frame); + + frame = addPage(tr("Second Page"), tr("Page Two Options")); + m_pageTwo = new %{APPNAME}PrefPageTwo(frame); +} + +public class %{APPNAME}PrefPageOne extends QFrame { +public %{APPNAME}PrefPageOne(QWidget parent) +{ + super(parent); + QHBoxLayout layout = new QHBoxLayout(this); + layout.setAutoAdd(true); + + new QLabel("Add something here", this); +} +} + +public class %{APPNAME}PrefPageTwo extends QFrame { +public %{APPNAME}PrefPageTwo(QWidget parent) +{ + super(parent); + QHBoxLayout layout = new QHBoxLayout(this); + layout.setAutoAdd(true); + + new QLabel("Add something here", this); +} +} + +} diff --git a/languages/java/app_templates/kappjava/src-Makefile.am b/languages/java/app_templates/kappjava/src-Makefile.am new file mode 100644 index 00000000..6468994c --- /dev/null +++ b/languages/java/app_templates/kappjava/src-Makefile.am @@ -0,0 +1,18 @@ +## Makefile.am for %{APPNAMELC} + +JAVAROOT = . + +# which sources should be compiled for %{APPNAMELC} +java_JAVA = %{APPNAME}.java %{APPNAME}View.java \ + %{APPNAME}Preferences.java + + +KDE_ICON = %{APPNAMELC} + +# this is where the kdelnk file will go +kdelnkdir = $(kde_appsdir)/Utilities +kdelnk_DATA = %{APPNAMELC}.desktop + +# this is where the XML-GUI resource file goes +rcdir = $(kde_datadir)/%{APPNAMELC} +rc_DATA = %{APPNAMELC}ui.rc diff --git a/languages/java/app_templates/kappjava/subdirs b/languages/java/app_templates/kappjava/subdirs new file mode 100644 index 00000000..0e678106 --- /dev/null +++ b/languages/java/app_templates/kappjava/subdirs @@ -0,0 +1,3 @@ +doc +po +src diff --git a/languages/java/app_templates/superwaba/CMakeLists.txt b/languages/java/app_templates/superwaba/CMakeLists.txt index ea9517be..58932352 100644 --- a/languages/java/app_templates/superwaba/CMakeLists.txt +++ b/languages/java/app_templates/superwaba/CMakeLists.txt @@ -17,9 +17,9 @@ add_custom_target( superwaba.tar.gz ALL install( FILES ${CMAKE_CURRENT_BINARY_DIR}/superwaba.tar.gz superwaba.png - DESTINATION ${DATA_INSTALL_DIR}/tdevappwizard ) + DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard ) install( FILES - superwaba.tdevtemplate - DESTINATION ${DATA_INSTALL_DIR}/tdevappwizard/templates ) + superwaba.kdevtemplate + DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates ) diff --git a/languages/java/app_templates/superwaba/Makefile.am b/languages/java/app_templates/superwaba/Makefile.am index c9c6aa99..bc706fe6 100644 --- a/languages/java/app_templates/superwaba/Makefile.am +++ b/languages/java/app_templates/superwaba/Makefile.am @@ -2,10 +2,10 @@ dataFiles = superwaba.png sw.java src-Makefile sw.tdevelop sw.filelist templateName = superwaba ### no need to change below: -template_DATA = $(templateName).tdevtemplate +template_DATA = $(templateName).kdevtemplate templatedir = ${appwizarddatadir}/templates -appwizarddatadir = ${kde_datadir}/tdevappwizard +appwizarddatadir = ${kde_datadir}/kdevappwizard $(templateName).tar.gz: ${dataFiles} $(TAR) -cf $(templateName).tar -C $(srcdir) ${dataFiles} $(GZIP_COMMAND) -f9 $(templateName).tar diff --git a/languages/java/app_templates/superwaba/superwaba.kdevtemplate b/languages/java/app_templates/superwaba/superwaba.kdevtemplate new file mode 100644 index 00000000..27257770 --- /dev/null +++ b/languages/java/app_templates/superwaba/superwaba.kdevtemplate @@ -0,0 +1,166 @@ +# KDE Config File +[General] +Name=SuperWaba +Name[ne]=सुपरवाभा +Icon=superwaba.png +Category=Java +Comment=A simple template for building SuperWaba Java based apps on WinCE and PalmOS. More information can be found at http://www.superwaba.org +Comment[ca]=Una simple plantilla per a construir aplicacions basades en SuperWaba Java per a WinCE i PalmOS. Podeu trobar més informació a http://www.superwaba.org +Comment[da]=En simpel skabelon til at bygge SuperWaba Java baserede programmer på WinCE og PalmOS. Mere information kan findes på http://www.superwaba.org +Comment[de]=Eine einfache Vorlage zum Erstellen von auf Java basierenden SuperWaba-Anwendungen unter WinCE und PalmOS. Weitere Informationen erhalten Sie auf http://www.superwaba.org. +Comment[el]=Ένα απλό πρότυπο για την κατασκευή εφαρμογών SuperWaba Java για τα WinCE και PalmOS. Περισσότερες πληροφορίες μπορούν να βρεθούν στο http://www.superwaba.org +Comment[es]=Una plantilla sencilla para crear aplicaciones basadas en SuperWaba Java para WinCE y PalmOS. Puede encontrar más información en http://www.superwaba.org +Comment[et]=Lihtne mall rakenduste loomiseks SuperWaba Java põhjal WinCE ja PalmOS'i tarbeks. Rohkem infot annab http://www.superwaba.org +Comment[eu]=WinCE eta PalmOS sistema eragileetan SuperWaba Javan oinarritutako aplikazioak sortzeko txantiloi sinple bat. Informazio gehiagorako: http://www.superwaba.org +Comment[fa]=یک قالب ساده برای ساختن کاربردهای بر مبنای SuperWaba جاوا روی WinCE و PalmOS. اطلاعات بیشتر می‌تواند در http://www.superwaba.org یافت شود +Comment[fr]=Un modèle simple pour construire des applications basées sur Java SuperWaba pour WinCE et PalmOS. Vous trouverez plus d'informations sur http://www.superwaba.org +Comment[gl]=Un modelo sinxelo para crear aplicacións SuperWaba baseadas en Java para WinCE e PalmOS. Pode atopar máis información en http://www.superwaba.org +Comment[hu]=Egyszerű sablon SuperWaba Java-alkalmazások készítéséhez, WinCE és PalmOS platformra. Részletes információ itt található: http://www.superwaba.org +Comment[it]=Un semplice modello per compilare applicazioni Java SuperWaba basato su WinCE e PalmOS. Ulteriori informazioni possono essere trovate visitando http://www.superwaba.org/ +Comment[nds]=En eenfach Vörlaag för't Opstellen vun op WinCE un PalmOS opbuut SuperWaba-Programmen. Mehr Informatschonen laat sik op http://www.superwaba.org finnen +Comment[ne]=WinCE र PalmOS मा सुपरवाभा जाभा आधारित अनुप्रयोग निर्माणका लागि साधारण टेम्प्लेट । बढी जानकारी http://www.superwaba.org मा फेला पार्न सकिन्छ । +Comment[nl]=Een eenvouidg sjabloon voor het bouwen van SuperWaba Java-gebaseerde toepassingen op WinCE en PalmOS. Meer informatie vindt u op http://www.superwaba.org. +Comment[pl]=Prosty szablon do budowania programów w Javie wykorzystujących SuperWaba w środowiskach WinCE oraz PalmOS. Więcej informacji można znaleźć na stronie http://www.superwaba.org +Comment[pt]=Um modelo simples para criara aplicações Java, baseadas no SuperWaba, para o WinCE e o PalmOS. Poderá encontrar mais informações em http://www.superwaba.org +Comment[pt_BR]=Um modelo simples para criara aplicações Java, baseadas no SuperWaba, para o WinCE e o PalmOS. Poderá encontrar mais informações em http://www.superwaba.org +Comment[ru]=Создание приложения SuperWaba Java для устройств WinCE и PalmOS. Дополнительную информацию можно найти на http://www.superwaba.org +Comment[sk]=Jednoduchá šablóna pre vytváranie SuperWaba Java Aplikácií na WinCE a PalmOS. Viac informácií môžte nájsť na http://www.superwaba.org +Comment[sr]=Једноставан шаблон за градњу SuperWaba програма на основу Java-е, за WinCE и PalmOS. Више информација на http://www.superwaba.org +Comment[sr@Latn]=Jednostavan šablon za gradnju SuperWaba programa na osnovu Java-e, za WinCE i PalmOS. Više informacija na http://www.superwaba.org +Comment[sv]=En enkel mall för att bygga SuperWaba Java-baserade program på WinCE och PalmOS. Mer information hittas på http://www.superwaba.org. +Comment[tr]=WinCE ve PalmOS üstünde SuperWaba tabanlı Java uygulamarı yapmak için basit bir şablon. Daha fazla bilgi http://www.superwaba.org/ adresinde bulunabilir. +Comment[zh_CN]=在 WinCE 和 PalmOS 上构建基于 SuperWaba Java 应用程序的简单模板。更多信息可以在 http://www.superwaba.org 找到 +Comment[zh_TW]=一個簡單的建立在 WinCE 與 PalmOS 上執行的 SuperWaba Java 應用程式。您可以在 http://www.superwaba.org 取得更多資訊。 +FileTemplates=java +ShowFilesAfterGeneration=%{dest}/%{APPNAME}.java +Archive=superwaba.tar.gz + +[JAVA] +Type=value +Value=JAVA +Comment=Path to your java root +Comment[ca]=Ruta cap a la vostra arrel Java +Comment[da]=Sti til din java-rod +Comment[de]=Pfad zum Stammordner von Java +Comment[el]=Διαδρομή στο κατάλογό σας της java +Comment[es]=Ruta a su carpeta raíz Java +Comment[et]=Java juurkataloogi asukoht +Comment[eu]=Zure java erroaren bide-izena +Comment[fa]=مسیر ریشۀ جاوای شما +Comment[fr]=Chemin vers votre racine Java +Comment[gl]=Ruta a súa instalación de java +Comment[hu]=A Java-alapkönyvtár elérési útja +Comment[it]=Percorso alla radice java +Comment[ja]=Java ルートへのパス +Comment[nds]=Padd na Dien Java-Wörtelorner +Comment[ne]=तपाईँको जाभा रूटको मार्ग +Comment[nl]=Pad naar uw Java-hoofdmap +Comment[pl]=Ścieżka do głównego katalogu Javy +Comment[pt]=A localização de base do seu Java +Comment[pt_BR]=A localização de base do seu Java +Comment[ru]=Путь к корневому каталогу Java +Comment[sk]=Cesta ku java koreňu +Comment[sr]=Путања до вашег корена Java-е +Comment[sr@Latn]=Putanja do vašeg korena Java-e +Comment[sv]=Sökväg till Java-rotkatalog +Comment[zh_CN]=您的 Java 根路径 +Comment[zh_TW]=您的 java 根路徑 +Default=/usr/lib/java +ValueType=QString + +[WABA] +Type=value +Value=WABA +Comment=Path to your SuperWaba root +Comment[ca]=Ruta cap a la vostra arrel SuperWaba +Comment[da]=Sti til din SuperWaba-rod +Comment[de]=Pfad zum Stammordner von SuperWaba +Comment[el]=Διαδρομή στο κατάλογό σας της SuperWaba +Comment[es]=Ruta a su carpeta raíz de SuperWaba +Comment[et]=SuperWaba juurkataloogi asukoht +Comment[eu]=Zure SuperWaba erroaren bide-izena +Comment[fa]=مسیر ریشۀ SuperWaba شما +Comment[fr]=Chemin vers votre racine SuperWaba +Comment[gl]=Ruta a súa instalación de SuperWaba +Comment[hu]=A SuperWaba-alapkönyvtár elérési útja +Comment[it]=Percorso alla radice SuperWaba +Comment[ja]=SuperWaba ルートへのパス +Comment[nds]=Padd na Dien SuperWaba-Wörtelorner +Comment[ne]=तपाईँको सुपरवाभा रूटको मार्ग +Comment[nl]=Pad naar uw SuperWaba-hoofdmap +Comment[pl]=Ścieżka do głównego katalogu SuperWaba +Comment[pt]=A localização de base do seu SuperWaba +Comment[pt_BR]=A localização de base do seu SuperWaba +Comment[ru]=Путь к корневому каталогу SuperWaba +Comment[sk]=Cesta ku SuperWaba koreňu +Comment[sr]=Путања до вашег корена SuperWaba-е +Comment[sr@Latn]=Putanja do vašeg korena SuperWaba-e +Comment[sv]=Sökväg till SuperWaba-rotkatalog +Comment[tr]=SuperWaba kök dizininizin yolu +Comment[zh_CN]=您的 SuperWaba 根路径 +Comment[zh_TW]=您的 SuperWaba 根路徑 +Default=/usr/lib +ValueType=QString + +[GNU] +Type=install archive +Source=%{tdevelop}/template-common/gnu.tar.gz +Dest=%{dest} + +[PROJECT] +Type=install +EscapeXML=true +Source=%{src}/sw.tdevelop +Dest=%{dest}/%{APPNAMELC}.tdevelop + +[FILELIST] +Type=install +Source=%{src}/sw.filelist +Dest=%{dest}/%{APPNAMELC}.filelist + +[MAKEFILE] +Type=install +Source=%{src}/src-Makefile +Dest=%{dest}/Makefile + +[SOURCE] +Type=install +Source=%{src}/sw.java +Dest=%{dest}/%{APPNAME}.java + +[MESSAGE] +Type=Message +Comment=Your application is setup to build. Edit the make targets to customize the file. +Comment[ca]=La vostra aplicació està llesta per a ser construïda. Editeu els objectius de make per a personalitzar el fitxer. +Comment[da]=Dit program er parat til at blive bygget. Redigér make targets for at indstille filen. +Comment[de]=Ihre Anwendung ist bereit für das Erstellen. Bearbeiten Sie die Make-Targets, um die Datei an Ihre Bedürfnisse anzupassen. +Comment[el]=Η εφαρμογή σας έχει ρυθμιστεί για κατασκευή. Επεξεργαστείτε τους προορισμούς κατασκευής για την προσαρμογή του αρχείου. +Comment[en_GB]=Your application is setup to build. Edit the make targets to customise the file. +Comment[es]=Su aplicación está lista para ser construída. Edite los objetivos make para personalizar el archivo. +Comment[et]=Rakendus on ehitamiseks valmis. Faili kohandamiseks redigeeri ehitamise sihtmärke. +Comment[eu]=Zure aplikazioa eraikitzeko konfiguratu da. Editatu make-en helburuak fitxategia pertsonalizatzeko. +Comment[fa]=کاربرد شما برای ساختن برپا می‌شود. برای سفارشی کردن پرونده، هدفهای make را ویرایش کنید. +Comment[fr]=Votre application est prête à être construite. Modifiez les cibles de « make » pour personnaliser le fichier. +Comment[gl]=A súa aplicación esta configurada para compilar. Edite os obxectivos make para persoalizalo ficheiro. +Comment[hu]=Az alkalmazás készen áll a lefordításra. A make-célpontok szerkeszthetők, ha szükséges. +Comment[it]=L'applicazione è configurata per compilare. Modifica i target di make per personalizzare il file. +Comment[nds]=Dien Programm kann opstellt warrn. Bewerk de "Make"-Telen för't Topassen vun de Datei. +Comment[ne]=तपाईँको अनुप्रयोग निर्माण गर्नका लागि सेटअप भएको छ । फाइललाई अनुकूल गर्नका लागि मेक तार्गेटलाई सम्पादन गर्नुहोस् । +Comment[nl]=Uw toepassing kan worden gebouwd. Bewerk de make targets om het bestand naar eigen inzicht aan te passen. +Comment[pl]=Program skonfigurowany. Dostosowanie pliku do własnych potrzeb jest możliwe przez modyfikację celów make. +Comment[pt]=A sua aplicação está preparada para ser compilada. Edite os alvos do 'make' para personalizar o ficheiro. +Comment[pt_BR]=A sua aplicação está preparada para ser compilada. Edite os alvos do 'make' para personalizar o ficheiro. +Comment[ru]=Ваше приложение готово для сборки. +Comment[sk]=Aplikácia je pripravená na build. Môžte si prispôsobiť make ciele. +Comment[sr]=Ваш програм је спреман за градњу. Уредите циљеве справљача да бисте прилагодили фајл. +Comment[sr@Latn]=Vaš program je spreman za gradnju. Uredite ciljeve spravljača da biste prilagodili fajl. +Comment[sv]=Programmet är inställt att byggas. Redigera byggmålen för att anpassa filen. +Comment[tr]=Uygulamanız derlenmeye hazır. Dosyayı özelleştirmek için make hedeflerini düzenleyin. +Comment[zh_CN]=您的应用程序已设置为构建。编辑 make 目标可自定义文件。 +Comment[zh_TW]=您的應用程式已設定好可建立了。請編輯 make 目標來調整檔案。 +Archive=superwaba.tar.gz + +[GNU] +Type=include +File=%{tdevelop}/template-common/gnu.kdevtemplate + diff --git a/languages/java/app_templates/superwaba/superwaba.tdevtemplate b/languages/java/app_templates/superwaba/superwaba.tdevtemplate deleted file mode 100644 index e792af35..00000000 --- a/languages/java/app_templates/superwaba/superwaba.tdevtemplate +++ /dev/null @@ -1,166 +0,0 @@ -# KDE Config File -[General] -Name=SuperWaba -Name[ne]=सुपरवाभा -Icon=superwaba.png -Category=Java -Comment=A simple template for building SuperWaba Java based apps on WinCE and PalmOS. More information can be found at http://www.superwaba.org -Comment[ca]=Una simple plantilla per a construir aplicacions basades en SuperWaba Java per a WinCE i PalmOS. Podeu trobar més informació a http://www.superwaba.org -Comment[da]=En simpel skabelon til at bygge SuperWaba Java baserede programmer på WinCE og PalmOS. Mere information kan findes på http://www.superwaba.org -Comment[de]=Eine einfache Vorlage zum Erstellen von auf Java basierenden SuperWaba-Anwendungen unter WinCE und PalmOS. Weitere Informationen erhalten Sie auf http://www.superwaba.org. -Comment[el]=Ένα απλό πρότυπο για την κατασκευή εφαρμογών SuperWaba Java για τα WinCE και PalmOS. Περισσότερες πληροφορίες μπορούν να βρεθούν στο http://www.superwaba.org -Comment[es]=Una plantilla sencilla para crear aplicaciones basadas en SuperWaba Java para WinCE y PalmOS. Puede encontrar más información en http://www.superwaba.org -Comment[et]=Lihtne mall rakenduste loomiseks SuperWaba Java põhjal WinCE ja PalmOS'i tarbeks. Rohkem infot annab http://www.superwaba.org -Comment[eu]=WinCE eta PalmOS sistema eragileetan SuperWaba Javan oinarritutako aplikazioak sortzeko txantiloi sinple bat. Informazio gehiagorako: http://www.superwaba.org -Comment[fa]=یک قالب ساده برای ساختن کاربردهای بر مبنای SuperWaba جاوا روی WinCE و PalmOS. اطلاعات بیشتر می‌تواند در http://www.superwaba.org یافت شود -Comment[fr]=Un modèle simple pour construire des applications basées sur Java SuperWaba pour WinCE et PalmOS. Vous trouverez plus d'informations sur http://www.superwaba.org -Comment[gl]=Un modelo sinxelo para crear aplicacións SuperWaba baseadas en Java para WinCE e PalmOS. Pode atopar máis información en http://www.superwaba.org -Comment[hu]=Egyszerű sablon SuperWaba Java-alkalmazások készítéséhez, WinCE és PalmOS platformra. Részletes információ itt található: http://www.superwaba.org -Comment[it]=Un semplice modello per compilare applicazioni Java SuperWaba basato su WinCE e PalmOS. Ulteriori informazioni possono essere trovate visitando http://www.superwaba.org/ -Comment[nds]=En eenfach Vörlaag för't Opstellen vun op WinCE un PalmOS opbuut SuperWaba-Programmen. Mehr Informatschonen laat sik op http://www.superwaba.org finnen -Comment[ne]=WinCE र PalmOS मा सुपरवाभा जाभा आधारित अनुप्रयोग निर्माणका लागि साधारण टेम्प्लेट । बढी जानकारी http://www.superwaba.org मा फेला पार्न सकिन्छ । -Comment[nl]=Een eenvouidg sjabloon voor het bouwen van SuperWaba Java-gebaseerde toepassingen op WinCE en PalmOS. Meer informatie vindt u op http://www.superwaba.org. -Comment[pl]=Prosty szablon do budowania programów w Javie wykorzystujących SuperWaba w środowiskach WinCE oraz PalmOS. Więcej informacji można znaleźć na stronie http://www.superwaba.org -Comment[pt]=Um modelo simples para criara aplicações Java, baseadas no SuperWaba, para o WinCE e o PalmOS. Poderá encontrar mais informações em http://www.superwaba.org -Comment[pt_BR]=Um modelo simples para criara aplicações Java, baseadas no SuperWaba, para o WinCE e o PalmOS. Poderá encontrar mais informações em http://www.superwaba.org -Comment[ru]=Создание приложения SuperWaba Java для устройств WinCE и PalmOS. Дополнительную информацию можно найти на http://www.superwaba.org -Comment[sk]=Jednoduchá šablóna pre vytváranie SuperWaba Java Aplikácií na WinCE a PalmOS. Viac informácií môžte nájsť na http://www.superwaba.org -Comment[sr]=Једноставан шаблон за градњу SuperWaba програма на основу Java-е, за WinCE и PalmOS. Више информација на http://www.superwaba.org -Comment[sr@Latn]=Jednostavan šablon za gradnju SuperWaba programa na osnovu Java-e, za WinCE i PalmOS. Više informacija na http://www.superwaba.org -Comment[sv]=En enkel mall för att bygga SuperWaba Java-baserade program på WinCE och PalmOS. Mer information hittas på http://www.superwaba.org. -Comment[tr]=WinCE ve PalmOS üstünde SuperWaba tabanlı Java uygulamarı yapmak için basit bir şablon. Daha fazla bilgi http://www.superwaba.org/ adresinde bulunabilir. -Comment[zh_CN]=在 WinCE 和 PalmOS 上构建基于 SuperWaba Java 应用程序的简单模板。更多信息可以在 http://www.superwaba.org 找到 -Comment[zh_TW]=一個簡單的建立在 WinCE 與 PalmOS 上執行的 SuperWaba Java 應用程式。您可以在 http://www.superwaba.org 取得更多資訊。 -FileTemplates=java -ShowFilesAfterGeneration=%{dest}/%{APPNAME}.java -Archive=superwaba.tar.gz - -[JAVA] -Type=value -Value=JAVA -Comment=Path to your java root -Comment[ca]=Ruta cap a la vostra arrel Java -Comment[da]=Sti til din java-rod -Comment[de]=Pfad zum Stammordner von Java -Comment[el]=Διαδρομή στο κατάλογό σας της java -Comment[es]=Ruta a su carpeta raíz Java -Comment[et]=Java juurkataloogi asukoht -Comment[eu]=Zure java erroaren bide-izena -Comment[fa]=مسیر ریشۀ جاوای شما -Comment[fr]=Chemin vers votre racine Java -Comment[gl]=Ruta a súa instalación de java -Comment[hu]=A Java-alapkönyvtár elérési útja -Comment[it]=Percorso alla radice java -Comment[ja]=Java ルートへのパス -Comment[nds]=Padd na Dien Java-Wörtelorner -Comment[ne]=तपाईँको जाभा रूटको मार्ग -Comment[nl]=Pad naar uw Java-hoofdmap -Comment[pl]=Ścieżka do głównego katalogu Javy -Comment[pt]=A localização de base do seu Java -Comment[pt_BR]=A localização de base do seu Java -Comment[ru]=Путь к корневому каталогу Java -Comment[sk]=Cesta ku java koreňu -Comment[sr]=Путања до вашег корена Java-е -Comment[sr@Latn]=Putanja do vašeg korena Java-e -Comment[sv]=Sökväg till Java-rotkatalog -Comment[zh_CN]=您的 Java 根路径 -Comment[zh_TW]=您的 java 根路徑 -Default=/usr/lib/java -ValueType=QString - -[WABA] -Type=value -Value=WABA -Comment=Path to your SuperWaba root -Comment[ca]=Ruta cap a la vostra arrel SuperWaba -Comment[da]=Sti til din SuperWaba-rod -Comment[de]=Pfad zum Stammordner von SuperWaba -Comment[el]=Διαδρομή στο κατάλογό σας της SuperWaba -Comment[es]=Ruta a su carpeta raíz de SuperWaba -Comment[et]=SuperWaba juurkataloogi asukoht -Comment[eu]=Zure SuperWaba erroaren bide-izena -Comment[fa]=مسیر ریشۀ SuperWaba شما -Comment[fr]=Chemin vers votre racine SuperWaba -Comment[gl]=Ruta a súa instalación de SuperWaba -Comment[hu]=A SuperWaba-alapkönyvtár elérési útja -Comment[it]=Percorso alla radice SuperWaba -Comment[ja]=SuperWaba ルートへのパス -Comment[nds]=Padd na Dien SuperWaba-Wörtelorner -Comment[ne]=तपाईँको सुपरवाभा रूटको मार्ग -Comment[nl]=Pad naar uw SuperWaba-hoofdmap -Comment[pl]=Ścieżka do głównego katalogu SuperWaba -Comment[pt]=A localização de base do seu SuperWaba -Comment[pt_BR]=A localização de base do seu SuperWaba -Comment[ru]=Путь к корневому каталогу SuperWaba -Comment[sk]=Cesta ku SuperWaba koreňu -Comment[sr]=Путања до вашег корена SuperWaba-е -Comment[sr@Latn]=Putanja do vašeg korena SuperWaba-e -Comment[sv]=Sökväg till SuperWaba-rotkatalog -Comment[tr]=SuperWaba kök dizininizin yolu -Comment[zh_CN]=您的 SuperWaba 根路径 -Comment[zh_TW]=您的 SuperWaba 根路徑 -Default=/usr/lib -ValueType=QString - -[GNU] -Type=install archive -Source=%{tdevelop}/template-common/gnu.tar.gz -Dest=%{dest} - -[PROJECT] -Type=install -EscapeXML=true -Source=%{src}/sw.tdevelop -Dest=%{dest}/%{APPNAMELC}.tdevelop - -[FILELIST] -Type=install -Source=%{src}/sw.filelist -Dest=%{dest}/%{APPNAMELC}.filelist - -[MAKEFILE] -Type=install -Source=%{src}/src-Makefile -Dest=%{dest}/Makefile - -[SOURCE] -Type=install -Source=%{src}/sw.java -Dest=%{dest}/%{APPNAME}.java - -[MESSAGE] -Type=Message -Comment=Your application is setup to build. Edit the make targets to customize the file. -Comment[ca]=La vostra aplicació està llesta per a ser construïda. Editeu els objectius de make per a personalitzar el fitxer. -Comment[da]=Dit program er parat til at blive bygget. Redigér make targets for at indstille filen. -Comment[de]=Ihre Anwendung ist bereit für das Erstellen. Bearbeiten Sie die Make-Targets, um die Datei an Ihre Bedürfnisse anzupassen. -Comment[el]=Η εφαρμογή σας έχει ρυθμιστεί για κατασκευή. Επεξεργαστείτε τους προορισμούς κατασκευής για την προσαρμογή του αρχείου. -Comment[en_GB]=Your application is setup to build. Edit the make targets to customise the file. -Comment[es]=Su aplicación está lista para ser construída. Edite los objetivos make para personalizar el archivo. -Comment[et]=Rakendus on ehitamiseks valmis. Faili kohandamiseks redigeeri ehitamise sihtmärke. -Comment[eu]=Zure aplikazioa eraikitzeko konfiguratu da. Editatu make-en helburuak fitxategia pertsonalizatzeko. -Comment[fa]=کاربرد شما برای ساختن برپا می‌شود. برای سفارشی کردن پرونده، هدفهای make را ویرایش کنید. -Comment[fr]=Votre application est prête à être construite. Modifiez les cibles de « make » pour personnaliser le fichier. -Comment[gl]=A súa aplicación esta configurada para compilar. Edite os obxectivos make para persoalizalo ficheiro. -Comment[hu]=Az alkalmazás készen áll a lefordításra. A make-célpontok szerkeszthetők, ha szükséges. -Comment[it]=L'applicazione è configurata per compilare. Modifica i target di make per personalizzare il file. -Comment[nds]=Dien Programm kann opstellt warrn. Bewerk de "Make"-Telen för't Topassen vun de Datei. -Comment[ne]=तपाईँको अनुप्रयोग निर्माण गर्नका लागि सेटअप भएको छ । फाइललाई अनुकूल गर्नका लागि मेक तार्गेटलाई सम्पादन गर्नुहोस् । -Comment[nl]=Uw toepassing kan worden gebouwd. Bewerk de make targets om het bestand naar eigen inzicht aan te passen. -Comment[pl]=Program skonfigurowany. Dostosowanie pliku do własnych potrzeb jest możliwe przez modyfikację celów make. -Comment[pt]=A sua aplicação está preparada para ser compilada. Edite os alvos do 'make' para personalizar o ficheiro. -Comment[pt_BR]=A sua aplicação está preparada para ser compilada. Edite os alvos do 'make' para personalizar o ficheiro. -Comment[ru]=Ваше приложение готово для сборки. -Comment[sk]=Aplikácia je pripravená na build. Môžte si prispôsobiť make ciele. -Comment[sr]=Ваш програм је спреман за градњу. Уредите циљеве справљача да бисте прилагодили фајл. -Comment[sr@Latn]=Vaš program je spreman za gradnju. Uredite ciljeve spravljača da biste prilagodili fajl. -Comment[sv]=Programmet är inställt att byggas. Redigera byggmålen för att anpassa filen. -Comment[tr]=Uygulamanız derlenmeye hazır. Dosyayı özelleştirmek için make hedeflerini düzenleyin. -Comment[zh_CN]=您的应用程序已设置为构建。编辑 make 目标可自定义文件。 -Comment[zh_TW]=您的應用程式已設定好可建立了。請編輯 make 目標來調整檔案。 -Archive=superwaba.tar.gz - -[GNU] -Type=include -File=%{tdevelop}/template-common/gnu.tdevtemplate - diff --git a/languages/java/app_templates/superwaba/sw.tdevelop b/languages/java/app_templates/superwaba/sw.tdevelop index 029d3af3..11db7411 100644 --- a/languages/java/app_templates/superwaba/sw.tdevelop +++ b/languages/java/app_templates/superwaba/sw.tdevelop @@ -4,17 +4,17 @@ %{AUTHOR} %{EMAIL} %{VERSION} - TDevCustomProject + KDevCustomProject Java - TDevDebugger + KDevDebugger Java Code - + make test @@ -34,14 +34,14 @@ - - + + - - + + bash bash_bugs @@ -85,10 +85,10 @@ KDE Libraries (Doxygen) - - + + - + diff --git a/languages/java/app_templates/tdeappjava/CMakeLists.txt b/languages/java/app_templates/tdeappjava/CMakeLists.txt deleted file mode 100644 index 578b6e9d..00000000 --- a/languages/java/app_templates/tdeappjava/CMakeLists.txt +++ /dev/null @@ -1,26 +0,0 @@ -################################################# -# -# (C) 2010-2011 Serghei Amelian -# serghei (DOT) amelian (AT) gmail.com -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -add_custom_target( tdeappjava.tar.gz ALL - COMMAND tar zcf tdeappjava.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} - app.java pref.java appview.java app_client.java appui.rc - src-Makefile.am tdeappjava.png app.tdevelop subdirs -) - - -install( FILES - ${CMAKE_CURRENT_BINARY_DIR}/tdeappjava.tar.gz tdeappjava.png - DESTINATION ${DATA_INSTALL_DIR}/tdevappwizard ) - - -install( FILES - tdeappjava.tdevtemplate - DESTINATION ${DATA_INSTALL_DIR}/tdevappwizard/templates ) diff --git a/languages/java/app_templates/tdeappjava/Makefile.am b/languages/java/app_templates/tdeappjava/Makefile.am deleted file mode 100644 index 889abb5a..00000000 --- a/languages/java/app_templates/tdeappjava/Makefile.am +++ /dev/null @@ -1,17 +0,0 @@ -dataFiles = app.java pref.java appview.java app_client.java appui.rc \ - src-Makefile.am tdeappjava.png app.tdevelop subdirs -templateName = tdeappjava - -### no need to change below: -template_DATA = $(templateName).tdevtemplate -templatedir = ${appwizarddatadir}/templates - -appwizarddatadir = ${kde_datadir}/tdevappwizard -$(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/java/app_templates/tdeappjava/app.desktop b/languages/java/app_templates/tdeappjava/app.desktop deleted file mode 100644 index 3cc75ad8..00000000 --- a/languages/java/app_templates/tdeappjava/app.desktop +++ /dev/null @@ -1,41 +0,0 @@ -[Desktop Entry] -Name=%{APPNAME} -Exec=%{APPNAMELC} %i -caption "%c" -Icon=%{APPNAMELC} -Type=Application -DocPath=%{APPNAMELC}/%{APPNAMELC}.html -Comment=A Java TDE KPart Application -Comment[ca]=Una aplicació KPart en Java per al TDE -Comment[da]=Et Java TDE KPart-program -Comment[de]=Eine TDE-Komponten-Anwendung in Java -Comment[el]=Μια εφαρμογή Java TDE KPart -Comment[es]=Una aplicación KPart en Java para TDE -Comment[et]=Java TDE KPart rakendus -Comment[eu]=Java TDE KPart aplikazio bat -Comment[fa]=یک کاربرد TDE KPart جاوا -Comment[fr]=Une application KPart en JAVA pour TDE -Comment[ga]=Feidhmchlár KPart TDE i Java -Comment[gl]=Unha aplicación KPart de TDE en Java -Comment[hi]=एक जावा केडीई के-पार्ट अनुप्रयोग -Comment[hu]=Java-ban írt, KPart-alapú TDE-alkalmazás -Comment[is]=Java TDE KPart forrit -Comment[it]=Un'applicazione Java TDE KPart -Comment[ja]= Java TDE KPart アプリケーション -Comment[nds]=En TDE-Programm in Java -Comment[ne]=जाभा केडीई KPart अनुप्रयोग -Comment[nl]=Een Java TDE KPart-toepassing -Comment[pl]=Element osadzalny KPart Javy -Comment[pt]=Uma Aplicação TDE KPart em Java -Comment[pt_BR]=Um Aplicativo KPart do TDE para Java -Comment[ru]=Приложение KPart для TDE на Java -Comment[sk]=Java TDE KPart aplikácia -Comment[sl]=Program za Javo TDE KPart -Comment[sr]=Java TDE KPart програм -Comment[sr@Latn]=Java TDE KPart program -Comment[sv]=Ett Java TDE Kpart-program -Comment[ta]=ஜாவா கெடி கெபாகம் பயன்பாடு -Comment[tg]=Гузориш KPart барои TDE дар Java -Comment[tr]=Bir Java TDE KPart Uygulaması -Comment[zh_CN]=一个 Java TDE KPart 应用程序 -Comment[zh_TW]=Java TDE KPart 應用程式 -Terminal=false diff --git a/languages/java/app_templates/tdeappjava/app.java b/languages/java/app_templates/tdeappjava/app.java deleted file mode 100644 index 40bc6b93..00000000 --- a/languages/java/app_templates/tdeappjava/app.java +++ /dev/null @@ -1,281 +0,0 @@ -/* - * Copyright (C) %{YEAR} %{AUTHOR} <%{EMAIL}> - */ - -import java.util.*; -import org.kde.qt.*; -import org.kde.koala.*; - -/** - * This class serves as the main window for %{APPNAME}. It handles the - * menus, toolbars, and status bars. - * - * @short Main window class - * @author $AUTHOR <$EMAIL> - * @version $APP_VERSION - */ -public class %{APPNAME} extends TDEMainWindow -{ - private %{APPNAME}View m_view; - private QPrinter m_printer; - -%{APPNAME}() -{ - super( null, "%{APPNAME}" ); - m_view = new %{APPNAME}View(this); - m_printer = new QPrinter(); - // accept dnd - setAcceptDrops(true); - - // tell the TDEMainWindow that this is indeed the main widget - setCentralWidget(m_view); - - // then, setup our actions - setupActions(); - - // and a status bar - statusBar().show(); - - // Apply the create the main window and ask the mainwindow to - // automatically save settings if changed: window size, toolbar - // position, icon size, etc. Also to add actions for the statusbar - // toolbar, and keybindings if necessary. - setupGUI(); - - // allow the view to change the statusbar and caption - connect(m_view, SIGNAL("signalChangeStatusbar(String)"), - this, SLOT("changeStatusbar(String)")); - connect(m_view, SIGNAL("signalChangeCaption(String)"), - this, SLOT("changeCaption(String)")); - -} - -public void load(KURL url) -{ - StringBuffer target = new StringBuffer(); - // the below code is what you should normally do. in this - // example case, we want the url to our own. you probably - // want to use this code instead for your app - - // download the contents - if (NetAccess.download(url, target, null)) - { - // set our caption - setCaption(url.fileName()); - - // load in the file (target is always local) -// loadFile(target); - - // and remove the temp file - NetAccess.removeTempFile(target.toString()); - } - - setCaption(url.url()); - m_view.openURL(url); -} - -public void setupActions() -{ - TDEApplication kapp = TDEApplication.kApplication(); - KStdAction.openNew(this, SLOT("fileNew()"), actionCollection()); - KStdAction.open(this, SLOT("fileOpen()"), actionCollection()); - KStdAction.save(this, SLOT("fileSave()"), actionCollection()); - KStdAction.saveAs(this, SLOT("fileSaveAs()"), actionCollection()); - KStdAction.print(this, SLOT("filePrint()"), actionCollection()); - KStdAction.quit(kapp, SLOT("quit()"), actionCollection()); - - KStdAction.preferences(this, SLOT("optionsPreferences()"), actionCollection()); - - // this doesn't do anything useful. it's just here to illustrate - // how to insert a custom menu and menu item - TDEAction custom = new TDEAction(tr("Cus&tom Menuitem"), new TDEShortcut(), - this, SLOT("optionsPreferences()"), - actionCollection(), "custom_action"); -} - -protected void saveProperties(TDEConfig config) -{ - // the 'config' object points to the session managed - // config file. anything you write here will be available - // later when this app is restored - - if (m_view.currentURL() != null) - config.writeEntry("lastURL", m_view.currentURL()); -} - -protected void readProperties(TDEConfig config) -{ - // the 'config' object points to the session managed - // config file. this function is automatically called whenever - // the app is being restored. read in here whatever you wrote - // in 'saveProperties' - - String url = config.readPathEntry("lastURL"); - - if (url != null) - m_view.openURL(new KURL(url)); -} - -protected void dragEnterEvent(QDragEnterEvent event) -{ - // accept uri drops only - event.accept(QUriDrag.canDecode(event)); -} - -protected void dropEvent(QDropEvent event) -{ - // this is a very simplistic implementation of a drop event. we - // will only accept a dropped URL. the Qt dnd code can do *much* - // much more, so please read the docs there - ArrayList uri = new ArrayList(); - - // see if we can decode a URI.. if not, just ignore it - if (QUriDrag.decode(event, (String[]) uri.toArray())) - { - // okay, we have a URI.. process it - String url, target; - url = (String) uri.get(0); - - // load in the file - load(new KURL(url)); - } -} - -private void fileNew() -{ - // this slot is called whenever the File.New menu is selected, - // the New shortcut is pressed (usually CTRL+N) or the New toolbar - // button is clicked - - // create a new window - (new %{APPNAME}()).show(); -} - -private void 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 - KURL url = KURLRequesterDlg.getURL(null, this, tr("Open Location") ); - if (!url.isEmpty()) - m_view.openURL(url); -} - -private void fileSave() -{ - // this slot is called whenever the File.Save menu is selected, - // the Save shortcut is pressed (usually CTRL+S) or the Save toolbar - // button is clicked - - // save the current file -} - -private void fileSaveAs() -{ - // this slot is called whenever the File.Save As menu is selected, - KURL file_url = KFileDialog.getSaveURL(); - if (!file_url.isEmpty() && file_url.isValid()) - { - // save your info, here - } -} - -private void filePrint() -{ - // this slot is called whenever the File.Print menu is selected, - // the Print shortcut is pressed (usually CTRL+P) or the Print toolbar - // button is clicked - if (m_printer == null) m_printer = new QPrinter(); - if (QPrintDialog.getPrinterSetup(m_printer)) - { - // setup the printer. with Qt, you always "print" to a - // QPainter.. whether the output medium is a pixmap, a screen, - // or paper - QPainter p = new QPainter(); - p.begin(m_printer); - - // we let our view do the actual printing - QPaintDeviceMetrics metrics = new QPaintDeviceMetrics(m_printer); - m_view.print(p, metrics.height(), metrics.width()); - - // and send the result to the printer - p.end(); - } -} - -private void optionsPreferences() -{ - // popup some sort of preference dialog, here - %{APPNAME}Preferences dlg = new %{APPNAME}Preferences(); - if (dlg.exec() != 0) - { - // redo your settings - } -} - -private void changeStatusbar(String text) -{ - // display the text on the statusbar - statusBar().message(text); -} - -private void changeCaption(String text) -{ - // display the text on the caption - setCaption(text); -} - -static String description = - "A KDE Application"; - -static String version = "%{VERSION}"; - -static String[][] options = -{ - { "+[URL]", "Document to open.", null } -}; - -static void main(String[] cmdLineArgs) -{ - TDEAboutData about = new TDEAboutData("%{APPNAMELC}", "%{APPNAME}", version, description, - TDEAboutData.License_%{LICENSE}, "(C) %{YEAR} %{AUTHOR}", null, null, "%{EMAIL}"); - about.addAuthor( "%{AUTHOR}", null, "%{EMAIL}" ); - TDECmdLineArgs.init(cmdLineArgs, about); - TDECmdLineArgs.addCmdLineOptions(options); - TDEApplication app = new TDEApplication(); - - // see if we are starting with session management - if (app.isRestored()) - RESTORE("%{APPNAME}"); - else - { - // no session.. just start up normally - TDECmdLineArgs args = TDECmdLineArgs.parsedArgs(); - if (args.count() == 0) - { - %{APPNAME} widget = new %{APPNAME}(); - widget.show(); - } - else - { - int i = 0; - for (; i < args.count(); i++) - { - %{APPNAME} widget = new %{APPNAME}(); - widget.show(); - widget.load(args.url(i)); - } - } - args.clear(); - } - - app.exec(); - return; -} - - static { - qtjava.initialize(); - kdejava.initialize(); - } -} - diff --git a/languages/java/app_templates/tdeappjava/app.tdevelop b/languages/java/app_templates/tdeappjava/app.tdevelop deleted file mode 100644 index 1e07dec0..00000000 --- a/languages/java/app_templates/tdeappjava/app.tdevelop +++ /dev/null @@ -1,88 +0,0 @@ - - - - %{AUTHOR} - %{EMAIL} - %{VERSION} - KDevAutoProject - Java - - Java - Code - Qt - KDE - - - - - src/java - - - src/%{APPNAMELC} - - - - - - - - - - - - - - - - - - ada - ada_bugs_gcc - bash - bash_bugs - c++_bugs_gcc - clanlib - w3c-dom-level2-html - fortran_bugs_gcc - gnome1 - gnustep - gtk - gtk_bugs - haskell - haskell_bugs_ghc - libc - libstdc++ - opengl - pascal_bugs_fp - php - php_bugs - perl - perl_bugs - python - python_bugs - ruby - ruby_bugs - sdl - stl - w3c-svg - sw - w3c-uaag10 - wxwidgets_bugs - - - Guide to the Qt Translation Tools - Qt Assistant Manual - Qt Designer Manual - Qt Reference Documentation - qmake User Guide - - - KDE Libraries (Doxygen) - - - - - - - - diff --git a/languages/java/app_templates/tdeappjava/app_client.java b/languages/java/app_templates/tdeappjava/app_client.java deleted file mode 100644 index 9648cfad..00000000 --- a/languages/java/app_templates/tdeappjava/app_client.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) %{YEAR} %{AUTHOR} <%{EMAIL}> - */ - -#include -#include -#include -#include - -int main(int argc, char **argv) -{ - TDEApplication app(argc, argv, "%{APPNAMELC}_client", false); - - // get our DCOP client and attach so that we may use it - DCOPClient *client = app.dcopClient(); - client->attach(); - - // do a 'send' for now - QByteArray data; - QDataStream ds(data, IO_WriteOnly); - if (argc > 1) - ds << QString(argv[1]); - else - ds << QString("http://www.kde.org"); - client->send("%{APPNAMELC}", "%{APPNAME}Iface", "openURL(QString)", data); - - return app.exec(); -} diff --git a/languages/java/app_templates/tdeappjava/appui.rc b/languages/java/app_templates/tdeappjava/appui.rc deleted file mode 100644 index ceb4f14e..00000000 --- a/languages/java/app_templates/tdeappjava/appui.rc +++ /dev/null @@ -1,8 +0,0 @@ - - - - C&ustom - - - - diff --git a/languages/java/app_templates/tdeappjava/appview.java b/languages/java/app_templates/tdeappjava/appview.java deleted file mode 100644 index 347ff58f..00000000 --- a/languages/java/app_templates/tdeappjava/appview.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright (C) %{YEAR} %{AUTHOR} <%{EMAIL}> - */ - -import java.util.*; -import org.kde.qt.*; -import org.kde.koala.*; - -/** - * This is the main view class for %{APPNAME}. Most of the non-menu, - * non-toolbar, and non-statusbar (e.g., non frame) GUI code should go - * here. - * - * This %{APPNAMELC} uses an HTML component as an example. - * - * @short Main view - * @author %{AUTHOR} <%{EMAIL}> - * @version %{VERSION} - */ -public class %{APPNAME}View extends QWidget -{ - - QHBoxLayout top_layout; - -public %{APPNAME}View(QWidget parent) -{ - super(parent, null); - // setup our layout manager to automatically add our widgets - top_layout = new QHBoxLayout(this); - top_layout.setAutoAdd(true); - - // we want to look for all components that satisfy our needs. the - // trader will actually search through *all* registered KDE - // applications and components -- not just KParts. So we have to - // specify two things: a service type and a constraint - // - // the service type is like a mime type. we say that we want all - // applications and components that can handle HTML -- 'text/html' - // - // however, by itself, this will return such things as Netscape.. - // not what we wanted. so we constrain it by saying that the - // string 'KParts/ReadOnlyPart' must be found in the ServiceTypes - // field. with this, only components of the type we want will be - // returned. - ArrayList offers = TDETrader.self().query("text/html", "'KParts/ReadOnlyPart' in ServiceTypes"); - - KLibFactory factory = null; - // in theory, we only care about the first one.. but let's try all - // offers just in case the first can't be loaded for some reason - Iterator it = offers.iterator(); - while(it.hasNext()) - { - KService ptr = (KService) it.next(); - - // we now know that our offer can handle HTML and is a part. - // since it is a part, it must also have a library... let's try to - // load that now - factory = KLibLoader.self().factory( ptr.library() ); - if (factory != null) - { - m_html = (ReadOnlyPart) factory.create(this, ptr.name(), "KParts::ReadOnlyPart"); - break; - } - } - - // if our factory is invalid, then we never found our component - // and we might as well just exit now - if (factory == null) - { - KMessageBox.error(this, "Could not find a suitable HTML component"); - return; - } - - connect(m_html, SIGNAL("setWindowCaption(String)"), - this, SLOT("slotSetTitle(String)")); - connect(m_html, SIGNAL("setStatusBarText(String)"), - this, SLOT("slotOnURL(String)")); - -} - - -public void print(QPainter p, int height, int width) -{ - // do the actual printing, here - // p.drawText(etc..) -} - -public String currentURL() -{ - return m_html.url().url(); -} - -public void openURL(String url) -{ - openURL(new KURL(url)); -} - -public void openURL(KURL url) -{ - m_html.openURL(url); -} - -private void slotOnURL(String url) -{ - emit("signalChangeStatusbar", url); -} - -private void slotSetTitle(String title) -{ - emit("signalChangeCaption", title); -} - -private ReadOnlyPart m_html; - -} diff --git a/languages/java/app_templates/tdeappjava/pref.java b/languages/java/app_templates/tdeappjava/pref.java deleted file mode 100644 index a50fdb31..00000000 --- a/languages/java/app_templates/tdeappjava/pref.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (C) %{YEAR} %{AUTHOR} <%{EMAIL}> - */ - -import java.util.*; -import org.kde.qt.*; -import org.kde.koala.*; - -public class %{APPNAME}Preferences extends KDialogBase -{ -private %{APPNAME}PrefPageOne m_pageOne; -private %{APPNAME}PrefPageTwo m_pageTwo; - -public %{APPNAME}Preferences() -{ - super(TreeList, "%{APPNAME} Preferences", - Help|Default|Ok|Apply|Cancel, Ok); - - // this is the base class for your preferences dialog. it is now - // a Treelist dialog.. but there are a number of other - // possibilities (including Tab, Swallow, and just Plain) - QFrame frame; - frame = addPage(tr("First Page"), tr("Page One Options")); - m_pageOne = new %{APPNAME}PrefPageOne(frame); - - frame = addPage(tr("Second Page"), tr("Page Two Options")); - m_pageTwo = new %{APPNAME}PrefPageTwo(frame); -} - -public class %{APPNAME}PrefPageOne extends QFrame { -public %{APPNAME}PrefPageOne(QWidget parent) -{ - super(parent); - QHBoxLayout layout = new QHBoxLayout(this); - layout.setAutoAdd(true); - - new QLabel("Add something here", this); -} -} - -public class %{APPNAME}PrefPageTwo extends QFrame { -public %{APPNAME}PrefPageTwo(QWidget parent) -{ - super(parent); - QHBoxLayout layout = new QHBoxLayout(this); - layout.setAutoAdd(true); - - new QLabel("Add something here", this); -} -} - -} diff --git a/languages/java/app_templates/tdeappjava/src-Makefile.am b/languages/java/app_templates/tdeappjava/src-Makefile.am deleted file mode 100644 index 6468994c..00000000 --- a/languages/java/app_templates/tdeappjava/src-Makefile.am +++ /dev/null @@ -1,18 +0,0 @@ -## Makefile.am for %{APPNAMELC} - -JAVAROOT = . - -# which sources should be compiled for %{APPNAMELC} -java_JAVA = %{APPNAME}.java %{APPNAME}View.java \ - %{APPNAME}Preferences.java - - -KDE_ICON = %{APPNAMELC} - -# this is where the kdelnk file will go -kdelnkdir = $(kde_appsdir)/Utilities -kdelnk_DATA = %{APPNAMELC}.desktop - -# this is where the XML-GUI resource file goes -rcdir = $(kde_datadir)/%{APPNAMELC} -rc_DATA = %{APPNAMELC}ui.rc diff --git a/languages/java/app_templates/tdeappjava/subdirs b/languages/java/app_templates/tdeappjava/subdirs deleted file mode 100644 index 0e678106..00000000 --- a/languages/java/app_templates/tdeappjava/subdirs +++ /dev/null @@ -1,3 +0,0 @@ -doc -po -src diff --git a/languages/java/app_templates/tdeappjava/tdeappjava b/languages/java/app_templates/tdeappjava/tdeappjava deleted file mode 100644 index a62edafa..00000000 --- a/languages/java/app_templates/tdeappjava/tdeappjava +++ /dev/null @@ -1,10 +0,0 @@ -# KDE Config File -[General] -Name=Application framework -Name[fr]=Squelette d'application -Icon=tdeappjava.png -Category=Java/KDE -Comment=Generates a simple Java KDE application with one toplevel window, menus and toolbars. -Comment[fr]=Gnre une simple application KDE dans le language JAVA avec une fentre principale, des menus, et des barres d'outils. -FileTemplates=java,CStyle -ShowFilesAfterGeneration=src/APPNAMEView.java diff --git a/languages/java/app_templates/tdeappjava/tdeappjava.png b/languages/java/app_templates/tdeappjava/tdeappjava.png deleted file mode 100644 index 913ebb87..00000000 Binary files a/languages/java/app_templates/tdeappjava/tdeappjava.png and /dev/null differ diff --git a/languages/java/app_templates/tdeappjava/tdeappjava.tdevtemplate b/languages/java/app_templates/tdeappjava/tdeappjava.tdevtemplate deleted file mode 100644 index b5b35e33..00000000 --- a/languages/java/app_templates/tdeappjava/tdeappjava.tdevtemplate +++ /dev/null @@ -1,163 +0,0 @@ -# KDE Config File -[General] -Name=Application framework -Name[ca]=Infraestructura d'aplicacions -Name[da]=Programskelet -Name[de]=Anwendungsgrundgerüst -Name[el]=Πλαίσιο εφαρμογής -Name[es]=Infraestructura de aplicación -Name[et]=Rakenduse raamistik -Name[eu]=Aplikazioen lan-markoa -Name[fa]=چارچوب کاربرد -Name[fr]=Infrastructure d'application -Name[ga]=Creatlach feidhmchláir -Name[gl]=Entorno de traballo para aplicación -Name[hu]=Alkalmazás-keretrendszer -Name[it]=Infrastruttura applicativa -Name[ja]=アプリケーションフレームワーク -Name[nds]=Programmrahmenwark -Name[ne]=अनुप्रयोग फ्रेमवर्क -Name[nl]=Applicationframework -Name[pl]=Szablon programu -Name[pt]=Plataforma de aplicações -Name[pt_BR]=Plataforma de aplicações -Name[ru]=Приложение KDE -Name[sk]=Aplikačný framework -Name[sl]=Ogrodje programa -Name[sr]=Радни оквир програма -Name[sr@Latn]=Radni okvir programa -Name[sv]=Programramverk -Name[tr]=Uygulama Çatısı -Name[zh_CN]=应用程序框架 -Name[zh_TW]=應用程式框架 -Icon=tdeappjava.png -Category=Java/KDE -Comment=Generates a simple Java KDE application with one toplevel window, menus and toolbars. -Comment[ca]=Genera una simple aplicació per al KDE en Java amb una finestra principal, menús i barres d'eines. -Comment[da]=Genererer et simpelt Java KDE program med et vindue på topniveau, menuer og værktøjslinjer. -Comment[de]=Erstellt eine einfache Java-KDE-Anwendung mit einem Toplevel-Fenster, Menüs und Werkzeugleisten. -Comment[el]=Δημιουργεί μια απλή εφαρμογή Java του KDE με ένα ανώτερο παράθυρο, μενού, και γραμμές εργαλείων. -Comment[es]=Genera una sencilla aplicación para KDE en Java, con una ventana principal, menús y barras de herramientas. -Comment[et]=Lihtsa Java KDE rakenduse loomine ühe tipptaseme akna, menüüde ja tööriistaribadega. -Comment[eu]=Goi-mailako lehio bat, menuak eta tresna-barrak dituen Java KDE aplikazio bat sortzen du. -Comment[fa]=یک کاربرد سادۀ KDE جاوا با یک پنجرۀ سطح بالا، گزینگان و میله‌های ابزار تولید می‌کند. -Comment[fr]=Génère une application KDE simple en Java comprenant une fenêtre de premier niveau, des menus et des barres d'outils. -Comment[gl]=Xera unha aplicación sinxela KDE en Java cunha xanela principal, menús e barras de ferramentas. -Comment[hu]=Létrehoz egy egyszerű Java-alapú KDE-alkalmazást egy főablakkal, menükkel és eszköztárakkal. -Comment[it]=Genera una semplice applicazione KDE Java con una finestra toplevel, menu e barre degli strumenti. -Comment[nds]=Stellt en eenfach KDE-Programm in Java mit een böverst Finster, Menüs un Warktüüchbalkens op. -Comment[ne]=एउटा उच्चतह सञ्झ्याल, मेनु र उपकरणपट्टीसँग साधारण जाभा केडीई अनुप्रयोग उत्पन्न गर्दछ । -Comment[nl]=Genereert een eenvoudige Java KDE-toepassing met een toplevel window, menu's en toolbars. -Comment[pl]=Generuje prosty program KDE w Javie posiadający okno, menu i paski narzędzi. -Comment[pt]=Gera uma aplicação para KDE simples em Java, com uma janela de topo, menus e barras de ferramentas. -Comment[pt_BR]=Gera uma aplicação para KDE simples em Java, com uma janela de topo, menus e barras de ferramentas. -Comment[ru]=Создание простого приложения Java KDE с окном, меню и панелями инструментов. -Comment[sk]=Vygeneruje jednoduchú Java KDE aplikáciu s jedným oknom, menu a panelom nástrojov. -Comment[sr]=Прави једноставан Java KDE програм са једним прозором највишег нивоа, менијима и тракама са алатом. -Comment[sr@Latn]=Pravi jednostavan Java KDE program sa jednim prozorom najvišeg nivoa, menijima i trakama sa alatom. -Comment[sv]=Skapar ett enkelt Java KDE-program med ett toppnivåfönster, menyer och verktygsrader. -Comment[tr]=Bir üst seviye penceresi, menüleri ve araç çubukları olan basit bir Java KDE uygulaması yaratır. -Comment[zh_CN]=生成一个简单的带有顶级窗口、菜单和工具栏的 Java KDE 应用程序。 -Comment[zh_TW]=產生一個簡單的 Java KDE 應用程式,內含頂層視窗、選單與工具列。 -FileTemplates=java,CStyle -ShowFilesAfterGeneration=%{dest}/src/%{APPNAME}View.java -Archive=tdeappjava.tar.gz - -[ADMIN] -Type=include -File=%{tdevelop}/template-common/admin.tdevtemplate - -[GNU] -Type=include -File=%{tdevelop}/template-common/gnu.tdevtemplate - -[DOCBOOK] -Type=include -File=%{tdevelop}/template-common/dockbook.tdevtemplate - -[FILE4] -Type=install -EscapeXML=true -Source=%{src}/app.tdevelop -Dest=%{dest}/%{APPNAMELC}.tdevelop - -[FILE5] -Type=install -Source=%{tdevelop}/template-common/kde-Makefile.am -Dest=%{dest}/Makefile.am - -[FILE6] -Type=install -Source=%{tdevelop}/template-common/kde-Makefile.cvs -Dest=%{dest}/Makefile.cvs - -[FILE7] -Type=install -Source=%{tdevelop}/template-common/tde-configure.in.in -Dest=%{dest}/configure.in.in - -[MkDir3] -Type=mkdir -Dir=%{dest}/src - -[FILE8] -Type=install -Source=%{tdevelop}/template-common/tde-app.desktop -Dest=%{dest}/src/%{APPNAMELC}.desktop - -[FILE9] -Type=install -Source=%{tdevelop}/template-common/kde-app.lsm -Dest=%{dest}/src/%{APPNAMELC}.lsm - -[FILE10] -Type=install -Source=%{tdevelop}/template-common/hi16-app-app.png -Dest=%{dest}/src/hi16-app-%{APPNAMELC}.png -Process=false - -[FILE11] -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 - -[FILE12] -Type=install -Source=%{tdevelop}/template-common/kde-po-Makefile.am -Dest=%{dest}/po/Makefile.am - -[FILE13] -Type=install -Source=%{src}/subdirs -Dest=%{dest}/subdirs - -[FILE14] -Type=install -Source=%{src}/src-Makefile.am -Dest=%{dest}/src/Makefile.am - -[FILE15] -Type=install -Source=%{src}/app.java -Dest=%{dest}/src/%{APPNAME}.java - -[FILE16] -Type=install -Source=%{src}/appview.java -Dest=%{dest}/src/%{APPNAME}View.java - -[FILE17] -Type=install -Source=%{src}/pref.java -Dest=%{dest}/src/%{APPNAME}Preferences.java - -[FILE18] -Type=install -Source=%{src}/appui.rc -Dest=%{dest}/src/%{APPNAMELC}ui.rc - diff --git a/languages/java/backgroundparser.cpp b/languages/java/backgroundparser.cpp index 006b0127..d6a034e4 100644 --- a/languages/java/backgroundparser.cpp +++ b/languages/java/backgroundparser.cpp @@ -13,8 +13,8 @@ #include "javasupportpart.h" #include "javasupport_events.h" #include "driver.h" -#include "tdevdeepcopy.h" -#include "tdevdriver.h" +#include "kdevdeepcopy.h" +#include "kdevdriver.h" #include @@ -23,8 +23,8 @@ #include #include -#include -#include +#include +#include #include #include @@ -178,7 +178,7 @@ BackgroundParser::BackgroundParser( JavaSupportPart* part, TQWaitCondition* cons : m_consumed( consumed ), m_javaSupport( part ), m_close( false ) { m_fileList = new SynchronizedFileList(); - m_driver = new TDevDriver( m_javaSupport ); + m_driver = new KDevDriver( m_javaSupport ); m_driver->setSourceProvider( new KDevSourceProvider(m_javaSupport) ); //disabled for now m_driver->setResolveDependencesEnabled( true ); } diff --git a/languages/java/backgroundparser.h b/languages/java/backgroundparser.h index db197e31..fee2bc78 100644 --- a/languages/java/backgroundparser.h +++ b/languages/java/backgroundparser.h @@ -71,7 +71,7 @@ protected: Unit* parseFile( const TQString& fileName, bool readFromDisk ); private: - class TDevDriver* m_driver; + class KDevDriver* m_driver; TQString m_currentFile; TQWaitCondition m_canParse; TQWaitCondition m_isEmpty; diff --git a/languages/java/doc/CMakeLists.txt b/languages/java/doc/CMakeLists.txt index 23acf492..685a980d 100644 --- a/languages/java/doc/CMakeLists.txt +++ b/languages/java/doc/CMakeLists.txt @@ -11,4 +11,4 @@ install( FILES sw.toc java_bugs_gcc.toc java_bugs_sun.toc - DESTINATION ${DATA_INSTALL_DIR}/tdevdocumentation/tocs ) + DESTINATION ${DATA_INSTALL_DIR}/kdevdocumentation/tocs ) diff --git a/languages/java/doc/Makefile.am b/languages/java/doc/Makefile.am index f163d148..adb0f24f 100644 --- a/languages/java/doc/Makefile.am +++ b/languages/java/doc/Makefile.am @@ -1,4 +1,4 @@ -tocdir = ${kde_datadir}/tdevdocumentation/tocs +tocdir = ${kde_datadir}/kdevdocumentation/tocs toc_DATA = sw.toc java_bugs_gcc.toc java_bugs_sun.toc #indexdir = ${kde_datadir}/devdoctreeview/indices diff --git a/languages/java/file_templates/CMakeLists.txt b/languages/java/file_templates/CMakeLists.txt index cee049fb..848555dd 100644 --- a/languages/java/file_templates/CMakeLists.txt +++ b/languages/java/file_templates/CMakeLists.txt @@ -11,4 +11,4 @@ install( FILES java - DESTINATION ${DATA_INSTALL_DIR}/tdevfilecreate/file-templates ) + DESTINATION ${DATA_INSTALL_DIR}/kdevfilecreate/file-templates ) diff --git a/languages/java/file_templates/Makefile.am b/languages/java/file_templates/Makefile.am index 4d9013d4..dc3b82a9 100644 --- a/languages/java/file_templates/Makefile.am +++ b/languages/java/file_templates/Makefile.am @@ -1,4 +1,4 @@ -templatedir = $(kde_datadir)/tdevfilecreate/file-templates +templatedir = $(kde_datadir)/kdevfilecreate/file-templates template_DATA = java diff --git a/languages/java/javasupport_events.h b/languages/java/javasupport_events.h index b2022af2..36cda51b 100644 --- a/languages/java/javasupport_events.h +++ b/languages/java/javasupport_events.h @@ -13,7 +13,7 @@ #define __javasupport_events_h #include "driver.h" -#include "tdevdeepcopy.h" +#include "kdevdeepcopy.h" #include #include diff --git a/languages/java/javasupportfactory.cpp b/languages/java/javasupportfactory.cpp index ac1eaadb..94e435f2 100644 --- a/languages/java/javasupportfactory.cpp +++ b/languages/java/javasupportfactory.cpp @@ -11,28 +11,28 @@ #include #include -#include +#include #include "javasupportfactory.h" -static const TDevPluginInfo data("tdevjavasupport"); -K_EXPORT_COMPONENT_FACTORY( libtdevjavasupport, JavaSupportFactory ) +static const KDevPluginInfo data("kdevjavasupport"); +K_EXPORT_COMPONENT_FACTORY( libkdevjavasupport, JavaSupportFactory ) JavaSupportFactory::JavaSupportFactory() - : TDevGenericFactory( data ) + : KDevGenericFactory( data ) { } TDEInstance *JavaSupportFactory::createInstance() { - TDEInstance *instance = TDevGenericFactory::createInstance(); + TDEInstance *instance = KDevGenericFactory::createInstance(); TDEStandardDirs *dirs = instance->dirs(); - dirs->addResourceType( "newclasstemplates", TDEStandardDirs::kde_default("data") + "tdevjavasupport/newclass/" ); - dirs->addResourceType( "pcs", TDEStandardDirs::kde_default( "data" ) + "tdevjavasupport/pcs/" ); + dirs->addResourceType( "newclasstemplates", TDEStandardDirs::kde_default("data") + "kdevjavasupport/newclass/" ); + dirs->addResourceType( "pcs", TDEStandardDirs::kde_default( "data" ) + "kdevjavasupport/pcs/" ); return instance; } -const TDevPluginInfo *JavaSupportFactory::info() +const KDevPluginInfo *JavaSupportFactory::info() { return &data; } diff --git a/languages/java/javasupportfactory.h b/languages/java/javasupportfactory.h index cb231d34..e5ae52b4 100644 --- a/languages/java/javasupportfactory.h +++ b/languages/java/javasupportfactory.h @@ -12,17 +12,17 @@ #ifndef _JAVASUPPORTFACTORY_H_ #define _JAVASUPPORTFACTORY_H_ -#include +#include #include "javasupportpart.h" -class TDevPluginInfo; +class KDevPluginInfo; -class JavaSupportFactory : public TDevGenericFactory +class JavaSupportFactory : public KDevGenericFactory { public: JavaSupportFactory(); - static const TDevPluginInfo *info(); + static const KDevPluginInfo *info(); protected: virtual TDEInstance *createInstance(); diff --git a/languages/java/javasupportpart.cpp b/languages/java/javasupportpart.cpp index 3c2090e8..63b174fc 100644 --- a/languages/java/javasupportpart.cpp +++ b/languages/java/javasupportpart.cpp @@ -17,10 +17,10 @@ #include "javasupport_events.h" #include "problemreporter.h" #include "backgroundparser.h" -#include "TDevJavaSupportIface.h" +#include "KDevJavaSupportIface.h" #include "javasupportfactory.h" #include "catalog.h" -#include "tdevdriver.h" +#include "kdevdriver.h" #include "javasupport_utils.h" #include "JavaStoreWalker.hpp" @@ -63,12 +63,12 @@ #include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include #include @@ -77,11 +77,11 @@ enum { KDEV_DB_VERSION = 7 }; enum { KDEV_PCS_VERSION = 8 }; -class JavaDriver: public TDevDriver +class JavaDriver: public KDevDriver { public: JavaDriver( JavaSupportPart* javaSupport ) - : TDevDriver( javaSupport ) + : KDevDriver( javaSupport ) { } @@ -119,7 +119,7 @@ public: }; JavaSupportPart::JavaSupportPart(TQObject *parent, const char *name, const TQStringList &/*args*/) - : TDevLanguageSupport(JavaSupportFactory::info(), parent, name ? name : "TDevJavaSupport"), + : KDevLanguageSupport(JavaSupportFactory::info(), parent, name ? name : "KDevJavaSupport"), m_activeDocument( 0 ), m_activeView( 0 ), m_activeSelection( 0 ), m_activeEditor( 0 ), m_activeViewCursor( 0 ), m_projectClosed( true ), m_valid( false ) { @@ -127,7 +127,7 @@ JavaSupportPart::JavaSupportPart(TQObject *parent, const char *name, const TQStr m_driver = new JavaDriver( this ); - setXMLFile( "tdevjavasupport.rc" ); + setXMLFile( "kdevjavasupport.rc" ); m_catalogList.setAutoDelete( true ); setupCatalog(); @@ -167,7 +167,7 @@ JavaSupportPart::JavaSupportPart(TQObject *parent, const char *name, const TQStr connect( core( ), TQT_SIGNAL( projectConfigWidget( KDialogBase* ) ), this, TQT_SLOT( projectConfigWidget( KDialogBase* ) ) ); - new TDevJavaSupportIface( this ); + new KDevJavaSupportIface( this ); //(void) dcopClient(); } @@ -434,7 +434,7 @@ TQString JavaSupportPart::findSourceFile() return m_activeFileName; } -TDevLanguageSupport::Features JavaSupportPart::features() +KDevLanguageSupport::Features JavaSupportPart::features() { return Features( Classes | Functions | Variables ); } @@ -830,7 +830,7 @@ TQString JavaSupportPart::formatModelItem( const CodeModelItem *item, bool short return arg.stripWhiteSpace(); } else - return TDevLanguageSupport::formatModelItem( item, shortDescription ); + return KDevLanguageSupport::formatModelItem( item, shortDescription ); } void JavaSupportPart::addClass( ) diff --git a/languages/java/javasupportpart.h b/languages/java/javasupportpart.h index 6154cb8f..a69e3524 100644 --- a/languages/java/javasupportpart.h +++ b/languages/java/javasupportpart.h @@ -16,8 +16,8 @@ #ifndef _JAVASUPPORTPART_H_ #define _JAVASUPPORTPART_H_ -#include -#include +#include +#include #include #include @@ -46,7 +46,7 @@ namespace KTextEditor class ViewCursorInterface; } -class JavaSupportPart : public TDevLanguageSupport +class JavaSupportPart : public KDevLanguageSupport { Q_OBJECT @@ -82,7 +82,7 @@ signals: void fileParsed( const TQString& fileName ); protected: - virtual TDevLanguageSupport::Features features(); + virtual KDevLanguageSupport::Features features(); virtual KMimeType::List mimeTypes(); virtual TQString formatClassName(const TQString &name); virtual TQString unformatClassName(const TQString &name); @@ -159,7 +159,7 @@ private: FunctionDom m_activeFunction; VariableDom m_activeVariable; - friend class TDevJavaSupportIface; + friend class KDevJavaSupportIface; friend class JavaDriver; }; diff --git a/languages/java/kdevdeepcopy.h b/languages/java/kdevdeepcopy.h new file mode 100644 index 00000000..dd4d8f4d --- /dev/null +++ b/languages/java/kdevdeepcopy.h @@ -0,0 +1,12 @@ +#ifndef KDEVDEEPCOPY_H +#define KDEVDEEPCOPY_H + +#include + +inline TQString deepCopy( const TQString& s ) +{ + TQCString str = s.utf8(); + return TQString::fromUtf8( str, str.length() ); +} + +#endif diff --git a/languages/java/kdevdriver.cpp b/languages/java/kdevdriver.cpp new file mode 100644 index 00000000..d19a20c3 --- /dev/null +++ b/languages/java/kdevdriver.cpp @@ -0,0 +1,44 @@ + +#include "kdevdriver.h" +#include "JavaLexer.hpp" +#include +#include + +KDevDriver::KDevDriver( JavaSupportPart* javaSupport ) + : m_javaSupport( javaSupport ) +{ +} + +JavaSupportPart* KDevDriver::javaSupport() +{ + return m_javaSupport; +} + +void KDevDriver::setupProject() +{ + TQMap map; + + { + TQStringList fileList = m_javaSupport->project()->allFiles(); + TQStringList::ConstIterator it = fileList.begin(); + while( it != fileList.end() ){ + TQFileInfo info( *it ); + ++it; + + map.insert( info.dirPath(true), true ); + } + } + + { + TQMap::Iterator it = map.begin(); + while( it != map.end() ){ + addIncludePath( it.key() ); + ++it; + } + } +} + +void KDevDriver::setupLexer( JavaLexer* lexer ) +{ + Driver::setupLexer( lexer ); +} diff --git a/languages/java/kdevdriver.h b/languages/java/kdevdriver.h new file mode 100644 index 00000000..cc0a1393 --- /dev/null +++ b/languages/java/kdevdriver.h @@ -0,0 +1,30 @@ + +#ifndef __kdevdriver_h +#define __kdevdriver_h + +#include "javasupportpart.h" + +#include +#include + +#include "driver.h" + +#include +#include + +class KDevDriver: public Driver +{ +public: + KDevDriver( JavaSupportPart* javaSupport ); + JavaSupportPart* javaSupport(); + void setupProject(); + +protected: + void setupLexer( JavaLexer* lexer ); + +private: + JavaSupportPart* m_javaSupport; +}; + +#endif + diff --git a/languages/java/kdevjavasupport.desktop b/languages/java/kdevjavasupport.desktop new file mode 100644 index 00000000..620fb10f --- /dev/null +++ b/languages/java/kdevjavasupport.desktop @@ -0,0 +1,85 @@ +[Desktop Entry] +Type=Service +Exec=blubb +Comment=Java Support +Comment[ca]=Suport per a Java +Comment[da]=Java understøttelse +Comment[de]=Java-Unterstützung für TDevelop +Comment[el]=Υποστήριξη Java +Comment[es]=Soporte para Java +Comment[et]=Java toetus +Comment[eu]=Java euskarria +Comment[fa]=پشتیبانی جاوا +Comment[fr]=Prise en charge de Java +Comment[ga]=Tacaíocht Java +Comment[gl]=Soporte para Java +Comment[hi]=जावा समर्थन +Comment[hu]=Java-támogatás +Comment[is]=Java stuðningur +Comment[it]=Supporto per Java +Comment[ja]=Java サポート +Comment[nds]=Java-Ünnerstütten för TDevelop +Comment[ne]=जाभा समर्थन +Comment[nl]=Ondersteuning voor Java +Comment[pl]=Obsługa Javy +Comment[pt]=Suporte a Java +Comment[pt_BR]=Suporte ao Java +Comment[ru]=Поддержка языка Java +Comment[sk]=Java podpora +Comment[sl]=Podpora javi +Comment[sr]=Подршка за Java-у +Comment[sr@Latn]=Podrška za Java-u +Comment[sv]=Java-stöd +Comment[ta]=ஜாவா ஆதரவு +Comment[tg]=Ёрӣ намудани забони Java +Comment[tr]=Java Desteği +Comment[zh_CN]=Java 支持 +Comment[zh_TW]=Java 支援 +Name=KDevJavaSupport +Name[da]=TDevelop Java-understøttelse +Name[de]=Unterstützung für Java (TDevelop) +Name[hi]=के-डेव-जावा-समर्थन +Name[nds]=Java-Ünnerstütten för TDevelop +Name[pl]=KDevObsługaJavy +Name[sk]=KDev Java podpora +Name[sv]=TDevelop Java-stöd +Name[ta]=கெடெவ் ஜாவா ஆதரவு +Name[zh_TW]=TDevelop Java 支援 +GenericName=Java Support +GenericName[ca]=Suport per a Java +GenericName[da]=Java-understøttelse +GenericName[de]=Unterstützung für Java +GenericName[el]=Υποστήριξη Java +GenericName[es]=Soporte para Java +GenericName[et]=Java toetus +GenericName[eu]=Java euskarria +GenericName[fa]=پشتیبانی جاوا +GenericName[fr]=Prise en charge de JAVA +GenericName[ga]=Tacaíocht Java +GenericName[gl]=Soporte para Java +GenericName[hi]=जावा समर्थन +GenericName[hu]=Java-támogatás +GenericName[it]=Supporto Java +GenericName[ja]=Java サポート +GenericName[nds]=Ünnerstütten för Java +GenericName[ne]=जाभा समर्थन +GenericName[nl]=Ondersteuning voor Java +GenericName[pl]=Obsługa Javy +GenericName[pt]=Suporte a Java +GenericName[pt_BR]=Suporte ao Java +GenericName[ru]=Поддержка языка Java +GenericName[sk]=Java podpora +GenericName[sl]=Podpora javi +GenericName[sr]=Подршка за Java-у +GenericName[sr@Latn]=Podrška za Java-u +GenericName[sv]=Java-stöd +GenericName[ta]=ஜாவா ஆதரவு +GenericName[tg]=Ёрӣ намудани забони Java +GenericName[tr]=Java Desteği +GenericName[zh_CN]=Java 支持 +GenericName[zh_TW]=Java 支援 +ServiceTypes=TDevelop/LanguageSupport +X-TDE-Library=libkdevjavasupport +X-TDevelop-Version=5 +X-TDevelop-Language=Java +X-TDevelop-Args=Java diff --git a/languages/java/kdevjavasupport.rc b/languages/java/kdevjavasupport.rc new file mode 100644 index 00000000..e9b80d0d --- /dev/null +++ b/languages/java/kdevjavasupport.rc @@ -0,0 +1,4 @@ + + + + diff --git a/languages/java/newclass_templates/Makefile.am b/languages/java/newclass_templates/Makefile.am index f8b9e3bd..d24c99ef 100644 --- a/languages/java/newclass_templates/Makefile.am +++ b/languages/java/newclass_templates/Makefile.am @@ -1,4 +1,4 @@ -javasupportdatadir = ${kde_datadir}/tdevjavasupport +javasupportdatadir = ${kde_datadir}/kdevjavasupport newclassdir = ${javasupportdatadir}/newclass newclass_DATA = java_source diff --git a/languages/java/problemreporter.cpp b/languages/java/problemreporter.cpp index 6b6a46e6..4d4f47af 100644 --- a/languages/java/problemreporter.cpp +++ b/languages/java/problemreporter.cpp @@ -21,8 +21,8 @@ #include "configproblemreporter.h" #include "backgroundparser.h" -#include -#include +#include +#include #include #include diff --git a/languages/java/tdevdeepcopy.h b/languages/java/tdevdeepcopy.h deleted file mode 100644 index c4f889c1..00000000 --- a/languages/java/tdevdeepcopy.h +++ /dev/null @@ -1,12 +0,0 @@ -#ifndef TDEVDEEPCOPY_H -#define TDEVDEEPCOPY_H - -#include - -inline TQString deepCopy( const TQString& s ) -{ - TQCString str = s.utf8(); - return TQString::fromUtf8( str, str.length() ); -} - -#endif diff --git a/languages/java/tdevdriver.cpp b/languages/java/tdevdriver.cpp deleted file mode 100644 index d36a23f3..00000000 --- a/languages/java/tdevdriver.cpp +++ /dev/null @@ -1,44 +0,0 @@ - -#include "tdevdriver.h" -#include "JavaLexer.hpp" -#include -#include - -TDevDriver::TDevDriver( JavaSupportPart* javaSupport ) - : m_javaSupport( javaSupport ) -{ -} - -JavaSupportPart* TDevDriver::javaSupport() -{ - return m_javaSupport; -} - -void TDevDriver::setupProject() -{ - TQMap map; - - { - TQStringList fileList = m_javaSupport->project()->allFiles(); - TQStringList::ConstIterator it = fileList.begin(); - while( it != fileList.end() ){ - TQFileInfo info( *it ); - ++it; - - map.insert( info.dirPath(true), true ); - } - } - - { - TQMap::Iterator it = map.begin(); - while( it != map.end() ){ - addIncludePath( it.key() ); - ++it; - } - } -} - -void TDevDriver::setupLexer( JavaLexer* lexer ) -{ - Driver::setupLexer( lexer ); -} diff --git a/languages/java/tdevdriver.h b/languages/java/tdevdriver.h deleted file mode 100644 index 27fd7854..00000000 --- a/languages/java/tdevdriver.h +++ /dev/null @@ -1,30 +0,0 @@ - -#ifndef __tdevdriver_h -#define __tdevdriver_h - -#include "javasupportpart.h" - -#include -#include - -#include "driver.h" - -#include -#include - -class TDevDriver: public Driver -{ -public: - TDevDriver( JavaSupportPart* javaSupport ); - JavaSupportPart* javaSupport(); - void setupProject(); - -protected: - void setupLexer( JavaLexer* lexer ); - -private: - JavaSupportPart* m_javaSupport; -}; - -#endif - diff --git a/languages/java/tdevjavasupport.desktop b/languages/java/tdevjavasupport.desktop deleted file mode 100644 index 6d3553d7..00000000 --- a/languages/java/tdevjavasupport.desktop +++ /dev/null @@ -1,85 +0,0 @@ -[Desktop Entry] -Type=Service -Exec=blubb -Comment=Java Support -Comment[ca]=Suport per a Java -Comment[da]=Java understøttelse -Comment[de]=Java-Unterstützung für TDevelop -Comment[el]=Υποστήριξη Java -Comment[es]=Soporte para Java -Comment[et]=Java toetus -Comment[eu]=Java euskarria -Comment[fa]=پشتیبانی جاوا -Comment[fr]=Prise en charge de Java -Comment[ga]=Tacaíocht Java -Comment[gl]=Soporte para Java -Comment[hi]=जावा समर्थन -Comment[hu]=Java-támogatás -Comment[is]=Java stuðningur -Comment[it]=Supporto per Java -Comment[ja]=Java サポート -Comment[nds]=Java-Ünnerstütten för TDevelop -Comment[ne]=जाभा समर्थन -Comment[nl]=Ondersteuning voor Java -Comment[pl]=Obsługa Javy -Comment[pt]=Suporte a Java -Comment[pt_BR]=Suporte ao Java -Comment[ru]=Поддержка языка Java -Comment[sk]=Java podpora -Comment[sl]=Podpora javi -Comment[sr]=Подршка за Java-у -Comment[sr@Latn]=Podrška za Java-u -Comment[sv]=Java-stöd -Comment[ta]=ஜாவா ஆதரவு -Comment[tg]=Ёрӣ намудани забони Java -Comment[tr]=Java Desteği -Comment[zh_CN]=Java 支持 -Comment[zh_TW]=Java 支援 -Name=TDevJavaSupport -Name[da]=TDevelop Java-understøttelse -Name[de]=Unterstützung für Java (TDevelop) -Name[hi]=के-डेव-जावा-समर्थन -Name[nds]=Java-Ünnerstütten för TDevelop -Name[pl]=KDevObsługaJavy -Name[sk]=KDev Java podpora -Name[sv]=TDevelop Java-stöd -Name[ta]=கெடெவ் ஜாவா ஆதரவு -Name[zh_TW]=TDevelop Java 支援 -GenericName=Java Support -GenericName[ca]=Suport per a Java -GenericName[da]=Java-understøttelse -GenericName[de]=Unterstützung für Java -GenericName[el]=Υποστήριξη Java -GenericName[es]=Soporte para Java -GenericName[et]=Java toetus -GenericName[eu]=Java euskarria -GenericName[fa]=پشتیبانی جاوا -GenericName[fr]=Prise en charge de JAVA -GenericName[ga]=Tacaíocht Java -GenericName[gl]=Soporte para Java -GenericName[hi]=जावा समर्थन -GenericName[hu]=Java-támogatás -GenericName[it]=Supporto Java -GenericName[ja]=Java サポート -GenericName[nds]=Ünnerstütten för Java -GenericName[ne]=जाभा समर्थन -GenericName[nl]=Ondersteuning voor Java -GenericName[pl]=Obsługa Javy -GenericName[pt]=Suporte a Java -GenericName[pt_BR]=Suporte ao Java -GenericName[ru]=Поддержка языка Java -GenericName[sk]=Java podpora -GenericName[sl]=Podpora javi -GenericName[sr]=Подршка за Java-у -GenericName[sr@Latn]=Podrška za Java-u -GenericName[sv]=Java-stöd -GenericName[ta]=ஜாவா ஆதரவு -GenericName[tg]=Ёрӣ намудани забони Java -GenericName[tr]=Java Desteği -GenericName[zh_CN]=Java 支持 -GenericName[zh_TW]=Java 支援 -ServiceTypes=TDevelop/LanguageSupport -X-TDE-Library=libtdevjavasupport -X-TDevelop-Version=5 -X-TDevelop-Language=Java -X-TDevelop-Args=Java diff --git a/languages/java/tdevjavasupport.rc b/languages/java/tdevjavasupport.rc deleted file mode 100644 index 66c7975c..00000000 --- a/languages/java/tdevjavasupport.rc +++ /dev/null @@ -1,4 +0,0 @@ - - - - -- cgit v1.2.1