#include <XGUI_Workshop.h>
#include <XGUI_PropertyPanel.h>
+#include <XGUI_ContextMenuMgr.h>
#include <LightApp_Application.h>
#include <LightApp_SelectionMgr.h>
#include <SUIT_Desktop.h>
#include <SUIT_ViewManager.h>
+#include <QtxPopupMgr.h>
#include <QtxActionMenuMgr.h>
#include <QDockWidget>
if (isDone) {
setMenuShown( true );
setToolShown( true );
- myWorkshop->propertyPanel()->hide();
if (!mySelector) {
ViewManagerList OCCViewManagers;
mySelector = createSelector(OCCViewManagers.first());
}
}
+ myWorkshop->propertyPanel()->hide();
+ QtxPopupMgr* aMgr = popupMgr(); // Create popup manager
+ action(myEraseAll)->setEnabled(false);
}
return isDone;
}
+//******************************************************
+bool NewGeom_Module::deactivateModule(SUIT_Study* theStudy)
+{
+ setMenuShown( false );
+ setToolShown( false );
+ //myWorkshop->contextMenuMgr()->disconnectViewer();
+ return LightApp_Module::deactivateModule(theStudy);
+}
+
//******************************************************
void NewGeom_Module::onViewManagerAdded( SUIT_ViewManager* theMgr )
{
return 0;
}
-//******************************************************
-bool NewGeom_Module::deactivateModule(SUIT_Study* theStudy)
-{
- setMenuShown( false );
- setToolShown( false );
- return LightApp_Module::deactivateModule(theStudy);
-}
-
//******************************************************
CAM_DataModel* NewGeom_Module::createDataModel()
{
LightApp_Module::selectionChanged();
myWorkshop->salomeViewerSelectionChanged();
}
+
+//******************************************************
+void NewGeom_Module::contextMenuPopup(const QString& theClient, QMenu* theMenu, QString& theTitle)
+{
+ myWorkshop->contextMenuMgr()->addViewerItems(theMenu);
+ LightApp_Module::contextMenuPopup(theClient, theMenu, theTitle);
+}
\ No newline at end of file