Commit Graph
214 Commits
Author SHA1 Message Date
Jonathan Pryor c2efa83efe Migrating from monodoc/class/System.Design to mcs/class/System.Design/Documentation...
svn path=/trunk/mcs/; revision=116209
2008-10-17 14:11:46 +00:00
Ivan Zlatev 9bff8a5b68 2008-10-15 Ivan N. Zlatev <[email protected]>
* StringCollectionEditor.cs: Minor fixes.
	Patch by Andy Hume.

svn path=/trunk/mcs/; revision=115901
2008-10-15 17:48:16 +00:00
Ivan Zlatev 52a36effe0 2008-09-01 Ivan N. Zlatev <[email protected]>
* ParentControlDesigner.cs: Be nice with Components that are no
	Controls in CreateToolCore.

svn path=/trunk/mcs/; revision=112023
2008-09-01 13:31:27 +00:00
Ivan Zlatev 386d216110 2008-07-27 Ivan N. Zlatev <[email protected]>
* RootCodeDomSerializer.cs: Clear the fields as well.

svn path=/trunk/mcs/; revision=108961
2008-07-27 19:18:49 +00:00
Zoltan Varga 9d1f48b738 2008-07-24 Zoltan Varga <[email protected]>
* System.Design_test.dll.sources: Fix CRLFs.

svn path=/trunk/mcs/; revision=108665
2008-07-24 16:12:59 +00:00
Gert Driesen 6e8e5d0b2f * StringValueConverterTest.cs: Added test for StringValueConverter.
* System.Design.dll.sources: Added StringValueConverter.cs.
* System.Design_test.dll.sources: Added StringValueConverterTest.cs.
* StringValueConverter.cs: Implemented internal class used as
TypeConverter for several properties.

svn path=/trunk/mcs/; revision=108653
2008-07-24 15:24:17 +00:00
Ivan Zlatev 8dfcf367fd 2008-07-21 Ivan N. Zlatev <[email protected]>
* CodeDomComponentSerializationService.cs: Remove redundant assignment.

svn path=/trunk/mcs/; revision=108350
2008-07-21 14:33:57 +00:00
Sebastien Pouliot 094df8ba9f 2008-07-06 Sebastien Pouliot <[email protected]>
* DesignerActionMethodItem.cs: Fix typo where the action_list
	field was self-assigned (instead of taking the ctor value).
	[Found using Gendarme ReviewSelfAssignmentRule]


svn path=/trunk/mcs/; revision=107328
2008-07-06 15:34:45 +00:00
Ivan Zlatev d2f96e53f0 2008-06-28 Ivan N. Zlatev <[email protected]>
* CodeDomDesignerLoader.cs: Add the supplied TypeResolutionService
	to the service container if one isn't present already.


svn path=/trunk/mcs/; revision=106834
2008-06-28 17:19:54 +00:00
Ivan Zlatev b32ba3825e 2008-06-28 Ivan N. Zlatev <[email protected]>
* DesignSurfaceManager.cs: Set the ActiveSurface only if it 
	differs from the current one.


svn path=/trunk/mcs/; revision=106832
2008-06-28 17:19:17 +00:00
Ivan Zlatev 06cf7ced9b 2008-06-28 Ivan N. Zlatev <[email protected]>
* DesignerHost.cs: Surpress remove events when unloading.


svn path=/trunk/mcs/; revision=106830
2008-06-28 17:18:01 +00:00
Ivan Zlatev add8646553 2008-06-18 Ivan N. Zlatev <[email protected]>
* ExtenderService.cs: Do not throw a NRE.


svn path=/trunk/mcs/; revision=106174
2008-06-18 22:57:38 +00:00
Ivan Zlatev 4f28d477f8 2008-06-18 Ivan N. Zlatev <[email protected]>
* SelectionService.cs: Handle removal of the root component 
	properly.


svn path=/trunk/mcs/; revision=106157
2008-06-18 20:01:23 +00:00
Noam Lampert 47b51f4931 CompositeControlDesigner.cs: Add stubs
svn path=/trunk/mcs/; revision=105864
2008-06-15 12:47:15 +00:00
Ivan Zlatev 76c01db81b 2008-05-30 Ivan N. Zlatev <[email protected]>
* ControlBindingsConverter.cs: Fix 1.1 build.


