KVIrc 5.2.4
Developer APIs
Public Types | Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Properties | Private Member Functions | Private Attributes | Friends | List of all members
KviIrcView Class Reference

#include <KviIrcView.h>

+ Inheritance diagram for KviIrcView:

Public Types

enum  AppendTextFlags { NoRepaint = 1 , NoTimestamp = 2 , SetLineMark = 4 , TriggersNotification = 8 }
 

Public Slots

void chooseBackground ()
 
void chooseFont ()
 
void clearBuffer ()
 
void decreaseFontSize ()
 
void flushLog ()
 
void increaseFontSize ()
 
void resetBackground ()
 
void resetDefaultFont ()
 
void showToolsPopup ()
 
void toggleToolWidget ()
 

Signals

void dndEntered ()
 
void fileDropped (const QString &)
 
void rightClicked ()
 

Public Member Functions

void add2Log (const QString &szBuffer, const QDateTime &date, int iMsgType, bool bPrependDate)
 
void appendMessagesFrom (KviIrcView *v)
 
void appendText (int msg_type, const kvi_wchar_t *data_ptr, int iFlags=0, const QDateTime &datetime=QDateTime())
 
void applyOptions ()
 
void clearLineMark (bool bRepaint=false)
 
void clearUnreaded ()
 
KviConsoleWindowconsole ()
 
int dummyRead () const
 
void emptyBuffer (bool bRepaint=true)
 
void enableDnd (bool bEnable)
 
void findNext (const QString &szText, bool bCaseS=false, bool bRegExp=false, bool bExtended=false)
 
void findPrev (const QString &szText, bool bCaseS=false, bool bRegExp=false, bool bExtended=false)
 
void getLogFileName (QString &buffer)
 
bool getPaintOnScreen () const
 
QPixmap * getPrivateBackgroundPixmap () const
 
void getTextBuffer (QString &buffer)
 
bool hasLineMark ()
 
bool hasPrivateBackgroundPixmap ()
 
bool haveUnreadedHighlightedMessages ()
 
bool haveUnreadedMessages ()
 
bool isLogging ()
 
void joinMessagesFrom (KviIrcView *v)
 
 KviIrcView (QWidget *parent, KviWindow *pWnd)
 
const QString & lastLineOfText ()
 
const QString & lastMessageText ()
 
qint64 lastMouseClickTime () const
 
int maxBufferSize ()
 
bool messageShouldGoToMessageView (int iMsgType)
 
void nextLine ()
 
void nextPage ()
 
KviWindowparentKviWindow ()
 
void prevLine ()
 
void prevPage ()
 
void removeHeadLine (bool bRepaint=false)
 
bool saveBuffer (const char *filename)
 
void scrollBottom ()
 
void scrollToMarker ()
 
void scrollTop ()
 
void setFont (const QFont &f)
 
void setMasterView (KviIrcView *v)
 
void setMaxBufferSize (int maxBufSize, bool bRepaint=true)
 
void setPaintOnScreen (bool bFlag)
 
void setPrivateBackgroundPixmap (const QPixmap &pixmap, bool bRepaint=true)
 
QSize sizeHint () const override
 
void splitMessagesTo (KviIrcView *v)
 
bool startLogging (const QString &fname=QString(), bool bPrependCurBuffer=false)
 
void stopLogging ()
 
 ~KviIrcView ()
 

Protected Slots

void animatedIconChange ()
 
void masterDead ()
 
void screenChanged (QScreen *)
 
virtual void scrollBarPositionChanged (int newValue)
 

Protected Member Functions

void dragEnterEvent (QDragEnterEvent *e) override
 
void dropEvent (QDropEvent *e) override
 
bool event (QEvent *e) override
 
void keyPressEvent (QKeyEvent *e) override
 
void leaveEvent (QEvent *) override
 
void maybeTip (const QPoint &pnt)
 
void mouseDoubleClickEvent (QMouseEvent *e) override
 
void mouseMoveEvent (QMouseEvent *e) override
 
void mousePressEvent (QMouseEvent *e) override
 
void mouseReleaseEvent (QMouseEvent *) override
 
void paintEvent (QPaintEvent *) override
 
void resizeEvent (QResizeEvent *) override
 
void showEvent (QShowEvent *e) override
 
void timerEvent (QTimerEvent *e) override
 
void wheelEvent (QWheelEvent *e) override
 

Properties

int TransparencyCapable
 
bool usePaintOnScreen
 

Private Member Functions

void addControlCharacter (KviIrcViewLineChunk *pC, QString &szSelectionText)
 
void appendLine (KviIrcViewLine *ptr, const QDateTime &date, bool bRepaint)
 
void calculateLineWraps (KviIrcViewLine *ptr, int maxWidth)
 
bool checkMarkerArea (const QPoint &mousePos)
 
bool checkSelectionBlock (KviIrcViewLine *line, int bufIndex)
 
void doLinkToolTip (const QRect &rct, QString &linkCmd, QString &linkText)
 
void doMarkerToolTip ()
 
void ensureLineVisible (KviIrcViewLine *pLineToShow)
 
void fastScroll (int lines=1)
 
void getLinkEscapeCommand (QString &buffer, const QString &escape_cmd, const QString &escape_label)
 
KviIrcViewWrappedBlockgetLinkUnderMouse (int xPos, int yPos, QRect *pRect=nullptr, QString *linkCmd=nullptr, QString *linkText=nullptr)
 
const kvi_wchar_tgetTextLine (int msg_type, const kvi_wchar_t *data_ptr, KviIrcViewLine *line_ptr, bool bEnableTimeStamp=true, const QDateTime &datetime=QDateTime())
 
int getVisibleCharIndexAt (KviIrcViewLine *line, int xPos, int yPos)
 
KviIrcViewLinegetVisibleLineAt (int yPos)
 
void postUpdateEvent ()
 
void reapplyMessageColors ()
 
void recalcFontVariables (const QFont &font, const QFontInfo &fi)
 
void setCursorLine (KviIrcViewLine *l)
 
void triggerMouseRelatedKvsEvents (QMouseEvent *e)
 

Private Attributes

bool m_bAcceptDrops
 
bool m_bCtrlPressed
 
bool m_bHaveUnreadedHighlightedMessages
 
bool m_bHaveUnreadedMessages
 
bool m_bMouseIsDown
 
bool m_bPostedPaintEventPending
 
bool m_bShiftPressed
 
bool m_bSkipScrollBarRepaint
 
bool m_bUseRealBold
 
QMultiHash< KviIrcViewLine *, KviAnimatedPixmap * > m_hAnimatedSmiles
 
int m_iFlushTimer
 
float m_iFontCharacterWidth [256]
 
int m_iFontDescent
 
int m_iFontLineSpacing
 
int m_iFontLineVMargin
 
int m_iIconSideSpacing
 
int m_iIconWidth
 
int m_iLastLinkRectHeight
 
int m_iLastLinkRectTop
 
qint64 m_iLastMouseClickTime
 
int m_iLastScrollBarValue
 
int m_iMaxLines
 
int m_iMinimumPaintWidth
 
int m_iMouseTimer
 
int m_iNumLines
 
int m_iRelativePixmapY
 
int m_iSelectionEndCharIndex
 
int m_iSelectionInitCharIndex
 
int m_iSelectTimer
 
int m_iUnprocessedPaintEventRequests
 
int m_iWrapMargin
 
QRect m_lineMarkArea
 
KviIrcViewLinem_pCurLine
 
KviIrcViewLinem_pCursorLine
 
KviIrcViewLinem_pFirstLine
 
QFontMetricsF * m_pFm
 
KviMainWindowm_pFrm
 
KviWindowm_pKviWindow
 
QMouseEvent * m_pLastEvent
 
KviIrcViewLinem_pLastLine
 
KviIrcViewWrappedBlockm_pLastLinkUnderMouse
 
QFile * m_pLogFile
 
KviIrcViewm_pMasterView
 
std::vector< KviIrcViewLine * > m_pMessagesStoppedWhileSelecting
 
QPixmap * m_pPrivateBackgroundPixmap
 
QScrollBar * m_pScrollBar
 
KviIrcViewLinem_pSelectionEndLine
 
KviIrcViewLinem_pSelectionInitLine
 
QToolButton * m_pToolsButton
 
QMenu * m_pToolsPopup
 
KviIrcViewToolTipm_pToolTip
 
KviIrcViewToolWidgetm_pToolWidget
 
KviIrcViewWrappedBlockSelectionInfom_pWrappedBlockSelectionInfo
 
unsigned int m_uLineMarkLineIndex
 
unsigned int m_uNextLineIndex
 

Friends

class KviIrcViewToolTip
 
class KviIrcViewToolWidget
 

Member Enumeration Documentation

◆ AppendTextFlags

Enumerator
NoRepaint 
NoTimestamp 
SetLineMark 
TriggersNotification 

Constructor & Destructor Documentation

