Yoni Klain [Sun, 28 May 2006 13:04:26 +0000 (13:04 -0000)]
svn path=/trunk/mcs/; revision=61207
Andrew Skiba [Sun, 28 May 2006 12:46:08 +0000 (12:46 -0000)]
nunitweb framework works on mono
svn path=/trunk/mcs/; revision=61206
Gert Driesen [Sun, 28 May 2006 12:31:41 +0000 (12:31 -0000)]
* UnixRegistryApi.cs: GetSubKeyNames returns only names of subkeys, not the
qualified names. Fixes bug #78519.
* RegistryKeyTest.cs: Added test for bug #78519.
svn path=/trunk/mcs/; revision=61205
Andrew Skiba [Sun, 28 May 2006 11:06:06 +0000 (11:06 -0000)]
workaround for bug #78521
svn path=/trunk/mcs/; revision=61204
Andrew Skiba [Sun, 28 May 2006 09:12:46 +0000 (09:12 -0000)]
use new delegates
svn path=/trunk/mcs/; revision=61203
Andrew Skiba [Sun, 28 May 2006 09:04:00 +0000 (09:04 -0000)]
add ThemeTest.cs with new tests for themes
svn path=/trunk/mcs/; revision=61202
Andrew Skiba [Sun, 28 May 2006 08:56:57 +0000 (08:56 -0000)]
remove unneeded using
svn path=/trunk/mcs/; revision=61201
Andrew Skiba [Sun, 28 May 2006 08:54:18 +0000 (08:54 -0000)]
add PageDelegate structure for passing delegates between appdomains
svn path=/trunk/mcs/; revision=61200
Andrew Skiba [Sun, 28 May 2006 08:44:55 +0000 (08:44 -0000)]
make MyPage.aspx.cs generic, providing callbacks for all sys.web.ui.Page events
svn path=/trunk/mcs/; revision=61199
Zoltan Varga [Sat, 27 May 2006 20:55:14 +0000 (20:55 -0000)]
2006-05-27 Zoltan Varga <vargaz@gmail.com>
* assembly.c (mono_assembly_open_full): Dont overwrite the status
returned by mono_image_open_full ().
* appdomain.c (ves_icall_System_Reflection_Assembly_LoadFrom): Convert
MONO_IMAGE_IMAGE_INVALID into a BadImageFormatException. Fixes
#78517.
svn path=/trunk/mono/; revision=61196
Zoltan Varga [Sat, 27 May 2006 20:35:07 +0000 (20:35 -0000)]
2006-05-27 Zoltan Varga <vargaz@gmail.com>
* object.c (compute_class_bitmap): Use class->class_size for static fields. Fixes
#78518.
svn path=/trunk/mono/; revision=61194
Miguel de Icaza [Sat, 27 May 2006 17:09:22 +0000 (17:09 -0000)]
2006-05-27 Miguel de Icaza <miguel@novell.com>
* class.c (mono_class_from_typeref): handle missing images
earlier, deals with bug #78418. Refactor code;
Fix a warning introduced in my previous commit (some stale code
from before I revisited my patch).
svn path=/trunk/mono/; revision=61193
Miguel de Icaza [Sat, 27 May 2006 16:44:07 +0000 (16:44 -0000)]
This is a patch to fix *some* loader issues; As Zoltan pointed out
on bug 76661, this is not a complete bug fix as there are many code
paths that must be looked after, but I did not want to blindly go making
changes everywhere in the runtime.
Instead this patch is only the beginning for adding error handling
for loader errors and so far it covers the reported errors on bug 76661
(I covered them all) and some extra errors that I manually created (as
IL files).
2006-05-27 Miguel de Icaza <miguel@novell.com>
* class.c (mono_class_create_from_typedef): On failure, remove the
class from the MonoImage->class_cache as the class is not
initialized; Fixes the leak pointed out by Paolo.
2006-05-17 Miguel de Icaza <miguel@novell.com>
* class.c (mono_class_get_exception_for_failure): Implement parts
of a TODO: if the loader error is set (instead of the class
error), we return a Loader exception that can be properly thrown
elsewhere.
This was exposed by some Winforms 2.0 code that I tried to run
(Atsushi pointed me to it).
2006-05-11 Miguel de Icaza <miguel@novell.com>
* loader.c (method_from_memberref): Do not pass the NULL klass to
mono_loader_set_error_() methods. Pass the non-NULL value
(class).
2006-05-09 Miguel de Icaza <miguel@novell.com>
* object.c (mono_load_remote_field): The code used to provide a
temporary variable for returning results if the user did not
provide a result pointer. But our temporary variable was allocted
on the satck.
Fix calling code to always pass a result area. Coverity ID 103.
2006-04-28 Miguel de Icaza <miguel@novell.com>
Work to catch the crash from #76795 and turn it into an
exception. As I stubbed out pieces of the VisualBasic support,
I found a number of places where the code was failing and I added
checks to those places.
* metadata.c (do_mono_metadata_parse_generic_class): Make this
function return a status code. If we fail to parse the signature
from mono_metadata_parse_generic_inst, return FALSE.
* loader.c (mono_get_method_from_token): If we fail to load the
method (mono_class_get) return NULL.
* (method_from_memberref): Return NULL if we are unable to parse
the method signature
(mono_loader_error_prepare_exception): Since we now use the
loader_error flag internally to stop processing, and obtaining
exceptions that might be thrown will walk this code path the
proper way of going from a MonoLoaderError into a
MonoException was convoluted. This new routine encapsulates the
process of turning the error into an exception and *clearing* the
error afterwards.
2006-04-27 Miguel de Icaza <miguel@novell.com>
Work to catch the crashes from 75075 (cope in Assembly.GetTypes
with missing assemblies), and to cope with:
* Missing fieldref from a non-existing assembly.
* Missing methodref from a non-existing assembly.
The first batch of work to address *some* of the issues from 76661.
* object.c (mono_class_create_runtime_vtable): If we fail to
initialize the class raise the exception here.
* metadata.c (mono_class_get_overrides_full): If any methods fail
to load return the failure to the caller.
* assembly.c: Use REFERENCE_MISSING instead of (gpointer) -1 for
flagging assemblies that failed to load.
Do not crash if we are unable to load the assembly.
(mono_assembly_close): Do nothing with REFERENCE_MISSING
assemblies.
* loader.c (mono_loader_set_error_type_load): Change the
convention to always pass unallocated strings, so we make our own
copies (I know our own code had duplicated strings before, but
this keeps the normal conventions).
(method_from_memberref): Call mono_loader_set_error_method_load
for all possible failures of loading the class.
Remove assert, turn into a loader error.
(mono_loader_error_to_exception): Move this routine from mini
(mini_loader_error_to_exception) there was no need to have that in
mini.
* class.c (mono_class_from_typeref): If we were not able to load
the assembly with mono_assembly_load_reference, call the
mono_loader_set_error_type_load to register the problem.
(mono_class_setup_fields): If we fail to load the type from
mono_metadata_parse_type_full, call mono_class_set_failure and
break from the loop.
If class->exception_type is set, we do not layout the fields as
that might crash the runtime, and instead return (from breaking
from the previous loop).
(mono_class_setup_vtable): This now returns a boolean indicating
whether the table was properly setup. The decision is driven by
mono_class_get_overrides_full which might run into non-existing
methods.
(mono_class_init): Returns TRUE on success or FALSE if there was a
problem in loading the type (incorrect assemblies, missing
assemblies, methods, etc).
When we call mono_class_setup_fields we also check for a potential
error inside this call (either a class exception or a general
loader exception).
(mono_class_create_from_typedef): If the parent fails to load
(calling mono_class_get_full) return NULL.
** Important **
calls to mono_metadata_parse_type_full should be checked
everywhere and set the mono_class_set_failure
(MONO_EXCEPTION_TYPE_LOAD) if we are not able to get the type.
The current patch checks the places where my manually constructed
tests show the errors are showing up, but we should do it
everywhere.
** Important2 **
mono_class_init return values should be tested everywhere, like
the previous case this is something that we should audit
everywhere and not only on the cases exposed by the tests I
created.
2006-04-28 Miguel de Icaza <miguel@novell.com>
* mini.c (mono_jit_compile_method_inner):
Use mono_prepare_exception_from_error
that resets the value internally.
2006-04-27 Miguel de Icaza <miguel@novell.com>
* mini.c: Move the mini_loader_error_to_exception to metadata.
svn path=/trunk/mono/; revision=61191
Marek Sieradzki [Sat, 27 May 2006 13:21:18 +0000 (13:21 -0000)]
2006-05-27 Marek Sieradzki <marek.sieradzki@gmail.com>
* Utilities.cs: Implemented Escape ().
* BuildItem.cs: Added null checks.
* BuildPropertyGroup.cs, BuildProperty.cs: Moved FromXml property.
* Project.cs: Commented out redundant Evaluate ().
* BuildChoose.cs: Minor changes.
svn path=/trunk/mcs/; revision=61189
Marek Sieradzki [Sat, 27 May 2006 13:17:23 +0000 (13:17 -0000)]
I forgot about this file.
svn path=/trunk/mcs/; revision=61188
Marek Sieradzki [Sat, 27 May 2006 13:16:26 +0000 (13:16 -0000)]
2006-05-27 Marek Sieradzki <marek.sieradzki@gmail.com>
* BuildItemTest.cs: Swapped expected with actual results.
* UtilitiesTest.cs: Added.
svn path=/trunk/mcs/; revision=61187
Marek Sieradzki [Sat, 27 May 2006 13:12:45 +0000 (13:12 -0000)]
2005-05-27 Marek Sieradzki <marek.sieradzki@gmail.com>
* CommandLineBuilder.cs: Corrected IsQuotingRequired ().
* TaskLoggingHelper.cs: Added null check.
svn path=/trunk/mcs/; revision=61186
Marek Sieradzki [Sat, 27 May 2006 11:20:02 +0000 (11:20 -0000)]
Moved and updated VS2005 solution.
svn path=/trunk/mcs/; revision=61185
Zoltan Varga [Sat, 27 May 2006 01:55:33 +0000 (01:55 -0000)]
2006-05-27 Zoltan Varga <vargaz@gmail.com>
* mini-amd64.c (mono_arch_output_basic_block): Fix MONO_PROFILE_COVERAGE.
svn path=/trunk/mono/; revision=61184
Miguel de Icaza [Fri, 26 May 2006 22:46:30 +0000 (22:46 -0000)]
Oops, accidentally commited part of my TypeLoaderException patch, revert
svn path=/trunk/mono/; revision=61183
Miguel de Icaza [Fri, 26 May 2006 22:33:35 +0000 (22:33 -0000)]
Enable inline optimizations again
svn path=/trunk/mono/; revision=61181
Jackson Harper [Fri, 26 May 2006 21:46:13 +0000 (21:46 -0000)]
* KeyboardLayouts.cs: Eliminate some dead code.
- Lazy init things
* X11Keyboard.cs: Lazy init keyboard detection.
- Cleanup access modifiers a little.
svn path=/trunk/mcs/; revision=61180
Peter Dennis Bartok [Fri, 26 May 2006 21:31:50 +0000 (21:31 -0000)]
2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
* MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
than WM_SYSKEY, don't throw if get something unexpected (#78507)
svn path=/trunk/mcs/; revision=61179
Miguel de Icaza [Fri, 26 May 2006 20:54:52 +0000 (20:54 -0000)]
2006-05-26 Miguel de Icaza <miguel@novell.com>
* cs-parser.jay: Catch another parsing form for arglist being
followed by other arguments. Fixes #78313.
svn path=/trunk/mcs/; revision=61178
Jackson Harper [Fri, 26 May 2006 20:41:54 +0000 (20:41 -0000)]
* KeyboardLayouts.cs: Eliminate some dead code.
svn path=/trunk/mcs/; revision=61177
Jackson Harper [Fri, 26 May 2006 20:24:33 +0000 (20:24 -0000)]
* ControlPaint.cs:
* ThemeWin32Classic.cs: For color comparisons just use the ARGB
values, it's faster and it's all we care about (we don't care if
the names aren't equal).
svn path=/trunk/mcs/; revision=61176
Peter Dennis Bartok [Fri, 26 May 2006 20:04:31 +0000 (20:04 -0000)]
2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: Once again, attempting to get layout just right.
svn path=/trunk/mcs/; revision=61175
Jackson Harper [Fri, 26 May 2006 19:51:03 +0000 (19:51 -0000)]
* TreeNodeCollection.cs: If the tree doesn't have a top node
* when
a new node is inserted make the new node the top.
svn path=/trunk/mcs/; revision=61174
Zoltan Varga [Fri, 26 May 2006 19:17:55 +0000 (19:17 -0000)]
2006-05-26 Zoltan Varga <vargaz@gmail.com>
* jit-debug: Fix two other places.
svn path=/trunk/mono/; revision=61173
Zoltan Varga [Fri, 26 May 2006 19:15:35 +0000 (19:15 -0000)]
2006-05-26 Zoltan Varga <vargaz@gmail.com>
* jit-debug: print_method_from_ip -> mono_print_method_from_ip (). Fixes
#78514.
svn path=/trunk/mono/; revision=61172
Peter Dennis Bartok [Fri, 26 May 2006 19:08:56 +0000 (19:08 -0000)]
2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
* LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
the sizes of each link section, that will result in sizes that
match DrawString's layout (Fixes #78391)
svn path=/trunk/mcs/; revision=61171
Alexander Olk [Fri, 26 May 2006 17:29:14 +0000 (17:29 -0000)]
2006-05-27 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: If AddExtension property is true autocomplete the
extensions in SaveFileDialog correctly. Fixes bug #78453.
Set MyNetwork and MyComputer to "C:\" for windows. This should
fix part 8 of bug #78446 for now.
svn path=/trunk/mcs/; revision=61170
Gonzalo Paniagua Javier [Fri, 26 May 2006 14:18:07 +0000 (14:18 -0000)]
2006-05-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* HttpApplication.cs: context.Handler does not change for
HttpServerUtility.Execute, so moved setting it into the pipeline instead
of GetHandler.
svn path=/trunk/mcs/; revision=61166
Ankit Jain [Fri, 26 May 2006 14:11:50 +0000 (14:11 -0000)]
In ilasm/codegen:
* Assembly.cs: New. Represents a '.assembly {}' (assembly manifest).
* CodeGen.cs: Update to use the Assembly class.
In ilasm:
* ilasm.exe.sources: Add Assembly.cs
* Driver.cs: Update to use the new Assembly class.
* ilasm.exe.sources: Add PermissionMember.cs, PermissionSet.cs &
Permission.cs
In ilasm/parser:
* ILParser.jay: Update to use new Assembly class.
svn path=/trunk/mcs/; revision=61164
Sebastien Pouliot [Fri, 26 May 2006 12:49:52 +0000 (12:49 -0000)]
2006-05-26 Sebastien Pouliot <sebastien@ximian.com>
* ImageFormatConverter.cs: Fixing unit tests for ImageFormat
introduced a regression in the converter (not catched by other unit
tests).
svn path=/trunk/mcs/; revision=61162
Sebastien Pouliot [Fri, 26 May 2006 11:50:40 +0000 (11:50 -0000)]
2006-05-26 Sebastien Pouliot <sebastien@ximian.com>
* TestColor.cs: Added test cases for serialization. Currently we can't
deserialize Color coming from MS serialization.
svn path=/trunk/mcs/; revision=61161
Ankit Jain [Fri, 26 May 2006 10:43:30 +0000 (10:43 -0000)]
Add support or 2.0 style declarative security attributes.
In ilasm/tests:
* test-perm_pass-3.il: New. Test for 2.0 style declarative security
attributes.
In ilasm/codegen:
* PermissionSet.cs: New.
* Permission.cs: New.
* PermissionMember.cs: New. Classes for 2.0 metadata format of
declarative security.
* DeclSecurity.cs (DeclSecurity.AddPermissionSet): New. Overload for new
PermissionSet class.
(DeclSecurity.AddTo): Add new style PermissionSets also.
* CodeGen.cs (CodeGen.AddPermisson): Handle new PermissionSets also.
* ExternTable.cs (ExternAssembly.AssemblyName): New.
In ilasm/scanner:
* ILTables.cs (keywords): Move 'property' out of NET_2_0 .
In ilasm/parser:
Add support or 2.0 style declarative security attributes.
* ILParser.jay (primitive_type): New. Extracted from 'type'.
(field_init_primitive): New. Extracted from 'field_init', with all
primitive types.
(sec_decl | ..): New rule for 2.0 style permissions.
(permissions):
(permission):
(permission_members):
(permission_member):
(perm_mbr_nameval_pair):
(prop_or_field): New rules for 2.0 style permissions.
(AddSecDecl): New.
In class/PEAPI:
* Metadata.cs (DeclSecurity): Rename to ..
(BaseDeclSecurity): .. this.
(DeclSecurity): New. Derive from BaseDeclSecurity.
(DeclSecurity_20): Likewise. For 2.0 style declaritive security.
(PermissionSet): New.
(Permission): New.
(PermissionMember): New.
(MetaData.AddDeclSecurity): Update to use BaseDeclSecurity.
(MetaData.BuildMetaData): Likewise.
* PEAPI.cs (PEFile.AddDeclSecurity): New overload for new PermissionSet
class.
svn path=/trunk/mcs/; revision=61158
Ankit Jain [Fri, 26 May 2006 10:41:30 +0000 (10:41 -0000)]
Patch from Sebastien Pouliot.
* declsec.h: New.
* declsec.c: New. Support for new declarative security attribute
metadata format (2.0)
* dump.c (dump_table_declsec): Support the new 2.0 format.
* main.c (dump_declarative_security): Support the new 2.0 format.
* Makefile.am : Add declsec.c & declsec.h .
svn path=/trunk/mono/; revision=61157
Senganal T [Fri, 26 May 2006 08:26:47 +0000 (08:26 -0000)]
2006-05-26 Senganal T <tsenganal@novell.com>
* Test/ProviderTests/System.Data.SqlClient/SqlParameterTest.cs :
Test if Parameter Type is inferred correctly
when Value is null or DBNull. Also, if Type is not explicitly set,
test if it is inferred from the value of the parameter evertime the
value is set.
* System.Data.SqlClient/SqlParameter.cs :
- InferSqlType : if value is null or DBNull.Value, retain the
current parameter type.
svn path=/trunk/mcs/; revision=61156
Marek Sieradzki [Fri, 26 May 2006 07:30:13 +0000 (07:30 -0000)]
2006-05-26 Marek Sieradzki <marek.sieradzki@gmail.com>
* MessageTest.cs: Corrected.
* WarningTest.cs: Added.
* ErrorTest.cs: Added new test.
svn path=/trunk/mcs/; revision=61155
Marek Sieradzki [Fri, 26 May 2006 07:26:18 +0000 (07:26 -0000)]
2006-05-26 Marek Sieradzki <marek.sieradzki@gmail.com>
* RegisterAssembly.cs, SignFile.cs, GenerateTrustInfo.cs,
CreateItem.cs, UnregisterAssembly.cs, Csc.cs: Changed various return
null and return true to NotImplementedException;
* Error.cs: Changed to use helpKeyword and code.
* GetFrameworkSdkPath.cs, GetFrameworkPath.cs: Changed to use
Mono.XBuild.Utilities.MonoLocationHelper.
* Message.cs: Fixed to use proper MessageImportance and removed error
logging.
* ManagedCompiler.cs: Added MonoTODO and ListHasNoDuplicateItems ().
* GenerateResource.cs: Fixed wrong if block.
svn path=/trunk/mcs/; revision=61154
Marek Sieradzki [Fri, 26 May 2006 07:16:31 +0000 (07:16 -0000)]
Updated MonoDevelop solutions.
svn path=/trunk/mcs/; revision=61153
Marek Sieradzki [Fri, 26 May 2006 07:16:03 +0000 (07:16 -0000)]
2006-05-26 Marek Sieradzki <marek.sieradzki@gmail.com>
* Logger.cs: Added MonoTODO.
* TaskLoggingHelper.cs: Changed helpKeywordPrefix to helpKeyword. It
looks like it's still wrong.
svn path=/trunk/mcs/; revision=61152
Marek Sieradzki [Fri, 26 May 2006 07:13:34 +0000 (07:13 -0000)]
2006-05-26 Marek Sieradzki <marek.sieradzki@gmail.com>
* CommandLineBuilderTest.cs: Added tests for
VerifyThrowNoEmbeddedQuotes () and IsQuotingRequired ().
svn path=/trunk/mcs/; revision=61151
Marek Sieradzki [Fri, 26 May 2006 07:11:55 +0000 (07:11 -0000)]
Updated MonoDevelop project files.
svn path=/trunk/mcs/; revision=61150
Chris Toshok [Fri, 26 May 2006 04:14:31 +0000 (04:14 -0000)]
2006-05-26 Chris Toshok <toshok@ximian.com>
* DataGrid.cs (ColumnStartedEditing): fill these in. for now just
invalidate the current row header if we need to, but presumably
we'll invalidate the row corrsponding to the bounds or
editingControl.
(GridHScrolled): switch back to this method, as it's part of the
public api. *sigh*.
(GridVScrolled): same.
(OnMouseWheel): hack up something that more or less works. Call
GridHScrolled/GridVScrolled directly, instead of duplicating much
of their code here.
(EnsureCellVisibility): reinstate a bunch of this code, since we
can't just set the scrollbar Value and expect to do all the work
in the ValueChanged handler. Also, Call Update() after scrolling
in one direction so the other XplatX11.ScrollWindow call has the
proper stuff in the proper places.
(EditCell): set is_editing to true before calling .Edit.
* DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
don't bother comparing first.
(OnKeyPress): call grid.ColumnStartedEditing before calling
base.OnKeyPress. this will set is_changing and invalidate the row
header if necessary.
(ProcessKeyMessage): for WM_CHAR messages, call
ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
and WM_KEYDOWN.
* DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
it's done in the DataGrid.
(NextState): call grid.ColumnStartedEditing, which takes care of
invalidating the row header (and setting is_changing).
* DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
here. it's done in the DataGrid.
svn path=/trunk/mcs/; revision=61149
Gonzalo Paniagua Javier [Fri, 26 May 2006 01:32:06 +0000 (01:32 -0000)]
2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* Control.cs: allow changing the cursor when the mouse position is
out of bounds but Capture is set.
* LinkLabel.cs: handle the case when the mouse button is pressed on the
linklabel but released somewhere else.
svn path=/trunk/mcs/; revision=61148
Jackson Harper [Thu, 25 May 2006 23:25:06 +0000 (23:25 -0000)]
* XplatUIX11.cs:
* Timer.cs: Use Utc time so that no local time zone stuff needs
* to
be used (should be faster).
svn path=/trunk/mcs/; revision=61145
Jackson Harper [Thu, 25 May 2006 22:23:24 +0000 (22:23 -0000)]
* TreeViewTest.cs: Add a couple of default properties.
* Put in
correct namespace.
* TabControlTest.cs: Put in correct namespace.
svn path=/trunk/mcs/; revision=61144
Jackson Harper [Thu, 25 May 2006 19:45:03 +0000 (19:45 -0000)]
* TreeView.cs: When we get focus if there is no selected
* node make
it the top node
- Remove some uneeded setup code from Draw.
* TreeNodeCollection.cs: If the tree doesn't have a top node
* when
a new node is inserted make the new node the top.
svn path=/trunk/mcs/; revision=61141
Chris Toshok [Thu, 25 May 2006 19:43:25 +0000 (19:43 -0000)]
* DataGrid.cs (EnsureCellVisibility): remove some code to fix a
problem with the last commit.
2006-05-25 Chris Toshok <toshok@ximian.com>
svn path=/trunk/mcs/; revision=61140
Chris Toshok [Thu, 25 May 2006 19:37:06 +0000 (19:37 -0000)]
2006-05-25 Chris Toshok <toshok@ximian.com>
* DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
need the invalidate call here, while scrolling right-to-left via
the left arrow key (i.e. moving the editing cell while scrolling).
* DataGrid.cs (.ctor): remove the initialization of
ctrl_pressed/shift_pressed. We no longer track them using key
up/down handlers, but by using Control.ModifierKeys. Also, switch
to using ValueChanged handlers on the scrollbars instead of
Scrolled event handlers. This simplifies a bunch of the scrolling
code.
(GridHValueChanged): rename from GridHScrolled, and change it to
work with the new event args.
(GridVValueChanged): same.
(OnMouseDown): initialize ctrl_pressed/shift_pressed here.
(OnMouseWheel): actually scroll the datagrid. Don't change the
selected cell.
(ProcessGridKey): correct all the keyboard navigation stuff I
could find. Ctrl up/down/left/right/home/end work now.
(EnsureCellVisibility): correct method name spelling. Also,
simplify this a touch by not explicitly calling the
ScrollToRow/ScrollToColumnInPixels methods. We just set the
scrollbar value.
(OnKeyUpDG): no need for this method now.
svn path=/trunk/mcs/; revision=61139
Gonzalo Paniagua Javier [Thu, 25 May 2006 19:28:26 +0000 (19:28 -0000)]
2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* LinkLabel.cs: display the OverrideCursor when hovering the label.
Fixes bug #78392.
svn path=/trunk/mcs/; revision=61138
Chris Toshok [Thu, 25 May 2006 19:25:28 +0000 (19:25 -0000)]
2006-05-25 Chris Toshok <toshok@ximian.com>
* ThemeWin32Classic.cs: fix datagrid clipping problems caused by
r61019.
svn path=/trunk/mcs/; revision=61137
Joshua Tauberer [Thu, 25 May 2006 19:14:15 +0000 (19:14 -0000)]
Sqlite unnamed parameters (by index) werent implemented.
svn path=/trunk/mcs/; revision=61136
Jackson Harper [Thu, 25 May 2006 19:08:53 +0000 (19:08 -0000)]
- Fix VisibleCount to use the ViewportRectangle so that
scrollbars
are factored into the visible count
- Use VisibleCount for clarity in the code
- When the font is changed we need to recurse through all the
nodes and invalidate their sizes
svn path=/trunk/mcs/; revision=61135
Peter Dennis Bartok [Thu, 25 May 2006 18:53:10 +0000 (18:53 -0000)]
2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
* Application.cs: Moved setting of is_modal and closing to before
we create the control, to allow the event handlers called as a
result of creation affect closing. Also removed Gonzalo's previous
change to setting DialogResult, the behaviour has been moved to
Form.ShowDialog()
* Form.cs:
- ShowDialog(): Removed explicit creation of the form, let RunLoop
handle it instead
- ShowDialog(): If no dialog result is set, we need to return Cancel
- WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
the close is cancelled
svn path=/trunk/mcs/; revision=61132
Jackson Harper [Thu, 25 May 2006 18:45:09 +0000 (18:45 -0000)]
* TreeView.cs: Scrollable is true by default
- Use invalidate instead of refresh where needed
- Factor the scrollable value into scrollbar updating
- Update the scrollbars if the Scrollable property is altered
- Update the selected node if its ImageIndex is changed
- Handle null nodes in UpdateNode (mainly so we don't have to
check if selected is null when updating it
svn path=/trunk/mcs/; revision=61131
Jackson Harper [Thu, 25 May 2006 17:41:39 +0000 (17:41 -0000)]
* StatusBar.cs: We only need to update the sizes of the other
panels when we have auto size contents. Also we are only
updating
the contents of the panel, not the borders, so compensate for
the
border width (TODO: get this width from the theme somehow).
svn path=/trunk/mcs/; revision=61130
Atsushi Eno [Thu, 25 May 2006 16:51:36 +0000 (16:51 -0000)]
2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
* corlib_test.dll.sources : added EncodingInfoTest.cs.
* EncodingInfo.cs, Encoding.cs :
Implemented Encoding.GetEncodings(). It's so hacky!
* EncodingInfoTest.cs : new TestFixture.
svn path=/trunk/mcs/; revision=61128
Gonzalo Paniagua Javier [Thu, 25 May 2006 16:16:08 +0000 (16:16 -0000)]
2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* Application.cs: set the DialogResult to fixed when the main form is
hidden or destroyed while being modal.
svn path=/trunk/mcs/; revision=61127
Konstantin Triger [Thu, 25 May 2006 16:14:32 +0000 (16:14 -0000)]
merge -r 61112:61113
svn path=/trunk/mcs/; revision=61126
Konstantin Triger [Thu, 25 May 2006 16:13:30 +0000 (16:13 -0000)]
merge -r 61110:61111
svn path=/trunk/mcs/; revision=61125
Dick Porter [Thu, 25 May 2006 16:12:30 +0000 (16:12 -0000)]
2006-05-25 Dick Porter <dick@ximian.com>
* threads.c (mono_thread_cleanup): Build fix. Comment out the
DeleteCriticalSections until I figure out which one may still be
sometimes locked when mono_thread_cleanup is called.
svn path=/trunk/mono/; revision=61123
Konstantin Triger [Thu, 25 May 2006 16:10:53 +0000 (16:10 -0000)]
merge -r 61099:61100
svn path=/trunk/mcs/; revision=61122
Sebastien Pouliot [Thu, 25 May 2006 16:08:54 +0000 (16:08 -0000)]
2006-05-25 Sebastien Pouliot <sebastien@ximian.com>
* TestRegion.cs: Added a new fixture that executes with UnmanagedCode
permission and test the [Get|From]Hrgn methods.
svn path=/trunk/mcs/; revision=61121
Miguel de Icaza [Thu, 25 May 2006 16:08:05 +0000 (16:08 -0000)]
2006-05-25 Miguel de Icaza <miguel@novell.com>
* Theme.cs: Use Tangoified messagebox icons.
(GetSizedResourceImage): Also cope with width = 0 and do not
trigger a warning in that case (0 means "give me your icon from
the resouce, no special size needed).
2006-05-25 Miguel de Icaza <miguel@novell.com>
* Add new dialog-*.png Tango icons (dialog-question is from a
different theme as Tango is still missing it).
svn path=/trunk/mcs/; revision=61120
Sebastien Pouliot [Thu, 25 May 2006 16:06:45 +0000 (16:06 -0000)]
2006-05-25 Sebastien Pouliot <sebastien@ximian.com>
* gdipFunctions.cs: Added wrapper methods for GdipGetRegionHRgn and
GdipCreateRegionHrgn functions.
* Region.cs: Reimplement GetHrgn and FromHrgn methods using the GDI+
calls.
svn path=/trunk/mcs/; revision=61119
Zoltan Varga [Thu, 25 May 2006 16:05:05 +0000 (16:05 -0000)]
2006-05-25 Zoltan Varga <vargaz@gmail.com>
* *.sh: Fix more verification problems.
* TestRunner.cs: Use Assembly.EntryPoint instead of searching for a Main method.
svn path=/trunk/mono/; revision=61118
Konstantin Triger [Thu, 25 May 2006 16:03:26 +0000 (16:03 -0000)]
merge -r 61113:61114
svn path=/trunk/mcs/; revision=61116
Peter Dennis Bartok [Thu, 25 May 2006 15:48:16 +0000 (15:48 -0000)]
2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
* Application.cs: Leave runloop if the the main modal form is
hidden (fixes #78484)
svn path=/trunk/mcs/; revision=61112
Konstantin Triger [Thu, 25 May 2006 15:38:34 +0000 (15:38 -0000)]
support configuration hierarchy merge
svn path=/branches/mainsoft/gh1.7/mcs/; revision=61111
Atsushi Eno [Thu, 25 May 2006 13:54:56 +0000 (13:54 -0000)]
2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
* BindingContext.cs : reject null datasource in Contains() and
Item[].
* CurrencyManager.cs : check data_member validity when data_source
is dataset. When it is late binding, the initial position is -1.
* BindingContextTest.cs : added more tests for Item, Contains()
and GetEnumerator().
svn path=/trunk/mcs/; revision=61109
Andrew Skiba [Thu, 25 May 2006 11:41:52 +0000 (11:41 -0000)]
move 2.0 stuff into ifdef NET_2_0
svn path=/trunk/mcs/; revision=61106
Andrew Skiba [Thu, 25 May 2006 11:29:26 +0000 (11:29 -0000)]
enable siteMap in web.config
svn path=/trunk/mcs/; revision=61105
Raja R Harinath [Thu, 25 May 2006 11:16:31 +0000 (11:16 -0000)]
In gmcs:
Fix #78324
* expression.cs (Binary.DoResolve): Use Nullable.LiftedBinaryOperator
also when one of the operands is a null literal.
* generic.cs (Nullable.LiftedBinaryOperator.EmitEquality): Rewrite
to improve clarity, and generate slightly better code.
In tests:
* gtest-211.cs: Add a couple more tests for better coverage.
svn path=/trunk/mcs/; revision=61104
Andrew Skiba [Thu, 25 May 2006 11:07:39 +0000 (11:07 -0000)]
Throw an exception if injected tags were not found
svn path=/trunk/mcs/; revision=61103
Andrew Skiba [Thu, 25 May 2006 10:49:16 +0000 (10:49 -0000)]
use HttpWorkerRequest instead of CallContext to pass data
svn path=/trunk/mcs/; revision=61102
Massimiliano Mantione [Thu, 25 May 2006 09:07:56 +0000 (09:07 -0000)]
* mini.c: Added "limitator" to inline for debugging.
svn path=/trunk/mono/; revision=61101
Konstantin Triger [Thu, 25 May 2006 09:06:36 +0000 (09:06 -0000)]
backward compatibility for JDBC direct connection string
svn path=/branches/mainsoft/gh1.7/mcs/; revision=61100
Gert Driesen [Thu, 25 May 2006 08:29:35 +0000 (08:29 -0000)]
* PropertyValueUIItemCas.cs: Fix compilation using csc 1.x.
svn path=/trunk/mcs/; revision=61099
Andrew Skiba [Thu, 25 May 2006 07:39:34 +0000 (07:39 -0000)]
Fix the order of OnInit invocation of controls created via master page content (see lists.ximian.com/pipermail/mono-devel-list/2006-May/018585.html ).
svn path=/trunk/mcs/; revision=61098
Miguel de Icaza [Thu, 25 May 2006 00:03:32 +0000 (00:03 -0000)]
2006-05-24 Miguel de Icaza <miguel@novell.com>
* Changes so that we can use the filename as the resource name,
should help compiling from within VisualStudio.
svn path=/trunk/mcs/; revision=61097
Gonzalo Paniagua Javier [Wed, 24 May 2006 23:27:44 +0000 (23:27 -0000)]
2006-05-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* TestBitmap.cs: new tests for the default format and the default file
type.
svn path=/trunk/mcs/; revision=61095
Jackson Harper [Wed, 24 May 2006 22:23:55 +0000 (22:23 -0000)]
- When drawing image nodes if there is an imagelist we draw the
first image in the list if the supplied image index is out of
the
image list's bounds.
svn path=/trunk/mcs/; revision=61094
Jackson Harper [Wed, 24 May 2006 21:37:17 +0000 (21:37 -0000)]
- Reenable SetBottom now that visible orders are set correctly,
added some debug code incase we ever get bad values there again.
- Set the scrollbar max to 2 less then the max value, this
compensates for the max value being one above the node count,
and
for scrollbars adding one extra "notch".
svn path=/trunk/mcs/; revision=61090
Dick Porter [Wed, 24 May 2006 21:34:06 +0000 (21:34 -0000)]
2006-05-24 Dick Porter <dick@ximian.com>
* processes.c (process_set_current): Don't take an extra reference
if we have to create our own process handle. Fixes bug 78241
again.
* threads.c (_wapi_thread_signal_self): Renamed from
_wapi_thread_abandon_mutexes, also sets the thread state to
signalled and drops a reference. Called by the runtime when the
main thread cleans itself up.
* handles.c (handle_cleanup): As a last resort, unref every shared
handle as the process is now exiting.
2006-05-24 Dick Porter <dick@ximian.com>
* threads.c (mono_thread_cleanup): Move the threading cleanup out
of mono_thread_manage and back into its own function, so it can be
called after the finalizer thread has finished.
* appdomain.c (mono_runtime_cleanup): Call mono_thread_cleanup
svn path=/trunk/mono/; revision=61089
Sebastien Pouliot [Wed, 24 May 2006 21:31:30 +0000 (21:31 -0000)]
2006-05-24 Sebastien Pouliot <sebastien@ximian.com>
* ColorConverter.cs: Split unworking test case from ConvertFrom into
a separate test case (marked as NotWorking).
* TestBitmap.cs: Mark test case Rotate1bit4bit as NotDotNet as it was
probably never tested under Windows (and doesn't work there).
* TestFontConverter.cs: Split test case for CreateInstance to check
for ArgumentException (2.0) or NullReferenceException (1.x).
* TestPointConverter.cs: Split test case for CreateInstance to check
for ArgumentException (2.0) or NullReferenceException (1.x).
* TestRectangleConverter.cs: Split test case for CreateInstance to
check for ArgumentException (2.0) or NullReferenceException (1.x).
* TestSizeConverter.cs: Split test case for CreateInstance to check
for ArgumentException (2.0) or NullReferenceException (1.x).
* TestSizeFConverter.cs: Add/split test cases for CreateInstance to
check for InvalidCastException and NullReferenceException.
* TestSizeF.cs: Mark GetHashCodeTest as NotWorking in 2.0 profile as
Empty and SizeF(0,0) don't share the same hash code.
svn path=/trunk/mcs/; revision=61088
Sebastien Pouliot [Wed, 24 May 2006 21:26:34 +0000 (21:26 -0000)]
2006-05-24 Sebastien Pouliot <sebastien@ximian.com>
* PointConverter.cs: Fx 2.0 throws an ArgumentException in
CreateInstance if some values are missing from the dictionary, while
1.x throws an NullReferenceException.
* RectangleConverter.cs: Fx 2.0 throws an ArgumentException in
CreateInstance if some values are missing from the dictionary, while
1.x throws an NullReferenceException.
* SizeConverter.cs: Fx 2.0 throws an ArgumentException in
CreateInstance if some values are missing from the dictionary, while
1.x throws an NullReferenceException.
* SizeFConverter.cs: Fix CreateInstance to use float (not int).
svn path=/trunk/mcs/; revision=61087
Chris Toshok [Wed, 24 May 2006 21:25:21 +0000 (21:25 -0000)]
* DataGridBoolColumn.cs (Abort): revert back to the saved setting.
(Edit): save off the original state in oldState, and set
grid.is_editing to true.
(OnKeyDown): abort editing if escape is pressed. also, call
NextState if space is pressed.
(OnMouseDown): call NextState.
(NextState): factor out shared code from OnKeyDown and OnMouseDown
here. Also, only invalidate the row header once (on the initial
is_changing switch) to save on redraws.
2006-05-24 Chris Toshok <toshok@ximian.com>
svn path=/trunk/mcs/; revision=61086
Jackson Harper [Wed, 24 May 2006 21:04:12 +0000 (21:04 -0000)]
* TreeNodeCollection.cs: Dont't recalculate the visible order on
inserted nodes that aren't visible. This changes the
max_visible_order which confuses scrollbar settings.
- Use the enumerator to get the prev node instead of duplicating
code.
* TreeView.cs: Use new method for setting scrollbar values
- Don't set the bounds every time the scrollbar is updated
- When updating below the root node use an invalidate instead of
a
refresh to prevent the child controls (scrollbars) from being
refreshed. (UpdateBelow still needs to be reworked anyways).
svn path=/trunk/mcs/; revision=61085
Peter Dennis Bartok [Wed, 24 May 2006 20:36:08 +0000 (20:36 -0000)]
- More unused removal
svn path=/trunk/mcs/; revision=61084
Peter Dennis Bartok [Wed, 24 May 2006 20:35:15 +0000 (20:35 -0000)]
- Commented out unused var
svn path=/trunk/mcs/; revision=61083
Peter Dennis Bartok [Wed, 24 May 2006 20:34:39 +0000 (20:34 -0000)]
2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
we receive a size change from the WM (Fixes #78503)
svn path=/trunk/mcs/; revision=61082
Sebastien Pouliot [Wed, 24 May 2006 20:12:55 +0000 (20:12 -0000)]
2006-05-24 Sebastien Pouliot <sebastien@ximian.com>
* TestImageFormat.cs: Update ToString expected outputs to match MS.
svn path=/trunk/mcs/; revision=61081
Sebastien Pouliot [Wed, 24 May 2006 20:11:52 +0000 (20:11 -0000)]
2006-05-24 Sebastien Pouliot <sebastien@ximian.com>
* ImageFormat.cs: Fixed ToString method to match MS output.
svn path=/trunk/mcs/; revision=61080
Sebastien Pouliot [Wed, 24 May 2006 19:58:19 +0000 (19:58 -0000)]
2006-05-24 Sebastien Pouliot <sebastien@ximian.com>
* TestToolboxItem.cs: Update ComponentType check to work under MS 2.0.
svn path=/trunk/mcs/; revision=61079
Sebastien Pouliot [Wed, 24 May 2006 19:57:30 +0000 (19:57 -0000)]
2006-05-24 Sebastien Pouliot <sebastien@ximian.com>
* ToolboxItem.cs: Update ComponentType property to match MS result.
svn path=/trunk/mcs/; revision=61078
Zoltan Varga [Wed, 24 May 2006 19:50:39 +0000 (19:50 -0000)]
2006-05-24 Zoltan Varga <vargaz@gmail.com>
* assembly.c (mono_assembly_open_full): Fix typo introduced by a previous change.
Fixes #78495.
svn path=/trunk/mono/; revision=61077
Peter Dennis Bartok [Wed, 24 May 2006 18:50:25 +0000 (18:50 -0000)]
2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
rectangle (Fixes #78501)
svn path=/trunk/mcs/; revision=61076