#include "wx/filesys.h"
#include "wx/bitmap.h"
#include "wx/icon.h"
+#include "wx/artprov.h"
#include "wx/xrc/xml.h"
// Gets text from param and does some conversions:
// - replaces \n, \r, \t by respective chars (according to C syntax)
- // - replaces $ by & and $$ by $ (needed for $File => &File because of XML)
+ // - replaces _ by & and __ by _ (needed for _File => &File because of XML)
// - calls wxGetTranslations (unless disabled in wxXmlResource)
- wxString GetText(const wxString& param);
+ wxString GetText(const wxString& param, bool translate = TRUE);
// Returns the XRCID.
int GetID();
+ // Returns the wxArtID for a wxArtProvider-managed bitmap.
+ wxArtID GetStockID(const wxString& param);
+
+ // Returns the wxArtClient for a wxArtProvider-managed bitmap.
+ wxArtClient GetStockClient(const wxString& param);
+
// Returns the resource name.
wxString GetName();
#define wxTheXmlResource wxXmlResource::Get()
#define XMLID XRCID
#define XMLCTRL XRCCTRL
+#define GetXMLID GetXRCID
#endif // _WX_XMLRES_H_