[Mono-bugs] [Bug 420312] New: ToolStripCollectionEditor implementation
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Aug 26 05:46:02 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=420312
Summary: ToolStripCollectionEditor implementation
Product: Mono: Class Libraries
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Windows.Forms
AssignedTo: contact at i-nz.net
ReportedBy: andyhume32 at yahoo.co.uk
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Created an attachment (id=235435)
--> (https://bugzilla.novell.com/attachment.cgi?id=235435)
Patch
Attached is a patch to implement ToolStripCollectionEditor. Thus allowing
PropertyGrid creation of items on ToolStrip, BindingNavigator, MenuStrip,
ContextMenuStrip, ToolStripMenuItem, and StatusStrip. It's not the prettiest
display -- including no icons on the item type selection combo -- but it's
functional. TreeView is the only editor requiring implementation after this.
Changes were needed to CollectionEditor also. This editor needs to know the
parent object type, as each has a different set of supported items. So I
changed the call to CreateNewItemTypes to be lazy so that when it's called the
context is initialised.
The new file does not match Mono coding standards currently, in particular I
have braces around single line blocks, as its a real pain having to add and
remove them when adding/removing Console.WriteLines. Let me know if its
suitable, and then I can make it more conforming.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list