Skip to content
Snippets Groups Projects
Commit e2831a64 authored by Raquel Alvarez Banos's avatar Raquel Alvarez Banos
Browse files

Re #9495 Link help button to PeakFitting help page

parent df34f367
No related merge requests found
......@@ -59,6 +59,7 @@ namespace CustomInterfaces
void setParameter(const QString& funcIndex, const QString& paramName, double value);
void setPeakPickerEnabled(bool enabled);
void setPeakPicker(const IPeakFunction_const_sptr& peak);
void help();
// -- End of IALCPeakFitting interface ---------------------------------------------------------
......
......@@ -86,6 +86,9 @@ namespace CustomInterfaces
/// @param peak :: A new peak to represent
virtual void setPeakPicker(const IPeakFunction_const_sptr& peak) = 0;
/// Opens the Mantid Wiki web page
virtual void help() = 0;
signals:
/// Request to perform peak fitting
void fitRequested();
......
#include "MantidQtCustomInterfaces/Muon/ALCPeakFittingView.h"
#include <QDesktopServices>
#include <QUrl>
#include <qwt_symbol.h>
namespace MantidQt
......@@ -54,6 +56,8 @@ void ALCPeakFittingView::initialize()
connect(m_ui.peaks, SIGNAL(currentFunctionChanged()), SIGNAL(currentFunctionChanged()));
connect(m_ui.peaks, SIGNAL(parameterChanged(QString,QString)),
SIGNAL(parameterChanged(QString,QString)));
connect(m_ui.help, SIGNAL(clicked()), this, SLOT(help()));
}
void ALCPeakFittingView::setDataCurve(const QwtData& data)
......@@ -100,6 +104,12 @@ void ALCPeakFittingView::setPeakPicker(const IPeakFunction_const_sptr& peak)
m_ui.plot->replot();
}
void ALCPeakFittingView::help()
{
QDesktopServices::openUrl(QUrl(QString("http://www.mantidproject.org/") +
"Muon_ALC:_Peak_Fitting"));
}
} // namespace CustomInterfaces
} // namespace Mantid
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment