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/opieapp | |
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/opieapp')
-rw-r--r-- | languages/cpp/app_templates/opieapp/.kdev_ignore | 0 | ||||
-rw-r--r-- | languages/cpp/app_templates/opieapp/Example.png | bin | 0 -> 1262 bytes | |||
-rw-r--r-- | languages/cpp/app_templates/opieapp/Makefile.am | 18 | ||||
-rw-r--r-- | languages/cpp/app_templates/opieapp/app.kdevelop | 143 | ||||
-rw-r--r-- | languages/cpp/app_templates/opieapp/app.pro | 38 | ||||
-rw-r--r-- | languages/cpp/app_templates/opieapp/example.cpp | 32 | ||||
-rw-r--r-- | languages/cpp/app_templates/opieapp/example.desktop | 37 | ||||
-rw-r--r-- | languages/cpp/app_templates/opieapp/example.h | 20 | ||||
-rw-r--r-- | languages/cpp/app_templates/opieapp/examplebase.ui | 49 | ||||
-rw-r--r-- | languages/cpp/app_templates/opieapp/opieapp.kdevtemplate | 149 | ||||
-rw-r--r-- | languages/cpp/app_templates/opieapp/opieapp.png | bin | 0 -> 483 bytes |
11 files changed, 486 insertions, 0 deletions
diff --git a/languages/cpp/app_templates/opieapp/.kdev_ignore b/languages/cpp/app_templates/opieapp/.kdev_ignore new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/languages/cpp/app_templates/opieapp/.kdev_ignore diff --git a/languages/cpp/app_templates/opieapp/Example.png b/languages/cpp/app_templates/opieapp/Example.png Binary files differnew file mode 100644 index 00000000..f63d0bc7 --- /dev/null +++ b/languages/cpp/app_templates/opieapp/Example.png diff --git a/languages/cpp/app_templates/opieapp/Makefile.am b/languages/cpp/app_templates/opieapp/Makefile.am new file mode 100644 index 00000000..643a1c29 --- /dev/null +++ b/languages/cpp/app_templates/opieapp/Makefile.am @@ -0,0 +1,18 @@ +dataFiles = Example.png app.kdevelop example.desktop Makefile.am \ + app.pro example.cpp example.h examplebase.ui + +templateName = opieapp + +### 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/opieapp/app.kdevelop b/languages/cpp/app_templates/opieapp/app.kdevelop new file mode 100644 index 00000000..69b6f2bc --- /dev/null +++ b/languages/cpp/app_templates/opieapp/app.kdevelop @@ -0,0 +1,143 @@ +<?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> + <keyword>C++</keyword> + <keyword>Code</keyword> + </keywords> + <ignoreparts/> + </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> + <kdevdoctreeview> + <ignoretocs> + <toc>gtk</toc> + <toc>gnustep</toc> + <toc>python</toc> + <toc>php</toc> + <toc>perl</toc> + <toc>w3c-dom-level2-html</toc> + <toc>kdev3api</toc> + <toc>sdl</toc> + <toc>w3c-svg</toc> + <toc>w3c-uaag10</toc> + </ignoretocs> + <ignoreqt_xml> + <toc>Guide to the Qt Translation Tools</toc> + <toc>qmake User Guide</toc> + <toc>Qt Assistant Manual</toc> + <toc>Qt Designer Manual</toc> + <toc>Qt Referrence Documentation</toc> + </ignoreqt_xml> + <ignoredevhelp> + <toc>bonobo-activation</toc> + <toc>gconf</toc> + <toc>gtksourceview</toc> + <toc>libbonobo</toc> + <toc>libbonoboui</toc> + </ignoredevhelp> + </kdevdoctreeview> + <kdevdebugger> + <general> + <dbgshell></dbgshell> + <programargs>-qws</programargs> + <gdbpath/> + <breakonloadinglibs>true</breakonloadinglibs> + <separatetty>false</separatetty> + <floatingtoolbar>false</floatingtoolbar> + </general> + <display> + <staticmembers>false</staticmembers> + <demanglenames>true</demanglenames> + </display> + </kdevdebugger> + <kdevtrollproject> + <opie> + <quick_app>true</quick_app> + </opie> + <packaging> + <template>0</template> + <appcategory>Applications</appcategory> + <owner> + <package>%{APPNAMELC}</package> + <prio>0</prio> + <section>opie/application</section> + <maintainer>%{AUTHOR} %{EMAIL}</maintainer> + <arch>arm</arch> + <depends>task-opie-minimal</depends> + <version>%{VERSION}</version> + <desc>Empty</desc> + </owner> + </packaging> + <general> + <activedir></activedir> + </general> + <run> + <mainprogram>./%{APPNAMELC}</mainprogram> + <programargs>-qws</programargs> + </run> + <envvars/> + </kdevtrollproject> + <kdevfilecreate> + <filetypes/> + <useglobaltypes> + <type ext="ui" /> + <type ext="cpp" /> + <type ext="h" /> + </useglobaltypes> + </kdevfilecreate> + <cppsupportpart> + <codecompletion> + <codehinting outputview="1" enablech="0" selectview="0" /> + </codecompletion> + <classstore> + <enablepcs>false</enablepcs> + <enablepp>false</enablepp> + <preparsing/> + </classstore> + <filetemplates> + <choosefiles>false</choosefiles> + <interfaceURL></interfaceURL> + <implementationURL></implementationURL> + <interfacesuffix>.h</interfacesuffix> + <implementationsuffix>.cpp</implementationsuffix> + <lowercasefilenames>true</lowercasefilenames> + </filetemplates> + </cppsupportpart> + <kdevclassview> + <folderhierarchy>true</folderhierarchy> + <depthoffolders>2</depthoffolders> + </kdevclassview> + <kdevcvs> + <cvsoptions>-f</cvsoptions> + <commitoptions></commitoptions> + <updateoptions>-dP</updateoptions> + <addoptions></addoptions> + <removeoptions>-f</removeoptions> + <diffoptions>-u3 -p</diffoptions> + <logoptions></logoptions> + <rshoptions></rshoptions> + </kdevcvs> + <kdevdocumentation> + <projectdoc> + <docsystem>Doxygen Documentation Collection</docsystem> + <docurl>%{APPNAMELC}.tag</docurl> + </projectdoc> + </kdevdocumentation> +</kdevelop> diff --git a/languages/cpp/app_templates/opieapp/app.pro b/languages/cpp/app_templates/opieapp/app.pro new file mode 100644 index 00000000..f4111696 --- /dev/null +++ b/languages/cpp/app_templates/opieapp/app.pro @@ -0,0 +1,38 @@ +TEMPLATE = quick-template +CONFIG = qt qtopia warn_on release zecke-libqpe zecke-libopie +HEADERS = %{APPNAMELC}.h +SOURCES = %{APPNAMELC}.cpp +INTERFACES = %{APPNAMELC}base.ui +TARGET = %{APPNAMELC} + +QMAKE_LIBDIR = $(OPIEDIR)/lib +OPIE-SPEC=6 + +QUICK_SPEC_FOO = $$(OPIE_BUILD_QUICK_APP) +contains( TEMPLATE, quick-template ){ + contains( QUICK_SPEC_FOO, quick-app-lib ){ + message( "foo" ) + system( rm $$TARGET ) + system( ln -s $$(OPIEDIR)/bin/quicklauncher $$TARGET) + DEFINES += OPIE_APP_INTERFACE + TEMPLATE = lib + CONFIG += dll + }else{ + LI = $$join( TARGET, "lib", "lib", ".so*" ) + system( rm $$LI ) + TEMPLATE = app + } +} + + +zecke-libqpe { + INCLUDEPATH += $(OPIEDIR)/include + LIBS += -lqpe + DEPENDPATH += $(OPIEDIR)/include +} + +zecke-libopie { + INCLUDEPATH += $(OPIEDIR)/include + DEPENDPATH += $(OPIEDIR)/include + LIBS += -lopie +} diff --git a/languages/cpp/app_templates/opieapp/example.cpp b/languages/cpp/app_templates/opieapp/example.cpp new file mode 100644 index 00000000..84f3f9d5 --- /dev/null +++ b/languages/cpp/app_templates/opieapp/example.cpp @@ -0,0 +1,32 @@ +#include "%{APPNAMELC}.h" +#include <qpushbutton.h> +#include <opie/oapplicationfactory.h> + +typedef OApplicationFactory<%{APPNAME}> %{APPNAME}Factory; +OPIE_EXPORT_APP( %{APPNAME}Factory ) + +/* + * 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/opieapp/example.desktop b/languages/cpp/app_templates/opieapp/example.desktop new file mode 100644 index 00000000..f6f04194 --- /dev/null +++ b/languages/cpp/app_templates/opieapp/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/opieapp/example.h b/languages/cpp/app_templates/opieapp/example.h new file mode 100644 index 00000000..1ba8ead7 --- /dev/null +++ b/languages/cpp/app_templates/opieapp/example.h @@ -0,0 +1,20 @@ +#ifndef %{APPNAMEUC}_H +#define %{APPNAMEUC}_H +#include "%{APPNAMELC}base.h" + +class %{APPNAME} : public %{APPNAME}Base +{ + Q_OBJECT + +public: + static QString appName() { + return QString::fromLatin1("%{APPNAMELC}" ); + } + %{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/opieapp/examplebase.ui b/languages/cpp/app_templates/opieapp/examplebase.ui new file mode 100644 index 00000000..b6b81b11 --- /dev/null +++ b/languages/cpp/app_templates/opieapp/examplebase.ui @@ -0,0 +1,49 @@ +<!DOCTYPE UI><UI> +<class>%{APPNAME}Base</class> +<widget> + <class>QWidget</class> + <property stdset="1"> + <name>name</name> + <cstring>%{APPNAME}Base</cstring> + </property> + <property stdset="1"> + <name>geometry</name> + <rect> + <x>0</x> + <y>0</y> + <width>196</width> + <height>245</height> + </rect> + </property> + <property stdset="1"> + <name>caption</name> + <string>%{APPNAME}</string> + </property> + <vbox> + + <widget> + <class>QLabel</class> + <property stdset="1"> + <name>name</name> + <cstring>TextLabel1</cstring> + </property> + <property stdset="1"> + <name>text</name> + <string><p>This is just an <i>%{APPNAMELC}</i>; it does not do anything interesting at all.</string> + </property> + </widget> + <widget> + <class>QPushButton</class> + <property stdset="1"> + <name>name</name> + <cstring>quit</cstring> + </property> + <property stdset="1"> + <name>text</name> + <string>Quit</string> + </property> + </widget> + </vbox> +</widget> +<layoutdefaults spacing="6" margin="11"/> +</UI> diff --git a/languages/cpp/app_templates/opieapp/opieapp.kdevtemplate b/languages/cpp/app_templates/opieapp/opieapp.kdevtemplate new file mode 100644 index 00000000..622ec9a6 --- /dev/null +++ b/languages/cpp/app_templates/opieapp/opieapp.kdevtemplate @@ -0,0 +1,149 @@ +# KDE Config File +[General] +Name=Opie Application +Name[br]=Meziant Opie +Name[ca]=Aplicació per a Opie +Name[da]=Opie-program +Name[de]=Opie-Anwendung +Name[el]=Εφαρμογή Opie +Name[es]=Aplicación para Opie +Name[et]=Opie rakendus +Name[eu]=Opie aplikazioa +Name[fa]=کاربرد Opie +Name[fr]=Application Opie +Name[ga]=Feidhmchlár Opie +Name[gl]=Aplicación Opie +Name[hu]=Opie-alkalmazás +Name[it]=Applicazione Opie +Name[ja]=Opie アプリケーション +Name[nds]=Opie-Programm +Name[ne]=ओपिइ अनुप्रयोग +Name[nl]=Opie-toepassing +Name[pl]=Program Opie +Name[pt]=Aplicação do Opie +Name[pt_BR]=Aplicação do Opie +Name[ru]=Приложение Opie +Name[sk]=Apie aplikácia +Name[sl]=Program za Opie +Name[sr]=Opie програм +Name[sr@Latn]=Opie program +Name[sv]=Opie-program +Name[tr]=Opie Uygulaması +Name[zh_CN]=Opie 应用程序 +Name[zh_TW]=Opie 應用程式 +Icon=qmakeapp.png +Category=C++/Embedded +Comment=Generate an Opie application. +Comment[ca]=Genera una aplicació per a Opie. +Comment[da]=Generér et Opie-program. +Comment[de]=Erstellt eine Opie-Anwendung +Comment[el]=Δημιουργία μιας εφαρμογής Opie. +Comment[es]=Genera una aplicación para Opie. +Comment[et]=Opie rakenduse loomine. +Comment[eu]=Sortu Opie aplikazio bat. +Comment[fa]=یک کاربرد Opie تولید میکند. +Comment[fr]=Génère une application Opie. +Comment[ga]=Cruthaigh feidhmchlár Opie. +Comment[hu]=Létrehoz egy Opie-alkalmazást. +Comment[it]=Genera un'applicazione Opie. +Comment[ja]=Opie アプリケーションを作成 +Comment[nds]=Stellt en Opie-Programm op. +Comment[ne]=ओपिइ अनुप्रयोग उत्पन्न गर्नुहोस् +Comment[nl]=Genereert een Opie-toepassing +Comment[pl]=Generuje program Opie. +Comment[pt]=Gera uma aplicação do Opie. +Comment[pt_BR]=Gera uma aplicação do Opie. +Comment[ru]=Создание приложение Opie. +Comment[sk]=Vygeneruje Opie aplikáciu. +Comment[sl]=Ustvari program za Opie +Comment[sr]=Прави Opie програм. +Comment[sr@Latn]=Pravi Opie program. +Comment[sv]=Skapa ett Opie-program. +Comment[tr]=Bir Opie uygulaması yarat +Comment[zh_CN]=生成一个 Opie 应用程序。 +Comment[zh_TW]=產生一個 Opie 應用程式 +FileTemplates=h,CStyle,cpp,CStyle +ShowFilesAfterGeneration=%{dest}/%{APPNAMELC}.cpp +Archive=opieapp.tar.gz + +[FILE1] +Type=install +EscapeXML=true +Source=%{src}/app.kdevelop +Dest=%{dest}/%{APPNAMELC}.kdevelop + +[MkDir0] +Type=mkdir +Dir=%{dest}/pics + +[MkDir1] +Type=mkdir +Dir=%{dest}/pics/%{APPNAMELC} + +[FILE2] +Type=install +Source=%{src}/Example.png +Dest=%{dest}/pics/%{APPNAMELC}/%{APPNAMELC}.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 +Source=%{src}/examplebase.ui +Dest=%{dest}/%{APPNAMELC}base.ui + +[MkDir2] +Type=mkdir +Dir=%{dest}/apps + +[FILE7] +Type=install +Source=%{src}/example.desktop +Dest=%{dest}/apps/%{APPNAMELC}.desktop + +[MSG] +Type=message +Comment=An opie application was created in %{dest} +Comment[ca]=Una aplicació per a Opie ha estat creada en %{dest} +Comment[da]=Et opie-program blev oprettet i %{dest} +Comment[de]=Eine Opie-Anwendung wurde in %{dest} erstellt. +Comment[el]=Μια εφαρμογή opie δημιουργήθηκε στο %{dest} +Comment[es]=Una aplicación para Opie ha sido creada en %{dest} +Comment[et]=Opie rakendus loodi asukohta %{dest} +Comment[eu]=Opie aplikazio bat sortu da hemen: %{dest} +Comment[fa]=یک کاربرد opie در %{dest} ایجاد شد +Comment[fr]=Une application Opie a été créée dans %{dest} +Comment[ga]=Cruthaíodh feidhmchlár opie i %{dest} +Comment[gl]=Creouse unha aplicación opie en %{dest} +Comment[hu]=Létrejött egy Opie-alkalmazás itt: %{dest} +Comment[it]=È stata creata un'applicazione Opie in %{dest} +Comment[ja]=Opie アプリケーションを %{dest} に作成しました +Comment[nds]=In %{dest} wöör en Opie-Programm opstellt +Comment[ne]=ओपिइ अनुप्रयोग %{dest} मा सिर्जना गरियो +Comment[nl]=Een Opie-toepassing is aangemaakt in %{dest} +Comment[pl]=Program Opie został utworzony w %{dest} +Comment[pt]=Foi criada uma aplicação do Opie em %{dest} +Comment[pt_BR]=Foi criada uma aplicação do Opie em %{dest} +Comment[ru]=Приложение Opie создано в %{dest} +Comment[sk]=Opie aplikácia bola vytvorená v %{dest} +Comment[sl]=Program za opie je bil ustvarjen v %{dest} +Comment[sr]=Opie програм је направљен у %{dest} +Comment[sr@Latn]=Opie program je napravljen u %{dest} +Comment[sv]=Ett Opie-program skapades i %{dest} +Comment[tr]=Bir opie uygulaması %{dest} içinde yaratıldı. +Comment[zh_CN]=在 %{dest} 中创建了一个 opie 应用程序 +Comment[zh_TW]=一個 opie 應用程式已建立於 %{dest} diff --git a/languages/cpp/app_templates/opieapp/opieapp.png b/languages/cpp/app_templates/opieapp/opieapp.png Binary files differnew file mode 100644 index 00000000..840a953c --- /dev/null +++ b/languages/cpp/app_templates/opieapp/opieapp.png |