2 * yasli - Serialization Library.
3 * Copyright (C) 2007-2013 Evgeny Andreeshchev <eugene.andreeshchev@gmail.com>
4 * Alexander Kotliar <alexander.kotliar@gmail.com>
6 * This code is distributed under the MIT License:
7 * http://www.opensource.org/licenses/MIT
14 #include "Serialization/PropertyTree/Color.h"
15 #include "Serialization/PropertyTree/IDrawContext.h"
16 #include "Serialization/PropertyTree/Rect.h"
24 namespace yasli
{ struct IconXPM
; }
26 namespace property_tree
{
38 QImage
* getImageForIcon(const Icon
& icon
);
41 std::vector
<Color
> pixels
;
45 static bool parseXPM(RGBAImage
* out
, const yasli::IconXPM
& xpm
);
46 typedef std::map
<const char* const*, BitmapCache
> XPMToBitmap
;
47 XPMToBitmap xpmToImageMap_
;
48 typedef std::map
<yasli::string
, BitmapCache
> FilenameToBitmap
;
49 FilenameToBitmap filenameToImageMap_
;