//******************************************************
NewGeom_Module::NewGeom_Module()
: LightApp_Module("NewGeom"),
- mySelector(0), myIsOpened(0)
+ mySelector(0), myIsOpened(0), myPopupMgr(0)
{
myWorkshop = new XGUI_Workshop(this);
myProxyViewer = new NewGeom_SalomeViewer(this);
mySelector = createSelector(OCCViewManagers.first());
}
}
- QtxPopupMgr* aMgr = popupMgr(); // Create popup manager
- action(myEraseAll)->setEnabled(false);
+ //action(myEraseAll)->setEnabled(false);
if (myIsOpened) {
myWorkshop->objectBrowser()->rebuildDataTree();
}
}
+//******************************************************
+QtxPopupMgr* NewGeom_Module::popupMgr()
+{
+ if (!myPopupMgr)
+ myPopupMgr = new QtxPopupMgr( 0, this );
+ return myPopupMgr;
+}
+
//******************************************************
void NewGeom_Module::onDefaultPreferences()
{
protected:
CAM_DataModel* createDataModel();
+ virtual QtxPopupMgr* popupMgr();
private:
NewGeom_OCCSelector* createSelector(SUIT_ViewManager* theMgr);
bool myIsOpened;
bool myIsStorePositions;
+ QtxPopupMgr* myPopupMgr;
};
#endif