Commit d00f2871 authored by Mike Kremer's avatar Mike Kremer

Moved coordsys context menu to submenu of background context menu (if coordsys node is invisible)

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@6349 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 178283a6
...@@ -263,7 +263,12 @@ void CoreWidget::updatePopupMenuBackground(QMenu* _menu , const QPoint& /*_point ...@@ -263,7 +263,12 @@ void CoreWidget::updatePopupMenuBackground(QMenu* _menu , const QPoint& /*_point
ACG::SceneGraph::BaseNode* coordSys = root->find("Core Coordsys Node"); ACG::SceneGraph::BaseNode* coordSys = root->find("Core Coordsys Node");
if(!coordSys->visible()) { if(!coordSys->visible()) {
updatePopupMenuCoordsysNode(_menu, 0);
if(!coordSysMenu_) {
coordSysMenu_ = new QMenu("Coordinate System Options", _menu);
updatePopupMenuCoordsysNode(coordSysMenu_, 0);
}
_menu->addMenu(coordSysMenu_);
} }
// Tell Plugins to update their context Menu // Tell Plugins to update their context Menu
......
...@@ -96,6 +96,7 @@ CoreWidget( QVector<ViewMode*>& _viewModes, ...@@ -96,6 +96,7 @@ CoreWidget( QVector<ViewMode*>& _viewModes,
contextSelectionMenu_(0), contextSelectionMenu_(0),
drawGroupViewer_(0), drawGroupViewer_(0),
viewerDrawMenu_(0), viewerDrawMenu_(0),
coordSysMenu_(0),
snapshotName_("snap.png"), snapshotName_("snap.png"),
snapshotCounter_(0), snapshotCounter_(0),
stackMenu_(0), stackMenu_(0),
......
...@@ -640,6 +640,10 @@ public: ...@@ -640,6 +640,10 @@ public:
/// Draw Menu for per Viewer Draw Modes /// Draw Menu for per Viewer Draw Modes
QMenu* viewerDrawMenu_; QMenu* viewerDrawMenu_;
/// Menu which holds the context menu entries for
/// the coordsys node if invisible
QMenu* coordSysMenu_;
/** @} */ /** @} */
//=========================================================================== //===========================================================================
......
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