◆ KviIrcView()

KviIrcView::KviIrcView ( QWidget *  parent,
KviWindow pWnd 
)

◆ ~KviIrcView()

KviIrcView::~KviIrcView ( )

Member Function Documentation

◆ add2Log()

void KviIrcView::add2Log ( const QString &  szBuffer,
const QDateTime &  date,
int  iMsgType,
bool  bPrependDate 
)

◆ addControlCharacter()

void KviIrcView::addControlCharacter ( KviIrcViewLineChunk pC,
QString &  szSelectionText 
)
private

◆ animatedIconChange

void KviIrcView::animatedIconChange ( )
protectedslot

Referenced by getTextLine().

◆ appendLine()

void KviIrcView::appendLine ( KviIrcViewLine ptr,
const QDateTime &  date,
bool  bRepaint 
)
private

◆ appendMessagesFrom()

void KviIrcView::appendMessagesFrom ( KviIrcView v)

◆ appendText()

void KviIrcView::appendText ( int  msg_type,
const kvi_wchar_t data_ptr,
int  iFlags = 0,
const QDateTime &  datetime = QDateTime() 
)

◆ applyOptions()

void KviIrcView::applyOptions ( )

◆ calculateLineWraps()

void KviIrcView::calculateLineWraps ( KviIrcViewLine ptr,
int  maxWidth 
)
private

◆ checkMarkerArea()

bool KviIrcView::checkMarkerArea ( const QPoint &  mousePos)
private

References m_lineMarkArea.

Referenced by maybeTip(), mouseMoveEvent(), and mousePressEvent().

◆ checkSelectionBlock()

bool KviIrcView::checkSelectionBlock ( KviIrcViewLine line,
int  bufIndex 
)
private

◆ chooseBackground

void KviIrcView::chooseBackground ( )
slot

◆ chooseFont

void KviIrcView::chooseFont ( )
slot

COMPILE_ON_MAC

COMPILE_ON_MAC

References __tr, f, and setFont().

Referenced by showToolsPopup().

◆ clearBuffer

void KviIrcView::clearBuffer ( )
slot

◆ clearLineMark()

void KviIrcView::clearLineMark ( bool  bRepaint = false)

◆ clearUnreaded()

void KviIrcView::clearUnreaded ( )

◆ console()

KviConsoleWindow * KviIrcView::console ( )

◆ decreaseFontSize

void KviIrcView::decreaseFontSize ( )
slot

References f, p, and setFont().

Referenced by showToolsPopup(), and KviInputEditor::zoomOut().

◆ dndEntered

void KviIrcView::dndEntered ( )
signal

Referenced by dragEnterEvent().

◆ doLinkToolTip()

void KviIrcView::doLinkToolTip ( const QRect &  rct,
QString &  linkCmd,
QString &  linkText 
)
private

Referenced by maybeTip().

◆ doMarkerToolTip()

void KviIrcView::doMarkerToolTip ( )
private

◆ dragEnterEvent()

void KviIrcView::dragEnterEvent ( QDragEnterEvent *  e)
overrideprotected

References dndEntered(), e, and m_bAcceptDrops.

◆ dropEvent()

void KviIrcView::dropEvent ( QDropEvent *  e)
overrideprotected

References e, fileDropped(), and m_bAcceptDrops.

◆ dummyRead()

int KviIrcView::dummyRead ( ) const
inline

◆ emptyBuffer()

void KviIrcView::emptyBuffer ( bool  bRepaint = true)

References m_pLastLine, and removeHeadLine().

Referenced by clearBuffer(), and ~KviIrcView().

◆ enableDnd()

void KviIrcView::enableDnd ( bool  bEnable)

◆ ensureLineVisible()

void KviIrcView::ensureLineVisible ( KviIrcViewLine pLineToShow)
private

◆ event()

bool KviIrcView::event ( QEvent *  e)
overrideprotected

◆ fastScroll()

void KviIrcView::fastScroll ( int  lines = 1)
private

◆ fileDropped

void KviIrcView::fileDropped ( const QString &  )
signal

Referenced by dropEvent().

◆ findNext()

void KviIrcView::findNext ( const QString &  szText,
bool  bCaseS = false,
bool  bRegExp = false,
bool  bExtended = false 
)

◆ findPrev()

void KviIrcView::findPrev ( const QString &  szText,
bool  bCaseS = false,
bool  bRegExp = false,
bool  bExtended = false 
)

◆ flushLog

void KviIrcView::flushLog ( )
slot

◆ getLinkEscapeCommand()

