57#define KVI_IRCVIEW_INVALID_LINE_MARK_INDEX 0xffffffff
165 void appendText(
int msg_type,
const kvi_wchar_t * data_ptr,
int iFlags = 0,
const QDateTime & datetime = QDateTime());
166 void clearLineMark(
bool bRepaint =
false);
168 void removeHeadLine(
bool bRepaint =
false);
169 void emptyBuffer(
bool bRepaint =
true);
170 void getTextBuffer(QString & buffer);
171 void setMaxBufferSize(
int maxBufSize,
bool bRepaint =
true);
173 bool saveBuffer(
const char * filename);
174 void findNext(
const QString & szText,
bool bCaseS =
false,
bool bRegExp =
false,
bool bExtended =
false);
175 void findPrev(
const QString & szText,
bool bCaseS =
false,
bool bRegExp =
false,
bool bExtended =
false);
179 void setPrivateBackgroundPixmap(
const QPixmap & pixmap,
bool bRepaint =
true);
185 bool startLogging(
const QString & fname = QString(),
bool bPrependCurBuffer =
false);
188 void getLogFileName(QString & buffer);
189 void add2Log(
const QString &
szBuffer,
const QDateTime & date,
int iMsgType,
bool bPrependDate);
200 bool messageShouldGoToMessageView(
int iMsgType);
208 QSize sizeHint()
const override;
209 const QString & lastLineOfText();
210 const QString & lastMessageText();
211 void setFont(
const QFont &
f);
212 void scrollToMarker();
215 void paintEvent(QPaintEvent *)
override;
216 void resizeEvent(QResizeEvent *)
override;
217 void mousePressEvent(QMouseEvent *
e)
override;
218 void mouseReleaseEvent(QMouseEvent *)
override;
219 void mouseDoubleClickEvent(QMouseEvent *
e)
override;
220 void mouseMoveEvent(QMouseEvent *
e)
override;
221 void timerEvent(QTimerEvent *
e)
override;
222 void dragEnterEvent(QDragEnterEvent *
e)
override;
223 void dropEvent(QDropEvent *
e)
override;
224 void showEvent(QShowEvent *
e)
override;
225 bool event(QEvent *
e)
override;
226 void wheelEvent(QWheelEvent *
e)
override;
227 void keyPressEvent(QKeyEvent *
e)
override;
228 void maybeTip(
const QPoint & pnt);
229 void leaveEvent(QEvent *)
override;
232 void triggerMouseRelatedKvsEvents(QMouseEvent *
e);
236 int getVisibleCharIndexAt(
KviIrcViewLine * line,
int xPos,
int yPos);
237 void getLinkEscapeCommand(QString & buffer,
const QString & escape_cmd,
const QString & escape_label);
238 void appendLine(
KviIrcViewLine * ptr,
const QDateTime & date,
bool bRepaint);
239 void postUpdateEvent();
240 void fastScroll(
int lines = 1);
243 void recalcFontVariables(
const QFont & font,
const QFontInfo & fi);
245 KviIrcViewWrappedBlock * getLinkUnderMouse(
int xPos,
int yPos, QRect * pRect =
nullptr, QString * linkCmd =
nullptr, QString * linkText =
nullptr);
246 void doLinkToolTip(
const QRect & rct, QString & linkCmd, QString & linkText);
kvi_u16_t kvi_wchar_t
Definition KviCString.h:85
#define KVI_IRCVIEW_INVALID_LINE_MARK_INDEX
Definition KviIrcView.h:57
Definition KviAnimatedPixmap.h:70
Definition KviConsoleWindow.h:74
Definition KviIrcView.h:60
int m_iRelativePixmapY
Definition KviIrcView.h:115
void flushLog()
Definition KviIrcView_loghandling.cpp:103
void toggleToolWidget()
Definition KviIrcView.cpp:2400
unsigned int m_uNextLineIndex
Definition KviIrcView.h:95
KviIrcViewWrappedBlock * m_pLastLinkUnderMouse
Definition KviIrcView.h:88
bool usePaintOnScreen
Definition KviIrcView.h:64
QToolButton * m_pToolsButton
Definition KviIrcView.h:99
bool m_bHaveUnreadedMessages
Definition KviIrcView.h:148
int m_iMaxLines
Definition KviIrcView.h:93
KviIrcViewToolWidget * m_pToolWidget
Definition KviIrcView.h:102
void clearUnreaded()
Definition KviIrcView.cpp:499
bool m_bCtrlPressed
Definition KviIrcView.h:128
void screenChanged(QScreen *)
Definition KviIrcView.cpp:384
QMouseEvent * m_pLastEvent
Definition KviIrcView.h:143
int m_iMinimumPaintWidth
Definition KviIrcView.h:114
int m_iLastLinkRectHeight
Definition KviIrcView.h:90
void masterDead()
Definition KviIrcView_loghandling.cpp:181
int m_iWrapMargin
Definition KviIrcView.h:113
QRect m_lineMarkArea
Definition KviIrcView.h:85
bool isLogging()
Definition KviIrcView.h:187
int maxBufferSize()
Definition KviIrcView.h:172
int dummyRead() const
Definition KviIrcView.h:74
KviIrcViewLine * m_pLastLine
Definition KviIrcView.h:82
int m_iNumLines
Definition KviIrcView.h:92
int m_iFontLineVMargin
Definition KviIrcView.h:108
void chooseFont()
Definition KviIrcView.cpp:2352
bool m_bHaveUnreadedHighlightedMessages
Definition KviIrcView.h:147
bool m_bSkipScrollBarRepaint
Definition KviIrcView.h:130
bool m_bShiftPressed
Definition KviIrcView.h:127
QPixmap * m_pPrivateBackgroundPixmap
Definition KviIrcView.h:97
AppendTextFlags
Definition KviIrcView.h:159
@ NoTimestamp
Definition KviIrcView.h:161
@ NoRepaint
Definition KviIrcView.h:160
@ TriggersNotification
Definition KviIrcView.h:163
@ SetLineMark
Definition KviIrcView.h:162
QScrollBar * m_pScrollBar
Definition KviIrcView.h:98
int m_iSelectTimer
Definition KviIrcView.h:124
bool m_bAcceptDrops
Definition KviIrcView.h:136
QFile * m_pLogFile
Definition KviIrcView.h:134
KviIrcViewLine * m_pCurLine
Definition KviIrcView.h:81
KviIrcViewLine * m_pCursorLine
Definition KviIrcView.h:83
void resetBackground()
Definition KviIrcView.cpp:2394
bool m_bUseRealBold
Definition KviIrcView.h:111
std::vector< KviIrcViewLine * > m_pMessagesStoppedWhileSelecting
Definition KviIrcView.h:139
KviIrcViewLine * m_pSelectionInitLine
Definition KviIrcView.h:120
void doLinkToolTip(const QRect &rct, QString &linkCmd, QString &linkText)
virtual void scrollBarPositionChanged(int newValue)
Definition KviIrcView.cpp:561
void increaseFontSize()
Definition KviIrcView.cpp:2330
float m_iFontCharacterWidth[256]
Definition KviIrcView.h:110
bool getPaintOnScreen() const
Definition KviIrcView.h:75
KviIrcViewToolTip * m_pToolTip
Definition KviIrcView.h:146
KviWindow * parentKviWindow()
Definition KviIrcView.h:176
int m_iMouseTimer
Definition KviIrcView.h:131
bool m_bPostedPaintEventPending
Definition KviIrcView.h:138
int m_iSelectionInitCharIndex
Definition KviIrcView.h:122
QMultiHash< KviIrcViewLine *, KviAnimatedPixmap * > m_hAnimatedSmiles
Definition KviIrcView.h:150
void addControlCharacter(KviIrcViewLineChunk *pC, QString &szSelectionText)
Definition KviIrcView_events.cpp:443
int m_iFlushTimer
Definition KviIrcView.h:79
int m_iLastLinkRectTop
Definition KviIrcView.h:89
void enableDnd(bool bEnable)
Definition KviIrcView.cpp:437
unsigned int m_uLineMarkLineIndex
Definition KviIrcView.h:84
qint64 lastMouseClickTime() const
Definition KviIrcView.h:197
KviWindow * m_pKviWindow
Definition KviIrcView.h:132
void chooseBackground()
Definition KviIrcView.cpp:2367
void setPaintOnScreen(bool bFlag)
Definition KviIrcView.h:76
void animatedIconChange()
Definition KviIrcView.cpp:3092
bool checkMarkerArea(const QPoint &mousePos)
Definition KviIrcView_events.cpp:239
int m_iSelectionEndCharIndex
Definition KviIrcView.h:123
void fileDropped(const QString &)
KviIrcViewLine * m_pSelectionEndLine
Definition KviIrcView.h:121
bool haveUnreadedMessages()
Definition KviIrcView.h:156
QFontMetricsF * m_pFm
Definition KviIrcView.h:141
QPixmap * getPrivateBackgroundPixmap() const
Definition KviIrcView.h:180
void showToolsPopup()
Definition KviIrcView.cpp:2300
friend class KviIrcViewToolTip
Definition KviIrcView.h:66
bool hasPrivateBackgroundPixmap()
Definition KviIrcView.h:181
bool haveUnreadedHighlightedMessages()
Definition KviIrcView.h:157
QMenu * m_pToolsPopup
Definition KviIrcView.h:100
void applyOptions()
Definition KviIrcView.cpp:417
KviIrcView * m_pMasterView
Definition KviIrcView.h:140
int m_iIconSideSpacing
Definition KviIrcView.h:117
KviMainWindow * m_pFrm
Definition KviIrcView.h:135
void resetDefaultFont()
Definition KviIrcView.cpp:2347
KviIrcViewWrappedBlockSelectionInfo * m_pWrappedBlockSelectionInfo
Definition KviIrcView.h:133
void clearBuffer()
Definition KviIrcView.cpp:443
int m_iIconWidth
Definition KviIrcView.h:116
void doMarkerToolTip()
Definition KviIrcView_events.cpp:864
void reapplyMessageColors()
Definition KviIrcView_getTextLine.cpp:1261
KviIrcViewLine * m_pFirstLine
Definition KviIrcView.h:80
int m_iFontLineSpacing
Definition KviIrcView.h:107
int m_iFontDescent
Definition KviIrcView.h:109
bool m_bMouseIsDown
Definition KviIrcView.h:126
int m_iUnprocessedPaintEventRequests
Definition KviIrcView.h:137
int m_iLastScrollBarValue
Definition KviIrcView.h:104
bool hasLineMark()
Definition KviIrcView.h:167
friend class KviIrcViewToolWidget
Definition KviIrcView.h:67
void decreaseFontSize()
Definition KviIrcView.cpp:2337
qint64 m_iLastMouseClickTime
Definition KviIrcView.h:144
KviIrcView(QWidget *parent, KviWindow *pWnd)
Definition KviIrcView.cpp:194
int TransparencyCapable
Definition KviIrcView.h:62
Definition KviMainWindow.h:58
Base class for all windows in KVIrc.
Definition KviWindow.h:75
#define e
Definition detector.cpp:70
#define l
Definition detector.cpp:77
#define v
Definition detector.cpp:87
#define f
Definition detector.cpp:71
This file contains compile time settings.
#define KVIRC_API
Definition kvi_settings.h:127
Definition KviIrcView_private.h:81
Definition KviIrcView_private.h:109
Definition KviIrcView_private.h:135
Definition KviIrcView_private.h:101
char szBuffer[4096]
Definition winamp.cpp:77