EditorContext Class Reference
A context for the popup menu in the editor. More...
#include <kdevcore.h>
Inheritance diagram for EditorContext:

Public Member Functions | |
EditorContext (const KURL &url, int line, int col, const QString &linestr, const QString &wordstr) | |
Builds a context for an editor part. | |
virtual | ~EditorContext () |
Destructor. | |
virtual int | type () const |
Implements this in the context so we can provide rtti. | |
const KURL & | url () const |
Returns the url for the file which this context was invoked for. | |
int | line () const |
Returns the line number for the cursor position. | |
int | col () const |
Returns the column number for the cursor position. | |
QString | currentLine () const |
Returns a QString with the content of the line which this context was invoked for. | |
QString | currentWord () const |
Returns a QString containing the word near to the cursor when this context object was created. | |
Private Member Functions | |
EditorContext (const EditorContext &) | |
EditorContext & | operator= (const EditorContext &) |
Private Attributes | |
Private * | d |
Detailed Description
A context for the popup menu in the editor.
Definition at line 100 of file kdevcore.h.
Constructor & Destructor Documentation
|
Builds a context for an editor part.
Definition at line 78 of file kdevcore.cpp. References d, and EditorContext(). Referenced by EditorContext(). |
|
Destructor.
Definition at line 86 of file kdevcore.cpp. |
|
|
Member Function Documentation
|
Returns the column number for the cursor position.
Definition at line 116 of file kdevcore.cpp. References d, and EditorContext::Private::m_col. |
|
Returns a QString with the content of the line which this context was invoked for.
Definition at line 123 of file kdevcore.cpp. References d, and EditorContext::Private::m_linestr. Referenced by CppSupportPart::contextMenu(). |
|
Returns a QString containing the word near to the cursor when this context object was created.
Definition at line 130 of file kdevcore.cpp. References d, and EditorContext::Private::m_wordstr. Referenced by GrepViewPart::contextMenu(), DocTreeViewPart::contextMenu(), CTagsPart::contextMenu(), and GDBDebugger::DebuggerPart::contextMenu(). |
|
Returns the line number for the cursor position.
Definition at line 109 of file kdevcore.cpp. References d, and EditorContext::Private::m_line. |
|
|
|
Implements this in the context so we can provide rtti.
Implements Context. Definition at line 95 of file kdevcore.cpp. |
|
Returns the url for the file which this context was invoked for.
Definition at line 102 of file kdevcore.cpp. References d, and EditorContext::Private::m_url. Referenced by subversionPart::contextMenu(), CvsServicePart::contextMenu(), DiffPart::contextMenu(), and GDBDebugger::DebuggerPart::contextMenu(). |
Member Data Documentation
|
Definition at line 149 of file kdevcore.h. Referenced by col(), currentLine(), currentWord(), EditorContext(), line(), url(), and ~EditorContext(). |
The documentation for this class was generated from the following files:
- lib/interfaces/kdevcore.h
- lib/interfaces/kdevcore.cpp