- createGeomAction( 111, "IMPORT", "", (CTRL + Key_I) );
- createGeomAction( 121, "EXPORT", "", (CTRL + Key_E) );
-
- createGeomAction( 33, "DELETE" );
-
- createGeomAction( 4011, "POINT" );
- createGeomAction( 4012, "LINE" );
- createGeomAction( 4013, "CIRCLE" );
- createGeomAction( 4014, "ELLIPSE" );
- createGeomAction( 4015, "ARC" );
- createGeomAction( 4019, "CURVE" );
- createGeomAction( 4016, "VECTOR" );
- createGeomAction( 4017, "PLANE" );
- createGeomAction( 4018, "WORK_PLANE" );
- createGeomAction( 4020, "LOCAL_CS" );
-
- createGeomAction( 4021, "BOX" );
- createGeomAction( 4022, "CYLINDER" );
- createGeomAction( 4023, "SPHERE" );
- createGeomAction( 4024, "TORUS" );
- createGeomAction( 4025, "CONE" );
-
- createGeomAction( 4031, "EXTRUSION" );
- createGeomAction( 4032, "REVOLUTION" );
- createGeomAction( 4033, "FILLING" );
- createGeomAction( 4034, "PIPE" );
-
- createGeomAction( 800, "GROUP_CREATE" );
- createGeomAction( 801, "GROUP_EDIT" );
-
- createGeomAction( 9997, "Q_FACE" );
- createGeomAction( 9999, "HEX_SOLID" );
-
- createGeomAction( 404, "SKETCH" );
- createGeomAction( 407, "EXPLODE" );
-
- createGeomAction( 4081, "EDGE" );
- createGeomAction( 4082, "WIRE" );
- createGeomAction( 4083, "FACE" );
- createGeomAction( 4084, "SHELL" );
- createGeomAction( 4085, "SOLID" );
- createGeomAction( 4086, "COMPOUND" );
-
- createGeomAction( 5011, "FUSE" );
- createGeomAction( 5012, "COMMON" );
- createGeomAction( 5013, "CUT" );
- createGeomAction( 5014, "SECTION" );
-
- createGeomAction( 5021, "TRANSLATION" );
- createGeomAction( 5022, "ROTATION" );
- createGeomAction( 5023, "MODIFY_LOCATION" );
- createGeomAction( 5024, "MIRROR" );
- createGeomAction( 5025, "SCALE" );
- createGeomAction( 5026, "OFFSET" );
- createGeomAction( 5027, "MUL_TRANSLATION" );
- createGeomAction( 5028, "MUL_ROTATION" );
-
- createGeomAction( 503, "PARTITION" );
- createGeomAction( 504, "ARCHIMEDE" );
- createGeomAction( 505, "FILLET" );
- createGeomAction( 506, "CHAMFER" );
- //createGeomAction( 507, "CLIPPING" );
-
- createGeomAction( 9998, "MUL_TRANSFORM" );
- createGeomAction( 9995, "EXPLODE_BLOCKS" );
- createGeomAction( 99991, "PROPAGATE" );
-
- createGeomAction( 601, "SEWING" );
- createGeomAction( 602, "GLUE_FACES" );
- createGeomAction( 603, "SUPPRESS_FACES" );
- createGeomAction( 604, "SUPPERSS_HOLES" );
- createGeomAction( 605, "SHAPE_PROCESS" );
- createGeomAction( 606, "CLOSE_CONTOUR" );
- createGeomAction( 607, "SUPPRESS_INT_WIRES" );
- createGeomAction( 608, "POINT_ON_EDGE" );
- createGeomAction( 609, "CHECK_FREE_BNDS" );
- createGeomAction( 610, "CHECK_FREE_FACES" );
-
- createGeomAction( 708, "POINT_COORDS" );
- createGeomAction( 701, "BASIC_PROPS" );
- createGeomAction( 702, "MASS_CENTER" );
- createGeomAction( 703, "INERTIA" );
- createGeomAction( 7041, "BND_BOX" );
- createGeomAction( 7042, "MIN_DIST" );
-
- createGeomAction( 705, "TOLERANCE" );
- createGeomAction( 706, "WHAT_IS" );
- createGeomAction( 707, "CHECK" );
- createGeomAction( 7072, "CHECK_COMPOUND" );
-
- createGeomAction( 5103, "CHECK_GEOMETRY" );
-
- createGeomAction( 412, "SHADING_COLOR" );
- createGeomAction( 413, "ISOS" );
- createGeomAction( 414, "STEP_VALUE" );
-
- createGeomAction( 211, "SHADING" );
- createGeomAction( 212, "DISPLAY_ALL" );
- createGeomAction( 214, "ERASE_ALL" );
- createGeomAction( 216, "DISPLAY" );
- createGeomAction( 213, "DISPLAY_ONLY" );
- createGeomAction( 215, "ERASE" );
-
- createGeomAction( 901, "POP_RENAME" );
- createGeomAction( 80311, "POP_WIREFRAME", "", 0, true );
- createGeomAction( 80312, "POP_SHADING", "", 0, true );
- createGeomAction( 8032, "POP_COLOR" );
- createGeomAction( 8033, "POP_TRANSPARENCY" );
- createGeomAction( 8034, "POP_ISOS" );
- createGeomAction( 8001, "POP_CREATE_GROUP" );
-
- // make wireframe-shading items to be exclusive (only one at a time is selected)
- //QActionGroup* dispModeGr = new QActionGroup( this, "", true );
- //dispModeGr->add( action( 80311 ) );
- //dispModeGr->add( action( 80312 ) );
- // ---- create menu --------------------------
+ createGeomAction( GEOMOp::OpImport, "IMPORT", "", Qt::ControlModifier + Qt::Key_I );
+ createGeomAction( GEOMOp::OpExport, "EXPORT", "", Qt::ControlModifier + Qt::Key_E );
+
+ createGeomAction( GEOMOp::OpDelete, "DELETE", "", Qt::Key_Delete );
+
+ createGeomAction( GEOMOp::OpPoint, "POINT" );
+ createGeomAction( GEOMOp::OpLine, "LINE" );
+ createGeomAction( GEOMOp::OpCircle, "CIRCLE" );
+ createGeomAction( GEOMOp::OpEllipse, "ELLIPSE" );
+ createGeomAction( GEOMOp::OpArc, "ARC" );
+ createGeomAction( GEOMOp::OpCurve, "CURVE" );
+ createGeomAction( GEOMOp::OpVector, "VECTOR" );
+ createGeomAction( GEOMOp::OpPlane, "PLANE" );
+ createGeomAction( GEOMOp::OpLCS, "LOCAL_CS" );
+ createGeomAction( GEOMOp::OpOriginAndVectors, "ORIGIN_AND_VECTORS" );
+
+ createGeomAction( GEOMOp::OpBox, "BOX" );
+ createGeomAction( GEOMOp::OpCylinder, "CYLINDER" );
+ createGeomAction( GEOMOp::OpSphere, "SPHERE" );
+ createGeomAction( GEOMOp::OpTorus, "TORUS" );
+ createGeomAction( GEOMOp::OpCone, "CONE" );
+ createGeomAction( GEOMOp::OpRectangle, "RECTANGLE" );
+ createGeomAction( GEOMOp::OpDisk, "DISK" );
+
+ createGeomAction( GEOMOp::OpPrism, "EXTRUSION" );
+ createGeomAction( GEOMOp::OpRevolution, "REVOLUTION" );
+ createGeomAction( GEOMOp::OpFilling, "FILLING" );
+ createGeomAction( GEOMOp::OpPipe, "PIPE" );
+
+ createGeomAction( GEOMOp::OpGroupCreate, "GROUP_CREATE" );
+ createGeomAction( GEOMOp::OpGroupEdit, "GROUP_EDIT" );
+
+ createGeomAction( GEOMOp::OpReimport, "RELOAD_IMPORTED" );
+
+ createGeomAction( GEOMOp::OpQuadFace, "Q_FACE" );
+ createGeomAction( GEOMOp::OpHexaSolid, "HEX_SOLID" );
+
+ createGeomAction( GEOMOp::Op2dSketcher, "SKETCH" );
+ createGeomAction( GEOMOp::Op3dSketcher, "3DSKETCH" );
+ createGeomAction( GEOMOp::OpExplode, "EXPLODE" );
+#ifdef WITH_OPENCV
+ createGeomAction( GEOMOp::OpFeatureDetect,"FEATURE_DETECTION" );
+#endif
+ createGeomAction( GEOMOp::OpPictureImport,"PICTURE_IMPORT" );
+
+ createGeomAction( GEOMOp::OpEdge, "EDGE" );
+ createGeomAction( GEOMOp::OpWire, "WIRE" );
+ createGeomAction( GEOMOp::OpFace, "FACE" );
+ createGeomAction( GEOMOp::OpShell, "SHELL" );
+ createGeomAction( GEOMOp::OpSolid, "SOLID" );
+ createGeomAction( GEOMOp::OpCompound, "COMPOUND" );
+
+ createGeomAction( GEOMOp::OpFuse, "FUSE" );
+ createGeomAction( GEOMOp::OpCommon, "COMMON" );
+ createGeomAction( GEOMOp::OpCut, "CUT" );
+ createGeomAction( GEOMOp::OpSection, "SECTION" );
+
+ createGeomAction( GEOMOp::OpTranslate, "TRANSLATION" );
+ createGeomAction( GEOMOp::OpRotate, "ROTATION" );
+ createGeomAction( GEOMOp::OpChangeLoc, "MODIFY_LOCATION" );
+ createGeomAction( GEOMOp::OpMirror, "MIRROR" );
+ createGeomAction( GEOMOp::OpScale, "SCALE" );
+ createGeomAction( GEOMOp::OpOffset, "OFFSET" );
+ createGeomAction( GEOMOp::OpProjection, "PROJECTION" );
+ createGeomAction( GEOMOp::OpMultiTranslate, "MUL_TRANSLATION" );
+ createGeomAction( GEOMOp::OpMultiRotate, "MUL_ROTATION" );
+
+ createGeomAction( GEOMOp::OpPartition, "PARTITION" );
+ createGeomAction( GEOMOp::OpArchimede, "ARCHIMEDE" );
+ createGeomAction( GEOMOp::OpFillet3d, "FILLET" );
+ createGeomAction( GEOMOp::OpChamfer, "CHAMFER" );
+ //createGeomAction( GEOMOp::OpClipping, "CLIPPING" );
+ createGeomAction( GEOMOp::OpShapesOnShape, "GET_SHAPES_ON_SHAPE" );
+ createGeomAction( GEOMOp::OpSharedShapes, "GET_SHARED_SHAPES" );
+ createGeomAction( GEOMOp::OpExtrudedCut, "EXTRUDED_CUT" );
+ createGeomAction( GEOMOp::OpExtrudedBoss, "EXTRUDED_BOSS" );
+ createGeomAction( GEOMOp::OpFillet1d, "FILLET_1D" );
+ createGeomAction( GEOMOp::OpFillet2d, "FILLET_2D" );
+
+ createGeomAction( GEOMOp::OpMultiTransform, "MUL_TRANSFORM" );
+ createGeomAction( GEOMOp::OpExplodeBlock, "EXPLODE_BLOCKS" );
+ createGeomAction( GEOMOp::OpPropagate, "PROPAGATE" );
+
+ createGeomAction( GEOMOp::OpSewing, "SEWING" );
+ createGeomAction( GEOMOp::OpGlueFaces, "GLUE_FACES" );
+ createGeomAction( GEOMOp::OpGlueEdges, "GLUE_EDGES" );
+ createGeomAction( GEOMOp::OpLimitTolerance, "LIMIT_TOLERANCE" );
+ createGeomAction( GEOMOp::OpSuppressFaces, "SUPPRESS_FACES" );
+ createGeomAction( GEOMOp::OpSuppressHoles, "SUPPERSS_HOLES" );
+ createGeomAction( GEOMOp::OpShapeProcess, "SHAPE_PROCESS" );
+ createGeomAction( GEOMOp::OpCloseContour, "CLOSE_CONTOUR" );
+ createGeomAction( GEOMOp::OpRemoveIntWires, "SUPPRESS_INT_WIRES" );
+ createGeomAction( GEOMOp::OpAddPointOnEdge, "POINT_ON_EDGE" );
+ createGeomAction( GEOMOp::OpFreeBoundaries, "CHECK_FREE_BNDS" );
+ createGeomAction( GEOMOp::OpFreeFaces, "CHECK_FREE_FACES" );
+ createGeomAction( GEOMOp::OpOrientation, "CHANGE_ORIENTATION" );
+ createGeomAction( GEOMOp::OpRemoveExtraEdges, "REMOVE_EXTRA_EDGES" );
+
+ createGeomAction( GEOMOp::OpPointCoordinates, "POINT_COORDS" );
+ createGeomAction( GEOMOp::OpProperties, "BASIC_PROPS" );
+ createGeomAction( GEOMOp::OpCenterMass, "MASS_CENTER" );
+ createGeomAction( GEOMOp::OpInertia, "INERTIA" );
+ createGeomAction( GEOMOp::OpNormale, "NORMALE" );
+ createGeomAction( GEOMOp::OpBoundingBox, "BND_BOX" );
+ createGeomAction( GEOMOp::OpMinDistance, "MIN_DIST" );
+ createGeomAction( GEOMOp::OpAngle, "MEASURE_ANGLE" );
+
+ createGeomAction( GEOMOp::OpTolerance, "TOLERANCE" );
+ createGeomAction( GEOMOp::OpWhatIs, "WHAT_IS" );
+ createGeomAction( GEOMOp::OpCheckShape, "CHECK" );
+ createGeomAction( GEOMOp::OpCheckCompound, "CHECK_COMPOUND" );
+ createGeomAction( GEOMOp::OpCheckSelfInters, "CHECK_SELF_INTERSECTIONS" );
+
+#ifdef _DEBUG_ // PAL16821
+ createGeomAction( GEOMOp::OpCheckGeom, "CHECK_GEOMETRY" );
+#endif
+
+ createGeomAction( GEOMOp::OpDisplayMode, "SHADING" );
+ createGeomAction( GEOMOp::OpShowAll, "DISPLAY_ALL" );
+ createGeomAction( GEOMOp::OpHideAll, "ERASE_ALL" );
+ createGeomAction( GEOMOp::OpShow, "DISPLAY" );
+ createGeomAction( GEOMOp::OpSwitchVectors, "VECTOR_MODE");
+ createGeomAction( GEOMOp::OpSelectVertex, "VERTEX_SEL_ONLY" ,"", 0, true );
+ createGeomAction( GEOMOp::OpSelectEdge, "EDGE_SEL_ONLY", "", 0, true );
+ createGeomAction( GEOMOp::OpSelectWire, "WIRE_SEL_ONLY", "", 0, true );
+ createGeomAction( GEOMOp::OpSelectFace, "FACE_SEL_ONLY", "", 0, true );
+ createGeomAction( GEOMOp::OpSelectShell, "SHELL_SEL_ONLY", "", 0, true );
+ createGeomAction( GEOMOp::OpSelectSolid, "SOLID_SEL_ONLY", "", 0, true );
+ createGeomAction( GEOMOp::OpSelectCompound, "COMPOUND_SEL_ONLY", "", 0, true );
+ createGeomAction( GEOMOp::OpSelectAll, "ALL_SEL_ONLY", "", 0, true );
+ createGeomAction( GEOMOp::OpShowOnly, "DISPLAY_ONLY" );
+ createGeomAction( GEOMOp::OpHide, "ERASE" );
+
+ createGeomAction( GEOMOp::OpWireframe, "POP_WIREFRAME", "", 0, true );
+ createGeomAction( GEOMOp::OpShading, "POP_SHADING", "", 0, true );
+ createGeomAction( GEOMOp::OpShadingWithEdges, "POP_SHADING_WITH_EDGES", "", 0, true );
+ createGeomAction( GEOMOp::OpTexture, "POP_TEXTURE", "", 0, true );
+ createGeomAction( GEOMOp::OpEdgeWidth, "EDGE_WIDTH");
+ createGeomAction( GEOMOp::OpIsosWidth, "ISOS_WIDTH");
+ createGeomAction( GEOMOp::OpVectors, "POP_VECTORS", "", 0, true );
+ createGeomAction( GEOMOp::OpDeflection, "POP_DEFLECTION" );
+ createGeomAction( GEOMOp::OpColor, "POP_COLOR" );
+ createGeomAction( GEOMOp::OpSetTexture, "POP_SETTEXTURE" );
+ createGeomAction( GEOMOp::OpTransparency, "POP_TRANSPARENCY" );
+ createGeomAction( GEOMOp::OpIsos, "POP_ISOS" );
+ createGeomAction( GEOMOp::OpAutoColor, "POP_AUTO_COLOR" );
+ createGeomAction( GEOMOp::OpNoAutoColor, "POP_DISABLE_AUTO_COLOR" );
+ createGeomAction( GEOMOp::OpGroupCreatePopup, "POP_CREATE_GROUP" );
+ createGeomAction( GEOMOp::OpShowChildren, "POP_SHOW_CHILDREN" );
+ createGeomAction( GEOMOp::OpHideChildren, "POP_HIDE_CHILDREN" );
+ createGeomAction( GEOMOp::OpUnpublishObject, "POP_UNPUBLISH_OBJ" );
+ createGeomAction( GEOMOp::OpPublishObject, "POP_PUBLISH_OBJ" );
+ createGeomAction( GEOMOp::OpPointMarker, "POP_POINT_MARKER" );
+ createGeomAction( GEOMOp::OpMaterialProperties, "POP_MATERIAL_PROPERTIES" );
+
+ createGeomAction( GEOMOp::OpPipeTShape, "PIPETSHAPE" );
+
+ // Create actions for increase/decrease transparency shortcuts
+ createGeomAction( GEOMOp::OpIncrTransparency, "", "", 0, false,
+ "Geometry:Increase transparency");
+ createGeomAction( GEOMOp::OpDecrTransparency, "", "", 0, false,
+ "Geometry:Decrease transparency");
+
+ // Create actions for increase/decrease number of isolines
+ createGeomAction( GEOMOp::OpIncrNbIsos, "", "", 0, false,
+ "Geometry:Increase number of isolines");
+ createGeomAction( GEOMOp::OpDecrNbIsos, "", "", 0, false,
+ "Geometry:Decrease number of isolines");
+
+// createGeomAction( GEOMOp::OpPipeTShapeGroups, "PIPETSHAPEGROUPS" );
+ //@@ insert new functions before this line @@ do not remove this line @@ do not remove this line @@ do not remove this line @@ do not remove this line @@//
+
+ // ---- create menus --------------------------