X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12d9e30820444b48882ab9e29139611b99a84495..01e4ec19805f0decf6adde30a9f77b03340d60b5:/contrib/utils/wxrcedit/propedit.cpp diff --git a/contrib/utils/wxrcedit/propedit.cpp b/contrib/utils/wxrcedit/propedit.cpp index 2a3e03ff6a..a8029088ee 100644 --- a/contrib/utils/wxrcedit/propedit.cpp +++ b/contrib/utils/wxrcedit/propedit.cpp @@ -18,10 +18,11 @@ #endif #include "wx/wx.h" -#include "wx/xml/xml.h" +#include "wx/xrc/xml.h" #include "propframe.h" #include "propedit.h" #include "xmlhelpr.h" +#include "editor.h" enum { @@ -44,11 +45,15 @@ void PropEditCtrl::OnButtonDetails(wxCommandEvent& event) void PropEditCtrl::OnButtonClear(wxCommandEvent& event) { Clear(); + EditorFrame::Get()->NotifyChanged(CHANGED_PROPS); } void PropEditCtrl::BeginEdit(const wxRect& rect, wxTreeItemId ti) { + m_PropInfo = &(((PETreeData*)m_TreeCtrl->GetItemData(ti))->PropInfo); + m_TreeItem = ti; + m_CanSave = FALSE; if (!m_Created) { @@ -68,9 +73,6 @@ void PropEditCtrl::BeginEdit(const wxRect& rect, wxTreeItemId ti) m_TheCtrl->SetFocus(); - m_PropInfo = &(((PETreeData*)m_TreeCtrl->GetItemData(ti))->PropInfo); - m_TreeItem = ti; - SetSize(rect.x, rect.y, rect.width, rect.height); Show(TRUE); ReadValue();