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 IMPORTFILEITEM_H
0008 #define IMPORTFILEITEM_H
0009 
0010 #include <language/codecompletion/abstractincludefilecompletionitem.h>
0011 #include <shell/project.h>
0012 
0013 #include "duchain/navigation/navigationwidget.h"
0014 
0015 namespace Python {
0016 
0017 typedef KDevelop::AbstractIncludeFileCompletionItem<NavigationWidget> IncludeFileItemBase;
0018 
0019 class ImportFileItem : public IncludeFileItemBase
0020 {
0021 
0022 public:
0023     ImportFileItem(const KDevelop::IncludeItem& include);
0024     ~ImportFileItem() override;
0025     
0026     void execute(KTextEditor::View* view, const KTextEditor::Range& word) override;
0027     QString moduleName;
0028     KDevelop::IProject* fromProject;
0029 };
0030 
0031 }
0032 
0033 #endif // IMPORTFILEITEM_H