diff options
Diffstat (limited to 'languages/cpp/app_templates/kdevlang')
-rw-r--r-- | languages/cpp/app_templates/kdevlang/CMakeLists.txt | 27 | ||||
-rw-r--r-- | languages/cpp/app_templates/kdevlang/Makefile.am | 17 | ||||
-rw-r--r-- | languages/cpp/app_templates/kdevlang/README.dox | 55 | ||||
-rw-r--r-- | languages/cpp/app_templates/kdevlang/app.tdevelop | 115 | ||||
-rw-r--r-- | languages/cpp/app_templates/kdevlang/kdevlang-configure.in.in | 10 | ||||
-rw-r--r-- | languages/cpp/app_templates/kdevlang/kdevlang.desktop | 14 | ||||
-rw-r--r-- | languages/cpp/app_templates/kdevlang/kdevlang.kdevtemplate | 157 | ||||
-rw-r--r-- | languages/cpp/app_templates/kdevlang/kdevlang.png | bin | 483 -> 0 bytes | |||
-rw-r--r-- | languages/cpp/app_templates/kdevlang/kdevlang.rc | 11 | ||||
-rw-r--r-- | languages/cpp/app_templates/kdevlang/kdevlang_part.cpp | 154 | ||||
-rw-r--r-- | languages/cpp/app_templates/kdevlang/kdevlang_part.h | 44 | ||||
-rw-r--r-- | languages/cpp/app_templates/kdevlang/src-Makefile.am | 14 |
12 files changed, 0 insertions, 618 deletions
diff --git a/languages/cpp/app_templates/kdevlang/CMakeLists.txt b/languages/cpp/app_templates/kdevlang/CMakeLists.txt deleted file mode 100644 index 483f85d9..00000000 --- a/languages/cpp/app_templates/kdevlang/CMakeLists.txt +++ /dev/null @@ -1,27 +0,0 @@ -################################################# -# -# (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( kdevlang.tar.gz ALL - COMMAND tar zcf kdevlang.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} - src-Makefile.am kdevlang_part.cpp kdevlang_part.h - kdevlang.rc kdevlang.desktop app.tdevelop - kdevlang-configure.in.in README.dox -) - - -install( FILES - ${CMAKE_CURRENT_BINARY_DIR}/kdevlang.tar.gz kdevlang.png - DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard ) - - -install( FILES - kdevlang.kdevtemplate - DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates ) diff --git a/languages/cpp/app_templates/kdevlang/Makefile.am b/languages/cpp/app_templates/kdevlang/Makefile.am deleted file mode 100644 index 7afa5be8..00000000 --- a/languages/cpp/app_templates/kdevlang/Makefile.am +++ /dev/null @@ -1,17 +0,0 @@ -dataFiles = src-Makefile.am kdevlang_part.cpp kdevlang_part.h kdevlang.rc \ - kdevlang.desktop app.tdevelop kdevlang-configure.in.in README.dox -templateName = kdevlang - -### 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/kdevlang/README.dox b/languages/cpp/app_templates/kdevlang/README.dox deleted file mode 100644 index 7069f3a5..00000000 --- a/languages/cpp/app_templates/kdevlang/README.dox +++ /dev/null @@ -1,55 +0,0 @@ -/** \class %{APPNAME} -Put a brief description here, the brief description ends at the first dot. -Put a more detailed description of your part in these lines. It can span -over several lines. You can even use some html commands in these lines like: -<code>This is code</code>, html links <a href="http://somelocation">link text</a>, -and images. - -\authors <a href="mailto:%{EMAIL}">%{AUTHOR}</a> -\authors <a href="mailto:2nd author AT provider.com">2nd author full name</a> -... -\authors <a href="mailto:nth author AT provider.com">nth author full name</a> - -\maintainer <a href="mailto:%{EMAIL}">%{AUTHOR}</a> -\maintainer <a href="mailto:2nd maintainer AT provider.com">2nd maintainer full name</a> -... -\maintainer <a href="mailto:nth maintainer AT provider.com">nth maintainer full name</a> - -\feature Describe the first feature -\feature Describe the second feature -... -\feature Describe the last feature - -\bug bugs in <a href="http://bugs.kde.org/buglist.cgi?product=tdevelop&component=YOUR_COMPONENT_NAME& -bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&order=Bug+Number"> -YOUR_COMPONENT_NAME at Bugzilla database</a> -\bug Describe a the 1st bug that you know of, but probably hasn't been reported yet. -.. -\bug Describe a the nth bug that you know of, but probably hasn't been reported yet. - -\requirement Describe a the 1st requirement of your part. -\requirement Describe a the 2nd requirement of your part. -... -\requirement Describe a the nth requirement of your part. - -\todo Describe a the 1st TODO of your part. -\todo Describe a the 2nd TODO of your part. -... -\todo Describe a the nth TODO of your part. - -\faq <b>First frequenly asked question about your part ?</b> Answer. -\faq <b>Second frequenly asked question about your part ?</b> Answer. -... -\faq <b>Last frequenly asked question about your part ?</b> Answer. - -\note First note text. -\note Second note text. -... -\note Last note text. - -\warning First warning text. -\warning Second warning text. -... -\warning Last warning text. - -*/ diff --git a/languages/cpp/app_templates/kdevlang/app.tdevelop b/languages/cpp/app_templates/kdevlang/app.tdevelop deleted file mode 100644 index 3f477a08..00000000 --- a/languages/cpp/app_templates/kdevlang/app.tdevelop +++ /dev/null @@ -1,115 +0,0 @@ -<?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>KDevelop</keyword> - </keywords> - </general> - <kdevcppsupport> - <qt> - <version>3</version> - <used>true</used> - <includestyle>3</includestyle> - <designerintegration>EmbeddedKDevDesigner</designerintegration> - </qt> - </kdevcppsupport> - - <kdevautoproject> - <general> - <activetarget>src/%{APPNAMELC}</activetarget> - </general> - <run> - <mainprogram>src/%{APPNAMELC}</mainprogram> - </run> - <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="*.ui" name="User Interface" /> - <group pattern="*.png" name="Icons" /> - <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>w3c-dom-level2-html</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>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>w3c-svg</toc> - <toc>sw</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/kdevlang/kdevlang-configure.in.in b/languages/cpp/app_templates/kdevlang/kdevlang-configure.in.in deleted file mode 100644 index 2e3823b0..00000000 --- a/languages/cpp/app_templates/kdevlang/kdevlang-configure.in.in +++ /dev/null @@ -1,10 +0,0 @@ -#MIN_CONFIG(3.0.0) - -AM_INIT_AUTOMAKE(%{APPNAMELC}, %{VERSION}) -AC_C_BIGENDIAN -AC_CHECK_TDEMAXPATHLEN - -KDE_CHECK_HEADERS([tdevelop/kdevcore.h]) -KDE_CHECK_LIB([tdevelop],main, - [LIBTDEVELOP="-ltdevelop"]) -AC_SUBST(LIBTDEVELOP) diff --git a/languages/cpp/app_templates/kdevlang/kdevlang.desktop b/languages/cpp/app_templates/kdevlang/kdevlang.desktop deleted file mode 100644 index 93bb3c3b..00000000 --- a/languages/cpp/app_templates/kdevlang/kdevlang.desktop +++ /dev/null @@ -1,14 +0,0 @@ -[Desktop Entry] -Type=Service -Exec=blubb -Comment=%{APPNAME} -Comment[pt]=%{APPNAME$} -Name=KDev%{APPNAME} -Name[nds]=KDev%{ProgNaam} -Name[sv]=TDevelop %{APPNAME} -Name[ta]=கெடெவ்%{APPNAME} -Icon=tdevelop -ServiceTypes=TDevelop/LanguageSupport -X-TDevelop-Language=ChangeMe -X-TDE-Library=libkdev%{APPNAMELC} -X-TDevelop-Version=3 diff --git a/languages/cpp/app_templates/kdevlang/kdevlang.kdevtemplate b/languages/cpp/app_templates/kdevlang/kdevlang.kdevtemplate deleted file mode 100644 index 6d852324..00000000 --- a/languages/cpp/app_templates/kdevlang/kdevlang.kdevtemplate +++ /dev/null @@ -1,157 +0,0 @@ -# TDE Config File -[General] -Name=TDevelop Language Support Plugin (Standalone build) -Name[ca]=Connector per al suport de llenguatge a TDevelop (de construcció aïllada) -Name[da]=TDevelop plugin for sprogstøttet (alenestående bygning) -Name[de]=TDevelop-Modul für Sprachunterstützung (Unabhängige Erstellung) -Name[el]=Πρόσθετο υποστήριξης γλώσσας του TDevelop (αυτόνομη κατασκευή) -Name[es]=Complemento de implementación de lenguaje para TDevelop (construcción independiente) -Name[et]=TDevelopi keeletoetuse plugin (autonoomne) -Name[eu]=TDevelop-en lengoaien euskarrien interfazea (eraikuntza autonomoak) -Name[fa]=وصلۀ پشتیبانی زبان TDevelop )ساخت خوداتکا( -Name[fr]=Module externe de prise en charge de langage de TDevelop (construction autonome) -Name[ga]=Breiseán Tacaíochta Teanga le haghaidh TDevelop (Tógáil Shaorsheasaimh) -Name[gl]=Extensión de soporte de linguaxes para TDevelop (compilación independente) -Name[hu]=TDevelop nyelvtámogató modul (önálló) -Name[it]=Plugin di supporto per linguaggio di TDevelop (compilazione indipendente) -Name[ja]=TDevelop 言語サポートプラグイン (スタンダローンビルド) -Name[nds]=TDevelop-Moduul för Spraakünnerstütten (Enkelprogramm) -Name[ne]=केडीई विकास भाषा समर्थन प्लगइन (स्ट्यान्डअलोन निर्माण) -Name[nl]=TDEvelop Taalondersteuning Plugin (Standalone build) -Name[pl]=Wtyczka TDevelopa do obsługi języka (budowana oddzielnie) -Name[pt]='Plugin' de Suporte a Linguagens do TDevelop (compilação autónoma) -Name[pt_BR]='Plugin' de Suporte a Linguagens do TDevelop (compilação autónoma) -Name[ru]=Интерфейс языковой поддержки для TDevelop (внешний) -Name[sk]=TDevelop modul pre jazykovú podporu (samostatný build) -Name[sl]=Vstavek jezikovne podpore za TDevelop (samostojna izgradnja) -Name[sr]=TDevelop-ов интерфејс за језичку подршку (самостална градња) -Name[sr@Latn]=TDevelop-ov interfejs za jezičku podršku (samostalna gradnja) -Name[sv]=TDevelop-insticksprogram för språkstöd (att bygga fristående) -Name[tr]=TDevelop Dil Desteği Eklentisi (Kendi başına çalışabilen kurulum) -Name[zh_CN]=TDevelop 语言支持插件(独立编译) -Name[zh_TW]=TDevelop 語言支援外掛程式(單獨建立) -Category=C++/TDevelop/ -Comment=This generates a language support plugin for TDevelop, to be built outside of the TDevelop source tree. -Comment[ca]=Genera un connector per al suport de llenguatge a TDevelop, per a que es construeixi fora de l'arbre de fonts de TDevelop. -Comment[da]=Dette genererer en sprogstøtte-plugin for TDevelop, der skal bygges udenfor TDevelop's kildetræ. -Comment[de]=Hiermit wird ein Sprachunterstützungsmodul für TDevelop generiert, das außerhalb des Quelltextbaumes von TDevelop erstellt wird. -Comment[el]=Αυτό δημιουργεί ένα πρόσθετο υποστήριξης γλώσσας για το TDevelop, για την κατασκευή του έξω από το δέντρο πηγαίου κώδικα του TDevelop. -Comment[es]=Genera un complemento de implementación de lenguaje para TDevelop, para ser construido fuera del árbol de código fuente de TDevelop. -Comment[et]=TDevelopi keeletoetuse plugina loomine, mida saab ehitada väljaspool TDevelopi lähtekoodipuud. -Comment[eu]=Honek TDevelop-en lengoai-euskarrirako plugin bat sortzen du, TDevelop-en iturburu zuhaitzetik at eraikitzeko. -Comment[fa]=یک وصلۀ پشتیبان برای TDevelop تولید میکند، تا در بیرون درخت منبع TDevelop ساخته شود. -Comment[fr]=Génère un module externe de prise en charge de langage pour TDevelop, à construire en dehors de l'arborescence des sources de TDevelop. -Comment[gl]=Isto xera unha extensión de soporte de linguaxes para TDevelop que se compilará fóra da árbore de código de TDevelop. -Comment[hu]=Létrehoz egy nyelvtámogató modult a TDevelophoz, mely a TDevelopos forráskönyvtáron kívül fordítható le. -Comment[it]=Genera un plugin di supporto per linguaggio per TDevelop, deve essere compilato fuori dell'albero sorgente di TDevelop. -Comment[nds]=Dit stellt en Spraakünnerstütten-Moduul för TDevelop op, dat buten den TDevelop-Bornboom kompileert warrt. -Comment[ne]=यसले केडीई विकासका लागि केडीई विकास स्रोत ट्रीको बाहिर निर्माण गर्न, भाषा समर्थन प्लगइन उत्पन्न गर्दछ । -Comment[nl]=Dit genereert een taalondersteuningsplugin voor TDEvelop, welke buiten de TDevelop sourcetree wordt gebouwd. -Comment[pl]=Generuje wtyczkę do obsługi języka w TDevelopie. Wtyczka jest budowana poza drzewem źródłowym TDevelopa. -Comment[pt]=Isto gera um 'plugin' de suporte de linguagens para o TDevelop, que possa ser compilado fora da árvore de código do TDevelop. -Comment[pt_BR]=Isto gera um 'plugin' de suporte de linguagens para o TDevelop, que possa ser compilado fora da árvore de código do TDevelop. -Comment[ru]=Создание интерфейса языковой поддержки для TDevelop со сборкой вне исходного кода TDevelop. -Comment[sk]=Vygeneruje modul pre jazykovú podporu pre TDevelop, tak aby ho bolo možné kompilovať mimo zdrojového stromu TDevelop. -Comment[sr]=Ово прави прикључак за језичку подршку за TDevelop, који се гради ван TDevelop-овог изворног стабла. -Comment[sr@Latn]=Ovo pravi priključak za jezičku podršku za TDevelop, koji se gradi van TDevelop-ovog izvornog stabla. -Comment[sv]=Detta skapar ett TDevelop-insticksprogram för språkstöd, att bygga utanför TDevelops källkodsträd. -Comment[tr]=Bu TDevelop için, TDevelop kaynak ağacının dışında olacak, bir dil desteği eklentisi yaratır. -Comment[zh_CN]=这将生成 TDevelop 的语言支持插件,可以在 TDevelop 源代码树之外编译。 -Comment[zh_TW]=產生一個 TDevelop 語言支援外掛程式,建立在 TDevelop 程式源碼樹之外。 -FileTemplates=h,CStyle,cpp,CStyle -ShowFilesAfterGeneration=%{dest}/src/%{APPNAMELC}_part.cpp -Archive=kdevlang.tar.gz - -[ADMIN] -Type=include -File=%{tdevelop}/template-common/admin.kdevtemplate - -[GNU] -Type=include -File=%{tdevelop}/template-common/gnu.kdevtemplate - -[FILE1] -Type=install -EscapeXML=true -Source=%{src}/app.tdevelop -Dest=%{dest}/%{APPNAMELC}.tdevelop - -[FILE2] -Type=install -Source=%{tdevelop}/template-common/kde-Makefile.am -Dest=%{dest}/Makefile.am - -[FILE3] -Type=install -Source=%{tdevelop}/template-common/kde-Makefile.cvs -Dest=%{dest}/Makefile.cvs - -[FILE5] -Type=install -Source=%{src}/kdevlang-configure.in.in -Dest=%{dest}/configure.in.in - -[MkDir1] -Type=mkdir -Dir=%{dest}/src - -[FILE6] -Type=install -Source=%{src}/src-Makefile.am -Dest=%{dest}/src/Makefile.am - -[FILE7] -Type=install -Source=%{src}/kdevlang_part.cpp -Dest=%{dest}/src/%{APPNAMELC}_part.cpp - -[FILE8] -Type=install -Source=%{src}/kdevlang_part.h -Dest=%{dest}/src/%{APPNAMELC}_part.h - -[FILE9] -Type=install -EscapeXML=true -Source=%{src}/kdevlang.rc -Dest=%{dest}/src/kdev%{APPNAMELC}.rc - -[FILE10] -Type=install -Source=%{src}/kdevlang.desktop -Dest=%{dest}/src/kdev%{APPNAMELC}.desktop - -[FILE11] -Type=install -Source=%{src}/README.dox -Dest=%{dest}/src/README.dox - -[MSG] -Type=message -Comment=A language plugin for TDevelop for standalone build was created in %{dest} -Comment[ca]=Un connector per a llenguatge a TDevelop i de construcció aïllada ha estat creat en %{dest} -Comment[da]=Et sprog-plugin for TDevelop for alenestående bygning blev oprettet i %{dest} -Comment[de]=Ein Sprachunterstützungsmodul für TDevelop (unabhängige Erstellung) wurde in %{dest} erstellt. -Comment[el]=Ένα πρόσθετο γλώσσας για το TDevelop για αυτόνομη κατασκευή δημιουργήθηκε στο %{dest} -Comment[es]=Un complemento de lenguaje para TDevelop de construcción independiente ha sido creado en %{dest} -Comment[et]=TDevelopi autonoomne keeleplugin loodi asukohta %{dest} -Comment[eu]=TDevelop-en hizkuntza plugin autonomo bat sortu da hemen: %{dest} -Comment[fa]=یک وصلۀ زبان برای TDevelop جهت ساخت خوداتکا در %{dest} ایجاد شد -Comment[fr]=Un module externe de langage pour TDevelop à construire de façon autonome a été créé dans %{dest} -Comment[gl]=Creouse unha extensión de linguaxe para TDevelop a compilar de forma independente en %{dest} -Comment[hu]=Létrejött egy TDevelopos nyelvtámogató modul (önálló lefordításra) itt: %{dest} -Comment[it]=È stato creato un plugin di linguaggio per TDevelop per compilazione indipendente %{dest} -Comment[nds]=In %{dest} wöör en Spraakünnerstütten-Moduul för TDevelop (Enkelprogramm) opstellt -Comment[ne]=स्ट्यान्डअलोन निर्माण गर्न केडीई विकासका लागि भाषा प्लगइन %{dest} मा सिर्जना गरियो -Comment[nl]=Een taalplugin voor TDevelop voor standalone build is aangemaakt in %{dest} -Comment[pl]=Wtyczka języka dla TDevelopa do budowy oddzielnie została utworzona w %{dest} -Comment[pt]=Foi criado um 'plugin' de linguagens de compilação autónoma para o TDevelop em %{dest} -Comment[pt_BR]=Foi criado um 'plugin' de linguagens de compilação autónoma para o TDevelop em %{dest} -Comment[ru]=Внешний интерфейс языковой поддержки для TDevelop создан в %{dest} -Comment[sk]=Modul pre jazykovú podporu pre TDevelop bol vutvorený v %{dest} -Comment[sr]=Језички прикључак за TDevelop за самосталну градњу направљен је у %{dest} -Comment[sr@Latn]=Jezički priključak za TDevelop za samostalnu gradnju napravljen je u %{dest} -Comment[sv]=Ett TDevelop-insticksprogram för språkstöd att bygga fristående skapades i %{dest} -Comment[tr]=Kendi başına çalışabilen bir TDevelop dil eklentisi %{dest} içinde yaratıldı. -Comment[zh_CN]=在 %{dest} 中创建了一个独立编译的 TDevelop 语言插件 -Comment[zh_TW]=一個單獨建立的 TDevelop 語言外掛程式已建立於 %{dest} diff --git a/languages/cpp/app_templates/kdevlang/kdevlang.png b/languages/cpp/app_templates/kdevlang/kdevlang.png Binary files differdeleted file mode 100644 index 840a953c..00000000 --- a/languages/cpp/app_templates/kdevlang/kdevlang.png +++ /dev/null diff --git a/languages/cpp/app_templates/kdevlang/kdevlang.rc b/languages/cpp/app_templates/kdevlang/kdevlang.rc deleted file mode 100644 index b4e153fa..00000000 --- a/languages/cpp/app_templates/kdevlang/kdevlang.rc +++ /dev/null @@ -1,11 +0,0 @@ -<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd"> -<kpartgui name="KDevBashSupport" version="1"> -<MenuBar> - <Menu name="build" > - <Action name="build_execute" /> - </Menu> -</MenuBar> -<ToolBar name="mainToolBar"> - <Action name="build_execute" group="build_operations" /> -</ToolBar> -</kpartgui> diff --git a/languages/cpp/app_templates/kdevlang/kdevlang_part.cpp b/languages/cpp/app_templates/kdevlang/kdevlang_part.cpp deleted file mode 100644 index 559a931b..00000000 --- a/languages/cpp/app_templates/kdevlang/kdevlang_part.cpp +++ /dev/null @@ -1,154 +0,0 @@ -%{CPP_TEMPLATE} - -#include <tqwhatsthis.h> -#include <tqtimer.h> - -#include <kiconloader.h> -#include <tdelocale.h> -#include <kgenericfactory.h> -#include <kdevcore.h> -#include <kdevpartcontroller.h> -#include <kdevplugininfo.h> -#include <kdevproject.h> -#include <tdeaction.h> -#include <kdebug.h> -#include <tdeapplication.h> - -//#include "%{APPNAMELC}_widget.h" -#include "%{APPNAMELC}_part.h" - -typedef KGenericFactory<%{APPNAME}Part> %{APPNAME}Factory; -K_EXPORT_COMPONENT_FACTORY( libkdev%{APPNAMELC}, %{APPNAME}Factory( "kdev%{APPNAMELC}" ) ); -static const KDevPluginInfo data("kdev%{APPNAMELC}"); - -%{APPNAME}Part::%{APPNAME}Part(TQObject *parent, const char *name, const TQStringList& ) -: KDevLanguageSupport(&data, parent, name ? name : "%{APPNAME}Part" ) -{ - setInstance(%{APPNAME}Factory::instance()); - setXMLFile("kdevlang_%{APPNAMELC}.rc"); - - - m_build = new TDEAction( i18n("&Run"), "exec",Key_F9,this, TQT_SLOT(slotRun()),actionCollection(), "build_execute" ); - - kdDebug() << "Creating %{APPNAMELC} Part" << endl; - - connect( core(), TQT_SIGNAL(projectConfigWidget(KDialogBase*)), - this, TQT_SLOT(projectConfigWidget(KDialogBase*)) ); - connect( core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(projectOpened()) ); - connect( core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(projectClosed()) ); - connect( partController(), TQT_SIGNAL(savedFile(const KURL&)), this, TQT_SLOT(savedFile(const KURL&)) ); - connect(partController(), TQT_SIGNAL(activePartChanged(KParts::Part*)), - this, TQT_SLOT(slotActivePartChanged(KParts::Part *))); -} - - -%{APPNAME}Part::~%{APPNAME}Part() -{ - delete m_build; -} - -KDevLanguageSupport::Features %{APPNAME}Part::features() -{ - return Features(Variables | Functions); -} -KMimeType::List %{APPNAME}Part::mimeTypes() -{ - KMimeType::List list; - - KMimeType::Ptr mime = KMimeType::mimeType( "application/x-shellscript" ); - if( mime ) - list << mime; - - return list; -} -void %{APPNAME}Part::slotRun() -{ - // Execute the application here. -} -void %{APPNAME}Part::projectConfigWidget(KDialogBase *dlg) -{ - Q_UNUSED( dlg ); - // Create your config dialog here. -} -void %{APPNAME}Part::projectOpened() -{ - kdDebug(9014) << "projectOpened()" << endl; - - connect( project(), TQT_SIGNAL(addedFilesToProject(const TQStringList &)), - this, TQT_SLOT(addedFilesToProject(const TQStringList &)) ); - connect( project(), TQT_SIGNAL(removedFilesFromProject(const TQStringList &)), - this, TQT_SLOT(removedFilesFromProject(const TQStringList &)) ); - - // We want to parse only after all components have been - // properly initialized - TQTimer::singleShot(0, this, TQT_SLOT(parse())); -} -void %{APPNAME}Part::projectClosed() -{ - -} -void %{APPNAME}Part::savedFile(const KURL &fileName) -{ - - - if (project()->allFiles().contains(fileName.path().mid ( project()->projectDirectory().length() + 1 ))) - { - kdDebug(9014) << "parse file " << fileName.path() << endl; - emit addedSourceInfo( fileName.path() ); - } -} -void %{APPNAME}Part::addedFilesToProject(const TQStringList &fileList) -{ - kdDebug(9014) << "addedFilesToProject()" << endl; - - TQStringList::ConstIterator it; - - for ( it = fileList.begin(); it != fileList.end(); ++it ) - { - kdDebug(9014) << "maybe parse " << project()->projectDirectory() + "/" + ( *it ) << endl; - } - - emit updatedSourceInfo(); -} -void %{APPNAME}Part::removedFilesFromProject(const TQStringList &fileList) -{ - - - TQStringList::ConstIterator it; - - for ( it = fileList.begin(); it != fileList.end(); ++it ) - { - TQString fileName = project()->projectDirectory() + "/" + ( *it ); - if( codeModel()->hasFile(fileName) ) - { - kdDebug(9014) << "removed " << fileName << endl; - emit aboutToRemoveSourceInfo( fileName ); - codeModel()->removeFile( codeModel()->fileByName(fileName) ); - } - } - -} -void %{APPNAME}Part::parse() -{ - kdDebug(9014) << "initialParse()" << endl; - - if (project()) - { - kapp->setOverrideCursor(waitCursor); - TQStringList files = project()->allFiles(); - for (TQStringList::Iterator it = files.begin(); it != files.end() ;++it) - { - kdDebug(9014) << "maybe parse " << project()->projectDirectory() + "/" + (*it) << endl; - } - emit updatedSourceInfo(); - kapp->restoreOverrideCursor(); - } else { - kdDebug(9014) << "No project" << endl; - } -} -void %{APPNAME}Part::slotActivePartChanged(KParts::Part *part) -{ - kdDebug() << "Changeing active part..." << endl; -} - -#include "%{APPNAMELC}_part.moc" diff --git a/languages/cpp/app_templates/kdevlang/kdevlang_part.h b/languages/cpp/app_templates/kdevlang/kdevlang_part.h deleted file mode 100644 index 1cce0fa6..00000000 --- a/languages/cpp/app_templates/kdevlang/kdevlang_part.h +++ /dev/null @@ -1,44 +0,0 @@ -%{H_TEMPLATE} - -#ifndef __TDEVPART_%{APPNAMEUC}_H__ -#define __TDEVPART_%{APPNAMEUC}_H__ - - -#include <kdevplugin.h> -#include <codemodel.h> -#include <kdevlanguagesupport.h> -#include <tqstringlist.h> -#include <kdialogbase.h> - -class TDEAction; - -/* - Please read the README.dox file for more info about this part - */ -class %{APPNAME}Part : public KDevLanguageSupport -{ - Q_OBJECT - - public: - %{APPNAME}Part(TQObject *parent, const char *name, const TQStringList &); - ~%{APPNAME}Part(); - protected: - virtual Features features(); - virtual KMimeType::List mimeTypes(); - - private slots: - void slotRun(); - void projectConfigWidget(KDialogBase *dlg); - void projectOpened(); - void projectClosed(); - void savedFile(const KURL &fileName); - void addedFilesToProject(const TQStringList &fileList); - void removedFilesFromProject(const TQStringList &fileList); - void parse(); - void slotActivePartChanged(KParts::Part *part); - private: - TDEAction *m_build; -}; - - -#endif diff --git a/languages/cpp/app_templates/kdevlang/src-Makefile.am b/languages/cpp/app_templates/kdevlang/src-Makefile.am deleted file mode 100644 index 18b7a21a..00000000 --- a/languages/cpp/app_templates/kdevlang/src-Makefile.am +++ /dev/null @@ -1,14 +0,0 @@ -AM_CPPFLAGS = -I$(kde_includes)/tdevelop/interfaces -I$(kde_includes)/tdevelop/util -I$(kde_includes)/kinterfacedesigner $(all_includes) - -kde_module_LTLIBRARIES = libkdev%{APPNAMELC}.la -libkdev%{APPNAMELC}_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEUI) $(LIB_TDEPARTS) -libkdev%{APPNAMELC}_la_LIBADD = -ltdevelop -libkdev%{APPNAMELC}_la_SOURCES = %{APPNAMELC}_part.cpp - -METASOURCES = AUTO - -servicedir = $(kde_servicesdir) -service_DATA = kdev%{APPNAMELC}.desktop - -rcdir = $(kde_datadir)/kdev%{APPNAMELC} -rc_DATA = kdev%{APPNAMELC}.rc |