File: implementfunction.h

package info (click to toggle)
kdevelop-python 24.12.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,640 kB
  • sloc: python: 183,048; cpp: 18,798; xml: 140; sh: 14; makefile: 9
file content (32 lines) | stat: -rw-r--r-- 882 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
    SPDX-FileCopyrightText: 2011 Sven Brauch <svenbrauch@googlemail.com>

    SPDX-License-Identifier: GPL-2.0-or-later
*/

#ifndef IMPLEMENTFUNCTIONCOMPLETIONITEM_H
#define IMPLEMENTFUNCTIONCOMPLETIONITEM_H

#include <language/codecompletion/codecompletionitem.h>
#include <QStringList>

using namespace KDevelop;

namespace Python {

class ImplementFunctionCompletionItem : public CompletionTreeItem
{
public:
    ImplementFunctionCompletionItem(const QString& name, const QStringList& arguments, const QString& previousIndent);
    void execute(KTextEditor::View* view, const KTextEditor::Range& word) override;
    QVariant data(const QModelIndex& index, int role, const CodeCompletionModel* model) const override;

private:
    QStringList m_arguments;
    QString m_name;
    QString m_previousIndent;
};

} // namespace Python

#endif // IMPLEMENTFUNCTIONCOMPLETIONITEM_H