DocumentationContext Class Reference
#include <kdevcore.h>
Inheritance diagram for DocumentationContext:

Public Member Functions | |
DocumentationContext (const TQString &url, const TQString &selection) | |
DocumentationContext (const DocumentationContext &) | |
DocumentationContext & | operator= (const DocumentationContext &) |
virtual | ~DocumentationContext () |
virtual int | type () const |
TQString | url () const |
TQString | selection () const |
![]() | |
virtual bool | hasType (int type) const |
Additional Inherited Members | |
![]() | |
enum | Type { EditorContext, DocumentationContext, FileContext, ProjectModelItemContext, CodeModelItemContext } |
![]() | |
Context () | |
virtual | ~Context () |
Detailed Description
A context for the popup menu in the documentation browser widget.
Definition at line 177 of file kdevcore.h.
Constructor & Destructor Documentation
◆ DocumentationContext() [1/2]
DocumentationContext::DocumentationContext | ( | const TQString & | url, |
const TQString & | selection | ||
) |
Builds a DocumentationContext.
- Parameters
-
url The URL that the context will be for. selection Selected text.
Definition at line 176 of file kdevcore.cpp.
◆ DocumentationContext() [2/2]
DocumentationContext::DocumentationContext | ( | const DocumentationContext & | aContext | ) |
Copy constructor.
Definition at line 181 of file kdevcore.cpp.
◆ ~DocumentationContext()
|
virtual |
Destructor.
Definition at line 196 of file kdevcore.cpp.
Member Function Documentation
◆ selection()
TQString DocumentationContext::selection | ( | ) | const |
- Returns
- The selected text in the document.
Definition at line 212 of file kdevcore.cpp.
◆ type()
|
virtual |
Implement this in the context so we can provide rtti.
Implements Context.
Definition at line 202 of file kdevcore.cpp.
◆ url()
TQString DocumentationContext::url | ( | ) | const |
- Returns
- The url of the document this context was invoked for.
Definition at line 207 of file kdevcore.cpp.
The documentation for this class was generated from the following files: