#endif
#include "wx/wx.h"
-#include "wx/xml/xml.h"
-#include "wx/xml/xmlres.h"
+#include "wx/xrc/xml.h"
+#include "wx/xrc/xmlres.h"
#include "wx/splitter.h"
#include "wx/config.h"
#include "wx/dir.h"
ID_NEWMENU,
ID_NEWMENUBAR,
ID_NEWTOOLBAR,
- ID_NEWNODE = wxID_HIGHEST + 10000, // safely out of XMLID range :)
+ ID_NEWNODE = wxID_HIGHEST + 10000, // safely out of XRCID range :)
ID_NEWSYBNODE = ID_NEWNODE + 20000
};
m_Resource = new wxXmlRcEditDocument;
m_Modified = FALSE;
- if (!m_Resource->Load(filename))
+ if (!m_Resource->Load(filename, wxLocale::GetSystemEncodingName()))
{
delete m_Resource;
m_Resource = NULL;
wxString s;
if (m_Modified) s << _T("* ");
s << _("wxrcedit");
- if (!m_FileName)
+ if (m_FileName != "")
s << _T(" - ") << wxFileNameFromPath(m_FileName);
SetTitle(s);
}