void KviIrcView::getLinkEscapeCommand ( QString &  buffer,
const QString &  escape_cmd,
const QString &  escape_label 
)
private

◆ getLinkUnderMouse()

KviIrcViewWrappedBlock * KviIrcView::getLinkUnderMouse ( int  xPos,
int  yPos,
QRect *  pRect = nullptr,
QString *  linkCmd = nullptr,
QString *  linkText = nullptr 
)
private

◆ getLogFileName()

void KviIrcView::getLogFileName ( QString &  buffer)

References m_pLogFile.

Referenced by log_kvs_fnc_file().

◆ getPaintOnScreen()

bool KviIrcView::getPaintOnScreen ( ) const
inline

◆ getPrivateBackgroundPixmap()

QPixmap * KviIrcView::getPrivateBackgroundPixmap ( ) const
inline

◆ getTextBuffer()

void KviIrcView::getTextBuffer ( QString &  buffer)

◆ getTextLine()

const kvi_wchar_t * KviIrcView::getTextLine ( int  msg_type,
const kvi_wchar_t data_ptr,
KviIrcViewLine line_ptr,
bool  bEnableTimeStamp = true,
const QDateTime &  datetime = QDateTime() 
)
private

References KviMemory::allocate(), animatedIconChange(), KviTextIcon::animatedPixmap(), APPEND_LAST_TEXT_BLOCK, APPEND_LAST_TEXT_BLOCK_HIDDEN_FROM_NOW, APPEND_ZERO_LENGTH_BLOCK, KviControlCodes::ArbitraryBreak, KviIrcViewLineChunk::back, begin(), KviControlCodes::Bold, KviWindow::Channel, KviIrcViewLineChunk::colors, connect(), KviWindow::connection(), KviMemory::copy(), KviIrcConnection::currentNickName(), KviIrcViewLineChunk::customFore, e, KviControlCodes::Escape, KviIrcViewLineChunk::fore, g_pTextIconManager, KviControlCodes::getColorBytesW(), i, KviControlCodes::Icon, KviControlCodes::Italic, KviIrcViewLineChunk::iTextLen, KviIrcViewLineChunk::iTextStart, KVI_COLOR_CUSTOM, KVI_COLOR_OWN, KVI_OPTION_BOOL, KVI_OPTION_MSGTYPE, KVI_OPTION_STRING, KVI_OPTION_UINT, KVI_OUT_ACTION, KVI_OUT_ACTIONCRYPTED, KVI_OUT_CHANNELNOTICE, KVI_OUT_CHANNELNOTICECRYPTED, KVI_OUT_CHANPRIVMSG, KVI_OUT_CHANPRIVMSGCRYPTED, KVI_OUT_DCCCHATMSG, KVI_OUT_HIGHLIGHT, KVI_OUT_OWNACTION, KVI_OUT_OWNACTIONCRYPTED, KVI_OUT_OWNPRIVMSG, KVI_OUT_OWNPRIVMSGCRYPTED, KVI_OUT_QUERYNOTICE, KVI_OUT_QUERYNOTICECRYPTED, KVI_OUT_QUERYPRIVMSG, KVI_OUT_QUERYPRIVMSGCRYPTED, KVI_OUT_URL, KviEvent_OnURL, KviOption_boolColorNicks, KviOption_boolDrawEmoticons, KviOption_boolIrcViewTimestamp, KviOption_boolIrcViewTimestampUTC, KviOption_boolIrcViewUrlHighlighting, KviOption_boolUseSpecialColorForTimestamp, KviOption_boolUseUserListColorsAsNickColors, KviOption_stringIrcViewTimestampFormat, KviOption_uintTimeStampBackground, KviOption_uintTimeStampForeground, KVS_TRIGGER_EVENT_1, KviTextIconManager::lookupTextIcon(), m_hAnimatedSmiles, m_pKviWindow, NEW_LINE_CHUNK, KviControlCodes::NoChange, nullptr, p, KviIrcViewLine::pChunks, KviWindow::Query, KviMemory::reallocate(), KviControlCodes::Reset, KviControlCodes::Reverse, skip_to_end_of_url(), KviIrcViewLineChunk::szPayload, KviIrcViewLineChunk::szSmileId, KviIrcViewLine::szText, KviIrcViewLineChunk::type, KviWindow::type(), KviIrcViewLine::uChunkCount, KviControlCodes::Underline, KviControlCodes::UnEscape, KviControlCodes::UnIcon, and url_compare_helper().

Referenced by appendText().

