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

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

Collaboration diagram for ChatViewSearchController:

Public Slots

void setSearchString (const QString &searchString)
void setCaseSensitive (bool caseSensitive)
void setSearchSenders (bool searchSenders)
void setSearchMsgs (bool searchMsgs)
void setSearchOnlyRegularMsgs (bool searchOnlyRegularMsgs)
void highlightNext ()
void highlightPrev ()

Signals

void newCurrentHighlight (QGraphicsItem *highlightItem)

Public Member Functions

 ChatViewSearchController (QObject *parent=0)
const QString & searchString () const
void setScene (ChatScene *scene)

Private Slots

void sceneDestroyed ()
void updateHighlights (bool reuse=false)
void repositionHighlights ()
void repositionHighlights (ChatLine *line)

Private Member Functions

Qt::CaseSensitivity caseSensitive () const
bool checkType (Message::Type type) const
void checkMessagesForHighlight (int start=0, int end=-1)
void highlightLine (ChatLine *line)
void updateHighlights (ChatLine *line)

Private Attributes

QString _searchString
ChatScene_scene
QList< SearchHighlightItem * > _highlightItems
int _currentHighlight
bool _caseSensitive
bool _searchSenders
bool _searchMsgs
bool _searchOnlyRegularMsgs

Detailed Description

Definition at line 37 of file chatviewsearchcontroller.h.

Constructor & Destructor Documentation

ChatViewSearchController ( QObject *  parent = 0)

Definition at line 32 of file chatviewsearchcontroller.cpp.

Member Function Documentation

const QString& searchString ( ) const
inline
void setSearchString ( const QString &  searchString)
slot

Definition at line 44 of file chatviewsearchcontroller.cpp.

References _scene, _searchString, searchString(), and updateHighlights().

void setCaseSensitive ( bool  caseSensitive)
slot
void setSearchSenders ( bool  searchSenders)
slot

Definition at line 356 of file chatviewsearchcontroller.cpp.

References _searchSenders, and updateHighlights().

Referenced by BufferWidget::BufferWidget().

void setSearchMsgs ( bool  searchMsgs)
slot

Definition at line 368 of file chatviewsearchcontroller.cpp.

References _searchMsgs, and updateHighlights().

Referenced by BufferWidget::BufferWidget().

void setSearchOnlyRegularMsgs ( bool  searchOnlyRegularMsgs)
slot

Definition at line 381 of file chatviewsearchcontroller.cpp.

References _searchOnlyRegularMsgs, and updateHighlights().

Referenced by BufferWidget::BufferWidget().

void highlightNext ( )
slot
void highlightPrev ( )
slot

Definition at line 102 of file chatviewsearchcontroller.cpp.

References _currentHighlight, _highlightItems, and newCurrentHighlight().

Referenced by updateHighlights().

void sceneDestroyed ( )
privateslot

Definition at line 333 of file chatviewsearchcontroller.cpp.

References _highlightItems, and _scene.

Referenced by setScene().

void repositionHighlights ( )
privateslot

Definition at line 285 of file chatviewsearchcontroller.cpp.

References _highlightItems.

Referenced by setScene().

void newCurrentHighlight ( QGraphicsItem *  highlightItem)
signal
Qt::CaseSensitivity caseSensitive ( ) const
inlineprivate
bool checkType ( Message::Type  type) const
inlineprivate

Definition at line 81 of file chatviewsearchcontroller.h.

Referenced by checkMessagesForHighlight(), and updateHighlights().

void checkMessagesForHighlight ( int  start = 0,
int  end = -1 
)
private

Member Data Documentation

QString _searchString
private

Definition at line 69 of file chatviewsearchcontroller.h.

Referenced by searchString(), and setSearchString().

int _currentHighlight
private

Definition at line 72 of file chatviewsearchcontroller.h.

Referenced by highlightNext(), highlightPrev(), and updateHighlights().

bool _caseSensitive
private

Definition at line 74 of file chatviewsearchcontroller.h.

Referenced by caseSensitive(), and setCaseSensitive().

bool _searchSenders
private
bool _searchMsgs
private
bool _searchOnlyRegularMsgs
private

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