KVIrc  4.9.2
DeveloperAPIs
Signals | Public Member Functions | Protected Member Functions | Private Attributes | Friends | List of all members
KviTextIconManager Class Reference

The class that manages the icons. More...

#include <KviTextIconManager.h>

+ Inheritance diagram for KviTextIconManager:

Signals

void changed ()
 Called when the default associations change. More...
 

Public Member Functions

void applyOptions ()
 Applies the options. More...
 
void checkDefaultAssociations ()
 Checks and updates the default associations. More...
 
void clear ()
 Clears the dictionary. More...
 
void insert (const QString &szName, int iId)
 Inserts an icon in the dictionary. More...
 
void insert (const QString &szName, KviTextIcon &icon)
 Inserts an icon in the dictionary. More...
 
 KviTextIconManager ()
 Constructs the icon manager object. More...
 
void load ()
 Loads the dictionary. More...
 
KviTextIconlookupTextIcon (const QString &szName)
 Returns the text of the icon. More...
 
void save ()
 Saves the dictionary. More...
 
KviPointerHashTable< QString,
KviTextIcon > * 
textIconDict ()
 Returns the dictionary of the icons. More...
 
 ~KviTextIconManager ()
 Destroys the icon manager object. More...
 

Protected Member Functions

int load (const QString &szFileName, bool bMerge=false)
 Loads the dictionary from a file. More...
 
void save (const QString &szFileName)
 Saves the dictionary to a file. More...
 

Private Attributes

KviPointerHashTable< QString,
KviTextIcon > * 
m_pTextIconDict
 

Friends

class KviTextIconsOptionsWidget
 
class KviTextIconWindow
 

Detailed Description

The class that manages the icons.

Constructor & Destructor Documentation

KviTextIconManager::KviTextIconManager ( )

Constructs the icon manager object.

Returns
KviTextIconManager

References m_pTextIconDict, and KviPointerHashTable< Key, T >::setAutoDelete().

KviTextIconManager::~KviTextIconManager ( )

Destroys the icon manager object.

References m_pTextIconDict.

Member Function Documentation

void KviTextIconManager::applyOptions ( )
void KviTextIconManager::changed ( )
signal

Called when the default associations change.

Returns
void

Referenced by checkDefaultAssociations(), insert(), and load().

void KviTextIconManager::checkDefaultAssociations ( )
void KviTextIconManager::clear ( )

Clears the dictionary.

Returns
void

References KviPointerHashTable< Key, T >::clear(), and m_pTextIconDict.

Referenced by OptionsWidget_textIcons::commit().

void KviTextIconManager::insert ( const QString &  szName,
int  iId 
)

Inserts an icon in the dictionary.

Parameters
szNameThe name of the icon
iIdThe id of the icon
Returns
void

References changed(), g_pIconManager, KviIconManager::iconName(), m_pTextIconDict, and KviPointerHashTable< Key, T >::replace().

Referenced by checkDefaultAssociations(), OptionsWidget_textIcons::commit(), and texticons_kvs_cmd_set().

void KviTextIconManager::insert ( const QString &  szName,
KviTextIcon icon 
)

Inserts an icon in the dictionary.

Parameters
szNameThe name of the icon
iconThe icon
Returns
void

References changed(), m_pTextIconDict, and KviPointerHashTable< Key, T >::replace().

void KviTextIconManager::load ( )
int KviTextIconManager::load ( const QString &  szFileName,
bool  bMerge = false 
)
protected
KviTextIcon* KviTextIconManager::lookupTextIcon ( const QString &  szName)
inline
void KviTextIconManager::save ( )
void KviTextIconManager::save ( const QString &  szFileName)
protected
KviPointerHashTable<QString, KviTextIcon>* KviTextIconManager::textIconDict ( )
inline

Friends And Related Function Documentation

friend class KviTextIconsOptionsWidget
friend
friend class KviTextIconWindow
friend

Member Data Documentation

KviPointerHashTable<QString, KviTextIcon>* KviTextIconManager::m_pTextIconDict
private

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