PieDock
1.6.3
|
#include <IconMap.h>
Public Types | |
typedef std::vector< std::string > | Paths |
Public Member Functions | |
virtual | ~IconMap () |
virtual void | addPath (const std::string p) |
virtual const Paths & | getPath () const |
virtual void | setFileForMissing (const std::string f) |
virtual const std::string & | getFileForMissing () const |
virtual void | setFileForFiller (const std::string f) |
virtual const std::string & | getFileForFiller () const |
virtual void | reset () |
virtual void | addNameAlias (std::string, std::string) |
virtual void | addClassAlias (std::string, std::string) |
virtual void | addTitleAlias (std::string, std::string) |
virtual Icon * | getIcon (std::string, std::string, std::string) |
virtual Icon * | getIconByName (std::string) |
virtual Icon * | getIconByClass (const std::string) |
virtual Icon * | getIconByTitle (const std::string) |
virtual Icon * | getMissingIcon (const std::string) |
virtual Icon * | getFillerIcon () |
virtual Icon * | createIcon (const ArgbSurface *, const std::string, Icon::Type) |
virtual void | saveIcon (const ArgbSurface *, const std::string) const |
Protected Types | |
typedef std::map< std::string, std::string > | AliasToFile |
typedef std::map< std::string, Icon * > | FileToIcon |
Protected Member Functions | |
virtual void | freeIcons () |
Icon map
|
virtual |
Free resources
References freeIcons().
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Create icon and return it
s | - ARGB surface for icon |
n | - resource name of window |
t | - icon type |
Referenced by getFillerIcon(), getIconByName(), getMissingIcon(), and PieDock::Menu::update().
|
protectedvirtual |
Free icons
Referenced by reset(), and ~IconMap().
|
virtual |
Create and return a new filler icon
References createIcon(), and PieDock::Png::load().
Referenced by PieDock::Menu::update().
|
virtual |
Return icon for given window properties
t | - window title |
c | - resource class |
n | - resource name |
References getIconByClass(), getIconByName(), and getIconByTitle().
Referenced by PieDock::Menu::update().
|
virtual |
Return icon for a window by class
c | - resource class of window |
References getIconByName().
Referenced by getIcon().
|
virtual |
Return icon for a window by name
n | - resource name of window |
References createIcon(), and PieDock::Png::load().
Referenced by getIcon(), getIconByClass(), getIconByTitle(), PieDock::Settings::load(), and PieDock::Menu::update().
|
virtual |
Return icon for a window by window title; this is by far the slowest method and probably prone to error too; use it only as a fallback ! Unfortunately, most Java applications have invalid resource names like "SWT" or the like; to identify those windows there's just one possibility: the window title
t | - window title (may contain wildcards) |
References getIconByName(), and PieDock::WildcardCompare::match().
Referenced by getIcon().
|
virtual |
Create and return a new icon for missing icons
n | - resource name of window for which there is no icon |
References createIcon(), and PieDock::Png::load().
Referenced by PieDock::Menu::update().
|
virtual |
|
virtual |
Save icon
s | - ARGB surface for icon |
n | - resource name of window |
References PieDock::Png::save().
Referenced by PieDock::Menu::update().