コード例 #1
0
ファイル: GoBalloon.cs プロジェクト: lian5599/NewSolution
        /// <summary>
        /// Perform the usual undo and redo changes.
        /// </summary>
        /// <param name="e"></param>
        /// <param name="undo"></param>
        public override void ChangeValue(GoChangedEventArgs e, bool undo)
        {
            switch (e.SubHint)
            {
            case 2310:
                Anchor = (GoObject)e.GetValue(undo);
                break;

            case 2311:
                Corner = e.GetSize(undo);
                break;

            case 2312:
                BaseWidth = e.GetFloat(undo);
                break;

            case 2313:
                UnanchoredOffset = e.GetSize(undo);
                break;

            case 2314:
                Reanchorable = (bool)e.GetValue(undo);
                break;

            default:
                base.ChangeValue(e, undo);
                break;
            }
        }
コード例 #2
0
ファイル: GoComment.cs プロジェクト: lian5599/NewSolution
        /// <summary>
        /// Handle this class's property changes for undo and redo
        /// </summary>
        /// <param name="e"></param>
        /// <param name="undo"></param>
        public override void ChangeValue(GoChangedEventArgs e, bool undo)
        {
            switch (e.SubHint)
            {
            case 2301:
                TopLeftMargin = e.GetSize(undo);
                break;

            case 2302:
                BottomRightMargin = e.GetSize(undo);
                break;

            case 2303:
                PartID = e.GetInt(undo);
                break;

            case 2304:
                Background = (GoObject)e.GetValue(undo);
                break;

            case 2305:
                Label = (GoText)e.GetValue(undo);
                break;

            default:
                base.ChangeValue(e, undo);
                break;
            }
        }
コード例 #3
0
ファイル: GoIconicNode.cs プロジェクト: lian5599/NewSolution
        /// <summary>
        /// Handle this class's property changes for undo and redo
        /// </summary>
        /// <param name="e"></param>
        /// <param name="undo"></param>
        public override void ChangeValue(GoChangedEventArgs e, bool undo)
        {
            switch (e.SubHint)
            {
            case 2651:
                DraggableLabel = (bool)e.GetValue(undo);
                break;

            case 2652:
                Icon = (GoObject)e.GetValue(undo);
                break;

            case 2653:
                Label = (GoText)e.GetValue(undo);
                break;

            case 2654:
                Port = (GoPort)e.GetValue(undo);
                break;

            case 2655:
                LabelOffset = e.GetSize(undo);
                break;

            default:
                base.ChangeValue(e, undo);
                break;
            }
        }
コード例 #4
0
ファイル: GoBasicNode.cs プロジェクト: lian5599/NewSolution
        /// <summary>
        /// Handle this class's property changes for undo and redo
        /// </summary>
        /// <param name="e"></param>
        /// <param name="undo"></param>
        public override void ChangeValue(GoChangedEventArgs e, bool undo)
        {
            switch (e.SubHint)
            {
            case 2101:
                LabelSpot = e.GetInt(undo);
                break;

            case 2102:
                Shape = (GoShape)e.GetValue(undo);
                break;

            case 2103:
                Label = (GoText)e.GetValue(undo);
                break;

            case 2104:
                Port = (GoPort)e.GetValue(undo);
                break;

            case 2105:
                MiddleLabelMargin = e.GetSize(undo);
                break;

            case 2106:
                AutoResizes = (bool)e.GetValue(undo);
                break;

            default:
                base.ChangeValue(e, undo);
                break;
            }
        }
コード例 #5
0
ファイル: GoNodeIcon.cs プロジェクト: lian5599/NewSolution
        /// <summary>
        /// Handle this class's property changes for undo and redo
        /// </summary>
        /// <param name="e"></param>
        /// <param name="undo"></param>
        public override void ChangeValue(GoChangedEventArgs e, bool undo)
        {
            switch (e.SubHint)
            {
            case 2050:
                MinimumIconSize = e.GetSize(undo);
                break;

            case 2051:
                MaximumIconSize = e.GetSize(undo);
                break;

            default:
                base.ChangeValue(e, undo);
                break;
            }
        }
コード例 #6
0
        /// <summary>
        /// Handle this class's property changes for undo and redo
        /// </summary>
        /// <param name="e"></param>
        /// <param name="undo"></param>
        public override void ChangeValue(GoChangedEventArgs e, bool undo)
        {
            switch (e.SubHint)
            {
            case 2801:
                Label = (GoText)e.GetValue(undo);
                break;

            case 2802:
                Background = (GoObject)e.GetValue(undo);
                break;

            case 2803:
                TopPort = (GoPort)e.GetValue(undo);
                break;

            case 2804:
                RightPort = (GoPort)e.GetValue(undo);
                break;

            case 2805:
                BottomPort = (GoPort)e.GetValue(undo);
                break;

            case 2806:
                LeftPort = (GoPort)e.GetValue(undo);
                break;

            case 2807:
                TopLeftMargin = e.GetSize(undo);
                break;

            case 2808:
                BottomRightMargin = e.GetSize(undo);
                break;

            case 2809:
                AutoResizes = (bool)e.GetValue(undo);
                break;

            default:
                base.ChangeValue(e, undo);
                break;
            }
        }
