mono.git
17 years agoAdd msvc directory to hold all things needed to build mono runtime
Jonathan Chambers [Fri, 9 Mar 2007 17:00:52 +0000 (17:00 -0000)]
Add msvc directory to hold all things needed to build mono runtime
in Visual Studio.

svn path=/trunk/mono/; revision=74015

17 years agoWMF and EMF test cases
Sebastien Pouliot [Fri, 9 Mar 2007 16:57:45 +0000 (16:57 -0000)]
WMF and EMF test cases

svn path=/trunk/mcs/; revision=74014

17 years ago2007-03-09 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 9 Mar 2007 16:54:47 +0000 (16:54 -0000)]
2007-03-09  Sebastien Pouliot  <sebastien@ximian.com>

* MetafileHeader.cs: Fix offset to match correct C definition.

svn path=/trunk/mcs/; revision=74013

17 years ago2007-03-09 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 9 Mar 2007 15:37:58 +0000 (15:37 -0000)]
2007-03-09  Jonathan Pobst  <monkey@jpobst.com>

* ToolStrip.cs: Rework AutoSize to adjust height when docked to the
top or bottom.
* ToolStripItem.cs: Make Image drawing take ImageScaling into account.
* ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
item is added.  This logic was moved to ToolStrip.OnItemAdded.
[Fixes bug #81090]

svn path=/trunk/mcs/; revision=74009

17 years ago2007-03-09 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Fri, 9 Mar 2007 15:01:00 +0000 (15:01 -0000)]
2007-03-09  Jonathan Chambers  <joncham@gmail.com>

* configure.in:  Define UNICODE and _UNICODE on Win32.
* io-layer.h:  Remove UNICODE and _UNICODE defines as
        these are done by configure.in now.
* mono-dl.c:  Use Unicode characters for Win32 functions.
* appdomain.c:  Fix shadow copy on Windows. Use g_snprintf instead
of snprintf as it doesn't exist on Win32 (VS build); also for uniformity.

Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=74007

17 years agoupdate to reflect fixed test
Raja R Harinath [Fri, 9 Mar 2007 14:32:09 +0000 (14:32 -0000)]
update to reflect fixed test

svn path=/trunk/mcs/; revision=74006

17 years ago* cs-parser.jay (WHERE): Move before QUERY_FIRST_TOKEN. 'where'
Raja R Harinath [Fri, 9 Mar 2007 14:27:40 +0000 (14:27 -0000)]
* cs-parser.jay (WHERE): Move before QUERY_FIRST_TOKEN.  'where'
is a valid keyword outside a linq expression too.

svn path=/trunk/mcs/; revision=74005

17 years ago2007-03-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 9 Mar 2007 14:17:11 +0000 (14:17 -0000)]
2007-03-09  Zoltan Varga  <vargaz@gmail.com>

* docs/aot-compiler.txt: Update 'future work'.

svn path=/trunk/mono/; revision=74003

17 years agoBugfix for #81089
Marek Habersack [Fri, 9 Mar 2007 14:16:04 +0000 (14:16 -0000)]
Bugfix for #81089

svn path=/trunk/mcs/; revision=74002

17 years ago2007-03-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 9 Mar 2007 14:12:23 +0000 (14:12 -0000)]
2007-03-09  Zoltan Varga  <vargaz@gmail.com>

* aot-runtime.c (load_aot_module): Load all dependent assemblies eagerly since all
AOT code depends on this.

svn path=/trunk/mono/; revision=74001

17 years ago2007-03-09 Andreia Gaita <avidigal@novell.com>
Andreia Gaita [Fri, 9 Mar 2007 13:51:10 +0000 (13:51 -0000)]
2007-03-09  Andreia Gaita  <avidigal@novell.com>

* SqlCommandTest.cs: Add new test to check string parameters with
value = null and size 0. Fixed tests for NET 2.0 (different exceptions
thrown)

* ConnectionManager.cs: small fix to close the connection if we
mean to change the connection string and open it again

svn path=/trunk/mcs/; revision=74000

17 years ago2007-03-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
Rolf Bjarne Kvinge [Fri, 9 Mar 2007 10:12:52 +0000 (10:12 -0000)]
2007-03-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>

* VBCodeCompiler.cs: Reference Microsoft.VisualBasic.dll and not Microsoft.VisualBasic (patch by Frederik Carlier).
Don't set /wlevel, vbnc doesn't support it.

svn path=/trunk/mcs/; revision=73996

17 years ago2007-03-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
Rolf Bjarne Kvinge [Fri, 9 Mar 2007 09:21:01 +0000 (09:21 -0000)]
2007-03-09  Rolf Bjarne Kvinge <RKvinge@novell.com>

* System.Windows.Forms_test.dll.sources: Added FormHandleTest and MdiFormHandleTest.

svn path=/trunk/mcs/; revision=73994

17 years ago2007-03-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
Rolf Bjarne Kvinge [Fri, 9 Mar 2007 09:20:46 +0000 (09:20 -0000)]
2007-03-09  Rolf Bjarne Kvinge <RKvinge@novell.com>

* FormHandleTest.cs: Added.
* MdiFormHandleTest.cs: Added.

svn path=/trunk/mcs/; revision=73993

17 years ago* loader.c: Reapply patch for bug #79424.
Gert Driesen [Fri, 9 Mar 2007 07:03:49 +0000 (07:03 -0000)]
* loader.c: Reapply patch for bug #79424.

