Patch #826420, and also adapted to new SWIG
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24359 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
#include <wx/wx.h>
|
#include <wx/wx.h>
|
||||||
#include <wx/dnd.h>
|
#include <wx/dnd.h>
|
||||||
|
|
||||||
#ifndef SWIG
|
|
||||||
#ifdef WXMAKINGDLL_STC
|
#ifdef WXMAKINGDLL_STC
|
||||||
#define WXDLLIMPEXP_STC WXEXPORT
|
#define WXDLLIMPEXP_STC WXEXPORT
|
||||||
#elif defined(WXUSINGDLL)
|
#elif defined(WXUSINGDLL)
|
||||||
@@ -32,7 +32,6 @@
|
|||||||
#else // not making nor using DLL
|
#else // not making nor using DLL
|
||||||
#define WXDLLIMPEXP_STC
|
#define WXDLLIMPEXP_STC
|
||||||
#endif
|
#endif
|
||||||
#endif // SWIG
|
|
||||||
|
|
||||||
|
|
||||||
// SWIG can't handle "#if" type of conditionals, only "#ifdef"
|
// SWIG can't handle "#if" type of conditionals, only "#ifdef"
|
||||||
@@ -1141,32 +1140,35 @@ class WXDLLIMPEXP_STC wxStyledTextEvent;
|
|||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
#ifndef SWIG
|
|
||||||
class WXDLLIMPEXP_STC wxStyledTextCtrl : public wxControl {
|
class WXDLLIMPEXP_STC wxStyledTextCtrl : public wxControl {
|
||||||
#else
|
|
||||||
class wxStyledTextCtrl : public wxControl {
|
|
||||||
#endif
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
#ifdef SWIG
|
#ifdef SWIG
|
||||||
|
%addtofunc wxStyledTextCtrl "self._setOORInfo(self)"
|
||||||
|
%addtofunc wxStyledTextCtrl() ""
|
||||||
|
|
||||||
wxStyledTextCtrl(wxWindow *parent, wxWindowID id,
|
wxStyledTextCtrl(wxWindow *parent, wxWindowID id,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize, long style = 0,
|
const wxSize& size = wxDefaultSize, long style = 0,
|
||||||
const wxString& name = wxPySTCNameStr);
|
const wxString& name = wxPySTCNameStr);
|
||||||
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
|
%name(PreStyledTextCtrl) wxStyledTextCtrl();
|
||||||
|
|
||||||
#else
|
#else
|
||||||
wxStyledTextCtrl(wxWindow *parent, wxWindowID id,
|
wxStyledTextCtrl(wxWindow *parent, wxWindowID id,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize, long style = 0,
|
const wxSize& size = wxDefaultSize, long style = 0,
|
||||||
const wxString& name = wxSTCNameStr);
|
const wxString& name = wxSTCNameStr);
|
||||||
#endif
|
wxStyledTextCtrl() { m_swx = NULL; }
|
||||||
|
|
||||||
|
|
||||||
#ifndef SWIG
|
|
||||||
~wxStyledTextCtrl();
|
~wxStyledTextCtrl();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void Create(wxWindow *parent, wxWindowID id,
|
||||||
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
|
const wxSize& size = wxDefaultSize, long style = 0,
|
||||||
|
const wxString& name = wxSTCNameStr);
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
// BEGIN generated section. The following code is automatically generated
|
// BEGIN generated section. The following code is automatically generated
|
||||||
// by gen_iface.py. Do not edit this file. Edit stc.h.in instead
|
// by gen_iface.py. Do not edit this file. Edit stc.h.in instead
|
||||||
@@ -2344,11 +2346,7 @@ protected:
|
|||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
#ifndef SWIG
|
|
||||||
class WXDLLIMPEXP_STC wxStyledTextEvent : public wxCommandEvent {
|
class WXDLLIMPEXP_STC wxStyledTextEvent : public wxCommandEvent {
|
||||||
#else
|
|
||||||
class wxStyledTextEvent : public wxCommandEvent {
|
|
||||||
#endif
|
|
||||||
public:
|
public:
|
||||||
wxStyledTextEvent(wxEventType commandType=0, int id=0);
|
wxStyledTextEvent(wxEventType commandType=0, int id=0);
|
||||||
#ifndef SWIG
|
#ifndef SWIG
|
||||||
|
@@ -136,11 +136,24 @@ wxStyledTextCtrl::wxStyledTextCtrl(wxWindow *parent,
|
|||||||
const wxPoint& pos,
|
const wxPoint& pos,
|
||||||
const wxSize& size,
|
const wxSize& size,
|
||||||
long style,
|
long style,
|
||||||
const wxString& name) :
|
const wxString& name)
|
||||||
wxControl(parent, id, pos, size,
|
|
||||||
style | wxVSCROLL | wxHSCROLL | wxWANTS_CHARS | wxCLIP_CHILDREN,
|
|
||||||
wxDefaultValidator, name)
|
|
||||||
{
|
{
|
||||||
|
m_swx = NULL;
|
||||||
|
Create(parent, id, pos, size, style, name);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void wxStyledTextCtrl::Create(wxWindow *parent,
|
||||||
|
wxWindowID id,
|
||||||
|
const wxPoint& pos,
|
||||||
|
const wxSize& size,
|
||||||
|
long style,
|
||||||
|
const wxString& name)
|
||||||
|
{
|
||||||
|
wxControl::Create(parent, id, pos, size,
|
||||||
|
style | wxVSCROLL | wxHSCROLL | wxWANTS_CHARS | wxCLIP_CHILDREN,
|
||||||
|
wxDefaultValidator, name);
|
||||||
|
|
||||||
#ifdef LINK_LEXERS
|
#ifdef LINK_LEXERS
|
||||||
Scintilla_LinkLexers();
|
Scintilla_LinkLexers();
|
||||||
#endif
|
#endif
|
||||||
@@ -2201,8 +2214,10 @@ void wxStyledTextCtrl::OnScroll(wxScrollEvent& evt) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void wxStyledTextCtrl::OnSize(wxSizeEvent& WXUNUSED(evt)) {
|
void wxStyledTextCtrl::OnSize(wxSizeEvent& WXUNUSED(evt)) {
|
||||||
wxSize sz = GetClientSize();
|
if (m_swx) {
|
||||||
m_swx->DoSize(sz.x, sz.y);
|
wxSize sz = GetClientSize();
|
||||||
|
m_swx->DoSize(sz.x, sz.y);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxStyledTextCtrl::OnMouseLeftDown(wxMouseEvent& evt) {
|
void wxStyledTextCtrl::OnMouseLeftDown(wxMouseEvent& evt) {
|
||||||
|
@@ -136,11 +136,24 @@ wxStyledTextCtrl::wxStyledTextCtrl(wxWindow *parent,
|
|||||||
const wxPoint& pos,
|
const wxPoint& pos,
|
||||||
const wxSize& size,
|
const wxSize& size,
|
||||||
long style,
|
long style,
|
||||||
const wxString& name) :
|
const wxString& name)
|
||||||
wxControl(parent, id, pos, size,
|
|
||||||
style | wxVSCROLL | wxHSCROLL | wxWANTS_CHARS | wxCLIP_CHILDREN,
|
|
||||||
wxDefaultValidator, name)
|
|
||||||
{
|
{
|
||||||
|
m_swx = NULL;
|
||||||
|
Create(parent, id, pos, size, style, name);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void wxStyledTextCtrl::Create(wxWindow *parent,
|
||||||
|
wxWindowID id,
|
||||||
|
const wxPoint& pos,
|
||||||
|
const wxSize& size,
|
||||||
|
long style,
|
||||||
|
const wxString& name)
|
||||||
|
{
|
||||||
|
wxControl::Create(parent, id, pos, size,
|
||||||
|
style | wxVSCROLL | wxHSCROLL | wxWANTS_CHARS | wxCLIP_CHILDREN,
|
||||||
|
wxDefaultValidator, name);
|
||||||
|
|
||||||
#ifdef LINK_LEXERS
|
#ifdef LINK_LEXERS
|
||||||
Scintilla_LinkLexers();
|
Scintilla_LinkLexers();
|
||||||
#endif
|
#endif
|
||||||
@@ -406,8 +419,10 @@ void wxStyledTextCtrl::OnScroll(wxScrollEvent& evt) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void wxStyledTextCtrl::OnSize(wxSizeEvent& WXUNUSED(evt)) {
|
void wxStyledTextCtrl::OnSize(wxSizeEvent& WXUNUSED(evt)) {
|
||||||
wxSize sz = GetClientSize();
|
if (m_swx) {
|
||||||
m_swx->DoSize(sz.x, sz.y);
|
wxSize sz = GetClientSize();
|
||||||
|
m_swx->DoSize(sz.x, sz.y);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxStyledTextCtrl::OnMouseLeftDown(wxMouseEvent& evt) {
|
void wxStyledTextCtrl::OnMouseLeftDown(wxMouseEvent& evt) {
|
||||||
|
@@ -24,7 +24,7 @@
|
|||||||
#include <wx/wx.h>
|
#include <wx/wx.h>
|
||||||
#include <wx/dnd.h>
|
#include <wx/dnd.h>
|
||||||
|
|
||||||
#ifndef SWIG
|
|
||||||
#ifdef WXMAKINGDLL_STC
|
#ifdef WXMAKINGDLL_STC
|
||||||
#define WXDLLIMPEXP_STC WXEXPORT
|
#define WXDLLIMPEXP_STC WXEXPORT
|
||||||
#elif defined(WXUSINGDLL)
|
#elif defined(WXUSINGDLL)
|
||||||
@@ -32,7 +32,6 @@
|
|||||||
#else // not making nor using DLL
|
#else // not making nor using DLL
|
||||||
#define WXDLLIMPEXP_STC
|
#define WXDLLIMPEXP_STC
|
||||||
#endif
|
#endif
|
||||||
#endif // SWIG
|
|
||||||
|
|
||||||
|
|
||||||
// SWIG can't handle "#if" type of conditionals, only "#ifdef"
|
// SWIG can't handle "#if" type of conditionals, only "#ifdef"
|
||||||
@@ -80,32 +79,35 @@ class WXDLLIMPEXP_STC wxStyledTextEvent;
|
|||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
#ifndef SWIG
|
|
||||||
class WXDLLIMPEXP_STC wxStyledTextCtrl : public wxControl {
|
class WXDLLIMPEXP_STC wxStyledTextCtrl : public wxControl {
|
||||||
#else
|
|
||||||
class wxStyledTextCtrl : public wxControl {
|
|
||||||
#endif
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
#ifdef SWIG
|
#ifdef SWIG
|
||||||
|
%%addtofunc wxStyledTextCtrl "self._setOORInfo(self)"
|
||||||
|
%%addtofunc wxStyledTextCtrl() ""
|
||||||
|
|
||||||
wxStyledTextCtrl(wxWindow *parent, wxWindowID id,
|
wxStyledTextCtrl(wxWindow *parent, wxWindowID id,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize, long style = 0,
|
const wxSize& size = wxDefaultSize, long style = 0,
|
||||||
const wxString& name = wxPySTCNameStr);
|
const wxString& name = wxPySTCNameStr);
|
||||||
%%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
|
%%name(PreStyledTextCtrl) wxStyledTextCtrl();
|
||||||
|
|
||||||
#else
|
#else
|
||||||
wxStyledTextCtrl(wxWindow *parent, wxWindowID id,
|
wxStyledTextCtrl(wxWindow *parent, wxWindowID id,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize, long style = 0,
|
const wxSize& size = wxDefaultSize, long style = 0,
|
||||||
const wxString& name = wxSTCNameStr);
|
const wxString& name = wxSTCNameStr);
|
||||||
#endif
|
wxStyledTextCtrl() { m_swx = NULL; }
|
||||||
|
|
||||||
|
|
||||||
#ifndef SWIG
|
|
||||||
~wxStyledTextCtrl();
|
~wxStyledTextCtrl();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void Create(wxWindow *parent, wxWindowID id,
|
||||||
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
|
const wxSize& size = wxDefaultSize, long style = 0,
|
||||||
|
const wxString& name = wxSTCNameStr);
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
// BEGIN generated section. The following code is automatically generated
|
// BEGIN generated section. The following code is automatically generated
|
||||||
// by gen_iface.py. Do not edit this file. Edit stc.h.in instead
|
// by gen_iface.py. Do not edit this file. Edit stc.h.in instead
|
||||||
@@ -260,11 +262,7 @@ protected:
|
|||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
#ifndef SWIG
|
|
||||||
class WXDLLIMPEXP_STC wxStyledTextEvent : public wxCommandEvent {
|
class WXDLLIMPEXP_STC wxStyledTextEvent : public wxCommandEvent {
|
||||||
#else
|
|
||||||
class wxStyledTextEvent : public wxCommandEvent {
|
|
||||||
#endif
|
|
||||||
public:
|
public:
|
||||||
wxStyledTextEvent(wxEventType commandType=0, int id=0);
|
wxStyledTextEvent(wxEventType commandType=0, int id=0);
|
||||||
#ifndef SWIG
|
#ifndef SWIG
|
||||||
|
@@ -24,7 +24,7 @@
|
|||||||
#include <wx/wx.h>
|
#include <wx/wx.h>
|
||||||
#include <wx/dnd.h>
|
#include <wx/dnd.h>
|
||||||
|
|
||||||
#ifndef SWIG
|
|
||||||
#ifdef WXMAKINGDLL_STC
|
#ifdef WXMAKINGDLL_STC
|
||||||
#define WXDLLIMPEXP_STC WXEXPORT
|
#define WXDLLIMPEXP_STC WXEXPORT
|
||||||
#elif defined(WXUSINGDLL)
|
#elif defined(WXUSINGDLL)
|
||||||
@@ -32,7 +32,6 @@
|
|||||||
#else // not making nor using DLL
|
#else // not making nor using DLL
|
||||||
#define WXDLLIMPEXP_STC
|
#define WXDLLIMPEXP_STC
|
||||||
#endif
|
#endif
|
||||||
#endif // SWIG
|
|
||||||
|
|
||||||
|
|
||||||
// SWIG can't handle "#if" type of conditionals, only "#ifdef"
|
// SWIG can't handle "#if" type of conditionals, only "#ifdef"
|
||||||
@@ -1141,32 +1140,35 @@ class WXDLLIMPEXP_STC wxStyledTextEvent;
|
|||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
#ifndef SWIG
|
|
||||||
class WXDLLIMPEXP_STC wxStyledTextCtrl : public wxControl {
|
class WXDLLIMPEXP_STC wxStyledTextCtrl : public wxControl {
|
||||||
#else
|
|
||||||
class wxStyledTextCtrl : public wxControl {
|
|
||||||
#endif
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
#ifdef SWIG
|
#ifdef SWIG
|
||||||
|
%addtofunc wxStyledTextCtrl "self._setOORInfo(self)"
|
||||||
|
%addtofunc wxStyledTextCtrl() ""
|
||||||
|
|
||||||
wxStyledTextCtrl(wxWindow *parent, wxWindowID id,
|
wxStyledTextCtrl(wxWindow *parent, wxWindowID id,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize, long style = 0,
|
const wxSize& size = wxDefaultSize, long style = 0,
|
||||||
const wxString& name = wxPySTCNameStr);
|
const wxString& name = wxPySTCNameStr);
|
||||||
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
|
%name(PreStyledTextCtrl) wxStyledTextCtrl();
|
||||||
|
|
||||||
#else
|
#else
|
||||||
wxStyledTextCtrl(wxWindow *parent, wxWindowID id,
|
wxStyledTextCtrl(wxWindow *parent, wxWindowID id,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize, long style = 0,
|
const wxSize& size = wxDefaultSize, long style = 0,
|
||||||
const wxString& name = wxSTCNameStr);
|
const wxString& name = wxSTCNameStr);
|
||||||
#endif
|
wxStyledTextCtrl() { m_swx = NULL; }
|
||||||
|
|
||||||
|
|
||||||
#ifndef SWIG
|
|
||||||
~wxStyledTextCtrl();
|
~wxStyledTextCtrl();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void Create(wxWindow *parent, wxWindowID id,
|
||||||
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
|
const wxSize& size = wxDefaultSize, long style = 0,
|
||||||
|
const wxString& name = wxSTCNameStr);
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
// BEGIN generated section. The following code is automatically generated
|
// BEGIN generated section. The following code is automatically generated
|
||||||
// by gen_iface.py. Do not edit this file. Edit stc.h.in instead
|
// by gen_iface.py. Do not edit this file. Edit stc.h.in instead
|
||||||
@@ -2344,11 +2346,7 @@ protected:
|
|||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
#ifndef SWIG
|
|
||||||
class WXDLLIMPEXP_STC wxStyledTextEvent : public wxCommandEvent {
|
class WXDLLIMPEXP_STC wxStyledTextEvent : public wxCommandEvent {
|
||||||
#else
|
|
||||||
class wxStyledTextEvent : public wxCommandEvent {
|
|
||||||
#endif
|
|
||||||
public:
|
public:
|
||||||
wxStyledTextEvent(wxEventType commandType=0, int id=0);
|
wxStyledTextEvent(wxEventType commandType=0, int id=0);
|
||||||
#ifndef SWIG
|
#ifndef SWIG
|
||||||
|
@@ -136,11 +136,24 @@ wxStyledTextCtrl::wxStyledTextCtrl(wxWindow *parent,
|
|||||||
const wxPoint& pos,
|
const wxPoint& pos,
|
||||||
const wxSize& size,
|
const wxSize& size,
|
||||||
long style,
|
long style,
|
||||||
const wxString& name) :
|
const wxString& name)
|
||||||
wxControl(parent, id, pos, size,
|
|
||||||
style | wxVSCROLL | wxHSCROLL | wxWANTS_CHARS | wxCLIP_CHILDREN,
|
|
||||||
wxDefaultValidator, name)
|
|
||||||
{
|
{
|
||||||
|
m_swx = NULL;
|
||||||
|
Create(parent, id, pos, size, style, name);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void wxStyledTextCtrl::Create(wxWindow *parent,
|
||||||
|
wxWindowID id,
|
||||||
|
const wxPoint& pos,
|
||||||
|
const wxSize& size,
|
||||||
|
long style,
|
||||||
|
const wxString& name)
|
||||||
|
{
|
||||||
|
wxControl::Create(parent, id, pos, size,
|
||||||
|
style | wxVSCROLL | wxHSCROLL | wxWANTS_CHARS | wxCLIP_CHILDREN,
|
||||||
|
wxDefaultValidator, name);
|
||||||
|
|
||||||
#ifdef LINK_LEXERS
|
#ifdef LINK_LEXERS
|
||||||
Scintilla_LinkLexers();
|
Scintilla_LinkLexers();
|
||||||
#endif
|
#endif
|
||||||
@@ -2201,8 +2214,10 @@ void wxStyledTextCtrl::OnScroll(wxScrollEvent& evt) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void wxStyledTextCtrl::OnSize(wxSizeEvent& WXUNUSED(evt)) {
|
void wxStyledTextCtrl::OnSize(wxSizeEvent& WXUNUSED(evt)) {
|
||||||
wxSize sz = GetClientSize();
|
if (m_swx) {
|
||||||
m_swx->DoSize(sz.x, sz.y);
|
wxSize sz = GetClientSize();
|
||||||
|
m_swx->DoSize(sz.x, sz.y);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxStyledTextCtrl::OnMouseLeftDown(wxMouseEvent& evt) {
|
void wxStyledTextCtrl::OnMouseLeftDown(wxMouseEvent& evt) {
|
||||||
|
@@ -136,11 +136,24 @@ wxStyledTextCtrl::wxStyledTextCtrl(wxWindow *parent,
|
|||||||
const wxPoint& pos,
|
const wxPoint& pos,
|
||||||
const wxSize& size,
|
const wxSize& size,
|
||||||
long style,
|
long style,
|
||||||
const wxString& name) :
|
const wxString& name)
|
||||||
wxControl(parent, id, pos, size,
|
|
||||||
style | wxVSCROLL | wxHSCROLL | wxWANTS_CHARS | wxCLIP_CHILDREN,
|
|
||||||
wxDefaultValidator, name)
|
|
||||||
{
|
{
|
||||||
|
m_swx = NULL;
|
||||||
|
Create(parent, id, pos, size, style, name);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void wxStyledTextCtrl::Create(wxWindow *parent,
|
||||||
|
wxWindowID id,
|
||||||
|
const wxPoint& pos,
|
||||||
|
const wxSize& size,
|
||||||
|
long style,
|
||||||
|
const wxString& name)
|
||||||
|
{
|
||||||
|
wxControl::Create(parent, id, pos, size,
|
||||||
|
style | wxVSCROLL | wxHSCROLL | wxWANTS_CHARS | wxCLIP_CHILDREN,
|
||||||
|
wxDefaultValidator, name);
|
||||||
|
|
||||||
#ifdef LINK_LEXERS
|
#ifdef LINK_LEXERS
|
||||||
Scintilla_LinkLexers();
|
Scintilla_LinkLexers();
|
||||||
#endif
|
#endif
|
||||||
@@ -406,8 +419,10 @@ void wxStyledTextCtrl::OnScroll(wxScrollEvent& evt) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void wxStyledTextCtrl::OnSize(wxSizeEvent& WXUNUSED(evt)) {
|
void wxStyledTextCtrl::OnSize(wxSizeEvent& WXUNUSED(evt)) {
|
||||||
wxSize sz = GetClientSize();
|
if (m_swx) {
|
||||||
m_swx->DoSize(sz.x, sz.y);
|
wxSize sz = GetClientSize();
|
||||||
|
m_swx->DoSize(sz.x, sz.y);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxStyledTextCtrl::OnMouseLeftDown(wxMouseEvent& evt) {
|
void wxStyledTextCtrl::OnMouseLeftDown(wxMouseEvent& evt) {
|
||||||
|
@@ -24,7 +24,7 @@
|
|||||||
#include <wx/wx.h>
|
#include <wx/wx.h>
|
||||||
#include <wx/dnd.h>
|
#include <wx/dnd.h>
|
||||||
|
|
||||||
#ifndef SWIG
|
|
||||||
#ifdef WXMAKINGDLL_STC
|
#ifdef WXMAKINGDLL_STC
|
||||||
#define WXDLLIMPEXP_STC WXEXPORT
|
#define WXDLLIMPEXP_STC WXEXPORT
|
||||||
#elif defined(WXUSINGDLL)
|
#elif defined(WXUSINGDLL)
|
||||||
@@ -32,7 +32,6 @@
|
|||||||
#else // not making nor using DLL
|
#else // not making nor using DLL
|
||||||
#define WXDLLIMPEXP_STC
|
#define WXDLLIMPEXP_STC
|
||||||
#endif
|
#endif
|
||||||
#endif // SWIG
|
|
||||||
|
|
||||||
|
|
||||||
// SWIG can't handle "#if" type of conditionals, only "#ifdef"
|
// SWIG can't handle "#if" type of conditionals, only "#ifdef"
|
||||||
@@ -80,32 +79,35 @@ class WXDLLIMPEXP_STC wxStyledTextEvent;
|
|||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
#ifndef SWIG
|
|
||||||
class WXDLLIMPEXP_STC wxStyledTextCtrl : public wxControl {
|
class WXDLLIMPEXP_STC wxStyledTextCtrl : public wxControl {
|
||||||
#else
|
|
||||||
class wxStyledTextCtrl : public wxControl {
|
|
||||||
#endif
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
#ifdef SWIG
|
#ifdef SWIG
|
||||||
|
%%addtofunc wxStyledTextCtrl "self._setOORInfo(self)"
|
||||||
|
%%addtofunc wxStyledTextCtrl() ""
|
||||||
|
|
||||||
wxStyledTextCtrl(wxWindow *parent, wxWindowID id,
|
wxStyledTextCtrl(wxWindow *parent, wxWindowID id,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize, long style = 0,
|
const wxSize& size = wxDefaultSize, long style = 0,
|
||||||
const wxString& name = wxPySTCNameStr);
|
const wxString& name = wxPySTCNameStr);
|
||||||
%%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
|
%%name(PreStyledTextCtrl) wxStyledTextCtrl();
|
||||||
|
|
||||||
#else
|
#else
|
||||||
wxStyledTextCtrl(wxWindow *parent, wxWindowID id,
|
wxStyledTextCtrl(wxWindow *parent, wxWindowID id,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize, long style = 0,
|
const wxSize& size = wxDefaultSize, long style = 0,
|
||||||
const wxString& name = wxSTCNameStr);
|
const wxString& name = wxSTCNameStr);
|
||||||
#endif
|
wxStyledTextCtrl() { m_swx = NULL; }
|
||||||
|
|
||||||
|
|
||||||
#ifndef SWIG
|
|
||||||
~wxStyledTextCtrl();
|
~wxStyledTextCtrl();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void Create(wxWindow *parent, wxWindowID id,
|
||||||
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
|
const wxSize& size = wxDefaultSize, long style = 0,
|
||||||
|
const wxString& name = wxSTCNameStr);
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
// BEGIN generated section. The following code is automatically generated
|
// BEGIN generated section. The following code is automatically generated
|
||||||
// by gen_iface.py. Do not edit this file. Edit stc.h.in instead
|
// by gen_iface.py. Do not edit this file. Edit stc.h.in instead
|
||||||
@@ -260,11 +262,7 @@ protected:
|
|||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
#ifndef SWIG
|
|
||||||
class WXDLLIMPEXP_STC wxStyledTextEvent : public wxCommandEvent {
|
class WXDLLIMPEXP_STC wxStyledTextEvent : public wxCommandEvent {
|
||||||
#else
|
|
||||||
class wxStyledTextEvent : public wxCommandEvent {
|
|
||||||
#endif
|
|
||||||
public:
|
public:
|
||||||
wxStyledTextEvent(wxEventType commandType=0, int id=0);
|
wxStyledTextEvent(wxEventType commandType=0, int id=0);
|
||||||
#ifndef SWIG
|
#ifndef SWIG
|
||||||
|
Reference in New Issue
Block a user