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/gtk2mmapp | |
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/gtk2mmapp')
18 files changed, 562 insertions, 0 deletions
diff --git a/languages/cpp/app_templates/gtk2mmapp/.kdev_ignore b/languages/cpp/app_templates/gtk2mmapp/.kdev_ignore new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/languages/cpp/app_templates/gtk2mmapp/.kdev_ignore diff --git a/languages/cpp/app_templates/gtk2mmapp/Makefile.am b/languages/cpp/app_templates/gtk2mmapp/Makefile.am new file mode 100644 index 00000000..2069ade7 --- /dev/null +++ b/languages/cpp/app_templates/gtk2mmapp/Makefile.am @@ -0,0 +1,21 @@ +dataFiles = acconfig.h autogen.sh gtk2mm.glade main_window.cc \ + main_window_glade.hh Makefile.am app-Makefile.am \ + configure.in gtk2mm.gladep main_window.hh \ + app.kdevelop gtk2mm.cc main_window_glade.cc\ + src-Makefile.am config.h gtk2mmapp.png + +templateName = gtk2mmapp + +### 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/gtk2mmapp/acconfig.h b/languages/cpp/app_templates/gtk2mmapp/acconfig.h new file mode 100644 index 00000000..a3f4402e --- /dev/null +++ b/languages/cpp/app_templates/gtk2mmapp/acconfig.h @@ -0,0 +1,10 @@ +/* acconfig.h + * This file is in the public domain. + * + * Descriptive text for the C preprocessor macros that + * the distributed Autoconf macros can define. + * These entries are sometimes used by macros + * which glade-- uses. + */ +#undef PACKAGE +#undef VERSION diff --git a/languages/cpp/app_templates/gtk2mmapp/app-Makefile.am b/languages/cpp/app_templates/gtk2mmapp/app-Makefile.am new file mode 100644 index 00000000..1d95370d --- /dev/null +++ b/languages/cpp/app_templates/gtk2mmapp/app-Makefile.am @@ -0,0 +1,4 @@ + +SUBDIRS = src + +EXTRA_DIST = AUTHORS TODO README configure diff --git a/languages/cpp/app_templates/gtk2mmapp/app.kdevelop b/languages/cpp/app_templates/gtk2mmapp/app.kdevelop new file mode 100644 index 00000000..47330ca2 --- /dev/null +++ b/languages/cpp/app_templates/gtk2mmapp/app.kdevelop @@ -0,0 +1,113 @@ +<?xml version="1.0"?> +<kdevelop> + <general> + <author>%{AUTHOR}</author> + <email>%{EMAIL}</email> + <version>%{VERSION}</version> + <projectmanagement>KDevAutoProject</projectmanagement> + <primarylanguage>C++</primarylanguage> + <keywords> + <keyword>C++</keyword> + <keyword>Code</keyword> + <keyword>GTK</keyword> + </keywords> + </general> + <kdevautoproject> + <general> + <activetarget>src/%{APPNAMELC}</activetarget> + <useconfiguration>debug</useconfiguration> + </general> + <run> + <mainprogram>src/%{APPNAMELC}</mainprogram> + </run> + <configurations> + <optimized> + <builddir>optimized</builddir> + <ccompiler>kdevgccoptions</ccompiler> + <cxxcompiler>kdevgppoptions</cxxcompiler> + <f77compiler>kdevg77options</f77compiler> + <cflags>-O2 -g0</cflags> + <cxxflags>-O2 -g0</cxxflags> + </optimized> + <debug> + <configargs>--enable-debug=full</configargs> + <builddir>debug</builddir> + <ccompiler>kdevgccoptions</ccompiler> + <cxxcompiler>kdevgppoptions</cxxcompiler> + <f77compiler>kdevg77options</f77compiler> + <cflags>-O0 -g3</cflags> + <cxxflags>-O0 -g3</cxxflags> + </debug> + </configurations> + </kdevautoproject> + <kdevfileview> + <groups> + <group pattern="*.cpp;*.h" name="Sources" /> + <group pattern="*.glade" name="User Interface" /> + <group pattern="*.png" name="Icons" /> + <group pattern="*.po" name="Translations" /> + <group pattern="*" name="Others" /> + </groups> + </kdevfileview> + <kdevdoctreeview> + <ignoretocs> + <toc>ada</toc> + <toc>ada_bugs_gcc</toc> + <toc>bash</toc> + <toc>bash_bugs</toc> + <toc>clanlib</toc> + <toc>w3c-dom-level2-html</toc> + <toc>fortran_bugs_gcc</toc> + <toc>gnustep</toc> + <toc>haskell</toc> + <toc>haskell_bugs_ghc</toc> + <toc>java_bugs_gcc</toc> + <toc>java_bugs_sun</toc> + <toc>kde2book</toc> + <toc>libstdc++</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>w3c-svg</toc> + <toc>sw</toc> + <toc>w3c-uaag10</toc> + <toc>wxwidgets_bugs</toc> + </ignoretocs> + <ignoreqt_xml> + <toc>Guide to the Qt Translation Tools</toc> + <toc>Qt Assistant Manual</toc> + <toc>Qt Designer Manual</toc> + <toc>Qt Reference Documentation</toc> + <toc>qmake User Guide</toc> + </ignoreqt_xml> + <ignoredoxygen> + <toc>KDE Libraries (Doxygen)</toc> + </ignoredoxygen> + </kdevdoctreeview> + <kdevdebugger> + <general> + <dbgshell>libtool</dbgshell> + </general> + </kdevdebugger> + <kdevfilecreate> + <useglobaltypes> + <type ext="cpp"/> + <type ext="h"/> + </useglobaltypes> + </kdevfilecreate> + <kdevdocumentation> + <projectdoc> + <docsystem>Doxygen Documentation Collection</docsystem> + <docurl>%{APPNAMELC}.tag</docurl> + </projectdoc> + </kdevdocumentation> +</kdevelop> diff --git a/languages/cpp/app_templates/gtk2mmapp/autogen.sh b/languages/cpp/app_templates/gtk2mmapp/autogen.sh new file mode 100755 index 00000000..231521ba --- /dev/null +++ b/languages/cpp/app_templates/gtk2mmapp/autogen.sh @@ -0,0 +1,33 @@ +#!/bin/sh +# generated 2004/4/12 11:58:47 EDT by amp8165@localhost.(none) +# using glademm V2.0.0 + +if test ! -f install-sh ; then touch install-sh ; fi + +MAKE=`which gnumake` +if test ! -x "$MAKE" ; then MAKE=`which gmake` ; fi +if test ! -x "$MAKE" ; then MAKE=`which make` ; fi +HAVE_GNU_MAKE=`$MAKE --version|grep -c "Free Software Foundation"` + +if test "$HAVE_GNU_MAKE" != "1"; then +echo Using non GNU Make at $MAKE +else +echo Found GNU Make at $MAKE ... good. +fi + +echo This script runs configure and make... +echo You did remember necessary arguments for configure, right? + +if test ! -x `which aclocal` +then echo you need autoconfig and automake to generate the Makefile +fi +if test ! -x `which automake` +then echo you need automake to generate the Makefile +fi + +libtoolize --force --copy +autoheader +aclocal +automake --add-missing --copy --gnu +autoconf +#./configure $* && $MAKE diff --git a/languages/cpp/app_templates/gtk2mmapp/config.h b/languages/cpp/app_templates/gtk2mmapp/config.h new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/languages/cpp/app_templates/gtk2mmapp/config.h diff --git a/languages/cpp/app_templates/gtk2mmapp/configure.in b/languages/cpp/app_templates/gtk2mmapp/configure.in new file mode 100644 index 00000000..cec72218 --- /dev/null +++ b/languages/cpp/app_templates/gtk2mmapp/configure.in @@ -0,0 +1,19 @@ + +AC_INIT(configure.in) +AM_INIT_AUTOMAKE(%{APPNAMELC}, %{VERSION}) +AC_CONFIG_HEADER(config.h) + +AC_ISC_POSIX +AC_PROG_CC +AM_PROG_CC_STDC +AC_HEADER_STDC +AC_PROG_CPP +AC_PROG_CXX +AC_PROG_CXXCPP +AM_PROG_LIBTOOL + +AC_LANG_CPLUSPLUS + +PKG_CHECK_MODULES([GTKMM], [gtkmm-2.4 >= 2.8.0]) + +AC_OUTPUT(Makefile src/Makefile ) diff --git a/languages/cpp/app_templates/gtk2mmapp/gtk2mm.cc b/languages/cpp/app_templates/gtk2mmapp/gtk2mm.cc new file mode 100644 index 00000000..9845fede --- /dev/null +++ b/languages/cpp/app_templates/gtk2mmapp/gtk2mm.cc @@ -0,0 +1,15 @@ +%{CC_TEMPLATE} + +#include <gtkmm/main.h> + +#include "main_window.hh" + +int main(int argc, char **argv) +{ + + Gtk::Main m(&argc, &argv); + + main_window main_window; + Gtk::Main::run(main_window); + return 0; +} diff --git a/languages/cpp/app_templates/gtk2mmapp/gtk2mm.glade b/languages/cpp/app_templates/gtk2mmapp/gtk2mm.glade new file mode 100644 index 00000000..ef4f1b18 --- /dev/null +++ b/languages/cpp/app_templates/gtk2mmapp/gtk2mm.glade @@ -0,0 +1,30 @@ +<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*--> +<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd"> + +<glade-interface> + +<widget class="GtkWindow" id="main_window"> + <property agent="glademm" name="cxx_separate_class">True</property> + <property agent="glademm" name="cxx_separate_file">True</property> + <property agent="glademm" name="cxx_visibility">public</property> + <property name="visible">True</property> + <property name="title" translatable="yes">%{APPNAME} Project</property> + <property name="type">GTK_WINDOW_TOPLEVEL</property> + <property name="window_position">GTK_WIN_POS_CENTER</property> + <property name="modal">False</property> + <property name="resizable">True</property> + <property name="destroy_with_parent">False</property> + <property name="decorated">True</property> + <property name="skip_taskbar_hint">False</property> + <property name="skip_pager_hint">False</property> + <property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property> + <property name="gravity">GDK_GRAVITY_NORTH_WEST</property> + <property name="focus_on_map">True</property> + <signal name="delete_event" handler="quit"/> + + <child> + <placeholder/> + </child> +</widget> + +</glade-interface> diff --git a/languages/cpp/app_templates/gtk2mmapp/gtk2mm.gladep b/languages/cpp/app_templates/gtk2mmapp/gtk2mm.gladep new file mode 100644 index 00000000..f09912ac --- /dev/null +++ b/languages/cpp/app_templates/gtk2mmapp/gtk2mm.gladep @@ -0,0 +1,10 @@ +<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*--> +<!DOCTYPE glade-project SYSTEM "http://glade.gnome.org/glade-project-2.0.dtd"> + +<glade-project> + <name>%{APPNAME}</name> + <program_name>%{APPNAMELC}</program_name> + <language>C++</language> + <gnome_support>FALSE</gnome_support> + <gettext_support>FALSE</gettext_support> +</glade-project> diff --git a/languages/cpp/app_templates/gtk2mmapp/gtk2mmapp.kdevtemplate b/languages/cpp/app_templates/gtk2mmapp/gtk2mmapp.kdevtemplate new file mode 100644 index 00000000..6d52c9bd --- /dev/null +++ b/languages/cpp/app_templates/gtk2mmapp/gtk2mmapp.kdevtemplate @@ -0,0 +1,174 @@ +# KDE Config File +[General] +Name=Gtk-- Application framework +Name[ca]=Infraestructura d'aplicació per a Gtk-- +Name[da]=Gtk-- programskelet +Name[de]="Gtk--"-Anwendungsgrundgerüst +Name[el]=Gtk-- πλαίσιο εφαρμογής +Name[es]=Infraestructura de aplicación Gtk-- +Name[et]=Gtk-- rakenduse raamistik +Name[eu]=Gtk-- Applicazioen lan-markoa +Name[fa]=چارچوب کاربرد Gtk-- +Name[fr]=Infrastructure d'application Gtk-- +Name[ga]=Creatlach feidhmchláir Gtk-- +Name[hu]=Gtk-- - alkalmazás-keretrendszer +Name[it]=Infrastruttura per un'applicazione Gtk-- +Name[ja]=Gtk-- アプリケーションフレームワーク +Name[nds]="Gtk--"-Programmrahmenwark +Name[ne]=Gtk-- अनुप्रयोग फ्रेमवर्क +Name[nl]=Gtk-- Applicationframework +Name[pl]=Szablon programu Gtk-- +Name[pt]=Plataforma de aplicações em Gtk-- +Name[pt_BR]=Plataforma de aplicações em Gtk-- +Name[ru]=Приложение Gtk-- +Name[sk]=Gtk-- aplikačný framework +Name[sl]=Ogrodje programa za Gtk-- +Name[sr]=Радни оквир Gtk-- програма +Name[sr@Latn]=Radni okvir Gtk-- programa +Name[sv]=Gtk-- programramverk +Name[tr]=Gtk-- Uygulama Çatısı +Name[zh_CN]=Gtk-- 应用程序框架 +Name[zh_TW]=Gtk-- 應用程式框架 +Category=C++/GTK+ +Icon=gtk2mmapp.png +Comment=Generates a simple Gtk-- application. Gtkmm >= 2.8.0 should be installed. To edit glade file glade-- (http://home.wtal.de/petig/Gtk/) is required. +Comment[ca]=Genera una simple aplicació Gtk. Gtkmm >= 2.8.0 hauria d'estar instal·lat. Per editar el fitxer glade es requereix glade-- (http://home.wtal.de/petig/Gtk/). +Comment[da]=Genererer et simpelt Gtk-- program. Gtkmm >= 2.8.0 skal være installeret. For at redigere glade file glade-- kræves (http://home.wtal.de/petig/Gtk/). +Comment[de]=Erstellt eine einfache Gtk-Anwendung. Gtkmm >= 1.2.8 und < 1.3.0 sollte installiert sein. Zum Bearbeiten der glade-Datei ist glade-- (http://home.wtal.de/petig/Gtk/) erforderlich. +Comment[el]=Δημιουργεί μια απλή εφαρμογή Gtk. Το Gtkmm >= 2.8.0 πρέπει να είναι εγκατεστημένο. Για την επεξεργασία του αρχείου glade απαιτείται το glade (http://home.wtal.de/petig/Gtk/). +Comment[es]=Genera una sencilla aplicación Gtk--. Debe tener instalado Gtkmm >= 2.8.0. Para editar archivos glade se necesita glade-- (http://home.wtal.de/petig/Gtk/). +Comment[et]=Lihtsa Gtk-- rakenduse loomine. Paigaldatud peab olema Gtkmm >= 2.8.0. Glade-faili redigeerimiseks on vajalik glade-- (http://home.wtal.de/petig/Gtk/). +Comment[fr]=Génère une application Gtk-- simple. Gtkmm >= 2.8.0 devra être installé. Pour modifier le fichier glade, glade-- (http://home.wtal.de/petig/Gtk/) est requis. +Comment[hu]=Létrehoz egy egyszerű Gtk---alapú alkalmazást. Gtkmm >= 2.8.0 szükséges hozzá. Glade-fájl szerkesztéséhez glade-- (http://home.wtal.de/petig/Gtk/) szükséges. +Comment[it]=Genera una semplice applicazione Gtk--. Dovrebbe essere installato Gtkmm >= 2.8.0. Per modificare il file di glade bisogna avere glade-- installato (http://home.wtal.de/petig/Gtk/). +Comment[ja]=簡単な Gtk-- アプリケーションを作成します。Gtkmm >= 2.8.0 が必要です。Glade ファイルを編集するには glade (http://home.wtal.de/petig/Gtk/) が必要です。 +Comment[nds]=Stellt en eenfach "Gtk--"-Programm op. Gtkmm >= 2.8.0 schull installeert wesen. För't Bewerken vun de glade-Datei deit "glade--" (http://home.wtal.de/petig/Gtk/) noot. +Comment[nl]=Genereert een eenvoudige Gtk-- toepassing. Gtkmm >= 2.8.0 dient te zijn geïnstalleerd. Om het glade-bestand te kunnen bewerken hebt u glade-- (http://home.wtal.de/petig/Gtk/) nodig. +Comment[pl]=Generuje prosty program Gtk--. Powinno być zainstalowane Gtkmm w wersji >= 2.8.0. Do modyfikacji plików glade konieczne jest glade-- (http://home.wtal.de/petig/Gtk/). +Comment[pt]=Gera uma aplicação simples em Gtk--. Deverá estar instalado o Gtkmm >= 2.8.0. Para editar o ficheiro do Glade,, é necessário o glade-- (http://home.wtal.de/petig/Gtk/). +Comment[pt_BR]=Gera uma aplicação simples em Gtk--. Deverá estar instalado o Gtkmm >= 2.8.0. Para editar o ficheiro do Glade,, é necessário o glade-- (http://home.wtal.de/petig/Gtk/). +Comment[ru]=Создание простого приложения Gtk--. Требуется Gtkmm >= 1.2.8 и < 1.3.0. Для редактирования файла glade нужна соответствующая программа (http://home.wtal.de/petig/Gtk/). +Comment[sk]=Vygeneruje jednoduchú Gtk-- aplikáciu. Vyžaduje nainštalované Gtkmm >= 2.8.0. Na editovanie glade súboru he potrebný glade-- (http://home.wtal.de/petig/Gtk/). +Comment[sr]=Прави једноставан Gtk-- програм. Gtkmm >= 2.8.0 требало би да је инсталиран. Да бисте уређивали glade фајл, неопходан је glade-- (http://home.wtal.de/petig/Gtk/). +Comment[sr@Latn]=Pravi jednostavan Gtk-- program. Gtkmm >= 2.8.0 trebalo bi da je instaliran. Da biste uređivali glade fajl, neophodan je glade-- (http://home.wtal.de/petig/Gtk/). +Comment[sv]=Skapar ett enkelt Gtk-- program. Gtkmm >= 2.8.0 måste vara installerat. För att redigera glade-filer krävs glade-- (http://home.wtal.de/petig/Gtk/). +Comment[zh_TW]=產生一個簡單的 Gtk-- 應用程式。要先安裝 Gtkmm 版本 >= 2.8.0。要編輯 glade 檔則要先安裝 glade-- (http://home.wtal.de/petig/Gtk/)。 +FileTemplates=hh,CStyle,cc,CStyle +ShowFilesAfterGeneration=%{dest}/src/%{APPNAMELC}.cpp +Archive=gtk2mmapp.tar.gz + +[INCADMIN] +Type=include +File=%{kdevelop}/template-common/incadmin.kdevtemplate + +[GNU] +Type=include +File=%{kdevelop}/template-common/gnu.kdevtemplate + +[FILE1] +Type=install +EscapeXML=true +Source=%{src}/app.kdevelop +Dest=%{dest}/%{APPNAMELC}.kdevelop + +[FILE2] +Type=install +Source=%{src}/app-Makefile.am +Dest=%{dest}/Makefile.am + +[FILE3] +Type=install +Source=%{src}/configure.in +Dest=%{dest}/configure.in + +[FILE4] +Type=install +Source=%{src}/acconfig.h +Dest=%{dest}/acconfig.h + +[FILE5] +Type=install +Source=%{src}/config.h +Dest=%{dest}/config.h + +[FILE6] +Type=install +Source=%{src}/autogen.sh +Dest=%{dest}/autogen.sh + +[FILE7] +Type=install +Source=%{src}/gtk2mm.glade +Dest=%{dest}/%{APPNAMELC}.glade + +[FILE8] +Type=install +Source=%{src}/gtk2mm.gladep +Dest=%{dest}/%{APPNAMELC}.gladep + +[MkDir1] +Type=mkdir +Dir=%{dest}/src + +[FILE9] +Type=install +Source=%{src}/src-Makefile.am +Dest=%{dest}/src/Makefile.am + +[FILE10] +Type=install +Source=%{src}/gtk2mm.cc +Dest=%{dest}/src/%{APPNAMELC}.cc + +[FILE11] +Type=install +Source=%{src}/main_window.hh +Dest=%{dest}/src/main_window.hh + +[FILE12] +Type=install +Source=%{src}/main_window.cc +Dest=%{dest}/src/main_window.cc + +[FILE13] +Type=install +Source=%{src}/main_window_glade.hh +Dest=%{dest}/src/main_window_glade.hh + +[FILE14] +Type=install +Source=%{src}/main_window_glade.cc +Dest=%{dest}/src/main_window_glade.cc + +[MSG] +Type=message +Comment=A Gtk-- application framework was created in %{dest} +Comment[ca]=Una infraestructura d'aplicació Gtk-- ha estat creada en %{dest} +Comment[da]=Et Gtk-- programskelet blev oprettet i %{dest} +Comment[de]=Ein Gtk-Anwendungsgerüst wurde in %{dest} erstellt. +Comment[el]=Ένα πλαίσιο εφαρμογής Gtk δημιουργήθηκε στο %{dest} +Comment[es]=Una infraestructura de aplicación Gtk-- ha sido creada en %{dest} +Comment[et]=Gtk-- rakenduse raamistik loodi asukohta %{dest} +Comment[eu]=Gtk-- aplikazioen lan-marko bat sortu da hemen: %{dest} +Comment[fa]=یک چارچوب کاربرد Gtk-- در %{dest} ایجاد شد +Comment[fr]=Une infrastructure d'application Gtk-- a été créée dans %{dest} +Comment[ga]=Cruthaíodh creatlach feidhmchláir Gtk-- i %{dest} +Comment[gl]=Creouse un contorno de traballo para aplicación Gtk en %{dest} +Comment[hu]=Létrejött egy Gtk-s alkalmazás-keretrendszer itt: %{dest} +Comment[it]=È stata creata l'infrastruttura per un'applicazione Gtk-- in %{dest} +Comment[ja]=Gtk-- アプリケーションフレームワークを %{dest} に作成しました +Comment[nds]=In %{dest} wöör en "Gtk-- "-Programmrahmenwark opstellt +Comment[ne]=Gtk-- अनुप्रयोग फ्रेमवर्क %{dest} मा सिर्जना गरियो +Comment[nl]=Een Gtk-- toepassing is aangemaakt in %{dest} +Comment[pl]=Szablon programu Gtk-- został utworzony w %{dest} +Comment[pt]=Foi criada a plataforma de uma aplicação Gtk-- em %{dest} +Comment[pt_BR]=Foi criada a plataforma de uma aplicação Gtk-- em %{dest} +Comment[ru]=Приложение Gtk-- создано в %{dest} +Comment[sk]=Gtk-- aplikačný framework bol vytvorený v %{dest} +Comment[sl]=Ogrodje za program v Gtk-- je bil ustvarjen v %{dest} +Comment[sr]=Радни оквир Gtk-- програма направљен је у %{dest} +Comment[sr@Latn]=Radni okvir Gtk-- programa napravljen je u %{dest} +Comment[sv]=Ett Gtk-- programramverk skapades i %{dest} +Comment[tr]=Bir Gtk-- uygulama çatısı %{dest} içinde yaratıldı. +Comment[zh_CN]=在 %{dest} 创建了一个 Gtk-- 应用程序框架 +Comment[zh_TW]=一個 Gtk-- 應用程式框架已建立於 %{dest} diff --git a/languages/cpp/app_templates/gtk2mmapp/gtk2mmapp.png b/languages/cpp/app_templates/gtk2mmapp/gtk2mmapp.png Binary files differnew file mode 100644 index 00000000..253a6229 --- /dev/null +++ b/languages/cpp/app_templates/gtk2mmapp/gtk2mmapp.png diff --git a/languages/cpp/app_templates/gtk2mmapp/main_window.cc b/languages/cpp/app_templates/gtk2mmapp/main_window.cc new file mode 100644 index 00000000..ad36b327 --- /dev/null +++ b/languages/cpp/app_templates/gtk2mmapp/main_window.cc @@ -0,0 +1,12 @@ +%{CC_TEMPLATE} + +// newer (non customized) versions of this file go to main_window.cc_new + +// This file is for your program, I won't touch it again! + +#include "config.h" +#include "main_window.hh" + +bool main_window::quit(GdkEventAny *ev) +{ return 0; +} diff --git a/languages/cpp/app_templates/gtk2mmapp/main_window.hh b/languages/cpp/app_templates/gtk2mmapp/main_window.hh new file mode 100644 index 00000000..640e1461 --- /dev/null +++ b/languages/cpp/app_templates/gtk2mmapp/main_window.hh @@ -0,0 +1,19 @@ +%{HH_TEMPLATE} + +// newer (non customized) versions of this file go to main_window.hh_new + +// you might replace +// class foo : public foo_glade { ... }; +// by +// typedef foo_glade foo; +// if you didn't make any modifications to the widget + +#ifndef _MAIN_WINDOW_HH +# include "main_window_glade.hh" +# define _MAIN_WINDOW_HH +class main_window : public main_window_glade +{ + + bool quit(GdkEventAny *ev); +}; +#endif diff --git a/languages/cpp/app_templates/gtk2mmapp/main_window_glade.cc b/languages/cpp/app_templates/gtk2mmapp/main_window_glade.cc new file mode 100644 index 00000000..829855a8 --- /dev/null +++ b/languages/cpp/app_templates/gtk2mmapp/main_window_glade.cc @@ -0,0 +1,40 @@ +%{CC_TEMPLATE} + +// DO NOT EDIT THIS FILE ! It was created using glade-- +// for gtk 2.8.3 and gtkmm 2.8.0 +// +// Please modify the corresponding derived classes in ./src/main_window.cc + + +#if defined __GNUC__ && __GNUC__ < 3 +#error This program will crash if compiled with g++ 2.x +// see the dynamic_cast bug in the gtkmm FAQ +#endif // +#include "config.h" +#include <gtkmmconfig.h> +#if GTKMM_MAJOR_VERSION==2 && GTKMM_MINOR_VERSION>2 +#include <sigc++/compatibility.h> +#define GMM_GTKMM_22_24(a,b) b +#else //gtkmm 2.2 +#define GMM_GTKMM_22_24(a,b) a +#endif // +#include "main_window_glade.hh" +#include <gdk/gdkkeysyms.h> +#include <gtkmm/accelgroup.h> + +main_window_glade::main_window_glade( +) : Gtk::Window(Gtk::WINDOW_TOPLEVEL) +{ main_window = this; + gmm_data = new GlademmData(get_accel_group()); + main_window->set_title("%{APPNAME} Project"); + main_window->set_modal(false); + main_window->property_window_position().set_value(Gtk::WIN_POS_CENTER); + main_window->set_resizable(true); + main_window->property_destroy_with_parent().set_value(false); + main_window->show(); + main_window->signal_delete_event().connect(SigC::slot(*this, &main_window_glade::quit), false); +} + +main_window_glade::~main_window_glade() +{ delete gmm_data; +} diff --git a/languages/cpp/app_templates/gtk2mmapp/main_window_glade.hh b/languages/cpp/app_templates/gtk2mmapp/main_window_glade.hh new file mode 100644 index 00000000..3c0cc27a --- /dev/null +++ b/languages/cpp/app_templates/gtk2mmapp/main_window_glade.hh @@ -0,0 +1,48 @@ +%{HH_TEMPLATE} + +// DO NOT EDIT THIS FILE ! It was created using glade-- +// for gtk 2.8.3 and gtkmm 2.8.0 +// +// Please modify the corresponding derived classes in ./src/main_window.hh and./src/main_window.cc + +#ifndef _MAIN_WINDOW_GLADE_HH +# define _MAIN_WINDOW_GLADE_HH + + +#if !defined(GLADEMM_DATA) +#define GLADEMM_DATA +#include <gtkmm/accelgroup.h> + +class GlademmData +{ + + Glib::RefPtr<Gtk::AccelGroup> accgrp; +public: + + GlademmData(Glib::RefPtr<Gtk::AccelGroup> ag) : accgrp(ag) + { + } + + Glib::RefPtr<Gtk::AccelGroup> getAccelGroup() + { return accgrp; + } +}; +#endif //GLADEMM_DATA + +#include <gtkmm/window.h> + +class main_window_glade : public Gtk::Window +{ + + GlademmData *gmm_data; +public: + class Gtk::Window * main_window; +protected: + + main_window_glade(); + + ~main_window_glade(); +private: + virtual bool quit(GdkEventAny *ev) = 0; +}; +#endif diff --git a/languages/cpp/app_templates/gtk2mmapp/src-Makefile.am b/languages/cpp/app_templates/gtk2mmapp/src-Makefile.am new file mode 100644 index 00000000..a8c856e9 --- /dev/null +++ b/languages/cpp/app_templates/gtk2mmapp/src-Makefile.am @@ -0,0 +1,14 @@ +bin_PROGRAMS = %{APPNAMELC} + +%{APPNAMELC}_SOURCES = \ + %{APPNAMELC}.cc\ + main_window_glade.cc \ + main_window.cc + +noinst_HEADERS = \ + main_window_glade.hh \ + main_window.hh + +AM_CXXFLAGS = @CXXFLAGS@ @GTKMM_CFLAGS@ + +%{APPNAMELC}_LDADD = @LIBS@ @GTKMM_LIBS@ |