◆ getVisibleCharIndexAt()

int KviIrcView::getVisibleCharIndexAt ( KviIrcViewLine line,
int  xPos,
int  yPos 
)
private

◆ getVisibleLineAt()

KviIrcViewLine * KviIrcView::getVisibleLineAt ( int  yPos)
private

◆ hasLineMark()

bool KviIrcView::hasLineMark ( )
inline

◆ hasPrivateBackgroundPixmap()

bool KviIrcView::hasPrivateBackgroundPixmap ( )
inline

◆ haveUnreadedHighlightedMessages()

bool KviIrcView::haveUnreadedHighlightedMessages ( )
inline

◆ haveUnreadedMessages()

bool KviIrcView::haveUnreadedMessages ( )
inline

◆ increaseFontSize

void KviIrcView::increaseFontSize ( )
slot

References f, and setFont().

Referenced by showToolsPopup(), and KviInputEditor::zoomIn().

◆ isLogging()

bool KviIrcView::isLogging ( )
inline

◆ joinMessagesFrom()

void KviIrcView::joinMessagesFrom ( KviIrcView v)

◆ keyPressEvent()

void KviIrcView::keyPressEvent ( QKeyEvent *  e)
overrideprotected

References e, nextPage(), and prevPage().

◆ lastLineOfText()

const QString & KviIrcView::lastLineOfText ( )

◆ lastMessageText()

const QString & KviIrcView::lastMessageText ( )

◆ lastMouseClickTime()

qint64 KviIrcView::lastMouseClickTime ( ) const
inline

◆ leaveEvent()

void KviIrcView::leaveEvent ( QEvent *  )
overrideprotected

References m_pLastLinkUnderMouse.

◆ masterDead

void KviIrcView::masterDead ( )
protectedslot

References m_pMasterView.

Referenced by setMasterView().

◆ maxBufferSize()

int KviIrcView::maxBufferSize ( )
inline

◆ maybeTip()

void KviIrcView::maybeTip ( const QPoint &  pnt)
protected

◆ messageShouldGoToMessageView()

bool KviIrcView::messageShouldGoToMessageView ( int  iMsgType)

◆ mouseDoubleClickEvent()

void KviIrcView::mouseDoubleClickEvent ( QMouseEvent *  e)
overrideprotected

◆ mouseMoveEvent()

void KviIrcView::mouseMoveEvent ( QMouseEvent *  e)
overrideprotected

◆ mousePressEvent()

void KviIrcView::mousePressEvent ( QMouseEvent *  e)
overrideprotected

◆ mouseReleaseEvent()

void KviIrcView::mouseReleaseEvent ( QMouseEvent *  e)
overrideprotected

◆ nextLine()

void KviIrcView::nextLine ( )

References m_pScrollBar.

Referenced by mouseMoveEvent(), and KviInputEditor::nextLine().

◆ nextPage()

void KviIrcView::nextPage ( )

References m_pScrollBar.

Referenced by keyPressEvent(), and KviInputEditor::nextPage().

◆ paintEvent()

void KviIrcView::paintEvent ( QPaintEvent *  p)
overrideprotected

References KviTextIcon::animatedPixmap(), KviIrcViewLineChunk::back, KviControlCodes::Black, KviIrcViewWrappedBlock::block_len, KviIrcViewWrappedBlock::block_start, KviIrcViewWrappedBlock::block_width, KviControlCodes::Bold, calculateLineWraps(), checkSelectionBlock(), KviIrcViewLineChunk::colors, KviIrcViewLineChunk::customFore, DRAW_NORMAL_TEXT, DRAW_SELECTED_TEXT, KviPixmapUtils::drawPixmapWithPainter(), KviControlCodes::Escape, KviIrcViewLineChunk::fore, g_pApp, g_pIconManager, g_pMainWindow, g_pTextIconManager, getMircColor(), KviIconManager::getSmallIcon(), KviIconManager::Help, i, KviIrcViewLine::iBlockCount, KviControlCodes::Icon, KviIrcViewLine::iMaxLineWidth, KviIrcViewLine::iMsgType, KviWindow::isDocked(), KviControlCodes::Italic, KVI_DEF_BACK, KVI_EXTCOLOR_MAX, KVI_IRCVIEW_BLOCK_SELECTION_CENTRAL, KVI_IRCVIEW_BLOCK_SELECTION_ICON, KVI_IRCVIEW_BLOCK_SELECTION_LEFT, KVI_IRCVIEW_BLOCK_SELECTION_RIGHT, KVI_IRCVIEW_BLOCK_SELECTION_TOTAL, KVI_IRCVIEW_DOUBLEBORDER_WIDTH, KVI_IRCVIEW_HORIZONTAL_BORDER, KVI_IRCVIEW_PIXMAP_AND_SEPARATOR, KVI_IRCVIEW_VERTICAL_BORDER, KVI_OPTION_BOOL, KVI_OPTION_COLOR, KVI_OPTION_MSGTYPE, KVI_OPTION_PIXMAP, KVI_OPTION_UINT, KVI_OUT_LINK, KVI_OUT_SEARCH, KVI_OUT_SELECT, kvi_wstrlen(), KviOption_boolIrcViewShowImages, KviOption_boolIrcViewWrapMargin, KviOption_boolTrackLastReadTextViewLine, KviOption_boolUseCompositingForTransparency, KviOption_colorGlobalTransparencyFade, KviOption_colorIrcViewBackground, KviOption_colorIrcViewMarkLine, KviOption_pixmapIrcViewBackground, KviOption_uintGlobalTransparencyChildFadeFactor, KviOption_uintIrcViewMarkerSize, KviOption_uintIrcViewMarkerStyle, KviOption_uintIrcViewPixmapAlign, KviTextIconManager::lookupTextIcon(), m_bMouseIsDown, m_bUseRealBold, m_iFontDescent, m_iFontLineSpacing, m_iFontLineVMargin, m_iIconSideSpacing, m_iMinimumPaintWidth, m_iRelativePixmapY, m_iUnprocessedPaintEventRequests, m_iWrapMargin, m_lineMarkArea, m_pCurLine, m_pCursorLine, m_pFm, m_pKviWindow, m_pLastLinkUnderMouse, m_pPrivateBackgroundPixmap, m_pScrollBar, m_pToolWidget, m_pWrappedBlockSelectionInfo, m_uLineMarkLineIndex, KviControlCodes::NoChange, p, KviIrcViewWrappedBlockSelectionInfo::part_1_length, KviIrcViewWrappedBlockSelectionInfo::part_1_width, KviIrcViewWrappedBlockSelectionInfo::part_2_length, KviIrcViewWrappedBlockSelectionInfo::part_2_width, KviIrcViewWrappedBlockSelectionInfo::part_3_length, KviIrcViewWrappedBlockSelectionInfo::part_3_width, KviIrcViewLine::pBlocks, KviIrcViewWrappedBlock::pChunk, KviAnimatedPixmap::pixmap(), KviTextIcon::pixmap(), KviIrcViewLine::pNext, KviIrcViewLine::pPrev, r, recalcFontVariables(), KviControlCodes::Reset, KviControlCodes::Reverse, KviIrcViewWrappedBlockSelectionInfo::selection_type, SET_ANTI_ALIASING, SET_PEN, KviApplication::supportsCompositing(), KviIrcViewLineChunk::szSmileId, KviIrcViewLine::szText, KviControlCodes::Transparent, KviIrcViewLineChunk::type, KviIrcViewLine::uIndex, KviIrcViewLine::uLineWraps, KviControlCodes::Underline, KviControlCodes::UnEscape, KviIconManager::UnreadText, x, and y.

Referenced by KviIrcViewToolWidget::forceRepaint().

◆ parentKviWindow()

KviWindow * KviIrcView::parentKviWindow ( )
inline

◆ postUpdateEvent()

void KviIrcView::postUpdateEvent ( )
private

◆ prevLine()

void KviIrcView::prevLine ( )

◆ prevPage()

void KviIrcView::prevPage ( )

◆ reapplyMessageColors()

void KviIrcView::reapplyMessageColors ( )
private

◆ recalcFontVariables()

void KviIrcView::recalcFontVariables ( const QFont &  font,
const QFontInfo &  fi 
)
private

◆ removeHeadLine()

void KviIrcView::removeHeadLine ( bool  bRepaint = false)

◆ resetBackground

void KviIrcView::resetBackground ( )
slot

References setPrivateBackgroundPixmap().

Referenced by showToolsPopup().

◆ resetDefaultFont

void KviIrcView::resetDefaultFont ( )
slot

◆ resizeEvent()

void KviIrcView::resizeEvent ( QResizeEvent *  )
overrideprotected

◆ rightClicked

void KviIrcView::rightClicked ( )
signal

◆ saveBuffer()

bool KviIrcView::saveBuffer ( const char *  filename)

References f, and getTextBuffer().

◆ screenChanged

