diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2015-05-02 09:19:19 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2015-05-02 09:19:19 +0200 |
| commit | 40392cc3bcaee5b67d85b0aabfd42d2881823bd6 (patch) | |
| tree | 809bc55854f13cb031d26129e7db24076119bca0 /src/GraphicObjects/Group.cs | |
| parent | c88d3c2e0b3e9e69df5f1879b9d8935d3ae0d390 (diff) | |
Layouting queue, debug
test4 validated
Diffstat (limited to 'src/GraphicObjects/Group.cs')
| -rw-r--r-- | src/GraphicObjects/Group.cs | 59 |
1 files changed, 11 insertions, 48 deletions
diff --git a/src/GraphicObjects/Group.cs b/src/GraphicObjects/Group.cs index e1639533..7b63156f 100644 --- a/src/GraphicObjects/Group.cs +++ b/src/GraphicObjects/Group.cs @@ -46,6 +46,7 @@ namespace go child.Parent = null;
this.RegisterForLayouting ((int)LayoutingType.Sizing);
}
+
public void putWidgetOnTop(GraphicObject w)
{
if (Children.Contains(w))
@@ -104,12 +105,6 @@ namespace go }
return false;
}
- public override void InvalidateLayout()
- {
- base.InvalidateLayout();
- foreach (GraphicObject w in Children)
- w.InvalidateLayout();
- }
protected override Size measureRawSize ()
{
Size tmp = new Size ();
@@ -125,39 +120,7 @@ namespace go return tmp;
}
-// public override void UpdateLayout (LayoutingType layoutType)
-// {
-// if (LayoutIsValid)
-// return;
-//
-// bool atLeastOneChildHasWNotDependingOnParent = false;
-// bool atLeastOneChildHasHNotDependingOnParent = false;
-//
-//// foreach (GraphicObject c in Children) {
-//// if (c.LayoutIsValid)
-//// continue;
-////
-//// if (Width < 0 && c.WIsValid) {
-//// if (!atLeastOneChildHasWNotDependingOnParent && !(this is GenericStack))
-//// c.XIsValid = true;
-//// atLeastOneChildHasWNotDependingOnParent = true;
-//// }
-//// if (Height < 0 && c.HIsValid) {
-//// if (!atLeastOneChildHasHNotDependingOnParent && !(this is GenericStack))
-//// c.YIsValid = true;
-//// atLeastOneChildHasHNotDependingOnParent = true;
-//// }
-////
-//// c.UpdateLayout ();
-//// }
-//
-//// if (Width < 0 && !atLeastOneChildHasWNotDependingOnParent)
-//// Debug.WriteLine ("ERROR: no child has fixed width and parent width is set to content!");
-//// if (Height < 0 && !atLeastOneChildHasHNotDependingOnParent)
-//// Debug.WriteLine ("ERROR: no child has fixed height and parent height is set to content!");
-//
-// //base.UpdateLayout ();
-// }
+
public override Rectangle ContextCoordinates(Rectangle r){
return r + ClientRectangle.Position;
@@ -246,15 +209,15 @@ namespace go }
#endregion
- public override string ToString()
- {
- string tmp = base.ToString();
- foreach (GraphicObject w in Children)
- {
- tmp += "\n" + w.ToString();
- }
- return tmp;
- }
+// public override string ToString()
+// {
+// string tmp = base.ToString();
+// foreach (GraphicObject w in Children)
+// {
+// tmp += "\n" + w.ToString();
+// }
+// return tmp;
+// }
#region IXmlSerializable
|