wxMessageBox(msg, _("Warning"), wxOK);
}
-#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxItemResource, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxResourceTable, wxHashTable)
-#endif
wxItemResource::wxItemResource()
{
{
wxExprDatabase db;
+#ifdef __WXMAC__
+ FILE *fd = fopen(wxUnix2MacFilename(filename.fn_str()), "r");
+#else
FILE *fd = fopen(filename.fn_str(), "r");
+#endif
if (!fd)
return FALSE;
bool eof = FALSE;
if (useDefaults != 0)
dialogItem->SetResourceStyle(dialogItem->GetResourceStyle() | wxRESOURCE_USE_DEFAULTS);
- long id = 0;
+ int id = 0;
expr->GetAttributeValue(wxT("id"), id);
dialogItem->SetId(id);
return wxBitmap(item->GetValue1(), (int)item->GetValue2(), (int)item->GetValue3()) ;
#else
wxLogWarning(_("No XBM facility available!"));
-#endif
break;
+#endif
}
case wxBITMAP_TYPE_XPM_DATA:
{
return wxBitmap((char **)item->GetValue1());
#else
wxLogWarning(_("No XPM facility available!"));
-#endif
break;
+#endif
}
default:
{
return wxBitmap(name, bitmapType);
- break;
}
}
return wxNullBitmap;
return wxIcon((const char **)item->GetValue1(), (int)item->GetValue2(), (int)item->GetValue3());
#else
wxLogWarning(_("No XBM facility available!"));
-#endif
break;
+#endif
}
case wxBITMAP_TYPE_XPM_DATA:
{