+ wxNode *node = item->GetChildren().First();
+ while (node)
+ {
+ wxItemResource *child = (wxItemResource *)node->Data();
+ stream << " bitmap = [";
+
+ char buf[400];
+ strcpy(buf, child->GetName());
+#ifdef __WXMSW__
+ wxDos2UnixFilename(buf);
+#endif
+
+ stream << "'" << buf << "', ";
+
+ int bitmapType = (int)child->GetValue1();
+ switch (bitmapType)
+ {
+ case wxBITMAP_TYPE_XBM_DATA:
+ {
+ stream << "wxBITMAP_TYPE_XBM_DATA";
+ break;
+ }
+ case wxBITMAP_TYPE_XPM_DATA:
+ {
+ stream << "wxBITMAP_TYPE_XPM_DATA";
+ break;
+ }
+ case wxBITMAP_TYPE_XBM:
+ {
+ stream << "wxBITMAP_TYPE_XBM";
+ break;
+ }
+ case wxBITMAP_TYPE_XPM:
+ {
+ stream << "wxBITMAP_TYPE_XPM";
+ break;
+ }
+ case wxBITMAP_TYPE_BMP:
+ {
+ stream << "wxBITMAP_TYPE_BMP";
+ break;
+ }
+ case wxBITMAP_TYPE_BMP_RESOURCE:
+ {
+ stream << "wxBITMAP_TYPE_BMP_RESOURCE";
+ break;
+ }
+ case wxBITMAP_TYPE_GIF:
+ {
+ stream << "wxBITMAP_TYPE_GIF";
+ break;
+ }
+ case wxBITMAP_TYPE_TIF:
+ {
+ stream << "wxBITMAP_TYPE_TIF";
+ break;
+ }
+ case wxBITMAP_TYPE_ICO:
+ {
+ stream << "wxBITMAP_TYPE_ICO";
+ break;
+ }
+ case wxBITMAP_TYPE_ICO_RESOURCE:
+ {
+ stream << "wxBITMAP_TYPE_ICO_RESOURCE";
+ break;
+ }
+ case wxBITMAP_TYPE_CUR:
+ {
+ stream << "wxBITMAP_TYPE_CUR";
+ break;
+ }
+ case wxBITMAP_TYPE_CUR_RESOURCE:
+ {
+ stream << "wxBITMAP_TYPE_CUR_RESOURCE";
+ break;
+ }
+ default:
+ case wxBITMAP_TYPE_ANY:
+ {
+ stream << "wxBITMAP_TYPE_ANY";
+ break;
+ }
+ }
+ stream << ", ";
+ int platform = child->GetValue2();
+ switch (platform)
+ {
+ case RESOURCE_PLATFORM_WINDOWS:
+ {
+ stream << "'WINDOWS'";
+ break;
+ }
+ case RESOURCE_PLATFORM_X:
+ {
+ stream << "'X'";
+ break;
+ }
+ case RESOURCE_PLATFORM_MAC:
+ {
+ stream << "'MAC'";
+ break;
+ }
+ case RESOURCE_PLATFORM_ANY:
+ {
+ stream << "'ANY'";
+ break;
+ }
+ }
+ int noColours = (int)child->GetValue3();
+ if (noColours > 0)
+ stream << ", " << noColours;
+
+ stream << "]";
+
+ if (node->Next())
+ stream << ",\\\n";
+
+ node = node->Next();