From 114a878c64ce6f8223cfd22d76a20eb16d177e5e Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- vcs/perforce/integrator/Makefile.am | 13 ++++++ .../integrator/kdevperforceintegrator.desktop | 44 ++++++++++++++++++ vcs/perforce/integrator/perforceintegrator.cpp | 54 ++++++++++++++++++++++ vcs/perforce/integrator/perforceintegrator.h | 39 ++++++++++++++++ vcs/perforce/integrator/pfintegratordlg.cpp | 40 ++++++++++++++++ vcs/perforce/integrator/pfintegratordlg.h | 36 +++++++++++++++ vcs/perforce/integrator/pfintegratordlgbase.ui | 47 +++++++++++++++++++ 7 files changed, 273 insertions(+) create mode 100644 vcs/perforce/integrator/Makefile.am create mode 100644 vcs/perforce/integrator/kdevperforceintegrator.desktop create mode 100644 vcs/perforce/integrator/perforceintegrator.cpp create mode 100644 vcs/perforce/integrator/perforceintegrator.h create mode 100644 vcs/perforce/integrator/pfintegratordlg.cpp create mode 100644 vcs/perforce/integrator/pfintegratordlg.h create mode 100644 vcs/perforce/integrator/pfintegratordlgbase.ui (limited to 'vcs/perforce/integrator') diff --git a/vcs/perforce/integrator/Makefile.am b/vcs/perforce/integrator/Makefile.am new file mode 100644 index 00000000..0df84d8e --- /dev/null +++ b/vcs/perforce/integrator/Makefile.am @@ -0,0 +1,13 @@ +INCLUDES = -I$(top_srcdir)/lib/interfaces \ + -I$(top_srcdir)/lib/interfaces/extensions -I$(top_srcdir)/lib/interfaces/extras -I$(top_srcdir)/lib/util \ + $(all_includes) +METASOURCES = AUTO +kde_module_LTLIBRARIES = libperforceintegrator.la +libperforceintegrator_la_LDFLAGS = -avoid-version -no-undefined $(all_libraries) +libperforceintegrator_la_LIBADD =\ + $(top_builddir)/lib/interfaces/extras/libkdevextras.la\ + $(top_builddir)/lib/libkdevelop.la +kde_services_DATA = kdevperforceintegrator.desktop +noinst_HEADERS = perforceintegrator.h pfintegratordlg.h +libperforceintegrator_la_SOURCES = perforceintegrator.cpp \ + pfintegratordlgbase.ui pfintegratordlg.cpp diff --git a/vcs/perforce/integrator/kdevperforceintegrator.desktop b/vcs/perforce/integrator/kdevperforceintegrator.desktop new file mode 100644 index 00000000..d70c7f67 --- /dev/null +++ b/vcs/perforce/integrator/kdevperforceintegrator.desktop @@ -0,0 +1,44 @@ +[Desktop Entry] +Type=Service +Name=KDevPerforceIntegrator +Name[da]=KDevelop Perforce-integration +Name[nds]=KDevelop-Perforce-Integreren +Name[sk]=KDev Perforce integrácia +Name[sv]=KDevelop Perforce-integration +Name[zh_TW]=KDevelop Perforce 整合器 +Comment=Perforce Project Integration Facility +Comment[ca]=Facilitat per a la integració amb projectes Perforce +Comment[da]=Perforce projektintegration +Comment[de]=Perforce-Projektintegration +Comment[el]=Λειτουργία ενσωμάτωσης Perforce στο έργο +Comment[es]=Entorno para integración con proyectos Perforce +Comment[et]=Perforce projekti põimimisvahend +Comment[eu]=Perforce proiektuen integrazio-tresna +Comment[fa]=تسهیلات مجتمع‌سازی پروژۀ Perforce +Comment[fr]=Fonction d'intégration pour un projet utilisant Perforce +Comment[gl]=Utilidade para a integración de proxectos Perforce +Comment[hu]=Integrálás a Perforce-szal +Comment[it]=Funzione di integrazione del progetto Perforce +Comment[ja]=Perforce プロジェクト統合ツール +Comment[ms]=Kemudahan Integrasi Projek Perforce +Comment[nds]=Perforce-Projektintegreren +Comment[ne]=परफोर्स परियोजना एकिकरण सुविधा +Comment[nl]=Perforce project-integratie +Comment[pl]=Integracja z Perforce +Comment[pt]=Integração com Projectos Perforce +Comment[pt_BR]=Facilidade de Integração ao Projeto de Perforce +Comment[ru]=Интеграция Perforce +Comment[sk]=Perforce projektová integrácia +Comment[sr]=Интеграција Perforce-а у пројекат +Comment[sr@Latn]=Integracija Perforce-a u projekat +Comment[sv]=Funktion för integrering av Perforce i projekt +Comment[tr]=Perforce Proje Bütünleştirme Aracı +Comment[zh_CN]=Perforce 工程集成功能 +Comment[zh_TW]=Perforce 專案整合工具 +Exec=blubb +ServiceTypes=KDevelop/VCSIntegrator +X-KDE-Library=libperforceintegrator +X-KDevelop-Default=false +X-KDevelop-VCS=Perforce +X-KDevelop-VCSPlugin=kdevperforce +X-KDevelop-Version=5 diff --git a/vcs/perforce/integrator/perforceintegrator.cpp b/vcs/perforce/integrator/perforceintegrator.cpp new file mode 100644 index 00000000..a5e40a36 --- /dev/null +++ b/vcs/perforce/integrator/perforceintegrator.cpp @@ -0,0 +1,54 @@ +/*************************************************************************** + * Copyright (C) 2004 by Alexander Dymo * + * adymo@kdevelop.org * + * * + * 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 General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ +#include "perforceintegrator.h" + +#include +#include + +#include "pfintegratordlg.h" + +static const KDevPluginInfo data("kdevperforceintegrator"); +typedef KDevGenericFactory PerforceIntegratorFactory; +K_EXPORT_COMPONENT_FACTORY( libperforceintegrator, PerforceIntegratorFactory(data) ) + +PerforceIntegrator::PerforceIntegrator(QObject* parent, const char* name, + const QStringList // args + ) + :KDevVCSIntegrator(parent, name) +{ +} + +PerforceIntegrator::~PerforceIntegrator() +{ +} + +VCSDialog* PerforceIntegrator::fetcher(QWidget* // parent + ) +{ + return 0; +} + +VCSDialog* PerforceIntegrator::integrator(QWidget* parent) +{ + PFIntegratorDlg *dlg = new PFIntegratorDlg(parent); + return dlg; +} + +#include "perforceintegrator.moc" diff --git a/vcs/perforce/integrator/perforceintegrator.h b/vcs/perforce/integrator/perforceintegrator.h new file mode 100644 index 00000000..3bb82a2d --- /dev/null +++ b/vcs/perforce/integrator/perforceintegrator.h @@ -0,0 +1,39 @@ +/*************************************************************************** + * Copyright (C) 2004 by Alexander Dymo * + * adymo@kdevelop.org * + * * + * 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 General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ +#ifndef PERFORCEINTEGRATOR_H +#define PERFORCEINTEGRATOR_H + +#include + +#include + +class PerforceIntegrator : public KDevVCSIntegrator +{ +Q_OBJECT +public: + PerforceIntegrator(QObject* parent, const char* name, const QStringList args = QStringList()); + ~PerforceIntegrator(); + + virtual VCSDialog* fetcher(QWidget* parent); + virtual VCSDialog* integrator(QWidget* parent); + +}; + +#endif diff --git a/vcs/perforce/integrator/pfintegratordlg.cpp b/vcs/perforce/integrator/pfintegratordlg.cpp new file mode 100644 index 00000000..917f2a20 --- /dev/null +++ b/vcs/perforce/integrator/pfintegratordlg.cpp @@ -0,0 +1,40 @@ +/*************************************************************************** + * Copyright (C) 2004 by Alexander Dymo * + * adymo@kdevelop.org * + * * + * 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 General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ +#include "pfintegratordlg.h" + +PFIntegratorDlg::PFIntegratorDlg(QWidget *parent, const char *name) + :PFIntegratorDlgBase(parent, name) +{ +} + +void PFIntegratorDlg::accept() +{ +} + +void PFIntegratorDlg::init(const QString &/*projectName*/, const QString &/*projectLocation*/) +{ +} + +QWidget *PFIntegratorDlg::self() +{ + return const_cast(this); +} + +#include "pfintegratordlg.moc" diff --git a/vcs/perforce/integrator/pfintegratordlg.h b/vcs/perforce/integrator/pfintegratordlg.h new file mode 100644 index 00000000..a74b6749 --- /dev/null +++ b/vcs/perforce/integrator/pfintegratordlg.h @@ -0,0 +1,36 @@ +/*************************************************************************** + * Copyright (C) 2004 by Alexander Dymo * + * adymo@kdevelop.org * + * * + * 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 General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ +#ifndef PFINTEGRATORDLG_H +#define PFINTEGRATORDLG_H + +#include "pfintegratordlgbase.h" +#include + +class PFIntegratorDlg: public PFIntegratorDlgBase, public VCSDialog { +Q_OBJECT +public: + PFIntegratorDlg(QWidget *parent = 0, const char *name = 0); + + virtual void accept(); + virtual void init(const QString &projectName, const QString &projectLocation); + virtual QWidget *self(); +}; + +#endif diff --git a/vcs/perforce/integrator/pfintegratordlgbase.ui b/vcs/perforce/integrator/pfintegratordlgbase.ui new file mode 100644 index 00000000..5b12a70f --- /dev/null +++ b/vcs/perforce/integrator/pfintegratordlgbase.ui @@ -0,0 +1,47 @@ + +PFIntegratorDlgBase + + + PFIntegratorDlgBase + + + + 0 + 0 + 600 + 480 + + + + + unnamed + + + + textLabel1 + + + No options available for this VCS. + + + + + spacer2 + + + Vertical + + + Expanding + + + + 20 + 435 + + + + + + + -- cgit v1.2.3