public static void RegisterVerbs() { Verb.Register(Codes.SendBack, new ChangeZ()); Verb.Register(Codes.SendBackOneStep, new ChangeZ()); Verb.Register(Codes.BringFront, new ChangeZ()); Verb.Register(Codes.BringFrontOneStep, new ChangeZ()); Verb.Register(Codes.Texture, new SelectTexture()); Verb.Register(Codes.FlipHorizontal, new QuickTransform()); Verb.Register(Codes.FlipVertical, new QuickTransform()); Verb.Register(Codes.RotateLeft, new QuickTransform()); Verb.Register(Codes.RotateRight, new QuickTransform()); Verb.Register(Codes.NudgeDown, new Nudge() { X = 0, Y = 1 }); Verb.Register(Codes.NudgeUp, new Nudge() { X = 0, Y = -1 }); Verb.Register(Codes.NudgeLeft, new Nudge() { X = -1, Y = 0 }); Verb.Register(Codes.NudgeRight, new Nudge() { X = 1, Y = 0 }); Verb.Register(Codes.TextLarger, new ChangeTextSize() { Delta = 1 }); Verb.Register(Codes.TextSmaller, new ChangeTextSize() { Delta = -1 }); Verb.Register(Codes.TidyAngle, new Tidy() { Mode = Shape.SnapModes.Angle }); Verb.Register(Codes.TidyShape, new Tidy() { Mode = Shape.SnapModes.Shape }); Verb.Register(Codes.TidyGrid, new Tidy() { Mode = Shape.SnapModes.Grid }); Verb.Register(Codes.DoubleClick, new DoubleClick()); Verb.Register(Codes.QuickAddButtons, (source, pnlView, tx) => { frmAddButtons.Display(Globals.Root.CurrentPage); }, true, view => Globals.Root.CurrentDocument.ActivityID.Equals(Activities.PaletteID)); Verb.Register(Codes.FreeTextToTextLine, new FreeTextToLine()); Verb.Register(Codes.SmallestHeight, new Alignment()); Verb.Register(Codes.SmallestWidth, new Alignment()); Verb.Register(Codes.LargestHeight, new Alignment()); Verb.Register(Codes.LargestWidth, new Alignment()); for (Codes code = Codes.AlignLeft; code <= Codes._AfterAlignment; code++) { Verb.Register(code, new Alignment()); } Verb.Register(Codes.MakeChild, new MakeChild()); Verb.Register(Codes.MoveOutOfContainer, new MoveOutOfContainer()); Verb.Register(Codes.ToggleBold, new ToggleBold()); Verb.Register(Codes.ToggleItalic, new ToggleItalic()); Verb.Register(Codes.ToggleUnderline, new ToggleUnderline()); }