summaryrefslogtreecommitdiff
path: root/src/plugins/coreplugin/vcsmanager.h
diff options
context:
space:
mode:
authorKonstantin Tokarev <annulen@yandex.ru>2012-07-18 13:41:13 +0400
committerTobias Hunger <tobias.hunger@nokia.com>2012-07-19 22:26:47 +0200
commit728579ef52aee2bfa1e08f1badd91c7787576b09 (patch)
treefb90afcc3ef587148540d596c056b28be739ccdb /src/plugins/coreplugin/vcsmanager.h
parentbd7499b896359ff70f26dbf183ea99f6990bfa11 (diff)
downloadqt-creator-728579ef52aee2bfa1e08f1badd91c7787576b09.tar.gz
Added VCS integration to ResourceEditor.
Made add and remove operations of ResourceEditor VCS-aware. Also, remove operation now can remove files from filesystem. FileUtils::removeFile() and VcsManager::promptToAdd functions were extracted from ProjectExplorer to prevent code duplication. RemoveFileDialog was also moved to coreplugin. Change-Id: Ia51127288030e52ce9475b369e56ea034dfa5d1e Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
Diffstat (limited to 'src/plugins/coreplugin/vcsmanager.h')
-rw-r--r--src/plugins/coreplugin/vcsmanager.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/coreplugin/vcsmanager.h b/src/plugins/coreplugin/vcsmanager.h
index e9aec641d8..4f25d36f52 100644
--- a/src/plugins/coreplugin/vcsmanager.h
+++ b/src/plugins/coreplugin/vcsmanager.h
@@ -78,11 +78,15 @@ public:
QString repositoryUrl(const QString &directory);
// Shows a confirmation dialog, whether the file should also be deleted
- // from revision control Calls sccDelete on the file. Returns false
+ // from revision control. Calls vcsDelete on the file. Returns false
// if a failure occurs
bool promptToDelete(const QString &fileName);
bool promptToDelete(IVersionControl *versionControl, const QString &fileName);
+ // Shows a confirmation dialog, whether the files in the list should be
+ // added to revision control. Calls vcsAdd for each file.
+ void promptToAdd(const QString &directory, const QStringList &fileNames);
+
signals:
void repositoryChanged(const QString &repository);