Commit 775b77ae authored by Jan Möbius's avatar Jan Möbius

Support new context menu interface

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@5242 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 17af05cb
......@@ -162,15 +162,16 @@ void SelectionPlugin::pluginsInitialized() {
lastAction->setStatusTip( lastAction->toolTip() );
emit addContextMenu(contextMenu_ , DATA_TRIANGLE_MESH , CONTEXTSELECTIONMENU );
emit addContextMenu(contextMenu_ , DATA_POLY_MESH , CONTEXTSELECTIONMENU );
emit addContextMenu(contextMenu_ , DATA_POLY_LINE , CONTEXTSELECTIONMENU );
emit addContextMenu(contextMenu_ , DATA_BSPLINE_CURVE , CONTEXTSELECTIONMENU );
emit addContextMenu(contextMenu_ , DATA_TRIANGLE_MESH , CONTEXTOBJECTMENU );
emit addContextMenu(contextMenu_ , DATA_POLY_MESH , CONTEXTOBJECTMENU );
emit addContextMenu(contextMenu_ , DATA_POLY_LINE , CONTEXTOBJECTMENU );
emit addContextMenu(contextMenu_ , DATA_BSPLINE_CURVE , CONTEXTOBJECTMENU );
connect( contextMenu_ , SIGNAL( triggered(QAction*) ),
this, SLOT(selectionContextMenu(QAction*)) );
// TOOLBAR
toolBar_ = new QToolBar("Selection");
emit addToolbar(toolBar_);
......
......@@ -118,8 +118,11 @@ class SelectionPlugin : public QObject, BaseInterface , MouseInterface, KeyInter
void log(QString _message);
//ScriptInterface
void scriptInfo( QString _functionName );
//ContextMenuInterface
void addContextMenu(QMenu* _menu ,DataType _objectType , ContextMenuType _type );
void addContextMenu(QMenu* _menu ,ContextMenuType _type );
//KeyInterface
void registerKey(int _key, Qt::KeyboardModifiers _modifiers, QString _description, bool _multiUse = false);
//ToolbarInterface
......
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