KVIrc 5.2.6
Developer APIs
KviUserListViewArea Class Reference

User list area management. More...

#include <KviUserListView.h>

+ Inheritance diagram for KviUserListViewArea:

Public Member Functions

int dummyRead () const
 A dummy function that always returns 0.
 
 KviUserListViewArea (KviUserListView *pPar)
 Constructs the user listview area object.
 
 ~KviUserListViewArea ()
 Destroys the user listview are object.
 

Protected Slots

void scrollBarMoved (int iNewVal)
 Called when the scrollbar is moved.
 

Protected Member Functions

void keyPressEvent (QKeyEvent *e) override
 
void mouseDoubleClickEvent (QMouseEvent *e) override
 
void mouseMoveEvent (QMouseEvent *e) override
 
void mousePressEvent (QMouseEvent *e) override
 
void mouseReleaseEvent (QMouseEvent *e) override
 
void paintEvent (QPaintEvent *e) override
 
void resizeEvent (QResizeEvent *e) override
 
void wheelEvent (QWheelEvent *e) override
 

Protected Attributes

bool m_bIgnoreScrollBar
 
int m_iLastScrollBarVal
 
int m_iTopItemOffset
 
KviUserListEntrym_pLastEntryUnderMouse
 
KviUserListViewm_pListView
 
QScrollBar * m_pScrollBar
 

Properties

int TransparencyCapable
 

Friends

class KviUserListView
 

Detailed Description

User list area management.

Constructor & Destructor Documentation

◆ KviUserListViewArea()

KviUserListViewArea::KviUserListViewArea ( KviUserListView * pPar)

Constructs the user listview area object.

Parameters
pParThe parent widget
Returns
KviUserListViewArea

References connect(), KviUserListView, m_bIgnoreScrollBar, m_iLastScrollBarVal, m_iTopItemOffset, m_pLastEntryUnderMouse, m_pListView, m_pScrollBar, and scrollBarMoved().

◆ ~KviUserListViewArea()

KviUserListViewArea::~KviUserListViewArea ( )
default

Destroys the user listview are object.

Member Function Documentation

◆ dummyRead()

int KviUserListViewArea::dummyRead ( ) const
inline

A dummy function that always returns 0.

Returns
int

◆ keyPressEvent()

void KviUserListViewArea::keyPressEvent ( QKeyEvent * e)
overrideprotected

◆ mouseDoubleClickEvent()

void KviUserListViewArea::mouseDoubleClickEvent ( QMouseEvent * e)
overrideprotected

References m_pListView.

◆ mouseMoveEvent()

◆ mousePressEvent()

void KviUserListViewArea::mousePressEvent ( QMouseEvent * e)
overrideprotected

◆ mouseReleaseEvent()

void KviUserListViewArea::mouseReleaseEvent ( QMouseEvent * e)
overrideprotected

◆ paintEvent()

void KviUserListViewArea::paintEvent ( QPaintEvent * e)
overrideprotected

