File indexing completed on 2024-04-21 04:34:26

0001 /*
0002    Copyright (C) 2010 Niko Sams <niko.sams@gmail.com>
0003 
0004    This library is free software; you can redistribute it and/or
0005    modify it under the terms of the GNU Library General Public
0006    License version 2 as published by the Free Software Foundation.
0007 
0008    This library is distributed in the hope that it will be useful,
0009    but WITHOUT ANY WARRANTY; without even the implied warranty of
0010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0011    Library General Public License for more details.
0012 
0013    You should have received a copy of the GNU Library General Public License
0014    along with this library; see the file COPYING.LIB.  If not, write to
0015    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0016    Boston, MA 02110-1301, USA.
0017 */
0018 
0019 #ifndef CSS_FIELDNAVIGATIONCONTEXT_H
0020 #define CSS_FIELDNAVIGATIONCONTEXT_H
0021 
0022 #include <language/duchain/navigation/abstractnavigationcontext.h>
0023 #include "../completion/contentassistdata.h"
0024 
0025 namespace Css {
0026 
0027 class FieldNavigationContext : public KDevelop::AbstractNavigationContext
0028 {
0029 public:
0030     FieldNavigationContext(KDevelop::TopDUContextPointer topContext,
0031                                    const ContentAssistData::Field &field);
0032 
0033     QString name() const override;
0034     QString html(bool shorten = false) override;
0035 
0036 private:
0037     ContentAssistData::Field m_field;
0038 };
0039 
0040 }
0041 
0042 #endif