File indexing completed on 2024-04-28 15:52:42
0001 /* 0002 SPDX-FileCopyrightText: 2009 Milian Wolff <mail@milianw.de> 0003 0004 SPDX-License-Identifier: LGPL-2.0-only 0005 */ 0006 0007 #ifndef MAGICCONSTANTNAVIGATIONCONTEXT_H 0008 #define MAGICCONSTANTNAVIGATIONCONTEXT_H 0009 0010 #include <language/duchain/navigation/abstractnavigationcontext.h> 0011 #include <language/editor/cursorinrevision.h> 0012 0013 namespace Php { 0014 0015 class MagicConstantNavigationContext : public KDevelop::AbstractNavigationContext { 0016 public: 0017 MagicConstantNavigationContext(KDevelop::TopDUContextPointer topContext, 0018 const KTextEditor::Cursor& position, 0019 const QString& constant); 0020 QString name() const override; 0021 QString html(bool shorten = false) override; 0022 private: 0023 KDevelop::CursorInRevision m_position; 0024 QString m_constant; 0025 }; 0026 0027 } 0028 0029 #endif // MAGICCONSTANTNAVIGATIONCONTEXT_H