interfaces
KDevelop::EditorContext Class Reference
#include <context.h>
Inheritance diagram for KDevelop::EditorContext:

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] |
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 |
| 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:
KDE 4.2 API Reference