Commit c31f7ccb authored by Matthias Möller's avatar Matthias Möller

add whatsThis link for toolbar buttons

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@14395 383ad7c9-94d9-4d36-a494-682f7c89f535
parent a4fc9edf
......@@ -300,10 +300,15 @@ void MovePlugin::initializePlugin()
tool_->moveToOrigin->setIcon( QIcon(OpenFlipper::Options::iconDirStr() + OpenFlipper::Options::dirSeparator() + "moveToCOG.png") );
tool_->moveToOrigin->setIconSize(QSize(48,48));
WhatsThisGenerator whatsThis("Move");
tool_->moveToOrigin->setWhatsThis(QString(tr("Moves the selected objects such that their center of gravity is at the origin."))
+whatsThis.generateLink("move_cog"));
connect(tool_->unifyBoundingBoxDiagonal,SIGNAL(clicked() ),this,SLOT(slotUnifyBoundingBoxDiagonal()));
tool_->unifyBoundingBoxDiagonal->setIcon( QIcon(OpenFlipper::Options::iconDirStr() + OpenFlipper::Options::dirSeparator() + "unifyBB.png") );
tool_->unifyBoundingBoxDiagonal->setIconSize(QSize(48,48));
tool_->unifyBoundingBoxDiagonal->setWhatsThis(QString(tr("Rescale objects such that its bounding box diagonal has length one."))
+whatsThis.generateLink("unifyBB"));
lastActiveManipulator_ = -1;
......@@ -501,7 +506,7 @@ void MovePlugin::slotPickModeChanged( const std::string& _mode)
PluginFunctions::setViewObjectMarker (PluginFunctions::defaultViewObjectMarker ());
//change the selection mode in propety widget
for (std::size_t i = 0; i < propsWindows_.size(); ++i)
for (int i = 0; i < propsWindows_.size(); ++i)
setPickModeProps(propsWindows_[i], _mode);
}
......
......@@ -54,8 +54,12 @@
<string>Move COG of selected objects to origin</string>
</property>
<property name="whatsThis">
<string>Moves the selected objects such that
their center of gravity is at the origin.</string>
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'DejaVu Sans'; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Moves the selected objects such that&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;their center of gravity is at the origin. &lt;a href=&quot;index.html#move_cog&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0057ae;&quot;&gt;Click fore more information&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>Move COG to origin</string>
......@@ -78,8 +82,7 @@ their center of gravity is at the origin.</string>
<string>Normalize bounding box diagonal of objects</string>
</property>
<property name="whatsThis">
<string>Rescale objects such that its bounding box
diagonal has length one.</string>
<string/>
</property>
<property name="text">
<string>Unify Boundingbox Diagonal</string>
......
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