KVIrc
4.9.2
DeveloperAPIs
|
This class manages the images used by KVIrc. More...
#include <KviIconManager.h>
Public Slots | |
void | showIconWidget () |
Shows the table of icons. More... | |
Public Member Functions | |
void | clearCache () |
Clears the cache! More... | |
KviAvatar * | getAvatar (const QString &szLocalPath, const QString &szName) |
Returns the avatar If szLocalPath is empty then szName can be the identification string for the avatar If szName is empty then it is found from szLocalPath. More... | |
QPixmap * | getBigIcon (const QString &szName) |
Returns the big icon. More... | |
QPixmap * | getImage (const QString &szId, bool bCanBeNumber=true, QString *pRetPath=0) |
Returns the image. More... | |
QPixmap * | getPixmap (const QString &szName) |
Returns the pixmap of the image. More... | |
KviCachedPixmap * | getPixmapWithCache (const QString &szName) |
Returns the cached pixmap of the image. More... | |
KviCachedPixmap * | getPixmapWithCacheScaleOnLoad (const QString &szName, int iMaxWidth, int iMaxHeight) |
Returns the cached pixmap of the image and scales it on load. More... | |
QPixmap * | getSmallIcon (SmallIcon eIcon) |
Returns the small icon. More... | |
QPixmap * | getSmallIcon (int iIcon) |
Returns the small icon. More... | |
int | getSmallIconIdFromName (const QString &szName) |
Returns the index of the small icon. More... | |
const char * | getSmallIconName (SmallIcon eIcon) |
Returns the name of the small icon. More... | |
const char * | getSmallIconName (int iIcon) |
Returns the name of the small icon. More... | |
QString | getSmallIconResourceName (SmallIcon eIcon) |
Returns the resource name of the small icon. More... | |
SmallIcon | iconName (int iIcon) |
Returns the name of the small icon. More... | |
KviIconManager () | |
Creates the icon manager object. More... | |
void | reloadImages () |
Reloads all images. More... | |
void | urlToCachedFileName (QString &szName) |
Returns the url of the image in cache. More... | |
~KviIconManager () | |
Destroys the icon manager object. More... | |
Protected Slots | |
void | iconWidgetClosed () |
Called when we close the table of icons. More... | |
Protected Member Functions | |
void | addToCache (const QString &szName, KviCachedPixmap *pPix) |
void | initQResourceBackend () |
Initializes the Qt resource backend. More... | |
QPixmap * | loadSmallIcon (int iIdx) |
Returns the icon. More... | |
Private Attributes | |
KviPointerHashTable< QString, KviCachedPixmap > * | m_pCachedImages |
KviPointerHashTable< QString, int > * | m_pIconNames |
KviIconWidget * | m_pIconWidget |
QPixmap * | m_smallIcons [IconCount] |
unsigned int | m_uCacheMaxSize |
unsigned int | m_uCacheTotalSize |
This class manages the images used by KVIrc.
We handle three types of images: builtin small icons, builtin big icons and generic images. The builtin small icons are in the pics/coresmall directory (this is to optimize the directory size since it's a linear search...), are 16x16 in size and are indexed by numbers in a way that their access is really fast. The icons used here are used mostly in KviIrcView (but not exclusively). The builtin big icons are (actually) just generic images that are eventually scaled to 32x32 if needed. One can request a builtin small icon indexed by number to be scaled to the size of 32x32 as a big icon too. The generic images are just "any" image that the underlying Qt engine is able to load. They are loaded by (relative) path and cached by name.
Contains all KVIrc's small icons.
KviIconManager::KviIconManager | ( | ) |
Creates the icon manager object.
References KviApplication::findImage(), g_pActivityMeterPixmap, g_pApp, g_pUserChanStatePixmap, i, IconCount, initQResourceBackend(), KVI_ACTIVITYMETER_IMAGE_NAME, KVI_USERCHANSTATE_IMAGE_NAME, m_pCachedImages, m_pIconNames, m_pIconWidget, m_smallIcons, m_uCacheMaxSize, m_uCacheTotalSize, KviPointerHashTable< Key, T >::setAutoDelete(), and szBuffer.
KviIconManager::~KviIconManager | ( | ) |
Destroys the icon manager object.
References g_pActivityMeterPixmap, g_pUserChanStatePixmap, i, IconCount, m_pCachedImages, m_pIconNames, m_pIconWidget, and m_smallIcons.
|
protected |
References KviPointerHashTable< Key, T >::insert(), m_pCachedImages, m_uCacheTotalSize, and KviCachedPixmap::size().
Referenced by getBigIcon(), getPixmapWithCache(), and getPixmapWithCacheScaleOnLoad().
void KviIconManager::clearCache | ( | ) |
Clears the cache!
References KviPointerHashTable< Key, T >::clear(), and m_pCachedImages.
Referenced by reloadImages().
KviAvatar * KviIconManager::getAvatar | ( | const QString & | szLocalPath, |
const QString & | szName | ||
) |
Returns the avatar If szLocalPath is empty then szName can be the identification string for the avatar If szName is empty then it is found from szLocalPath.
szLocalPath | The local path of the avatar |
szName | The name of the avatar |
References KviApplication::Avatars, KviQString::equalCIN(), KviFileUtils::extractFileName(), KviFileUtils::fileExists(), g_pApp, KviApplication::getLocalKvircDirectory(), KviAvatar::isValid(), KVI_OPTION_BOOL, KVI_OPTION_UINT, KviOption_boolScaleAvatarsOnLoad, KviOption_uintScaleAvatarsOnLoadHeight, KviOption_uintScaleAvatarsOnLoadWidth, and urlToCachedFileName().
Referenced by avatar_kvs_cmd_set(), KviConsoleWindow::checkDefaultAvatar(), OptionsWidget_identityAvatar::chooseAvatar(), RegisteredUsersDialog::exportClicked(), KviIrcServerParser::parseCtcpReplyAvatar(), KviConsoleWindow::resetAvatarForMatchingUsers(), and KviConsoleWindow::setAvatar().
QPixmap * KviIconManager::getBigIcon | ( | const QString & | szName | ) |
Returns the big icon.
szName | The icon to get |
References addToCache(), getPixmap(), getSmallIcon(), IconCount, and KviCachedPixmap::pixmap().
Referenced by ActionEditorTreeWidgetItem::ActionEditorTreeWidgetItem(), KviConnectAction::activeContextStateChanged(), KviGoAwayAction::activeContextStateChanged(), AddonManagementDialog::AddonManagementDialog(), KviConnectAction::addToCustomToolBar(), KviGoAwayAction::addToCustomToolBar(), ThemeManagementDialog::applyCurrentTheme(), DccVoiceWindow::DccVoiceWindow(), KviImageDialog::heartbeat(), HelpWidget::HelpWidget(), HelpWindow::HelpWindow(), KviKvsScriptAddon::icon(), AddonFunctions::installAddonPackage(), ThemeFunctions::installThemePackage(), KviChannelWindow::KviChannelWindow(), KviInput::KviInput(), PackAddonDialog::PackAddonDialog(), PackThemeDialog::PackThemeDialog(), RegisteredUsersDialogItemDelegate::paint(), KviInput::setButtonsHidden(), ThemeManagementDialog::ThemeManagementDialog(), KviChannelWindow::toggleToolButtons(), and TrashcanLabel::TrashcanLabel().
QPixmap * KviIconManager::getImage | ( | const QString & | szId, |
bool | bCanBeNumber = true , |
||
QString * | pRetPath = 0 |
||
) |
Returns the image.
szId | The ID of the image This can be a filename or a number that indicates an internal pixmap. 0 stands for "any" |
bCanBeNumber | Whether the image is specified by a number, especially for scripts or popups |
pRetPath | Holds the path of the image |
References getPixmapWithCache(), getSmallIcon(), getSmallIconIdFromName(), IconCount, KviCachedPixmap::path(), and KviCachedPixmap::pixmap().
Referenced by NotifierWindow::addMessage(), KviAction::bigIcon(), SingleActionEditor::displayBigIcon(), SingleActionEditor::displaySmallIcon(), KviKvsPopupMenuItemWithTextAndIcon::evaluateIcon(), KviMainWindow::fillToolBarsPopup(), KviKvsObject::function_setProperty(), CustomToolBarPropertiesDialog::iconSelected(), HttpFileTransfer::init(), DccFileTransfer::init(), KviKvsCallbackMessageBox::KviKvsCallbackMessageBox(), KviKvsCallbackTextInput::KviKvsCallbackTextInput(), KviKvsCoreCallbackCommands::KVSCCC(), KviKvsCoreSimpleCommands::KVSCSC(), KVSO_CLASS_FUNCTION(), UserWindow::myIconPtr(), PopupTreeWidgetItem::setIcon(), KviAction::smallIcon(), and window_kvs_fnc_open().
|
inline |
Returns the pixmap of the image.
szName | The name of the image |
References KviCachedPixmap::pixmap().
Referenced by OptionsWidget_textIcons::chooseFromFile(), getBigIcon(), KviTextIconManager::load(), NotifierWindowBorder::loadImages(), and KviTextIcon::pixmap().
KviCachedPixmap * KviIconManager::getPixmapWithCache | ( | const QString & | szName | ) |
Returns the cached pixmap of the image.
szName | The name of the image |
References addToCache(), KviPointerHashTable< Key, T >::find(), KviApplication::findImage(), g_pApp, m_pCachedImages, and KviCachedPixmap::updateLastAccessTime().
Referenced by getImage(), and KviTheme::save().
KviCachedPixmap * KviIconManager::getPixmapWithCacheScaleOnLoad | ( | const QString & | szName, |
int | iMaxWidth, | ||
int | iMaxHeight | ||
) |
Returns the cached pixmap of the image and scales it on load.
szName | The name of the image |
iMaxWidth | The max width to scale |
iMaxHeight | The max height to scale |
References addToCache(), KviPointerHashTable< Key, T >::find(), KviApplication::findImage(), g_pApp, m_pCachedImages, and KviCachedPixmap::updateLastAccessTime().
|
inline |
Returns the small icon.
eIcon | The icon to get |
Referenced by ActionEditorWindow::ActionEditorWindow(), EventEditor::addHandlerForCurrentEvent(), KviMaskEditor::addMask(), AddonManagementDialog::AddonManagementDialog(), KviGoAwayAction::addToPopupMenu(), AliasEditorTreeWidgetItem::AliasEditorTreeWidgetItem(), AliasEditorWindow::AliasEditorWindow(), KviInput::applyOptions(), ChannelsJoinDialog::ChannelsJoinDialog(), ClassEditorTreeWidgetItem::ClassEditorTreeWidgetItem(), ClassEditorWindow::ClassEditorWindow(), ThemeManagementDialog::contextMenuRequested(), KviTopicWidget::contextPopupAboutToShow(), KviWindow::createToolButton(), OptionsWidget_proxy::customContextMenuRequested(), RawEditorWidget::customContextMenuRequested(), AliasEditorWidget::customContextMenuRequested(), SinglePopupEditor::customContextMenuRequested(), PopupEditorWidget::customContextMenuRequested(), OptionsWidget_servers::customContextMenuRequested(), ClassEditorWidget::customContextMenuRequested(), CustomizeToolBarsDialog::CustomizeToolBarsDialog(), CustomToolBarPropertiesDialog::CustomToolBarPropertiesDialog(), DccAcceptDialog::DccAcceptDialog(), DccRenameDialog::DccRenameDialog(), DccVoiceWindow::DccVoiceWindow(), EventEditorWindow::EventEditorWindow(), OptionsWidget_servers::favoriteServer(), KviTrayIconWidget::fillContextPopup(), NotifierWindow::fillContextPopup(), ChannelsJoinDialog::fillListView(), OptionsWidget_proxy::fillProxyList(), KviApplication::fillRecentChannelsPopup(), KviApplication::fillRecentNicknamesPopup(), KviApplication::fillRecentServersPopup(), OptionsWidget_servers::fillServerList(), KviMainWindow::fillToolBarsPopup(), getBigIcon(), getImage(), OptionsInstanceManager::getInstance(), KviImageDialog::heartbeat(), OptionsWidget_servers::importServer(), KviIconWidget::init(), AddonFunctions::installAddonPackage(), ThemeFunctions::installThemePackage(), IrcNetworkDetailsWidget::IrcNetworkDetailsWidget(), IrcServerDetailsWidget::IrcServerDetailsWidget(), OptionsWidget_messageColors::itemChanged(), EventEditor::itemPressed(), KviClassicWindowListToolButton::KviClassicWindowListToolButton(), KviConsoleWindow::KviConsoleWindow(), KviCtcpPageDialog::KviCtcpPageDialog(), KviDefaultScriptDialog::KviDefaultScriptDialog(), KviFileDialog::KviFileDialog(), KviInput::KviInput(), KviIrcMessageCheckListItem::KviIrcMessageCheckListItem(), KviIrcView::KviIrcView(), KviIrcViewToolWidget::KviIrcViewToolWidget(), KviKvsCallbackTextInput::KviKvsCallbackTextInput(), KviMainWindow::KviMainWindow(), KviMaskEditor::KviMaskEditor(), KviMaskInputDialog::KviMaskInputDialog(), KviModeEditor::KviModeEditor(), KviStatusBarAwayIndicator::KviStatusBarAwayIndicator(), KviStatusBarUpdateIndicator::KviStatusBarUpdateIndicator(), KviTrayIconWidget::KviTrayIconWidget(), KviWindowToolPageButton::KviWindowToolPageButton(), LinksWindow::LinksWindow(), ListWindow::ListWindow(), KviTextIconManager::load(), LogListViewItemType::LogListViewItemType(), MenuTreeWidgetItem::MenuTreeWidgetItem(), MessageListWidgetItem::MessageListWidgetItem(), ChannelsJoinDialogTreeWidget::mousePressEvent(), SocketSpyWindow::myIconPtr(), KviKvsScriptWindowWindow::myIconPtr(), UserWindow::myIconPtr(), KviDebugWindow::myIconPtr(), CodeTesterWindow::myIconPtr(), KviIOGraphWindow::myIconPtr(), HelpWindow::myIconPtr(), UrlDialog::myIconPtr(), LinksWindow::myIconPtr(), DccChatWindow::myIconPtr(), SharedFilesWindow::myIconPtr(), KviConsoleWindow::myIconPtr(), FileTransferWindow::myIconPtr(), LogViewWindow::myIconPtr(), ListWindow::myIconPtr(), DccVoiceWindow::myIconPtr(), EventEditorWindow::myIconPtr(), DccVideoWindow::myIconPtr(), RawEditorWindow::myIconPtr(), AliasEditorWindow::myIconPtr(), ActionEditorWindow::myIconPtr(), PopupEditorWindow::myIconPtr(), KviQueryWindow::myIconPtr(), KviWindow::myIconPtr(), ClassEditorWindow::myIconPtr(), KviChannelWindow::myIconPtr(), OptionsWidget_messageColors::newIconSelected(), OptionsWidget_servers::newNetwork(), OptionsWidget_proxy::newProxy(), OptionsWidget_servers::newServer(), KviApplication::notifierMessage(), EventEditor::oneTimeSetup(), OptionsDialog::OptionsDialog(), OptionsDialogTreeWidgetItem::OptionsDialogTreeWidgetItem(), OptionsWidget_proxy::OptionsWidget_proxy(), OptionsWidget_servers::OptionsWidget_servers(), RegisteredUsersDialogItemDelegate::paint(), MessageListWidgetItemDelegate::paint(), KviIrcView::paintEvent(), KviUserListViewArea::paintEvent(), OptionsWidget_servers::pasteServer(), KviTextIcon::pixmap(), KviJoinChannelAction::popupAboutToShow(), KviChangeNickAction::popupAboutToShow(), KviConnectToServerAction::popupAboutToShow(), KviChangeUserModeAction::popupAboutToShow(), PopupEditorWindow::PopupEditorWindow(), RawEditorWindow::RawEditorWindow(), OptionsWidget_servers::recentServersPopupAboutToShow(), KviConsoleWindow::recentUrlsChanged(), KviTrayIconWidget::refresh(), RegisteredUserEntryDialog::RegisteredUserEntryDialog(), RegisteredUserPropertiesDialog::RegisteredUserPropertiesDialog(), RegisteredUsersDialog::RegisteredUsersDialog(), RegistrationWizard::RegistrationWizard(), EventEditor::removeCurrentHandler(), LogViewWindow::rightButtonClicked(), KviTheme::save(), ScriptEditorImplementation::ScriptEditorImplementation(), StatusBarApplet::selfRegister(), KviStatusBarClock::selfRegister(), KviStatusBarConnectionTimer::selfRegister(), KviStatusBarAwayIndicator::selfRegister(), KviStatusBarLagIndicator::selfRegister(), KviStatusBarUpdateIndicator::selfRegister(), ClassEditorTreeWidgetItem::setClassNotBuilt(), RawTreeWidgetItem::setEnabled(), EventEditorHandlerTreeWidgetItem::setEnabled(), RawHandlerTreeWidgetItem::setEnabled(), AliasEditorTreeWidgetItem::setType(), ClassEditorTreeWidgetItem::setType(), OptionsWidgetContainer::setup(), KviMenuBar::setupHelpPopup(), KviMenuBar::setupMainPopup(), KviMenuBar::setupScriptingPopup(), KviMenuBar::setupSettingsPopup(), KviMenuBar::setupToolsPopup(), SharedFileEditDialog::SharedFileEditDialog(), KviInputEditor::showContextPopup(), LinksWindow::showHostPopup(), KviIrcView::showToolsPopup(), KviAction::smallIcon(), KviTopicWidget::switchMode(), ThemeManagementDialog::ThemeManagementDialog(), TipWindow::TipWindow(), KviStatusBarAwayIndicator::updateDisplay(), KviStatusBarUpdateIndicator::updateDisplay(), OptionsWidget_servers::updateFavoritesFilter(), and KviMenuBar::updateRecentServersPopup().
|
inline |
Returns the small icon.
iIcon | The icon to get |
int KviIconManager::getSmallIconIdFromName | ( | const QString & | szName | ) |
Returns the index of the small icon.
szName | The name of the icon |
References KviPointerHashTable< Key, T >::find(), g_szIconNames, i, IconCount, m_pIconNames, KviPointerHashTable< Key, T >::replace(), and KviPointerHashTable< Key, T >::setAutoDelete().
Referenced by getImage(), and KviKvsCoreFunctions::KVSCF().
const char * KviIconManager::getSmallIconName | ( | SmallIcon | eIcon | ) |
Returns the name of the small icon.
eIcon | The icon to get |
References g_szIconNames.
Referenced by KviImageDialog::heartbeat(), KviKvsCoreFunctions::KVSCF(), KviApplication::notifierMessage(), and KviTheme::save().
const char * KviIconManager::getSmallIconName | ( | int | iIcon | ) |
Returns the name of the small icon.
iIcon | The icon to get |
References g_szIconNames.
QString KviIconManager::getSmallIconResourceName | ( | SmallIcon | eIcon | ) |
Returns the resource name of the small icon.
eIcon | The icon to get |
References g_szIconNames.
Referenced by KviHtmlGenerator::convertToHtml(), LogViewWindow::createLog(), KviIrcView::doLinkToolTip(), and KviIrcView::doMarkerToolTip().
KviIconManager::SmallIcon KviIconManager::iconName | ( | int | iIcon | ) |
Returns the name of the small icon.
iIcon | The icon to get |
References Accept, Action, ActionEditor, Addons, Afraid, Alias, AliasEditor, AlienIrcOp, Angel, Angry, Applet, Avatar, Away, Ban, BanExcept, BanUnExcept, BigGrin, BigGrinEyes, BigGrinGlasses, BinaryText, BlackSquare, BlueSquare, Bomb, BookMarks, BroadcastNotice, BroadcastPrivMsg, Bug, Cafe, Cake, Canvas, ChanAdmin, ChanAdminAway, ChanMode, ChanModeHide, Channel, ChannelNotice, ChannelNoticeCrypted, ChanOwner, ChanOwnerAway, ChanPrivMsg, ChanPrivMsgCrypted, ChanServ, ChanUnAdmin, ChanUnOwner, Class, ClassEditor, ClassicWindowList, ClassNotBuilt, Close, Clown, Colors, Console, Copy, Cry, CtcpReply, CtcpReplyUnknown, CtcpRequestFlood, CtcpRequestIgnored, CtcpRequestReplied, CtcpRequestUnknown, Cut, CyanSquare, DarkGreenSquare, Dcc, DccChatMsg, DccChatMsgCrypted, DccError, DccMsg, DccRequest, DccVoice, DeadChannel, DeadQuery, DefaultIcon, DeIrcOp, DeleteItem, Demoralized, DeOp, DeUserOp, Devil, DeVoice, Discard, Dock, EditItem, Editor, Epilogue, Event, EventEditor, EventNoHandlers, Eye, FacePalm, FailUpdate, Favorite, FavoriteOff, File, Files, FileTransfer, Finger, Folder, Function, Gnutella, GreenSquare, Gui, HalfDeOp, HalfOp, HalfOpAway, HandIly, Handler, HandlerDisabled, Heart, HeartBroken, Help, HideDoubleView, HideListView, HighlightText, History, HistoryOff, Home, HomePage, IconCount, IconManager, Icq, IcqBlue, IcqLightGreen, IcqLightYellow, IcqRed, IcqYellow, Idea, Ident, Identity, Ignore, Info, InLove, Input, Invisible, Invite, InviteExcept, InviteUnExcept, Irc, Irc0, Irc1, Irc2, Irc3, Irc4, Irc5, IrcBot, IrcOp, IrcOpAway, IrcView, Join, Key, Kick, KickOff, Kiss, KVIrc, Limit, Links, Linux, List, Locked, LockedOff, Log, MeBan, MeBanExcept, MeBanUnExcept, MeChanAdmin, MeChanOwner, MeChanUnAdmin, MeChanUnOwner, MeDeHalfOp, MeDeIrcOp, MeDeOp, MeDeUserOp, MeDeVoice, MeHalfOp, MeInviteExcept, MeInviteUnExcept, MeIrcOp, MeKick, MemoServ, MenuBar, MeOp, Message, Messages, MessageSent, MeUnBan, MeUserOp, MeVoice, Minus, Mode, Motd, MultiMedia, NameSpace, NewItem, NewItemByWizard, NewNetwork, NewProxy, NewServer, Nick, NickNameProblem, NickPopup, NickServ, Ninja, NoChannel, None, NotAway, Notifier, NotifyOffLine, NotifyOnLine, NotUpdate, Op, OpAway, Options, OwnPrivMsg, OwnPrivMsgCrypted, Package, ParserError, ParserWarning, Part, Paste, Pirate, Play, Plus, Popup, PopupEditor, PopupMenu, Prologue, Proxy, Puke, Query, QueryNotice, QueryNoticeCrypted, QueryPrivMsg, QueryPrivMsgCrypted, QueryTrace, QuestionMark, Quit, QuitApp, QuitSplit, Rage, Raw, RawEvent, RawEventEditor, RawEventNoHandlers, Record, RedSquare, Refresh, RegUsers, Remove, Rose, Save, SayColors, SayKvs, SaySmile, ScreenShot, ScriptCenter, Search, Server, ServerConfiguration, ServerError, ServerFavorite, ServerInfo, ServerNotice, ServerPing, SexFemale, SexMale, SharedFiles, Shield, ShowDoubleView, ShowListView, Shy, Slurp, Smile, Socket, SocketError, SocketMessage, SocketWarning, Sound, Spam, Split, Spy, Ssl, Stats, StatusBar, Surprised1, Surprised2, SysMonitor, SystemError, SystemMessage, SystemWarning, TearSmile, Teeth, Terminal, TextEncoding, TextExclamative, TextPoints, Theme, ThemeOptions, ThumbDown, ThumbUp, Time, Tongue, Toolbar, ToolBarEditor, Tools, Topic, Transparent, TrayIcon, TreeWindowList, Ugly, UnBan, UnDock, UnHandled, UnLocked, UnLockedOff, UnreadText, Unrecognized, UnsetMode, Update, Url, User, UserList, UserMode, UserOp, UserOpAway, UserWindow, VioletSquare, Voice, VoiceAway, WallOps, Warning, Who, WhoisChannels, WhoisIdle, WhoisOther, WhoisServer, WhoisUser, World, and YellowSquare.
Referenced by KviTextIconManager::insert(), KviTextIconManager::load(), and KviTextIcon::setId().
|
protectedslot |
Called when we close the table of icons.
References m_pIconWidget.
Referenced by showIconWidget().
|
protected |
Initializes the Qt resource backend.
References g_pApp, KviApplication::getGlobalKvircDirectory(), KviApplication::getLocalKvircDirectory(), KviApplication::Pics, and KviApplication::SmallIcons.
Referenced by KviIconManager().
|
protected |
Returns the icon.
iIdx | The ID of the icon |
References KviApplication::findSmallIcon(), g_pApp, g_szIconNames, IconCount, KVI_SMALLICONS_PREFIX, m_smallIcons, and szBuffer.
void KviIconManager::reloadImages | ( | ) |
Reloads all images.
References clearCache(), and m_smallIcons.
Referenced by KviApplication::optionResetUpdate().
|
slot |
Shows the table of icons.
References connect(), iconWidgetClosed(), KviIconWidget, and m_pIconWidget.
void KviIconManager::urlToCachedFileName | ( | QString & | szName | ) |
Returns the url of the image in cache.
szName | The path of the image |
Referenced by avatar_kvs_cmd_set(), getAvatar(), KviIrcServerParser::parseCtcpReplyAvatar(), and AvatarDownloadDialog::startDownload().
|
private |
Referenced by addToCache(), clearCache(), getPixmapWithCache(), getPixmapWithCacheScaleOnLoad(), KviIconManager(), and ~KviIconManager().
|
private |
Referenced by getSmallIconIdFromName(), KviIconManager(), and ~KviIconManager().
|
private |
Referenced by iconWidgetClosed(), KviIconManager(), showIconWidget(), and ~KviIconManager().
|
private |
Referenced by KviIconManager(), loadSmallIcon(), reloadImages(), and ~KviIconManager().
|
private |
Referenced by KviIconManager().
|
private |
Referenced by addToCache(), and KviIconManager().