#include "edtree.h"
#include "edlist.h"
-static void ObjectMenuProc(wxMenu& menu, wxCommandEvent& event);
wxResourceManager *wxResourceManager::sm_currentResourceManager = NULL;
#if defined(__WXGTK__) || defined(__WXMOTIF__)
m_helpController->Initialize("dialoged");
#endif
- m_popupMenu = new wxMenu("", (wxFunction)ObjectMenuProc);
+ m_popupMenu = new wxMenu;
m_popupMenu->Append(OBJECT_MENU_EDIT, "Edit properties");
m_popupMenu->Append(OBJECT_MENU_DELETE, "Delete object");
{
wxConfig config("DialogEd", "wxWindows");
- config.Write("editorWindowX", m_resourceEditorWindowSize.x);
- config.Write("editorWindowY", m_resourceEditorWindowSize.y);
- config.Write("editorWindowWidth", m_resourceEditorWindowSize.width);
- config.Write("editorWindowHeight", m_resourceEditorWindowSize.height);
- config.Write("propertyWindowX", m_propertyWindowSize.x);
- config.Write("propertyWindowY", m_propertyWindowSize.y);
- config.Write("propertyWindowWidth", m_propertyWindowSize.width);
- config.Write("propertyWindowHeight", m_propertyWindowSize.height);
+ config.Write("editorWindowX", (long) m_resourceEditorWindowSize.x);
+ config.Write("editorWindowY", (long) m_resourceEditorWindowSize.y);
+ config.Write("editorWindowWidth", (long) m_resourceEditorWindowSize.width);
+ config.Write("editorWindowHeight", (long) m_resourceEditorWindowSize.height);
+ config.Write("propertyWindowX", (long) m_propertyWindowSize.x);
+ config.Write("propertyWindowY", (long) m_propertyWindowSize.y);
+ config.Write("propertyWindowWidth", (long) m_propertyWindowSize.width);
+ config.Write("propertyWindowHeight", (long) m_propertyWindowSize.height);
/*
wxWriteResource("DialogEd", "editorWindowX", m_resourceEditorWindowSize.x, m_optionsResourceFilename.GetData());
wxWriteResource("DialogEd", "editorWindowY", m_resourceEditorWindowSize.y, m_optionsResourceFilename.GetData());
}
else
{
- wxFrame *fr = m_editorFrame;
if (m_editorFrame->Close())
{
m_editorFrame = NULL;
wxItemResource *child = (wxItemResource *)node->Data();
return child->GetName();
- node = node->Next();
+ //node = node->Next();
}
return wxEmptyString;
}
}
}
- if (!Iconized())
+ if (!IsIconized())
{
int w, h;
GetSize(&w, &h);
}
// Popup menu callback
-void ObjectMenuProc(wxMenu& menu, wxCommandEvent& event)
+void ObjectMenuProc(wxMenu *menu, wxCommandEvent& event)
{
- wxWindow *data = (wxWindow *)menu.GetClientData();
+ wxWindow *data = (wxWindow *)menu->GetClientData();
if (!data)
return;