Mercurial: Save resources, polishing.

Start the jobrunner on demand, save options only if changed,
give it the structure used elsewhere in the VCS plugins. Remove
last traces of the cmd /c hack.
This commit is contained in:
Friedemann Kleint
2009-11-06 12:32:38 +01:00
parent d570b05bec
commit b0e1fdbfc4
11 changed files with 194 additions and 133 deletions

View File

@@ -30,6 +30,8 @@
#ifndef MERCURIALPLUGIN_H
#define MERCURIALPLUGIN_H
#include "mercurialsettings.h"
#include <extensionsystem/iplugin.h>
#include <coreplugin/icorelistener.h>
@@ -85,7 +87,8 @@ public:
bool closeEditor(Core::IEditor *editor);
QStringList standardArguments() const;
MercurialSettings *settings();
const MercurialSettings &settings() const;
void setSettings(const MercurialSettings &settings);
private slots:
// File menu action Slots
@@ -146,7 +149,7 @@ private:
//Variables
static MercurialPlugin *m_instance;
MercurialSettings *mercurialSettings;
MercurialSettings mercurialSettings;
OptionsPage *optionsPage;
MercurialClient *client;