X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f25881804583790351480098b50f4ce1b924e697..58ec225526177917a3806c6cd394ab56d18280e1:/src/xrc/xh_sizer.cpp?ds=sidebyside diff --git a/src/xrc/xh_sizer.cpp b/src/xrc/xh_sizer.cpp index bd56618d03..2420ff04eb 100644 --- a/src/xrc/xh_sizer.cpp +++ b/src/xrc/xh_sizer.cpp @@ -39,35 +39,35 @@ bool wxSizerXmlHandler::IsSizerNode(wxXmlNode *node) wxSizerXmlHandler::wxSizerXmlHandler() : wxXmlResourceHandler(), m_isInside(FALSE), m_parentSizer(NULL) { - ADD_STYLE(wxHORIZONTAL); - ADD_STYLE(wxVERTICAL); + XRC_ADD_STYLE(wxHORIZONTAL); + XRC_ADD_STYLE(wxVERTICAL); // and flags - ADD_STYLE(wxLEFT); - ADD_STYLE(wxRIGHT); - ADD_STYLE(wxTOP); - ADD_STYLE(wxBOTTOM); - ADD_STYLE(wxNORTH); - ADD_STYLE(wxSOUTH); - ADD_STYLE(wxEAST); - ADD_STYLE(wxWEST); - ADD_STYLE(wxALL); - - ADD_STYLE(wxGROW); - ADD_STYLE(wxEXPAND); - ADD_STYLE(wxSHAPED); - ADD_STYLE(wxSTRETCH_NOT); - - ADD_STYLE(wxALIGN_CENTER); - ADD_STYLE(wxALIGN_CENTRE); - ADD_STYLE(wxALIGN_LEFT); - ADD_STYLE(wxALIGN_TOP); - ADD_STYLE(wxALIGN_RIGHT); - ADD_STYLE(wxALIGN_BOTTOM); - ADD_STYLE(wxALIGN_CENTER_HORIZONTAL); - ADD_STYLE(wxALIGN_CENTRE_HORIZONTAL); - ADD_STYLE(wxALIGN_CENTER_VERTICAL); - ADD_STYLE(wxALIGN_CENTRE_VERTICAL); + XRC_ADD_STYLE(wxLEFT); + XRC_ADD_STYLE(wxRIGHT); + XRC_ADD_STYLE(wxTOP); + XRC_ADD_STYLE(wxBOTTOM); + XRC_ADD_STYLE(wxNORTH); + XRC_ADD_STYLE(wxSOUTH); + XRC_ADD_STYLE(wxEAST); + XRC_ADD_STYLE(wxWEST); + XRC_ADD_STYLE(wxALL); + + XRC_ADD_STYLE(wxGROW); + XRC_ADD_STYLE(wxEXPAND); + XRC_ADD_STYLE(wxSHAPED); + XRC_ADD_STYLE(wxSTRETCH_NOT); + + XRC_ADD_STYLE(wxALIGN_CENTER); + XRC_ADD_STYLE(wxALIGN_CENTRE); + XRC_ADD_STYLE(wxALIGN_LEFT); + XRC_ADD_STYLE(wxALIGN_TOP); + XRC_ADD_STYLE(wxALIGN_RIGHT); + XRC_ADD_STYLE(wxALIGN_BOTTOM); + XRC_ADD_STYLE(wxALIGN_CENTER_HORIZONTAL); + XRC_ADD_STYLE(wxALIGN_CENTRE_HORIZONTAL); + XRC_ADD_STYLE(wxALIGN_CENTER_VERTICAL); + XRC_ADD_STYLE(wxALIGN_CENTRE_VERTICAL); } @@ -137,9 +137,10 @@ wxObject *wxSizerXmlHandler::DoCreateResource() wxCHECK_MSG(m_parentSizer != NULL || ((IsOfClass(parentNode, wxT("wxPanel")) || + IsOfClass(parentNode, wxT("wxFrame")) || IsOfClass(parentNode, wxT("wxDialog"))) && parentNode->GetType() == wxXML_ELEMENT_NODE), NULL, - wxT("Incorrect use of sizer: parent is not 'wxDialog' or 'wxPanel'.")); + wxT("Incorrect use of sizer: parent is not 'wxDialog', 'wxFrame' or 'wxPanel'.")); if (m_class == wxT("wxBoxSizer")) sizer = new wxBoxSizer(GetStyle(wxT("orient"), wxHORIZONTAL));