logic: Added indexing mode to reindex incomplete files (issue #493, #496)

* added radio buttons to start indexing dialog
* don't block task scheduler thread while start indexing dialog is visible
* don't force whole project refresh on settings change
* added help button to start indexing dialog explaining indexing modes
* disable unavailable modes when project needs full refresh
* improved label texts on indexing dialogs
* added --incomplete flag to index command of commandline API
* fixed deletion of window stack elements
This commit is contained in:
Eberhard Graether
2017-12-03 22:30:09 +01:00
parent faf9e7655f
commit f9e4afda77
33 changed files with 748 additions and 529 deletions
@@ -919,30 +919,23 @@ void QtProjectWizzard::createProject()
m_projectSettings->setAllSourceGroupSettings(m_allSourceGroupSettings);
m_projectSettings->save(path);
bool forceRefreshProject = false;
bool settingsChanged = false;
if (m_editing)
{
bool settingsChanged = false;
Application* application = Application::getInstance().get();
if (application->getCurrentProject() != NULL)
{
settingsChanged = !(application->getCurrentProject()->settingsEqualExceptNameAndLocation(*(m_projectSettings.get())));
}
bool appSettingsChanged = !(m_appSettings == *ApplicationSettings::getInstance().get());
if (settingsChanged || appSettingsChanged)
{
forceRefreshProject = true;
}
settingsChanged |= !(m_appSettings == *ApplicationSettings::getInstance().get());
}
else
{
MessageStatus("Created project: " + path.str()).dispatch();
}
MessageLoadProject(path, forceRefreshProject).dispatch();
MessageLoadProject(path, settingsChanged).dispatch();
finishWizzard();
}