+protected:
+ void initSpinBox( QDoubleSpinBox*,
+ double, double, double = 0.1,
+ int = 3 );
+
+ // redefined from GEOMBase_Helper
+ virtual GEOM::GEOM_IOperations_ptr createOperation();
+ virtual bool isValid( QString& );
+ virtual bool execute( ObjectList& );
+
+ void closeEvent( QCloseEvent* );
+ void keyPressEvent( QKeyEvent* );
+
+private:
+ void Init();
+ void enterEvent( QEvent* );
+ void InitClick();
+ void setEnabledUndo( bool );
+ void setEnabledRedo( bool );
+
+ QString GetNewCommand();
+
+ virtual void displayPreview( GEOM::GEOM_Object_ptr,
+ const bool = false,
+ const bool = false,
+ const bool = true,
+ const double = -1,
+ const int = -1,
+ const int = -1);
+
+ bool createShapes( GEOM::GEOM_Object_ptr,
+ TopoDS_Shape&,
+ TopoDS_Shape& );
+
+private:
+ int myConstructorId;
+ int myConstructorDirId;
+ int mySketchType;
+ int mySketchState;
+
+ bool myIsAllAdded;
+
+ QLineEdit* myEditCurrentArgument; /* Current LineEdit */
+
+ QStringList myCommand;
+ QStringList myUndoCommand;
+
+ Standard_Real myX, myY, myDX, myDY;
+ Standard_Real myLength, myAngle, myRadius;
+ Standard_Real myLastX1, myLastY1;
+ Standard_Real myLastX2, myLastY2;
+
+ EntityGUI_Skeleton* MainWidget;
+
+ EntityGUI_Point* GroupPt;
+ EntityGUI_Dir1* GroupD1;
+ EntityGUI_Dir2* GroupD2;
+
+ EntityGUI_1Sel* Group1Sel;
+ EntityGUI_1Spin* Group1Spin;
+ EntityGUI_2Spin* Group2Spin;
+ EntityGUI_3Spin* Group3Spin;
+ EntityGUI_4Spin* Group4Spin;
+
+ GeometryGUI* myGeometryGUI;
+
+ QString myHelpFileName;
+
+ double myLineWidth;
+
+private:
+ enum SketchState { FIRST_POINT, NEXT_POINT };
+
+ enum SketchType { PT_ABS, PT_RELATIVE, PT_SEL,
+ DIR_ANGLE_LENGTH, DIR_ANGLE_X, DIR_ANGLE_Y,
+ DIR_PER_LENGTH, DIR_PER_X, DIR_PER_Y,
+ DIR_TAN_LENGTH, DIR_TAN_X, DIR_TAN_Y,
+ DIR_DXDY_LENGTH, DIR_DXDY_X, DIR_DXDY_Y };
+