• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • KDevelop Platform Libraries
  • Sitemap
  • Contact Us
 

interfaces

KDevelop::EditorContext

KDevelop::EditorContext Class Reference

#include <context.h>

Inheritance diagram for KDevelop::EditorContext:

Inheritance graph
[legend]

List of all members.


Detailed Description

A context for the KTextEditor.

Definition at line 119 of file context.h.


Public Member Functions

QString currentLine () const
QString currentWord () const
 EditorContext (KTextEditor::View *)
KTextEditor::Cursor position () const
virtual int type () const
KUrl url () const
KTextEditor::View * view () const
virtual ~EditorContext ()

Constructor & Destructor Documentation

KDevelop::EditorContext::EditorContext ( KTextEditor::View *  view  ) 

Builds a context for a KTextEditor part.

Parameters:
url The url of a file in the editor.
position The position where the cursor is.
linestr The content of the line where the cursor is.
wordstr The current word under the cursor.

Definition at line 68 of file context.cpp.

KDevelop::EditorContext::~EditorContext (  )  [virtual]

Destructor.

Definition at line 72 of file context.cpp.


Member Function Documentation

QString KDevelop::EditorContext::currentLine (  )  const

Returns:
A QString with the content of the line which this context was invoked for.

Definition at line 92 of file context.cpp.

QString KDevelop::EditorContext::currentWord (  )  const

Returns:
A QString containing the word near to the cursor when this context object was created.

Definition at line 97 of file context.cpp.

KTextEditor::Cursor KDevelop::EditorContext::position (  )  const

Returns:
The cursor position.

Definition at line 87 of file context.cpp.

int KDevelop::EditorContext::type (  )  const [virtual]

Implement this in the context so we can provide rtti.

Implements KDevelop::Context.

Definition at line 77 of file context.cpp.

KUrl KDevelop::EditorContext::url (  )  const

Returns:
The url for the file which this context was invoked for.

Definition at line 82 of file context.cpp.


The documentation for this class was generated from the following files:
  • context.h
  • context.cpp

interfaces

Skip menu "interfaces"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

KDevelop Platform Libraries

Skip menu "KDevelop Platform Libraries"
  • interfaces
  • language
  •   codegen
  •   duchain
  •   editor
  • outputview
  •     interfaces
  • project
  • shell
  • sublime
  • util
  • vcs
Generated for KDevelop Platform Libraries by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal