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
+4 -3
View File
@@ -17,9 +17,10 @@ void DialogView::hideProgressDialog()
{
}
bool DialogView::startIndexingDialog(size_t cleanFileCount, size_t indexFileCount)
{
return false;
DialogView::IndexMode DialogView::startIndexingDialog(
size_t cleanFileCount, size_t indexFileCount, size_t totalFileCount, bool forceRefresh, bool needsFullRefresh
){
return INDEX_ABORT;
}
void DialogView::updateIndexingDialog(size_t fileCount, size_t totalFileCount, std::string sourcePath)
+9 -1
View File
@@ -11,13 +11,21 @@ class StorageAccess;
class DialogView
{
public:
enum IndexMode
{
INDEX_ABORT,
INDEX_REFRESH,
INDEX_FULL
};
DialogView(StorageAccess* storageAccess);
virtual ~DialogView();
virtual void showProgressDialog(const std::string& title, const std::string& message);
virtual void hideProgressDialog();
virtual bool startIndexingDialog(size_t cleanFileCount, size_t indexFileCount);
virtual IndexMode startIndexingDialog(
size_t cleanFileCount, size_t indexFileCount, size_t totalFileCount, bool forceRefresh, bool needsFullRefresh);
virtual void updateIndexingDialog(size_t fileCount, size_t totalFileCount, std::string sourcePath);
virtual void finishedIndexingDialog(size_t fileCount, size_t totalFileCount, float time, ErrorCountInfo errorInfo);