svn path=/trunk/mono/; revision=73992

17 years ago2007-03-09 Nagappan A <anagappan@novell.com>
Nagappan Alagappan [Fri, 9 Mar 2007 06:35:45 +0000 (06:35 -0000)]
2007-03-09  Nagappan A  <anagappan@novell.com>

* System.Data.dll.sources: Removed
System.Data.SqlTypes/SqlStreamChars.cs as its not part of 1.0 and
2.0 profile.

svn path=/trunk/mcs/; revision=73991

17 years ago2007-03-09 Nagappan A <anagappan@novell.com>
Nagappan Alagappan [Fri, 9 Mar 2007 06:33:51 +0000 (06:33 -0000)]
2007-03-09  Nagappan A  <anagappan@novell.com>

* SqlBooleanTest.cs (GetXsdTypeTest, GreaterThanTest)
(GreaterThanOrEqualTest, LessThanEqualTest, LessThanOrEqualTest):
Added new tests.

* SqlBinaryTest.cs (GetXsdTypeTest): Added new test.

* SqlByteTest.cs (GetXsdTypeTest): Added new test.

* SqlBytesTest.cs (GetXsdTypeTest): Added new test.

* SqlDateTimeTest.cs (GetXsdTypeTest): Added new test.

* SqlDecimalTest.cs (GetXsdTypeTest): Added new test.

* SqlGuidTest.cs (GetXsdTypeTest): Added new test.

* SqlInt16Test.cs (GetXsdTypeTest): Added new test.

* SqlInt32Test.cs (GetXsdTypeTest): Added new test.

* SqlInt64Test.cs (GetXsdTypeTest): Added new test.

* SqlMoneyTest.cs (GetXsdTypeTest): Added new test.

* SqlSingleTest.cs (GetXsdTypeTest): Added new test.

* SqlStringTest.cs (GetXsdTypeTest): Added new test.

svn path=/trunk/mcs/; revision=73990

17 years ago2007-03-09 Nagappan A <anagappan@novell.com>
Nagappan Alagappan [Fri, 9 Mar 2007 06:11:46 +0000 (06:11 -0000)]
2007-03-09  Nagappan A  <anagappan@novell.com>

* SqlBoolean.cs (GreaterThan, GreaterThanOrEqual, LessThan)
(LessThanOrEqual, GetXsdType, operator >, >=, <, <=): Implemented
missing 2.0 methods.

* SqlDouble.cs (GetXsdType): Implemented missing 2.0 method.

* SqlString.cs (GetXsdType): Implemented missing 2.0 method.

* SqlBinary.cs (Add, GetXsdType): Implemented missing 2.0 methods.

* SqlByte.cs (GetXsdType): Implemented missing 2.0 method.

* SqlBytes.cs (GetXsdType): Implemented missing 2.0 method.

* SqlChars.cs (GetXsdType): Implemented missing 2.0 method.

* SqlXml.cs (GetXsdType): Implemented missing 2.0 method.

* SqlGuid.cs (GetXsdType): Implemented missing 2.0 method.

* SqlInt64.cs (GetXsdType): Implemented missing 2.0 method.

* SqlInt32.cs (GetXsdType): Implemented missing 2.0 method.

* SqlInt16.cs (GetXsdType): Implemented missing 2.0 method.

* SqlNotFilledException.cs: Fixed syntax errors based on class
status page.

* SqlDecimal.cs (GetXsdType): Implemented missing method.

* SqlDateTime.cs (GetXsdType): Implemented missing method.

* SqlMoney.cs (GetXsdType): Implemented missing 2.0 method.

* SqlSingle.cs (GetXsdType): Implemented missing 2.0 method.

svn path=/trunk/mcs/; revision=73989

17 years agoFix for #81066 plus test
Miguel de Icaza [Fri, 9 Mar 2007 06:08:25 +0000 (06:08 -0000)]
Fix for #81066 plus test

svn path=/trunk/mcs/; revision=73988

17 years ago2007-03-09 Nagappan A <anagappan@novell.com>
Nagappan Alagappan [Fri, 9 Mar 2007 05:49:46 +0000 (05:49 -0000)]
2007-03-09  Nagappan A  <anagappan@novell.com>

* SqlDataReader.cs: Fixed syntax erros reported in class status
page.

svn path=/trunk/mcs/; revision=73987

17 years ago2007-03-09 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Fri, 9 Mar 2007 05:43:22 +0000 (05:43 -0000)]
2007-03-09  Miguel de Icaza  <miguel@novell.com>

* FtpDataStream.cs: Close must be called on the stream before we
attempt to read a status code from the remote server.

svn path=/trunk/mcs/; revision=73986

17 years agoAdd installvst
Miguel de Icaza [Fri, 9 Mar 2007 04:55:47 +0000 (04:55 -0000)]
Add installvst

svn path=/trunk/mono/; revision=73985

17 years agoFix
Miguel de Icaza [Fri, 9 Mar 2007 02:43:40 +0000 (02:43 -0000)]
Fix

svn path=/trunk/mcs/; revision=73984

17 years agoFix
Miguel de Icaza [Fri, 9 Mar 2007 02:41:23 +0000 (02:41 -0000)]
Fix

svn path=/trunk/mcs/; revision=73983

