- wxIcon *icon = new wxIcon("icon1", wxBITMAP_TYPE_ICO_RESOURCE);
- m_imageListNormal->Add(*icon);
- delete icon;
- icon = new wxIcon("icon2", wxBITMAP_TYPE_ICO_RESOURCE);
- m_imageListNormal->Add(*icon);
- delete icon;
- icon = new wxIcon("icon3", wxBITMAP_TYPE_ICO_RESOURCE);
- m_imageListNormal->Add(*icon);
- delete icon;
- icon = new wxIcon("icon4", wxBITMAP_TYPE_ICO_RESOURCE);
- m_imageListNormal->Add(*icon);
- delete icon;
- icon = new wxIcon("icon5", wxBITMAP_TYPE_ICO_RESOURCE);
- m_imageListNormal->Add(*icon);
- delete icon;
- icon = new wxIcon("icon6", wxBITMAP_TYPE_ICO_RESOURCE);
- m_imageListNormal->Add(*icon);
- delete icon;
- icon = new wxIcon("icon7", wxBITMAP_TYPE_ICO_RESOURCE);
- m_imageListNormal->Add(*icon);
- delete icon;
- icon = new wxIcon("icon8", wxBITMAP_TYPE_ICO_RESOURCE);
- m_imageListNormal->Add(*icon);
- delete icon;
- icon = new wxIcon("icon9", wxBITMAP_TYPE_ICO_RESOURCE);
- m_imageListNormal->Add(*icon);
- delete icon;
-
- icon = new wxIcon("iconsmall", wxBITMAP_TYPE_ICO_RESOURCE);
- m_imageListSmall->Add(*icon);
- delete icon;
+#ifdef __WXMSW__
+ m_imageListNormal->Add( wxIcon("icon1", wxBITMAP_TYPE_ICO_RESOURCE) );
+ m_imageListNormal->Add( wxIcon("icon2", wxBITMAP_TYPE_ICO_RESOURCE) );
+ m_imageListNormal->Add( wxIcon("icon3", wxBITMAP_TYPE_ICO_RESOURCE) );
+ m_imageListNormal->Add( wxIcon("icon4", wxBITMAP_TYPE_ICO_RESOURCE) );
+ m_imageListNormal->Add( wxIcon("icon5", wxBITMAP_TYPE_ICO_RESOURCE) );
+ m_imageListNormal->Add( wxIcon("icon6", wxBITMAP_TYPE_ICO_RESOURCE) );
+ m_imageListNormal->Add( wxIcon("icon7", wxBITMAP_TYPE_ICO_RESOURCE) );
+ m_imageListNormal->Add( wxIcon("icon8", wxBITMAP_TYPE_ICO_RESOURCE) );
+ m_imageListNormal->Add( wxIcon("icon9", wxBITMAP_TYPE_ICO_RESOURCE) );
+
+ m_imageListSmall->Add( wxIcon("iconsmall", wxBITMAP_TYPE_ICO_RESOURCE) );
+
+#else
+
+ #include "bitmaps/toolbrai.xpm"
+ m_imageListNormal->Add( wxIcon( toolbrai_xpm ) );
+ #include "bitmaps/toolchar.xpm"
+ m_imageListNormal->Add( wxIcon( toolchar_xpm ) );
+ #include "bitmaps/tooldata.xpm"
+ m_imageListNormal->Add( wxIcon( tooldata_xpm ) );
+ #include "bitmaps/toolnote.xpm"
+ m_imageListNormal->Add( wxIcon( toolnote_xpm ) );
+ #include "bitmaps/tooltodo.xpm"
+ m_imageListNormal->Add( wxIcon( tooltodo_xpm ) );
+ #include "bitmaps/toolchec.xpm"
+ m_imageListNormal->Add( wxIcon( toolchec_xpm ) );
+ #include "bitmaps/toolgame.xpm"
+ m_imageListNormal->Add( wxIcon( toolgame_xpm ) );
+ #include "bitmaps/tooltime.xpm"
+ m_imageListNormal->Add( wxIcon( tooltime_xpm ) );
+ #include "bitmaps/toolword.xpm"
+ m_imageListNormal->Add( wxIcon( toolword_xpm ) );
+
+ #include "bitmaps/small1.xpm"
+ m_imageListSmall->Add( wxIcon( small1_xpm) );
+
+#endif