Source-highlight Qt Library
|
00001 /* 00002 * Copyright (C) 2008-2010 Lorenzo Bettini, http://www.lorenzobettini.it 00003 * License: See COPYING file that comes with this distribution 00004 */ 00005 00006 #ifndef QTCOLORMAP_H_ 00007 #define QTCOLORMAP_H_ 00008 00009 #include <map> 00010 #include <string> 00011 00012 namespace srchiliteqt { 00013 00018 class QtColorMap : public std::map<std::string, std::string> { 00019 public: 00020 QtColorMap(); 00021 ~QtColorMap(); 00022 00030 std::string getColor(const std::string &color); 00031 }; 00032 00040 class QtColorMapRGB : public std::map<std::string, std::string> { 00041 public: 00042 QtColorMapRGB(); 00043 ~QtColorMapRGB(); 00044 00053 std::string getColor(const std::string &color); 00054 }; 00055 00056 } 00057 00058 #endif /* QTCOLORMAP_H_ */