From 722ce1efbac31c61b1d4b13f7e075c9f311e3e73 Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Sun, 2 Mar 2014 20:05:33 +0100 Subject: Finish renaming tdevelop components --- vcs/subversion/CMakeLists.txt | 26 +- vcs/subversion/Makefile.am | 30 +- vcs/subversion/integrator/CMakeLists.txt | 4 +- vcs/subversion/integrator/Makefile.am | 4 +- .../integrator/kdevsubversionintegrator.desktop | 45 --- vcs/subversion/integrator/subversionintegrator.cpp | 10 +- vcs/subversion/integrator/subversionintegrator.h | 4 +- vcs/subversion/integrator/svnintegratordlg.cpp | 2 +- vcs/subversion/integrator/svnintegratordlg.h | 2 +- .../integrator/tdevsubversionintegrator.desktop | 45 +++ vcs/subversion/kdevpart_subversion.rc | 31 -- vcs/subversion/kdevsubversion.desktop | 34 -- vcs/subversion/kdevsvn+file.protocol | 39 -- vcs/subversion/kdevsvn+http.protocol | 39 -- vcs/subversion/kdevsvn+https.protocol | 39 -- vcs/subversion/kdevsvn+ssh.protocol | 39 -- vcs/subversion/kdevsvn+svn.protocol | 39 -- vcs/subversion/kdevsvnd.cpp | 394 --------------------- vcs/subversion/kdevsvnd.desktop | 32 -- vcs/subversion/kdevsvnd.h | 51 --- vcs/subversion/kdevsvnd_widgets.cpp | 70 ---- vcs/subversion/kdevsvnd_widgets.h | 42 --- vcs/subversion/subversion_core.cpp | 26 +- vcs/subversion/subversion_core.h | 4 +- vcs/subversion/subversion_fileinfo.cpp | 6 +- vcs/subversion/subversion_fileinfo.h | 4 +- vcs/subversion/subversion_part.cpp | 26 +- vcs/subversion/subversion_part.h | 12 +- vcs/subversion/subversion_widget.cpp | 2 +- vcs/subversion/svn_fileselectdlg_commit.cpp | 4 +- vcs/subversion/svn_logviewwidget.cpp | 2 +- vcs/subversion/svn_tdeio.cpp | 4 +- vcs/subversion/tdevpart_subversion.rc | 31 ++ vcs/subversion/tdevsubversion.desktop | 34 ++ vcs/subversion/tdevsvn+file.protocol | 39 ++ vcs/subversion/tdevsvn+http.protocol | 39 ++ vcs/subversion/tdevsvn+https.protocol | 39 ++ vcs/subversion/tdevsvn+ssh.protocol | 39 ++ vcs/subversion/tdevsvn+svn.protocol | 39 ++ vcs/subversion/tdevsvnd.cpp | 394 +++++++++++++++++++++ vcs/subversion/tdevsvnd.desktop | 32 ++ vcs/subversion/tdevsvnd.h | 51 +++ vcs/subversion/tdevsvnd_widgets.cpp | 70 ++++ vcs/subversion/tdevsvnd_widgets.h | 42 +++ 44 files changed, 980 insertions(+), 980 deletions(-) delete mode 100644 vcs/subversion/integrator/kdevsubversionintegrator.desktop create mode 100644 vcs/subversion/integrator/tdevsubversionintegrator.desktop delete mode 100644 vcs/subversion/kdevpart_subversion.rc delete mode 100644 vcs/subversion/kdevsubversion.desktop delete mode 100644 vcs/subversion/kdevsvn+file.protocol delete mode 100644 vcs/subversion/kdevsvn+http.protocol delete mode 100644 vcs/subversion/kdevsvn+https.protocol delete mode 100644 vcs/subversion/kdevsvn+ssh.protocol delete mode 100644 vcs/subversion/kdevsvn+svn.protocol delete mode 100644 vcs/subversion/kdevsvnd.cpp delete mode 100644 vcs/subversion/kdevsvnd.desktop delete mode 100644 vcs/subversion/kdevsvnd.h delete mode 100644 vcs/subversion/kdevsvnd_widgets.cpp delete mode 100644 vcs/subversion/kdevsvnd_widgets.h create mode 100644 vcs/subversion/tdevpart_subversion.rc create mode 100644 vcs/subversion/tdevsubversion.desktop create mode 100644 vcs/subversion/tdevsvn+file.protocol create mode 100644 vcs/subversion/tdevsvn+http.protocol create mode 100644 vcs/subversion/tdevsvn+https.protocol create mode 100644 vcs/subversion/tdevsvn+ssh.protocol create mode 100644 vcs/subversion/tdevsvn+svn.protocol create mode 100644 vcs/subversion/tdevsvnd.cpp create mode 100644 vcs/subversion/tdevsvnd.desktop create mode 100644 vcs/subversion/tdevsvnd.h create mode 100644 vcs/subversion/tdevsvnd_widgets.cpp create mode 100644 vcs/subversion/tdevsvnd_widgets.h (limited to 'vcs/subversion') diff --git a/vcs/subversion/CMakeLists.txt b/vcs/subversion/CMakeLists.txt index fb51fe3d..63ffad4b 100644 --- a/vcs/subversion/CMakeLists.txt +++ b/vcs/subversion/CMakeLists.txt @@ -31,19 +31,19 @@ link_directories( ##### other data ################################ install( FILES - kdevsubversion.desktop kdevsvn+file.protocol - kdevsvn+http.protocol kdevsvn+https.protocol - kdevsvn+ssh.protocol kdevsvn+svn.protocol + tdevsubversion.desktop tdevsvn+file.protocol + tdevsvn+http.protocol tdevsvn+https.protocol + tdevsvn+ssh.protocol tdevsvn+svn.protocol DESTINATION ${SERVICES_INSTALL_DIR} ) install( FILES - kdevsvnd.desktop + tdevsvnd.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded ) -##### libkdevsubversion (module) ################ +##### libtdevsubversion (module) ################ -tde_add_kpart( libkdevsubversion AUTOMOC +tde_add_kpart( libtdevsubversion AUTOMOC SOURCES subversion_core.cpp subversion_fileinfo.cpp subversion_fileinfo.skel subversion_part.cpp @@ -54,14 +54,14 @@ tde_add_kpart( libkdevsubversion AUTOMOC svn_logviewoptiondlgbase.ui svn_logviewwidget.cpp svn_mergeoptiondlgbase.ui svn_mergewidget.cpp svn_switchdlgbase.ui svn_switchwidget.cpp - LINK kdevextensions-static tdevelop-shared + LINK tdevextensions-static tdevelop-shared DESTINATION ${PLUGIN_INSTALL_DIR} ) -##### tdeio_kdevsvn (module) ###################### +##### tdeio_tdevsvn (module) ###################### -tde_add_kpart( tdeio_kdevsvn AUTOMOC +tde_add_kpart( tdeio_tdevsvn AUTOMOC SOURCES svn_tdeio.cpp LINK tdeio-shared ${SVN_LIBRARIES} ${APR_LIBRARIES} @@ -69,12 +69,12 @@ tde_add_kpart( tdeio_kdevsvn AUTOMOC ) -##### kded_kdevsvnd (module) #################### +##### kded_tdevsvnd (module) #################### -tde_add_kpart( kded_kdevsvnd AUTOMOC +tde_add_kpart( kded_tdevsvnd AUTOMOC SOURCES - commitdlg.cpp commitdlgbase.ui kdevsvnd.cpp kdevsvnd.skel - kdevsvnd_widgets.cpp svnssltrustpromptbase.ui + commitdlg.cpp commitdlgbase.ui tdevsvnd.cpp tdevsvnd.skel + tdevsvnd_widgets.cpp svnssltrustpromptbase.ui LINK tdeio-shared tdeinit_kded-shared DESTINATION ${PLUGIN_INSTALL_DIR} ) diff --git a/vcs/subversion/Makefile.am b/vcs/subversion/Makefile.am index a66b80dd..2f650195 100644 --- a/vcs/subversion/Makefile.am +++ b/vcs/subversion/Makefile.am @@ -2,37 +2,37 @@ INCLUDES = -I$(top_srcdir)/lib/interfaces -I$(top_srcdir)/lib/util -I$(top_srcdi METASOURCES = AUTO -kde_module_LTLIBRARIES = libkdevsubversion.la tdeio_kdevsvn.la kded_kdevsvnd.la +kde_module_LTLIBRARIES = libtdevsubversion.la tdeio_tdevsvn.la kded_tdevsvnd.la -libkdevsubversion_la_SOURCES = subversion_core.cpp subversion_fileinfo.cpp \ +libtdevsubversion_la_SOURCES = subversion_core.cpp subversion_fileinfo.cpp \ subversion_fileinfo.skel subversion_part.cpp subversion_widget.cpp subversiondiff.ui \ subversionprojectwidget.ui svn_blamewidget.cpp svn_co.ui svn_commitdlgbase.ui svn_copydlgwidget.ui \ svn_copywidget.cpp svn_fileselectdlg_commit.cpp svn_logviewoptiondlgbase.ui \ svn_logviewwidget.cpp svn_mergeoptiondlgbase.ui svn_mergewidget.cpp svn_switchdlgbase.ui \ svn_switchwidget.cpp -libkdevsubversion_la_LIBADD = $(top_builddir)/lib/libtdevelop.la $(top_builddir)/lib/interfaces/extensions/libkdevextensions.la -libkdevsubversion_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) +libtdevsubversion_la_LIBADD = $(top_builddir)/lib/libtdevelop.la $(top_builddir)/lib/interfaces/extensions/libtdevextensions.la +libtdevsubversion_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) -tdeio_kdevsvn_la_SOURCES = svn_tdeio.cpp -tdeio_kdevsvn_la_LIBADD = $(LIB_TDEIO) -tdeio_kdevsvn_la_LDFLAGS = -module $(all_libraries) $(KDE_PLUGIN) $(SVN_LIB) +tdeio_tdevsvn_la_SOURCES = svn_tdeio.cpp +tdeio_tdevsvn_la_LIBADD = $(LIB_TDEIO) +tdeio_tdevsvn_la_LDFLAGS = -module $(all_libraries) $(KDE_PLUGIN) $(SVN_LIB) -kded_kdevsvnd_la_SOURCES = commitdlg.cpp commitdlgbase.ui kdevsvnd.cpp \ - kdevsvnd.skel kdevsvnd_widgets.cpp svnssltrustpromptbase.ui -kded_kdevsvnd_la_LIBADD = $(LIB_TDEIO) -ltdeinit_kded -kded_kdevsvnd_la_LDFLAGS = -module $(all_libraries) $(KDE_PLUGIN) +kded_tdevsvnd_la_SOURCES = commitdlg.cpp commitdlgbase.ui tdevsvnd.cpp \ + tdevsvnd.skel tdevsvnd_widgets.cpp svnssltrustpromptbase.ui +kded_tdevsvnd_la_LIBADD = $(LIB_TDEIO) -ltdeinit_kded +kded_tdevsvnd_la_LDFLAGS = -module $(all_libraries) $(KDE_PLUGIN) kdeddir = $(kde_servicesdir)/kded -kded_DATA = kdevsvnd.desktop +kded_DATA = tdevsvnd.desktop servicedir = $(kde_servicesdir) -service_DATA = kdevsubversion.desktop +service_DATA = tdevsubversion.desktop protocoldir = $(kde_servicesdir) -protocol_DATA = kdevsvn+file.protocol kdevsvn+http.protocol kdevsvn+https.protocol kdevsvn+ssh.protocol kdevsvn+svn.protocol +protocol_DATA = tdevsvn+file.protocol tdevsvn+http.protocol tdevsvn+https.protocol tdevsvn+ssh.protocol tdevsvn+svn.protocol SUBDIRS = integrator -noinst_HEADERS = commitdlg.h kdevsvnd.h svn_blamewidget.h svn_copywidget.h \ +noinst_HEADERS = commitdlg.h tdevsvnd.h svn_blamewidget.h svn_copywidget.h \ svn_fileselectdlg_commit.h svn_logviewwidget.h svn_mergewidget.h svn_switchwidget.h diff --git a/vcs/subversion/integrator/CMakeLists.txt b/vcs/subversion/integrator/CMakeLists.txt index 2256b8e3..3d6c7ad3 100644 --- a/vcs/subversion/integrator/CMakeLists.txt +++ b/vcs/subversion/integrator/CMakeLists.txt @@ -26,7 +26,7 @@ link_directories( ##### other data ################################ -install( FILES kdevsubversionintegrator.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES tdevsubversionintegrator.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) ##### libsubversionintegrator (module) ########## @@ -35,6 +35,6 @@ tde_add_kpart( libsubversionintegrator AUTOMOC SOURCES subversionintegrator.cpp svnintegratordlgbase.ui svnintegratordlg.cpp - LINK kdevextras-shared tdevelop-shared + LINK tdevextras-shared tdevelop-shared DESTINATION ${PLUGIN_INSTALL_DIR} ) diff --git a/vcs/subversion/integrator/Makefile.am b/vcs/subversion/integrator/Makefile.am index 231dc3c7..aded8465 100644 --- a/vcs/subversion/integrator/Makefile.am +++ b/vcs/subversion/integrator/Makefile.am @@ -6,9 +6,9 @@ METASOURCES = AUTO kde_module_LTLIBRARIES = libsubversionintegrator.la libsubversionintegrator_la_LDFLAGS = -avoid-version -no-undefined $(all_libraries) libsubversionintegrator_la_LIBADD =\ - $(top_builddir)/lib/interfaces/extras/libkdevextras.la\ + $(top_builddir)/lib/interfaces/extras/libtdevextras.la\ $(top_builddir)/lib/libtdevelop.la -kde_services_DATA = kdevsubversionintegrator.desktop +kde_services_DATA = tdevsubversionintegrator.desktop noinst_HEADERS = subversionintegrator.h svnintegratordlg.h libsubversionintegrator_la_SOURCES = subversionintegrator.cpp \ svnintegratordlgbase.ui svnintegratordlg.cpp diff --git a/vcs/subversion/integrator/kdevsubversionintegrator.desktop b/vcs/subversion/integrator/kdevsubversionintegrator.desktop deleted file mode 100644 index 6e666667..00000000 --- a/vcs/subversion/integrator/kdevsubversionintegrator.desktop +++ /dev/null @@ -1,45 +0,0 @@ -[Desktop Entry] -Type=Service -Name=KDevSubversionIntegrator -Name[da]=TDevelop Subversion-integration -Name[nds]=TDevelop-Subversion-Integreren -Name[sk]=KDev Subversion integrácia -Name[sv]=TDevelop Subversion-integration -Name[zh_TW]=TDevelop Subversion 整合器 -Comment=Subversion Project Integration Facility -Comment[ca]=Facilitat per a la integració amb Subversion -Comment[da]=Subversion projektintegration -Comment[de]=Subversion-Projektintegration -Comment[el]=Λειτουργία ενσωμάτωσης Subversion στο έργο -Comment[es]=Facilidad para integración con proyectos que utilicen Subversion -Comment[et]=Subversion projekti põimimisvahend -Comment[eu]=Subversion proiektuen integrazio-tesna -Comment[fa]=تسهیلات مجتمع‌سازی پروژۀ زیرنسخه -Comment[fr]=Fonction d'intégration pour un projet utilisant Subversion -Comment[gl]=Utilidade para a integración de proxectos Subversión -Comment[hu]=Projektintegrálást tesz lehetővé a Subversion-nel -Comment[it]=Funzione di integrazione del progetto Subversion -Comment[ja]=Subversion プロジェクト統合ツール -Comment[ms]=Kemudahan Integrasi Projek Subversion -Comment[nds]=Subversion-Projektintegreren -Comment[ne]=सबभर्सन परियोजना एकिकरण सुविधा -Comment[nl]=Subversion project-integratie -Comment[pl]=Integracja z Subversion -Comment[pt]=Integração com Projectos Subversion -Comment[pt_BR]=Facilidade de Integração ao Projeto de Subversão -Comment[ru]=Интеграция Subversion -Comment[sk]=Subversion projektová integrácia -Comment[sr]=Интеграција Subversion-а у пројекат -Comment[sr@Latn]=Integracija Subversion-a u projekat -Comment[sv]=Funktion för integrering av Subversion i projekt -Comment[tr]=Subversion Proje Bütünleştirme Aracı -Comment[zh_CN]=Subversion 工程集成功能 -Comment[zh_TW]=Subversion 專案整合工具 -Icon=misc -Exec=blubb -ServiceTypes=TDevelop/VCSIntegrator -X-TDE-Library=libsubversionintegrator -X-TDevelop-Default=false -X-TDevelop-VCS=Subversion -X-TDevelop-VCSPlugin=kdevsubversion -X-TDevelop-Version=5 diff --git a/vcs/subversion/integrator/subversionintegrator.cpp b/vcs/subversion/integrator/subversionintegrator.cpp index 32d28d27..da8fed8c 100644 --- a/vcs/subversion/integrator/subversionintegrator.cpp +++ b/vcs/subversion/integrator/subversionintegrator.cpp @@ -19,19 +19,19 @@ ***************************************************************************/ #include "subversionintegrator.h" -#include -#include +#include +#include #include "svnintegratordlg.h" -static const KDevPluginInfo data("kdevsubversionintegrator"); -typedef KDevGenericFactory SubversionIntegratorFactory; +static const TDevPluginInfo data("tdevsubversionintegrator"); +typedef TDevGenericFactory SubversionIntegratorFactory; K_EXPORT_COMPONENT_FACTORY( libsubversionintegrator, SubversionIntegratorFactory(data) ) SubversionIntegrator::SubversionIntegrator(TQObject* parent, const char* name, const TQStringList // args ) - :KDevVCSIntegrator(parent, name) + :TDevVCSIntegrator(parent, name) { } diff --git a/vcs/subversion/integrator/subversionintegrator.h b/vcs/subversion/integrator/subversionintegrator.h index 01c43516..6c7d16ac 100644 --- a/vcs/subversion/integrator/subversionintegrator.h +++ b/vcs/subversion/integrator/subversionintegrator.h @@ -20,11 +20,11 @@ #ifndef SUBVERSIONINTEGRATOR_H #define SUBVERSIONINTEGRATOR_H -#include +#include #include -class SubversionIntegrator : public KDevVCSIntegrator +class SubversionIntegrator : public TDevVCSIntegrator { Q_OBJECT diff --git a/vcs/subversion/integrator/svnintegratordlg.cpp b/vcs/subversion/integrator/svnintegratordlg.cpp index 87ccf488..35e4216b 100644 --- a/vcs/subversion/integrator/svnintegratordlg.cpp +++ b/vcs/subversion/integrator/svnintegratordlg.cpp @@ -47,7 +47,7 @@ SvnIntegratorDlg::SvnIntegratorDlg( TQWidget *parent, const char *name ) void SvnIntegratorDlg::accept() { // to let ioslave know which protocol it should start. - KURL protocolUrl = KURL("kdevsvn+svn://blah/"); + KURL protocolUrl = KURL("tdevsvn+svn://blah/"); KURL servURL( repos1->url() ); if ( servURL.isEmpty() ) return; diff --git a/vcs/subversion/integrator/svnintegratordlg.h b/vcs/subversion/integrator/svnintegratordlg.h index ccf1686f..bc8e8407 100644 --- a/vcs/subversion/integrator/svnintegratordlg.h +++ b/vcs/subversion/integrator/svnintegratordlg.h @@ -21,7 +21,7 @@ #define SVNINTEGRATORDLG_H #include "svnintegratordlgbase.h" -#include +#include class SvnIntegratorDlg: public SvnIntegratorDlgBase, public VCSDialog { Q_OBJECT diff --git a/vcs/subversion/integrator/tdevsubversionintegrator.desktop b/vcs/subversion/integrator/tdevsubversionintegrator.desktop new file mode 100644 index 00000000..6e666667 --- /dev/null +++ b/vcs/subversion/integrator/tdevsubversionintegrator.desktop @@ -0,0 +1,45 @@ +[Desktop Entry] +Type=Service +Name=KDevSubversionIntegrator +Name[da]=TDevelop Subversion-integration +Name[nds]=TDevelop-Subversion-Integreren +Name[sk]=KDev Subversion integrácia +Name[sv]=TDevelop Subversion-integration +Name[zh_TW]=TDevelop Subversion 整合器 +Comment=Subversion Project Integration Facility +Comment[ca]=Facilitat per a la integració amb Subversion +Comment[da]=Subversion projektintegration +Comment[de]=Subversion-Projektintegration +Comment[el]=Λειτουργία ενσωμάτωσης Subversion στο έργο +Comment[es]=Facilidad para integración con proyectos que utilicen Subversion +Comment[et]=Subversion projekti põimimisvahend +Comment[eu]=Subversion proiektuen integrazio-tesna +Comment[fa]=تسهیلات مجتمع‌سازی پروژۀ زیرنسخه +Comment[fr]=Fonction d'intégration pour un projet utilisant Subversion +Comment[gl]=Utilidade para a integración de proxectos Subversión +Comment[hu]=Projektintegrálást tesz lehetővé a Subversion-nel +Comment[it]=Funzione di integrazione del progetto Subversion +Comment[ja]=Subversion プロジェクト統合ツール +Comment[ms]=Kemudahan Integrasi Projek Subversion +Comment[nds]=Subversion-Projektintegreren +Comment[ne]=सबभर्सन परियोजना एकिकरण सुविधा +Comment[nl]=Subversion project-integratie +Comment[pl]=Integracja z Subversion +Comment[pt]=Integração com Projectos Subversion +Comment[pt_BR]=Facilidade de Integração ao Projeto de Subversão +Comment[ru]=Интеграция Subversion +Comment[sk]=Subversion projektová integrácia +Comment[sr]=Интеграција Subversion-а у пројекат +Comment[sr@Latn]=Integracija Subversion-a u projekat +Comment[sv]=Funktion för integrering av Subversion i projekt +Comment[tr]=Subversion Proje Bütünleştirme Aracı +Comment[zh_CN]=Subversion 工程集成功能 +Comment[zh_TW]=Subversion 專案整合工具 +Icon=misc +Exec=blubb +ServiceTypes=TDevelop/VCSIntegrator +X-TDE-Library=libsubversionintegrator +X-TDevelop-Default=false +X-TDevelop-VCS=Subversion +X-TDevelop-VCSPlugin=kdevsubversion +X-TDevelop-Version=5 diff --git a/vcs/subversion/kdevpart_subversion.rc b/vcs/subversion/kdevpart_subversion.rc deleted file mode 100644 index ad957e99..00000000 --- a/vcs/subversion/kdevpart_subversion.rc +++ /dev/null @@ -1,31 +0,0 @@ - - - - &Tools - &Version Control - - - &Subversion - - - - - - - - - - - - - - - - - - - - - diff --git a/vcs/subversion/kdevsubversion.desktop b/vcs/subversion/kdevsubversion.desktop deleted file mode 100644 index bf52db8c..00000000 --- a/vcs/subversion/kdevsubversion.desktop +++ /dev/null @@ -1,34 +0,0 @@ -[Desktop Entry] -Type=Service -Exec=blubb -Comment=Subversion -Comment[fa]=زیرنسخه -Comment[hi]=सबवर्सन -Comment[ne]=सबभर्सन -Comment[pt_BR]=Subversão -Comment[ru]=Интеграция Subversion -Comment[ta]=உப பதிப்பு -Comment[tg]=Интегратсия Subversion -Name=KDevsubversion -Name[da]=TDevelop Subversion -Name[de]=Unterstützung für Subversion (TDevelop) -Name[hi]=के-डेव-सबवर्सन -Name[nds]=Subversion-Ünnerstütten för TDevelop -Name[sk]=KDev Subversion -Name[sv]=TDevelop Subversion -Name[ta]=kdev உப பதிப்பு -Name[tg]=KDevзер-ривоят -Name[zh_TW]=TDevelop Subversion -GenericName=Subversion -GenericName[fa]=زیرنسخه -GenericName[hi]=सबवर्सन -GenericName[ne]=सबभर्सन -GenericName[pt_BR]=Subversão -GenericName[ru]=Интеграция Subversion -GenericName[ta]=துணை பதிப்பு -GenericName[tg]=Зер-ривоят -Icon=misc -ServiceTypes=TDevelop/VersionControl -X-TDE-Library=libkdevsubversion -X-TDevelop-Version=5 -X-TDevelop-Properties=VCS,SubversionVCS diff --git a/vcs/subversion/kdevsvn+file.protocol b/vcs/subversion/kdevsvn+file.protocol deleted file mode 100644 index 412c3800..00000000 --- a/vcs/subversion/kdevsvn+file.protocol +++ /dev/null @@ -1,39 +0,0 @@ -[Protocol] -exec=tdeio_kdevsvn -protocol=kdevsvn+file -input=none -output=filesystem -reading=true -writing=true -deleting=true -makedir=true -linking=false -moving=true -deleteRecursive=true -listing=Name,Size,Date,Owner -defaultMimetype=application/octet-stream -Icon=remote -Description=Subversion ioslave for TDevelop -Description[ca]=L'esclau io (ioslave) Subversion per a TDevelop -Description[de]=Ein-/Ausgabemodul für Subversion (TDevelop) -Description[el]=Subversion ioslave για το TDevelop -Description[es]=El ioslave de Subversion para TDevelop -Description[et]=TDevelopi Subversioni IO-moodul -Description[fr]=Esclave d'E/S (ioslave) Subversion pour TDevelop -Description[hu]=Subversion KDE-protokoll a TDevelophoz -Description[it]=ioslave di subversion per TDevelop -Description[ja]=TDevelop のための Subversion ioslave -Description[ms]=IOslave Subversion untuk TDevelop -Description[nds]=TDevelop-In-/Utgaavmoduul för Subversion -Description[nl]=Subversion-ioslave voor TDevelop -Description[pl]=Wtyczka protokołu Subversion dla TDevelopa -Description[pt]='Ioslave' do Subversion para o TDevelop -Description[pt_BR]='Ioslave' do Subversion para o TDevelop -Description[ru]=Поддержка протокола Subversion для TDevelop -Description[sk]=Subversion ioslave pre TDevelop -Description[sr]=KIOSlave Subversion-а за TDevelop -Description[sr@Latn]=KIOSlave Subversion-a za TDevelop -Description[sv]=Subversion I/O-slav för TDevelop -Description[zh_TW]=TDevelop 的 Subversion ioslave -maxInstances=5 -class=:internet diff --git a/vcs/subversion/kdevsvn+http.protocol b/vcs/subversion/kdevsvn+http.protocol deleted file mode 100644 index 5a063b85..00000000 --- a/vcs/subversion/kdevsvn+http.protocol +++ /dev/null @@ -1,39 +0,0 @@ -[Protocol] -exec=tdeio_kdevsvn -protocol=kdevsvn+http -input=none -output=filesystem -reading=true -writing=true -deleting=true -makedir=true -linking=false -moving=true -deleteRecursive=true -listing=Name,Size,Date,Owner -defaultMimetype=application/octet-stream -Icon=remote -Description=Subversion ioslave for TDevelop -Description[ca]=L'esclau io (ioslave) Subversion per a TDevelop -Description[de]=Ein-/Ausgabemodul für Subversion (TDevelop) -Description[el]=Subversion ioslave για το TDevelop -Description[es]=El ioslave de Subversion para TDevelop -Description[et]=TDevelopi Subversioni IO-moodul -Description[fr]=Esclave d'E/S (ioslave) Subversion pour TDevelop -Description[hu]=Subversion KDE-protokoll a TDevelophoz -Description[it]=ioslave di subversion per TDevelop -Description[ja]=TDevelop のための Subversion ioslave -Description[ms]=IOslave Subversion untuk TDevelop -Description[nds]=TDevelop-In-/Utgaavmoduul för Subversion -Description[nl]=Subversion-ioslave voor TDevelop -Description[pl]=Wtyczka protokołu Subversion dla TDevelopa -Description[pt]='Ioslave' do Subversion para o TDevelop -Description[pt_BR]='Ioslave' do Subversion para o TDevelop -Description[ru]=Поддержка протокола Subversion для TDevelop -Description[sk]=Subversion ioslave pre TDevelop -Description[sr]=KIOSlave Subversion-а за TDevelop -Description[sr@Latn]=KIOSlave Subversion-a za TDevelop -Description[sv]=Subversion I/O-slav för TDevelop -Description[zh_TW]=TDevelop 的 Subversion ioslave -maxInstances=5 -class=:internet diff --git a/vcs/subversion/kdevsvn+https.protocol b/vcs/subversion/kdevsvn+https.protocol deleted file mode 100644 index d064e575..00000000 --- a/vcs/subversion/kdevsvn+https.protocol +++ /dev/null @@ -1,39 +0,0 @@ -[Protocol] -exec=tdeio_kdevsvn -protocol=kdevsvn+https -input=none -output=filesystem -reading=true -writing=true -deleting=true -makedir=true -linking=false -moving=true -deleteRecursive=true -listing=Name,Size,Date,Owner -defaultMimetype=application/octet-stream -Icon=remote -Description=Subversion ioslave for TDevelop -Description[ca]=L'esclau io (ioslave) Subversion per a TDevelop -Description[de]=Ein-/Ausgabemodul für Subversion (TDevelop) -Description[el]=Subversion ioslave για το TDevelop -Description[es]=El ioslave de Subversion para TDevelop -Description[et]=TDevelopi Subversioni IO-moodul -Description[fr]=Esclave d'E/S (ioslave) Subversion pour TDevelop -Description[hu]=Subversion KDE-protokoll a TDevelophoz -Description[it]=ioslave di subversion per TDevelop -Description[ja]=TDevelop のための Subversion ioslave -Description[ms]=IOslave Subversion untuk TDevelop -Description[nds]=TDevelop-In-/Utgaavmoduul för Subversion -Description[nl]=Subversion-ioslave voor TDevelop -Description[pl]=Wtyczka protokołu Subversion dla TDevelopa -Description[pt]='Ioslave' do Subversion para o TDevelop -Description[pt_BR]='Ioslave' do Subversion para o TDevelop -Description[ru]=Поддержка протокола Subversion для TDevelop -Description[sk]=Subversion ioslave pre TDevelop -Description[sr]=KIOSlave Subversion-а за TDevelop -Description[sr@Latn]=KIOSlave Subversion-a za TDevelop -Description[sv]=Subversion I/O-slav för TDevelop -Description[zh_TW]=TDevelop 的 Subversion ioslave -maxInstances=5 -class=:internet diff --git a/vcs/subversion/kdevsvn+ssh.protocol b/vcs/subversion/kdevsvn+ssh.protocol deleted file mode 100644 index 512b4a90..00000000 --- a/vcs/subversion/kdevsvn+ssh.protocol +++ /dev/null @@ -1,39 +0,0 @@ -[Protocol] -exec=tdeio_kdevsvn -protocol=kdevsvn+ssh -input=none -output=filesystem -reading=true -writing=true -deleting=true -makedir=true -linking=false -moving=true -deleteRecursive=true -listing=Name,Size,Date,Owner -defaultMimetype=application/octet-stream -Icon=remote -Description=Subversion ioslave for TDevelop -Description[ca]=L'esclau io (ioslave) Subversion per a TDevelop -Description[de]=Ein-/Ausgabemodul für Subversion (TDevelop) -Description[el]=Subversion ioslave για το TDevelop -Description[es]=El ioslave de Subversion para TDevelop -Description[et]=TDevelopi Subversioni IO-moodul -Description[fr]=Esclave d'E/S (ioslave) Subversion pour TDevelop -Description[hu]=Subversion KDE-protokoll a TDevelophoz -Description[it]=ioslave di subversion per TDevelop -Description[ja]=TDevelop のための Subversion ioslave -Description[ms]=IOslave Subversion untuk TDevelop -Description[nds]=TDevelop-In-/Utgaavmoduul för Subversion -Description[nl]=Subversion-ioslave voor TDevelop -Description[pl]=Wtyczka protokołu Subversion dla TDevelopa -Description[pt]='Ioslave' do Subversion para o TDevelop -Description[pt_BR]='Ioslave' do Subversion para o TDevelop -Description[ru]=Поддержка протокола Subversion для TDevelop -Description[sk]=Subversion ioslave pre TDevelop -Description[sr]=KIOSlave Subversion-а за TDevelop -Description[sr@Latn]=KIOSlave Subversion-a za TDevelop -Description[sv]=Subversion I/O-slav för TDevelop -Description[zh_TW]=TDevelop 的 Subversion ioslave -maxInstances=5 -class=:internet diff --git a/vcs/subversion/kdevsvn+svn.protocol b/vcs/subversion/kdevsvn+svn.protocol deleted file mode 100644 index 8f496854..00000000 --- a/vcs/subversion/kdevsvn+svn.protocol +++ /dev/null @@ -1,39 +0,0 @@ -[Protocol] -exec=tdeio_kdevsvn -protocol=kdevsvn+svn -input=none -output=filesystem -reading=true -writing=true -deleting=true -makedir=true -linking=false -moving=true -deleteRecursive=true -listing=Name,Size,Date,Owner -defaultMimetype=application/octet-stream -Icon=remote -Description=Subversion ioslave for TDevelop -Description[ca]=L'esclau io (ioslave) Subversion per a TDevelop -Description[de]=Ein-/Ausgabemodul für Subversion (TDevelop) -Description[el]=Subversion ioslave για το TDevelop -Description[es]=El ioslave de Subversion para TDevelop -Description[et]=TDevelopi Subversioni IO-moodul -Description[fr]=Esclave d'E/S (ioslave) Subversion pour TDevelop -Description[hu]=Subversion KDE-protokoll a TDevelophoz -Description[it]=ioslave di subversion per TDevelop -Description[ja]=TDevelop のための Subversion ioslave -Description[ms]=IOslave Subversion untuk TDevelop -Description[nds]=TDevelop-In-/Utgaavmoduul för Subversion -Description[nl]=Subversion-ioslave voor TDevelop -Description[pl]=Wtyczka protokołu Subversion dla TDevelopa -Description[pt]='Ioslave' do Subversion para o TDevelop -Description[pt_BR]='Ioslave' do Subversion para o TDevelop -Description[ru]=Поддержка протокола Subversion для TDevelop -Description[sk]=Subversion ioslave pre TDevelop -Description[sr]=KIOSlave Subversion-а за TDevelop -Description[sr@Latn]=KIOSlave Subversion-a za TDevelop -Description[sv]=Subversion I/O-slav för TDevelop -Description[zh_TW]=TDevelop 的 Subversion ioslave -maxInstances=5 -class=:internet diff --git a/vcs/subversion/kdevsvnd.cpp b/vcs/subversion/kdevsvnd.cpp deleted file mode 100644 index c1faf65e..00000000 --- a/vcs/subversion/kdevsvnd.cpp +++ /dev/null @@ -1,394 +0,0 @@ -/* - This file is part of the KDE Project - - Copyright (C) 2003, 2004 Mickael Marchand - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License - version 2 as published by the Free Software Foundation. - - This software is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this library; see the file COPYING. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "config.h" - -#include "kdevsvnd.h" - -#include "kdevsvnd_widgets.h" -#include "commitdlg.h" - -extern "C" { - KDE_EXPORT KDEDModule *create_kdevsvnd(const TQCString &name) { - return new KDevSvnd(name); - } -} - -KDevSvnd::KDevSvnd(const TQCString &name) - : KDEDModule(name) { -} -KDevSvnd::~KDevSvnd() -{} - -TQString KDevSvnd::commitDialog(TQString modifiedFiles) { - CommitDlg commitDlg; - commitDlg.setCaption(i18n("Enter Commit Log Message:")); - commitDlg.listMessage->setText( modifiedFiles ); - int result = commitDlg.exec(); - if ( result == TQDialog::Accepted ) { - return commitDlg.textMessage->text(); - } else - return TQString(); -} -int KDevSvnd::sslServerTrustPrompt( TQString errmsg, TQString hostname, TQString fingerPrint, TQString validfrom, TQString validuntil, TQString issuerName, TQString ascii_cert ) -{ - SvnSSLTrustPrompt dlg; - dlg.setupCertInfo( hostname, fingerPrint, validfrom, validuntil, issuerName, ascii_cert ); - dlg.setupFailedReasonMsg( errmsg ); - int result = dlg.exec(); - if ( result == TQDialog::Accepted ){ - return dlg.code(); - } else{ - return -1; - } -} -TQString KDevSvnd::sslCertFile() -{ - TQString fileName = KFileDialog::getOpenFileName(TQString(),TQString(),0, i18n("Open SSL certificate file")); - return fileName; -} -TQCString KDevSvnd::sslPasswdDlg(TQString promptMsg) -{ - TQCString passwd; - int ret = KPasswordDialog::getPassword( passwd,promptMsg ); - if( ret == KPasswordDialog::Accepted ){ - TQCString retstr; - retstr.setNum(1); - return retstr + passwd; - } else{ - TQCString nullstr; - nullstr.setNum(-1); - return nullstr; - } -} - - -// void KDevSvnd::registerMe(const TQCString &app) -// { -// insert(app, "test", new TestObject(app)); -// // When 'app' unregisters with DCOP, the TestObject will get deleted. -// } - -// bool KSvnd::AreAnyFilesInSvn( const KURL::List& wclist ) { -// for ( TQValueListConstIterator it = wclist.begin(); it != wclist.end() ; ++it ) { -// kdDebug( 9036 ) << "Checking file " << ( *it ) << endl; -// TQDir bdir ( ( *it ).path() ); -// if ( bdir.exists() && TQFile::exists( ( *it ).path() + "/.svn/entries" ) ) { -// return true; -// } else if ( !bdir.exists() ) { -// if ( isFileInSvnEntries( ( *it ).fileName(), ( *it ).directory() + "/.svn/entries" ) || isFileInExternals ( ( *it ).fileName(), ( *it ).directory()+"/.svn/dir-props" ) ) -// return true; -// } -// } -// return false; -// } -// -// bool KSvnd::AreAnyFilesNotInSvn( const KURL::List& wclist ) { -// for ( TQValueListConstIterator it = wclist.begin(); it != wclist.end() ; ++it ) { -// kdDebug( 9036 ) << "Checking file " << ( *it ) << endl; -// TQDir bdir ( ( *it ).path() ); -// if ( bdir.exists() && !TQFile::exists( ( *it ).path() + "/.svn/entries" ) ) { -// return true; -// } else if ( !bdir.exists() ) { -// if ( !isFileInSvnEntries( ( *it ).fileName(),( *it ).directory() + "/.svn/entries" ) && !isFileInExternals ( ( *it ).fileName(), ( *it ).directory()+"/.svn/dir-props" ) ) -// return true; -// } -// } -// return false; -// } -// -// bool KSvnd::AreAllFilesInSvn( const KURL::List& wclist ) { -// for ( TQValueListConstIterator it = wclist.begin(); it != wclist.end() ; ++it ) { -// kdDebug( 9036 ) << "Checking file " << ( *it ) << endl; -// TQDir bdir ( ( *it ).path() ); -// if ( bdir.exists() && !TQFile::exists( ( *it ).path() + "/.svn/entries" ) ) { -// return false; -// } else if ( !bdir.exists() ) { -// if ( !isFileInSvnEntries( ( *it ).fileName(),( *it ).directory() + "/.svn/entries" ) && !isFileInExternals ( ( *it ).fileName(), ( *it ).directory()+"/.svn/dir-props" ) ) -// return false; -// } -// } -// return true; -// } -// -// bool KSvnd::AreAllFilesNotInSvn( const KURL::List& wclist ) { -// for ( TQValueListConstIterator it = wclist.begin(); it != wclist.end() ; ++it ) { -// kdDebug( 9036 ) << "Checking file " << ( *it ) << endl; -// TQDir bdir ( ( *it ).path() ); -// if ( bdir.exists() && TQFile::exists( ( *it ).path() + "/.svn/entries" ) ) { -// return false; -// } else if ( !bdir.exists() ) { -// if ( isFileInSvnEntries( ( *it ).fileName(),( *it ).directory() + "/.svn/entries" ) || isFileInExternals ( ( *it ).fileName(), ( *it ).directory()+"/.svn/dir-props" ) ) -// return false; -// } -// } -// return true; -// } -// -// bool KSvnd::isFileInSvnEntries ( const TQString filename, const TQString entfile ) { -// TQFile file( entfile ); -// if ( file.open( IO_ReadOnly ) ) { -// TQTextStream stream( &file ); -// TQString line; -// while ( !stream.atEnd() ) { -// line = stream.readLine().simplifyWhiteSpace(); -// if ( line == "name=\""+ filename + "\"" ) { -// file.close(); -// return true; -// } -// } -// file.close(); -// } -// return false; -// } -// -// bool KSvnd::isFileInExternals ( const TQString filename, const TQString propfile ) { -// TQFile file( propfile ); -// if ( file.open( IO_ReadOnly ) ) { -// TQTextStream stream( &file ); -// TQStringList line; -// while ( !stream.atEnd() ) -// line << stream.readLine().simplifyWhiteSpace(); -// for ( uint i = 0 ; i < line.count(); i++ ) { -// if ( line[ i ] == "K 13" && line[ i+1 ] == "svn:externals" ) { //Key 13 : svn:externals -// //next line should be "V xx" -// if ( line [ i+2 ].startsWith( "V " ) ) { -// //ok browse the values now -// i+=2; -// while ( i < line.count() ) { -// if ( line[ i ].startsWith( filename+" " ) ) { //found it ! -// file.close( ); -// return true; -// } else if ( line[ i ].isEmpty() ) { -// file.close( ); -// return false; //we are out of svn:externals now... -// } -// i++; -// } -// } -// } -// } -// file.close(); -// } -// return false; -// } -// -// bool KSvnd::anyNotValidWorkingCopy( const KURL::List& wclist ) { -// bool result = true; //one negative match is enough -// for ( TQValueListConstIterator it = wclist.begin(); it != wclist.end() ; ++it ) { -// //exception for .svn dirs -// if ( ( *it ).path(-1).endsWith( "/.svn" ) ) -// return true; -// //if is a directory check whether it contains a .svn/entries file -// TQDir dir( ( *it ).path() ); -// if ( dir.exists() ) { //it's a dir -// if ( !TQFile::exists( ( *it ).path() + "/.svn/entries" ) ) -// result = false; -// } -// -// //else check if ./.svn/entries exists -// if ( !TQFile::exists( ( *it ).directory() + "/.svn/entries" ) ) -// result = false; -// } -// return result; -// } -// -// bool KSvnd::anyValidWorkingCopy( const KURL::List& wclist ) { -// for ( TQValueListConstIterator it = wclist.begin(); it != wclist.end() ; ++it ) { -// //skip .svn dirs -// if ( ( *it ).path(-1).endsWith( "/.svn" ) ) -// continue; -// //if is a directory check whether it contains a .svn/entries file -// TQDir dir( ( *it ).path() ); -// if ( dir.exists() ) { //it's a dir -// if ( TQFile::exists( ( *it ).path() + "/.svn/entries" ) ) -// return true; -// } -// -// //else check if ./.svn/entries exists -// if ( TQFile::exists( ( *it ).directory() + "/.svn/entries" ) ) -// return true; -// } -// return false; -// } -// -// int KSvnd::getStatus( const KURL::List& list ) { -// int result = 0; -// uint files = 0, folders = 0, parentsentries = 0, parentshavesvn = 0, subdirhavesvn = 0, external = 0; -// for ( TQValueListConstIterator it = list.begin(); it != list.end() ; ++it ) { -// if ( isFolder ( ( *it ) ) ) { -// folders++; -// } else { -// files++; -// } -// if ( isFileInSvnEntries ( (*it).filename(),( *it ).directory() + "/.svn/entries" ) ) { // normal subdir known in the working copy -// parentsentries++; -// } else if ( isFolder( *it ) ) { // other subfolders (either another module checkouted or an external, or something not known at all) -// if ( TQFile::exists( ( *it ).path() + "/.svn/entries" ) ) -// subdirhavesvn++; -// if ( isFileInExternals( (*it).filename(), ( *it ).directory() + "/.svn/dir-props" ) ) { -// external++; -// } -// } -// if ( ( isFolder( ( *it ) ) && TQFile::exists( ( *it ).directory() + "../.svn/entries" ) ) || TQFile::exists( ( *it ).directory() + "/.svn/entries" ) ) //parent has a .svn ? -// parentshavesvn++; -// } -// if ( files > 0 ) -// result |= SomeAreFiles; -// if ( folders == list.count() ) { -// result |= AllAreFolders; -// result |= SomeAreFolders; -// } -// if ( folders > 0 ) -// result |= SomeAreFolders; -// if ( parentsentries == list.count() ) { -// result |= AllAreInParentsEntries; -// result |= SomeAreInParentsEntries; -// } else if ( parentsentries != 0 ) -// result |= SomeAreInParentsEntries; -// if ( parentshavesvn == list.count() ) { -// result |= AllParentsHaveSvn; -// result |= SomeParentsHaveSvn; -// } else if ( parentshavesvn > 0 ) -// result |= SomeParentsHaveSvn; -// if ( subdirhavesvn == list.count() ) { -// result |= AllHaveSvn; -// result |= SomeHaveSvn; -// } else if ( subdirhavesvn > 0 ) -// result |= SomeHaveSvn; -// if ( external == list.count() ) { -// result |= AllAreExternalToParent; -// result |= SomeAreExternalToParent; -// } else if ( external > 0 ) -// result |= SomeAreExternalToParent; -// -// return result; -// } -// -// bool KSvnd::isFolder( const KURL& url ) { -// TQDir d( url.path() ); -// return d.exists(); -// } -// -// TQStringList KSvnd::getActionMenu ( const KURL::List &list ) { -// TQStringList result; -// int listStatus = getStatus( list ); -// -// if ( !(listStatus & SomeAreInParentsEntries) && -// !(listStatus & SomeAreExternalToParent) && -// !(listStatus & SomeHaveSvn)) { -// if( list.size() == 1 && listStatus & SomeAreFolders) { -// result << "Checkout"; -// result << "Export"; -// // result << "CreateRepository"; -// result << "Import"; -// } -// } else if ( (listStatus & AllAreInParentsEntries) ) { -// result << "Diff"; -// //In SVN -// // result << "ShowLog"; -// // result << "CheckForModifications"; -// // result << "RevisionGraph"; -// // result << "_SEPARATOR_"; -// // result << "Update to revision..." -// result << "Rename"; -// result << "Delete"; -// if( listStatus & SomeAreFolders && !(listStatus & SomeAreFiles)) { -// result << "Revert"; -// // result << "Cleanup"; -// } -// result << "_SEPARATOR_"; -// // result << "BranchTag"; -// result << "Switch"; -// result << "Merge"; -// if( listStatus & SomeAreFolders && !(listStatus & SomeAreFiles)) { -// // result << "Export"; -// // result << "Relocate"; -// result << "_SEPARATOR_"; -// result << "Add"; -// } -// result << "_SEPARATOR_"; -// if( listStatus & SomeAreFiles && !(listStatus & SomeAreFolders)) { -// result << "Blame"; -// } -// result << "CreatePatch"; -// -// if( list.size() == 1 && listStatus & SomeAreFolders) { -// // result << "ApplyPatchToFolder"; -// } -// } -// return result; -// } -// -// TQStringList KSvnd::getTopLevelActionMenu ( const KURL::List &list ) { -// TQStringList result; -// int listStatus = getStatus( list ); -// -// -// if ( ( listStatus & AllParentsHaveSvn && -// ( ( listStatus & SomeAreExternalToParent ) || ( listStatus & SomeAreInParentsEntries ) ) -// || ( listStatus & SomeHaveSvn ) ) -// ) { -// result << "Update"; -// result << "Commit"; -// } -// -// return result; -// } -// -// #if 0 -// void KSvnd::notify(const TQString& path, int action, int kind, const TQString& mime_type, int content_state, int prop_state, long int revision, const TQString& userstring) { -// kdDebug(9036) << "KDED/Subversion : notify " << path << " action : " << action << " mime_type : " << mime_type << " content_state : " << content_state << " prop_state : " << prop_state << " revision : " << revision << " userstring : " << userstring << endl; -// TQByteArray params; -// -// TQDataStream stream(params, IO_WriteOnly); -// stream << path << action << kind << mime_type << content_state << prop_state << revision << userstring; -// -// emitDCOPSignal( "subversionNotify(TQString,int,int,TQString,int,int,long int,TQString)", params ); -// } -// -// void KSvnd::status(const TQString& path, int text_status, int prop_status, int repos_text_status, int repos_prop_status, long int rev ) { -// kdDebug(9036) << "KDED/Subversion : status " << path << " " << text_status << " " << prop_status << " " -// << repos_text_status << " " << repos_prop_status << " " << rev << endl; -// TQByteArray params; -// -// TQDataStream stream(params, IO_WriteOnly); -// stream << path << text_status << prop_status << repos_text_status << repos_prop_status << rev; -// -// emitDCOPSignal( "subversionStatus(TQString,int,int,int,int,long int)", params ); -// } -// -// void KSvnd::popupMessage( const TQString& message ) { -// kdDebug(9036) << "KDED/Subversion : popupMessage" << message << endl; -// KMessageBox::information(0, message, i18n( "Subversion" ) ); -// } -// #endif - -#include "kdevsvnd.moc" diff --git a/vcs/subversion/kdevsvnd.desktop b/vcs/subversion/kdevsvnd.desktop deleted file mode 100644 index 9ba3e877..00000000 --- a/vcs/subversion/kdevsvnd.desktop +++ /dev/null @@ -1,32 +0,0 @@ -[Desktop Entry] -Type=Service -Name=TDevelop Subversion Module -Name[ca]=Mòdul de Subversion per a TDevelop -Name[da]=TDevelop Subversion-Modul -Name[de]=Subversion-Komponente (TDevelop) -Name[el]=Άρθρωμα subversion του TDevelop -Name[es]=Módulo de Subversion de TDevelop -Name[et]=TDevelopi Subversioni Moodul -Name[fr]=Module Subversion pour TDevelop -Name[hu]=TDevelop-Modul a Subversion kezeléséhez -Name[it]=Modulo Subversion di TDevelop -Name[ja]=TDevelop Subversion モジュール -Name[ms]=Modul Subversion TDevelop -Name[nds]=TDevelop-Moduul för Subversion -Name[nl]=TDevelop Subversion-Module -Name[pl]=Modul Subversion dla TDevelopa -Name[pt]=Módulo de Subversion do TDevelop -Name[pt_BR]=Módulo de Subversion do TDevelop -Name[ru]=Модуль Subversion для TDevelop -Name[sk]=TDevelop Subversion Modul -Name[sr]=TDevelop-ов модул за Subversion -Name[sr@Latn]=TDevelop-ov Modul za Subversion -Name[sv]=TDevelop Subversion-Modul -Name[zh_TW]=TDevelop Subversion 模組 -Comment=Provides subversion client services with TDevelop -ServiceTypes=KDEDModule -X-TDE-ModuleType=Library -X-TDE-Library=kdevsvnd -X-TDE-FactoryName=kdevsvnd -X-TDE-Kded-autoload=true -X-TDE-Kded-load-on-demand=true diff --git a/vcs/subversion/kdevsvnd.h b/vcs/subversion/kdevsvnd.h deleted file mode 100644 index 438520e1..00000000 --- a/vcs/subversion/kdevsvnd.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - This file is part of the KDE Project - - Copyright (C) 2003-2005 Mickael Marchand - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License - version 2 as published by the Free Software Foundation. - - This software is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this library; see the file COPYING. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#ifndef KSVND_H -#define KSVND_H - -#include -#include -#include -#include - -class KDevSvnd : public KDEDModule -{ -Q_OBJECT -// - -K_DCOP - - //note: InSVN means parent is added. InRepos means itself is added - enum { SomeAreFiles = 1, SomeAreFolders = 2, SomeAreInParentsEntries = 4, SomeParentsHaveSvn = 8, SomeHaveSvn = 16, SomeAreExternalToParent = 32, AllAreInParentsEntries = 64, AllParentsHaveSvn = 128, AllHaveSvn = 256, AllAreExternalToParent = 512, AllAreFolders = 1024 }; -public: - KDevSvnd(const TQCString &); - ~KDevSvnd(); - -k_dcop: -// void addAuthInfo(TDEIO::AuthInfo, long); - TQString commitDialog(TQString); - int sslServerTrustPrompt(TQString certFailMsg, TQString hostname, TQString fingerPrint, TQString validfrom, TQString validuntil, TQString issuerName, TQString ascii_cert ); - TQString sslCertFile(); - TQCString sslPasswdDlg(TQString promptMsg); - -}; - -#endif diff --git a/vcs/subversion/kdevsvnd_widgets.cpp b/vcs/subversion/kdevsvnd_widgets.cpp deleted file mode 100644 index 0fd2c20b..00000000 --- a/vcs/subversion/kdevsvnd_widgets.cpp +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (C) 2007 Dukju Ahn (dukjuahn@gmail.com) - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library General Public License for more details. - */ - -#include "kdevsvnd_widgets.h" -#include -#include -#include -#include - -SvnSSLTrustPrompt::SvnSSLTrustPrompt( TQWidget* parent, const char* name, bool modal, WFlags f ) - :SvnSSLTrustPromptBase( parent, name, modal, f ) - , m_code(-1) -{ - listView1->setColumnText( 0, "Items" ); - listView1->setColumnText( 1, "Values" ); - btnPermanent->setText(i18n("Accept Permanently")); - btnTemporary->setText(i18n("Accept Temporarily")); - btnReject->setText(i18n("Reject")); - connect( btnPermanent, TQT_SIGNAL(clicked()), this, TQT_SLOT(setPermanent()) ); - connect( btnTemporary, TQT_SIGNAL(clicked()), this, TQT_SLOT(setTemporary()) ); - connect( btnReject, TQT_SIGNAL(clicked()), this, TQT_SLOT(setRejected ()) ); -} -SvnSSLTrustPrompt::~SvnSSLTrustPrompt() -{} - -void SvnSSLTrustPrompt::setupCertInfo( TQString hostname, TQString fingerPrint, TQString validfrom, TQString validuntil, TQString issuerName, TQString ascii_cert ) -{ - // setup texts - TQListViewItem *host= new TQListViewItem(listView1, i18n("Hostname"), hostname ); - TQListViewItem *finger = new TQListViewItem(listView1, i18n("FingerPrint"), fingerPrint ); - TQListViewItem *validFrom = new TQListViewItem(listView1, i18n("Valid From"), validfrom ); - TQListViewItem *validUntil = new TQListViewItem(listView1, i18n("Valid Until"), validuntil ); - TQListViewItem *issName = new TQListViewItem(listView1, i18n("Issuer"), issuerName ); - TQListViewItem *cert = new TQListViewItem(listView1, i18n("Cert"), ascii_cert ); -} -void SvnSSLTrustPrompt::setupFailedReasonMsg( TQString msg ) -{ - errMsgLabel->setText( msg ); -} -int SvnSSLTrustPrompt::code() -{ - return m_code; -} - -void SvnSSLTrustPrompt::setPermanent() -{ - m_code = 1; -} - -void SvnSSLTrustPrompt::setTemporary() -{ - m_code = 0; -} - -void SvnSSLTrustPrompt::setRejected() -{ - m_code = -1; -} -#include "kdevsvnd_widgets.moc" diff --git a/vcs/subversion/kdevsvnd_widgets.h b/vcs/subversion/kdevsvnd_widgets.h deleted file mode 100644 index 3967cb35..00000000 --- a/vcs/subversion/kdevsvnd_widgets.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2007 Dukju Ahn (dukjuahn@gmail.com) - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library General Public License for more details. - */ - -#ifndef KDEVSVND_WIDGETS_H -#define KDEVSVND_WIDGETS_H - -#include "svnssltrustpromptbase.h" - -class SvnSSLTrustPrompt : public SvnSSLTrustPromptBase{ -Q_OBJECT - -public: - SvnSSLTrustPrompt( TQWidget* parent=0, const char* name=0, bool modal=true, WFlags f=0 ); - ~SvnSSLTrustPrompt(); - void setupCertInfo( TQString hostname, TQString fingerPrint, TQString validfrom, TQString validuntil, TQString issuerName, TQString ascii_cert ); - void setupFailedReasonMsg( TQString msg ); - int code(); - -public slots: - void setPermanent(); - void setTemporary(); - void setRejected(); - -protected: - // -1 for reject - // 0 for accept temporarily - // 1 for accept permanently - int m_code; -}; - -#endif diff --git a/vcs/subversion/subversion_core.cpp b/vcs/subversion/subversion_core.cpp index e9c89ece..108bf298 100644 --- a/vcs/subversion/subversion_core.cpp +++ b/vcs/subversion/subversion_core.cpp @@ -18,15 +18,15 @@ */ #include -#include -#include +#include +#include #include "subversion_part.h" #include "subversion_core.h" #include "subversion_widget.h" #include "svn_blamewidget.h" #include "svn_logviewwidget.h" #include "subversiondiff.h" -#include +#include #include "svn_co.h" #include #include @@ -82,7 +82,7 @@ subversionCore::~subversionCore() { //FIXME delete m_fileInfoProvider here? } -KDevVCSFileInfoProvider *subversionCore::fileInfoProvider() const { +TDevVCSFileInfoProvider *subversionCore::fileInfoProvider() const { return m_fileInfoProvider; } @@ -114,8 +114,8 @@ subversionWidget *subversionCore::processWidget() const { void subversionCore::resolve( const KURL::List& list ) { KURL servURL = m_part->baseURL(); if ( servURL.isEmpty() ) servURL="kdevsvn+svn://blah/"; - if ( ! servURL.protocol().startsWith( "kdevsvn+" ) ) { - servURL.setProtocol( "kdevsvn+" + servURL.protocol() ); //make sure it starts with "svn" + if ( ! servURL.protocol().startsWith( "tdevsvn+" ) ) { + servURL.setProtocol( "tdevsvn+" + servURL.protocol() ); //make sure it starts with "svn" } kdDebug(9036) << "servURL : " << servURL.prettyURL() << endl; for ( TQValueListConstIterator it = list.begin(); it != list.end() ; ++it ) { @@ -248,8 +248,8 @@ void subversionCore::diffAsync( const KURL &pathOrUrl1, const KURL &pathOrUrl2, void subversionCore::commit( const KURL::List& list, bool recurse, bool keeplocks ) { KURL servURL = m_part->baseURL(); if ( servURL.isEmpty() ) servURL="kdevsvn+svn://blah/"; - if ( ! servURL.protocol().startsWith( "kdevsvn+" ) ) { - servURL.setProtocol( "kdevsvn+" + servURL.protocol() ); //make sure it starts with "svn" + if ( ! servURL.protocol().startsWith( "tdevsvn+" ) ) { + servURL.setProtocol( "tdevsvn+" + servURL.protocol() ); //make sure it starts with "svn" } kdDebug(9036) << "servURL : " << servURL.prettyURL() << endl; TQByteArray parms; @@ -277,8 +277,8 @@ void subversionCore::svnLog( const KURL::List& list, clientInfo( KURL(m_part->project()->projectDirectory()), false, m_part->m_prjInfoMap ); KURL servURL = m_part->baseURL(); if ( servURL.isEmpty() ) servURL="kdevsvn+svn://blah/"; - if ( ! servURL.protocol().startsWith( "kdevsvn+" ) ) { - servURL.setProtocol( "kdevsvn+" + servURL.protocol() ); //make sure it starts with "svn" + if ( ! servURL.protocol().startsWith( "tdevsvn+" ) ) { + servURL.setProtocol( "tdevsvn+" + servURL.protocol() ); //make sure it starts with "svn" } kdDebug(9036) << "servURL : " << servURL.prettyURL() << endl; TQByteArray parms; @@ -304,8 +304,8 @@ void subversionCore::blame( const KURL &url, UrlMode mode, int revstart, TQStrin { KURL servURL = m_part->baseURL(); if ( servURL.isEmpty() ) servURL="kdevsvn+svn://blah/"; - if ( ! servURL.protocol().startsWith( "kdevsvn+" ) ) { - servURL.setProtocol( "kdevsvn+" + servURL.protocol() ); //make sure it starts with "svn" + if ( ! servURL.protocol().startsWith( "tdevsvn+" ) ) { + servURL.setProtocol( "tdevsvn+" + servURL.protocol() ); //make sure it starts with "svn" } kdDebug(9036) << "servURL : " << servURL.prettyURL() << endl; TQByteArray parms; @@ -374,7 +374,7 @@ void subversionCore::checkout() { int cmd = 1; int rev = -1; s << cmd << servURL << KURL( wcPath ) << rev << TQString( "HEAD" ); - servURL.setProtocol( "kdevsvn+" + servURL.protocol() ); //make sure it starts with "svn" + servURL.setProtocol( "tdevsvn+" + servURL.protocol() ); //make sure it starts with "svn" SimpleJob * job = TDEIO::special(servURL,parms, true); job->setWindow( m_part->mainWindow()->main() ); connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotEndCheckout( TDEIO::Job * ) ) ); diff --git a/vcs/subversion/subversion_core.h b/vcs/subversion/subversion_core.h index f2f3f6da..60cd8cfc 100644 --- a/vcs/subversion/subversion_core.h +++ b/vcs/subversion/subversion_core.h @@ -29,7 +29,7 @@ #include "subversion_fileinfo.h" #include "subversion_global.h" -class KDevProject; +class TDevProject; class subversionPart; class subversionWidget; class TDEApplication; @@ -76,7 +76,7 @@ public: // Return true on success. Otherwise return false. bool clientInfo( KURL path_or_url, bool recurse, TQMap< KURL, SvnGlobal::SvnInfoHolder> &holderMap ); void createNewProject( const TQString& dirName, const KURL& importURL, bool init ); - KDevVCSFileInfoProvider *fileInfoProvider() const; + TDevVCSFileInfoProvider *fileInfoProvider() const; void initProcessDlg( TDEIO::Job *job, const TQString &src, const TQString &dest ); // k_dcop: diff --git a/vcs/subversion/subversion_fileinfo.cpp b/vcs/subversion/subversion_fileinfo.cpp index 45d44d1e..c41ff9ef 100644 --- a/vcs/subversion/subversion_fileinfo.cpp +++ b/vcs/subversion/subversion_fileinfo.cpp @@ -22,10 +22,10 @@ #include #include #include -#include +#include #include #include -#include +#include #include #include @@ -33,7 +33,7 @@ #include SVNFileInfoProvider::SVNFileInfoProvider(subversionPart *parent, const char *name) - : KDevVCSFileInfoProvider( parent, "svnfileinfoprovider" ), + : TDevVCSFileInfoProvider( parent, "svnfileinfoprovider" ), m_cachedDirEntries( 0 ), m_recursiveDirEntries(0) { Q_UNUSED(name); m_part = parent; diff --git a/vcs/subversion/subversion_fileinfo.h b/vcs/subversion/subversion_fileinfo.h index 9b322463..1d144270 100644 --- a/vcs/subversion/subversion_fileinfo.h +++ b/vcs/subversion/subversion_fileinfo.h @@ -23,7 +23,7 @@ #include -#include +#include #include #include #include @@ -34,7 +34,7 @@ Provider for SVN file information @author Mickael Marchand */ -class SVNFileInfoProvider : public KDevVCSFileInfoProvider, public DCOPObject/*, virtual public DCOPClient*/ +class SVNFileInfoProvider : public TDevVCSFileInfoProvider, public DCOPObject/*, virtual public DCOPClient*/ { Q_OBJECT // diff --git a/vcs/subversion/subversion_part.cpp b/vcs/subversion/subversion_part.cpp index f3f43cd9..3df326d9 100644 --- a/vcs/subversion/subversion_part.cpp +++ b/vcs/subversion/subversion_part.cpp @@ -21,18 +21,18 @@ #include #include #include -#include +#include #include #include -#include "kdevcore.h" -#include "kdevmainwindow.h" +#include "tdevcore.h" +#include "tdevmainwindow.h" #include "subversion_core.h" #include "subversion_widget.h" #include "subversionprojectwidget.h" #include "subversion_fileinfo.h" #include "subversion_global.h" -#include "kdevversioncontrol.h" +#include "tdevversioncontrol.h" #include "svn_fileselectdlg_commit.h" #include "svn_logviewwidget.h" #include "svn_switchwidget.h" @@ -43,28 +43,28 @@ #include #include #include -#include -#include +#include +#include #include #include #include #include #include -#include +#include #include using namespace SvnGlobal; -static const KDevPluginInfo data("kdevsubversion"); +static const TDevPluginInfo data("tdevsubversion"); -typedef KDevGenericFactory subversionFactory; -K_EXPORT_COMPONENT_FACTORY( libkdevsubversion, subversionFactory( data ) ) +typedef TDevGenericFactory subversionFactory; +K_EXPORT_COMPONENT_FACTORY( libtdevsubversion, subversionFactory( data ) ) //bool g_projectWasJustCreated = false; subversionPart::subversionPart(TQObject *parent, const char *name, const TQStringList& ) - : KDevVersionControl(&data, parent, name ? name : "Subversion" ) { + : TDevVersionControl(&data, parent, name ? name : "Subversion" ) { setInstance(subversionFactory::instance()); m_projWidget = 0; @@ -79,7 +79,7 @@ subversionPart::subversionPart(TQObject *parent, const char *name, const TQStrin // Context menu connect( core(), TQT_SIGNAL(contextMenu(TQPopupMenu *, const Context *)), this, TQT_SLOT(contextMenu(TQPopupMenu *, const Context *)) ); connect( core(), TQT_SIGNAL(projectConfigWidget(KDialogBase*)), this, TQT_SLOT(projectConfigWidget(KDialogBase*)) ); - connect( core(), TQT_SIGNAL(stopButtonClicked(KDevPlugin*)), this, TQT_SLOT(slotStopButtonClicked(KDevPlugin*)) ); + connect( core(), TQT_SIGNAL(stopButtonClicked(TDevPlugin*)), this, TQT_SLOT(slotStopButtonClicked(TDevPlugin*)) ); connect( core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(slotProjectOpened()) ); connect( core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(slotProjectClosed()) ); @@ -177,7 +177,7 @@ bool subversionPart::fetchFromRepository() { return true; } -KDevVCSFileInfoProvider * subversionPart::fileInfoProvider() const { +TDevVCSFileInfoProvider * subversionPart::fileInfoProvider() const { return m_impl->fileInfoProvider(); } diff --git a/vcs/subversion/subversion_part.h b/vcs/subversion/subversion_part.h index 1847567d..9296152a 100644 --- a/vcs/subversion/subversion_part.h +++ b/vcs/subversion/subversion_part.h @@ -16,16 +16,16 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef __KDEVPART_SUBVERSION_H__ -#define __KDEVPART_SUBVERSION_H__ +#ifndef __TDEVPART_SUBVERSION_H__ +#define __TDEVPART_SUBVERSION_H__ #include -#include +#include #include #include #include -#include "kdevversioncontrol.h" +#include "tdevversioncontrol.h" class subversionCore; class subversionOptionsWidget; @@ -36,7 +36,7 @@ namespace SvnGlobal class SvnInfoHolder; }; -class subversionPart : public KDevVersionControl +class subversionPart : public TDevVersionControl { Q_OBJECT @@ -49,7 +49,7 @@ public: TQWidget* newProjectWidget( TQWidget* parent ); void createNewProject( const TQString& dirname ); bool fetchFromRepository(); - KDevVCSFileInfoProvider * fileInfoProvider() const; + TDevVCSFileInfoProvider * fileInfoProvider() const; bool urlFocusedDocument( KURL &url ); void restorePartialProjectSession(const TQDomElement* ); void savePartialProjectSession(TQDomElement* ); diff --git a/vcs/subversion/subversion_widget.cpp b/vcs/subversion/subversion_widget.cpp index 95b31f6b..9b29e1fa 100644 --- a/vcs/subversion/subversion_widget.cpp +++ b/vcs/subversion/subversion_widget.cpp @@ -18,7 +18,7 @@ */ #include -#include +#include #include #include diff --git a/vcs/subversion/svn_fileselectdlg_commit.cpp b/vcs/subversion/svn_fileselectdlg_commit.cpp index e042df84..9c210a37 100644 --- a/vcs/subversion/svn_fileselectdlg_commit.cpp +++ b/vcs/subversion/svn_fileselectdlg_commit.cpp @@ -29,10 +29,10 @@ #include #include #include -#include "kdevmainwindow.h" +#include "tdevmainwindow.h" #include -#include +#include SVNFileSelectDlgCommit::SVNFileSelectDlgCommit( KURL::List &urls, subversionPart *part, TQWidget* parent) :SvnCommitDlgBase( parent, "svnfileselectcommitdlg", true ) diff --git a/vcs/subversion/svn_logviewwidget.cpp b/vcs/subversion/svn_logviewwidget.cpp index 10e55a9f..e872a586 100644 --- a/vcs/subversion/svn_logviewwidget.cpp +++ b/vcs/subversion/svn_logviewwidget.cpp @@ -22,7 +22,7 @@ #include "svn_blamewidget.h" #include "subversion_core.h" #include "subversion_global.h" -#include +#include #include #include #include diff --git a/vcs/subversion/svn_tdeio.cpp b/vcs/subversion/svn_tdeio.cpp index 23f1d2ff..0abac2b8 100644 --- a/vcs/subversion/svn_tdeio.cpp +++ b/vcs/subversion/svn_tdeio.cpp @@ -124,7 +124,7 @@ tdeio_svnProtocol::tdeio_svnProtocol(const TQCString &pool_socket, const TQCStri apr_initialize(); // Make sure to properly initialize svn client, besides other things, this sets up // NLS support for environments that don't use UTF-8 - svn_cmdline_init("kdevsvnd",NULL); + svn_cmdline_init("tdevsvnd",NULL); // CleanUP ctx preventing crash in svn_client_update and other memset(&ctx, 0, sizeof(ctx)); pool = svn_pool_create (NULL); @@ -1861,7 +1861,7 @@ svn_error_t *tdeio_svnProtocol::commitLogPrompt( const char **log_msg, const cha kdDebug(9036) << " __TIME__ " << __TIME__ << endl; if ( !p->dcopClient()->call( "kded","kdevsvnd","commitDialog(TQString)", params, replyType, reply ) ) { - kdWarning() << "Communication with KDED:KDevSvnd failed" << endl; + kdWarning() << "Communication with KDED:TDevSvnd failed" << endl; svn_error_t *err = svn_error_create( SVN_ERR_EXTERNAL_PROGRAM, NULL, apr_pstrdup( pool, "Fail to call kded_kdevsvnd via DCOP. If this is your first problem, try to restart KDE" ) ); return err; diff --git a/vcs/subversion/tdevpart_subversion.rc b/vcs/subversion/tdevpart_subversion.rc new file mode 100644 index 00000000..ad957e99 --- /dev/null +++ b/vcs/subversion/tdevpart_subversion.rc @@ -0,0 +1,31 @@ + + + + &Tools + &Version Control + + + &Subversion + + + + + + + + + + + + + + + + + + + + + diff --git a/vcs/subversion/tdevsubversion.desktop b/vcs/subversion/tdevsubversion.desktop new file mode 100644 index 00000000..7643c755 --- /dev/null +++ b/vcs/subversion/tdevsubversion.desktop @@ -0,0 +1,34 @@ +[Desktop Entry] +Type=Service +Exec=blubb +Comment=Subversion +Comment[fa]=زیرنسخه +Comment[hi]=सबवर्सन +Comment[ne]=सबभर्सन +Comment[pt_BR]=Subversão +Comment[ru]=Интеграция Subversion +Comment[ta]=உப பதிப்பு +Comment[tg]=Интегратсия Subversion +Name=KDevsubversion +Name[da]=TDevelop Subversion +Name[de]=Unterstützung für Subversion (TDevelop) +Name[hi]=के-डेव-सबवर्सन +Name[nds]=Subversion-Ünnerstütten för TDevelop +Name[sk]=KDev Subversion +Name[sv]=TDevelop Subversion +Name[ta]=kdev உப பதிப்பு +Name[tg]=KDevзер-ривоят +Name[zh_TW]=TDevelop Subversion +GenericName=Subversion +GenericName[fa]=زیرنسخه +GenericName[hi]=सबवर्सन +GenericName[ne]=सबभर्सन +GenericName[pt_BR]=Subversão +GenericName[ru]=Интеграция Subversion +GenericName[ta]=துணை பதிப்பு +GenericName[tg]=Зер-ривоят +Icon=misc +ServiceTypes=TDevelop/VersionControl +X-TDE-Library=libtdevsubversion +X-TDevelop-Version=5 +X-TDevelop-Properties=VCS,SubversionVCS diff --git a/vcs/subversion/tdevsvn+file.protocol b/vcs/subversion/tdevsvn+file.protocol new file mode 100644 index 00000000..412c3800 --- /dev/null +++ b/vcs/subversion/tdevsvn+file.protocol @@ -0,0 +1,39 @@ +[Protocol] +exec=tdeio_kdevsvn +protocol=kdevsvn+file +input=none +output=filesystem +reading=true +writing=true +deleting=true +makedir=true +linking=false +moving=true +deleteRecursive=true +listing=Name,Size,Date,Owner +defaultMimetype=application/octet-stream +Icon=remote +Description=Subversion ioslave for TDevelop +Description[ca]=L'esclau io (ioslave) Subversion per a TDevelop +Description[de]=Ein-/Ausgabemodul für Subversion (TDevelop) +Description[el]=Subversion ioslave για το TDevelop +Description[es]=El ioslave de Subversion para TDevelop +Description[et]=TDevelopi Subversioni IO-moodul +Description[fr]=Esclave d'E/S (ioslave) Subversion pour TDevelop +Description[hu]=Subversion KDE-protokoll a TDevelophoz +Description[it]=ioslave di subversion per TDevelop +Description[ja]=TDevelop のための Subversion ioslave +Description[ms]=IOslave Subversion untuk TDevelop +Description[nds]=TDevelop-In-/Utgaavmoduul för Subversion +Description[nl]=Subversion-ioslave voor TDevelop +Description[pl]=Wtyczka protokołu Subversion dla TDevelopa +Description[pt]='Ioslave' do Subversion para o TDevelop +Description[pt_BR]='Ioslave' do Subversion para o TDevelop +Description[ru]=Поддержка протокола Subversion для TDevelop +Description[sk]=Subversion ioslave pre TDevelop +Description[sr]=KIOSlave Subversion-а за TDevelop +Description[sr@Latn]=KIOSlave Subversion-a za TDevelop +Description[sv]=Subversion I/O-slav för TDevelop +Description[zh_TW]=TDevelop 的 Subversion ioslave +maxInstances=5 +class=:internet diff --git a/vcs/subversion/tdevsvn+http.protocol b/vcs/subversion/tdevsvn+http.protocol new file mode 100644 index 00000000..5a063b85 --- /dev/null +++ b/vcs/subversion/tdevsvn+http.protocol @@ -0,0 +1,39 @@ +[Protocol] +exec=tdeio_kdevsvn +protocol=kdevsvn+http +input=none +output=filesystem +reading=true +writing=true +deleting=true +makedir=true +linking=false +moving=true +deleteRecursive=true +listing=Name,Size,Date,Owner +defaultMimetype=application/octet-stream +Icon=remote +Description=Subversion ioslave for TDevelop +Description[ca]=L'esclau io (ioslave) Subversion per a TDevelop +Description[de]=Ein-/Ausgabemodul für Subversion (TDevelop) +Description[el]=Subversion ioslave για το TDevelop +Description[es]=El ioslave de Subversion para TDevelop +Description[et]=TDevelopi Subversioni IO-moodul +Description[fr]=Esclave d'E/S (ioslave) Subversion pour TDevelop +Description[hu]=Subversion KDE-protokoll a TDevelophoz +Description[it]=ioslave di subversion per TDevelop +Description[ja]=TDevelop のための Subversion ioslave +Description[ms]=IOslave Subversion untuk TDevelop +Description[nds]=TDevelop-In-/Utgaavmoduul för Subversion +Description[nl]=Subversion-ioslave voor TDevelop +Description[pl]=Wtyczka protokołu Subversion dla TDevelopa +Description[pt]='Ioslave' do Subversion para o TDevelop +Description[pt_BR]='Ioslave' do Subversion para o TDevelop +Description[ru]=Поддержка протокола Subversion для TDevelop +Description[sk]=Subversion ioslave pre TDevelop +Description[sr]=KIOSlave Subversion-а за TDevelop +Description[sr@Latn]=KIOSlave Subversion-a za TDevelop +Description[sv]=Subversion I/O-slav för TDevelop +Description[zh_TW]=TDevelop 的 Subversion ioslave +maxInstances=5 +class=:internet diff --git a/vcs/subversion/tdevsvn+https.protocol b/vcs/subversion/tdevsvn+https.protocol new file mode 100644 index 00000000..d064e575 --- /dev/null +++ b/vcs/subversion/tdevsvn+https.protocol @@ -0,0 +1,39 @@ +[Protocol] +exec=tdeio_kdevsvn +protocol=kdevsvn+https +input=none +output=filesystem +reading=true +writing=true +deleting=true +makedir=true +linking=false +moving=true +deleteRecursive=true +listing=Name,Size,Date,Owner +defaultMimetype=application/octet-stream +Icon=remote +Description=Subversion ioslave for TDevelop +Description[ca]=L'esclau io (ioslave) Subversion per a TDevelop +Description[de]=Ein-/Ausgabemodul für Subversion (TDevelop) +Description[el]=Subversion ioslave για το TDevelop +Description[es]=El ioslave de Subversion para TDevelop +Description[et]=TDevelopi Subversioni IO-moodul +Description[fr]=Esclave d'E/S (ioslave) Subversion pour TDevelop +Description[hu]=Subversion KDE-protokoll a TDevelophoz +Description[it]=ioslave di subversion per TDevelop +Description[ja]=TDevelop のための Subversion ioslave +Description[ms]=IOslave Subversion untuk TDevelop +Description[nds]=TDevelop-In-/Utgaavmoduul för Subversion +Description[nl]=Subversion-ioslave voor TDevelop +Description[pl]=Wtyczka protokołu Subversion dla TDevelopa +Description[pt]='Ioslave' do Subversion para o TDevelop +Description[pt_BR]='Ioslave' do Subversion para o TDevelop +Description[ru]=Поддержка протокола Subversion для TDevelop +Description[sk]=Subversion ioslave pre TDevelop +Description[sr]=KIOSlave Subversion-а за TDevelop +Description[sr@Latn]=KIOSlave Subversion-a za TDevelop +Description[sv]=Subversion I/O-slav för TDevelop +Description[zh_TW]=TDevelop 的 Subversion ioslave +maxInstances=5 +class=:internet diff --git a/vcs/subversion/tdevsvn+ssh.protocol b/vcs/subversion/tdevsvn+ssh.protocol new file mode 100644 index 00000000..512b4a90 --- /dev/null +++ b/vcs/subversion/tdevsvn+ssh.protocol @@ -0,0 +1,39 @@ +[Protocol] +exec=tdeio_kdevsvn +protocol=kdevsvn+ssh +input=none +output=filesystem +reading=true +writing=true +deleting=true +makedir=true +linking=false +moving=true +deleteRecursive=true +listing=Name,Size,Date,Owner +defaultMimetype=application/octet-stream +Icon=remote +Description=Subversion ioslave for TDevelop +Description[ca]=L'esclau io (ioslave) Subversion per a TDevelop +Description[de]=Ein-/Ausgabemodul für Subversion (TDevelop) +Description[el]=Subversion ioslave για το TDevelop +Description[es]=El ioslave de Subversion para TDevelop +Description[et]=TDevelopi Subversioni IO-moodul +Description[fr]=Esclave d'E/S (ioslave) Subversion pour TDevelop +Description[hu]=Subversion KDE-protokoll a TDevelophoz +Description[it]=ioslave di subversion per TDevelop +Description[ja]=TDevelop のための Subversion ioslave +Description[ms]=IOslave Subversion untuk TDevelop +Description[nds]=TDevelop-In-/Utgaavmoduul för Subversion +Description[nl]=Subversion-ioslave voor TDevelop +Description[pl]=Wtyczka protokołu Subversion dla TDevelopa +Description[pt]='Ioslave' do Subversion para o TDevelop +Description[pt_BR]='Ioslave' do Subversion para o TDevelop +Description[ru]=Поддержка протокола Subversion для TDevelop +Description[sk]=Subversion ioslave pre TDevelop +Description[sr]=KIOSlave Subversion-а за TDevelop +Description[sr@Latn]=KIOSlave Subversion-a za TDevelop +Description[sv]=Subversion I/O-slav för TDevelop +Description[zh_TW]=TDevelop 的 Subversion ioslave +maxInstances=5 +class=:internet diff --git a/vcs/subversion/tdevsvn+svn.protocol b/vcs/subversion/tdevsvn+svn.protocol new file mode 100644 index 00000000..8f496854 --- /dev/null +++ b/vcs/subversion/tdevsvn+svn.protocol @@ -0,0 +1,39 @@ +[Protocol] +exec=tdeio_kdevsvn +protocol=kdevsvn+svn +input=none +output=filesystem +reading=true +writing=true +deleting=true +makedir=true +linking=false +moving=true +deleteRecursive=true +listing=Name,Size,Date,Owner +defaultMimetype=application/octet-stream +Icon=remote +Description=Subversion ioslave for TDevelop +Description[ca]=L'esclau io (ioslave) Subversion per a TDevelop +Description[de]=Ein-/Ausgabemodul für Subversion (TDevelop) +Description[el]=Subversion ioslave για το TDevelop +Description[es]=El ioslave de Subversion para TDevelop +Description[et]=TDevelopi Subversioni IO-moodul +Description[fr]=Esclave d'E/S (ioslave) Subversion pour TDevelop +Description[hu]=Subversion KDE-protokoll a TDevelophoz +Description[it]=ioslave di subversion per TDevelop +Description[ja]=TDevelop のための Subversion ioslave +Description[ms]=IOslave Subversion untuk TDevelop +Description[nds]=TDevelop-In-/Utgaavmoduul för Subversion +Description[nl]=Subversion-ioslave voor TDevelop +Description[pl]=Wtyczka protokołu Subversion dla TDevelopa +Description[pt]='Ioslave' do Subversion para o TDevelop +Description[pt_BR]='Ioslave' do Subversion para o TDevelop +Description[ru]=Поддержка протокола Subversion для TDevelop +Description[sk]=Subversion ioslave pre TDevelop +Description[sr]=KIOSlave Subversion-а за TDevelop +Description[sr@Latn]=KIOSlave Subversion-a za TDevelop +Description[sv]=Subversion I/O-slav för TDevelop +Description[zh_TW]=TDevelop 的 Subversion ioslave +maxInstances=5 +class=:internet diff --git a/vcs/subversion/tdevsvnd.cpp b/vcs/subversion/tdevsvnd.cpp new file mode 100644 index 00000000..ea42667b --- /dev/null +++ b/vcs/subversion/tdevsvnd.cpp @@ -0,0 +1,394 @@ +/* + This file is part of the KDE Project + + Copyright (C) 2003, 2004 Mickael Marchand + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + version 2 as published by the Free Software Foundation. + + This software is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this library; see the file COPYING. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "config.h" + +#include "tdevsvnd.h" + +#include "tdevsvnd_widgets.h" +#include "commitdlg.h" + +extern "C" { + KDE_EXPORT KDEDModule *create_kdevsvnd(const TQCString &name) { + return new TDevSvnd(name); + } +} + +TDevSvnd::TDevSvnd(const TQCString &name) + : KDEDModule(name) { +} +TDevSvnd::~TDevSvnd() +{} + +TQString TDevSvnd::commitDialog(TQString modifiedFiles) { + CommitDlg commitDlg; + commitDlg.setCaption(i18n("Enter Commit Log Message:")); + commitDlg.listMessage->setText( modifiedFiles ); + int result = commitDlg.exec(); + if ( result == TQDialog::Accepted ) { + return commitDlg.textMessage->text(); + } else + return TQString(); +} +int TDevSvnd::sslServerTrustPrompt( TQString errmsg, TQString hostname, TQString fingerPrint, TQString validfrom, TQString validuntil, TQString issuerName, TQString ascii_cert ) +{ + SvnSSLTrustPrompt dlg; + dlg.setupCertInfo( hostname, fingerPrint, validfrom, validuntil, issuerName, ascii_cert ); + dlg.setupFailedReasonMsg( errmsg ); + int result = dlg.exec(); + if ( result == TQDialog::Accepted ){ + return dlg.code(); + } else{ + return -1; + } +} +TQString TDevSvnd::sslCertFile() +{ + TQString fileName = KFileDialog::getOpenFileName(TQString(),TQString(),0, i18n("Open SSL certificate file")); + return fileName; +} +TQCString TDevSvnd::sslPasswdDlg(TQString promptMsg) +{ + TQCString passwd; + int ret = KPasswordDialog::getPassword( passwd,promptMsg ); + if( ret == KPasswordDialog::Accepted ){ + TQCString retstr; + retstr.setNum(1); + return retstr + passwd; + } else{ + TQCString nullstr; + nullstr.setNum(-1); + return nullstr; + } +} + + +// void TDevSvnd::registerMe(const TQCString &app) +// { +// insert(app, "test", new TestObject(app)); +// // When 'app' unregisters with DCOP, the TestObject will get deleted. +// } + +// bool KSvnd::AreAnyFilesInSvn( const KURL::List& wclist ) { +// for ( TQValueListConstIterator it = wclist.begin(); it != wclist.end() ; ++it ) { +// kdDebug( 9036 ) << "Checking file " << ( *it ) << endl; +// TQDir bdir ( ( *it ).path() ); +// if ( bdir.exists() && TQFile::exists( ( *it ).path() + "/.svn/entries" ) ) { +// return true; +// } else if ( !bdir.exists() ) { +// if ( isFileInSvnEntries( ( *it ).fileName(), ( *it ).directory() + "/.svn/entries" ) || isFileInExternals ( ( *it ).fileName(), ( *it ).directory()+"/.svn/dir-props" ) ) +// return true; +// } +// } +// return false; +// } +// +// bool KSvnd::AreAnyFilesNotInSvn( const KURL::List& wclist ) { +// for ( TQValueListConstIterator it = wclist.begin(); it != wclist.end() ; ++it ) { +// kdDebug( 9036 ) << "Checking file " << ( *it ) << endl; +// TQDir bdir ( ( *it ).path() ); +// if ( bdir.exists() && !TQFile::exists( ( *it ).path() + "/.svn/entries" ) ) { +// return true; +// } else if ( !bdir.exists() ) { +// if ( !isFileInSvnEntries( ( *it ).fileName(),( *it ).directory() + "/.svn/entries" ) && !isFileInExternals ( ( *it ).fileName(), ( *it ).directory()+"/.svn/dir-props" ) ) +// return true; +// } +// } +// return false; +// } +// +// bool KSvnd::AreAllFilesInSvn( const KURL::List& wclist ) { +// for ( TQValueListConstIterator it = wclist.begin(); it != wclist.end() ; ++it ) { +// kdDebug( 9036 ) << "Checking file " << ( *it ) << endl; +// TQDir bdir ( ( *it ).path() ); +// if ( bdir.exists() && !TQFile::exists( ( *it ).path() + "/.svn/entries" ) ) { +// return false; +// } else if ( !bdir.exists() ) { +// if ( !isFileInSvnEntries( ( *it ).fileName(),( *it ).directory() + "/.svn/entries" ) && !isFileInExternals ( ( *it ).fileName(), ( *it ).directory()+"/.svn/dir-props" ) ) +// return false; +// } +// } +// return true; +// } +// +// bool KSvnd::AreAllFilesNotInSvn( const KURL::List& wclist ) { +// for ( TQValueListConstIterator it = wclist.begin(); it != wclist.end() ; ++it ) { +// kdDebug( 9036 ) << "Checking file " << ( *it ) << endl; +// TQDir bdir ( ( *it ).path() ); +// if ( bdir.exists() && TQFile::exists( ( *it ).path() + "/.svn/entries" ) ) { +// return false; +// } else if ( !bdir.exists() ) { +// if ( isFileInSvnEntries( ( *it ).fileName(),( *it ).directory() + "/.svn/entries" ) || isFileInExternals ( ( *it ).fileName(), ( *it ).directory()+"/.svn/dir-props" ) ) +// return false; +// } +// } +// return true; +// } +// +// bool KSvnd::isFileInSvnEntries ( const TQString filename, const TQString entfile ) { +// TQFile file( entfile ); +// if ( file.open( IO_ReadOnly ) ) { +// TQTextStream stream( &file ); +// TQString line; +// while ( !stream.atEnd() ) { +// line = stream.readLine().simplifyWhiteSpace(); +// if ( line == "name=\""+ filename + "\"" ) { +// file.close(); +// return true; +// } +// } +// file.close(); +// } +// return false; +// } +// +// bool KSvnd::isFileInExternals ( const TQString filename, const TQString propfile ) { +// TQFile file( propfile ); +// if ( file.open( IO_ReadOnly ) ) { +// TQTextStream stream( &file ); +// TQStringList line; +// while ( !stream.atEnd() ) +// line << stream.readLine().simplifyWhiteSpace(); +// for ( uint i = 0 ; i < line.count(); i++ ) { +// if ( line[ i ] == "K 13" && line[ i+1 ] == "svn:externals" ) { //Key 13 : svn:externals +// //next line should be "V xx" +// if ( line [ i+2 ].startsWith( "V " ) ) { +// //ok browse the values now +// i+=2; +// while ( i < line.count() ) { +// if ( line[ i ].startsWith( filename+" " ) ) { //found it ! +// file.close( ); +// return true; +// } else if ( line[ i ].isEmpty() ) { +// file.close( ); +// return false; //we are out of svn:externals now... +// } +// i++; +// } +// } +// } +// } +// file.close(); +// } +// return false; +// } +// +// bool KSvnd::anyNotValidWorkingCopy( const KURL::List& wclist ) { +// bool result = true; //one negative match is enough +// for ( TQValueListConstIterator it = wclist.begin(); it != wclist.end() ; ++it ) { +// //exception for .svn dirs +// if ( ( *it ).path(-1).endsWith( "/.svn" ) ) +// return true; +// //if is a directory check whether it contains a .svn/entries file +// TQDir dir( ( *it ).path() ); +// if ( dir.exists() ) { //it's a dir +// if ( !TQFile::exists( ( *it ).path() + "/.svn/entries" ) ) +// result = false; +// } +// +// //else check if ./.svn/entries exists +// if ( !TQFile::exists( ( *it ).directory() + "/.svn/entries" ) ) +// result = false; +// } +// return result; +// } +// +// bool KSvnd::anyValidWorkingCopy( const KURL::List& wclist ) { +// for ( TQValueListConstIterator it = wclist.begin(); it != wclist.end() ; ++it ) { +// //skip .svn dirs +// if ( ( *it ).path(-1).endsWith( "/.svn" ) ) +// continue; +// //if is a directory check whether it contains a .svn/entries file +// TQDir dir( ( *it ).path() ); +// if ( dir.exists() ) { //it's a dir +// if ( TQFile::exists( ( *it ).path() + "/.svn/entries" ) ) +// return true; +// } +// +// //else check if ./.svn/entries exists +// if ( TQFile::exists( ( *it ).directory() + "/.svn/entries" ) ) +// return true; +// } +// return false; +// } +// +// int KSvnd::getStatus( const KURL::List& list ) { +// int result = 0; +// uint files = 0, folders = 0, parentsentries = 0, parentshavesvn = 0, subdirhavesvn = 0, external = 0; +// for ( TQValueListConstIterator it = list.begin(); it != list.end() ; ++it ) { +// if ( isFolder ( ( *it ) ) ) { +// folders++; +// } else { +// files++; +// } +// if ( isFileInSvnEntries ( (*it).filename(),( *it ).directory() + "/.svn/entries" ) ) { // normal subdir known in the working copy +// parentsentries++; +// } else if ( isFolder( *it ) ) { // other subfolders (either another module checkouted or an external, or something not known at all) +// if ( TQFile::exists( ( *it ).path() + "/.svn/entries" ) ) +// subdirhavesvn++; +// if ( isFileInExternals( (*it).filename(), ( *it ).directory() + "/.svn/dir-props" ) ) { +// external++; +// } +// } +// if ( ( isFolder( ( *it ) ) && TQFile::exists( ( *it ).directory() + "../.svn/entries" ) ) || TQFile::exists( ( *it ).directory() + "/.svn/entries" ) ) //parent has a .svn ? +// parentshavesvn++; +// } +// if ( files > 0 ) +// result |= SomeAreFiles; +// if ( folders == list.count() ) { +// result |= AllAreFolders; +// result |= SomeAreFolders; +// } +// if ( folders > 0 ) +// result |= SomeAreFolders; +// if ( parentsentries == list.count() ) { +// result |= AllAreInParentsEntries; +// result |= SomeAreInParentsEntries; +// } else if ( parentsentries != 0 ) +// result |= SomeAreInParentsEntries; +// if ( parentshavesvn == list.count() ) { +// result |= AllParentsHaveSvn; +// result |= SomeParentsHaveSvn; +// } else if ( parentshavesvn > 0 ) +// result |= SomeParentsHaveSvn; +// if ( subdirhavesvn == list.count() ) { +// result |= AllHaveSvn; +// result |= SomeHaveSvn; +// } else if ( subdirhavesvn > 0 ) +// result |= SomeHaveSvn; +// if ( external == list.count() ) { +// result |= AllAreExternalToParent; +// result |= SomeAreExternalToParent; +// } else if ( external > 0 ) +// result |= SomeAreExternalToParent; +// +// return result; +// } +// +// bool KSvnd::isFolder( const KURL& url ) { +// TQDir d( url.path() ); +// return d.exists(); +// } +// +// TQStringList KSvnd::getActionMenu ( const KURL::List &list ) { +// TQStringList result; +// int listStatus = getStatus( list ); +// +// if ( !(listStatus & SomeAreInParentsEntries) && +// !(listStatus & SomeAreExternalToParent) && +// !(listStatus & SomeHaveSvn)) { +// if( list.size() == 1 && listStatus & SomeAreFolders) { +// result << "Checkout"; +// result << "Export"; +// // result << "CreateRepository"; +// result << "Import"; +// } +// } else if ( (listStatus & AllAreInParentsEntries) ) { +// result << "Diff"; +// //In SVN +// // result << "ShowLog"; +// // result << "CheckForModifications"; +// // result << "RevisionGraph"; +// // result << "_SEPARATOR_"; +// // result << "Update to revision..." +// result << "Rename"; +// result << "Delete"; +// if( listStatus & SomeAreFolders && !(listStatus & SomeAreFiles)) { +// result << "Revert"; +// // result << "Cleanup"; +// } +// result << "_SEPARATOR_"; +// // result << "BranchTag"; +// result << "Switch"; +// result << "Merge"; +// if( listStatus & SomeAreFolders && !(listStatus & SomeAreFiles)) { +// // result << "Export"; +// // result << "Relocate"; +// result << "_SEPARATOR_"; +// result << "Add"; +// } +// result << "_SEPARATOR_"; +// if( listStatus & SomeAreFiles && !(listStatus & SomeAreFolders)) { +// result << "Blame"; +// } +// result << "CreatePatch"; +// +// if( list.size() == 1 && listStatus & SomeAreFolders) { +// // result << "ApplyPatchToFolder"; +// } +// } +// return result; +// } +// +// TQStringList KSvnd::getTopLevelActionMenu ( const KURL::List &list ) { +// TQStringList result; +// int listStatus = getStatus( list ); +// +// +// if ( ( listStatus & AllParentsHaveSvn && +// ( ( listStatus & SomeAreExternalToParent ) || ( listStatus & SomeAreInParentsEntries ) ) +// || ( listStatus & SomeHaveSvn ) ) +// ) { +// result << "Update"; +// result << "Commit"; +// } +// +// return result; +// } +// +// #if 0 +// void KSvnd::notify(const TQString& path, int action, int kind, const TQString& mime_type, int content_state, int prop_state, long int revision, const TQString& userstring) { +// kdDebug(9036) << "KDED/Subversion : notify " << path << " action : " << action << " mime_type : " << mime_type << " content_state : " << content_state << " prop_state : " << prop_state << " revision : " << revision << " userstring : " << userstring << endl; +// TQByteArray params; +// +// TQDataStream stream(params, IO_WriteOnly); +// stream << path << action << kind << mime_type << content_state << prop_state << revision << userstring; +// +// emitDCOPSignal( "subversionNotify(TQString,int,int,TQString,int,int,long int,TQString)", params ); +// } +// +// void KSvnd::status(const TQString& path, int text_status, int prop_status, int repos_text_status, int repos_prop_status, long int rev ) { +// kdDebug(9036) << "KDED/Subversion : status " << path << " " << text_status << " " << prop_status << " " +// << repos_text_status << " " << repos_prop_status << " " << rev << endl; +// TQByteArray params; +// +// TQDataStream stream(params, IO_WriteOnly); +// stream << path << text_status << prop_status << repos_text_status << repos_prop_status << rev; +// +// emitDCOPSignal( "subversionStatus(TQString,int,int,int,int,long int)", params ); +// } +// +// void KSvnd::popupMessage( const TQString& message ) { +// kdDebug(9036) << "KDED/Subversion : popupMessage" << message << endl; +// KMessageBox::information(0, message, i18n( "Subversion" ) ); +// } +// #endif + +#include "tdevsvnd.moc" diff --git a/vcs/subversion/tdevsvnd.desktop b/vcs/subversion/tdevsvnd.desktop new file mode 100644 index 00000000..9ba3e877 --- /dev/null +++ b/vcs/subversion/tdevsvnd.desktop @@ -0,0 +1,32 @@ +[Desktop Entry] +Type=Service +Name=TDevelop Subversion Module +Name[ca]=Mòdul de Subversion per a TDevelop +Name[da]=TDevelop Subversion-Modul +Name[de]=Subversion-Komponente (TDevelop) +Name[el]=Άρθρωμα subversion του TDevelop +Name[es]=Módulo de Subversion de TDevelop +Name[et]=TDevelopi Subversioni Moodul +Name[fr]=Module Subversion pour TDevelop +Name[hu]=TDevelop-Modul a Subversion kezeléséhez +Name[it]=Modulo Subversion di TDevelop +Name[ja]=TDevelop Subversion モジュール +Name[ms]=Modul Subversion TDevelop +Name[nds]=TDevelop-Moduul för Subversion +Name[nl]=TDevelop Subversion-Module +Name[pl]=Modul Subversion dla TDevelopa +Name[pt]=Módulo de Subversion do TDevelop +Name[pt_BR]=Módulo de Subversion do TDevelop +Name[ru]=Модуль Subversion для TDevelop +Name[sk]=TDevelop Subversion Modul +Name[sr]=TDevelop-ов модул за Subversion +Name[sr@Latn]=TDevelop-ov Modul za Subversion +Name[sv]=TDevelop Subversion-Modul +Name[zh_TW]=TDevelop Subversion 模組 +Comment=Provides subversion client services with TDevelop +ServiceTypes=KDEDModule +X-TDE-ModuleType=Library +X-TDE-Library=kdevsvnd +X-TDE-FactoryName=kdevsvnd +X-TDE-Kded-autoload=true +X-TDE-Kded-load-on-demand=true diff --git a/vcs/subversion/tdevsvnd.h b/vcs/subversion/tdevsvnd.h new file mode 100644 index 00000000..4bec5ae7 --- /dev/null +++ b/vcs/subversion/tdevsvnd.h @@ -0,0 +1,51 @@ +/* + This file is part of the KDE Project + + Copyright (C) 2003-2005 Mickael Marchand + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + version 2 as published by the Free Software Foundation. + + This software is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this library; see the file COPYING. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef KSVND_H +#define KSVND_H + +#include +#include +#include +#include + +class TDevSvnd : public KDEDModule +{ +Q_OBJECT +// + +K_DCOP + + //note: InSVN means parent is added. InRepos means itself is added + enum { SomeAreFiles = 1, SomeAreFolders = 2, SomeAreInParentsEntries = 4, SomeParentsHaveSvn = 8, SomeHaveSvn = 16, SomeAreExternalToParent = 32, AllAreInParentsEntries = 64, AllParentsHaveSvn = 128, AllHaveSvn = 256, AllAreExternalToParent = 512, AllAreFolders = 1024 }; +public: + TDevSvnd(const TQCString &); + ~TDevSvnd(); + +k_dcop: +// void addAuthInfo(TDEIO::AuthInfo, long); + TQString commitDialog(TQString); + int sslServerTrustPrompt(TQString certFailMsg, TQString hostname, TQString fingerPrint, TQString validfrom, TQString validuntil, TQString issuerName, TQString ascii_cert ); + TQString sslCertFile(); + TQCString sslPasswdDlg(TQString promptMsg); + +}; + +#endif diff --git a/vcs/subversion/tdevsvnd_widgets.cpp b/vcs/subversion/tdevsvnd_widgets.cpp new file mode 100644 index 00000000..ba688423 --- /dev/null +++ b/vcs/subversion/tdevsvnd_widgets.cpp @@ -0,0 +1,70 @@ +/* + * Copyright (C) 2007 Dukju Ahn (dukjuahn@gmail.com) + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + */ + +#include "tdevsvnd_widgets.h" +#include +#include +#include +#include + +SvnSSLTrustPrompt::SvnSSLTrustPrompt( TQWidget* parent, const char* name, bool modal, WFlags f ) + :SvnSSLTrustPromptBase( parent, name, modal, f ) + , m_code(-1) +{ + listView1->setColumnText( 0, "Items" ); + listView1->setColumnText( 1, "Values" ); + btnPermanent->setText(i18n("Accept Permanently")); + btnTemporary->setText(i18n("Accept Temporarily")); + btnReject->setText(i18n("Reject")); + connect( btnPermanent, TQT_SIGNAL(clicked()), this, TQT_SLOT(setPermanent()) ); + connect( btnTemporary, TQT_SIGNAL(clicked()), this, TQT_SLOT(setTemporary()) ); + connect( btnReject, TQT_SIGNAL(clicked()), this, TQT_SLOT(setRejected ()) ); +} +SvnSSLTrustPrompt::~SvnSSLTrustPrompt() +{} + +void SvnSSLTrustPrompt::setupCertInfo( TQString hostname, TQString fingerPrint, TQString validfrom, TQString validuntil, TQString issuerName, TQString ascii_cert ) +{ + // setup texts + TQListViewItem *host= new TQListViewItem(listView1, i18n("Hostname"), hostname ); + TQListViewItem *finger = new TQListViewItem(listView1, i18n("FingerPrint"), fingerPrint ); + TQListViewItem *validFrom = new TQListViewItem(listView1, i18n("Valid From"), validfrom ); + TQListViewItem *validUntil = new TQListViewItem(listView1, i18n("Valid Until"), validuntil ); + TQListViewItem *issName = new TQListViewItem(listView1, i18n("Issuer"), issuerName ); + TQListViewItem *cert = new TQListViewItem(listView1, i18n("Cert"), ascii_cert ); +} +void SvnSSLTrustPrompt::setupFailedReasonMsg( TQString msg ) +{ + errMsgLabel->setText( msg ); +} +int SvnSSLTrustPrompt::code() +{ + return m_code; +} + +void SvnSSLTrustPrompt::setPermanent() +{ + m_code = 1; +} + +void SvnSSLTrustPrompt::setTemporary() +{ + m_code = 0; +} + +void SvnSSLTrustPrompt::setRejected() +{ + m_code = -1; +} +#include "tdevsvnd_widgets.moc" diff --git a/vcs/subversion/tdevsvnd_widgets.h b/vcs/subversion/tdevsvnd_widgets.h new file mode 100644 index 00000000..da7942b2 --- /dev/null +++ b/vcs/subversion/tdevsvnd_widgets.h @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2007 Dukju Ahn (dukjuahn@gmail.com) + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + */ + +#ifndef TDEVSVND_WIDGETS_H +#define TDEVSVND_WIDGETS_H + +#include "svnssltrustpromptbase.h" + +class SvnSSLTrustPrompt : public SvnSSLTrustPromptBase{ +Q_OBJECT + +public: + SvnSSLTrustPrompt( TQWidget* parent=0, const char* name=0, bool modal=true, WFlags f=0 ); + ~SvnSSLTrustPrompt(); + void setupCertInfo( TQString hostname, TQString fingerPrint, TQString validfrom, TQString validuntil, TQString issuerName, TQString ascii_cert ); + void setupFailedReasonMsg( TQString msg ); + int code(); + +public slots: + void setPermanent(); + void setTemporary(); + void setRejected(); + +protected: + // -1 for reject + // 0 for accept temporarily + // 1 for accept permanently + int m_code; +}; + +#endif -- cgit v1.2.1