[Monodevelop-patches-list] r2610 - trunk/MonoDevelop/Core/src/MonoDevelop.Dock
John Luke <jluke@cfl.rr.com>
jluke at mono-cvs.ximian.com
Mon Jun 27 18:32:43 EDT 2005
Author: jluke
Date: 2005-06-27 18:32:42 -0400 (Mon, 27 Jun 2005)
New Revision: 2610
Modified:
trunk/MonoDevelop/Core/src/MonoDevelop.Dock/ChangeLog
trunk/MonoDevelop/Core/src/MonoDevelop.Dock/DockLayout.cs
Log:
* DockLayout.cs: Save part of placeholders support
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Dock/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Dock/ChangeLog 2005-06-27 22:05:31 UTC (rev 2609)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Dock/ChangeLog 2005-06-27 22:32:42 UTC (rev 2610)
@@ -1,5 +1,9 @@
2005-06-27 John Luke <john.luke at gmail.com>
+ * DockLayout.cs: Save part of placeholders support
+
+2005-06-27 John Luke <john.luke at gmail.com>
+
* DockLayout.cs: catch exception on invalid XML
(SetupObject) guard against missing name attribute
part of bug #75289, based on patch from
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Dock/DockLayout.cs
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Dock/DockLayout.cs 2005-06-27 22:05:31 UTC (rev 2609)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Dock/DockLayout.cs 2005-06-27 22:32:42 UTC (rev 2610)
@@ -93,14 +93,6 @@
}
}
- private Hashtable Placeholders {
- get {
- if (placeholders == null)
- placeholders = new Hashtable ();
- return placeholders;
- }
- }
-
public Widget UI {
get { return ConstructUI ();}
}
@@ -567,9 +559,9 @@
// FIXME: save placeholders for the object
if (!(obj is DockPlaceholder)) {
- //object list = this.Placeholders[obj];
+ //ArrayList list = placeholders[obj] as ArrayList;
//foreach (DockObject child in list)
- // ForeachObjectSave (child);
+ // ForeachObjectSave (child, element);
}
// recurse the object if appropriate
@@ -584,7 +576,7 @@
}
}
- void AddPlaceholder (DockObject obj, Hashtable placeholders)
+ void AddPlaceholder (DockObject obj)
{
if (obj is DockPlaceholder) {
// FIXME: add the current placeholder to the list of placeholders for that host
@@ -593,11 +585,16 @@
void Save (XmlNode node)
{
- // FIXME: implement this?
+ if (master == null || node == null)
+ return;
+
// build the placeholder's hash: the hash keeps lists of
// placeholders associated to each object, so that we can save the
// placeholders when we are saving the object (since placeholders
// don't show up in the normal widget hierarchy)
+ placeholders = new Hashtable ();
+ foreach (DockObject obj in master.DockObjects)
+ AddPlaceholder (obj);
// save the layout recursively
foreach (DockObject o in master.TopLevelDocks)
More information about the Monodevelop-patches-list
mailing list