StelScriptMgr.cpp   StelScriptMgr.cpp 
skipping to change at line 238 skipping to change at line 238
QString author = getAuthor(s).trimmed(); QString author = getAuthor(s).trimmed();
if (!author.isEmpty()) if (!author.isEmpty())
{ {
html += "<strong>" + q_("Author") + "</strong>: " + author + "<br />"; html += "<strong>" + q_("Author") + "</strong>: " + author + "<br />";
} }
QString license = getLicense(s).trimmed(); QString license = getLicense(s).trimmed();
if (!license.isEmpty()) if (!license.isEmpty())
{ {
html += "<strong>" + q_("License") + "</strong>: " + license + "<br />"; html += "<strong>" + q_("License") + "</strong>: " + license + "<br />";
} }
QString version = getVersion(s).trimmed();
if (!version.isEmpty())
{
html += "<strong>" + q_("Version") + "</strong>: " + version
+ "<br />";
}
QString shortcut = getShortcut(s).trimmed(); QString shortcut = getShortcut(s).trimmed();
if (!shortcut.isEmpty()) if (!shortcut.isEmpty())
{ {
html += "<strong>" + q_("Shortcut") + "</strong>: " + shortc ut; html += "<strong>" + q_("Shortcut") + "</strong>: " + shortc ut;
} }
html += "</p>"; html += "</p>";
if (generateDocumentTags) if (generateDocumentTags)
html += "</body></html>"; html += "</body></html>";
skipping to change at line 266 skipping to change at line 271
QString StelScriptMgr::getAuthor(const QString& s) const QString StelScriptMgr::getAuthor(const QString& s) const
{ {
return getHeaderSingleLineCommentText(s, "Author"); return getHeaderSingleLineCommentText(s, "Author");
} }
QString StelScriptMgr::getLicense(const QString& s) const QString StelScriptMgr::getLicense(const QString& s) const
{ {
return getHeaderSingleLineCommentText(s, "License", ""); return getHeaderSingleLineCommentText(s, "License", "");
} }
QString StelScriptMgr::getVersion(const QString& s) const
{
return getHeaderSingleLineCommentText(s, "Version", "");
}
QString StelScriptMgr::getShortcut(const QString& s) const QString StelScriptMgr::getShortcut(const QString& s) const
{ {
return getHeaderSingleLineCommentText(s, "Shortcut", ""); return getHeaderSingleLineCommentText(s, "Shortcut", "");
} }
QString StelScriptMgr::getDescription(const QString& s) const QString StelScriptMgr::getDescription(const QString& s) const
{ {
QFile file(StelFileMgr::findFile("scripts/" + s, StelFileMgr::File)) ; QFile file(StelFileMgr::findFile("scripts/" + s, StelFileMgr::File)) ;
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
{ {
 End of changes. 2 change blocks. 
0 lines changed or deleted 11 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/