[Monodevelop-patches-list] r2295 - trunk/MonoDevelop/Unused/Gdl
John Luke <jluke@cfl.rr.com>
jluke at mono-cvs.ximian.com
Sun Mar 6 19:00:17 EST 2005
Author: jluke
Date: 2005-03-06 19:00:16 -0500 (Sun, 06 Mar 2005)
New Revision: 2295
Modified:
trunk/MonoDevelop/Unused/Gdl/DockLayout.cs
trunk/MonoDevelop/Unused/Gdl/DockNotebook.cs
trunk/MonoDevelop/Unused/Gdl/DockPaned.cs
Log:
load MD defaultlayout correctly
Modified: trunk/MonoDevelop/Unused/Gdl/DockLayout.cs
===================================================================
--- trunk/MonoDevelop/Unused/Gdl/DockLayout.cs 2005-03-05 01:30:56 UTC (rev 2294)
+++ trunk/MonoDevelop/Unused/Gdl/DockLayout.cs 2005-03-07 00:00:16 UTC (rev 2295)
@@ -414,7 +414,6 @@
}
string name = node.Attributes["name"].Value;
- Console.WriteLine ("node: {0} name: {1}", node.Name, name);
if (name != null && name.Length > 0) {
obj = master.GetObject (name);
@@ -433,7 +432,7 @@
// this appears to create objects from the xml
void RecursiveBuild (XmlNode parentNode, DockObject parent)
{
- Console.WriteLine ("RecursiveBuild: {0}, {1}", parentNode.Name, parent);
+ //Console.WriteLine ("RecursiveBuild: {0}, {1}", parentNode.Name, parent);
if (master == null || parentNode == null)
return;
@@ -506,7 +505,7 @@
// start by detaching all items from the toplevels
foreach (DockObject o in master.TopLevelDocks)
- ForeachToplevelDetach (o);
+ ForeachToplevelDetach (o);
RecursiveBuild (node, null);
}
Modified: trunk/MonoDevelop/Unused/Gdl/DockNotebook.cs
===================================================================
--- trunk/MonoDevelop/Unused/Gdl/DockNotebook.cs 2005-03-05 01:30:56 UTC (rev 2294)
+++ trunk/MonoDevelop/Unused/Gdl/DockNotebook.cs 2005-03-07 00:00:16 UTC (rev 2295)
@@ -138,9 +138,9 @@
{
if (Child != null && Child is Notebook) {
if (orientation == Orientation.Horizontal)
- ((Notebook)Child).TabPos = PositionType.Top;
+ ((Notebook)Child).TabPos = PositionType.Left;
else
- ((Notebook)Child).TabPos = PositionType.Left;
+ ((Notebook)Child).TabPos = PositionType.Bottom;
}
base.SetOrientation (orientation);
}
Modified: trunk/MonoDevelop/Unused/Gdl/DockPaned.cs
===================================================================
--- trunk/MonoDevelop/Unused/Gdl/DockPaned.cs 2005-03-05 01:30:56 UTC (rev 2294)
+++ trunk/MonoDevelop/Unused/Gdl/DockPaned.cs 2005-03-07 00:00:16 UTC (rev 2295)
@@ -72,6 +72,7 @@
{
string orientation = node.Attributes["orientation"].Value;
this.Orientation = orientation == "horizontal" ? Orientation.Horizontal : Orientation.Vertical;
+ CreateChild (this.Orientation);
string locked = node.Attributes["locked"].Value;
this.Locked = locked == "no" ? false : true;
string position = node.Attributes["position"].Value;
@@ -99,7 +100,7 @@
if (pos != DockPlacement.None)
Dock (item, pos, null);
}
-
+
private void childForAll (Widget widget)
{
stored_invoker.Invoke (widget);
More information about the Monodevelop-patches-list
mailing list