option: automatically open mlog-file after fit; implementation + cosmetics

This commit is contained in:
nemu
2009-03-13 20:34:49 +00:00
parent ec42d3c247
commit 3c04fa2675
18 changed files with 399 additions and 278 deletions
+9
View File
@@ -82,6 +82,8 @@ bool PAdminXMLParser::startElement( const QString&, const QString&,
fKeyWord = eMsrDefaultFilePath;
} else if (qName == "show_mlog") {
fKeyWord = eShowMlog;
} else if (qName == "open_mlog_after_fit") {
fKeyWord = eOpenMlogAfterFit;
}
return true;
@@ -131,6 +133,12 @@ bool PAdminXMLParser::characters(const QString& str)
else
fAdmin->setShowMlog(true);
break;
case eOpenMlogAfterFit:
if (str == "n")
fAdmin->setOpenMlogAfterFit(false);
else
fAdmin->setOpenMlogAfterFit(true);
break;
default:
break;
}
@@ -165,6 +173,7 @@ PAdmin::PAdmin()
fFileFormat = QString("");
fShowMlog = true;
fOpenMlogAfterFit = true;
// XML Parser part
QString path = getenv("MUSRFITPATH");