From 0009e37cba0a6fbdfeb49ab47cf37b3bb84cd37d Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 4 Jun 2008 08:38:54 +0000 Subject: [PATCH] *** empty log message *** --- src/CAM/CAM_ViewExtender.h | 3 ++- src/SVTK/SVTK_ViewModel.cxx | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/CAM/CAM_ViewExtender.h b/src/CAM/CAM_ViewExtender.h index 46032b4b3..60ec81b68 100644 --- a/src/CAM/CAM_ViewExtender.h +++ b/src/CAM/CAM_ViewExtender.h @@ -24,6 +24,7 @@ class QtxActionToolMgr; class QMenu; class SUIT_ViewModel; +class SUIT_ViewWindow; /*! An interface which can be used as a module dedicated extension for Viewer */ @@ -31,7 +32,7 @@ class CAM_EXPORT CAM_ViewExtender { public: //! Creates a New toolbar containing extending actions. Returns New Toolbar Id - virtual int createToolbar(QtxActionToolMgr* ) = 0; + virtual int createToolbar(SUIT_ViewWindow* ) = 0; virtual void contextMenuPopup(QMenu* ) = 0; virtual void activate(SUIT_ViewModel*) = 0; virtual void deactivate(SUIT_ViewModel*) = 0; diff --git a/src/SVTK/SVTK_ViewModel.cxx b/src/SVTK/SVTK_ViewModel.cxx index f01338188..8c146841d 100644 --- a/src/SVTK/SVTK_ViewModel.cxx +++ b/src/SVTK/SVTK_ViewModel.cxx @@ -139,7 +139,7 @@ createView( SUIT_Desktop* theDesktop ) CAM_ViewExtender* aExtender = myActiveModule->getViewExtender(); if (aExtender) { QtxActionToolMgr* aMgr = aViewWindow->toolMgr(); - myExtToolBarId = aExtender->createToolbar(aMgr); + myExtToolBarId = aExtender->createToolbar(aViewWindow); } } return aViewWindow; @@ -565,7 +565,7 @@ void SVTK_Viewer::updateToolBars() if (myExtToolBarId != -1) aMgr->removeToolBar(myExtToolBarId); if (aExtender) - aNewId = aExtender->createToolbar(aMgr); + aNewId = aExtender->createToolbar(aViewWnd); } } } -- 2.39.2