[MonoDevelop] Icons in AddIns
Jose Ramon Palanco
jpalanco at gmail.com
Fri Sep 9 22:23:22 EDT 2005
Thanks!! Everything is very clean :)
2005/9/9, Christian Hergert <christian.hergert at gmail.com>:
> 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
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (GNU/Linux)
>
> iD8DBQBDISh2Vgl9rDLExdcRAiErAJ98V5zCW6rwfvJjDSaIBTkmknhneQCfcvaZ
> MW32H9SZVlTpoMzuxe0Y8A8=
> =KfdK
> -----END PGP SIGNATURE-----
>
>
>
More information about the Monodevelop-list
mailing list