logic: Added full refresh checkbox to indexing start dialog

* Checkbox allows for switching between refresh and full refresh
* Renamed menu option Force Refresh to Full Refresh
* Checkbox is not visible when project needs to be fully refreshed
This commit is contained in:
Eberhard Graether
2016-11-30 16:32:34 +01:00
parent 699a8a2711
commit 457833fb2a
16 changed files with 203 additions and 150 deletions
+9 -5
View File
@@ -67,19 +67,23 @@ void QtDialogView::hideProgressDialog()
);
}
bool QtDialogView::startIndexingDialog(size_t cleanFileCount, size_t indexFileCount)
DialogView::IndexMode QtDialogView::startIndexingDialog(
size_t cleanFileCount, size_t indexFileCount, size_t totalFileCount, bool forceRefresh, bool needsFullRefresh)
{
bool result = false;
IndexMode result = INDEX_ABORT;
m_resultReady = false;
m_onQtThread(
[=, &result]()
{
QtIndexingDialog* window = createWindow<QtIndexingDialog>();
window->setupStart(cleanFileCount, indexFileCount,
[&](bool start)
window->setupStart(cleanFileCount, indexFileCount, totalFileCount, forceRefresh, needsFullRefresh,
[&](bool start, bool fullRefresh)
{
result = start;
if (start)
{
result = (!fullRefresh && !needsFullRefresh ? INDEX_REFRESH : INDEX_FULL);
}
m_resultReady = true;
setUIBlocked(false);