Quassel IRC  Pre-Release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
ChatMonitorView Class Reference

#include </tmp/quassel/src/qtui/chatmonitorview.h>

Inheritance diagram for ChatMonitorView:
Collaboration diagram for ChatMonitorView:

Public Slots

virtual void clear ()
void zoomIn ()
void zoomOut ()
void zoomOriginal ()
void setMarkerLineVisible (bool visible=true)
void setMarkerLine (MsgId msgId)
void jumpToMarkerLine (bool requestBacklog)

Public Member Functions

 ChatMonitorView (ChatMonitorFilter *filter, QWidget *parent)
virtual MsgId lastMsgId () const
virtual MsgId lastVisibleMsgId () const
AbstractBufferContainerbufferContainer () const
void setBufferContainer (AbstractBufferContainer *c)
ChatScenescene () const
QSet< ChatLine * > visibleChatLines (Qt::ItemSelectionMode mode=Qt::ContainsItemBoundingRect) const
 Return a set of ChatLines currently visible in the view.
QList< ChatLine * > visibleChatLinesSorted (Qt::ItemSelectionMode mode=Qt::ContainsItemBoundingRect) const
 Return a sorted list of ChatLines currently visible in the view.
ChatLinelastVisibleChatLine (bool ignoreDayChange=false) const
 Return the last fully visible ChatLine in this view.
void setHasCache (ChatLine *line, bool hasCache=true)
 Tell the view that this ChatLine has cached data.

Protected Slots

virtual void verticalScrollbarChanged (int)

Protected Member Functions

virtual void addActionsToMenu (QMenu *menu, const QPointF &pos)
virtual void mouseDoubleClickEvent (QMouseEvent *event)
ChatMonitorFilterfilter () const
virtual bool event (QEvent *event)
virtual void resizeEvent (QResizeEvent *event)
virtual void scrollContentsBy (int dx, int dy)

Private Slots

void showFieldsChanged (bool checked)
void showSettingsPage ()
virtual void coreConnectionStateChanged (bool connected)

Private Attributes

ChatMonitorFilter_filter

Detailed Description

Definition at line 28 of file chatmonitorview.h.

Constructor & Destructor Documentation

Member Function Documentation

void showFieldsChanged ( bool  checked)
privateslot
void showSettingsPage ( )
privateslot

Definition at line 112 of file chatmonitorview.cpp.

Referenced by addActionsToMenu().

void coreConnectionStateChanged ( bool  connected)
privatevirtualslot

Definition at line 121 of file chatmonitorview.cpp.

References _filter, Client::ignoreListManager(), and ChatView::invalidateFilter().

Referenced by ChatMonitorView().

ChatMonitorFilter* filter ( ) const
inlineprotected

Definition at line 45 of file chatmonitorview.h.

References _filter.

Referenced by AwayLogView::addActionsToMenu().

MsgId lastMsgId ( ) const
virtualinherited

Implements AbstractChatView.

Definition at line 229 of file chatview.cpp.

References ChatScene::model(), MessageModel::MsgIdRole, and ChatView::scene().

Referenced by BufferWidget::currentChanged().

MsgId lastVisibleMsgId ( ) const
virtualinherited

Definition at line 242 of file chatview.cpp.

References ChatView::lastVisibleChatLine(), and ChatLine::msgId().

Referenced by BufferWidget::currentChanged().

AbstractBufferContainer* bufferContainer ( ) const
inlineinherited

Definition at line 47 of file chatview.h.

References ChatView::_bufferContainer.

Referenced by ChatView::addActionsToMenu().

void setBufferContainer ( AbstractBufferContainer c)
inlineinherited

Definition at line 48 of file chatview.h.

References ChatView::_bufferContainer.

Referenced by BufferWidget::createChatView().

QSet< ChatLine * > visibleChatLines ( Qt::ItemSelectionMode  mode = Qt::ContainsItemBoundingRect) const
inherited

Return a set of ChatLines currently visible in the view.

Parameters
modeHow partially visible ChatLines are handled
Returns
A set of visible ChatLines

Definition at line 260 of file chatview.cpp.

Referenced by ChatView::lastVisibleChatLine(), and ChatView::visibleChatLinesSorted().

QList< ChatLine * > visibleChatLinesSorted ( Qt::ItemSelectionMode  mode = Qt::ContainsItemBoundingRect) const
inherited

Return a sorted list of ChatLines currently visible in the view.

Parameters
modeHow partially visible ChatLines are handled
Returns
A list of visible ChatLines sorted by row
Note
If the order of ChatLines does not matter, use visibleChatLines() instead

Definition at line 272 of file chatview.cpp.

References chatLinePtrLessThan(), and ChatView::visibleChatLines().

ChatLine * lastVisibleChatLine ( bool  ignoreDayChange = false) const
inherited

Return the last fully visible ChatLine in this view.

Using this method more efficient than calling visibleChatLinesSorted() and taking its last element.

Returns
The last fully visible ChatLine in the view

Definition at line 280 of file chatview.cpp.

References ChatScene::chatLine(), ChatScene::model(), ChatLine::msgType(), ChatLine::row(), ChatView::scene(), and ChatView::visibleChatLines().

Referenced by ChatView::lastVisibleMsgId(), and BufferWidget::setMarkerLine().

void setHasCache ( ChatLine line,
bool  hasCache = true 
)
inherited

Tell the view that this ChatLine has cached data.

ChatLines cache some layout data that should be cleared as soon as it's no longer visible. A ChatLine caching data registers itself with this method to tell the view about it. The view will call ChatLine::clearCache() when appropriate.

Parameters
lineThe ChatLine having cached data

Definition at line 393 of file chatview.cpp.

References ChatView::_linesWithCache.

Referenced by ChatItem::layout(), and ChatLine::~ChatLine().

virtual void clear ( )
inlinevirtualslotinherited

Definition at line 83 of file chatview.h.

void zoomIn ( )
slotinherited
void zoomOut ( )
slotinherited
void zoomOriginal ( )
slotinherited
void setMarkerLineVisible ( bool  visible = true)
slotinherited

Definition at line 304 of file chatview.cpp.

References ChatView::scene(), and ChatScene::setMarkerLineVisible().

Referenced by BufferWidget::currentChanged().

void setMarkerLine ( MsgId  msgId)
slotinherited

Definition at line 310 of file chatview.cpp.

References ChatView::scene(), and ChatScene::singleBufferId().

void jumpToMarkerLine ( bool  requestBacklog)
slotinherited

Definition at line 330 of file chatview.cpp.

References ChatScene::jumpToMarkerLine(), and ChatView::scene().

Referenced by BufferWidget::jumpToMarkerLine().

bool event ( QEvent *  event)
protectedvirtualinherited
void resizeEvent ( QResizeEvent *  event)
protectedvirtualinherited
void scrollContentsBy ( int  dx,
int  dy 
)
protectedvirtualinherited

Definition at line 386 of file chatview.cpp.

References ChatView::checkChatLineCaches().

void verticalScrollbarChanged ( int  newPos)
protectedvirtualslotinherited

Definition at line 206 of file chatview.cpp.

References ChatView::_lastScrollbarPos, ChatScene::requestBacklog(), and ChatView::scene().

Referenced by ChatView::init().

Member Data Documentation

ChatMonitorFilter* _filter
private

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