Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MantidQt::API::WindowIcons Class Reference

Defines a mapping between a workspace ID and a pixmap to use for an icon. More...

#include <WindowIcons.h>

Public Member Functions

QIcon getIcon (const std::string &windowID) const
 Returns an icon for the given ID.
 
std::string getIconID (const std::string &windowID) const
 Returns an icon ID for the given window ID.
 
 WindowIcons ()
 

Private Member Functions

void initInternalLookup ()
 Defines the mapping between ID & pixmap name.
 
QIcon makeIconFromFile (const std::string &path) const
 Build a icon object from an image file.
 

Private Attributes

QMap< std::string, std::string > m_idToPixmapName
 Internal map instance.
 

Detailed Description

Defines a mapping between a workspace ID and a pixmap to use for an icon.

Definition at line 19 of file WindowIcons.h.

Constructor & Destructor Documentation

◆ WindowIcons()

MantidQt::API::WindowIcons::WindowIcons ( )

Member Function Documentation

◆ getIcon()

QIcon MantidQt::API::WindowIcons::getIcon ( const std::string &  windowID) const

Returns an icon for the given ID.

◆ getIconID()

std::string MantidQt::API::WindowIcons::getIconID ( const std::string &  windowID) const

Returns an icon ID for the given window ID.

◆ initInternalLookup()

void MantidQt::API::WindowIcons::initInternalLookup ( )
private

Defines the mapping between ID & pixmap name.

◆ makeIconFromFile()

QIcon MantidQt::API::WindowIcons::makeIconFromFile ( const std::string &  path) const
private

Build a icon object from an image file.

Member Data Documentation

◆ m_idToPixmapName

QMap<std::string, std::string> MantidQt::API::WindowIcons::m_idToPixmapName
private

Internal map instance.

Definition at line 35 of file WindowIcons.h.


The documentation for this class was generated from the following file: