logic: Fixed log warnings of color scheme and edge

* fixed warnings for overriden node and edge colors
* fixed warnings for edges connecting the wrong node types
* removed tool tip from color scheme
* changed names in project setup screen
This commit is contained in:
Eberhard Graether
2015-12-16 11:33:59 +01:00
parent a44af51122
commit f06bb0e031
18 changed files with 60 additions and 39 deletions
+13 -2
View File
@@ -34,7 +34,10 @@ bool ConfigManager::getValue(const std::string& key, std::string& value) const
}
else
{
LOG_WARNING("value " + key + " is not present in config.");
if (m_warnOnEmptyKey)
{
LOG_WARNING("value " + key + " is not present in config.");
}
return false;
}
}
@@ -89,7 +92,10 @@ bool ConfigManager::getValues(const std::string& key, std::vector<std::string>&
}
else
{
LOG_WARNING("value " + key + " is not present in config.");
if (m_warnOnEmptyKey)
{
LOG_WARNING("value " + key + " is not present in config.");
}
return false;
}
}
@@ -236,6 +242,11 @@ void ConfigManager::save(const std::string filepath)
createXmlDocument(true, filepath, output);
}
void ConfigManager::setWarnOnEmptyKey(bool warnOnEmptyKey) const
{
m_warnOnEmptyKey = warnOnEmptyKey;
}
ConfigManager::ConfigManager()
{
}
+3
View File
@@ -41,6 +41,8 @@ public:
void save(const std::string filepath);
std::string toString();
void setWarnOnEmptyKey(bool warnOnEmptyKey) const;
private:
ConfigManager();
ConfigManager(const ConfigManager&);
@@ -50,6 +52,7 @@ private:
bool createXmlDocument(bool saveAsFile, std::string filepath, std::string& output);
std::multimap<std::string, std::string> m_values;
mutable bool m_warnOnEmptyKey;
};
#endif // CONFIG_MANAGER_H