2 \file GUIColorManager.h
6 #ifndef GUILIB_COLORMANAGER_H
7 #define GUILIB_COLORMANAGER_H
12 * Copyright (C) 2005-2013 Team XBMC
15 * This Program is free software; you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License as published by
17 * the Free Software Foundation; either version 2, or (at your option)
20 * This Program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
25 * You should have received a copy of the GNU General Public License
26 * along with XBMC; see the file COPYING. If not, see
27 * <http://www.gnu.org/licenses/>.
36 #include "utils/StdString.h"
42 typedef uint32_t color_t;
44 class CGUIColorManager
47 CGUIColorManager(void);
48 virtual ~CGUIColorManager(void);
50 void Load(const CStdString &colorFile);
52 color_t GetColor(const CStdString &color) const;
57 bool LoadXML(CXBMCTinyXML &xmlDoc);
59 std::map<CStdString, color_t> m_colors;
60 typedef std::map<CStdString, color_t>::iterator iColor;
61 typedef std::map<CStdString, color_t>::const_iterator icColor;
68 extern CGUIColorManager g_colorManager;