class QtxActionToolMgr;
class QMenu;
class SUIT_ViewModel;
+class SUIT_ViewWindow;
/*!
An interface which can be used as a module dedicated extension for Viewer
*/
{
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;
CAM_ViewExtender* aExtender = myActiveModule->getViewExtender();
if (aExtender) {
QtxActionToolMgr* aMgr = aViewWindow->toolMgr();
- myExtToolBarId = aExtender->createToolbar(aMgr);
+ myExtToolBarId = aExtender->createToolbar(aViewWindow);
}
}
return aViewWindow;
if (myExtToolBarId != -1)
aMgr->removeToolBar(myExtToolBarId);
if (aExtender)
- aNewId = aExtender->createToolbar(aMgr);
+ aNewId = aExtender->createToolbar(aViewWnd);
}
}
}