1 #ifndef _KVI_IRCVIEW_H_
2 #define _KVI_IRCVIEW_H_
31 #include <QToolButton>
55 #define KVI_IRCVIEW_INVALID_LINE_MARK_INDEX 0xffffffff
60 Q_PROPERTY(
int TransparencyCapable READ dummyRead)
62 Q_PROPERTY(
bool usePaintOnScreen READ getPaintOnScreen WRITE setPaintOnScreen)
72 int dummyRead()
const {
return 0; };
108 int m_iFontCharacterWidth[256];
152 void clearUnreaded();
154 void enableDnd(
bool bEnable);
162 TriggersNotification = 8
164 void appendText(
int msg_type,
const kvi_wchar_t * data_ptr,
int iFlags = 0,
const QDateTime & datetime = QDateTime());
165 void clearLineMark(
bool bRepaint =
false);
167 void removeHeadLine(
bool bRepaint =
false);
168 void emptyBuffer(
bool bRepaint =
true);
169 void getTextBuffer(QString & buffer);
170 void setMaxBufferSize(
int maxBufSize,
bool bRepaint =
true);
172 bool saveBuffer(
const char * filename);
173 void findNext(
const QString & szText,
bool bCaseS =
false,
bool bRegExp =
false,
bool bExtended =
false);
174 void findPrev(
const QString & szText,
bool bCaseS =
false,
bool bRegExp =
false,
bool bExtended =
false);
178 void setPrivateBackgroundPixmap(
const QPixmap & pixmap,
bool bRepaint =
true);
184 bool startLogging(
const QString & fname = QString(),
bool bPrependCurBuffer =
false);
187 void getLogFileName(QString & buffer);
188 void add2Log(
const QString &
szBuffer,
int iMsgType = 0,
bool bPrependDate =
false);
198 bool messageShouldGoToMessageView(
int iMsgType);
204 virtual QSize sizeHint()
const;
205 const QString & lastLineOfText();
206 const QString & lastMessageText();
207 virtual void setFont(
const QFont &
f);
208 void scrollToMarker();
211 virtual void paintEvent(QPaintEvent *);
212 virtual void resizeEvent(QResizeEvent *);
213 virtual void mousePressEvent(QMouseEvent *
e);
214 virtual void mouseReleaseEvent(QMouseEvent *);
215 virtual void mouseDoubleClickEvent(QMouseEvent *
e);
216 virtual void mouseMoveEvent(QMouseEvent *
e);
217 virtual void timerEvent(QTimerEvent *
e);
218 virtual void dragEnterEvent(QDragEnterEvent *
e);
219 virtual void dropEvent(QDropEvent *
e);
220 virtual bool event(QEvent *
e);
221 virtual void wheelEvent(QWheelEvent *
e);
222 virtual void keyPressEvent(QKeyEvent *
e);
223 void maybeTip(
const QPoint & pnt);
224 virtual void leaveEvent(QEvent *);
227 void triggerMouseRelatedKvsEvents(QMouseEvent *
e);
231 int getVisibleCharIndexAt(
KviIrcViewLine * line,
int xPos,
int yPos);
232 void getLinkEscapeCommand(QString & buffer,
const QString & escape_cmd,
const QString & escape_label);
234 void postUpdateEvent();
235 void fastScroll(
int lines = 1);
238 void recalcFontVariables(
const QFontMetrics & fm,
const QFontInfo & fi);
240 KviIrcViewWrappedBlock * getLinkUnderMouse(
int xPos,
int yPos, QRect * pRect = 0, QString * linkCmd = 0, QString * linkText = 0);
241 void doLinkToolTip(
const QRect & rct, QString & linkCmd, QString & linkText);
242 void doMarkerToolTip();
243 bool checkMarkerArea(
const QPoint & mousePos);
245 void reapplyMessageColors();
248 void showToolsPopup();
250 void toggleToolWidget();
251 void increaseFontSize();
252 void decreaseFontSize();
253 void resetDefaultFont();
255 void chooseBackground();
256 void resetBackground();
258 virtual void scrollBarPositionChanged(
int newValue);
260 void animatedIconChange();
264 void fileDropped(
const QString &);
267 #endif //_KVI_IRCVIEW_H_
bool m_bPostedPaintEventPending
Definition: KviIrcView.h:138
Definition: KviAnimatedPixmap.h:67
bool m_bMouseIsDown
Definition: KviIrcView.h:126
KviIrcViewLine * m_pLastLine
Definition: KviIrcView.h:80
QScrollBar * m_pScrollBar
Definition: KviIrcView.h:96
AppendTextFlags
Definition: KviIrcView.h:157
Definition: KviIrcView_private.h:108
Definition: KviMainWindow.h:60
Definition: KviConsoleWindow.h:75
KviIrcViewWrappedBlockSelectionInfo * m_pWrappedBlockSelectionInfo
Definition: KviIrcView.h:133
QMenu * m_pToolsPopup
Definition: KviIrcView.h:98
#define KVIRC_API
Definition: kvi_settings.h:128
int m_iSelectionEndCharIndex
Definition: KviIrcView.h:123
#define f
Definition: detector.cpp:70
KviIrcViewToolWidget * m_pToolWidget
Definition: KviIrcView.h:100
int m_iMaxLines
Definition: KviIrcView.h:91
int m_iLastLinkRectHeight
Definition: KviIrcView.h:88
Definition: KviIrcView_private.h:134
int maxBufferSize()
Definition: KviIrcView.h:171
#define l
Definition: detector.cpp:76
int m_iFontDescent
Definition: KviIrcView.h:107
QFontMetrics * m_pFm
Definition: KviIrcView.h:141
int m_iRelativePixmapY
Definition: KviIrcView.h:112
KviMainWindow * m_pFrm
Definition: KviIrcView.h:135
unsigned int m_uNextLineIndex
Definition: KviIrcView.h:93
kvi_u16_t kvi_wchar_t
Definition: KviCString.h:87
QPoint m_mousePressPos
Definition: KviIrcView.h:116
int m_iFontLineSpacing
Definition: KviIrcView.h:105
bool hasPrivateBackgroundPixmap()
Definition: KviIrcView.h:179
Definition: KviIrcView_private.h:100
bool hasLineMark()
Definition: KviIrcView.h:166
#define e
Definition: detector.cpp:69
bool m_bSkipScrollBarRepaint
Definition: KviIrcView.h:130
bool m_bHaveUnreadedHighlightedMessages
Definition: KviIrcView.h:146
QRect m_lineMarkArea
Definition: KviIrcView.h:83
bool getPaintOnScreen() const
Definition: KviIrcView.h:73
int m_iFontLineWidth
Definition: KviIrcView.h:106
bool haveUnreadedHighlightedMessages()
Definition: KviIrcView.h:156
KviIrcView * m_pMasterView
Definition: KviIrcView.h:140
KviIrcViewLine * m_pSelectionInitLine
Definition: KviIrcView.h:120
int m_iUnprocessedPaintEventRequests
Definition: KviIrcView.h:137
int m_iWrapMargin
Definition: KviIrcView.h:110
KviIrcViewLine * m_pCursorLine
Definition: KviIrcView.h:81
int m_iSelectionInitCharIndex
Definition: KviIrcView.h:122
int m_iNumLines
Definition: KviIrcView.h:90
Definition: KviIrcView.h:57
int m_iMinimumPaintWidth
Definition: KviIrcView.h:111
bool m_bShiftPressed
Definition: KviIrcView.h:127
#define KVI_IRCVIEW_INVALID_LINE_MARK_INDEX
Definition: KviIrcView.h:55
QMultiHash< KviIrcViewLine *, KviAnimatedPixmap * > m_hAnimatedSmiles
Definition: KviIrcView.h:149
unsigned int m_uLineMarkLineIndex
Definition: KviIrcView.h:82
int m_iLastScrollBarValue
Definition: KviIrcView.h:102
QPixmap * m_pPrivateBackgroundPixmap
Definition: KviIrcView.h:95
KviWindow * m_pKviWindow
Definition: KviIrcView.h:132
C++ Template based double linked pointer list class.
bool m_bAcceptDrops
Definition: KviIrcView.h:136
Base class for all windows in KVIrc.
Definition: KviWindow.h:74
int m_iIconSideSpacing
Definition: KviIrcView.h:114
A template double linked list of pointers.
Definition: KviPointerList.h:55
KviIrcViewWrappedBlock * m_pLastLinkUnderMouse
Definition: KviIrcView.h:86
QToolButton * m_pToolsButton
Definition: KviIrcView.h:97
KviIrcViewToolTip * m_pToolTip
Definition: KviIrcView.h:145
QFile * m_pLogFile
Definition: KviIrcView.h:134
Definition: KviIrcView_private.h:80
KviIrcViewLine * m_pFirstLine
Definition: KviIrcView.h:78
int m_iSelectTimer
Definition: KviIrcView.h:124
KviWindow * parentKviWindow()
Definition: KviIrcView.h:175
char szBuffer[4096]
Definition: winamp.cpp:77
bool m_bHaveUnreadedMessages
Definition: KviIrcView.h:147
This file contains compile time settings.
#define v
Definition: detector.cpp:86
KviIrcViewLine * m_pSelectionEndLine
Definition: KviIrcView.h:121
int m_iMouseTimer
Definition: KviIrcView.h:131
KviPointerList< KviIrcViewLine > * m_pMessagesStoppedWhileSelecting
Definition: KviIrcView.h:139
bool m_bCtrlPressed
Definition: KviIrcView.h:128
bool isLogging()
Definition: KviIrcView.h:186
bool haveUnreadedMessages()
Definition: KviIrcView.h:155
KviIrcViewLine * m_pCurLine
Definition: KviIrcView.h:79
int m_iIconWidth
Definition: KviIrcView.h:113
void setPaintOnScreen(bool bFlag)
Definition: KviIrcView.h:74
int m_iLastLinkRectTop
Definition: KviIrcView.h:87
QPoint m_mouseCurrentPos
Definition: KviIrcView.h:117
QMouseEvent * m_pLastEvent
Definition: KviIrcView.h:143