1 #ifndef FPIMAGELIST_H 2 #define FPIMAGELIST_H 3 4 #include <sdk.h> 5 #ifndef CB_PRECOMP 6 #include <wx/window.h> 7 #include <wx/imaglist.h> 8 #endif 9 #include <string> 10 #include <map> 11 12 #include "tokenf.h" 13 14 typedef std::map<std::string,int> StrIntMap; 15 16 class FPImageList 17 { 18 public: 19 FPImageList(int imSize); 20 virtual ~FPImageList(); GetImageList()21 wxImageList* GetImageList(){return m_pImlist;}; 22 int GetImageIdx(const std::string& name); 23 int GetTokenKindImageIdx(TokenF* token); 24 25 private: 26 void CreateImageList(int imSize); 27 28 wxImageList* m_pImlist; 29 StrIntMap m_ImgNr; 30 }; 31 32 #endif // FPIMAGELIST_H 33