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

add WhatsThis messages

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@14058 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 8e105783
...@@ -80,11 +80,14 @@ void SkeletonEditingPlugin::pluginsInitialized() { ...@@ -80,11 +80,14 @@ void SkeletonEditingPlugin::pluginsInitialized() {
toolbar_ = new QToolBar(tr("Skeleton Editing")); toolbar_ = new QToolBar(tr("Skeleton Editing"));
toolbar_->setObjectName("Skeleton_Editing_Toolbar"); toolbar_->setObjectName("Skeleton_Editing_Toolbar");
toolBarActions_ = new QActionGroup(toolbar_); toolBarActions_ = new QActionGroup(toolbar_);
WhatsThisGenerator whatsThisGen("SkeletonEditing");
skeletonEditingAction_ = new QAction(tr("<B>Skeleton Editing</B><br>Modify the structure of a skeleton"), toolBarActions_); skeletonEditingAction_ = new QAction(tr("<B>Skeleton Editing</B><br>Modify the structure of a skeleton"), toolBarActions_);
skeletonEditingAction_->setStatusTip(tr("Modify the structure of a skeleton.")); skeletonEditingAction_->setStatusTip(tr("Modify the structure of a skeleton."));
skeletonEditingAction_->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"skeleton_editing.png") ); skeletonEditingAction_->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"skeleton_editing.png") );
whatsThisGen.setWhatsThis(skeletonEditingAction_,tr("Skeleton Editing"));
skeletonEditingAction_->setCheckable(true); skeletonEditingAction_->setCheckable(true);
toolbar_->addAction(skeletonEditingAction_); toolbar_->addAction(skeletonEditingAction_);
...@@ -101,29 +104,34 @@ void SkeletonEditingPlugin::pluginsInitialized() { ...@@ -101,29 +104,34 @@ void SkeletonEditingPlugin::pluginsInitialized() {
selectJointAction_->setStatusTip(tr("Toggle the selection state of a joint.")); selectJointAction_->setStatusTip(tr("Toggle the selection state of a joint."));
selectJointAction_->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"skeleton_selectJoint.png") ); selectJointAction_->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"skeleton_selectJoint.png") );
selectJointAction_->setCheckable(true); selectJointAction_->setCheckable(true);
whatsThisGen.setWhatsThis(selectJointAction_,tr("Select single joints of the skeleton. You can select multiple joints at once."));
pickToolbar_->addAction(selectJointAction_); pickToolbar_->addAction(selectJointAction_);
insertJointAction_ = new QAction(tr("<B>Insert Joint</B><br>Add a joint to the skeleton"), pickToolBarActions_); insertJointAction_ = new QAction(tr("<B>Insert Joint</B><br>Add a joint to the skeleton"), pickToolBarActions_);
insertJointAction_->setStatusTip(tr("<DoubleClick> to start a new skeleton and end joint path. <Click> to select parent and position for new joints.")); insertJointAction_->setStatusTip(tr("<DoubleClick> to start a new skeleton and end joint path. <Click> to select parent and position for new joints."));
insertJointAction_->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"skeleton_insertJoint.png") ); insertJointAction_->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"skeleton_insertJoint.png") );
whatsThisGen.setWhatsThis(insertJointAction_,tr("Insert new joints. Click on a joint first and then click somewhere else, to add a new joint at the mouseposition. Double-click to finish adding joints."));
insertJointAction_->setCheckable(true); insertJointAction_->setCheckable(true);
pickToolbar_->addAction(insertJointAction_); pickToolbar_->addAction(insertJointAction_);
splitJointAction_ = new QAction(tr("<B>Split Joint</B><br>Add a Joint between two other Joints"), pickToolBarActions_); splitJointAction_ = new QAction(tr("<B>Split Joint</B><br>Add a Joint between two other Joints"), pickToolBarActions_);
splitJointAction_->setStatusTip(tr("Click on a joint which will be the new child Joint.")); splitJointAction_->setStatusTip(tr("Click on a joint which will be the new child Joint."));
splitJointAction_->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"skeleton_splitJoint.png") ); splitJointAction_->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"skeleton_splitJoint.png") );
whatsThisGen.setWhatsThis(splitJointAction_,tr("Click on a joint to split it in the middle."));
splitJointAction_->setCheckable(true); splitJointAction_->setCheckable(true);
pickToolbar_->addAction(splitJointAction_); pickToolbar_->addAction(splitJointAction_);
deleteJointAction_ = new QAction(tr("<B>Delete Joint</B><br>Remove a joint from the skeleton"), pickToolBarActions_); deleteJointAction_ = new QAction(tr("<B>Delete Joint</B><br>Remove a joint from the skeleton"), pickToolBarActions_);
deleteJointAction_->setStatusTip(tr("<Press> to select a joint. <Release> to delete it.")); deleteJointAction_->setStatusTip(tr("<Press> to select a joint. <Release> to delete it."));
deleteJointAction_->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"skeleton_deleteJoint.png") ); deleteJointAction_->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"skeleton_deleteJoint.png") );
whatsThisGen.setWhatsThis(deleteJointAction_,tr("Delete a joint by clicking on it."));
deleteJointAction_->setCheckable(true); deleteJointAction_->setCheckable(true);
pickToolbar_->addAction(deleteJointAction_); pickToolbar_->addAction(deleteJointAction_);
moveJointAction_ = new QAction(tr("<B>Transform Joint</B><br>Transform a joint from the skeleton"), pickToolBarActions_); moveJointAction_ = new QAction(tr("<B>Transform Joint</B><br>Transform a joint from the skeleton"), pickToolBarActions_);
moveJointAction_->setStatusTip(tr("Transform a joint from the skeleton.")); moveJointAction_->setStatusTip(tr("Transform a joint from the skeleton."));
moveJointAction_->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"skeleton_moveJoint.png") ); moveJointAction_->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"skeleton_moveJoint.png") );
whatsThisGen.setWhatsThis(moveJointAction_,tr("Transform a joint (only possible in an animation). Click on a joint and transform his position and orientation with help of the manipulator"));
moveJointAction_->setCheckable(true); moveJointAction_->setCheckable(true);
pickToolbar_->addAction(moveJointAction_); pickToolbar_->addAction(moveJointAction_);
...@@ -133,6 +141,7 @@ void SkeletonEditingPlugin::pluginsInitialized() { ...@@ -133,6 +141,7 @@ void SkeletonEditingPlugin::pluginsInitialized() {
rotateManipAction_->setStatusTip(tr("Rotate manipulator. <Shift>")); rotateManipAction_->setStatusTip(tr("Rotate manipulator. <Shift>"));
rotateManipAction_->setToolTip(tr("<B>Rotate manipulator</B><br> Rotates only the manipulator, not the joints. <B>Shift</B>")); rotateManipAction_->setToolTip(tr("<B>Rotate manipulator</B><br> Rotates only the manipulator, not the joints. <B>Shift</B>"));
rotateManipAction_->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"skeleton_maniprotate.png") ); rotateManipAction_->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"skeleton_maniprotate.png") );
whatsThisGen.setWhatsThis(rotateManipAction_,tr("Rotate a joint (possible in an animation). Click on a joint and transform his orientation with help of the manipulator."));
rotateManipAction_->setCheckable(true); rotateManipAction_->setCheckable(true);
pickToolbar_->addAction(rotateManipAction_); pickToolbar_->addAction(rotateManipAction_);
connect(rotateManipAction_, SIGNAL(toggled(bool)), this, SLOT(slotRotateManipulator(bool)) ); connect(rotateManipAction_, SIGNAL(toggled(bool)), this, SLOT(slotRotateManipulator(bool)) );
...@@ -143,6 +152,7 @@ void SkeletonEditingPlugin::pluginsInitialized() { ...@@ -143,6 +152,7 @@ void SkeletonEditingPlugin::pluginsInitialized() {
transformAllManipAction_->setStatusTip(tr("Apply the relative transformation to all frames of the animation.")); transformAllManipAction_->setStatusTip(tr("Apply the relative transformation to all frames of the animation."));
transformAllManipAction_->setToolTip(tr("<B>Transform whole animation</B><br>Transform all frames of the animation simultaneously.")); transformAllManipAction_->setToolTip(tr("<B>Transform whole animation</B><br>Transform all frames of the animation simultaneously."));
transformAllManipAction_->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"skeleton_manipAllFrames.png") ); transformAllManipAction_->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"skeleton_manipAllFrames.png") );
whatsThisGen.setWhatsThis(transformAllManipAction_,tr("Transform whole animation. Changing will be applied to all frames of the current animation"));
transformAllManipAction_->setCheckable(true); transformAllManipAction_->setCheckable(true);
transformAllManipAction_->setChecked(transformAllFrames_); transformAllManipAction_->setChecked(transformAllFrames_);
pickToolbar_->addAction(transformAllManipAction_); pickToolbar_->addAction(transformAllManipAction_);
...@@ -151,6 +161,7 @@ void SkeletonEditingPlugin::pluginsInitialized() { ...@@ -151,6 +161,7 @@ void SkeletonEditingPlugin::pluginsInitialized() {
transformChildManipAction_->setStatusTip(tr("Apply joint transformation to child joints as well and thereby rigidly move the whole subtree.")); transformChildManipAction_->setStatusTip(tr("Apply joint transformation to child joints as well and thereby rigidly move the whole subtree."));
transformChildManipAction_->setToolTip(tr("<B>Transform child joints</B><br>Apply joint transformation to all child joints as well.")); transformChildManipAction_->setToolTip(tr("<B>Transform child joints</B><br>Apply joint transformation to all child joints as well."));
transformChildManipAction_->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"skeleton_manipChildTransform.png") ); transformChildManipAction_->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"skeleton_manipChildTransform.png") );
whatsThisGen.setWhatsThis(transformChildManipAction_,tr("Apply your transformation to all child joints."));
transformChildManipAction_->setCheckable(true); transformChildManipAction_->setCheckable(true);
transformChildManipAction_->setChecked(transformChildJoints_); transformChildManipAction_->setChecked(transformChildJoints_);
pickToolbar_->addAction(transformChildManipAction_); pickToolbar_->addAction(transformChildManipAction_);
...@@ -159,6 +170,7 @@ void SkeletonEditingPlugin::pluginsInitialized() { ...@@ -159,6 +170,7 @@ void SkeletonEditingPlugin::pluginsInitialized() {
inverseKinematicAction_->setStatusTip(tr("Move selected joint using inverse kinematic.")); inverseKinematicAction_->setStatusTip(tr("Move selected joint using inverse kinematic."));
inverseKinematicAction_->setToolTip(tr("<B>Inverse kinematic</B><br>Move selected joint using inverse kinematic.")); inverseKinematicAction_->setToolTip(tr("<B>Inverse kinematic</B><br>Move selected joint using inverse kinematic."));
inverseKinematicAction_->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"skeleton_inverseKinematic.png") ); inverseKinematicAction_->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"skeleton_inverseKinematic.png") );
whatsThisGen.setWhatsThis(inverseKinematicAction_,tr("Move a joint to the position only with rotation of the previous joints."));
inverseKinematicAction_->setCheckable(true); inverseKinematicAction_->setCheckable(true);
inverseKinematicAction_->setChecked(inverseKinematic_); inverseKinematicAction_->setChecked(inverseKinematic_);
pickToolbar_->addAction(inverseKinematicAction_); pickToolbar_->addAction(inverseKinematicAction_);
......
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