aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/DockStack.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-12-06 17:36:21 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-12-06 17:36:21 +0100
commit309945235a6bfd0c16cd64b8a0ad2501d7b62b50 (patch)
tree42ca544a3b08175f2389709958fe860ba7d487fe /src/GraphicObjects/DockStack.cs
parent78592468fe75f09299e12d8a8fbb94635a2befd6 (diff)
wip
Diffstat (limited to 'src/GraphicObjects/DockStack.cs')
-rw-r--r--src/GraphicObjects/DockStack.cs11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/GraphicObjects/DockStack.cs b/src/GraphicObjects/DockStack.cs
index aa7c33da..75f0d2bb 100644
--- a/src/GraphicObjects/DockStack.cs
+++ b/src/GraphicObjects/DockStack.cs
@@ -116,9 +116,9 @@ namespace Crow
{
if (IsDropTarget) {
DockWindow dw = IFace.DragAndDropOperation.DragSource as DockWindow;
- if (dw.IsDocked) {
- base.onMouseMove (sender, e);
- return;
+ if (dw == null || dw.IsDocked) {
+ base.onMouseMove (sender, e);
+ return;
}
Alignment curDockPos = dw.DockingPosition;
@@ -416,6 +416,9 @@ namespace Crow
dw.Width = Measure.Parse (getConfAttrib (conf, ref i));
dw.Height = Measure.Parse (getConfAttrib (conf, ref i));
dw.DockingPosition = (Alignment)Enum.Parse (typeof(Alignment), getConfAttrib (conf, ref i));
+ dw.savedSlot = Rectangle.Parse (getConfAttrib (conf, ref i));
+ dw.wasResizable = Boolean.Parse (getConfAttrib (conf, ref i));
+
dw.IsDocked = true;
dw.DataSource = dataSource;
this.AddChild (dw);
@@ -450,7 +453,7 @@ namespace Crow
for (int i = 0; i < Children.Count; i++) {
if (Children [i] is DockWindow) {
DockWindow dw = Children [i] as DockWindow;
- tmp.Append (string.Format("WIN;{0};{1};{2};{3};",dw.Name, dw.Width, dw.Height, dw.DockingPosition));
+ tmp.Append (string.Format("WIN;{0};{1};{2};{3};{4};{5};",dw.Name, dw.Width, dw.Height, dw.DockingPosition, dw.savedSlot, dw.wasResizable));
} else if (Children [i] is DockStack) {
DockStack ds = Children [i] as DockStack;
tmp.Append (string.Format("STK;{0};{1};{2};{3}", ds.Width, ds.Height, ds.Orientation, ds.exportConfig()));