From 114a878c64ce6f8223cfd22d76a20eb16d177e5e Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- languages/cpp/app_templates/qtopiaapp/.kdev_ignore | 0 languages/cpp/app_templates/qtopiaapp/Example.png | Bin 0 -> 1262 bytes languages/cpp/app_templates/qtopiaapp/Makefile.am | 19 +++ languages/cpp/app_templates/qtopiaapp/app.kdevelop | 131 ++++++++++++++++++ languages/cpp/app_templates/qtopiaapp/app.pro | 10 ++ .../cpp/app_templates/qtopiaapp/example.control | 11 ++ languages/cpp/app_templates/qtopiaapp/example.cpp | 29 ++++ .../cpp/app_templates/qtopiaapp/example.desktop | 37 +++++ languages/cpp/app_templates/qtopiaapp/example.h | 18 +++ languages/cpp/app_templates/qtopiaapp/example.html | 15 ++ .../cpp/app_templates/qtopiaapp/examplebase.ui | 49 +++++++ languages/cpp/app_templates/qtopiaapp/main.cpp | 13 ++ languages/cpp/app_templates/qtopiaapp/qtopiaapp | 11 ++ .../app_templates/qtopiaapp/qtopiaapp.kdevtemplate | 153 +++++++++++++++++++++ .../cpp/app_templates/qtopiaapp/qtopiaapp.png | Bin 0 -> 483 bytes 15 files changed, 496 insertions(+) create mode 100644 languages/cpp/app_templates/qtopiaapp/.kdev_ignore create mode 100644 languages/cpp/app_templates/qtopiaapp/Example.png create mode 100644 languages/cpp/app_templates/qtopiaapp/Makefile.am create mode 100644 languages/cpp/app_templates/qtopiaapp/app.kdevelop create mode 100644 languages/cpp/app_templates/qtopiaapp/app.pro create mode 100644 languages/cpp/app_templates/qtopiaapp/example.control create mode 100644 languages/cpp/app_templates/qtopiaapp/example.cpp create mode 100644 languages/cpp/app_templates/qtopiaapp/example.desktop create mode 100644 languages/cpp/app_templates/qtopiaapp/example.h create mode 100644 languages/cpp/app_templates/qtopiaapp/example.html create mode 100644 languages/cpp/app_templates/qtopiaapp/examplebase.ui create mode 100644 languages/cpp/app_templates/qtopiaapp/main.cpp create mode 100644 languages/cpp/app_templates/qtopiaapp/qtopiaapp create mode 100644 languages/cpp/app_templates/qtopiaapp/qtopiaapp.kdevtemplate create mode 100644 languages/cpp/app_templates/qtopiaapp/qtopiaapp.png (limited to 'languages/cpp/app_templates/qtopiaapp') diff --git a/languages/cpp/app_templates/qtopiaapp/.kdev_ignore b/languages/cpp/app_templates/qtopiaapp/.kdev_ignore new file mode 100644 index 00000000..e69de29b diff --git a/languages/cpp/app_templates/qtopiaapp/Example.png b/languages/cpp/app_templates/qtopiaapp/Example.png new file mode 100644 index 00000000..f63d0bc7 Binary files /dev/null and b/languages/cpp/app_templates/qtopiaapp/Example.png differ diff --git a/languages/cpp/app_templates/qtopiaapp/Makefile.am b/languages/cpp/app_templates/qtopiaapp/Makefile.am new file mode 100644 index 00000000..c250d5fa --- /dev/null +++ b/languages/cpp/app_templates/qtopiaapp/Makefile.am @@ -0,0 +1,19 @@ +dataFiles = Example.png app.kdevelop example.control example.desktop \ + example.html main.cpp Makefile.am app.pro example.cpp \ + example.h examplebase.ui qtopiaapp + +templateName = qtopiaapp + +### no need to change below: +template_DATA = $(templateName).kdevtemplate +templatedir = ${appwizarddatadir}/templates + +appwizarddatadir = ${kde_datadir}/kdevappwizard +$(templateName).tar.gz: ${dataFiles} + $(TAR) -cf $(templateName).tar -C $(srcdir) ${dataFiles} + $(GZIP_COMMAND) -f9 $(templateName).tar + +archivedir = ${appwizarddatadir} +archive_DATA = $(templateName).tar.gz ${templateName}.png + +CLEANFILES = *.tar.gz \ No newline at end of file diff --git a/languages/cpp/app_templates/qtopiaapp/app.kdevelop b/languages/cpp/app_templates/qtopiaapp/app.kdevelop new file mode 100644 index 00000000..9db37db3 --- /dev/null +++ b/languages/cpp/app_templates/qtopiaapp/app.kdevelop @@ -0,0 +1,131 @@ + + + + %{AUTHOR} + %{EMAIL} + %{VERSION} + KDevTMakeProject + C++ + + Qt + + + + + + + + + + + + false + *.o,*.lo,CVS + + + + + ada + ada_bugs_gcc + bash + bash_bugs + clanlib + w3c-dom-level2-html + fortran_bugs_gcc + gnome1 + gnustep + gtk + gtk_bugs + haskell + haskell_bugs_ghc + java_bugs_gcc + java_bugs_sun + kde2book + 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 + + + KDE Libraries (Doxygen) + + + + + libtool + + + true + false + false + + + false + true + + + + + + + + ./%{APPNAMELC} + -qws + + + + + + + + + + + + + false + false + + + + false + + + .h + .cpp + true + + + + true + 2 + + + -f + + -dP + + -f + -u3 -p + + + + + + Doxygen Documentation Collection + %{APPNAMELC}.tag + + + diff --git a/languages/cpp/app_templates/qtopiaapp/app.pro b/languages/cpp/app_templates/qtopiaapp/app.pro new file mode 100644 index 00000000..c625020d --- /dev/null +++ b/languages/cpp/app_templates/qtopiaapp/app.pro @@ -0,0 +1,10 @@ +TEMPLATE = app +CONFIG = qt warn_on release +HEADERS = %{APPNAMELC}.h +SOURCES = main.cpp %{APPNAMELC}.cpp +INTERFACES = %{APPNAMELC}base.ui +TARGET = %{APPNAMELC} +INCLUDEPATH += $(QPEDIR)/include +DEPENDPATH += $(QPEDIR)/include +LIBS += -lqpe + diff --git a/languages/cpp/app_templates/qtopiaapp/example.control b/languages/cpp/app_templates/qtopiaapp/example.control new file mode 100644 index 00000000..d04f87ec --- /dev/null +++ b/languages/cpp/app_templates/qtopiaapp/example.control @@ -0,0 +1,11 @@ +Files: bin/%{APPNAMELC} apps/Applications/%{APPNAMELC}.desktop pics/%{APPNAME}.png help/html/%{APPNAMELC}.html +Priority: optional +Section: qpe/applications +Maintainer: Your Name +Architecture: $CPU_ARCH +Arch: $DEVICE_ARCH +Version: 1.0.0 +License: Public Domain +Description: %{APPNAME} program + An %{APPNAMELC} program for the Qtopia environment. + Does nothing interesting. diff --git a/languages/cpp/app_templates/qtopiaapp/example.cpp b/languages/cpp/app_templates/qtopiaapp/example.cpp new file mode 100644 index 00000000..939f708e --- /dev/null +++ b/languages/cpp/app_templates/qtopiaapp/example.cpp @@ -0,0 +1,29 @@ + +#include "%{APPNAMELC}.h" +#include + +/* + * Constructs a %{APPNAME} which is a child of 'parent', with the + * name 'name' and widget flags set to 'f' + */ +%{APPNAME}::%{APPNAME}( QWidget* parent, const char* name, WFlags fl ) + : %{APPNAME}Base( parent, name, fl ) +{ + connect(quit, SIGNAL(clicked()), this, SLOT(goodBye())); +} + +/* + * Destroys the object and frees any allocated resources + */ +%{APPNAME}::~%{APPNAME}() +{ + // no need to delete child widgets, Qt does it all for us +} + +/* + * A simple slot... not very interesting. + */ +void %{APPNAME}::goodBye() +{ + close(); +} diff --git a/languages/cpp/app_templates/qtopiaapp/example.desktop b/languages/cpp/app_templates/qtopiaapp/example.desktop new file mode 100644 index 00000000..f6f04194 --- /dev/null +++ b/languages/cpp/app_templates/qtopiaapp/example.desktop @@ -0,0 +1,37 @@ +[Desktop Entry] +Comment=An %{APPNAME} Program +Comment[ca]=Un programa per a %{APPNAME} +Comment[da]=Et %{APPNAME} program +Comment[de]=Ein %{APPNAME}-Program +Comment[el]=Ένα πρόγραμμα %{APPNAME} +Comment[es]=Un programa %{APPNAME} +Comment[et]=%{APPNAME} programm +Comment[eu]=%{APPNAME} programa bat +Comment[fa]=برنامۀ %{APPNAME} +Comment[fr]=Un programme %{APPNAME} +Comment[ga]=Clár %{APPNAME} +Comment[gl]=Un programa %{APPNAME} +Comment[hu]=%{APPNAME} program +Comment[it]=Un programma per %{APPNAME} +Comment[ja]=%{APPNAME} プログラム +Comment[nds]=En %{APPNAME}-Programm +Comment[ne]= %{APPNAME} कार्यक्रम +Comment[nl]=Een %{APPNAME} programma +Comment[pl]=Program %{APPNAME} +Comment[pt]=Um Programa %{APPNAME} +Comment[pt_BR]=Um Programa %{APPNAME} +Comment[ru]=Программа %{APPNAME} +Comment[sk]=%{APPNAME} program +Comment[sl]=Program %{APPNAME} +Comment[sr]=%{APPNAME} програм +Comment[sr@Latn]=%{APPNAME} program +Comment[sv]=Ett %{APPNAME}-program +Comment[ta]=ஒரு %{APPNAME} நிரல் +Comment[tg]=Барномаи %{APPNAME} +Comment[tr]=Bir %{APPNAME} Programı +Comment[zh_CN]=一个 %{APPNAME} 程序 +Comment[zh_TW]=一個 %{APPNAME} 程式 +Exec=%{APPNAMELC} +Icon=%{APPNAME} +Type=Application +Name=%{APPNAME} diff --git a/languages/cpp/app_templates/qtopiaapp/example.h b/languages/cpp/app_templates/qtopiaapp/example.h new file mode 100644 index 00000000..883cb27d --- /dev/null +++ b/languages/cpp/app_templates/qtopiaapp/example.h @@ -0,0 +1,18 @@ + +#ifndef %{APPNAMEUC}_H +#define %{APPNAMEUC}_H +#include "%{APPNAMELC}base.h" + +class %{APPNAME} : public %{APPNAME}Base +{ + Q_OBJECT + +public: + %{APPNAME}( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); + ~%{APPNAME}(); + +private slots: + void goodBye(); +}; + +#endif // %{APPNAMEUC}_H diff --git a/languages/cpp/app_templates/qtopiaapp/example.html b/languages/cpp/app_templates/qtopiaapp/example.html new file mode 100644 index 00000000..279a6106 --- /dev/null +++ b/languages/cpp/app_templates/qtopiaapp/example.html @@ -0,0 +1,15 @@ + +

