Context Class Reference
Base class for every context. More...
#include <kdevcore.h>
Inheritance diagram for Context:

Public Types | |
enum | { EditorContext, DocumentationContext, FileContext, CodeModelItemContext } |
Pre-defined context. More... | |
Public Member Functions | |
virtual int | type () const =0 |
Implements this in the context so we can provide rtti. | |
bool | hasType (int type) const |
Returns the type of this Context, so clients can discriminate between different file contexts. | |
Protected Member Functions | |
Context () | |
Constructor. | |
virtual | ~Context () |
Destructor. |
Detailed Description
Base class for every context.Think of a Context-based class as "useful info associated to a context menu". Several context menu can be defined, each defining different information: because of these context menus being used in many modules, they are defined here.
Definition at line 57 of file kdevcore.h.
Member Enumeration Documentation
|
Pre-defined context. More may be added so it is possible to add custom contexts. We reserve enum values until 1000 (yeah, it is one thousand ) for kdevelop official context types. Definition at line 66 of file kdevcore.h. |
Constructor & Destructor Documentation
|
Constructor.
Definition at line 37 of file kdevcore.cpp. |
|
Destructor.
Definition at line 43 of file kdevcore.cpp. |
Member Function Documentation
|
Returns the type of this Context, so clients can discriminate between different file contexts.
Definition at line 50 of file kdevcore.cpp. References hasType(), and type(). Referenced by subversionPart::contextMenu(), PerforcePart::contextMenu(), CvsServicePart::contextMenu(), ClearcasePart::contextMenu(), ToolsPart::contextMenu(), GrepViewPart::contextMenu(), DocTreeViewPart::contextMenu(), DiffPart::contextMenu(), CTagsPart::contextMenu(), JavaSupportPart::contextMenu(), GDBDebugger::DebuggerPart::contextMenu(), CppSupportPart::contextMenu(), CustomProjectPart::contextMenu(), AntProjectPart::contextMenu(), OpenWithPart::fillContextMenu(), and hasType(). |
|
Implements this in the context so we can provide rtti.
Implemented in EditorContext, DocumentationContext, FileContext, and CodeModelItemContext. Referenced by hasType(). |
The documentation for this class was generated from the following files:
- lib/interfaces/kdevcore.h
- lib/interfaces/kdevcore.cpp