RegisterGargoyleActions:
PROC = {
There were 198 events on April 1, 1987
eventTable ← RefTab.Create[240];
RegisterAction[$PaintActionArea, GGEvent.PaintActionArea, none];
RegisterAction[$Abort, GGMouseEvent.HandleMouseless, none, FALSE];
RegisterAction[$NoOp, NoOp, none];
RegisterAction[$AddChar, GGEvent.AddChar, none];
File Line
RegisterAction[$Clear, GGEvent.Clear, none];
RegisterAction[$Reset, GGEvent.Reset, none];
RegisterAction[$Get, GGEvent.Get, rope];
RegisterAction[$Merge, GGEvent.Merge, rope];
RegisterAction[$Store, GGEvent.Store, rope];
RegisterAction[$Save, GGEvent.Save, none];
RegisterAction[$Stuff, GGEvent.StuffIt, none];
RegisterAction[$StuffScreen, GGEvent.StuffItScreen, none];
Interpress Menu
RegisterAction[$MergeIPEditable, GGEvent.MergeIPEditable, rope];
RegisterAction[$MergeIPSlice, GGEvent.MergeIPSlice, rope];
RegisterAction[$ToIP, GGEvent.ToIP, rope];
RegisterAction[$ToIPScreen, GGEvent.ToIPScreen, rope];
RegisterAction[$IncludeIPByReference, GGEvent.IncludeIPByReference, none];
RegisterAction[$IncludeIPByValue, GGEvent.IncludeIPByValue, none];
RegisterAction[$ShowIPIncludeMode, GGEvent.ShowIPIncludeMode, none];
RegisterAction[$ToIPLit, GGEvent.ToIPLit, none];
Help Menu
RegisterAction[$Help, GGEvent.Help, none];
Master Line
Hierarchy Menu
RegisterAction[$Delete, GGEvent.Delete, none];
RegisterAction[$Undelete, GGEvent.Undelete, none];
RegisterAction[$UndeleteAutoConfirm, GGEvent.UndeleteAutoConfirm, none];
RegisterAction[$UnionCombine , GGEvent.UnionCombine, none];
RegisterAction[$AddHoles, GGEvent.AddHoles, none];
RegisterAction[$DescribeCurve, GGEvent.DescribeCurve, none];
Edit Menu
RegisterAction[$ApplyAllDefaults, GGEvent.ApplyAllDefaults, none];
RegisterAction[$SetAllDefaults, GGEvent.SetAllDefaults, none];
RegisterAction[$ShowAllDefaults, GGEvent.ShowAllDefaults, none];
RegisterAction[$StandardDefaults, GGEvent.StandardDefaults, none];
RegisterAction[$Close, GGEvent.Close, none];
RegisterAction[$AddControlPoint, GGEvent.AddControlPoint, none];
RegisterAction[$DeleteControlPoint, GGEvent.DeleteControlPoint, none];
RegisterAction[$AddJoint, GGEvent.AddJoint, none];
RegisterAction[$Weld, GGEvent.Weld, none];
RegisterAction[$SplitSegment, GGEvent.SplitSegment, none];
RegisterAction[$Splice, GGEvent.Splice, none];
RegisterAction[$ShowPoints, GGEvent.ShowPoints, none];
RegisterAction[$HidePoints, GGEvent.HidePoints, none];
Transform Menu
RegisterAction[$Rotate, GGEvent.TransRotScale, rope];
RegisterAction[$Scale, GGEvent.TransRotScale, rope];
RegisterAction[$ScaleX, GGEvent.TransRotScale, rope];
RegisterAction[$ScaleY, GGEvent.TransRotScale, rope];
RegisterAction[$TranslateX, GGEvent.TransRotScale, rope];
RegisterAction[$TranslateY, GGEvent.TransRotScale, rope];
RegisterAction[$SixPointTransform, GGEvent.SixPointTransform, none];
RegisterAction[$FourPointTransform, GGEvent.FourPointTransform, none];
Overlap Menu
RegisterAction[$Top, GGEvent.Top, none];
RegisterAction[$Bottom, GGEvent.Bottom, none];
RegisterAction[$UpOne, GGEvent.UpOne, none];
RegisterAction[$DownOne, GGEvent.DownOne, none];
Refresh related operations
RegisterAction[$Refresh, GGEvent.Refresh, none];
RegisterAction[$DisableRefresh, GGEvent.DisableRefresh, none];
RegisterAction[$EnableRefresh, GGEvent.EnableRefresh, none];
Shapes Menu
RegisterAction[$PolygonInCircle, GGEvent.PolygonInCircle, refInt];
RegisterAction[$KnotchedLine, GGEvent.NewKnotchedLine, none];
RegisterAction[$NewCircle, GGEvent.NewCircle, none];
RegisterAction[$NewBox, GGEvent.NewBox, none];
RegisterAction[$NewArrow, GGEvent.NewArrow, none];
RegisterAction[$Frame, GGEvent.Frame, none];
Debug Menu
RegisterAction[$TestGravity, GGEvent.TestGravity, refInt];
RegisterAction[$ToIPTestGravity, GGEvent.ToIPTestGravity, none];
RegisterAction[$TestMultiGravity, GGEvent.TestMultiGravity, none];
RegisterAction[$Statistics, GGEvent.Statistics, none];
RegisterAction[$PrintSelectedStatistic, GGEvent.PrintSelectedStatistic, rope];
RegisterAction[$ResetStatistics, GGEvent.ResetStatistics, none];
RegisterAction[$DrawTightBoxes, GGEvent.DrawTightBoxes, none];
RegisterAction[$DrawBoundBoxes, GGEvent.DrawBoundBoxes, none];
RegisterAction[$DrawOutlineBoxes, GGEvent.DrawOutlineBoxes, none];
RegisterAction[$DrawSelectionBox, GGEvent.DrawSelectionBox, none];
RegisterAction[$DrawBackgroundBox, GGEvent.DrawMovingBox, none];
RegisterAction[$DrawOverlayBox, GGEvent.DrawMovingBox, none];
RegisterAction[$DrawRubberBox, GGEvent.DrawMovingBox, none];
RegisterAction[$DrawDragBox, GGEvent.DrawMovingBox, none];
RegisterAction[$Typescript, GGEvent.Typescript, none];
RegisterAction[$SlackLog, GGEvent.SlackLog, none];
RegisterAction[$DescribeCaretObject, GGEvent.DescribeCaretObject, none];
RegisterAction[$FSMInfo, FSMInfo, none];
RegisterAction[$PrintAllInput, PrintAllInputOn, none];
RegisterAction[$ResetAllInput, PrintAllInputOff, none];
RegisterAction[$CauseAnError, CauseAnError, none];
Stroke Menu
RegisterAction[$LineWidth, GGEvent.LineWidth, refReal];
RegisterAction[$LineEnd, GGEvent.LineEnds, rope];
RegisterAction[$TrajJoints, GGEvent.TrajJoints, rope];
RegisterAction[$DashesFromSelection, GGEvent.DashesFromSelection, rope];
RegisterAction[$DashesOff, GGEvent.DashesOff, none];
RegisterAction[$PrintStrokeValues, GGEvent.PrintStrokeValues, none];
RegisterAction[$SelectMatchingWidth, GGEvent.SelectMatchingWidth, refReal];
RegisterAction[$SelectMatchingDashes, GGEvent.SelectMatchingDashes, rope];
RegisterAction[$SetDefaultStrokeValues, GGEvent.SetDefaultStrokeValues, none];
RegisterAction[$ShowDefaultStrokeValues, GGEvent.ShowDefaultStrokeValues, none];
ArrowsMenu
RegisterAction[$Arrows, GGEvent.Arrows, none];
Fill Color
RegisterAction[$AreaColorFromColorTool, GGEvent.AreaColorFromColorTool, none];
RegisterAction[$AreaColorFollowColorTool, GGEvent.AreaColorFollowColorTool, none];
RegisterAction[$AreaColorToColorTool, GGEvent.AreaColorToColorTool, none];
RegisterAction[$AreaColorFromSelectedName, GGEvent.AreaColorFromSelectedName, rope];
RegisterAction[$AreaColorFromSelectedRGB, GGEvent.AreaColorFromSelectedRGB, rope];
RegisterAction[$PrintAreaColor, GGEvent.PrintAreaColor, none];
RegisterAction[$SelectMatchingAreaRGB, GGEvent.SelectMatchingAreaColor, rope];
RegisterAction[$SelectMatchingAreaCNS, GGEvent.SelectMatchingAreaColor, rope];
RegisterAction[$AreaColorBlack, GGEvent.AreaColorBlack, none];
RegisterAction[$AreaColorWhite, GGEvent.AreaColorWhite, none];
RegisterAction[$AreaColorGray, GGEvent.AreaColorGray, none];
RegisterAction[$AreaColorNone, GGEvent.AreaColorNone, none];
RegisterAction[$SetDefaultFillColor, GGEvent.SetDefaultFillColor, none];
RegisterAction[$ShowDefaultFillColor, GGEvent.ShowDefaultFillColor, none];
Stroke Color
RegisterAction[$LineColorFromColorTool, GGEvent.LineColorFromColorTool, none];
RegisterAction[$LineColorFollowColorTool, GGEvent.LineColorFollowColorTool, none];
RegisterAction[$LineColorToColorTool, GGEvent.LineColorToColorTool, none];
RegisterAction[$LineColorFromSelectedName, GGEvent.LineColorFromSelectedName, rope];
RegisterAction[$LineColorFromSelectedRGB, GGEvent.LineColorFromSelectedRGB, rope];
RegisterAction[$SelectMatchingLineRGB, GGEvent.SelectMatchingLineColor, rope];
RegisterAction[$SelectMatchingLineCNS, GGEvent.SelectMatchingLineColor, rope];
RegisterAction[$PrintLineColor, GGEvent.PrintLineColor, none];
RegisterAction[$LineColorBlack, GGEvent.LineColorBlack, none];
RegisterAction[$LineColorWhite, GGEvent.LineColorWhite, none];
RegisterAction[$LineColorGray, GGEvent.LineColorGray, none];
RegisterAction[$LineColorNone, GGEvent.LineColorNone, none];
RegisterAction[$SetDefaultLineColor, GGEvent.SetDefaultLineColor, none];
RegisterAction[$ShowDefaultLineColor, GGEvent.ShowDefaultLineColor, none];
Text Menu
RegisterAction[$AddText, GGEvent.AddText, rope];
RegisterAction[$AmplifySpaceFromSelection, GGEvent.AmplifySpaceFromSelection, refReal];
RegisterAction[$PrintAmplifySpace, GGEvent.PrintAmplifySpace, none];
RegisterAction[$DropShadowOn, GGEvent.DropShadowOn, none];
RegisterAction[$DropShadowOff, GGEvent.DropShadowOff, none];
Fonts Menu
RegisterAction[$SetPressFont, GGEvent.SetPressFont, rope];
RegisterAction[$SetPrintFont, GGEvent.SetPrintFont, rope];
RegisterAction[$SetScreenFont, GGEvent.SetScreenFont, rope];
RegisterAction[$SetFontDetailed, GGEvent.SetFontDetailed, rope];
RegisterAction[$SetFontLiteral, GGEvent.SetFontLiteral, rope];
RegisterAction[$ShowFontValues, GGEvent.ShowFontValues, none];
RegisterAction[$ShowFontValuesLiteral, GGEvent.ShowFontValuesLiteral, none];
RegisterAction[$CopyFont, GGEvent.CopyFont, none];
RegisterAction[$CopyAll, GGEvent.CopyAll, none];
RegisterAction[$MatchAll, GGEvent.MatchAll, none];
RegisterAction[$MatchSelectedName, GGEvent.MatchSelectedName, rope];
RegisterAction[$MatchSelectedNameLiteral, GGEvent.MatchSelectedNameLiteral, rope];
RegisterAction[$SetDefaultFontValues, GGEvent.SetDefaultFontValues, none];
RegisterAction[$ShowDefaultFontValues, GGEvent.ShowDefaultFontValues, none];
Group Menu
RegisterAction[$AddToGroup, GGEvent.AddToGroup, none];
RegisterAction[$SelectGroup, GGEvent.SelectGroup, none];
RegisterAction[$RemoveFromGroup, GGEvent.RemoveFromGroup, none];
RegisterAction[$PrintGroupsOfSelected, GGEvent.PrintGroupsOfSelected, none];
RegisterAction[$PrintAllGroups, GGEvent.PrintAllGroups, none];
AreaSelect Menu
RegisterAction[$AreaSelectNew, GGEvent.AreaSelectNew, none];
RegisterAction[$AreaSelectExtend, GGEvent.AreaSelectExtend, none];
RegisterAction[$AreaSelectNewAndDelete, GGEvent.AreaSelectNewAndDelete, none];
RegisterAction[$AreaSelectDegenerate, GGEvent.AreaSelectDegenerate, none];
RegisterAction[$SelectAll, GGEvent.SelectAll, none];
Curve Menu
RegisterAction[$SetStraight, GGEvent.SetStraight, none];
RegisterAction[$SetArc, GGEvent.SetArc, none];
RegisterAction[$SetSnowflake, GGEvent.SetSnowflake, none];
RegisterAction[$SetConic, GGEvent.SetConic, none];
RegisterAction[$SetBezier, GGEvent.SetBezier, none];
RegisterAction[$SetNaturalSpline, GGEvent.SetNaturalSpline, none];
RegisterAction[$SetBSpline, GGEvent.SetBSpline, none];
RegisterAction[$SelectMatchingCurve, GGEvent.SelectMatchingCurve, rope];
Gravity Line:
RegisterAction[$GravityChoiceChange, GGEvent.GravityChoiceChange, none, FALSE];
RegisterAction[$GravityExtentChange, GGEvent.GravityExtentChange, none, FALSE];
RegisterAction[$ToggleGravity, GGEvent.ToggleGravity, none, FALSE];
RegisterAction[$ToggleAlignments, GGEvent.ToggleAlignments, none];
RegisterAction[$MakeHot, GGEvent.MakeHot, none];
RegisterAction[$MakeAllHot, GGEvent.MakeAllHot, none];
RegisterAction[$MakeCold, GGEvent.MakeCold, none];
RegisterAction[$MakeAllCold, GGEvent.MakeAllCold, none];
RegisterAction[$ShowHot, GGEvent.ShowHot, none];
RegisterAction[$HideHot, GGEvent.HideHot, none];
RegisterAction[$DropAnchor, GGEvent.DropAnchor, none];
RegisterAction[$LiftAnchor, GGEvent.KillAnchor, none];
RegisterAction[$StandardAlignments, GGEvent.StandardAlignments, none];
Unit Line
RegisterAction[$RadiusUnitFromSegment, GGEvent.ScaleUnitFromSegment, none];
RegisterAction[$RadiusUnitFromValue, GGEvent.ScaleUnitFromValue, none];
RegisterAction[$RadiusUnitFromSelection, GGEvent.ScaleUnitFromSelection, refReal];
RegisterAction[$InchScaleUnit, GGEvent.InchScaleUnit, none];
RegisterAction[$CentimeterScaleUnit, GGEvent.CentimeterScaleUnit, none];
RegisterAction[$PointsScaleUnit, GGEvent.PointsScaleUnit, none];
RegisterAction[$PrintScaleUnit, GGEvent.PrintScaleUnit, none];
Slope Line
RegisterAction[$SlopePrompt, GGEvent.SlopePrompt, none];
RegisterAction[$AddSlope, GGEvent.AddSlope, none];
RegisterAction[$GetSlope, GGEvent.GetSlope, none];
RegisterAction[$ToggleSlope, GGEvent.ToggleSlope, none];
RegisterAction[$DeleteSlope, GGEvent.DeleteSlope, none];
Angle Line
RegisterAction[$AnglePrompt, GGEvent.AnglePrompt, none];
RegisterAction[$AddAngle, GGEvent.AddAngle, none];
RegisterAction[$GetAngle, GGEvent.GetAngle, none];
RegisterAction[$ToggleAngle, GGEvent.ToggleAngle, none];
RegisterAction[$DeleteAngle, GGEvent.DeleteAngle, none];
Radius Line
RegisterAction[$RadiusPrompt, GGEvent.RadiusPrompt, none];
RegisterAction[$AddRadius, GGEvent.AddRadius, none];
RegisterAction[$GetRadius, GGEvent.GetRadius, none];
RegisterAction[$ToggleRadius, GGEvent.ToggleRadius, none];
RegisterAction[$DeleteRadius, GGEvent.DeleteRadius, none];
Distance Line
RegisterAction[$DistancePrompt, GGEvent.DistancePrompt, none];
RegisterAction[$AddDistance, GGEvent.AddDistance, none];
RegisterAction[$GetDistance, GGEvent.GetDistance, none];
RegisterAction[$ToggleDistance, GGEvent.ToggleDistance, none];
RegisterAction[$DeleteDistance, GGEvent.DeleteDistance, none];
Coordinate Line
RegisterAction[$MeasureSlopeHit, GGEvent.MeasureSlopeHit, none];
RegisterAction[$MeasureAngleHit, GGEvent.MeasureAngleHit, none];
RegisterAction[$MeasureRadiusHit, GGEvent.MeasureRadiusHit, none];
RegisterAction[$MeasureLineDistHit, GGEvent.MeasureLineDistHit, none];
Miscellaneous Keyboard only
RegisterAction[$ReloadTipTable, GGEvent.ReloadTipTable, none];
RegisterAction[$AllAlignmentsOff, GGEvent.AllAlignmentsOff, none];
RegisterAction[$InitializeAlignments, GGEvent.InitializeAlignments, none];
RegisterAction[$DeleteCaretSegment, GGEvent.DeleteCaretSegment, none];
RegisterAction[$IPSnapShot, GGEvent.IPSnapShot, none, FALSE];
RegisterAction[$EndOfSessionLogMessage, GGSessionLog.EndOfScriptMessage, none];
RegisterAction[$PrintRope, GGEvent.PrintRope, none, FALSE];
Setting Parts of the Gargoyle State
RegisterAction[$SetGravityExtent, GGEvent.SetGravityExtent, none, FALSE];
RegisterAction[$SetShowColors, GGEvent.SetShowColors, none, FALSE];
RegisterAction[$SetGravity, GGEvent.SetGravity, none, FALSE];
RegisterAction[$SetMidpoints, GGEvent.SetMidpoints, none, FALSE];
RegisterAction[$SetHeuristics, GGEvent.SetHeuristics, none, FALSE];
RegisterAction[$SetDefaultFont, GGEvent.SetDefaultFont, none, FALSE];
RegisterAction[$ToggleShowColors, GGEvent.ToggleShowColors, none, FALSE];
RegisterAction[$ScreenChoiceChange, GGEvent.ScreenChoiceChange, none];
RegisterAction[$ToggleMidpoints, GGEvent.ToggleMidpoints, none];
RegisterAction[$ToggleHeuristics, GGEvent.ToggleHeuristics, none];
Internal Atoms
RegisterAction[$SawTextFinish, GGEvent.SawTextFinish, none, FALSE];
RegisterAction[$SawMouseFinish, GGMouseEvent.HandleMouseless, none, FALSE];
Mouse Events
RegisterAction[$StartCaretPos, GGMouseEvent.HandleMouse, none, FALSE];
RegisterAction[$StartAdd, GGMouseEvent.HandleMouse, none, FALSE];
RegisterAction[$StartBox, GGMouseEvent.HandleMouse, none, FALSE];
RegisterAction[$StartSelectWithBox, GGMouseEvent.HandleMouse, none, FALSE];
RegisterAction[$StartDrag, GGMouseEvent.HandleMouse, none, FALSE];
RegisterAction[$StartCopyAndDrag, GGMouseEvent.HandleMouse, none, FALSE];
RegisterAction[$StartRotate, GGMouseEvent.HandleMouse, none, FALSE];
RegisterAction[$StartScale, GGMouseEvent.HandleMouse, none, FALSE];
RegisterAction[$StartSixPoint, GGMouseEvent.HandleMouse, none, FALSE];
RegisterAction[$StartSelectJoint, GGMouseEvent.HandleMouse, none, FALSE];
RegisterAction[$StartExtSelectJoint, GGMouseEvent.HandleMouse, none, FALSE];
RegisterAction[$StartSelectSegment, GGMouseEvent.HandleMouse, none, FALSE];
RegisterAction[$StartExtSelectSegment, GGMouseEvent.HandleMouse, none, FALSE];
RegisterAction[$StartSelectTrajectory, GGMouseEvent.HandleMouse, none, FALSE];
RegisterAction[$StartExtSelectTrajectory, GGMouseEvent.HandleMouse, none, FALSE];
RegisterAction[$StartSelectTopLevel, GGMouseEvent.HandleMouse, none, FALSE];
RegisterAction[$StartExtSelectTopLevel, GGMouseEvent.HandleMouse, none, FALSE];
RegisterAction[$StartExtendSelection, GGMouseEvent.HandleMouse, none, FALSE];
RegisterAction[$StartDeselectJoint, GGMouseEvent.HandleMouse, none, FALSE];
RegisterAction[$StartDeselectSegment, GGMouseEvent.HandleMouse, none, FALSE];
RegisterAction[$StartDeselectTrajectory, GGMouseEvent.HandleMouse, none, FALSE];
RegisterAction[$StartDeselectTopLevel, GGMouseEvent.HandleMouse, none, FALSE];
RegisterAction[$During, GGMouseEvent.HandleMouse, none, FALSE];
RegisterAction[$AllUp, GGMouseEvent.HandleMouse, none, FALSE];
RegisterAction[$GuardUp, GGMouseEvent.HandleMouse, none, FALSE];
RegisterAction[$MouseUp, GGMouseEvent.HandleMouse, none, FALSE];
Miscellaneous Mouse Only
RegisterAction[$MeasureSlopeHit, GGEvent.MeasureSlopeHit, none];
RegisterAction[$MeasureSlopeHit, GGEvent.MeasureSlopeHit, none];
RegisterAction[$MeasureSlopeHit, GGEvent.MeasureSlopeHit, none];
RegisterAction[$MeasureSlopeHit, GGEvent.MeasureSlopeHit, none];
RegisterAction[$MeasureSlopeHit, GGEvent.MeasureSlopeHit, none];
RegisterAction[$MeasureSlopeHit, GGEvent.MeasureSlopeHit, none];
}; -- end of RegisterGargoyleActions