Ejemplo n.º 1
0
        public TransitionLine GetLine(TransitionKind kind)
        {
            TransitionLine ln = null;

            Lines.TryGetValue(kind, out ln);
            return(ln);
        }
Ejemplo n.º 2
0
 public TransitionRange(TransitionLine line, ElementTransform trans)
 {
     ParentLine = line;
     OwnerTrans = trans;
     CurFocusRangeOptPart = BodyOperationPart.Nothing;
     UseFrameRectProjectingEffect = true;
 }
Ejemplo n.º 3
0
        public TransitionGraphics(DevExpress.XtraEditors.XtraScrollableControl pnlContainer, Panel pnlParent, int rulerHeight, int lineHeight)
        {
            ParentPanel                        = pnlParent;
            ParentPanelContainter              = pnlContainer;
            ParentPanelContainter.SizeChanged += new EventHandler(ParentPanelContainer_SizeChanged);
            PanelViewport.X                    = 0;
            PanelViewport.Y                    = 0;
            IsTimeRulerSelected                = false;
            ParentPanelContainer_SizeChanged(null, null);
            TimeRuler = new TransitionTimeRuler(this, rulerHeight);
            int yPos = rulerHeight;

            foreach (TransitionKind tk in Enum.GetValues(typeof(TransitionKind)))
            {
                if (tk == TransitionKind.Unknown)
                {
                    continue;
                }
                Lines[tk] = new TransitionLine(tk, this, yPos, lineHeight);
                yPos     += lineHeight;
            }
            OperationHistory.Instance.NewOperationCommited += new OperationHistory.Delegate_OnOperationChanged(OperationHistory_OnCommitedNewOperation);
        }