KVIrc  4.9.2
DeveloperAPIs
Public Member Functions | Protected Attributes | List of all members
KviTextIcon Class Reference

The class that holds the icons. More...

#include <KviTextIconManager.h>

Public Member Functions

KviAnimatedPixmapanimatedPixmap ()
 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
 
KviAnimatedPixmapm_pAnimatedPixmap
 
QString m_szFileName
 

Detailed Description

The class that holds the icons.

Constructor & Destructor Documentation

KviTextIcon::KviTextIcon ( KviIconManager::SmallIcon  eIcon)

Constructs the icon object.

Parameters
eIconThe id of the icon
Returns
KviTextIcon
KviTextIcon::KviTextIcon ( QString  szFile)
KviTextIcon::KviTextIcon ( KviTextIcon pIcon)

Constructs the icon object.

Parameters
pIconThe pointer to the icon
Returns
KviTextIcon

References id(), m_eIcon, m_pAnimatedPixmap, and m_szFileName.

KviTextIcon::~KviTextIcon ( )

Destroys the icon object.

References m_pAnimatedPixmap.

Member Function Documentation

KviAnimatedPixmap* KviTextIcon::animatedPixmap ( )
inline

Returns the animated pixmap associated to the icon.

Returns
KviAnimatedPixmap *

References m_pAnimatedPixmap.

Referenced by KviIrcView::getTextLine(), and KviIrcView::paintEvent().

QString KviTextIcon::filename ( )
inline

Returns the filename of the icon.

Returns
QString

Referenced by texticons_kvs_fnc_get().

KviIconManager::SmallIcon KviTextIcon::id ( )
inline
QPixmap * KviTextIcon::pixmap ( )
void KviTextIcon::setFilename ( QString  szFileName)
void KviTextIcon::setId ( KviIconManager::SmallIcon  eIcon)

Sets the id of the icon.

Parameters
eIconThe id of the icon
Returns
void

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.

Parameters
iIconThe id of the icon
Note
This function is provided for convenience
Returns
void

References g_pIconManager, KviIconManager::iconName(), m_eIcon, and m_szFileName.

void KviTextIcon::setPixmap ( QPixmap *  pIcon)

Member Data Documentation

KviIconManager::SmallIcon KviTextIcon::m_eIcon
protected
KviAnimatedPixmap* KviTextIcon::m_pAnimatedPixmap
protected
QString KviTextIcon::m_szFileName
protected

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