logic: Fixed error view related issues

* polished color schemes for error view
* fixed error id column not hidden
* fixed error count shown correctly in each view
* moved storage stats logging to application
* fixed indexed flag of errors broken for indexed headers in cdb project
* fixed scrolling to active error when errors where not visible before
* reverted tictactoe files to no errors
This commit is contained in:
Eberhard Graether
2016-10-13 14:21:22 +02:00
parent 5e8133972a
commit 149a305761
34 changed files with 140 additions and 132 deletions
+31 -2
View File
@@ -221,7 +221,8 @@ void Application::handleMessage(MessageEnteredLicense* message)
void Application::handleMessage(MessageFinishedParsing* message)
{
m_project->logStats();
logStorageStats();
if (m_hasGUI)
{
MessageRefresh().refreshUiOnly().dispatch();
@@ -324,6 +325,34 @@ DialogView* Application::getDialogView() const
return m_componentManager->getDialogView();
}
static DialogView dialogView;
static DialogView dialogView(nullptr);
return &dialogView;
}
void Application::logStorageStats() const
{
if (!ApplicationSettings::getInstance()->getLoggingEnabled())
{
return;
}
std::stringstream ss;
StorageStats stats = m_storageCache->getStorageStats();
ss << "\nGraph:\n";
ss << "\t" << stats.nodeCount << " Nodes\n";
ss << "\t" << stats.edgeCount << " Edges\n";
ss << "\nCode:\n";
ss << "\t" << stats.fileCount << " Files\n";
ss << "\t" << stats.fileLOCCount << " Lines of Code\n";
ErrorCountInfo errorCount = m_storageCache->getErrorCount();
ss << "\nErrors:\n";
ss << "\t" << errorCount.total << " Errors\n";
ss << "\t" << errorCount.fatal << " Fatal Errors\n";
LOG_INFO(ss.str());
}