KDevelop API Documentation

PHPCodeCompletion Class Reference

#include <phpcodecompletion.h>

Inheritance diagram for PHPCodeCompletion:

QObject List of all members.

Public Member Functions

 PHPCodeCompletion (PHPConfigData *config, KDevCore *core, CodeModel *model)
 ~PHPCodeCompletion ()
void setActiveEditorPart (KParts::Part *part)

Protected Slots

void cursorPositionChanged ()
void argHintHided ()
void completionBoxHided ()

Protected Member Functions

bool checkForVariable (QString lineStr, int col, int line)
bool checkForGlobalFunction (QString lineStr, int col)
bool checkForNewInstance (QString lineStr, int col, int line)
bool checkForGlobalFunctionArgHint (QString lineStr, int col, int line)
bool checkForMethodArgHint (QString lineStr, int col, int line)
bool checkForNewInstanceArgHint (QString lineStr, int col, int line)
void readGlobalPHPFunctionsFile ()
QValueList< KTextEditor::CompletionEntrygetClassMethodsAndVariables (QString className)
QString getClassName (QString varName, QString maybeInstanceOf)
QString searchCurrentClassName ()
QString searchClassNameForVariable (QString varName)
bool doGlobalMethodCompletion (QString methodStart)

Private Attributes

int m_currentLine
QValueList< FunctionCompletionEntrym_globalFunctions
KDevCorem_core
CodeModelm_model
bool m_argWidgetShow
bool m_completionBoxShow
KTextEditor::EditInterfacem_editInterface
KTextEditor::CodeCompletionInterfacem_codeInterface
KTextEditor::ViewCursorInterfacem_cursorInterface
KTextEditor::SelectionInterfacem_selectionInterface
PHPConfigDatam_config

Constructor & Destructor Documentation

PHPCodeCompletion::PHPCodeCompletion PHPConfigData config,
KDevCore core,
CodeModel model
 

Definition at line 35 of file phpcodecompletion.cpp.

References m_argWidgetShow, m_completionBoxShow, m_config, m_core, m_model, PHPCodeCompletion(), and readGlobalPHPFunctionsFile().

Referenced by PHPCodeCompletion().

PHPCodeCompletion::~PHPCodeCompletion  ) 
 

Definition at line 45 of file phpcodecompletion.cpp.


Member Function Documentation

void PHPCodeCompletion::argHintHided  )  [protected, slot]
 

Definition at line 78 of file phpcodecompletion.cpp.

References endl(), kdDebug(), and m_argWidgetShow.

Referenced by setActiveEditorPart().

bool PHPCodeCompletion::checkForGlobalFunction QString  lineStr,
int  col
[protected]
 

Definition at line 369 of file phpcodecompletion.cpp.

References checkForGlobalFunction(), doGlobalMethodCompletion(), endl(), and kdDebug().

Referenced by checkForGlobalFunction(), and cursorPositionChanged().

bool PHPCodeCompletion::checkForGlobalFunctionArgHint QString  lineStr,
int  col,
int  line
[protected]
 

Definition at line 320 of file phpcodecompletion.cpp.

References checkForGlobalFunctionArgHint(), endl(), CodeModel::globalNamespace(), kdDebug(), m_argWidgetShow, m_codeInterface, m_globalFunctions, m_model, and KTextEditor::CodeCompletionInterface::showArgHint().

Referenced by checkForGlobalFunctionArgHint(), and cursorPositionChanged().

bool PHPCodeCompletion::checkForMethodArgHint QString  lineStr,
int  col,
int  line
[protected]
 

Definition at line 191 of file phpcodecompletion.cpp.

References ArgumentDom, checkForMethodArgHint(), ClassDom, endl(), FunctionList, getClassName(), CodeModel::globalNamespace(), kdDebug(), m_argWidgetShow, m_codeInterface, m_model, and KTextEditor::CodeCompletionInterface::showArgHint().

Referenced by checkForMethodArgHint(), and cursorPositionChanged().

bool PHPCodeCompletion::checkForNewInstance QString  lineStr,
int  col,
int  line
[protected]
 

Definition at line 469 of file phpcodecompletion.cpp.

