some tweaks for LINK_LEXERS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -115,8 +115,10 @@ END_EVENT_TABLE()
|
|||||||
IMPLEMENT_CLASS(wxStyledTextCtrl, wxControl)
|
IMPLEMENT_CLASS(wxStyledTextCtrl, wxControl)
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxStyledTextEvent, wxCommandEvent)
|
IMPLEMENT_DYNAMIC_CLASS(wxStyledTextEvent, wxCommandEvent)
|
||||||
|
|
||||||
|
#ifdef LINK_LEXERS
|
||||||
// forces the linking of the lexer modules
|
// forces the linking of the lexer modules
|
||||||
int Scintilla_LinkLexers();
|
int wxForceScintillaLexers();
|
||||||
|
#endif
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
// Constructor and Destructor
|
// Constructor and Destructor
|
||||||
@@ -131,7 +133,9 @@ wxStyledTextCtrl::wxStyledTextCtrl(wxWindow *parent,
|
|||||||
style | wxVSCROLL | wxHSCROLL | wxWANTS_CHARS | wxCLIP_CHILDREN,
|
style | wxVSCROLL | wxHSCROLL | wxWANTS_CHARS | wxCLIP_CHILDREN,
|
||||||
wxDefaultValidator, name)
|
wxDefaultValidator, name)
|
||||||
{
|
{
|
||||||
Scintilla_LinkLexers();
|
#ifdef LINK_LEXERS
|
||||||
|
wxForceScintillaLexers();
|
||||||
|
#endif
|
||||||
m_swx = new ScintillaWX(this);
|
m_swx = new ScintillaWX(this);
|
||||||
m_stopWatch.Start();
|
m_stopWatch.Start();
|
||||||
m_lastKeyDownConsumed = FALSE;
|
m_lastKeyDownConsumed = FALSE;
|
||||||
|
@@ -115,8 +115,10 @@ END_EVENT_TABLE()
|
|||||||
IMPLEMENT_CLASS(wxStyledTextCtrl, wxControl)
|
IMPLEMENT_CLASS(wxStyledTextCtrl, wxControl)
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxStyledTextEvent, wxCommandEvent)
|
IMPLEMENT_DYNAMIC_CLASS(wxStyledTextEvent, wxCommandEvent)
|
||||||
|
|
||||||
|
#ifdef LINK_LEXERS
|
||||||
// forces the linking of the lexer modules
|
// forces the linking of the lexer modules
|
||||||
int Scintilla_LinkLexers();
|
int wxForceScintillaLexers();
|
||||||
|
#endif
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
// Constructor and Destructor
|
// Constructor and Destructor
|
||||||
@@ -131,7 +133,9 @@ wxStyledTextCtrl::wxStyledTextCtrl(wxWindow *parent,
|
|||||||
style | wxVSCROLL | wxHSCROLL | wxWANTS_CHARS | wxCLIP_CHILDREN,
|
style | wxVSCROLL | wxHSCROLL | wxWANTS_CHARS | wxCLIP_CHILDREN,
|
||||||
wxDefaultValidator, name)
|
wxDefaultValidator, name)
|
||||||
{
|
{
|
||||||
Scintilla_LinkLexers();
|
#ifdef LINK_LEXERS
|
||||||
|
wxForceScintillaLexers();
|
||||||
|
#endif
|
||||||
m_swx = new ScintillaWX(this);
|
m_swx = new ScintillaWX(this);
|
||||||
m_stopWatch.Start();
|
m_stopWatch.Start();
|
||||||
m_lastKeyDownConsumed = FALSE;
|
m_lastKeyDownConsumed = FALSE;
|
||||||
|
@@ -115,8 +115,10 @@ END_EVENT_TABLE()
|
|||||||
IMPLEMENT_CLASS(wxStyledTextCtrl, wxControl)
|
IMPLEMENT_CLASS(wxStyledTextCtrl, wxControl)
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxStyledTextEvent, wxCommandEvent)
|
IMPLEMENT_DYNAMIC_CLASS(wxStyledTextEvent, wxCommandEvent)
|
||||||
|
|
||||||
|
#ifdef LINK_LEXERS
|
||||||
// forces the linking of the lexer modules
|
// forces the linking of the lexer modules
|
||||||
int Scintilla_LinkLexers();
|
int wxForceScintillaLexers();
|
||||||
|
#endif
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
// Constructor and Destructor
|
// Constructor and Destructor
|
||||||
@@ -131,7 +133,9 @@ wxStyledTextCtrl::wxStyledTextCtrl(wxWindow *parent,
|
|||||||
style | wxVSCROLL | wxHSCROLL | wxWANTS_CHARS | wxCLIP_CHILDREN,
|
style | wxVSCROLL | wxHSCROLL | wxWANTS_CHARS | wxCLIP_CHILDREN,
|
||||||
wxDefaultValidator, name)
|
wxDefaultValidator, name)
|
||||||
{
|
{
|
||||||
Scintilla_LinkLexers();
|
#ifdef LINK_LEXERS
|
||||||
|
wxForceScintillaLexers();
|
||||||
|
#endif
|
||||||
m_swx = new ScintillaWX(this);
|
m_swx = new ScintillaWX(this);
|
||||||
m_stopWatch.Start();
|
m_stopWatch.Start();
|
||||||
m_lastKeyDownConsumed = FALSE;
|
m_lastKeyDownConsumed = FALSE;
|
||||||
|
@@ -115,8 +115,10 @@ END_EVENT_TABLE()
|
|||||||
IMPLEMENT_CLASS(wxStyledTextCtrl, wxControl)
|
IMPLEMENT_CLASS(wxStyledTextCtrl, wxControl)
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxStyledTextEvent, wxCommandEvent)
|
IMPLEMENT_DYNAMIC_CLASS(wxStyledTextEvent, wxCommandEvent)
|
||||||
|
|
||||||
|
#ifdef LINK_LEXERS
|
||||||
// forces the linking of the lexer modules
|
// forces the linking of the lexer modules
|
||||||
int Scintilla_LinkLexers();
|
int wxForceScintillaLexers();
|
||||||
|
#endif
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
// Constructor and Destructor
|
// Constructor and Destructor
|
||||||
@@ -131,7 +133,9 @@ wxStyledTextCtrl::wxStyledTextCtrl(wxWindow *parent,
|
|||||||
style | wxVSCROLL | wxHSCROLL | wxWANTS_CHARS | wxCLIP_CHILDREN,
|
style | wxVSCROLL | wxHSCROLL | wxWANTS_CHARS | wxCLIP_CHILDREN,
|
||||||
wxDefaultValidator, name)
|
wxDefaultValidator, name)
|
||||||
{
|
{
|
||||||
Scintilla_LinkLexers();
|
#ifdef LINK_LEXERS
|
||||||
|
wxForceScintillaLexers();
|
||||||
|
#endif
|
||||||
m_swx = new ScintillaWX(this);
|
m_swx = new ScintillaWX(this);
|
||||||
m_stopWatch.Start();
|
m_stopWatch.Start();
|
||||||
m_lastKeyDownConsumed = FALSE;
|
m_lastKeyDownConsumed = FALSE;
|
||||||
|
Reference in New Issue
Block a user