17 years ago2007-03-09 Andreia Gaita <avidigal@novell.com>
Andreia Gaita [Fri, 9 Mar 2007 02:19:43 +0000 (02:19 -0000)]
2007-03-09  Andreia Gaita  <avidigal@novell.com>

* SqlCommand.cs (ExecuteScalar): Fix returned value for
stored procedure calls to return the first column of the
first row produced by the proc.

* SqlCommandTest.cs: Add parameterized stored procedure call tests
to ExecuteScalar and ExecuteNonQuery.

svn path=/trunk/mcs/; revision=73982

17 years ago2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 9 Mar 2007 02:12:14 +0000 (02:12 -0000)]
2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListViewTest.cs: Added tests for the ListView and
Index properties of ListViewItems in VirtualMode.

* ListViewCollectionsTest.cs: Remove warning when building
tests.

svn path=/trunk/mcs/; revision=73981

17 years agoFix the space problem for FTP requests
Miguel de Icaza [Fri, 9 Mar 2007 01:35:48 +0000 (01:35 -0000)]
Fix the space problem for FTP requests

svn path=/trunk/mcs/; revision=73979

17 years ago2007-03-08 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 9 Mar 2007 00:58:16 +0000 (00:58 -0000)]
2007-03-08  Sebastien Pouliot  <sebastien@ximian.com>

* TestBitmap.cs: Re-add the 2 NotWorking cases that were removed by
mistake.

svn path=/trunk/mcs/; revision=73978

17 years agoadded installvst - a utility to install packages using the .vstemplate file
Marek Habersack [Fri, 9 Mar 2007 00:50:34 +0000 (00:50 -0000)]
added installvst - a utility to install packages using the .vstemplate file

svn path=/trunk/mcs/; revision=73977

17 years ago2007-03-08 David Mitchell <dmitchell@logos.com>
Miguel de Icaza [Fri, 9 Mar 2007 00:38:11 +0000 (00:38 -0000)]
2007-03-08  David Mitchell <dmitchell@logos.com>

* List.cs: Fix the case where List.set_Item(int index) throws
inappropriate exception when index is equal to List.Count

List.IndexOf(object item) and IList.Contains(object item) throw
exceptions when given invalid types.

IList.Add(object item) throws InvalidCastException when item is
not of the correct type.

svn path=/trunk/mcs/; revision=73976

17 years agoFix the theme test errors.
Marek Habersack [Fri, 9 Mar 2007 00:04:23 +0000 (00:04 -0000)]
Fix the theme test errors.

svn path=/trunk/mcs/; revision=73975

17 years agoMake sure themes are recompiled whenever .skin and .css files are updated
Marek Habersack [Thu, 8 Mar 2007 23:41:36 +0000 (23:41 -0000)]
Make sure themes are recompiled whenever .skin and .css files are updated

svn path=/trunk/mcs/; revision=73974

17 years ago2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Thu, 8 Mar 2007 22:55:44 +0000 (22:55 -0000)]
2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.

svn path=/trunk/mcs/; revision=73973

17 years ago2007-03-08 Chris Toshok <toshok@ximian.com>
Chris Toshok [Thu, 8 Mar 2007 21:37:09 +0000 (21:37 -0000)]
2007-03-08  Chris Toshok <toshok@ximian.com>

* System.Windows.Forms/DataGrid.cs: some field renaming to make things consistent.

* System.Windows.Forms/ThemeWin32Classic.cs: same.

svn path=/trunk/mcs/; revision=73971

17 years ago* StringComparerTest.cs: Added tests for binary serialization compatiblity.
Gert Driesen [Thu, 8 Mar 2007 21:32:08 +0000 (21:32 -0000)]
* StringComparerTest.cs: Added tests for binary serialization compatiblity.
* StringComparer.cs: Renamed StringComparer classes and promoted them
to top-level classes. Merged Ordinal and OrdinalIgnoreCase comparers.
Fixes binary serialization compatibility with MS.

svn path=/trunk/mcs/; revision=73970

17 years ago * TreeView.cs: Show the correct image for selected node (this
Jackson Harper [Thu, 8 Mar 2007 20:49:52 +0000 (20:49 -0000)]
    * TreeView.cs: Show the correct image for selected node (this
        * used
        to work, not sure how the code got deleted). Also implemented
2.0 feature
        SelectedImageKey.

svn path=/trunk/mcs/; revision=73969

17 years ago2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Thu, 8 Mar 2007 20:42:28 +0000 (20:42 -0000)]
2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListView.cs:
* ListViewItem.cs: Cache index in items when retrieving them
in VirtualMode.

svn path=/trunk/mcs/; revision=73968

17 years ago* corlib_test.dll.sources: Added StringComparerTest.cs.
Gert Driesen [Thu, 8 Mar 2007 20:40:15 +0000 (20:40 -0000)]
* corlib_test.dll.sources: Added StringComparerTest.cs.
* StringComparerTest.cs: Added tests for bug #80928.

svn path=/trunk/mcs/; revision=73967

17 years ago2007-03-08 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 8 Mar 2007 20:34:46 +0000 (20:34 -0000)]
2007-03-08  Jonathan Pobst  <monkey@jpobst.com>

* ToolStripItem.cs: Don't return the explicit_size if we are using
AutoSize.  Fixes invalidation issue when user has explicitly set a
size and has AutoSize = true.

svn path=/trunk/mcs/; revision=73966

17 years ago* Comparer.cs: Renamed IComparableOfTComparer<T> to GenericComparer<T>
Gert Driesen [Thu, 8 Mar 2007 20:22:06 +0000 (20:22 -0000)]
* Comparer.cs: Renamed IComparableOfTComparer<T> to GenericComparer<T>
to fix binary serialization compatibility with MS.
* ComparerTest.cs: Added test for bug #80929. Added tests to verify
binary serialization compatibility.
* IListTest.cs: Fixed header.
* corlib_test.dll.sources: Added ComparerTest.cs.

svn path=/trunk/mcs/; revision=73964

17 years ago2007-03-08 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 8 Mar 2007 19:59:31 +0000 (19:59 -0000)]
2007-03-08  Jonathan Pobst  <monkey@jpobst.com>

* XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.

svn path=/trunk/mcs/; revision=73963

17 years ago* PagesSection.cs: Revert part of Adar's patch that regresses
Gert Driesen [Thu, 8 Mar 2007 19:34:12 +0000 (19:34 -0000)]
* PagesSection.cs: Revert part of Adar's patch that regresses
bug #80913.

svn path=/trunk/mcs/; revision=73962

17 years ago* FormTest.cs: Added tests for bug #80791 and #80574.
Gert Driesen [Thu, 8 Mar 2007 19:21:32 +0000 (19:21 -0000)]
* FormTest.cs: Added tests for bug #80791 and #80574.

svn path=/trunk/mcs/; revision=73961

17 years ago2007-03-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
Rolf Bjarne Kvinge [Thu, 8 Mar 2007 18:46:00 +0000 (18:46 -0000)]
2007-03-08  Rolf Bjarne Kvinge <RKvinge@novell.com>

* SendKeysTest.cs: Fixed to not hang keyboard on Windows.

svn path=/trunk/mcs/; revision=73955

17 years agoThu Mar 8 19:42:17 CET 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 8 Mar 2007 18:42:43 +0000 (18:42 -0000)]
Thu Mar 8 19:42:17 CET 2007 Paolo Molaro <lupus@ximian.com>

* shared.c: partial support for MONO_DISABLE_SHM env var.

svn path=/trunk/mono/; revision=73954

17 years agoThu Mar 8 19:36:13 CET 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 8 Mar 2007 18:36:41 +0000 (18:36 -0000)]
Thu Mar 8 19:36:13 CET 2007 Paolo Molaro <lupus@ximian.com>

* mini.c: more precise tracking of types in the eval stack
(part of fix for bug #81044).

svn path=/trunk/mono/; revision=73953

17 years ago2007-03-07 Pedro Martínez Juliá <pedromj@gmail.com>
Pedro Martínez Juliá [Thu, 8 Mar 2007 17:44:29 +0000 (17:44 -0000)]
2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>

* DataGridView.cs: Remove event handler from DataView when a
DataTable is used as DataSource.

svn path=/trunk/mcs/; revision=73949

17 years ago2007-03-08 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 8 Mar 2007 16:09:36 +0000 (16:09 -0000)]
2007-03-08  Jonathan Pobst  <monkey@jpobst.com>

* Control.cs: Create internal setter for client_size to allow it to be
set without triggering resizing code.
* Form.cs: Calculate client_size in constructor, only change client_size
in FormBorderStyle property if Handle has been created.
[Fixes #80574, #80791]

2007-03-08  Jonathan Pobst  <monkey@jpobst.com>

* FormTest.cs: Add tests for bugs #80574, #80791.

svn path=/trunk/mcs/; revision=73943

17 years ago2007-03-08 Nagappan A <anagappan@novell.com>
Nagappan Alagappan [Thu, 8 Mar 2007 13:27:32 +0000 (13:27 -0000)]
2007-03-08  Nagappan A  <anagappan@novell.com>

* SqlCommand.cs (CloseDataReader): Checks whether the SQL
connection is created or not.

svn path=/trunk/mcs/; revision=73941

17 years ago2007-03-08 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 8 Mar 2007 12:50:23 +0000 (12:50 -0000)]
2007-03-08  Martin Baulig  <martin@ximian.com>

* cs-parser.jay (constructor_header): Pass the location to the
newly created TopLevelBlock.

svn path=/trunk/mcs/; revision=73939

17 years ago2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
Rolf Bjarne Kvinge [Thu, 8 Mar 2007 11:19:25 +0000 (11:19 -0000)]
2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com>

* Makefile: Don't show obsolete warnings when compiling tests.

svn path=/trunk/mcs/; revision=73938

17 years ago2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Thu, 8 Mar 2007 10:56:57 +0000 (10:56 -0000)]
2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>

* SystemInformation.cs: Add TerminalServerSession.

svn path=/trunk/mcs/; revision=73937

17 years ago* fixed validation errors
Vladimir Krasnov [Thu, 8 Mar 2007 09:54:23 +0000 (09:54 -0000)]
* fixed validation errors

svn path=/trunk/mcs/; revision=73933

17 years ago2007-03-08 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Thu, 8 Mar 2007 09:15:54 +0000 (09:15 -0000)]
2007-03-08  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * Microsoft.CSharp.targets: Add @(ChildProjectReferences) to
        References.

* Microsoft.Common.targets: Add ResolveProjectReferences target.

svn path=/trunk/mcs/; revision=73932

17 years ago2007-03-08 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Thu, 8 Mar 2007 09:11:38 +0000 (09:11 -0000)]
2007-03-08  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * MSBuild.cs (Execute): Copy referenced project's dlls to output
        directory.

svn path=/trunk/mcs/; revision=73931

17 years ago2007-03-06 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Thu, 8 Mar 2007 09:10:36 +0000 (09:10 -0000)]
2007-03-06 Igor Zelmanovich <igorz@mainsoft.com>

* DataGrid.cs: fixed:
Auto-generated columns are restored properly on postback from view state.

svn path=/trunk/mcs/; revision=73930

17 years agoAdded eol.
Marek Sieradzki [Thu, 8 Mar 2007 09:07:07 +0000 (09:07 -0000)]
Added eol.

svn path=/trunk/mcs/; revision=73929

17 years ago2007-03-07 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 7 Mar 2007 22:41:11 +0000 (22:41 -0000)]
2007-03-07  Jonathan Pobst  <monkey@jpobst.com>

* TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
TreeView code.

svn path=/trunk/mcs/; revision=73922

17 years ago2007-03-07 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 7 Mar 2007 22:31:11 +0000 (22:31 -0000)]
2007-03-07  Jonathan Pobst  <monkey@jpobst.com>

* XplatUIWin32.cs: The no_activate stuff was forcing us to create a
Handle before we were supposed to.  Now checks ActivateOnShow property
in Control.
* Control.cs: Add internal ActivateOnShow property.
* ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
for ActivateOnShow.
* Hwnd.cs Remove no longer needed no_activate field.

svn path=/trunk/mcs/; revision=73921

17 years ago* SqlCommand.cs (ExecuteScalar): when calling stored procedures,
Andreia Gaita [Wed, 7 Mar 2007 22:06:29 +0000 (22:06 -0000)]
* SqlCommand.cs (ExecuteScalar): when calling stored procedures,
implement support for return of output values in the parameter
collection.

2007-03-07  Andreia Gaita <avidigal@novell.com>

svn path=/trunk/mcs/; revision=73914

17 years ago * TreeView.cs: Implement owner draw tree nodes. And a couple
Jackson Harper [Wed, 7 Mar 2007 21:58:21 +0000 (21:58 -0000)]
    * TreeView.cs: Implement owner draw tree nodes.  And a couple
        * more
        2.0 properties
        * DrawTreeNodeEventHandler.cs: Add
        * DrawTreeNodeEventArgs.cs: Correct default value.

svn path=/trunk/mcs/; revision=73912

17 years agotrack changes to .dll.sources
Chris Toshok [Wed, 7 Mar 2007 21:40:44 +0000 (21:40 -0000)]
track changes to .dll.sources

svn path=/trunk/mcs/; revision=73911

17 years ago2007-03-07 Chris Toshok <toshok@ximian.com>
Chris Toshok [Wed, 7 Mar 2007 21:40:28 +0000 (21:40 -0000)]
2007-03-07  Chris Toshok  <toshok@ximian.com>

* XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
to be called before NativeWindow.WndProc.  Put the HwndCreating
magic there to hook up our Hwnd's to handles.

svn path=/trunk/mcs/; revision=73910

17 years ago* DataGridView.cs: Comment out debug code.
Gert Driesen [Wed, 7 Mar 2007 21:14:00 +0000 (21:14 -0000)]
* DataGridView.cs: Comment out debug code.

svn path=/trunk/mcs/; revision=73908

17 years agoIn Test/System.Windows.Forms:
Chris Toshok [Wed, 7 Mar 2007 20:22:27 +0000 (20:22 -0000)]
In Test/System.Windows.Forms:
2007-03-05  Chris Toshok  <toshok@ximian.com>

[merge -r72718:73765 from mwf-handle-branch]

2007-03-05  Chris Toshok  <toshok@ximian.com>

* ControlHandleTest.cs: make this build on both 1.1 and 2.0
profiles.

2007-02-28  Chris Toshok  <toshok@ximian.com>

* ControlTest.cs: Flesh out ControlInvokeTest to make sure that
the Control thread dies (that Application.Run returns, basically).
This works in isolation, but for some reason it isn't exiting when
run in concert with other tests (this test is the cause of the
hangs running the unit tests.)  Marking NotWorking for the time
being.  This needs to be fixed before merging back to the
mainline, imo.

In System.Windows.Forms:
2007-03-07  Chris Toshok  <toshok@ximian.com>

[merge -r72718:73765 from mwf-handle-branch, and include 2 changes
to make the rest of the world happy]

* Control.cs (CreateHandle): there's no need to call
XplatUI.SetVisible here, it's effectively done by
XplatUI.CreateWindow on X now, and always was on windows.

* XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
shortcircuit out of the loop if we have a message loop running on
this thread.

[Changelog from merge]

2007-03-05  Chris Toshok  <toshok@ximian.com>

* Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
causes handle creation.

2007-02-28  Chris Toshok  <toshok@ximian.com>

* ApplicationContext.cs: Add a flag to make sure we only raise the
ThreadExit event once (ExitThreadCore can be indirectly called
from a few places.)  I don't like the additional flag, but it
makes the event ordering/count correct.

* Application.cs (MWFThread.LoopCount): don't use an enumerator
without locking the collection.  An enumerator doesn't give us any
protection from modification anyway.  Lock the thread hash and
replace the complicated enumerator loop with a foreach.
(Application.CloseForms): make internal so it can be called from
ApplicationContext.  This should probably be moved to MWFThread.
(Application.ExitThread): don't call MWFThread.Current.Exit()
here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
when the runloop exits (in response to WM_QUIT.)
(Application.RunLoop): add a comment (and check) for
context.MainForm being null after setting context.MainForm.Visible
= true.  This is because you're perfectly free to dispose of a
form in VisibilityChanged.  Chalk this up to another case where we
need to synchronously generate WM_ACTIVATE from Control.Show.
Also, add handling for WM_QUIT here so we'll exit the loop.

* XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
fact that we don't wait if we're only unmapping the whole_window
makes me a bit nervous, but it doesn't seem to cause any problems
yet.

also, add a comment about the stupid, broken and wrong resetting
of PostQuitState to false in GetMessage().

In PostQuitMessage, we need to add a WM_QUIT message to the
thread's queue.  We use the FosterParent to get the right
handle/hwnd/queue.

Lastly, in SetVisible, we need to unmap both windows, since the
waiting only happens when we're unmapping the client window.  So
now, the *only* time we unmap just the whole_window is in the hack
for resizing a control to 0,0.

2007-02-21  Chris Toshok  <toshok@ximian.com>

* Application.cs (CloseForms): rewrite this so that we don't
modify the list while we're traversing it.

2007-02-20  Chris Toshok  <toshok@ximian.com>

* ListBox.cs (.ctor): move the Control.AddImplicits here instead
of OnHandleCreated.
(HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
handle is created.  otherwise we'll create it here.
(VerticalScrollEvent): same here.

* Application.cs (CloseForms): call Form.Dispose, don't post
WM_CLOSE_INTERNAL.

* Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
here. Application should Dispose() of the Form's.

* XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
WM_DESTROY as well.
(MapWindow,UnmapWindow): only actually do the waiting for
SHOWWINDOW if the control we're dealing with is a Form.
(CreateWindow): if the control isn't a form, SendMessage
WM_SHOWWINDOW here (if the WS_VISIBLE style is set).

* Control.cs (SetVisibleCore): always use is_visible here, not
value.  If we use value, we can end up re-setting something
visible if, for instance, you do Control.Hide() in a delegate
attached to VisibleChanged as we do in FormTest.ShowDialogTest.

2007-02-20  Chris Toshok  <toshok@ximian.com>

* XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
the message we need.  PeekMessage returning false should not be a
condition under which we exit the loop.

2007-02-15  Chris Toshok  <toshok@ximian.com>

* Control.cs (Refresh): only refresh if we've got a handle and are
visible.
(CreateAccessibilityInstance): CreateControl() here.
(UpdateChildrenZOrder): complicate the code loop even more by
taking into account controls that haven't had their handle
created, and those that aren't visible.  But on the flip side,
simplify the code by splitting it into two loops.  one which
builds up the list of child controls we're interested in, and the
other that sets the z order of those children.

2007-02-14  Chris Toshok  <toshok@ximian.com>

* Control.cs: Control.AccessibilityObject causes the control to be
created, not just the handle.

2007-02-14  Chris Toshok  <toshok@ximian.com>

* Control.cs: rework UpdateChildrenZOrder to correctly handle the
problem on X where a window might have its handle created (and be
visible) while the window is unmapped.  calling XConfigureWindow
on an unmapped window is bad, and generates X errors.

2007-02-13  Chris Toshok  <toshok@ximian.com>

* Control.cs (CreateHandle): don't loop over our children setting
their parent here.  do it when in WndProc when we're shown.
(UpdateChildrenZOrder): make this internal so we can call it from
ScrollableControl.
(WndProc): for WM_SHOWWINDOW, reparent the child control after
creating its handle.  Also, remove the calls to PerformLayout from
here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
OnVisibleChanged only seems to be called directly here for the
toplevel control.  It's propagated down the window hierarchy by
calls to child.OnParentVisibleChanged.
(OnVisibleChanged): don't do layout here - it's done (oddly
enough, according to a glance at stack traces on ms.net..) in
ScrollableControl.

* ScrollableControl.cs (OnVisibleChanged): make sure we update the
z order of our children before calling PerformLayout.

2007-02-12  Chris Toshok  <toshok@ximian.com>

[big change, fixes #80020]

* AccessibleObject.cs: we need to make owner internal again to fix
some of ControlAccessibleObject.

* Control.cs: lots of changes here.  add support for WM_CREATE,
for which we generate OnHandleCreated.  Remove the OnHandleCreated
call from CreateHandle.  Also add support for WM_SHOWWINDOW where
we create child controls.  leave the MonoTODO's for the
accessibility calls, but fix the exceptions so the tests pass.

Add the InvalidOperationExceptions to Invoke methods, and remove a
couple of InvokeInternal methods we aren't using.

Also, add a couple of CreateHandle calls in places where we know
the handles are being created but our code doesn't reference
.Handle.

Make SetVisibleCore call OnVisibleChange if the handle isn't
created.  If the handle is created, we rely on XplatUI.SetVisible
generating the event synchronously.

Lastly, make sure we don't use this.Handle inside CreateHandle,
because we can call back into client (and that code can dispose of
the control).

* XplatUIStructs.cs: misc/cleanup.

* XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
although we don't populate the wParam properly.
(CreateWindow): generate WM_CREATE.
(MapWindow,UnmapWindow): make these calls synchronous, at great
performance expense (particularly in the unmap case), to match
win32 behavior.

* Form.cs (.ctor): remove the call to UpdateBounds. we don't need
to call it.
(set_MdiParent): don't recreate the handle unless it's been
created already.

* MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
it's created.

* NativeWindow.cs: this is probably the weirdest part of the
patch.  We need a way to link up the window being created to the
WM_CREATE message.  Since we can only be creating one window at a
time on a given thread, we keep track of a per-thread reference so
we can dispatch it properly.  We also need to keep track of the
Hwnd currently being created so that the win32 backend doesn't
have problems.

* XplatUIWin32.cs: a similar change to the one we made in
NativeWindow.cs.

svn path=/trunk/mcs/; revision=73907

17 years ago2007-03-07 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 7 Mar 2007 20:10:34 +0000 (20:10 -0000)]
2007-03-07  Martin Baulig  <martin@ximian.com>

* statement.cs (Block.Resolve): Don't crash on error; bug #80715.

svn path=/trunk/mcs/; revision=73906

17 years ago* EnumBuilderTest.cs: Enabled test that failed due to bug #81037.
Gert Driesen [Wed, 7 Mar 2007 19:49:45 +0000 (19:49 -0000)]
* EnumBuilderTest.cs: Enabled test that failed due to bug #81037.
Coding style fixes.

svn path=/trunk/mcs/; revision=73904

17 years ago* ModuleBuilderTest.cs: Avoid compiler warning in test for bug #80435.
Gert Driesen [Wed, 7 Mar 2007 19:44:46 +0000 (19:44 -0000)]
* ModuleBuilderTest.cs: Avoid compiler warning in test for bug #80435.
Use Assert instead of deprecated Assertion class. Number tests.

svn path=/trunk/mcs/; revision=73903

17 years ago2007-03-07 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 7 Mar 2007 19:40:32 +0000 (19:40 -0000)]
2007-03-07  Jonathan Pobst  <monkey@jpobst.com>

* ToolStripItem.cs: Make CalculatePreferredSize virtual.
* ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
to draw the menu shortcut string.

svn path=/trunk/mcs/; revision=73901

17 years ago* corlib_test.dll.sources: Added IListTest.cs.
Gert Driesen [Wed, 7 Mar 2007 19:08:24 +0000 (19:08 -0000)]
* corlib_test.dll.sources: Added IListTest.cs.
* IListTest.cs: Added test for bug #80260.

svn path=/trunk/mcs/; revision=73900

17 years ago * TreeNode.cs: Add the 2.0 collapse method.
Jackson Harper [Wed, 7 Mar 2007 18:59:23 +0000 (18:59 -0000)]
    * TreeNode.cs: Add the 2.0 collapse method.

svn path=/trunk/mcs/; revision=73899

17 years ago2007-03-07 Pedro Martínez Juliá <pedromj@gmail.com>
Pedro Martínez Juliá [Wed, 7 Mar 2007 17:18:33 +0000 (17:18 -0000)]
2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>

* DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).

svn path=/trunk/mcs/; revision=73896

17 years agoGlobal resources fix
Roei Erez [Wed, 7 Mar 2007 17:00:13 +0000 (17:00 -0000)]
Global resources fix

svn path=/trunk/mcs/; revision=73894

17 years ago2007-03-07 Pedro Martínez Juliá <pedromj@gmail.com>
Pedro Martínez Juliá [Wed, 7 Mar 2007 16:52:04 +0000 (16:52 -0000)]
2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>

* DataGridView.cs: Change DataSource will clear column and row
lists. Call Invalidate() to reflect DataSource change.

svn path=/trunk/mcs/; revision=73893

17 years agoupdate to reflect failing tests due to reverts
Raja R Harinath [Wed, 7 Mar 2007 16:44:22 +0000 (16:44 -0000)]
update to reflect failing tests due to reverts

svn path=/trunk/mcs/; revision=73892

17 years agoReapply
Miguel de Icaza [Wed, 7 Mar 2007 16:41:21 +0000 (16:41 -0000)]
Reapply

svn path=/trunk/mcs/; revision=73891

17 years ago2007-03-07 Pedro Martínez Juliá <pedromj@gmail.com>
Pedro Martínez Juliá [Wed, 7 Mar 2007 15:50:32 +0000 (15:50 -0000)]
2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>

* DataGridView.cs: Add rows when DataSource is System.Data.DataView
and a new row is added to it.

svn path=/trunk/mcs/; revision=73889

17 years ago2007-03-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 7 Mar 2007 15:41:51 +0000 (15:41 -0000)]
2007-03-07  Zoltan Varga  <vargaz@gmail.com>

* aot-runtime.c (mono_aot_get_class_from_name): Add a cache.

svn path=/trunk/mono/; revision=73888

17 years ago* TestBitmap.cs, TestFont.cs, TestIcon.cs, TestRegion.cs: removed tests for TARGET_JV...
Vladimir Krasnov [Wed, 7 Mar 2007 14:51:22 +0000 (14:51 -0000)]
* TestBitmap.cs, TestFont.cs, TestIcon.cs, TestRegion.cs: removed tests for TARGET_JVM with not supported method calls

svn path=/trunk/mcs/; revision=73887

17 years ago* removed tests with not supported calls for TARGET_JVM because of validation failures
Vladimir Krasnov [Wed, 7 Mar 2007 13:45:42 +0000 (13:45 -0000)]
* removed tests with not supported calls for TARGET_JVM because of validation failures

svn path=/trunk/mcs/; revision=73886

17 years ago2007-03-07 Pedro Martínez Juliá <pedromj@gmail.com>
Pedro Martínez Juliá [Wed, 7 Mar 2007 13:20:36 +0000 (13:20 -0000)]
2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>

* DataGridView.cs: Add columns when DataSource is en empty list but
is a System.Data.DataView (from a System.Data.DataTable).

svn path=/trunk/mcs/; revision=73885

17 years ago2007-03-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 7 Mar 2007 12:57:07 +0000 (12:57 -0000)]
2007-03-07  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (encode_patch): Remove an obsolete comment.

svn path=/trunk/mono/; revision=73884

17 years ago2007-03-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 7 Mar 2007 12:45:37 +0000 (12:45 -0000)]
2007-03-07  Zoltan Varga  <vargaz@gmail.com>

* docs/aot-compiler.txt: Add into about the PLT.

svn path=/trunk/mono/; revision=73881

17 years ago2007-03-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 7 Mar 2007 12:38:12 +0000 (12:38 -0000)]
2007-03-07  Zoltan Varga  <vargaz@gmail.com>

* docs/aot-compiler.txt: Update a bit to reflect recent changes.

svn path=/trunk/mono/; revision=73880

17 years ago* Label.cs: Implement AutoEllipsis (2.0)
Andreia Gaita [Tue, 6 Mar 2007 23:01:17 +0000 (23:01 -0000)]
* Label.cs: Implement AutoEllipsis (2.0)

2007-03-06  Andreia Gaita  <avidigal@novell.com>

svn path=/trunk/mcs/; revision=73856

17 years agoRevert Paolo's fix, this one fixes the build
Miguel de Icaza [Tue, 6 Mar 2007 22:37:04 +0000 (22:37 -0000)]
Revert Paolo's fix, this one fixes the build

svn path=/trunk/mono/; revision=73853

17 years agoReapply Zoltan's patch
Miguel de Icaza [Tue, 6 Mar 2007 22:27:18 +0000 (22:27 -0000)]
Reapply Zoltan's patch

svn path=/trunk/mono/; revision=73852

17 years agoReapply Zoltan's patch
Miguel de Icaza [Tue, 6 Mar 2007 22:27:01 +0000 (22:27 -0000)]
Reapply Zoltan's patch

svn path=/trunk/mcs/; revision=73851

17 years ago - Implement 2.0 image key feature.
Jackson Harper [Tue, 6 Mar 2007 21:32:20 +0000 (21:32 -0000)]
    - Implement 2.0 image key feature.

svn path=/trunk/mcs/; revision=73847

17 years agoRevert accidental WIP commit, ugh
Marek Habersack [Tue, 6 Mar 2007 20:47:40 +0000 (20:47 -0000)]
Revert accidental WIP commit, ugh

svn path=/trunk/mcs/; revision=73844

17 years agoremove accidental commit
Marek Habersack [Tue, 6 Mar 2007 20:41:40 +0000 (20:41 -0000)]
remove accidental commit

svn path=/trunk/mcs/; revision=73843

17 years agoRevert 73804
Marek Habersack [Tue, 6 Mar 2007 20:38:43 +0000 (20:38 -0000)]
Revert 73804

svn path=/trunk/mono/; revision=73842

17 years agoRevert 73805, 73806, 73807
Marek Habersack [Tue, 6 Mar 2007 20:37:07 +0000 (20:37 -0000)]
Revert 73805, 73806, 73807

svn path=/trunk/mcs/; revision=73841

17 years ago2007-03-06 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Tue, 6 Mar 2007 19:39:03 +0000 (19:39 -0000)]
2007-03-06  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * Project.cs (Build): Add outputs to targetOutputs.

svn path=/trunk/mcs/; revision=73837

17 years ago2007-03-06 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Tue, 6 Mar 2007 19:37:28 +0000 (19:37 -0000)]
2007-03-06  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * BuildPropertyTest.cs, ProjectTest.cs: More tests.

svn path=/trunk/mcs/; revision=73836

17 years ago - Implement 2.0 LineColors property. Lets you change the color
Jackson Harper [Tue, 6 Mar 2007 19:27:47 +0000 (19:27 -0000)]
    - Implement 2.0 LineColors property.  Lets you change the color
          of
        the lines in the tree. Terribly useful for creating non cohesive
        desktops.

svn path=/trunk/mcs/; revision=73835

17 years ago2007-03-06 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Tue, 6 Mar 2007 19:22:28 +0000 (19:22 -0000)]
2007-03-06  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * ExpressionCollection.cs (ConvertToArray): Simplify.

svn path=/trunk/mcs/; revision=73834

17 years agoMore Lambda work
Miguel de Icaza [Tue, 6 Mar 2007 18:16:18 +0000 (18:16 -0000)]
More Lambda work

svn path=/trunk/mcs/; revision=73833

17 years ago - Implement 2.0 Sort method.
Jackson Harper [Tue, 6 Mar 2007 18:01:59 +0000 (18:01 -0000)]
    - Implement 2.0 Sort method.

svn path=/trunk/mcs/; revision=73832

17 years agoTemporarily remove
Miguel de Icaza [Tue, 6 Mar 2007 17:54:29 +0000 (17:54 -0000)]
Temporarily remove

svn path=/trunk/mcs/; revision=73831