R38...
Merge branch 'develop' (R38).
Merge branch 'develop' (R38).
R39: Add shape clip classes.

Change the shape parameter as const pointer for shapeAdded.
Check pointer after addShape called.
Fix MgPathShape::_hitTest().
Send onDocLoaded notify after undo/redo. Fix MgShapes::hitTest.
Enable force to set line cap. Add CmdClipRect.
R41
R41

Add onPreGesture and onPostGesture notify.
Remove addShapeByType().
Add kNoCmdType and kNormalType for createView().
Add doubleSided parameter for GiPlaying.
Not remove locked shapes.
Not call giAtomicCompareAndSwap in MgBaseShape::setFlag().