VCS[vcs,p4,svn,hg]: Use VCManager for delete operations.

...and its dialog prompt consistently. Rename method and
introduce overload taking IVersionControl. Add convenience slot to
VCSBasePlugin.
This commit is contained in:
Friedemann Kleint
2010-01-11 15:22:17 +01:00
parent 661314742e
commit 95da419067
16 changed files with 79 additions and 57 deletions

View File

@@ -149,6 +149,11 @@ public:
const VCSBasePluginState &currentState() const;
Core::IVersionControl *versionControl() const;
public slots:
// Convenience slot for "Delete current file" action. Prompts to
// delete the file via VCSManager.
void promptToDeleteCurrentFile();
protected:
enum ActionState { NoVCSEnabled, OtherVCSEnabled, VCSEnabled };