References KviIconManager::AlienIrcOp, KviIconManager::ChanAdmin, KviIrcUserEntry::ChanAdmin, KviIconManager::ChanAdminAway, KviIconManager::ChanOwner, KviIrcUserEntry::ChanOwner, KviIconManager::ChanOwnerAway, KviPixmapUtils::drawPixmapWithPainter(), e, g_pApp, g_pIconManager, g_pMainWindow, g_pUserChanStatePixmap, KviIrcUserEntry::gender(), KviUserListEntry::globalData(), KviIconManager::HalfOp, KviIrcUserEntry::HalfOp, KviIconManager::HalfOpAway, KviIconManager::IrcBot, KviIrcUserEntry::isAway(), KviIrcUserEntry::isBot(), KviIrcUserEntry::isIrcOp(), KVI_COLD_TEMPERATURE, KVI_HALF_COLD_TEMPERATURE, KVI_HALF_HOT_TEMPERATURE, KVI_HOT_TEMPERATURE, KVI_MID_TEMPERATURE, KVI_OPTION_BOOL, KVI_OPTION_COLOR, KVI_OPTION_PIXMAP, KVI_OPTION_UINT, kvi_time_t, kvi_unixTime, KVI_USERLIST_BORDER_WIDTH, KVI_USERLIST_ICON_MARGIN, KVI_USERLIST_ICON_STATE_WIDTH, KVI_USERLIST_ICON_WIDTH, KVI_USERLISTVIEW_GRIDTYPE_3DGRID, KVI_USERLISTVIEW_GRIDTYPE_DOTGRID, KVI_USERLISTVIEW_GRIDTYPE_PLAINGRID, KviOption_boolDrawGenderIcons, KviOption_boolShowAvatarsInUserlist, KviOption_boolShowUserChannelIcons, KviOption_boolShowUserChannelState, KviOption_boolUseCompositingForTransparency, KviOption_boolUseDifferentColorForOwnNick, KviOption_boolUserListViewDrawGrid, KviOption_boolUserListViewUseAwayColor, KviOption_colorGlobalTransparencyFade, KviOption_colorUserListViewAwayForeground, KviOption_colorUserListViewBackground, KviOption_colorUserListViewChanAdminForeground, KviOption_colorUserListViewChanOwnerForeground, KviOption_colorUserListViewGrid, KviOption_colorUserListViewHalfOpForeground, KviOption_colorUserListViewIrcOpForeground, KviOption_colorUserListViewNormalForeground, KviOption_colorUserListViewOpForeground, KviOption_colorUserListViewOwnForeground, KviOption_colorUserListViewSelectionBackground, KviOption_colorUserListViewSelectionForeground, KviOption_colorUserListViewUserOpForeground, KviOption_colorUserListViewVoiceForeground, KviOption_pixmapUserListViewBackground, KviOption_uintGlobalTransparencyChildFadeFactor, KviOption_uintUserListPixmapAlign, KviOption_uintUserListViewGridType, KviUserListEntry::m_bSelected, KviUserListEntry::m_iFlags, KviUserListEntry::m_iHeight, KviUserListEntry::m_iTemperature, m_iTopItemOffset, KviUserListEntry::m_lastActionTime, KviUserListEntry::m_pAvatarPixmap, m_pListView, KviUserListEntry::m_pNext, m_pScrollBar, KviUserListEntry::m_szNick, KviIrcUserEntry::Male, KviIconManager::Op, KviIrcUserEntry::Op, KviIconManager::OpAway, p, KviAnimatedPixmap::pixmap(), r, KviIconManager::SexFemale, KviIconManager::SexMale, KviIrcUserEntry::Unknown, KviIconManager::UserOp, KviIconManager::UserOpAway, KviIconManager::Voice, KviIrcUserEntry::Voice, and KviIconManager::VoiceAway.

◆ resizeEvent()

void KviUserListViewArea::resizeEvent ( QResizeEvent * e)
overrideprotected

References m_pListView, and m_pScrollBar.

◆ scrollBarMoved

void KviUserListViewArea::scrollBarMoved ( int iNewVal)
protectedslot

Called when the scrollbar is moved.

Parameters
iNewValThe new value of the scrollbar
Returns
void

References m_bIgnoreScrollBar, m_iLastScrollBarVal, m_iTopItemOffset, and m_pListView.

Referenced by KviUserListViewArea().

◆ wheelEvent()

void KviUserListViewArea::wheelEvent ( QWheelEvent * e)
overrideprotected

References e, g_pApp, and m_pScrollBar.

Friends And Related Symbol Documentation

◆ KviUserListView

friend class KviUserListView
friend

References KviUserListView.

Referenced by KviUserListView, and KviUserListViewArea().

Member Data Documentation

◆ m_bIgnoreScrollBar

bool KviUserListViewArea::m_bIgnoreScrollBar
protected

◆ m_iLastScrollBarVal

int KviUserListViewArea::m_iLastScrollBarVal
protected

◆ m_iTopItemOffset

int KviUserListViewArea::m_iTopItemOffset
protected

◆ m_pLastEntryUnderMouse

KviUserListEntry* KviUserListViewArea::m_pLastEntryUnderMouse
protected

◆ m_pListView

◆ m_pScrollBar

QScrollBar* KviUserListViewArea::m_pScrollBar
protected

Property Documentation

◆ TransparencyCapable

int KviUserListViewArea::TransparencyCapable
read

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