Free cookie consent management tool by TermsFeed Policy Generator

source: branches/PersistenceSpeedUp/HeuristicLab.ExtLibs/HeuristicLab.WinFormsUI/2.3.1/WinFormsUI-2.3.1/Docking/NestedDockingStatus.cs @ 17709

Last change on this file since 17709 was 4068, checked in by swagner, 14 years ago

Sorted usings and removed unused usings in entire solution (#1094)

File size: 2.7 KB
Line 
1using System.Drawing;
2
3namespace WeifenLuo.WinFormsUI.Docking {
4  public sealed class NestedDockingStatus {
5    internal NestedDockingStatus(DockPane pane) {
6      m_dockPane = pane;
7    }
8
9    private DockPane m_dockPane = null;
10    public DockPane DockPane {
11      get { return m_dockPane; }
12    }
13
14    private NestedPaneCollection m_nestedPanes = null;
15    public NestedPaneCollection NestedPanes {
16      get { return m_nestedPanes; }
17    }
18
19    private DockPane m_previousPane = null;
20    public DockPane PreviousPane {
21      get { return m_previousPane; }
22    }
23
24    private DockAlignment m_alignment = DockAlignment.Left;
25    public DockAlignment Alignment {
26      get { return m_alignment; }
27    }
28
29    private double m_proportion = 0.5;
30    public double Proportion {
31      get { return m_proportion; }
32    }
33
34    private bool m_isDisplaying = false;
35    public bool IsDisplaying {
36      get { return m_isDisplaying; }
37    }
38
39    private DockPane m_displayingPreviousPane = null;
40    public DockPane DisplayingPreviousPane {
41      get { return m_displayingPreviousPane; }
42    }
43
44    private DockAlignment m_displayingAlignment = DockAlignment.Left;
45    public DockAlignment DisplayingAlignment {
46      get { return m_displayingAlignment; }
47    }
48
49    private double m_displayingProportion = 0.5;
50    public double DisplayingProportion {
51      get { return m_displayingProportion; }
52    }
53
54    private Rectangle m_logicalBounds = Rectangle.Empty;
55    public Rectangle LogicalBounds {
56      get { return m_logicalBounds; }
57    }
58
59    private Rectangle m_paneBounds = Rectangle.Empty;
60    public Rectangle PaneBounds {
61      get { return m_paneBounds; }
62    }
63
64    private Rectangle m_splitterBounds = Rectangle.Empty;
65    public Rectangle SplitterBounds {
66      get { return m_splitterBounds; }
67    }
68
69    internal void SetStatus(NestedPaneCollection nestedPanes, DockPane previousPane, DockAlignment alignment, double proportion) {
70      m_nestedPanes = nestedPanes;
71      m_previousPane = previousPane;
72      m_alignment = alignment;
73      m_proportion = proportion;
74    }
75
76    internal void SetDisplayingStatus(bool isDisplaying, DockPane displayingPreviousPane, DockAlignment displayingAlignment, double displayingProportion) {
77      m_isDisplaying = isDisplaying;
78      m_displayingPreviousPane = displayingPreviousPane;
79      m_displayingAlignment = displayingAlignment;
80      m_displayingProportion = displayingProportion;
81    }
82
83    internal void SetDisplayingBounds(Rectangle logicalBounds, Rectangle paneBounds, Rectangle splitterBounds) {
84      m_logicalBounds = logicalBounds;
85      m_paneBounds = paneBounds;
86      m_splitterBounds = splitterBounds;
87    }
88  }
89}
Note: See TracBrowser for help on using the repository browser.