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 -2
View File
@@ -20,10 +20,10 @@ class Version;
class SqliteStorage
{
public:
SqliteStorage(const std::string& dbFilePath);
SqliteStorage(const FilePath& dbFilePath);
~SqliteStorage();
bool init();
void init();
void setup();
void clear();
@@ -31,6 +31,8 @@ public:
void commitTransaction();
void rollbackTransaction();
FilePath getDbFilePath() const;
Version getVersion() const;
void setVersion(const Version& version);
@@ -129,6 +131,7 @@ private:
ResultType getFirstResult(const std::string& query) const;
mutable CppSQLite3DB m_database;
FilePath m_dbFilePath;
};
template <typename ResultType>