Commit e371c413 authored by Mike Kremer's avatar Mike Kremer

Changed dialog title.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@5282 383ad7c9-94d9-4d36-a494-682f7c89f535
parent fa2283b7
...@@ -60,11 +60,9 @@ void MovePlugin::showProps(){ ...@@ -60,11 +60,9 @@ void MovePlugin::showProps(){
BaseObjectData* obj; BaseObjectData* obj;
if ( ! PluginFunctions::getObject(meshID,obj) ) if ( ! PluginFunctions::getObject(meshID,obj) )
return; return;
ACG::SceneGraph::BaseNode* mesh = ACG::SceneGraph::find_node( PluginFunctions::getSceneGraphRootNode(), meshID );
movePropsWidget* pW = new movePropsWidget(obj); movePropsWidget* pW = new movePropsWidget(obj);
pW->setWindowTitle(QString((mesh->name()).c_str())); pW->setWindowTitle(QString((mNode->name()).c_str()));
connect(pW->posButton,SIGNAL(clicked() ),this,SLOT(slotSetPosition())); connect(pW->posButton,SIGNAL(clicked() ),this,SLOT(slotSetPosition()));
connect(pW->axisAButton,SIGNAL(clicked() ),this,SLOT(slotToggleAxisA())); connect(pW->axisAButton,SIGNAL(clicked() ),this,SLOT(slotToggleAxisA()));
......
...@@ -298,14 +298,26 @@ class MovePlugin : public QObject, BaseInterface, MouseInterface, PickingInterfa ...@@ -298,14 +298,26 @@ class MovePlugin : public QObject, BaseInterface, MouseInterface, PickingInterfa
/// Show properties of move manipulator in a dialog /// Show properties of move manipulator in a dialog
void showProps( ); void showProps( );
/// Get properties dialog widget that is attached to BaseDataObject obj
movePropsWidget* getDialogWidget(BaseObjectData* _obj); movePropsWidget* getDialogWidget(BaseObjectData* _obj);
/// Get parent properties dialog widget of QPushButton but
movePropsWidget* getDialogFromButton(QPushButton* _but); movePropsWidget* getDialogFromButton(QPushButton* _but);
/** Override ContextMenuInterface slot in order to avoid appearance of
* context menu entry when clicking on other nodes (other than manpipulator nodes)
*/
void slotUpdateContextMenuNode( int _nodeId ); void slotUpdateContextMenuNode( int _nodeId );
private: private:
/// Move context menu /// Move context menu
QMenu* contextMenu_; QMenu* contextMenu_;
/// List of properties dialogs (each corresponding to one manipulator)
QList<movePropsWidget*> propsWindows_; QList<movePropsWidget*> propsWindows_;
/// Context menu entry
QAction* contextAction_; QAction* contextAction_;
/** @} */ /** @} */
......
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