コード例 #7
0
ファイル: GoSheet.cs プロジェクト: lian5599/NewSolution
        /// <summary>
        /// Implement undo and redo support.
        /// </summary>
        /// <param name="e"></param>
        /// <param name="undo"></param>
        public override void ChangeValue(GoChangedEventArgs e, bool undo)
        {
            switch (e.SubHint)
            {
            case 3101:
                TopLeftMargin = e.GetSize(undo);
                break;

            case 3102:
                BottomRightMargin = e.GetSize(undo);
                break;

            case 3103:
                BackgroundImageSpot = e.GetInt(undo);
                break;

            case 3104:
                ShowsMargins = (bool)e.GetValue(undo);
                break;

            case 3105:
                MarginColor = (Color)e.GetValue(undo);
                break;

            case 3110:
                Paper = (GoGrid)e.GetValue(undo);
                break;

            case 3111:
                BackgroundImage = (GoImage)e.GetValue(undo);
                break;

            case 3112:
                Grid = (GoGrid)e.GetValue(undo);
                break;

            default:
                base.ChangeValue(e, undo);
                break;
            }
        }
コード例 #8
0
ファイル: GoButton.cs プロジェクト: lian5599/NewSolution
        /// <summary>
        /// Handle undo and redo changes.
        /// </summary>
        /// <param name="e"></param>
        /// <param name="undo"></param>
        public override void ChangeValue(GoChangedEventArgs e, bool undo)
        {
            switch (e.SubHint)
            {
            case 2901:
                Background = (GoObject)e.GetValue(undo);
                break;

            case 2902:
                Icon = (GoObject)e.GetValue(undo);
                break;

            case 2903:
                Label = (GoText)e.GetValue(undo);
                break;

            case 2904:
                TopLeftMargin = e.GetSize(undo);
                break;

            case 2905:
                BottomRightMargin = e.GetSize(undo);
                break;

            case 2906:
                ActionEnabled = (bool)e.GetValue(undo);
                break;

            case 2907:
                AutoRepeating = (bool)e.GetValue(undo);
                break;

            default:
                base.ChangeValue(e, undo);
                break;
            }
        }
コード例 #9
0
        /// <summary>
        /// Handle this class's property changes for undo and redo
        /// </summary>
        /// <param name="e"></param>
        /// <param name="undo"></param>
        public override void ChangeValue(GoChangedEventArgs e, bool undo)
        {
            switch (e.SubHint)
            {
            case 1469:
                Corner = e.GetSize(undo);
                break;

            case 1470:
                ReshapableCorner = (bool)e.GetValue(undo);
                break;

            default:
                base.ChangeValue(e, undo);
                break;
            }
        }
コード例 #10
0
        /// <summary>
        /// Handle this class's property changes for undo and redo
        /// </summary>
        /// <param name="e"></param>
        /// <param name="undo"></param>
        public override void ChangeValue(GoChangedEventArgs e, bool undo)
        {
            switch (e.SubHint)
            {
            case 1421:
                Corner = e.GetSize(undo);
                break;

            case 1422:
                RoundedCornerSpots = e.GetInt(undo);
                break;

            default:
                base.ChangeValue(e, undo);
                break;
            }
        }
コード例 #11
0
        /// <summary>
        /// Handle this class's property changes for undo and redo
        /// </summary>
        /// <param name="e"></param>
        /// <param name="undo"></param>
        public override void ChangeValue(GoChangedEventArgs e, bool undo)
        {
            switch (e.SubHint)
            {
            case 1491:
                Depth = e.GetSize(undo);
                break;

            case 1492:
                Perspective = (GoPerspective)e.GetValue(undo);
                break;

            case 1493:
                ReshapableDepth = (bool)e.GetValue(undo);
                break;

            default:
                base.ChangeValue(e, undo);
                break;
            }
        }
コード例 #12
0
        /// <summary>
        /// Perform changes to the body or port margin for undo.
        /// </summary>
        /// <param name="e"></param>
        /// <param name="undo"></param>
        public override void ChangeValue(GoChangedEventArgs e, bool undo)
        {
            switch (e.SubHint)
            {
            case 2201:
                Body = (GoObject)e.GetValue(undo);
                break;

            case 2202:
                PortBorderMargin = e.GetSize(undo);
                break;

            case 2203:
                Port = (GoPort)e.GetValue(undo);
                break;

            default:
                base.ChangeValue(e, undo);
                break;
            }
        }
コード例 #13
0
        /// <summary>
        /// Handle this class's property changes for undo and redo
        /// </summary>
        /// <param name="e"></param>
        /// <param name="undo"></param>
        public override void ChangeValue(GoChangedEventArgs e, bool undo)
        {
            switch (e.SubHint)
            {
            case 1466:
                Skew = e.GetSize(undo);
                break;

            case 1467:
                ReshapableSkew = (bool)e.GetValue(undo);
                break;

            case 1468:
                Direction = (bool)e.GetValue(undo);
                break;

            default:
                base.ChangeValue(e, undo);
                ResetPath();
                break;
            }
        }