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/ruby/app_templates/qtruby/.kdev_ignore | 0 languages/ruby/app_templates/qtruby/Makefile.am | 16 +++ languages/ruby/app_templates/qtruby/README | 29 ++++++ languages/ruby/app_templates/qtruby/app-Makefile | 7 ++ languages/ruby/app_templates/qtruby/app.filelist | 2 + languages/ruby/app_templates/qtruby/app.kdevelop | 85 +++++++++++++++ languages/ruby/app_templates/qtruby/app.rb | 12 +++ .../ruby/app_templates/qtruby/qtruby.kdevtemplate | 114 +++++++++++++++++++++ languages/ruby/app_templates/qtruby/qtruby.png | Bin 0 -> 3435 bytes 9 files changed, 265 insertions(+) create mode 100644 languages/ruby/app_templates/qtruby/.kdev_ignore create mode 100644 languages/ruby/app_templates/qtruby/Makefile.am create mode 100644 languages/ruby/app_templates/qtruby/README create mode 100644 languages/ruby/app_templates/qtruby/app-Makefile create mode 100644 languages/ruby/app_templates/qtruby/app.filelist create mode 100644 languages/ruby/app_templates/qtruby/app.kdevelop create mode 100755 languages/ruby/app_templates/qtruby/app.rb create mode 100644 languages/ruby/app_templates/qtruby/qtruby.kdevtemplate create mode 100644 languages/ruby/app_templates/qtruby/qtruby.png (limited to 'languages/ruby/app_templates/qtruby') diff --git a/languages/ruby/app_templates/qtruby/.kdev_ignore b/languages/ruby/app_templates/qtruby/.kdev_ignore new file mode 100644 index 00000000..e69de29b diff --git a/languages/ruby/app_templates/qtruby/Makefile.am b/languages/ruby/app_templates/qtruby/Makefile.am new file mode 100644 index 00000000..68b7bd82 --- /dev/null +++ b/languages/ruby/app_templates/qtruby/Makefile.am @@ -0,0 +1,16 @@ +dataFiles = app.rb app.kdevelop app-Makefile app.filelist README +templateName = qtruby + +### 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/ruby/app_templates/qtruby/README b/languages/ruby/app_templates/qtruby/README new file mode 100644 index 00000000..34e85c43 --- /dev/null +++ b/languages/ruby/app_templates/qtruby/README @@ -0,0 +1,29 @@ +QtRuby Hello World template quick start +Author: Anne-Marie Mahfouf +Date: 2006-12-05 +----------------------------------------------- + +This README file explains you some basic things for starting with +this application template, a simple QtRuby Hello world template. +----------------------------------------------- + +-- REQUIREMENTS -- +you need +- Qt version might be 3.3.4 or 3.3.5. +- kdelibs 3.5 and kdelibs headers 3.5 (devel package) in order to build this template. +- qtruby either from your distribution or from the kdebindings module or also from +http://rubyforge.org/projects/korundum/. +If you use the kdebindings module you need to build kdebindings/smoke/qt and then kdebindings/qtruby. + +----------------------------------------------- + +-- RUN -- +You will see that the Build menu in KDevelop is now adapted to Ruby. +In the Build menu, choose Run or use Shift + F9 to see your project running. + +----------------------------------------------- + +-- RELEVANT LINK -- +http://developer.kde.org/language-bindings/ruby/index.html + +In KDevelop Documentation, you can find a Ruby tutorial. \ No newline at end of file diff --git a/languages/ruby/app_templates/qtruby/app-Makefile b/languages/ruby/app_templates/qtruby/app-Makefile new file mode 100644 index 00000000..13da2847 --- /dev/null +++ b/languages/ruby/app_templates/qtruby/app-Makefile @@ -0,0 +1,7 @@ +uis := $(wildcard *.ui) + +all: $(uis) + @for name in $^; do rbuic $$name > `echo $$name | awk -F '\\\.ui$' '{ print $$1 }' 2> /dev/null`.rb; echo "Running rbuic on $$name"; done + +clean: $(uis) + @for name in $^; do rm -f `echo $$name | awk -F '\\\.ui$' '{ print $$1 }' 2> /dev/null`.rb; done diff --git a/languages/ruby/app_templates/qtruby/app.filelist b/languages/ruby/app_templates/qtruby/app.filelist new file mode 100644 index 00000000..202beb22 --- /dev/null +++ b/languages/ruby/app_templates/qtruby/app.filelist @@ -0,0 +1,2 @@ +# KDevelop Custom Project File List +%{APPNAMELC}.rb diff --git a/languages/ruby/app_templates/qtruby/app.kdevelop b/languages/ruby/app_templates/qtruby/app.kdevelop new file mode 100644 index 00000000..ec464627 --- /dev/null +++ b/languages/ruby/app_templates/qtruby/app.kdevelop @@ -0,0 +1,85 @@ + + + + %{AUTHOR} + %{EMAIL} + %{VERSION} + KDevCustomProject + Ruby + + Ruby + Qt + + + KDevDoxygen + KDevdistpart + KDevVisualBoyAdvance + KDevDebugger + + + + + + + + + + false + CVS,.svn + + + + + + + + + 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 + java_bugs_gcc + java_bugs_sun + kde2book + libc + libstdc++ + opengl + pascal_bugs_fp + php + php_bugs + perl + perl_bugs + python + python_bugs + sdl + stl + w3c-svg + sw + w3c-uaag10 + wxwindows_bugs + + + + + + + + + + + ./%{APPNAMELC}.rb + ruby + false + + + diff --git a/languages/ruby/app_templates/qtruby/app.rb b/languages/ruby/app_templates/qtruby/app.rb new file mode 100755 index 00000000..da817328 --- /dev/null +++ b/languages/ruby/app_templates/qtruby/app.rb @@ -0,0 +1,12 @@ +#!/usr/bin/env ruby + +require 'Qt' + +app = Qt::Application.new(ARGV) +widget = Qt::Widget.new +widget.setGeometry(50, 500, 400, 400) +widget.caption = "Hello World!" + +app.mainWidget = widget +widget.show +app.exec diff --git a/languages/ruby/app_templates/qtruby/qtruby.kdevtemplate b/languages/ruby/app_templates/qtruby/qtruby.kdevtemplate new file mode 100644 index 00000000..6e7328ac --- /dev/null +++ b/languages/ruby/app_templates/qtruby/qtruby.kdevtemplate @@ -0,0 +1,114 @@ +# KDE Config File +[General] +Name=QtRuby Hello World +Name[ca]=Hello World en QtRuby +Name[da]=QtRuby Goddag verden +Name[de]=QtRuby-"Hello World"-Programm +Name[el]=Γεια σου κόσμε QtRuby +Name[es]=«Hola mundo» en QtRuby +Name[et]=QtRuby "Tere, maailm" +Name[eu]=QtRuby "Kaixo mundua" programa +Name[fr]=« Bonjour monde » en QtRuby +Name[gl]=Ola mundo en QtRuby +Name[hu]=QtRuby-alapú Hello world program +Name[it]="Hello World" con QtRuby +Name[nds]=QtRuby-"Moin Welt" +Name[ne]=QtRuby हेल्लो वोल्ड +Name[pl]="Witaj świecie" w QtRuby +Name[pt]=Olá Mundo em QtRuby +Name[pt_BR]=Olá Mundo em QtRuby +Name[ru]=Hello World на QtRuby +Name[sk]=QtRuby Ahoj svet +Name[sr]=„Здраво свете“ у QtRuby-ју +Name[sr@Latn]=„Zdravo svete“ u QtRuby-ju +Name[tr]=QtRuby Merhaba Dünya +Category=Ruby/Qt +Comment=This generates a simple QtRuby Hello World application +Comment[ca]=Genera una simple aplicació de Hello World en QtRuby +Comment[da]=Dette generere et simpelt QtRuby Goddag verden program +Comment[de]=Erstellt eine einfache auf QtRuby basierende "Hello World"-Anwendung +Comment[el]=Αυτό δημιουργεί μια απλή εφαρμογή Γεια σου κόσμε σε QtRuby +Comment[es]=Genera una sencilla aplicación «Hola mundo» en QtRuby +Comment[et]=Lihtsa QtRuby "Tere, maailm" rakenduse loomine +Comment[eu]=Honek QtRuby "Kaixo mundua" aplikazio sinple bat sortzen du +Comment[fa]=یک کاربرد سادۀ QtRuby Hello World تولید می‌کند +Comment[fr]=Génère un programme « Bonjour monde » simple en QtRuby +Comment[gl]=Isto xera unha aplicación sinxela Ola mundo QtRuby +Comment[hu]=Létrehoz egy egyszerű QtRuby-alapú Hello world programot +Comment[it]=Genera una semplice applicazione di "Hello World" con QtRuby +Comment[ja]=簡単な QtRuby Hello World アプリケーションを作成します +Comment[nds]=Dit stellt en eenfach "Moin Welt"-Programm mit QtRuby op. +Comment[ne]=यसले साधारण QtRuby हेल्लो वोल्ड अनुप्रयोग उत्पन्न गर्दछ +Comment[nl]=Dit genereert een eenvoudige QtRuby Hello World-toepassing +Comment[pl]=Generuje prosty program "Witaj świecie" w QtRuby +Comment[pt]=Isto gera uma aplicação Olá Mundo simples em QtRuby +Comment[pt_BR]=Isto gera uma aplicação Olá Mundo simples em QtRuby +Comment[ru]=Создание простого приложения Hello World на QtRuby +Comment[sk]=Vygeneruje jednoduchú QtRuby Ahoj svet aplikáciu +Comment[sr]=Ово прави једноставан „Здраво свете“ у QtRuby-ју +Comment[sr@Latn]=Ovo pravi jednostavan „Zdravo svete“ u QtRuby-ju +Comment[sv]=Detta skapar ett enkelt Hello World-program i QtRuby +Comment[tr]=Bu basit bir QtRuby Merhaba Dünya uygulaması yaratır. +Comment[zh_TW]=產生一個簡單的 QtRuby Hello World 應用程式 +FileTemplates=rb,ShellStyle +ShowFilesAfterGeneration=%{dest}/%{APPNAMELC}.rb,%{dest}/README +Icon=qtruby.png +Archive=qtruby.tar.gz + +[FILE1] +Type=install +EscapeXML=true +Source=%{src}/app.kdevelop +Dest=%{dest}/%{APPNAMELC}.kdevelop + +[FILE2] +Type=install +Source=%{src}/app.rb +Dest=%{dest}/%{APPNAMELC}.rb + +[FILE3] +Type=install +Source=%{src}/app-Makefile +Dest=%{dest}/Makefile + +[FILE4] +Type=install +Source=%{src}/app.filelist +Dest=%{dest}/%{APPNAMELC}.kdevelop.filelist + +[FILE5] +Type=install +Source=%{src}/README +Dest=%{dest}/README + +[MSG] +Type=message +Comment=A simple QtRuby application was created in %{dest} +Comment[ca]=Una simple aplicació en QtRuby ha estat creada en %{dest} +Comment[da]=Et simpelt QtRuby program blev oprettet i %{dest} +Comment[de]=Eine einfache QtRuby-Anwendung wurde in %{dest} erstellt. +Comment[el]=Μια απλή εφαρμογή QtRuby δημιουργήθηκε στο %{dest} +Comment[es]=Una sencilla aplicación en QtRuby ha sido creada en %{dest} +Comment[et]=Lihtne KQtRuby rakendus loodi asukohta %{dest} +Comment[eu]=QtRuby aplikazio sinple bat sortu da hemen: %{dest} +Comment[fa]=یک کاربرد سادۀ QtRuby در %{dest} ایجاد شد +Comment[fr]=Une application QtRuby simple a été créée dans %{dest} +Comment[ga]=Cruthaíodh feidhmchlár simplí QtRuby i %{dest} +Comment[gl]=Creouse unha aplicación sinxela QtRuby en %{dest} +Comment[hu]=Létrejött egy egyszerű QtRuby-alapú alkalmazás itt: %{dest} +Comment[it]=È stata creata una semplice applicazione QtRuby in %{dest} +Comment[ja]=簡単な QtRuby アプリケーションを %{dest} に作成しました +Comment[nds]=In %{dest} wöör en eenfach QtRuby-Programm opstellt. +Comment[ne]=साधारण QtRuby अनुप्रयोग %{dest} मा सिर्जना गरियो +Comment[nl]=Een eenvoudige QtRuby-toepassing is aangemaakt in %{dest} +Comment[pl]=Prosty program w QtRuby został utworzony w %{dest} +Comment[pt]=Foi criada uma aplicação simples de QtRuby em %{dest} +Comment[pt_BR]=Foi criada uma aplicação simples de QtRuby em %{dest} +Comment[ru]=Простое приложение QtRuby создано в %{dest} +Comment[sk]=Jednoduchá QtRuby aplikácia bola vytvorená v %{dest} +Comment[sr]=Једноставан QtRuby програм направљен је у %{dest} +Comment[sr@Latn]=Jednostavan QtRuby program napravljen je u %{dest} +Comment[sv]=Ett enkelt QtRuby-program skapades i %{dest} +Comment[tr]=Basit bir QtRuby uygulaması %{dest} içinde yaratıldı. +Comment[zh_CN]=在 %{dest} 创建了一个简单的 QtRuby 应用程序 +Comment[zh_TW]=一個簡單的 QtRuby 應用程式框架已建立於 %{dest} diff --git a/languages/ruby/app_templates/qtruby/qtruby.png b/languages/ruby/app_templates/qtruby/qtruby.png new file mode 100644 index 00000000..63935461 Binary files /dev/null and b/languages/ruby/app_templates/qtruby/qtruby.png differ -- cgit v1.2.1