Author: toshok
Date: 2006-12-04 15:34:29 -0500 (Mon, 04 Dec 2006)
New Revision: 68991
Modified:
trunk/mcs/class/Managed.Windows.Forms/SWF.csproj
trunk/mcs/class/Managed.Windows.Forms/SWF.sln
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.X11Internal/NOTES
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/CurrencyManager.cs
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridColumnStyle.cs
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridTableStyle.cs
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/CurrencyManagerTest.cs
trunk/mcs/class/Managed.Windows.Forms/build-csproj
Log:
(SetDataGrid): call
CheckValidDataSourceSystem.Windows.Forms/DataGridColumnStyle.cs
to reassign the propertydescriptor.
Modified: trunk/mcs/class/Managed.Windows.Forms/SWF.csproj
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/SWF.csproj 2006-12-04 20:33:59 UTC
(rev 68990)
+++ trunk/mcs/class/Managed.Windows.Forms/SWF.csproj 2006-12-04 20:34:29 UTC
(rev 68991)
@@ -724,6 +724,11 @@
BuildAction = "Compile"
/>
<File
+ RelPath = "System.Windows.Forms\ContextMenuStrip.cs"
+ SubType = "Code"
+ BuildAction = "Compile"
+ />
+ <File
RelPath = "System.Windows.Forms\Control.cs"
SubType = "Code"
BuildAction = "Compile"
@@ -1804,6 +1809,11 @@
BuildAction = "Compile"
/>
<File
+ RelPath = "System.Windows.Forms\IBindableComponent.cs"
+ SubType = "Code"
+ BuildAction = "Compile"
+ />
+ <File
RelPath = "System.Windows.Forms\ICommandExecutor.cs"
SubType = "Code"
BuildAction = "Compile"
@@ -2409,6 +2419,11 @@
BuildAction = "Compile"
/>
<File
+ RelPath = "System.Windows.Forms\NumericTextBox.cs"
+ SubType = "Code"
+ BuildAction = "Compile"
+ />
+ <File
RelPath = "System.Windows.Forms\NumericUpDown.cs"
SubType = "Code"
BuildAction = "Compile"
@@ -3209,6 +3224,11 @@
BuildAction = "Compile"
/>
<File
+ RelPath = "System.Windows.Forms\ToolStripContainer.cs"
+ SubType = "Code"
+ BuildAction = "Compile"
+ />
+ <File
RelPath = "System.Windows.Forms\ToolStripContentPanel.cs"
SubType = "Code"
BuildAction = "Compile"
@@ -3234,6 +3254,11 @@
BuildAction = "Compile"
/>
<File
+ RelPath = "System.Windows.Forms\ToolStripDropDownButton.cs"
+ SubType = "Code"
+ BuildAction = "Compile"
+ />
+ <File
RelPath =
"System.Windows.Forms\ToolStripDropDownCloseReason.cs"
SubType = "Code"
BuildAction = "Compile"
@@ -3269,6 +3294,11 @@
BuildAction = "Compile"
/>
<File
+ RelPath = "System.Windows.Forms\ToolStripDropDownMenu.cs"
+ SubType = "Code"
+ BuildAction = "Compile"
+ />
+ <File
RelPath =
"System.Windows.Forms\ToolStripGripDisplayStyle.cs"
SubType = "Code"
BuildAction = "Compile"
@@ -3389,17 +3419,17 @@
BuildAction = "Compile"
/>
<File
- RelPath =
"System.Windows.Forms\ToolStripManagerRenderMode.cs"
+ RelPath = "System.Windows.Forms\ToolStripManager.cs"
SubType = "Code"
BuildAction = "Compile"
/>
<File
- RelPath = "System.Windows.Forms\ToolStripMenuItem.cs"
+ RelPath =
"System.Windows.Forms\ToolStripManagerRenderMode.cs"
SubType = "Code"
BuildAction = "Compile"
/>
<File
- RelPath = "System.Windows.Forms\ToolStripMenuTracker.cs"
+ RelPath = "System.Windows.Forms\ToolStripMenuItem.cs"
SubType = "Code"
BuildAction = "Compile"
/>
@@ -3419,6 +3449,11 @@
BuildAction = "Compile"
/>
<File
+ RelPath = "System.Windows.Forms\ToolStripPanelRow.cs"
+ SubType = "Code"
+ BuildAction = "Compile"
+ />
+ <File
RelPath =
"System.Windows.Forms\ToolStripProfessionalRenderer.cs"
SubType = "Code"
BuildAction = "Compile"
@@ -3464,6 +3499,11 @@
BuildAction = "Compile"
/>
<File
+ RelPath = "System.Windows.Forms\ToolStripSplitButton.cs"
+ SubType = "Code"
+ BuildAction = "Compile"
+ />
+ <File
RelPath =
"System.Windows.Forms\ToolStripSplitStackLayout.cs"
SubType = "Code"
BuildAction = "Compile"
@@ -4039,6 +4079,46 @@
BuildAction = "Compile"
/>
<File
+ RelPath = "System.Windows.Forms.X11Internal\X11Atoms.cs"
+ SubType = "Code"
+ BuildAction = "Compile"
+ />
+ <File
+ RelPath = "System.Windows.Forms.X11Internal\X11Display.cs"
+ SubType = "Code"
+ BuildAction = "Compile"
+ />
+ <File
+ RelPath =
"System.Windows.Forms.X11Internal\X11Exception.cs"
+ SubType = "Code"
+ BuildAction = "Compile"
+ />
+ <File
+ RelPath = "System.Windows.Forms.X11Internal\X11Hwnd.cs"
+ SubType = "Code"
+ BuildAction = "Compile"
+ />
+ <File
+ RelPath = "System.Windows.Forms.X11Internal\X11RootHwnd.cs"
+ SubType = "Code"
+ BuildAction = "Compile"
+ />
+ <File
+ RelPath =
"System.Windows.Forms.X11Internal\X11ThreadQueue.cs"
+ SubType = "Code"
+ BuildAction = "Compile"
+ />
+ <File
+ RelPath = "System.Windows.Forms.X11Internal\Xlib.cs"
+ SubType = "Code"
+ BuildAction = "Compile"
+ />
+ <File
+ RelPath =
"System.Windows.Forms.X11Internal\XplatUIX11-new.cs"
+ SubType = "Code"
+ BuildAction = "Compile"
+ />
+ <File
RelPath = "resources\System.Windows.Forms.resources"
BuildAction = "EmbeddedResource"
/>
Modified: trunk/mcs/class/Managed.Windows.Forms/SWF.sln
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/SWF.sln 2006-12-04 20:33:59 UTC
(rev 68990)
+++ trunk/mcs/class/Managed.Windows.Forms/SWF.sln 2006-12-04 20:34:29 UTC
(rev 68991)
@@ -1,21 +1,35 @@
-Microsoft Visual Studio Solution File, Format Version 8.00
+Microsoft Visual Studio Solution File, Format Version 9.00
+# Visual C# Express 2005
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SWF", "SWF.csproj",
"{5E6430B2-6B9F-4E76-802E-20207EF80391}"
- ProjectSection(ProjectDependencies) = postProject
- EndProjectSection
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "testbed",
"..\testbed\testbed.csproj", "{75D9EBE5-A54C-4FFF-B536-066577092A78}"
+EndProject
Global
- GlobalSection(SolutionConfiguration) = preSolution
- Debug = Debug
- Release = Release
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug 2.0|Any CPU = Debug 2.0|Any CPU
+ Debug|Any CPU = Debug|Any CPU
+ Release 2.0|Any CPU = Release 2.0|Any CPU
+ Release|Any CPU = Release|Any CPU
EndGlobalSection
- GlobalSection(ProjectConfiguration) = postSolution
- {5E6430B2-6B9F-4E76-802E-20207EF80391}.Debug.ActiveCfg =
Debug|.NET
- {5E6430B2-6B9F-4E76-802E-20207EF80391}.Debug.Build.0 =
Debug|.NET
- {5E6430B2-6B9F-4E76-802E-20207EF80391}.Release.ActiveCfg =
Release|.NET
- {5E6430B2-6B9F-4E76-802E-20207EF80391}.Release.Build.0 =
Release|.NET
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {5E6430B2-6B9F-4E76-802E-20207EF80391}.Debug 2.0|Any
CPU.ActiveCfg = Debug 2.0|Any CPU
+ {5E6430B2-6B9F-4E76-802E-20207EF80391}.Debug 2.0|Any
CPU.Build.0 = Debug 2.0|Any CPU
+ {5E6430B2-6B9F-4E76-802E-20207EF80391}.Debug|Any CPU.ActiveCfg
= Debug|Any CPU
+ {5E6430B2-6B9F-4E76-802E-20207EF80391}.Debug|Any CPU.Build.0 =
Debug|Any CPU
+ {5E6430B2-6B9F-4E76-802E-20207EF80391}.Release 2.0|Any
CPU.ActiveCfg = Release 2.0|Any CPU
+ {5E6430B2-6B9F-4E76-802E-20207EF80391}.Release 2.0|Any
CPU.Build.0 = Release 2.0|Any CPU
+ {5E6430B2-6B9F-4E76-802E-20207EF80391}.Release|Any
CPU.ActiveCfg = Release|Any CPU
+ {5E6430B2-6B9F-4E76-802E-20207EF80391}.Release|Any CPU.Build.0
= Release|Any CPU
+ {75D9EBE5-A54C-4FFF-B536-066577092A78}.Debug 2.0|Any
CPU.ActiveCfg = Debug|Any CPU
+ {75D9EBE5-A54C-4FFF-B536-066577092A78}.Debug 2.0|Any
CPU.Build.0 = Debug|Any CPU
+ {75D9EBE5-A54C-4FFF-B536-066577092A78}.Debug|Any CPU.ActiveCfg
= Debug|Any CPU
+ {75D9EBE5-A54C-4FFF-B536-066577092A78}.Debug|Any CPU.Build.0 =
Debug|Any CPU
+ {75D9EBE5-A54C-4FFF-B536-066577092A78}.Release 2.0|Any
CPU.ActiveCfg = Release|Any CPU
+ {75D9EBE5-A54C-4FFF-B536-066577092A78}.Release 2.0|Any
CPU.Build.0 = Release|Any CPU
+ {75D9EBE5-A54C-4FFF-B536-066577092A78}.Release|Any
CPU.ActiveCfg = Release|Any CPU
+ {75D9EBE5-A54C-4FFF-B536-066577092A78}.Release|Any CPU.Build.0
= Release|Any CPU
EndGlobalSection
- GlobalSection(ExtensibilityGlobals) = postSolution
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
EndGlobalSection
- GlobalSection(ExtensibilityAddIns) = postSolution
- EndGlobalSection
EndGlobal
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/CurrencyManager.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/CurrencyManager.cs
2006-12-04 20:33:59 UTC (rev 68990)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/CurrencyManager.cs
2006-12-04 20:34:29 UTC (rev 68991)
@@ -88,18 +88,10 @@
}
}
- [MonoTODO]
internal void SetDataSource (object data_source)
{
if (this.data_source is IBindingList)
((IBindingList)this.data_source).ListChanged -=
new ListChangedEventHandler (ListChangedHandler);
- if (this.data_source is DataView) {
- DataView dataview = (DataView)this.data_source;
- dataview.Table.Columns.CollectionChanged -=
new CollectionChangeEventHandler (MetaDataChangedHandler);
- dataview.Table.ChildRelations.CollectionChanged
-= new CollectionChangeEventHandler (MetaDataChangedHandler);
-
dataview.Table.ParentRelations.CollectionChanged -= new
CollectionChangeEventHandler (MetaDataChangedHandler);
- dataview.Table.Constraints.CollectionChanged -=
new CollectionChangeEventHandler (MetaDataChangedHandler);
- }
if (data_source is IListSource)
data_source =
((IListSource)data_source).GetList();
@@ -111,13 +103,6 @@
listposition = -1;
if (this.data_source is IBindingList)
((IBindingList)this.data_source).ListChanged +=
new ListChangedEventHandler (ListChangedHandler);
- if (this.data_source is DataView) {
- DataView dataview = (DataView)this.data_source;
- dataview.Table.Columns.CollectionChanged +=
new CollectionChangeEventHandler (MetaDataChangedHandler);
- dataview.Table.ChildRelations.CollectionChanged
+= new CollectionChangeEventHandler (MetaDataChangedHandler);
-
dataview.Table.ParentRelations.CollectionChanged += new
CollectionChangeEventHandler (MetaDataChangedHandler);
- dataview.Table.Constraints.CollectionChanged +=
new CollectionChangeEventHandler (MetaDataChangedHandler);
- }
list = (IList)data_source;
@@ -172,7 +157,7 @@
get { return binding_suspended; }
}
- [MonoTODO ("this needs re-addressing once
DataViewManager.AllowNew is implemented")]
+ // XXX this needs re-addressing once DataViewManager.AllowNew
is implemented
internal bool CanAddRows {
get {
/* if we're readonly, don't even bother
checking if we can add new rows */
@@ -328,15 +313,20 @@
return TypeDescriptor.GetProperties (t, att);
}
- private void MetaDataChangedHandler (object sender,
CollectionChangeEventArgs e)
+ private void OnMetaDataChanged (EventArgs args)
{
if (MetaDataChanged != null)
- MetaDataChanged (this, EventArgs.Empty);
+ MetaDataChanged (this, args);
}
private void ListChangedHandler (object sender,
ListChangedEventArgs e)
{
switch (e.ListChangedType) {
+ case ListChangedType.PropertyDescriptorAdded:
+ case ListChangedType.PropertyDescriptorDeleted:
+ case ListChangedType.PropertyDescriptorChanged:
+ OnMetaDataChanged (EventArgs.Empty);
+ break;
case ListChangedType.ItemDeleted:
if (listposition == e.NewIndex) {
listposition = e.NewIndex - 1;
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridColumnStyle.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridColumnStyle.cs
2006-12-04 20:33:59 UTC (rev 68990)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridColumnStyle.cs
2006-12-04 20:34:29 UTC (rev 68991)
@@ -141,6 +141,8 @@
public DataGridColumnStyle (PropertyDescriptor prop)
{
+ Console.WriteLine ("creating datagridcolumnstyle {1}
with prop == {0}", prop, GetHashCode ());
+
property_descriptor = prop;
fontheight = -1;
@@ -274,6 +276,8 @@
return property_descriptor;
}
set {
+ Console.WriteLine ("setting propertydescriptor
to {0}", value);
+
if (value != property_descriptor) {
property_descriptor = value;
@@ -491,6 +495,11 @@
grid = value;
property_descriptor = null;
+
+#if false
+ if (value.ListManager != null)
+ CheckValidDataSource (value.ListManager);
+#endif
}
protected virtual void SetDataGridInColumn (DataGrid value)
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridTableStyle.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridTableStyle.cs
2006-12-04 20:33:59 UTC (rev 68990)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridTableStyle.cs
2006-12-04 20:34:29 UTC (rev 68991)
@@ -878,6 +878,8 @@
for (int i = 0; i < propcol.Count; i++)
{
+ Console.WriteLine ("Creating column {0}",
propcol[i].Name);
+
// The column style is already provided by the
user
st = column_styles[propcol[i].Name];
if (st != null) {
@@ -888,20 +890,26 @@
st.bound = true;
continue;
}
+ else
+ Console.WriteLine (1);
if (onlyBind == true) {
+ Console.WriteLine (2);
continue;
}
if (typeof (IBindingList).IsAssignableFrom
(propcol[i].PropertyType)) {
+ Console.WriteLine (3);
table_relations.Add (propcol[i].Name);
} else {
+ Console.WriteLine (4);
st = CreateGridColumn (propcol[i],
true);
st.bound = true;
st.grid = datagrid;
st.MappingName = propcol[i].Name;
st.HeaderText = propcol[i].Name;
st.Width = CurrentPreferredColumnWidth;
+ Console.WriteLine
("st.PropertyDescriptor == {0}", st.PropertyDescriptor);
column_styles.Add (st);
}
}
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.X11Internal/NOTES
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.X11Internal/NOTES
2006-12-04 20:33:59 UTC (rev 68990)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.X11Internal/NOTES
2006-12-04 20:34:29 UTC (rev 68991)
@@ -14,3 +14,16 @@
making the paint queue a ThreadQueue local thing - no locking will be
needed on it, since the only thing touching it will be the thread
running the message pump.
+
+why do we /nowarn:108? we lose tons of possibly important warnings due to
that...
+
+more event work:
+
+CheckedListBox: nothing done.
+DataGridView*: nothing done.
+FileDialog: nothing done.
+GridColumnStylesCollection: nothing done, no Component inheritance
+GridTableStylesCollection: nothing done, no Component inheritance
+MenuItem: what do we do about CloneMenu? we can't have assignment of events
like that (look for the #if notyet)
+MonthCalendar: nothing done.
+Panel: nothing done. see whether the events should be "new" or now..
\ No newline at end of file
Modified:
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/CurrencyManagerTest.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/CurrencyManagerTest.cs
2006-12-04 20:33:59 UTC (rev 68990)
+++
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/CurrencyManagerTest.cs
2006-12-04 20:34:29 UTC (rev 68991)
@@ -110,7 +110,6 @@
}
[Test] // bug #80107
- [NUnit.Framework.Category ("NotWorking")]
public void DataView ()
{
DataView dv = new DataView ();
Modified: trunk/mcs/class/Managed.Windows.Forms/build-csproj
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/build-csproj 2006-12-04 20:33:59 UTC
(rev 68990)
+++ trunk/mcs/class/Managed.Windows.Forms/build-csproj 2006-12-04 20:34:29 UTC
(rev 68991)
@@ -176,8 +176,6 @@
SWFresourcelist()
{
cat $Resource | while read SRC; do
-# Don't do AssemblyInfo, it's got signing requests and such that we don't want
-if [ "x$SRC" != "xAssembly/AssemblyInfo.cs" ] ; then
SRC=`echo $SRC | $tr '/' '\\\\'`
SRC=`echo $SRC | $tr '/' '\\\\' | sed 's/-resource://' | awk -F , '{print "
RelPath = \"" $1 "\"\n CustomToolNameSpace =
\"" $2 "\""}' | fgrep -v \"\"`
@@ -187,7 +185,6 @@
BuildAction = "EmbeddedResource"
/>
EOT
-fi
done
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches