]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/utils/wxrcedit/propedit.cpp
Typos fixed and further clarification of the Python situation on Panther
[wxWidgets.git] / contrib / utils / wxrcedit / propedit.cpp
index 2a3e03ff6a24238f87cd2c9492ed44ade0da36e0..288dd3ee6c10f6fa2dd5ebfaf82e74f3db163d74 100644 (file)
@@ -22,6 +22,7 @@
 #include "propframe.h"
 #include "propedit.h"
 #include "xmlhelpr.h"
+#include "editor.h"
 
 enum
 {
@@ -36,19 +37,23 @@ BEGIN_EVENT_TABLE(PropEditCtrl, wxPanel)
     EVT_BUTTON(ID_DETAILS, PropEditCtrl::OnButtonDetails)
 END_EVENT_TABLE()
 
-void PropEditCtrl::OnButtonDetails(wxCommandEvent& event)
+void PropEditCtrl::OnButtonDetails(wxCommandEvent& WXUNUSED(event))
 {
     OnDetails();
 }
 
-void PropEditCtrl::OnButtonClear(wxCommandEvent& event)
+void PropEditCtrl::OnButtonClear(wxCommandEvent& WXUNUSED(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();