Commit 96a9daff authored by Matthias Möller's avatar Matthias Möller

fixed tabs

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@14063 383ad7c9-94d9-4d36-a494-682f7c89f535
parent ce0e66d0
...@@ -5,29 +5,29 @@ ...@@ -5,29 +5,29 @@
* @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)
*/ */
WhatsThisGenerator::WhatsThisGenerator(const QString &_plugin_name) : WhatsThisGenerator::WhatsThisGenerator(const QString &_plugin_name) :
plugin_name_(_plugin_name) plugin_name_(_plugin_name)
{ {
} }
/** \brief generates a clickable link to the documentation for whatsThis Messages /** \brief generates a clickable link to the documentation for whatsThis Messages
* @param _ref gives the section in the documentation for the action. The help-browser will jump into the section. * @param _ref gives the section in the documentation for the action. The help-browser will jump into the section.
* An example: _jump = "cube" in PrimitiveGenerator refs to the section "cube" in the Documentation and the help Browser. * An example: _jump = "cube" in PrimitiveGenerator refs to the section "cube" in the Documentation and the help Browser.
* *
* @param _site gives the documentation site (html-site) which you want to open. * @param _site gives the documentation site (html-site) which you want to open.
* Default is the site "index.html". * Default is the site "index.html".
* You need this parameter if you have more than one site in your plugin documentation and want to refer on one of this. * You need this parameter if you have more than one site in your plugin documentation and want to refer on one of this.
*/ */
QString WhatsThisGenerator::generateLink(const QString &_ref /*= ""*/, const QString &_site /*= "index.html"*/) const 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-")
+ plugin_name_.toLower() + plugin_name_.toLower()
+ QString("/Plugin-") + QString("/Plugin-")
+ plugin_name_+QString("/") + plugin_name_+QString("/")
+ _site+QString("#")+_ref + QString("'>"); + _site+QString("#")+_ref + QString("'>");
const QString clickText = QString(QObject::tr("Click for more information"))+QObject::tr("</a>"); const QString clickText = QString(QObject::tr("Click for more information"))+QObject::tr("</a>");
return (baseHelpURL + clickText); return (baseHelpURL + clickText);
} }
/** \brief sets a whatsThis Message plus link to the doc for the given QAction /** \brief sets a whatsThis Message plus link to the doc for the given QAction
...@@ -35,11 +35,11 @@ QString WhatsThisGenerator::generateLink(const QString &_ref /*= ""*/, const QSt ...@@ -35,11 +35,11 @@ QString WhatsThisGenerator::generateLink(const QString &_ref /*= ""*/, const QSt
* @param _msg help message for the user. This is the default Whatsthis Text which you set with QAction::setWhatsThis * @param _msg help message for the user. This is the default Whatsthis Text which you set with QAction::setWhatsThis
* *
* @param _ref gives the section in the documentation for the action. The help-browser will jump into the section. * @param _ref gives the section in the documentation for the action. The help-browser will jump into the section.
* An example: _jump = "cube" in PrimitiveGenerator refs to the section "cube" in the Documentation and the help Browser. * An example: _jump = "cube" in PrimitiveGenerator refs to the section "cube" in the Documentation and the help Browser.
* *
* @param _site gives the documentation site (html-site) which you want to open. * @param _site gives the documentation site (html-site) which you want to open.
* Default is the site "index.html". * Default is the site "index.html".
* You need this parameter if you have more than one site in your plugin documentation and want to refer on one of this. * You need this parameter if you have more than one site in your plugin documentation and want to refer on one of this.
*/ */
void WhatsThisGenerator::setWhatsThis(QAction* _action, const QString &_msg, const QString &_ref /*= ""*/,const QString &_site /*= "index.html"*/) const void WhatsThisGenerator::setWhatsThis(QAction* _action, const QString &_msg, const QString &_ref /*= ""*/,const QString &_site /*= "index.html"*/) const
{ {
......
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