bool RegEdit::SaveSocFile(const QString& filename) { soc_desc_normalize(m_cur_socfile.GetSoc()); if(!soc_desc_produce_xml(filename.toStdString(), m_cur_socfile.GetSoc())) { QMessageBox::warning(this, "The description was not saved", "There was an error when saving the file"); return false; } m_soc_tree->clear(); FillSocTree(); SetModified(false, false); return true; }
SocFile::SocFile(const QString& filename) :m_filename(filename) { m_valid = soc_desc_parse_xml(filename.toStdString(), m_soc); soc_desc_normalize(m_soc); }