From 6392f5a9dfce2bf83617d49bb7f332181ec6004e Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 25 May 2014 15:37:31 +0900 Subject: Revert "Finish renaming tdevelop components" This reverts commit 722ce1efbac31c61b1d4b13f7e075c9f311e3e73. --- languages/python/CMakeLists.txt | 10 +- languages/python/Makefile.am | 18 +-- languages/python/app_templates/pyqt/CMakeLists.txt | 6 +- languages/python/app_templates/pyqt/Makefile.am | 4 +- languages/python/app_templates/pyqt/app.tdevelop | 16 +- .../python/app_templates/pyqt/pyqt.kdevtemplate | 168 +++++++++++++++++++++ .../python/app_templates/pyqt/pyqt.tdevtemplate | 168 --------------------- .../app_templates/pythonhello/CMakeLists.txt | 6 +- .../python/app_templates/pythonhello/Makefile.am | 4 +- .../python/app_templates/pythonhello/app.tdevelop | 16 +- .../pythonhello/pythonhello.kdevtemplate | 107 +++++++++++++ .../pythonhello/pythonhello.tdevtemplate | 107 ------------- languages/python/app_templates/pytk/CMakeLists.txt | 6 +- languages/python/app_templates/pytk/Makefile.am | 4 +- languages/python/app_templates/pytk/app.tdevelop | 16 +- .../python/app_templates/pytk/pytk.kdevtemplate | 107 +++++++++++++ .../python/app_templates/pytk/pytk.tdevtemplate | 107 ------------- languages/python/doc/CMakeLists.txt | 2 +- languages/python/doc/Makefile.am | 2 +- languages/python/file_templates/CMakeLists.txt | 2 +- languages/python/file_templates/Makefile.am | 2 +- languages/python/kde_pydoc.py | 131 ++++++++++++++++ languages/python/kdevpythonsupport.desktop | 85 +++++++++++ languages/python/kdevpythonsupport.rc | 16 ++ languages/python/pydoc.cpp | 2 +- languages/python/pythonconfigwidget.cpp | 8 +- languages/python/pythonimplementationwidget.cpp | 6 +- languages/python/pythonimplementationwidget.h | 2 +- languages/python/pythonsupportpart.cpp | 38 ++--- languages/python/pythonsupportpart.h | 8 +- languages/python/qtdesignerpythonintegration.cpp | 8 +- languages/python/qtdesignerpythonintegration.h | 2 +- languages/python/tde_pydoc.py | 131 ---------------- languages/python/tdevpythonsupport.desktop | 85 ----------- languages/python/tdevpythonsupport.rc | 16 -- 35 files changed, 708 insertions(+), 708 deletions(-) create mode 100644 languages/python/app_templates/pyqt/pyqt.kdevtemplate delete mode 100644 languages/python/app_templates/pyqt/pyqt.tdevtemplate create mode 100644 languages/python/app_templates/pythonhello/pythonhello.kdevtemplate delete mode 100644 languages/python/app_templates/pythonhello/pythonhello.tdevtemplate create mode 100644 languages/python/app_templates/pytk/pytk.kdevtemplate delete mode 100644 languages/python/app_templates/pytk/pytk.tdevtemplate create mode 100755 languages/python/kde_pydoc.py create mode 100644 languages/python/kdevpythonsupport.desktop create mode 100644 languages/python/kdevpythonsupport.rc delete mode 100644 languages/python/tde_pydoc.py delete mode 100644 languages/python/tdevpythonsupport.desktop delete mode 100644 languages/python/tdevpythonsupport.rc (limited to 'languages/python') diff --git a/languages/python/CMakeLists.txt b/languages/python/CMakeLists.txt index ec9d708b..989ea1b1 100644 --- a/languages/python/CMakeLists.txt +++ b/languages/python/CMakeLists.txt @@ -32,14 +32,14 @@ link_directories( ##### other data ################################ -install( FILES tdevpythonsupport.desktop pydoc.protocol DESTINATION ${SERVICES_INSTALL_DIR} ) -install( FILES tde_pydoc.py DESTINATION ${DATA_INSTALL_DIR}/tdeio_pydoc ) -install( FILES tdevpythonsupport.rc DESTINATION ${DATA_INSTALL_DIR}/tdevpythonsupport ) +install( FILES kdevpythonsupport.desktop pydoc.protocol DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES kde_pydoc.py DESTINATION ${DATA_INSTALL_DIR}/tdeio_pydoc ) +install( FILES kdevpythonsupport.rc DESTINATION ${DATA_INSTALL_DIR}/kdevpythonsupport ) -##### libtdevpythonsupport (module) ############# +##### libkdevpythonsupport (module) ############# -tde_add_kpart( libtdevpythonsupport AUTOMOC +tde_add_kpart( libkdevpythonsupport AUTOMOC SOURCES pythonsupportpart.cpp pythonconfigwidget.cpp pythonconfigwidgetbase.ui pythonimplementationwidget.cpp diff --git a/languages/python/Makefile.am b/languages/python/Makefile.am index 12ca5a06..feef469d 100644 --- a/languages/python/Makefile.am +++ b/languages/python/Makefile.am @@ -1,5 +1,5 @@ # Here resides the Python support part. -# Do not confuse this with the python part responsible for TDevelop scripting +# Do not confuse this with the python part responsible for KDevelop scripting INCLUDES = -I$(top_srcdir)/lib/interfaces -I$(top_srcdir)/languages/lib/designer_integration \ -I$(top_srcdir)/lib/interfaces/extensions -I$(top_srcdir)/lib/interfaces/external -I$(top_srcdir)/lib/util -I$(top_builddir)/languages/lib/designer_integration \ @@ -7,12 +7,12 @@ INCLUDES = -I$(top_srcdir)/lib/interfaces -I$(top_srcdir)/languages/lib/designer SUBDIRS = app_templates file_templates doc -kde_module_LTLIBRARIES = libtdevpythonsupport.la tdeio_pydoc.la +kde_module_LTLIBRARIES = libkdevpythonsupport.la tdeio_pydoc.la -libtdevpythonsupport_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) -libtdevpythonsupport_la_LIBADD = $(top_builddir)/lib/libtdevelop.la \ +libkdevpythonsupport_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) +libkdevpythonsupport_la_LIBADD = $(top_builddir)/lib/libtdevelop.la \ $(top_builddir)/languages/lib/designer_integration/libdesignerintegration.la -libtdevpythonsupport_la_SOURCES = pythonsupportpart.cpp pythonconfigwidget.cpp pythonconfigwidgetbase.ui \ +libkdevpythonsupport_la_SOURCES = pythonsupportpart.cpp pythonconfigwidget.cpp pythonconfigwidgetbase.ui \ pythonimplementationwidget.cpp qtdesignerpythonintegration.cpp tdeio_pydoc_la_SOURCES = pydoc.cpp @@ -22,10 +22,10 @@ tdeio_pydoc_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN) METASOURCES = AUTO slavedir = $(kde_datadir)/tdeio_pydoc -slave_DATA = tde_pydoc.py +slave_DATA = kde_pydoc.py servicedir = $(kde_servicesdir) -service_DATA = tdevpythonsupport.desktop pydoc.protocol +service_DATA = kdevpythonsupport.desktop pydoc.protocol -rcdir = $(kde_datadir)/tdevpythonsupport -rc_DATA = tdevpythonsupport.rc +rcdir = $(kde_datadir)/kdevpythonsupport +rc_DATA = kdevpythonsupport.rc diff --git a/languages/python/app_templates/pyqt/CMakeLists.txt b/languages/python/app_templates/pyqt/CMakeLists.txt index 0beb7976..672d6652 100644 --- a/languages/python/app_templates/pyqt/CMakeLists.txt +++ b/languages/python/app_templates/pyqt/CMakeLists.txt @@ -21,9 +21,9 @@ add_custom_target( pyqt.tar.gz ALL install( FILES ${CMAKE_CURRENT_BINARY_DIR}/pyqt.tar.gz pyqt.png - DESTINATION ${DATA_INSTALL_DIR}/tdevappwizard ) + DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard ) install( FILES - pyqt.tdevtemplate - DESTINATION ${DATA_INSTALL_DIR}/tdevappwizard/templates ) + pyqt.kdevtemplate + DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates ) diff --git a/languages/python/app_templates/pyqt/Makefile.am b/languages/python/app_templates/pyqt/Makefile.am index 7ace4e15..dc12ca69 100644 --- a/languages/python/app_templates/pyqt/Makefile.am +++ b/languages/python/app_templates/pyqt/Makefile.am @@ -6,10 +6,10 @@ dataFiles = app.py app.tdevelop fileopen.pyxpm fileprint.pyxpm \ templateName = pyqt ### no need to change below: -template_DATA = $(templateName).tdevtemplate +template_DATA = $(templateName).kdevtemplate templatedir = ${appwizarddatadir}/templates -appwizarddatadir = ${kde_datadir}/tdevappwizard +appwizarddatadir = ${kde_datadir}/kdevappwizard $(templateName).tar.gz: ${dataFiles} $(TAR) -cf $(templateName).tar -C $(srcdir) ${dataFiles} $(GZIP_COMMAND) -f9 $(templateName).tar diff --git a/languages/python/app_templates/pyqt/app.tdevelop b/languages/python/app_templates/pyqt/app.tdevelop index 7f2743cb..2abb394e 100644 --- a/languages/python/app_templates/pyqt/app.tdevelop +++ b/languages/python/app_templates/pyqt/app.tdevelop @@ -12,15 +12,15 @@ - + ./%{APPNAMELC}.py - - + + ada ada_bugs_gcc @@ -61,8 +61,8 @@ KDE Libraries (Doxygen) - - + + false *.o,*.lo,CVS @@ -71,11 +71,11 @@ - - + + - + diff --git a/languages/python/app_templates/pyqt/pyqt.kdevtemplate b/languages/python/app_templates/pyqt/pyqt.kdevtemplate new file mode 100644 index 00000000..f19e263c --- /dev/null +++ b/languages/python/app_templates/pyqt/pyqt.kdevtemplate @@ -0,0 +1,168 @@ +# KDE Config File +[General] +Name=Python Qt application +Name[ca]=Aplicació per a Qt en Python +Name[da]=Python Qt program +Name[de]=Python/Qt-Anwendung +Name[el]=Εφαρμογή Python Qt +Name[es]=Aplicación Qt en Python +Name[et]=Pythoni Qt rakendus +Name[eu]=Python Qt aplikazioa +Name[fa]=کاربرد پیتون Qt +Name[fr]=Application Qt Python +Name[ga]=Feidhmchlár Qt Python +Name[gl]=Aplicación Qt en Python +Name[hu]=Python/Qt-alapú alkalmazás +Name[it]=Applicazione Qt Python +Name[ja]=Python Qt アプリケーション +Name[nds]=Python Qt-Programm +Name[ne]=पाइथोन क्यू टी अनुप्रयोग +Name[nl]=Python Qt-toepassing +Name[pl]=Program Qt w Pythonie +Name[pt]=Aplicação Qt em Python +Name[pt_BR]=Aplicação Qt em Python +Name[ru]=Приложение Qt на Python +Name[sk]=Python Qt aplikácia +Name[sr]=Python-Qt програм +Name[sr@Latn]=Python-Qt program +Name[sv]=Python Qt-program +Name[tr]=Python Qt Uygulaması +Name[zh_CN]=Python Qt 应用程序 +Name[zh_TW]=Python Qt 應用程式 +Icon=pyqt.png +Category=Python +Comment=This generates an application framework using Python and Qt +Comment[ca]=Genera una infraestructura d'aplicació usant Python i Qt +Comment[da]=Dette genererer et programskelet ved brug af Python og Qt +Comment[de]=Hiermit wird ein Anwendungsgerüst unter Verwendung von Python und Qt erstellt +Comment[el]=Αυτό δημιουργεί ένα πλαίσιο εφαρμογής χρησιμοποιώντας τις Python και Qt +Comment[es]=Genera una infraestructura de aplicación que usa Python y Qt +Comment[et]=Rakenduse raamistiku loomine Pythoni ja Qt abil +Comment[eu]=Honek Python eta Qt darabiltzan aplikazioen lan-marko bat sortzen du +Comment[fa]=یک چارچوب کاربرد با استفاده از پیتون و Qt تولید می‌کند +Comment[fr]=Génère une infrastructure d'application utilisant Python et Qt +Comment[ga]=Cruthaíonn sé seo creatlach feidhmchláir le Python agus Qt +Comment[gl]=Isto xera un contorno de traballo para unha aplicación usando Python e Qt +Comment[hu]=Létrehoz egy alkalmazás-keretrendszert Python nyelven, a Qt felhasználásával +Comment[it]=Genera l'infrastruttura applicativa usando Python e Qt +Comment[ja]=Python と Qt を使ってアプリケーションフレームワークを作成します +Comment[nds]=Dit stellt mit Python un Qt en Programmrahmenwark op. +Comment[ne]=यसले पाइथोन र क्यू टी प्रयोग गरेर अनुप्रयोग फ्रेमवर्क उत्पन्न गर्दछ +Comment[nl]=Dit genereert een toepassingsframework met behulp van Python en Qt +Comment[pl]=Generuje szablon programu używającego Pythona i Qt +Comment[pt]=Isto cria a plataforma de uma aplicação que usa o Python e o Qt +Comment[pt_BR]=Isto cria a plataforma de uma aplicação que usa o Python e o Qt +Comment[ru]=Создание приложения Qt на Python +Comment[sk]=Vygeneruje aplikačný framework používajúci Python a Qt +Comment[sr]=Прави радни оквир програма користећи Python и Qt +Comment[sr@Latn]=Pravi radni okvir programa koristeći Python i Qt +Comment[sv]=Detta skapar ett programramverk med användning av Python och Qt +Comment[tr]=Bu Python ve Qt kullanan bir uygulama çatısı yaratır. +Comment[zh_CN]=这将生成一个使用 Python 和 Qt 的应用程序框架 +Comment[zh_TW]=產生一個使用 Python 與 Qt 的應用程式框架 +FileTemplates=py,ShellStyle +ShowFilesAfterGeneration=%{dest}/%{APPNAMELC}.py +Archive=pyqt.tar.gz + +[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=%{src}/app.py +Dest=%{dest}/%{APPNAMELC}.py + +[FILE3] +Type=install +EscapeXML=true +Source=%{src}/documentdetails.ui +Dest=%{dest}/documentdetails.ui + +[FILE4] +Type=install +Source=%{src}/app-Makefile.am +Dest=%{dest}/Makefile.am + +[FILE5] +Type=install +Source=%{src}/app-configure.ac +Dest=%{dest}/configure.ac + +[FILE6] +Type=install +Source=%{src}/app-autogen.sh +Dest=%{dest}/autogen.sh + +[FILE7] +Type=install +Source=%{src}/mkinstalldirs +Dest=%{dest}/mkinstalldirs + +[FILE8] +Type=install +Source=%{src}/missing +Dest=%{dest}/missing + +[FILE9] +Type=install +Source=%{src}/install-sh +Dest=%{dest}/install-sh + +[FILE10] +Type=install +Source=%{src}/pyqt-am-preproc.py +Dest=%{dest}/pyqt-am-preproc.py + +[FILE11] +Type=install +Source=%{src}/fileopen.pyxpm +Dest=%{dest}/fileopen.pyxpm + +[FILE12] +Type=install +Source=%{src}/fileprint.pyxpm +Dest=%{dest}/fileprint.pyxpm + +[FILE13] +Type=install +Source=%{src}/filesave.pyxpm +Dest=%{dest}/filesave.pyxpm + +[MSG] +Type=message +Comment=A Python Qt application was created in %{dest} +Comment[ca]=Una aplicació per a Qt en Python ha estat creada en %{dest} +Comment[da]=Et Python Qt program blev oprettet i %{dest} +Comment[de]=Eine Python/Qt-Anwendung wurde in %{dest} erstellt. +Comment[el]=Μια εφαρμογή Python Qt δημιουργήθηκε στο %{dest} +Comment[es]=Una aplicación Qt en Python ha sido creada en %{dest} +Comment[et]=Pythoni Qt rakendus loodi asukohta %{dest} +Comment[eu]=Python eta Qt darabiltzan aplikazio bat sortu da hemen: %{dest} +Comment[fa]=یک کاربرد پیتون Qt در %{dest} ایجاد شد +Comment[fr]=Une application Qt Python a été créée dans %{dest} +Comment[ga]=Cruthaíodh feidhmchlár Python Qt i %{dest} +Comment[gl]=Creouse unha aplicación Qt en Python en %{dest} +Comment[hu]=Létrejött egy Python/Qt-alkalmazás itt: %{dest} +Comment[it]=È stata creata un'applicazione Qt Python in %{dest} +Comment[ja]=Python Qt アプリケーションを %{dest} に作成しました +Comment[nds]=In %{dest} wöör en Python-Qt-Programm opstellt. +Comment[ne]=पाइथोन क्यू टी अनुप्रयोग %{dest} मा सिर्जना गरियो +Comment[nl]=Een Python Qt-toepassing is aangemaakt in %{dest} +Comment[pl]=Program używający Pythona i Qt został utworzony w %{dest} +Comment[pt]=Foi criada uma aplicação Qt em Python em %{dest} +Comment[pt_BR]=Foi criada uma aplicação Qt em Python em %{dest} +Comment[ru]=Приложение Qt на Python создано в %{dest} +Comment[sk]=Python Qt aplikácia bola vytvorená v %{dest} +Comment[sr]= Python-Qt програм је направљен у %{dest} +Comment[sr@Latn]= Python-Qt program je napravljen u %{dest} +Comment[sv]=Ett Python Qt-program skapades i %{dest} +Comment[tr]=Bir Python Qt uygulaması %{dest} içinde yaratıldı. +Comment[zh_CN]=在 %{dest} 创建了一个 Python Qt 应用程序 +Comment[zh_TW]=一個 Python Qt 應用程式已建立於 %{dest} diff --git a/languages/python/app_templates/pyqt/pyqt.tdevtemplate b/languages/python/app_templates/pyqt/pyqt.tdevtemplate deleted file mode 100644 index cb0deace..00000000 --- a/languages/python/app_templates/pyqt/pyqt.tdevtemplate +++ /dev/null @@ -1,168 +0,0 @@ -# KDE Config File -[General] -Name=Python Qt application -Name[ca]=Aplicació per a Qt en Python -Name[da]=Python Qt program -Name[de]=Python/Qt-Anwendung -Name[el]=Εφαρμογή Python Qt -Name[es]=Aplicación Qt en Python -Name[et]=Pythoni Qt rakendus -Name[eu]=Python Qt aplikazioa -Name[fa]=کاربرد پیتون Qt -Name[fr]=Application Qt Python -Name[ga]=Feidhmchlár Qt Python -Name[gl]=Aplicación Qt en Python -Name[hu]=Python/Qt-alapú alkalmazás -Name[it]=Applicazione Qt Python -Name[ja]=Python Qt アプリケーション -Name[nds]=Python Qt-Programm -Name[ne]=पाइथोन क्यू टी अनुप्रयोग -Name[nl]=Python Qt-toepassing -Name[pl]=Program Qt w Pythonie -Name[pt]=Aplicação Qt em Python -Name[pt_BR]=Aplicação Qt em Python -Name[ru]=Приложение Qt на Python -Name[sk]=Python Qt aplikácia -Name[sr]=Python-Qt програм -Name[sr@Latn]=Python-Qt program -Name[sv]=Python Qt-program -Name[tr]=Python Qt Uygulaması -Name[zh_CN]=Python Qt 应用程序 -Name[zh_TW]=Python Qt 應用程式 -Icon=pyqt.png -Category=Python -Comment=This generates an application framework using Python and Qt -Comment[ca]=Genera una infraestructura d'aplicació usant Python i Qt -Comment[da]=Dette genererer et programskelet ved brug af Python og Qt -Comment[de]=Hiermit wird ein Anwendungsgerüst unter Verwendung von Python und Qt erstellt -Comment[el]=Αυτό δημιουργεί ένα πλαίσιο εφαρμογής χρησιμοποιώντας τις Python και Qt -Comment[es]=Genera una infraestructura de aplicación que usa Python y Qt -Comment[et]=Rakenduse raamistiku loomine Pythoni ja Qt abil -Comment[eu]=Honek Python eta Qt darabiltzan aplikazioen lan-marko bat sortzen du -Comment[fa]=یک چارچوب کاربرد با استفاده از پیتون و Qt تولید می‌کند -Comment[fr]=Génère une infrastructure d'application utilisant Python et Qt -Comment[ga]=Cruthaíonn sé seo creatlach feidhmchláir le Python agus Qt -Comment[gl]=Isto xera un contorno de traballo para unha aplicación usando Python e Qt -Comment[hu]=Létrehoz egy alkalmazás-keretrendszert Python nyelven, a Qt felhasználásával -Comment[it]=Genera l'infrastruttura applicativa usando Python e Qt -Comment[ja]=Python と Qt を使ってアプリケーションフレームワークを作成します -Comment[nds]=Dit stellt mit Python un Qt en Programmrahmenwark op. -Comment[ne]=यसले पाइथोन र क्यू टी प्रयोग गरेर अनुप्रयोग फ्रेमवर्क उत्पन्न गर्दछ -Comment[nl]=Dit genereert een toepassingsframework met behulp van Python en Qt -Comment[pl]=Generuje szablon programu używającego Pythona i Qt -Comment[pt]=Isto cria a plataforma de uma aplicação que usa o Python e o Qt -Comment[pt_BR]=Isto cria a plataforma de uma aplicação que usa o Python e o Qt -Comment[ru]=Создание приложения Qt на Python -Comment[sk]=Vygeneruje aplikačný framework používajúci Python a Qt -Comment[sr]=Прави радни оквир програма користећи Python и Qt -Comment[sr@Latn]=Pravi radni okvir programa koristeći Python i Qt -Comment[sv]=Detta skapar ett programramverk med användning av Python och Qt -Comment[tr]=Bu Python ve Qt kullanan bir uygulama çatısı yaratır. -Comment[zh_CN]=这将生成一个使用 Python 和 Qt 的应用程序框架 -Comment[zh_TW]=產生一個使用 Python 與 Qt 的應用程式框架 -FileTemplates=py,ShellStyle -ShowFilesAfterGeneration=%{dest}/%{APPNAMELC}.py -Archive=pyqt.tar.gz - -[GNU] -Type=include -File=%{tdevelop}/template-common/gnu.tdevtemplate - -[FILE1] -Type=install -EscapeXML=true -Source=%{src}/app.tdevelop -Dest=%{dest}/%{APPNAMELC}.tdevelop - -[FILE2] -Type=install -Source=%{src}/app.py -Dest=%{dest}/%{APPNAMELC}.py - -[FILE3] -Type=install -EscapeXML=true -Source=%{src}/documentdetails.ui -Dest=%{dest}/documentdetails.ui - -[FILE4] -Type=install -Source=%{src}/app-Makefile.am -Dest=%{dest}/Makefile.am - -[FILE5] -Type=install -Source=%{src}/app-configure.ac -Dest=%{dest}/configure.ac - -[FILE6] -Type=install -Source=%{src}/app-autogen.sh -Dest=%{dest}/autogen.sh - -[FILE7] -Type=install -Source=%{src}/mkinstalldirs -Dest=%{dest}/mkinstalldirs - -[FILE8] -Type=install -Source=%{src}/missing -Dest=%{dest}/missing - -[FILE9] -Type=install -Source=%{src}/install-sh -Dest=%{dest}/install-sh - -[FILE10] -Type=install -Source=%{src}/pyqt-am-preproc.py -Dest=%{dest}/pyqt-am-preproc.py - -[FILE11] -Type=install -Source=%{src}/fileopen.pyxpm -Dest=%{dest}/fileopen.pyxpm - -[FILE12] -Type=install -Source=%{src}/fileprint.pyxpm -Dest=%{dest}/fileprint.pyxpm - -[FILE13] -Type=install -Source=%{src}/filesave.pyxpm -Dest=%{dest}/filesave.pyxpm - -[MSG] -Type=message -Comment=A Python Qt application was created in %{dest} -Comment[ca]=Una aplicació per a Qt en Python ha estat creada en %{dest} -Comment[da]=Et Python Qt program blev oprettet i %{dest} -Comment[de]=Eine Python/Qt-Anwendung wurde in %{dest} erstellt. -Comment[el]=Μια εφαρμογή Python Qt δημιουργήθηκε στο %{dest} -Comment[es]=Una aplicación Qt en Python ha sido creada en %{dest} -Comment[et]=Pythoni Qt rakendus loodi asukohta %{dest} -Comment[eu]=Python eta Qt darabiltzan aplikazio bat sortu da hemen: %{dest} -Comment[fa]=یک کاربرد پیتون Qt در %{dest} ایجاد شد -Comment[fr]=Une application Qt Python a été créée dans %{dest} -Comment[ga]=Cruthaíodh feidhmchlár Python Qt i %{dest} -Comment[gl]=Creouse unha aplicación Qt en Python en %{dest} -Comment[hu]=Létrejött egy Python/Qt-alkalmazás itt: %{dest} -Comment[it]=È stata creata un'applicazione Qt Python in %{dest} -Comment[ja]=Python Qt アプリケーションを %{dest} に作成しました -Comment[nds]=In %{dest} wöör en Python-Qt-Programm opstellt. -Comment[ne]=पाइथोन क्यू टी अनुप्रयोग %{dest} मा सिर्जना गरियो -Comment[nl]=Een Python Qt-toepassing is aangemaakt in %{dest} -Comment[pl]=Program używający Pythona i Qt został utworzony w %{dest} -Comment[pt]=Foi criada uma aplicação Qt em Python em %{dest} -Comment[pt_BR]=Foi criada uma aplicação Qt em Python em %{dest} -Comment[ru]=Приложение Qt на Python создано в %{dest} -Comment[sk]=Python Qt aplikácia bola vytvorená v %{dest} -Comment[sr]= Python-Qt програм је направљен у %{dest} -Comment[sr@Latn]= Python-Qt program je napravljen u %{dest} -Comment[sv]=Ett Python Qt-program skapades i %{dest} -Comment[tr]=Bir Python Qt uygulaması %{dest} içinde yaratıldı. -Comment[zh_CN]=在 %{dest} 创建了一个 Python Qt 应用程序 -Comment[zh_TW]=一個 Python Qt 應用程式已建立於 %{dest} diff --git a/languages/python/app_templates/pythonhello/CMakeLists.txt b/languages/python/app_templates/pythonhello/CMakeLists.txt index d6c3f09c..dfdbbc3b 100644 --- a/languages/python/app_templates/pythonhello/CMakeLists.txt +++ b/languages/python/app_templates/pythonhello/CMakeLists.txt @@ -17,9 +17,9 @@ add_custom_target( pythonhello.tar.gz ALL install( FILES ${CMAKE_CURRENT_BINARY_DIR}/pythonhello.tar.gz pythonhello.png - DESTINATION ${DATA_INSTALL_DIR}/tdevappwizard ) + DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard ) install( FILES - pythonhello.tdevtemplate - DESTINATION ${DATA_INSTALL_DIR}/tdevappwizard/templates ) + pythonhello.kdevtemplate + DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates ) diff --git a/languages/python/app_templates/pythonhello/Makefile.am b/languages/python/app_templates/pythonhello/Makefile.am index 7265f7de..2dc4f559 100644 --- a/languages/python/app_templates/pythonhello/Makefile.am +++ b/languages/python/app_templates/pythonhello/Makefile.am @@ -1,10 +1,10 @@ dataFiles = app.py app.tdevelop pythonhello.png templateName = pythonhello ### no need to change below: -template_DATA = $(templateName).tdevtemplate +template_DATA = $(templateName).kdevtemplate templatedir = ${appwizarddatadir}/templates -appwizarddatadir = ${kde_datadir}/tdevappwizard +appwizarddatadir = ${kde_datadir}/kdevappwizard $(templateName).tar.gz: ${dataFiles} $(TAR) -cf $(templateName).tar -C $(srcdir) ${dataFiles} $(GZIP_COMMAND) -f9 $(templateName).tar diff --git a/languages/python/app_templates/pythonhello/app.tdevelop b/languages/python/app_templates/pythonhello/app.tdevelop index a93a999c..9826d145 100644 --- a/languages/python/app_templates/pythonhello/app.tdevelop +++ b/languages/python/app_templates/pythonhello/app.tdevelop @@ -11,15 +11,15 @@ - + %{APPNAMELC}.py - - + + ada ada_bugs_gcc @@ -66,8 +66,8 @@ KDE Libraries (Doxygen) - - + + false *.o,*.lo,CVS @@ -75,10 +75,10 @@ - - + + - + diff --git a/languages/python/app_templates/pythonhello/pythonhello.kdevtemplate b/languages/python/app_templates/pythonhello/pythonhello.kdevtemplate new file mode 100644 index 00000000..0e130571 --- /dev/null +++ b/languages/python/app_templates/pythonhello/pythonhello.kdevtemplate @@ -0,0 +1,107 @@ +# KDE Config File +[General] +Name=Simple Python script +Name[ca]=Simple script en Python +Name[da]=Simpelt Python script +Name[de]=Einfaches Python-Skript +Name[el]=Απλό σενάριο Python +Name[es]=Guión sencillo en Python +Name[et]=Lihtne Pythoni skript +Name[eu]=Python script sinplea +Name[fa]=دست‌نوشتۀ سادۀ پیتون +Name[fr]=Script Python simple +Name[ga]=Script shimplí Python +Name[gl]=Script sinxelo en Python +Name[hu]=Egyszerű Python-szkript +Name[it]=Semplice script Python +Name[ja]=簡単な Python スクリプト +Name[nds]=Eenfach Python-Skript +Name[ne]=साधारण पाइथोन स्क्रिप्ट +Name[nl]=Eenvoudig Python-script +Name[pl]=Prosty skrypt w Pythonie +Name[pt]=Programa simples em Python +Name[pt_BR]=Programa simples em Python +Name[ru]=Простой скрипт Python +Name[sk]=Jednoduchý Python skript +Name[sr]=Једноставна Python скрипта +Name[sr@Latn]=Jednostavna Python skripta +Name[sv]=Enkelt Python-skript +Name[tr]=Basit Python betiği +Name[zh_CN]=简单的 Python 脚本 +Name[zh_TW]=簡單的 Python 文稿 +Icon=pythonhello.png +Category=Python +Comment=This generates a simplistic "Hello world" program in Python +Comment[ca]=Genera un simple programa de "Hello world" en Python +Comment[da]=Dette genererer et simplistisk "Goddag verden" program i Python +Comment[de]=Erstellt ein einfaches "Hello World"-Programm in Python +Comment[el]=Αυτό δημιουργεί ένα απλό πρόγραμμα "Γεια σου κόσμε" σε Python +Comment[es]=Genera un sencillo programa «Hola mundo» en Python +Comment[et]=Lihtsa "Tere, maailm" programmi loomine Pythonis +Comment[eu]=Honek "Kaixo mundua" programa sinple bat sortzen du Python lengoaian +Comment[fa]=یک برنامۀ سادۀ «Hello world» در پیتون تولید می‌کند +Comment[fr]=Génère un programme « Bonjour monde » simple en Python +Comment[gl]=Isto xera un programa sinxelo "Ola mundo" en Python +Comment[hu]=Létrehoz egy egyszerű Hello world programot Python nyelven +Comment[it]=Genera un semplice programma di "Hello world" in Python +Comment[ja]=簡単な Hello world プログラムを Python で作成します +Comment[nds]=Dit stellt en eenfach "Moin Welt"-Programm mit Python op. +Comment[ne]=यसले पाइथोनमा साधारण "हेल्लो वोल्ड" कार्यक्रम उत्पन्न गर्दछ +Comment[nl]=Dit genereert een eenvoudig "Hello World"-programma in Python +Comment[pl]=Generuje prosty program "Witaj świecie" w Pythonie +Comment[pt]=Isto gera um programa simples "Olá mundo" em Python +Comment[pt_BR]=Isto gera um programa simples "Olá mundo" em Python +Comment[ru]=Создание простой программы "Hello world" на Python +Comment[sk]=Vygeneruje jednoduchý "Ahoj svet" program v Python +Comment[sr]=Прави једноставан „Здраво свете“ програм у Python-у +Comment[sr@Latn]=Pravi jednostavan „Zdravo svete“ program u Python-u +Comment[sv]=Detta skapar ett förenklat "Hello world"-program i Python +Comment[tr]=Bu, Python'da basit bir "Merhaba Dünya" programı yaratır. +Comment[zh_CN]=这将生成一个简单的 Python 语言“Hello world”程序 +Comment[zh_TW]=產生一個 Python 的簡單 Hello world 程式 +FileTemplates=py,ShellStyle +ShowFilesAfterGeneration=%{dest}/%{APPNAMELC}.py +Archive=pythonhello.tar.gz + +[FILE1] +Type=install +EscapeXML=true +Source=%{src}/app.tdevelop +Dest=%{dest}/%{APPNAMELC}.tdevelop + +[FILE2] +Type=install +Source=%{src}/app.py +Dest=%{dest}/%{APPNAMELC}.py + +[MSG] +Type=message +Comment=A simple python script was created in %{dest} +Comment[ca]=Un simple script en Python ha estat creat en %{dest} +Comment[da]=Et simpelt python script blev oprettet i %{dest} +Comment[de]=Ein einfaches Python-Skript wurde in %{dest} erstellt. +Comment[el]=Ένα απλό σενάριο python δημιουργήθηκε στο %{dest} +Comment[es]=Un sencillo programa en Python ha sido creado en %{dest} +Comment[et]=Lihtne Pythoni skript loodi asukohta %{dest} +Comment[eu]=Python programa sinple bat sortu da hemen: %{dest} +Comment[fa]=یک دست‌نوشتۀ سادۀ پیتون در %{dest} ایجاد شد +Comment[fr]=Un script Python simple a été créé dans %{dest} +Comment[ga]=Cruthaíodh script shimplí Python i %{dest} +Comment[gl]=Creouse un script sinxelo en python en %{dest} +Comment[hu]=Létrejött egy egyszerű Python-szkript itt: %{dest} +Comment[it]=È stato creato un semplice script python in %{dest} +Comment[ja]=簡単な python スクリプトを %{dest} に作成しました +Comment[nds]=In %{dest} wöör en eenfach Python-Skript opstellt. +Comment[ne]=साधारण पाइथोन स्क्रिप्ट %{dest} मा सिर्जना गरियो +Comment[nl]=Een eenvoudig Python-script is aangemaakt in %{dest} +Comment[pl]=Prosty skrypt w Pythonie został utworzony w %{dest} +Comment[pt]=Foi criado um programa simples em Python em %{dest} +Comment[pt_BR]=Foi criado um programa simples em Python em %{dest} +Comment[ru]=Простой скрипт Python создан в %{dest} +Comment[sk]=Jednoduchý Python skript bol vytvorený v %{dest} +Comment[sr]=Једноставна python скрипта направљена је у %{dest} +Comment[sr@Latn]=Jednostavna python skripta napravljena je u %{dest} +Comment[sv]=Ett enkelt Python-skript skapades i %{dest} +Comment[tr]=Basit bir python betiği %{dest} içinde yaratıldı. +Comment[zh_CN]=在 %{dest} 创建了一个简单的 Python 语言脚本 +Comment[zh_TW]=一個簡單的 python 文稿框架已建立於 %{dest} diff --git a/languages/python/app_templates/pythonhello/pythonhello.tdevtemplate b/languages/python/app_templates/pythonhello/pythonhello.tdevtemplate deleted file mode 100644 index 0e130571..00000000 --- a/languages/python/app_templates/pythonhello/pythonhello.tdevtemplate +++ /dev/null @@ -1,107 +0,0 @@ -# KDE Config File -[General] -Name=Simple Python script -Name[ca]=Simple script en Python -Name[da]=Simpelt Python script -Name[de]=Einfaches Python-Skript -Name[el]=Απλό σενάριο Python -Name[es]=Guión sencillo en Python -Name[et]=Lihtne Pythoni skript -Name[eu]=Python script sinplea -Name[fa]=دست‌نوشتۀ سادۀ پیتون -Name[fr]=Script Python simple -Name[ga]=Script shimplí Python -Name[gl]=Script sinxelo en Python -Name[hu]=Egyszerű Python-szkript -Name[it]=Semplice script Python -Name[ja]=簡単な Python スクリプト -Name[nds]=Eenfach Python-Skript -Name[ne]=साधारण पाइथोन स्क्रिप्ट -Name[nl]=Eenvoudig Python-script -Name[pl]=Prosty skrypt w Pythonie -Name[pt]=Programa simples em Python -Name[pt_BR]=Programa simples em Python -Name[ru]=Простой скрипт Python -Name[sk]=Jednoduchý Python skript -Name[sr]=Једноставна Python скрипта -Name[sr@Latn]=Jednostavna Python skripta -Name[sv]=Enkelt Python-skript -Name[tr]=Basit Python betiği -Name[zh_CN]=简单的 Python 脚本 -Name[zh_TW]=簡單的 Python 文稿 -Icon=pythonhello.png -Category=Python -Comment=This generates a simplistic "Hello world" program in Python -Comment[ca]=Genera un simple programa de "Hello world" en Python -Comment[da]=Dette genererer et simplistisk "Goddag verden" program i Python -Comment[de]=Erstellt ein einfaches "Hello World"-Programm in Python -Comment[el]=Αυτό δημιουργεί ένα απλό πρόγραμμα "Γεια σου κόσμε" σε Python -Comment[es]=Genera un sencillo programa «Hola mundo» en Python -Comment[et]=Lihtsa "Tere, maailm" programmi loomine Pythonis -Comment[eu]=Honek "Kaixo mundua" programa sinple bat sortzen du Python lengoaian -Comment[fa]=یک برنامۀ سادۀ «Hello world» در پیتون تولید می‌کند -Comment[fr]=Génère un programme « Bonjour monde » simple en Python -Comment[gl]=Isto xera un programa sinxelo "Ola mundo" en Python -Comment[hu]=Létrehoz egy egyszerű Hello world programot Python nyelven -Comment[it]=Genera un semplice programma di "Hello world" in Python -Comment[ja]=簡単な Hello world プログラムを Python で作成します -Comment[nds]=Dit stellt en eenfach "Moin Welt"-Programm mit Python op. -Comment[ne]=यसले पाइथोनमा साधारण "हेल्लो वोल्ड" कार्यक्रम उत्पन्न गर्दछ -Comment[nl]=Dit genereert een eenvoudig "Hello World"-programma in Python -Comment[pl]=Generuje prosty program "Witaj świecie" w Pythonie -Comment[pt]=Isto gera um programa simples "Olá mundo" em Python -Comment[pt_BR]=Isto gera um programa simples "Olá mundo" em Python -Comment[ru]=Создание простой программы "Hello world" на Python -Comment[sk]=Vygeneruje jednoduchý "Ahoj svet" program v Python -Comment[sr]=Прави једноставан „Здраво свете“ програм у Python-у -Comment[sr@Latn]=Pravi jednostavan „Zdravo svete“ program u Python-u -Comment[sv]=Detta skapar ett förenklat "Hello world"-program i Python -Comment[tr]=Bu, Python'da basit bir "Merhaba Dünya" programı yaratır. -Comment[zh_CN]=这将生成一个简单的 Python 语言“Hello world”程序 -Comment[zh_TW]=產生一個 Python 的簡單 Hello world 程式 -FileTemplates=py,ShellStyle -ShowFilesAfterGeneration=%{dest}/%{APPNAMELC}.py -Archive=pythonhello.tar.gz - -[FILE1] -Type=install -EscapeXML=true -Source=%{src}/app.tdevelop -Dest=%{dest}/%{APPNAMELC}.tdevelop - -[FILE2] -Type=install -Source=%{src}/app.py -Dest=%{dest}/%{APPNAMELC}.py - -[MSG] -Type=message -Comment=A simple python script was created in %{dest} -Comment[ca]=Un simple script en Python ha estat creat en %{dest} -Comment[da]=Et simpelt python script blev oprettet i %{dest} -Comment[de]=Ein einfaches Python-Skript wurde in %{dest} erstellt. -Comment[el]=Ένα απλό σενάριο python δημιουργήθηκε στο %{dest} -Comment[es]=Un sencillo programa en Python ha sido creado en %{dest} -Comment[et]=Lihtne Pythoni skript loodi asukohta %{dest} -Comment[eu]=Python programa sinple bat sortu da hemen: %{dest} -Comment[fa]=یک دست‌نوشتۀ سادۀ پیتون در %{dest} ایجاد شد -Comment[fr]=Un script Python simple a été créé dans %{dest} -Comment[ga]=Cruthaíodh script shimplí Python i %{dest} -Comment[gl]=Creouse un script sinxelo en python en %{dest} -Comment[hu]=Létrejött egy egyszerű Python-szkript itt: %{dest} -Comment[it]=È stato creato un semplice script python in %{dest} -Comment[ja]=簡単な python スクリプトを %{dest} に作成しました -Comment[nds]=In %{dest} wöör en eenfach Python-Skript opstellt. -Comment[ne]=साधारण पाइथोन स्क्रिप्ट %{dest} मा सिर्जना गरियो -Comment[nl]=Een eenvoudig Python-script is aangemaakt in %{dest} -Comment[pl]=Prosty skrypt w Pythonie został utworzony w %{dest} -Comment[pt]=Foi criado um programa simples em Python em %{dest} -Comment[pt_BR]=Foi criado um programa simples em Python em %{dest} -Comment[ru]=Простой скрипт Python создан в %{dest} -Comment[sk]=Jednoduchý Python skript bol vytvorený v %{dest} -Comment[sr]=Једноставна python скрипта направљена је у %{dest} -Comment[sr@Latn]=Jednostavna python skripta napravljena je u %{dest} -Comment[sv]=Ett enkelt Python-skript skapades i %{dest} -Comment[tr]=Basit bir python betiği %{dest} içinde yaratıldı. -Comment[zh_CN]=在 %{dest} 创建了一个简单的 Python 语言脚本 -Comment[zh_TW]=一個簡單的 python 文稿框架已建立於 %{dest} diff --git a/languages/python/app_templates/pytk/CMakeLists.txt b/languages/python/app_templates/pytk/CMakeLists.txt index d71c9be1..1a28ddad 100644 --- a/languages/python/app_templates/pytk/CMakeLists.txt +++ b/languages/python/app_templates/pytk/CMakeLists.txt @@ -17,9 +17,9 @@ add_custom_target( pytk.tar.gz ALL install( FILES ${CMAKE_CURRENT_BINARY_DIR}/pytk.tar.gz pytk.png - DESTINATION ${DATA_INSTALL_DIR}/tdevappwizard ) + DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard ) install( FILES - pytk.tdevtemplate - DESTINATION ${DATA_INSTALL_DIR}/tdevappwizard/templates ) + pytk.kdevtemplate + DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates ) diff --git a/languages/python/app_templates/pytk/Makefile.am b/languages/python/app_templates/pytk/Makefile.am index 94fb2122..d1ebe715 100644 --- a/languages/python/app_templates/pytk/Makefile.am +++ b/languages/python/app_templates/pytk/Makefile.am @@ -1,10 +1,10 @@ dataFiles = app.py app.tdevelop pytk.png templateName = pytk ### no need to change below: -template_DATA = $(templateName).tdevtemplate +template_DATA = $(templateName).kdevtemplate templatedir = ${appwizarddatadir}/templates -appwizarddatadir = ${kde_datadir}/tdevappwizard +appwizarddatadir = ${kde_datadir}/kdevappwizard $(templateName).tar.gz: ${dataFiles} $(TAR) -cf $(templateName).tar -C $(srcdir) ${dataFiles} $(GZIP_COMMAND) -f9 $(templateName).tar diff --git a/languages/python/app_templates/pytk/app.tdevelop b/languages/python/app_templates/pytk/app.tdevelop index 95144f90..1482b842 100644 --- a/languages/python/app_templates/pytk/app.tdevelop +++ b/languages/python/app_templates/pytk/app.tdevelop @@ -11,15 +11,15 @@ - + %{APPNAMELC}.py - - + + ada ada_bugs_gcc @@ -64,8 +64,8 @@ KDE Libraries (Doxygen) - - + + false *.o,*.lo,CVS @@ -73,10 +73,10 @@ - - + + - + diff --git a/languages/python/app_templates/pytk/pytk.kdevtemplate b/languages/python/app_templates/pytk/pytk.kdevtemplate new file mode 100644 index 00000000..3b8ac6bc --- /dev/null +++ b/languages/python/app_templates/pytk/pytk.kdevtemplate @@ -0,0 +1,107 @@ +# KDE Config File +[General] +Name=Simple Python/Tkinter script +Name[ca]=Simple script en Python/Tkinter +Name[da]=Simpelt Python/Tkinter script +Name[de]=Einfaches Python/Tkinter-Skript +Name[el]=Απλό σενάριο Python/Tkinter +Name[es]=Guión sencillo en Python/Tkinter +Name[et]=Lihtne Pythoni/Tkinteri skript +Name[eu]=Python/Tkinter script sinplea +Name[fa]=دست‌نوشتۀ سادۀ پیتون/Tkinter +Name[fr]=Script Python / Tkinter simple +Name[ga]=Script shimplí Python/Tkinter +Name[gl]=Script sinxelo Python/Tkinter +Name[hu]=Egyszerű Python/Tkinter-szkript +Name[it]=Semplice script Python/Tkinter +Name[ja]=簡単な Python/Tkinter スクリプト +Name[nds]=Eenfach Python/Tkinter-Skript +Name[ne]=साधारण पाइथोन/Tkinter स्क्रिप्ट +Name[nl]=Eenvoudig Python/Tkinter-script +Name[pl]=Prosty skrypt Python/Tkinter +Name[pt]=Programa simples em Python/Tkinter +Name[pt_BR]=Programa simples em Python/Tkinter +Name[ru]=Простой скрипт Python/Tkinter +Name[sk]=Jednoduchý Python/Tkinter skript +Name[sr]=Једноставна Python/Tkinter скрипта +Name[sr@Latn]=Jednostavna Python/Tkinter skripta +Name[sv]=Enkelt Python/Tkinter-skript +Name[tr]=Basit Python/Tkinter betiği +Name[zh_CN]=简单的 Python/Tkinter 脚本 +Name[zh_TW]=簡單的 Python/Tkinter 文稿 +Icon=pytk.png +Category=Python +Comment=This generates a simplistic "Hello world" program in Python/Tkinter +Comment[ca]=Genera un simple programa de "Hello world" en Python/Tkinter +Comment[da]=Dette genererer et simplistisk "Goddag verden" program i Python/Tkinter +Comment[de]=Erstellt ein einfaches "Hello World"-Programm in Python/Tkinter +Comment[el]=Αυτό δημιουργεί ένα απλό πρόγραμμα "Γεια σου κόσμε" σε Python/Tkinter +Comment[es]=Genera un sencillo programa «Hola mundo» en Python/Tkinter +Comment[et]=Lihtsa "Tere, maailm" programmi loomine Pythonis/Tkinteris +Comment[eu]="Kaixo mundua" programa sinple bat sortzen du Python/Tkinter-en +Comment[fa]=یک برنامۀ سادۀ «Hello world» در پیتون/Tkinter تولید می‌کند +Comment[fr]=Génère un programme « Bonjour monde » simple en Python / Tkinter +Comment[gl]=Isto xera un programa sinxelo "Ola mundo" en Python/Tkinter +Comment[hu]=Létrehoz egy egyszerű Hello world programot Python/Tkinter nyelven +Comment[it]=Genera un semplice programma di "Hello world" in Python/Tkinter +Comment[ja]=簡単な Hello world プログラムを Python/Tkinter で作成します +Comment[nds]=Dit stellt en eenfach "Moin Welt"-Programm in Python/Tkinter op. +Comment[ne]=यसले पाइथोन/Tkinter मा साधारण "हेल्लो वोल्ड" कार्यक्रम उत्पन्न गर्दछ +Comment[nl]=Dit genereert een eenvoudig "Hallo Wereld"-programma in Python/Tkinter +Comment[pl]=Generuje prosty skrypt "Witaj świecie" w Pythonie/Tkinterze +Comment[pt]=Isto gera um programa simples "Olá mundo" em Python/Tkinter +Comment[pt_BR]=Isto gera um programa simples "Olá mundo" em Python/Tkinter +Comment[ru]=Создание простой программы "Hello world" на Python и Tkinter +Comment[sk]=Vygeneruje jednoduchý "Ahoj svet" program v Python/Tkinter +Comment[sr]=Прави једноставан „Здраво свете“ у Python/Tkinter-у +Comment[sr@Latn]=Pravi jednostavan „Zdravo svete“ u Python/Tkinter-u +Comment[sv]=Detta skapar ett förenklat "Hello world"-program i Python/Tkinter +Comment[tr]=Bu Python/Tkinter'da basit bir "Merhaba Dünya" programı yaratır. +Comment[zh_CN]=这将生成一个简单的 Python/Tkinter 语言“Hello world”程序 +Comment[zh_TW]=產生一個簡單的 Python/Tkinter 的 Hello World 程式 +FileTemplates=py,ShellStyle +ShowFilesAfterGeneration=%{dest}/%{APPNAMELC}.py +Archive=pytk.tar.gz + +[FILE1] +Type=install +EscapeXML=true +Source=%{src}/app.tdevelop +Dest=%{dest}/%{APPNAMELC}.tdevelop + +[FILE2] +Type=install +Source=%{src}/app.py +Dest=%{dest}/%{APPNAMELC}.py + +[MSG] +Type=message +Comment=A simple Python/Tkinter script was created in %{dest} +Comment[ca]=Un simple script en Python/Tkinter ha estat creat en %{dest} +Comment[da]=Et simpelt Python/Tkinter script blev oprettet i %{dest} +Comment[de]=Ein einfaches Python/Tkinter-Skript wurde in %{dest} erstellt. +Comment[el]=Ένα απλό σενάριο Python/Tkinter δημιουργήθηκε στο %{dest} +Comment[es]=Un sencillo guión en Python/Tkinter ha sido creado en %{dest} +Comment[et]=Lihtne Pythoni/Tkinteri skript loodi asukohta %{dest} +Comment[eu]=Python/Tkinter script sinple bat sortu da hemen: %{dest} +Comment[fa]=یک دست‌نوشتۀ سادۀ پیتون/Tkinter در %{dest} ایجاد شد +Comment[fr]=Un script Python / Tkinter simple a été créé dans %{dest} +Comment[ga]=Cruthaíodh script shimplí Python/Tkinter i %{dest} +Comment[gl]=Creouse un script sinxelo Python/Tkinter en %{dest} +Comment[hu]=Létrejött egy egyszerű Python/Tkinter-szkript itt: %{dest} +Comment[it]=È stato creato un semplice script Python/Tkinter in %{dest} +Comment[ja]=簡単な Python/Tkinter スクリプトを %{dest} に作成しました +Comment[nds]=In %{dest} wöör en eenfach Python-/Tkinter-Skript opstellt. +Comment[ne]=साधारण पाइथोन/Tkinter स्क्रिप्ट %{dest} मा सिर्जना गरियो +Comment[nl]=Een eenvoudig Python/Tkinter-script is aangemaakt in %{dest} +Comment[pl]=Prosty skrypt Python/Tkinter został utworzony w %{dest} +Comment[pt]=Foi criado um programa simples em Python/Tkinter em %{dest} +Comment[pt_BR]=Foi criado um programa simples em Python/Tkinter em %{dest} +Comment[ru]=Простой скрипт Python/Tkinter создан в %{dest} +Comment[sk]=Jednoduchý Python/Tkinter skript bol vytvorený v %{dest} +Comment[sr]=Једноставна Python/Tkinter скрипта направљена је у %{dest} +Comment[sr@Latn]=Jednostavna Python/Tkinter skripta napravljena je u %{dest} +Comment[sv]=Ett enkelt Python/Tkinter-skript skapades i %{dest} +Comment[tr]=Basit Python/Tkinter betiği %{dest} içinde yaratıldı. +Comment[zh_CN]=在 %{dest} 创建了一个简单的 Python/Tkinter 脚本 +Comment[zh_TW]=一個簡單的 Python/Tkinter 文稿已建立於 %{dest} diff --git a/languages/python/app_templates/pytk/pytk.tdevtemplate b/languages/python/app_templates/pytk/pytk.tdevtemplate deleted file mode 100644 index 3b8ac6bc..00000000 --- a/languages/python/app_templates/pytk/pytk.tdevtemplate +++ /dev/null @@ -1,107 +0,0 @@ -# KDE Config File -[General] -Name=Simple Python/Tkinter script -Name[ca]=Simple script en Python/Tkinter -Name[da]=Simpelt Python/Tkinter script -Name[de]=Einfaches Python/Tkinter-Skript -Name[el]=Απλό σενάριο Python/Tkinter -Name[es]=Guión sencillo en Python/Tkinter -Name[et]=Lihtne Pythoni/Tkinteri skript -Name[eu]=Python/Tkinter script sinplea -Name[fa]=دست‌نوشتۀ سادۀ پیتون/Tkinter -Name[fr]=Script Python / Tkinter simple -Name[ga]=Script shimplí Python/Tkinter -Name[gl]=Script sinxelo Python/Tkinter -Name[hu]=Egyszerű Python/Tkinter-szkript -Name[it]=Semplice script Python/Tkinter -Name[ja]=簡単な Python/Tkinter スクリプト -Name[nds]=Eenfach Python/Tkinter-Skript -Name[ne]=साधारण पाइथोन/Tkinter स्क्रिप्ट -Name[nl]=Eenvoudig Python/Tkinter-script -Name[pl]=Prosty skrypt Python/Tkinter -Name[pt]=Programa simples em Python/Tkinter -Name[pt_BR]=Programa simples em Python/Tkinter -Name[ru]=Простой скрипт Python/Tkinter -Name[sk]=Jednoduchý Python/Tkinter skript -Name[sr]=Једноставна Python/Tkinter скрипта -Name[sr@Latn]=Jednostavna Python/Tkinter skripta -Name[sv]=Enkelt Python/Tkinter-skript -Name[tr]=Basit Python/Tkinter betiği -Name[zh_CN]=简单的 Python/Tkinter 脚本 -Name[zh_TW]=簡單的 Python/Tkinter 文稿 -Icon=pytk.png -Category=Python -Comment=This generates a simplistic "Hello world" program in Python/Tkinter -Comment[ca]=Genera un simple programa de "Hello world" en Python/Tkinter -Comment[da]=Dette genererer et simplistisk "Goddag verden" program i Python/Tkinter -Comment[de]=Erstellt ein einfaches "Hello World"-Programm in Python/Tkinter -Comment[el]=Αυτό δημιουργεί ένα απλό πρόγραμμα "Γεια σου κόσμε" σε Python/Tkinter -Comment[es]=Genera un sencillo programa «Hola mundo» en Python/Tkinter -Comment[et]=Lihtsa "Tere, maailm" programmi loomine Pythonis/Tkinteris -Comment[eu]="Kaixo mundua" programa sinple bat sortzen du Python/Tkinter-en -Comment[fa]=یک برنامۀ سادۀ «Hello world» در پیتون/Tkinter تولید می‌کند -Comment[fr]=Génère un programme « Bonjour monde » simple en Python / Tkinter -Comment[gl]=Isto xera un programa sinxelo "Ola mundo" en Python/Tkinter -Comment[hu]=Létrehoz egy egyszerű Hello world programot Python/Tkinter nyelven -Comment[it]=Genera un semplice programma di "Hello world" in Python/Tkinter -Comment[ja]=簡単な Hello world プログラムを Python/Tkinter で作成します -Comment[nds]=Dit stellt en eenfach "Moin Welt"-Programm in Python/Tkinter op. -Comment[ne]=यसले पाइथोन/Tkinter मा साधारण "हेल्लो वोल्ड" कार्यक्रम उत्पन्न गर्दछ -Comment[nl]=Dit genereert een eenvoudig "Hallo Wereld"-programma in Python/Tkinter -Comment[pl]=Generuje prosty skrypt "Witaj świecie" w Pythonie/Tkinterze -Comment[pt]=Isto gera um programa simples "Olá mundo" em Python/Tkinter -Comment[pt_BR]=Isto gera um programa simples "Olá mundo" em Python/Tkinter -Comment[ru]=Создание простой программы "Hello world" на Python и Tkinter -Comment[sk]=Vygeneruje jednoduchý "Ahoj svet" program v Python/Tkinter -Comment[sr]=Прави једноставан „Здраво свете“ у Python/Tkinter-у -Comment[sr@Latn]=Pravi jednostavan „Zdravo svete“ u Python/Tkinter-u -Comment[sv]=Detta skapar ett förenklat "Hello world"-program i Python/Tkinter -Comment[tr]=Bu Python/Tkinter'da basit bir "Merhaba Dünya" programı yaratır. -Comment[zh_CN]=这将生成一个简单的 Python/Tkinter 语言“Hello world”程序 -Comment[zh_TW]=產生一個簡單的 Python/Tkinter 的 Hello World 程式 -FileTemplates=py,ShellStyle -ShowFilesAfterGeneration=%{dest}/%{APPNAMELC}.py -Archive=pytk.tar.gz - -[FILE1] -Type=install -EscapeXML=true -Source=%{src}/app.tdevelop -Dest=%{dest}/%{APPNAMELC}.tdevelop - -[FILE2] -Type=install -Source=%{src}/app.py -Dest=%{dest}/%{APPNAMELC}.py - -[MSG] -Type=message -Comment=A simple Python/Tkinter script was created in %{dest} -Comment[ca]=Un simple script en Python/Tkinter ha estat creat en %{dest} -Comment[da]=Et simpelt Python/Tkinter script blev oprettet i %{dest} -Comment[de]=Ein einfaches Python/Tkinter-Skript wurde in %{dest} erstellt. -Comment[el]=Ένα απλό σενάριο Python/Tkinter δημιουργήθηκε στο %{dest} -Comment[es]=Un sencillo guión en Python/Tkinter ha sido creado en %{dest} -Comment[et]=Lihtne Pythoni/Tkinteri skript loodi asukohta %{dest} -Comment[eu]=Python/Tkinter script sinple bat sortu da hemen: %{dest} -Comment[fa]=یک دست‌نوشتۀ سادۀ پیتون/Tkinter در %{dest} ایجاد شد -Comment[fr]=Un script Python / Tkinter simple a été créé dans %{dest} -Comment[ga]=Cruthaíodh script shimplí Python/Tkinter i %{dest} -Comment[gl]=Creouse un script sinxelo Python/Tkinter en %{dest} -Comment[hu]=Létrejött egy egyszerű Python/Tkinter-szkript itt: %{dest} -Comment[it]=È stato creato un semplice script Python/Tkinter in %{dest} -Comment[ja]=簡単な Python/Tkinter スクリプトを %{dest} に作成しました -Comment[nds]=In %{dest} wöör en eenfach Python-/Tkinter-Skript opstellt. -Comment[ne]=साधारण पाइथोन/Tkinter स्क्रिप्ट %{dest} मा सिर्जना गरियो -Comment[nl]=Een eenvoudig Python/Tkinter-script is aangemaakt in %{dest} -Comment[pl]=Prosty skrypt Python/Tkinter został utworzony w %{dest} -Comment[pt]=Foi criado um programa simples em Python/Tkinter em %{dest} -Comment[pt_BR]=Foi criado um programa simples em Python/Tkinter em %{dest} -Comment[ru]=Простой скрипт Python/Tkinter создан в %{dest} -Comment[sk]=Jednoduchý Python/Tkinter skript bol vytvorený v %{dest} -Comment[sr]=Једноставна Python/Tkinter скрипта направљена је у %{dest} -Comment[sr@Latn]=Jednostavna Python/Tkinter skripta napravljena je u %{dest} -Comment[sv]=Ett enkelt Python/Tkinter-skript skapades i %{dest} -Comment[tr]=Basit Python/Tkinter betiği %{dest} içinde yaratıldı. -Comment[zh_CN]=在 %{dest} 创建了一个简单的 Python/Tkinter 脚本 -Comment[zh_TW]=一個簡單的 Python/Tkinter 文稿已建立於 %{dest} diff --git a/languages/python/doc/CMakeLists.txt b/languages/python/doc/CMakeLists.txt index 49cdea0d..a3caa5fd 100644 --- a/languages/python/doc/CMakeLists.txt +++ b/languages/python/doc/CMakeLists.txt @@ -11,4 +11,4 @@ install( FILES python.toc python_bugs.toc - DESTINATION ${DATA_INSTALL_DIR}/tdevdocumentation/tocs ) + DESTINATION ${DATA_INSTALL_DIR}/kdevdocumentation/tocs ) diff --git a/languages/python/doc/Makefile.am b/languages/python/doc/Makefile.am index 1714c774..5159f5f0 100644 --- a/languages/python/doc/Makefile.am +++ b/languages/python/doc/Makefile.am @@ -1,4 +1,4 @@ -tocdir = ${kde_datadir}/tdevdocumentation/tocs +tocdir = ${kde_datadir}/kdevdocumentation/tocs toc_DATA = python.toc python_bugs.toc #indexdir = ${kde_datadir}/devdoctreeview/indices diff --git a/languages/python/file_templates/CMakeLists.txt b/languages/python/file_templates/CMakeLists.txt index efd7a0bf..ddc20b95 100644 --- a/languages/python/file_templates/CMakeLists.txt +++ b/languages/python/file_templates/CMakeLists.txt @@ -11,4 +11,4 @@ install( FILES py - DESTINATION ${DATA_INSTALL_DIR}/tdevfilecreate/file-templates ) + DESTINATION ${DATA_INSTALL_DIR}/kdevfilecreate/file-templates ) diff --git a/languages/python/file_templates/Makefile.am b/languages/python/file_templates/Makefile.am index 9073dd5f..0846fdf2 100644 --- a/languages/python/file_templates/Makefile.am +++ b/languages/python/file_templates/Makefile.am @@ -1,4 +1,4 @@ -templatedir = $(kde_datadir)/tdevfilecreate/file-templates +templatedir = $(kde_datadir)/kdevfilecreate/file-templates template_DATA = py diff --git a/languages/python/kde_pydoc.py b/languages/python/kde_pydoc.py new file mode 100755 index 00000000..0516f172 --- /dev/null +++ b/languages/python/kde_pydoc.py @@ -0,0 +1,131 @@ +#!/usr/bin/env python +""" +""" + +__author__ = "David Nolden, Ka-Ping Yee " +__version__ = "6 April 2006" + +import sys, imp, os, stat, re, types, cgi +from repr import Repr +from string import expandtabs, find, join, lower, split, strip, rstrip +import pydoc + + + + +def cleanlinks(string): + """Changes the links to work with the pydoc:-notation""" + finalstring = "" + string = str(string).replace(".html","") + pos = 0 + mark = " __maxdepth): + notprocessed.append(path) + return + dir = path + for file in os.listdir(dir): + path = os.path.join(dir, file) + if os.path.isdir(path): + writedocs(path, file + '.' + pkgpath, depth) + if os.path.isfile(path): + writedocs(path, pkgpath, depth) + if os.path.isfile(path): + modname = pydoc.inspect.getmodulename(path) + if modname: + writedoc(pkgpath + modname) + + if(depth == 1): + if(len(notprocessed) != 0): + print "
the following paths were not processed because they are deeper than the maximum depth of " + str(__maxdepth) + ":
" + for x in notprocessed: + print cgi.escape(x) + "
" + +def writedoc(key,top=False): + """Write HTML documentation to a file in the current directory.""" + if(type(key) == str and (key == "modules" or key == "/.")): + heading = pydoc.html.heading( + '
 ' + 'Python: Index of Modules' + '', + '#ffffff', '#7799ee') + builtins = [] + for name in sys.builtin_module_names: + builtins.append('
%s' % (cgi.escape(name,quote=True), cgi.escape(name))) + indices = ['

Built-in modules: ' + cgi.escape(join(builtins, ', '))] + seen = {} + for dir in pydoc.pathdirs(): + indices.append(pydoc.html.index(dir, seen)) + print cleanlinks(heading + join(indices)) + return + + if(type(key) != types.ModuleType): + object = pydoc.locate(key) + if(object == None and top): + print "could not locate module/object for key " + \ + cgi.escape(key) + "
go to index"; + else: + object = key + + if object: + print cleanlinks(pydoc.html.page(pydoc.describe(object), pydoc.html.document(object))) + + + +if __name__ == '__main__': + import getopt + class BadUsage: pass + + try: + opts, args = getopt.getopt(sys.argv[1:], 'k:p:w') + + print "" + print "" + print "" + + if args: + for arg in args: + try: + if os.path.isdir(arg): writedocs(arg) + + if os.path.isfile(arg): + arg = pydoc.importfile(arg) + writedoc(arg, True) + except pydoc.ErrorDuringImport, value: + print 'problem in %s - %s' % ( + cgi.escape(value.filename), cgi.escape(value.exc)) + else: + raise BadUsage + + except (getopt.error, BadUsage): + print "need parameters\n" diff --git a/languages/python/kdevpythonsupport.desktop b/languages/python/kdevpythonsupport.desktop new file mode 100644 index 00000000..61f2ff76 --- /dev/null +++ b/languages/python/kdevpythonsupport.desktop @@ -0,0 +1,85 @@ +[Desktop Entry] +Type=Service +Exec=blubb +Comment=Python Support +Comment[ca]=Suport per a Python +Comment[da]=Python-understøttelse +Comment[de]=Unterstützung für Python +Comment[el]=Υποστήριξη Python +Comment[es]=Soporte para Python +Comment[et]=Pythoni toetus +Comment[eu]=Python euskarria +Comment[fa]=پشتیبانی پیتون +Comment[fr]=Prise en charge du langage PYTHON +Comment[ga]=Tacaíocht Python +Comment[gl]=Soporte para Python +Comment[hi]=पायथन समर्थन +Comment[hu]=Python-támogatás +Comment[is]=Python stuðningur +Comment[it]=Supporto per Python +Comment[ja]=Python サポート +Comment[nds]=Ünnerstütten för Python +Comment[ne]=पाइथोन समर्थन +Comment[nl]=Ondersteuning voor Python +Comment[pl]=Obsługa Pythona +Comment[pt]=Suporte a Python +Comment[pt_BR]=Suporte ao Python +Comment[ru]=Поддержка языка Python +Comment[sk]=Python podpora +Comment[sl]=Podpora za Python +Comment[sr]=Подршка за Python +Comment[sr@Latn]=Podrška za Python +Comment[sv]=Python-stöd +Comment[ta]=பைதான் ஆதரவு +Comment[tg]=Ёрӣ намудани забони Python +Comment[tr]=Python Desteği +Comment[zh_CN]=Python 支持 +Comment[zh_TW]=Python 支援 +Name=KDevPythonSupport +Name[da]=TDevelop Python-understøttelse +Name[de]=Unterstützung für Python (TDevelop) +Name[hi]=के-डेव-पायथन-समर्थन +Name[nds]=Python-Ünnerstütten för TDevelop +Name[pl]=KDevObsługaPythona +Name[sk]=KDev Python podpora +Name[sv]=TDevelop Python-stöd +Name[ta]=கெடெவ் பைதான் ஆதரவு +Name[tg]=Ёрӣ намудани забони Python +Name[zh_TW]=TDevelop Python 支援 +GenericName=Python Support +GenericName[ca]=Suport per a Python +GenericName[da]=Python-understøttelse +GenericName[de]=Unterstützung für Python +GenericName[el]=Υποστήριξη Python +GenericName[es]=Soporte para Python +GenericName[et]=Pythoni toetus +GenericName[eu]=Python euskarria +GenericName[fa]=پشتیبانی پیتون +GenericName[fr]=Prise en charge du langage PYTHON +GenericName[ga]=Tacaíocht Python +GenericName[gl]=Soporte para Python +GenericName[hi]=पायथन समर्थन +GenericName[hu]=Python-támogatás +GenericName[it]=Supporto per Python +GenericName[ja]=Python サポート +GenericName[nds]=Ünnerstütten för Python +GenericName[ne]=पाइथोन समर्थन +GenericName[nl]=Ondersteuning voor Python +GenericName[pl]=Obsługa Pythona +GenericName[pt]=Suporte a Python +GenericName[pt_BR]=Suporte ao Python +GenericName[ru]=Поддержка языка Python +GenericName[sk]=Python podpora +GenericName[sl]=Podpora za Python +GenericName[sr]=Подршка за Python +GenericName[sr@Latn]=Podrška za Python +GenericName[sv]=Python-stöd +GenericName[ta]=பைதான் ஆதரவு +GenericName[tg]=Ёрӣ намудани забони Python +GenericName[tr]=Python Desteği +GenericName[zh_CN]=Python 支持 +GenericName[zh_TW]=Python 支援 +ServiceTypes=TDevelop/LanguageSupport +X-TDE-Library=libkdevpythonsupport +X-TDevelop-Version=5 +X-TDevelop-Language=Python diff --git a/languages/python/kdevpythonsupport.rc b/languages/python/kdevpythonsupport.rc new file mode 100644 index 00000000..d19011b8 --- /dev/null +++ b/languages/python/kdevpythonsupport.rc @@ -0,0 +1,16 @@ + + + +

+ + + + + + + + + + + + diff --git a/languages/python/pydoc.cpp b/languages/python/pydoc.cpp index 43ceb071..bcb38b1e 100644 --- a/languages/python/pydoc.cpp +++ b/languages/python/pydoc.cpp @@ -20,7 +20,7 @@ PydocProtocol::PydocProtocol(const TQCString &pool, const TQCString &app) : SlaveBase("pydoc", pool, app), key() { python = TDEGlobal::dirs()->findExe("python"); - script = locate("data", "tdeio_pydoc/tde_pydoc.py"); + script = locate("data", "tdeio_pydoc/kde_pydoc.py"); } diff --git a/languages/python/pythonconfigwidget.cpp b/languages/python/pythonconfigwidget.cpp index e6915eac..29103705 100644 --- a/languages/python/pythonconfigwidget.cpp +++ b/languages/python/pythonconfigwidget.cpp @@ -20,8 +20,8 @@ PythonConfigWidget::PythonConfigWidget(TQDomDocument &projectDom, TQWidget *parent, const char *name) : PythonConfigWidgetBase(parent, name), dom(projectDom) { - interpreter_edit->setText(DomUtil::readEntry(dom, "/tdepythonsupport/run/interpreter")); - terminal_box->setChecked(DomUtil::readBoolEntry(dom, "/tdepythonsupport/run/terminal")); + interpreter_edit->setText(DomUtil::readEntry(dom, "/kdevpythonsupport/run/interpreter")); + terminal_box->setChecked(DomUtil::readBoolEntry(dom, "/kdevpythonsupport/run/terminal")); } @@ -31,8 +31,8 @@ PythonConfigWidget::~PythonConfigWidget() void PythonConfigWidget::accept() { - DomUtil::writeEntry(dom, "/tdepythonsupport/run/interpreter", interpreter_edit->text()); - DomUtil::writeBoolEntry(dom, "/tdepythonsupport/run/terminal", terminal_box->isChecked()); + DomUtil::writeEntry(dom, "/kdevpythonsupport/run/interpreter", interpreter_edit->text()); + DomUtil::writeBoolEntry(dom, "/kdevpythonsupport/run/terminal", terminal_box->isChecked()); } #include "pythonconfigwidget.moc" diff --git a/languages/python/pythonimplementationwidget.cpp b/languages/python/pythonimplementationwidget.cpp index b89488ef..de351b8e 100644 --- a/languages/python/pythonimplementationwidget.cpp +++ b/languages/python/pythonimplementationwidget.cpp @@ -30,10 +30,10 @@ #include #include -#include -#include +#include +#include -PythonImplementationWidget::PythonImplementationWidget(TDevLanguageSupport* part, +PythonImplementationWidget::PythonImplementationWidget(KDevLanguageSupport* part, TQWidget* parent, const char* name, bool modal) : ImplementationWidget(part, parent, name, modal) { diff --git a/languages/python/pythonimplementationwidget.h b/languages/python/pythonimplementationwidget.h index bc4a945b..c8e1cbde 100644 --- a/languages/python/pythonimplementationwidget.h +++ b/languages/python/pythonimplementationwidget.h @@ -27,7 +27,7 @@ class PythonImplementationWidget : public ImplementationWidget Q_OBJECT public: - PythonImplementationWidget(TDevLanguageSupport* part, TQWidget* parent = 0, const char* name = 0, bool modal = true); + PythonImplementationWidget(KDevLanguageSupport* part, TQWidget* parent = 0, const char* name = 0, bool modal = true); ~PythonImplementationWidget(); diff --git a/languages/python/pythonsupportpart.cpp b/languages/python/pythonsupportpart.cpp index 279688a6..1f2c7b87 100644 --- a/languages/python/pythonsupportpart.cpp +++ b/languages/python/pythonsupportpart.cpp @@ -12,10 +12,10 @@ #include "pythonsupportpart.h" #include "pythonconfigwidget.h" -#include -#include -#include -#include +#include +#include +#include +#include #include #include @@ -29,8 +29,8 @@ #include #include #include -#include -#include +#include +#include #include #include #include @@ -38,16 +38,16 @@ #include "qtdesignerpythonintegration.h" #include "pythonimplementationwidget.h" -typedef TDevGenericFactory PythonSupportFactory; -static const TDevPluginInfo data("tdepythonsupport"); -K_EXPORT_COMPONENT_FACTORY( libtdevpythonsupport, PythonSupportFactory( data ) ) +typedef KDevGenericFactory PythonSupportFactory; +static const KDevPluginInfo data("kdevpythonsupport"); +K_EXPORT_COMPONENT_FACTORY( libkdevpythonsupport, PythonSupportFactory( data ) ) PythonSupportPart::PythonSupportPart(TQObject *parent, const char *name, const TQStringList &) - : TDevLanguageSupport(&data, parent, name ? name : "PythonSupportPart") + : KDevLanguageSupport(&data, parent, name ? name : "PythonSupportPart") { setInstance(PythonSupportFactory::instance()); - setXMLFile("tdepythonsupport.rc"); + setXMLFile("kdevpythonsupport.rc"); connect( core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(projectOpened()) ); connect( core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(projectClosed()) ); @@ -100,7 +100,7 @@ void PythonSupportPart::contextMenu(TQPopupMenu *popup, const Context *context) { m_contextFileName = url.fileName(); int id = popup->insertItem(i18n("Create or Select Implementation..."), this, TQT_SLOT(slotCreateSubclass())); - popup->setWhatsThis(id, i18n("Create or select implementation

Creates or selects a subclass of selected form for use with integrated TDevDesigner.")); + popup->setWhatsThis(id, i18n("Create or select implementation

Creates or selects a subclass of selected form for use with integrated KDevDesigner.")); } } } @@ -217,7 +217,7 @@ void PythonSupportPart::savedFile(const KURL &fileName) } -TDevLanguageSupport::Features PythonSupportPart::features() +KDevLanguageSupport::Features PythonSupportPart::features() { return Features(Classes | Functions); } @@ -316,7 +316,7 @@ void PythonSupportPart::parse(const TQString &fileName) TQString PythonSupportPart::interpreter() { - TQString prog = DomUtil::readEntry(*projectDom(), "/tdepythonsupport/run/interpreter"); + TQString prog = DomUtil::readEntry(*projectDom(), "/kdevpythonsupport/run/interpreter"); if (prog.isEmpty()) prog = "python"; @@ -326,8 +326,8 @@ TQString PythonSupportPart::interpreter() void PythonSupportPart::startApplication(const TQString &program) { - bool inTerminal = DomUtil::readBoolEntry(*projectDom(), "/tdepythonsupport/run/terminal"); - if (TDevAppFrontend *appFrontend = extension("TDevelop/AppFrontend")) + bool inTerminal = DomUtil::readBoolEntry(*projectDom(), "/kdevpythonsupport/run/terminal"); + if (KDevAppFrontend *appFrontend = extension("TDevelop/AppFrontend")) appFrontend->startAppCommand(TQString(), program, inTerminal); } @@ -369,9 +369,9 @@ void PythonSupportPart::slotPydoc() } } -TDevDesignerIntegration *PythonSupportPart::designer(KInterfaceDesigner::DesignerType type) +KDevDesignerIntegration *PythonSupportPart::designer(KInterfaceDesigner::DesignerType type) { - TDevDesignerIntegration *des = 0; + KDevDesignerIntegration *des = 0; switch (type) { case KInterfaceDesigner::TQtDesigner: @@ -381,7 +381,7 @@ TDevDesignerIntegration *PythonSupportPart::designer(KInterfaceDesigner::Designe PythonImplementationWidget *impl = new PythonImplementationWidget(this); des = new QtDesignerPythonIntegration(this, impl); des->loadSettings(*project()->projectDom(), - "tdepythonsupport/designerintegration"); + "kdevpythonsupport/designerintegration"); m_designers[type] = des; } break; diff --git a/languages/python/pythonsupportpart.h b/languages/python/pythonsupportpart.h index 873e0934..c60a2eb3 100644 --- a/languages/python/pythonsupportpart.h +++ b/languages/python/pythonsupportpart.h @@ -13,14 +13,14 @@ #define _PYTHONSUPPORTPART_H_ -#include "tdevlanguagesupport.h" +#include "kdevlanguagesupport.h" class KDialogBase; class TQStringList; class TQPopupMenu; class Context; -class PythonSupportPart : public TDevLanguageSupport +class PythonSupportPart : public KDevLanguageSupport { Q_OBJECT @@ -29,7 +29,7 @@ public: PythonSupportPart( TQObject *parent, const char *name, const TQStringList & ); ~PythonSupportPart(); - virtual TDevDesignerIntegration *designer(KInterfaceDesigner::DesignerType type); + virtual KDevDesignerIntegration *designer(KInterfaceDesigner::DesignerType type); public slots: void contextMenu(TQPopupMenu *popup, const Context *context); @@ -60,7 +60,7 @@ private: void maybeParse(const TQString fileName); void parse(const TQString &fileName); - TQMap m_designers; + TQMap m_designers; TQString m_contextFileName; }; diff --git a/languages/python/qtdesignerpythonintegration.cpp b/languages/python/qtdesignerpythonintegration.cpp index ca8bed51..c1627f18 100644 --- a/languages/python/qtdesignerpythonintegration.cpp +++ b/languages/python/qtdesignerpythonintegration.cpp @@ -31,14 +31,14 @@ #include #include -#include -#include -#include +#include +#include +#include #include "codemodel_utils.h" #include "implementationwidget.h" -QtDesignerPythonIntegration::QtDesignerPythonIntegration(TDevLanguageSupport* part, ImplementationWidget* impl) +QtDesignerPythonIntegration::QtDesignerPythonIntegration(KDevLanguageSupport* part, ImplementationWidget* impl) :QtDesignerIntegration(part, impl, false, 0) { } diff --git a/languages/python/qtdesignerpythonintegration.h b/languages/python/qtdesignerpythonintegration.h index 120e6b47..8b171f17 100644 --- a/languages/python/qtdesignerpythonintegration.h +++ b/languages/python/qtdesignerpythonintegration.h @@ -27,7 +27,7 @@ class QtDesignerPythonIntegration : public QtDesignerIntegration Q_OBJECT public: - QtDesignerPythonIntegration(TDevLanguageSupport* part, ImplementationWidget* impl); + QtDesignerPythonIntegration(KDevLanguageSupport* part, ImplementationWidget* impl); ~QtDesignerPythonIntegration(); diff --git a/languages/python/tde_pydoc.py b/languages/python/tde_pydoc.py deleted file mode 100644 index 0516f172..00000000 --- a/languages/python/tde_pydoc.py +++ /dev/null @@ -1,131 +0,0 @@ -#!/usr/bin/env python -""" -""" - -__author__ = "David Nolden, Ka-Ping Yee " -__version__ = "6 April 2006" - -import sys, imp, os, stat, re, types, cgi -from repr import Repr -from string import expandtabs, find, join, lower, split, strip, rstrip -import pydoc - - - - -def cleanlinks(string): - """Changes the links to work with the pydoc:-notation""" - finalstring = "" - string = str(string).replace(".html","") - pos = 0 - mark = " __maxdepth): - notprocessed.append(path) - return - dir = path - for file in os.listdir(dir): - path = os.path.join(dir, file) - if os.path.isdir(path): - writedocs(path, file + '.' + pkgpath, depth) - if os.path.isfile(path): - writedocs(path, pkgpath, depth) - if os.path.isfile(path): - modname = pydoc.inspect.getmodulename(path) - if modname: - writedoc(pkgpath + modname) - - if(depth == 1): - if(len(notprocessed) != 0): - print "
the following paths were not processed because they are deeper than the maximum depth of " + str(__maxdepth) + ":
" - for x in notprocessed: - print cgi.escape(x) + "
" - -def writedoc(key,top=False): - """Write HTML documentation to a file in the current directory.""" - if(type(key) == str and (key == "modules" or key == "/.")): - heading = pydoc.html.heading( - '
 ' - 'Python: Index of Modules' - '', - '#ffffff', '#7799ee') - builtins = [] - for name in sys.builtin_module_names: - builtins.append('
%s' % (cgi.escape(name,quote=True), cgi.escape(name))) - indices = ['

Built-in modules: ' + cgi.escape(join(builtins, ', '))] - seen = {} - for dir in pydoc.pathdirs(): - indices.append(pydoc.html.index(dir, seen)) - print cleanlinks(heading + join(indices)) - return - - if(type(key) != types.ModuleType): - object = pydoc.locate(key) - if(object == None and top): - print "could not locate module/object for key " + \ - cgi.escape(key) + "
go to index"; - else: - object = key - - if object: - print cleanlinks(pydoc.html.page(pydoc.describe(object), pydoc.html.document(object))) - - - -if __name__ == '__main__': - import getopt - class BadUsage: pass - - try: - opts, args = getopt.getopt(sys.argv[1:], 'k:p:w') - - print "" - print "" - print "" - - if args: - for arg in args: - try: - if os.path.isdir(arg): writedocs(arg) - - if os.path.isfile(arg): - arg = pydoc.importfile(arg) - writedoc(arg, True) - except pydoc.ErrorDuringImport, value: - print 'problem in %s - %s' % ( - cgi.escape(value.filename), cgi.escape(value.exc)) - else: - raise BadUsage - - except (getopt.error, BadUsage): - print "need parameters\n" diff --git a/languages/python/tdevpythonsupport.desktop b/languages/python/tdevpythonsupport.desktop deleted file mode 100644 index 973604ff..00000000 --- a/languages/python/tdevpythonsupport.desktop +++ /dev/null @@ -1,85 +0,0 @@ -[Desktop Entry] -Type=Service -Exec=blubb -Comment=Python Support -Comment[ca]=Suport per a Python -Comment[da]=Python-understøttelse -Comment[de]=Unterstützung für Python -Comment[el]=Υποστήριξη Python -Comment[es]=Soporte para Python -Comment[et]=Pythoni toetus -Comment[eu]=Python euskarria -Comment[fa]=پشتیبانی پیتون -Comment[fr]=Prise en charge du langage PYTHON -Comment[ga]=Tacaíocht Python -Comment[gl]=Soporte para Python -Comment[hi]=पायथन समर्थन -Comment[hu]=Python-támogatás -Comment[is]=Python stuðningur -Comment[it]=Supporto per Python -Comment[ja]=Python サポート -Comment[nds]=Ünnerstütten för Python -Comment[ne]=पाइथोन समर्थन -Comment[nl]=Ondersteuning voor Python -Comment[pl]=Obsługa Pythona -Comment[pt]=Suporte a Python -Comment[pt_BR]=Suporte ao Python -Comment[ru]=Поддержка языка Python -Comment[sk]=Python podpora -Comment[sl]=Podpora za Python -Comment[sr]=Подршка за Python -Comment[sr@Latn]=Podrška za Python -Comment[sv]=Python-stöd -Comment[ta]=பைதான் ஆதரவு -Comment[tg]=Ёрӣ намудани забони Python -Comment[tr]=Python Desteği -Comment[zh_CN]=Python 支持 -Comment[zh_TW]=Python 支援 -Name=KDevPythonSupport -Name[da]=TDevelop Python-understøttelse -Name[de]=Unterstützung für Python (TDevelop) -Name[hi]=के-डेव-पायथन-समर्थन -Name[nds]=Python-Ünnerstütten för TDevelop -Name[pl]=KDevObsługaPythona -Name[sk]=KDev Python podpora -Name[sv]=TDevelop Python-stöd -Name[ta]=கெடெவ் பைதான் ஆதரவு -Name[tg]=Ёрӣ намудани забони Python -Name[zh_TW]=TDevelop Python 支援 -GenericName=Python Support -GenericName[ca]=Suport per a Python -GenericName[da]=Python-understøttelse -GenericName[de]=Unterstützung für Python -GenericName[el]=Υποστήριξη Python -GenericName[es]=Soporte para Python -GenericName[et]=Pythoni toetus -GenericName[eu]=Python euskarria -GenericName[fa]=پشتیبانی پیتون -GenericName[fr]=Prise en charge du langage PYTHON -GenericName[ga]=Tacaíocht Python -GenericName[gl]=Soporte para Python -GenericName[hi]=पायथन समर्थन -GenericName[hu]=Python-támogatás -GenericName[it]=Supporto per Python -GenericName[ja]=Python サポート -GenericName[nds]=Ünnerstütten för Python -GenericName[ne]=पाइथोन समर्थन -GenericName[nl]=Ondersteuning voor Python -GenericName[pl]=Obsługa Pythona -GenericName[pt]=Suporte a Python -GenericName[pt_BR]=Suporte ao Python -GenericName[ru]=Поддержка языка Python -GenericName[sk]=Python podpora -GenericName[sl]=Podpora za Python -GenericName[sr]=Подршка за Python -GenericName[sr@Latn]=Podrška za Python -GenericName[sv]=Python-stöd -GenericName[ta]=பைதான் ஆதரவு -GenericName[tg]=Ёрӣ намудани забони Python -GenericName[tr]=Python Desteği -GenericName[zh_CN]=Python 支持 -GenericName[zh_TW]=Python 支援 -ServiceTypes=TDevelop/LanguageSupport -X-TDE-Library=libtdevpythonsupport -X-TDevelop-Version=5 -X-TDevelop-Language=Python diff --git a/languages/python/tdevpythonsupport.rc b/languages/python/tdevpythonsupport.rc deleted file mode 100644 index d19011b8..00000000 --- a/languages/python/tdevpythonsupport.rc +++ /dev/null @@ -1,16 +0,0 @@ - - - -

- - - - - - - - - - - - -- cgit v1.2.1