#include <chatwidget.h>
Definition at line 41 of file chatwidget.h.
◆ AutoScrollDirection
◆ SelectionMode
◆ ChatWidget()
| ChatWidget::ChatWidget |
( |
IChatLog & |
chatLog, |
|
|
const Core & |
core, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
|
explicit |
◆ ~ChatWidget()
| ChatWidget::~ChatWidget |
( |
| ) |
|
|
virtual |
◆ calculateSceneRect()
| QRectF ChatWidget::calculateSceneRect |
( |
| ) |
const |
|
protected |
◆ checkVisibility()
| void ChatWidget::checkVisibility |
( |
| ) |
|
|
protected |
◆ clear()
| void ChatWidget::clear |
( |
| ) |
|
◆ clearSelection()
| void ChatWidget::clearSelection |
( |
| ) |
|
◆ copySelectedText()
| void ChatWidget::copySelectedText |
( |
bool |
toSelectionBuffer = false | ) |
const |
◆ disableSearchText()
| void ChatWidget::disableSearchText |
( |
| ) |
|
|
private |
◆ findLineByPosY()
◆ firstVisibleLineChanged
◆ focusInEvent()
| void ChatWidget::focusInEvent |
( |
QFocusEvent * |
ev | ) |
|
|
finalprotected |
◆ focusOutEvent()
| void ChatWidget::focusOutEvent |
( |
QFocusEvent * |
ev | ) |
|
|
finalprotected |
◆ fontChanged()
| void ChatWidget::fontChanged |
( |
const QFont & |
font | ) |
|
◆ forceRelayout
| void ChatWidget::forceRelayout |
( |
| ) |
|
|
slot |
◆ getContentFromGlobalPos()
Finds the chat line object at a position on screen.
- Parameters
-
| pos | Position on screen in global coordinates |
- See also
- getContentFromPos()
Definition at line 702 of file chatwidget.cpp.
◆ getContentFromPos()
◆ getSelectedText()
| QString ChatWidget::getSelectedText |
( |
| ) |
const |
◆ getVisibleRect()
| QRect ChatWidget::getVisibleRect |
( |
| ) |
const |
|
protected |
◆ handleMultiClickEvent()
| void ChatWidget::handleMultiClickEvent |
( |
| ) |
|
|
private |
◆ handleSearchResult
◆ hasTextToBeCopied()
| bool ChatWidget::hasTextToBeCopied |
( |
| ) |
const |
◆ hideEvent()
| void ChatWidget::hideEvent |
( |
QHideEvent * |
event | ) |
|
|
finalprotected |
◆ insertChatlines()
◆ isActiveFileTransfer()
◆ isEmpty()
| bool ChatWidget::isEmpty |
( |
| ) |
const |
◆ isOverSelection()
| bool ChatWidget::isOverSelection |
( |
QPointF |
scenePos | ) |
const |
|
protected |
◆ jumpToDate()
| void ChatWidget::jumpToDate |
( |
QDate |
date | ) |
|
◆ jumpToIdx()
◆ layout()
| void ChatWidget::layout |
( |
int |
start, |
|
|
int |
end, |
|
|
qreal |
width |
|
) |
| |
|
protected |
◆ messageNotFoundShow
◆ mouseDoubleClickEvent()
| void ChatWidget::mouseDoubleClickEvent |
( |
QMouseEvent * |
ev | ) |
|
|
finalprotected |
◆ mouseMoveEvent()
| void ChatWidget::mouseMoveEvent |
( |
QMouseEvent * |
ev | ) |
|
|
finalprotected |
◆ mousePressEvent()
| void ChatWidget::mousePressEvent |
( |
QMouseEvent * |
ev | ) |
|
|
finalprotected |
◆ mouseReleaseEvent()
| void ChatWidget::mouseReleaseEvent |
( |
QMouseEvent * |
ev | ) |
|
|
finalprotected |
◆ moveMultiSelectionDown()
| void ChatWidget::moveMultiSelectionDown |
( |
int |
offset | ) |
|
|
private |
◆ moveMultiSelectionUp()
| void ChatWidget::moveMultiSelectionUp |
( |
int |
offset | ) |
|
|
private |
◆ movePreciseSelectionDown()
| void ChatWidget::movePreciseSelectionDown |
( |
int |
offset | ) |
|
|
private |
◆ movePreciseSelectionUp()
| void ChatWidget::movePreciseSelectionUp |
( |
int |
offset | ) |
|
|
private |
◆ moveSelectionRectDownIfSelected()
| void ChatWidget::moveSelectionRectDownIfSelected |
( |
int |
offset | ) |
|
|
private |
◆ moveSelectionRectUpIfSelected()
| void ChatWidget::moveSelectionRectUpIfSelected |
( |
int |
offset | ) |
|
|
private |
◆ needsToHideName()
| bool ChatWidget::needsToHideName |
( |
ChatLogIdx |
idx, |
|
|
bool |
prevIdxRendered |
|
) |
| const |
|
private |
Determine if the name at the given idx needs to be hidden.
- Parameters
-
| idx | ChatLogIdx of the message |
| prevIdxRendered | Hint if the previous index is going to be rendered at all. If the previous line is not rendered we always show the name |
- Returns
- True if the name should be hidden, false otherwise
Definition at line 1461 of file chatwidget.cpp.
◆ onMessageUpdated
| void ChatWidget::onMessageUpdated |
( |
ChatLogIdx |
idx | ) |
|
|
privateslot |
◆ onMultiClickTimeout
| void ChatWidget::onMultiClickTimeout |
( |
| ) |
|
|
privateslot |
◆ onRenderFinished
| void ChatWidget::onRenderFinished |
( |
| ) |
|
|
privateslot |
◆ onScrollValueChanged
| void ChatWidget::onScrollValueChanged |
( |
int |
value | ) |
|
|
privateslot |
◆ onSearchDown
| void ChatWidget::onSearchDown |
( |
const QString & |
phrase, |
|
|
const ParameterSearch & |
parameter |
|
) |
| |
|
slot |
◆ onSearchUp
| void ChatWidget::onSearchUp |
( |
const QString & |
phrase, |
|
|
const ParameterSearch & |
parameter |
|
) |
| |
|
slot |
◆ onSelectionTimerTimeout
| void ChatWidget::onSelectionTimerTimeout |
( |
| ) |
|
|
privateslot |
◆ onWorkerTimeout
| void ChatWidget::onWorkerTimeout |
( |
| ) |
|
|
privateslot |
◆ reloadTheme
| void ChatWidget::reloadTheme |
( |
| ) |
|
|
slot |
◆ removeLines()
◆ removeSearchPhrase
| void ChatWidget::removeSearchPhrase |
( |
| ) |
|
|
slot |
◆ renderFile()
| void ChatWidget::renderFile |
( |
QString |
displayName, |
|
|
ToxFile |
file, |
|
|
bool |
isSelf, |
|
|
QDateTime |
timestamp, |
|
|
ChatLine::Ptr & |
chatMessage |
|
) |
| |
|
private |
◆ renderFinished
| void ChatWidget::renderFinished |
( |
| ) |
|
|
signal |
◆ renderItem()
| void ChatWidget::renderItem |
( |
const ChatLogItem & |
item, |
|
|
bool |
hideName, |
|
|
bool |
colorizeNames, |
|
|
ChatLine::Ptr & |
chatMessage |
|
) |
| |
|
private |
◆ renderMessage
◆ renderMessages
◆ resizeEvent()
| void ChatWidget::resizeEvent |
( |
QResizeEvent * |
ev | ) |
|
|
finalprotected |
◆ retranslateUi()
| void ChatWidget::retranslateUi |
( |
| ) |
|
|
private |
◆ scrollContentsBy()
| void ChatWidget::scrollContentsBy |
( |
int |
dx, |
|
|
int |
dy |
|
) |
| |
|
finalprotected |
◆ scrollToBottom()
| void ChatWidget::scrollToBottom |
( |
| ) |
|
|
protected |
◆ scrollToLine()
◆ selectAll()
| void ChatWidget::selectAll |
( |
| ) |
|
◆ selectionChanged
| void ChatWidget::selectionChanged |
( |
| ) |
|
|
signal |
◆ setColorizedNames()
| void ChatWidget::setColorizedNames |
( |
bool |
enable | ) |
|
|
inline |
◆ setRenderedWindowEnd
| void ChatWidget::setRenderedWindowEnd |
( |
ChatLogIdx |
end | ) |
|
|
privateslot |
◆ setRenderedWindowStart
| void ChatWidget::setRenderedWindowStart |
( |
ChatLogIdx |
start | ) |
|
|
privateslot |
◆ setTypingNotification()
| void ChatWidget::setTypingNotification |
( |
| ) |
|
|
private |
◆ setTypingNotificationName()
| void ChatWidget::setTypingNotificationName |
( |
const QString & |
displayName | ) |
|
◆ setTypingNotificationVisible()
| void ChatWidget::setTypingNotificationVisible |
( |
bool |
visible | ) |
|
◆ shouldRenderMessage()
| bool ChatWidget::shouldRenderMessage |
( |
ChatLogIdx |
idx | ) |
const |
|
private |
◆ showEvent()
| void ChatWidget::showEvent |
( |
QShowEvent * |
| ) |
|
|
finalprotected |
◆ startResizeWorker()
| void ChatWidget::startResizeWorker |
( |
| ) |
|
|
protected |
◆ startSearch
| void ChatWidget::startSearch |
( |
const QString & |
phrase, |
|
|
const ParameterSearch & |
parameter |
|
) |
| |
|
slot |
◆ stickToBottom()
| bool ChatWidget::stickToBottom |
( |
| ) |
const |
|
protected |
◆ updateBusyNotification()
| void ChatWidget::updateBusyNotification |
( |
| ) |
|
|
protected |
◆ updateMultiSelectionRect()
| void ChatWidget::updateMultiSelectionRect |
( |
| ) |
|
|
protected |
◆ updateSceneRect()
| void ChatWidget::updateSceneRect |
( |
| ) |
|
|
protected |
◆ updateTypingNotification()
| void ChatWidget::updateTypingNotification |
( |
| ) |
|
|
protected |
◆ useableWidth()
| qreal ChatWidget::useableWidth |
( |
| ) |
const |
|
protected |
◆ wheelEvent()
| void ChatWidget::wheelEvent |
( |
QWheelEvent * |
event | ) |
|
|
finalprotected |
◆ busyNotification
◆ busyScene
| QGraphicsScene* ChatWidget::busyScene = nullptr |
|
private |
◆ chatLineStorage
◆ chatLog
◆ clickCount
| int ChatWidget::clickCount = 0 |
|
private |
◆ clickPos
| QPointF ChatWidget::clickPos |
|
private |
◆ colorizeNames
| bool ChatWidget::colorizeNames = false |
|
private |
◆ copyAction
| QAction* ChatWidget::copyAction = nullptr |
|
private |
◆ core
| const Core& ChatWidget::core |
|
private |
◆ lastClickButton
| Qt::MouseButton ChatWidget::lastClickButton |
|
private |
◆ lastClickPos
| QPoint ChatWidget::lastClickPos |
|
private |
◆ lineSpacing
| qreal ChatWidget::lineSpacing = 5.0f |
|
private |
◆ margins
| QMargins ChatWidget::margins = QMargins(10, 10, 10, 10) |
|
private |
◆ multiClickTimer
| QTimer* ChatWidget::multiClickTimer = nullptr |
|
private |
◆ renderCompletionFns
| std::vector<std::function<void(void)> > ChatWidget::renderCompletionFns |
|
private |
◆ repNameAfter
| const uint ChatWidget::repNameAfter = 5 * 60 |
◆ scene
| QGraphicsScene* ChatWidget::scene = nullptr |
|
private |
◆ scrollMonitoringEnabled
| bool ChatWidget::scrollMonitoringEnabled = true |
|
private |
◆ searchPos
◆ selClickedCol
| int ChatWidget::selClickedCol = -1 |
|
private |
◆ selClickedRow
◆ selectAllAction
| QAction* ChatWidget::selectAllAction = nullptr |
|
private |
◆ selectionMode
◆ selectionRectColor
◆ selectionScrollDir
◆ selectionTimer
| QTimer* ChatWidget::selectionTimer = nullptr |
|
private |
◆ selFirstRow
◆ selGraphItem
| QGraphicsRectItem* ChatWidget::selGraphItem = nullptr |
|
private |
◆ selLastRow
◆ typingNotification
◆ visibleLines
◆ workerAnchorLine
◆ workerLastIndex
| size_t ChatWidget::workerLastIndex = 0 |
|
private |
◆ workerStb
| bool ChatWidget::workerStb = false |
|
private |
◆ workerTimer
| QTimer* ChatWidget::workerTimer = nullptr |
|
private |
The documentation for this class was generated from the following files: