File indexing completed on 2024-05-05 04:35:22
0001 /* 0002 Copyright (C) 2010 Milian Wolff <mail@milianw.de> 0003 0004 This program is free software: you can redistribute it and/or modify 0005 it under the terms of the GNU General Public License as published by 0006 the Free Software Foundation, either version 3 of the License, or 0007 (at your option) any later version. 0008 0009 This program is distributed in the hope that it will be useful, 0010 but WITHOUT ANY WARRANTY; without even the implied warranty of 0011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0012 GNU General Public License for more details. 0013 0014 You should have received a copy of the GNU General Public License 0015 along with this program. If not, see <http://www.gnu.org/licenses/>. 0016 */ 0017 0018 0019 #ifndef CSS_COLORNAVIGATIONCONTEXT_H 0020 #define CSS_COLORNAVIGATIONCONTEXT_H 0021 0022 #include <language/duchain/navigation/abstractnavigationcontext.h> 0023 0024 #include <QColor> 0025 0026 namespace Css { 0027 0028 class ColorNavigationContext : public KDevelop::AbstractNavigationContext 0029 { 0030 public: 0031 ColorNavigationContext(KDevelop::TopDUContextPointer topContext, 0032 const QString& name); 0033 0034 QString name() const override; 0035 QString html(bool shorten = false) override; 0036 0037 private: 0038 const QString m_name; 0039 }; 0040 0041 } 0042 0043 #endif // CSS_COLORNAVIGATIONCONTEXT_H