Name

IconProvider — The singleton providing access to the Serna icons.

Synopsis

class IconProvider {
public:
  

  // Pixmap type, when pixmap is used as enabled/disabled icon. 
  enum PixmapClass { ENABLED_PIXMAP, DISABLED_PIXMAP };

  // public static functions

  QPixmap getPixmap(const SString &, PixmapClass = ENABLED_PIXMAP) ;
  QIcon getIcon(const SString &) ;
  QPixmap readPixmap(const SString &) ;
};

Description

IconProvider public static functions

  1. QPixmap getPixmap(const SString & name, PixmapClass pc = ENABLED_PIXMAP) ;

    Get the pixmap (icon) by name. Note that for accessing icons defined in plug-ins name must be of the form <plugin-name>:<icon-name>. If the name specified without prefix, then it is taken from the central Serna icons repository.


  2. QIcon getIcon(const SString & name) ;

    Get the icon set by name. Naming rules are the same as with getPixmap().


  3. QPixmap readPixmap(const SString & url) ;

    Read the pixmap from specified URL. Pixmap is not cached.