wxWidgets/src/stc
Chris Elliott 5c96be628f fix for bakefile and autoconf changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-24 13:05:07 +00:00
..
scintilla Prevents crashes caused by negative line count being passed to wrapping functions, e.g. in intermediate sizing states. 2006-09-04 19:57:23 +00:00
gen_iface.py Provide an implementation for SurfaceImpl::AlphaRectangle, and rename 2006-08-31 05:35:26 +00:00
Makefile.in fix for bakefile and autoconf changes 2006-11-24 13:05:07 +00:00
PlatWX.cpp update from suzumizaki (patch 1522506) 2006-07-25 00:26:01 +00:00
PlatWX.h Updated wxSTC from Scintilla 1.40 to Scintilla 1.45 2002-03-18 22:31:01 +00:00
README.txt Applied patch [ 571965 ] update stc contrib stuff 2002-06-23 14:01:57 +00:00
ScintillaWX.cpp Catch WXK_NUMPAD_DELETE and WXK_NUMPAD_INSERT too 2006-09-22 21:19:45 +00:00
ScintillaWX.h Updated Scintilla to version 1.70 2006-07-14 01:20:18 +00:00
stc_cw_d.h added cw support 2003-05-16 16:15:58 +00:00
stc_cw.h added cw support 2003-05-16 16:15:58 +00:00
stc_cwc_d.h added cw support 2003-05-16 16:15:58 +00:00
stc_cwc.h added cw support 2003-05-16 16:15:58 +00:00
stc.cpp GetBestFittingSize --> GetEffectiveMinSize 2006-10-31 08:50:17 +00:00
stc.cpp.in GetBestFittingSize --> GetEffectiveMinSize 2006-10-31 08:50:17 +00:00
stc.h.in Updated to Scintilla 1.67 2006-03-08 01:48:03 +00:00
stcM8.xml added cw support 2003-05-16 16:15:58 +00:00

This contrib is the wxStyledTextCtrl, which is a wrapper around the
Scintilla edit control.  (See www.scintilla.org)

There is still VERY MUCH to be done, most notable of which is a more
advanced sample that exercises more of the code.  (I havn't tested
AutoComplete or CallTips, or most of the event types at all yet.)  And
also documentation, adding wrappers for some new scintilla
functionality, building and testing on wxGTK, etc.  Be patient, it all
will get there soon.



Let me describe a bit about the architecture I am implementing...
Obviously there is the Platform layer which implements the varioius
platform classes by using wxWindows classes and filling in where
needed.  Then there is a ScintillaWX class that is derived from
ScintillaBase and implements the necessary virtual methods that
Scintilla needs to fully funciton.  This class however is not meant to
ever be used directly by wx programmers.  I call it one end of the
bridge between the wx and Scintilla worlds.  The other end of the
bridge is a class called wxStyledTextCtrl that looks, feels and acts
like other classes in wxWindows.  Here is a diagram:


 +------------------+          +-------------------+
 | wxStyledTextCtrl |--bridge--|    ScintillaWX    |
 +------------------+          +-------------------+
                               |   ScintillaBase   |
                               +-------------------+
                               |       Editor      |
                               +-------------------+
                               |     PlatWX        |
                               +-------------------+


wxStyledTextCtrl derives from wxControl so it has a window that can be
drawn upon.  When a wxStyledTextCtrl is constructed it constructs a
ScintillaWX for itself and passes itself to the scintilla object to be
set as the wMain and wDraw attributes.  All method calls on the STC
are sent over the bridge in the form of calls to ScintiallWX::WndProc.
All notifications are sent back over the bridge and turned into
wxEvents.


Robin

[SOLARIS NOTE - ellers@iinet.net.au - June 2002]

On sunos5 (sparc) the stc code breaks if optimisation is turned on (the
default). If your release build breaks but the debug build is fine, 
try reconfiguring with --disable-optimise and rebuilding. If you are using
wxPython you will also need to disable optimised compiling. To do this I
had to hand modify the python makefile in (prefix)/lib/python2.2/config/Makefile
to remove optimisation flags.