[MonoDevelop] Icons in AddIns

Christian Hergert christian.hergert at gmail.com
Fri Sep 9 02:15:18 EDT 2005


have you looked at the monoquery code in svn? it registers stockicons
via the MonoQuery.addin.xml file. You can then use these icons based on
the id given from the pad. See the following two files for examples.

http://svn.myrealbox.com/viewcvs/trunk/MonoDevelop/Extras/MonoQuery/MonoQuery/MonoQuery.addin.xml?root=monodevelop&view=markup
http://svn.myrealbox.com/viewcvs/trunk/MonoDevelop/Extras/MonoQuery/MonoQuery/Gui/NodeBuilders/TablesNodeBuilder.cs?root=monodevelop&view=markup

you will notice in the second file

			label = GettextCatalog.GetString ("Tables");
			string iconName = "md-mono-query-tables";
			icon = Context.GetIcon (iconName);
			
			TablesNode node = (TablesNode) dataObject;
			node.RefreshEvent += RefreshHandler;

the "md-mono-query-tables" references to the stock icon defined in
MonoQuery.addin.xml. Note that the icon *is* stored as a resource in
MonoQuery.dll.

~ chris

On Wed, 2005-09-07 at 21:05 +0200, Jose Ramon Palanco wrote:
> I was wrote a simple add-in and I want to add an icon to my Pad. I was
> looking the source and see that others add-ins (like MonoQuery) add
> images from the core instead of the add-in. I tried to attach my
> image, but from add-in is nos possible due I cannot access those
> methods.
> 
> How can I add an image. Is possible?
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/monodevelop-list/attachments/20050908/633ce710/attachment.bin


More information about the Monodevelop-list mailing list