[work] [Qgis-community-team] Plugin icons

Tara Athan tara_athan at alt2is.com
Fri Jul 25 21:47:51 EDT 2008


Tim - thanks for that. It was not much fun to convert those xpms all 
into png one by one.

Would it be possible to add some guidelines regarding icon formats, 
image names and directory names to the plugin coding conventions?
If there was a predictable pattern, we could write a script to copy all 
the icons out of the plugin directories and copy them to the appropriate 
directories in the doc\trunk.
As it is now,
 >some icons are named  icon.png, (dangerous when copying)
 >some are  pluginnameicon.png, like spiticon,
 >some have a completely different name than the directory, like 
mIconAddWfsLayer.png in \wfs
 >some don't have "icon" in the  name at all, like graticule.png in 
\grid_maker

This is especially confusing when there are other pngs in the plugin 
directories, such as in spit (spit.png is not an icon). Are these 
"banner" images used for something?
And while the process is fresh in my mind now, I will surely forget it 
in a month or two when the next revision is due and have to spend time 
figuring it out all over again.

Here's a suggested list:
*directory name matches the plugin name as it will appear in the GUI 
menu, with no "_"s, all lower case (example \addwfslayer)
*icon name matches the directory name with prefix mIcon, in camelCase, 
as in mIconAddWfsLayer
*plugin directory contains the icon in png format at the top level

Other images used within the plugins, such as banners in the dialog box, 
map decorations such as alternative north arrows and such, should 
probably have standardized names as well, but that's beyond my brain at 
the moment.

Thanks, Tara


Tim Sutton wrote:
> Hi Tara
>
> I see in the irc you were asking about plugin icons (sorry my
> connection dropped). I have removed the xpms and replaced them with
> png and svg versions.
>
> Regards
>
>   


-- 
My e-mail delivery has been unreliable lately, so I am asking for
return receipts from all my email messages.
OK'ing the return receipt lets me know that my message was delivered.
Thank you.

Tara Athan
Principal, Alternatives to Invasive Species
tara_athan [AT] alt2is.com
707-485-1198
PO Box 415
Redwood Valley, CA 95470



More information about the Qgis-community-team mailing list