Commit ddfa0e75 authored by Renne Thomas's avatar Renne Thomas
Browse files

Add help to xtandem detail view

parent f2b0c45e
......@@ -2932,7 +2932,9 @@
</item>
</layout>
</widget>
<resources/>
<resources>
<include location="../../xtpcpp.qrc"/>
</resources>
<connections>
<connection>
<sender>cancel_button</sender>
......
......@@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>724</width>
<width>1175</width>
<height>791</height>
</rect>
</property>
......
......@@ -61,6 +61,8 @@
</item>
</layout>
</widget>
<resources/>
<resources>
<include location="../../../xtpcpp.qrc"/>
</resources>
<connections/>
</ui>
......@@ -61,6 +61,303 @@ XtandemParamWidget::setAutomaticXTandemParameters(
qDebug() << "end ";
}
void
XtandemParamWidget::doHelp()
{
QObject *senderObj = sender();
QString senderObjName = senderObj->objectName();
qDebug() << "XtandemParamWidget::doHelp begin " << senderObjName;
QFile html_doc;
if(senderObjName == "spmmeu_push_button")
{
// spmmeu.html
html_doc.setFileName(":/tandem/resources/html_doc/spmmeu.html");
}
if(senderObjName == "smpc_push_button")
{
// spmmeu.html
html_doc.setFileName(":/tandem/resources/html_doc/smpc.html");
}
if(senderObjName == "spmmem_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/spmmem.html");
}
if(senderObjName == "spmmep_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/spmmep.html");
}
if(senderObjName == "spmmie_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/spmmie.html");
}
if(senderObjName == "sfmt_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/sfmt.html");
}
if(senderObjName == "sfmmeu_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/sfmmeu.html");
}
if(senderObjName == "sfmme_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/sfmme.html");
}
if(senderObjName == "sunlw_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/sunlw.html");
}
if(senderObjName == "snlm_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/snlm.html");
}
if(senderObjName == "snlw_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/snlw.html");
}
if(senderObjName == "sdr_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/sdr.html");
}
if(senderObjName == "stp_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/stp.html");
}
if(senderObjName == "smp_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/smp.html");
}
if(senderObjName == "smfmz_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/smfmz.html");
}
if(senderObjName == "smpmh_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/smpmh.html");
}
if(senderObjName == "spsbs_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/spsbs.html");
}
if(senderObjName == "suca_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/suca.html");
}
if(senderObjName == "st_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/st.html");
}
if(senderObjName == "pcs_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/pcs.html");
}
if(senderObjName == "pcsemi_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/pcsemi.html");
}
if(senderObjName == "pcctmc_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/pcctmc.html");
}
if(senderObjName == "pcntmc_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/pcntmc.html");
}
if(senderObjName == "pctrmm_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/pctrmm.html");
}
if(senderObjName == "pntrmm_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/pntrmm.html");
}
if(senderObjName == "pqa_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/pqa.html");
}
if(senderObjName == "pqp_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/pqp.html");
}
if(senderObjName == "pstpb_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/pstpb.html");
}
if(senderObjName == "pmrmf_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/pmrmf.html");
}
if((senderObjName == "rmm_push_button") ||
(senderObjName == "rmm1_push_button") ||
(senderObjName == "rmm2_push_button"))
{
html_doc.setFileName(":/tandem/resources/html_doc/rmm.html");
}
if(senderObjName == "rpmm_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/rpmm.html");
}
if(senderObjName == "rpmmotif_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/rpmmotif.html");
}
if(senderObjName == "smic_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/smic.html");
}
if(senderObjName == "smmcs_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/smmcs.html");
}
if(senderObjName == "scp_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/scp.html");
}
if(senderObjName == "sir_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/sir.html");
}
if(senderObjName == "syi_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/syi.html");
}
if(senderObjName == "sbi_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/sbi.html");
}
if(senderObjName == "sci_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/sci.html");
}
if(senderObjName == "szi_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/szi.html");
}
if(senderObjName == "sai_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/sai.html");
}
if(senderObjName == "sxi_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/sxi.html");
}
if(senderObjName == "refine_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/refine.html");
}
if(senderObjName == "rmvev_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/rmvev.html");
}
if(senderObjName == "refpntm_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/refpntm.html");
}
if(senderObjName == "refpctm_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/refpctm.html");
}
if((senderObjName == "refmm_push_button") ||
(senderObjName == "refmm1_push_button") ||
(senderObjName == "refmm2_push_button"))
{
html_doc.setFileName(":/tandem/resources/html_doc/refmm.html");
}
if((senderObjName == "refpmm_push_button") ||
(senderObjName == "refpmm1_push_button") ||
(senderObjName == "refpmm2_push_button"))
{
html_doc.setFileName(":/tandem/resources/html_doc/refpmm.html");
}
if((senderObjName == "refpmmotif_push_button") ||
(senderObjName == "refpmmotif1_push_button") ||
(senderObjName == "refpmmotif2_push_button"))
{
html_doc.setFileName(":/tandem/resources/html_doc/refpmmotif.html");
}
if(senderObjName == "rupmffr_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/rupmffr.html");
}
if(senderObjName == "rcsemi_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/rcsemi.html");
}
if(senderObjName == "ruc_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/ruc.html");
}
if(senderObjName == "rss_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/rss.html");
}
if(senderObjName == "rpm_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/rpm.html");
}
if((senderObjName == "omvev_push_button") ||
(senderObjName == "omvpev_push_button"))
{
html_doc.setFileName(":/tandem/resources/html_doc/omvev.html");
}
if(senderObjName == "oresu_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/oresu.html");
}
if(senderObjName == "osrb_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/osrb.html");
}
if(senderObjName == "oprot_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/oprot.html");
}
if(senderObjName == "oseq_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/oseq.html");
}
if(senderObjName == "oosc_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/oosc.html");
}
if(senderObjName == "ospec_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/ospec.html");
}
if(senderObjName == "opara_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/opara.html");
}
if(senderObjName == "ohist_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/ohist.html");
}
if(senderObjName == "ohcw_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/ohcw.html");
}
if(senderObjName == "oph_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/oph.html");
}
if(senderObjName == "oxp_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/oxp.html");
}
if(html_doc.open(QFile::ReadOnly | QFile::Text))
{
QTextStream in(&html_doc);
ui->textEdit->setHtml(in.readAll());
qDebug() << "EditTandemPresetDialog::doHelp doc " << in.readAll();
}
else
{
qDebug() << "EditTandemPresetDialog::doHelp doc not found";
}
qDebug() << "EditTandemPresetDialog::doHelp end " << senderObjName;
}
void
XtandemParamWidget::setSpectrumParameters(TandemParameters xtandem_parameters)
{
......
......@@ -43,8 +43,8 @@ class XtandemParamWidget : public QWidget
void setAutomaticXTandemParameters(TandemParameters xtandem_parameters);
private slots:
public slots:
void doHelp();
private:
void setSpectrumParameters(TandemParameters xtandem_parameters);
......
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg width="40mm" height="40mm" version="1.1" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<metadata>
<rdf:RDF>
<cc:Work rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
<dc:title/>
</cc:Work>
</rdf:RDF>
</metadata>
<g transform="translate(-49.307 -82.178)">
<circle cx="69.307" cy="102.18" r="20" fill="#4eb5e9" stroke-width=".26458"/>
<g font-weight="bold" letter-spacing="0px" word-spacing="0px">
<flowRoot transform="matrix(.26458 0 0 .26458 1.6036 -7.0826)" fill="#000000" font-family="'times new roman'" font-size="40px" style="line-height:1.25" xml:space="preserve"><flowRegion><rect x="210.62" y="316.42" width="214.15" height="265.17"/></flowRegion><flowPara font-size="192px"/><flowPara font-size="192px">?</flowPara><flowPara font-size="192px"/></flowRoot>
<flowRoot transform="scale(.26458)" fill="#000000" font-family="comic" font-size="40px" style="line-height:1.25" xml:space="preserve"><flowRegion font-family="comic" font-weight="bold"><rect x="269.21" y="306.32" width="28.789" height="47.477"/></flowRegion><flowPara/></flowRoot>
<text transform="scale(1.0203 .98012)" x="57.004608" y="120.28086" fill="#ffffff" font-family="'TeX Gyre Schola'" font-size="44.696px" stroke-width=".33522" style="line-height:1.25" xml:space="preserve"><tspan x="57.004608" y="120.28086" stroke-width=".33522"><tspan x="57.004608" y="120.28086" stroke-width=".33522">?</tspan></tspan></text>
</g>
</g>
</svg>
......@@ -92,6 +92,9 @@
<qresource prefix="/xtpcpp_xpip">
<file>resources/xtandempipeline_xpip.svg</file>
</qresource>
<qresource prefix="/icon_info">
<file>resources/iconInfo.svg</file>
</qresource>
<qresource prefix="/labeling">
<file>resources/catalog_label.xml</file>
</qresource>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment