DocumentManager: Refactor saveModified methods
authorTobias Hunger <tobias.hunger@digia.com>
Tue, 21 Jan 2014 12:25:19 +0000 (13:25 +0100)
committerTobias Hunger <tobias.hunger@digia.com>
Thu, 23 Jan 2014 12:50:29 +0000 (13:50 +0100)
commit88a4421a842c8db671c9eba56cfbef29ea0cecc8
tree0e6e46fc78e69c64b4ad173f0e8047dd6179f43a
parent063075ecad4ed45a6749d0c9539196d8756f65b8
DocumentManager: Refactor saveModified methods

Introduce methods to save a document/list of documents/all documents,
both silently and with a dialog to the DocumentManager.

All of these return a bool that signifies whether the save was
successful or not.

Detailed information on which files failed to load or whether the
save was canceled by the user are still available as optional
in/out parameters.

Change-Id: Id17798302f2a8ba6b85a07c1f0b91f03b20da03f
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
src/plugins/coreplugin/documentmanager.cpp
src/plugins/coreplugin/documentmanager.h
src/plugins/coreplugin/editormanager/editormanager.cpp
src/plugins/coreplugin/externaltool.cpp
src/plugins/coreplugin/mainwindow.cpp
src/plugins/fakevim/fakevimplugin.cpp
src/plugins/git/gitplugin.cpp
src/plugins/projectexplorer/projectexplorer.cpp
src/plugins/qmakeprojectmanager/qmakenodes.cpp