/////////////////////////////////////////////////////////////////////////////
// Name: xh_bmp.cpp
-// Purpose: XML resource for wxBitmap and wxIcon
+// Purpose: XRC resource for wxBitmap and wxIcon
// Author: Vaclav Slavik
// Created: 2000/09/09
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_bmpbt.cpp
-// Purpose: XML resource for bitmap buttons
+// Purpose: XRC resource for bitmap buttons
// Author: Brian Gavin
// Created: 2000/09/09
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_bttn.cpp
-// Purpose: XML resource for buttons
+// Purpose: XRC resource for buttons
// Author: Vaclav Slavik
// Created: 2000/03/05
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_cald.cpp
-// Purpose: XML resource for wxCalendarCtrl
+// Purpose: XRC resource for wxCalendarCtrl
// Author: Brian Gavin
// Created: 2000/09/09
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_chckb.cpp
-// Purpose: XML resource for wxCheckBox
+// Purpose: XRC resource for wxCheckBox
// Author: Bob Mitchell
// Created: 2000/03/21
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_chckl.cpp
-// Purpose: XML resource for wxCheckList
+// Purpose: XRC resource for wxCheckList
// Author: Bob Mitchell
// Created: 2000/03/21
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_choic.cpp
-// Purpose: XML resource for wxChoice
+// Purpose: XRC resource for wxChoice
// Author: Bob Mitchell
// Created: 2000/03/21
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_combo.cpp
-// Purpose: XML resource for wxRadioBox
+// Purpose: XRC resource for wxRadioBox
// Author: Bob Mitchell
// Created: 2000/03/21
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_dlg.cpp
-// Purpose: XML resource for dialogs
+// Purpose: XRC resource for dialogs
// Author: Vaclav Slavik
// Created: 2000/03/05
// RCS-ID: $Id$
{
wxDialog *dlg = wxDynamicCast(m_instance, wxDialog);
- wxASSERT_MSG(dlg, _("XML resource: Cannot create dialog without instance."));
+ wxASSERT_MSG(dlg, _("XRC resource: Cannot create dialog without instance."));
dlg->Create(m_parentAsWindow,
GetID(),
/////////////////////////////////////////////////////////////////////////////
// Name: xh_frame.cpp
-// Purpose: XML resource for dialogs
+// Purpose: XRC resource for dialogs
// Author: Vaclav Slavik & Aleks.
// Created: 2000/03/05
// RCS-ID: $Id$
{
wxFrame *frame = wxDynamicCast(m_instance, wxFrame);
- wxASSERT_MSG(frame, _("XML resource: Cannot create dialog without instance."));
+ wxASSERT_MSG(frame, _("XRC resource: Cannot create dialog without instance."));
frame->Create(m_parentAsWindow,
GetID(),
/////////////////////////////////////////////////////////////////////////////
// Name: xh_gauge.cpp
-// Purpose: XML resource for wxGauge
+// Purpose: XRC resource for wxGauge
// Author: Bob Mitchell
// Created: 2000/03/21
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_html.cpp
-// Purpose: XML resource for wxHtmlWindow
+// Purpose: XRC resource for wxHtmlWindow
// Author: Bob Mitchell
// Created: 2000/03/21
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_listb.cpp
-// Purpose: XML resource for wxListBox
+// Purpose: XRC resource for wxListBox
// Author: Bob Mitchell & Vaclav Slavik
// Created: 2000/07/29
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_listc.cpp
-// Purpose: XML resource for wxListCtrl
+// Purpose: XRC resource for wxListCtrl
// Author: Brian Gavin
// Created: 2000/09/09
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_menu.cpp
-// Purpose: XML resource for menus and menubars
+// Purpose: XRC resource for menus and menubars
// Author: Vaclav Slavik
// Created: 2000/03/05
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_notbk.cpp
-// Purpose: XML resource for wxNotebook
+// Purpose: XRC resource for wxNotebook
// Author: Vaclav Slavik
// Created: 2000/03/21
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_panel.cpp
-// Purpose: XML resource for panels
+// Purpose: XRC resource for panels
// Author: Vaclav Slavik
// Created: 2000/03/05
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_radbt.cpp
-// Purpose: XML resource for wxRadioButton
+// Purpose: XRC resource for wxRadioButton
// Author: Bob Mitchell
// Created: 2000/03/21
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_radbx.cpp
-// Purpose: XML resource for wxRadioBox
+// Purpose: XRC resource for wxRadioBox
// Author: Bob Mitchell
// Created: 2000/03/21
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_scrol.cpp
-// Purpose: XML resource for wxScrollBar
+// Purpose: XRC resource for wxScrollBar
// Author: Brian Gavin
// Created: 2000/09/09
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_sizer.cpp
-// Purpose: XML resource for wxBoxSizer
+// Purpose: XRC resource for wxBoxSizer
// Author: Vaclav Slavik
// Created: 2000/03/21
// RCS-ID: $Id$
else if (m_class == wxT("spacer"))
{
- wxCHECK_MSG(m_parentSizer, NULL, wxT("Incorrect syntax of XML resource: spacer not within sizer!"));
+ wxCHECK_MSG(m_parentSizer, NULL, wxT("Incorrect syntax of XRC resource: spacer not within sizer!"));
wxSize sz = GetSize();
m_parentSizer->Add(sz.x, sz.y,
GetLong(wxT("option")), GetStyle(wxT("flag")), GetDimension(wxT("border")));
/////////////////////////////////////////////////////////////////////////////
// Name: xh_slidr.cpp
-// Purpose: XML resource for wxSlider
+// Purpose: XRC resource for wxSlider
// Author: Bob Mitchell
// Created: 2000/03/21
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_spin.cpp
-// Purpose: XML resource for wxSpinButton
+// Purpose: XRC resource for wxSpinButton
// Author: Bob Mitchell
// Created: 2000/03/21
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_stbmp.cpp
-// Purpose: XML resource for wxStaticBitmap
+// Purpose: XRC resource for wxStaticBitmap
// Author: Vaclav Slavik
// Created: 2000/04/22
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_stbox.cpp
-// Purpose: XML resource for wxStaticBox
+// Purpose: XRC resource for wxStaticBox
// Author: Brian Gavin
// Created: 2000/09/09
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_stbox.cpp
-// Purpose: XML resource for wxStaticLine
+// Purpose: XRC resource for wxStaticLine
// Author: Brian Gavin
// Created: 2000/09/09
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_sttxt.cpp
-// Purpose: XML resource for wxStaticText
+// Purpose: XRC resource for wxStaticText
// Author: Bob Mitchell
// Created: 2000/03/21
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_text.cpp
-// Purpose: XML resource for wxTextCtrl
+// Purpose: XRC resource for wxTextCtrl
// Author: Aleksandras Gluchovas
// Created: 2000/03/21
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_toolb.cpp
-// Purpose: XML resource for wxBoxSizer
+// Purpose: XRC resource for wxBoxSizer
// Author: Vaclav Slavik
// Created: 2000/08/11
// RCS-ID: $Id$
{
if (m_class == wxT("tool"))
{
- wxCHECK_MSG(m_toolbar, NULL, wxT("Incorrect syntax of XML resource: tool not within a toolbar!"));
+ wxCHECK_MSG(m_toolbar, NULL, wxT("Incorrect syntax of XRC resource: tool not within a toolbar!"));
m_toolbar->AddTool(GetID(),
GetBitmap(wxT("bitmap")),
GetBitmap(wxT("bitmap2")),
else if (m_class == wxT("separator"))
{
- wxCHECK_MSG(m_toolbar, NULL, wxT("Incorrect syntax of XML resource: separator not within a toolbar!"));
+ wxCHECK_MSG(m_toolbar, NULL, wxT("Incorrect syntax of XRC resource: separator not within a toolbar!"));
m_toolbar->AddSeparator();
return m_toolbar; // must return non-NULL
}
/////////////////////////////////////////////////////////////////////////////
// Name: xh_tree.cpp
-// Purpose: XML resource for wxTreeCtrl
+// Purpose: XRC resource for wxTreeCtrl
// Author: Brian Gavin
// Created: 2000/09/09
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_unkwn.cpp
-// Purpose: XML resource for unknown widget
+// Purpose: XRC resource for unknown widget
// Author: Vaclav Slavik
// Created: 2000/09/09
// RCS-ID: $Id$
- handle unknown encodings
- process all elements, including CDATA
- - XML resources should automatically select desired encoding based on
+ - XRC resources should automatically select desired encoding based on
runtime environment (?) (would need BIN and BINZ formats modification,
too)
/////////////////////////////////////////////////////////////////////////////
// Name: xmlres.cpp
-// Purpose: XML resources
+// Purpose: XRC resources
// Author: Vaclav Slavik
// Created: 2000/03/05
// RCS-ID: $Id$
}
else if (m_data[i].Doc->GetRoot()->GetName() != wxT("resource"))
{
- wxLogError(_("Invalid XML resource '%s': doesn't have root node 'resource'."), m_data[i].File.c_str());
+ wxLogError(_("Invalid XRC resource '%s': doesn't have root node 'resource'."), m_data[i].File.c_str());
wxDELETE(m_data[i].Doc);
}
else
}
}
- wxLogError(_("XML resource '%s' (class '%s') not found!"),
+ wxLogError(_("XRC resource '%s' (class '%s') not found!"),
name.c_str(), classname.c_str());
return NULL;
}
const wxChar *dt;
wxChar amp_char;
- // VS: First version of XML resources used $ instead of & (which is illegal in XML),
+ // VS: First version of XRC resources used $ instead of & (which is illegal in XML),
// but later I realized that '_' fits this purpose much better (because
// &File means "File with F underlined").
if (m_resource->CompareVersion(2,3,0,1) < 0)
if (v.Length() != 7 || v[0u] != wxT('#') ||
wxSscanf(v.c_str(), wxT("#%lX"), &tmp) != 1)
{
- wxLogError(_("XML resource: Incorrect colour specification '%s' for property '%s'."),
+ wxLogError(_("XRC resource: Incorrect colour specification '%s' for property '%s'."),
v.c_str(), param.c_str());
return wxNullColour;
}
wxFSFile *fsfile = GetCurFileSystem().OpenFile(name);
if (fsfile == NULL)
{
- wxLogError(_("XML resource: Cannot create bitmap from '%s'."), param.c_str());
+ wxLogError(_("XRC resource: Cannot create bitmap from '%s'."), param.c_str());
return wxNullBitmap;
}
wxImage img(*(fsfile->GetStream()));
#endif
if (!img.Ok())
{
- wxLogError(_("XML resource: Cannot create bitmap from '%s'."), param.c_str());
+ wxLogError(_("XRC resource: Cannot create bitmap from '%s'."), param.c_str());
return wxNullBitmap;
}
if (!(size == wxDefaultSize)) img.Rescale(size.x, size.y);
/////////////////////////////////////////////////////////////////////////////
// Name: xh_bmp.cpp
-// Purpose: XML resource for wxBitmap and wxIcon
+// Purpose: XRC resource for wxBitmap and wxIcon
// Author: Vaclav Slavik
// Created: 2000/09/09
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_bmpbt.cpp
-// Purpose: XML resource for bitmap buttons
+// Purpose: XRC resource for bitmap buttons
// Author: Brian Gavin
// Created: 2000/09/09
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_bttn.cpp
-// Purpose: XML resource for buttons
+// Purpose: XRC resource for buttons
// Author: Vaclav Slavik
// Created: 2000/03/05
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_cald.cpp
-// Purpose: XML resource for wxCalendarCtrl
+// Purpose: XRC resource for wxCalendarCtrl
// Author: Brian Gavin
// Created: 2000/09/09
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_chckb.cpp
-// Purpose: XML resource for wxCheckBox
+// Purpose: XRC resource for wxCheckBox
// Author: Bob Mitchell
// Created: 2000/03/21
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_chckl.cpp
-// Purpose: XML resource for wxCheckList
+// Purpose: XRC resource for wxCheckList
// Author: Bob Mitchell
// Created: 2000/03/21
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_choic.cpp
-// Purpose: XML resource for wxChoice
+// Purpose: XRC resource for wxChoice
// Author: Bob Mitchell
// Created: 2000/03/21
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_combo.cpp
-// Purpose: XML resource for wxRadioBox
+// Purpose: XRC resource for wxRadioBox
// Author: Bob Mitchell
// Created: 2000/03/21
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_dlg.cpp
-// Purpose: XML resource for dialogs
+// Purpose: XRC resource for dialogs
// Author: Vaclav Slavik
// Created: 2000/03/05
// RCS-ID: $Id$
{
wxDialog *dlg = wxDynamicCast(m_instance, wxDialog);
- wxASSERT_MSG(dlg, _("XML resource: Cannot create dialog without instance."));
+ wxASSERT_MSG(dlg, _("XRC resource: Cannot create dialog without instance."));
dlg->Create(m_parentAsWindow,
GetID(),
/////////////////////////////////////////////////////////////////////////////
// Name: xh_frame.cpp
-// Purpose: XML resource for dialogs
+// Purpose: XRC resource for dialogs
// Author: Vaclav Slavik & Aleks.
// Created: 2000/03/05
// RCS-ID: $Id$
{
wxFrame *frame = wxDynamicCast(m_instance, wxFrame);
- wxASSERT_MSG(frame, _("XML resource: Cannot create dialog without instance."));
+ wxASSERT_MSG(frame, _("XRC resource: Cannot create dialog without instance."));
frame->Create(m_parentAsWindow,
GetID(),
/////////////////////////////////////////////////////////////////////////////
// Name: xh_gauge.cpp
-// Purpose: XML resource for wxGauge
+// Purpose: XRC resource for wxGauge
// Author: Bob Mitchell
// Created: 2000/03/21
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_html.cpp
-// Purpose: XML resource for wxHtmlWindow
+// Purpose: XRC resource for wxHtmlWindow
// Author: Bob Mitchell
// Created: 2000/03/21
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_listb.cpp
-// Purpose: XML resource for wxListBox
+// Purpose: XRC resource for wxListBox
// Author: Bob Mitchell & Vaclav Slavik
// Created: 2000/07/29
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_listc.cpp
-// Purpose: XML resource for wxListCtrl
+// Purpose: XRC resource for wxListCtrl
// Author: Brian Gavin
// Created: 2000/09/09
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_menu.cpp
-// Purpose: XML resource for menus and menubars
+// Purpose: XRC resource for menus and menubars
// Author: Vaclav Slavik
// Created: 2000/03/05
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_notbk.cpp
-// Purpose: XML resource for wxNotebook
+// Purpose: XRC resource for wxNotebook
// Author: Vaclav Slavik
// Created: 2000/03/21
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_panel.cpp
-// Purpose: XML resource for panels
+// Purpose: XRC resource for panels
// Author: Vaclav Slavik
// Created: 2000/03/05
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_radbt.cpp
-// Purpose: XML resource for wxRadioButton
+// Purpose: XRC resource for wxRadioButton
// Author: Bob Mitchell
// Created: 2000/03/21
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_radbx.cpp
-// Purpose: XML resource for wxRadioBox
+// Purpose: XRC resource for wxRadioBox
// Author: Bob Mitchell
// Created: 2000/03/21
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_scrol.cpp
-// Purpose: XML resource for wxScrollBar
+// Purpose: XRC resource for wxScrollBar
// Author: Brian Gavin
// Created: 2000/09/09
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_sizer.cpp
-// Purpose: XML resource for wxBoxSizer
+// Purpose: XRC resource for wxBoxSizer
// Author: Vaclav Slavik
// Created: 2000/03/21
// RCS-ID: $Id$
else if (m_class == wxT("spacer"))
{
- wxCHECK_MSG(m_parentSizer, NULL, wxT("Incorrect syntax of XML resource: spacer not within sizer!"));
+ wxCHECK_MSG(m_parentSizer, NULL, wxT("Incorrect syntax of XRC resource: spacer not within sizer!"));
wxSize sz = GetSize();
m_parentSizer->Add(sz.x, sz.y,
GetLong(wxT("option")), GetStyle(wxT("flag")), GetDimension(wxT("border")));
/////////////////////////////////////////////////////////////////////////////
// Name: xh_slidr.cpp
-// Purpose: XML resource for wxSlider
+// Purpose: XRC resource for wxSlider
// Author: Bob Mitchell
// Created: 2000/03/21
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_spin.cpp
-// Purpose: XML resource for wxSpinButton
+// Purpose: XRC resource for wxSpinButton
// Author: Bob Mitchell
// Created: 2000/03/21
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_stbmp.cpp
-// Purpose: XML resource for wxStaticBitmap
+// Purpose: XRC resource for wxStaticBitmap
// Author: Vaclav Slavik
// Created: 2000/04/22
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_stbox.cpp
-// Purpose: XML resource for wxStaticBox
+// Purpose: XRC resource for wxStaticBox
// Author: Brian Gavin
// Created: 2000/09/09
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_stbox.cpp
-// Purpose: XML resource for wxStaticLine
+// Purpose: XRC resource for wxStaticLine
// Author: Brian Gavin
// Created: 2000/09/09
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_sttxt.cpp
-// Purpose: XML resource for wxStaticText
+// Purpose: XRC resource for wxStaticText
// Author: Bob Mitchell
// Created: 2000/03/21
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_text.cpp
-// Purpose: XML resource for wxTextCtrl
+// Purpose: XRC resource for wxTextCtrl
// Author: Aleksandras Gluchovas
// Created: 2000/03/21
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_toolb.cpp
-// Purpose: XML resource for wxBoxSizer
+// Purpose: XRC resource for wxBoxSizer
// Author: Vaclav Slavik
// Created: 2000/08/11
// RCS-ID: $Id$
{
if (m_class == wxT("tool"))
{
- wxCHECK_MSG(m_toolbar, NULL, wxT("Incorrect syntax of XML resource: tool not within a toolbar!"));
+ wxCHECK_MSG(m_toolbar, NULL, wxT("Incorrect syntax of XRC resource: tool not within a toolbar!"));
m_toolbar->AddTool(GetID(),
GetBitmap(wxT("bitmap")),
GetBitmap(wxT("bitmap2")),
else if (m_class == wxT("separator"))
{
- wxCHECK_MSG(m_toolbar, NULL, wxT("Incorrect syntax of XML resource: separator not within a toolbar!"));
+ wxCHECK_MSG(m_toolbar, NULL, wxT("Incorrect syntax of XRC resource: separator not within a toolbar!"));
m_toolbar->AddSeparator();
return m_toolbar; // must return non-NULL
}
/////////////////////////////////////////////////////////////////////////////
// Name: xh_tree.cpp
-// Purpose: XML resource for wxTreeCtrl
+// Purpose: XRC resource for wxTreeCtrl
// Author: Brian Gavin
// Created: 2000/09/09
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: xh_unkwn.cpp
-// Purpose: XML resource for unknown widget
+// Purpose: XRC resource for unknown widget
// Author: Vaclav Slavik
// Created: 2000/09/09
// RCS-ID: $Id$
- handle unknown encodings
- process all elements, including CDATA
- - XML resources should automatically select desired encoding based on
+ - XRC resources should automatically select desired encoding based on
runtime environment (?) (would need BIN and BINZ formats modification,
too)
/////////////////////////////////////////////////////////////////////////////
// Name: xmlres.cpp
-// Purpose: XML resources
+// Purpose: XRC resources
// Author: Vaclav Slavik
// Created: 2000/03/05
// RCS-ID: $Id$
}
else if (m_data[i].Doc->GetRoot()->GetName() != wxT("resource"))
{
- wxLogError(_("Invalid XML resource '%s': doesn't have root node 'resource'."), m_data[i].File.c_str());
+ wxLogError(_("Invalid XRC resource '%s': doesn't have root node 'resource'."), m_data[i].File.c_str());
wxDELETE(m_data[i].Doc);
}
else
}
}
- wxLogError(_("XML resource '%s' (class '%s') not found!"),
+ wxLogError(_("XRC resource '%s' (class '%s') not found!"),
name.c_str(), classname.c_str());
return NULL;
}
const wxChar *dt;
wxChar amp_char;
- // VS: First version of XML resources used $ instead of & (which is illegal in XML),
+ // VS: First version of XRC resources used $ instead of & (which is illegal in XML),
// but later I realized that '_' fits this purpose much better (because
// &File means "File with F underlined").
if (m_resource->CompareVersion(2,3,0,1) < 0)
if (v.Length() != 7 || v[0u] != wxT('#') ||
wxSscanf(v.c_str(), wxT("#%lX"), &tmp) != 1)
{
- wxLogError(_("XML resource: Incorrect colour specification '%s' for property '%s'."),
+ wxLogError(_("XRC resource: Incorrect colour specification '%s' for property '%s'."),
v.c_str(), param.c_str());
return wxNullColour;
}
wxFSFile *fsfile = GetCurFileSystem().OpenFile(name);
if (fsfile == NULL)
{
- wxLogError(_("XML resource: Cannot create bitmap from '%s'."), param.c_str());
+ wxLogError(_("XRC resource: Cannot create bitmap from '%s'."), param.c_str());
return wxNullBitmap;
}
wxImage img(*(fsfile->GetStream()));
#endif
if (!img.Ok())
{
- wxLogError(_("XML resource: Cannot create bitmap from '%s'."), param.c_str());
+ wxLogError(_("XRC resource: Cannot create bitmap from '%s'."), param.c_str());
return wxNullBitmap;
}
if (!(size == wxDefaultSize)) img.Rescale(size.x, size.y);