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

#include </tmp/quassel/src/uisupport/tabcompleter.h>

Collaboration diagram for TabCompleter:

Classes

struct  CompletionKey

Public Types

enum  Type { UserTab = 0x01, ChannelTab = 0x02 }

Public Slots

void onTabCompletionKey ()

Public Member Functions

 TabCompleter (MultiLineEdit *inputLine_)
void reset ()
void complete ()
virtual bool eventFilter (QObject *obj, QEvent *event)

Private Member Functions

void buildCompletionList ()

Private Attributes

QPointer< MultiLineEdit_lineEdit
bool _enabled
QString _nickSuffix
QMap< CompletionKey, QString > _completionMap
QMap< CompletionKey, QString >
::Iterator 
_nextCompletion
int _lastCompletionLength

Static Private Attributes

static const Network_currentNetwork
static BufferId _currentBufferId
static QString _currentBufferName
static Type _completionType

Detailed Description

Definition at line 34 of file tabcompleter.h.

Member Enumeration Documentation

enum Type
Enumerator:
UserTab 
ChannelTab 

Definition at line 39 of file tabcompleter.h.

Constructor & Destructor Documentation

Member Function Documentation

void reset ( )

Definition at line 170 of file tabcompleter.cpp.

References _enabled.

Referenced by eventFilter().

bool eventFilter ( QObject *  obj,
QEvent *  event 
)
virtual
void onTabCompletionKey ( )
slot

Definition at line 58 of file tabcompleter.cpp.

Referenced by TabCompleter().

Member Data Documentation

QPointer<MultiLineEdit> _lineEdit
private

Definition at line 62 of file tabcompleter.h.

Referenced by buildCompletionList(), complete(), and eventFilter().

bool _enabled
private

Definition at line 63 of file tabcompleter.h.

Referenced by complete(), and reset().

QString _nickSuffix
private

Definition at line 64 of file tabcompleter.h.

Referenced by complete().

const Network * _currentNetwork
staticprivate

Definition at line 66 of file tabcompleter.h.

Referenced by buildCompletionList(), and TabCompleter::CompletionKey::operator<().

BufferId _currentBufferId
staticprivate

Definition at line 67 of file tabcompleter.h.

Referenced by buildCompletionList(), and TabCompleter::CompletionKey::operator<().

QString _currentBufferName
staticprivate

Definition at line 68 of file tabcompleter.h.

Referenced by buildCompletionList(), and TabCompleter::CompletionKey::operator<().

TabCompleter::Type _completionType
staticprivate
QMap<CompletionKey, QString> _completionMap
private

Definition at line 71 of file tabcompleter.h.

Referenced by buildCompletionList(), and complete().

QMap<CompletionKey, QString>::Iterator _nextCompletion
private

Definition at line 74 of file tabcompleter.h.

Referenced by buildCompletionList(), and complete().

int _lastCompletionLength
private

Definition at line 75 of file tabcompleter.h.

Referenced by buildCompletionList(), and complete().


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