Commit 6e11c849 authored by Matthias Möller's avatar Matthias Möller

support for the core user documentation

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@14385 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 06c9f03f
......@@ -2,10 +2,11 @@
/** Constructor for the whatsThisGenerator initializing the plugin name.
*
* @param _plugin_name the name of the plugin which is used \note use only the name and NOT the prefix Plugin- (e.g. SkeletonEditing for Plugin-SkeletonEditing)
* @param _plugin_name the name of the plugin which is used \note use only the name and NOT the prefix Plugin- (e.g. SkeletonEditing for Plugin-SkeletonEditing).
* If you want to reference in the core user plugin, then _plugin = "user"
*/
WhatsThisGenerator::WhatsThisGenerator(const QString &_plugin_name) :
plugin_name_(_plugin_name)
plugin_name_((_plugin_name != "user") ? QString("Plugin-")+_plugin_name : _plugin_name)
{
}
......@@ -21,9 +22,9 @@ plugin_name_(_plugin_name)
*/
QString WhatsThisGenerator::generateLink(const QString &_ref /*= ""*/, const QString &_site /*= "index.html"*/) const
{
const QString baseHelpURL = QString(" <a href='qthelp://org.openflipper.plugin-")
const QString baseHelpURL = QString(" <a href='qthelp://org.openflipper.")
+ plugin_name_.toLower()
+ QString("/Plugin-")
+ QString("/")
+ plugin_name_+QString("/")
+ _site+QString("#")+_ref + QString("'>");
......
Markdown is supported
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