/* properties.cc This file is part of the Project::OSiRiON world editor and is distributed under the terms and conditions of the GNU General Public License version 2 */ #include "properties.h" namespace editor { Properties::Properties() { } Properties::~Properties() { } void Properties::add_value(const QString &key, const QString &value, const QString &comment) { if (comment.size()) properties_values += comment; properties_values += key; properties_values += '='; properties_values += value; properties_values += '\n'; } void Properties::add_info(const QString &text) { properties_info += text; properties_info += '\n'; } void Properties::save_comment(QTextStream &textstream, const QString &attribute) { QString text = comment(attribute); if (text.size()) { textstream << text; } } } // namespace editor