50 #include "WhatsThisGenerator.hh" 58 plugin_name_((_plugin_name !=
"user") ? QString(
"Plugin-")+_plugin_name : _plugin_name)
74 const QString baseHelpURL = QString(
" <a href='qthelp://org.openflipper.")
75 + plugin_name_.toLower()
77 + plugin_name_+QString(
"/")
78 + _site+QString(
"#")+_ref + QString(
"'>");
80 const QString clickText = QString(QObject::tr(
"Click for more information"))+QObject::tr(
"</a>");
81 return (baseHelpURL + clickText);
WhatsThisGenerator(const QString &_plugin_name)
void setWhatsThis(QAction *_action, const QString &_msg, const QString &_ref="", const QString &_site="index.html") const
sets a whatsThis Message plus link to the doc for the given QAction
QString generateLink(const QString &_ref="", const QString &_site="index.html") const
generates a clickable link to the documentation for whatsThis Messages