forked from qt-creator/qt-creator
[C++] Added object pool handling for CompletionAssistProvider.
Change-Id: I89634989a7f360a30f7ed1bde4e67c93551ddfe4 Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
29
src/plugins/cpptools/cppcompletionassistprovider.h
Normal file
29
src/plugins/cpptools/cppcompletionassistprovider.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#ifndef CPPTOOLS_CPPCOMPLETIONASSISTPROVIDER_H
|
||||
#define CPPTOOLS_CPPCOMPLETIONASSISTPROVIDER_H
|
||||
|
||||
#include "cppcompletionsupport.h"
|
||||
#include "cpptools_global.h"
|
||||
|
||||
#include <texteditor/codeassist/completionassistprovider.h>
|
||||
|
||||
namespace CppTools {
|
||||
|
||||
class CPPTOOLS_EXPORT CppCompletionAssistProvider : public TextEditor::CompletionAssistProvider
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
virtual bool supportsEditor(const Core::Id &editorId) const;
|
||||
virtual int activationCharSequenceLength() const;
|
||||
virtual bool isActivationCharSequence(const QString &sequence) const;
|
||||
|
||||
virtual CppCompletionSupport *completionSupport(TextEditor::ITextEditor *editor) = 0;
|
||||
|
||||
static int activationSequenceChar(const QChar &ch, const QChar &ch2,
|
||||
const QChar &ch3, unsigned *kind,
|
||||
bool wantFunctionCall);
|
||||
};
|
||||
|
||||
} // namespace CppTools
|
||||
|
||||
#endif // CPPTOOLS_CPPCOMPLETIONASSISTPROVIDER_H
|
||||
Reference in New Issue
Block a user