logic: Ask user before reparsing the project

While the message box with the question is visible the ui is blocked. A message appears when:
* when project was edited
* when preferences were edited
* when project file has more recent changes than db
* when db has a different version than Coati
This commit is contained in:
Eberhard Graether
2016-04-24 22:47:39 +02:00
parent a6e57a6564
commit 6be207a68a
16 changed files with 342 additions and 70 deletions
+5
View File
@@ -7,3 +7,8 @@ MainView::MainView()
MainView::~MainView()
{
}
int MainView::confirm(const std::string& message)
{
return confirm(message, std::vector<std::string>());
}
+4
View File
@@ -2,6 +2,7 @@
#define MAIN_VIEW_H
#include <string>
#include <vector>
#include "component/view/ViewLayout.h"
@@ -16,6 +17,9 @@ public:
virtual void setTitle(const std::string& title) = 0;
virtual void activateWindow() = 0;
virtual void updateRecentProjectMenu() = 0;
virtual int confirm(const std::string& message);
virtual int confirm(const std::string& message, const std::vector<std::string>& options) = 0;
};
#endif // MAIN_VIEW_H