References checkForNewInstance(), ClassList, CodeModel::globalNamespace(), m_codeInterface, m_completionBoxShow, m_model, KTextEditor::CodeCompletionInterface::showCompletionBox(), and KTextEditor::CompletionEntry::text.

Referenced by checkForNewInstance(), and cursorPositionChanged().

bool PHPCodeCompletion::checkForNewInstanceArgHint QString  lineStr,
int  col,
int  line
[protected]
 

Definition at line 432 of file phpcodecompletion.cpp.

References checkForNewInstanceArgHint(), CodeModel::globalNamespace(), m_argWidgetShow, m_codeInterface, m_model, and KTextEditor::CodeCompletionInterface::showArgHint().

Referenced by checkForNewInstanceArgHint(), and cursorPositionChanged().

bool PHPCodeCompletion::checkForVariable QString  lineStr,
int  col,
int  line
[protected]
 

Definition at line 238 of file phpcodecompletion.cpp.

References checkForVariable(), endl(), getClassMethodsAndVariables(), getClassName(), kdDebug(), m_codeInterface, m_completionBoxShow, and KTextEditor::CodeCompletionInterface::showCompletionBox().

Referenced by checkForVariable(), and cursorPositionChanged().

void PHPCodeCompletion::completionBoxHided  )  [protected, slot]
 

Definition at line 82 of file phpcodecompletion.cpp.

References endl(), kdDebug(), and m_completionBoxShow.

Referenced by setActiveEditorPart().

void PHPCodeCompletion::cursorPositionChanged  )  [protected, slot]
 

Definition at line 134 of file phpcodecompletion.cpp.

References checkForGlobalFunction(), checkForGlobalFunctionArgHint(), checkForMethodArgHint(), checkForNewInstance(), checkForNewInstanceArgHint(), checkForVariable(), KTextEditor::ViewCursorInterface::cursorPositionReal(), endl(), PHPConfigData::getCodeCompletion(), PHPConfigData::getCodeHinting(), KTextEditor::SelectionInterface::hasSelection(), kdDebug(), m_config, m_currentLine, m_cursorInterface, m_editInterface, m_selectionInterface, and KTextEditor::EditInterface::textLine().

Referenced by setActiveEditorPart().

bool PHPCodeCompletion::doGlobalMethodCompletion QString  methodStart  )  [protected]
 

Definition at line 399 of file phpcodecompletion.cpp.

References doGlobalMethodCompletion(), CodeModel::globalNamespace(), m_codeInterface, m_completionBoxShow, m_globalFunctions, m_model, KTextEditor::CompletionEntry::postfix, KTextEditor::CodeCompletionInterface::showCompletionBox(), and KTextEditor::CompletionEntry::text.

Referenced by checkForGlobalFunction(), and doGlobalMethodCompletion().

QValueList< KTextEditor::CompletionEntry > PHPCodeCompletion::getClassMethodsAndVariables QString  className  )  [protected]
 

Definition at line 507 of file phpcodecompletion.cpp.

References KSharedPtr< T >::count(), getClassMethodsAndVariables(), CodeModel::globalNamespace(), m_model, KTextEditor::CompletionEntry::postfix, and KTextEditor::CompletionEntry::text.

Referenced by checkForVariable(), and getClassMethodsAndVariables().

QString PHPCodeCompletion::getClassName QString  varName,
QString  maybeInstanceOf
[protected]
 

Definition at line 268 of file phpcodecompletion.cpp.

References endl(), getClassName(), CodeModel::globalNamespace(), kdDebug(), m_model, searchClassNameForVariable(), searchCurrentClassName(), and VariableList.

Referenced by checkForMethodArgHint(), checkForVariable(), and getClassName().

void PHPCodeCompletion::readGlobalPHPFunctionsFile  )  [protected]
 

Definition at line 48 of file phpcodecompletion.cpp.

References KStandardDirs::findResource(), m_globalFunctions, KTextEditor::CompletionEntry::postfix, KTextEditor::CompletionEntry::prefix, FunctionCompletionEntry::prototype, and KTextEditor::CompletionEntry::text.

Referenced by PHPCodeCompletion().

QString PHPCodeCompletion::searchClassNameForVariable QString  varName  )  [protected]
 

Definition at line 291 of file phpcodecompletion.cpp.

References endl(), kdDebug(), m_currentLine, m_editInterface, searchClassNameForVariable(), and KTextEditor::EditInterface::textLine().

Referenced by getClassName(), and searchClassNameForVariable().

QString PHPCodeCompletion::searchCurrentClassName  )  [protected]
 

Definition at line 306 of file phpcodecompletion.cpp.

References endl(), kdDebug(), m_currentLine, m_editInterface, and KTextEditor::EditInterface::textLine().

Referenced by getClassName().

void PHPCodeCompletion::setActiveEditorPart KParts::Part part  ) 
 

Definition at line 87 of file phpcodecompletion.cpp.

References argHintHided(), completionBoxHided(), cursorPositionChanged(), endl(), PHPConfigData::getCodeCompletion(), PHPConfigData::getCodeHinting(), kdDebug(), m_codeInterface, m_config, m_cursorInterface, m_editInterface, m_selectionInterface, setActiveEditorPart(), and KParts::Part::widget().

Referenced by setActiveEditorPart(), and PHPSupportPart::slotActivePartChanged().


Member Data Documentation

bool PHPCodeCompletion::m_argWidgetShow [private]
 

Definition at line 80 of file phpcodecompletion.h.

Referenced by argHintHided(), checkForGlobalFunctionArgHint(), checkForMethodArgHint(), checkForNewInstanceArgHint(), and PHPCodeCompletion().

KTextEditor::CodeCompletionInterface* PHPCodeCompletion::m_codeInterface [private]
 

Definition at line 83 of file phpcodecompletion.h.

Referenced by checkForGlobalFunctionArgHint(), checkForMethodArgHint(), checkForNewInstance(), checkForNewInstanceArgHint(), checkForVariable(), doGlobalMethodCompletion(), and setActiveEditorPart().

bool PHPCodeCompletion::m_completionBoxShow [private]
 

Definition at line 81 of file phpcodecompletion.h.

Referenced by checkForNewInstance(), checkForVariable(), completionBoxHided(), doGlobalMethodCompletion(), and PHPCodeCompletion().

PHPConfigData* PHPCodeCompletion::m_config [private]
 

Definition at line 86 of file phpcodecompletion.h.

Referenced by cursorPositionChanged(), PHPCodeCompletion(), and setActiveEditorPart().

KDevCore* PHPCodeCompletion::m_core [private]
 

Definition at line 78 of file phpcodecompletion.h.

Referenced by PHPCodeCompletion().

int PHPCodeCompletion::m_currentLine [private]
 

Definition at line 76 of file phpcodecompletion.h.

Referenced by cursorPositionChanged(), searchClassNameForVariable(), and searchCurrentClassName().

KTextEditor::ViewCursorInterface* PHPCodeCompletion::m_cursorInterface [private]
 

Definition at line 84 of file phpcodecompletion.h.

Referenced by cursorPositionChanged(), and setActiveEditorPart().

KTextEditor::EditInterface* PHPCodeCompletion::m_editInterface [private]
 

Definition at line 82 of file phpcodecompletion.h.

Referenced by cursorPositionChanged(), searchClassNameForVariable(), searchCurrentClassName(), and setActiveEditorPart().

QValueList<FunctionCompletionEntry> PHPCodeCompletion::m_globalFunctions [private]
 

Definition at line 77 of file phpcodecompletion.h.

Referenced by checkForGlobalFunctionArgHint(), doGlobalMethodCompletion(), and readGlobalPHPFunctionsFile().

CodeModel* PHPCodeCompletion::m_model [private]
 

Definition at line 79 of file phpcodecompletion.h.

Referenced by checkForGlobalFunctionArgHint(), checkForMethodArgHint(), checkForNewInstance(), checkForNewInstanceArgHint(), doGlobalMethodCompletion(), getClassMethodsAndVariables(), getClassName(), and PHPCodeCompletion().

KTextEditor::SelectionInterface* PHPCodeCompletion::m_selectionInterface [private]
 

Definition at line 85 of file phpcodecompletion.h.

Referenced by cursorPositionChanged(), and setActiveEditorPart().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Oct 19 08:02:05 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003