diff options
author | Timothy Pearson <[email protected]> | 2013-01-26 13:18:13 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-01-26 13:18:13 -0600 |
commit | 2fb700f92bb787fab0845a63a541cd5640daa449 (patch) | |
tree | c6f769db55585dd47a9fd415a40ee8b86926f683 /languages/cpp/app_templates/tdescreensaver | |
parent | fd1d1e1064eb09ddbbd67d3597c39856f5c0bc76 (diff) | |
download | tdevelop-2fb700f92bb787fab0845a63a541cd5640daa449.tar.gz tdevelop-2fb700f92bb787fab0845a63a541cd5640daa449.zip |
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'languages/cpp/app_templates/tdescreensaver')
12 files changed, 736 insertions, 0 deletions
diff --git a/languages/cpp/app_templates/tdescreensaver/.kdev_ignore b/languages/cpp/app_templates/tdescreensaver/.kdev_ignore new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/languages/cpp/app_templates/tdescreensaver/.kdev_ignore diff --git a/languages/cpp/app_templates/tdescreensaver/CMakeLists.txt b/languages/cpp/app_templates/tdescreensaver/CMakeLists.txt new file mode 100644 index 00000000..b1149d88 --- /dev/null +++ b/languages/cpp/app_templates/tdescreensaver/CMakeLists.txt @@ -0,0 +1,27 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_custom_target( tdescreensaver.tar.gz ALL + COMMAND tar zcf tdescreensaver.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} + tdescreensaver.desktop tdescreensaver.png tdescreensaver.h + tdescreensaverui.ui src-Makefile.am tdescreensaver.cpp + tdescreensaver.tdevelop subdirs +) + + +install( FILES + ${CMAKE_CURRENT_BINARY_DIR}/tdescreensaver.tar.gz tdescreensaver.png + DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard ) + + +install( FILES + tdescreensaver.kdevtemplate + DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates ) diff --git a/languages/cpp/app_templates/tdescreensaver/Makefile.am b/languages/cpp/app_templates/tdescreensaver/Makefile.am new file mode 100644 index 00000000..bee93bbc --- /dev/null +++ b/languages/cpp/app_templates/tdescreensaver/Makefile.am @@ -0,0 +1,19 @@ +dataFiles = tdescreensaver.desktop tdescreensaver.png tdescreensaver.h \ + tdescreensaverui.ui src-Makefile.am tdescreensaver.cpp \ + tdescreensaver.tdevelop subdirs + +templateName= tdescreensaver + +### 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/tdescreensaver/src-Makefile.am b/languages/cpp/app_templates/tdescreensaver/src-Makefile.am new file mode 100644 index 00000000..5e2caf20 --- /dev/null +++ b/languages/cpp/app_templates/tdescreensaver/src-Makefile.am @@ -0,0 +1,24 @@ +# Makefile.am for %{APPNAMELC}. +# + +AM_CPPFLAGS = -UQT_NO_ASCII_CAST +METASOURCES = AUTO + +INCLUDES = $(all_includes) +LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEUI) $(LIB_KPARTS) +LDADD = $(LIB_TDEUI) -ltdescreensaver -lm +bin_PROGRAMS = %{APPNAMELC}.kss + +%{APPNAMELC}_kss_SOURCES = %{APPNAMELC}ui.ui %{APPNAMELC}.cpp +%{APPNAMELC}_kss_LDADD = $(LIB_QT) $(LIB_TDECORE) $(LDADD) $(LIB_KSYCOCA) + +#datadir = $(kde_datadir)/%{APPNAMELC} + +desktop_DATA = %{APPNAMELC}.desktop +desktopdir = $(kde_appsdir)/System/ScreenSavers + +EXTRA_DIST = $(desktop_DATA) + +messages: rc.cpp + $(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp + $(XGETTEXT) *.cpp -o $(podir)/%{APPNAMELC}.pot diff --git a/languages/cpp/app_templates/tdescreensaver/subdirs b/languages/cpp/app_templates/tdescreensaver/subdirs new file mode 100644 index 00000000..0e678106 --- /dev/null +++ b/languages/cpp/app_templates/tdescreensaver/subdirs @@ -0,0 +1,3 @@ +doc +po +src diff --git a/languages/cpp/app_templates/tdescreensaver/tdescreensaver.cpp b/languages/cpp/app_templates/tdescreensaver/tdescreensaver.cpp new file mode 100644 index 00000000..f8e88db8 --- /dev/null +++ b/languages/cpp/app_templates/tdescreensaver/tdescreensaver.cpp @@ -0,0 +1,107 @@ +%{CPP_TEMPLATE} + +#include <stdlib.h> +#include <tqcheckbox.h> +#include <tqcolor.h> +#include <kapplication.h> +#include <klocale.h> +#include <kpushbutton.h> +#include <kconfig.h> +#include <kglobal.h> +#include "%{APPNAMELC}.h" +#include "%{APPNAMELC}ui.h" + +//! libtdescreensaver interface +extern "C" +{ + const char *kss_applicationName = "%{APPNAMELC}.kss"; + const char *kss_description = I18N_NOOP( "%{APPNAME}" ); + const char *kss_version = "2.2.0"; + + %{APPNAME} *kss_create( WId id ) + { + TDEGlobal::locale()->insertCatalogue("%{APPNAMELC}"); + return new %{APPNAME}( id ); + } + + TQDialog *kss_setup() + { + TDEGlobal::locale()->insertCatalogue("%{APPNAMELC}"); + return new %{APPNAME}Setup(); + } +} + +//----------------------------------------------------------------------------- +//! dialog to setup screen saver parameters +%{APPNAME}Setup::%{APPNAME}Setup( TQWidget *parent, const char *name ) + : %{APPNAME}UI( parent, name, TRUE ) +{ + /// @todo + //Connect your signals and slots here to configure the screen saver. + connect( OkayPushButton, TQT_SIGNAL( released() ), + TQT_SLOT( slotOkPressed() ) ); + connect( CancelPushButton, TQT_SIGNAL( released() ), + TQT_SLOT( slotCancelPressed() ) ); +} + + +//! read settings from config file +void %{APPNAME}Setup::readSettings() +{ + TDEConfig *config = TDEGlobal::config(); + config->setGroup( "Settings" ); + /// @todo + // Add your config options here... + CheckBox1->setChecked(config->readBoolEntry( "somesetting", false )); +} + + +//! Ok pressed - save settings and exit +void %{APPNAME}Setup::slotOkPressed() +{ + TDEConfig *config = TDEGlobal::config(); + config->setGroup( "Settings" ); + /// @todo + // Add your config options here. + config->writeEntry( "somesetting", CheckBox1->isChecked() ); + config->sync(); + + accept(); +} + +void %{APPNAME}Setup::slotCancelPressed() +{ + reject(); +} +//----------------------------------------------------------------------------- + + +%{APPNAME}::%{APPNAME}( WId id ) : KScreenSaver( id ) +{ + readSettings(); + blank(); +} + +%{APPNAME}::~%{APPNAME}() +{} + + +//! read configuration settings from config file +void %{APPNAME}::readSettings() +{ + TDEConfig *config = TDEGlobal::config(); + config->setGroup( "Settings" ); + /// @todo + // Add your config options here... + bool somesetting = config->readBoolEntry( "somesetting", false ); +} + + +void %{APPNAME}::blank() +{ + /// @todo + //Add your code to render the screen. + setBackgroundColor( TQColor(black) ); + // + erase(); +} diff --git a/languages/cpp/app_templates/tdescreensaver/tdescreensaver.desktop b/languages/cpp/app_templates/tdescreensaver/tdescreensaver.desktop new file mode 100644 index 00000000..b4ec0186 --- /dev/null +++ b/languages/cpp/app_templates/tdescreensaver/tdescreensaver.desktop @@ -0,0 +1,124 @@ +[Desktop Entry] +Exec=%{APPNAMELC}.kss +Icon=tdescreensaver +Type=Application +Actions=Setup;InWindow;Root; +X-TDE-Category=Miscellaneous +Name=%{APPNAME} + +[Desktop Action Setup] +Exec=%{APPNAMELC}.kss -setup +Name=Setup... +Name[br]=Kefluniadur ... +Name[ca]=Configuració... +Name[cy]=Gosod ... +Name[da]=Opsætning... +Name[de]=Einrichtung ... +Name[el]=Ρύθμιση... +Name[es]=Configuración... +Name[et]=Häälestus... +Name[eu]=Konfiguratu... +Name[fa]=برپایی... +Name[fr]=Configuration... +Name[ga]=Cumraigh... +Name[gl]=Configuración... +Name[hu]=Beállítások... +Name[it]=Imposta... +Name[ja]=設定... +Name[lt]=Nustatymas... +Name[ms]=Tetapan... +Name[nds]=Instellen... +Name[ne]=सेटअप... +Name[nl]=Instellen... +Name[pl]=Ustawienia... +Name[pt]=Configurar... +Name[pt_BR]=Configurar... +Name[ru]=Настроить... +Name[rw]=Iboneza... +Name[sk]=Nastavenie... +Name[sl]=Nastavi ... +Name[sr]=Постављање... +Name[sr@Latn]=Postavljanje... +Name[sv]=Inställning... +Name[tr]=Kurulum... +Name[zh_CN]=设置... +Name[zh_TW]=設定... +Icon=tdescreensaver + +[Desktop Action InWindow] +Exec=%{APPNAMELC}.kss -window-id %w +Name=Display in Specified Window +Name[br]=Diskwel er prenestr spisaet +Name[ca]=Mostra a la finestra especificada +Name[cy]=Dangos mewn Ffenestr Benodol +Name[da]=Vis i specificeret vindue +Name[de]=Im angegebenen Fenster anzeigen +Name[el]=Προβολή στο ορισμένο παράθυρο +Name[es]=Mostrar en la ventana especificada +Name[et]=Kuva määratud aknas +Name[eu]=Bistaratu zehaztutako lehioan +Name[fa]=نمایش در پنجرۀ مشخصشده +Name[fr]=Afficher dans la fenêtre spécifiée +Name[ga]=Taispeáin san Fhuinneog Sonraithe +Name[gl]=Mostrar na xanela especificada +Name[hu]=Megjelenítés egy adott ablakban +Name[it]=Mostra in una finestra specificata +Name[ja]=指定したウィンドウに表示 +Name[lt]=Rodyti nurodytame lange +Name[ms]=Papar dalam Tetingkap Yang Dinyatakan +Name[nds]=Binnen angeven Finster wiesen +Name[ne]=निर्दिष्ट सञ्झ्यालमा प्रर्दशन +Name[nl]=Weergave in aangegeven venster +Name[pl]=Pokazywanie w podanym oknie +Name[pt]=Mostrar na Janela Indicada +Name[pt_BR]=Exibir na Janela Especificada +Name[ru]=Показать в указанном окне +Name[rw]=Kwerekana mu Idirishya Ryihariye +Name[sk]=Zobraziť v špecifickom okne +Name[sl]=Prikaži v določenem oknu +Name[sr]=Прикажи у наведеном прозору +Name[sr@Latn]=Prikaži u navedenom prozoru +Name[sv]=Visa i angivet fönster +Name[tr]=Belirtilen Pencerede Göster +Name[zh_CN]=在指定窗口中显示 +Name[zh_TW]=顯示在指定視窗 +NoDisplay=true + +[Desktop Action Root] +Exec=%{APPNAMELC}.kss -root +Name=Display in Root Window +Name[br]=Diskwel er prenestr gwrizienn +Name[ca]=Mostra a la finestra arrel +Name[cy]=Dangos mewn Ffenestr Wraidd +Name[da]=Vis i rod-vindue +Name[de]=Im Root-Fenster anzeigen +Name[el]=Προβολή στο βασικό παράθυρο +Name[es]=Mostrar en la ventana raíz +Name[et]=Kuva juuraknas +Name[eu]=Bistaratu erro-lehioan +Name[fa]=نمایش در پنجرۀ ریشه +Name[fr]=Afficher dans la fenêtre racine +Name[ga]=Taispeáin sa bhFréamhfhuinneog +Name[gl]=Mostrar na xanela raíz +Name[hu]=Megjelenítés a gyökérablakban +Name[it]=Mostra nella finestra radice +Name[ja]=ルートウィンドウに表示 +Name[lt]=Rodyti root lange +Name[ms]=Papar dalam Tetingkap Root +Name[nds]=Binnen Wörtelfinster wiesen +Name[ne]=रूट सञ्झ्यालमा प्रर्दशन +Name[nl]=Weergave in hoofdvenster +Name[pl]=Pokazywanie w głównym oknie +Name[pt]=Mostrar na Janela de Fundo +Name[pt_BR]=Exibir na Janela Raiz +Name[ru]=Показать в главном окне +Name[rw]=Kwerekana mu Idirishya Umuzi +Name[sk]=Zobraziť v koreňovom okne +Name[sl]=Prikaži v korenskem oknu +Name[sr]=Прикажи у кореном прозору +Name[sr@Latn]=Prikaži u korenom prozoru +Name[sv]=Visa i rotfönster +Name[tr]=Kök Pencerede Göster +Name[zh_CN]=在根窗口中显示 +Name[zh_TW]=顯示在根視窗 +NoDisplay=true diff --git a/languages/cpp/app_templates/tdescreensaver/tdescreensaver.h b/languages/cpp/app_templates/tdescreensaver/tdescreensaver.h new file mode 100644 index 00000000..e066852a --- /dev/null +++ b/languages/cpp/app_templates/tdescreensaver/tdescreensaver.h @@ -0,0 +1,37 @@ +%{CPP_TEMPLATE} + +#ifndef %{APPNAME}_H__ +#define %{APPNAME}_H__ + +#include "tdescreensaver.h" +#include "%{APPNAMELC}ui.h" + +class %{APPNAME} : public KScreenSaver +{ + Q_OBJECT + +public: + %{APPNAME}( WId drawable ); + virtual ~%{APPNAME}(); +private: + void readSettings(); + void blank(); +}; + +class %{APPNAME}Setup : public %{APPNAME}UI +{ + Q_OBJECT + +public: + %{APPNAME}Setup( TQWidget *parent = NULL, const char *name = NULL ); + +private slots: + void slotOkPressed(); + void slotCancelPressed(); + +private: + void readSettings(); + %{APPNAME} *saver; +}; + +#endif diff --git a/languages/cpp/app_templates/tdescreensaver/tdescreensaver.kdevtemplate b/languages/cpp/app_templates/tdescreensaver/tdescreensaver.kdevtemplate new file mode 100644 index 00000000..df27d577 --- /dev/null +++ b/languages/cpp/app_templates/tdescreensaver/tdescreensaver.kdevtemplate @@ -0,0 +1,203 @@ +# TDE Config File +[General] +Name=TDE Screen Saver +Name[br]=Damanter skramm TDE +Name[ca]=Salvapantalles per al TDE +Name[da]=TDE pauseskærm +Name[de]=TDE-Bildschirmschoner +Name[el]=Προφύλαξη οθόνης του TDE +Name[es]=Salvapantallas para TDE +Name[et]=TDE ekraanisäästja +Name[eu]=TDE pantaila-babeslea +Name[fa]=محافظ صفحۀ TDE +Name[fr]=Écran de veille TDE +Name[ga]=Spárálaí Scáileáin TDE +Name[gl]=Salvapantallas TDE +Name[hu]=TDE-s képernyővédő +Name[it]=Salva schermo di TDE +Name[ja]=TDE スクリーンセーバー +Name[nds]=TDE-Pausschirm +Name[ne]=केडीई स्क्रिन सर्भर +Name[nl]=TDE-schermbeveiliging +Name[pl]=Wygaszacz ekranu TDE +Name[pt]=Protector de Ecrã do TDE +Name[pt_BR]=Protetor de tela do TDE +Name[ru]=Хранитель экрана для TDE +Name[sk]=TDE šetrič obrazovky +Name[sl]=Ohranjevalnik zaslona za TDE +Name[sr]=TDE чувар екрана +Name[sr@Latn]=TDE čuvar ekrana +Name[sv]=TDE-skärmsläckare +Name[tr]=TDE Ekran Koruyucusu +Name[zh_CN]= TDE 屏幕保护程序 +Name[zh_TW]=TDE 螢幕保護程式 +Icon=tdescreensaver.png +Category=C++/TDE +Comment=Generates a framework for a TDE screensaver. +Comment[ca]=Genera una infraestructura per a un salvapantalles de TDE. +Comment[da]=Genererer et skelet for en TDE-pauseskærm. +Comment[de]=Erstellt das Gerüst für einen TDE-Bildschirmschoner. +Comment[el]=Δημιουργεί ένα πλαίσιο για μια προφύλαξη οθόνης του TDE. +Comment[es]=Genera una infraestructura para un salvapantallas de TDE +Comment[et]=TDE ekraanisäästja raamistiku loomine. +Comment[eu]=TDE-ren pantaila-babesle baten lan-marko bat sortzen du. +Comment[fa]=چارچوبی برای محافظ صفحۀ TDE تولید میکند. +Comment[fr]=Génère une infrastructure pour un écran de veille TDE. +Comment[gl]=Xera un contorno de traballo para un salvapantallas TDE. +Comment[hu]=Létrehoz egy alap TDE-s képernyővédőt. +Comment[it]=Genera l'infrastruttura per un salvaschermo di TDE. +Comment[ja]=TDE スクリーンセーバーのフレームワークを作成します +Comment[nds]=Stellt dat Rahmenwark för en TDE-Pausschirm op. +Comment[ne]=केडीई स्क्रिनसेभरका लागि फ्रेमवर्क उत्पन्न गर्दछ +Comment[nl]=Genereert een framework voor een TDE-schermbeveiliging. +Comment[pl]=Generuje szablon wygaszacza ekranu dla TDE. +Comment[pt]=Gera a plataforma para um protector de ecrã do TDE. +Comment[pt_BR]=Gera a plataforma para um protector de ecrã do TDE. +Comment[ru]=Создание инфраструктуры хранителя экрана для TDE. +Comment[sk]=Vygeneruje framework pre TDE šetrič obrazovky. +Comment[sl]=Ustvari ogrodje ohranjevalnika zaslona za TDE. +Comment[sr]=Прави радни оквир за TDE чувар екрана. +Comment[sr@Latn]=Pravi radni okvir za TDE čuvar ekrana. +Comment[sv]=Skapar ett ramverk för en TDE-skärmsläckare +Comment[tr]=Bir TDE ekran koruyucusu için bir çatı oluşturulur. +Comment[zh_CN]=生成 TDE 屏幕保护程序框架。 +Comment[zh_TW]=產生一個 TDE 螢幕保護程式的框架 +FileTemplates=h,CStyle,cpp,CStyle +ShowFilesAfterGeneration=%{dest}/src/%{APPNAMELC}.cpp +Archive=tdescreensaver.tar.gz + +[ADMIN] +Type=include +File=%{tdevelop}/template-common/admin.kdevtemplate + +[GNU] +Type=include +File=%{tdevelop}/template-common/gnu.kdevtemplate + +[MKDIR_DOCBOOK1] +Type=mkdir +Dir=%{dest}/doc + +[MKDIR_DOCBOOK2] +Type=mkdir +Dir=%{dest}/doc/en + +[FILE1] +Type=install +EscapeXML=true +Source=%{tdevelop}/template-common/kde-doc-Makefile.am +Dest=%{dest}/doc/Makefile.am + +[FILE2] +Type=install +Source=%{tdevelop}/template-common/kde-doc-en-Makefile.am +Dest=%{dest}/doc/en/Makefile.am + +[FILE3] +Type=install +EscapeXML=true +Source=%{tdevelop}/template-common/kde-index.docbook +Dest=%{dest}/doc/en/index.docbook + +[FILE4] +Type=install +EscapeXML=true +Source=%{src}/tdescreensaver.tdevelop +Dest=%{dest}/%{APPNAMELC}.tdevelop + +[MkDir3] +Type=mkdir +Dir=%{dest}/src + +[FILE5] +Type=install +Source=%{tdevelop}/template-common/kde-app.lsm +Dest=%{dest}/src/%{APPNAMELC}.lsm + +[MkDir4] +Type=mkdir +Dir=%{dest}/po + +[FILE6] +Type=install +Source=%{tdevelop}/template-common/kde-po-Makefile.am +Dest=%{dest}/po/Makefile.am + +[FILE7] +Type=install +Source=%{tdevelop}/template-common/kde-Makefile.am +Dest=%{dest}/Makefile.am + +[FILE8] +Type=install +Source=%{tdevelop}/template-common/kde-Makefile.cvs +Dest=%{dest}/Makefile.cvs + +[FILE9] +Type=install +Source=%{tdevelop}/template-common/tde-configure.in.in +Dest=%{dest}/configure.in.in + +[FILE10] +Type=install +Source=%{src}/subdirs +Dest=%{dest}/subdirs + +[FILE11] +Type=install +Source=%{src}/src-Makefile.am +Dest=%{dest}/src/Makefile.am + +[FILE12] +Type=install +Source=%{src}/tdescreensaver.cpp +Dest=%{dest}/src/%{APPNAMELC}.cpp + +[FILE13] +Type=install +Source=%{src}/tdescreensaver.h +Dest=%{dest}/src/%{APPNAMELC}.h + +[FILE14] +Type=install +Source=%{src}/tdescreensaver.desktop +Dest=%{dest}/src/%{APPNAMELC}.desktop + +[FILE15] +Type=install +EscapeXML=true +Source=%{src}/tdescreensaverui.ui +Dest=%{dest}/src/%{APPNAMELC}ui.ui + +[MSG] +Type=message +Comment=A screensaver application was created in %{dest} +Comment[ca]=Una aplicació de salvapantalles ha estat creada en %{dest} +Comment[da]=Et pauseskærmsprogram blev oprettet i %{dest} +Comment[de]=Ein Bildschirmschoner wurde in %{dest} erstellt. +Comment[el]=Μια εφαρμογή προφύλαξης οθόνης δημιουργήθηκε στο %{dest} +Comment[es]=Una aplicación salvapantallas ha sido creada en %{dest} +Comment[et]=Ekraanisäästja rakendus loodi asukohta %{dest} +Comment[eu]=Pantaila-babesle baten aplikazioa sortu da hemen: %{dest} +Comment[fa]=یک کاربرد محافظ صفحه در %{dest} ایجاد شد +Comment[fr]=Une application écran de veille a été créé dans %{dest} +Comment[ga]=Cruthaíodh spárálaí scáileáin i %{dest} +Comment[gl]=Creouse unha aplicación salvapantallas en %{dest} +Comment[hu]=Létrejött egy alap képernyővédő program itt: %{dest} +Comment[it]=È stata creata un'applicazione salvaschermo in %{dest} +Comment[ja]=スクリーンセーバーアプリケーションを %{dest} に作成しました +Comment[nds]=In %{dest} wöör en Pausschirm opstellt +Comment[ne]=स्क्रिनसेभर अनुप्रयोग %{dest} मा सिर्जना गरियो +Comment[nl]=Een schermbeveiligingstoepassing is aangemaakt in %{dest} +Comment[pl]=Program wygaszacza ekranu został utworzony w %{dest} +Comment[pt]=Foi criada uma aplicação protectora do ecrã em %{dest} +Comment[pt_BR]=Foi criada uma aplicação protectora do ecrã em %{dest} +Comment[ru]=Приложение хранителя экрана создано в %{dest} +Comment[sk]=Aplikácia šetriča obrazovky bola vytvorená v %{dest} +Comment[sl]=Program ohranjevalnika zaslona je bil ustvarjen v %{dest} +Comment[sr]=Програм чувара екрана направљен је у %{dest} +Comment[sr@Latn]=Program čuvara ekrana napravljen je u %{dest} +Comment[sv]=Ett skärmsläckarprogram skapades i %{dest} +Comment[tr]=Bir ekran koruyucusu uygulaması %{dest} içinde yaratıldı. +Comment[zh_CN]=在 %{dest} 中创建了屏幕保护应用程序 +Comment[zh_TW]=一個螢幕保護程式已建立於 %{dest} diff --git a/languages/cpp/app_templates/tdescreensaver/tdescreensaver.png b/languages/cpp/app_templates/tdescreensaver/tdescreensaver.png Binary files differnew file mode 100644 index 00000000..e91ec2e2 --- /dev/null +++ b/languages/cpp/app_templates/tdescreensaver/tdescreensaver.png diff --git a/languages/cpp/app_templates/tdescreensaver/tdescreensaver.tdevelop b/languages/cpp/app_templates/tdescreensaver/tdescreensaver.tdevelop new file mode 100644 index 00000000..38429f89 --- /dev/null +++ b/languages/cpp/app_templates/tdescreensaver/tdescreensaver.tdevelop @@ -0,0 +1,113 @@ +<?xml version="1.0"?> +<tdevelop> + <general> + <author>%{AUTHOR}</author> + <email>%{EMAIL}</email> + <version>%{VERSION}</version> + <projectmanagement>KDevTDEAutoProject</projectmanagement> + <primarylanguage>C++</primarylanguage> + <keywords> + <keyword>C++</keyword> + <keyword>Code</keyword> + <keyword>Qt</keyword> + <keyword>TDE</keyword> + <keyword>kioslave</keyword> + </keywords> + </general> + <kdevcppsupport> + <qt> + <version>3</version> + <used>true</used> + <includestyle>3</includestyle> + <designerintegration>EmbeddedKDevDesigner</designerintegration> + </qt> + </kdevcppsupport> + +<kdevautoproject> + <general> + <activetarget>src/lib%{APPNAMELC}.la</activetarget> + <useconfiguration>debug</useconfiguration> + </general> + <configurations> + <optimized> + <builddir>optimized</builddir> + <ccompiler>kdevgccoptions</ccompiler> + <cxxcompiler>kdevgppoptions</cxxcompiler> + <f77compiler>kdevg77options</f77compiler> + <cxxflags>-O2 -g0</cxxflags> + </optimized> + <debug> + <configargs>--enable-debug=full</configargs> + <builddir>debug</builddir> + <ccompiler>kdevgccoptions</ccompiler> + <cxxcompiler>kdevgppoptions</cxxcompiler> + <f77compiler>kdevg77options</f77compiler> + <cxxflags>-O0 -g3</cxxflags> + </debug> + </configurations> + </kdevautoproject> + <kdevfileview> + <groups> + <group pattern="*.cpp;*.cxx;*.h" name="Sources" /> + <group pattern="*.po;*.ts" 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>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>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>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> + <ignoreqt_xml> + <toc>qmake User Guide</toc> + </ignoreqt_xml> + </kdevdoctreeview> + <kdevdebugger> + <general> + <dbgshell>libtool</dbgshell> + </general> + </kdevdebugger> + <kdevfilecreate> + <filetypes/> + <useglobaltypes> + <type ext="ui" /> + <type ext="cpp" /> + <type ext="h" /> + </useglobaltypes> + </kdevfilecreate> + <kdevdocumentation> + <projectdoc> + <docsystem>Doxygen Documentation Collection</docsystem> + <docurl>%{APPNAMELC}.tag</docurl> + </projectdoc> + </kdevdocumentation> +</tdevelop> diff --git a/languages/cpp/app_templates/tdescreensaver/tdescreensaverui.ui b/languages/cpp/app_templates/tdescreensaver/tdescreensaverui.ui new file mode 100644 index 00000000..e83bcda9 --- /dev/null +++ b/languages/cpp/app_templates/tdescreensaver/tdescreensaverui.ui @@ -0,0 +1,79 @@ +<!DOCTYPE UI><UI version="3.0" stdsetdef="1"> +<class>%{APPNAME}UI</class> +<comment>This is the main UI for setting up your screen saver.</comment> +<author>Ian Reinhart Geiser</author> +<widget class="TQDialog"> + <property name="name"> + <cstring>%{APPNAMELC}cfg</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>257</width> + <height>58</height> + </rect> + </property> + <property name="caption"> + <string>Screen Saver Config</string> + </property> + <widget class="TQLayoutWidget"> + <property name="name"> + <cstring>Layout2</cstring> + </property> + <property name="geometry"> + <rect> + <x>5</x> + <y>0</y> + <width>255</width> + <height>57</height> + </rect> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="TQCheckBox" row="0" column="0"> + <property name="name"> + <cstring>CheckBox1</cstring> + </property> + <property name="text"> + <string>Set some setting</string> + </property> + </widget> + <widget class="TQLayoutWidget" row="1" column="0"> + <property name="name"> + <cstring>Layout1</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + + <widget class="TQPushButton"> + <property name="name"> + <cstring>OkayPushButton</cstring> + </property> + <property name="text"> + <string>&OK</string> + </property> + </widget> + <widget class="TQPushButton"> + <property name="name"> + <cstring>CancelPushButton</cstring> + </property> + <property name="text"> + <string>&Cancel</string> + </property> + </widget> + </hbox> + </widget> + </grid> + </widget> +</widget> +<includes> + <include location="global" impldecl="in implementation">kdialog.h</include> +</includes> +<layoutdefaults spacing="6" margin="11"/> +<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/> +</UI> |