Commit 98d3fa13 authored by Evgeniy Ivanov's avatar Evgeniy Ivanov
Browse files

Minor changes in DVCS menu

parent 3ee02d21
...@@ -73,6 +73,11 @@ bool GitExecutor::isValidDirectory(const KUrl & dirPath) ...@@ -73,6 +73,11 @@ bool GitExecutor::isValidDirectory(const KUrl & dirPath)
return false; return false;
} }
QString GitExecutor::name() const
{
return QString("Git");
}
bool GitExecutor::prepareJob(DVCSjob* job, const QString& repository, enum RequestedOperation op) bool GitExecutor::prepareJob(DVCSjob* job, const QString& repository, enum RequestedOperation op)
{ {
// Only do this check if it's a normal operation like diff, log ... // Only do this check if it's a normal operation like diff, log ...
......
...@@ -72,6 +72,7 @@ class GitExecutor : public QObject, public KDevelop::IDVCSexecutor ...@@ -72,6 +72,7 @@ class GitExecutor : public QObject, public KDevelop::IDVCSexecutor
~GitExecutor(); ~GitExecutor();
bool isValidDirectory(const KUrl &dirPath); bool isValidDirectory(const KUrl &dirPath);
QString name() const;
DVCSjob* init(const KUrl & directory); DVCSjob* init(const KUrl & directory);
DVCSjob* clone(const KUrl &directory, const KUrl repository); DVCSjob* clone(const KUrl &directory, const KUrl repository);
......
...@@ -52,9 +52,4 @@ GitPlugin::~GitPlugin() ...@@ -52,9 +52,4 @@ GitPlugin::~GitPlugin()
delete DistributedVersionControlPlugin::d; delete DistributedVersionControlPlugin::d;
} }
QString GitPlugin::name() const
{
return i18n("Git");
}
// #include "gitplugin.moc" // #include "gitplugin.moc"
...@@ -44,8 +44,6 @@ public: ...@@ -44,8 +44,6 @@ public:
GitPlugin(QObject *parent, const QVariantList & args = QVariantList() ); GitPlugin(QObject *parent, const QVariantList & args = QVariantList() );
~GitPlugin(); ~GitPlugin();
QString name() const;
}; };
#endif #endif
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd"> <!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
<kpartgui name="KDevGit" version="1"> <kpartgui name="KDevGit" version="1">
<Menu name="git_popup"> <Menu name="dvcs_popup">
<text context="@title:menu">Git</text> <text context="@title:menu">Git</text>
<Action name="git_init" /> <Action name="dvcs_init" />
<Action name="git_clone" /> <Action name="dvcs_clone" />
</Menu> </Menu>
</kpartgui> </kpartgui>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment