Daniel Nauck [Mon, 18 Dec 2006 00:06:12 +0000 (00:06 -0000)]
2006-12-18 Daniel Nauck <dna@mono-project.de>
* DataGridViewAdvancedBorderStyleTest.cs,
DataGridViewRowTest.cs,
DataGridViewElementTest.cs,
DataGridViewCellTest.cs,
DataGridViewCellStyleTest.cs,
DataGridViewTest.cs: fixed NUnit obsolete warnings and
DataGridView tests against .NET 2.0
svn path=/trunk/mcs/; revision=69638
Daniel Nauck [Sun, 17 Dec 2006 22:38:25 +0000 (22:38 -0000)]
2006-12-17 Daniel Nauck <dna@mono-project.de>
* ListViewHitTestInfo.cs: add
svn path=/trunk/mcs/; revision=69636
Chris Toshok [Sun, 17 Dec 2006 21:01:01 +0000 (21:01 -0000)]
resync
svn path=/trunk/mcs/; revision=69632
Daniel Nauck [Sun, 17 Dec 2006 19:47:34 +0000 (19:47 -0000)]
2006-12-17 Daniel Nauck <dna@mono-project.de>
* ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
* FlatButtonAppearance.cs: add
* DockingAttribute.cs: add
svn path=/trunk/mcs/; revision=69630
Chris Toshok [Sun, 17 Dec 2006 18:40:30 +0000 (18:40 -0000)]
2006-12-17 Chris Toshok <toshok@ximian.com>
* build-csproj2k5: a couple of changes. use "exec >" instead of
redirecting the output from every function, use multiple patterns
in our sed calls instead of including multiple sed invocations,
and use sed instead of tr for converting / to \.
svn path=/trunk/mcs/; revision=69625
Konstantin Triger [Sun, 17 Dec 2006 17:55:04 +0000 (17:55 -0000)]
Nullify parent when cloning the parameters
svn path=/trunk/mcs/; revision=69624
Igor Zelmanovich [Sun, 17 Dec 2006 17:34:13 +0000 (17:34 -0000)]
2006-12-17 Igor Zelmanovich <igorz@mainsoft.com>
* Calendar.cs: support DayNameFormat.Shortest
svn path=/trunk/mcs/; revision=69612
David Elkind [Sun, 17 Dec 2006 17:19:57 +0000 (17:19 -0000)]
ChangeToSSLSocket made simpler
svn path=/trunk/mcs/; revision=69607
Chris Toshok [Sun, 17 Dec 2006 17:04:53 +0000 (17:04 -0000)]
2006-12-17 Chris Toshok <toshok@ximian.com>
* DataGrid.cs: hook up MetaDataChanged event on the list manager,
and rebind our columns when it does - this way, if you make
changes to the DataTable (or set the Table attribute on a DataView
after setting it as the DataGrid's DataSource, the changes are
made visible.) Fixes bug #80107.
svn path=/trunk/mcs/; revision=69606
Igor Zelmanovich [Sun, 17 Dec 2006 17:03:36 +0000 (17:03 -0000)]
2006-12-17 Igor Zelmanovich <igorz@mainsoft.com>
* DateTimeFormatInfo.cs : added missing properties and methods.
svn path=/trunk/mcs/; revision=69605
Chris Toshok [Sun, 17 Dec 2006 16:58:52 +0000 (16:58 -0000)]
resync
svn path=/trunk/mcs/; revision=69604
Gert Driesen [Sun, 17 Dec 2006 16:47:09 +0000 (16:47 -0000)]
* TreeViewTest.cs: Added tests for bug #80284.
svn path=/trunk/mcs/; revision=69603
Konstantin Triger [Sun, 17 Dec 2006 14:56:38 +0000 (14:56 -0000)]
Add missing 2.0 ctor
svn path=/trunk/mcs/; revision=69602
Igor Zelmanovich [Sun, 17 Dec 2006 13:58:42 +0000 (13:58 -0000)]
2006-12-17 Igor Zelmanovich <igorz@mainsoft.com>
* HiddenField.cs: implemented
svn path=/trunk/mcs/; revision=69601
Igor Zelmanovich [Sun, 17 Dec 2006 13:56:44 +0000 (13:56 -0000)]
2006-12-17 Igor Zelmanovich <igorz@mainsoft.com>
* FormView.cs: fixed: FillRowDataKey
* DetailsView.cs: fixed: FillRowDataKey
svn path=/trunk/mcs/; revision=69600
Daniel Nauck [Sun, 17 Dec 2006 11:41:14 +0000 (11:41 -0000)]
2006-12-17 Daniel Nauck <dna@mono-project.de>
* ListViewGroup.cs: add internal Location property for layouting.
* Theme.cs: add abstract ListViewGroupHeight function.
* ThemeWin32Classic.cs: implement ListViewGroupHeight function.
svn path=/trunk/mcs/; revision=69597
Igor Zelmanovich [Sun, 17 Dec 2006 11:20:51 +0000 (11:20 -0000)]
2006-12-11 Igor Zelmanovich <igorz@mainsoft.com>
* TreeView.cs: fixed: ResolveClientUrl used with ImageUrl and NavigateUrl
svn path=/trunk/mcs/; revision=69596
Marek Safar [Sun, 17 Dec 2006 11:08:06 +0000 (11:08 -0000)]
Test for #79934
svn path=/trunk/mcs/; revision=69595
Marek Safar [Sun, 17 Dec 2006 11:06:43 +0000 (11:06 -0000)]
2006-12-17 Marek Safar <marek.safar@gmail.com>
A fix for bug #79934
* anonymous.cs (CompilerGeneratedClass): Register class in a shared
partial container.
* class.cs (ResolveMembers): Register an iterator in current container and
not in shared one.
svn path=/trunk/mcs/; revision=69594
Yoni Klain [Sun, 17 Dec 2006 10:25:19 +0000 (10:25 -0000)]
2006-12-17 Yoni Klain <yonik@mainsoft.com>
* TreeViewTest.cs: added tests.
svn path=/trunk/mcs/; revision=69593
Gert Driesen [Sun, 17 Dec 2006 09:44:31 +0000 (09:44 -0000)]
* ControlTest.cs: Added (notworking) test for bug #80280.
Removed extra tabs.
svn path=/trunk/mcs/; revision=69590
Vladimir Krasnov [Sun, 17 Dec 2006 09:20:02 +0000 (09:20 -0000)]
* HttpHandlerAction.cs: fixed 'verb' config property
svn path=/trunk/mcs/; revision=69589
Igor Zelmanovich [Sun, 17 Dec 2006 09:18:27 +0000 (09:18 -0000)]
2006-12-17 Igor Zelmanovich <igorz@mainsoft.com>
* SiteMapPathTest.cs: added NotWorking attribute.
* MenuTest.cs: fixed tests.
svn path=/trunk/mcs/; revision=69588
Andreia Gaita [Sun, 17 Dec 2006 03:27:13 +0000 (03:27 -0000)]
* TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
Added reset of selected index to 0 when adding first tab page.
Fixes #80264
* NumericUpDown.cs: Fix NET_2_0 check
* TabControlTest.cs: Fixed SelectedIndex tests
for MS.NET 2.0
2006-12-16 Andreia Gaita <avidigal@novell.com>
svn path=/trunk/mcs/; revision=69586
Andreia Gaita [Sat, 16 Dec 2006 19:08:30 +0000 (19:08 -0000)]
* SendKeysTest.cs: Test cases for SendKeys
These tests can only run in ms.net one at a time.
Since ms.net apparently hooks the keyboard to
implement this, running two tests in a row
makes the second test run before the hook
of the first test is released, effectively
hanging the keyboard. CTRL-ALT-DEL releases
the keyboard, but the test still hangs.
Running each test separately works.
2006-12-16 Andreia Gaita <avidigal@novell.com>
svn path=/trunk/mcs/; revision=69584
Raja R Harinath [Sat, 16 Dec 2006 18:31:11 +0000 (18:31 -0000)]
* TypeTest.cs (TestNestedTypes): New test inspired by #80242.
svn path=/trunk/mcs/; revision=69583
Raja R Harinath [Sat, 16 Dec 2006 18:30:03 +0000 (18:30 -0000)]
Fix #80242
* icall.c (ves_icall_Type_GetNestedType): If the type is a generic
instance, use the generic type definition instead.
(ves_icall_Type_GetNestedTypes): Likewise.
* class.c (mono_class_create_generic): Always set the
nested_classes of a generic instance to NULL, even if the generic
type definition has nested types.
svn path=/trunk/mono/; revision=69582
Marek Habersack [Sat, 16 Dec 2006 18:10:12 +0000 (18:10 -0000)]
Fix a MapPath exception
svn path=/trunk/mcs/; revision=69581
Daniel Nauck [Sat, 16 Dec 2006 17:50:20 +0000 (17:50 -0000)]
2006-12-16 Daniel Nauck <dna@mono-project.de>
* ListViewGroup.cs: fixed DefaultValueAttribute value
svn path=/trunk/mcs/; revision=69580
Daniel Nauck [Sat, 16 Dec 2006 17:41:29 +0000 (17:41 -0000)]
2006-12-16 Daniel Nauck <dna@mono-project.de>
* Added AutoCompleteStringCollection 2.0 class and tests.
* System.Windows.Forms.dll.sources: Add
AutoCompleteStringCollection.cs
* System.Windows.Forms_test.dll.sources: Add
AutoCompleteStringCollectionTest.cs
svn path=/trunk/mcs/; revision=69579
Raja R Harinath [Sat, 16 Dec 2006 17:34:16 +0000 (17:34 -0000)]
Fix test-543.cs
* expression.cs (VerifyArgumentsCompat): Allow zero arguments to
satisfy a params annotated parameter.
svn path=/trunk/mcs/; revision=69578
Miguel de Icaza [Sat, 16 Dec 2006 16:58:36 +0000 (16:58 -0000)]
Add test for the struct constructor fix
svn path=/trunk/mcs/; revision=69577
Chris Toshok [Sat, 16 Dec 2006 16:52:22 +0000 (16:52 -0000)]
2006-12-16 Chris Toshok <toshok@ximian.com>
* SWF.csproj, SWF2k5.csproj: resync these.
* Makefile (EXTRA_DISTFILES): add build-csproj2k5
Also, make both SWF.csproj and SWF2k5.csproj depend on the scripts
which generate them. That way if you're hacking on the script you
don't have to touch System.Windows.Forms.dll.sources every time
you want to update the output.
* build-csproj2k5: make some changes suggested by Marek:
- System.XML should be System.Xml.
- Change eol-style to native.
- remove the SubType's from all the .cs Compile elements.
- Add Mono.Posix if the configuration is DebugXBuild (can't test this though..)
svn path=/trunk/mcs/; revision=69576
Miguel de Icaza [Sat, 16 Dec 2006 16:47:10 +0000 (16:47 -0000)]
Add test for bug #80256
svn path=/trunk/mcs/; revision=69575
Marek Safar [Sat, 16 Dec 2006 12:10:54 +0000 (12:10 -0000)]
New tests.
svn path=/trunk/mcs/; revision=69573
Marek Safar [Sat, 16 Dec 2006 12:10:23 +0000 (12:10 -0000)]
New tests.
svn path=/trunk/mcs/; revision=69572
Marek Safar [Sat, 16 Dec 2006 11:53:34 +0000 (11:53 -0000)]
2006-12-16 Marek Safar <marek.safar@gmail.com>
A fix for bug #77014
* expression.cs (Invocation.BetterFunction): Fixed to cope with dynamic
paramters correctly and not rely on hacks in Parameters class.
(Invocation.IsParamsMethodApplicable): Changed to accept params parameter
at any possition.
(Invocation.VerifyArgumentsCompat): Ditto.
(Invocation.EmitArguments): Changed to correctly emit params arguments at
any possition.
* parameter.cs (HasParams): Don't assume that params is the last one.
* support.cs (ReflectionParameters.ctor): Look for params attribute
correctly.
(ReflectionParameters.ParameterType): Removed hack when we returned last
parameter for out of range parameters.
(ParameterName, ParameterModifier): Ditto.
svn path=/trunk/mcs/; revision=69571
Marek Sieradzki [Sat, 16 Dec 2006 11:10:12 +0000 (11:10 -0000)]
2006-12-16 Marek Sieradzki <marek.sieradzki@gmail.com>
* ItemReference.cs: Avoid KeyNotFoundException in ConvertToString ()
and ConvertToITaskItemArray ().
svn path=/trunk/mcs/; revision=69570
Marek Sieradzki [Sat, 16 Dec 2006 11:08:06 +0000 (11:08 -0000)]
2006-12-16 Marek Sieradzki <marek.sieradzki@gmail.com>
* Items.cs: Split not working test from others and add a test for
reference to item that doesn't exist.
svn path=/trunk/mcs/; revision=69569
Marek Sieradzki [Sat, 16 Dec 2006 10:57:32 +0000 (10:57 -0000)]
2006-12-16 Marek Sieradzki <marek.sieradzki@gmail.com>
* Parameters.cs (ProcessProperty): Use SetProperty () not
AddNewProperty ().
svn path=/trunk/mcs/; revision=69568
Miguel de Icaza [Sat, 16 Dec 2006 04:30:13 +0000 (04:30 -0000)]
This TODO does not belong here
svn path=/trunk/mcs/; revision=69567
Miguel de Icaza [Sat, 16 Dec 2006 04:28:02 +0000 (04:28 -0000)]
2006-12-15 Miguel de Icaza <miguel@novell.com>
* Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
TextBoxBase.cs, ListView.cs, ContainerControl.cs,
ScrollableControl.cs: Add a handful of methods that are
overwritten in 2.0
svn path=/trunk/mcs/; revision=69566
Chris Toshok [Sat, 16 Dec 2006 03:57:26 +0000 (03:57 -0000)]
2006-12-15 Chris Toshok <toshok@ximian.com>
* Makefile: add targets for the 2k5 csproj.
* build-csproj2k5: new script to build vs2005 specific projects.
use SWF2k5.sln instead of SWF.sln and upgrading. The 2005 project
doesn't have the problems with resources that the 2003 project
has. The only remaining stumbling block for use is Consts.cs.
* SWF2k5.sln, SWF2k5.csproj: visual studio 2005 versions of these
files.
svn path=/trunk/mcs/; revision=69565
Chris Toshok [Sat, 16 Dec 2006 03:11:44 +0000 (03:11 -0000)]
2006-12-15 Chris Toshok <toshok@ximian.com>
* XplatUIWin32.cs: initial implementation of the Reversible
drawing functions. there are some problems. DrawReversibleFrame
doesn't seem to work at all for Dashed FrameStyle, and in the
Thick case there are drawing errors at the corners (we probably
need to bind Rectangle instead of doing moveto/lineto's.)
svn path=/trunk/mcs/; revision=69564
Andreia Gaita [Sat, 16 Dec 2006 03:03:08 +0000 (03:03 -0000)]
* SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
to send blocks of key messages. Send accumulates keys to send with Flush,
while SendWait sends all keys immediately.
* XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
XplatUIX11.cs, XplatUIX11-new.cs:
- Define SendInput and stubs for OSX and X11, implements Win32 with a call
to Win32 SendInput.
- Added INPUT support structures to XplatUIWin32 for Win32SendInput
Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
testing for ms.net on this class is very tricky, as the tests run too fast
to allow the hook to release, essentially freezing the keyboard and the
test. So, barring a win32 miracle, they'll be commited in the ms-notworking
category :p
2006-12-16 Andreia Gaita <avidigal@novell.com>
svn path=/trunk/mcs/; revision=69563
Jonathan Chambers [Sat, 16 Dec 2006 02:23:01 +0000 (02:23 -0000)]
2006-12-15 Jonathan Chambers <joncham@gmail.com>
* marshal.c (mono_string_from_bstr): Revert previous Windows change
and fix on Linux.
svn path=/trunk/mono/; revision=69562
Miguel de Icaza [Sat, 16 Dec 2006 00:35:05 +0000 (00:35 -0000)]
Add SafeHandle tests
svn path=/trunk/mono/; revision=69561
Miguel de Icaza [Sat, 16 Dec 2006 00:22:53 +0000 (00:22 -0000)]
I should have tested 1.0; Fix
svn path=/trunk/mono/; revision=69560
Miguel de Icaza [Sat, 16 Dec 2006 00:16:39 +0000 (00:16 -0000)]
2006-12-15 Miguel de Icaza <miguel@novell.com>
* marshal.c (mono_string_from_bstr): Jon Chambers pointed out that
my arguments were in the wrong order. I also fixed the Windows
version which seems to have had the same issue.
svn path=/trunk/mono/; revision=69559
Daniel Nauck [Sat, 16 Dec 2006 00:15:11 +0000 (00:15 -0000)]
2006-12-16 Daniel Nauck <dna@mono-project.de>
* System.Windows.Forms_test.dll.sources: Add
PaddingTest.cs
* Padding.cs: fixed serialization compability to MS ("_var" field names),
added missing attributes.
svn path=/trunk/mcs/; revision=69558
Marek Sieradzki [Fri, 15 Dec 2006 23:35:11 +0000 (23:35 -0000)]
006-12-16 Marek Sieradzki <marek.sieradzki@gmail.com>
* ItemPropertyGroupingBase.cs, TaskEngineAssemblyResolver.cs: Removed
classes that were public in Beta 2 and aren't used.
* Expression.cs: Added replacement for parsing expressions char by
char. It uses regexes to find item/property/metadata references in
given text.
* ExpressionCollection.cs, BuildTask.cs, ConditionFactorExpression.cs,
Target.cs, TaskEngine.cs, BuildItemGroup.cs, UsingTask.cs, Import.cs,
BuildItem.cs, BatchingImpl.cs, BuildProperty.cs: Track API changes.
* ConditionRelationalExpression.cs: Formatting.
* OldExpression.cs: Commented everything.
* MetadataReference.cs, ItemReference.cs, PropertyReference.cs: Moved
parsing to Expression.
* BuildItem.cs: Check if project is from XML in set_Condition and
set_Exclude.
* BuildPropertyGroup.cs, Project.cs: Add ImportedProject to
Project.ctor.
* ConditionNotExpression.cs, ConditionAndExpression.cs: Check if we
can evaluate expression in CanEvaluateToBool ().
svn path=/trunk/mcs/; revision=69557
Marek Sieradzki [Fri, 15 Dec 2006 23:23:27 +0000 (23:23 -0000)]
Forgot this file.
svn path=/trunk/mcs/; revision=69556
Marek Sieradzki [Fri, 15 Dec 2006 23:22:50 +0000 (23:22 -0000)]
006-12-16 Marek Sieradzki <marek.sieradzki@gmail.com>
* ConsoleLoggerTest.cs: Added.
* ProjectTest.cs, BuildItemTest.cs: More tests.
svn path=/trunk/mcs/; revision=69555
Marek Sieradzki [Fri, 15 Dec 2006 23:21:07 +0000 (23:21 -0000)]
2006-12-16 Marek Sieradzki <marek.sieradzki@gmail.com>
* Items.cs, Conditions.cs, EvaluationOrder.cs: More tests.
svn path=/trunk/mcs/; revision=69554
Miguel de Icaza [Fri, 15 Dec 2006 22:49:32 +0000 (22:49 -0000)]
This patch contains:
SafeWaitHandle support for WaitHandles (2.0)
A few APIs implemented from Marshal.
2006-12-11 Miguel de Icaza <miguel@novell.com>
* WaitHandle.cs: In 2.0 use SafeWaitHandles and the SafeWaitHandle
patterns instead of using directly the IntPtr Handle.
Refactor the code to reuse as much as possible, and follow the new
conventions where appropriate.
2006-12-15 Miguel de Icaza <miguel@novell.com>
* Marshal.cs (SecureStringToCoTaskMemAnsi, SecureStringToBSTR,
SecureStringToCoTaskMemUnicode, ZeroFreeCoTaskMemAnsi,
ZeroFreeCoTaskMemUnicode, ZeroFreeGlobalAllocAnsi,
ZeroFreeGlobalAllocUnicode): Implement.
(StringToCoTaskAuto): return the same as Ansi.
The ANSI code is out of sync with Mono, which treats ANSI as
UTF-8.
Code formatting changes
svn path=/trunk/mcs/; revision=69552
Miguel de Icaza [Fri, 15 Dec 2006 22:47:09 +0000 (22:47 -0000)]
This patch contains:
SafeHandle implemenation
http://www.mono-project.com/SafeHandles for status
WaitHandle updates for using with new SafeWaitHandle.
Marshal replaces g_error with exceptions in a few areas.
2006-12-15 Miguel de Icaza <miguel@novell.com>
* marshal.c (mono_free_bstr): On Unix, this is g_free.
(mono_string_from_bstr, mono_string_to_bstr): Implement bstr
conversions (for the tests in corlib to pass).
2006-12-14 Miguel de Icaza <miguel@novell.com>
* marshal.c (emit_ptr_to_object_conv): For now, ignore
MONO_MARSHAL_CONV_SAFEHANDLE on return values (we need to throw an
exception if a ref SafeHandle in a struct has changed).
(emit_struct_conv): Do not perform layout checks for classes
derived from SafeHandle, as those are specially handled.
(emit_object_to_ptr_conv): Add support for
MONO_MARSHAL_CONV_SAFEHANDLE conversion.
(emit_marshal_safehandle): Implement conversion of return values
of safehandles (MARSHAL_ACTION_CONV_RESULT).
* threads.c: WaitHandle now is compiled with two different handles
"IntPtr os_handle" for 1.x and "SafeWaitHandle safe_wait_handle"
for 2.0.
(ves_icall_System_Threading_WaitHandle_WaitAll_internal)
(ves_icall_System_Threading_WaitHandle_WaitAny_internal): Adjust
these routines to cope with both kinds of fields.
2006-12-12 Miguel de Icaza <miguel@novell.com>
* metadata.c (mono_type_to_unmanaged): Handle the case where
type->data.klass is a SafeHandle, and in that case, return the
size of a pointer (MONO_NATIVE_INT) and set the conversion to be
MONO_MARSHAL_CONV_SAFEHANDLE.
2006-12-11 Miguel de Icaza <miguel@novell.com>
* marshal.c (emit_marshal): Hook up to the MONO_TYPE_CLASS and
MONO_TYPE_OBJECT cases and check for a SafeHandle here before
calling emit_marshal_object.
(emit_marshal_safehandle): Implement marshalling of
SafeHandle parameters (no ref support yet).
(MarshalAction): Document the defines as I implement
them for SafeHandle.
(emit_marshal_object): indentation police.
* class-internals.h: Define MonoSafeHandle.
Add safehandle_class to MonoDefaults type.
* verify.c: Add System.Runtime.InteropServices.SafeHandle to the
list of classes to check for fields.
* domain.c (mono_init_internal): Add SafeHandle to the list of
mono_defaults loaded.
svn path=/trunk/mono/; revision=69551
Daniel Nauck [Fri, 15 Dec 2006 21:14:26 +0000 (21:14 -0000)]
2006-12-15 Daniel Nauck <dna@mono-project.de>
* ListViewGroup.cs: Added missing attributes.
* ListViewGroupCollection.cs: Added missing attributes.
svn path=/trunk/mcs/; revision=69548
Rolf Bjarne Kvinge [Fri, 15 Dec 2006 20:58:42 +0000 (20:58 -0000)]
* Control.cs: Added missing 2.0 attributes
2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
svn path=/trunk/mcs/; revision=69547
Sebastien Pouliot [Fri, 15 Dec 2006 20:42:45 +0000 (20:42 -0000)]
2006-12-14 Sebastien Pouliot <sebastien@ximian.com>
* Image.cs: Rework Clone so it doesn't confuse MoMA to report a NIE.
Cloning works for bitmap. Metafiles aren't (actually) supported.
svn path=/trunk/mcs/; revision=69546
Daniel Nauck [Fri, 15 Dec 2006 20:21:41 +0000 (20:21 -0000)]
2006-12-15 Daniel Nauck <dna@mono-project.de>
* ListViewItem.cs: fixed ListViewSubItem text property.
* ListViewCollectionsTest.cs: test works now on the 1.1 profile.
* ListViewItemTest.cs: add new ListViewSubItem text property test.
svn path=/trunk/mcs/; revision=69545
Rolf Bjarne Kvinge [Fri, 15 Dec 2006 20:00:22 +0000 (20:00 -0000)]
2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MdiClient.cs: Added missing 2.0 attribute.
* MonthCalendar.cs: Added some missing 2.0 attributes
and properties.
svn path=/trunk/mcs/; revision=69544
Sebastien Pouliot [Fri, 15 Dec 2006 19:30:52 +0000 (19:30 -0000)]
2006-12-15 Sebastien Pouliot <sebastien@ximian.com>
* Makefile: Execute PKITS tests only if the data is installed locally.
See System.dll unit tests for details.
* System.Security_test.dll.sources: Add some PKITS unit tests to the
build.
svn path=/trunk/mcs/; revision=69543
Sebastien Pouliot [Fri, 15 Dec 2006 19:29:32 +0000 (19:29 -0000)]
2006-12-15 Sebastien Pouliot <sebastien@ximian.com>
* SignedCms.cs: Add missing TODO. Some code exists but depends on
other, unimplemented, stuff.
svn path=/trunk/mcs/; revision=69542
Sebastien Pouliot [Fri, 15 Dec 2006 19:27:50 +0000 (19:27 -0000)]
2006-12-15 Sebastien Pouliot <sebastien@ximian.com>
* PkitsTest.cs: New. Common test code to use the PKITS test data.
* Pkits_4_01_SignatureVerification.cs: New. Test signature on S/MIME
using the PKITS test data (if available).
svn path=/trunk/mcs/; revision=69541
Daniel Nauck [Fri, 15 Dec 2006 18:56:32 +0000 (18:56 -0000)]
2006-12-15 Daniel Nauck <dna@mono-project.de>
* ListView.cs: implemented ListViewItemCollection Add 2.0 support.
* ListViewCollectionsTest.cs: new not working junk add test for ListViewItemCollection.
svn path=/trunk/mcs/; revision=69540
Rolf Bjarne Kvinge [Fri, 15 Dec 2006 18:24:22 +0000 (18:24 -0000)]
* MdiChildContext.cs: Removed it, no longer used.
* MdiClient.cs: Added missing 2.0 attributes.
2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
svn path=/trunk/mcs/; revision=69539
Jonathan Pobst [Fri, 15 Dec 2006 18:15:45 +0000 (18:15 -0000)]
2006-12-15 Jonathan Pobst <monkey@jpobst.com>
* MainMenu.cs: Add the new 2.0 constructor to help out people
using the MainMenu in VS2005.
svn path=/trunk/mcs/; revision=69538
Rolf Bjarne Kvinge [Fri, 15 Dec 2006 17:55:15 +0000 (17:55 -0000)]
* InternalWindowManager.cs: Fix a NullRef with previous
changes for toolwindows.
2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
svn path=/trunk/mcs/; revision=69537
Rolf Bjarne Kvinge [Fri, 15 Dec 2006 17:34:21 +0000 (17:34 -0000)]
2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Control.cs:
- Added AfterTopMostControl to allow for certain controls
to always stay on top when normal controls are brought to
front.
* XplatUIWin32.cs:
- (DrawInversibleRectangle): Get window rectangle from Win32
in stead of from control, since Win32 doesn't calculate
screen coords correctly from control's Location if it
have docked siblings.
* MdiWindowManager.cs:
- Correct the control menu popup location when clicked on
the maximized form icon. (fixes #80223.1)
- Don't show moving rectangle if mouse hasn't moved from
the original clicked point.
- Removed FormGotFocus handler (not used).
- Calculate the control buttons location from the main
window's size and not client size (fixes #79770).
- Form is now closed when the form icon is double-clicked
(fixes #79775).
- Correct NCCalcSize numbers a little bit (fixes #80223.2)
* InternalWindowManager.cs:
- Moved some MDI-only methods to MdiWindowManager.
- Removed unused properties and methods.
- Unified method naming for methods handling wm messages.
- Moved all message handling to seperate methods for
each message.
* ThemeWin32Classic.cs:
- DrawManagedWindowDecorations now draws the title bar
with a gradient brush.
- Add a CPDrawButtonInternal that allows us to specify
light, normal and dark colors for the buttons (control
buttons for MDI children were drawn with the same light
color as the background, therefore loosing the 3D effect).
* SizeGrip.cs:
- Add a CapturedControl property that is used to
determine the control to resize (defaults to parent).
Needed for MdiClient, since its SizeGrip's parent is
MdiClient, but the control to resize is the main form.
* MdiClient.cs:
- Set SizeGrip's CapturedControl to the main form in order
to resize the main form and not the MdiClient.
- Override AfterTopMostControl to leave the scrollbars
always on top.
svn path=/trunk/mcs/; revision=69536
Gert Driesen [Fri, 15 Dec 2006 16:26:13 +0000 (16:26 -0000)]
* Marshal.cs: Use SystemDefaultCharSize to determine whether to
use Ansi or Unicode variant of StringToCoTaskMem.
svn path=/trunk/mcs/; revision=69534
Daniel Nauck [Fri, 15 Dec 2006 15:52:28 +0000 (15:52 -0000)]
2006-12-15 Daniel Nauck <dna@mono-project.de>
* ListViewCollectionsTest.cs: new ListViewItemCollection AddRange tests
* ListView.cs: fixed ListViewItemCollection AddRange and
implemented ListViewItemCollection AddRange 2.0 support.
svn path=/trunk/mcs/; revision=69533
Daniel Nauck [Fri, 15 Dec 2006 13:07:43 +0000 (13:07 -0000)]
2006-12-15 Daniel Nauck <dna@mono-project.de>
* ListViewCollectionsTest.cs: new ListViewItemCollection indexer test for #80199.
svn path=/trunk/mcs/; revision=69531
Miguel de Icaza [Fri, 15 Dec 2006 05:34:51 +0000 (05:34 -0000)]
2006-12-15 Miguel de Icaza <miguel@novell.com>
* Marshal.cs (StringToCoTaskAuto): return the same as Ansi.
svn path=/trunk/mcs/; revision=69525
Miguel de Icaza [Fri, 15 Dec 2006 05:31:04 +0000 (05:31 -0000)]
2006-12-15 Miguel de Icaza <miguel@novell.com>
* Marshal.cs: Code formatting changes
svn path=/trunk/mcs/; revision=69524
Miguel de Icaza [Fri, 15 Dec 2006 05:24:32 +0000 (05:24 -0000)]
2006-12-15 Miguel de Icaza <miguel@novell.com>
* FileInfo.cs: Empty implementations for Encrypt and Decrypt
svn path=/trunk/mcs/; revision=69523
Miguel de Icaza [Fri, 15 Dec 2006 05:23:57 +0000 (05:23 -0000)]
Improve message
svn path=/trunk/mcs/; revision=69522
Sebastien Pouliot [Fri, 15 Dec 2006 03:39:04 +0000 (03:39 -0000)]
2006-12-14 Sebastien Pouliot <sebastien@ximian.com>
* X500DistinguishedNameTest.cs: Add test case for Teletext/T61String.
* X509Certificate2Test.cs: Add test case for Teletext/T61String.
svn path=/trunk/mcs/; revision=69520
Sebastien Pouliot [Fri, 15 Dec 2006 03:23:23 +0000 (03:23 -0000)]
2006-12-14 Sebastien Pouliot <sebastien@ximian.com>
* X501Name.cs: Added support for (some cases of) T.61 strings, like
the latin-1 encoded accentued characters founds in some DN. Fix bug
#77295.
svn path=/trunk/mcs/; revision=69519
Raja R Harinath [Fri, 15 Dec 2006 02:24:15 +0000 (02:24 -0000)]
D'oh!! guard 2.0 namespace with NET_2_0
svn path=/trunk/mcs/; revision=69518
Sebastien Pouliot [Fri, 15 Dec 2006 00:35:01 +0000 (00:35 -0000)]
2006-12-14 Sebastien Pouliot <sebastien@ximian.com>
* X501NameTest.cs: Added test case with a DN using Teletex/T61String.
svn path=/trunk/mcs/; revision=69517
Sebastien Pouliot [Fri, 15 Dec 2006 00:33:51 +0000 (00:33 -0000)]
2006-12-14 Sebastien Pouliot <sebastien@ximian.com>
* X501Name.cs: Added support for (some cases of) T.61 strings, like
the latin-1 encoded accentued characters founds in some DN. Fix bug
#77295.
svn path=/trunk/mcs/; revision=69516
Daniel Nauck [Fri, 15 Dec 2006 00:11:18 +0000 (00:11 -0000)]
2006-12-15 Daniel Nauck <dna@mono-project.de>
* ListViewGroup.cs, ListViewGroupCollection.cs: Add
first part of ListViewGroups 2.0 support
* ListViewGroupTest.cs, ListViewGroupCollectionTest.cs: Add
tests for ListViewGroups
* ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
* ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
stub for ImageKey 2.0 support.
svn path=/trunk/mcs/; revision=69515
Miguel de Icaza [Fri, 15 Dec 2006 00:02:59 +0000 (00:02 -0000)]
Comment
svn path=/trunk/mcs/; revision=69514
Mike Kestner [Thu, 14 Dec 2006 22:58:49 +0000 (22:58 -0000)]
2006-12-14 Mike Kestner <mkestner@novell.com>
* ListView.cs: add text padding to the autocalculation for columns
of width -2. Fixes #80207.
svn path=/trunk/mcs/; revision=69513
Paolo Molaro [Thu, 14 Dec 2006 20:43:06 +0000 (20:43 -0000)]
Thu Dec 14 21:42:39 CET 2006 Paolo Molaro <lupus@ximian.com>
* processes.c: fixed a few memory leaks when executing
processes.
svn path=/trunk/mono/; revision=69509
Mike Kestner [Thu, 14 Dec 2006 20:41:48 +0000 (20:41 -0000)]
2006-12-14 Mike Kestner <mkestner@novell.com>
* ListView.cs: add some index guarding for partial row navigation
logic. Fixes #80250.
svn path=/trunk/mcs/; revision=69508
Gert Driesen [Thu, 14 Dec 2006 20:12:23 +0000 (20:12 -0000)]
* TabControlTest.cs: Added tests for Control.RemoveAt.
svn path=/trunk/mcs/; revision=69507
Paolo Molaro [Thu, 14 Dec 2006 19:25:03 +0000 (19:25 -0000)]
Thu Dec 14 20:24:09 CET 2006 Paolo Molaro <lupus@ximian.com>
* Process.cs: if a process object is restarted, close the
previous process handle (bug #80143).
svn path=/trunk/mcs/; revision=69505
Sebastien Pouliot [Thu, 14 Dec 2006 19:03:17 +0000 (19:03 -0000)]
2006-12-14 Sebastien Pouliot <sebastien@ximian.com>
* AuthenticodeBase.cs: Support (strip) COFF symbol table when
calculating the hash value of a PE file.
* AuthenticodeDeformatter.cs: Adapt to changes in base class.
* AuthenticodeFormatter.cs: Reuse more code from base class. Strip
COFF symbol table (if present). Fix alignment (on 8 bytes) for the
signature location.
svn path=/trunk/mcs/; revision=69502
Sebastien Pouliot [Thu, 14 Dec 2006 18:59:10 +0000 (18:59 -0000)]
2006-12-14 Sebastien Pouliot <sebastien@ximian.com>
* chktrust.cs: Display the error even if the root is trusted.
svn path=/trunk/mcs/; revision=69501
Raja R Harinath [Thu, 14 Dec 2006 18:56:51 +0000 (18:56 -0000)]
* TypeBuilderTest.cs (MakeGenericType, Fail_MakeGenericType): New
tests inspired by #80253.
svn path=/trunk/mcs/; revision=69500
Raja R Harinath [Thu, 14 Dec 2006 18:56:08 +0000 (18:56 -0000)]
Fix #80253
* reflection.c (mono_reflection_bind_generic_parameters): If the
generic type definition is a type builder, ensure that it is fully
initialized before instantiating it. Kill some dead code.
svn path=/trunk/mono/; revision=69499
Chris Toshok [Thu, 14 Dec 2006 18:44:35 +0000 (18:44 -0000)]
revert r69151
svn path=/trunk/mcs/; revision=69498
Raja R Harinath [Thu, 14 Dec 2006 18:30:01 +0000 (18:30 -0000)]
* Type.cs (MakeGenericType): Can only be called on a generic type definition.
svn path=/trunk/mcs/; revision=69497
Mike Kestner [Thu, 14 Dec 2006 18:21:54 +0000 (18:21 -0000)]
2006-12-14 Mike Kestner <mkestner@novell.com>
* ListView.cs: throw ArgumentExceptions when parented ListViewItems
are added or inserted to the collection. Fixes #81099.
svn path=/trunk/mcs/; revision=69496
Miguel de Icaza [Thu, 14 Dec 2006 18:14:14 +0000 (18:14 -0000)]
Update copyrights
svn path=/trunk/mcs/; revision=69494
Eyal Alalouf [Thu, 14 Dec 2006 17:37:34 +0000 (17:37 -0000)]
Adding various attributes inheriting from MonoTODO.
svn path=/trunk/mcs/; revision=69493
Paolo Molaro [Thu, 14 Dec 2006 16:18:22 +0000 (16:18 -0000)]
Thu Dec 14 17:02:59 CET 2006 Paolo Molaro <lupus@ximian.com>
* object.c: clear the loader_error () before loading
more metadata stuff (bug #80258).
svn path=/trunk/mono/; revision=69491
Marek Safar [Thu, 14 Dec 2006 15:50:24 +0000 (15:50 -0000)]
2006-12-14 Marek Safar <marek.safar@gmail.com>
A fix for bug #79987
* decl.cs (DeclSpace.VerifyClsCompliance): External names cache is null
when assembly is not CLS compliant but type is. I have no idea why is this
allowed.
* typemanager.cs (Reset): Invalidate AllClsTopLevelTypes cache.
svn path=/trunk/mcs/; revision=69489
Paolo Molaro [Thu, 14 Dec 2006 14:23:32 +0000 (14:23 -0000)]
Thu Dec 14 15:22:43 CET 2006 Paolo Molaro <lupus@ximian.com>
* mini.c: emit a break opcode where Debugger.Break () is called.
svn path=/trunk/mono/; revision=69488