Exemplo n.º 1
0
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;
}
Exemplo n.º 2
0
SocFile::SocFile(const QString& filename)
    :m_filename(filename)
{
    m_valid = soc_desc_parse_xml(filename.toStdString(), m_soc);
    soc_desc_normalize(m_soc);
}