[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdevplatform [POSSIBLY UNSAFE]
From: Andreas Pakulat <apaku () gmx ! de>
Date: 2007-12-02 12:43:11
Message-ID: 1196599391.397487.22166.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 743952 by apaku:
add a name and importMetadataWidget function to basic version control. This will be \
used in the application wizard.
M +10 -0 plugins/cvs/cvsplugin.cpp
M +3 -0 plugins/cvs/cvsplugin.h
M +11 -0 plugins/subversion/kdevsvnplugin.cpp
M +3 -0 plugins/subversion/kdevsvnplugin.h
M +20 -0 vcs/interfaces/ibasicversioncontrol.h [POSSIBLY UNSAFE: system]
--- trunk/KDE/kdevplatform/plugins/cvs/cvsplugin.cpp #743951:743952
@@ -584,6 +584,16 @@
return NULL;
}
+
+QString CvsPlugin::name() const
+{
+ return i18n("CVS");
+}
+QWidget* CvsPlugin::importMetadataWidget( QWidget* parent )
+{
+ return 0;
+}
+
// End: KDevelop::IBasicVersionControl
#include "cvsplugin.moc"
--- trunk/KDE/kdevplatform/plugins/cvs/cvsplugin.h #743951:743952
@@ -39,6 +39,9 @@
CvsPlugin( QObject *parent, const QVariantList & args = QVariantList() );
virtual ~CvsPlugin();
+ virtual QString name() const;
+ virtual QWidget* importMetadataWidget( QWidget* parent );
+
// From KDevelop::IPlugin
QPair<QString,QList<QAction*> > requestContextMenuActions( KDevelop::Context* );
--- trunk/KDE/kdevplatform/plugins/subversion/kdevsvnplugin.cpp #743951:743952
@@ -735,5 +735,16 @@
return m_outputmodel;
}
+
+QString KDevSvnPlugin::name() const
+{
+ return i18n("Subversion");
+}
+
+QWidget* KDevSvnPlugin::importMetadataWidget( QWidget* parent )
+{
+ return 0;
+}
+
#include "kdevsvnplugin.moc"
--- trunk/KDE/kdevplatform/plugins/subversion/kdevsvnplugin.h #743951:743952
@@ -33,6 +33,9 @@
KDevSvnPlugin( QObject *parent, const QVariantList & = QVariantList() );
virtual ~KDevSvnPlugin();
+ virtual QString name() const;
+ virtual QWidget* importMetadataWidget( QWidget* parent );
+
// IBasicVersionControl interfaces.
bool isVersionControlled( const KUrl& localLocation );
--- trunk/KDE/kdevplatform/vcs/interfaces/ibasicversioncontrol.h #743951:743952
@@ -58,6 +58,26 @@
virtual ~IBasicVersionControl(){}
/**
+ * return a user-visible string for the version control plugin
+ * Can be used for example when importing a project into a
+ * version control system to choose the apropriate system
+ *
+ * @returns a translated user-visible name for this version control plugin
+ */
+ virtual QString name() const = 0;
+ /**
+ * provides a widget that fetches the needed input data from the user
+ * to import a project into a version control system.
+ *
+ * If this returns 0 the plugin will not be available as an option for import
+ * when creating a new project
+ *
+ * @param parent the parent widget for the newly created widget
+ * @returns a widget to fetch metadata needed to import a project
+ */
+ virtual QWidget* importMetadataWidget( QWidget* parent ) = 0;
+
+ /**
* These methods rely on a valid vcs-directory with vcs-metadata in it.
*
* revisions can contain a date in format parseable by QDate, a number,
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic