KDevelop API Documentation

QEditorCodeCompletion Class Reference

#include <qeditorcodecompletion.h>

Inheritance diagram for QEditorCodeCompletion:

Inheritance graph
[legend]
Collaboration diagram for QEditorCodeCompletion:

Collaboration graph
[legend]
List of all members.

Public Slots

void slotCursorPosChanged ()
void showComment ()

Signals

void completionAborted ()
void completionDone ()
void argHintHidden ()
void completionDone (KTextEditor::CompletionEntry)
void filterInsertString (KTextEditor::CompletionEntry *, QString *)

Public Member Functions

 QEditorCodeCompletion (QEditorView *view)
void showArgHint (QStringList functionList, const QString &strWrapping, const QString &strDelimiter)
void showCompletionBox (QValueList< KTextEditor::CompletionEntry > entries, int offset=0, bool casesensitive=true)
bool eventFilter (QObject *o, QEvent *e)

Private Member Functions

void abortCompletion ()
void complete (KTextEditor::CompletionEntry)
void updateBox (bool newCoordinate=false)

Private Attributes

QEditorArgHintm_pArgHint
QEditorViewm_view
QVBoxm_completionPopup
CCListBoxm_completionListBox
QValueList< KTextEditor::CompletionEntrym_complList
uint m_lineCursor
uint m_colCursor
int m_offset
bool m_caseSensitive
QEditorCodeCompletionCommentLabelm_commentLabel

Constructor & Destructor Documentation

QEditorCodeCompletion::QEditorCodeCompletion QEditorView view  ) 
 

Definition at line 150 of file qeditorcodecompletion.cpp.

References argHintHidden(), QEditorView::editor(), m_completionListBox, m_completionPopup, m_pArgHint, m_view, and slotCursorPosChanged().


Member Function Documentation

void QEditorCodeCompletion::abortCompletion  )  [private]
 

Definition at line 274 of file qeditorcodecompletion.cpp.

References completionAborted(), m_commentLabel, and m_completionPopup.

Referenced by eventFilter(), and updateBox().

void QEditorCodeCompletion::argHintHidden  )  [signal]
 

Referenced by QEditorCodeCompletion().

void QEditorCodeCompletion::complete KTextEditor::CompletionEntry   )  [private]
 

Definition at line 282 of file qeditorcodecompletion.cpp.

References completionDone(), m_commentLabel, and m_completionPopup.

Referenced by eventFilter().

void QEditorCodeCompletion::completionAborted  )  [signal]
 

Referenced by abortCompletion().

void QEditorCodeCompletion::completionDone KTextEditor::CompletionEntry   )  [signal]
 

void QEditorCodeCompletion::completionDone  )  [signal]
 

Referenced by complete().

bool QEditorCodeCompletion::eventFilter QObject o,
QEvent e
 

Definition at line 192 of file qeditorcodecompletion.cpp.

References abortCompletion(), complete(), QEditorSettings::completeWordWithSpace(), QEditorView::currentTextLine(), QEditorView::cursorColumnReal(), QEditorView::editor(), filterInsertString(), QEditorView::insertText(), kdDebug(), len, m_colCursor, m_completionListBox, m_completionPopup, CompletionItem::m_entry, m_offset, m_view, KTextEditor::CompletionEntry::postfix, QEditorSettings::self(), showComment(), KTextEditor::CompletionEntry::text, text(), and updateBox().

void QEditorCodeCompletion::filterInsertString KTextEditor::CompletionEntry ,
QString
[signal]
 

Referenced by eventFilter().

void QEditorCodeCompletion::showArgHint QStringList  functionList,
const QString strWrapping,
const QString strDelimiter
 

Definition at line 356 of file qeditorcodecompletion.cpp.

References QEditorArgHint::addFunction(), QEditorView::cursorCoordinates(), QEditorView::cursorPositionReal(), kdDebug(), m_pArgHint, m_view, QEditorArgHint::reset(), QEditorArgHint::setArgMarkInfos(), and QEditorArgHint::show().

Referenced by QEditorView::showArgHint().

void QEditorCodeCompletion::showComment  )  [slot]
 

Definition at line 387 of file qeditorcodecompletion.cpp.

References KTextEditor::CompletionEntry::comment, m_commentLabel, m_completionListBox, m_completionPopup, and CompletionItem::m_entry.

Referenced by eventFilter(), and updateBox().

void QEditorCodeCompletion::showCompletionBox QValueList< KTextEditor::CompletionEntry entries,
int  offset = 0,
bool  casesensitive = true
 

Definition at line 178 of file qeditorcodecompletion.cpp.

References QEditorView::cursorPositionReal(), kdDebug(), m_caseSensitive, m_colCursor, m_complList, m_lineCursor, m_offset, m_view, and updateBox().

Referenced by QEditorView::showCompletionBox().

void QEditorCodeCompletion::slotCursorPosChanged  )  [slot]
 

Definition at line 380 of file qeditorcodecompletion.cpp.

References QEditorArgHint::cursorPositionChanged(), QEditorView::cursorPositionReal(), m_pArgHint, and m_view.

Referenced by QEditorCodeCompletion().

void QEditorCodeCompletion::updateBox bool  newCoordinate = false  )  [private]
 

Definition at line 291 of file qeditorcodecompletion.cpp.

References abortCompletion(), QEditorView::currentTextLine(), QEditorView::cursorColumnReal(), QEditorView::editor(), kdDebug(), len, m_colCursor, m_completionListBox, m_completionPopup, m_complList, m_view, showComment(), CCListBox::sizeHint(), and QEditor::textCursor().

Referenced by eventFilter(), and showCompletionBox().


Member Data Documentation

bool QEditorCodeCompletion::m_caseSensitive [private]
 

Definition at line 123 of file qeditorcodecompletion.h.

Referenced by showCompletionBox().

uint QEditorCodeCompletion::m_colCursor [private]
 

Definition at line 121 of file qeditorcodecompletion.h.

Referenced by eventFilter(), showCompletionBox(), and updateBox().

QEditorCodeCompletionCommentLabel* QEditorCodeCompletion::m_commentLabel [private]
 

Definition at line 124 of file qeditorcodecompletion.h.

Referenced by abortCompletion(), complete(), and showComment().

CCListBox* QEditorCodeCompletion::m_completionListBox [private]
 

Definition at line 118 of file qeditorcodecompletion.h.

Referenced by eventFilter(), QEditorCodeCompletion(), showComment(), and updateBox().

QVBox* QEditorCodeCompletion::m_completionPopup [private]
 

Definition at line 117 of file qeditorcodecompletion.h.

Referenced by abortCompletion(), complete(), eventFilter(), QEditorCodeCompletion(), showComment(), and updateBox().

QValueList<KTextEditor::CompletionEntry> QEditorCodeCompletion::m_complList [private]
 

Definition at line 119 of file qeditorcodecompletion.h.

Referenced by showCompletionBox(), and updateBox().

uint QEditorCodeCompletion::m_lineCursor [private]
 

Definition at line 120 of file qeditorcodecompletion.h.

Referenced by showCompletionBox().

int QEditorCodeCompletion::m_offset [private]
 

Definition at line 122 of file qeditorcodecompletion.h.

Referenced by eventFilter(), and showCompletionBox().

QEditorArgHint* QEditorCodeCompletion::m_pArgHint [private]
 

Definition at line 115 of file qeditorcodecompletion.h.

Referenced by QEditorCodeCompletion(), showArgHint(), and slotCursorPosChanged().

QEditorView* QEditorCodeCompletion::m_view [private]
 

Definition at line 116 of file qeditorcodecompletion.h.

Referenced by eventFilter(), QEditorCodeCompletion(), showArgHint(), showCompletionBox(), slotCursorPosChanged(), and updateBox().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:28:48 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003