Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/interfaces/context.h
Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Line(s) | 93 | /**Pre-defined context types. More may be added so it is possible to add custom | |||
---|---|---|---|---|---|
94 | contexts. <strong>We reserve enum values until 1000 (yeah, it is one thousand ) | 94 | contexts. <strong>We reserve enum values until 1000 (yeah, it is one thousand ) | ||
95 | for kdevplatform official context types.</strong>*/ | 95 | for kdevplatform official context types.</strong>*/ | ||
96 | enum Type | 96 | enum Type | ||
97 | { | 97 | { | ||
98 | FileContext, /**<File menu.*/ | 98 | FileContext, /**<File menu.*/ | ||
99 | CodeContext, /**<Code context menu(DeclarationContext or DUContextContext)*/ | 99 | CodeContext, /**<Code context menu(DeclarationContext or DUContextContext)*/ | ||
100 | EditorContext, /**<Editor menu.*/ | 100 | EditorContext, /**<Editor menu.*/ | ||
101 | ProjectItemContext, /**<ProjectItem context menu.*/ | 101 | ProjectItemContext, /**<ProjectItem context menu.*/ | ||
102 | OpenWithContext /**<Open With context menu.*/ | 102 | OpenWithContext, /**<Open With context menu.*/ | ||
103 | VcsRevisionContext /**<Vcs Revision context menu.*/ | ||||
103 | }; | 104 | }; | ||
104 | 105 | | |||
105 | /**Implement this in the context so we can provide rtti.*/ | 106 | /**Implement this in the context so we can provide rtti.*/ | ||
106 | virtual int type() const = 0; | 107 | virtual int type() const = 0; | ||
107 | 108 | | |||
108 | /** | 109 | /** | ||
109 | * Convenience method for accessing the urls associated with this context | 110 | * Convenience method for accessing the urls associated with this context | ||
110 | * | 111 | * | ||
▲ Show 20 Lines • Show All 102 Lines • Show Last 20 Lines |