#include <HYDROGUI_BathymetryPrs.h>
#include <HYDROGUI_BathymetryOp.h>
#include <HYDROGUI_ShapeBathymetry.h>
+#include <HYDROGUI_Operations.h>
#include <OCCViewer_ViewManager.h>
#include <LightApp_Application.h>
+#include <QAction>
+#include <QApplication>
HYDROGUI_BathymetrySelectionOp::HYDROGUI_BathymetrySelectionOp( HYDROGUI_Module* theModule )
: HYDROGUI_Operation( theModule ), myIsActive( false )
void HYDROGUI_BathymetrySelectionOp::abortOperation()
{
activateSelection( false );
+
+ module()->action( BathymetrySelectionId )->setChecked( false );
+ module()->action( BathymetryTextId )->setChecked( false );
}
bool HYDROGUI_BathymetrySelectionOp::isValid( SUIT_Operation* theOtherOp ) const
if( myIsActive==isActive )
return;
+ getContext( module() )->ClearSelected(true);
+ qApp->setOverrideCursor( Qt::WaitCursor );
+ getContext( module() )->ClearSelected(true);
Handle(AIS_InteractiveContext) ctx = getContext( module() );
QList<Handle(HYDROGUI_BathymetryPrs)> baths = getShownBathymetries( module() );
if( isActive )
}
myIsActive = isActive;
+
+ qApp->restoreOverrideCursor();
}