Changeset View
Changeset View
Standalone View
Standalone View
completion/items.h
Show All 23 Lines | |||||
24 | #define COMPLETIONITEM_H | 24 | #define COMPLETIONITEM_H | ||
25 | 25 | | |||
26 | #include <language/duchain/duchainpointer.h> | 26 | #include <language/duchain/duchainpointer.h> | ||
27 | #include <language/codecompletion/normaldeclarationcompletionitem.h> | 27 | #include <language/codecompletion/normaldeclarationcompletionitem.h> | ||
28 | 28 | | |||
29 | class QModelIndex; | 29 | class QModelIndex; | ||
30 | 30 | | |||
31 | namespace java { | 31 | namespace java { | ||
32 | | ||||
33 | //A completion item used for completion of normal declarations while normal code-completion | 32 | //A completion item used for completion of normal declarations while normal code-completion | ||
34 | class NormalDeclarationCompletionItem : public KDevelop::NormalDeclarationCompletionItem { | 33 | class NormalDeclarationCompletionItem : public KDevelop::NormalDeclarationCompletionItem { | ||
35 | public: | 34 | public: | ||
36 | NormalDeclarationCompletionItem(KDevelop::DeclarationPointer decl = KDevelop::DeclarationPointer(), KSharedPtr<KDevelop::CodeCompletionContext> context=KSharedPtr<KDevelop::CodeCompletionContext>(), int _inheritanceDepth = 0); | 35 | NormalDeclarationCompletionItem(KDevelop::DeclarationPointer decl = KDevelop::DeclarationPointer(), QExplicitlySharedDataPointer<KDevelop::CodeCompletionContext> context=QExplicitlySharedDataPointer<KDevelop::CodeCompletionContext>(), int _inheritanceDepth = 0); | ||
37 | 36 | | |||
38 | virtual QVariant data(const QModelIndex& index, int role, const KDevelop::CodeCompletionModel* model) const; | 37 | virtual QVariant data(const QModelIndex& index, int role, const KDevelop::CodeCompletionModel* model) const; | ||
39 | 38 | | |||
40 | protected: | 39 | protected: | ||
41 | virtual void executed(KTextEditor::Document* document, const KTextEditor::Range& word); | 40 | virtual void executed(KTextEditor::View* document, const KTextEditor::Range& word); | ||
42 | virtual QString shortenedTypeString(KDevelop::DeclarationPointer decl, int desiredTypeLength) const; | 41 | virtual QString shortenedTypeString(KDevelop::DeclarationPointer decl, int desiredTypeLength) const; | ||
43 | }; | 42 | }; | ||
44 | 43 | | |||
45 | } | 44 | } | ||
46 | 45 | | |||
47 | #endif | 46 | #endif |