Esempio n. 1
0
 protected internal FloatWindow(UPlan.Frame.DockForm.DockPanel dockPanel, DockPane pane, Rectangle bounds)
 {
     this.m_allowEndUserDocking = true;
     this.WinMsgHandleMap       = new Dictionary <int, HandleMsg>();
     this.InitHandleWmsgMap();
     this.InternalConstruct(dockPanel, pane, true, bounds);
 }
Esempio n. 2
0
 internal PaneCollection(UPlan.Frame.DockForm.DockPanel panel, DockState dockState)
 {
     this.m_dockPanel = panel;
     this.m_states    = new AutoHideStateCollection();
     this.States[DockState.DockTopAutoHide].Selected    = dockState == DockState.DockTopAutoHide;
     this.States[DockState.DockBottomAutoHide].Selected = dockState == DockState.DockBottomAutoHide;
     this.States[DockState.DockLeftAutoHide].Selected   = dockState == DockState.DockLeftAutoHide;
     this.States[DockState.DockRightAutoHide].Selected  = dockState == DockState.DockRightAutoHide;
 }
Esempio n. 3
0
 private Rectangle GetTopPortion(int offset, Rectangle rectDockArea)
 {
     if (this.DockPanel.DockTopPortion > 1.0)
     {
         this.DockPanel.DockTopPortion = base.Height + offset;
         return(rectDockArea);
     }
     UPlan.Frame.DockForm.DockPanel dockPanel = this.DockPanel;
     dockPanel.DockTopPortion += ((double)offset) / ((double)rectDockArea.Height);
     return(rectDockArea);
 }
Esempio n. 4
0
 private Rectangle GetRightPortion(int offset, Rectangle rectDockArea)
 {
     if (this.DockPanel.DockRightPortion > 1.0)
     {
         this.DockPanel.DockRightPortion = base.Width - offset;
         return(rectDockArea);
     }
     UPlan.Frame.DockForm.DockPanel dockPanel = this.DockPanel;
     dockPanel.DockRightPortion -= ((double)offset) / ((double)rectDockArea.Width);
     return(rectDockArea);
 }
Esempio n. 5
0
 protected AutoHideStripBase(UPlan.Frame.DockForm.DockPanel panel)
 {
     this.m_dockPanel   = panel;
     this.m_panesTop    = new PaneCollection(panel, DockState.DockTopAutoHide);
     this.m_panesBottom = new PaneCollection(panel, DockState.DockBottomAutoHide);
     this.m_panesLeft   = new PaneCollection(panel, DockState.DockLeftAutoHide);
     this.m_panesRight  = new PaneCollection(panel, DockState.DockRightAutoHide);
     base.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
     base.SetStyle(ControlStyles.Selectable, false);
     this.InitMapState();
     this.InitMapStatePanec();
 }
Esempio n. 6
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (this.DockPanel != null)
         {
             this.DockPanel.RemoveFloatWindow(this);
         }
         this.m_dockPanel = null;
     }
     base.Dispose(disposing);
 }
Esempio n. 7
0
 private void InternalConstruct(UPlan.Frame.DockForm.DockPanel dockPanel, DockPane pane, bool boundsSpecified, Rectangle bounds)
 {
     if (dockPanel == null)
     {
         throw new ArgumentNullException(Strings.FloatWindow_Constructor_NullDockPanel);
     }
     this.m_nestedPanes   = new NestedPaneCollection(this);
     base.FormBorderStyle = FormBorderStyle.Sizable;
     base.MaximizeBox     = false;
     base.MinimizeBox     = false;
     base.ShowIcon        = false;
     base.ShowInTaskbar   = false;
     if (dockPanel.RightToLeft != this.RightToLeft)
     {
         this.RightToLeft = dockPanel.RightToLeft;
     }
     if (this.RightToLeftLayout != dockPanel.RightToLeftLayout)
     {
         this.RightToLeftLayout = dockPanel.RightToLeftLayout;
     }
     base.SuspendLayout();
     if (boundsSpecified)
     {
         base.Bounds        = bounds;
         base.StartPosition = FormStartPosition.Manual;
     }
     else
     {
         base.StartPosition = FormStartPosition.WindowsDefaultLocation;
         base.Size          = dockPanel.DefaultFloatWindowSize;
     }
     this.m_dockPanel = dockPanel;
     base.Owner       = this.DockPanel.FindForm();
     this.DockPanel.AddFloatWindow(this);
     if (pane != null)
     {
         pane.FloatWindow = this;
     }
     this.MinimumSize = new Size(100, 100);
     base.ResumeLayout();
 }
Esempio n. 8
0
        public void DockTo(UPlan.Frame.DockForm.DockPanel panel, DockStyle dockStyle)
        {
            if (panel != this.DockPanel)
            {
                throw new ArgumentException(Strings.IDockDragSource_DockTo_InvalidPanel, "panel");
            }
            NestedPaneCollection nestedPanesTo = null;

            if (dockStyle == DockStyle.Top)
            {
                nestedPanesTo = this.DockPanel.DockWindows[UPlan.Frame.DockForm.DockState.DockTop].NestedPanes;
            }
            else if (dockStyle == DockStyle.Bottom)
            {
                nestedPanesTo = this.DockPanel.DockWindows[UPlan.Frame.DockForm.DockState.DockBottom].NestedPanes;
            }
            else if (dockStyle == DockStyle.Left)
            {
                nestedPanesTo = this.DockPanel.DockWindows[UPlan.Frame.DockForm.DockState.DockLeft].NestedPanes;
            }
            else if (dockStyle == DockStyle.Right)
            {
                nestedPanesTo = this.DockPanel.DockWindows[UPlan.Frame.DockForm.DockState.DockRight].NestedPanes;
            }
            else if (dockStyle == DockStyle.Fill)
            {
                nestedPanesTo = this.DockPanel.DockWindows[UPlan.Frame.DockForm.DockState.Document].NestedPanes;
            }
            DockPane prevPane = null;

            for (int i = nestedPanesTo.Count - 1; i >= 0; i--)
            {
                if (nestedPanesTo[i] != this.VisibleNestedPanes[0])
                {
                    prevPane = nestedPanesTo[i];
                }
            }
            MergeNestedPanes(this.VisibleNestedPanes, nestedPanesTo, prevPane, DockAlignment.Left, 0.5);
        }
Esempio n. 9
0
 internal DockWindow(UPlan.Frame.DockForm.DockPanel dockPanel, UPlan.Frame.DockForm.DockState dockState)
 {
     this.m_nestedPanes = new NestedPaneCollection(this);
     this.m_dockPanel   = dockPanel;
     this.m_dockState   = dockState;
     base.Visible       = false;
     base.SuspendLayout();
     if ((((this.DockState == UPlan.Frame.DockForm.DockState.DockLeft) || (this.DockState == UPlan.Frame.DockForm.DockState.DockRight)) || (this.DockState == UPlan.Frame.DockForm.DockState.DockTop)) || (this.DockState == UPlan.Frame.DockForm.DockState.DockBottom))
     {
         this.m_splitter = new SplitterControl();
         base.Controls.Add(this.m_splitter);
     }
     if (this.DockState == UPlan.Frame.DockForm.DockState.DockLeft)
     {
         this.Dock            = DockStyle.Left;
         this.m_splitter.Dock = DockStyle.Right;
     }
     else if (this.DockState == UPlan.Frame.DockForm.DockState.DockRight)
     {
         this.Dock            = DockStyle.Right;
         this.m_splitter.Dock = DockStyle.Left;
     }
     else if (this.DockState == UPlan.Frame.DockForm.DockState.DockTop)
     {
         this.Dock            = DockStyle.Top;
         this.m_splitter.Dock = DockStyle.Bottom;
     }
     else if (this.DockState == UPlan.Frame.DockForm.DockState.DockBottom)
     {
         this.Dock            = DockStyle.Bottom;
         this.m_splitter.Dock = DockStyle.Top;
     }
     else if (this.DockState == UPlan.Frame.DockForm.DockState.Document)
     {
         this.Dock = DockStyle.Fill;
     }
     base.ResumeLayout();
 }
Esempio n. 10
0
 internal DockPanelExtender(UPlan.Frame.DockForm.DockPanel dockPanel)
 {
     this.m_dockPanel = dockPanel;
 }
Esempio n. 11
0
 public void DockTo(UPlan.Frame.DockForm.DockPanel panel, DockStyle dockStyle)
 {
     this.DockHandler.DockTo(panel, dockStyle);
 }
Esempio n. 12
0
 public void Show(UPlan.Frame.DockForm.DockPanel dockPanel, Rectangle floatWindowBounds)
 {
     this.DockHandler.Show(dockPanel, floatWindowBounds);
 }
Esempio n. 13
0
 public void Show(UPlan.Frame.DockForm.DockPanel dockPanel, UPlan.Frame.DockForm.DockState dockState)
 {
     this.DockHandler.Show(dockPanel, dockState);
 }
Esempio n. 14
0
 public void Show(UPlan.Frame.DockForm.DockPanel dockPanel)
 {
     this.DockHandler.Show(dockPanel);
 }