%{APPNAME}

+ +

This is the help for the %{APPNAME} program. + +

To user this application: + +

    +
  1. Press the icon in the Qtopia launcher. +
  2. Read the label. +
  3. Press the button. +
  4. Read the source code provided. +
+ +Now you know how to make a Qtopia application! diff --git a/languages/cpp/app_templates/qtopiaapp/examplebase.ui b/languages/cpp/app_templates/qtopiaapp/examplebase.ui new file mode 100644 index 00000000..b6b81b11 --- /dev/null +++ b/languages/cpp/app_templates/qtopiaapp/examplebase.ui @@ -0,0 +1,49 @@ + +%{APPNAME}Base + + QWidget + + name + %{APPNAME}Base + + + geometry + + 0 + 0 + 196 + 245 + + + + caption + %{APPNAME} + + + + + QLabel + + name + TextLabel1 + + + text + <p>This is just an <i>%{APPNAMELC}</i>; it does not do anything interesting at all. + + + + QPushButton + + name + quit + + + text + Quit + + + + + + diff --git a/languages/cpp/app_templates/qtopiaapp/main.cpp b/languages/cpp/app_templates/qtopiaapp/main.cpp new file mode 100644 index 00000000..0311a32e --- /dev/null +++ b/languages/cpp/app_templates/qtopiaapp/main.cpp @@ -0,0 +1,13 @@ + +#include "%{APPNAMELC}.h" +#include + +int main( int argc, char ** argv ) +{ + QPEApplication a( argc, argv ); + + %{APPNAME} mw; + a.showMainWidget( &mw ); + + return a.exec(); +} diff --git a/languages/cpp/app_templates/qtopiaapp/qtopiaapp b/languages/cpp/app_templates/qtopiaapp/qtopiaapp new file mode 100644 index 00000000..e07d8627 --- /dev/null +++ b/languages/cpp/app_templates/qtopiaapp/qtopiaapp @@ -0,0 +1,11 @@ +# TMake application +[General] +Name=Qtopia Application +Name[fr]=Une Application Qtopia +Icon=qmakeapp.png +Category=C++/Embedded +Category[fr]=C++/Environnement embarqu +Comment=Generate a TMake/Qt based application for Qtopia 1.x +Comment[fr]=Gnre une application base sur Qt / TMake pour l'environnement Qtopia 1.x. +FileTemplates=h,CStyle,cpp,CStyle +ShowFilesAfterGeneration=APPNAMELC.cpp diff --git a/languages/cpp/app_templates/qtopiaapp/qtopiaapp.kdevtemplate b/languages/cpp/app_templates/qtopiaapp/qtopiaapp.kdevtemplate new file mode 100644 index 00000000..45479b04 --- /dev/null +++ b/languages/cpp/app_templates/qtopiaapp/qtopiaapp.kdevtemplate @@ -0,0 +1,153 @@ +# KDE Config File +[General] +Name=Qtopia Application +Name[ca]=Aplicació per a Qtopia +Name[da]=Qtopia-program +Name[de]=Qtopia-Anwendung +Name[el]=Εφαρμογή Qtopia +Name[es]=Aplicación para Qtopia +Name[et]=Qtopia rakendus +Name[eu]=Qtopia aplikazioa +Name[fa]=کاربرد Qtopia +Name[fr]=Application Qtopia +Name[ga]=Feidhmchlár Qtopia +Name[gl]=Aplicación Qtopia +Name[hu]=Qtopia-alkalmazás +Name[it]=Applicazione Qtopia +Name[ja]=Qtopia アプリケーション +Name[nds]=Qtopia-Programm +Name[ne]=Qtopia अनुप्रयोग +Name[nl]=Qtopia-toepassing +Name[pl]=Program wykorzystujący Qtopię +Name[pt]=Aplicação do Qtopia +Name[pt_BR]=Aplicação do Qtopia +Name[ru]=Приложение Qtopia +Name[sk]=Qtopia aplikácia +Name[sl]=Program za Qtopio +Name[sr]=Qtopia програм +Name[sr@Latn]=Qtopia program +Name[sv]=Qtopia-program +Name[tr]=Qtopia Uygulaması +Name[zh_CN]=Qtopia 应用程序 +Name[zh_TW]=Qtopia 應用程式 +Icon=qmakeapp.png +Category=C++/Embedded +Category[fr]=C++/Environnement embarqu +Comment=Generate a TMake/Qt based application for Qtopia 1.x +Comment[ca]=Genera una aplicació basada en TMake/Qt per a Qtopia 1.x +Comment[da]=Generér et TMake/Qt baseret program for Qtopia 1.x +Comment[de]=Erstellt eine auf TMake/Qt basierende Anwendung für Qtopia 1.x +Comment[el]=Δημιουργία μιας εφαρμογής βασισμένης στα TMake/Qt για το Qtopia 1.x +Comment[es]=Genera una aplicación basada en TMake/Qt para Qtopia 1.x +Comment[et]=Qtopia 1.x rakenduse loomine TMake'i/Qt põhjal +Comment[eu]= Sortu TMake/Qt software-ean oinarritutako Qtopia 1.x aplikazio bat +Comment[fa]=یک کاربرد بر مبنای TMake/Qt برای Qtopia 1.x تولید می‌کند +Comment[fr]=Génère une application basée sur TMake / Qt pour Qtopia 1.x +Comment[ga]=Cruthaigh feidhmchlár bunaithe ar TMake/Qt le haghaidh Qtopia 1.x +Comment[gl]=Xera unha aplicación baseada en TMake/Qt para Qtopia 1.x +Comment[hu]=Létrehoz egy TMake/Qt-alapú alkalmazást a Qtopia 1.x rendszerhez +Comment[it]=Genera un'applicazione basata su TMake/Qt per Qtopia 1.x +Comment[ja]=Qtopia 1.x 用の TMake/Qt ベースのアプリケーションを作成 +Comment[nds]=Stellt en op TMake/Qt opbuut Programm för Qtopia 1.x op +Comment[ne]= Qtopia 1.x का लागि TMake/Qt आधारित अनुप्रयोग उत्पन्न गर्नुहोस् +Comment[nl]=Genereert een Tmake/Qt-gebaseerde toepassing voor Qtopie 1.x +Comment[pl]=Generuje program wykorzystujący TMake i Qt dla Qtopii 1.x +Comment[pt]=Gera uma aplicação, baseada no TMake/Qt, para o Qtopia 1.x +Comment[pt_BR]=Gera uma aplicação, baseada no TMake/Qt, para o Qtopia 1.x +Comment[ru]=Создание приложения Qt со сборкой посредством TMake для Qtopia 1.x +Comment[sk]=Vygeneruje aplikáciu založenú na TMake/Qt pre Qtopia 1.x +Comment[sr]=Прави програм за Qtopia-у 1.x на основуTMake-а/Qt-а +Comment[sr@Latn]=Pravi program za Qtopia-u 1.x na osnovuTMake-a/Qt-a +Comment[sv]=Skapa ett TMake/Qt-baserat program för Qtopia 1.x +Comment[tr]=Qtopia 1.x için TMake/Qt tabanlı bir uygulama yarat +Comment[zh_CN]=生成适用于 Qtopia 1.x 基于 TMake/Qt 的应用程序 +Comment[zh_TW]=產生一個 Qtopia 1.x 的 TMake/Qt 應用程式 +FileTemplates=h,CStyle,cpp,CStyle +ShowFilesAfterGeneration=%{dest}/%{APPNAMELC}.cpp +Archive=qtopiaapp.tar.gz + +[FILE1] +Type=install +EscapeXML=true +Source=%{src}/app.kdevelop +Dest=%{dest}/%{APPNAMELC}.kdevelop + +[FILE2] +Type=install +Source=%{src}/Example.png +Dest=%{dest}/%{APPNAME}.png +Process=false + +[FILE3] +Type=install +Source=%{src}/app.pro +Dest=%{dest}/%{APPNAMELC}.pro + +[FILE4] +Type=install +Source=%{src}/example.cpp +Dest=%{dest}/%{APPNAMELC}.cpp + +[FILE5] +Type=install +Source=%{src}/example.h +Dest=%{dest}/%{APPNAMELC}.h + +[FILE6] +Type=install +EscapeXML=true +Source=%{src}/examplebase.ui +Dest=%{dest}/%{APPNAMELC}base.ui + +[FILE7] +Type=install +Source=%{src}/example.control +Dest=%{dest}/%{APPNAMELC}.control + +[FILE8] +Type=install +Source=%{src}/example.desktop +Dest=%{dest}/%{APPNAMELC}.desktop + +[FILE9] +Type=install +EscapeXML=true +Source=%{src}/example.html +Dest=%{dest}/%{APPNAMELC}.html + +[FILE10] +Type=install +Source=%{src}/main.cpp +Dest=%{dest}/main.cpp + +[MSG] +Type=message +Comment=A Qtopia application was created in %{dest} +Comment[ca]=Una aplicació basada en Qtopia ha estat creada en %{dest} +Comment[da]=Et Qtopia program blev oprettet i %{dest} +Comment[de]=Eine Qtopia-Anwendung wurde in %{dest} erstellt. +Comment[el]=Μια εφαρμογή Qtopia δημιουργήθηκε στο %{dest} +Comment[es]=Una aplicación para Qtopia ha sido creada en %{dest} +Comment[et]=Qtopia rakendus loodi asukohta %{dest} +Comment[eu]=Qtopia aplikazio bat sortu da hemen: %{dest} +Comment[fa]=یک کاربرد Qtopia در %{dest} ایجاد شد +Comment[fr]=Une application Qtopia a été créée dans %{dest} +Comment[ga]=Cruthaíodh feidhmchlár Qtopia i %{dest} +Comment[gl]=Creouse unha aplicación Qtopia en %{dest} +Comment[hu]=Létrejött egy Qtopia-alkalmazás itt: %{dest} +Comment[it]=È stata creata un'applicazione Qtopia in %{dest} +Comment[ja]=Qtopia アプリケーションを %{dest} に作成しました +Comment[nds]=In %{dest} wöör en Qtopia-Programm opstellt +Comment[ne]=Qtopia अनुप्रयोग %{dest} मा सिर्जना गरियो +Comment[nl]=Een Qtopia-toepassing is aangemaakt in %{dest} +Comment[pl]=Program wykorzystujący Qtopię został utworzony w %{dest} +Comment[pt]=Foi criada uma aplicação do Qtopia em %{dest} +Comment[pt_BR]=Foi criada uma aplicação do Qtopia em %{dest} +Comment[ru]=Приложение Qtopia создано в %{dest} +Comment[sk]=Qtopia aplikácia bola vytvorená v %{dest} +Comment[sr]=Qtopia програм је направљен у %{dest} +Comment[sr@Latn]=Qtopia program je napravljen u %{dest} +Comment[sv]=Ett Qtopia-program skapades i %{dest} +Comment[tr]=Bir Qtopia uygulaması %{dest} içinde yaratıldı. +Comment[zh_CN]=在 %{dest} 创建了 Qtopia 应用程序 +Comment[zh_TW]=一個 Qtopia 應用程式已建立於 %{dest} diff --git a/languages/cpp/app_templates/qtopiaapp/qtopiaapp.png b/languages/cpp/app_templates/qtopiaapp/qtopiaapp.png new file mode 100644 index 00000000..840a953c Binary files /dev/null and b/languages/cpp/app_templates/qtopiaapp/qtopiaapp.png differ -- cgit v1.2.3