Commit 6d569a5c authored by Jan Möbius's avatar Jan Möbius

Small rename

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@5229 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 8432f424
......@@ -88,7 +88,7 @@ CoreWidget( QVector<ViewMode*>& _viewModes,
drawGroup_(0),
viewGroup_(0),
activeDrawModes_(0),
availableDrawModes_(0),
availableGlobalDrawModes_(0),
contextMenu_(0),
functionMenu_(0),
contextSelectionMenu_(0),
......
......@@ -513,7 +513,7 @@ public:
int activeDrawModes_;
int availableDrawModes_;
int availableGlobalDrawModes_;
/** @} */
......
......@@ -300,7 +300,7 @@ void CoreWidget::slotUpdateGlobalDrawMenu() {
// Collect available draw Modes
ACG::SceneGraph::CollectDrawModesAction actionAvailable;
ACG::SceneGraph::traverse( PluginFunctions::getRootNode() , actionAvailable);
availableDrawModes_ = actionAvailable.drawModes();
availableGlobalDrawModes_ = actionAvailable.drawModes();
// Get currently active drawModes (first viewer only )
// TODO: create combination from all viewers!
......@@ -310,7 +310,7 @@ void CoreWidget::slotUpdateGlobalDrawMenu() {
// Convert to ids
std::vector< unsigned int > availDrawModeIds;
availDrawModeIds = ACG::SceneGraph::DrawModes::getDrawModeIDs( availableDrawModes_ );
availDrawModeIds = ACG::SceneGraph::DrawModes::getDrawModeIDs( availableGlobalDrawModes_ );
globalDrawMenu_->clear();
......@@ -335,7 +335,7 @@ void CoreWidget::slotGlobalDrawMenu(QAction * _action) {
//======================================================================================
unsigned int mode = 0;
std::vector< unsigned int > availDrawModeIds;
availDrawModeIds = ACG::SceneGraph::DrawModes::getDrawModeIDs( availableDrawModes_ );
availDrawModeIds = ACG::SceneGraph::DrawModes::getDrawModeIDs( availableGlobalDrawModes_ );
for ( unsigned int i = 0; i < availDrawModeIds.size(); ++i )
{
QString descr = QString( ACG::SceneGraph::DrawModes::description( availDrawModeIds[i] ).c_str() );
......
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