void KviIrcView::screenChanged ( QScreen *  )
protectedslot

References setFont().

Referenced by showEvent().

◆ scrollBarPositionChanged

void KviIrcView::scrollBarPositionChanged ( int  newValue)
protectedvirtualslot

◆ scrollBottom()

void KviIrcView::scrollBottom ( )

References m_pScrollBar.

Referenced by KviInputEditor::scrollBottom().

◆ scrollToMarker()

void KviIrcView::scrollToMarker ( )

◆ scrollTop()

void KviIrcView::scrollTop ( )

References m_pScrollBar.

Referenced by KviInputEditor::scrollTop().

◆ setCursorLine()

void KviIrcView::setCursorLine ( KviIrcViewLine l)
private

References ensureLineVisible(), l, and m_pCursorLine.

Referenced by findNext(), and findPrev().

◆ setFont()

void KviIrcView::setFont ( const QFont &  f)

◆ setMasterView()

void KviIrcView::setMasterView ( KviIrcView v)

◆ setMaxBufferSize()

void KviIrcView::setMaxBufferSize ( int  maxBufSize,
bool  bRepaint = true 
)

◆ setPaintOnScreen()

void KviIrcView::setPaintOnScreen ( bool  bFlag)
inline

◆ setPrivateBackgroundPixmap()

void KviIrcView::setPrivateBackgroundPixmap ( const QPixmap &  pixmap,
bool  bRepaint = true 
)

◆ showEvent()

void KviIrcView::showEvent ( QShowEvent *  e)
overrideprotected

References screenChanged().

◆ showToolsPopup

void KviIrcView::showToolsPopup ( )
slot

◆ sizeHint()

QSize KviIrcView::sizeHint ( ) const
override

◆ splitMessagesTo()

void KviIrcView::splitMessagesTo ( KviIrcView v)

◆ startLogging()

bool KviIrcView::startLogging ( const QString &  fname = QString(),
bool  bPrependCurBuffer = false 
)

◆ stopLogging()

void KviIrcView::stopLogging ( )

◆ timerEvent()

void KviIrcView::timerEvent ( QTimerEvent *  e)
overrideprotected

◆ toggleToolWidget

void KviIrcView::toggleToolWidget ( )
slot

◆ triggerMouseRelatedKvsEvents()

void KviIrcView::triggerMouseRelatedKvsEvents ( QMouseEvent *  e)
private

◆ wheelEvent()

void KviIrcView::wheelEvent ( QWheelEvent *  e)
overrideprotected

References e, g_pApp, and m_pScrollBar.

Friends And Related Symbol Documentation

◆ KviIrcViewToolTip

friend class KviIrcViewToolTip
friend

Referenced by KviIrcView().

◆ KviIrcViewToolWidget

friend class KviIrcViewToolWidget
friend

Referenced by toggleToolWidget().

Member Data Documentation

◆ m_bAcceptDrops

bool KviIrcView::m_bAcceptDrops
private

◆ m_bCtrlPressed

bool KviIrcView::m_bCtrlPressed
private

◆ m_bHaveUnreadedHighlightedMessages

bool KviIrcView::m_bHaveUnreadedHighlightedMessages
private

◆ m_bHaveUnreadedMessages

bool KviIrcView::m_bHaveUnreadedMessages
private

◆ m_bMouseIsDown

bool KviIrcView::m_bMouseIsDown
private

◆ m_bPostedPaintEventPending

bool KviIrcView::m_bPostedPaintEventPending
private

Referenced by event(), KviIrcView(), and postUpdateEvent().

◆ m_bShiftPressed

bool KviIrcView::m_bShiftPressed
private

◆ m_bSkipScrollBarRepaint

bool KviIrcView::m_bSkipScrollBarRepaint
private

◆ m_bUseRealBold

bool KviIrcView::m_bUseRealBold
private

Referenced by paintEvent(), and recalcFontVariables().

◆ m_hAnimatedSmiles

QMultiHash<KviIrcViewLine *, KviAnimatedPixmap *> KviIrcView::m_hAnimatedSmiles
private

◆ m_iFlushTimer

int KviIrcView::m_iFlushTimer
private

◆ m_iFontCharacterWidth

float KviIrcView::m_iFontCharacterWidth[256]
private

◆ m_iFontDescent

int KviIrcView::m_iFontDescent
private

◆ m_iFontLineSpacing

int KviIrcView::m_iFontLineSpacing
private

◆ m_iFontLineVMargin

int KviIrcView::m_iFontLineVMargin
private

◆ m_iIconSideSpacing

