Changeset View
Changeset View
Standalone View
Standalone View
language/codecompletion/codecompletion.h
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Line(s) | 50 | private Q_SLOTS: | |||
---|---|---|---|---|---|
54 | 54 | | |||
55 | /** | 55 | /** | ||
56 | * check already opened documents, | 56 | * check already opened documents, | ||
57 | * needs to be done via delayed call to prevent infinite loop in | 57 | * needs to be done via delayed call to prevent infinite loop in | ||
58 | * checkDocument() -> load lang plugin -> register CodeCompletion -> checkDocument() -> ... | 58 | * checkDocument() -> load lang plugin -> register CodeCompletion -> checkDocument() -> ... | ||
59 | */ | 59 | */ | ||
60 | void checkDocuments(); | 60 | void checkDocuments(); | ||
61 | 61 | | |||
62 | signals: | 62 | Q_SIGNALS: | ||
63 | void registeredToView(KTextEditor::View* view); | 63 | void registeredToView(KTextEditor::View* view); | ||
64 | void unregisteredFromView(KTextEditor::View* view); | 64 | void unregisteredFromView(KTextEditor::View* view); | ||
65 | 65 | | |||
66 | private: | 66 | private: | ||
67 | 67 | | |||
68 | void unregisterDocument(KTextEditor::Document*); | 68 | void unregisterDocument(KTextEditor::Document*); | ||
69 | void checkDocument(KTextEditor::Document*); | 69 | void checkDocument(KTextEditor::Document*); | ||
70 | 70 | | |||
71 | KTextEditor::CodeCompletionModel* m_model; | 71 | KTextEditor::CodeCompletionModel* m_model; | ||
72 | QString m_language; | 72 | QString m_language; | ||
73 | }; | 73 | }; | ||
74 | 74 | | |||
75 | } | 75 | } | ||
76 | 76 | | |||
77 | #endif | 77 | #endif | ||
78 | 78 | |