myScalingDlg = 0;
mySetRotationPointDlg = 0;
myRectBand = 0;
+
+ IsSketcherStyle = false;
mypSketcher = 0;
myCurSketch = -1;
break;
default:
- if ( myRotationPointSelection )
+ if ( myRotationPointSelection || isSketcherStyle() )
+ {
emit mouseMoving( this, theEvent );
+ }
else
{
int aState = theEvent->modifiers();
return !(toolMgr()->action( MaximizedId )->text() == tr( "MNU_MAXIMIZE_VIEW" ));
}
+void OCCViewer_ViewWindow::setSketcherStyle( bool enable )
+{
+ IsSketcherStyle = enable;
+}
+
+bool OCCViewer_ViewWindow::isSketcherStyle() const
+{
+ return IsSketcherStyle;
+}
+
void OCCViewer_ViewWindow::set2dMode(Mode2dType theType)
{
void setMaximized( bool, bool = true );
bool isMaximized() const;
+
+ void setSketcherStyle( bool enable );
+ bool isSketcherStyle() const;
virtual QColor backgroundColor() const; // obsolete
virtual void setBackgroundColor( const QColor& ); // obsolete
bool myCursorIsHand;
bool myDrawRect; // set when a rect is used for selection or magnify
bool myEnableDrawMode;
- bool myPaintersRedrawing; // set to draw with external painters
-
+ bool myPaintersRedrawing; // set to draw with external painters
+ bool IsSketcherStyle;
+
QCursor myCursor;
double myCurScale;