diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 114a878c64ce6f8223cfd22d76a20eb16d177e5e (patch) | |
tree | acaf47eb0fa12142d3896416a69e74cbf5a72242 /languages/cpp/app_templates/qt4hello | |
download | tdevelop-114a878c64ce6f8223cfd22d76a20eb16d177e5e.tar.gz tdevelop-114a878c64ce6f8223cfd22d76a20eb16d177e5e.zip |
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
Diffstat (limited to 'languages/cpp/app_templates/qt4hello')
-rw-r--r-- | languages/cpp/app_templates/qt4hello/Makefile.am | 18 | ||||
-rw-r--r-- | languages/cpp/app_templates/qt4hello/ReadMe | 11 | ||||
-rw-r--r-- | languages/cpp/app_templates/qt4hello/main.cpp | 11 | ||||
-rw-r--r-- | languages/cpp/app_templates/qt4hello/qt4hello.kdevelop | 113 | ||||
-rw-r--r-- | languages/cpp/app_templates/qt4hello/qt4hello.kdevtemplate | 160 | ||||
-rw-r--r-- | languages/cpp/app_templates/qt4hello/qt4hello.png | bin | 0 -> 26767 bytes | |||
-rw-r--r-- | languages/cpp/app_templates/qt4hello/qt4hello.pro | 5 | ||||
-rw-r--r-- | languages/cpp/app_templates/qt4hello/src.pro | 8 |
8 files changed, 326 insertions, 0 deletions
diff --git a/languages/cpp/app_templates/qt4hello/Makefile.am b/languages/cpp/app_templates/qt4hello/Makefile.am new file mode 100644 index 00000000..b285f781 --- /dev/null +++ b/languages/cpp/app_templates/qt4hello/Makefile.am @@ -0,0 +1,18 @@ +dataFiles = main.cpp qt4hello.png qt4hello.kdevelop \ + qt4hello.pro src.pro ReadMe + +templateName = qt4hello + +### no need to change below: +template_DATA = $(templateName).kdevtemplate +templatedir = ${appwizarddatadir}/templates + +appwizarddatadir = ${kde_datadir}/kdevappwizard +$(templateName).tar.gz: ${dataFiles} + $(TAR) -cf $(templateName).tar -C $(srcdir) ${dataFiles} + $(GZIP_COMMAND) -f9 $(templateName).tar + +archivedir = ${appwizarddatadir} +archive_DATA = $(templateName).tar.gz ${templateName}.png + +CLEANFILES = *.tar.gz diff --git a/languages/cpp/app_templates/qt4hello/ReadMe b/languages/cpp/app_templates/qt4hello/ReadMe new file mode 100644 index 00000000..87d23f71 --- /dev/null +++ b/languages/cpp/app_templates/qt4hello/ReadMe @@ -0,0 +1,11 @@ +READ THIS IN ORDER TO COMPILE THE Qt4 TEMPLATE +---------------------------------------------- + +Before compiling, check the Qt Options, go to +Project->Project Options->C++ Support and open the Qt Options tab. + +Check that the Qt installation directory is correct for the Qt version you've chosen. + +------------------ +Andreas Pakulat +July 2006 diff --git a/languages/cpp/app_templates/qt4hello/main.cpp b/languages/cpp/app_templates/qt4hello/main.cpp new file mode 100644 index 00000000..cbff1d3c --- /dev/null +++ b/languages/cpp/app_templates/qt4hello/main.cpp @@ -0,0 +1,11 @@ +%{CPP_TEMPLATE} + +#include <QCoreApplication> + +int main(int argc, char *argv[]) +{ + QCoreApplication app(argc, argv); + qDebug("Hello from Qt 4!"); + return 0; +} + diff --git a/languages/cpp/app_templates/qt4hello/qt4hello.kdevelop b/languages/cpp/app_templates/qt4hello/qt4hello.kdevelop new file mode 100644 index 00000000..cd633ede --- /dev/null +++ b/languages/cpp/app_templates/qt4hello/qt4hello.kdevelop @@ -0,0 +1,113 @@ +<?xml version="1.0"?> +<kdevelop> + <general> + <author>%{AUTHOR}</author> + <email>%{EMAIL}</email> + <version>%{VERSION}</version> + <projectmanagement>KDevTrollProject</projectmanagement> + <primarylanguage>C++</primarylanguage> + <keywords> + <keyword>Qt</keyword> + </keywords> + </general> + <kdevfileview> + <groups> + <group pattern="*.cpp;*.cxx;*.h" name="Sources" /> + <group pattern="*.ui" name="User Interface" /> + <group pattern="*.png" name="Icons" /> + <group pattern="*" name="Others" /> + </groups> + <tree> + <hidenonprojectfiles>false</hidenonprojectfiles> + <hidepatterns>*.o,*.lo,CVS</hidepatterns> + </tree> + </kdevfileview> + <kdevcppsupport> + <qt> + <used>true</used> + <version>4</version> + <includestyle>4</includestyle> + <designerintegration>ExternalDesigner</designerintegration> + <qmake>%{QMAKE}</qmake> + <designer>%{DESIGNER}</designer> + </qt> + </kdevcppsupport> + <kdevdoctreeview> + <ignoretocs> + <toc>bash</toc> + <toc>bash_bugs</toc> + <toc>clanlib</toc> + <toc>fortran_bugs_gcc</toc> + <toc>gnome1</toc> + <toc>gnustep</toc> + <toc>gtk</toc> + <toc>gtk_bugs</toc> + <toc>haskell</toc> + <toc>haskell_bugs_ghc</toc> + <toc>java_bugs_gcc</toc> + <toc>java_bugs_sun</toc> + <toc>kde2book</toc> + <toc>opengl</toc> + <toc>pascal_bugs_fp</toc> + <toc>php</toc> + <toc>php_bugs</toc> + <toc>perl</toc> + <toc>perl_bugs</toc> + <toc>python</toc> + <toc>python_bugs</toc> + <toc>qt-kdev3</toc> + <toc>ruby</toc> + <toc>ruby_bugs</toc> + <toc>sdl</toc> + <toc>stl</toc> + <toc>sw</toc> + <toc>w3c-dom-level2-html</toc> + <toc>w3c-svg</toc> + <toc>w3c-uaag10</toc> + <toc>wxwidgets_bugs</toc> + </ignoretocs> + <ignoredoxygen> + <toc>KDE Libraries (Doxygen)</toc> + </ignoredoxygen> + </kdevdoctreeview> + <kdevdebugger> + <general> + <dbgshell/> + <breakpoints/> + <programargs></programargs> + <gdbpath>/usr/bin/gdb</gdbpath> + <breakonloadinglibs>true</breakonloadinglibs> + <separatetty>false</separatetty> + <floatingtoolbar>false</floatingtoolbar> + </general> + <display> + <staticmembers>false</staticmembers> + <demanglenames>true</demanglenames> + </display> + <breakpoints/> + </kdevdebugger> + <kdevtrollproject> + <run> + <mainprogram>./bin/%{APPNAMELC}</mainprogram> + <programargs/> + </run> + </kdevtrollproject> + <workspace> + <openfiles/> + </workspace> + <kdevfilecreate> + <useglobaltypes> + <type ext="ui" /> + <type ext="cpp" /> + <type ext="h" /> + <type ext="ts" /> + <type ext="qrc" /> + </useglobaltypes> + </kdevfilecreate> + <kdevdocumentation> + <projectdoc> + <docsystem>Doxygen Documentation Collection</docsystem> + <docurl>%{APPNAMELC}.tag</docurl> + </projectdoc> + </kdevdocumentation> +</kdevelop> diff --git a/languages/cpp/app_templates/qt4hello/qt4hello.kdevtemplate b/languages/cpp/app_templates/qt4hello/qt4hello.kdevtemplate new file mode 100644 index 00000000..d1796a14 --- /dev/null +++ b/languages/cpp/app_templates/qt4hello/qt4hello.kdevtemplate @@ -0,0 +1,160 @@ +# KDE Config File +[General] +Name=Basic Qt4 Application +Name[ca]=Aplicació en Qt4 bàsica +Name[da]=Basalt Qt4-program +Name[de]=Einfache Qt4-Anwendung +Name[el]=Βασική εφαρμογή Qt4 +Name[es]=Aplicación Qt4 básica +Name[et]=Elementaarne Qt4 rakendus +Name[fr]=Application Qt4 de base +Name[hu]=Egyszerű Qt4-alapú alkalmazás +Name[it]=Applicazione Qt4 base +Name[ja]=基本的な Qt4 アプリケーション +Name[nds]=Eenfach Qt4-Programm +Name[nl]=Basis Qt4-toepassing +Name[pl]=Prosty program w Qt4 +Name[pt]=Aplicação Básica em Qt4 +Name[pt_BR]=Aplicação Básica em Qt4 +Name[ru]=Простое приложение Qt 4 +Name[sk]=Základná Qt4 aplikácia +Name[sr]=Основни Qt4 програм +Name[sr@Latn]=Osnovni Qt4 program +Name[sv]=Grundläggande Qt4-program +Name[zh_TW]=基本 Qt4 應用程式 +Icon=qt4hello.png +Category=C++/QMake project +Comment=Generate a very simple QMake/Qt4 based application (crossplatform compatible) - Needs Qt4 +Comment[ca]=Genera una aplicació molt simple basada en QMake/Qt4 (multi plataforma) -requereix Qt4- +Comment[da]=Generér et meget enkelt QMake/Qt4 baseret program (krydsplatform kompatibel) - behøver Qt4 +Comment[de]=Erstellt eine sehr einfache, auf QMake/Qt4 basierende Anwendung (plattformunabhängig). - Benötigt Qt4. +Comment[el]=Δημιουργία μια εφαρμογής βασισμένης στα QMake/Qt4 (συμβατή με πολλαπλές πλατφόρμες) -Απαιτεί το Qt4 +Comment[es]=Genera una aplicación muy sencilla basada en QMake/Qt4 (con compatibilidad multiplataforma) - Necesita Qt4 +Comment[et]=Väga lihtsa rakenduse loomine QMake'i/Qt4 põhjal (multiplatvormne) - vajalik on Qt4 +Comment[fr]=Génère une application basée sur QMake / Qt4 très simple (compatible multi-plateforme) - Nécessite Qt4 +Comment[hu]=Létrehoz egy QMake/Qt4-alapú, keresztfordításra is alkalmas alkalmazást - Qt4-et igényel +Comment[it]=Genera una semplice applicazione basata su QMake/Qt4 (compatibile multipiattaforma) - serve Qt4 +Comment[nds]=Stellt en op QMake un Qt4 opbuut Programm op (över Bedriefümgeven weg kompatibel) - Qt4 deit noot +Comment[nl]=Genereert een heel eenvoudig Qmake/Qt4-gebaseerde toepassing (crossplatform compatible) - heeft Qt4 nodig +Comment[pl]=Generuje program używający QMake i Qt4 (wieloplatformowy) +Comment[pt]=Gera uma aplicação baseada no QMake/Qt4 (compatível com várias plataformas) - Necessita do Qt4 +Comment[pt_BR]=Gera uma aplicação baseada no QMake/Qt4 (compatível com várias plataformas) - Necessita do Qt4 +Comment[ru]=Создание простого кроссплатформенного приложения Qt 4, использующего QMake. +Comment[sk]=Vygeneruje veľmi jednoduchú aplikáciu založenú na QMake/Qt4 (multiplatformovo kompatibilnú) - vyžaduje Qt4 +Comment[sr]=Прави једноставан програм на основи QMake/Qt4 (прекоплатформски компатибилан) — захтева Qt4 +Comment[sr@Latn]=Pravi jednostavan program na osnovi QMake/Qt4 (prekoplatformski kompatibilan) — zahteva Qt4 +Comment[sv]=Skapar ett mycket enkelt QMake/Qt4-baserat program (fungerar på andra plattformar). Kräver Qt4. +Comment[zh_TW]=產生一個以 QMake/Qt4 為基礎的簡單應用程式(跨平台相容)─需要使用 Qt4 +FileTemplates=h,CStyle,cpp,CStyle +ShowFilesAfterGeneration=%{dest}/src/main.cpp,%{dest}/src/ReadMe +Archive=qt4hello.tar.gz + +[FILE1] +Type=install +Source=%{src}/qt4hello.kdevelop +Dest=%{dest}/%{APPNAMELC}.kdevelop + +[FILE2] +Type=install +Source=%{src}/qt4hello.pro +Dest=%{dest}/%{APPNAMELC}.pro + +[MkDir1] +Type=mkdir +Dir=%{dest}/src + +[FILE3] +Type=install +Source=%{src}/src.pro +Dest=%{dest}/src/src.pro + +[FILE4] +Type=install +Source=%{src}/main.cpp +Dest=%{dest}/src/main.cpp + +[FILE5] +Type=install +Source=%{src}/ReadMe +Dest=%{dest}/src/ReadMe + +[MSG] +Type=message +Comment=A Qt4/Qmake based application was created in %{dest} +Comment[ca]=Una aplicació basada en Qt4/Qmake ha estat creada en %{dest} +Comment[da]=Et Qt4/Qmake baseret program blev oprettet i %{dest} +Comment[de]=Eine auf QMake/Qt4 basierende Anwendung wurde in %{dest} erstellt. +Comment[el]=Μια εφαρμογή βασισμένη στα Qt4/Qmake δημιουργήθηκε στο %{dest} +Comment[es]=Una aplicación basada en Qt4/Qmake ha sido creada en %{dest} +Comment[et]=Rakendus Qt4/QMake'i põhjal loodi asukohta %{dest} +Comment[fr]=Une application basée sur Qt4 / Qmake a été créée dans %{dest} +Comment[hu]=Létrejött egy Qt4/Qmake-alapú alkalmazás itt: %{dest} +Comment[it]=È stata creata un'applicazione basata su Qt4/Qmake in %{dest} +Comment[ja]=Qt4/QMake ベースのアプリケーションを %{dest} に作成しました +Comment[nds]=In %{dest} wöör en op Qt4 un Qmake opbuut Programm opstellt +Comment[nl]=Een Qt4/Qmake gebaseerde toepassing is aangemaakt in %{dest} +Comment[pl]=Program używający QMake i Qt4 został utworzony w %{dest} +Comment[pt]=Foi criada uma aplicação baseada no Qt4/Qmake em %{dest} +Comment[pt_BR]=Foi criada uma aplicação baseada no Qt4/Qmake em %{dest} +Comment[ru]=Приложение Qt 4, использующее Qmake, создано в %{dest} +Comment[sk]=Aplikácia založená na Qt4/Qmake bola vytvorená v %{dest} +Comment[sr]=Програм на основу Qt4/Qmake направљен је у %{dest} +Comment[sr@Latn]=Program na osnovu Qt4/Qmake napravljen je u %{dest} +Comment[sv]=Ett QMake/Qt4-baserat program skapades i %{dest} +Comment[zh_TW]=一個 QMake/Qt4 為基礎的應用程式已建立於 %{dest} + +[QMAKE] +Type=value +ValueType=QString +Value=QMAKE +Comment=Absolute Path for QMake (Qt4). +Comment[ca]=Ruta absoluta per a QMake (Qt4). +Comment[da]=Absolut søgesti til QMake (Qt4). +Comment[de]=Absoluter Pfad für QMake (Qt4). +Comment[el]=Απόλυτη διαδρομή για το QMake (Qt4). +Comment[es]=Ruta completa para QMake (Qt4). +Comment[et]=QMake (Qt4) absoluutne asukoht. +Comment[fr]=Chemin absolu pour QMake (Qt4). +Comment[hu]=A QMake (Qt4) teljes elérési útja. +Comment[it]=Percorso assoluto per QMake (Qt4). +Comment[ja]=QMake (Qt4) の絶対パス +Comment[nds]=Afsluut Padd för QMake (Qt4) +Comment[nl]=Absoluut pad naar QMake (Qt4). +Comment[pl]=Ścieżka bezwzględna do QMake (Qt4). +Comment[pt]=Localização Absoluta do QMake (Qt4). +Comment[pt_BR]=Localização Absoluta do QMake (Qt4). +Comment[ru]=Полный путь к QMake (Qt 4). +Comment[sk]=Absolútna cesta ku QMake (Qt4). +Comment[sr]=Апсолутна путања до QMake-а (Qt4). +Comment[sr@Latn]=Apsolutna putanja do QMake-a (Qt4). +Comment[sv]=Absolut sökväg till QMake (Qt4). +Comment[zh_TW]=QMake(Qt4)的絕對路徑 +Default= + +[DESIGNER] +Type=value +ValueType=QString +Value=DESIGNER +Comment=Absolute Path for Designer (Qt4). +Comment[ca]=Ruta absoluta per a Designer (Qt4). +Comment[da]=Absolut søgesti til Designer (Qt4). +Comment[de]=Absoluter Pfad für Designer (Qt4). +Comment[el]=Απόλυτη διαδρομή για τον Σχεδιαστή (Qt4). +Comment[es]=Ruta completa para Designer (Qt4). +Comment[et]=Disaineri (Qt4) absoluutne asukoht. +Comment[fr]=Chemin absolu pour Designer (Qt4). +Comment[hu]=A Designer (Qt4) teljes elérési útja +Comment[it]=Percorso assoluto del Designer (Qt4). +Comment[ja]=Designer (Qt4) の絶対パス +Comment[nds]=Afsluut Padd för Designer (Qt4) +Comment[nl]=Absoluut pad naar Designer (Qt4). +Comment[pl]=Ścieżka bezwzględna do Designera (Qt4). +Comment[pt]=Localização Absoluta do Designer (Qt4). +Comment[pt_BR]=Localização Absoluta do Designer (Qt4). +Comment[ru]=Полный путь к Designer (Qt 4). +Comment[sk]=Absolútna cesta ku Designer (Qt4). +Comment[sr]=Апсолутна путања до Designer-а (Qt4). +Comment[sr@Latn]=Apsolutna putanja do Designer-a (Qt4). +Comment[sv]=Absolut sökväg till Designer (Qt4). +Comment[zh_TW]=設計家(Qt4)的絕對路徑 +Default= diff --git a/languages/cpp/app_templates/qt4hello/qt4hello.png b/languages/cpp/app_templates/qt4hello/qt4hello.png Binary files differnew file mode 100644 index 00000000..332ea1c0 --- /dev/null +++ b/languages/cpp/app_templates/qt4hello/qt4hello.png diff --git a/languages/cpp/app_templates/qt4hello/qt4hello.pro b/languages/cpp/app_templates/qt4hello/qt4hello.pro new file mode 100644 index 00000000..7177d225 --- /dev/null +++ b/languages/cpp/app_templates/qt4hello/qt4hello.pro @@ -0,0 +1,5 @@ +SUBDIRS += src +TEMPLATE = subdirs +CONFIG += warn_on \ + qt \ + thread
\ No newline at end of file diff --git a/languages/cpp/app_templates/qt4hello/src.pro b/languages/cpp/app_templates/qt4hello/src.pro new file mode 100644 index 00000000..ae5bac37 --- /dev/null +++ b/languages/cpp/app_templates/qt4hello/src.pro @@ -0,0 +1,8 @@ +SOURCES += main.cpp +TEMPLATE = app +CONFIG += warn_on \ + thread \ + qt +TARGET = %{APPNAMELC} +DESTDIR = ../bin +QT -= gui |