#include "propframe.h"
#include "propedit.h"
#include "xmlhelpr.h"
+#include "editor.h"
enum
{
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)
{
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();