File indexing completed on 2024-05-19 15:41:37
0001 /* 0002 SPDX-FileCopyrightText: 2011 Sven Brauch <svenbrauch@googlemail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef IMPLEMENTFUNCTIONCOMPLETIONITEM_H 0008 #define IMPLEMENTFUNCTIONCOMPLETIONITEM_H 0009 0010 #include <language/codecompletion/codecompletionitem.h> 0011 #include <QStringList> 0012 0013 using namespace KDevelop; 0014 0015 namespace Python { 0016 0017 class ImplementFunctionCompletionItem : public CompletionTreeItem 0018 { 0019 public: 0020 ImplementFunctionCompletionItem(const QString& name, const QStringList& arguments, const QString& previousIndent); 0021 void execute(KTextEditor::View* view, const KTextEditor::Range& word) override; 0022 QVariant data(const QModelIndex& index, int role, const CodeCompletionModel* model) const override; 0023 0024 private: 0025 QStringList m_arguments; 0026 QString m_name; 0027 QString m_previousIndent; 0028 }; 0029 0030 } // namespace Python 0031 0032 #endif // IMPLEMENTFUNCTIONCOMPLETIONITEM_H