#include "wx/intl.h"
#endif
+#include "wx/listctrl.h"
+
#if wxUSE_RADIOBTN
#include "wx/radiobut.h"
#endif
{
wxExprDatabase db;
-#if defined(__WXMAC__) && !defined(__UNIX__)
- FILE *fd = fopen(wxUnix2MacFilename(filename.fn_str()), "r");
-#else
FILE *fd = wxFopen(filename, _T("r"));
-#endif
if (!fd)
return FALSE;
bool eof = FALSE;
}
case wxBITMAP_TYPE_XPM_DATA:
{
-#if (defined(__WXGTK__)) || (defined(__WXMSW__) && wxUSE_XPM_IN_MSW)
wxItemResource *item = table->FindResource(name);
if (!item)
{
return wxNullBitmap;
}
return wxBitmap((char **)item->GetValue1());
-#else
- wxLogWarning(_("No XPM facility available!"));
- break;
-#endif
}
default:
{
{
// *** XPM ICON NOT YET IMPLEMENTED IN WXWINDOWS ***
/*
- #if (defined(__WXGTK__)) || (defined(__WXMSW__) && wxUSE_XPM_IN_MSW)
wxItemResource *item = table->FindResource(name);
if (!item)
{
return NULL;
}
return wxIcon((char **)item->GetValue1());
- #else
- wxLogWarning(_("No XPM facility available!"));
- #endif
*/
wxLogWarning(_("No XPM icon facility available!"));
break;
}
}
+#if wxUSE_MENUS
+
wxMenu *wxResourceCreateMenu(wxItemResource *item)
{
wxMenu *menu = new wxMenu;
return (wxMenu *) NULL;
}
+#endif // wxUSE_MENUS
+
// Global equivalents (so don't have to refer to default table explicitly)
bool wxResourceParseData(const wxString& resource, wxResourceTable *table)
{