Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
this is used to get icon names ( both maya internal icons which you won't be able to find actual png files) and icons from XBMLANGPATH which may contains png icon files in your studio.
you can type icon names in the QLineEdit search box to search ( re supported i guess becuase it's a QCompleter )
i also want to drag an icon from my ui to shelf , or to an existing shelfButton, but don't know how to do that.
import iconChooser as ic
ver 0.0.2 updated to support maya 2014 , and speed up by using qlabel
ver 0.0.3 center dispaly icons and not scale them up
ver 0.0.4 fix large icons not scaled down bug, now < 32 pixel icons will be kept to original size, > 32 pixel width large .png images will be scaled to 32*32 ver 0.0.5 use api v2, new style signal/slot, cleanup code
v 0.0.6 fallback to api v1, tested on maya 2015 sp6, fixed bug with name searching.
No update will be posted here from now on, check github repo for latest version. https://github.com/oglops/iconChooser