logic: fixes all over the place

* fixed refreshing to send another ui refresh message after parsing
* keepContent field for MessageBase so that views won't update
* fixed searchmatching to only weigh uppercase letters next to lowercase ones
* fixed file not jumping back to snippets when activating edge
* clicking into empty space deselects active edge
* clear file manager files on every fetch
* added db transaction for file clearing
* use zooming instead of changing font size
This commit is contained in:
Eberhard Graether
2015-10-02 17:07:03 +02:00
parent a855e14ebf
commit acfbe510fb
26 changed files with 253 additions and 90 deletions
+2 -25
View File
@@ -53,7 +53,6 @@ void Application::loadSettings()
}
Application::Application()
: m_isInitialParse(true)
{
TaskScheduler::getInstance()->startSchedulerLoopThreaded();
MessageQueue::getInstance()->setSendMessagesAsTasks(true);
@@ -106,36 +105,14 @@ void Application::handleMessage(MessageFinishedParsing* message)
{
m_project->logStats();
if (!m_isInitialParse || message->errorCount > 0)
if (message->errorCount == 0)
{
return;
}
m_isInitialParse = false;
Id nodeId = m_storageCache->getIdForNodeWithNameHierarchy(NameHierarchy("main"));
if (!nodeId)
{
nodeId = m_storageCache->getIdForFirstNode();
}
if (nodeId)
{
MessageActivateNodes message;
message.addNode(
nodeId,
m_storageCache->getNodeTypeForNodeWithId(nodeId),
m_storageCache->getNameHierarchyForNodeWithId(nodeId)
);
message.isFromSystem = true;
message.dispatch();
MessageRefresh().refreshUiOnly().dispatch();
}
}
void Application::handleMessage(MessageLoadProject* message)
{
m_isInitialParse = true;
loadProject(message->projectSettingsFilePath);
}