|
WSF
|
This class contains the loaded icons used by the application. More...
#include <UiResources.hpp>
Public Member Functions | |
| virtual | ~UiResources () |
| Virtual destructor. | |
| QFont & | GetFont () |
| QIcon & | GetIcon (const QString &aImageName, bool aScale=true) |
| QIcon & | GetIconFromTheme (const QString &aImageName, bool aScale=true) |
| QIcon | GetFileIcon (const QFileInfo &aInfo) |
| QImage & | GetImageFromTheme (const QString &aImageName, bool aScale=true) |
| QImage & | GetDimImageFromTheme (const QString &aImageName, bool aScale=true) |
| std::pair< unsigned int, unsigned int > | ResizeImageWithFont () |
| Will vary image size based on font size between current limits of 24U and 6U found in wizard::EditorManager::AdjustFontSize. | |
Static Public Member Functions | |
| static void | Create () |
| Singleton instance. | |
| static void | Destroy () |
| static UiResources & | GetInstance () |
Static Public Attributes | |
| static constexpr unsigned int | cBASE_ICON_SIZE = 16 |
| static constexpr unsigned int | cMIN_FONT_SIZE = 6 |
| static constexpr unsigned int | cMAX_FONT_SIZE = 24 |
Protected Member Functions | |
| void | Initialize () |
| QImage | ToScale (QImage aImage, int aWidth) |
| QPixmap | ToScalePM (QImage aImage, int aWidth) |
| QIcon & | AddIcon (const QString &aIconName, bool aScale) |
| QImage & | AddImage (const QString &aImageName, bool aScale) |
| QImage & | AddDimImage (const QString &aImageName, bool aScale) |
This class contains the loaded icons used by the application.
|
virtual |
Virtual destructor.
|
protected |
References cBASE_ICON_SIZE, and ToScale().
Referenced by GetDimImageFromTheme().
|
protected |
References cBASE_ICON_SIZE, and ToScale().
Referenced by GetIcon(), and GetIconFromTheme().
|
protected |
References cBASE_ICON_SIZE, and ToScale().
Referenced by GetImageFromTheme().
|
static |
|
static |
Referenced by wizard::Environment::~Environment().
| QImage & wizard::UiResources::GetDimImageFromTheme | ( | const QString & | aImageName, |
| bool | aScale = true ) |
References AddDimImage().
| QIcon wizard::UiResources::GetFileIcon | ( | const QFileInfo & | aInfo | ) |
|
inline |
| QIcon & wizard::UiResources::GetIcon | ( | const QString & | aImageName, |
| bool | aScale = true ) |
References AddIcon().
| QIcon & wizard::UiResources::GetIconFromTheme | ( | const QString & | aImageName, |
| bool | aScale = true ) |
References AddIcon().
| QImage & wizard::UiResources::GetImageFromTheme | ( | const QString & | aImageName, |
| bool | aScale = true ) |
References AddImage().
|
inlinestatic |
Referenced by wizard::EditAssist::EditAssist().
|
protected |
Referenced by Create().
| std::pair< unsigned int, unsigned int > wizard::UiResources::ResizeImageWithFont | ( | ) |
Will vary image size based on font size between current limits of 24U and 6U found in wizard::EditorManager::AdjustFontSize.
References cBASE_ICON_SIZE, cMAX_FONT_SIZE, and cMIN_FONT_SIZE.
|
protected |
Referenced by AddDimImage(), AddIcon(), and AddImage().
|
protected |
|
staticconstexpr |
Referenced by AddDimImage(), AddIcon(), AddImage(), and ResizeImageWithFont().
|
staticconstexpr |
Referenced by wizard::EditorManager::AdjustFontSize(), and ResizeImageWithFont().
|
staticconstexpr |
Referenced by wizard::EditorManager::AdjustFontSize(), and ResizeImageWithFont().