added help url for msr2data

This commit is contained in:
nemu
2010-05-12 07:51:46 +00:00
parent 16970b6772
commit 1c1b08ace1
3 changed files with 8 additions and 2 deletions

View File

@ -111,6 +111,8 @@ bool PAdminXMLParser::startElement( const QString&, const QString&,
fKeyWord = eHelpPlot; fKeyWord = eHelpPlot;
} else if (qName == "musr_web_statistic") { } else if (qName == "musr_web_statistic") {
fKeyWord = eHelpStatistic; fKeyWord = eHelpStatistic;
} else if (qName == "musr_web_msr2data") {
fKeyWord = eHelpMsr2Data;
} else if (qName == "func_pixmap_path") { } else if (qName == "func_pixmap_path") {
fKeyWord = eTheoFuncPixmapPath; fKeyWord = eTheoFuncPixmapPath;
} else if (qName == "func") { } else if (qName == "func") {
@ -249,6 +251,9 @@ bool PAdminXMLParser::characters(const QString& str)
case eHelpStatistic: case eHelpStatistic:
fAdmin->setHelpUrl("statistic", str); fAdmin->setHelpUrl("statistic", str);
break; break;
case eHelpMsr2Data:
fAdmin->setHelpUrl("msr2data", str);
break;
case eTheoFuncPixmapPath: case eTheoFuncPixmapPath:
fAdmin->setTheoFuncPixmapPath(QString(str.toLatin1()).trimmed()); fAdmin->setTheoFuncPixmapPath(QString(str.toLatin1()).trimmed());
break; break;
@ -437,7 +442,7 @@ PTheory* PAdmin::getTheoryItem(const unsigned int idx)
//-------------------------------------------------------------------------- //--------------------------------------------------------------------------
/** /**
* <p>set the help url, addressed via a tag. At the moment the following tags should be present: * <p>set the help url, addressed via a tag. At the moment the following tags should be present:
* main, title, parameters, theory, functions, run, command, fourier, plot, statistic * main, title, parameters, theory, functions, run, command, fourier, plot, statistic, msr2data
* *
* \param tag to address the help url * \param tag to address the help url
* \param url help url corresponding to the tag. * \param url help url corresponding to the tag.

View File

@ -72,7 +72,7 @@ class PAdminXMLParser : public QXmlDefaultHandler
eBeamline, eInstitute, eFileFormat, eLifetimeCorrection, eMsrDefaultFilePath, eBeamline, eInstitute, eFileFormat, eLifetimeCorrection, eMsrDefaultFilePath,
eTheoFuncPixmapPath, eFunc, eFuncName, eFuncComment, eFuncLabel, eTheoFuncPixmapPath, eFunc, eFuncName, eFuncComment, eFuncLabel,
eFuncPixmap, eFuncParams, eHelpMain, eHelpTitle, eHelpParameters, eHelpTheory, eHelpFunctions, eFuncPixmap, eFuncParams, eHelpMain, eHelpTitle, eHelpParameters, eHelpTheory, eHelpFunctions,
eHelpRun, eHelpCommand, eHelpFourier, eHelpPlot, eHelpStatistic}; eHelpRun, eHelpCommand, eHelpFourier, eHelpPlot, eHelpStatistic, eHelpMsr2Data};
bool startDocument(); bool startDocument();
bool startElement( const QString&, const QString&, const QString& , bool startElement( const QString&, const QString&, const QString& ,

View File

@ -22,6 +22,7 @@
<musr_web_fourier>https://wiki.intranet.psi.ch/MUSR/MusrFit#4_7_The_FOURIER_Block</musr_web_fourier> <musr_web_fourier>https://wiki.intranet.psi.ch/MUSR/MusrFit#4_7_The_FOURIER_Block</musr_web_fourier>
<musr_web_plot>https://wiki.intranet.psi.ch/MUSR/MusrFit#4_8_The_PLOT_Block</musr_web_plot> <musr_web_plot>https://wiki.intranet.psi.ch/MUSR/MusrFit#4_8_The_PLOT_Block</musr_web_plot>
<musr_web_statistic>https://wiki.intranet.psi.ch/MUSR/MusrFit#4_9_The_STATISTIC_Block</musr_web_statistic> <musr_web_statistic>https://wiki.intranet.psi.ch/MUSR/MusrFit#4_9_The_STATISTIC_Block</musr_web_statistic>
<musr_web_msr2data>https://intranet.psi.ch/MUSR/Msr2Data</musr_web_msr2data>
</help_section> </help_section>
<font_settings> <font_settings>
<font_name>Courier</font_name> <font_name>Courier</font_name>