17#include <boost/lexical_cast.hpp>
36 g_log.
error() <<
"Failed to launch help for page " << url.toStdString() <<
"\n";
46 g_log.
error() <<
"Failed to launch help for page " << url.toString().toStdString() <<
"\n";
61 QString baseUrl =
"https://docs.mantidproject.org/algorithms/";
62 QString url = baseUrl + name +
"-v" + QString::number(version) +
".html";
64 g_log.
debug(
"Opening online help page:\n" + url.toStdString());
76 g_log.
error() <<
"Failed to launch help for concept " << name.toStdString() <<
"\n";
86 g_log.
error() <<
"Failed to launch help for fit function " << name <<
"\n";
91 showCustomInterface(QString::fromStdString(name), QString::fromStdString(area), QString::fromStdString(section));
101 QString baseUrl =
"https://docs.mantidproject.org/interfaces/";
102 if (!area.toStdString().empty()) {
103 baseUrl += area +
"/";
105 QString url = baseUrl + name +
".html";
107 g_log.
debug(
"Opening online help page:\n" + url.toStdString());
static void showPage(const std::string &url=std::string())
static void showCustomInterface(const QString &name, const QString &area=QString(), const QString §ion=QString())
static void showConcept(const std::string &name=std::string())
static void showAlgorithm(const std::string &name=std::string(), const int version=-1)
static void showFitFunction(const std::string &name=std::string())
This class is responsible for creating the correct dialog for an algorithm.
MantidHelpInterface * createHelpWindow() const
Function that instantiates the help window.
static bool openUrl(const QUrl &url)
Opens a url in the appropriate web browser.
virtual void showConcept(const std::string &name)
virtual void showCustomInterface(const std::string &name, const std::string &area=std::string(), const std::string §ion=std::string())
virtual void showFitFunction(const std::string &name=std::string())
virtual void showAlgorithm(const std::string &name=std::string(), const int version=-1)
virtual void showPage(const std::string &url=std::string())
The Logger class is in charge of the publishing messages from the framework through various channels.
void debug(const std::string &msg)
Logs at debug level.
void error(const std::string &msg)
Logs at error level.
Kernel::Logger g_log("ExperimentInfo")
static logger object