int KviIrcView::m_iIconSideSpacing
private

Referenced by paintEvent(), and recalcFontVariables().

◆ m_iIconWidth

int KviIrcView::m_iIconWidth
private

◆ m_iLastLinkRectHeight

int KviIrcView::m_iLastLinkRectHeight
private

◆ m_iLastLinkRectTop

int KviIrcView::m_iLastLinkRectTop
private

◆ m_iLastMouseClickTime

qint64 KviIrcView::m_iLastMouseClickTime
private

Referenced by KviIrcView(), and mousePressEvent().

◆ m_iLastScrollBarValue

int KviIrcView::m_iLastScrollBarValue
private

◆ m_iMaxLines

int KviIrcView::m_iMaxLines
private

◆ m_iMinimumPaintWidth

int KviIrcView::m_iMinimumPaintWidth
private

◆ m_iMouseTimer

int KviIrcView::m_iMouseTimer
private

◆ m_iNumLines

int KviIrcView::m_iNumLines
private

◆ m_iRelativePixmapY

int KviIrcView::m_iRelativePixmapY
private

Referenced by paintEvent(), and recalcFontVariables().

◆ m_iSelectionEndCharIndex

int KviIrcView::m_iSelectionEndCharIndex
private

◆ m_iSelectionInitCharIndex

int KviIrcView::m_iSelectionInitCharIndex
private

◆ m_iSelectTimer

int KviIrcView::m_iSelectTimer
private

◆ m_iUnprocessedPaintEventRequests

int KviIrcView::m_iUnprocessedPaintEventRequests
private

◆ m_iWrapMargin

int KviIrcView::m_iWrapMargin
private

◆ m_lineMarkArea

QRect KviIrcView::m_lineMarkArea
private

◆ m_pCurLine

KviIrcViewLine* KviIrcView::m_pCurLine
private

◆ m_pCursorLine

KviIrcViewLine* KviIrcView::m_pCursorLine
private

◆ m_pFirstLine

KviIrcViewLine* KviIrcView::m_pFirstLine
private

◆ m_pFm

QFontMetricsF* KviIrcView::m_pFm
private

◆ m_pFrm

KviMainWindow* KviIrcView::m_pFrm
private

◆ m_pKviWindow

KviWindow* KviIrcView::m_pKviWindow
private

◆ m_pLastEvent

QMouseEvent* KviIrcView::m_pLastEvent
private

◆ m_pLastLine

KviIrcViewLine* KviIrcView::m_pLastLine
private

◆ m_pLastLinkUnderMouse

KviIrcViewWrappedBlock* KviIrcView::m_pLastLinkUnderMouse
private

◆ m_pLogFile

QFile* KviIrcView::m_pLogFile
private

◆ m_pMasterView

KviIrcView* KviIrcView::m_pMasterView
private

◆ m_pMessagesStoppedWhileSelecting

std::vector<KviIrcViewLine *> KviIrcView::m_pMessagesStoppedWhileSelecting
private

◆ m_pPrivateBackgroundPixmap

QPixmap* KviIrcView::m_pPrivateBackgroundPixmap
private

◆ m_pScrollBar

QScrollBar* KviIrcView::m_pScrollBar
private

◆ m_pSelectionEndLine

KviIrcViewLine* KviIrcView::m_pSelectionEndLine
private

◆ m_pSelectionInitLine

KviIrcViewLine* KviIrcView::m_pSelectionInitLine
private

◆ m_pToolsButton

QToolButton* KviIrcView::m_pToolsButton
private

◆ m_pToolsPopup

QMenu* KviIrcView::m_pToolsPopup
private

Referenced by KviIrcView(), and showToolsPopup().

◆ m_pToolTip

KviIrcViewToolTip* KviIrcView::m_pToolTip
private

◆ m_pToolWidget

KviIrcViewToolWidget* KviIrcView::m_pToolWidget
private

◆ m_pWrappedBlockSelectionInfo

KviIrcViewWrappedBlockSelectionInfo* KviIrcView::m_pWrappedBlockSelectionInfo
private

◆ m_uLineMarkLineIndex

unsigned int KviIrcView::m_uLineMarkLineIndex
private

◆ m_uNextLineIndex

unsigned int KviIrcView::m_uNextLineIndex
private

Referenced by appendLine(), and KviIrcView().

Property Documentation

◆ TransparencyCapable

int KviIrcView::TransparencyCapable
read

◆ usePaintOnScreen

bool KviIrcView::usePaintOnScreen
readwrite

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