]> git.saurik.com Git - wxWidgets.git/blame - src/stc/scintilla/README.txt
Add missing WXK constants for the control keys
[wxWidgets.git] / src / stc / scintilla / README.txt
CommitLineData
9ce192d4 1This directory contains copies of the scintilla/src and
9e96e16f
RD
2scintilla/include directories from the Scintilla source distribution.
3All other code needed to implement Scintilla on top of wxWidgets is
4located in the directory above this one.
9ce192d4 5
9b01abb8 6The current version of the Scintilla code is 3.21
591d01be 7
045517be
RD
8These are the basic steps needed to update the version of Scintilla used by wxSTC.
9
9b01abb8 101. Copy include, lexers, lexlib and src folders to src/stc/scintilla
045517be
RD
11
122. Examine diffs between the new src/stc/scintilla/Scintilla.iface
13file and the version in SVN. You should get familiar especially with
14new method names or constants because some of them may need to be
15tweaked to conform to similar naming patterns already used. (See step
16#5 below.)
17
183. Identify new source files and update build/bakefiles/scintilla.bkl
19accordingly so the new files will get built. Use bakefile to
20regenerate the makefiles and project files.
21
224. Examine changes in src/stc/scintilla/include/Platform.h and
23identify new or changed APIs that the wx "platform" will need to
24provide to the rest of the Scintilla code. Implement those changes in
25src/stc/PlatWX.cpp. You can use the win32 version of the platform
26code from the Scintilla source tree as a guide if needed. You may
27have to make a few tweaks to src/stc/scintilla/include/Platform.h to
28keep the compile working cleanly, but try to keep them minimal.
29
305. Edit the gen_iface.py file. This is where the Scintilla.iface file
31is read and the code for stc.h and stc.cpp is generated. For all new
32methods or constant names check if there are similarly named things
33defined here that are having something special done to them, and then
34do the same sort of thing for those new items. For example if there
35is a new AutoCFoo method, I add the line in gen_iface.py that will
36cause the AutoCompFoo name to be used instead. The same for any
37methods dealing with "Fore" or "Back" colors, they are renamed to
38Foreground and Background. If there is a new method that could be
39considered a "command function" (something that takes no parameters
40and could conceivably be bound to a key event) then I make sure that
41it's ID is in cmdValues or included in one of the existing ranges in
42that list.
43
446. Run gen_iface.py.
45
467. Any other new methods should be checked to ensure that the
47generated code is appropriate for what they are doing and if not then
48in gen_iface.py you can supply custom function bodies for them
49instead.
50
518. Add documentation code for any new methods to
52interface/wx/stc/stc.h, also check any documentation-only changes from
53Scintilla.iface and see if the existing docs for those items should be
54updated too.
55
569. Build and test.
57
5810. Submit patch to wxTrac.