forked from qt-creator/qt-creator
		
	Implement string based search & replace in multiple files.
This uses the same UI as "Rename Symbol". Moves the actual rename implementation to a static method in BaseFileFind and uses it for rename symbol and search & replace. Moves the signal notification for the code model from VCSManager to the more general FileManager. Note that as for rename symbol, there's no undo yet. Task-number: QTCREATORBUG-73
This commit is contained in:
		@@ -48,6 +48,7 @@
 | 
			
		||||
#include <coreplugin/editormanager/editormanager.h>
 | 
			
		||||
#include <coreplugin/progressmanager/progressmanager.h>
 | 
			
		||||
#include <coreplugin/vcsmanager.h>
 | 
			
		||||
#include <coreplugin/filemanager.h>
 | 
			
		||||
#include <cppeditor/cppeditorconstants.h>
 | 
			
		||||
 | 
			
		||||
#include <QtCore/QtConcurrentRun>
 | 
			
		||||
@@ -99,10 +100,11 @@ bool CppToolsPlugin::initialize(const QStringList &arguments, QString *error)
 | 
			
		||||
    // Objects
 | 
			
		||||
    m_modelManager = new CppModelManager(this);
 | 
			
		||||
    Core::VCSManager *vcsManager = core->vcsManager();
 | 
			
		||||
    Core::FileManager *fileManager = core->fileManager();
 | 
			
		||||
    connect(vcsManager, SIGNAL(repositoryChanged(QString)),
 | 
			
		||||
            m_modelManager, SLOT(updateModifiedSourceFiles()));
 | 
			
		||||
    connect(vcsManager, SIGNAL(filesChanged(QStringList)),
 | 
			
		||||
            m_modelManager, SLOT(updateModifiedSourceFiles()));
 | 
			
		||||
    connect(fileManager, SIGNAL(filesChangedInternally(QStringList)),
 | 
			
		||||
            m_modelManager, SLOT(updateSourceFiles(QStringList)));
 | 
			
		||||
    addAutoReleasedObject(m_modelManager);
 | 
			
		||||
 | 
			
		||||
    m_completion = new CppCodeCompletion(m_modelManager);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user