#include "wx/checklst.h"
#endif
+#include "wx/xml/xml.h"
+
IMPLEMENT_DYNAMIC_CLASS(wxCheckListBoxXmlHandler, wxXmlResourceHandler)
wxCheckListBoxXmlHandler::wxCheckListBoxXmlHandler()
wxObject *wxCheckListBoxXmlHandler::DoCreateResource()
{
- if (m_class == wxT("wxCheckListBox")
-#if WXWIN_COMPATIBILITY_2_4
- || m_class == wxT("wxCheckList")
-#endif
- )
+ if (m_class == wxT("wxCheckListBox"))
{
-#if WXWIN_COMPATIBILITY_2_4
- if (m_class == wxT("wxCheckList"))
- wxLogDebug(wxT("'wxCheckList' name is deprecated, use 'wxCheckListBox' instead."));
-#endif
// need to build the list of strings from children
m_insideBox = true;
CreateChildrenPrivately(NULL, GetParamNode(wxT("content")));
{ n = n->GetNext(); continue; }
// checking boolean is a bit ugly here (see GetBool() )
- wxString v = n->GetPropVal(wxT("checked"), wxEmptyString);
+ wxString v = n->GetAttribute(wxT("checked"), wxEmptyString);
v.MakeLower();
- if (v && v == wxT("1"))
+ if (v == wxT("1"))
control->Check( i, true );
i++;
bool wxCheckListBoxXmlHandler::CanHandle(wxXmlNode *node)
{
return (IsOfClass(node, wxT("wxCheckListBox")) ||
-#if WXWIN_COMPATIBILITY_2_4
- IsOfClass(node, wxT("wxCheckList")) ||
-#endif
(m_insideBox && node->GetName() == wxT("item")));
}