X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4a61305d364dcf229395fb223daec31e2d6efcb4..df135587addaaa316f7ab4606815086ef133e846:/wxPython/contrib/dllwidget/dllwidget_.i diff --git a/wxPython/contrib/dllwidget/dllwidget_.i b/wxPython/contrib/dllwidget/dllwidget_.i index 37aa1781db..47c2f24645 100644 --- a/wxPython/contrib/dllwidget/dllwidget_.i +++ b/wxPython/contrib/dllwidget/dllwidget_.i @@ -14,7 +14,7 @@ %{ -#include "export.h" +#include "wxPython.h" #include "dllwidget.h" %} @@ -27,6 +27,13 @@ %extern windows.i %extern _defs.i +//---------------------------------------------------------------------- + +%{ + // Put some wx default wxChar* values into wxStrings. + static const wxString wxPyEmptyString(wxT("")); +%} + //--------------------------------------------------------------------------- /* @@ -82,8 +89,8 @@ class wxDllWidget : public wxPanel public: wxDllWidget(wxWindow *parent, wxWindowID id = -1, - const wxString& dllName = wxEmptyString, - const wxString& className = wxEmptyString, + const wxString& dllName = wxPyEmptyString, + const wxString& className = wxPyEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0); @@ -92,8 +99,8 @@ public: bool Ok(); - int SendCommand(int cmd, const wxString& param = wxEmptyString); - wxWindow* GetEmbeddedWindow(); + int SendCommand(int cmd, const wxString& param = wxPyEmptyString); + wxWindow* GetWidgetWindow(); static wxString GetDllExt(); }; @@ -102,9 +109,6 @@ public: %init %{ - wxClassInfo::CleanUpClasses(); - wxClassInfo::InitializeClasses(); - %}