X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9d41f689dc1b44455bc0fae01318e63dd4caf594..002ed9af8309d5baa1b2c32f1fd28160595e2fa7:/include/wx/stc/stc.h diff --git a/include/wx/stc/stc.h b/include/wx/stc/stc.h index b02b934cce..f70374ee2f 100644 --- a/include/wx/stc/stc.h +++ b/include/wx/stc/stc.h @@ -24,7 +24,7 @@ #include #include -#ifndef SWIG + #ifdef WXMAKINGDLL_STC #define WXDLLIMPEXP_STC WXEXPORT #elif defined(WXUSINGDLL) @@ -32,7 +32,6 @@ #else // not making nor using DLL #define WXDLLIMPEXP_STC #endif -#endif // SWIG // SWIG can't handle "#if" type of conditionals, only "#ifdef" @@ -1141,31 +1140,34 @@ class WXDLLIMPEXP_STC wxStyledTextEvent; //---------------------------------------------------------------------- -#ifndef SWIG class WXDLLIMPEXP_STC wxStyledTextCtrl : public wxControl { -#else -class wxStyledTextCtrl : public wxControl { -#endif public: #ifdef SWIG + %pythonAppend wxStyledTextCtrl "self._setOORInfo(self)" + %pythonAppend wxStyledTextCtrl() "" + wxStyledTextCtrl(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = wxPySTCNameStr); - %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" - + %name(PreStyledTextCtrl) wxStyledTextCtrl(); + #else wxStyledTextCtrl(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = wxSTCNameStr); + wxStyledTextCtrl() { m_swx = NULL; } + ~wxStyledTextCtrl(); + #endif + void Create(wxWindow *parent, wxWindowID id, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, long style = 0, + const wxString& name = wxSTCNameStr); -#ifndef SWIG - ~wxStyledTextCtrl(); -#endif //---------------------------------------------------------------------- // BEGIN generated section. The following code is automatically generated @@ -2344,11 +2346,7 @@ protected: //---------------------------------------------------------------------- -#ifndef SWIG class WXDLLIMPEXP_STC wxStyledTextEvent : public wxCommandEvent { -#else -class wxStyledTextEvent : public wxCommandEvent { -#endif public: wxStyledTextEvent(wxEventType commandType=0, int id=0); #ifndef SWIG