svn path=/trunk/mcs/; revision=104567
2008-05-30 21:38:06 +00:00
Ivan Zlatev d50c3363d7 2008-05-30 Ivan N. Zlatev <[email protected]>
* ControlBindingsConverter.cs: Implementated just enough to avoid 
	the circular dependency in the MWF PropertyGrid.


svn path=/trunk/mcs/; revision=104566
2008-05-30 20:44:50 +00:00
Marek Habersack d3b0309146 2008-05-14 Marek Habersack <[email protected]>
* DataSourceIDConverter.cs: added

svn path=/trunk/mcs/; revision=103148
2008-05-13 23:25:48 +00:00
Ivan Zlatev 9b699e9268 2008-05-12 Ivan N. Zlatev <[email protected]>
* StringCollectionEditor.cs: Handle String.Empty as a valid 
	edited value.
	[Fixes bug #389268]


svn path=/trunk/mcs/; revision=103007
2008-05-12 14:53:39 +00:00
Jb Evain 28afe8f588 avoid creation of arrays
svn path=/trunk/mcs/; revision=101953
2008-04-26 20:36:36 +00:00
Andreas N 95110d82df small fix
svn path=/trunk/mcs/; revision=101652
2008-04-24 07:32:18 +00:00
Andreas N 7d57e7ea21 fix build
svn path=/trunk/mcs/; revision=101516
2008-04-23 09:56:28 +00:00
Andreas N 2e9e56c1a4 2008-04-23 Andreas Nahr <[email protected]>
* AssemblyInfo.cs: Added missing attributes

svn path=/trunk/mcs/; revision=101510
2008-04-23 09:09:10 +00:00
Ivan Zlatev d3e0f4e97b 2008-04-18 Ivan N. Zlatev <[email protected]>
* CollectionEditor.cs: Select the next item after the one
	removed, not the one before.
	[Fixes bug #375788]

svn path=/trunk/mcs/; revision=101166
2008-04-18 20:55:33 +00:00
Ivan Zlatev 069442e010 2008-04-03 Ivan N. Zlatev <[email protected]>
* CollectionEditor.cs:
	  - Handle removing multiple items at once.
	  - Select the previous item after removal of other(s).

svn path=/trunk/mcs/; revision=99788
2008-04-03 18:34:54 +00:00
Ivan Zlatev db46ee7a65 2008-04-03 Ivan N. Zlatev <[email protected]>
* CollectionEditor.cs: The display name of an object in the
	list is not static. It can dynamically change when the object
	get's modified.
	[Fixes bug #375786]

svn path=/trunk/mcs/; revision=99772
2008-04-03 16:39:18 +00:00
Ivan Zlatev 74aeac06b8 2008-03-28 Ivan N. Zlatev <[email protected]>
* CollectionEditor.cs: Fix multiple bugs.


svn path=/trunk/mcs/; revision=99253
2008-03-28 22:51:16 +00:00
Ivan Zlatev ba267ef252 2008-03-19 Ivan N. Zlatev <[email protected]>
* MultilineStringEditor.cs: Handle null value by forcing an 
	empty string to be edited.
	[Fixes bug #372264]


svn path=/trunk/mcs/; revision=98640
2008-03-19 22:38:53 +00:00
Ivan Zlatev 285d18f819 2008-03-10 Ivan N. Zlatev <[email protected]>
* DesignModeSite.cs: Do not return the site specific service 
        container if GetService is asked for IServiceContainer.


svn path=/trunk/mcs/; revision=98083
2008-03-12 19:35:41 +00:00
Ivan Zlatev dc25e4a0a9 2008-03-06 Ivan N. Zlatev <[email protected]>
* CodeDomSerializerBase.cs: Fix deserialization of 
	CodeFieldReference to handle static fields. This fixes enum 
	references.


svn path=/trunk/mcs/; revision=97622
2008-03-06 19:50:51 +00:00
Ivan Zlatev 8bf92daaa7 2008-03-02 Ivan N. Zlatev <[email protected]>
* DesignModeSite.cs: Fix Name setter to actually set the name.


svn path=/trunk/mcs/; revision=97138
2008-03-02 18:16:41 +00:00
Ivan Zlatev 119cd70eb2 2008-03-01 Ivan N. Zlatev <[email protected]>
* ControlDesigner.cs: Ignore the first WM_MOUSEMOVE after
	WM_MOUSEDOWN as it is sent just after it.
	* ParentControlDesigner.cs: Monitor Component Remove events
	and fire ComponentChanging/ed events for the Parent of the removed
	Control. Helps the UndoEngine to serialize parent changes.
	* ControlDesigner.cs: Set the Control.Text to be the component name.
	* FormDocumentDesigner.cs: Added.
	* PanelDesigner.cs: Added.
	* UISelectionService.cs: Set Parent through the TypeDescriptor, so
	that component change notifications get fired.
	* DefaultMenuCommands.cs: Implement Cut, Copy, Paste
	* DocumentDesigner: 
	 - Drop Form specific code.
	 - Add menu commands.


svn path=/trunk/mcs/; revision=97105
2008-03-01 23:19:43 +00:00
Ivan Zlatev ca222a1f70 2008-03-01 Ivan N. Zlatev <[email protected]>
* MenuCommandService.cs: implemeneted
	* DesignerHost.cs: Do not fire ComponentChanging/ed events
	when removing a component.
	* DesignModeSite: Naming fixes.
	* UndoEngine.cs: A lot of bugfixes.
	* SelectionService: Set root component as selected if the 
	last remaining component from the current selection has been
	removed.


svn path=/trunk/mcs/; revision=97103
2008-03-01 23:16:18 +00:00
Ivan Zlatev ffad8df117 2008-03-01 Ivan N. Zlatev <[email protected]>
* CodeDomSerializerBase.cs, PropertyCodeDomSerializer.cs: 
	PropertySerializer shouldn't check for serialization visibility
	as its duty is to serialize properies if invoked directly.
	CodeDomSerializerBase.SerializeProperties should check the 
	visibility.
	* CodeDomSerializer.cs: Fix deserialize to deserialize all 
	statements.
	* CodeDomDesignerLoader.cs: Implement IDesignerSerializationService
	using the ComponentSerializationService instead of calling
	ourselves recursive.
	* CodeDomComponentSerializationService.cs: A lot of bugfixes.
	* DesignerSerializationManager.cs: 
	 - Verify that we are not in session before creating a new one.
	 - Do not check whether we should
	 preserve names in GetInstance. This is only for CreateInstance.
	 - Fix a NRE if serialization providers are not initialized.
	* CodeDomSerializationProvider.cs, CodeDomDesignerLoader.cs:
	Refactor the codedom provider to a singleton, so that
	CodeDomComponentSerializationService and others can share the
	instance.
	* SerializeAbsoluteContext.cs: ShouldSerialize should check if 
	the absolute context is of the same member not the opposite.


svn path=/trunk/mcs/; revision=97101
2008-03-01 23:12:56 +00:00
Ivan Zlatev 23227c0a0e 2008-02-29 Ivan N. Zlatev <[email protected]>
* StringCollectionEditor.cs: 
         - Split the lines not based on Environment.NewLine as this is 
         not what is used by MWF on Windows.
         - Ignore last empty line.
        [Fixes bug #365948]


svn path=/trunk/mcs/; revision=97014
2008-02-29 20:36:06 +00:00
Ivan Zlatev 6929014791 2008-02-25 Ivan N. Zlatev <[email protected]>
* DateTimeEditor.cs: Set the calendar to the currently edited 
	date. Patch by Andy Hume. Code is contributed under 
	MIT/X11 license.
	[Fixes #362749]


svn path=/trunk/mcs/; revision=96557
2008-02-25 14:49:35 +00:00
Ivan Zlatev 40ec3cdb44 2008-02-16 Ivan N. Zlatev <[email protected]>
* CollectionEditor.cs: Handle null collection.
	[Part of fix for bugs #360666 and #358332]


svn path=/trunk/mcs/; revision=95877
2008-02-16 14:37:53 +00:00
Ivan Zlatev e31efc56b0 2008-02-12 Ivan N. Zlatev <[email protected]>
* DateTimeEditor.cs: Set edit value only if the user sets it
	in the editor.
	[Fixes #359159]


svn path=/trunk/mcs/; revision=95530
2008-02-12 17:21:16 +00:00
Ivan Zlatev 5858f29d4d 2008-02-11 Ivan N. Zlatev <[email protected]>
* AnchorEditor.cs: More sensible default width.


svn path=/trunk/mcs/; revision=95446
2008-02-11 16:28:45 +00:00
Sebastien Pouliot 78bb5d22f4 2008-02-10 Sebastien Pouliot <[email protected]>
* DataFieldConverter.cs, DataMemberConverter.cs, DataSourceConverter.cs:
	Use 'is' instead of 'as' and a null check. Found using Gendarme new 
	UseIsOperator rule.


svn path=/trunk/mcs/; revision=95398
2008-02-10 19:30:47 +00:00
Ivan Zlatev a0e9c80846 2008-02-05 Ivan N. Zlatev <[email protected]>
* MutilineStringEditor.cs: Make BorderStyle, Width and Height
	sensible.
	[Fixes #356530]


svn path=/trunk/mcs/; revision=94905
2008-02-05 17:28:55 +00:00
Ivan Zlatev 9bf6254a49 2008-01-24 Ivan N. Zlatev <[email protected]>
* DockEditor.cs: ITypeDescriptorContext.Instance doesn't 
	 contain the current value. It could contain the owner.
	 Use the initial value parameter.


svn path=/trunk/mcs/; revision=93756
2008-01-24 01:16:04 +00:00
Ivan Zlatev 4c5ec7e906 2008-01-22 Ivan N. Zlatev <[email protected]>
* MutilineStringEditor.cs: Fix EditValue to return the new
	 value not the old one.
	 [Fixes #354991]


svn path=/trunk/mcs/; revision=93543
2008-01-22 16:11:49 +00:00
Raja R Harinath 2cf8521e8c * TypedDataSetGenerator.cs: Remove mention of NET_3_5 -- the
enclosed methods are part of 2.0 SP1.
* TypedDataSetSchemaImporterExtension.cs: Likewise.

svn path=/trunk/mcs/; revision=92676
2008-01-11 16:01:25 +00:00
Ivan Zlatev a68d302aaf 2008-01-04 Ivan N. Zlatev <[email protected]>
* UndoEngine.cs: implemented.


svn path=/trunk/mcs/; revision=92222
2008-01-04 00:02:56 +00:00
Ivan Zlatev 96f3f9f933 2008-01-04 Ivan N. Zlatev <[email protected]>
* CodeDomComponentSerializationService.cs: implemented.
        * ComponentCodeDomSerializer.cs, CollectionCodeDomSerializer.cs, 
        CodeDomSerializerBase.cs, CodeDomSerializer.cs, 
        EventCodeDomSerializer.cs, RootCodeDomSerializer.cs, 
        PropertyCodeDomSerializer.cs:
         - Change the serialization process logic not to require an 
         ExpressionContext for full serialization of a component/instance.
         - Provide statement ordering hints for the RootCodeDomSerializer.
        * DesignerSerializationManager.cs: try-catch around
        * CreateInstance just in case. 


svn path=/trunk/mcs/; revision=92221
2008-01-04 00:00:11 +00:00
Ivan Zlatev b47116e4e1 2008-01-04 Ivan N. Zlatev <[email protected]>
* CodeDomDesignerLoader.cs: Check for duplicate names in
        IsValidName.


svn path=/trunk/mcs/; revision=92219
2008-01-03 23:45:41 +00:00
Ivan Zlatev c52643ff1d 2008-01-04 Ivan N. Zlatev <[email protected]>
* ParentControlDesigner.cs: Create a Transaction when adding a
        component.


svn path=/trunk/mcs/; revision=92216
2008-01-03 23:36:07 +00:00
Ivan Zlatev b4695991d8 2008-01-04 Ivan N. Zlatev <[email protected]>
* DesignerHost.cs: Fix lastTransaction to be set properly.
        Handle current != raiser transaction commit case.


svn path=/trunk/mcs/; revision=92215
2008-01-03 23:30:49 +00:00
Ivan Zlatev 42bcbd3b1a 2008-01-04 Ivan N. Zlatev <[email protected]>
* SelectionService.cs: Remove the component from the current 
        selection if it gets removed from the surface.


svn path=/trunk/mcs/; revision=92214
2008-01-03 23:22:55 +00:00
Ivan Zlatev ee7ac728a5 2007-12-24 Ivan N. Zlatev <[email protected]>
* CodeDomSerializerBase.cs: Check for a public ctor with no
        * params
        before returning a CodeCreateObject.
        * CodeDomSerializer.cs: Handle null return value 
        from SerializeCreationExpression


svn path=/trunk/mcs/; revision=91861
2007-12-24 14:37:15 +00:00