KVIrc
4.9.2
DeveloperAPIs
|
The class that holds the icons. More...
#include <KviTextIconManager.h>
Public Member Functions | |
KviAnimatedPixmap * | animatedPixmap () |
Returns the animated pixmap associated to the icon. More... | |
QString | filename () |
Returns the filename of the icon. More... | |
KviIconManager::SmallIcon | id () |
Returns the id of the icon. More... | |
KviTextIcon (KviIconManager::SmallIcon eIcon) | |
Constructs the icon object. More... | |
KviTextIcon (QString szFile) | |
Constructs the icon object. More... | |
KviTextIcon (KviTextIcon *pIcon) | |
Constructs the icon object. More... | |
QPixmap * | pixmap () |
Returns the pixmap associated to the icon. More... | |
void | setFilename (QString szFileName) |
Sets the filename of the icon. More... | |
void | setId (KviIconManager::SmallIcon eIcon) |
Sets the id of the icon. More... | |
void | setId (int iIcon) |
Sets the id of the icon. More... | |
void | setPixmap (QPixmap *pIcon) |
~KviTextIcon () | |
Destroys the icon object. More... | |
Protected Attributes | |
KviIconManager::SmallIcon | m_eIcon |
KviAnimatedPixmap * | m_pAnimatedPixmap |
QString | m_szFileName |
The class that holds the icons.
KviTextIcon::KviTextIcon | ( | KviIconManager::SmallIcon | eIcon | ) |
KviTextIcon::KviTextIcon | ( | QString | szFile | ) |
Constructs the icon object.
szFile | The filename the icon |
References KviApplication::findImage(), g_pApp, KVI_OPTION_BOOL, KviOption_boolEnableAnimatedSmiles, m_pAnimatedPixmap, KviAnimatedPixmap::start(), and KviAnimatedPixmap::stop().
KviTextIcon::KviTextIcon | ( | KviTextIcon * | pIcon | ) |
Constructs the icon object.
pIcon | The pointer to the icon |
References id(), m_eIcon, m_pAnimatedPixmap, and m_szFileName.
KviTextIcon::~KviTextIcon | ( | ) |
Destroys the icon object.
References m_pAnimatedPixmap.
|
inline |
Returns the animated pixmap associated to the icon.
References m_pAnimatedPixmap.
Referenced by KviIrcView::getTextLine(), and KviIrcView::paintEvent().
|
inline |
|
inline |
Returns the id of the icon.
Referenced by KviHtmlGenerator::convertToHtml(), KviTextIcon(), and texticons_kvs_fnc_get().
QPixmap * KviTextIcon::pixmap | ( | ) |
Returns the pixmap associated to the icon.
References g_pIconManager, KviIconManager::getPixmap(), KviIconManager::getSmallIcon(), m_eIcon, m_pAnimatedPixmap, m_szFileName, and KviAnimatedPixmap::pixmap().
Referenced by OptionsWidget_textIcons::chooseFromFile(), OptionsWidget_textIcons::iconSelected(), KviTopicWidget::paintColoredText(), KviIrcView::paintEvent(), TextIconTableItem::setId(), and TextIconTableItem::TextIconTableItem().
void KviTextIcon::setFilename | ( | QString | szFileName | ) |
Sets the filename of the icon.
szFileName | The filename of the icon |
References KviApplication::findImage(), g_pApp, KVI_OPTION_BOOL, KviOption_boolEnableAnimatedSmiles, m_eIcon, m_pAnimatedPixmap, m_szFileName, KviIconManager::None, KviAnimatedPixmap::start(), and KviAnimatedPixmap::stop().
Referenced by OptionsWidget_textIcons::chooseFromFile(), and texticons_kvs_cmd_set().
void KviTextIcon::setId | ( | KviIconManager::SmallIcon | eIcon | ) |
Sets the id of the icon.
eIcon | The id of the icon |
References m_eIcon, and m_szFileName.
Referenced by OptionsWidget_textIcons::iconSelected(), TextIconTableItem::setId(), and texticons_kvs_cmd_set().
void KviTextIcon::setId | ( | int | iIcon | ) |
Sets the id of the icon.
iIcon | The id of the icon |
References g_pIconManager, KviIconManager::iconName(), m_eIcon, and m_szFileName.
void KviTextIcon::setPixmap | ( | QPixmap * | pIcon | ) |
|
protected |
Referenced by KviTextIcon(), pixmap(), setFilename(), and setId().
|
protected |
Referenced by KviTextIcon(), pixmap(), setFilename(), and ~KviTextIcon().
|
protected |
Referenced by KviTextIcon(), pixmap(), setFilename(), and setId().