File indexing completed on 2024-04-28 12:21: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 #include "colornavigationcontext.h" 0020 0021 using namespace Css; 0022 0023 ColorNavigationContext::ColorNavigationContext(KDevelop::TopDUContextPointer topContext, const QString& name) 0024 : AbstractNavigationContext(topContext), m_name(name) 0025 { 0026 0027 } 0028 0029 QString ColorNavigationContext::name() const 0030 { 0031 return m_name; 0032 } 0033 0034 QString ColorNavigationContext::html(bool /*shorten*/) 0035 { 0036 QString ret("<html><body style='background-color:%1;'>" 0037 "<p style='background-color:white;color:black;margin-bottom:40px;' align='center'>%1</p>" 0038 "</body></html>"); 0039 return ret.arg(m_name); 0040 } 0041