KVIrc  4.9.2
DeveloperAPIs
Macros | Variables
KviUserListView.cpp File Reference
#include "kvi_debug.h"
#include "KviUserListView.h"
#include "kvi_settings.h"
#include "KviLocale.h"
#include "KviOptions.h"
#include "kvi_defaults.h"
#include "KviIconManager.h"
#include "KviRegisteredUserDataBase.h"
#include "KviParameterList.h"
#include "KviWindow.h"
#include "KviConsoleWindow.h"
#include "KviApplication.h"
#include "KviUserAction.h"
#include "KviQString.h"
#include "KviMainWindow.h"
#include "KviWindowStack.h"
#include "KviKvsEventTriggers.h"
#include "KviWindowToolWidget.h"
#include "KviStringConversion.h"
#include "KviIrcConnection.h"
#include "KviIrcConnectionServerInfo.h"
#include "KviPixmapUtils.h"
#include <QLabel>
#include <QScrollBar>
#include <QPainter>
#include <QPixmap>
#include <QFontMetrics>
#include <QDateTime>
#include <QEvent>
#include <QPaintEvent>

Macros

#define _KVI_USERLISTVIEW_CPP_
 
#define GET_FLAG_FUNC(__funcname, __flag)
 
#define KVI_USERLIST_BORDER_WIDTH   2
 
#define KVI_USERLIST_ICON_MARGIN   3
 
#define KVI_USERLIST_ICON_STATE_WIDTH   8
 
#define KVI_USERLIST_ICON_WIDTH   16
 
#define SET_FLAG_FUNC(__funcname, __flag)
 

Variables

QPixmap * g_pUserChanStatePixmap
 

Macro Definition Documentation

#define _KVI_USERLISTVIEW_CPP_
#define GET_FLAG_FUNC (   __funcname,
  __flag 
)
Value:
bool KviUserListView::__funcname(const QString & szNick, bool bAtLeast) \
{ \
KviUserListEntry * pEntry = m_pEntryDict->find(szNick); \
return pEntry ? (bAtLeast ? (pEntry->m_iFlags >= __flag) : (pEntry->m_iFlags & __flag)) : false; \
}
#define KVI_USERLIST_BORDER_WIDTH   2
#define KVI_USERLIST_ICON_MARGIN   3
#define KVI_USERLIST_ICON_STATE_WIDTH   8
#define KVI_USERLIST_ICON_WIDTH   16
#define SET_FLAG_FUNC (   __funcname,
  __flag 
)
Value:
bool KviUserListView::__funcname(const QString & szNick, bool bYes) \
{ \
KviUserListEntry * pEntry = m_pEntryDict->find(szNick); \
if(!pEntry) \
return false; \
m_pEntryDict->setAutoDelete(false); \
partInternal(szNick, false); \
m_pEntryDict->setAutoDelete(true); \
if(bYes) \
{ \
if(!(pEntry->m_iFlags & __flag)) \
pEntry->m_iFlags |= __flag; \
} \
else \
{ \
if(pEntry->m_iFlags & __flag) \
pEntry->m_iFlags &= ~__flag; \
} \
updateScrollBarRange(); \
insertUserEntry(szNick, pEntry); \
m_pViewArea->update(); \
return true; \
}
if(m_pFile) delete m_pFile

Variable Documentation

QPixmap* g_pUserChanStatePixmap