Compare commits
1 Commits
wxPy_2_4_0
...
v2.4.1
Author | SHA1 | Date | |
---|---|---|---|
|
c44e198b19 |
59
BuildCVS.txt
59
BuildCVS.txt
@@ -19,30 +19,29 @@ varaibles and PATH entries.
|
|||||||
Continue with item c) below.
|
Continue with item c) below.
|
||||||
|
|
||||||
|
|
||||||
b) If using the GNU Mingw32 or GNU Cygwin32 compilers
|
b) If using the MinGW or Cygwin compilers
|
||||||
|
|
||||||
You can get Mingw32 from http://www.mingw.org
|
You can get MinGW from http://www.mingw.org/
|
||||||
|
|
||||||
Cygwin32 is available at http://www.cygwin.com
|
Cygwin is available at http://sources.redhat.com/cygwin/
|
||||||
|
|
||||||
The makefile might have small problems with Cygwin's tools
|
The makefile might have small problems with Cygwin's tools
|
||||||
so it is recommended to use Mingw32 and its toolchain instead
|
so it is recommended to use MinGW and its toolchain instead
|
||||||
if possible.
|
if possible.
|
||||||
|
|
||||||
-> Set your path so that it includes the directory
|
-> Set your path so that it includes the directory
|
||||||
where your compiler and tools reside
|
where your compiler and tools reside
|
||||||
|
|
||||||
-> If your are using an old Mingw32 version (gcc-2.95 or older),
|
-> If your are using an old MinGW version (gcc-2.95 or older),
|
||||||
you might need to fix some headers with the patches contained
|
you might need to fix some headers with the patches contained
|
||||||
in the wxWin\Mingw32-gcc295.patches file. PLEASE APPLY THESE
|
in the wxWin\Mingw32-gcc295.patches file. PLEASE APPLY THESE
|
||||||
PATCHES BY HAND! There are apparently a few different versions
|
PATCHES BY HAND! There are apparently a few different versions
|
||||||
of the headers floating around. Note that these patches are
|
of the headers floating around. Note that these patches are
|
||||||
not needed if you are using Mingw32 gcc-2.95.2 or newer.
|
not needed if you are using MinGW gcc-2.95.2 or newer.
|
||||||
|
|
||||||
-> Edit wx/src/makeg95.env and set the MINGW32 variable at the top of
|
-> Edit wx/src/makeg95.env and set the MINGW32 variable at the top of
|
||||||
the file to either 1 (you have Mingw32) or 0 (you have Cygwin32).
|
the file to either 1 (you have MinGW) or 0 (you have Cygwin).
|
||||||
If using MINGW32, also set the MINGW32VERSION variable
|
Also set the MINGW32VERSION variable appropiately.
|
||||||
appropiately.
|
|
||||||
|
|
||||||
|
|
||||||
c) Build instructions
|
c) Build instructions
|
||||||
@@ -51,19 +50,8 @@ c) Build instructions
|
|||||||
into c:\wxWin
|
into c:\wxWin
|
||||||
-> Copy c:\wxWin\include\wx\msw\setup0.h
|
-> Copy c:\wxWin\include\wx\msw\setup0.h
|
||||||
to c:\wxWin\include\wx\msw\setup.h
|
to c:\wxWin\include\wx\msw\setup.h
|
||||||
-> Edit c:\wxWin\include\wx\msw\setup.h so that
|
-> Edit c:\wxWin\include\wx\msw\setup.h to choose
|
||||||
most features are enabled (i.e. defined to 1), for example:
|
the features you would like to compile wxWindows with[out].
|
||||||
#define wxUSE_ODBC 0
|
|
||||||
#define wxUSE_SOCKETS 1
|
|
||||||
#define wxUSE_HTML 1
|
|
||||||
#define wxUSE_THREADS 1
|
|
||||||
#define wxUSE_FS_INET 0
|
|
||||||
#define wxUSE_FS_ZIP 1
|
|
||||||
#define wxUSE_BUSYINFO 1
|
|
||||||
#define wxUSE_DYNLIB_CLASS 1
|
|
||||||
#define wxUSE_ZIPSTREAM 1
|
|
||||||
#define wxUSE_LIBJPEG 1
|
|
||||||
#define wxUSE_LIBPNG 1
|
|
||||||
|
|
||||||
and std iostreams are disabled with
|
and std iostreams are disabled with
|
||||||
#define wxUSE_STD_IOSTREAM 0
|
#define wxUSE_STD_IOSTREAM 0
|
||||||
@@ -72,6 +60,8 @@ c) Build instructions
|
|||||||
-> type: make -f makefile.g95 (if using GNU tools)
|
-> type: make -f makefile.g95 (if using GNU tools)
|
||||||
or type: nmake -f makefile.vc (if using MS VC++)
|
or type: nmake -f makefile.vc (if using MS VC++)
|
||||||
|
|
||||||
|
See also docs/msw/install.txt for additional compilation options.
|
||||||
|
|
||||||
d) Borland (including free command line tools)
|
d) Borland (including free command line tools)
|
||||||
Download tools from http://www.borland.com/downloads/
|
Download tools from http://www.borland.com/downloads/
|
||||||
|
|
||||||
@@ -117,11 +107,10 @@ yet complete).
|
|||||||
III) Windows using configure
|
III) Windows using configure
|
||||||
----------------------------------------
|
----------------------------------------
|
||||||
|
|
||||||
Take a look at Unix->Windows cross compiling. With minor
|
wxWindows can be built on Windows using MSYS (see
|
||||||
modifications, this should work in Windows if you've got the cygnus
|
http://www.mingw.org/), which is a POSIX build environment
|
||||||
utilities (bash, GNU make, etc) and either mingw32 or cygwin32 installed.
|
for Windows. With MSYS you can just ./configure && make (see also VII,
|
||||||
See http://www.cygnus.com for these programs, or go straight to their
|
Unix->Windows cross-compiling using configure).
|
||||||
ftp server at ftp://sourceware.cygnus.com/pub/cygwin/.
|
|
||||||
|
|
||||||
Of course, you can also build the library using plain makefiles (see
|
Of course, you can also build the library using plain makefiles (see
|
||||||
section I).
|
section I).
|
||||||
@@ -168,17 +157,17 @@ VI) OS/2
|
|||||||
VII) Unix->Windows cross-compiling using configure
|
VII) Unix->Windows cross-compiling using configure
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
|
|
||||||
First you'll need a cross-compiler; linux glibc binaries of mingw32 and
|
First you'll need a cross-compiler; linux glibc binaries of MinGW and
|
||||||
cygwin32 (both based on egcs) can be found at
|
Cygwin (both based on egcs) can be found at
|
||||||
ftp://ftp.objsw.com/pub/crossgcc/linux-x-win32. Alternative binaries,
|
ftp://ftp.objsw.com/pub/crossgcc/linux-x-win32. Alternative binaries,
|
||||||
based on the latest MinGW release can be found at
|
based on the latest MinGW release can be found at
|
||||||
http://members.telering.at/jessich/mingw/mingwcross/mingw_cross.html
|
http://members.telering.at/jessich/mingw/mingwcross/mingw_cross.html
|
||||||
Otherwise you can compile one yourself.
|
Otherwise you can compile one yourself.
|
||||||
|
|
||||||
[ A Note about cygwin32 and mingw32: the main difference is that cygwin32
|
[ A Note about Cygwin and MinGW: the main difference is that Cygwin
|
||||||
binaries are always linked against cygwin.dll. This dll encapsulates most
|
binaries are always linked against cygwin.dll. This dll encapsulates most
|
||||||
standard Unix C extensions, which is very handy if you're porting unix
|
standard Unix C extensions, which is very handy if you're porting unix
|
||||||
software to windows. However, wxMSW doesn't need this, so mingw32 is
|
software to windows. However, wxMSW doesn't need this, so MinGW is
|
||||||
preferable if you write portable C(++). ]
|
preferable if you write portable C(++). ]
|
||||||
|
|
||||||
You might want to build both Unix and Windows binaries in the same source
|
You might want to build both Unix and Windows binaries in the same source
|
||||||
@@ -203,7 +192,7 @@ yourself:
|
|||||||
DLLTOOL=i586-mingw32-dlltool LD=i586-mingw32-ld NM=i586-mingw32-nm \
|
DLLTOOL=i586-mingw32-dlltool LD=i586-mingw32-ld NM=i586-mingw32-nm \
|
||||||
../configure --host=i586-mingw32 --with-mingw
|
../configure --host=i586-mingw32 --with-mingw
|
||||||
|
|
||||||
(all assuming you're using mingw32)
|
(all assuming you're using MinGW)
|
||||||
By default this will compile a DLL, if you want a static library,
|
By default this will compile a DLL, if you want a static library,
|
||||||
specify --disable-shared.
|
specify --disable-shared.
|
||||||
|
|
||||||
@@ -215,7 +204,7 @@ will be a compile error :-)
|
|||||||
NB: if you are using a very old compiler you risk to get quite a few warnings
|
NB: if you are using a very old compiler you risk to get quite a few warnings
|
||||||
about "ANSI C++ forbids implicit conversion from 'void *'" in all places
|
about "ANSI C++ forbids implicit conversion from 'void *'" in all places
|
||||||
where va_arg macro is used. This is due to a bug in (some versions of)
|
where va_arg macro is used. This is due to a bug in (some versions of)
|
||||||
mingw32 headers which may be corrected by upgrading your compier,
|
MinGW headers which may be corrected by upgrading your compier,
|
||||||
otherwise you might edit the file
|
otherwise you might edit the file
|
||||||
|
|
||||||
${install_prefix}/lib/gcc-lib/i586-mingw32/egcs-2.91.57/include/stdarg.h
|
${install_prefix}/lib/gcc-lib/i586-mingw32/egcs-2.91.57/include/stdarg.h
|
||||||
@@ -238,7 +227,7 @@ typedef void *__gnuc_va_list;
|
|||||||
__gnuc_va_list is char *.
|
__gnuc_va_list is char *.
|
||||||
|
|
||||||
If this is successful, you end up with a wx23_2.dll/libwx23_2.a in win32/lib
|
If this is successful, you end up with a wx23_2.dll/libwx23_2.a in win32/lib
|
||||||
( or just libwx_msw.a if you opted for a static build ).
|
(or just libwx_msw.a if you opted for a static build).
|
||||||
Now try building the minimal sample:
|
Now try building the minimal sample:
|
||||||
|
|
||||||
-> cd samples/minimal
|
-> cd samples/minimal
|
||||||
|
129
Makefile.in
129
Makefile.in
@@ -1153,7 +1153,7 @@ SAMPLES_DIST: ALL_GUI_DIST
|
|||||||
cp $(SAMPDIR)/mobile/styles/*.cpp $(DISTDIR)/samples/mobile/styles
|
cp $(SAMPDIR)/mobile/styles/*.cpp $(DISTDIR)/samples/mobile/styles
|
||||||
cp $(SAMPDIR)/mobile/styles/*.h $(DISTDIR)/samples/mobile/styles
|
cp $(SAMPDIR)/mobile/styles/*.h $(DISTDIR)/samples/mobile/styles
|
||||||
cp $(SAMPDIR)/mobile/styles/*.jpg $(DISTDIR)/samples/mobile/styles
|
cp $(SAMPDIR)/mobile/styles/*.jpg $(DISTDIR)/samples/mobile/styles
|
||||||
|
|
||||||
mkdir $(DISTDIR)/samples/dialup
|
mkdir $(DISTDIR)/samples/dialup
|
||||||
cp $(SAMPDIR)/dialup/Makefile.in $(DISTDIR)/samples/dialup
|
cp $(SAMPDIR)/dialup/Makefile.in $(DISTDIR)/samples/dialup
|
||||||
cp $(SAMPDIR)/dialup/makefile.unx $(DISTDIR)/samples/dialup
|
cp $(SAMPDIR)/dialup/makefile.unx $(DISTDIR)/samples/dialup
|
||||||
@@ -1257,6 +1257,12 @@ SAMPLES_DIST: ALL_GUI_DIST
|
|||||||
cp $(SAMPDIR)/scrollsub/makefile.unx $(DISTDIR)/samples/scrollsub
|
cp $(SAMPDIR)/scrollsub/makefile.unx $(DISTDIR)/samples/scrollsub
|
||||||
cp $(SAMPDIR)/scrollsub/*.cpp $(DISTDIR)/samples/scrollsub
|
cp $(SAMPDIR)/scrollsub/*.cpp $(DISTDIR)/samples/scrollsub
|
||||||
|
|
||||||
|
mkdir $(DISTDIR)/samples/shaped
|
||||||
|
cp $(SAMPDIR)/shaped/Makefile.in $(DISTDIR)/samples/shaped
|
||||||
|
cp $(SAMPDIR)/shaped/makefile.unx $(DISTDIR)/samples/shaped
|
||||||
|
cp $(SAMPDIR)/shaped/*.cpp $(DISTDIR)/samples/shaped
|
||||||
|
cp $(SAMPDIR)/shaped/*.png $(DISTDIR)/samples/shaped
|
||||||
|
|
||||||
mkdir $(DISTDIR)/samples/sockets
|
mkdir $(DISTDIR)/samples/sockets
|
||||||
cp $(SAMPDIR)/sockets/Makefile.in $(DISTDIR)/samples/sockets
|
cp $(SAMPDIR)/sockets/Makefile.in $(DISTDIR)/samples/sockets
|
||||||
cp $(SAMPDIR)/sockets/makefile.unx $(DISTDIR)/samples/sockets
|
cp $(SAMPDIR)/sockets/makefile.unx $(DISTDIR)/samples/sockets
|
||||||
@@ -1424,62 +1430,73 @@ MANUAL_DIST:
|
|||||||
|
|
||||||
# this target does not generate a complete wxPython dist, it only includes
|
# this target does not generate a complete wxPython dist, it only includes
|
||||||
# those files needed for the Debian source package.
|
# those files needed for the Debian source package.
|
||||||
# see utils/wxPython/distrib for scripts to make a proper wxPython dist.
|
# see wxPython/distrib for scripts to make a proper wxPython dist.
|
||||||
|
#
|
||||||
|
# first copy everything and then clean up the CVS stuff and etc...
|
||||||
PYTHON_DIST:
|
PYTHON_DIST:
|
||||||
mkdir $(DISTDIR)/wxPython
|
for dir in \
|
||||||
mkdir $(DISTDIR)/wxPython/contrib
|
wxPython \
|
||||||
mkdir $(DISTDIR)/wxPython/contrib/dllwidget
|
wxPython/contrib \
|
||||||
mkdir $(DISTDIR)/wxPython/contrib/gizmos
|
wxPython/contrib/dllwidget \
|
||||||
mkdir $(DISTDIR)/wxPython/contrib/glcanvas
|
wxPython/contrib/gizmos \
|
||||||
mkdir $(DISTDIR)/wxPython/contrib/glcanvas/gtk
|
wxPython/contrib/glcanvas \
|
||||||
mkdir $(DISTDIR)/wxPython/contrib/ogl
|
wxPython/contrib/glcanvas/gtk \
|
||||||
mkdir $(DISTDIR)/wxPython/contrib/stc
|
wxPython/contrib/ogl \
|
||||||
mkdir $(DISTDIR)/wxPython/contrib/stc/gtk
|
wxPython/contrib/stc \
|
||||||
mkdir $(DISTDIR)/wxPython/contrib/xrc
|
wxPython/contrib/stc/gtk \
|
||||||
mkdir $(DISTDIR)/wxPython/demo
|
wxPython/contrib/xrc \
|
||||||
mkdir $(DISTDIR)/wxPython/demo/bitmaps
|
wxPython/demo \
|
||||||
mkdir $(DISTDIR)/wxPython/demo/bmp_source
|
wxPython/demo/bitmaps \
|
||||||
mkdir $(DISTDIR)/wxPython/demo/data
|
wxPython/demo/bmp_source \
|
||||||
mkdir $(DISTDIR)/wxPython/demo/dllwidget
|
wxPython/demo/data \
|
||||||
mkdir $(DISTDIR)/wxPython/src
|
wxPython/demo/dllwidget \
|
||||||
mkdir $(DISTDIR)/wxPython/src/gtk
|
wxPython/samples/StyleEditor \
|
||||||
mkdir $(DISTDIR)/wxPython/scripts
|
wxPython/samples/doodle \
|
||||||
mkdir $(DISTDIR)/wxPython/wxPython
|
wxPython/samples/embedded \
|
||||||
mkdir $(DISTDIR)/wxPython/wxPython/lib
|
wxPython/samples/frogedit \
|
||||||
mkdir $(DISTDIR)/wxPython/wxPython/lib/PyCrust
|
wxPython/samples/pySketch \
|
||||||
mkdir $(DISTDIR)/wxPython/wxPython/lib/editor
|
wxPython/samples/pySketch/images \
|
||||||
mkdir $(DISTDIR)/wxPython/wxPython/lib/mixins
|
wxPython/samples/wxProject \
|
||||||
mkdir $(DISTDIR)/wxPython/wxPython/tools
|
wxPython/samples/wx_examples \
|
||||||
mkdir $(DISTDIR)/wxPython/wxPython/tools/XRCed
|
wxPython/samples/wx_examples/basic \
|
||||||
|
wxPython/samples/wx_examples/hello \
|
||||||
cp $(WXDIR)/wxPython/*.txt $(DISTDIR)/wxPython
|
wxPython/samples/wx_examples/screenshots \
|
||||||
cp $(WXDIR)/wxPython/*.py $(DISTDIR)/wxPython
|
wxPython/distutils \
|
||||||
cp $(WXDIR)/wxPython/setup.cfg $(DISTDIR)/wxPython
|
wxPython/distutils/command \
|
||||||
cp $(WXDIR)/wxPython/MANIFEST.in $(DISTDIR)/wxPython
|
wxPython/scripts \
|
||||||
cp $(WXDIR)/wxPython/contrib/dllwidget/*.{py,cpp,h,i} $(DISTDIR)/wxPython/contrib/dllwidget
|
wxPython/src \
|
||||||
cp $(WXDIR)/wxPython/contrib/gizmos/*.{py,cpp,i} $(DISTDIR)/wxPython/contrib/gizmos
|
wxPython/src/gtk \
|
||||||
-cp $(WXDIR)/wxPython/contrib/glcanvas/* $(DISTDIR)/wxPython/contrib/glcanvas
|
wxPython/wx \
|
||||||
cp $(WXDIR)/wxPython/contrib/glcanvas/gtk/glcanvas.* $(DISTDIR)/wxPython/contrib/glcanvas/gtk
|
wxPython/wx/lib \
|
||||||
-cp $(WXDIR)/wxPython/contrib/ogl/* $(DISTDIR)/wxPython/contrib/ogl
|
wxPython/wx/lib/colourchooser \
|
||||||
-cp $(WXDIR)/wxPython/contrib/stc/* $(DISTDIR)/wxPython/contrib/stc
|
wxPython/wx/lib/editor \
|
||||||
-cp $(WXDIR)/wxPython/contrib/stc/gtk/* $(DISTDIR)/wxPython/contrib/stc/gtk
|
wxPython/wx/lib/mixins \
|
||||||
-cp $(WXDIR)/wxPython/contrib/xrc/xrc.* $(DISTDIR)/wxPython/contrib/xrc
|
wxPython/wx/py \
|
||||||
-cp $(WXDIR)/wxPython/demo/* $(DISTDIR)/wxPython/demo
|
wxPython/wxPython \
|
||||||
-cp $(WXDIR)/wxPython/demo/bitmaps/* $(DISTDIR)/wxPython/demo/bitmaps
|
wxPython/wxPython/lib \
|
||||||
-cp $(WXDIR)/wxPython/demo/bmp_source/* $(DISTDIR)/wxPython/demo/bmp_source
|
wxPython/wxPython/lib/PyCrust \
|
||||||
-cp $(WXDIR)/wxPython/demo/data/* $(DISTDIR)/wxPython/demo/data
|
wxPython/wxPython/lib/colourchooser \
|
||||||
-cp $(WXDIR)/wxPython/demo/dllwidget/Makefile $(DISTDIR)/wxPython/demo/dllwidget
|
wxPython/wxPython/lib/editor \
|
||||||
-cp $(WXDIR)/wxPython/demo/dllwidget/test_* $(DISTDIR)/wxPython/demo/dllwidget
|
wxPython/wxPython/lib/mixins \
|
||||||
-cp $(WXDIR)/wxPython/scripts/* $(DISTDIR)/wxPython/scripts
|
wxPython/wxPython/tools \
|
||||||
-cp $(WXDIR)/wxPython/src/* $(DISTDIR)/wxPython/src
|
wxPython/wxPython/tools/XRCed \
|
||||||
cp $(WXDIR)/wxPython/src/gtk/*.py $(DISTDIR)/wxPython/src/gtk
|
wxPython/wxPython/tools/XRCed/src-images \
|
||||||
cp $(WXDIR)/wxPython/src/gtk/*.cpp $(DISTDIR)/wxPython/src/gtk
|
wxPython/wxPython/py \
|
||||||
cp $(WXDIR)/wxPython/wxPython/lib/*.py $(DISTDIR)/wxPython/wxPython/lib
|
wxPython/wxPython/py/tests \
|
||||||
cp $(WXDIR)/wxPython/wxPython/lib/PyCrust/*.py $(DISTDIR)/wxPython/wxPython/lib/PyCrust
|
wxPython/wxPython/py/wxd \
|
||||||
cp $(WXDIR)/wxPython/wxPython/lib/editor/*.py $(DISTDIR)/wxPython/wxPython/lib/editor
|
; do \
|
||||||
cp $(WXDIR)/wxPython/wxPython/lib/mixins/*.py $(DISTDIR)/wxPython/wxPython/lib/mixins
|
echo "Copying dir: $$dir..."; \
|
||||||
cp $(WXDIR)/wxPython/wxPython/tools/*.py $(DISTDIR)/wxPython/wxPython/tools
|
mkdir $(DISTDIR)/$$dir; \
|
||||||
cp $(WXDIR)/wxPython/wxPython/tools/XRCed/*.{py,ico,sh,xrc} $(DISTDIR)/wxPython/wxPython/tools/XRCed
|
cp $(WXDIR)/$$dir/* $(DISTDIR)/$$dir > /dev/null 2>&1; \
|
||||||
|
done; \
|
||||||
|
\
|
||||||
|
find $(DISTDIR)/wxPython -name "*~" > RM_FILES; \
|
||||||
|
find $(DISTDIR)/wxPython -name "*.pyc" >> RM_FILES; \
|
||||||
|
find $(DISTDIR)/wxPython -name "*.bat" >> RM_FILES; \
|
||||||
|
find $(DISTDIR)/wxPython -name "core" >> RM_FILES; \
|
||||||
|
find $(DISTDIR)/wxPython -name "core.[0-9]*" >> RM_FILES; \
|
||||||
|
for f in `cat RM_FILES`; do rm $$f; done; \
|
||||||
|
rm RM_FILES
|
||||||
|
|
||||||
distclean:
|
distclean:
|
||||||
$(RM) -r _dist_dir
|
$(RM) -r _dist_dir
|
||||||
|
268
config.sub
vendored
268
config.sub
vendored
@@ -1,9 +1,9 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# Configuration validation subroutine script.
|
# Configuration validation subroutine script.
|
||||||
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
||||||
# Free Software Foundation, Inc.
|
# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
|
||||||
|
|
||||||
timestamp='2001-09-07'
|
timestamp='2003-01-03'
|
||||||
|
|
||||||
# This file is (in principle) common to ALL GNU software.
|
# This file is (in principle) common to ALL GNU software.
|
||||||
# The presence of a machine in this file suggests that SOME GNU software
|
# The presence of a machine in this file suggests that SOME GNU software
|
||||||
@@ -29,7 +29,8 @@ timestamp='2001-09-07'
|
|||||||
# configuration script generated by Autoconf, you may include it under
|
# configuration script generated by Autoconf, you may include it under
|
||||||
# the same distribution terms that you use for the rest of that program.
|
# the same distribution terms that you use for the rest of that program.
|
||||||
|
|
||||||
# Please send patches to <config-patches@gnu.org>.
|
# Please send patches to <config-patches@gnu.org>. Submit a context
|
||||||
|
# diff and a properly formatted ChangeLog entry.
|
||||||
#
|
#
|
||||||
# Configuration subroutine to validate and canonicalize a configuration type.
|
# Configuration subroutine to validate and canonicalize a configuration type.
|
||||||
# Supply the specified configuration type as an argument.
|
# Supply the specified configuration type as an argument.
|
||||||
@@ -117,7 +118,7 @@ esac
|
|||||||
# Here we must recognize all the valid KERNEL-OS combinations.
|
# Here we must recognize all the valid KERNEL-OS combinations.
|
||||||
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
|
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
|
||||||
case $maybe_os in
|
case $maybe_os in
|
||||||
nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*)
|
nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
|
||||||
os=-$maybe_os
|
os=-$maybe_os
|
||||||
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
|
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
|
||||||
;;
|
;;
|
||||||
@@ -226,32 +227,44 @@ case $basic_machine in
|
|||||||
1750a | 580 \
|
1750a | 580 \
|
||||||
| a29k \
|
| a29k \
|
||||||
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
|
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
|
||||||
|
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
|
||||||
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
|
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
|
||||||
| c4x | clipper \
|
| clipper \
|
||||||
| d10v | d30v | dsp16xx \
|
| d10v | d30v | dlx | dsp16xx \
|
||||||
| fr30 \
|
| fr30 | frv \
|
||||||
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
|
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
|
||||||
| i370 | i860 | i960 | ia64 \
|
| i370 | i860 | i960 | ia64 \
|
||||||
|
| ip2k \
|
||||||
| m32r | m68000 | m68k | m88k | mcore \
|
| m32r | m68000 | m68k | m88k | mcore \
|
||||||
| mips16 | mips64 | mips64el | mips64orion | mips64orionel \
|
| mips | mipsbe | mipseb | mipsel | mipsle \
|
||||||
| mips64vr4100 | mips64vr4100el | mips64vr4300 \
|
| mips16 \
|
||||||
| mips64vr4300el | mips64vr5000 | mips64vr5000el \
|
| mips64 | mips64el \
|
||||||
| mipsbe | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \
|
| mips64vr | mips64vrel \
|
||||||
| mipsisa32 \
|
| mips64orion | mips64orionel \
|
||||||
|
| mips64vr4100 | mips64vr4100el \
|
||||||
|
| mips64vr4300 | mips64vr4300el \
|
||||||
|
| mips64vr5000 | mips64vr5000el \
|
||||||
|
| mipsisa32 | mipsisa32el \
|
||||||
|
| mipsisa32r2 | mipsisa32r2el \
|
||||||
|
| mipsisa64 | mipsisa64el \
|
||||||
|
| mipsisa64sb1 | mipsisa64sb1el \
|
||||||
|
| mipsisa64sr71k | mipsisa64sr71kel \
|
||||||
|
| mipstx39 | mipstx39el \
|
||||||
| mn10200 | mn10300 \
|
| mn10200 | mn10300 \
|
||||||
|
| msp430 \
|
||||||
| ns16k | ns32k \
|
| ns16k | ns32k \
|
||||||
| openrisc \
|
| openrisc | or32 \
|
||||||
| pdp10 | pdp11 | pj | pjl \
|
| pdp10 | pdp11 | pj | pjl \
|
||||||
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
|
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
|
||||||
| pyramid \
|
| pyramid \
|
||||||
| s390 | s390x \
|
| sh | sh[1234] | sh3e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
|
||||||
| sh | sh[34] | sh[34]eb | shbe | shle \
|
| sh64 | sh64le \
|
||||||
| sparc | sparc64 | sparclet | sparclite | sparcv9 | sparcv9b \
|
| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
|
||||||
| stormy16 | strongarm \
|
| strongarm \
|
||||||
| tahoe | thumb | tic80 | tron \
|
| tahoe | thumb | tic80 | tron \
|
||||||
| v850 \
|
| v850 | v850e \
|
||||||
| we32k \
|
| we32k \
|
||||||
| x86 | xscale \
|
| x86 | xscale | xstormy16 | xtensa \
|
||||||
| z8k)
|
| z8k)
|
||||||
basic_machine=$basic_machine-unknown
|
basic_machine=$basic_machine-unknown
|
||||||
;;
|
;;
|
||||||
@@ -278,38 +291,53 @@ case $basic_machine in
|
|||||||
580-* \
|
580-* \
|
||||||
| a29k-* \
|
| a29k-* \
|
||||||
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
|
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
|
||||||
| alphapca5[67]-* | arc-* \
|
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
|
||||||
| arm-* | armbe-* | armle-* | armv*-* \
|
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
|
||||||
|
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
|
||||||
|
| avr-* \
|
||||||
| bs2000-* \
|
| bs2000-* \
|
||||||
| c[123]* | c30-* | [cjt]90-* | c54x-* \
|
| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* \
|
||||||
| clipper-* | cray2-* | cydra-* \
|
| clipper-* | cydra-* \
|
||||||
| d10v-* | d30v-* \
|
| d10v-* | d30v-* | dlx-* \
|
||||||
| elxsi-* \
|
| elxsi-* \
|
||||||
| f30[01]-* | f700-* | fr30-* | fx80-* \
|
| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
|
||||||
| h8300-* | h8500-* \
|
| h8300-* | h8500-* \
|
||||||
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
|
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
|
||||||
| i*86-* | i860-* | i960-* | ia64-* \
|
| i*86-* | i860-* | i960-* | ia64-* \
|
||||||
|
| ip2k-* \
|
||||||
| m32r-* \
|
| m32r-* \
|
||||||
| m68000-* | m680[01234]0-* | m68360-* | m683?2-* | m68k-* \
|
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
|
||||||
| m88110-* | m88k-* | mcore-* \
|
| m88110-* | m88k-* | mcore-* \
|
||||||
| mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \
|
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
|
||||||
| mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \
|
| mips16-* \
|
||||||
| mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \
|
| mips64-* | mips64el-* \
|
||||||
| mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \
|
| mips64vr-* | mips64vrel-* \
|
||||||
| none-* | np1-* | ns16k-* | ns32k-* \
|
| mips64orion-* | mips64orionel-* \
|
||||||
|
| mips64vr4100-* | mips64vr4100el-* \
|
||||||
|
| mips64vr4300-* | mips64vr4300el-* \
|
||||||
|
| mips64vr5000-* | mips64vr5000el-* \
|
||||||
|
| mipsisa32-* | mipsisa32el-* \
|
||||||
|
| mipsisa32r2-* | mipsisa32r2el-* \
|
||||||
|
| mipsisa64-* | mipsisa64el-* \
|
||||||
|
| mipsisa64sb1-* | mipsisa64sb1el-* \
|
||||||
|
| mipsisa64sr71k-* | mipsisa64sr71kel-* \
|
||||||
|
| mipstx39-* | mipstx39el-* \
|
||||||
|
| msp430-* \
|
||||||
|
| none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
|
||||||
| orion-* \
|
| orion-* \
|
||||||
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
|
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
|
||||||
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
|
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
|
||||||
| pyramid-* \
|
| pyramid-* \
|
||||||
| romp-* | rs6000-* \
|
| romp-* | rs6000-* \
|
||||||
| s390-* | s390x-* \
|
| sh-* | sh[1234]-* | sh3e-* | sh[34]eb-* | shbe-* \
|
||||||
| sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* \
|
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
|
||||||
| sparc-* | sparc64-* | sparc86x-* | sparclite-* \
|
| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
|
||||||
| sparcv9-* | sparcv9b-* | stormy16-* | strongarm-* | sv1-* \
|
| sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
|
||||||
| t3e-* | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
|
| tahoe-* | thumb-* | tic30-* | tic4x-* | tic54x-* | tic80-* | tron-* \
|
||||||
| v850-* | vax-* \
|
| v850-* | v850e-* | vax-* \
|
||||||
| we32k-* \
|
| we32k-* \
|
||||||
| x86-* | x86_64-* | xmp-* | xps100-* | xscale-* \
|
| x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
|
||||||
|
| xtensa-* \
|
||||||
| ymp-* \
|
| ymp-* \
|
||||||
| z8k-*)
|
| z8k-*)
|
||||||
;;
|
;;
|
||||||
@@ -374,6 +402,10 @@ case $basic_machine in
|
|||||||
basic_machine=ns32k-sequent
|
basic_machine=ns32k-sequent
|
||||||
os=-dynix
|
os=-dynix
|
||||||
;;
|
;;
|
||||||
|
c90)
|
||||||
|
basic_machine=c90-cray
|
||||||
|
os=-unicos
|
||||||
|
;;
|
||||||
convex-c1)
|
convex-c1)
|
||||||
basic_machine=c1-convex
|
basic_machine=c1-convex
|
||||||
os=-bsd
|
os=-bsd
|
||||||
@@ -394,16 +426,8 @@ case $basic_machine in
|
|||||||
basic_machine=c38-convex
|
basic_machine=c38-convex
|
||||||
os=-bsd
|
os=-bsd
|
||||||
;;
|
;;
|
||||||
cray | ymp)
|
cray | j90)
|
||||||
basic_machine=ymp-cray
|
basic_machine=j90-cray
|
||||||
os=-unicos
|
|
||||||
;;
|
|
||||||
cray2)
|
|
||||||
basic_machine=cray2-cray
|
|
||||||
os=-unicos
|
|
||||||
;;
|
|
||||||
[cjt]90)
|
|
||||||
basic_machine=${basic_machine}-cray
|
|
||||||
os=-unicos
|
os=-unicos
|
||||||
;;
|
;;
|
||||||
crds | unos)
|
crds | unos)
|
||||||
@@ -418,6 +442,14 @@ case $basic_machine in
|
|||||||
decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
|
decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
|
||||||
basic_machine=mips-dec
|
basic_machine=mips-dec
|
||||||
;;
|
;;
|
||||||
|
decsystem10* | dec10*)
|
||||||
|
basic_machine=pdp10-dec
|
||||||
|
os=-tops10
|
||||||
|
;;
|
||||||
|
decsystem20* | dec20*)
|
||||||
|
basic_machine=pdp10-dec
|
||||||
|
os=-tops20
|
||||||
|
;;
|
||||||
delta | 3300 | motorola-3300 | motorola-delta \
|
delta | 3300 | motorola-3300 | motorola-delta \
|
||||||
| 3300-motorola | delta-motorola)
|
| 3300-motorola | delta-motorola)
|
||||||
basic_machine=m68k-motorola
|
basic_machine=m68k-motorola
|
||||||
@@ -598,14 +630,6 @@ case $basic_machine in
|
|||||||
basic_machine=m68k-atari
|
basic_machine=m68k-atari
|
||||||
os=-mint
|
os=-mint
|
||||||
;;
|
;;
|
||||||
mipsel*-linux*)
|
|
||||||
basic_machine=mipsel-unknown
|
|
||||||
os=-linux-gnu
|
|
||||||
;;
|
|
||||||
mips*-linux*)
|
|
||||||
basic_machine=mips-unknown
|
|
||||||
os=-linux-gnu
|
|
||||||
;;
|
|
||||||
mips3*-*)
|
mips3*-*)
|
||||||
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
|
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
|
||||||
;;
|
;;
|
||||||
@@ -620,6 +644,10 @@ case $basic_machine in
|
|||||||
basic_machine=m68k-rom68k
|
basic_machine=m68k-rom68k
|
||||||
os=-coff
|
os=-coff
|
||||||
;;
|
;;
|
||||||
|
morphos)
|
||||||
|
basic_machine=powerpc-unknown
|
||||||
|
os=-morphos
|
||||||
|
;;
|
||||||
msdos)
|
msdos)
|
||||||
basic_machine=i386-pc
|
basic_machine=i386-pc
|
||||||
os=-msdos
|
os=-msdos
|
||||||
@@ -692,6 +720,10 @@ case $basic_machine in
|
|||||||
np1)
|
np1)
|
||||||
basic_machine=np1-gould
|
basic_machine=np1-gould
|
||||||
;;
|
;;
|
||||||
|
nv1)
|
||||||
|
basic_machine=nv1-cray
|
||||||
|
os=-unicosmp
|
||||||
|
;;
|
||||||
nsr-tandem)
|
nsr-tandem)
|
||||||
basic_machine=nsr-tandem
|
basic_machine=nsr-tandem
|
||||||
;;
|
;;
|
||||||
@@ -699,6 +731,10 @@ case $basic_machine in
|
|||||||
basic_machine=hppa1.1-oki
|
basic_machine=hppa1.1-oki
|
||||||
os=-proelf
|
os=-proelf
|
||||||
;;
|
;;
|
||||||
|
or32 | or32-*)
|
||||||
|
basic_machine=or32-unknown
|
||||||
|
os=-coff
|
||||||
|
;;
|
||||||
OSE68000 | ose68000)
|
OSE68000 | ose68000)
|
||||||
basic_machine=m68000-ericsson
|
basic_machine=m68000-ericsson
|
||||||
os=-ose
|
os=-ose
|
||||||
@@ -721,19 +757,19 @@ case $basic_machine in
|
|||||||
pbb)
|
pbb)
|
||||||
basic_machine=m68k-tti
|
basic_machine=m68k-tti
|
||||||
;;
|
;;
|
||||||
pc532 | pc532-*)
|
pc532 | pc532-*)
|
||||||
basic_machine=ns32k-pc532
|
basic_machine=ns32k-pc532
|
||||||
;;
|
;;
|
||||||
pentium | p5 | k5 | k6 | nexgen)
|
pentium | p5 | k5 | k6 | nexgen | viac3)
|
||||||
basic_machine=i586-pc
|
basic_machine=i586-pc
|
||||||
;;
|
;;
|
||||||
pentiumpro | p6 | 6x86 | athlon)
|
pentiumpro | p6 | 6x86 | athlon | athlon_*)
|
||||||
basic_machine=i686-pc
|
basic_machine=i686-pc
|
||||||
;;
|
;;
|
||||||
pentiumii | pentium2)
|
pentiumii | pentium2)
|
||||||
basic_machine=i686-pc
|
basic_machine=i686-pc
|
||||||
;;
|
;;
|
||||||
pentium-* | p5-* | k5-* | k6-* | nexgen-*)
|
pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
|
||||||
basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
|
basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||||
;;
|
;;
|
||||||
pentiumpro-* | p6-* | 6x86-* | athlon-*)
|
pentiumpro-* | p6-* | 6x86-* | athlon-*)
|
||||||
@@ -748,22 +784,22 @@ case $basic_machine in
|
|||||||
power) basic_machine=power-ibm
|
power) basic_machine=power-ibm
|
||||||
;;
|
;;
|
||||||
ppc) basic_machine=powerpc-unknown
|
ppc) basic_machine=powerpc-unknown
|
||||||
;;
|
;;
|
||||||
ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
|
ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||||
;;
|
;;
|
||||||
ppcle | powerpclittle | ppc-le | powerpc-little)
|
ppcle | powerpclittle | ppc-le | powerpc-little)
|
||||||
basic_machine=powerpcle-unknown
|
basic_machine=powerpcle-unknown
|
||||||
;;
|
;;
|
||||||
ppcle-* | powerpclittle-*)
|
ppcle-* | powerpclittle-*)
|
||||||
basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
|
basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||||
;;
|
;;
|
||||||
ppc64) basic_machine=powerpc64-unknown
|
ppc64) basic_machine=powerpc64-unknown
|
||||||
;;
|
;;
|
||||||
ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
|
ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||||
;;
|
;;
|
||||||
ppc64le | powerpc64little | ppc64-le | powerpc64-little)
|
ppc64le | powerpc64little | ppc64-le | powerpc64-little)
|
||||||
basic_machine=powerpc64le-unknown
|
basic_machine=powerpc64le-unknown
|
||||||
;;
|
;;
|
||||||
ppc64le-* | powerpc64little-*)
|
ppc64le-* | powerpc64little-*)
|
||||||
basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
|
basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||||
;;
|
;;
|
||||||
@@ -784,10 +820,22 @@ case $basic_machine in
|
|||||||
rtpc | rtpc-*)
|
rtpc | rtpc-*)
|
||||||
basic_machine=romp-ibm
|
basic_machine=romp-ibm
|
||||||
;;
|
;;
|
||||||
|
s390 | s390-*)
|
||||||
|
basic_machine=s390-ibm
|
||||||
|
;;
|
||||||
|
s390x | s390x-*)
|
||||||
|
basic_machine=s390x-ibm
|
||||||
|
;;
|
||||||
sa29200)
|
sa29200)
|
||||||
basic_machine=a29k-amd
|
basic_machine=a29k-amd
|
||||||
os=-udi
|
os=-udi
|
||||||
;;
|
;;
|
||||||
|
sb1)
|
||||||
|
basic_machine=mipsisa64sb1-unknown
|
||||||
|
;;
|
||||||
|
sb1el)
|
||||||
|
basic_machine=mipsisa64sb1el-unknown
|
||||||
|
;;
|
||||||
sequent)
|
sequent)
|
||||||
basic_machine=i386-sequent
|
basic_machine=i386-sequent
|
||||||
;;
|
;;
|
||||||
@@ -795,7 +843,7 @@ case $basic_machine in
|
|||||||
basic_machine=sh-hitachi
|
basic_machine=sh-hitachi
|
||||||
os=-hms
|
os=-hms
|
||||||
;;
|
;;
|
||||||
sparclite-wrs)
|
sparclite-wrs | simso-wrs)
|
||||||
basic_machine=sparclite-wrs
|
basic_machine=sparclite-wrs
|
||||||
os=-vxworks
|
os=-vxworks
|
||||||
;;
|
;;
|
||||||
@@ -862,9 +910,17 @@ case $basic_machine in
|
|||||||
os=-dynix
|
os=-dynix
|
||||||
;;
|
;;
|
||||||
t3e)
|
t3e)
|
||||||
basic_machine=t3e-cray
|
basic_machine=alphaev5-cray
|
||||||
os=-unicos
|
os=-unicos
|
||||||
;;
|
;;
|
||||||
|
t90)
|
||||||
|
basic_machine=t90-cray
|
||||||
|
os=-unicos
|
||||||
|
;;
|
||||||
|
tic4x | c4x*)
|
||||||
|
basic_machine=tic4x-unknown
|
||||||
|
os=-coff
|
||||||
|
;;
|
||||||
tic54x | c54x*)
|
tic54x | c54x*)
|
||||||
basic_machine=tic54x-unknown
|
basic_machine=tic54x-unknown
|
||||||
os=-coff
|
os=-coff
|
||||||
@@ -875,6 +931,10 @@ case $basic_machine in
|
|||||||
tx39el)
|
tx39el)
|
||||||
basic_machine=mipstx39el-unknown
|
basic_machine=mipstx39el-unknown
|
||||||
;;
|
;;
|
||||||
|
toad1)
|
||||||
|
basic_machine=pdp10-xkl
|
||||||
|
os=-tops20
|
||||||
|
;;
|
||||||
tower | tower-32)
|
tower | tower-32)
|
||||||
basic_machine=m68k-ncr
|
basic_machine=m68k-ncr
|
||||||
;;
|
;;
|
||||||
@@ -899,8 +959,8 @@ case $basic_machine in
|
|||||||
os=-vms
|
os=-vms
|
||||||
;;
|
;;
|
||||||
vpp*|vx|vx-*)
|
vpp*|vx|vx-*)
|
||||||
basic_machine=f301-fujitsu
|
basic_machine=f301-fujitsu
|
||||||
;;
|
;;
|
||||||
vxworks960)
|
vxworks960)
|
||||||
basic_machine=i960-wrs
|
basic_machine=i960-wrs
|
||||||
os=-vxworks
|
os=-vxworks
|
||||||
@@ -921,17 +981,13 @@ case $basic_machine in
|
|||||||
basic_machine=hppa1.1-winbond
|
basic_machine=hppa1.1-winbond
|
||||||
os=-proelf
|
os=-proelf
|
||||||
;;
|
;;
|
||||||
windows32)
|
xps | xps100)
|
||||||
basic_machine=i386-pc
|
|
||||||
os=-windows32-msvcrt
|
|
||||||
;;
|
|
||||||
xmp)
|
|
||||||
basic_machine=xmp-cray
|
|
||||||
os=-unicos
|
|
||||||
;;
|
|
||||||
xps | xps100)
|
|
||||||
basic_machine=xps100-honeywell
|
basic_machine=xps100-honeywell
|
||||||
;;
|
;;
|
||||||
|
ymp)
|
||||||
|
basic_machine=ymp-cray
|
||||||
|
os=-unicos
|
||||||
|
;;
|
||||||
z8k-*-coff)
|
z8k-*-coff)
|
||||||
basic_machine=z8k-unknown
|
basic_machine=z8k-unknown
|
||||||
os=-sim
|
os=-sim
|
||||||
@@ -952,13 +1008,6 @@ case $basic_machine in
|
|||||||
op60c)
|
op60c)
|
||||||
basic_machine=hppa1.1-oki
|
basic_machine=hppa1.1-oki
|
||||||
;;
|
;;
|
||||||
mips)
|
|
||||||
if [ x$os = x-linux-gnu ]; then
|
|
||||||
basic_machine=mips-unknown
|
|
||||||
else
|
|
||||||
basic_machine=mips-mips
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
romp)
|
romp)
|
||||||
basic_machine=romp-ibm
|
basic_machine=romp-ibm
|
||||||
;;
|
;;
|
||||||
@@ -978,13 +1027,16 @@ case $basic_machine in
|
|||||||
we32k)
|
we32k)
|
||||||
basic_machine=we32k-att
|
basic_machine=we32k-att
|
||||||
;;
|
;;
|
||||||
sh3 | sh4 | sh3eb | sh4eb)
|
sh3 | sh4 | sh3eb | sh4eb | sh[1234]le | sh3ele)
|
||||||
basic_machine=sh-unknown
|
basic_machine=sh-unknown
|
||||||
;;
|
;;
|
||||||
|
sh64)
|
||||||
|
basic_machine=sh64-unknown
|
||||||
|
;;
|
||||||
sparc | sparcv9 | sparcv9b)
|
sparc | sparcv9 | sparcv9b)
|
||||||
basic_machine=sparc-sun
|
basic_machine=sparc-sun
|
||||||
;;
|
;;
|
||||||
cydra)
|
cydra)
|
||||||
basic_machine=cydra-cydrome
|
basic_machine=cydra-cydrome
|
||||||
;;
|
;;
|
||||||
orion)
|
orion)
|
||||||
@@ -999,10 +1051,6 @@ case $basic_machine in
|
|||||||
pmac | pmac-mpw)
|
pmac | pmac-mpw)
|
||||||
basic_machine=powerpc-apple
|
basic_machine=powerpc-apple
|
||||||
;;
|
;;
|
||||||
c4x*)
|
|
||||||
basic_machine=c4x-none
|
|
||||||
os=-coff
|
|
||||||
;;
|
|
||||||
*-unknown)
|
*-unknown)
|
||||||
# Make sure to match an already-canonicalized machine name.
|
# Make sure to match an already-canonicalized machine name.
|
||||||
;;
|
;;
|
||||||
@@ -1065,10 +1113,12 @@ case $os in
|
|||||||
| -chorusos* | -chorusrdb* \
|
| -chorusos* | -chorusrdb* \
|
||||||
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
|
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
|
||||||
| -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
|
| -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
|
||||||
| -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
|
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
|
||||||
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
|
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
|
||||||
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
|
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
|
||||||
| -os2* | -vos*)
|
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
|
||||||
|
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
|
||||||
|
| -powermax* | -dnix* | -microbsd*)
|
||||||
# Remember, each alternative MUST END IN *, to match a version number.
|
# Remember, each alternative MUST END IN *, to match a version number.
|
||||||
;;
|
;;
|
||||||
-qnx*)
|
-qnx*)
|
||||||
@@ -1080,8 +1130,10 @@ case $os in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
-nto-qnx*)
|
||||||
|
;;
|
||||||
-nto*)
|
-nto*)
|
||||||
os=-nto-qnx
|
os=`echo $os | sed -e 's|nto|nto-qnx|'`
|
||||||
;;
|
;;
|
||||||
-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
|
-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
|
||||||
| -windows* | -osx | -abug | -netware* | -os9* | -beos* \
|
| -windows* | -osx | -abug | -netware* | -os9* | -beos* \
|
||||||
@@ -1120,14 +1172,20 @@ case $os in
|
|||||||
-acis*)
|
-acis*)
|
||||||
os=-aos
|
os=-aos
|
||||||
;;
|
;;
|
||||||
|
-atheos*)
|
||||||
|
os=-atheos
|
||||||
|
;;
|
||||||
-386bsd)
|
-386bsd)
|
||||||
os=-bsd
|
os=-bsd
|
||||||
;;
|
;;
|
||||||
-ctix* | -uts*)
|
-ctix* | -uts*)
|
||||||
os=-sysv
|
os=-sysv
|
||||||
;;
|
;;
|
||||||
|
-nova*)
|
||||||
|
os=-rtmk-nova
|
||||||
|
;;
|
||||||
-ns2 )
|
-ns2 )
|
||||||
os=-nextstep2
|
os=-nextstep2
|
||||||
;;
|
;;
|
||||||
-nsk*)
|
-nsk*)
|
||||||
os=-nsk
|
os=-nsk
|
||||||
@@ -1166,8 +1224,8 @@ case $os in
|
|||||||
-xenix)
|
-xenix)
|
||||||
os=-xenix
|
os=-xenix
|
||||||
;;
|
;;
|
||||||
-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
|
-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
|
||||||
os=-mint
|
os=-mint
|
||||||
;;
|
;;
|
||||||
-none)
|
-none)
|
||||||
;;
|
;;
|
||||||
@@ -1200,10 +1258,11 @@ case $basic_machine in
|
|||||||
arm*-semi)
|
arm*-semi)
|
||||||
os=-aout
|
os=-aout
|
||||||
;;
|
;;
|
||||||
|
# This must come before the *-dec entry.
|
||||||
pdp10-*)
|
pdp10-*)
|
||||||
os=-tops20
|
os=-tops20
|
||||||
;;
|
;;
|
||||||
pdp11-*)
|
pdp11-*)
|
||||||
os=-none
|
os=-none
|
||||||
;;
|
;;
|
||||||
*-dec | vax-*)
|
*-dec | vax-*)
|
||||||
@@ -1230,6 +1289,9 @@ case $basic_machine in
|
|||||||
mips*-*)
|
mips*-*)
|
||||||
os=-elf
|
os=-elf
|
||||||
;;
|
;;
|
||||||
|
or32-*)
|
||||||
|
os=-coff
|
||||||
|
;;
|
||||||
*-tti) # must be before sparc entry or we get the wrong os.
|
*-tti) # must be before sparc entry or we get the wrong os.
|
||||||
os=-sysv3
|
os=-sysv3
|
||||||
;;
|
;;
|
||||||
@@ -1293,19 +1355,19 @@ case $basic_machine in
|
|||||||
*-next)
|
*-next)
|
||||||
os=-nextstep3
|
os=-nextstep3
|
||||||
;;
|
;;
|
||||||
*-gould)
|
*-gould)
|
||||||
os=-sysv
|
os=-sysv
|
||||||
;;
|
;;
|
||||||
*-highlevel)
|
*-highlevel)
|
||||||
os=-bsd
|
os=-bsd
|
||||||
;;
|
;;
|
||||||
*-encore)
|
*-encore)
|
||||||
os=-bsd
|
os=-bsd
|
||||||
;;
|
;;
|
||||||
*-sgi)
|
*-sgi)
|
||||||
os=-irix
|
os=-irix
|
||||||
;;
|
;;
|
||||||
*-siemens)
|
*-siemens)
|
||||||
os=-sysv4
|
os=-sysv4
|
||||||
;;
|
;;
|
||||||
*-masscomp)
|
*-masscomp)
|
||||||
@@ -1377,7 +1439,7 @@ case $basic_machine in
|
|||||||
-ptx*)
|
-ptx*)
|
||||||
vendor=sequent
|
vendor=sequent
|
||||||
;;
|
;;
|
||||||
-vxsim* | -vxworks*)
|
-vxsim* | -vxworks* | -windiss*)
|
||||||
vendor=wrs
|
vendor=wrs
|
||||||
;;
|
;;
|
||||||
-aux*)
|
-aux*)
|
||||||
|
137
configure.in
137
configure.in
@@ -48,7 +48,7 @@ dnl libwx_$(TOOLKIT)-$(WX_RELEASE).so.$(WX_CURRENT).$(WX_REVISION).$(WX_AGE)
|
|||||||
|
|
||||||
WX_MAJOR_VERSION_NUMBER=2
|
WX_MAJOR_VERSION_NUMBER=2
|
||||||
WX_MINOR_VERSION_NUMBER=4
|
WX_MINOR_VERSION_NUMBER=4
|
||||||
WX_RELEASE_NUMBER=0
|
WX_RELEASE_NUMBER=1
|
||||||
|
|
||||||
WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
|
WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
|
||||||
WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
|
WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
|
||||||
@@ -228,7 +228,7 @@ case "${host}" in
|
|||||||
dnl
|
dnl
|
||||||
dnl Both archive libraries and shared libraries on AIX have an .a
|
dnl Both archive libraries and shared libraries on AIX have an .a
|
||||||
dnl extension. This will explain why you can't link with an .so and
|
dnl extension. This will explain why you can't link with an .so and
|
||||||
dnl why it works with the name changed to .a.
|
dnl why it works with the name changed to .a.
|
||||||
SO_SUFFIX=a
|
SO_SUFFIX=a
|
||||||
AC_DEFINE(__AIX__)
|
AC_DEFINE(__AIX__)
|
||||||
AC_DEFINE(__SYSV__)
|
AC_DEFINE(__SYSV__)
|
||||||
@@ -1241,10 +1241,13 @@ dnl install checks
|
|||||||
dnl defines INSTALL with the appropriate command
|
dnl defines INSTALL with the appropriate command
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
|
|
||||||
dnl make install path absolute (if not already); will fail with MSDOS paths
|
dnl make install path absolute (if not already);
|
||||||
|
dnl will fail with (some) MSDOS paths
|
||||||
case ${INSTALL} in
|
case ${INSTALL} in
|
||||||
/* ) # Absolute
|
/* ) # Absolute
|
||||||
;;
|
;;
|
||||||
|
?:* ) # Drive letter, considered as absolute.
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
INSTALL=`pwd`/${INSTALL} ;;
|
INSTALL=`pwd`/${INSTALL} ;;
|
||||||
esac
|
esac
|
||||||
@@ -1397,6 +1400,15 @@ fi
|
|||||||
dnl defines HAVE_LANGINFO_H (GNU libc locale parameters)
|
dnl defines HAVE_LANGINFO_H (GNU libc locale parameters)
|
||||||
AC_CHECK_HEADERS(langinfo.h)
|
AC_CHECK_HEADERS(langinfo.h)
|
||||||
|
|
||||||
|
case "${host}" in
|
||||||
|
*-pc-os2_emx | *-pc-os2-emx )
|
||||||
|
dnl Explicitly link -lintl if langinfo.h is available.
|
||||||
|
if test $ac_cv_header_langinfo_h = "yes"; then
|
||||||
|
LIBS="$LIBS -lintl"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
if test "$wxUSE_GUI" = "yes"; then
|
if test "$wxUSE_GUI" = "yes"; then
|
||||||
if test "$wxUSE_UNIX" = "yes"; then
|
if test "$wxUSE_UNIX" = "yes"; then
|
||||||
dnl defines HAVE_X11_XKBLIB_H
|
dnl defines HAVE_X11_XKBLIB_H
|
||||||
@@ -1667,7 +1679,7 @@ if test "$wxUSE_REGEX" != "no"; then
|
|||||||
if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
|
if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
|
||||||
dnl according to Unix 98 specs, regcomp() is in libc but I believe that
|
dnl according to Unix 98 specs, regcomp() is in libc but I believe that
|
||||||
dnl on some old systems it may be in libregex - check for it too?
|
dnl on some old systems it may be in libregex - check for it too?
|
||||||
AC_CHECK_HEADER(regex.h, AC_CHECK_FUNCS(regcomp))
|
AC_CHECK_HEADER(regex.h, [AC_CHECK_FUNCS(regcomp)])
|
||||||
|
|
||||||
if test "x$ac_cv_func_regcomp" != "xyes"; then
|
if test "x$ac_cv_func_regcomp" != "xyes"; then
|
||||||
if test "$wxUSE_REGEX" = "sys" ; then
|
if test "$wxUSE_REGEX" = "sys" ; then
|
||||||
@@ -1712,14 +1724,12 @@ if test "$wxUSE_ZLIB" != "no" ; then
|
|||||||
dnl has anything more ancient (1.1.3 was released in July 1998)
|
dnl has anything more ancient (1.1.3 was released in July 1998)
|
||||||
dnl anyhow
|
dnl anyhow
|
||||||
AC_CACHE_CHECK([for zlib.h >= 1.1.4], ac_cv_header_zlib_h,
|
AC_CACHE_CHECK([for zlib.h >= 1.1.4], ac_cv_header_zlib_h,
|
||||||
AC_TRY_RUN(
|
[AC_TRY_RUN(
|
||||||
|
dnl zlib.h defines ZLIB_VERSION="x.y.z"
|
||||||
[
|
[
|
||||||
dnl zlib.h defines ZLIB_VERSION="x.y.z"
|
|
||||||
#include <zlib.h>
|
#include <zlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
dnl don't use the brackets as quotes, we need them
|
|
||||||
changequote(,)
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
FILE *f=fopen("conftestval", "w");
|
FILE *f=fopen("conftestval", "w");
|
||||||
@@ -1731,13 +1741,12 @@ if test "$wxUSE_ZLIB" != "no" ; then
|
|||||||
ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
|
ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
changequote([,])
|
|
||||||
],
|
],
|
||||||
ac_cv_header_zlib_h=`cat conftestval`,
|
ac_cv_header_zlib_h=`cat conftestval`,
|
||||||
ac_cv_header_zlib_h=no,
|
ac_cv_header_zlib_h=no,
|
||||||
dnl cross-compiling: test if we have any zlib.h
|
dnl cross-compiling: test if we have any zlib.h
|
||||||
AC_CHECK_HEADER(zlib.h)
|
[AC_CHECK_HEADER(zlib.h)]
|
||||||
)
|
)]
|
||||||
)
|
)
|
||||||
|
|
||||||
system_zlib_h_ok=$ac_cv_header_zlib_h
|
system_zlib_h_ok=$ac_cv_header_zlib_h
|
||||||
@@ -1793,9 +1802,9 @@ if test "$wxUSE_LIBPNG" != "no" ; then
|
|||||||
dnl libpng version 0.9 is known to not work, if an even newer
|
dnl libpng version 0.9 is known to not work, if an even newer
|
||||||
dnl version is required, just bump it up in the test below
|
dnl version is required, just bump it up in the test below
|
||||||
AC_CACHE_CHECK([for png.h > 0.90], ac_cv_header_png_h,
|
AC_CACHE_CHECK([for png.h > 0.90], ac_cv_header_png_h,
|
||||||
AC_TRY_RUN(
|
[AC_TRY_RUN(
|
||||||
|
dnl png.h defines PNG_LIBPNG_VER=number
|
||||||
[
|
[
|
||||||
dnl png.h defines PNG_LIBPNG_VER=number
|
|
||||||
#include <png.h>
|
#include <png.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
@@ -1811,8 +1820,8 @@ if test "$wxUSE_LIBPNG" != "no" ; then
|
|||||||
ac_cv_header_png_h=`cat conftestval`,
|
ac_cv_header_png_h=`cat conftestval`,
|
||||||
ac_cv_header_png_h=no,
|
ac_cv_header_png_h=no,
|
||||||
dnl cross-compiling: test if we have any png.h
|
dnl cross-compiling: test if we have any png.h
|
||||||
AC_CHECK_HEADER(png.h)
|
[AC_CHECK_HEADER(png.h)]
|
||||||
)
|
)]
|
||||||
)
|
)
|
||||||
|
|
||||||
if test "$ac_cv_header_png_h" = "yes"; then
|
if test "$ac_cv_header_png_h" = "yes"; then
|
||||||
@@ -2199,7 +2208,7 @@ equivalent variable and GTK+ is version 1.2.3 or above.
|
|||||||
AC_MSG_ERROR([Cannot find MGL libraries, make sure they are compiled.])
|
AC_MSG_ERROR([Cannot find MGL libraries, make sure they are compiled.])
|
||||||
fi
|
fi
|
||||||
AC_MSG_RESULT("$MGL_ROOT/lib/$mgl_lib_type/$mgl_os")
|
AC_MSG_RESULT("$MGL_ROOT/lib/$mgl_lib_type/$mgl_os")
|
||||||
|
|
||||||
wxUSE_UNIVERSAL="yes"
|
wxUSE_UNIVERSAL="yes"
|
||||||
|
|
||||||
TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
|
TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
|
||||||
@@ -2785,7 +2794,7 @@ case "${host}" in
|
|||||||
*-*-darwin* )
|
*-*-darwin* )
|
||||||
dnl Under Mac OS X, the naming conventions for shared libraries
|
dnl Under Mac OS X, the naming conventions for shared libraries
|
||||||
dnl are different: the number precedes the suffix.
|
dnl are different: the number precedes the suffix.
|
||||||
|
|
||||||
WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
|
WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
|
||||||
WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
|
WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
|
||||||
|
|
||||||
@@ -3070,11 +3079,12 @@ dnl defines uid_t and gid_t if not already defined
|
|||||||
AC_TYPE_UID_T
|
AC_TYPE_UID_T
|
||||||
|
|
||||||
dnl check what exactly size_t is on this machine - this is necessary to avoid
|
dnl check what exactly size_t is on this machine - this is necessary to avoid
|
||||||
dnl ambiguos overloads in several places, notably wx/string.h and wx/array.h
|
dnl ambiguous overloads in several places, notably wx/string.h and wx/array.h
|
||||||
AC_LANG_SAVE
|
AC_LANG_SAVE
|
||||||
AC_LANG_CPLUSPLUS
|
AC_LANG_CPLUSPLUS
|
||||||
AC_CACHE_CHECK([if size_t is unsigned int],
|
AC_CACHE_CHECK([if size_t is unsigned int],
|
||||||
wx_cv_size_t_is_uint,
|
wx_cv_size_t_is_uint,
|
||||||
|
[
|
||||||
dnl an obvious check like AC_TRY_COMPILE[struct Foo { ... };] doesn't work
|
dnl an obvious check like AC_TRY_COMPILE[struct Foo { ... };] doesn't work
|
||||||
dnl with egcs (at least) up to 1.1.1 as it allows you to compile duplicate
|
dnl with egcs (at least) up to 1.1.1 as it allows you to compile duplicate
|
||||||
dnl methods in a local class (i.e. class inside a function) declaration
|
dnl methods in a local class (i.e. class inside a function) declaration
|
||||||
@@ -3092,6 +3102,7 @@ AC_CACHE_CHECK([if size_t is unsigned int],
|
|||||||
wx_cv_size_t_is_uint=no,
|
wx_cv_size_t_is_uint=no,
|
||||||
wx_cv_size_t_is_uint=yes
|
wx_cv_size_t_is_uint=yes
|
||||||
)
|
)
|
||||||
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
if test "$wx_cv_size_t_is_uint" = "yes"; then
|
if test "$wx_cv_size_t_is_uint" = "yes"; then
|
||||||
@@ -3286,20 +3297,17 @@ AC_CACHE_CHECK(for statfs, wx_cv_func_statfs,
|
|||||||
)
|
)
|
||||||
|
|
||||||
if test "$wx_cv_func_statfs" = "yes"; then
|
if test "$wx_cv_func_statfs" = "yes"; then
|
||||||
|
wx_cv_type_statvfs_t="struct statfs"
|
||||||
AC_DEFINE(HAVE_STATFS)
|
AC_DEFINE(HAVE_STATFS)
|
||||||
else
|
else
|
||||||
AC_CACHE_CHECK(for statvfs, wx_cv_func_statvfs,
|
AC_CACHE_CHECK(for statvfs, wx_cv_func_statvfs,
|
||||||
AC_TRY_COMPILE(
|
AC_TRY_COMPILE(
|
||||||
[
|
[
|
||||||
#include <sys/statvfs.h>
|
#include <stddef.h>
|
||||||
|
#include <sys/statvfs.h>
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
long l;
|
statvfs("/", NULL);
|
||||||
struct statvfs fs;
|
|
||||||
statvfs("/", &fs);
|
|
||||||
l = fs.f_bsize;
|
|
||||||
l += fs.f_blocks;
|
|
||||||
l += fs.f_bavail;
|
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
wx_cv_func_statvfs=yes
|
wx_cv_func_statvfs=yes
|
||||||
@@ -3311,12 +3319,73 @@ else
|
|||||||
)
|
)
|
||||||
|
|
||||||
if test "$wx_cv_func_statvfs" = "yes"; then
|
if test "$wx_cv_func_statvfs" = "yes"; then
|
||||||
AC_DEFINE(HAVE_STATVFS)
|
dnl we also have to check whether we should use statvfs_t (works under
|
||||||
|
dnl Solaris 8, doesn't work under Solaris 7) or "struct statvfs" (vice
|
||||||
|
dnl versa) as the argument for statvfs in 64 bit off_t mode (in 32 bit
|
||||||
|
dnl mode both work fine)
|
||||||
|
dnl
|
||||||
|
dnl for this check C++ compiler has to be used as passing incompatible
|
||||||
|
dnl pointers is just a warning and not an error in C
|
||||||
|
AC_LANG_SAVE
|
||||||
|
AC_LANG_CPLUSPLUS
|
||||||
|
|
||||||
|
AC_CACHE_CHECK(for statvfs argument type, wx_cv_type_statvfs_t,
|
||||||
|
AC_TRY_COMPILE(
|
||||||
|
[
|
||||||
|
#include <sys/statvfs.h>
|
||||||
|
],
|
||||||
|
[
|
||||||
|
long l;
|
||||||
|
statvfs_t fs;
|
||||||
|
statvfs("/", &fs);
|
||||||
|
l = fs.f_bsize;
|
||||||
|
l += fs.f_blocks;
|
||||||
|
l += fs.f_bavail;
|
||||||
|
],
|
||||||
|
[
|
||||||
|
wx_cv_type_statvfs_t=statvfs_t
|
||||||
|
],
|
||||||
|
[
|
||||||
|
AC_TRY_COMPILE(
|
||||||
|
[
|
||||||
|
#include <sys/statvfs.h>
|
||||||
|
],
|
||||||
|
[
|
||||||
|
long l;
|
||||||
|
struct statvfs fs;
|
||||||
|
statvfs("/", &fs);
|
||||||
|
l = fs.f_bsize;
|
||||||
|
l += fs.f_blocks;
|
||||||
|
l += fs.f_bavail;
|
||||||
|
],
|
||||||
|
[
|
||||||
|
wx_cv_type_statvfs_t="struct statvfs"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
wx_cv_type_statvfs_t="unknown"
|
||||||
|
]
|
||||||
|
)
|
||||||
|
]
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
AC_LANG_RESTORE
|
||||||
|
|
||||||
|
if test "$wx_cv_type_statvfs_t" != "unknown"; then
|
||||||
|
AC_DEFINE(HAVE_STATVFS)
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
AC_MSG_WARN([wxGetDiskSpace() function won't work without statfs()])
|
dnl set it for the test below
|
||||||
|
wx_cv_type_statvfs_t="unknown"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "$wx_cv_type_statvfs_t" != "unknown"; then
|
||||||
|
AC_DEFINE_UNQUOTED(WX_STATFS_T, $wx_cv_type_statvfs_t)
|
||||||
|
else
|
||||||
|
AC_MSG_WARN([wxGetDiskSpace() function won't work without statfs()])
|
||||||
|
fi
|
||||||
|
|
||||||
dnl check for fcntl() or at least flock() needed by Unix implementation of
|
dnl check for fcntl() or at least flock() needed by Unix implementation of
|
||||||
dnl wxSingleInstanceChecker
|
dnl wxSingleInstanceChecker
|
||||||
if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
|
if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
|
||||||
@@ -3608,17 +3677,17 @@ if test "$TOOLKIT" != "MSW"; then
|
|||||||
dnl 3. pthread_attr_getschedparam and pthread_attr_setschedparam
|
dnl 3. pthread_attr_getschedparam and pthread_attr_setschedparam
|
||||||
HAVE_PRIOR_FUNCS=0
|
HAVE_PRIOR_FUNCS=0
|
||||||
AC_CHECK_FUNC(pthread_attr_getschedpolicy,
|
AC_CHECK_FUNC(pthread_attr_getschedpolicy,
|
||||||
AC_CHECK_FUNC(pthread_attr_setschedparam,
|
[AC_CHECK_FUNC(pthread_attr_setschedparam,
|
||||||
AC_CHECK_FUNC(sched_get_priority_max,
|
[AC_CHECK_FUNC(sched_get_priority_max,
|
||||||
HAVE_PRIOR_FUNCS=1,
|
HAVE_PRIOR_FUNCS=1,
|
||||||
AC_CHECK_LIB([posix4], sched_get_priority_max,
|
[AC_CHECK_LIB([posix4], sched_get_priority_max,
|
||||||
[
|
[
|
||||||
HAVE_PRIOR_FUNCS=1
|
HAVE_PRIOR_FUNCS=1
|
||||||
POSIX4_LINK=" -lposix4"
|
POSIX4_LINK=" -lposix4"
|
||||||
],
|
],
|
||||||
)
|
)]
|
||||||
)
|
)]
|
||||||
)
|
)]
|
||||||
)
|
)
|
||||||
|
|
||||||
if test "$HAVE_PRIOR_FUNCS" = 1; then
|
if test "$HAVE_PRIOR_FUNCS" = 1; then
|
||||||
@@ -5231,7 +5300,7 @@ if test "$wxUSE_GUI" = "yes"; then
|
|||||||
dnl ipc, mfc, nativdlg, oleauto, ownerdrw
|
dnl ipc, mfc, nativdlg, oleauto, ownerdrw
|
||||||
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
|
||||||
drawing dynamic erase event exec font image \
|
drawing dynamic erase event exec font image \
|
||||||
minimal propsize rotate widgets"
|
minimal propsize rotate shaped widgets"
|
||||||
|
|
||||||
dnl this is needed to be able to find AFM files
|
dnl this is needed to be able to find AFM files
|
||||||
CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
|
CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
|
||||||
|
@@ -138,7 +138,7 @@ public:
|
|||||||
//// Implementation
|
//// Implementation
|
||||||
|
|
||||||
// Play the frame
|
// Play the frame
|
||||||
virtual bool PlayFrame(int frame, wxWindow& window, wxPoint& pos);
|
virtual bool PlayFrame(int frame, wxWindow& window, const wxPoint& pos);
|
||||||
virtual bool PlayFrame();
|
virtual bool PlayFrame();
|
||||||
virtual void DrawFrame(int frame, wxDC& dc, const wxPoint& pos);
|
virtual void DrawFrame(int frame, wxDC& dc, const wxPoint& pos);
|
||||||
virtual void DrawBackground(wxDC& dc, const wxPoint& pos, const wxColour& colour);
|
virtual void DrawBackground(wxDC& dc, const wxPoint& pos, const wxColour& colour);
|
||||||
|
@@ -239,7 +239,7 @@ public:
|
|||||||
int alignment = FL_ALIGN_TOP,
|
int alignment = FL_ALIGN_TOP,
|
||||||
int rowNo = 0,
|
int rowNo = 0,
|
||||||
int columnPos = 0,
|
int columnPos = 0,
|
||||||
const wxString& name="bar",
|
const wxString& name = wxT("bar"),
|
||||||
bool spyEvents = FALSE,
|
bool spyEvents = FALSE,
|
||||||
int state = wxCBAR_DOCKED_HORIZONTALLY
|
int state = wxCBAR_DOCKED_HORIZONTALLY
|
||||||
);
|
);
|
||||||
|
@@ -148,12 +148,12 @@ public:
|
|||||||
virtual void AddTool( int toolIndex,
|
virtual void AddTool( int toolIndex,
|
||||||
const wxString& imageFileName,
|
const wxString& imageFileName,
|
||||||
wxBitmapType imageFileType = wxBITMAP_TYPE_BMP,
|
wxBitmapType imageFileType = wxBITMAP_TYPE_BMP,
|
||||||
const wxString& labelText = "", bool alignTextRight = FALSE,
|
const wxString& labelText = wxT(""), bool alignTextRight = FALSE,
|
||||||
bool isFlat = TRUE );
|
bool isFlat = TRUE );
|
||||||
// Adds a tool. See the documentation for wxToolBar for details.
|
// Adds a tool. See the documentation for wxToolBar for details.
|
||||||
|
|
||||||
virtual void AddTool( int toolIndex, wxBitmap labelBmp,
|
virtual void AddTool( int toolIndex, wxBitmap labelBmp,
|
||||||
const wxString& labelText = "", bool alignTextRight = FALSE,
|
const wxString& labelText = wxT(""), bool alignTextRight = FALSE,
|
||||||
bool isFlat = TRUE );
|
bool isFlat = TRUE );
|
||||||
|
|
||||||
// Method from wxToolBarBase (for compatibility), only
|
// Method from wxToolBarBase (for compatibility), only
|
||||||
@@ -162,7 +162,7 @@ public:
|
|||||||
|
|
||||||
virtual wxToolBarToolBase *AddTool(const int toolIndex, const wxBitmap& bitmap, const wxBitmap& pushedBitmap = wxNullBitmap,
|
virtual wxToolBarToolBase *AddTool(const int toolIndex, const wxBitmap& bitmap, const wxBitmap& pushedBitmap = wxNullBitmap,
|
||||||
const bool toggle = FALSE, const long xPos = -1, const long yPos = -1, wxObject *clientData = NULL,
|
const bool toggle = FALSE, const long xPos = -1, const long yPos = -1, wxObject *clientData = NULL,
|
||||||
const wxString& helpString1 = "", const wxString& helpString2 = "");
|
const wxString& helpString1 = wxT(""), const wxString& helpString2 = wxT(""));
|
||||||
|
|
||||||
// Adds a separator. See the documentation for wxToolBar for details.
|
// Adds a separator. See the documentation for wxToolBar for details.
|
||||||
|
|
||||||
|
@@ -110,7 +110,7 @@ public:
|
|||||||
|
|
||||||
// Constructor.
|
// Constructor.
|
||||||
wxNewBitmapButton( const wxBitmap& labelBitmap = wxNullBitmap,
|
wxNewBitmapButton( const wxBitmap& labelBitmap = wxNullBitmap,
|
||||||
const wxString& labelText = "",
|
const wxString& labelText = wxT(""),
|
||||||
int alignText = NB_ALIGN_TEXT_BOTTOM,
|
int alignText = NB_ALIGN_TEXT_BOTTOM,
|
||||||
bool isFlat = TRUE,
|
bool isFlat = TRUE,
|
||||||
// this is the default type of fired events
|
// this is the default type of fired events
|
||||||
@@ -124,7 +124,7 @@ public:
|
|||||||
// Use this constructor if buttons have to be persistant
|
// Use this constructor if buttons have to be persistant
|
||||||
wxNewBitmapButton( const wxString& bitmapFileName,
|
wxNewBitmapButton( const wxString& bitmapFileName,
|
||||||
const wxBitmapType bitmapFileType = wxBITMAP_TYPE_BMP,
|
const wxBitmapType bitmapFileType = wxBITMAP_TYPE_BMP,
|
||||||
const wxString& labelText = "",
|
const wxString& labelText = wxT(""),
|
||||||
int alignText = NB_ALIGN_TEXT_BOTTOM,
|
int alignText = NB_ALIGN_TEXT_BOTTOM,
|
||||||
bool isFlat = TRUE,
|
bool isFlat = TRUE,
|
||||||
// this is the default type of fired events
|
// this is the default type of fired events
|
||||||
@@ -143,7 +143,7 @@ public:
|
|||||||
virtual void Reshape();
|
virtual void Reshape();
|
||||||
|
|
||||||
// Sets the label and optionally label text.
|
// Sets the label and optionally label text.
|
||||||
virtual void SetLabel(const wxBitmap& labelBitmap, const wxString& labelText = "" );
|
virtual void SetLabel(const wxBitmap& labelBitmap, const wxString& labelText = wxT("") );
|
||||||
|
|
||||||
// Sets the text alignment and margins.
|
// Sets the text alignment and margins.
|
||||||
virtual void SetAlignments( int alignText = NB_ALIGN_TEXT_BOTTOM,
|
virtual void SetAlignments( int alignText = NB_ALIGN_TEXT_BOTTOM,
|
||||||
|
@@ -24,11 +24,29 @@
|
|||||||
#include <wx/wx.h>
|
#include <wx/wx.h>
|
||||||
#include <wx/dnd.h>
|
#include <wx/dnd.h>
|
||||||
|
|
||||||
#ifdef STCISDLL
|
#ifndef SWIG
|
||||||
#define STCDLLEXPORT WXDLLEXPORT
|
/*
|
||||||
|
* If we're using wx in Dynamic Library format do we
|
||||||
|
* want wxStyledTextCtrl to be in DLL form as well?
|
||||||
|
*/
|
||||||
|
#if defined(WXUSINGDLL) && \
|
||||||
|
(defined(WXMAKING_STC_DLL) || defined(WXUSING_STC_DLL))
|
||||||
|
|
||||||
|
#if defined(WXMAKING_STC_DLL)
|
||||||
|
// When building the DLL WXSTC_DECLSPEC exports classes
|
||||||
|
# define WXSTC_DECLSPEC WXEXPORT
|
||||||
|
#elif defined(WXUSING_STC_DLL)
|
||||||
|
// When using the DLL WXSTC_DECLSPEC imports classes
|
||||||
|
# define WXSTC_DECLSPEC WXIMPORT
|
||||||
|
#endif // defined(WXBUILD_STC_DLL)
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#define STCDLLEXPORT
|
// When building the static library nullify the effect of WXSTC_DECLSPEC
|
||||||
#endif
|
#define WXSTC_DECLSPEC
|
||||||
|
#endif // WXUSINGDLL && (WXMAKING_STC_DLL || WXUSING_STC_DLL)
|
||||||
|
|
||||||
|
#endif // SWIG
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
@@ -59,6 +77,9 @@
|
|||||||
// The SC_CP_UTF8 value can be used to enter Unicode mode.
|
// The SC_CP_UTF8 value can be used to enter Unicode mode.
|
||||||
// This is the same value as CP_UTF8 in Windows
|
// This is the same value as CP_UTF8 in Windows
|
||||||
#define wxSTC_CP_UTF8 65001
|
#define wxSTC_CP_UTF8 65001
|
||||||
|
|
||||||
|
// The SC_CP_DBCS value can be used to indicate a DBCS mode for GTK+.
|
||||||
|
#define wxSTC_CP_DBCS 1
|
||||||
#define wxSTC_MARKER_MAX 31
|
#define wxSTC_MARKER_MAX 31
|
||||||
#define wxSTC_MARK_CIRCLE 0
|
#define wxSTC_MARK_CIRCLE 0
|
||||||
#define wxSTC_MARK_ROUNDRECT 1
|
#define wxSTC_MARK_ROUNDRECT 1
|
||||||
@@ -89,6 +110,7 @@
|
|||||||
#define wxSTC_MARK_BACKGROUND 22
|
#define wxSTC_MARK_BACKGROUND 22
|
||||||
#define wxSTC_MARK_DOTDOTDOT 23
|
#define wxSTC_MARK_DOTDOTDOT 23
|
||||||
#define wxSTC_MARK_ARROWS 24
|
#define wxSTC_MARK_ARROWS 24
|
||||||
|
#define wxSTC_MARK_PIXMAP 25
|
||||||
#define wxSTC_MARK_CHARACTER 10000
|
#define wxSTC_MARK_CHARACTER 10000
|
||||||
|
|
||||||
// Markers used for outlining column.
|
// Markers used for outlining column.
|
||||||
@@ -167,10 +189,21 @@
|
|||||||
#define wxSTC_FIND_MATCHCASE 4
|
#define wxSTC_FIND_MATCHCASE 4
|
||||||
#define wxSTC_FIND_WORDSTART 0x00100000
|
#define wxSTC_FIND_WORDSTART 0x00100000
|
||||||
#define wxSTC_FIND_REGEXP 0x00200000
|
#define wxSTC_FIND_REGEXP 0x00200000
|
||||||
|
#define wxSTC_FIND_POSIX 0x00400000
|
||||||
#define wxSTC_FOLDLEVELBASE 0x400
|
#define wxSTC_FOLDLEVELBASE 0x400
|
||||||
#define wxSTC_FOLDLEVELWHITEFLAG 0x1000
|
#define wxSTC_FOLDLEVELWHITEFLAG 0x1000
|
||||||
#define wxSTC_FOLDLEVELHEADERFLAG 0x2000
|
#define wxSTC_FOLDLEVELHEADERFLAG 0x2000
|
||||||
|
#define wxSTC_FOLDLEVELBOXHEADERFLAG 0x4000
|
||||||
|
#define wxSTC_FOLDLEVELBOXFOOTERFLAG 0x8000
|
||||||
|
#define wxSTC_FOLDLEVELCONTRACTED 0x10000
|
||||||
|
#define wxSTC_FOLDLEVELUNINDENT 0x20000
|
||||||
#define wxSTC_FOLDLEVELNUMBERMASK 0x0FFF
|
#define wxSTC_FOLDLEVELNUMBERMASK 0x0FFF
|
||||||
|
#define wxSTC_FOLDFLAG_LINEBEFORE_EXPANDED 0x0002
|
||||||
|
#define wxSTC_FOLDFLAG_LINEBEFORE_CONTRACTED 0x0004
|
||||||
|
#define wxSTC_FOLDFLAG_LINEAFTER_EXPANDED 0x0008
|
||||||
|
#define wxSTC_FOLDFLAG_LINEAFTER_CONTRACTED 0x0010
|
||||||
|
#define wxSTC_FOLDFLAG_LEVELNUMBERS 0x0040
|
||||||
|
#define wxSTC_FOLDFLAG_BOX 0x0001
|
||||||
#define wxSTC_TIME_FOREVER 10000000
|
#define wxSTC_TIME_FOREVER 10000000
|
||||||
#define wxSTC_WRAP_NONE 0
|
#define wxSTC_WRAP_NONE 0
|
||||||
#define wxSTC_WRAP_WORD 1
|
#define wxSTC_WRAP_WORD 1
|
||||||
@@ -182,7 +215,7 @@
|
|||||||
#define wxSTC_EDGE_LINE 1
|
#define wxSTC_EDGE_LINE 1
|
||||||
#define wxSTC_EDGE_BACKGROUND 2
|
#define wxSTC_EDGE_BACKGROUND 2
|
||||||
#define wxSTC_CURSORNORMAL -1
|
#define wxSTC_CURSORNORMAL -1
|
||||||
#define wxSTC_CURSORWAIT 3
|
#define wxSTC_CURSORWAIT 4
|
||||||
|
|
||||||
// Constants for use with SetVisiblePolicy, similar to SetCaretPolicy.
|
// Constants for use with SetVisiblePolicy, similar to SetCaretPolicy.
|
||||||
#define wxSTC_VISIBLE_SLOP 0x01
|
#define wxSTC_VISIBLE_SLOP 0x01
|
||||||
@@ -290,6 +323,12 @@
|
|||||||
#define wxSTC_LEX_BAAN 31
|
#define wxSTC_LEX_BAAN 31
|
||||||
#define wxSTC_LEX_MATLAB 32
|
#define wxSTC_LEX_MATLAB 32
|
||||||
#define wxSTC_LEX_SCRIPTOL 33
|
#define wxSTC_LEX_SCRIPTOL 33
|
||||||
|
#define wxSTC_LEX_ASM 34
|
||||||
|
#define wxSTC_LEX_CPPNOCASE 35
|
||||||
|
#define wxSTC_LEX_FORTRAN 36
|
||||||
|
#define wxSTC_LEX_F77 37
|
||||||
|
#define wxSTC_LEX_CSS 38
|
||||||
|
#define wxSTC_LEX_POV 39
|
||||||
|
|
||||||
// When a lexer specifies its language as SCLEX_AUTOMATIC it receives a
|
// When a lexer specifies its language as SCLEX_AUTOMATIC it receives a
|
||||||
// value assigned in sequence from SCLEX_AUTOMATIC+1.
|
// value assigned in sequence from SCLEX_AUTOMATIC+1.
|
||||||
@@ -558,6 +597,9 @@
|
|||||||
#define wxSTC_ERR_DIFF_ADDITION 11
|
#define wxSTC_ERR_DIFF_ADDITION 11
|
||||||
#define wxSTC_ERR_DIFF_DELETION 12
|
#define wxSTC_ERR_DIFF_DELETION 12
|
||||||
#define wxSTC_ERR_DIFF_MESSAGE 13
|
#define wxSTC_ERR_DIFF_MESSAGE 13
|
||||||
|
#define wxSTC_ERR_PHP 14
|
||||||
|
#define wxSTC_ERR_ELF 15
|
||||||
|
#define wxSTC_ERR_IFC 16
|
||||||
|
|
||||||
// Lexical states for SCLEX_BATCH
|
// Lexical states for SCLEX_BATCH
|
||||||
#define wxSTC_BAT_DEFAULT 0
|
#define wxSTC_BAT_DEFAULT 0
|
||||||
@@ -604,24 +646,31 @@
|
|||||||
#define wxSTC_AVE_COMMENT 1
|
#define wxSTC_AVE_COMMENT 1
|
||||||
#define wxSTC_AVE_NUMBER 2
|
#define wxSTC_AVE_NUMBER 2
|
||||||
#define wxSTC_AVE_WORD 3
|
#define wxSTC_AVE_WORD 3
|
||||||
#define wxSTC_AVE_KEYWORD 4
|
|
||||||
#define wxSTC_AVE_STATEMENT 5
|
|
||||||
#define wxSTC_AVE_STRING 6
|
#define wxSTC_AVE_STRING 6
|
||||||
#define wxSTC_AVE_ENUM 7
|
#define wxSTC_AVE_ENUM 7
|
||||||
#define wxSTC_AVE_STRINGEOL 8
|
#define wxSTC_AVE_STRINGEOL 8
|
||||||
#define wxSTC_AVE_IDENTIFIER 9
|
#define wxSTC_AVE_IDENTIFIER 9
|
||||||
#define wxSTC_AVE_OPERATOR 10
|
#define wxSTC_AVE_OPERATOR 10
|
||||||
|
#define wxSTC_AVE_WORD1 11
|
||||||
|
#define wxSTC_AVE_WORD2 12
|
||||||
|
#define wxSTC_AVE_WORD3 13
|
||||||
|
#define wxSTC_AVE_WORD4 14
|
||||||
|
#define wxSTC_AVE_WORD5 15
|
||||||
|
#define wxSTC_AVE_WORD6 16
|
||||||
|
|
||||||
// Lexical states for SCLEX_ADA
|
// Lexical states for SCLEX_ADA
|
||||||
#define wxSTC_ADA_DEFAULT 0
|
#define wxSTC_ADA_DEFAULT 0
|
||||||
#define wxSTC_ADA_COMMENT 1
|
#define wxSTC_ADA_WORD 1
|
||||||
#define wxSTC_ADA_NUMBER 2
|
#define wxSTC_ADA_IDENTIFIER 2
|
||||||
#define wxSTC_ADA_WORD 3
|
#define wxSTC_ADA_NUMBER 3
|
||||||
#define wxSTC_ADA_STRING 4
|
#define wxSTC_ADA_DELIMITER 4
|
||||||
#define wxSTC_ADA_CHARACTER 5
|
#define wxSTC_ADA_CHARACTER 5
|
||||||
#define wxSTC_ADA_OPERATOR 6
|
#define wxSTC_ADA_CHARACTEREOL 6
|
||||||
#define wxSTC_ADA_IDENTIFIER 7
|
#define wxSTC_ADA_STRING 7
|
||||||
#define wxSTC_ADA_STRINGEOL 8
|
#define wxSTC_ADA_STRINGEOL 8
|
||||||
|
#define wxSTC_ADA_LABEL 9
|
||||||
|
#define wxSTC_ADA_COMMENTLINE 10
|
||||||
|
#define wxSTC_ADA_ILLEGAL 11
|
||||||
|
|
||||||
// Lexical states for SCLEX_BAAN
|
// Lexical states for SCLEX_BAAN
|
||||||
#define wxSTC_BAAN_DEFAULT 0
|
#define wxSTC_BAAN_DEFAULT 0
|
||||||
@@ -702,6 +751,66 @@
|
|||||||
#define wxSTC_SCRIPTOL_COMMENTDOCKEYWORDERROR 18
|
#define wxSTC_SCRIPTOL_COMMENTDOCKEYWORDERROR 18
|
||||||
#define wxSTC_SCRIPTOL_COMMENTBASIC 19
|
#define wxSTC_SCRIPTOL_COMMENTBASIC 19
|
||||||
|
|
||||||
|
// Lexical states for SCLEX_ASM
|
||||||
|
#define wxSTC_ASM_DEFAULT 0
|
||||||
|
#define wxSTC_ASM_COMMENT 1
|
||||||
|
#define wxSTC_ASM_NUMBER 2
|
||||||
|
#define wxSTC_ASM_STRING 3
|
||||||
|
#define wxSTC_ASM_OPERATOR 4
|
||||||
|
#define wxSTC_ASM_IDENTIFIER 5
|
||||||
|
#define wxSTC_ASM_CPUINSTRUCTION 6
|
||||||
|
#define wxSTC_ASM_MATHINSTRUCTION 7
|
||||||
|
#define wxSTC_ASM_REGISTER 8
|
||||||
|
#define wxSTC_ASM_DIRECTIVE 9
|
||||||
|
#define wxSTC_ASM_DIRECTIVEOPERAND 10
|
||||||
|
|
||||||
|
// Lexical states for SCLEX_FORTRAN
|
||||||
|
#define wxSTC_F_DEFAULT 0
|
||||||
|
#define wxSTC_F_COMMENT 1
|
||||||
|
#define wxSTC_F_NUMBER 2
|
||||||
|
#define wxSTC_F_STRING1 3
|
||||||
|
#define wxSTC_F_STRING2 4
|
||||||
|
#define wxSTC_F_STRINGEOL 5
|
||||||
|
#define wxSTC_F_OPERATOR 6
|
||||||
|
#define wxSTC_F_IDENTIFIER 7
|
||||||
|
#define wxSTC_F_WORD 8
|
||||||
|
#define wxSTC_F_WORD2 9
|
||||||
|
#define wxSTC_F_WORD3 10
|
||||||
|
#define wxSTC_F_PREPROCESSOR 11
|
||||||
|
#define wxSTC_F_OPERATOR2 12
|
||||||
|
#define wxSTC_F_LABEL 13
|
||||||
|
#define wxSTC_F_CONTINUATION 14
|
||||||
|
|
||||||
|
// Lexical states for SCLEX_CSS
|
||||||
|
#define wxSTC_CSS_DEFAULT 0
|
||||||
|
#define wxSTC_CSS_TAG 1
|
||||||
|
#define wxSTC_CSS_CLASS 2
|
||||||
|
#define wxSTC_CSS_PSEUDOCLASS 3
|
||||||
|
#define wxSTC_CSS_UNKNOWN_PSEUDOCLASS 4
|
||||||
|
#define wxSTC_CSS_OPERATOR 5
|
||||||
|
#define wxSTC_CSS_IDENTIFIER 6
|
||||||
|
#define wxSTC_CSS_UNKNOWN_IDENTIFIER 7
|
||||||
|
#define wxSTC_CSS_VALUE 8
|
||||||
|
#define wxSTC_CSS_COMMENT 9
|
||||||
|
#define wxSTC_CSS_ID 10
|
||||||
|
#define wxSTC_CSS_IMPORTANT 11
|
||||||
|
#define wxSTC_CSS_DIRECTIVE 12
|
||||||
|
#define wxSTC_CSS_DOUBLESTRING 13
|
||||||
|
#define wxSTC_CSS_SINGLESTRING 14
|
||||||
|
|
||||||
|
// Lexical states for SCLEX_POV
|
||||||
|
#define wxSTC_POV_DEFAULT 0
|
||||||
|
#define wxSTC_POV_COMMENT 1
|
||||||
|
#define wxSTC_POV_COMMENTLINE 2
|
||||||
|
#define wxSTC_POV_COMMENTDOC 3
|
||||||
|
#define wxSTC_POV_NUMBER 4
|
||||||
|
#define wxSTC_POV_WORD 5
|
||||||
|
#define wxSTC_POV_STRING 6
|
||||||
|
#define wxSTC_POV_OPERATOR 7
|
||||||
|
#define wxSTC_POV_IDENTIFIER 8
|
||||||
|
#define wxSTC_POV_BRACE 9
|
||||||
|
#define wxSTC_POV_WORD2 10
|
||||||
|
|
||||||
|
|
||||||
//-----------------------------------------
|
//-----------------------------------------
|
||||||
// Commands that can be bound to keystrokes
|
// Commands that can be bound to keystrokes
|
||||||
@@ -849,6 +958,9 @@
|
|||||||
// Switch the current line with the previous.
|
// Switch the current line with the previous.
|
||||||
#define wxSTC_CMD_LINETRANSPOSE 2339
|
#define wxSTC_CMD_LINETRANSPOSE 2339
|
||||||
|
|
||||||
|
// Duplicate the current line.
|
||||||
|
#define wxSTC_CMD_LINEDUPLICATE 2404
|
||||||
|
|
||||||
// Transform the selection to lower case.
|
// Transform the selection to lower case.
|
||||||
#define wxSTC_CMD_LOWERCASE 2340
|
#define wxSTC_CMD_LOWERCASE 2340
|
||||||
|
|
||||||
@@ -879,6 +991,18 @@
|
|||||||
// caret position.
|
// caret position.
|
||||||
#define wxSTC_CMD_LINEENDDISPLAYEXTEND 2348
|
#define wxSTC_CMD_LINEENDDISPLAYEXTEND 2348
|
||||||
|
|
||||||
|
// These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)?
|
||||||
|
// except they behave differently when word-wrap is enabled:
|
||||||
|
// They go first to the start / end of the display line, like (Home|LineEnd)Display
|
||||||
|
// The difference is that, the cursor is already at the point, it goes on to the start
|
||||||
|
// or end of the document line, as appropriate for (Home|LineEnd|VCHome)Extend.
|
||||||
|
#define wxSTC_CMD_HOMEWRAP 2349
|
||||||
|
#define wxSTC_CMD_HOMEWRAPEXTEND 2450
|
||||||
|
#define wxSTC_CMD_LINEENDWRAP 2451
|
||||||
|
#define wxSTC_CMD_LINEENDWRAPEXTEND 2452
|
||||||
|
#define wxSTC_CMD_VCHOMEWRAP 2453
|
||||||
|
#define wxSTC_CMD_VCHOMEWRAPEXTEND 2454
|
||||||
|
|
||||||
// Move to the previous change in capitalisation.
|
// Move to the previous change in capitalisation.
|
||||||
#define wxSTC_CMD_WORDPARTLEFT 2390
|
#define wxSTC_CMD_WORDPARTLEFT 2390
|
||||||
|
|
||||||
@@ -899,6 +1023,12 @@
|
|||||||
// Delete forwards from the current position to the end of the line.
|
// Delete forwards from the current position to the end of the line.
|
||||||
#define wxSTC_CMD_DELLINERIGHT 2396
|
#define wxSTC_CMD_DELLINERIGHT 2396
|
||||||
|
|
||||||
|
// Move caret between paragraphs (delimited by empty lines)
|
||||||
|
#define wxSTC_CMD_PARADOWN 2413
|
||||||
|
#define wxSTC_CMD_PARADOWNEXTEND 2414
|
||||||
|
#define wxSTC_CMD_PARAUP 2415
|
||||||
|
#define wxSTC_CMD_PARAUPEXTEND 2416
|
||||||
|
|
||||||
|
|
||||||
// END of generated section
|
// END of generated section
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
@@ -908,9 +1038,9 @@ class WordList;
|
|||||||
struct SCNotification;
|
struct SCNotification;
|
||||||
|
|
||||||
#ifndef SWIG
|
#ifndef SWIG
|
||||||
extern STCDLLEXPORT const wxChar* wxSTCNameStr;
|
extern WXSTC_DECLSPEC const wxChar* wxSTCNameStr;
|
||||||
class STCDLLEXPORT wxStyledTextCtrl;
|
class WXSTC_DECLSPEC wxStyledTextCtrl;
|
||||||
class STCDLLEXPORT wxStyledTextEvent;
|
class WXSTC_DECLSPEC wxStyledTextEvent;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
@@ -1073,8 +1203,8 @@ public:
|
|||||||
// Set the symbol used for a particular marker number,
|
// Set the symbol used for a particular marker number,
|
||||||
// and optionally the fore and background colours.
|
// and optionally the fore and background colours.
|
||||||
void MarkerDefine(int markerNumber, int markerSymbol,
|
void MarkerDefine(int markerNumber, int markerSymbol,
|
||||||
const wxColour& foreground = wxNullColour,
|
const wxColour& foreground = wxNullColour,
|
||||||
const wxColour& background = wxNullColour);
|
const wxColour& background = wxNullColour);
|
||||||
|
|
||||||
// Set the foreground colour used for a particular marker number.
|
// Set the foreground colour used for a particular marker number.
|
||||||
void MarkerSetForeground(int markerNumber, const wxColour& fore);
|
void MarkerSetForeground(int markerNumber, const wxColour& fore);
|
||||||
@@ -1100,6 +1230,9 @@ public:
|
|||||||
// Find the previous line before lineStart that includes a marker in mask.
|
// Find the previous line before lineStart that includes a marker in mask.
|
||||||
int MarkerPrevious(int lineStart, int markerMask);
|
int MarkerPrevious(int lineStart, int markerMask);
|
||||||
|
|
||||||
|
// Define a marker from a bitmap
|
||||||
|
void MarkerDefineBitmap(int markerNumber, const wxBitmap& bmp);
|
||||||
|
|
||||||
// Set a margin to be either numeric or symbolic.
|
// Set a margin to be either numeric or symbolic.
|
||||||
void SetMarginType(int margin, int marginType);
|
void SetMarginType(int margin, int marginType);
|
||||||
|
|
||||||
@@ -1160,6 +1293,9 @@ public:
|
|||||||
// Set the character set of the font in a style.
|
// Set the character set of the font in a style.
|
||||||
void StyleSetCharacterSet(int style, int characterSet);
|
void StyleSetCharacterSet(int style, int characterSet);
|
||||||
|
|
||||||
|
// Set a style to be a hotspot or not.
|
||||||
|
void StyleSetHotSpot(int style, bool hotspot);
|
||||||
|
|
||||||
// Set the foreground colour of the selection and whether to use this setting.
|
// Set the foreground colour of the selection and whether to use this setting.
|
||||||
void SetSelForeground(bool useSetting, const wxColour& fore);
|
void SetSelForeground(bool useSetting, const wxColour& fore);
|
||||||
|
|
||||||
@@ -1321,6 +1457,19 @@ public:
|
|||||||
// after the inserted text upon completion.
|
// after the inserted text upon completion.
|
||||||
bool AutoCompGetDropRestOfWord();
|
bool AutoCompGetDropRestOfWord();
|
||||||
|
|
||||||
|
// Register an image for use in autocompletion lists.
|
||||||
|
void RegisterImage(int type, const wxBitmap& bmp);
|
||||||
|
|
||||||
|
// Clear all the registered images.
|
||||||
|
void ClearRegisteredImages();
|
||||||
|
|
||||||
|
// Retrieve the auto-completion list type-separator character.
|
||||||
|
int AutoCompGetTypeSeparator();
|
||||||
|
|
||||||
|
// Change the type-separator character in the string setting up an auto-completion list.
|
||||||
|
// Default is '?' but can be changed if items contain '?'.
|
||||||
|
void AutoCompSetTypeSeparator(int separatorCharacter);
|
||||||
|
|
||||||
// Set the number of spaces used for one level of indentation.
|
// Set the number of spaces used for one level of indentation.
|
||||||
void SetIndent(int indentSize);
|
void SetIndent(int indentSize);
|
||||||
|
|
||||||
@@ -1409,14 +1558,14 @@ public:
|
|||||||
|
|
||||||
// On Windows, will draw the document into a display context such as a printer.
|
// On Windows, will draw the document into a display context such as a printer.
|
||||||
int FormatRange(bool doDraw,
|
int FormatRange(bool doDraw,
|
||||||
int startPos,
|
int startPos,
|
||||||
int endPos,
|
int endPos,
|
||||||
wxDC* draw,
|
wxDC* draw,
|
||||||
wxDC* target, // Why does it use two? Can they be the same?
|
wxDC* target, // Why does it use two? Can they be the same?
|
||||||
wxRect renderRect,
|
wxRect renderRect,
|
||||||
wxRect pageRect);
|
wxRect pageRect);
|
||||||
|
|
||||||
// Retrieve the line at the top of the display.
|
// Retrieve the display line at the top of the display.
|
||||||
int GetFirstVisibleLine();
|
int GetFirstVisibleLine();
|
||||||
|
|
||||||
// Retrieve the contents of a line.
|
// Retrieve the contents of a line.
|
||||||
@@ -1571,6 +1720,12 @@ public:
|
|||||||
// Set the background colour for the call tip.
|
// Set the background colour for the call tip.
|
||||||
void CallTipSetBackground(const wxColour& back);
|
void CallTipSetBackground(const wxColour& back);
|
||||||
|
|
||||||
|
// Set the foreground colour for the call tip.
|
||||||
|
void CallTipSetForeground(const wxColour& fore);
|
||||||
|
|
||||||
|
// Set the foreground colour for the highlighted part of the call tip.
|
||||||
|
void CallTipSetForegroundHighlight(const wxColour& fore);
|
||||||
|
|
||||||
// Find the display line of a document line taking hidden lines into account.
|
// Find the display line of a document line taking hidden lines into account.
|
||||||
int VisibleFromDocLine(int line);
|
int VisibleFromDocLine(int line);
|
||||||
|
|
||||||
@@ -1612,7 +1767,7 @@ public:
|
|||||||
// Ensure a particular line is visible by expanding any header line hiding it.
|
// Ensure a particular line is visible by expanding any header line hiding it.
|
||||||
void EnsureVisible(int line);
|
void EnsureVisible(int line);
|
||||||
|
|
||||||
// Set some debugging options for folding.
|
// Set some style options for folding.
|
||||||
void SetFoldFlags(int flags);
|
void SetFoldFlags(int flags);
|
||||||
|
|
||||||
// Ensure a particular line is visible by expanding any header line hiding it.
|
// Ensure a particular line is visible by expanding any header line hiding it.
|
||||||
@@ -1678,6 +1833,39 @@ public:
|
|||||||
// Retrieve the height of a particular line of text in pixels.
|
// Retrieve the height of a particular line of text in pixels.
|
||||||
int TextHeight(int line);
|
int TextHeight(int line);
|
||||||
|
|
||||||
|
// Show or hide the vertical scroll bar.
|
||||||
|
void SetUseVerticalScrollBar(bool show);
|
||||||
|
|
||||||
|
// Is the vertical scroll bar visible?
|
||||||
|
bool GetUseVerticalScrollBar();
|
||||||
|
|
||||||
|
// Append a string to the end of the document without changing the selection.
|
||||||
|
void AppendText(int length, const wxString& text);
|
||||||
|
|
||||||
|
// Is drawing done in two phases with backgrounds drawn before foregrounds?
|
||||||
|
bool GetTwoPhaseDraw();
|
||||||
|
|
||||||
|
// In twoPhaseDraw mode, drawing is performed in two phases, first the background
|
||||||
|
// and then the foreground. This avoids chopping off characters that overlap the next run.
|
||||||
|
void SetTwoPhaseDraw(bool twoPhase);
|
||||||
|
|
||||||
|
// Make the target range start and end be the same as the selection range start and end.
|
||||||
|
void TargetFromSelection();
|
||||||
|
|
||||||
|
// Join the lines in the target.
|
||||||
|
void LinesJoin();
|
||||||
|
|
||||||
|
// Split the lines in the target into lines that are less wide than pixelWidth
|
||||||
|
// where possible.
|
||||||
|
void LinesSplit(int pixelWidth);
|
||||||
|
|
||||||
|
// Set the colours used as a chequerboard pattern in the fold margin
|
||||||
|
void SetFoldMarginColour(bool useSetting, const wxColour& back);
|
||||||
|
void SetFoldMarginHiColour(bool useSetting, const wxColour& fore);
|
||||||
|
|
||||||
|
// Duplicate the current line.
|
||||||
|
void LineDuplicate();
|
||||||
|
|
||||||
// Move caret to first position on display line.
|
// Move caret to first position on display line.
|
||||||
void HomeDisplay();
|
void HomeDisplay();
|
||||||
|
|
||||||
@@ -1842,6 +2030,9 @@ public:
|
|||||||
void SetXOffset(int newOffset);
|
void SetXOffset(int newOffset);
|
||||||
int GetXOffset();
|
int GetXOffset();
|
||||||
|
|
||||||
|
// Set the last x chosen value to be the caret x position
|
||||||
|
void ChooseCaretX();
|
||||||
|
|
||||||
// Set the way the caret is kept visible when going sideway.
|
// Set the way the caret is kept visible when going sideway.
|
||||||
// The exclusion zone is given in pixels.
|
// The exclusion zone is given in pixels.
|
||||||
void SetXCaretPolicy(int caretPolicy, int caretSlop);
|
void SetXCaretPolicy(int caretPolicy, int caretSlop);
|
||||||
@@ -1850,6 +2041,21 @@ public:
|
|||||||
// The exclusion zone is given in lines.
|
// The exclusion zone is given in lines.
|
||||||
void SetYCaretPolicy(int caretPolicy, int caretSlop);
|
void SetYCaretPolicy(int caretPolicy, int caretSlop);
|
||||||
|
|
||||||
|
// Set printing to line wrapped (SC_WRAP_WORD) or not line wrapped (SC_WRAP_NONE).
|
||||||
|
void SetPrintWrapMode(int mode);
|
||||||
|
|
||||||
|
// Is printing line wrapped.
|
||||||
|
int GetPrintWrapMode();
|
||||||
|
|
||||||
|
// Set a fore colour for active hotspots.
|
||||||
|
void SetHotspotActiveForeground(bool useSetting, const wxColour& fore);
|
||||||
|
|
||||||
|
// Set a back colour for active hotspots.
|
||||||
|
void SetHotspotActiveBackground(bool useSetting, const wxColour& back);
|
||||||
|
|
||||||
|
// Enable / Disable underlining active hotspots.
|
||||||
|
void SetHotspotActiveUnderline(bool underline);
|
||||||
|
|
||||||
// Start notifying the container of all key presses and commands.
|
// Start notifying the container of all key presses and commands.
|
||||||
void StartRecord();
|
void StartRecord();
|
||||||
|
|
||||||
@@ -1955,6 +2161,12 @@ public:
|
|||||||
bool GetLastKeydownProcessed() { return m_lastKeyDownConsumed; }
|
bool GetLastKeydownProcessed() { return m_lastKeyDownConsumed; }
|
||||||
void SetLastKeydownProcessed(bool val) { m_lastKeyDownConsumed = val; }
|
void SetLastKeydownProcessed(bool val) { m_lastKeyDownConsumed = val; }
|
||||||
|
|
||||||
|
// Write the contents of the editor to filename
|
||||||
|
bool SaveFile(const wxString& filename);
|
||||||
|
|
||||||
|
// Load the contents of filename into the editor
|
||||||
|
bool LoadFile(const wxString& filename);
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
@@ -1987,11 +2199,11 @@ private:
|
|||||||
void NotifyChange();
|
void NotifyChange();
|
||||||
void NotifyParent(SCNotification* scn);
|
void NotifyParent(SCNotification* scn);
|
||||||
|
|
||||||
|
|
||||||
private:
|
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
DECLARE_CLASS(wxStyledTextCtrl)
|
DECLARE_CLASS(wxStyledTextCtrl)
|
||||||
|
|
||||||
|
protected:
|
||||||
|
|
||||||
ScintillaWX* m_swx;
|
ScintillaWX* m_swx;
|
||||||
wxStopWatch m_stopWatch;
|
wxStopWatch m_stopWatch;
|
||||||
wxScrollBar* m_vScrollBar;
|
wxScrollBar* m_vScrollBar;
|
||||||
@@ -2110,6 +2322,8 @@ private:
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef SWIG
|
#ifndef SWIG
|
||||||
BEGIN_DECLARE_EVENT_TYPES()
|
BEGIN_DECLARE_EVENT_TYPES()
|
||||||
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_CHANGE, 1650)
|
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_CHANGE, 1650)
|
||||||
@@ -2135,6 +2349,9 @@ BEGIN_DECLARE_EVENT_TYPES()
|
|||||||
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_DRAG_OVER, 1670)
|
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_DRAG_OVER, 1670)
|
||||||
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_DO_DROP, 1671)
|
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_DO_DROP, 1671)
|
||||||
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_ZOOM, 1672)
|
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_ZOOM, 1672)
|
||||||
|
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_HOTSPOT_CLICK, 1673)
|
||||||
|
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_HOTSPOT_DCLICK, 1674)
|
||||||
|
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_CALLTIP_CLICK, 1675)
|
||||||
END_DECLARE_EVENT_TYPES()
|
END_DECLARE_EVENT_TYPES()
|
||||||
#else
|
#else
|
||||||
enum {
|
enum {
|
||||||
@@ -2161,6 +2378,9 @@ END_DECLARE_EVENT_TYPES()
|
|||||||
wxEVT_STC_DRAG_OVER,
|
wxEVT_STC_DRAG_OVER,
|
||||||
wxEVT_STC_DO_DROP,
|
wxEVT_STC_DO_DROP,
|
||||||
wxEVT_STC_ZOOM,
|
wxEVT_STC_ZOOM,
|
||||||
|
wxEVT_STC_HOTSPOT_CLICK,
|
||||||
|
wxEVT_STC_HOTSPOT_DCLICK,
|
||||||
|
wxEVT_STC_CALLTIP_CLICK
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -2192,6 +2412,10 @@ typedef void (wxEvtHandler::*wxStyledTextEventFunction)(wxStyledTextEvent&);
|
|||||||
#define EVT_STC_DRAG_OVER(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DRAG_OVER, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
|
#define EVT_STC_DRAG_OVER(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DRAG_OVER, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
|
||||||
#define EVT_STC_DO_DROP(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DO_DROP, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
|
#define EVT_STC_DO_DROP(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DO_DROP, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
|
||||||
#define EVT_STC_ZOOM(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_ZOOM, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
|
#define EVT_STC_ZOOM(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_ZOOM, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
|
||||||
|
#define EVT_STC_HOTSPOT_CLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_HOTSPOT_CLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
|
||||||
|
#define EVT_STC_HOTSPOT_DCLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_HOTSPOT_DCLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
|
||||||
|
#define EVT_STC_CALLTIP_CLICK(id, fn)) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CALLTIP_CLICK id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
@@ -47,5 +47,7 @@
|
|||||||
#include "wx/xrc/xh_gdctl.h"
|
#include "wx/xrc/xh_gdctl.h"
|
||||||
#include "wx/xrc/xh_frame.h"
|
#include "wx/xrc/xh_frame.h"
|
||||||
#include "wx/xrc/xh_scwin.h"
|
#include "wx/xrc/xh_scwin.h"
|
||||||
|
#include "wx/xrc/xh_split.h"
|
||||||
|
#include "wx/xrc/xh_wizrd.h"
|
||||||
|
|
||||||
#endif // _WX_XMLRES_H_
|
#endif // _WX_XMLRES_H_
|
||||||
|
28
contrib/include/wx/xrc/xh_split.h
Normal file
28
contrib/include/wx/xrc/xh_split.h
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Name: xh_split.h
|
||||||
|
// Purpose: XRC resource for wxSplitterWindow
|
||||||
|
// Author: panga@freemail.hu, Vaclav Slavik
|
||||||
|
// Created: 2003/01/26
|
||||||
|
// RCS-ID: $Id$
|
||||||
|
// Copyright: (c) 2003 panga@freemail.hu, Vaclav Slavik
|
||||||
|
// Licence: wxWindows licence
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef _WX_XH_SPLIT_H_
|
||||||
|
#define _WX_XH_SPLIT_H_
|
||||||
|
|
||||||
|
#if defined(__GNUG__) && !defined(__APPLE__)
|
||||||
|
#pragma interface "xh_split.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "wx/xrc/xmlres.h"
|
||||||
|
|
||||||
|
class WXXMLDLLEXPORT wxSplitterWindowXmlHandler : public wxXmlResourceHandler
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
wxSplitterWindowXmlHandler();
|
||||||
|
virtual wxObject *DoCreateResource();
|
||||||
|
virtual bool CanHandle(wxXmlNode *node);
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // _WX_XH_SPLIT_H_
|
38
contrib/include/wx/xrc/xh_wizrd.h
Normal file
38
contrib/include/wx/xrc/xh_wizrd.h
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Name: xh_wizrd.h
|
||||||
|
// Purpose: XML resource handler for wxWizard
|
||||||
|
// Author: Vaclav Slavik
|
||||||
|
// Created: 2003/03/02
|
||||||
|
// RCS-ID: $Id$
|
||||||
|
// Copyright: (c) 2000 Vaclav Slavik
|
||||||
|
// Licence: wxWindows licence
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef _WX_XH_WIZRD_H_
|
||||||
|
#define _WX_XH_WIZRDL_H_
|
||||||
|
|
||||||
|
#if defined(__GNUG__) && !defined(__APPLE__)
|
||||||
|
#pragma interface "xh_wizrd.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "wx/xrc/xmlres.h"
|
||||||
|
|
||||||
|
#if wxUSE_WIZARDDLG
|
||||||
|
|
||||||
|
#include "wx/wizard.h"
|
||||||
|
|
||||||
|
class WXXMLDLLEXPORT wxWizardXmlHandler : public wxXmlResourceHandler
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
wxWizardXmlHandler();
|
||||||
|
virtual wxObject *DoCreateResource();
|
||||||
|
virtual bool CanHandle(wxXmlNode *node);
|
||||||
|
|
||||||
|
private:
|
||||||
|
wxWizard *m_wizard;
|
||||||
|
wxWizardPageSimple *m_lastSimplePage;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif // _WX_XH_PANEL_H_
|
@@ -240,8 +240,18 @@ protected:
|
|||||||
wxXmlNode *DoFindResource(wxXmlNode *parent, const wxString& name, const wxString& classname, bool recursive);
|
wxXmlNode *DoFindResource(wxXmlNode *parent, const wxString& name, const wxString& classname, bool recursive);
|
||||||
|
|
||||||
// Creates a resource from information in the given node.
|
// Creates a resource from information in the given node.
|
||||||
wxObject *CreateResFromNode(wxXmlNode *node, wxObject *parent, wxObject *instance = NULL);
|
wxObject *CreateResFromNode(wxXmlNode *node, wxObject *parent,
|
||||||
|
wxObject *instance = NULL);
|
||||||
|
|
||||||
|
// Creates a resource from information in the given node
|
||||||
|
// (Uses only 'handlerToUse' if != NULL)
|
||||||
|
//
|
||||||
|
// ATTENTION: Do *NOT* use this function, it will disappear in
|
||||||
|
// wxWindows 2.5.0! It exists *only* as a hack to preserve
|
||||||
|
// binary compatibility in 2.4.x branch.
|
||||||
|
wxObject *CreateResFromNode2(wxXmlNode *node, wxObject *parent,
|
||||||
|
wxObject *instance = NULL,
|
||||||
|
wxXmlResourceHandler *handlerToUse = NULL);
|
||||||
private:
|
private:
|
||||||
long m_version;
|
long m_version;
|
||||||
|
|
||||||
|
@@ -111,7 +111,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
||||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw240d.lib animd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/anitest.exe" /pdbtype:sept /libpath:"../../../lib"
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw24d.lib animd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/anitest.exe" /pdbtype:sept /libpath:"../../../lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "AniTestVC - Win32 Release DLL"
|
!ELSEIF "$(CFG)" == "AniTestVC - Win32 Release DLL"
|
||||||
|
|
||||||
@@ -138,7 +138,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
|
||||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw240.lib anim.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/anitest.exe" /libpath:"../../../lib"
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw24.lib anim.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/anitest.exe" /libpath:"../../../lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "AniTestVC - Win32 UnivRelease"
|
!ELSEIF "$(CFG)" == "AniTestVC - Win32 UnivRelease"
|
||||||
|
|
||||||
|
@@ -6,9 +6,11 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
WXDIR = $(%WXWIN)
|
WXDIR = $(%WXWIN)
|
||||||
|
EXTRACPPFLAGS = -I$(WXDIR)\contrib\include
|
||||||
|
|
||||||
PROGRAM = anitest
|
PROGRAM = anitest
|
||||||
OBJECTS = $(PROGRAM).obj animate.obj
|
EXTRALIBS = $(WXDIR)\lib\anim_w.lib
|
||||||
|
OBJECTS = $(OUTPUTDIR)\$(PROGRAM).obj
|
||||||
|
|
||||||
!include $(WXDIR)\src\makeprog.wat
|
!include $(WXDIR)\src\makeprog.wat
|
||||||
|
|
||||||
|
@@ -109,7 +109,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
||||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw240d.lib canvasd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/simple.exe" /pdbtype:sept /libpath:"../../../../lib"
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw24d.lib canvasd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/simple.exe" /pdbtype:sept /libpath:"../../../../lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "SimpleVC - Win32 Release DLL"
|
!ELSEIF "$(CFG)" == "SimpleVC - Win32 Release DLL"
|
||||||
|
|
||||||
@@ -136,7 +136,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
|
||||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw240.lib canvas.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/simple.exe" /libpath:"../../../../lib"
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw24.lib canvas.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/simple.exe" /libpath:"../../../../lib"
|
||||||
|
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
|
@@ -109,7 +109,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
||||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw240d.lib canvasd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/test.exe" /pdbtype:sept /libpath:"../../../../lib"
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw24d.lib canvasd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/test.exe" /pdbtype:sept /libpath:"../../../../lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "TestVC - Win32 Release DLL"
|
!ELSEIF "$(CFG)" == "TestVC - Win32 Release DLL"
|
||||||
|
|
||||||
@@ -136,7 +136,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
|
||||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw240.lib canvas.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/test.exe" /libpath:"../../../../lib"
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw24.lib canvas.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/test.exe" /libpath:"../../../../lib"
|
||||||
|
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
|
@@ -108,7 +108,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmswd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib fld.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /pdbtype:sept /libpath:"../../../../lib"
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmswd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib fld.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /pdbtype:sept /libpath:"../../../../lib"
|
||||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw240d.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib fldlld.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /pdbtype:sept /libpath:"../../../../lib"
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw24d.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib fldlld.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /pdbtype:sept /libpath:"../../../../lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "fl_demo1 - Win32 Release DLL"
|
!ELSEIF "$(CFG)" == "fl_demo1 - Win32 Release DLL"
|
||||||
|
|
||||||
@@ -135,7 +135,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib fl.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /libpath:"../../../../lib"
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib fl.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /libpath:"../../../../lib"
|
||||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw240.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib fldll.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /libpath:"../../../../lib"
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw24.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib fldll.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /libpath:"../../../../lib"
|
||||||
|
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
|
@@ -108,7 +108,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmswd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib fld.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /pdbtype:sept /libpath:"../../../../lib"
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmswd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib fld.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /pdbtype:sept /libpath:"../../../../lib"
|
||||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw240d.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib fldlld.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /pdbtype:sept /libpath:"../../../../lib"
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw24d.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib fldlld.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /pdbtype:sept /libpath:"../../../../lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "fl_demo2 - Win32 Release DLL"
|
!ELSEIF "$(CFG)" == "fl_demo2 - Win32 Release DLL"
|
||||||
|
|
||||||
@@ -135,7 +135,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib fl.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /libpath:"../../../../lib"
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib fl.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /libpath:"../../../../lib"
|
||||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw240.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib fldll.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /libpath:"../../../../lib"
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw24.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib fldll.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /libpath:"../../../../lib"
|
||||||
|
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
|
@@ -153,7 +153,7 @@ public:
|
|||||||
void OnMouseUp( wxMouseEvent& event );
|
void OnMouseUp( wxMouseEvent& event );
|
||||||
void OnPaint( wxPaintEvent& event );
|
void OnPaint( wxPaintEvent& event );
|
||||||
|
|
||||||
DECLARE_EVENT_TABLE();
|
DECLARE_EVENT_TABLE()
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -108,7 +108,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmswd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib fld.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /pdbtype:sept /libpath:"../../../../lib"
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmswd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib fld.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /pdbtype:sept /libpath:"../../../../lib"
|
||||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw240d.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib fldlld.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /pdbtype:sept /libpath:"../../../../lib"
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw24d.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib fldlld.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /pdbtype:sept /libpath:"../../../../lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "fl_sample1 - Win32 Release DLL"
|
!ELSEIF "$(CFG)" == "fl_sample1 - Win32 Release DLL"
|
||||||
|
|
||||||
@@ -135,7 +135,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib fl.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /libpath:"../../../../lib"
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib fl.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /libpath:"../../../../lib"
|
||||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw240.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib fldll.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /libpath:"../../../../lib"
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw24.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib fldll.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /libpath:"../../../../lib"
|
||||||
|
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
|
@@ -108,7 +108,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmswd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib fld.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /pdbtype:sept /libpath:"../../../../lib"
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmswd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib fld.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /pdbtype:sept /libpath:"../../../../lib"
|
||||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw240d.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib fldlld.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /pdbtype:sept /libpath:"../../../../lib"
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw24d.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib fldlld.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /pdbtype:sept /libpath:"../../../../lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "fl_sample2 - Win32 Release DLL"
|
!ELSEIF "$(CFG)" == "fl_sample2 - Win32 Release DLL"
|
||||||
|
|
||||||
@@ -135,7 +135,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib fl.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /libpath:"../../../../lib"
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib fl.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /libpath:"../../../../lib"
|
||||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw240.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib fldll.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /libpath:"../../../../lib"
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw24.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib fldll.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /libpath:"../../../../lib"
|
||||||
|
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
|
@@ -108,7 +108,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmswd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib fld.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /pdbtype:sept /libpath:"../../../../lib"
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmswd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib fld.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /pdbtype:sept /libpath:"../../../../lib"
|
||||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw240d.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib fldlld.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /pdbtype:sept /libpath:"../../../../lib"
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw24d.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib fldlld.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /pdbtype:sept /libpath:"../../../../lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "fl_sample3 - Win32 Release DLL"
|
!ELSEIF "$(CFG)" == "fl_sample3 - Win32 Release DLL"
|
||||||
|
|
||||||
@@ -135,7 +135,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib fl.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /libpath:"../../../../lib"
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib fl.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /libpath:"../../../../lib"
|
||||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw240.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib fldll.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /libpath:"../../../../lib"
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw24.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib fldll.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /libpath:"../../../../lib"
|
||||||
|
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
|
@@ -108,7 +108,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
||||||
# ADD LINK32 wxmsw240d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/dynsash.exe" /pdbtype:sept /libpath:"../../../../lib"
|
# ADD LINK32 wxmsw24d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/dynsash.exe" /pdbtype:sept /libpath:"../../../../lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "dynsash - Win32 Release DLL"
|
!ELSEIF "$(CFG)" == "dynsash - Win32 Release DLL"
|
||||||
|
|
||||||
@@ -135,7 +135,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
|
||||||
# ADD LINK32 wxmsw240.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/dynsash.exe" /libpath:"../../../../lib"
|
# ADD LINK32 wxmsw24.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/dynsash.exe" /libpath:"../../../../lib"
|
||||||
|
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
|
@@ -108,7 +108,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
||||||
# ADD LINK32 wxmsw240d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/dynsash_switch.exe" /pdbtype:sept /libpath:"../../../../lib"
|
# ADD LINK32 wxmsw24d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/dynsash_switch.exe" /pdbtype:sept /libpath:"../../../../lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "dynsash_switch - Win32 Release DLL"
|
!ELSEIF "$(CFG)" == "dynsash_switch - Win32 Release DLL"
|
||||||
|
|
||||||
@@ -135,7 +135,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
|
||||||
# ADD LINK32 wxmsw240.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/dynsash_switch.exe" /libpath:"../../../../lib"
|
# ADD LINK32 wxmsw24.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/dynsash_switch.exe" /libpath:"../../../../lib"
|
||||||
|
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
|
@@ -108,7 +108,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
||||||
# ADD LINK32 wxmsw240d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/editlbox.exe" /pdbtype:sept /libpath:"../../../../lib"
|
# ADD LINK32 wxmsw24d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/editlbox.exe" /pdbtype:sept /libpath:"../../../../lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "editlbox - Win32 Release DLL"
|
!ELSEIF "$(CFG)" == "editlbox - Win32 Release DLL"
|
||||||
|
|
||||||
@@ -135,7 +135,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
|
||||||
# ADD LINK32 wxmsw240.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/editlbox.exe" /libpath:"../../../../lib"
|
# ADD LINK32 wxmsw24.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/editlbox.exe" /libpath:"../../../../lib"
|
||||||
|
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
|
@@ -1,15 +0,0 @@
|
|||||||
# Purpose: makefile for multicell example (BC++ 16bit)
|
|
||||||
# Created 2000-07-28
|
|
||||||
|
|
||||||
!if "$(WXWIN)" == ""
|
|
||||||
!error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
|
|
||||||
!endif
|
|
||||||
|
|
||||||
WXDIR = $(WXWIN)
|
|
||||||
|
|
||||||
TARGET=mtest
|
|
||||||
OBJECTS=$(TARGET).obj ..\src\multicell.obj
|
|
||||||
EXTRAINC=-I..\include
|
|
||||||
|
|
||||||
!include $(WXDIR)\src\makeprog.bcc
|
|
||||||
|
|
@@ -3,9 +3,10 @@
|
|||||||
|
|
||||||
WXDIR = $(%WXWIN)
|
WXDIR = $(%WXWIN)
|
||||||
|
|
||||||
|
EXTRACPPFLAGS = -I$(WXDIR)\contrib\include
|
||||||
PROGRAM = mtest
|
PROGRAM = mtest
|
||||||
OBJECTS = $(PROGRAM).obj ..\src\multicell.obj
|
EXTRALIBS = $(WXDIR)\lib\gizmos_w.lib
|
||||||
EXTRAINC=-I..\include
|
OBJECTS = $(OUTPUTDIR)\$(PROGRAM).obj
|
||||||
|
|
||||||
!include $(WXDIR)\src\makeprog.wat
|
!include $(WXDIR)\src\makeprog.wat
|
||||||
|
|
||||||
|
@@ -108,7 +108,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
||||||
# ADD LINK32 wxmsw240d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/mtest.exe" /pdbtype:sept /libpath:"../../../../lib"
|
# ADD LINK32 wxmsw24d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/mtest.exe" /pdbtype:sept /libpath:"../../../../lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "multicell - Win32 Release DLL"
|
!ELSEIF "$(CFG)" == "multicell - Win32 Release DLL"
|
||||||
|
|
||||||
@@ -135,7 +135,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
|
||||||
# ADD LINK32 wxmsw240.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/mtest.exe" /libpath:"../../../../lib"
|
# ADD LINK32 wxmsw24.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/mtest.exe" /libpath:"../../../../lib"
|
||||||
|
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
|
@@ -108,7 +108,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
||||||
# ADD LINK32 wxmsw240d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/tree.exe" /pdbtype:sept /libpath:"../../../../lib"
|
# ADD LINK32 wxmsw24d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/tree.exe" /pdbtype:sept /libpath:"../../../../lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "TreeVC - Win32 Release DLL"
|
!ELSEIF "$(CFG)" == "TreeVC - Win32 Release DLL"
|
||||||
|
|
||||||
@@ -135,7 +135,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
|
||||||
# ADD LINK32 wxmsw240.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/tree.exe" /libpath:"../../../../lib"
|
# ADD LINK32 wxmsw24.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/tree.exe" /libpath:"../../../../lib"
|
||||||
|
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
|
@@ -1,19 +0,0 @@
|
|||||||
#
|
|
||||||
# File: makefile.bcc
|
|
||||||
# Author: Julian Smart
|
|
||||||
# Created: 1998
|
|
||||||
# Updated:
|
|
||||||
#
|
|
||||||
# Builds a BC++ 16-bit sample
|
|
||||||
|
|
||||||
!if "$(WXWIN)" == ""
|
|
||||||
!error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
|
|
||||||
!endif
|
|
||||||
|
|
||||||
WXDIR = $(WXWIN)
|
|
||||||
|
|
||||||
TARGET=minimal
|
|
||||||
OBJECTS=$(TARGET).obj
|
|
||||||
|
|
||||||
!include $(WXDIR)\src\makeprog.bcc
|
|
||||||
|
|
@@ -1,14 +1,13 @@
|
|||||||
#
|
# Purpose: makefile for multicell example (Watcom)
|
||||||
# Makefile for WATCOM
|
# Created 2000-07-28
|
||||||
#
|
|
||||||
# Created by Julian Smart, January 1999
|
|
||||||
#
|
|
||||||
#
|
|
||||||
|
|
||||||
WXDIR = $(%WXWIN)
|
WXDIR = $(%WXWIN)
|
||||||
|
|
||||||
PROGRAM = minimal
|
EXTRACPPFLAGS = -I$(WXDIR)\contrib\include
|
||||||
OBJECTS = $(PROGRAM).obj
|
|
||||||
|
PROGRAM = tree
|
||||||
|
EXTRALIBS = $(WXDIR)\lib\gizmos_w.lib
|
||||||
|
OBJECTS = $(OUTPUTDIR)\$(PROGRAM).obj
|
||||||
|
|
||||||
!include $(WXDIR)\src\makeprog.wat
|
!include $(WXDIR)\src\makeprog.wat
|
||||||
|
|
||||||
|
@@ -108,7 +108,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
||||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw240d.lib mmediad.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/mmboard.exe" /pdbtype:sept /libpath:"../../../lib" /libpath:"../../../contrib/lib"
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw24d.lib mmediad.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/mmboard.exe" /pdbtype:sept /libpath:"../../../lib" /libpath:"../../../contrib/lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "MMboardVC - Win32 Release DLL"
|
!ELSEIF "$(CFG)" == "MMboardVC - Win32 Release DLL"
|
||||||
|
|
||||||
@@ -135,7 +135,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
|
||||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw240.lib mmedia.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/mmboard.exe" /libpath:"../../../lib" /libpath:"../../../contrib/lib"
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw24.lib mmedia.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/mmboard.exe" /libpath:"../../../lib" /libpath:"../../../contrib/lib"
|
||||||
|
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
WXDIR = $(WXWIN)
|
WXDIR = $(WXWIN)
|
||||||
|
|
||||||
TARGET=mmboard
|
TARGET=mmboard
|
||||||
EXTRALIBS=$(WXDIR)\contrib\lib\mmedia.lib
|
EXTRALIBS=$(WXDIR)\lib\mmedia.lib
|
||||||
OBJECTS = $(TARGET).obj mmbman.obj
|
OBJECTS = $(TARGET).obj mmbman.obj
|
||||||
|
|
||||||
!include $(WXDIR)\src\makeprog.b32
|
!include $(WXDIR)\src\makeprog.b32
|
||||||
|
@@ -1,20 +0,0 @@
|
|||||||
#
|
|
||||||
# File: makefile.bcc
|
|
||||||
# Author: Julian Smart
|
|
||||||
# Created: 1998
|
|
||||||
# Updated:
|
|
||||||
#
|
|
||||||
# Builds a BC++ 16-bit sample
|
|
||||||
|
|
||||||
!if "$(WXWIN)" == ""
|
|
||||||
!error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
|
|
||||||
!endif
|
|
||||||
|
|
||||||
WXDIR = $(WXWIN)
|
|
||||||
|
|
||||||
TARGET=mmboard
|
|
||||||
EXTRALIBS=$(WXDIR)\contrib\lib\mmedia.lib
|
|
||||||
OBJECTS=$(TARGET).obj mmbman.obj
|
|
||||||
|
|
||||||
!include $(WXDIR)\src\makeprog.bcc
|
|
||||||
|
|
@@ -8,7 +8,7 @@
|
|||||||
WXDIR = $(%WXWIN)
|
WXDIR = $(%WXWIN)
|
||||||
|
|
||||||
PROGRAM = mmboard
|
PROGRAM = mmboard
|
||||||
OBJECTS = $(PROGRAM).obj mmbman.obj
|
OBJECTS = $(OUTPUTDIR)\$(PROGRAM).obj mmbman.obj
|
||||||
|
|
||||||
!include $(WXDIR)\src\makeprog.wat
|
!include $(WXDIR)\src\makeprog.wat
|
||||||
|
|
||||||
|
@@ -108,7 +108,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
||||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw240d.lib ogld.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/ogledit.exe" /pdbtype:sept /libpath:"../../../../lib" /libpath:"../../../../contrib/lib"
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw24d.lib ogld.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/ogledit.exe" /pdbtype:sept /libpath:"../../../../lib" /libpath:"../../../../contrib/lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "OGLEditVC - Win32 Release DLL"
|
!ELSEIF "$(CFG)" == "OGLEditVC - Win32 Release DLL"
|
||||||
|
|
||||||
@@ -135,7 +135,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
|
||||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw240.lib ogl.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/ogledit.exe" /libpath:"../../../../lib" /libpath:"../../../../contrib/lib"
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw24.lib ogl.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/ogledit.exe" /libpath:"../../../../lib" /libpath:"../../../../contrib/lib"
|
||||||
|
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
|
@@ -92,7 +92,9 @@ wxOutputStream& DiagramDocument::SaveObject(wxOutputStream& stream)
|
|||||||
char buf[400];
|
char buf[400];
|
||||||
(void) wxGetTempFileName("diag", buf);
|
(void) wxGetTempFileName("diag", buf);
|
||||||
|
|
||||||
|
#if wxUSE_PROLOGIO
|
||||||
diagram.SaveFile(buf);
|
diagram.SaveFile(buf);
|
||||||
|
#endif
|
||||||
|
|
||||||
wxTransferFileToStream(buf, stream);
|
wxTransferFileToStream(buf, stream);
|
||||||
|
|
||||||
@@ -113,7 +115,11 @@ wxInputStream& DiagramDocument::LoadObject(wxInputStream& stream)
|
|||||||
wxTransferStreamToFile(stream, buf);
|
wxTransferStreamToFile(stream, buf);
|
||||||
|
|
||||||
diagram.DeleteAllShapes();
|
diagram.DeleteAllShapes();
|
||||||
|
|
||||||
|
#if wxUSE_PROLOGIO
|
||||||
diagram.LoadFile(buf);
|
diagram.LoadFile(buf);
|
||||||
|
#endif
|
||||||
|
|
||||||
wxRemoveFile(buf);
|
wxRemoveFile(buf);
|
||||||
|
|
||||||
return stream;
|
return stream;
|
||||||
@@ -548,6 +554,7 @@ void MyEvtHandler::OnEndSize(double x, double y)
|
|||||||
* Diagram
|
* Diagram
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if wxUSE_PROLOGIO
|
||||||
bool MyDiagram::OnShapeSave(wxExprDatabase& db, wxShape& shape, wxExpr& expr)
|
bool MyDiagram::OnShapeSave(wxExprDatabase& db, wxShape& shape, wxExpr& expr)
|
||||||
{
|
{
|
||||||
wxDiagram::OnShapeSave(db, shape, expr);
|
wxDiagram::OnShapeSave(db, shape, expr);
|
||||||
@@ -568,6 +575,7 @@ bool MyDiagram::OnShapeLoad(wxExprDatabase& db, wxShape& shape, wxExpr& expr)
|
|||||||
delete[] label;
|
delete[] label;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* New shapes
|
* New shapes
|
||||||
|
@@ -35,8 +35,10 @@ class MyDiagram: public wxDiagram
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MyDiagram(void) {}
|
MyDiagram(void) {}
|
||||||
|
#if wxUSE_PROLOGIO
|
||||||
bool OnShapeSave(wxExprDatabase& db, wxShape& shape, wxExpr& expr);
|
bool OnShapeSave(wxExprDatabase& db, wxShape& shape, wxExpr& expr);
|
||||||
bool OnShapeLoad(wxExprDatabase& db, wxShape& shape, wxExpr& expr);
|
bool OnShapeLoad(wxExprDatabase& db, wxShape& shape, wxExpr& expr);
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -1,20 +0,0 @@
|
|||||||
#
|
|
||||||
# File: makefile.bcc
|
|
||||||
# Author: Julian Smart
|
|
||||||
# Created: 1998
|
|
||||||
# Updated:
|
|
||||||
#
|
|
||||||
# Builds a BC++ 16-bit sample
|
|
||||||
|
|
||||||
!if "$(WXWIN)" == ""
|
|
||||||
!error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
|
|
||||||
!endif
|
|
||||||
|
|
||||||
WXDIR = $(WXWIN)
|
|
||||||
|
|
||||||
TARGET=ogledit
|
|
||||||
EXTRALIBS=$(WXDIR)\lib\ogl.lib
|
|
||||||
OBJECTS = $(TARGET).obj doc.obj view.obj palette.obj
|
|
||||||
|
|
||||||
!include $(WXDIR)\src\makeprog.b32
|
|
||||||
|
|
@@ -7,9 +7,11 @@
|
|||||||
|
|
||||||
WXDIR = $(%WXWIN)
|
WXDIR = $(%WXWIN)
|
||||||
|
|
||||||
|
EXTRACPPFLAGS = -I$(WXDIR)\contrib\include
|
||||||
|
|
||||||
PROGRAM = ogledit
|
PROGRAM = ogledit
|
||||||
EXTRALIBS = $(WXDIR)\lib\ogl.lib
|
EXTRALIBS = $(WXDIR)\lib\ogl_w.lib
|
||||||
OBJECTS = $(PROGRAM).obj doc.obj view.obj palette.obj
|
OBJECTS = $(OUTPUTDIR)\$(PROGRAM).obj $(OUTPUTDIR)\doc.obj $(OUTPUTDIR)\view.obj $(OUTPUTDIR)\palette.obj
|
||||||
|
|
||||||
!include $(WXDIR)\src\makeprog.wat
|
!include $(WXDIR)\src\makeprog.wat
|
||||||
|
|
||||||
|
@@ -108,7 +108,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
||||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw240d.lib ogld.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/studio.exe" /pdbtype:sept /libpath:"../../../../lib" /libpath:"../../../../contrib/lib"
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw24d.lib ogld.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/studio.exe" /pdbtype:sept /libpath:"../../../../lib" /libpath:"../../../../contrib/lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "StudioVC - Win32 Release DLL"
|
!ELSEIF "$(CFG)" == "StudioVC - Win32 Release DLL"
|
||||||
|
|
||||||
|
@@ -25,6 +25,11 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <wx/resource.h>
|
#include <wx/resource.h>
|
||||||
|
|
||||||
|
#if !wxUSE_WX_RESOURCES
|
||||||
|
#error "OGL studio sample requires wxUSE_WX_RESOURCES"
|
||||||
|
#endif // wxUSE_WX_RESOURCES
|
||||||
|
|
||||||
#include "dialogs.h"
|
#include "dialogs.h"
|
||||||
#include "doc.h"
|
#include "doc.h"
|
||||||
#include "view.h"
|
#include "view.h"
|
||||||
|
@@ -60,6 +60,7 @@ bool csDiagramDocument::OnSaveDocument(const wxString& file)
|
|||||||
if (file == "")
|
if (file == "")
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
#if wxUSE_PROLOGIO
|
||||||
if (!m_diagram.SaveFile(file))
|
if (!m_diagram.SaveFile(file))
|
||||||
{
|
{
|
||||||
wxString msgTitle;
|
wxString msgTitle;
|
||||||
@@ -72,6 +73,7 @@ bool csDiagramDocument::OnSaveDocument(const wxString& file)
|
|||||||
GetDocumentWindow());
|
GetDocumentWindow());
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
Modify(FALSE);
|
Modify(FALSE);
|
||||||
SetFilename(file);
|
SetFilename(file);
|
||||||
@@ -90,12 +92,14 @@ bool csDiagramDocument::OnOpenDocument(const wxString& file)
|
|||||||
msgTitle = wxString("File error");
|
msgTitle = wxString("File error");
|
||||||
|
|
||||||
m_diagram.DeleteAllShapes();
|
m_diagram.DeleteAllShapes();
|
||||||
|
#if wxUSE_PROLOGIO
|
||||||
if (!m_diagram.LoadFile(file))
|
if (!m_diagram.LoadFile(file))
|
||||||
{
|
{
|
||||||
(void)wxMessageBox("Sorry, could not open this file.", msgTitle, wxOK|wxICON_EXCLAMATION,
|
(void)wxMessageBox("Sorry, could not open this file.", msgTitle, wxOK|wxICON_EXCLAMATION,
|
||||||
GetDocumentWindow());
|
GetDocumentWindow());
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
SetFilename(file, TRUE);
|
SetFilename(file, TRUE);
|
||||||
Modify(FALSE);
|
Modify(FALSE);
|
||||||
UpdateAllViews();
|
UpdateAllViews();
|
||||||
|
@@ -1,21 +0,0 @@
|
|||||||
#
|
|
||||||
# File: makefile.bcc
|
|
||||||
# Author: Julian Smart
|
|
||||||
# Created: 1998
|
|
||||||
# Updated:
|
|
||||||
#
|
|
||||||
# Builds a BC++ 16-bit sample
|
|
||||||
|
|
||||||
!if "$(WXWIN)" == ""
|
|
||||||
!error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
|
|
||||||
!endif
|
|
||||||
|
|
||||||
WXDIR = $(WXWIN)
|
|
||||||
|
|
||||||
TARGET=studio
|
|
||||||
EXTRALIBS=$(WXDIR)\lib\ogl.lib
|
|
||||||
OBJECTS = $(TARGET).obj doc.obj shapes.obj symbols.obj view.obj cspalette.obj\
|
|
||||||
mainfrm.obj project.obj dialogs.obj csprint.obj
|
|
||||||
|
|
||||||
!include $(WXDIR)\src\makeprog.bcc
|
|
||||||
|
|
@@ -7,10 +7,20 @@
|
|||||||
|
|
||||||
WXDIR = $(%WXWIN)
|
WXDIR = $(%WXWIN)
|
||||||
|
|
||||||
|
EXTRACPPFLAGS = -I$(WXDIR)\contrib\include
|
||||||
|
|
||||||
PROGRAM = studio
|
PROGRAM = studio
|
||||||
EXTRALIBS = $(WXDIR)\lib\ogl.lib
|
EXTRALIBS = $(WXDIR)\lib\ogl_w.lib
|
||||||
OBJECTS = $(PROGRAM).obj doc.obj shapes.obj symbols.obj view.obj cspalette.obj &
|
OBJECTS = $(OUTPUTDIR)\$(PROGRAM).obj &
|
||||||
mainfrm.obj project.obj dialogs.obj csprint.obj
|
$(OUTPUTDIR)\doc.obj &
|
||||||
|
$(OUTPUTDIR)\shapes.obj &
|
||||||
|
$(OUTPUTDIR)\symbols.obj &
|
||||||
|
$(OUTPUTDIR)\view.obj &
|
||||||
|
$(OUTPUTDIR)\cspalette.obj &
|
||||||
|
$(OUTPUTDIR)\mainfrm.obj &
|
||||||
|
$(OUTPUTDIR)\project.obj &
|
||||||
|
$(OUTPUTDIR)\dialogs.obj &
|
||||||
|
$(OUTPUTDIR)\csprint.obj
|
||||||
|
|
||||||
!include $(WXDIR)\src\makeprog.wat
|
!include $(WXDIR)\src\makeprog.wat
|
||||||
|
|
||||||
|
@@ -705,6 +705,7 @@ bool csEvtHandler::EditProperties()
|
|||||||
* Diagram
|
* Diagram
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if wxUSE_PROLOGIO
|
||||||
bool csDiagram::OnShapeSave(wxExprDatabase& db, wxShape& shape, wxExpr& expr)
|
bool csDiagram::OnShapeSave(wxExprDatabase& db, wxShape& shape, wxExpr& expr)
|
||||||
{
|
{
|
||||||
wxDiagram::OnShapeSave(db, shape, expr);
|
wxDiagram::OnShapeSave(db, shape, expr);
|
||||||
@@ -723,6 +724,7 @@ bool csDiagram::OnShapeLoad(wxExprDatabase& db, wxShape& shape, wxExpr& expr)
|
|||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(csThinRectangleShape, wxDrawnShape)
|
IMPLEMENT_DYNAMIC_CLASS(csThinRectangleShape, wxDrawnShape)
|
||||||
|
|
||||||
|
@@ -37,8 +37,10 @@ DECLARE_CLASS(csDiagram)
|
|||||||
public:
|
public:
|
||||||
csDiagram(csDiagramDocument* doc) { m_doc = doc; }
|
csDiagram(csDiagramDocument* doc) { m_doc = doc; }
|
||||||
~csDiagram();
|
~csDiagram();
|
||||||
|
#if wxUSE_PROLOGIO
|
||||||
bool OnShapeSave(wxExprDatabase& db, wxShape& shape, wxExpr& expr);
|
bool OnShapeSave(wxExprDatabase& db, wxShape& shape, wxExpr& expr);
|
||||||
bool OnShapeLoad(wxExprDatabase& db, wxShape& shape, wxExpr& expr);
|
bool OnShapeLoad(wxExprDatabase& db, wxShape& shape, wxExpr& expr);
|
||||||
|
#endif
|
||||||
|
|
||||||
inline csDiagramDocument* GetDocument() const { return m_doc; }
|
inline csDiagramDocument* GetDocument() const { return m_doc; }
|
||||||
virtual void Redraw(wxDC& dc);
|
virtual void Redraw(wxDC& dc);
|
||||||
|
@@ -25,6 +25,10 @@
|
|||||||
#include "wx/config.h"
|
#include "wx/config.h"
|
||||||
#include "wx/laywin.h"
|
#include "wx/laywin.h"
|
||||||
|
|
||||||
|
#if !wxUSE_WX_RESOURCES
|
||||||
|
#error "OGL studio sample requires wxUSE_WX_RESOURCES"
|
||||||
|
#endif // wxUSE_WX_RESOURCES
|
||||||
|
|
||||||
#include "studio.h"
|
#include "studio.h"
|
||||||
#include "view.h"
|
#include "view.h"
|
||||||
#include "doc.h"
|
#include "doc.h"
|
||||||
|
@@ -109,7 +109,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
||||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw240d.lib plotd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/plot.exe" /pdbtype:sept /libpath:"../../../lib" /libpath:"../../../contrib/lib"
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw24d.lib plotd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/plot.exe" /pdbtype:sept /libpath:"../../../lib" /libpath:"../../../contrib/lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "PlotVC - Win32 Release DLL"
|
!ELSEIF "$(CFG)" == "PlotVC - Win32 Release DLL"
|
||||||
|
|
||||||
@@ -136,7 +136,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
|
||||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw240.lib plot.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/plot.exe" /libpath:"../../../lib" /libpath:"../../../contrib/lib"
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw24.lib plot.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/plot.exe" /libpath:"../../../lib" /libpath:"../../../contrib/lib"
|
||||||
|
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
|
@@ -108,7 +108,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
||||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw240d.lib stcd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/stctest.exe" /pdbtype:sept /libpath:"../../../lib" /libpath:"../../../contrib/lib"
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw24d.lib stcd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/stctest.exe" /pdbtype:sept /libpath:"../../../lib" /libpath:"../../../contrib/lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "StcTestVC - Win32 Release DLL"
|
!ELSEIF "$(CFG)" == "StcTestVC - Win32 Release DLL"
|
||||||
|
|
||||||
@@ -135,7 +135,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
|
||||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw240.lib stc.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/stctest.exe" /libpath:"../../../lib" /libpath:"../../../contrib/lib"
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw24.lib stc.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/stctest.exe" /libpath:"../../../lib" /libpath:"../../../contrib/lib"
|
||||||
|
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
|
@@ -11,7 +11,7 @@ WXDIR = $(WXWIN)
|
|||||||
|
|
||||||
TARGET=stctest
|
TARGET=stctest
|
||||||
|
|
||||||
EXTRALIBS=$(WXDIR)\contrib\lib\stc.lib
|
EXTRALIBS=$(WXDIR)\lib\stc.lib
|
||||||
OBJECTS = $(TARGET).obj
|
OBJECTS = $(TARGET).obj
|
||||||
|
|
||||||
!include $(WXDIR)\src\makeprog.b32
|
!include $(WXDIR)\src\makeprog.b32
|
||||||
|
13
contrib/samples/stc/makefile.wat
Normal file
13
contrib/samples/stc/makefile.wat
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# Purpose: makefile for SVG example (Watcom)
|
||||||
|
# Created 2000-07-28
|
||||||
|
|
||||||
|
WXDIR = $(%WXWIN)
|
||||||
|
|
||||||
|
EXTRACPPFLAGS = -I$(WXDIR)\contrib\include
|
||||||
|
PROGRAM = stctest
|
||||||
|
EXTRALIBS = $(WXDIR)\lib\stc_w.lib
|
||||||
|
OBJECTS = $(OUTPUTDIR)\$(PROGRAM).obj
|
||||||
|
|
||||||
|
!include $(WXDIR)\src\makeprog.wat
|
||||||
|
|
||||||
|
|
@@ -40,7 +40,26 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
// Make an editor class
|
||||||
|
|
||||||
|
class MySTC : public wxStyledTextCtrl
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
MySTC(wxWindow *parent, wxWindowID id,
|
||||||
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
|
const wxSize& size = wxDefaultSize, long style = 0);
|
||||||
|
|
||||||
|
void OnKeyPressed(wxKeyEvent& evt);
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_EVENT_TABLE()
|
||||||
|
};
|
||||||
|
|
||||||
|
BEGIN_EVENT_TABLE(MySTC, wxStyledTextCtrl)
|
||||||
|
EVT_KEY_DOWN(MySTC::OnKeyPressed)
|
||||||
|
END_EVENT_TABLE()
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------
|
||||||
// Define a new frame type: this is going to be our main frame
|
// Define a new frame type: this is going to be our main frame
|
||||||
class MyFrame : public wxFrame
|
class MyFrame : public wxFrame
|
||||||
{
|
{
|
||||||
@@ -51,7 +70,7 @@ public:
|
|||||||
void OnAbout(wxCommandEvent& event);
|
void OnAbout(wxCommandEvent& event);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
wxStyledTextCtrl* ed;
|
MySTC* ed;
|
||||||
|
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
};
|
};
|
||||||
@@ -78,8 +97,8 @@ IMPLEMENT_APP(MyApp)
|
|||||||
|
|
||||||
bool MyApp::OnInit()
|
bool MyApp::OnInit()
|
||||||
{
|
{
|
||||||
MyFrame *frame = new MyFrame("Testing wxStyledTextCtrl",
|
MyFrame *frame = new MyFrame(_T("Testing wxStyledTextCtrl"),
|
||||||
wxPoint(5, 5), wxSize(400, 600));
|
wxPoint(5, 5), wxSize(600, 600));
|
||||||
|
|
||||||
frame->Show(TRUE);
|
frame->Show(TRUE);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
@@ -99,81 +118,31 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
|
|||||||
|
|
||||||
|
|
||||||
// create a menu bar
|
// create a menu bar
|
||||||
wxMenu *menuFile = new wxMenu("", wxMENU_TEAROFF);
|
wxMenu *menuFile = new wxMenu(wxEmptyString, wxMENU_TEAROFF);
|
||||||
|
|
||||||
// the "About" item should be in the help menu
|
// the "About" item should be in the help menu
|
||||||
wxMenu *helpMenu = new wxMenu;
|
wxMenu *helpMenu = new wxMenu;
|
||||||
helpMenu->Append(ID_About, "&About...\tCtrl-A", "Show about dialog");
|
helpMenu->Append(ID_About, _T("&About...\tCtrl-A"), _T("Show about dialog"));
|
||||||
|
|
||||||
menuFile->Append(ID_Quit, "E&xit\tAlt-X", "Quit this program");
|
menuFile->Append(ID_Quit, _T("E&xit\tAlt-X"), _T("Quit this program"));
|
||||||
|
|
||||||
// now append the freshly created menu to the menu bar...
|
// now append the freshly created menu to the menu bar...
|
||||||
wxMenuBar *menuBar = new wxMenuBar();
|
wxMenuBar *menuBar = new wxMenuBar();
|
||||||
menuBar->Append(menuFile, "&File");
|
menuBar->Append(menuFile, _T("&File"));
|
||||||
menuBar->Append(helpMenu, "&Help");
|
menuBar->Append(helpMenu, _T("&Help"));
|
||||||
|
|
||||||
// ... and attach this menu bar to the frame
|
// ... and attach this menu bar to the frame
|
||||||
SetMenuBar(menuBar);
|
SetMenuBar(menuBar);
|
||||||
|
|
||||||
#if wxUSE_STATUSBAR
|
#if wxUSE_STATUSBAR
|
||||||
CreateStatusBar(2);
|
CreateStatusBar(2);
|
||||||
SetStatusText("Testing wxStyledTextCtrl");
|
SetStatusText(_T("Testing wxStyledTextCtrl"));
|
||||||
#endif // wxUSE_STATUSBAR
|
#endif // wxUSE_STATUSBAR
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------
|
//----------------------------------------
|
||||||
// Setup the editor
|
// Setup the editor
|
||||||
ed = new wxStyledTextCtrl(this, ID_ED);
|
ed = new MySTC(this, ID_ED);
|
||||||
|
|
||||||
// Default font
|
|
||||||
wxFont font(10, wxMODERN, wxNORMAL, wxNORMAL);
|
|
||||||
ed->StyleSetFont(wxSTC_STYLE_DEFAULT, font);
|
|
||||||
ed->StyleClearAll();
|
|
||||||
|
|
||||||
ed->StyleSetForeground(0, wxColour(0x80, 0x80, 0x80));
|
|
||||||
ed->StyleSetForeground(1, wxColour(0x00, 0x7f, 0x00));
|
|
||||||
//ed->StyleSetForeground(2, wxColour(0x00, 0x7f, 0x00));
|
|
||||||
ed->StyleSetForeground(3, wxColour(0x7f, 0x7f, 0x7f));
|
|
||||||
ed->StyleSetForeground(4, wxColour(0x00, 0x7f, 0x7f));
|
|
||||||
ed->StyleSetForeground(5, wxColour(0x00, 0x00, 0x7f));
|
|
||||||
ed->StyleSetForeground(6, wxColour(0x7f, 0x00, 0x7f));
|
|
||||||
ed->StyleSetForeground(7, wxColour(0x7f, 0x00, 0x7f));
|
|
||||||
ed->StyleSetForeground(8, wxColour(0x00, 0x7f, 0x7f));
|
|
||||||
ed->StyleSetForeground(9, wxColour(0x7f, 0x7f, 0x7f));
|
|
||||||
ed->StyleSetForeground(10, wxColour(0x00, 0x00, 0x00));
|
|
||||||
ed->StyleSetForeground(11, wxColour(0x00, 0x00, 0x00));
|
|
||||||
ed->StyleSetBold(5, TRUE);
|
|
||||||
ed->StyleSetBold(10, TRUE);
|
|
||||||
|
|
||||||
#ifdef __WXMSW__
|
|
||||||
ed->StyleSetSpec(2, "fore:#007f00,bold,face:Arial,size:9");
|
|
||||||
#else
|
|
||||||
ed->StyleSetSpec(2, "fore:#007f00,bold,face:Helvetica,size:9");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// give it some text to play with
|
|
||||||
wxFile file("stctest.cpp");
|
|
||||||
wxString st;
|
|
||||||
|
|
||||||
char* buff = st.GetWriteBuf(file.Length());
|
|
||||||
file.Read(buff, file.Length());
|
|
||||||
st.UngetWriteBuf();
|
|
||||||
|
|
||||||
ed->InsertText(0, st);
|
|
||||||
ed->EmptyUndoBuffer();
|
|
||||||
|
|
||||||
ed->SetLexer(wxSTC_LEX_CPP);
|
|
||||||
ed->SetKeyWords(0,
|
|
||||||
"asm auto bool break case catch char class const "
|
|
||||||
"const_cast continue default delete do double "
|
|
||||||
"dynamic_cast else enum explicit export extern "
|
|
||||||
"false float for friend goto if inline int long "
|
|
||||||
"mutable namespace new operator private protected "
|
|
||||||
"public register reinterpret_cast return short signed "
|
|
||||||
"sizeof static static_cast struct switch template this "
|
|
||||||
"throw true try typedef typeid typename union unsigned "
|
|
||||||
"using virtual void volatile wchar_t while");
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -190,5 +159,96 @@ void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
|
|||||||
wxString msg;
|
wxString msg;
|
||||||
msg.Printf( _T("Testing wxStyledTextCtrl...\n"));
|
msg.Printf( _T("Testing wxStyledTextCtrl...\n"));
|
||||||
|
|
||||||
wxMessageBox(msg, "About This Test", wxOK | wxICON_INFORMATION, this);
|
wxMessageBox(msg, _T("About This Test"), wxOK | wxICON_INFORMATION, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
|
wxChar* keywords =
|
||||||
|
_T("asm auto bool break case catch char class const \
|
||||||
|
const_cast continue default delete do double \
|
||||||
|
dynamic_cast else enum explicit export extern \
|
||||||
|
false float for friend goto if inline int long \
|
||||||
|
mutable namespace new operator private protected \
|
||||||
|
public register reinterpret_cast return short signed \
|
||||||
|
sizeof static static_cast struct switch template this \
|
||||||
|
throw true try typedef typeid typename union unsigned \
|
||||||
|
using virtual void volatile wchar_t while");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
MySTC::MySTC(wxWindow *parent, wxWindowID id,
|
||||||
|
const wxPoint& pos, const wxSize& size,
|
||||||
|
long style)
|
||||||
|
: wxStyledTextCtrl(parent, id, pos, size, style)
|
||||||
|
{
|
||||||
|
// Default font
|
||||||
|
wxFont font(10, wxMODERN, wxNORMAL, wxNORMAL);
|
||||||
|
StyleSetFont(wxSTC_STYLE_DEFAULT, font);
|
||||||
|
StyleClearAll();
|
||||||
|
|
||||||
|
StyleSetForeground(0, wxColour(0x80, 0x80, 0x80));
|
||||||
|
StyleSetForeground(1, wxColour(0x00, 0x7f, 0x00));
|
||||||
|
//StyleSetForeground(2, wxColour(0x00, 0x7f, 0x00));
|
||||||
|
StyleSetForeground(3, wxColour(0x7f, 0x7f, 0x7f));
|
||||||
|
StyleSetForeground(4, wxColour(0x00, 0x7f, 0x7f));
|
||||||
|
StyleSetForeground(5, wxColour(0x00, 0x00, 0x7f));
|
||||||
|
StyleSetForeground(6, wxColour(0x7f, 0x00, 0x7f));
|
||||||
|
StyleSetForeground(7, wxColour(0x7f, 0x00, 0x7f));
|
||||||
|
StyleSetForeground(8, wxColour(0x00, 0x7f, 0x7f));
|
||||||
|
StyleSetForeground(9, wxColour(0x7f, 0x7f, 0x7f));
|
||||||
|
StyleSetForeground(10, wxColour(0x00, 0x00, 0x00));
|
||||||
|
StyleSetForeground(11, wxColour(0x00, 0x00, 0x00));
|
||||||
|
StyleSetBold(5, TRUE);
|
||||||
|
StyleSetBold(10, TRUE);
|
||||||
|
|
||||||
|
#ifdef __WXMSW__
|
||||||
|
StyleSetSpec(2, _T("fore:#007f00,bold,face:Arial,size:9"));
|
||||||
|
#else
|
||||||
|
StyleSetSpec(2, _T("fore:#007f00,bold,face:Helvetica,size:9"));
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// give it some text to play with
|
||||||
|
wxString st;
|
||||||
|
wxFileInputStream stream(wxT("stctest.cpp"));
|
||||||
|
size_t sz = stream.GetSize();
|
||||||
|
char* buf = new char[sz + 1];
|
||||||
|
stream.Read((void*) buf, stream.GetSize());
|
||||||
|
buf[sz] = 0;
|
||||||
|
st = wxString::FromAscii(buf);
|
||||||
|
delete[] buf;
|
||||||
|
|
||||||
|
InsertText(0, st);
|
||||||
|
EmptyUndoBuffer();
|
||||||
|
|
||||||
|
SetLexer(wxSTC_LEX_CPP);
|
||||||
|
SetKeyWords(0, keywords);
|
||||||
|
}
|
||||||
|
|
||||||
|
void MySTC::OnKeyPressed(wxKeyEvent& evt)
|
||||||
|
{
|
||||||
|
if (CallTipActive())
|
||||||
|
CallTipCancel();
|
||||||
|
|
||||||
|
int key = evt.GetKeyCode();
|
||||||
|
if ( key == WXK_SPACE && evt.ControlDown()) {
|
||||||
|
int pos = GetCurrentPos();
|
||||||
|
|
||||||
|
if (evt.ShiftDown()) {
|
||||||
|
// show how to do CallTips
|
||||||
|
CallTipSetBackground(wxColour(_T("YELLOW")));
|
||||||
|
CallTipShow(pos, _T("lots of of text: blah, blah, blah\n\n"
|
||||||
|
"show some suff, maybe parameters..\n\n"
|
||||||
|
"fubar(param1, param2)"));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// show how to do AutoComplete
|
||||||
|
AutoCompSetIgnoreCase(false);
|
||||||
|
AutoCompShow(0, keywords); // reuse the keyword list here
|
||||||
|
// normally you would build a string of completion texts...
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
evt.Skip();
|
||||||
}
|
}
|
||||||
|
13
contrib/samples/svg/makefile.wat
Normal file
13
contrib/samples/svg/makefile.wat
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# Purpose: makefile for SVG example (Watcom)
|
||||||
|
# Created 2000-07-28
|
||||||
|
|
||||||
|
WXDIR = $(%WXWIN)
|
||||||
|
|
||||||
|
EXTRACPPFLAGS = -I$(WXDIR)\contrib\include
|
||||||
|
PROGRAM = svgtest
|
||||||
|
EXTRALIBS = $(WXDIR)\lib\svg_w.lib
|
||||||
|
OBJECTS = $(OUTPUTDIR)\$(PROGRAM).obj
|
||||||
|
|
||||||
|
!include $(WXDIR)\src\makeprog.wat
|
||||||
|
|
||||||
|
|
@@ -99,7 +99,8 @@ LINK32=link.exe
|
|||||||
# PROP Ignore_Export_Lib 0
|
# PROP Ignore_Export_Lib 0
|
||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
|
# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
|
||||||
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "../../../include" /I "../../../contrib/include" /I "../../../lib/mswdlld" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /D WXUSINGDLL=1 /Yu"wx/wxprec.h" /FD /c
|
# ADD CPP /nologo /MDd /W3 /Gm /GX- /Zi /Od /I "../../../include" /I "../../../contrib/include" /I "../../../lib/mswdlld" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /D WXUSINGDLL=1 /FD /c
|
||||||
|
# SUBTRACT CPP /YX /Yc /Yu
|
||||||
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
|
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
|
||||||
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
|
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
|
||||||
# ADD BASE RSC /l 0x809 /d "_DEBUG"
|
# ADD BASE RSC /l 0x809 /d "_DEBUG"
|
||||||
@@ -109,7 +110,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
||||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw240d.lib wxxrcd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/xmldemo.exe" /pdbtype:sept /libpath:"../../../lib" /libpath:"../../../contrib/lib"
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw24d.lib wxxrcd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/xmldemo.exe" /pdbtype:sept /libpath:"../../../lib" /libpath:"../../../contrib/lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "XrcDemoVC - Win32 Release DLL"
|
!ELSEIF "$(CFG)" == "XrcDemoVC - Win32 Release DLL"
|
||||||
|
|
||||||
@@ -125,7 +126,7 @@ LINK32=link.exe
|
|||||||
# PROP Ignore_Export_Lib 0
|
# PROP Ignore_Export_Lib 0
|
||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
|
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
|
||||||
# ADD CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "../../../include" /I "../../../contrib/include" /I "../../../lib/mswdll" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /D WXUSINGDLL=1 /FD /c
|
# ADD CPP /nologo /MD /W3 /GX- /O2 /Ob1 /I "../../../include" /I "../../../contrib/include" /I "../../../lib/mswdll" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /D WXUSINGDLL=1 /FD /c
|
||||||
# SUBTRACT CPP /YX
|
# SUBTRACT CPP /YX
|
||||||
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
|
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
|
||||||
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
|
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
|
||||||
@@ -136,7 +137,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
|
||||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw240.lib wxxrc.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/xmldemo.exe" /libpath:"../../../lib" /libpath:"../../../contrib/lib"
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw24.lib wxxrc.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/xmldemo.exe" /libpath:"../../../lib" /libpath:"../../../contrib/lib"
|
||||||
|
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
|
@@ -212,7 +212,7 @@ bool wxAnimationPlayer::GetTransparentColour(wxColour& col) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Play the frame
|
// Play the frame
|
||||||
bool wxAnimationPlayer::PlayFrame(int frame, wxWindow& window, wxPoint& pos)
|
bool wxAnimationPlayer::PlayFrame(int frame, wxWindow& window, const wxPoint& pos)
|
||||||
{
|
{
|
||||||
wxMemoryDC dc;
|
wxMemoryDC dc;
|
||||||
dc.SelectObject(m_backingStore);
|
dc.SelectObject(m_backingStore);
|
||||||
|
13
contrib/src/animate/makefile.wat
Normal file
13
contrib/src/animate/makefile.wat
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# ANIM src makefile for Watcom C++
|
||||||
|
|
||||||
|
WXDIR = ..\..\..
|
||||||
|
EXTRACPPFLAGS = -I$(WXDIR)\contrib\include
|
||||||
|
|
||||||
|
LIBTARGET = $(WXDIR)\lib\anim_w.lib
|
||||||
|
|
||||||
|
OBJECTS = &
|
||||||
|
$(OUTPUTDIR)\animate.obj &
|
||||||
|
|
||||||
|
!include $(WXDIR)\src\makelib.wat
|
||||||
|
|
||||||
|
|
@@ -669,7 +669,7 @@ void cbBarDragPlugin::OnLButtonDown( cbLeftDownEvent& event )
|
|||||||
{
|
{
|
||||||
if ( mBarDragStarted )
|
if ( mBarDragStarted )
|
||||||
{
|
{
|
||||||
wxMessageBox("DblClick!");
|
wxMessageBox(wxT("DblClick!"));
|
||||||
}
|
}
|
||||||
|
|
||||||
event.Skip();
|
event.Skip();
|
||||||
|
@@ -97,8 +97,8 @@ void cbSimpleCustomizationPlugin::OnCustomizeBar( cbCustomizeBarEvent& event )
|
|||||||
|
|
||||||
void cbSimpleCustomizationPlugin::OnCustomizeLayout( cbCustomizeLayoutEvent& event )
|
void cbSimpleCustomizationPlugin::OnCustomizeLayout( cbCustomizeLayoutEvent& event )
|
||||||
{
|
{
|
||||||
wxString helpStr1 = "Select this item to show the corresponding control bar";
|
wxString helpStr1 = wxT("Select this item to show the corresponding control bar");
|
||||||
wxString helpStr2 = "Select this itme to hide the corresponding control bar";
|
wxString helpStr2 = wxT("Select this itme to hide the corresponding control bar");
|
||||||
|
|
||||||
int id = CB_CUSTOMIZE_MENU_FIRST_ITEM_ID;
|
int id = CB_CUSTOMIZE_MENU_FIRST_ITEM_ID;
|
||||||
|
|
||||||
@@ -153,7 +153,7 @@ void cbSimpleCustomizationPlugin::OnMenuItemSelected( wxCommandEvent& event )
|
|||||||
{
|
{
|
||||||
if ( event.GetId() == mCustMenuItemId )
|
if ( event.GetId() == mCustMenuItemId )
|
||||||
{
|
{
|
||||||
wxMessageBox("Customization dialog box is not supported by this plugin yet");
|
wxMessageBox(wxT("Customization dialog box is not supported by this plugin yet"));
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@@ -976,7 +976,7 @@ void wxFrameLayout::RemoveBar( cbBarInfo* pBarInfo )
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
wxFAIL_MSG("bar info should be present in the list of all bars of all panes");
|
wxFAIL_MSG(wxT("bar info should be present in the list of all bars of all panes"));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxFrameLayout::LocateBar( cbBarInfo* pBarInfo,
|
bool wxFrameLayout::LocateBar( cbBarInfo* pBarInfo,
|
||||||
@@ -1483,7 +1483,7 @@ void wxFrameLayout::OnIdle( wxIdleEvent& event )
|
|||||||
|
|
||||||
if ( !focus && mCheckFocusWhenIdle )
|
if ( !focus && mCheckFocusWhenIdle )
|
||||||
{
|
{
|
||||||
wxMessageBox( "Hi, no more focus in this app!" );
|
wxMessageBox(wxT("Hi, no more focus in this app!"));
|
||||||
|
|
||||||
mCheckFocusWhenIdle = FALSE;
|
mCheckFocusWhenIdle = FALSE;
|
||||||
//ShowFloatedWindows( FALSE );
|
//ShowFloatedWindows( FALSE );
|
||||||
@@ -3015,7 +3015,7 @@ int cbDockPane::GetRowIndex( cbRowInfo* pRow )
|
|||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxFAIL_MSG("Row must be present to call cbDockPane::GetRowIndex()");
|
wxFAIL_MSG(wxT("Row must be present to call cbDockPane::GetRowIndex()"));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -3063,7 +3063,7 @@ bool cbDockPane::MatchesMask( int paneMask )
|
|||||||
case FL_ALIGN_RIGHT : thisMask = FL_ALIGN_RIGHT_PANE; break;
|
case FL_ALIGN_RIGHT : thisMask = FL_ALIGN_RIGHT_PANE; break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
wxFAIL_MSG("Bad FL alignment type detected in cbDockPane::MatchesMask()");
|
wxFAIL_MSG(wxT("Bad FL alignment type detected in cbDockPane::MatchesMask()"));
|
||||||
}
|
}
|
||||||
|
|
||||||
return ( thisMask & paneMask ) != 0;
|
return ( thisMask & paneMask ) != 0;
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
|
# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
|
||||||
# TARGTYPE "Win32 (x86) Static Library" 0x0104
|
# TARGTYPE "Win32 (x86) Static Library" 0x0104
|
||||||
|
|
||||||
CFG=flVC - Win32 Release DLL
|
CFG=flVC - Win32 Debug Unicode DLL
|
||||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||||
!MESSAGE use the Export Makefile command and run
|
!MESSAGE use the Export Makefile command and run
|
||||||
!MESSAGE
|
!MESSAGE
|
||||||
@@ -14,7 +14,7 @@ CFG=flVC - Win32 Release DLL
|
|||||||
!MESSAGE You can specify a configuration when running NMAKE
|
!MESSAGE You can specify a configuration when running NMAKE
|
||||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||||
!MESSAGE
|
!MESSAGE
|
||||||
!MESSAGE NMAKE /f "flVC.mak" CFG="flVC - Win32 Release DLL"
|
!MESSAGE NMAKE /f "flVC.mak" CFG="flVC - Win32 Debug Unicode DLL"
|
||||||
!MESSAGE
|
!MESSAGE
|
||||||
!MESSAGE Possible choices for configuration are:
|
!MESSAGE Possible choices for configuration are:
|
||||||
!MESSAGE
|
!MESSAGE
|
||||||
@@ -22,6 +22,10 @@ CFG=flVC - Win32 Release DLL
|
|||||||
!MESSAGE "flVC - Win32 Debug" (based on "Win32 (x86) Static Library")
|
!MESSAGE "flVC - Win32 Debug" (based on "Win32 (x86) Static Library")
|
||||||
!MESSAGE "flVC - Win32 Debug DLL" (based on "Win32 (x86) Dynamic-Link Library")
|
!MESSAGE "flVC - Win32 Debug DLL" (based on "Win32 (x86) Dynamic-Link Library")
|
||||||
!MESSAGE "flVC - Win32 Release DLL" (based on "Win32 (x86) Dynamic-Link Library")
|
!MESSAGE "flVC - Win32 Release DLL" (based on "Win32 (x86) Dynamic-Link Library")
|
||||||
|
!MESSAGE "flVC - Win32 Release Unicode" (based on "Win32 (x86) Static Library")
|
||||||
|
!MESSAGE "flVC - Win32 Release Unicode DLL" (based on "Win32 (x86) Dynamic-Link Library")
|
||||||
|
!MESSAGE "flVC - Win32 Debug Unicode" (based on "Win32 (x86) Static Library")
|
||||||
|
!MESSAGE "flVC - Win32 Debug Unicode DLL" (based on "Win32 (x86) Dynamic-Link Library")
|
||||||
!MESSAGE
|
!MESSAGE
|
||||||
|
|
||||||
# Begin Project
|
# Begin Project
|
||||||
@@ -111,7 +115,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 /machine:IX86
|
# ADD BASE LINK32 /machine:IX86
|
||||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib advapi32.lib comdlg32.lib shell32.lib ole32.lib oleaut32.lib odbc32.lib uuid.lib rpcrt4.lib comctl32.lib wsock32.lib winmm.lib wxmsw240d.lib /nologo /version:1.0 /dll /debug /machine:IX86 /out:"../../../lib/fldlld.dll" /libpath:"../../../lib"
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib advapi32.lib comdlg32.lib shell32.lib ole32.lib oleaut32.lib odbc32.lib uuid.lib rpcrt4.lib comctl32.lib wsock32.lib winmm.lib wxmsw24d.lib /nologo /version:1.0 /dll /debug /machine:IX86 /out:"../../../lib/fldlld.dll" /libpath:"../../../lib"
|
||||||
# SUBTRACT LINK32 /pdb:none
|
# SUBTRACT LINK32 /pdb:none
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "flVC - Win32 Release DLL"
|
!ELSEIF "$(CFG)" == "flVC - Win32 Release DLL"
|
||||||
@@ -134,7 +138,7 @@ LIB32=link.exe -lib
|
|||||||
CPP=cl.exe
|
CPP=cl.exe
|
||||||
# ADD BASE CPP /nologo /MDd /W3 /GX /Zi /Od /I "../../../include" /I "../../include" /I "../../../lib/mswdlld" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /D WXUSINGDLL=1 /D "WXBUILD_FL_DLL" /YX /FD /c
|
# ADD BASE CPP /nologo /MDd /W3 /GX /Zi /Od /I "../../../include" /I "../../include" /I "../../../lib/mswdlld" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /D WXUSINGDLL=1 /D "WXBUILD_FL_DLL" /YX /FD /c
|
||||||
# SUBTRACT BASE CPP /u
|
# SUBTRACT BASE CPP /u
|
||||||
# ADD CPP /nologo /MD /W3 /GX /Zi /O2 /Ob2 /I "../../../include" /I "../../include" /I "../../../lib/mswdlld" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /D "WXUSINGDLL" /D "WXMAKING_FL_DLL" /YX /FD /c
|
# ADD CPP /nologo /MD /W3 /GX /Zi /O2 /Ob2 /I "../../../include" /I "../../include" /I "../../../lib/mswdll" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /D "WXUSINGDLL" /D "WXMAKING_FL_DLL" /YX /FD /c
|
||||||
# SUBTRACT CPP /u
|
# SUBTRACT CPP /u
|
||||||
MTL=midl.exe
|
MTL=midl.exe
|
||||||
RSC=rc.exe
|
RSC=rc.exe
|
||||||
@@ -144,11 +148,133 @@ BSC32=bscmake.exe
|
|||||||
# ADD BASE BSC32 /nologo
|
# ADD BASE BSC32 /nologo
|
||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib advapi32.lib comdlg32.lib shell32.lib ole32.lib oleaut32.lib odbc32.lib uuid.lib rpcrt4.lib comctl32.lib wsock32.lib winmm.lib wxmsw240d.lib /nologo /version:1.0 /dll /debug /machine:IX86 /out:"../../../lib/fldlld.dll" /libpath:"../../../lib"
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib advapi32.lib comdlg32.lib shell32.lib ole32.lib oleaut32.lib odbc32.lib uuid.lib rpcrt4.lib comctl32.lib wsock32.lib winmm.lib wxmsw24d.lib /nologo /version:1.0 /dll /debug /machine:IX86 /out:"../../../lib/fldlld.dll" /libpath:"../../../lib"
|
||||||
# SUBTRACT BASE LINK32 /pdb:none
|
# SUBTRACT BASE LINK32 /pdb:none
|
||||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib advapi32.lib comdlg32.lib shell32.lib ole32.lib oleaut32.lib odbc32.lib uuid.lib rpcrt4.lib comctl32.lib wsock32.lib winmm.lib wxmsw240.lib /nologo /version:1.0 /dll /machine:IX86 /out:"../../../lib/fldll.dll" /libpath:"../../../lib"
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib advapi32.lib comdlg32.lib shell32.lib ole32.lib oleaut32.lib odbc32.lib uuid.lib rpcrt4.lib comctl32.lib wsock32.lib winmm.lib wxmsw24.lib /nologo /version:1.0 /dll /machine:IX86 /out:"../../../lib/fldll.dll" /libpath:"../../../lib"
|
||||||
# SUBTRACT LINK32 /pdb:none /incremental:no /debug
|
# SUBTRACT LINK32 /pdb:none /incremental:no /debug
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "flVC - Win32 Release Unicode"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 0
|
||||||
|
# PROP BASE Output_Dir "flVC___Win32_Release_Unicode"
|
||||||
|
# PROP BASE Intermediate_Dir "flVC___Win32_Release_Unicode"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 0
|
||||||
|
# PROP Output_Dir "Release_Unicode"
|
||||||
|
# PROP Intermediate_Dir "Release_Unicode"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
LINK32=link.exe
|
||||||
|
CPP=cl.exe
|
||||||
|
# ADD BASE CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "../../../include" /I "../../include" /I "../../../lib/msw" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__HACK_MY_MSDEV40__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /YX /FD /c
|
||||||
|
# ADD CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "../../../include" /I "../../include" /I "../../../lib/mswu" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__HACK_MY_MSDEV40__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /D "UNICODE" /D "_UNICODE" /YX /FD /c
|
||||||
|
RSC=rc.exe
|
||||||
|
# ADD BASE RSC /l 0x809
|
||||||
|
# ADD RSC /l 0x809
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LIB32=link.exe -lib
|
||||||
|
# ADD BASE LIB32 /nologo /out:"..\..\..\lib\fl.lib"
|
||||||
|
# ADD LIB32 /nologo /out:"..\..\..\lib\flu.lib"
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "flVC - Win32 Release Unicode DLL"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "flVC___Win32_Release_Unicode_DLL"
|
||||||
|
# PROP BASE Intermediate_Dir "flVC___Win32_Release_Unicode_DLL"
|
||||||
|
# PROP BASE Ignore_Export_Lib 0
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "Release_Unicode_DLL"
|
||||||
|
# PROP Intermediate_Dir "Release_Unicode_DLL"
|
||||||
|
# PROP Ignore_Export_Lib 0
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
LIB32=link.exe -lib
|
||||||
|
# ADD BASE LIB32 /nologo /out:"..\..\..\lib\fld.lib"
|
||||||
|
# ADD LIB32 /nologo /out:"..\..\..\lib\fld.lib"
|
||||||
|
CPP=cl.exe
|
||||||
|
# ADD BASE CPP /nologo /MD /W3 /GX /Zi /O2 /Ob2 /I "../../../include" /I "../../include" /I "../../../lib/mswdlld" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /D "WXUSINGDLL" /D "WXMAKING_FL_DLL" /YX /FD /c
|
||||||
|
# SUBTRACT BASE CPP /u
|
||||||
|
# ADD CPP /nologo /MD /W3 /GX /Zi /O2 /Ob2 /I "../../../include" /I "../../include" /I "../../../lib/mswdllu" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /D "WXUSINGDLL" /D "WXMAKING_FL_DLL" /D "_UNICODE" /D "UNICODE" /YX /FD /c
|
||||||
|
# SUBTRACT CPP /u
|
||||||
|
MTL=midl.exe
|
||||||
|
RSC=rc.exe
|
||||||
|
# ADD BASE RSC /l 0x809
|
||||||
|
# ADD RSC /l 0x809
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib advapi32.lib comdlg32.lib shell32.lib ole32.lib oleaut32.lib odbc32.lib uuid.lib rpcrt4.lib comctl32.lib wsock32.lib winmm.lib wxmsw24.lib /nologo /version:1.0 /dll /machine:IX86 /out:"../../../lib/fldll.dll" /libpath:"../../../lib"
|
||||||
|
# SUBTRACT BASE LINK32 /pdb:none /incremental:no /debug
|
||||||
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib advapi32.lib comdlg32.lib shell32.lib ole32.lib oleaut32.lib odbc32.lib uuid.lib rpcrt4.lib comctl32.lib wsock32.lib winmm.lib wxmsw24u.lib /nologo /version:1.0 /dll /machine:IX86 /out:"../../../lib/fldllu.dll" /libpath:"../../../lib"
|
||||||
|
# SUBTRACT LINK32 /pdb:none /incremental:no /debug
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "flVC - Win32 Debug Unicode"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "flVC___Win32_Debug_Unicode"
|
||||||
|
# PROP BASE Intermediate_Dir "flVC___Win32_Debug_Unicode"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "Debug_Unicode"
|
||||||
|
# PROP Intermediate_Dir "Debug_Unicode"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
LINK32=link.exe
|
||||||
|
CPP=cl.exe
|
||||||
|
# ADD BASE CPP /nologo /MDd /W3 /GX /Zi /Od /I "../../../include" /I "../../include" /I "../../../lib/mswd" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /YX /FD /c
|
||||||
|
# ADD CPP /nologo /MDd /W3 /GX /Zi /Od /I "../../../include" /I "../../include" /I "../../../lib/mswud" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /D "UNICODE" /D "_UNICODE" /YX /FD /c
|
||||||
|
RSC=rc.exe
|
||||||
|
# ADD BASE RSC /l 0x809
|
||||||
|
# ADD RSC /l 0x809
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LIB32=link.exe -lib
|
||||||
|
# ADD BASE LIB32 /nologo /out:"..\..\..\lib\fld.lib"
|
||||||
|
# ADD LIB32 /nologo /out:"..\..\..\lib\flud.lib"
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "flVC - Win32 Debug Unicode DLL"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "flVC___Win32_Debug_Unicode_DLL"
|
||||||
|
# PROP BASE Intermediate_Dir "flVC___Win32_Debug_Unicode_DLL"
|
||||||
|
# PROP BASE Ignore_Export_Lib 0
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "Debug_Unicode_DLL"
|
||||||
|
# PROP Intermediate_Dir "Debug_Unicode_DLL"
|
||||||
|
# PROP Ignore_Export_Lib 0
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
LIB32=link.exe -lib
|
||||||
|
# ADD BASE LIB32 /nologo /out:"..\..\..\lib\fld.lib"
|
||||||
|
# ADD LIB32 /nologo /out:"..\..\..\lib\fld.lib"
|
||||||
|
CPP=cl.exe
|
||||||
|
# ADD BASE CPP /nologo /MDd /W3 /GX /Zi /Od /I "../../../include" /I "../../include" /I "../../../lib/mswdlld" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /D "WXUSINGDLL" /D "WXMAKING_FL_DLL" /YX /FD /c
|
||||||
|
# SUBTRACT BASE CPP /u
|
||||||
|
# ADD CPP /nologo /MDd /W3 /GX /Zi /Od /I "../../../include" /I "../../include" /I "../../../lib/mswdllud" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /D "WXUSINGDLL" /D "WXMAKING_FL_DLL" /D "UNICODE" /D "_UNICODE" /YX /FD /c
|
||||||
|
# SUBTRACT CPP /u
|
||||||
|
MTL=midl.exe
|
||||||
|
RSC=rc.exe
|
||||||
|
# ADD BASE RSC /l 0x809
|
||||||
|
# ADD RSC /l 0x809
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib advapi32.lib comdlg32.lib shell32.lib ole32.lib oleaut32.lib odbc32.lib uuid.lib rpcrt4.lib comctl32.lib wsock32.lib winmm.lib wxmsw24d.lib /nologo /version:1.0 /dll /debug /machine:IX86 /out:"../../../lib/fldlld.dll" /libpath:"../../../lib"
|
||||||
|
# SUBTRACT BASE LINK32 /pdb:none
|
||||||
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib advapi32.lib comdlg32.lib shell32.lib ole32.lib oleaut32.lib odbc32.lib uuid.lib rpcrt4.lib comctl32.lib wsock32.lib winmm.lib wxmsw24ud.lib /nologo /version:1.0 /dll /debug /machine:IX86 /out:"../../../lib/fldllud.dll" /libpath:"../../../lib"
|
||||||
|
# SUBTRACT LINK32 /pdb:none
|
||||||
|
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
# Begin Target
|
# Begin Target
|
||||||
@@ -157,6 +283,10 @@ LINK32=link.exe
|
|||||||
# Name "flVC - Win32 Debug"
|
# Name "flVC - Win32 Debug"
|
||||||
# Name "flVC - Win32 Debug DLL"
|
# Name "flVC - Win32 Debug DLL"
|
||||||
# Name "flVC - Win32 Release DLL"
|
# Name "flVC - Win32 Release DLL"
|
||||||
|
# Name "flVC - Win32 Release Unicode"
|
||||||
|
# Name "flVC - Win32 Release Unicode DLL"
|
||||||
|
# Name "flVC - Win32 Debug Unicode"
|
||||||
|
# Name "flVC - Win32 Debug Unicode DLL"
|
||||||
# Begin Group "Headers"
|
# Begin Group "Headers"
|
||||||
|
|
||||||
# PROP Default_Filter ""
|
# PROP Default_Filter ""
|
||||||
|
@@ -433,7 +433,7 @@ void wxNewBitmapButton::RenderLabelImage( wxBitmap*& destBmp, wxBitmap* srcBmp,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
wxFAIL_MSG("Unsupported FL alignment type detected in wxNewBitmapButton::RenderLabelImage()");
|
wxFAIL_MSG(wxT("Unsupported FL alignment type detected in wxNewBitmapButton::RenderLabelImage()"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -731,7 +731,7 @@ void wxNewBitmapButton::Reshape( )
|
|||||||
// in the case of loading button from stream, check if we
|
// in the case of loading button from stream, check if we
|
||||||
// have non-empty image-file name, load if possible
|
// have non-empty image-file name, load if possible
|
||||||
|
|
||||||
if ( mImageFileName != "" )
|
if ( mImageFileName != wxT("") )
|
||||||
{
|
{
|
||||||
mDepressedBmp.LoadFile( mImageFileName, mImageFileType );
|
mDepressedBmp.LoadFile( mImageFileName, mImageFileType );
|
||||||
|
|
||||||
@@ -796,6 +796,6 @@ void wxNewBitmapButton::OnKillFocus( wxFocusEvent& event )
|
|||||||
{
|
{
|
||||||
// useless
|
// useless
|
||||||
|
|
||||||
wxMessageBox("kill-focus for button!");
|
wxMessageBox(wxT("kill-focus for button!"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -591,10 +591,14 @@ void cbPaneDrawPlugin::OnSizeBarWindow( cbSizeBarWndEvent& event )
|
|||||||
|
|
||||||
// FIXME:: +/- 1s
|
// FIXME:: +/- 1s
|
||||||
|
|
||||||
|
int nNewHeight = bounds.height - 2 - bar.mDimInfo.mVertGap *2;
|
||||||
|
if(nNewHeight < 0)
|
||||||
|
nNewHeight = 0;
|
||||||
|
|
||||||
bar.mpBarWnd->wxWindow::SetSize( bounds.x + 1 + bar.mDimInfo.mHorizGap,
|
bar.mpBarWnd->wxWindow::SetSize( bounds.x + 1 + bar.mDimInfo.mHorizGap,
|
||||||
bounds.y + 1 + bar.mDimInfo.mVertGap,
|
bounds.y + 1 + bar.mDimInfo.mVertGap,
|
||||||
bounds.width - 2 - bar.mDimInfo.mHorizGap*2,
|
bounds.width - 2 - bar.mDimInfo.mHorizGap*2,
|
||||||
bounds.height - 2 - bar.mDimInfo.mVertGap *2 ,
|
nNewHeight,
|
||||||
0
|
0
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@@ -456,6 +456,9 @@ void cbRowLayoutPlugin::ApplyLengthRatios( cbRowInfo* pRow )
|
|||||||
}
|
}
|
||||||
} // for
|
} // for
|
||||||
|
|
||||||
|
if (pcntSum == 0.0)
|
||||||
|
pcntSum = 1.0;
|
||||||
|
|
||||||
if ( haveSquished )
|
if ( haveSquished )
|
||||||
unit = freeSpc / pcntSum;
|
unit = freeSpc / pcntSum;
|
||||||
|
|
||||||
|
@@ -81,7 +81,7 @@ wxToolWindow::wxToolWindow()
|
|||||||
mTitleFont( 8, wxSWISS, wxNORMAL, wxNORMAL ),
|
mTitleFont( 8, wxSWISS, wxNORMAL, wxNORMAL ),
|
||||||
#else
|
#else
|
||||||
// just to simulate MS-Dev style
|
// just to simulate MS-Dev style
|
||||||
mTitleFont( 8, wxSWISS, wxNORMAL, wxNORMAL, FALSE, "MS Sans Serif" ),
|
mTitleFont( 8, wxSWISS, wxNORMAL, wxNORMAL, FALSE, wxT("MS Sans Serif") ),
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
mTitleHeight ( 16 ),
|
mTitleHeight ( 16 ),
|
||||||
@@ -572,7 +572,7 @@ void wxToolWindow::OnMotion( wxMouseEvent& event )
|
|||||||
DrawHintRect( mPrevHintRect );
|
DrawHintRect( mPrevHintRect );
|
||||||
DrawHintRect( finalRect );
|
DrawHintRect( finalRect );
|
||||||
|
|
||||||
::wxLogTrace("%d,%d / %d,%d\n", finalRect.x, finalRect.y, finalRect.width, finalRect.height);
|
::wxLogTrace(wxT("%d,%d / %d,%d\n"), finalRect.x, finalRect.y, finalRect.width, finalRect.height);
|
||||||
}
|
}
|
||||||
|
|
||||||
mPrevHintRect = finalRect;
|
mPrevHintRect = finalRect;
|
||||||
|
@@ -1,20 +0,0 @@
|
|||||||
#
|
|
||||||
# File: makefile.bcc
|
|
||||||
# Author: Julian Smart
|
|
||||||
# Created: 1998
|
|
||||||
# Updated:
|
|
||||||
#
|
|
||||||
# Builds Gizmos library for BC++, 16-bit
|
|
||||||
|
|
||||||
!if "$(WXWIN)" == ""
|
|
||||||
!error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
|
|
||||||
!endif
|
|
||||||
|
|
||||||
WXDIR = $(WXWIN)
|
|
||||||
|
|
||||||
LIBTARGET=$(WXDIR)\lib\gizmos.lib
|
|
||||||
|
|
||||||
OBJECTS = multicell.obj splittree.obj editlbox.obj dynamicsash.obj ledctrl.obj
|
|
||||||
|
|
||||||
!include $(WXDIR)\src\makelib.bcc
|
|
||||||
|
|
@@ -1,22 +1,17 @@
|
|||||||
# Gizmos makefile for Watcom C++
|
# Gizmos makefile for Watcom C++
|
||||||
|
|
||||||
WXDIR = ..\..\..
|
WXDIR = ..\..\..
|
||||||
|
EXTRACPPFLAGS = -I$(WXDIR)\contrib\include
|
||||||
|
|
||||||
!include $(WXDIR)\src\makewat.env
|
LIBTARGET = $(WXDIR)\lib\gizmos_w.lib
|
||||||
|
|
||||||
GIZMOSLIB = $(WXDIR)\lib\gizmos.lib
|
OBJECTS = &
|
||||||
THISDIR = $(WXDIR)\contrib\src\gizmos
|
$(OUTPUTDIR)\multicell.obj &
|
||||||
|
$(OUTPUTDIR)\splittree.obj &
|
||||||
|
$(OUTPUTDIR)\editlbox.obj &
|
||||||
|
$(OUTPUTDIR)\dynamicsash.obj &
|
||||||
|
$(OUTPUTDIR)\ledctrl.obj
|
||||||
|
|
||||||
NAME = gizmos
|
!include $(WXDIR)\src\makelib.wat
|
||||||
LNK = $(name).lnk
|
|
||||||
|
|
||||||
OBJECTS = multicell.obj splittree.obj editlbox.obj dynamicsash.obj ledctrl.obj
|
|
||||||
|
|
||||||
all: $(GIZMOSLIB)
|
|
||||||
|
|
||||||
$(GIZMOSLIB): $(OBJECTS)
|
|
||||||
*wlib /b /c /n /P=256 $(GIZMOSLIB) $(OBJECTS)
|
|
||||||
|
|
||||||
clean: .SYMBOLIC
|
|
||||||
-erase *.obj *.bak *.err *.pch $(GIZMOSLIB) *.lbc
|
|
||||||
|
|
||||||
|
@@ -113,7 +113,10 @@ void wxRemotelyScrolledTreeCtrl::SetScrollbars(int pixelsPerUnitX, int pixelsPer
|
|||||||
if (IsKindOf(CLASSINFO(wxGenericTreeCtrl)))
|
if (IsKindOf(CLASSINFO(wxGenericTreeCtrl)))
|
||||||
{
|
{
|
||||||
wxGenericTreeCtrl* win = (wxGenericTreeCtrl*) this;
|
wxGenericTreeCtrl* win = (wxGenericTreeCtrl*) this;
|
||||||
win->wxGenericTreeCtrl::SetScrollbars(pixelsPerUnitX, 0, noUnitsX, 0, xPos, 0, noRefresh);
|
// win->wxGenericTreeCtrl::SetScrollbars(pixelsPerUnitX, 0, noUnitsX, 0, xPos, 0, noRefresh);
|
||||||
|
// Don't refresh, or on wxGTK a portion of the window will be redrawn as if
|
||||||
|
// Y scrolling is at zero
|
||||||
|
win->wxGenericTreeCtrl::SetScrollbars(pixelsPerUnitX, pixelsPerUnitY, noUnitsX, 0, xPos, 0, /* noRefresh */ TRUE);
|
||||||
|
|
||||||
wxScrolledWindow* scrolledWindow = GetScrolledWindow();
|
wxScrolledWindow* scrolledWindow = GetScrolledWindow();
|
||||||
if (scrolledWindow)
|
if (scrolledWindow)
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
WXDIR = $(WXWIN)
|
WXDIR = $(WXWIN)
|
||||||
|
|
||||||
LIBTARGET=$(WXDIR)\contrib\lib\mmedia.lib
|
LIBTARGET=$(WXDIR)\lib\mmedia.lib
|
||||||
|
|
||||||
OBJECTS = cdbase.obj cdwin.obj g711.obj g721.obj g723_24.obj \
|
OBJECTS = cdbase.obj cdwin.obj g711.obj g721.obj g723_24.obj \
|
||||||
g723_40.obj g72x.obj sndaiff.obj sndbase.obj sndcodec.obj \
|
g723_40.obj g72x.obj sndaiff.obj sndbase.obj sndcodec.obj \
|
||||||
|
@@ -6,15 +6,33 @@
|
|||||||
#
|
#
|
||||||
# Makefile : Builds MMedia library for Watcom C++, WIN32
|
# Makefile : Builds MMedia library for Watcom C++, WIN32
|
||||||
|
|
||||||
WXDIR = $(%WXWIN)
|
!error This will not work - there is no digitalv.h in Open Watcom as of 26 Feb 03
|
||||||
|
|
||||||
LIBTARGET=$(WXDIR)\contrib\lib\mmedia.lib
|
WXDIR = ..\..\..
|
||||||
|
EXTRACPPFLAGS = -I$(WXDIR)\contrib\include
|
||||||
|
|
||||||
OBJECTS = cdbase.obj cdwin.obj g711.obj g721.obj g723_24.obj &
|
LIBTARGET=$(WXDIR)\lib\mmedia_w.lib
|
||||||
g723_40.obj g72x.obj sndaiff.obj sndbase.obj sndcodec.obj &
|
|
||||||
sndcpcm.obj sndfile.obj sndg72x.obj sndpcm.obj sndulaw.obj &
|
OBJECTS = &
|
||||||
sndwav.obj sndwin.obj vidbase.obj vidwin.obj
|
$(OUTPUTDIR)\cdbase.obj &
|
||||||
|
$(OUTPUTDIR)\cdwin.obj &
|
||||||
|
$(OUTPUTDIR)\g711.obj &
|
||||||
|
$(OUTPUTDIR)\g721.obj &
|
||||||
|
$(OUTPUTDIR)\g723_24.obj &
|
||||||
|
$(OUTPUTDIR)\g723_40.obj &
|
||||||
|
$(OUTPUTDIR)\g72x.obj &
|
||||||
|
$(OUTPUTDIR)\sndaiff.obj &
|
||||||
|
$(OUTPUTDIR)\sndbase.obj &
|
||||||
|
$(OUTPUTDIR)\sndcodec.obj &
|
||||||
|
$(OUTPUTDIR)\sndcpcm.obj &
|
||||||
|
$(OUTPUTDIR)\sndfile.obj &
|
||||||
|
$(OUTPUTDIR)\sndg72x.obj &
|
||||||
|
$(OUTPUTDIR)\sndpcm.obj &
|
||||||
|
$(OUTPUTDIR)\sndulaw.obj &
|
||||||
|
$(OUTPUTDIR)\sndwav.obj &
|
||||||
|
$(OUTPUTDIR)\sndwin.obj &
|
||||||
|
$(OUTPUTDIR)\vidbase.obj &
|
||||||
|
$(OUTPUTDIR)\vidwin.obj
|
||||||
|
|
||||||
!include $(WXDIR)\src\makelib.wat
|
!include $(WXDIR)\src\makelib.wat
|
||||||
|
|
||||||
|
|
||||||
|
@@ -145,12 +145,20 @@ bool wxMapiSession::Logon(const wxString& sProfileName, const wxString& sPasswor
|
|||||||
|
|
||||||
LPSTR pszProfileName = NULL;
|
LPSTR pszProfileName = NULL;
|
||||||
LPSTR pszPassword = NULL;
|
LPSTR pszPassword = NULL;
|
||||||
|
wxCharBuffer cbProfile(1),cbPassword(1);
|
||||||
if (nProfileLength)
|
if (nProfileLength)
|
||||||
{
|
{
|
||||||
// pszProfileName = T2A((LPTSTR) (LPCTSTR) sProfileName);
|
// pszProfileName = T2A((LPTSTR) (LPCTSTR) sProfileName);
|
||||||
// pszPassword = T2A((LPTSTR) (LPCTSTR) sPassword);
|
// pszPassword = T2A((LPTSTR) (LPCTSTR) sPassword);
|
||||||
|
#ifndef UNICODE
|
||||||
pszProfileName = (LPSTR) sProfileName.c_str();
|
pszProfileName = (LPSTR) sProfileName.c_str();
|
||||||
pszPassword = (LPSTR) sPassword.c_str();
|
pszPassword = (LPSTR) sPassword.c_str();
|
||||||
|
#else
|
||||||
|
cbProfile = sProfileName.mb_str();
|
||||||
|
cbPassword = sPassword.mb_str();
|
||||||
|
pszProfileName = cbProfile.data();
|
||||||
|
pszPassword = cbPassword.data();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
//Setup the flags & UIParam parameters used in the MapiLogon call
|
//Setup the flags & UIParam parameters used in the MapiLogon call
|
||||||
@@ -252,7 +260,13 @@ bool wxMapiSession::Resolve(const wxString& sName, void* lppRecip1)
|
|||||||
|
|
||||||
//Call the MAPIResolveName function
|
//Call the MAPIResolveName function
|
||||||
// LPSTR lpszAsciiName = T2A((LPTSTR) (LPCTSTR) sName);
|
// LPSTR lpszAsciiName = T2A((LPTSTR) (LPCTSTR) sName);
|
||||||
|
#ifndef UNICODE
|
||||||
LPSTR lpszAsciiName = (LPSTR) sName.c_str();
|
LPSTR lpszAsciiName = (LPSTR) sName.c_str();
|
||||||
|
#else
|
||||||
|
wxCharBuffer cbName(1);
|
||||||
|
cbName = sName.mb_str();
|
||||||
|
LPSTR lpszAsciiName = cbName.data();
|
||||||
|
#endif
|
||||||
ULONG nError = m_data->m_lpfnMAPIResolveName(m_data->m_hSession, 0, lpszAsciiName, 0, 0, lppRecip);
|
ULONG nError = m_data->m_lpfnMAPIResolveName(m_data->m_hSession, 0, lpszAsciiName, 0, 0, lppRecip);
|
||||||
if (nError != SUCCESS_SUCCESS)
|
if (nError != SUCCESS_SUCCESS)
|
||||||
{
|
{
|
||||||
@@ -277,8 +291,16 @@ bool wxMapiSession::Send(wxMailMessage& message)
|
|||||||
//Create the MapiMessage structure to match the message parameter send into us
|
//Create the MapiMessage structure to match the message parameter send into us
|
||||||
MapiMessage mapiMessage;
|
MapiMessage mapiMessage;
|
||||||
ZeroMemory(&mapiMessage, sizeof(mapiMessage));
|
ZeroMemory(&mapiMessage, sizeof(mapiMessage));
|
||||||
|
#ifndef UNICODE
|
||||||
mapiMessage.lpszSubject = (LPSTR) message.m_subject.c_str();
|
mapiMessage.lpszSubject = (LPSTR) message.m_subject.c_str();
|
||||||
mapiMessage.lpszNoteText = (LPSTR) message.m_body.c_str();
|
mapiMessage.lpszNoteText = (LPSTR) message.m_body.c_str();
|
||||||
|
#else
|
||||||
|
wxCharBuffer cbSubject(1),cbBody(1),cbOriginator(1);
|
||||||
|
cbSubject = message.m_subject.mb_str();
|
||||||
|
cbBody = message.m_body.mb_str();
|
||||||
|
mapiMessage.lpszSubject = cbSubject.data();
|
||||||
|
mapiMessage.lpszNoteText = cbBody.data();
|
||||||
|
#endif
|
||||||
// mapiMessage.lpszSubject = T2A((LPTSTR) (LPCTSTR) message.m_subject);
|
// mapiMessage.lpszSubject = T2A((LPTSTR) (LPCTSTR) message.m_subject);
|
||||||
// mapiMessage.lpszNoteText = T2A((LPTSTR) (LPCTSTR) message.m_body);
|
// mapiMessage.lpszNoteText = T2A((LPTSTR) (LPCTSTR) message.m_body);
|
||||||
mapiMessage.nRecipCount = message.m_to.GetCount() + message.m_cc.GetCount() + message.m_bcc.GetCount();
|
mapiMessage.nRecipCount = message.m_to.GetCount() + message.m_cc.GetCount() + message.m_bcc.GetCount();
|
||||||
@@ -295,7 +317,12 @@ bool wxMapiSession::Send(wxMailMessage& message)
|
|||||||
|
|
||||||
mapiMessage.lpOriginator->ulRecipClass = MAPI_ORIG;
|
mapiMessage.lpOriginator->ulRecipClass = MAPI_ORIG;
|
||||||
// TODO Do we have to call Resolve?
|
// TODO Do we have to call Resolve?
|
||||||
|
#ifndef UNICODE
|
||||||
mapiMessage.lpOriginator->lpszName = (LPSTR) message.m_from.c_str();
|
mapiMessage.lpOriginator->lpszName = (LPSTR) message.m_from.c_str();
|
||||||
|
#else
|
||||||
|
cbOriginator = message.m_from.mb_str();
|
||||||
|
mapiMessage.lpOriginator->lpszName = cbOriginator.data();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
//Setup the "To" recipients
|
//Setup the "To" recipients
|
||||||
@@ -314,13 +341,17 @@ bool wxMapiSession::Send(wxMailMessage& message)
|
|||||||
if (Resolve(sName, (void*) &lpTempRecip))
|
if (Resolve(sName, (void*) &lpTempRecip))
|
||||||
{
|
{
|
||||||
//Resolve worked, put the resolved name back into the sName
|
//Resolve worked, put the resolved name back into the sName
|
||||||
sName = lpTempRecip->lpszName;
|
sName = wxString(lpTempRecip->lpszName,wxConvCurrent);
|
||||||
|
|
||||||
//Don't forget to free up the memory MAPI allocated for us
|
//Don't forget to free up the memory MAPI allocated for us
|
||||||
m_data->m_lpfnMAPIFreeBuffer(lpTempRecip);
|
m_data->m_lpfnMAPIFreeBuffer(lpTempRecip);
|
||||||
}
|
}
|
||||||
//recip.lpszName = T2A((LPTSTR) (LPCTSTR) sName);
|
//recip.lpszName = T2A((LPTSTR) (LPCTSTR) sName);
|
||||||
|
#ifndef UNICODE
|
||||||
recip.lpszName = (LPSTR) sName.c_str();
|
recip.lpszName = (LPSTR) sName.c_str();
|
||||||
|
#else
|
||||||
|
recip.lpszName = sName.mb_str().release();
|
||||||
|
#endif
|
||||||
|
|
||||||
++nRecipIndex;
|
++nRecipIndex;
|
||||||
}
|
}
|
||||||
@@ -339,13 +370,17 @@ bool wxMapiSession::Send(wxMailMessage& message)
|
|||||||
if (Resolve(sName, (void*) &lpTempRecip))
|
if (Resolve(sName, (void*) &lpTempRecip))
|
||||||
{
|
{
|
||||||
//Resolve worked, put the resolved name back into the sName
|
//Resolve worked, put the resolved name back into the sName
|
||||||
sName = lpTempRecip->lpszName;
|
sName = wxString(lpTempRecip->lpszName,wxConvCurrent);
|
||||||
|
|
||||||
//Don't forget to free up the memory MAPI allocated for us
|
//Don't forget to free up the memory MAPI allocated for us
|
||||||
m_data->m_lpfnMAPIFreeBuffer(lpTempRecip);
|
m_data->m_lpfnMAPIFreeBuffer(lpTempRecip);
|
||||||
}
|
}
|
||||||
//recip.lpszName = T2A((LPTSTR) (LPCTSTR) sName);
|
//recip.lpszName = T2A((LPTSTR) (LPCTSTR) sName);
|
||||||
|
#ifndef UNICODE
|
||||||
recip.lpszName = (LPSTR) sName.c_str();
|
recip.lpszName = (LPSTR) sName.c_str();
|
||||||
|
#else
|
||||||
|
recip.lpszName = sName.mb_str().release();
|
||||||
|
#endif
|
||||||
|
|
||||||
++nRecipIndex;
|
++nRecipIndex;
|
||||||
}
|
}
|
||||||
@@ -364,13 +399,17 @@ bool wxMapiSession::Send(wxMailMessage& message)
|
|||||||
if (Resolve(sName, (void*) &lpTempRecip))
|
if (Resolve(sName, (void*) &lpTempRecip))
|
||||||
{
|
{
|
||||||
//Resolve worked, put the resolved name back into the sName
|
//Resolve worked, put the resolved name back into the sName
|
||||||
sName = lpTempRecip->lpszName;
|
sName = wxString(lpTempRecip->lpszName,wxConvCurrent);
|
||||||
|
|
||||||
//Don't forget to free up the memory MAPI allocated for us
|
//Don't forget to free up the memory MAPI allocated for us
|
||||||
m_data->m_lpfnMAPIFreeBuffer(lpTempRecip);
|
m_data->m_lpfnMAPIFreeBuffer(lpTempRecip);
|
||||||
}
|
}
|
||||||
//recip.lpszName = T2A((LPTSTR) (LPCTSTR) sName);
|
//recip.lpszName = T2A((LPTSTR) (LPCTSTR) sName);
|
||||||
|
#ifndef UNICODE
|
||||||
recip.lpszName = (LPSTR) sName.c_str();
|
recip.lpszName = (LPSTR) sName.c_str();
|
||||||
|
#else
|
||||||
|
recip.lpszName = sName.mb_str().release();
|
||||||
|
#endif
|
||||||
|
|
||||||
++nRecipIndex;
|
++nRecipIndex;
|
||||||
}
|
}
|
||||||
@@ -395,7 +434,11 @@ bool wxMapiSession::Send(wxMailMessage& message)
|
|||||||
wxString& sFilename = message.m_attachments[i];
|
wxString& sFilename = message.m_attachments[i];
|
||||||
//file.lpszPathName = T2A((LPTSTR) (LPCTSTR) sFilename);
|
//file.lpszPathName = T2A((LPTSTR) (LPCTSTR) sFilename);
|
||||||
|
|
||||||
|
#ifndef UNICODE
|
||||||
file.lpszPathName = (LPSTR) sFilename.c_str();
|
file.lpszPathName = (LPSTR) sFilename.c_str();
|
||||||
|
#else
|
||||||
|
file.lpszPathName = sFilename.mb_str().release();
|
||||||
|
#endif
|
||||||
//file.lpszFileName = file.lpszPathName;
|
//file.lpszFileName = file.lpszPathName;
|
||||||
file.lpszFileName = NULL;
|
file.lpszFileName = NULL;
|
||||||
|
|
||||||
@@ -403,7 +446,11 @@ bool wxMapiSession::Send(wxMailMessage& message)
|
|||||||
{
|
{
|
||||||
wxString& sTitle = message.m_attachmentTitles[i];
|
wxString& sTitle = message.m_attachmentTitles[i];
|
||||||
//file.lpszFileName = T2A((LPTSTR) (LPCTSTR) sTitle);
|
//file.lpszFileName = T2A((LPTSTR) (LPCTSTR) sTitle);
|
||||||
|
#ifndef UNICODE
|
||||||
file.lpszFileName = (LPSTR) sTitle.c_str();
|
file.lpszFileName = (LPSTR) sTitle.c_str();
|
||||||
|
#else
|
||||||
|
file.lpszFileName = sTitle.mb_str().release();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -423,10 +470,24 @@ bool wxMapiSession::Send(wxMailMessage& message)
|
|||||||
|
|
||||||
//Tidy up the Attachements
|
//Tidy up the Attachements
|
||||||
if (nAttachmentSize)
|
if (nAttachmentSize)
|
||||||
|
{
|
||||||
|
#ifdef UNICODE
|
||||||
|
for (int i = 0;i < nAttachmentSize;i++)
|
||||||
|
{
|
||||||
|
free(mapiMessage.lpFiles[i].lpszPathName);
|
||||||
|
free(mapiMessage.lpFiles[i].lpszFileName);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
delete [] mapiMessage.lpFiles;
|
delete [] mapiMessage.lpFiles;
|
||||||
|
}
|
||||||
|
|
||||||
//Free up the Recipients and Originator memory
|
//Free up the Recipients and Originator memory
|
||||||
|
#ifdef UNICODE
|
||||||
|
for (int i = 0;i < nRecipIndex;i++)
|
||||||
|
free(mapiMessage.lpRecips[i].lpszName);
|
||||||
|
#endif
|
||||||
delete [] mapiMessage.lpRecips;
|
delete [] mapiMessage.lpRecips;
|
||||||
|
|
||||||
delete mapiMessage.lpOriginator;
|
delete mapiMessage.lpOriginator;
|
||||||
|
|
||||||
return bSuccess;
|
return bSuccess;
|
||||||
@@ -436,4 +497,3 @@ long wxMapiSession::GetLastError() const
|
|||||||
{
|
{
|
||||||
return m_data->m_nLastError;
|
return m_data->m_nLastError;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -2334,7 +2334,7 @@ wxRealPoint *wxLineShape::GetNextControlPoint(wxShape *nodeObject)
|
|||||||
return (wxRealPoint *)node->Data();
|
return (wxRealPoint *)node->Data();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return FALSE;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -1,21 +0,0 @@
|
|||||||
#
|
|
||||||
# File: makefile.bcc
|
|
||||||
# Author: Julian Smart
|
|
||||||
# Created: 1998
|
|
||||||
# Updated:
|
|
||||||
#
|
|
||||||
# Builds OGL library for BC++, 16-bit
|
|
||||||
|
|
||||||
!if "$(WXWIN)" == ""
|
|
||||||
!error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
|
|
||||||
!endif
|
|
||||||
|
|
||||||
WXDIR = $(WXWIN)
|
|
||||||
|
|
||||||
LIBTARGET=$(WXDIR)\lib\ogl.lib
|
|
||||||
|
|
||||||
OBJECTS = basic.obj basic2.obj canvas.obj ogldiag.obj lines.obj misc.obj divided.obj constrnt.obj\
|
|
||||||
composit.obj drawn.obj bmpshape.obj mfutils.obj
|
|
||||||
|
|
||||||
!include $(WXDIR)\src\makelib.bcc
|
|
||||||
|
|
@@ -1,25 +1,24 @@
|
|||||||
# Objects makefile
|
# OGL makefile
|
||||||
|
|
||||||
WXDIR = ..\..\..
|
WXDIR = ..\..\..
|
||||||
|
EXTRACPPFLAGS=-I$(WXDIR)\contrib\include;/DPROLOGIO
|
||||||
|
|
||||||
!include $(WXDIR)\src\makewat.env
|
LIBTARGET= $(WXDIR)\lib\ogl_w.lib
|
||||||
|
|
||||||
EXTRACPPFLAGS=/DPROLOGIO
|
OBJECTS = &
|
||||||
|
$(OUTPUTDIR)\basic.obj &
|
||||||
|
$(OUTPUTDIR)\basic2.obj &
|
||||||
|
$(OUTPUTDIR)\canvas.obj &
|
||||||
|
$(OUTPUTDIR)\lines.obj &
|
||||||
|
$(OUTPUTDIR)\divided.obj &
|
||||||
|
$(OUTPUTDIR)\constrnt.obj &
|
||||||
|
$(OUTPUTDIR)\composit.obj &
|
||||||
|
$(OUTPUTDIR)\drawn.obj &
|
||||||
|
$(OUTPUTDIR)\bmpshape.obj &
|
||||||
|
$(OUTPUTDIR)\mfutils.obj &
|
||||||
|
$(OUTPUTDIR)\ogldiag.obj &
|
||||||
|
$(OUTPUTDIR)\oglmisc.obj
|
||||||
|
|
||||||
OGLLIB = $(WXDIR)\lib\ogl.lib
|
|
||||||
THISDIR = $(WXDIR)\src\ogl
|
|
||||||
|
|
||||||
NAME = ogl
|
!include $(WXDIR)\src\makelib.wat
|
||||||
LNK = $(name).lnk
|
|
||||||
|
|
||||||
OBJECTS = basic.obj basic2.obj canvas.obj lines.obj divided.obj constrnt.obj &
|
|
||||||
composit.obj drawn.obj bmpshape.obj mfutils.obj ogldiag.obj oglmisc.obj
|
|
||||||
|
|
||||||
all: $(OGLLIB)
|
|
||||||
|
|
||||||
$(OGLLIB): $(OBJECTS)
|
|
||||||
*wlib /b /c /n /P=256 $(OGLLIB) $(OBJECTS)
|
|
||||||
|
|
||||||
clean: .SYMBOLIC
|
|
||||||
-erase *.obj *.bak *.err *.pch $(OGLLIB) *.lbc
|
|
||||||
|
|
||||||
|
@@ -34,18 +34,22 @@ OBJECTS=PlatWX.o ScintillaWX.o stc.o \
|
|||||||
KeyMap.o \
|
KeyMap.o \
|
||||||
KeyWords.o \
|
KeyWords.o \
|
||||||
LexAVE.o \
|
LexAVE.o \
|
||||||
|
LexAda.o \
|
||||||
|
LexAsm.o \
|
||||||
LexBaan.o \
|
LexBaan.o \
|
||||||
LexBullant.o \
|
LexBullant.o \
|
||||||
LexMatlab.o \
|
LexMatlab.o \
|
||||||
LexAda.o \
|
|
||||||
LexCPP.o \
|
LexCPP.o \
|
||||||
LexConf.o \
|
LexConf.o \
|
||||||
LexCrontab.o \
|
LexCrontab.o \
|
||||||
|
LexCSS.o \
|
||||||
LexEiffel.o \
|
LexEiffel.o \
|
||||||
|
LexFortran.o \
|
||||||
LexHTML.o \
|
LexHTML.o \
|
||||||
LexLisp.o \
|
LexLisp.o \
|
||||||
LexLua.o \
|
LexLua.o \
|
||||||
LexOthers.o \
|
LexOthers.o \
|
||||||
|
LexPOV.o \
|
||||||
LexPascal.o \
|
LexPascal.o \
|
||||||
LexPerl.o \
|
LexPerl.o \
|
||||||
LexPython.o \
|
LexPython.o \
|
||||||
@@ -61,6 +65,8 @@ OBJECTS=PlatWX.o ScintillaWX.o stc.o \
|
|||||||
UniConversion.o \
|
UniConversion.o \
|
||||||
ViewStyle.o \
|
ViewStyle.o \
|
||||||
WindowAccessor.o \
|
WindowAccessor.o \
|
||||||
|
XPM.o \
|
||||||
|
|
||||||
|
|
||||||
DEPFILES=$(OBJECTS:.o=.d)
|
DEPFILES=$(OBJECTS:.o=.d)
|
||||||
|
|
||||||
|
@@ -8,7 +8,10 @@
|
|||||||
|
|
||||||
#include <wx/wx.h>
|
#include <wx/wx.h>
|
||||||
#include <wx/encconv.h>
|
#include <wx/encconv.h>
|
||||||
|
#include <wx/listctrl.h>
|
||||||
|
#include <wx/mstream.h>
|
||||||
|
#include <wx/image.h>
|
||||||
|
#include <wx/imaglist.h>
|
||||||
|
|
||||||
#include "Platform.h"
|
#include "Platform.h"
|
||||||
#include "PlatWX.h"
|
#include "PlatWX.h"
|
||||||
@@ -213,42 +216,44 @@ public:
|
|||||||
SurfaceImpl();
|
SurfaceImpl();
|
||||||
~SurfaceImpl();
|
~SurfaceImpl();
|
||||||
|
|
||||||
void Init();
|
virtual void Init(WindowID wid);
|
||||||
void Init(SurfaceID sid);
|
virtual void Init(SurfaceID sid, WindowID wid);
|
||||||
void InitPixMap(int width, int height, Surface *surface_);
|
virtual void InitPixMap(int width, int height, Surface *surface_, WindowID wid);
|
||||||
|
|
||||||
void Release();
|
virtual void Release();
|
||||||
bool Initialised();
|
virtual bool Initialised();
|
||||||
void PenColour(ColourAllocated fore);
|
virtual void PenColour(ColourAllocated fore);
|
||||||
int LogPixelsY();
|
virtual int LogPixelsY();
|
||||||
int DeviceHeightFont(int points);
|
virtual int DeviceHeightFont(int points);
|
||||||
void MoveTo(int x_, int y_);
|
virtual void MoveTo(int x_, int y_);
|
||||||
void LineTo(int x_, int y_);
|
virtual void LineTo(int x_, int y_);
|
||||||
void Polygon(Point *pts, int npts, ColourAllocated fore, ColourAllocated back);
|
virtual void Polygon(Point *pts, int npts, ColourAllocated fore, ColourAllocated back);
|
||||||
void RectangleDraw(PRectangle rc, ColourAllocated fore, ColourAllocated back);
|
virtual void RectangleDraw(PRectangle rc, ColourAllocated fore, ColourAllocated back);
|
||||||
void FillRectangle(PRectangle rc, ColourAllocated back);
|
virtual void FillRectangle(PRectangle rc, ColourAllocated back);
|
||||||
void FillRectangle(PRectangle rc, Surface &surfacePattern);
|
virtual void FillRectangle(PRectangle rc, Surface &surfacePattern);
|
||||||
void RoundedRectangle(PRectangle rc, ColourAllocated fore, ColourAllocated back);
|
virtual void RoundedRectangle(PRectangle rc, ColourAllocated fore, ColourAllocated back);
|
||||||
void Ellipse(PRectangle rc, ColourAllocated fore, ColourAllocated back);
|
virtual void Ellipse(PRectangle rc, ColourAllocated fore, ColourAllocated back);
|
||||||
void Copy(PRectangle rc, Point from, Surface &surfaceSource);
|
virtual void Copy(PRectangle rc, Point from, Surface &surfaceSource);
|
||||||
|
|
||||||
void DrawTextNoClip(PRectangle rc, Font &font_, int ybase, const char *s, int len, ColourAllocated fore, ColourAllocated back);
|
virtual void DrawTextNoClip(PRectangle rc, Font &font_, int ybase, const char *s, int len, ColourAllocated fore, ColourAllocated back);
|
||||||
void DrawTextClipped(PRectangle rc, Font &font_, int ybase, const char *s, int len, ColourAllocated fore, ColourAllocated back);
|
virtual void DrawTextClipped(PRectangle rc, Font &font_, int ybase, const char *s, int len, ColourAllocated fore, ColourAllocated back);
|
||||||
void MeasureWidths(Font &font_, const char *s, int len, int *positions);
|
virtual void DrawTextTransparent(PRectangle rc, Font &font_, int ybase, const char *s, int len, ColourAllocated fore);
|
||||||
int WidthText(Font &font_, const char *s, int len);
|
virtual void MeasureWidths(Font &font_, const char *s, int len, int *positions);
|
||||||
int WidthChar(Font &font_, char ch);
|
virtual int WidthText(Font &font_, const char *s, int len);
|
||||||
int Ascent(Font &font_);
|
virtual int WidthChar(Font &font_, char ch);
|
||||||
int Descent(Font &font_);
|
virtual int Ascent(Font &font_);
|
||||||
int InternalLeading(Font &font_);
|
virtual int Descent(Font &font_);
|
||||||
int ExternalLeading(Font &font_);
|
virtual int InternalLeading(Font &font_);
|
||||||
int Height(Font &font_);
|
virtual int ExternalLeading(Font &font_);
|
||||||
int AverageCharWidth(Font &font_);
|
virtual int Height(Font &font_);
|
||||||
|
virtual int AverageCharWidth(Font &font_);
|
||||||
|
|
||||||
int SetPalette(Palette *pal, bool inBackGround);
|
virtual int SetPalette(Palette *pal, bool inBackGround);
|
||||||
void SetClip(PRectangle rc);
|
virtual void SetClip(PRectangle rc);
|
||||||
void FlushCachedState();
|
virtual void FlushCachedState();
|
||||||
|
|
||||||
void SetUnicodeMode(bool unicodeMode_);
|
virtual void SetUnicodeMode(bool unicodeMode_);
|
||||||
|
virtual void SetDBCSMode(int codePage);
|
||||||
|
|
||||||
void BrushColour(ColourAllocated back);
|
void BrushColour(ColourAllocated back);
|
||||||
void SetFont(Font &font_);
|
void SetFont(Font &font_);
|
||||||
@@ -265,6 +270,35 @@ SurfaceImpl::~SurfaceImpl() {
|
|||||||
Release();
|
Release();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SurfaceImpl::Init(WindowID wid) {
|
||||||
|
#if 0
|
||||||
|
Release();
|
||||||
|
hdc = new wxMemoryDC();
|
||||||
|
hdcOwned = true;
|
||||||
|
#else
|
||||||
|
// On Mac and GTK the DC is not really valid until it has a bitmap
|
||||||
|
// selected into it. So instead of just creating the DC with no bitmap,
|
||||||
|
// go ahead and give it one.
|
||||||
|
InitPixMap(1,1,NULL,wid);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
void SurfaceImpl::Init(SurfaceID hdc_, WindowID) {
|
||||||
|
Release();
|
||||||
|
hdc = (wxDC*)hdc_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SurfaceImpl::InitPixMap(int width, int height, Surface *surface_, WindowID) {
|
||||||
|
Release();
|
||||||
|
hdc = new wxMemoryDC();
|
||||||
|
hdcOwned = true;
|
||||||
|
if (width < 1) width = 1;
|
||||||
|
if (height < 1) height = 1;
|
||||||
|
bitmap = new wxBitmap(width, height);
|
||||||
|
((wxMemoryDC*)hdc)->SelectObject(*bitmap);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void SurfaceImpl::Release() {
|
void SurfaceImpl::Release() {
|
||||||
if (bitmap) {
|
if (bitmap) {
|
||||||
((wxMemoryDC*)hdc)->SelectObject(wxNullBitmap);
|
((wxMemoryDC*)hdc)->SelectObject(wxNullBitmap);
|
||||||
@@ -283,33 +317,6 @@ bool SurfaceImpl::Initialised() {
|
|||||||
return hdc != 0;
|
return hdc != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SurfaceImpl::Init() {
|
|
||||||
#if 0
|
|
||||||
Release();
|
|
||||||
hdc = new wxMemoryDC();
|
|
||||||
hdcOwned = true;
|
|
||||||
#else
|
|
||||||
// On Mac and GTK the DC is not really valid until it has a bitmap
|
|
||||||
// selected into it. So instead of just creating the DC with no bitmap,
|
|
||||||
// go ahead and give it one.
|
|
||||||
InitPixMap(1,1,NULL);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
void SurfaceImpl::Init(SurfaceID hdc_) {
|
|
||||||
Release();
|
|
||||||
hdc = (wxDC*)hdc_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void SurfaceImpl::InitPixMap(int width, int height, Surface *surface_) {
|
|
||||||
Release();
|
|
||||||
hdc = new wxMemoryDC();
|
|
||||||
hdcOwned = true;
|
|
||||||
if (width < 1) width = 1;
|
|
||||||
if (height < 1) height = 1;
|
|
||||||
bitmap = new wxBitmap(width, height);
|
|
||||||
((wxMemoryDC*)hdc)->SelectObject(*bitmap);
|
|
||||||
}
|
|
||||||
|
|
||||||
void SurfaceImpl::PenColour(ColourAllocated fore) {
|
void SurfaceImpl::PenColour(ColourAllocated fore) {
|
||||||
hdc->SetPen(wxPen(wxColourFromCA(fore), 1, wxSOLID));
|
hdc->SetPen(wxPen(wxColourFromCA(fore), 1, wxSOLID));
|
||||||
@@ -398,7 +405,7 @@ void SurfaceImpl::DrawTextNoClip(PRectangle rc, Font &font, int ybase,
|
|||||||
SetFont(font);
|
SetFont(font);
|
||||||
hdc->SetTextForeground(wxColourFromCA(fore));
|
hdc->SetTextForeground(wxColourFromCA(fore));
|
||||||
hdc->SetTextBackground(wxColourFromCA(back));
|
hdc->SetTextBackground(wxColourFromCA(back));
|
||||||
FillRectangle(rc, back);
|
//FillRectangle(rc, back);
|
||||||
|
|
||||||
// ybase is where the baseline should be, but wxWin uses the upper left
|
// ybase is where the baseline should be, but wxWin uses the upper left
|
||||||
// corner, so I need to calculate the real position for the text...
|
// corner, so I need to calculate the real position for the text...
|
||||||
@@ -411,21 +418,27 @@ void SurfaceImpl::DrawTextClipped(PRectangle rc, Font &font, int ybase,
|
|||||||
SetFont(font);
|
SetFont(font);
|
||||||
hdc->SetTextForeground(wxColourFromCA(fore));
|
hdc->SetTextForeground(wxColourFromCA(fore));
|
||||||
hdc->SetTextBackground(wxColourFromCA(back));
|
hdc->SetTextBackground(wxColourFromCA(back));
|
||||||
FillRectangle(rc, back);
|
//FillRectangle(rc, back);
|
||||||
hdc->SetClippingRegion(wxRectFromPRectangle(rc));
|
hdc->SetClippingRegion(wxRectFromPRectangle(rc));
|
||||||
|
|
||||||
// see comments above
|
// see comments above
|
||||||
hdc->DrawText(stc2wx(s, len), rc.left, ybase - font.ascent);
|
hdc->DrawText(stc2wx(s, len), rc.left, ybase - font.ascent);
|
||||||
hdc->DestroyClippingRegion();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int SurfaceImpl::WidthText(Font &font, const char *s, int len) {
|
|
||||||
SetFont(font);
|
|
||||||
int w;
|
|
||||||
int h;
|
|
||||||
|
|
||||||
hdc->GetTextExtent(stc2wx(s, len), &w, &h);
|
void SurfaceImpl::DrawTextTransparent(PRectangle rc, Font &font, int ybase,
|
||||||
return w;
|
const char *s, int len,
|
||||||
|
ColourAllocated fore) {
|
||||||
|
|
||||||
|
SetFont(font);
|
||||||
|
hdc->SetTextForeground(wxColourFromCA(fore));
|
||||||
|
hdc->SetBackgroundMode(wxTRANSPARENT);
|
||||||
|
|
||||||
|
// ybase is where the baseline should be, but wxWin uses the upper left
|
||||||
|
// corner, so I need to calculate the real position for the text...
|
||||||
|
hdc->DrawText(stc2wx(s, len), rc.left, ybase - font.ascent);
|
||||||
|
|
||||||
|
hdc->SetBackgroundMode(wxSOLID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -450,7 +463,7 @@ void SurfaceImpl::MeasureWidths(Font &font, const char *s, int len, int *positio
|
|||||||
// Instead of a running total, remeasure from the begining of the
|
// Instead of a running total, remeasure from the begining of the
|
||||||
// text for each character's position. This is because with AA fonts
|
// text for each character's position. This is because with AA fonts
|
||||||
// on OS X widths can be fractions of pixels wide when more than one
|
// on OS X widths can be fractions of pixels wide when more than one
|
||||||
// are drawn together, so the sum of all character widths is not necessariy
|
// are drawn together, so the sum of all character widths is not necessarily
|
||||||
// (and probably not) the same as the whole string width.
|
// (and probably not) the same as the whole string width.
|
||||||
int* tpos = new int[len];
|
int* tpos = new int[len];
|
||||||
size_t i;
|
size_t i;
|
||||||
@@ -491,6 +504,16 @@ void SurfaceImpl::MeasureWidths(Font &font, const char *s, int len, int *positio
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int SurfaceImpl::WidthText(Font &font, const char *s, int len) {
|
||||||
|
SetFont(font);
|
||||||
|
int w;
|
||||||
|
int h;
|
||||||
|
|
||||||
|
hdc->GetTextExtent(stc2wx(s, len), &w, &h);
|
||||||
|
return w;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
int SurfaceImpl::WidthChar(Font &font, char ch) {
|
int SurfaceImpl::WidthChar(Font &font, char ch) {
|
||||||
SetFont(font);
|
SetFont(font);
|
||||||
int w;
|
int w;
|
||||||
@@ -552,15 +575,13 @@ void SurfaceImpl::FlushCachedState() {
|
|||||||
|
|
||||||
void SurfaceImpl::SetUnicodeMode(bool unicodeMode_) {
|
void SurfaceImpl::SetUnicodeMode(bool unicodeMode_) {
|
||||||
unicodeMode=unicodeMode_;
|
unicodeMode=unicodeMode_;
|
||||||
#if wxUSE_UNICODE
|
|
||||||
wxASSERT_MSG(unicodeMode == wxUSE_UNICODE,
|
|
||||||
wxT("Only unicode may be used when wxUSE_UNICODE is on."));
|
|
||||||
#else
|
|
||||||
wxASSERT_MSG(unicodeMode == wxUSE_UNICODE,
|
|
||||||
wxT("Only non-unicode may be used when wxUSE_UNICODE is off."));
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SurfaceImpl::SetDBCSMode(int codePage) {
|
||||||
|
// dbcsMode = codePage == SC_CP_DBCS;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Surface *Surface::Allocate() {
|
Surface *Surface::Allocate() {
|
||||||
return new SurfaceImpl;
|
return new SurfaceImpl;
|
||||||
}
|
}
|
||||||
@@ -575,8 +596,10 @@ Window::~Window() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Window::Destroy() {
|
void Window::Destroy() {
|
||||||
if (id)
|
if (id) {
|
||||||
|
Show(FALSE);
|
||||||
GETWIN(id)->Destroy();
|
GETWIN(id)->Destroy();
|
||||||
|
}
|
||||||
id = 0;
|
id = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -585,6 +608,7 @@ bool Window::HasFocus() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
PRectangle Window::GetPosition() {
|
PRectangle Window::GetPosition() {
|
||||||
|
if (! id) return PRectangle();
|
||||||
wxRect rc(GETWIN(id)->GetPosition(), GETWIN(id)->GetSize());
|
wxRect rc(GETWIN(id)->GetPosition(), GETWIN(id)->GetSize());
|
||||||
return PRectangleFromwxRect(rc);
|
return PRectangleFromwxRect(rc);
|
||||||
}
|
}
|
||||||
@@ -599,6 +623,7 @@ void Window::SetPositionRelative(PRectangle rc, Window) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
PRectangle Window::GetClientPosition() {
|
PRectangle Window::GetClientPosition() {
|
||||||
|
if (! id) return PRectangle();
|
||||||
wxSize sz = GETWIN(id)->GetClientSize();
|
wxSize sz = GETWIN(id)->GetClientSize();
|
||||||
return PRectangle(0, 0, sz.x, sz.y);
|
return PRectangle(0, 0, sz.x, sz.y);
|
||||||
}
|
}
|
||||||
@@ -647,6 +672,8 @@ void Window::SetCursor(Cursor curs) {
|
|||||||
case cursorReverseArrow:
|
case cursorReverseArrow:
|
||||||
cursorId = wxCURSOR_RIGHT_ARROW;
|
cursorId = wxCURSOR_RIGHT_ARROW;
|
||||||
break;
|
break;
|
||||||
|
case cursorHand:
|
||||||
|
cursorId = wxCURSOR_HAND;
|
||||||
default:
|
default:
|
||||||
cursorId = wxCURSOR_ARROW;
|
cursorId = wxCURSOR_ARROW;
|
||||||
break;
|
break;
|
||||||
@@ -669,194 +696,347 @@ void Window::SetTitle(const char *s) {
|
|||||||
// Helper classes for ListBox
|
// Helper classes for ListBox
|
||||||
|
|
||||||
|
|
||||||
#if 1 // defined(__WXMAC__)
|
// This is a simple subclass of wxLIstView that just resets focus to the
|
||||||
class wxSTCListBoxWin : public wxListBox {
|
// parent when it gets it.
|
||||||
|
class wxSTCListBox : public wxListView {
|
||||||
public:
|
public:
|
||||||
wxSTCListBoxWin(wxWindow* parent, wxWindowID id)
|
wxSTCListBox(wxWindow* parent, wxWindowID id,
|
||||||
: wxListBox(parent, id, wxDefaultPosition, wxSize(0,0),
|
const wxPoint& pos, const wxSize& size,
|
||||||
0, NULL, wxLB_SINGLE | wxSIMPLE_BORDER) {
|
long style)
|
||||||
SetCursor(wxCursor(wxCURSOR_ARROW));
|
: wxListView(parent, id, pos, size, style)
|
||||||
Hide();
|
{}
|
||||||
}
|
|
||||||
|
|
||||||
void OnFocus(wxFocusEvent& event) {
|
void OnFocus(wxFocusEvent& event) {
|
||||||
GetParent()->SetFocus();
|
GetParent()->SetFocus();
|
||||||
event.Skip();
|
event.Skip();
|
||||||
}
|
}
|
||||||
|
|
||||||
wxListBox* GetLB() { return this; }
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
BEGIN_EVENT_TABLE(wxSTCListBox, wxListView)
|
||||||
BEGIN_EVENT_TABLE(wxSTCListBoxWin, wxListBox)
|
EVT_SET_FOCUS( wxSTCListBox::OnFocus)
|
||||||
EVT_SET_FOCUS(wxSTCListBoxWin::OnFocus)
|
|
||||||
END_EVENT_TABLE()
|
END_EVENT_TABLE()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
|
// A window to place the wxSTCListBox upon
|
||||||
class wxSTCListBox : public wxListBox {
|
class wxSTCListBoxWin : public wxWindow {
|
||||||
|
private:
|
||||||
|
wxListView* lv;
|
||||||
|
CallBackAction doubleClickAction;
|
||||||
|
void* doubleClickActionData;
|
||||||
public:
|
public:
|
||||||
wxSTCListBox(wxWindow* parent, wxWindowID id)
|
wxSTCListBoxWin(wxWindow* parent, wxWindowID id) :
|
||||||
: wxListBox(parent, id, wxDefaultPosition, wxDefaultSize,
|
wxWindow(parent, id, wxDefaultPosition, wxSize(0,0), wxNO_BORDER )
|
||||||
0, NULL, wxLB_SINGLE | wxSIMPLE_BORDER | wxWANTS_CHARS)
|
{
|
||||||
{}
|
|
||||||
|
|
||||||
void OnKeyDown(wxKeyEvent& event) {
|
SetBackgroundColour(*wxBLACK);
|
||||||
// Give the key events to the STC. It will then update
|
lv = new wxSTCListBox(this, id, wxDefaultPosition, wxDefaultSize,
|
||||||
// the listbox as needed.
|
wxLC_REPORT | wxLC_SINGLE_SEL | wxLC_NO_HEADER | wxNO_BORDER);
|
||||||
GetGrandParent()->GetEventHandler()->ProcessEvent(event);
|
lv->SetCursor(wxCursor(wxCURSOR_ARROW));
|
||||||
|
lv->InsertColumn(0, wxEmptyString);
|
||||||
|
lv->InsertColumn(1, wxEmptyString);
|
||||||
|
Hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
int IconWidth() {
|
||||||
DECLARE_EVENT_TABLE()
|
wxImageList* il = lv->GetImageList(wxIMAGE_LIST_SMALL);
|
||||||
};
|
if (il != NULL) {
|
||||||
|
int w, h;
|
||||||
BEGIN_EVENT_TABLE(wxSTCListBox, wxListBox)
|
il->GetSize(0, w, h);
|
||||||
EVT_KEY_DOWN(wxSTCListBox::OnKeyDown)
|
return w;
|
||||||
EVT_CHAR(wxSTCListBox::OnKeyDown)
|
}
|
||||||
END_EVENT_TABLE()
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void SetDoubleClickAction(CallBackAction action, void *data) {
|
||||||
|
doubleClickAction = action;
|
||||||
|
doubleClickActionData = data;
|
||||||
|
}
|
||||||
|
|
||||||
#undef wxSTC_USE_POPUP
|
|
||||||
#define wxSTC_USE_POPUP 0 // wxPopupWindow just doesn't work well in this case...
|
|
||||||
|
|
||||||
// A window to place the listbox upon. If wxPopupWindow is supported then
|
void OnFocus(wxFocusEvent& event) {
|
||||||
// that will be used so the listbox can extend beyond the client area of the
|
GetParent()->SetFocus();
|
||||||
// wxSTC if needed.
|
event.Skip();
|
||||||
#if wxUSE_POPUPWIN && wxSTC_USE_POPUP
|
}
|
||||||
#include <wx/popupwin.h>
|
|
||||||
#define wxSTCListBoxWinBase wxPopupWindow
|
|
||||||
#define param2 wxBORDER_NONE // popup's 2nd param is flags
|
|
||||||
#else
|
|
||||||
#define wxSTCListBoxWinBase wxWindow
|
|
||||||
#define param2 -1 // wxWindow's 2nd param is ID
|
|
||||||
#endif
|
|
||||||
|
|
||||||
class wxSTCListBoxWin : public wxSTCListBoxWinBase {
|
|
||||||
public:
|
|
||||||
wxSTCListBoxWin(wxWindow* parent, wxWindowID id)
|
|
||||||
: wxSTCListBoxWinBase(parent, param2) {
|
|
||||||
lb = new wxSTCListBox(this, id);
|
|
||||||
lb->SetCursor(wxCursor(wxCURSOR_ARROW));
|
|
||||||
lb->SetFocus();
|
|
||||||
}
|
|
||||||
|
|
||||||
void OnSize(wxSizeEvent& event) {
|
void OnSize(wxSizeEvent& event) {
|
||||||
lb->SetSize(GetSize());
|
// resize the child, leaving a 1 pixel border
|
||||||
|
wxSize sz = GetClientSize();
|
||||||
|
lv->SetSize(1, 1, sz.x-2, sz.y-2);
|
||||||
|
// reset the column widths
|
||||||
|
lv->SetColumnWidth(0, IconWidth()+4);
|
||||||
|
lv->SetColumnWidth(1, sz.x - 2 - lv->GetColumnWidth(0) -
|
||||||
|
wxSystemSettings::GetMetric(wxSYS_VSCROLL_X));
|
||||||
|
event.Skip();
|
||||||
}
|
}
|
||||||
|
|
||||||
wxListBox* GetLB() { return lb; }
|
void OnActivate(wxListEvent& event) {
|
||||||
|
doubleClickAction(doubleClickActionData);
|
||||||
#if wxUSE_POPUPWIN && wxSTC_USE_POPUP
|
|
||||||
virtual void DoSetSize(int x, int y,
|
|
||||||
int width, int height,
|
|
||||||
int sizeFlags = wxSIZE_AUTO) {
|
|
||||||
if (x != -1)
|
|
||||||
GetParent()->ClientToScreen(&x, NULL);
|
|
||||||
if (y != -1)
|
|
||||||
GetParent()->ClientToScreen(NULL, &y);
|
|
||||||
wxSTCListBoxWinBase::DoSetSize(x, y, width, height, sizeFlags);
|
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
wxListView* GetLB() { return lv; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
wxSTCListBox* lb;
|
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
};
|
};
|
||||||
|
|
||||||
BEGIN_EVENT_TABLE(wxSTCListBoxWin, wxSTCListBoxWinBase)
|
|
||||||
EVT_SIZE(wxSTCListBoxWin::OnSize)
|
|
||||||
END_EVENT_TABLE()
|
|
||||||
#endif
|
|
||||||
|
|
||||||
inline wxListBox* GETLB(WindowID win) {
|
BEGIN_EVENT_TABLE(wxSTCListBoxWin, wxWindow)
|
||||||
return (((wxSTCListBoxWin*)win)->GetLB());
|
EVT_SET_FOCUS ( wxSTCListBoxWin::OnFocus)
|
||||||
|
EVT_SIZE ( wxSTCListBoxWin::OnSize)
|
||||||
|
EVT_LIST_ITEM_ACTIVATED(-1, wxSTCListBoxWin::OnActivate)
|
||||||
|
END_EVENT_TABLE()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
inline wxSTCListBoxWin* GETLBW(WindowID win) {
|
||||||
|
return ((wxSTCListBoxWin*)win);
|
||||||
|
}
|
||||||
|
|
||||||
|
inline wxListView* GETLB(WindowID win) {
|
||||||
|
return GETLBW(win)->GetLB();
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
|
class ListBoxImpl : public ListBox {
|
||||||
|
private:
|
||||||
|
int lineHeight;
|
||||||
|
bool unicodeMode;
|
||||||
|
int desiredVisibleRows;
|
||||||
|
int aveCharWidth;
|
||||||
|
int maxStrWidth;
|
||||||
|
wxImageList* imgList;
|
||||||
|
wxArrayInt* imgTypeMap;
|
||||||
|
|
||||||
|
public:
|
||||||
|
ListBoxImpl();
|
||||||
|
~ListBoxImpl();
|
||||||
|
|
||||||
|
virtual void SetFont(Font &font);
|
||||||
|
virtual void Create(Window &parent, int ctrlID, int lineHeight_, bool unicodeMode_);
|
||||||
|
virtual void SetAverageCharWidth(int width);
|
||||||
|
virtual void SetVisibleRows(int rows);
|
||||||
|
virtual PRectangle GetDesiredRect();
|
||||||
|
virtual int CaretFromEdge();
|
||||||
|
virtual void Clear();
|
||||||
|
virtual void Append(char *s, int type = -1);
|
||||||
|
virtual int Length();
|
||||||
|
virtual void Select(int n);
|
||||||
|
virtual int GetSelection();
|
||||||
|
virtual int Find(const char *prefix);
|
||||||
|
virtual void GetValue(int n, char *value, int len);
|
||||||
|
virtual void Sort();
|
||||||
|
virtual void RegisterImage(int type, const char *xpm_data);
|
||||||
|
virtual void ClearRegisteredImages();
|
||||||
|
virtual void SetDoubleClickAction(CallBackAction, void *);
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
ListBoxImpl::ListBoxImpl()
|
||||||
|
: lineHeight(10), unicodeMode(false),
|
||||||
|
desiredVisibleRows(5), aveCharWidth(8), maxStrWidth(0),
|
||||||
|
imgList(NULL), imgTypeMap(NULL)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
ListBoxImpl::~ListBoxImpl() {
|
||||||
|
if (imgList) {
|
||||||
|
delete imgList;
|
||||||
|
imgList = NULL;
|
||||||
|
}
|
||||||
|
if (imgTypeMap) {
|
||||||
|
delete imgTypeMap;
|
||||||
|
imgTypeMap = NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void ListBoxImpl::SetFont(Font &font) {
|
||||||
|
GETLB(id)->SetFont(*((wxFont*)font.GetID()));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void ListBoxImpl::Create(Window &parent, int ctrlID, int lineHeight_, bool unicodeMode_) {
|
||||||
|
lineHeight = lineHeight_;
|
||||||
|
unicodeMode = unicodeMode_;
|
||||||
|
maxStrWidth = 0;
|
||||||
|
id = new wxSTCListBoxWin(GETWIN(parent.GetID()), ctrlID);
|
||||||
|
if (imgList != NULL)
|
||||||
|
GETLB(id)->SetImageList(imgList, wxIMAGE_LIST_SMALL);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void ListBoxImpl::SetAverageCharWidth(int width) {
|
||||||
|
aveCharWidth = width;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void ListBoxImpl::SetVisibleRows(int rows) {
|
||||||
|
desiredVisibleRows = rows;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
PRectangle ListBoxImpl::GetDesiredRect() {
|
||||||
|
// wxListCtrl doesn't have a DoGetBestSize, so instead we kept track of
|
||||||
|
// the max size in Append and calculate it here...
|
||||||
|
int maxw = maxStrWidth;
|
||||||
|
int maxh = 0;
|
||||||
|
|
||||||
|
// give it a default if there are no lines, and/or add a bit more
|
||||||
|
if (maxw == 0) maxw = 100;
|
||||||
|
maxw += aveCharWidth * 3 +
|
||||||
|
GETLBW(id)->IconWidth() + wxSystemSettings::GetMetric(wxSYS_VSCROLL_X);
|
||||||
|
if (maxw > 350)
|
||||||
|
maxw = 350;
|
||||||
|
|
||||||
|
// estimate a desired height
|
||||||
|
int count = GETLB(id)->GetItemCount();
|
||||||
|
if (count) {
|
||||||
|
wxRect rect;
|
||||||
|
GETLB(id)->GetItemRect(0, rect);
|
||||||
|
maxh = count * rect.GetHeight();
|
||||||
|
if (maxh > 140) // TODO: Use desiredVisibleRows??
|
||||||
|
maxh = 140;
|
||||||
|
|
||||||
|
// Try to make the size an exact multiple of some number of lines
|
||||||
|
int lines = maxh / rect.GetHeight();
|
||||||
|
maxh = (lines + 1) * rect.GetHeight() + 2;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
maxh = 100;
|
||||||
|
|
||||||
|
PRectangle rc;
|
||||||
|
rc.top = 0;
|
||||||
|
rc.left = 0;
|
||||||
|
rc.right = maxw;
|
||||||
|
rc.bottom = maxh;
|
||||||
|
return rc;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int ListBoxImpl::CaretFromEdge() {
|
||||||
|
return 4 + GETLBW(id)->IconWidth();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void ListBoxImpl::Clear() {
|
||||||
|
GETLB(id)->DeleteAllItems();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void ListBoxImpl::Append(char *s, int type) {
|
||||||
|
wxString text = stc2wx(s);
|
||||||
|
long count = GETLB(id)->GetItemCount();
|
||||||
|
long itemID = GETLB(id)->InsertItem(count, wxEmptyString);
|
||||||
|
GETLB(id)->SetItem(itemID, 1, text);
|
||||||
|
int itemWidth = 0;
|
||||||
|
GETLB(id)->GetTextExtent(text, &itemWidth, NULL);
|
||||||
|
maxStrWidth = wxMax(maxStrWidth, itemWidth);
|
||||||
|
if (type != -1) {
|
||||||
|
wxCHECK_RET(imgTypeMap, wxT("Unexpected NULL imgTypeMap"));
|
||||||
|
long idx = imgTypeMap->Item(type);
|
||||||
|
GETLB(id)->SetItemImage(itemID, idx, idx);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int ListBoxImpl::Length() {
|
||||||
|
return GETLB(id)->GetItemCount();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void ListBoxImpl::Select(int n) {
|
||||||
|
bool select = TRUE;
|
||||||
|
if (n == -1) {
|
||||||
|
n = 0;
|
||||||
|
select = FALSE;
|
||||||
|
}
|
||||||
|
GETLB(id)->Focus(n);
|
||||||
|
GETLB(id)->Select(n, select);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int ListBoxImpl::GetSelection() {
|
||||||
|
return GETLB(id)->GetFirstSelected();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int ListBoxImpl::Find(const char *prefix) {
|
||||||
|
// No longer used
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void ListBoxImpl::GetValue(int n, char *value, int len) {
|
||||||
|
wxListItem item;
|
||||||
|
item.SetId(n);
|
||||||
|
item.SetColumn(1);
|
||||||
|
item.SetMask(wxLIST_MASK_TEXT);
|
||||||
|
GETLB(id)->GetItem(item);
|
||||||
|
strncpy(value, wx2stc(item.GetText()), len);
|
||||||
|
value[len-1] = '\0';
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListBoxImpl::Sort() {
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void ListBoxImpl::RegisterImage(int type, const char *xpm_data) {
|
||||||
|
wxMemoryInputStream stream(xpm_data, strlen(xpm_data)+1);
|
||||||
|
wxBitmap bmp(wxImage(stream, wxBITMAP_TYPE_XPM));
|
||||||
|
|
||||||
|
if (! imgList) {
|
||||||
|
// assumes all images are the same size
|
||||||
|
imgList = new wxImageList(bmp.GetWidth(), bmp.GetHeight(), TRUE);
|
||||||
|
imgTypeMap = new wxArrayInt;
|
||||||
|
}
|
||||||
|
|
||||||
|
int idx = imgList->Add(bmp);
|
||||||
|
|
||||||
|
// do we need to extend the mapping array?
|
||||||
|
wxArrayInt& itm = *imgTypeMap;
|
||||||
|
if ( itm.GetCount() < type+1)
|
||||||
|
itm.Add(-1, type - itm.GetCount() + 1);
|
||||||
|
|
||||||
|
// Add an item that maps type to the image index
|
||||||
|
itm[type] = idx;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListBoxImpl::ClearRegisteredImages() {
|
||||||
|
if (imgList) {
|
||||||
|
delete imgList;
|
||||||
|
imgList = NULL;
|
||||||
|
}
|
||||||
|
if (imgTypeMap) {
|
||||||
|
delete imgTypeMap;
|
||||||
|
imgTypeMap = NULL;
|
||||||
|
}
|
||||||
|
if (id)
|
||||||
|
GETLB(id)->SetImageList(NULL, wxIMAGE_LIST_SMALL);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void ListBoxImpl::SetDoubleClickAction(CallBackAction action, void *data) {
|
||||||
|
GETLBW(id)->SetDoubleClickAction(action, data);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ListBox::ListBox() {
|
ListBox::ListBox() {
|
||||||
}
|
}
|
||||||
|
|
||||||
ListBox::~ListBox() {
|
ListBox::~ListBox() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListBox::Create(Window &parent, int ctrlID) {
|
ListBox *ListBox::Allocate() {
|
||||||
id = new wxSTCListBoxWin(GETWIN(parent.GetID()), ctrlID);
|
return new ListBoxImpl();
|
||||||
}
|
|
||||||
|
|
||||||
void ListBox::SetVisibleRows(int rows) {
|
|
||||||
desiredVisibleRows = rows;
|
|
||||||
}
|
|
||||||
|
|
||||||
PRectangle ListBox::GetDesiredRect() {
|
|
||||||
wxSize sz = GETLB(id)->GetBestSize();
|
|
||||||
PRectangle rc;
|
|
||||||
rc.top = 0;
|
|
||||||
rc.left = 0;
|
|
||||||
if (sz.x > 400)
|
|
||||||
sz.x = 400;
|
|
||||||
if (sz.y > 140) // TODO: Use desiredVisibleRows??
|
|
||||||
sz.y = 140;
|
|
||||||
rc.right = sz.x;
|
|
||||||
rc.bottom = sz.y;
|
|
||||||
return rc;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ListBox::SetAverageCharWidth(int width) {
|
|
||||||
aveCharWidth = width;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ListBox::SetFont(Font &font) {
|
|
||||||
GETLB(id)->SetFont(*((wxFont*)font.GetID()));
|
|
||||||
}
|
|
||||||
|
|
||||||
void ListBox::Clear() {
|
|
||||||
GETLB(id)->Clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
void ListBox::Append(char *s) {
|
|
||||||
GETLB(id)->Append(stc2wx(s));
|
|
||||||
}
|
|
||||||
|
|
||||||
int ListBox::Length() {
|
|
||||||
return GETLB(id)->GetCount();
|
|
||||||
}
|
|
||||||
|
|
||||||
void ListBox::Select(int n) {
|
|
||||||
GETLB(id)->SetSelection(n);
|
|
||||||
#ifdef __WXGTK__
|
|
||||||
if (n > 4)
|
|
||||||
n = n - 4;
|
|
||||||
else
|
|
||||||
n = 0;
|
|
||||||
GETLB(id)->SetFirstItem(n);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
int ListBox::GetSelection() {
|
|
||||||
return GETLB(id)->GetSelection();
|
|
||||||
}
|
|
||||||
|
|
||||||
int ListBox::Find(const char *prefix) {
|
|
||||||
// No longer used
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ListBox::GetValue(int n, char *value, int len) {
|
|
||||||
wxString text = GETLB(id)->GetString(n);
|
|
||||||
strncpy(value, wx2stc(text), len);
|
|
||||||
value[len-1] = '\0';
|
|
||||||
}
|
|
||||||
|
|
||||||
void ListBox::Sort() {
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
@@ -901,13 +1081,16 @@ const char *Platform::DefaultFont() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int Platform::DefaultFontSize() {
|
int Platform::DefaultFontSize() {
|
||||||
return 8;
|
return wxNORMAL_FONT->GetPointSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int Platform::DoubleClickTime() {
|
unsigned int Platform::DoubleClickTime() {
|
||||||
return 500; // **** ::GetDoubleClickTime();
|
return 500; // **** ::GetDoubleClickTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Platform::MouseButtonBounce() {
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
void Platform::DebugDisplay(const char *s) {
|
void Platform::DebugDisplay(const char *s) {
|
||||||
wxLogDebug(stc2wx(s));
|
wxLogDebug(stc2wx(s));
|
||||||
}
|
}
|
||||||
@@ -1009,6 +1192,13 @@ bool Platform::IsDBCSLeadByte(int codePage, char ch) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int Platform::DBCSCharLength(int codePage, const char *s) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int Platform::DBCSCharMaxLength() {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
@@ -67,26 +67,28 @@ void wxSTCDropTarget::OnLeave() {
|
|||||||
#define param2 wxBORDER_NONE // popup's 2nd param is flags
|
#define param2 wxBORDER_NONE // popup's 2nd param is flags
|
||||||
#else
|
#else
|
||||||
#define wxSTCCallTipBase wxWindow
|
#define wxSTCCallTipBase wxWindow
|
||||||
#define param2 -1 // wxWindows 2nd param is ID
|
#define param2 -1 // wxWindow's 2nd param is ID
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class wxSTCCallTip : public wxSTCCallTipBase {
|
class wxSTCCallTip : public wxSTCCallTipBase {
|
||||||
public:
|
public:
|
||||||
wxSTCCallTip(wxWindow* parent, CallTip* ct)
|
wxSTCCallTip(wxWindow* parent, CallTip* ct, ScintillaWX* swx)
|
||||||
: wxSTCCallTipBase(parent, param2)
|
: wxSTCCallTipBase(parent, param2),
|
||||||
|
m_ct(ct), m_swx(swx)
|
||||||
{
|
{
|
||||||
m_ct = ct;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
~wxSTCCallTip() {
|
~wxSTCCallTip() {
|
||||||
if (HasCapture()) ReleaseMouse();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool AcceptsFocus() const { return FALSE; }
|
||||||
|
|
||||||
void OnPaint(wxPaintEvent& evt) {
|
void OnPaint(wxPaintEvent& evt) {
|
||||||
wxPaintDC dc(this);
|
wxPaintDC dc(this);
|
||||||
Surface* surfaceWindow = Surface::Allocate();
|
Surface* surfaceWindow = Surface::Allocate();
|
||||||
surfaceWindow->Init(&dc);
|
surfaceWindow->Init(&dc, m_ct->wDraw.GetID());
|
||||||
m_ct->PaintCT(surfaceWindow);
|
m_ct->PaintCT(surfaceWindow);
|
||||||
|
surfaceWindow->Release();
|
||||||
delete surfaceWindow;
|
delete surfaceWindow;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -95,6 +97,13 @@ public:
|
|||||||
event.Skip();
|
event.Skip();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void OnLeftDown(wxMouseEvent& event) {
|
||||||
|
wxPoint pt = event.GetPosition();
|
||||||
|
Point p(pt.x, pt.y);
|
||||||
|
m_ct->MouseClick(p);
|
||||||
|
m_swx->CallTipClick();
|
||||||
|
}
|
||||||
|
|
||||||
#if wxUSE_POPUPWIN && wxSTC_USE_POPUP
|
#if wxUSE_POPUPWIN && wxSTC_USE_POPUP
|
||||||
virtual void DoSetSize(int x, int y,
|
virtual void DoSetSize(int x, int y,
|
||||||
int width, int height,
|
int width, int height,
|
||||||
@@ -105,32 +114,18 @@ public:
|
|||||||
GetParent()->ClientToScreen(NULL, &y);
|
GetParent()->ClientToScreen(NULL, &y);
|
||||||
wxSTCCallTipBase::DoSetSize(x, y, width, height, sizeFlags);
|
wxSTCCallTipBase::DoSetSize(x, y, width, height, sizeFlags);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool Show( bool show = TRUE ) {
|
|
||||||
bool retval = wxSTCCallTipBase::Show(show);
|
|
||||||
if (show)
|
|
||||||
CaptureMouse();
|
|
||||||
else
|
|
||||||
if (HasCapture()) ReleaseMouse();
|
|
||||||
return retval;
|
|
||||||
}
|
|
||||||
|
|
||||||
void OnLeftDown(wxMouseEvent& ) {
|
|
||||||
Show(FALSE);
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
private:
|
private:
|
||||||
CallTip* m_ct;
|
CallTip* m_ct;
|
||||||
|
ScintillaWX* m_swx;
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
};
|
};
|
||||||
|
|
||||||
BEGIN_EVENT_TABLE(wxSTCCallTip, wxSTCCallTipBase)
|
BEGIN_EVENT_TABLE(wxSTCCallTip, wxSTCCallTipBase)
|
||||||
EVT_PAINT(wxSTCCallTip::OnPaint)
|
EVT_PAINT(wxSTCCallTip::OnPaint)
|
||||||
EVT_SET_FOCUS(wxSTCCallTip::OnFocus)
|
EVT_SET_FOCUS(wxSTCCallTip::OnFocus)
|
||||||
#if wxUSE_POPUPWIN && wxSTC_USE_POPUP
|
|
||||||
EVT_LEFT_DOWN(wxSTCCallTip::OnLeftDown)
|
EVT_LEFT_DOWN(wxSTCCallTip::OnLeftDown)
|
||||||
#endif
|
|
||||||
END_EVENT_TABLE()
|
END_EVENT_TABLE()
|
||||||
|
|
||||||
|
|
||||||
@@ -258,18 +253,23 @@ void ScintillaWX::SetHorizontalScrollPos() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const int H_SCROLL_STEP = 20;
|
const int H_SCROLL_STEP = 20;
|
||||||
|
|
||||||
bool ScintillaWX::ModifyScrollBars(int nMax, int nPage) {
|
bool ScintillaWX::ModifyScrollBars(int nMax, int nPage) {
|
||||||
bool modified = false;
|
bool modified = false;
|
||||||
|
|
||||||
|
int vertEnd = nMax;
|
||||||
|
if (!verticalScrollBarVisible)
|
||||||
|
vertEnd = 0;
|
||||||
|
|
||||||
// Check the vertical scrollbar
|
// Check the vertical scrollbar
|
||||||
if (stc->m_vScrollBar == NULL) { // Use built-in scrollbar
|
if (stc->m_vScrollBar == NULL) { // Use built-in scrollbar
|
||||||
int sbMax = stc->GetScrollRange(wxVERTICAL);
|
int sbMax = stc->GetScrollRange(wxVERTICAL);
|
||||||
int sbThumb = stc->GetScrollThumb(wxVERTICAL);
|
int sbThumb = stc->GetScrollThumb(wxVERTICAL);
|
||||||
int sbPos = stc->GetScrollPos(wxVERTICAL);
|
int sbPos = stc->GetScrollPos(wxVERTICAL);
|
||||||
if (sbMax != nMax || sbThumb != nPage) {
|
if (sbMax != vertEnd || sbThumb != nPage) {
|
||||||
stc->SetScrollbar(wxVERTICAL, sbPos, nPage, nMax+1);
|
stc->SetScrollbar(wxVERTICAL, sbPos, nPage, vertEnd+1);
|
||||||
modified = true;
|
modified = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -277,8 +277,8 @@ bool ScintillaWX::ModifyScrollBars(int nMax, int nPage) {
|
|||||||
int sbMax = stc->m_vScrollBar->GetRange();
|
int sbMax = stc->m_vScrollBar->GetRange();
|
||||||
int sbPage = stc->m_vScrollBar->GetPageSize();
|
int sbPage = stc->m_vScrollBar->GetPageSize();
|
||||||
int sbPos = stc->m_vScrollBar->GetThumbPosition();
|
int sbPos = stc->m_vScrollBar->GetThumbPosition();
|
||||||
if (sbMax != nMax || sbPage != nPage) {
|
if (sbMax != vertEnd || sbPage != nPage) {
|
||||||
stc->m_vScrollBar->SetScrollbar(sbPos, nPage, nMax+1, nPage);
|
stc->m_vScrollBar->SetScrollbar(sbPos, nPage, vertEnd+1, nPage);
|
||||||
modified = true;
|
modified = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -298,7 +298,7 @@ bool ScintillaWX::ModifyScrollBars(int nMax, int nPage) {
|
|||||||
int sbThumb = stc->GetScrollThumb(wxHORIZONTAL);
|
int sbThumb = stc->GetScrollThumb(wxHORIZONTAL);
|
||||||
int sbPos = stc->GetScrollPos(wxHORIZONTAL);
|
int sbPos = stc->GetScrollPos(wxHORIZONTAL);
|
||||||
if ((sbMax != horizEnd) || (sbThumb != pageWidth) || (sbPos != 0)) {
|
if ((sbMax != horizEnd) || (sbThumb != pageWidth) || (sbPos != 0)) {
|
||||||
stc->SetScrollbar(wxHORIZONTAL, 0, pageWidth, horizEnd);
|
stc->SetScrollbar(wxHORIZONTAL, sbPos, pageWidth, horizEnd);
|
||||||
modified = true;
|
modified = true;
|
||||||
if (scrollWidth < pageWidth) {
|
if (scrollWidth < pageWidth) {
|
||||||
HorizontalScrollTo(0);
|
HorizontalScrollTo(0);
|
||||||
@@ -310,7 +310,7 @@ bool ScintillaWX::ModifyScrollBars(int nMax, int nPage) {
|
|||||||
int sbThumb = stc->m_hScrollBar->GetPageSize();
|
int sbThumb = stc->m_hScrollBar->GetPageSize();
|
||||||
int sbPos = stc->m_hScrollBar->GetThumbPosition();
|
int sbPos = stc->m_hScrollBar->GetThumbPosition();
|
||||||
if ((sbMax != horizEnd) || (sbThumb != pageWidth) || (sbPos != 0)) {
|
if ((sbMax != horizEnd) || (sbThumb != pageWidth) || (sbPos != 0)) {
|
||||||
stc->m_hScrollBar->SetScrollbar(0, pageWidth, horizEnd, pageWidth);
|
stc->m_hScrollBar->SetScrollbar(sbPos, pageWidth, horizEnd, pageWidth);
|
||||||
modified = true;
|
modified = true;
|
||||||
if (scrollWidth < pageWidth) {
|
if (scrollWidth < pageWidth) {
|
||||||
HorizontalScrollTo(0);
|
HorizontalScrollTo(0);
|
||||||
@@ -376,21 +376,25 @@ bool ScintillaWX::CanPaste() {
|
|||||||
bool canPaste = FALSE;
|
bool canPaste = FALSE;
|
||||||
bool didOpen;
|
bool didOpen;
|
||||||
|
|
||||||
if ( (didOpen = !wxTheClipboard->IsOpened()) )
|
if (Editor::CanPaste()) {
|
||||||
wxTheClipboard->Open();
|
if ( (didOpen = !wxTheClipboard->IsOpened()) )
|
||||||
|
wxTheClipboard->Open();
|
||||||
|
|
||||||
if (wxTheClipboard->IsOpened()) {
|
if (wxTheClipboard->IsOpened()) {
|
||||||
wxTheClipboard->UsePrimarySelection(FALSE);
|
wxTheClipboard->UsePrimarySelection(FALSE);
|
||||||
canPaste = wxTheClipboard->IsSupported(wxUSE_UNICODE ? wxDF_UNICODETEXT : wxDF_TEXT);
|
canPaste = wxTheClipboard->IsSupported(wxUSE_UNICODE ? wxDF_UNICODETEXT : wxDF_TEXT);
|
||||||
if (didOpen)
|
if (didOpen)
|
||||||
wxTheClipboard->Close();
|
wxTheClipboard->Close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return canPaste;
|
return canPaste;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScintillaWX::CreateCallTipWindow(PRectangle) {
|
void ScintillaWX::CreateCallTipWindow(PRectangle) {
|
||||||
ct.wCallTip = new wxSTCCallTip(stc, &ct);
|
if (! ct.wCallTip.Created() ) {
|
||||||
ct.wDraw = ct.wCallTip;
|
ct.wCallTip = new wxSTCCallTip(stc, &ct, this);
|
||||||
|
ct.wDraw = ct.wCallTip;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -438,52 +442,38 @@ long ScintillaWX::WndProc(unsigned int iMessage, unsigned long wParam, long lPar
|
|||||||
switch (iMessage) {
|
switch (iMessage) {
|
||||||
case SCI_CALLTIPSHOW: {
|
case SCI_CALLTIPSHOW: {
|
||||||
// NOTE: This is copied here from scintilla/src/ScintillaBase.cxx
|
// NOTE: This is copied here from scintilla/src/ScintillaBase.cxx
|
||||||
// because of the little tweak that needs done below. When updating
|
// because of the little tweak that needs done below for wxGTK.
|
||||||
// new versions double check that this is still needed, and that any
|
// When updating new versions double check that this is still
|
||||||
// new code there is copied here too.
|
// needed, and that any new code there is copied here too.
|
||||||
|
Point pt = LocationFromPosition(wParam);
|
||||||
|
char* defn = reinterpret_cast<char *>(lParam);
|
||||||
AutoCompleteCancel();
|
AutoCompleteCancel();
|
||||||
if (!ct.wCallTip.Created()) {
|
pt.y += vs.lineHeight;
|
||||||
Point pt = LocationFromPosition(wParam);
|
PRectangle rc = ct.CallTipStart(currentPos, pt,
|
||||||
pt.y += vs.lineHeight;
|
defn,
|
||||||
PRectangle rc = ct.CallTipStart(currentPos, pt,
|
vs.styles[STYLE_DEFAULT].fontName,
|
||||||
reinterpret_cast<char *>(lParam),
|
vs.styles[STYLE_DEFAULT].sizeZoomed,
|
||||||
vs.styles[STYLE_DEFAULT].fontName,
|
IsUnicodeMode(),
|
||||||
vs.styles[STYLE_DEFAULT].sizeZoomed,
|
wMain);
|
||||||
IsUnicodeMode());
|
// If the call-tip window would be out of the client
|
||||||
// If the call-tip window would be out of the client
|
// space, adjust so it displays above the text.
|
||||||
// space, adjust so it displays above the text.
|
PRectangle rcClient = GetClientRectangle();
|
||||||
PRectangle rcClient = GetClientRectangle();
|
if (rc.bottom > rcClient.bottom) {
|
||||||
if (rc.bottom > rcClient.bottom) {
|
|
||||||
#ifdef __WXGTK__
|
#ifdef __WXGTK__
|
||||||
int offset = int(vs.lineHeight * 1.25) + rc.Height();
|
int offset = int(vs.lineHeight * 1.25) + rc.Height();
|
||||||
#else
|
#else
|
||||||
int offset = vs.lineHeight + rc.Height();
|
int offset = vs.lineHeight + rc.Height();
|
||||||
#endif
|
#endif
|
||||||
rc.top -= offset;
|
rc.top -= offset;
|
||||||
rc.bottom -= offset;
|
rc.bottom -= offset;
|
||||||
}
|
|
||||||
// Now display the window.
|
|
||||||
CreateCallTipWindow(rc);
|
|
||||||
ct.wCallTip.SetPositionRelative(rc, wMain);
|
|
||||||
ct.wCallTip.Show();
|
|
||||||
}
|
}
|
||||||
|
// Now display the window.
|
||||||
|
CreateCallTipWindow(rc);
|
||||||
|
ct.wCallTip.SetPositionRelative(rc, wMain);
|
||||||
|
ct.wCallTip.Show();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case SCI_SETCARETWIDTH:
|
|
||||||
// NOTE: Allows a caet width of zero. This one has been added to
|
|
||||||
// Scintilla CVS so it can be removed from here when we update to
|
|
||||||
// version 1.50.
|
|
||||||
if (wParam <= 0)
|
|
||||||
vs.caretWidth = 0;
|
|
||||||
else if (wParam >= 3)
|
|
||||||
vs.caretWidth = 3;
|
|
||||||
else
|
|
||||||
vs.caretWidth = wParam;
|
|
||||||
InvalidateStyleRedraw();
|
|
||||||
break;
|
|
||||||
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return ScintillaBase::WndProc(iMessage, wParam, lParam);
|
return ScintillaBase::WndProc(iMessage, wParam, lParam);
|
||||||
}
|
}
|
||||||
@@ -499,22 +489,22 @@ void ScintillaWX::DoPaint(wxDC* dc, wxRect rect) {
|
|||||||
|
|
||||||
paintState = painting;
|
paintState = painting;
|
||||||
Surface* surfaceWindow = Surface::Allocate();
|
Surface* surfaceWindow = Surface::Allocate();
|
||||||
surfaceWindow->Init(dc);
|
surfaceWindow->Init(dc, wMain.GetID());
|
||||||
PRectangle rcPaint = PRectangleFromwxRect(rect);
|
rcPaint = PRectangleFromwxRect(rect);
|
||||||
|
PRectangle rcClient = GetClientRectangle();
|
||||||
|
paintingAllText = rcPaint.Contains(rcClient);
|
||||||
|
|
||||||
dc->BeginDrawing();
|
dc->BeginDrawing();
|
||||||
|
ClipChildren(*dc, rcPaint);
|
||||||
Paint(surfaceWindow, rcPaint);
|
Paint(surfaceWindow, rcPaint);
|
||||||
dc->EndDrawing();
|
dc->EndDrawing();
|
||||||
|
|
||||||
delete surfaceWindow;
|
delete surfaceWindow;
|
||||||
if (paintState == paintAbandoned) {
|
if (paintState == paintAbandoned) {
|
||||||
// Painting area was insufficient to cover new styling or brace highlight positions
|
// Painting area was insufficient to cover new styling or brace highlight positions
|
||||||
FullPaint();
|
FullPaint();
|
||||||
}
|
}
|
||||||
paintState = notPainting;
|
paintState = notPainting;
|
||||||
#ifdef __WXGTK__
|
|
||||||
// On wxGTK the editor window paints can overwrite the listbox...
|
|
||||||
if (ac.Active())
|
|
||||||
((wxWindow*)ac.lb.GetID())->Refresh(TRUE);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -791,16 +781,18 @@ void ScintillaWX::DoDragLeave() {
|
|||||||
// Redraw all of text area. This paint will not be abandoned.
|
// Redraw all of text area. This paint will not be abandoned.
|
||||||
void ScintillaWX::FullPaint() {
|
void ScintillaWX::FullPaint() {
|
||||||
paintState = painting;
|
paintState = painting;
|
||||||
rcPaint = GetTextRectangle();
|
rcPaint = GetClientRectangle();
|
||||||
paintingAllText = true;
|
paintingAllText = true;
|
||||||
wxClientDC dc(stc);
|
wxClientDC dc(stc);
|
||||||
Surface* surfaceWindow = Surface::Allocate();
|
Surface* surfaceWindow = Surface::Allocate();
|
||||||
surfaceWindow->Init(&dc);
|
surfaceWindow->Init(&dc, wMain.GetID());
|
||||||
|
|
||||||
|
dc.BeginDrawing();
|
||||||
|
ClipChildren(dc, rcPaint);
|
||||||
Paint(surfaceWindow, rcPaint);
|
Paint(surfaceWindow, rcPaint);
|
||||||
|
dc.EndDrawing();
|
||||||
|
|
||||||
delete surfaceWindow;
|
delete surfaceWindow;
|
||||||
|
|
||||||
// stc->Refresh(FALSE);
|
|
||||||
|
|
||||||
paintState = notPainting;
|
paintState = notPainting;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -814,6 +806,21 @@ void ScintillaWX::DoScrollToColumn(int column) {
|
|||||||
HorizontalScrollTo(column * vs.spaceWidth);
|
HorizontalScrollTo(column * vs.spaceWidth);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ScintillaWX::ClipChildren(wxDC& dc, PRectangle rect) {
|
||||||
|
#ifdef __WXGTK__
|
||||||
|
wxRegion rgn(wxRectFromPRectangle(rect));
|
||||||
|
if (ac.Active()) {
|
||||||
|
wxRect childRect = ((wxWindow*)ac.lb->GetID())->GetRect();
|
||||||
|
rgn.Subtract(childRect);
|
||||||
|
}
|
||||||
|
if (ct.inCallTipMode) {
|
||||||
|
wxRect childRect = ((wxWindow*)ct.wCallTip.GetID())->GetRect();
|
||||||
|
rgn.Subtract(childRect);
|
||||||
|
}
|
||||||
|
|
||||||
|
dc.SetClippingRegion(rgn);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
@@ -27,6 +27,7 @@
|
|||||||
#include "Platform.h"
|
#include "Platform.h"
|
||||||
|
|
||||||
#include "Scintilla.h"
|
#include "Scintilla.h"
|
||||||
|
#include "XPM.h"
|
||||||
#ifdef SCI_LEXER
|
#ifdef SCI_LEXER
|
||||||
#include "SciLexer.h"
|
#include "SciLexer.h"
|
||||||
#include "PropSet.h"
|
#include "PropSet.h"
|
||||||
@@ -149,6 +150,7 @@ public:
|
|||||||
bool GetHideSelection() { return hideSelection; }
|
bool GetHideSelection() { return hideSelection; }
|
||||||
void DoScrollToLine(int line);
|
void DoScrollToLine(int line);
|
||||||
void DoScrollToColumn(int column);
|
void DoScrollToColumn(int column);
|
||||||
|
void ClipChildren(wxDC& dc, PRectangle rect);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool capturedMouse;
|
bool capturedMouse;
|
||||||
@@ -159,6 +161,9 @@ private:
|
|||||||
wxDragResult dragResult;
|
wxDragResult dragResult;
|
||||||
#endif
|
#endif
|
||||||
int wheelRotation;
|
int wheelRotation;
|
||||||
|
|
||||||
|
|
||||||
|
friend class wxSTCCallTip;
|
||||||
};
|
};
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
@@ -1,34 +1,35 @@
|
|||||||
# Microsoft Developer Studio Project File - Name="StcVC" - Package Owner=<4>
|
# Microsoft Developer Studio Project File - Name="stcVC" - Package Owner=<4>
|
||||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||||
# ** DO NOT EDIT **
|
# ** DO NOT EDIT **
|
||||||
|
|
||||||
|
# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
|
||||||
# TARGTYPE "Win32 (x86) Static Library" 0x0104
|
# TARGTYPE "Win32 (x86) Static Library" 0x0104
|
||||||
|
|
||||||
CFG=StcVC - Win32 Debug
|
CFG=stcVC - Win32 Release DLL
|
||||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||||
!MESSAGE use the Export Makefile command and run
|
!MESSAGE use the Export Makefile command and run
|
||||||
!MESSAGE
|
!MESSAGE
|
||||||
!MESSAGE NMAKE /f "StcVC.mak".
|
!MESSAGE NMAKE /f "StcVC.mak".
|
||||||
!MESSAGE
|
!MESSAGE
|
||||||
!MESSAGE You can specify a configuration when running NMAKE
|
!MESSAGE You can specify a configuration when running NMAKE
|
||||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||||
!MESSAGE
|
!MESSAGE
|
||||||
!MESSAGE NMAKE /f "StcVC.mak" CFG="StcVC - Win32 Debug"
|
!MESSAGE NMAKE /f "StcVC.mak" CFG="stcVC - Win32 Release DLL"
|
||||||
!MESSAGE
|
!MESSAGE
|
||||||
!MESSAGE Possible choices for configuration are:
|
!MESSAGE Possible choices for configuration are:
|
||||||
!MESSAGE
|
!MESSAGE
|
||||||
!MESSAGE "StcVC - Win32 Release" (based on "Win32 (x86) Static Library")
|
!MESSAGE "stcVC - Win32 Release" (based on "Win32 (x86) Static Library")
|
||||||
!MESSAGE "StcVC - Win32 Debug" (based on "Win32 (x86) Static Library")
|
!MESSAGE "stcVC - Win32 Debug" (based on "Win32 (x86) Static Library")
|
||||||
!MESSAGE
|
!MESSAGE "stcVC - Win32 Debug DLL" (based on "Win32 (x86) Dynamic-Link Library")
|
||||||
|
!MESSAGE "stcVC - Win32 Release DLL" (based on "Win32 (x86) Dynamic-Link Library")
|
||||||
|
!MESSAGE
|
||||||
|
|
||||||
# Begin Project
|
# Begin Project
|
||||||
# PROP AllowPerConfigDependencies 0
|
# PROP AllowPerConfigDependencies 0
|
||||||
# PROP Scc_ProjName ""
|
# PROP Scc_ProjName ""
|
||||||
# PROP Scc_LocalPath ""
|
# PROP Scc_LocalPath ""
|
||||||
CPP=cl.exe
|
|
||||||
RSC=rc.exe
|
|
||||||
|
|
||||||
!IF "$(CFG)" == "StcVC - Win32 Release"
|
!IF "$(CFG)" == "stcVC - Win32 Release"
|
||||||
|
|
||||||
# PROP BASE Use_MFC 0
|
# PROP BASE Use_MFC 0
|
||||||
# PROP BASE Use_Debug_Libraries 0
|
# PROP BASE Use_Debug_Libraries 0
|
||||||
@@ -40,9 +41,11 @@ RSC=rc.exe
|
|||||||
# PROP Output_Dir "Release"
|
# PROP Output_Dir "Release"
|
||||||
# PROP Intermediate_Dir "Release"
|
# PROP Intermediate_Dir "Release"
|
||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
|
LINK32=link.exe
|
||||||
|
CPP=cl.exe
|
||||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
|
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
|
||||||
# ADD CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "../../../include" /I "../../include" /I "scintilla/include" /I "scintilla/src" /I "../../../lib/msw" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /D "__WX__" /D "SCI_LEXER" /D "LINK_LEXERS" /FD /c
|
# ADD CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "../../../include" /I "../../include" /I "../../../lib/msw" /I "./scintilla/include/" /I "./scintilla/src" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__HACK_MY_MSDEV40__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /D "SCI_LEXER" /D "LINK_LEXERS" /D "__WX__" /YX /FD /c
|
||||||
# SUBTRACT CPP /YX
|
RSC=rc.exe
|
||||||
# ADD BASE RSC /l 0x809
|
# ADD BASE RSC /l 0x809
|
||||||
# ADD RSC /l 0x809
|
# ADD RSC /l 0x809
|
||||||
BSC32=bscmake.exe
|
BSC32=bscmake.exe
|
||||||
@@ -52,7 +55,7 @@ LIB32=link.exe -lib
|
|||||||
# ADD BASE LIB32 /nologo
|
# ADD BASE LIB32 /nologo
|
||||||
# ADD LIB32 /nologo /out:"..\..\..\lib\stc.lib"
|
# ADD LIB32 /nologo /out:"..\..\..\lib\stc.lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "StcVC - Win32 Debug"
|
!ELSEIF "$(CFG)" == "stcVC - Win32 Debug"
|
||||||
|
|
||||||
# PROP BASE Use_MFC 0
|
# PROP BASE Use_MFC 0
|
||||||
# PROP BASE Use_Debug_Libraries 1
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
@@ -64,9 +67,11 @@ LIB32=link.exe -lib
|
|||||||
# PROP Output_Dir "Debug"
|
# PROP Output_Dir "Debug"
|
||||||
# PROP Intermediate_Dir "Debug"
|
# PROP Intermediate_Dir "Debug"
|
||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
|
LINK32=link.exe
|
||||||
|
CPP=cl.exe
|
||||||
# ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
|
# ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
|
||||||
# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "../../../include" /I "../../include" /I "scintilla/include" /I "scintilla/src" /I "../../../lib/mswd" /D "_DEBUG" /D DEBUG=1 /D "__WXDEBUG__" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /D "__WX__" /D "SCI_LEXER" /D "LINK_LEXERS" /FD /c
|
# ADD CPP /nologo /MDd /W3 /GX /Zi /Od /I "../../../include" /I "../../include" /I "../../../lib/mswd" /I "./scintilla/include/" /I "./scintilla/src" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /D "SCI_LEXER" /D "LINK_LEXERS" /D "__WX__" /YX /FD /c
|
||||||
# SUBTRACT CPP /YX
|
RSC=rc.exe
|
||||||
# ADD BASE RSC /l 0x809
|
# ADD BASE RSC /l 0x809
|
||||||
# ADD RSC /l 0x809
|
# ADD RSC /l 0x809
|
||||||
BSC32=bscmake.exe
|
BSC32=bscmake.exe
|
||||||
@@ -76,15 +81,85 @@ LIB32=link.exe -lib
|
|||||||
# ADD BASE LIB32 /nologo
|
# ADD BASE LIB32 /nologo
|
||||||
# ADD LIB32 /nologo /out:"..\..\..\lib\stcd.lib"
|
# ADD LIB32 /nologo /out:"..\..\..\lib\stcd.lib"
|
||||||
|
|
||||||
!ENDIF
|
!ELSEIF "$(CFG)" == "stcVC - Win32 Debug DLL"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "Debug_DLL"
|
||||||
|
# PROP BASE Intermediate_Dir "Debug_DLL"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "..\..\..\lib"
|
||||||
|
# PROP Intermediate_Dir "Debug_DLL"
|
||||||
|
# PROP Ignore_Export_Lib 0
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
LIB32=link.exe -lib
|
||||||
|
# ADD BASE LIB32 /nologo /out:"..\..\..\lib\stcd.lib"
|
||||||
|
# ADD LIB32 /nologo /out:"..\..\..\lib\stcd.lib"
|
||||||
|
CPP=cl.exe
|
||||||
|
# ADD BASE CPP /nologo /MDd /W3 /GX /Zi /Od /I "../../../include" /I "../../include" /I "../../../lib/mswd" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
||||||
|
# SUBTRACT BASE CPP /YX
|
||||||
|
# ADD CPP /nologo /MDd /W3 /GX /Zi /Od /I "../../../include" /I "../../include" /I "../../../lib/mswdlld" /I "./scintilla/include/" /I "./scintilla/src" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /D "WXUSINGDLL" /D "WXMAKING_STC_DLL" /D "SCI_LEXER" /D "LINK_LEXERS" /D "__WX__" /YX /FD /c
|
||||||
|
# SUBTRACT CPP /u
|
||||||
|
MTL=midl.exe
|
||||||
|
RSC=rc.exe
|
||||||
|
# ADD BASE RSC /l 0x809
|
||||||
|
# ADD RSC /l 0x809
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 /machine:IX86
|
||||||
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib advapi32.lib comdlg32.lib shell32.lib ole32.lib oleaut32.lib odbc32.lib uuid.lib rpcrt4.lib comctl32.lib wsock32.lib winmm.lib wxmsw24d.lib /nologo /version:1.0 /dll /debug /machine:IX86 /out:"../../../lib/stcdlld.dll" /libpath:"../../../lib"
|
||||||
|
# SUBTRACT LINK32 /pdb:none
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "stcVC - Win32 Release DLL"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "stcVC___Win32_Release_DLL"
|
||||||
|
# PROP BASE Intermediate_Dir "stcVC___Win32_Release_DLL"
|
||||||
|
# PROP BASE Ignore_Export_Lib 0
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "..\..\..\lib"
|
||||||
|
# PROP Intermediate_Dir "Release_DLL"
|
||||||
|
# PROP Ignore_Export_Lib 0
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
LIB32=link.exe -lib
|
||||||
|
# ADD BASE LIB32 /nologo /out:"..\..\..\lib\stc.lib"
|
||||||
|
# ADD LIB32 /nologo /out:"..\..\..\lib\stc.lib"
|
||||||
|
CPP=cl.exe
|
||||||
|
# ADD BASE CPP /nologo /MDd /W3 /GX /Zi /Od /I "../../../include" /I "../../include" /I "../../../lib/mswdll" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /D WXUSINGDLL=1 /D "WXBUILD_STC_DLL" /YX /FD /c
|
||||||
|
# SUBTRACT BASE CPP /u
|
||||||
|
# ADD CPP /nologo /MD /W3 /GX /Zi /O2 /Ob2 /I "../../../include" /I "../../include" /I "../../../lib/mswdll" /I "./scintilla/include/" /I "./scintilla/src" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /D "WXUSINGDLL" /D "WXMAKING_STC_DLL" /D "SCI_LEXER" /D "LINK_LEXERS" /D "__WX__" /YX /FD /c
|
||||||
|
# SUBTRACT CPP /u
|
||||||
|
MTL=midl.exe
|
||||||
|
RSC=rc.exe
|
||||||
|
# ADD BASE RSC /l 0x809
|
||||||
|
# ADD RSC /l 0x809
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib advapi32.lib comdlg32.lib shell32.lib ole32.lib oleaut32.lib odbc32.lib uuid.lib rpcrt4.lib comctl32.lib wsock32.lib winmm.lib wxmsw24.lib /nologo /version:1.0 /dll /debug /machine:IX86 /out:"../../../lib/stcdlld.dll" /libpath:"../../../lib"
|
||||||
|
# SUBTRACT BASE LINK32 /pdb:none
|
||||||
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib advapi32.lib comdlg32.lib shell32.lib ole32.lib oleaut32.lib odbc32.lib uuid.lib rpcrt4.lib comctl32.lib wsock32.lib winmm.lib wxmsw24.lib /nologo /version:1.0 /dll /machine:IX86 /out:"../../../lib/stcdll.dll" /libpath:"../../../lib"
|
||||||
|
# SUBTRACT LINK32 /pdb:none /incremental:no /debug
|
||||||
|
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
# Begin Target
|
# Begin Target
|
||||||
|
|
||||||
# Name "StcVC - Win32 Release"
|
# Name "stcVC - Win32 Release"
|
||||||
# Name "StcVC - Win32 Debug"
|
# Name "stcVC - Win32 Debug"
|
||||||
# Begin Group "Stc"
|
# Name "stcVC - Win32 Debug DLL"
|
||||||
|
# Name "stcVC - Win32 Release DLL"
|
||||||
|
# Begin Group "wxStyledTextCtrl Src"
|
||||||
|
|
||||||
# PROP Default_Filter ""
|
# PROP Default_Filter "*.cpp"
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\PlatWX.cpp
|
SOURCE=.\PlatWX.cpp
|
||||||
@@ -95,11 +170,23 @@ SOURCE=.\ScintillaWX.cpp
|
|||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\stc.cpp
|
||||||
|
# End Source File
|
||||||
|
# End Group
|
||||||
|
# Begin Group "wxStyledTextCtrl Headers"
|
||||||
|
|
||||||
|
# PROP Default_Filter ""
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\PlatWX.h
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\ScintillaWX.h
|
SOURCE=.\ScintillaWX.h
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\stc.cpp
|
SOURCE=..\..\include\wx\stc\stc.h
|
||||||
# End Source File
|
# End Source File
|
||||||
# End Group
|
# End Group
|
||||||
# Begin Group "Scintilla"
|
# Begin Group "Scintilla"
|
||||||
@@ -107,6 +194,10 @@ SOURCE=.\stc.cpp
|
|||||||
# PROP Default_Filter ""
|
# PROP Default_Filter ""
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\scintilla\include\Accessor.h
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\scintilla\src\AutoComplete.cxx
|
SOURCE=.\scintilla\src\AutoComplete.cxx
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
@@ -151,6 +242,10 @@ SOURCE=.\scintilla\src\DocumentAccessor.cxx
|
|||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\scintilla\src\DocumentAccessor.h
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\scintilla\src\Editor.cxx
|
SOURCE=.\scintilla\src\Editor.cxx
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
@@ -179,10 +274,18 @@ SOURCE=.\scintilla\src\KeyWords.cxx
|
|||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\scintilla\include\KeyWords.h
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\scintilla\src\LexAda.cxx
|
SOURCE=.\scintilla\src\LexAda.cxx
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\scintilla\src\LexAsm.cxx
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\scintilla\src\LexAVE.cxx
|
SOURCE=.\scintilla\src\LexAVE.cxx
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
@@ -207,10 +310,18 @@ SOURCE=.\scintilla\src\LexCrontab.cxx
|
|||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\scintilla\src\LexCSS.cxx
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\scintilla\src\LexEiffel.cxx
|
SOURCE=.\scintilla\src\LexEiffel.cxx
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\scintilla\src\LexFortran.cxx
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\scintilla\src\LexHTML.cxx
|
SOURCE=.\scintilla\src\LexHTML.cxx
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
@@ -231,6 +342,10 @@ SOURCE=.\scintilla\src\LexOthers.cxx
|
|||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\scintilla\src\LexPOV.cxx
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\scintilla\src\LexPascal.cxx
|
SOURCE=.\scintilla\src\LexPascal.cxx
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
@@ -263,14 +378,34 @@ SOURCE=.\scintilla\src\LineMarker.h
|
|||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\scintilla\include\Platform.h
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\scintilla\src\PropSet.cxx
|
SOURCE=.\scintilla\src\PropSet.cxx
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\scintilla\include\PropSet.h
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\scintilla\src\RESearch.cxx
|
SOURCE=.\scintilla\src\RESearch.cxx
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\scintilla\src\RESearch.h
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\scintilla\include\SciLexer.h
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\scintilla\include\Scintilla.h
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\scintilla\src\ScintillaBase.cxx
|
SOURCE=.\scintilla\src\ScintillaBase.cxx
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
@@ -279,6 +414,14 @@ SOURCE=.\scintilla\src\ScintillaBase.h
|
|||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\scintilla\include\ScintillaWidget.h
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\scintilla\include\SString.h
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\scintilla\src\Style.cxx
|
SOURCE=.\scintilla\src\Style.cxx
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
@@ -291,10 +434,22 @@ SOURCE=.\scintilla\src\StyleContext.cxx
|
|||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\scintilla\src\StyleContext.h
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\scintilla\src\SVector.h
|
SOURCE=.\scintilla\src\SVector.h
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\scintilla\src\UniConversion.cxx
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\scintilla\src\UniConversion.h
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\scintilla\src\ViewStyle.cxx
|
SOURCE=.\scintilla\src\ViewStyle.cxx
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
@@ -305,6 +460,14 @@ SOURCE=.\scintilla\src\ViewStyle.h
|
|||||||
|
|
||||||
SOURCE=.\scintilla\src\WindowAccessor.cxx
|
SOURCE=.\scintilla\src\WindowAccessor.cxx
|
||||||
# End Source File
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\scintilla\src\XPM.cxx
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\scintilla\include\WindowAccessor.h
|
||||||
|
# End Source File
|
||||||
# End Group
|
# End Group
|
||||||
# End Target
|
# End Target
|
||||||
# End Project
|
# End Project
|
||||||
|
@@ -42,6 +42,9 @@ cmdValues = [ (2300, 2349),
|
|||||||
(2176, 2180),
|
(2176, 2180),
|
||||||
(2390, 2393),
|
(2390, 2393),
|
||||||
(2395, 2396),
|
(2395, 2396),
|
||||||
|
2404,
|
||||||
|
(2413, 2416),
|
||||||
|
(2450, 2454),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
@@ -88,90 +91,114 @@ methodOverrideMap = {
|
|||||||
'GetViewWS' : ( 'GetViewWhiteSpace', 0, 0, 0),
|
'GetViewWS' : ( 'GetViewWhiteSpace', 0, 0, 0),
|
||||||
'SetViewWS' : ( 'SetViewWhiteSpace', 0, 0, 0),
|
'SetViewWS' : ( 'SetViewWhiteSpace', 0, 0, 0),
|
||||||
|
|
||||||
'GetCharAt' : ( 0, 0,
|
'GetCharAt' :
|
||||||
'''int %s(int pos) {
|
( 0, 0,
|
||||||
return (unsigned char)SendMsg(%s, pos, 0);''',
|
'''int %s(int pos) {
|
||||||
0),
|
return (unsigned char)SendMsg(%s, pos, 0);''',
|
||||||
|
0),
|
||||||
|
|
||||||
'GetStyleAt' : ( 0, 0,
|
'GetStyleAt' :
|
||||||
'''int %s(int pos) {
|
( 0, 0,
|
||||||
return (unsigned char)SendMsg(%s, pos, 0);''',
|
'''int %s(int pos) {
|
||||||
0),
|
return (unsigned char)SendMsg(%s, pos, 0);''',
|
||||||
|
0),
|
||||||
|
|
||||||
'GetStyledText' : (0,
|
'GetStyledText' :
|
||||||
'wxMemoryBuffer %s(int startPos, int endPos);',
|
(0,
|
||||||
|
'wxMemoryBuffer %s(int startPos, int endPos);',
|
||||||
|
|
||||||
'''wxMemoryBuffer %s(int startPos, int endPos) {
|
'''wxMemoryBuffer %s(int startPos, int endPos) {
|
||||||
wxMemoryBuffer buf;
|
wxMemoryBuffer buf;
|
||||||
if (endPos < startPos) {
|
if (endPos < startPos) {
|
||||||
int temp = startPos;
|
int temp = startPos;
|
||||||
startPos = endPos;
|
startPos = endPos;
|
||||||
endPos = temp;
|
endPos = temp;
|
||||||
}
|
}
|
||||||
int len = endPos - startPos;
|
int len = endPos - startPos;
|
||||||
if (!len) return buf;
|
if (!len) return buf;
|
||||||
TextRange tr;
|
TextRange tr;
|
||||||
tr.lpstrText = (char*)buf.GetWriteBuf(len*2+1);
|
tr.lpstrText = (char*)buf.GetWriteBuf(len*2+1);
|
||||||
tr.chrg.cpMin = startPos;
|
tr.chrg.cpMin = startPos;
|
||||||
tr.chrg.cpMax = endPos;
|
tr.chrg.cpMax = endPos;
|
||||||
len = SendMsg(%s, 0, (long)&tr);
|
len = SendMsg(%s, 0, (long)&tr);
|
||||||
buf.UngetWriteBuf(len);
|
buf.UngetWriteBuf(len);
|
||||||
return buf;''',
|
return buf;''',
|
||||||
|
|
||||||
('Retrieve a buffer of cells.',)),
|
('Retrieve a buffer of cells.',)),
|
||||||
|
|
||||||
|
|
||||||
'PositionFromPoint' : (0,
|
'PositionFromPoint' :
|
||||||
'int %s(wxPoint pt);',
|
(0,
|
||||||
|
'int %s(wxPoint pt);',
|
||||||
|
|
||||||
'''int %s(wxPoint pt) {
|
'''int %s(wxPoint pt) {
|
||||||
return SendMsg(%s, pt.x, pt.y);''',
|
return SendMsg(%s, pt.x, pt.y);''',
|
||||||
|
0),
|
||||||
|
|
||||||
0),
|
'GetCurLine' :
|
||||||
|
(0,
|
||||||
|
'#ifdef SWIG\n wxString %s(int* OUTPUT);\n#else\n wxString GetCurLine(int* linePos=NULL);\n#endif',
|
||||||
|
|
||||||
'GetCurLine' : (0,
|
'''wxString %s(int* linePos) {
|
||||||
'#ifdef SWIG\n wxString %s(int* OUTPUT);\n#else\n wxString GetCurLine(int* linePos=NULL);\n#endif',
|
int len = LineLength(GetCurrentLine());
|
||||||
|
if (!len) {
|
||||||
|
if (linePos) *linePos = 0;
|
||||||
|
return wxEmptyString;
|
||||||
|
}
|
||||||
|
|
||||||
'''wxString %s(int* linePos) {
|
wxMemoryBuffer mbuf(len+1);
|
||||||
int len = LineLength(GetCurrentLine());
|
char* buf = (char*)mbuf.GetWriteBuf(len+1);
|
||||||
if (!len) {
|
|
||||||
if (linePos) *linePos = 0;
|
|
||||||
return wxEmptyString;
|
|
||||||
}
|
|
||||||
|
|
||||||
wxMemoryBuffer mbuf(len+1);
|
int pos = SendMsg(%s, len+1, (long)buf);
|
||||||
char* buf = (char*)mbuf.GetWriteBuf(len+1);
|
mbuf.UngetWriteBuf(len);
|
||||||
|
mbuf.AppendByte(0);
|
||||||
|
if (linePos) *linePos = pos;
|
||||||
|
return stc2wx(buf);''',
|
||||||
|
|
||||||
int pos = SendMsg(%s, len+1, (long)buf);
|
0),
|
||||||
mbuf.UngetWriteBuf(len);
|
|
||||||
mbuf.AppendByte(0);
|
|
||||||
if (linePos) *linePos = pos;
|
|
||||||
return stc2wx(buf);''',
|
|
||||||
|
|
||||||
0),
|
|
||||||
|
|
||||||
'SetUsePalette' : (None, 0,0,0),
|
'SetUsePalette' : (None, 0,0,0),
|
||||||
|
|
||||||
'MarkerSetFore' : ('MarkerSetForeground', 0, 0, 0),
|
'MarkerSetFore' : ('MarkerSetForeground', 0, 0, 0),
|
||||||
'MarkerSetBack' : ('MarkerSetBackground', 0, 0, 0),
|
'MarkerSetBack' : ('MarkerSetBackground', 0, 0, 0),
|
||||||
|
|
||||||
'MarkerDefine' : (0,
|
'MarkerDefine' :
|
||||||
'''void %s(int markerNumber, int markerSymbol,
|
(0,
|
||||||
const wxColour& foreground = wxNullColour,
|
'''void %s(int markerNumber, int markerSymbol,
|
||||||
const wxColour& background = wxNullColour);''',
|
const wxColour& foreground = wxNullColour,
|
||||||
|
const wxColour& background = wxNullColour);''',
|
||||||
|
|
||||||
'''void %s(int markerNumber, int markerSymbol,
|
'''void %s(int markerNumber, int markerSymbol,
|
||||||
const wxColour& foreground,
|
const wxColour& foreground,
|
||||||
const wxColour& background) {
|
const wxColour& background) {
|
||||||
|
|
||||||
SendMsg(%s, markerNumber, markerSymbol);
|
SendMsg(%s, markerNumber, markerSymbol);
|
||||||
if (foreground.Ok())
|
if (foreground.Ok())
|
||||||
MarkerSetForeground(markerNumber, foreground);
|
MarkerSetForeground(markerNumber, foreground);
|
||||||
if (background.Ok())
|
if (background.Ok())
|
||||||
MarkerSetBackground(markerNumber, background);''',
|
MarkerSetBackground(markerNumber, background);''',
|
||||||
|
|
||||||
|
('Set the symbol used for a particular marker number,',
|
||||||
|
'and optionally the fore and background colours.')),
|
||||||
|
|
||||||
|
|
||||||
|
'MarkerDefinePixmap' :
|
||||||
|
('MarkerDefineBitmap',
|
||||||
|
'''void %s(int markerNumber, const wxBitmap& bmp);''',
|
||||||
|
'''void %s(int markerNumber, const wxBitmap& bmp) {
|
||||||
|
// convert bmp to a xpm in a string
|
||||||
|
wxMemoryOutputStream strm;
|
||||||
|
wxImage img = bmp.ConvertToImage();
|
||||||
|
img.SaveFile(strm, wxBITMAP_TYPE_XPM);
|
||||||
|
size_t len = strm.GetSize();
|
||||||
|
char* buff = new char[len+1];
|
||||||
|
strm.CopyTo(buff, len);
|
||||||
|
buff[len] = 0;
|
||||||
|
SendMsg(%s, markerNumber, (long)buff);
|
||||||
|
delete [] buff;
|
||||||
|
''',
|
||||||
|
('Define a marker from a bitmap',)),
|
||||||
|
|
||||||
('Set the symbol used for a particular marker number,',
|
|
||||||
'and optionally the fore and background colours.')),
|
|
||||||
|
|
||||||
'SetMarginTypeN' : ('SetMarginType', 0, 0, 0),
|
'SetMarginTypeN' : ('SetMarginType', 0, 0, 0),
|
||||||
'GetMarginTypeN' : ('GetMarginType', 0, 0, 0),
|
'GetMarginTypeN' : ('GetMarginType', 0, 0, 0),
|
||||||
@@ -189,32 +216,33 @@ methodOverrideMap = {
|
|||||||
'SetCaretFore' : ('SetCaretForeground', 0, 0, 0),
|
'SetCaretFore' : ('SetCaretForeground', 0, 0, 0),
|
||||||
'StyleSetFont' : ('StyleSetFaceName', 0, 0, 0),
|
'StyleSetFont' : ('StyleSetFaceName', 0, 0, 0),
|
||||||
|
|
||||||
'AssignCmdKey' : ('CmdKeyAssign',
|
'AssignCmdKey' :
|
||||||
'void %s(int key, int modifiers, int cmd);',
|
('CmdKeyAssign',
|
||||||
|
'void %s(int key, int modifiers, int cmd);',
|
||||||
|
|
||||||
'''void %s(int key, int modifiers, int cmd) {
|
'''void %s(int key, int modifiers, int cmd) {
|
||||||
SendMsg(%s, MAKELONG(key, modifiers), cmd);''',
|
SendMsg(%s, MAKELONG(key, modifiers), cmd);''',
|
||||||
|
0),
|
||||||
|
|
||||||
0),
|
|
||||||
|
|
||||||
'ClearCmdKey' : ('CmdKeyClear',
|
'ClearCmdKey' :
|
||||||
'void %s(int key, int modifiers);',
|
('CmdKeyClear',
|
||||||
|
'void %s(int key, int modifiers);',
|
||||||
|
|
||||||
'''void %s(int key, int modifiers) {
|
'''void %s(int key, int modifiers) {
|
||||||
SendMsg(%s, MAKELONG(key, modifiers));''',
|
SendMsg(%s, MAKELONG(key, modifiers));''',
|
||||||
|
0),
|
||||||
0),
|
|
||||||
|
|
||||||
'ClearAllCmdKeys' : ('CmdKeyClearAll', 0, 0, 0),
|
'ClearAllCmdKeys' : ('CmdKeyClearAll', 0, 0, 0),
|
||||||
|
|
||||||
|
|
||||||
'SetStylingEx' : ('SetStyleBytes',
|
'SetStylingEx' :
|
||||||
'void %s(int length, char* styleBytes);',
|
('SetStyleBytes',
|
||||||
|
'void %s(int length, char* styleBytes);',
|
||||||
|
|
||||||
'''void %s(int length, char* styleBytes) {
|
'''void %s(int length, char* styleBytes) {
|
||||||
SendMsg(%s, length, (long)styleBytes);''',
|
SendMsg(%s, length, (long)styleBytes);''',
|
||||||
|
0),
|
||||||
0),
|
|
||||||
|
|
||||||
|
|
||||||
'IndicSetStyle' : ('IndicatorSetStyle', 0, 0, 0),
|
'IndicSetStyle' : ('IndicatorSetStyle', 0, 0, 0),
|
||||||
@@ -245,129 +273,162 @@ methodOverrideMap = {
|
|||||||
'AutoCGetAutoHide' : ('AutoCompGetAutoHide', 0, 0, 0),
|
'AutoCGetAutoHide' : ('AutoCompGetAutoHide', 0, 0, 0),
|
||||||
'AutoCSetDropRestOfWord' : ('AutoCompSetDropRestOfWord', 0,0,0),
|
'AutoCSetDropRestOfWord' : ('AutoCompSetDropRestOfWord', 0,0,0),
|
||||||
'AutoCGetDropRestOfWord' : ('AutoCompGetDropRestOfWord', 0,0,0),
|
'AutoCGetDropRestOfWord' : ('AutoCompGetDropRestOfWord', 0,0,0),
|
||||||
|
'AutoCGetTypeSeparator' : ('AutoCompGetTypeSeparator', 0, 0, 0),
|
||||||
|
'AutoCSetTypeSeparator' : ('AutoCompSetTypeSeparator', 0, 0, 0),
|
||||||
|
|
||||||
|
'RegisterImage' :
|
||||||
|
(0,
|
||||||
|
'''void %s(int type, const wxBitmap& bmp);''',
|
||||||
|
'''void %s(int type, const wxBitmap& bmp) {
|
||||||
|
// convert bmp to a xpm in a string
|
||||||
|
wxMemoryOutputStream strm;
|
||||||
|
wxImage img = bmp.ConvertToImage();
|
||||||
|
img.SaveFile(strm, wxBITMAP_TYPE_XPM);
|
||||||
|
size_t len = strm.GetSize();
|
||||||
|
char* buff = new char[len+1];
|
||||||
|
strm.CopyTo(buff, len);
|
||||||
|
buff[len] = 0;
|
||||||
|
SendMsg(%s, type, (long)buff);
|
||||||
|
delete [] buff;
|
||||||
|
''',
|
||||||
|
('Register an image for use in autocompletion lists.',)),
|
||||||
|
|
||||||
|
|
||||||
|
'ClearRegisteredImages' : (0, 0, 0,
|
||||||
|
('Clear all the registered images.',)),
|
||||||
|
|
||||||
|
|
||||||
'SetHScrollBar' : ('SetUseHorizontalScrollBar', 0, 0, 0),
|
'SetHScrollBar' : ('SetUseHorizontalScrollBar', 0, 0, 0),
|
||||||
'GetHScrollBar' : ('GetUseHorizontalScrollBar', 0, 0, 0),
|
'GetHScrollBar' : ('GetUseHorizontalScrollBar', 0, 0, 0),
|
||||||
|
|
||||||
|
'SetVScrollBar' : ('SetUseVerticalScrollBar', 0, 0, 0),
|
||||||
|
'GetVScrollBar' : ('GetUseVerticalScrollBar', 0, 0, 0),
|
||||||
|
|
||||||
'GetCaretFore' : ('GetCaretForeground', 0, 0, 0),
|
'GetCaretFore' : ('GetCaretForeground', 0, 0, 0),
|
||||||
|
|
||||||
'GetUsePalette' : (None, 0, 0, 0),
|
'GetUsePalette' : (None, 0, 0, 0),
|
||||||
|
|
||||||
'FindText' : (0,
|
'FindText' :
|
||||||
'''int %s(int minPos, int maxPos, const wxString& text, int flags=0);''',
|
(0,
|
||||||
|
'''int %s(int minPos, int maxPos, const wxString& text, int flags=0);''',
|
||||||
|
|
||||||
'''int %s(int minPos, int maxPos,
|
'''int %s(int minPos, int maxPos,
|
||||||
const wxString& text,
|
const wxString& text,
|
||||||
int flags) {
|
int flags) {
|
||||||
TextToFind ft;
|
TextToFind ft;
|
||||||
ft.chrg.cpMin = minPos;
|
ft.chrg.cpMin = minPos;
|
||||||
ft.chrg.cpMax = maxPos;
|
ft.chrg.cpMax = maxPos;
|
||||||
wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
|
wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
|
||||||
ft.lpstrText = (char*)(const char*)buf;
|
ft.lpstrText = (char*)(const char*)buf;
|
||||||
|
|
||||||
return SendMsg(%s, flags, (long)&ft);''',
|
return SendMsg(%s, flags, (long)&ft);''',
|
||||||
0),
|
0),
|
||||||
|
|
||||||
'FormatRange' : (0,
|
'FormatRange' :
|
||||||
'''int %s(bool doDraw,
|
(0,
|
||||||
int startPos,
|
'''int %s(bool doDraw,
|
||||||
int endPos,
|
int startPos,
|
||||||
wxDC* draw,
|
int endPos,
|
||||||
wxDC* target, // Why does it use two? Can they be the same?
|
wxDC* draw,
|
||||||
wxRect renderRect,
|
wxDC* target, // Why does it use two? Can they be the same?
|
||||||
wxRect pageRect);''',
|
wxRect renderRect,
|
||||||
''' int %s(bool doDraw,
|
wxRect pageRect);''',
|
||||||
int startPos,
|
''' int %s(bool doDraw,
|
||||||
int endPos,
|
int startPos,
|
||||||
wxDC* draw,
|
int endPos,
|
||||||
wxDC* target, // Why does it use two? Can they be the same?
|
wxDC* draw,
|
||||||
wxRect renderRect,
|
wxDC* target, // Why does it use two? Can they be the same?
|
||||||
wxRect pageRect) {
|
wxRect renderRect,
|
||||||
RangeToFormat fr;
|
wxRect pageRect) {
|
||||||
|
RangeToFormat fr;
|
||||||
|
|
||||||
if (endPos < startPos) {
|
if (endPos < startPos) {
|
||||||
int temp = startPos;
|
int temp = startPos;
|
||||||
startPos = endPos;
|
startPos = endPos;
|
||||||
endPos = temp;
|
endPos = temp;
|
||||||
}
|
}
|
||||||
fr.hdc = draw;
|
fr.hdc = draw;
|
||||||
fr.hdcTarget = target;
|
fr.hdcTarget = target;
|
||||||
fr.rc.top = renderRect.GetTop();
|
fr.rc.top = renderRect.GetTop();
|
||||||
fr.rc.left = renderRect.GetLeft();
|
fr.rc.left = renderRect.GetLeft();
|
||||||
fr.rc.right = renderRect.GetRight();
|
fr.rc.right = renderRect.GetRight();
|
||||||
fr.rc.bottom = renderRect.GetBottom();
|
fr.rc.bottom = renderRect.GetBottom();
|
||||||
fr.rcPage.top = pageRect.GetTop();
|
fr.rcPage.top = pageRect.GetTop();
|
||||||
fr.rcPage.left = pageRect.GetLeft();
|
fr.rcPage.left = pageRect.GetLeft();
|
||||||
fr.rcPage.right = pageRect.GetRight();
|
fr.rcPage.right = pageRect.GetRight();
|
||||||
fr.rcPage.bottom = pageRect.GetBottom();
|
fr.rcPage.bottom = pageRect.GetBottom();
|
||||||
fr.chrg.cpMin = startPos;
|
fr.chrg.cpMin = startPos;
|
||||||
fr.chrg.cpMax = endPos;
|
fr.chrg.cpMax = endPos;
|
||||||
|
|
||||||
return SendMsg(%s, doDraw, (long)&fr);''',
|
return SendMsg(%s, doDraw, (long)&fr);''',
|
||||||
0),
|
0),
|
||||||
|
|
||||||
|
|
||||||
'GetLine' : (0,
|
'GetLine' :
|
||||||
'wxString %s(int line);',
|
(0,
|
||||||
|
'wxString %s(int line);',
|
||||||
|
|
||||||
'''wxString %s(int line) {
|
'''wxString %s(int line) {
|
||||||
int len = LineLength(line);
|
int len = LineLength(line);
|
||||||
if (!len) return wxEmptyString;
|
if (!len) return wxEmptyString;
|
||||||
|
|
||||||
wxMemoryBuffer mbuf(len+1);
|
wxMemoryBuffer mbuf(len+1);
|
||||||
char* buf = (char*)mbuf.GetWriteBuf(len+1);
|
char* buf = (char*)mbuf.GetWriteBuf(len+1);
|
||||||
SendMsg(%s, line, (long)buf);
|
SendMsg(%s, line, (long)buf);
|
||||||
mbuf.UngetWriteBuf(len);
|
mbuf.UngetWriteBuf(len);
|
||||||
mbuf.AppendByte(0);
|
mbuf.AppendByte(0);
|
||||||
return stc2wx(buf);''',
|
return stc2wx(buf);''',
|
||||||
|
|
||||||
('Retrieve the contents of a line.',)),
|
('Retrieve the contents of a line.',)),
|
||||||
|
|
||||||
'SetSel' : ('SetSelection', 0, 0, 0),
|
'SetSel' : ('SetSelection', 0, 0, 0),
|
||||||
'GetSelText' : ('GetSelectedText',
|
|
||||||
'wxString %s();',
|
|
||||||
|
|
||||||
'''wxString %s() {
|
'GetSelText' :
|
||||||
int start;
|
('GetSelectedText',
|
||||||
int end;
|
'wxString %s();',
|
||||||
|
|
||||||
GetSelection(&start, &end);
|
'''wxString %s() {
|
||||||
int len = end - start;
|
int start;
|
||||||
if (!len) return wxEmptyString;
|
int end;
|
||||||
|
|
||||||
wxMemoryBuffer mbuf(len+1);
|
GetSelection(&start, &end);
|
||||||
char* buf = (char*)mbuf.GetWriteBuf(len+1);
|
int len = end - start;
|
||||||
SendMsg(%s, 0, (long)buf);
|
if (!len) return wxEmptyString;
|
||||||
mbuf.UngetWriteBuf(len);
|
|
||||||
mbuf.AppendByte(0);
|
|
||||||
return stc2wx(buf);''',
|
|
||||||
|
|
||||||
('Retrieve the selected text.',)),
|
wxMemoryBuffer mbuf(len+1);
|
||||||
|
char* buf = (char*)mbuf.GetWriteBuf(len+1);
|
||||||
|
SendMsg(%s, 0, (long)buf);
|
||||||
|
mbuf.UngetWriteBuf(len);
|
||||||
|
mbuf.AppendByte(0);
|
||||||
|
return stc2wx(buf);''',
|
||||||
|
|
||||||
'GetTextRange' : (0,
|
('Retrieve the selected text.',)),
|
||||||
'wxString %s(int startPos, int endPos);',
|
|
||||||
|
|
||||||
'''wxString %s(int startPos, int endPos) {
|
|
||||||
if (endPos < startPos) {
|
|
||||||
int temp = startPos;
|
|
||||||
startPos = endPos;
|
|
||||||
endPos = temp;
|
|
||||||
}
|
|
||||||
int len = endPos - startPos;
|
|
||||||
if (!len) return wxEmptyString;
|
|
||||||
wxMemoryBuffer mbuf(len+1);
|
|
||||||
char* buf = (char*)mbuf.GetWriteBuf(len);
|
|
||||||
TextRange tr;
|
|
||||||
tr.lpstrText = buf;
|
|
||||||
tr.chrg.cpMin = startPos;
|
|
||||||
tr.chrg.cpMax = endPos;
|
|
||||||
SendMsg(%s, 0, (long)&tr);
|
|
||||||
mbuf.UngetWriteBuf(len);
|
|
||||||
mbuf.AppendByte(0);
|
|
||||||
return stc2wx(buf);''',
|
|
||||||
|
|
||||||
('Retrieve a range of text.',)),
|
'GetTextRange' :
|
||||||
|
(0,
|
||||||
|
'wxString %s(int startPos, int endPos);',
|
||||||
|
|
||||||
|
'''wxString %s(int startPos, int endPos) {
|
||||||
|
if (endPos < startPos) {
|
||||||
|
int temp = startPos;
|
||||||
|
startPos = endPos;
|
||||||
|
endPos = temp;
|
||||||
|
}
|
||||||
|
int len = endPos - startPos;
|
||||||
|
if (!len) return wxEmptyString;
|
||||||
|
wxMemoryBuffer mbuf(len+1);
|
||||||
|
char* buf = (char*)mbuf.GetWriteBuf(len);
|
||||||
|
TextRange tr;
|
||||||
|
tr.lpstrText = buf;
|
||||||
|
tr.chrg.cpMin = startPos;
|
||||||
|
tr.chrg.cpMax = endPos;
|
||||||
|
SendMsg(%s, 0, (long)&tr);
|
||||||
|
mbuf.UngetWriteBuf(len);
|
||||||
|
mbuf.AppendByte(0);
|
||||||
|
return stc2wx(buf);''',
|
||||||
|
|
||||||
|
('Retrieve a range of text.',)),
|
||||||
|
|
||||||
'PointXFromPosition' : (None, 0, 0, 0),
|
'PointXFromPosition' : (None, 0, 0, 0),
|
||||||
'PointYFromPosition' : (None, 0, 0, 0),
|
'PointYFromPosition' : (None, 0, 0, 0),
|
||||||
@@ -376,88 +437,104 @@ methodOverrideMap = {
|
|||||||
'ReplaceSel' : ('ReplaceSelection', 0, 0, 0),
|
'ReplaceSel' : ('ReplaceSelection', 0, 0, 0),
|
||||||
'Null' : (None, 0, 0, 0),
|
'Null' : (None, 0, 0, 0),
|
||||||
|
|
||||||
'GetText' : (0,
|
'GetText' :
|
||||||
'wxString %s();',
|
(0,
|
||||||
|
'wxString %s();',
|
||||||
|
|
||||||
'''wxString %s() {
|
'''wxString %s() {
|
||||||
int len = GetTextLength();
|
int len = GetTextLength();
|
||||||
wxMemoryBuffer mbuf(len+1); // leave room for the null...
|
wxMemoryBuffer mbuf(len+1); // leave room for the null...
|
||||||
char* buf = (char*)mbuf.GetWriteBuf(len+1);
|
char* buf = (char*)mbuf.GetWriteBuf(len+1);
|
||||||
SendMsg(%s, len+1, (long)buf);
|
SendMsg(%s, len+1, (long)buf);
|
||||||
mbuf.UngetWriteBuf(len);
|
mbuf.UngetWriteBuf(len);
|
||||||
mbuf.AppendByte(0);
|
mbuf.AppendByte(0);
|
||||||
return stc2wx(buf);''',
|
return stc2wx(buf);''',
|
||||||
|
|
||||||
('Retrieve all the text in the document.', )),
|
('Retrieve all the text in the document.', )),
|
||||||
|
|
||||||
'GetDirectFunction' : (None, 0, 0, 0),
|
'GetDirectFunction' : (None, 0, 0, 0),
|
||||||
'GetDirectPointer' : (None, 0, 0, 0),
|
'GetDirectPointer' : (None, 0, 0, 0),
|
||||||
|
|
||||||
'CallTipPosStart' : ('CallTipPosAtStart', 0, 0, 0),
|
'CallTipPosStart' : ('CallTipPosAtStart', 0, 0, 0),
|
||||||
'CallTipSetHlt' : ('CallTipSetHighlight', 0, 0, 0),
|
'CallTipSetHlt' : ('CallTipSetHighlight', 0, 0, 0),
|
||||||
'CallTipSetBack' : ('CallTipSetBackground', 0, 0, 0),
|
'CallTipSetBack' : ('CallTipSetBackground', 0, 0, 0),
|
||||||
|
'CallTipSetFore' : ('CallTipSetForeground', 0, 0, 0),
|
||||||
|
'CallTipSetForeHlt' : ('CallTipSetForegroundHighlight', 0, 0, 0),
|
||||||
|
|
||||||
|
'SetHotspotActiveFore' : ('SetHotspotActiveForeground', 0, 0, 0),
|
||||||
|
'SetHotspotActiveBack' : ('SetHotspotActiveBackground', 0, 0, 0),
|
||||||
|
|
||||||
|
|
||||||
'ReplaceTarget' : (0,
|
'ReplaceTarget' :
|
||||||
'int %s(const wxString& text);',
|
(0,
|
||||||
|
'int %s(const wxString& text);',
|
||||||
|
|
||||||
'''
|
'''
|
||||||
int %s(const wxString& text) {
|
int %s(const wxString& text) {
|
||||||
wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
|
wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
|
||||||
return SendMsg(%s, strlen(buf), (long)(const char*)buf);''',
|
return SendMsg(%s, strlen(buf), (long)(const char*)buf);''',
|
||||||
0),
|
0),
|
||||||
|
|
||||||
'ReplaceTargetRE' : (0,
|
'ReplaceTargetRE' :
|
||||||
'int %s(const wxString& text);',
|
(0,
|
||||||
|
'int %s(const wxString& text);',
|
||||||
|
|
||||||
'''
|
'''
|
||||||
int %s(const wxString& text) {
|
int %s(const wxString& text) {
|
||||||
wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
|
wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
|
||||||
return SendMsg(%s, strlen(buf), (long)(const char*)buf);''',
|
return SendMsg(%s, strlen(buf), (long)(const char*)buf);''',
|
||||||
0),
|
0),
|
||||||
|
|
||||||
'SearchInTarget' : (0,
|
'SearchInTarget' :
|
||||||
'int %s(const wxString& text);',
|
(0,
|
||||||
|
'int %s(const wxString& text);',
|
||||||
|
|
||||||
'''
|
'''
|
||||||
int %s(const wxString& text) {
|
int %s(const wxString& text) {
|
||||||
wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
|
wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
|
||||||
return SendMsg(%s, strlen(buf), (long)(const char*)buf);''',
|
return SendMsg(%s, strlen(buf), (long)(const char*)buf);''',
|
||||||
0),
|
0),
|
||||||
|
|
||||||
|
|
||||||
'GetDocPointer' : (0,
|
'GetDocPointer' :
|
||||||
'void* %s();',
|
(0,
|
||||||
'''void* %s() {
|
'void* %s();',
|
||||||
return (void*)SendMsg(%s);''',
|
'''void* %s() {
|
||||||
0),
|
return (void*)SendMsg(%s);''',
|
||||||
|
0),
|
||||||
|
|
||||||
'SetDocPointer' : (0,
|
'SetDocPointer' :
|
||||||
'void %s(void* docPointer);',
|
(0,
|
||||||
'''void %s(void* docPointer) {
|
'void %s(void* docPointer);',
|
||||||
SendMsg(%s, 0, (long)docPointer);''',
|
'''void %s(void* docPointer) {
|
||||||
0),
|
SendMsg(%s, 0, (long)docPointer);''',
|
||||||
|
0),
|
||||||
|
|
||||||
'CreateDocument' : (0,
|
'CreateDocument' :
|
||||||
'void* %s();',
|
(0,
|
||||||
'''void* %s() {
|
'void* %s();',
|
||||||
return (void*)SendMsg(%s);''',
|
'''void* %s() {
|
||||||
0),
|
return (void*)SendMsg(%s);''',
|
||||||
|
0),
|
||||||
|
|
||||||
'AddRefDocument' : (0,
|
'AddRefDocument' :
|
||||||
'void %s(void* docPointer);',
|
(0,
|
||||||
'''void %s(void* docPointer) {
|
'void %s(void* docPointer);',
|
||||||
SendMsg(%s, 0, (long)docPointer);''',
|
'''void %s(void* docPointer) {
|
||||||
0),
|
SendMsg(%s, 0, (long)docPointer);''',
|
||||||
|
0),
|
||||||
|
|
||||||
'ReleaseDocument' : (0,
|
'ReleaseDocument' :
|
||||||
'void %s(void* docPointer);',
|
(0,
|
||||||
'''void %s(void* docPointer) {
|
'void %s(void* docPointer);',
|
||||||
SendMsg(%s, 0, (long)docPointer);''',
|
'''void %s(void* docPointer) {
|
||||||
0),
|
SendMsg(%s, 0, (long)docPointer);''',
|
||||||
'SetCodePage' : (0,
|
0),
|
||||||
0,
|
|
||||||
'''void %s(int codePage) {
|
'SetCodePage' :
|
||||||
|
(0,
|
||||||
|
0,
|
||||||
|
'''void %s(int codePage) {
|
||||||
#if wxUSE_UNICODE
|
#if wxUSE_UNICODE
|
||||||
wxASSERT_MSG(codePage == wxSTC_CP_UTF8,
|
wxASSERT_MSG(codePage == wxSTC_CP_UTF8,
|
||||||
wxT("Only wxSTC_CP_UTF8 may be used when wxUSE_UNICODE is on."));
|
wxT("Only wxSTC_CP_UTF8 may be used when wxUSE_UNICODE is on."));
|
||||||
@@ -465,8 +542,8 @@ methodOverrideMap = {
|
|||||||
wxASSERT_MSG(codePage != wxSTC_CP_UTF8,
|
wxASSERT_MSG(codePage != wxSTC_CP_UTF8,
|
||||||
wxT("wxSTC_CP_UTF8 may not be used when wxUSE_UNICODE is off."));
|
wxT("wxSTC_CP_UTF8 may not be used when wxUSE_UNICODE is off."));
|
||||||
#endif
|
#endif
|
||||||
SendMsg(%s, codePage);''',
|
SendMsg(%s, codePage);''',
|
||||||
("Set the code page used to interpret the bytes of the document as characters.",) ),
|
("Set the code page used to interpret the bytes of the document as characters.",) ),
|
||||||
|
|
||||||
|
|
||||||
'GrabFocus' : (None, 0, 0, 0),
|
'GrabFocus' : (None, 0, 0, 0),
|
||||||
@@ -474,6 +551,9 @@ methodOverrideMap = {
|
|||||||
'GetFocus' : ('GetSTCFocus', 0, 0, 0),
|
'GetFocus' : ('GetSTCFocus', 0, 0, 0),
|
||||||
|
|
||||||
|
|
||||||
|
'LoadLexerLibrary' : (None, 0,0,0),
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Remove all methods that are key commands since they can be
|
# Remove all methods that are key commands since they can be
|
||||||
# executed with CmdKeyExecute
|
# executed with CmdKeyExecute
|
||||||
@@ -522,7 +602,16 @@ methodOverrideMap = {
|
|||||||
'LineScrollDown' : (None, 0, 0, 0),
|
'LineScrollDown' : (None, 0, 0, 0),
|
||||||
'LineScrollUp' : (None, 0, 0, 0),
|
'LineScrollUp' : (None, 0, 0, 0),
|
||||||
'DeleteBackNotLine' : (None, 0, 0, 0),
|
'DeleteBackNotLine' : (None, 0, 0, 0),
|
||||||
|
'HomeWrap' : (None, 0, 0, 0),
|
||||||
|
'HomeWrapExtend' : (None, 0, 0, 0),
|
||||||
|
'LineEndWrap' : (None, 0, 0, 0),
|
||||||
|
'LineEndWrapExtend' : (None, 0, 0, 0),
|
||||||
|
'VCHomeWrap' : (None, 0, 0, 0),
|
||||||
|
'VCHomeWrapExtend' : (None, 0, 0, 0),
|
||||||
|
'ParaDown' : (None, 0, 0, 0),
|
||||||
|
'ParaDownExtend' : (None, 0, 0, 0),
|
||||||
|
'ParaUp' : (None, 0, 0, 0),
|
||||||
|
'ParaUpExtend' : (None, 0, 0, 0),
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -19,7 +19,7 @@ S=$(SCINTILLA)\src
|
|||||||
|
|
||||||
STCEXTRACPPFLAGS=-D__WX__ -DSCI_LEXER -DLINK_LEXERS -I$(SCINTILLA)/include -I$(S)
|
STCEXTRACPPFLAGS=-D__WX__ -DSCI_LEXER -DLINK_LEXERS -I$(SCINTILLA)/include -I$(S)
|
||||||
|
|
||||||
LIBTARGET=$(WXDIR)\contrib\lib\stc.lib
|
LIBTARGET=$(WXDIR)\lib\stc.lib
|
||||||
|
|
||||||
OBJECTS = \
|
OBJECTS = \
|
||||||
AutoComplete.obj \
|
AutoComplete.obj \
|
||||||
@@ -34,17 +34,21 @@ OBJECTS = \
|
|||||||
KeyWords.obj \
|
KeyWords.obj \
|
||||||
LexAVE.obj \
|
LexAVE.obj \
|
||||||
LexAda.obj \
|
LexAda.obj \
|
||||||
|
LexAsm.obj \
|
||||||
LexBaan.obj \
|
LexBaan.obj \
|
||||||
LexBullant.obj \
|
LexBullant.obj \
|
||||||
LexMatlab.obj \
|
LexMatlab.obj \
|
||||||
LexCPP.obj \
|
LexCPP.obj \
|
||||||
LexConf.obj \
|
LexConf.obj \
|
||||||
LexCrontab.obj \
|
LexCrontab.obj \
|
||||||
|
LexCSS.obj \
|
||||||
LexEiffel.obj \
|
LexEiffel.obj \
|
||||||
|
LexFortran.obj \
|
||||||
LexHTML.obj \
|
LexHTML.obj \
|
||||||
LexLisp.obj \
|
LexLisp.obj \
|
||||||
LexLua.obj \
|
LexLua.obj \
|
||||||
LexOthers.obj \
|
LexOthers.obj \
|
||||||
|
LexPOV.obj \
|
||||||
LexPascal.obj \
|
LexPascal.obj \
|
||||||
LexPerl.obj \
|
LexPerl.obj \
|
||||||
LexPython.obj \
|
LexPython.obj \
|
||||||
@@ -60,17 +64,19 @@ OBJECTS = \
|
|||||||
UniConversion.obj \
|
UniConversion.obj \
|
||||||
ViewStyle.obj \
|
ViewStyle.obj \
|
||||||
WindowAccessor.obj \
|
WindowAccessor.obj \
|
||||||
|
XPM.obj \
|
||||||
\
|
\
|
||||||
PlatWX.obj \
|
PlatWX.obj \
|
||||||
ScintillaWX.obj \
|
ScintillaWX.obj \
|
||||||
stc.obj \
|
stc.obj \
|
||||||
|
|
||||||
|
|
||||||
STCCFG = stc.cfg
|
STCCFG = stc.cfg
|
||||||
STCCPPFLAGS=$(DLL_FLAGS) $(EXTRACPPFLAGS) @$(STCCFG)
|
STCCPPFLAGS=$(DLL_FLAGS) $(EXTRACPPFLAGS) @$(STCCFG)
|
||||||
|
|
||||||
default: $(STCCFG) $(LIBTARGET)
|
default: $(STCCFG) $(LIBTARGET)
|
||||||
|
|
||||||
cleancfg:
|
cleancfg:
|
||||||
del $(STCCFG)
|
del $(STCCFG)
|
||||||
|
|
||||||
{$(S)}.cxx.obj:
|
{$(S)}.cxx.obj:
|
||||||
@@ -89,7 +95,6 @@ $(STCCFG): makefile.b32
|
|||||||
-w-par
|
-w-par
|
||||||
-w-aus
|
-w-aus
|
||||||
-w-hid # virtual function A hides virtual function B
|
-w-hid # virtual function A hides virtual function B
|
||||||
-WE
|
|
||||||
-tWM
|
-tWM
|
||||||
|
|
||||||
-I$(WXINC);$(BCCDIR)\include;$(WXDIR)/src/generic;$(WXDIR)/src/png;$(WXDIR)/src/jpeg;$(WXDIR)/src/zlib;$(WXDIR)/src/xpm;$(WXDIR)/src/tiff
|
-I$(WXINC);$(BCCDIR)\include;$(WXDIR)/src/generic;$(WXDIR)/src/png;$(WXDIR)/src/jpeg;$(WXDIR)/src/zlib;$(WXDIR)/src/xpm;$(WXDIR)/src/tiff
|
||||||
|
@@ -22,17 +22,21 @@ OBJECTS = \
|
|||||||
$(S)/KeyWords.$(OBJSUFF) \
|
$(S)/KeyWords.$(OBJSUFF) \
|
||||||
$(S)/LexAVE.$(OBJSUFF) \
|
$(S)/LexAVE.$(OBJSUFF) \
|
||||||
$(S)/LexAda.$(OBJSUFF) \
|
$(S)/LexAda.$(OBJSUFF) \
|
||||||
|
$(S)/LexAsm.$(OBJSUFF) \
|
||||||
$(S)/LexBaan.$(OBJSUFF) \
|
$(S)/LexBaan.$(OBJSUFF) \
|
||||||
$(S)/LexBullant.$(OBJSUFF) \
|
$(S)/LexBullant.$(OBJSUFF) \
|
||||||
$(S)/LexMatlab.$(OBJSUFF) \
|
$(S)/LexMatlab.$(OBJSUFF) \
|
||||||
$(S)/LexCPP.$(OBJSUFF) \
|
$(S)/LexCPP.$(OBJSUFF) \
|
||||||
$(S)/LexConf.$(OBJSUFF) \
|
$(S)/LexConf.$(OBJSUFF) \
|
||||||
$(S)/LexCrontab.$(OBJSUFF) \
|
$(S)/LexCrontab.$(OBJSUFF) \
|
||||||
|
$(S)/LexCSS.$(OBJSUFF) \
|
||||||
$(S)/LexEiffel.$(OBJSUFF) \
|
$(S)/LexEiffel.$(OBJSUFF) \
|
||||||
|
$(S)/LexFortran.$(OBJSUFF) \
|
||||||
$(S)/LexHTML.$(OBJSUFF) \
|
$(S)/LexHTML.$(OBJSUFF) \
|
||||||
$(S)/LexLisp.$(OBJSUFF) \
|
$(S)/LexLisp.$(OBJSUFF) \
|
||||||
$(S)/LexLua.$(OBJSUFF) \
|
$(S)/LexLua.$(OBJSUFF) \
|
||||||
$(S)/LexOthers.$(OBJSUFF) \
|
$(S)/LexOthers.$(OBJSUFF) \
|
||||||
|
$(S)/LexPOV.$(OBJSUFF) \
|
||||||
$(S)/LexPascal.$(OBJSUFF) \
|
$(S)/LexPascal.$(OBJSUFF) \
|
||||||
$(S)/LexPerl.$(OBJSUFF) \
|
$(S)/LexPerl.$(OBJSUFF) \
|
||||||
$(S)/LexPython.$(OBJSUFF) \
|
$(S)/LexPython.$(OBJSUFF) \
|
||||||
@@ -48,11 +52,13 @@ OBJECTS = \
|
|||||||
$(S)/UniConversion.$(OBJSUFF) \
|
$(S)/UniConversion.$(OBJSUFF) \
|
||||||
$(S)/ViewStyle.$(OBJSUFF) \
|
$(S)/ViewStyle.$(OBJSUFF) \
|
||||||
$(S)/WindowAccessor.$(OBJSUFF) \
|
$(S)/WindowAccessor.$(OBJSUFF) \
|
||||||
|
$(S)/XPM.$(OBJSUFF) \
|
||||||
\
|
\
|
||||||
PlatWX.$(OBJSUFF) \
|
PlatWX.$(OBJSUFF) \
|
||||||
ScintillaWX.$(OBJSUFF) \
|
ScintillaWX.$(OBJSUFF) \
|
||||||
stc.$(OBJSUFF)
|
stc.$(OBJSUFF)
|
||||||
|
|
||||||
|
|
||||||
LIBTARGET = $(WXDIR)/lib/libstc.a
|
LIBTARGET = $(WXDIR)/lib/libstc.a
|
||||||
|
|
||||||
include $(WXDIR)/src/makelib.g95
|
include $(WXDIR)/src/makelib.g95
|
@@ -27,17 +27,21 @@ OBJECTS = \
|
|||||||
$(D)\KeyWords.obj \
|
$(D)\KeyWords.obj \
|
||||||
$(D)\LexAVE.obj \
|
$(D)\LexAVE.obj \
|
||||||
$(D)\LexAda.obj \
|
$(D)\LexAda.obj \
|
||||||
|
$(D)\LexAsm.obj \
|
||||||
$(D)\LexBaan.obj \
|
$(D)\LexBaan.obj \
|
||||||
$(D)\LexBullant.obj \
|
$(D)\LexBullant.obj \
|
||||||
$(D)\LexMatlab.obj \
|
$(D)\LexMatlab.obj \
|
||||||
$(D)\LexCPP.obj \
|
$(D)\LexCPP.obj \
|
||||||
$(D)\LexConf.obj \
|
$(D)\LexConf.obj \
|
||||||
$(D)\LexCrontab.obj \
|
$(D)\LexCrontab.obj \
|
||||||
|
$(D)\LexCSS.obj \
|
||||||
$(D)\LexEiffel.obj \
|
$(D)\LexEiffel.obj \
|
||||||
|
$(D)\LexFortran.obj \
|
||||||
$(D)\LexHTML.obj \
|
$(D)\LexHTML.obj \
|
||||||
$(D)\LexLisp.obj \
|
$(D)\LexLisp.obj \
|
||||||
$(D)\LexLua.obj \
|
$(D)\LexLua.obj \
|
||||||
$(D)\LexOthers.obj \
|
$(D)\LexOthers.obj \
|
||||||
|
$(D)\LexPOV.obj \
|
||||||
$(D)\LexPascal.obj \
|
$(D)\LexPascal.obj \
|
||||||
$(D)\LexPerl.obj \
|
$(D)\LexPerl.obj \
|
||||||
$(D)\LexPython.obj \
|
$(D)\LexPython.obj \
|
||||||
@@ -53,6 +57,7 @@ OBJECTS = \
|
|||||||
$(D)\UniConversion.obj \
|
$(D)\UniConversion.obj \
|
||||||
$(D)\ViewStyle.obj \
|
$(D)\ViewStyle.obj \
|
||||||
$(D)\WindowAccessor.obj \
|
$(D)\WindowAccessor.obj \
|
||||||
|
$(D)\XPM.obj \
|
||||||
\
|
\
|
||||||
$(D)\PlatWX.obj \
|
$(D)\PlatWX.obj \
|
||||||
$(D)\ScintillaWX.obj \
|
$(D)\ScintillaWX.obj \
|
||||||
|
88
contrib/src/stc/makefile.wat
Normal file
88
contrib/src/stc/makefile.wat
Normal file
@@ -0,0 +1,88 @@
|
|||||||
|
# STC makefile for Watcom C++
|
||||||
|
|
||||||
|
WXDIR = ..\..\..
|
||||||
|
|
||||||
|
SCINTILLA=$(WXDIR)\contrib\src\stc\scintilla
|
||||||
|
S=$(SCINTILLA)\src
|
||||||
|
STCEXTRACPPFLAGS=-D__WX__ -DSCI_LEXER -DLINK_LEXERS -I$(SCINTILLA)\include -I$(S)
|
||||||
|
|
||||||
|
EXTRACPPFLAGS = -I$(WXDIR)\contrib\include $(STCEXTRACPPFLAGS)
|
||||||
|
|
||||||
|
!include $(WXDIR)\src\makewat.env
|
||||||
|
|
||||||
|
STCLIB = $(WXDIR)\lib\stc_w.lib
|
||||||
|
THISDIR = $(WXDIR)\contrib\src\stc
|
||||||
|
OUTPUTDIR = $(THISDIR)\
|
||||||
|
|
||||||
|
|
||||||
|
NAME = stc
|
||||||
|
LNK = $(name).lnk
|
||||||
|
|
||||||
|
OBJECTS = &
|
||||||
|
AutoComplete.obj &
|
||||||
|
CallTip.obj &
|
||||||
|
CellBuffer.obj &
|
||||||
|
ContractionState.obj &
|
||||||
|
Document.obj &
|
||||||
|
DocumentAccessor.obj &
|
||||||
|
Editor.obj &
|
||||||
|
Indicator.obj &
|
||||||
|
KeyMap.obj &
|
||||||
|
KeyWords.obj &
|
||||||
|
LexAVE.obj &
|
||||||
|
LexAda.obj &
|
||||||
|
LexAsm.obj &
|
||||||
|
LexBaan.obj &
|
||||||
|
LexBullant.obj &
|
||||||
|
LexMatlab.obj &
|
||||||
|
LexCPP.obj &
|
||||||
|
LexConf.obj &
|
||||||
|
LexCrontab.obj &
|
||||||
|
LexCSS.obj &
|
||||||
|
LexEiffel.obj &
|
||||||
|
LexFortran.obj &
|
||||||
|
LexHTML.obj &
|
||||||
|
LexLisp.obj &
|
||||||
|
LexLua.obj &
|
||||||
|
LexOthers.obj &
|
||||||
|
LexPOV.obj &
|
||||||
|
LexPascal.obj &
|
||||||
|
LexPerl.obj &
|
||||||
|
LexPython.obj &
|
||||||
|
LexRuby.obj &
|
||||||
|
LexSQL.obj &
|
||||||
|
LexVB.obj &
|
||||||
|
LineMarker.obj &
|
||||||
|
PropSet.obj &
|
||||||
|
RESearch.obj &
|
||||||
|
ScintillaBase.obj &
|
||||||
|
Style.obj &
|
||||||
|
StyleContext.obj &
|
||||||
|
UniConversion.obj &
|
||||||
|
ViewStyle.obj &
|
||||||
|
WindowAccessor.obj &
|
||||||
|
XPM.obj &
|
||||||
|
PlatWX.obj &
|
||||||
|
ScintillaWX.obj &
|
||||||
|
stc.obj
|
||||||
|
|
||||||
|
all: $(STCLIB) .SYMBOLIC
|
||||||
|
|
||||||
|
$(STCLIB): $(OBJECTS)
|
||||||
|
*wlib /b /c /n /P=256 $(STCLIB) $(OBJECTS)
|
||||||
|
|
||||||
|
clean: .SYMBOLIC
|
||||||
|
-erase *.obj
|
||||||
|
-erase *.bak
|
||||||
|
-erase *.err
|
||||||
|
-erase *.pch
|
||||||
|
-erase $(STCLIB)
|
||||||
|
-erase *.lbc
|
||||||
|
|
||||||
|
.EXTENSIONS: .cxx
|
||||||
|
.cxx: $(S)
|
||||||
|
|
||||||
|
.cxx.obj:
|
||||||
|
$(CXX) $[*.cxx $(CXXFLAGS) $(STCEXTRACPPFLAGS)
|
||||||
|
|
||||||
|
|
20
contrib/src/stc/scintilla/License.txt
Normal file
20
contrib/src/stc/scintilla/License.txt
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
License for Scintilla and SciTE
|
||||||
|
|
||||||
|
Copyright 1998-2003 by Neil Hodgson <neilh@scintilla.org>
|
||||||
|
|
||||||
|
All Rights Reserved
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and distribute this software and its
|
||||||
|
documentation for any purpose and without fee is hereby granted,
|
||||||
|
provided that the above copyright notice appear in all copies and that
|
||||||
|
both that copyright notice and this permission notice appear in
|
||||||
|
supporting documentation.
|
||||||
|
|
||||||
|
NEIL HODGSON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
|
||||||
|
SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
AND FITNESS, IN NO EVENT SHALL NEIL HODGSON BE LIABLE FOR ANY
|
||||||
|
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||||
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
||||||
|
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
||||||
|
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
|
||||||
|
OR PERFORMANCE OF THIS SOFTWARE.
|
@@ -3,5 +3,4 @@ scintilla/include directories from the Scintilla/SCiTE source
|
|||||||
distribution. All other code needed to implement Scintilla on top of
|
distribution. All other code needed to implement Scintilla on top of
|
||||||
wxWindows is located in the directory above this one.
|
wxWindows is located in the directory above this one.
|
||||||
|
|
||||||
The current version of the Scintilla code is 1.48
|
The current version of the Scintilla code is 1.52
|
||||||
|
|
||||||
|
@@ -25,7 +25,7 @@ protected:
|
|||||||
char buf[bufferSize+1];
|
char buf[bufferSize+1];
|
||||||
int startPos;
|
int startPos;
|
||||||
int endPos;
|
int endPos;
|
||||||
int codePage;
|
int codePage;
|
||||||
|
|
||||||
virtual bool InternalIsLeadByte(char ch)=0;
|
virtual bool InternalIsLeadByte(char ch)=0;
|
||||||
virtual void Fill(int position)=0;
|
virtual void Fill(int position)=0;
|
||||||
@@ -44,7 +44,7 @@ public:
|
|||||||
if (position < startPos || position >= endPos) {
|
if (position < startPos || position >= endPos) {
|
||||||
Fill(position);
|
Fill(position);
|
||||||
if (position < startPos || position >= endPos) {
|
if (position < startPos || position >= endPos) {
|
||||||
// Position is outside range of document
|
// Position is outside range of document
|
||||||
return chDefault;
|
return chDefault;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
typedef void (*LexerFunction)(unsigned int startPos, int lengthDoc, int initStyle,
|
typedef void (*LexerFunction)(unsigned int startPos, int lengthDoc, int initStyle,
|
||||||
WordList *keywordlists[], Accessor &styler);
|
WordList *keywordlists[], Accessor &styler);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A LexerModule is responsible for lexing and folding a particular language.
|
* A LexerModule is responsible for lexing and folding a particular language.
|
||||||
* The class maintains a list of LexerModules which can be searched to find a
|
* The class maintains a list of LexerModules which can be searched to find a
|
||||||
@@ -26,7 +26,7 @@ protected:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
const char *languageName;
|
const char *languageName;
|
||||||
LexerModule(int language_, LexerFunction fnLexer_,
|
LexerModule(int language_, LexerFunction fnLexer_,
|
||||||
const char *languageName_=0, LexerFunction fnFolder_=0,
|
const char *languageName_=0, LexerFunction fnFolder_=0,
|
||||||
const char * const wordListDescriptions_[] = NULL);
|
const char * const wordListDescriptions_[] = NULL);
|
||||||
int GetLanguage() const { return language; }
|
int GetLanguage() const { return language; }
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
** Interface to platform facilities. Also includes some basic utilities.
|
** Interface to platform facilities. Also includes some basic utilities.
|
||||||
** Implemented in PlatGTK.cxx for GTK+/Linux, PlatWin.cxx for Windows, and PlatWX.cxx for wxWindows.
|
** Implemented in PlatGTK.cxx for GTK+/Linux, PlatWin.cxx for Windows, and PlatWX.cxx for wxWindows.
|
||||||
**/
|
**/
|
||||||
// Copyright 1998-2002 by Neil Hodgson <neilh@scintilla.org>
|
// Copyright 1998-2003 by Neil Hodgson <neilh@scintilla.org>
|
||||||
// The License.txt file describes the conditions under which this software may be distributed.
|
// The License.txt file describes the conditions under which this software may be distributed.
|
||||||
|
|
||||||
#ifndef PLATFORM_H
|
#ifndef PLATFORM_H
|
||||||
@@ -109,6 +109,12 @@ public:
|
|||||||
return (right > other.left) && (left < other.right) &&
|
return (right > other.left) && (left < other.right) &&
|
||||||
(bottom > other.top) && (top < other.bottom);
|
(bottom > other.top) && (top < other.bottom);
|
||||||
}
|
}
|
||||||
|
void Move(int xDelta, int yDelta) {
|
||||||
|
left += xDelta;
|
||||||
|
top += yDelta;
|
||||||
|
right += xDelta;
|
||||||
|
bottom += yDelta;
|
||||||
|
}
|
||||||
int Width() { return right - left; }
|
int Width() { return right - left; }
|
||||||
int Height() { return bottom - top; }
|
int Height() { return bottom - top; }
|
||||||
};
|
};
|
||||||
@@ -136,7 +142,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
ColourDesired(unsigned int red, unsigned int green, unsigned int blue) {
|
ColourDesired(unsigned int red, unsigned int green, unsigned int blue) {
|
||||||
co = red | (green << 8) | (blue << 16);
|
Set(red, green, blue);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator==(const ColourDesired &other) const {
|
bool operator==(const ColourDesired &other) const {
|
||||||
@@ -147,6 +153,31 @@ public:
|
|||||||
co = lcol;
|
co = lcol;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Set(unsigned int red, unsigned int green, unsigned int blue) {
|
||||||
|
co = red | (green << 8) | (blue << 16);
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline unsigned int ValueOfHex(const char ch) {
|
||||||
|
if (ch >= '0' && ch <= '9')
|
||||||
|
return ch - '0';
|
||||||
|
else if (ch >= 'A' && ch <= 'F')
|
||||||
|
return ch - 'A' + 10;
|
||||||
|
else if (ch >= 'a' && ch <= 'f')
|
||||||
|
return ch - 'a' + 10;
|
||||||
|
else
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void Set(const char *val) {
|
||||||
|
if (*val == '#') {
|
||||||
|
val++;
|
||||||
|
}
|
||||||
|
unsigned int r = ValueOfHex(val[0]) * 16 + ValueOfHex(val[1]);
|
||||||
|
unsigned int g = ValueOfHex(val[2]) * 16 + ValueOfHex(val[3]);
|
||||||
|
unsigned int b = ValueOfHex(val[4]) * 16 + ValueOfHex(val[5]);
|
||||||
|
Set(r, g, b);
|
||||||
|
}
|
||||||
|
|
||||||
long AsLong() const {
|
long AsLong() const {
|
||||||
return co;
|
return co;
|
||||||
}
|
}
|
||||||
@@ -196,6 +227,9 @@ struct ColourPair {
|
|||||||
desired = desired_;
|
desired = desired_;
|
||||||
allocated.Set(desired.AsLong());
|
allocated.Set(desired.AsLong());
|
||||||
}
|
}
|
||||||
|
void Copy() {
|
||||||
|
allocated.Set(desired.AsLong());
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
class Window; // Forward declaration for Palette
|
class Window; // Forward declaration for Palette
|
||||||
@@ -271,9 +305,9 @@ public:
|
|||||||
virtual ~Surface() {};
|
virtual ~Surface() {};
|
||||||
static Surface *Allocate();
|
static Surface *Allocate();
|
||||||
|
|
||||||
virtual void Init()=0;
|
virtual void Init(WindowID wid)=0;
|
||||||
virtual void Init(SurfaceID sid)=0;
|
virtual void Init(SurfaceID sid, WindowID wid)=0;
|
||||||
virtual void InitPixMap(int width, int height, Surface *surface_)=0;
|
virtual void InitPixMap(int width, int height, Surface *surface_, WindowID wid)=0;
|
||||||
|
|
||||||
virtual void Release()=0;
|
virtual void Release()=0;
|
||||||
virtual bool Initialised()=0;
|
virtual bool Initialised()=0;
|
||||||
@@ -292,6 +326,7 @@ public:
|
|||||||
|
|
||||||
virtual void DrawTextNoClip(PRectangle rc, Font &font_, int ybase, const char *s, int len, ColourAllocated fore, ColourAllocated back)=0;
|
virtual void DrawTextNoClip(PRectangle rc, Font &font_, int ybase, const char *s, int len, ColourAllocated fore, ColourAllocated back)=0;
|
||||||
virtual void DrawTextClipped(PRectangle rc, Font &font_, int ybase, const char *s, int len, ColourAllocated fore, ColourAllocated back)=0;
|
virtual void DrawTextClipped(PRectangle rc, Font &font_, int ybase, const char *s, int len, ColourAllocated fore, ColourAllocated back)=0;
|
||||||
|
virtual void DrawTextTransparent(PRectangle rc, Font &font_, int ybase, const char *s, int len, ColourAllocated fore)=0;
|
||||||
virtual void MeasureWidths(Font &font_, const char *s, int len, int *positions)=0;
|
virtual void MeasureWidths(Font &font_, const char *s, int len, int *positions)=0;
|
||||||
virtual int WidthText(Font &font_, const char *s, int len)=0;
|
virtual int WidthText(Font &font_, const char *s, int len)=0;
|
||||||
virtual int WidthChar(Font &font_, char ch)=0;
|
virtual int WidthChar(Font &font_, char ch)=0;
|
||||||
@@ -307,6 +342,7 @@ public:
|
|||||||
virtual void FlushCachedState()=0;
|
virtual void FlushCachedState()=0;
|
||||||
|
|
||||||
virtual void SetUnicodeMode(bool unicodeMode_)=0;
|
virtual void SetUnicodeMode(bool unicodeMode_)=0;
|
||||||
|
virtual void SetDBCSMode(int codePage)=0;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -329,8 +365,8 @@ public:
|
|||||||
id = id_;
|
id = id_;
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
WindowID GetID() { return id; }
|
WindowID GetID() const { return id; }
|
||||||
bool Created() { return id != 0; }
|
bool Created() const { return id != 0; }
|
||||||
void Destroy();
|
void Destroy();
|
||||||
bool HasFocus();
|
bool HasFocus();
|
||||||
PRectangle GetPosition();
|
PRectangle GetPosition();
|
||||||
@@ -341,7 +377,7 @@ public:
|
|||||||
void InvalidateAll();
|
void InvalidateAll();
|
||||||
void InvalidateRectangle(PRectangle rc);
|
void InvalidateRectangle(PRectangle rc);
|
||||||
virtual void SetFont(Font &font);
|
virtual void SetFont(Font &font);
|
||||||
enum Cursor { cursorInvalid, cursorText, cursorArrow, cursorUp, cursorWait, cursorHoriz, cursorVert, cursorReverseArrow };
|
enum Cursor { cursorInvalid, cursorText, cursorArrow, cursorUp, cursorWait, cursorHoriz, cursorVert, cursorReverseArrow, cursorHand };
|
||||||
void SetCursor(Cursor curs);
|
void SetCursor(Cursor curs);
|
||||||
void SetTitle(const char *s);
|
void SetTitle(const char *s);
|
||||||
private:
|
private:
|
||||||
@@ -353,38 +389,28 @@ private:
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
class ListBox : public Window {
|
class ListBox : public Window {
|
||||||
private:
|
|
||||||
#if PLAT_GTK
|
|
||||||
WindowID list;
|
|
||||||
WindowID scroller;
|
|
||||||
int current;
|
|
||||||
#endif
|
|
||||||
int desiredVisibleRows;
|
|
||||||
unsigned int maxItemCharacters;
|
|
||||||
unsigned int aveCharWidth;
|
|
||||||
public:
|
|
||||||
CallBackAction doubleClickAction;
|
|
||||||
void *doubleClickActionData;
|
|
||||||
public:
|
public:
|
||||||
ListBox();
|
ListBox();
|
||||||
virtual ~ListBox();
|
virtual ~ListBox();
|
||||||
void Create(Window &parent, int ctrlID);
|
static ListBox *Allocate();
|
||||||
virtual void SetFont(Font &font);
|
|
||||||
void SetAverageCharWidth(int width);
|
virtual void SetFont(Font &font)=0;
|
||||||
void SetVisibleRows(int rows);
|
virtual void Create(Window &parent, int ctrlID, int lineHeight_, bool unicodeMode_)=0;
|
||||||
PRectangle GetDesiredRect();
|
virtual void SetAverageCharWidth(int width)=0;
|
||||||
void Clear();
|
virtual void SetVisibleRows(int rows)=0;
|
||||||
void Append(char *s);
|
virtual PRectangle GetDesiredRect()=0;
|
||||||
int Length();
|
virtual int CaretFromEdge()=0;
|
||||||
void Select(int n);
|
virtual void Clear()=0;
|
||||||
int GetSelection();
|
virtual void Append(char *s, int type = -1)=0;
|
||||||
int Find(const char *prefix);
|
virtual int Length()=0;
|
||||||
void GetValue(int n, char *value, int len);
|
virtual void Select(int n)=0;
|
||||||
void Sort();
|
virtual int GetSelection()=0;
|
||||||
void SetDoubleClickAction(CallBackAction action, void *data) {
|
virtual int Find(const char *prefix)=0;
|
||||||
doubleClickAction = action;
|
virtual void GetValue(int n, char *value, int len)=0;
|
||||||
doubleClickActionData = data;
|
virtual void Sort()=0;
|
||||||
}
|
virtual void RegisterImage(int type, const char *xpm_data)=0;
|
||||||
|
virtual void ClearRegisteredImages()=0;
|
||||||
|
virtual void SetDoubleClickAction(CallBackAction, void *)=0;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -426,6 +452,7 @@ public:
|
|||||||
static const char *DefaultFont();
|
static const char *DefaultFont();
|
||||||
static int DefaultFontSize();
|
static int DefaultFontSize();
|
||||||
static unsigned int DoubleClickTime();
|
static unsigned int DoubleClickTime();
|
||||||
|
static bool MouseButtonBounce();
|
||||||
static void DebugDisplay(const char *s);
|
static void DebugDisplay(const char *s);
|
||||||
static bool IsKeyDown(int key);
|
static bool IsKeyDown(int key);
|
||||||
static long SendScintilla(
|
static long SendScintilla(
|
||||||
@@ -433,6 +460,8 @@ public:
|
|||||||
static long SendScintillaPointer(
|
static long SendScintillaPointer(
|
||||||
WindowID w, unsigned int msg, unsigned long wParam=0, void *lParam=0);
|
WindowID w, unsigned int msg, unsigned long wParam=0, void *lParam=0);
|
||||||
static bool IsDBCSLeadByte(int codePage, char ch);
|
static bool IsDBCSLeadByte(int codePage, char ch);
|
||||||
|
static int DBCSCharLength(int codePage, const char *s);
|
||||||
|
static int DBCSCharMaxLength();
|
||||||
|
|
||||||
// These are utility functions not really tied to a platform
|
// These are utility functions not really tied to a platform
|
||||||
static int Minimum(int a, int b);
|
static int Minimum(int a, int b);
|
||||||
|
@@ -60,7 +60,7 @@ public:
|
|||||||
bool onlyLineEnds; ///< Delimited by any white space or only line ends
|
bool onlyLineEnds; ///< Delimited by any white space or only line ends
|
||||||
bool sorted;
|
bool sorted;
|
||||||
int starts[256];
|
int starts[256];
|
||||||
WordList(bool onlyLineEnds_ = false) :
|
WordList(bool onlyLineEnds_ = false) :
|
||||||
words(0), wordsNoCase(0), list(0), len(0), onlyLineEnds(onlyLineEnds_), sorted(false) {}
|
words(0), wordsNoCase(0), list(0), len(0), onlyLineEnds(onlyLineEnds_), sorted(false) {}
|
||||||
~WordList() { Clear(); }
|
~WordList() { Clear(); }
|
||||||
operator bool() { return len ? true : false; }
|
operator bool() { return len ? true : false; }
|
||||||
@@ -70,9 +70,9 @@ public:
|
|||||||
char *Allocate(int size);
|
char *Allocate(int size);
|
||||||
void SetFromAllocated();
|
void SetFromAllocated();
|
||||||
bool InList(const char *s);
|
bool InList(const char *s);
|
||||||
const char *GetNearestWord(const char *wordStart, int searchLen = -1,
|
const char *GetNearestWord(const char *wordStart, int searchLen = -1,
|
||||||
bool ignoreCase = false, SString wordCharacters="");
|
bool ignoreCase = false, SString wordCharacters="");
|
||||||
char *GetNearestWords(const char *wordStart, int searchLen=-1,
|
char *GetNearestWords(const char *wordStart, int searchLen=-1,
|
||||||
bool ignoreCase=false, char otherSeparator='\0');
|
bool ignoreCase=false, char otherSeparator='\0');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -238,7 +238,7 @@ public:
|
|||||||
return append(sOther, static_cast<lenpos_t>(measure_length));
|
return append(sOther, static_cast<lenpos_t>(measure_length));
|
||||||
}
|
}
|
||||||
SString &operator+=(const SString &sOther) {
|
SString &operator+=(const SString &sOther) {
|
||||||
return append(sOther.s, sOther.sSize);
|
return append(sOther.s, sOther.sLen);
|
||||||
}
|
}
|
||||||
SString &operator+=(char ch) {
|
SString &operator+=(char ch) {
|
||||||
return append(&ch, 1);
|
return append(&ch, 1);
|
||||||
@@ -369,11 +369,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
inline char *StringDup(
|
inline char *StringDup(
|
||||||
const char *s, ///< The string to duplicate
|
const char *s, ///< The string to duplicate
|
||||||
/* gcc 2.96 doesn't seem to like this syntax: gives
|
SString::lenpos_t len=SString::measure_length) ///< The length of memory to allocate. Optional.
|
||||||
'non-local function uses anonymous type'
|
|
||||||
SString::lenpos_t len=SString::measure_length) ///< The length of memory to allocate. Optional.
|
|
||||||
*/
|
|
||||||
SString::lenpos_t len=0xffffffffU) ///< The length of memory to allocate. Optional.
|
|
||||||
{
|
{
|
||||||
return SString::StringAllocate(s, len);
|
return SString::StringAllocate(s, len);
|
||||||
}
|
}
|
||||||
|
@@ -48,6 +48,12 @@
|
|||||||
#define SCLEX_BAAN 31
|
#define SCLEX_BAAN 31
|
||||||
#define SCLEX_MATLAB 32
|
#define SCLEX_MATLAB 32
|
||||||
#define SCLEX_SCRIPTOL 33
|
#define SCLEX_SCRIPTOL 33
|
||||||
|
#define SCLEX_ASM 34
|
||||||
|
#define SCLEX_CPPNOCASE 35
|
||||||
|
#define SCLEX_FORTRAN 36
|
||||||
|
#define SCLEX_F77 37
|
||||||
|
#define SCLEX_CSS 38
|
||||||
|
#define SCLEX_POV 39
|
||||||
#define SCLEX_AUTOMATIC 1000
|
#define SCLEX_AUTOMATIC 1000
|
||||||
#define SCE_P_DEFAULT 0
|
#define SCE_P_DEFAULT 0
|
||||||
#define SCE_P_COMMENTLINE 1
|
#define SCE_P_COMMENTLINE 1
|
||||||
@@ -273,6 +279,9 @@
|
|||||||
#define SCE_ERR_DIFF_ADDITION 11
|
#define SCE_ERR_DIFF_ADDITION 11
|
||||||
#define SCE_ERR_DIFF_DELETION 12
|
#define SCE_ERR_DIFF_DELETION 12
|
||||||
#define SCE_ERR_DIFF_MESSAGE 13
|
#define SCE_ERR_DIFF_MESSAGE 13
|
||||||
|
#define SCE_ERR_PHP 14
|
||||||
|
#define SCE_ERR_ELF 15
|
||||||
|
#define SCE_ERR_IFC 16
|
||||||
#define SCE_BAT_DEFAULT 0
|
#define SCE_BAT_DEFAULT 0
|
||||||
#define SCE_BAT_COMMENT 1
|
#define SCE_BAT_COMMENT 1
|
||||||
#define SCE_BAT_WORD 2
|
#define SCE_BAT_WORD 2
|
||||||
@@ -309,22 +318,29 @@
|
|||||||
#define SCE_AVE_COMMENT 1
|
#define SCE_AVE_COMMENT 1
|
||||||
#define SCE_AVE_NUMBER 2
|
#define SCE_AVE_NUMBER 2
|
||||||
#define SCE_AVE_WORD 3
|
#define SCE_AVE_WORD 3
|
||||||
#define SCE_AVE_KEYWORD 4
|
|
||||||
#define SCE_AVE_STATEMENT 5
|
|
||||||
#define SCE_AVE_STRING 6
|
#define SCE_AVE_STRING 6
|
||||||
#define SCE_AVE_ENUM 7
|
#define SCE_AVE_ENUM 7
|
||||||
#define SCE_AVE_STRINGEOL 8
|
#define SCE_AVE_STRINGEOL 8
|
||||||
#define SCE_AVE_IDENTIFIER 9
|
#define SCE_AVE_IDENTIFIER 9
|
||||||
#define SCE_AVE_OPERATOR 10
|
#define SCE_AVE_OPERATOR 10
|
||||||
|
#define SCE_AVE_WORD1 11
|
||||||
|
#define SCE_AVE_WORD2 12
|
||||||
|
#define SCE_AVE_WORD3 13
|
||||||
|
#define SCE_AVE_WORD4 14
|
||||||
|
#define SCE_AVE_WORD5 15
|
||||||
|
#define SCE_AVE_WORD6 16
|
||||||
#define SCE_ADA_DEFAULT 0
|
#define SCE_ADA_DEFAULT 0
|
||||||
#define SCE_ADA_COMMENT 1
|
#define SCE_ADA_WORD 1
|
||||||
#define SCE_ADA_NUMBER 2
|
#define SCE_ADA_IDENTIFIER 2
|
||||||
#define SCE_ADA_WORD 3
|
#define SCE_ADA_NUMBER 3
|
||||||
#define SCE_ADA_STRING 4
|
#define SCE_ADA_DELIMITER 4
|
||||||
#define SCE_ADA_CHARACTER 5
|
#define SCE_ADA_CHARACTER 5
|
||||||
#define SCE_ADA_OPERATOR 6
|
#define SCE_ADA_CHARACTEREOL 6
|
||||||
#define SCE_ADA_IDENTIFIER 7
|
#define SCE_ADA_STRING 7
|
||||||
#define SCE_ADA_STRINGEOL 8
|
#define SCE_ADA_STRINGEOL 8
|
||||||
|
#define SCE_ADA_LABEL 9
|
||||||
|
#define SCE_ADA_COMMENTLINE 10
|
||||||
|
#define SCE_ADA_ILLEGAL 11
|
||||||
#define SCE_BAAN_DEFAULT 0
|
#define SCE_BAAN_DEFAULT 0
|
||||||
#define SCE_BAAN_COMMENT 1
|
#define SCE_BAAN_COMMENT 1
|
||||||
#define SCE_BAAN_COMMENTDOC 2
|
#define SCE_BAAN_COMMENTDOC 2
|
||||||
@@ -392,6 +408,58 @@
|
|||||||
#define SCE_SCRIPTOL_COMMENTDOCKEYWORD 17
|
#define SCE_SCRIPTOL_COMMENTDOCKEYWORD 17
|
||||||
#define SCE_SCRIPTOL_COMMENTDOCKEYWORDERROR 18
|
#define SCE_SCRIPTOL_COMMENTDOCKEYWORDERROR 18
|
||||||
#define SCE_SCRIPTOL_COMMENTBASIC 19
|
#define SCE_SCRIPTOL_COMMENTBASIC 19
|
||||||
|
#define SCE_ASM_DEFAULT 0
|
||||||
|
#define SCE_ASM_COMMENT 1
|
||||||
|
#define SCE_ASM_NUMBER 2
|
||||||
|
#define SCE_ASM_STRING 3
|
||||||
|
#define SCE_ASM_OPERATOR 4
|
||||||
|
#define SCE_ASM_IDENTIFIER 5
|
||||||
|
#define SCE_ASM_CPUINSTRUCTION 6
|
||||||
|
#define SCE_ASM_MATHINSTRUCTION 7
|
||||||
|
#define SCE_ASM_REGISTER 8
|
||||||
|
#define SCE_ASM_DIRECTIVE 9
|
||||||
|
#define SCE_ASM_DIRECTIVEOPERAND 10
|
||||||
|
#define SCE_F_DEFAULT 0
|
||||||
|
#define SCE_F_COMMENT 1
|
||||||
|
#define SCE_F_NUMBER 2
|
||||||
|
#define SCE_F_STRING1 3
|
||||||
|
#define SCE_F_STRING2 4
|
||||||
|
#define SCE_F_STRINGEOL 5
|
||||||
|
#define SCE_F_OPERATOR 6
|
||||||
|
#define SCE_F_IDENTIFIER 7
|
||||||
|
#define SCE_F_WORD 8
|
||||||
|
#define SCE_F_WORD2 9
|
||||||
|
#define SCE_F_WORD3 10
|
||||||
|
#define SCE_F_PREPROCESSOR 11
|
||||||
|
#define SCE_F_OPERATOR2 12
|
||||||
|
#define SCE_F_LABEL 13
|
||||||
|
#define SCE_F_CONTINUATION 14
|
||||||
|
#define SCE_CSS_DEFAULT 0
|
||||||
|
#define SCE_CSS_TAG 1
|
||||||
|
#define SCE_CSS_CLASS 2
|
||||||
|
#define SCE_CSS_PSEUDOCLASS 3
|
||||||
|
#define SCE_CSS_UNKNOWN_PSEUDOCLASS 4
|
||||||
|
#define SCE_CSS_OPERATOR 5
|
||||||
|
#define SCE_CSS_IDENTIFIER 6
|
||||||
|
#define SCE_CSS_UNKNOWN_IDENTIFIER 7
|
||||||
|
#define SCE_CSS_VALUE 8
|
||||||
|
#define SCE_CSS_COMMENT 9
|
||||||
|
#define SCE_CSS_ID 10
|
||||||
|
#define SCE_CSS_IMPORTANT 11
|
||||||
|
#define SCE_CSS_DIRECTIVE 12
|
||||||
|
#define SCE_CSS_DOUBLESTRING 13
|
||||||
|
#define SCE_CSS_SINGLESTRING 14
|
||||||
|
#define SCE_POV_DEFAULT 0
|
||||||
|
#define SCE_POV_COMMENT 1
|
||||||
|
#define SCE_POV_COMMENTLINE 2
|
||||||
|
#define SCE_POV_COMMENTDOC 3
|
||||||
|
#define SCE_POV_NUMBER 4
|
||||||
|
#define SCE_POV_WORD 5
|
||||||
|
#define SCE_POV_STRING 6
|
||||||
|
#define SCE_POV_OPERATOR 7
|
||||||
|
#define SCE_POV_IDENTIFIER 8
|
||||||
|
#define SCE_POV_BRACE 9
|
||||||
|
#define SCE_POV_WORD2 10
|
||||||
//--Autogenerated -- end of section automatically generated from Scintilla.iface
|
//--Autogenerated -- end of section automatically generated from Scintilla.iface
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
/** @file Scintilla.h
|
/** @file Scintilla.h
|
||||||
** Interface to the edit control.
|
** Interface to the edit control.
|
||||||
**/
|
**/
|
||||||
// Copyright 1998-2002 by Neil Hodgson <neilh@scintilla.org>
|
// Copyright 1998-2003 by Neil Hodgson <neilh@scintilla.org>
|
||||||
// The License.txt file describes the conditions under which this software may be distributed.
|
// The License.txt file describes the conditions under which this software may be distributed.
|
||||||
|
|
||||||
// Most of this file is automatically generated from the Scintilla.iface interface definition
|
// Most of this file is automatically generated from the Scintilla.iface interface definition
|
||||||
@@ -83,6 +83,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
|
|||||||
#define SCI_SETTABWIDTH 2036
|
#define SCI_SETTABWIDTH 2036
|
||||||
#define SCI_GETTABWIDTH 2121
|
#define SCI_GETTABWIDTH 2121
|
||||||
#define SC_CP_UTF8 65001
|
#define SC_CP_UTF8 65001
|
||||||
|
#define SC_CP_DBCS 1
|
||||||
#define SCI_SETCODEPAGE 2037
|
#define SCI_SETCODEPAGE 2037
|
||||||
#define SCI_SETUSEPALETTE 2039
|
#define SCI_SETUSEPALETTE 2039
|
||||||
#define MARKER_MAX 31
|
#define MARKER_MAX 31
|
||||||
@@ -111,6 +112,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
|
|||||||
#define SC_MARK_BACKGROUND 22
|
#define SC_MARK_BACKGROUND 22
|
||||||
#define SC_MARK_DOTDOTDOT 23
|
#define SC_MARK_DOTDOTDOT 23
|
||||||
#define SC_MARK_ARROWS 24
|
#define SC_MARK_ARROWS 24
|
||||||
|
#define SC_MARK_PIXMAP 25
|
||||||
#define SC_MARK_CHARACTER 10000
|
#define SC_MARK_CHARACTER 10000
|
||||||
#define SC_MARKNUM_FOLDEREND 25
|
#define SC_MARKNUM_FOLDEREND 25
|
||||||
#define SC_MARKNUM_FOLDEROPENMID 26
|
#define SC_MARKNUM_FOLDEROPENMID 26
|
||||||
@@ -129,6 +131,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
|
|||||||
#define SCI_MARKERGET 2046
|
#define SCI_MARKERGET 2046
|
||||||
#define SCI_MARKERNEXT 2047
|
#define SCI_MARKERNEXT 2047
|
||||||
#define SCI_MARKERPREVIOUS 2048
|
#define SCI_MARKERPREVIOUS 2048
|
||||||
|
#define SCI_MARKERDEFINEPIXMAP 2049
|
||||||
#define SC_MARGIN_SYMBOL 0
|
#define SC_MARGIN_SYMBOL 0
|
||||||
#define SC_MARGIN_NUMBER 1
|
#define SC_MARGIN_NUMBER 1
|
||||||
#define SCI_SETMARGINTYPEN 2240
|
#define SCI_SETMARGINTYPEN 2240
|
||||||
@@ -181,6 +184,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
|
|||||||
#define SC_CASE_LOWER 2
|
#define SC_CASE_LOWER 2
|
||||||
#define SCI_STYLESETCASE 2060
|
#define SCI_STYLESETCASE 2060
|
||||||
#define SCI_STYLESETCHARACTERSET 2066
|
#define SCI_STYLESETCHARACTERSET 2066
|
||||||
|
#define SCI_STYLESETHOTSPOT 2409
|
||||||
#define SCI_SETSELFORE 2067
|
#define SCI_SETSELFORE 2067
|
||||||
#define SCI_SETSELBACK 2068
|
#define SCI_SETSELBACK 2068
|
||||||
#define SCI_SETCARETFORE 2069
|
#define SCI_SETCARETFORE 2069
|
||||||
@@ -241,6 +245,10 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
|
|||||||
#define SCI_AUTOCGETAUTOHIDE 2119
|
#define SCI_AUTOCGETAUTOHIDE 2119
|
||||||
#define SCI_AUTOCSETDROPRESTOFWORD 2270
|
#define SCI_AUTOCSETDROPRESTOFWORD 2270
|
||||||
#define SCI_AUTOCGETDROPRESTOFWORD 2271
|
#define SCI_AUTOCGETDROPRESTOFWORD 2271
|
||||||
|
#define SCI_REGISTERIMAGE 2405
|
||||||
|
#define SCI_CLEARREGISTEREDIMAGES 2408
|
||||||
|
#define SCI_AUTOCGETTYPESEPARATOR 2285
|
||||||
|
#define SCI_AUTOCSETTYPESEPARATOR 2286
|
||||||
#define SCI_SETINDENT 2122
|
#define SCI_SETINDENT 2122
|
||||||
#define SCI_GETINDENT 2123
|
#define SCI_GETINDENT 2123
|
||||||
#define SCI_SETUSETABS 2124
|
#define SCI_SETUSETABS 2124
|
||||||
@@ -278,6 +286,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
|
|||||||
#define SCFIND_MATCHCASE 4
|
#define SCFIND_MATCHCASE 4
|
||||||
#define SCFIND_WORDSTART 0x00100000
|
#define SCFIND_WORDSTART 0x00100000
|
||||||
#define SCFIND_REGEXP 0x00200000
|
#define SCFIND_REGEXP 0x00200000
|
||||||
|
#define SCFIND_POSIX 0x00400000
|
||||||
#define SCI_FINDTEXT 2150
|
#define SCI_FINDTEXT 2150
|
||||||
#define SCI_FORMATRANGE 2151
|
#define SCI_FORMATRANGE 2151
|
||||||
#define SCI_GETFIRSTVISIBLELINE 2152
|
#define SCI_GETFIRSTVISIBLELINE 2152
|
||||||
@@ -333,11 +342,17 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
|
|||||||
#define SCI_CALLTIPPOSSTART 2203
|
#define SCI_CALLTIPPOSSTART 2203
|
||||||
#define SCI_CALLTIPSETHLT 2204
|
#define SCI_CALLTIPSETHLT 2204
|
||||||
#define SCI_CALLTIPSETBACK 2205
|
#define SCI_CALLTIPSETBACK 2205
|
||||||
|
#define SCI_CALLTIPSETFORE 2206
|
||||||
|
#define SCI_CALLTIPSETFOREHLT 2207
|
||||||
#define SCI_VISIBLEFROMDOCLINE 2220
|
#define SCI_VISIBLEFROMDOCLINE 2220
|
||||||
#define SCI_DOCLINEFROMVISIBLE 2221
|
#define SCI_DOCLINEFROMVISIBLE 2221
|
||||||
#define SC_FOLDLEVELBASE 0x400
|
#define SC_FOLDLEVELBASE 0x400
|
||||||
#define SC_FOLDLEVELWHITEFLAG 0x1000
|
#define SC_FOLDLEVELWHITEFLAG 0x1000
|
||||||
#define SC_FOLDLEVELHEADERFLAG 0x2000
|
#define SC_FOLDLEVELHEADERFLAG 0x2000
|
||||||
|
#define SC_FOLDLEVELBOXHEADERFLAG 0x4000
|
||||||
|
#define SC_FOLDLEVELBOXFOOTERFLAG 0x8000
|
||||||
|
#define SC_FOLDLEVELCONTRACTED 0x10000
|
||||||
|
#define SC_FOLDLEVELUNINDENT 0x20000
|
||||||
#define SC_FOLDLEVELNUMBERMASK 0x0FFF
|
#define SC_FOLDLEVELNUMBERMASK 0x0FFF
|
||||||
#define SCI_SETFOLDLEVEL 2222
|
#define SCI_SETFOLDLEVEL 2222
|
||||||
#define SCI_GETFOLDLEVEL 2223
|
#define SCI_GETFOLDLEVEL 2223
|
||||||
@@ -350,6 +365,12 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
|
|||||||
#define SCI_GETFOLDEXPANDED 2230
|
#define SCI_GETFOLDEXPANDED 2230
|
||||||
#define SCI_TOGGLEFOLD 2231
|
#define SCI_TOGGLEFOLD 2231
|
||||||
#define SCI_ENSUREVISIBLE 2232
|
#define SCI_ENSUREVISIBLE 2232
|
||||||
|
#define SC_FOLDFLAG_LINEBEFORE_EXPANDED 0x0002
|
||||||
|
#define SC_FOLDFLAG_LINEBEFORE_CONTRACTED 0x0004
|
||||||
|
#define SC_FOLDFLAG_LINEAFTER_EXPANDED 0x0008
|
||||||
|
#define SC_FOLDFLAG_LINEAFTER_CONTRACTED 0x0010
|
||||||
|
#define SC_FOLDFLAG_LEVELNUMBERS 0x0040
|
||||||
|
#define SC_FOLDFLAG_BOX 0x0001
|
||||||
#define SCI_SETFOLDFLAGS 2233
|
#define SCI_SETFOLDFLAGS 2233
|
||||||
#define SCI_ENSUREVISIBLEENFORCEPOLICY 2234
|
#define SCI_ENSUREVISIBLEENFORCEPOLICY 2234
|
||||||
#define SCI_SETTABINDENTS 2260
|
#define SCI_SETTABINDENTS 2260
|
||||||
@@ -377,6 +398,16 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
|
|||||||
#define SCI_SETENDATLASTLINE 2277
|
#define SCI_SETENDATLASTLINE 2277
|
||||||
#define SCI_GETENDATLASTLINE 2278
|
#define SCI_GETENDATLASTLINE 2278
|
||||||
#define SCI_TEXTHEIGHT 2279
|
#define SCI_TEXTHEIGHT 2279
|
||||||
|
#define SCI_SETVSCROLLBAR 2280
|
||||||
|
#define SCI_GETVSCROLLBAR 2281
|
||||||
|
#define SCI_APPENDTEXT 2282
|
||||||
|
#define SCI_GETTWOPHASEDRAW 2283
|
||||||
|
#define SCI_SETTWOPHASEDRAW 2284
|
||||||
|
#define SCI_TARGETFROMSELECTION 2287
|
||||||
|
#define SCI_LINESJOIN 2288
|
||||||
|
#define SCI_LINESSPLIT 2289
|
||||||
|
#define SCI_SETFOLDMARGINCOLOUR 2290
|
||||||
|
#define SCI_SETFOLDMARGINHICOLOUR 2291
|
||||||
#define SCI_LINEDOWN 2300
|
#define SCI_LINEDOWN 2300
|
||||||
#define SCI_LINEDOWNEXTEND 2301
|
#define SCI_LINEDOWNEXTEND 2301
|
||||||
#define SCI_LINEUP 2302
|
#define SCI_LINEUP 2302
|
||||||
@@ -417,6 +448,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
|
|||||||
#define SCI_LINECUT 2337
|
#define SCI_LINECUT 2337
|
||||||
#define SCI_LINEDELETE 2338
|
#define SCI_LINEDELETE 2338
|
||||||
#define SCI_LINETRANSPOSE 2339
|
#define SCI_LINETRANSPOSE 2339
|
||||||
|
#define SCI_LINEDUPLICATE 2404
|
||||||
#define SCI_LOWERCASE 2340
|
#define SCI_LOWERCASE 2340
|
||||||
#define SCI_UPPERCASE 2341
|
#define SCI_UPPERCASE 2341
|
||||||
#define SCI_LINESCROLLDOWN 2342
|
#define SCI_LINESCROLLDOWN 2342
|
||||||
@@ -426,6 +458,12 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
|
|||||||
#define SCI_HOMEDISPLAYEXTEND 2346
|
#define SCI_HOMEDISPLAYEXTEND 2346
|
||||||
#define SCI_LINEENDDISPLAY 2347
|
#define SCI_LINEENDDISPLAY 2347
|
||||||
#define SCI_LINEENDDISPLAYEXTEND 2348
|
#define SCI_LINEENDDISPLAYEXTEND 2348
|
||||||
|
#define SCI_HOMEWRAP 2349
|
||||||
|
#define SCI_HOMEWRAPEXTEND 2450
|
||||||
|
#define SCI_LINEENDWRAP 2451
|
||||||
|
#define SCI_LINEENDWRAPEXTEND 2452
|
||||||
|
#define SCI_VCHOMEWRAP 2453
|
||||||
|
#define SCI_VCHOMEWRAPEXTEND 2454
|
||||||
#define SCI_MOVECARETINSIDEVIEW 2401
|
#define SCI_MOVECARETINSIDEVIEW 2401
|
||||||
#define SCI_LINELENGTH 2350
|
#define SCI_LINELENGTH 2350
|
||||||
#define SCI_BRACEHIGHLIGHT 2351
|
#define SCI_BRACEHIGHLIGHT 2351
|
||||||
@@ -464,7 +502,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
|
|||||||
#define SCI_SETMOUSEDOWNCAPTURES 2384
|
#define SCI_SETMOUSEDOWNCAPTURES 2384
|
||||||
#define SCI_GETMOUSEDOWNCAPTURES 2385
|
#define SCI_GETMOUSEDOWNCAPTURES 2385
|
||||||
#define SC_CURSORNORMAL -1
|
#define SC_CURSORNORMAL -1
|
||||||
#define SC_CURSORWAIT 3
|
#define SC_CURSORWAIT 4
|
||||||
#define SCI_SETCURSOR 2386
|
#define SCI_SETCURSOR 2386
|
||||||
#define SCI_GETCURSOR 2387
|
#define SCI_GETCURSOR 2387
|
||||||
#define SCI_SETCONTROLCHARSYMBOL 2388
|
#define SCI_SETCONTROLCHARSYMBOL 2388
|
||||||
@@ -480,6 +518,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
|
|||||||
#define SCI_DELLINERIGHT 2396
|
#define SCI_DELLINERIGHT 2396
|
||||||
#define SCI_SETXOFFSET 2397
|
#define SCI_SETXOFFSET 2397
|
||||||
#define SCI_GETXOFFSET 2398
|
#define SCI_GETXOFFSET 2398
|
||||||
|
#define SCI_CHOOSECARETX 2399
|
||||||
#define SCI_GRABFOCUS 2400
|
#define SCI_GRABFOCUS 2400
|
||||||
#define CARET_SLOP 0x01
|
#define CARET_SLOP 0x01
|
||||||
#define CARET_STRICT 0x04
|
#define CARET_STRICT 0x04
|
||||||
@@ -487,6 +526,15 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
|
|||||||
#define CARET_EVEN 0x08
|
#define CARET_EVEN 0x08
|
||||||
#define SCI_SETXCARETPOLICY 2402
|
#define SCI_SETXCARETPOLICY 2402
|
||||||
#define SCI_SETYCARETPOLICY 2403
|
#define SCI_SETYCARETPOLICY 2403
|
||||||
|
#define SCI_SETPRINTWRAPMODE 2406
|
||||||
|
#define SCI_GETPRINTWRAPMODE 2407
|
||||||
|
#define SCI_SETHOTSPOTACTIVEFORE 2410
|
||||||
|
#define SCI_SETHOTSPOTACTIVEBACK 2411
|
||||||
|
#define SCI_SETHOTSPOTACTIVEUNDERLINE 2412
|
||||||
|
#define SCI_PARADOWN 2413
|
||||||
|
#define SCI_PARADOWNEXTEND 2414
|
||||||
|
#define SCI_PARAUP 2415
|
||||||
|
#define SCI_PARAUPEXTEND 2416
|
||||||
#define SCI_STARTRECORD 3001
|
#define SCI_STARTRECORD 3001
|
||||||
#define SCI_STOPRECORD 3002
|
#define SCI_STOPRECORD 3002
|
||||||
#define SCI_SETLEXER 4001
|
#define SCI_SETLEXER 4001
|
||||||
@@ -495,6 +543,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
|
|||||||
#define SCI_SETPROPERTY 4004
|
#define SCI_SETPROPERTY 4004
|
||||||
#define SCI_SETKEYWORDS 4005
|
#define SCI_SETKEYWORDS 4005
|
||||||
#define SCI_SETLEXERLANGUAGE 4006
|
#define SCI_SETLEXERLANGUAGE 4006
|
||||||
|
#define SCI_LOADLEXERLIBRARY 4007
|
||||||
#define SC_MOD_INSERTTEXT 0x1
|
#define SC_MOD_INSERTTEXT 0x1
|
||||||
#define SC_MOD_DELETETEXT 0x2
|
#define SC_MOD_DELETETEXT 0x2
|
||||||
#define SC_MOD_CHANGESTYLE 0x4
|
#define SC_MOD_CHANGESTYLE 0x4
|
||||||
@@ -548,6 +597,9 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
|
|||||||
#define SCN_DWELLSTART 2016
|
#define SCN_DWELLSTART 2016
|
||||||
#define SCN_DWELLEND 2017
|
#define SCN_DWELLEND 2017
|
||||||
#define SCN_ZOOM 2018
|
#define SCN_ZOOM 2018
|
||||||
|
#define SCN_HOTSPOTCLICK 2019
|
||||||
|
#define SCN_HOTSPOTDOUBLECLICK 2020
|
||||||
|
#define SCN_CALLTIPCLICK 2021
|
||||||
//--Autogenerated -- end of section automatically generated from Scintilla.iface
|
//--Autogenerated -- end of section automatically generated from Scintilla.iface
|
||||||
|
|
||||||
// These structures are defined to be exactly the same shape as the Win32
|
// These structures are defined to be exactly the same shape as the Win32
|
||||||
|
@@ -221,6 +221,9 @@ get int GetTabWidth=2121(,)
|
|||||||
# This is the same value as CP_UTF8 in Windows
|
# This is the same value as CP_UTF8 in Windows
|
||||||
val SC_CP_UTF8=65001
|
val SC_CP_UTF8=65001
|
||||||
|
|
||||||
|
# The SC_CP_DBCS value can be used to indicate a DBCS mode for GTK+.
|
||||||
|
val SC_CP_DBCS=1
|
||||||
|
|
||||||
# Set the code page used to interpret the bytes of the document as characters.
|
# Set the code page used to interpret the bytes of the document as characters.
|
||||||
# The SC_CP_UTF8 value can be used to enter Unicode mode.
|
# The SC_CP_UTF8 value can be used to enter Unicode mode.
|
||||||
set void SetCodePage=2037(int codePage,)
|
set void SetCodePage=2037(int codePage,)
|
||||||
@@ -260,6 +263,7 @@ val SC_MARK_CIRCLEMINUSCONNECTED=21
|
|||||||
val SC_MARK_BACKGROUND=22
|
val SC_MARK_BACKGROUND=22
|
||||||
val SC_MARK_DOTDOTDOT=23
|
val SC_MARK_DOTDOTDOT=23
|
||||||
val SC_MARK_ARROWS=24
|
val SC_MARK_ARROWS=24
|
||||||
|
val SC_MARK_PIXMAP=25
|
||||||
|
|
||||||
val SC_MARK_CHARACTER=10000
|
val SC_MARK_CHARACTER=10000
|
||||||
|
|
||||||
@@ -302,6 +306,9 @@ fun int MarkerNext=2047(int lineStart, int markerMask)
|
|||||||
# Find the previous line before lineStart that includes a marker in mask.
|
# Find the previous line before lineStart that includes a marker in mask.
|
||||||
fun int MarkerPrevious=2048(int lineStart, int markerMask)
|
fun int MarkerPrevious=2048(int lineStart, int markerMask)
|
||||||
|
|
||||||
|
# Define a marker from a pixmap.
|
||||||
|
fun void MarkerDefinePixmap=2049(int markerNumber, string pixmap)
|
||||||
|
|
||||||
enu MarginType=SC_MARGIN_
|
enu MarginType=SC_MARGIN_
|
||||||
val SC_MARGIN_SYMBOL=0
|
val SC_MARGIN_SYMBOL=0
|
||||||
val SC_MARGIN_NUMBER=1
|
val SC_MARGIN_NUMBER=1
|
||||||
@@ -405,6 +412,9 @@ set void StyleSetCase=2060(int style, int caseForce)
|
|||||||
# Set the character set of the font in a style.
|
# Set the character set of the font in a style.
|
||||||
set void StyleSetCharacterSet=2066(int style, int characterSet)
|
set void StyleSetCharacterSet=2066(int style, int characterSet)
|
||||||
|
|
||||||
|
# Set a style to be a hotspot or not.
|
||||||
|
set void StyleSetHotSpot=2409(int style, bool hotspot)
|
||||||
|
|
||||||
# Set the foreground colour of the selection and whether to use this setting.
|
# Set the foreground colour of the selection and whether to use this setting.
|
||||||
fun void SetSelFore=2067(bool useSetting, colour fore)
|
fun void SetSelFore=2067(bool useSetting, colour fore)
|
||||||
|
|
||||||
@@ -578,6 +588,19 @@ set void AutoCSetDropRestOfWord=2270(bool dropRestOfWord,)
|
|||||||
# after the inserted text upon completion.
|
# after the inserted text upon completion.
|
||||||
get bool AutoCGetDropRestOfWord=2271(,)
|
get bool AutoCGetDropRestOfWord=2271(,)
|
||||||
|
|
||||||
|
# Register an XPM image for use in autocompletion lists.
|
||||||
|
fun void RegisterImage=2405(int type, string xpmData)
|
||||||
|
|
||||||
|
# Clear all the registered XPM images.
|
||||||
|
fun void ClearRegisteredImages=2408(,)
|
||||||
|
|
||||||
|
# Retrieve the auto-completion list type-separator character.
|
||||||
|
get int AutoCGetTypeSeparator=2285(,)
|
||||||
|
|
||||||
|
# Change the type-separator character in the string setting up an auto-completion list.
|
||||||
|
# Default is '?' but can be changed if items contain '?'.
|
||||||
|
set void AutoCSetTypeSeparator=2286(int separatorCharacter,)
|
||||||
|
|
||||||
# Set the number of spaces used for one level of indentation.
|
# Set the number of spaces used for one level of indentation.
|
||||||
set void SetIndent=2122(int indentSize,)
|
set void SetIndent=2122(int indentSize,)
|
||||||
|
|
||||||
@@ -681,6 +704,7 @@ val SCFIND_WHOLEWORD=2
|
|||||||
val SCFIND_MATCHCASE=4
|
val SCFIND_MATCHCASE=4
|
||||||
val SCFIND_WORDSTART=0x00100000
|
val SCFIND_WORDSTART=0x00100000
|
||||||
val SCFIND_REGEXP=0x00200000
|
val SCFIND_REGEXP=0x00200000
|
||||||
|
val SCFIND_POSIX=0x00400000
|
||||||
|
|
||||||
# Find some text in the document.
|
# Find some text in the document.
|
||||||
fun position FindText=2150(int flags, findtext ft)
|
fun position FindText=2150(int flags, findtext ft)
|
||||||
@@ -688,7 +712,7 @@ fun position FindText=2150(int flags, findtext ft)
|
|||||||
# On Windows, will draw the document into a display context such as a printer.
|
# On Windows, will draw the document into a display context such as a printer.
|
||||||
fun void FormatRange=2151(bool draw, formatrange fr)
|
fun void FormatRange=2151(bool draw, formatrange fr)
|
||||||
|
|
||||||
# Retrieve the line at the top of the display.
|
# Retrieve the display line at the top of the display.
|
||||||
get int GetFirstVisibleLine=2152(,)
|
get int GetFirstVisibleLine=2152(,)
|
||||||
|
|
||||||
# Retrieve the contents of a line.
|
# Retrieve the contents of a line.
|
||||||
@@ -863,6 +887,12 @@ fun void CallTipSetHlt=2204(int start, int end)
|
|||||||
# Set the background colour for the call tip.
|
# Set the background colour for the call tip.
|
||||||
set void CallTipSetBack=2205(colour back,)
|
set void CallTipSetBack=2205(colour back,)
|
||||||
|
|
||||||
|
# Set the foreground colour for the call tip.
|
||||||
|
set void CallTipSetFore=2206(colour fore,)
|
||||||
|
|
||||||
|
# Set the foreground colour for the highlighted part of the call tip.
|
||||||
|
set void CallTipSetForeHlt=2207(colour fore,)
|
||||||
|
|
||||||
# Find the display line of a document line taking hidden lines into account.
|
# Find the display line of a document line taking hidden lines into account.
|
||||||
fun int VisibleFromDocLine=2220(int line,)
|
fun int VisibleFromDocLine=2220(int line,)
|
||||||
|
|
||||||
@@ -873,6 +903,10 @@ enu FoldLevel=SC_FOLDLEVEL
|
|||||||
val SC_FOLDLEVELBASE=0x400
|
val SC_FOLDLEVELBASE=0x400
|
||||||
val SC_FOLDLEVELWHITEFLAG=0x1000
|
val SC_FOLDLEVELWHITEFLAG=0x1000
|
||||||
val SC_FOLDLEVELHEADERFLAG=0x2000
|
val SC_FOLDLEVELHEADERFLAG=0x2000
|
||||||
|
val SC_FOLDLEVELBOXHEADERFLAG=0x4000
|
||||||
|
val SC_FOLDLEVELBOXFOOTERFLAG=0x8000
|
||||||
|
val SC_FOLDLEVELCONTRACTED=0x10000
|
||||||
|
val SC_FOLDLEVELUNINDENT=0x20000
|
||||||
val SC_FOLDLEVELNUMBERMASK=0x0FFF
|
val SC_FOLDLEVELNUMBERMASK=0x0FFF
|
||||||
|
|
||||||
# Set the fold level of a line.
|
# Set the fold level of a line.
|
||||||
@@ -910,7 +944,15 @@ fun void ToggleFold=2231(int line,)
|
|||||||
# Ensure a particular line is visible by expanding any header line hiding it.
|
# Ensure a particular line is visible by expanding any header line hiding it.
|
||||||
fun void EnsureVisible=2232(int line,)
|
fun void EnsureVisible=2232(int line,)
|
||||||
|
|
||||||
# Set some debugging options for folding.
|
enu FoldFlag=SC_FOLDFLAG_
|
||||||
|
val SC_FOLDFLAG_LINEBEFORE_EXPANDED=0x0002
|
||||||
|
val SC_FOLDFLAG_LINEBEFORE_CONTRACTED=0x0004
|
||||||
|
val SC_FOLDFLAG_LINEAFTER_EXPANDED=0x0008
|
||||||
|
val SC_FOLDFLAG_LINEAFTER_CONTRACTED=0x0010
|
||||||
|
val SC_FOLDFLAG_LEVELNUMBERS=0x0040
|
||||||
|
val SC_FOLDFLAG_BOX=0x0001
|
||||||
|
|
||||||
|
# Set some style options for folding.
|
||||||
fun void SetFoldFlags=2233(int flags,)
|
fun void SetFoldFlags=2233(int flags,)
|
||||||
|
|
||||||
# Ensure a particular line is visible by expanding any header line hiding it.
|
# Ensure a particular line is visible by expanding any header line hiding it.
|
||||||
@@ -988,6 +1030,38 @@ get int GetEndAtLastLine=2278(,)
|
|||||||
# Retrieve the height of a particular line of text in pixels.
|
# Retrieve the height of a particular line of text in pixels.
|
||||||
fun int TextHeight=2279(int line,)
|
fun int TextHeight=2279(int line,)
|
||||||
|
|
||||||
|
# Show or hide the vertical scroll bar.
|
||||||
|
set void SetVScrollBar=2280(bool show,)
|
||||||
|
|
||||||
|
# Is the vertical scroll bar visible?
|
||||||
|
get bool GetVScrollBar=2281(,)
|
||||||
|
|
||||||
|
# Append a string to the end of the document without changing the selection.
|
||||||
|
fun void AppendText=2282(int length, string text)
|
||||||
|
|
||||||
|
# Is drawing done in two phases with backgrounds drawn before foregrounds?
|
||||||
|
get bool GetTwoPhaseDraw=2283(,)
|
||||||
|
|
||||||
|
# In twoPhaseDraw mode, drawing is performed in two phases, first the background
|
||||||
|
# and then the foreground. This avoids chopping off characters that overlap the next run.
|
||||||
|
set void SetTwoPhaseDraw=2284(bool twoPhase,)
|
||||||
|
|
||||||
|
# Make the target range start and end be the same as the selection range start and end.
|
||||||
|
fun void TargetFromSelection=2287(,)
|
||||||
|
|
||||||
|
# Join the lines in the target.
|
||||||
|
fun void LinesJoin=2288(,)
|
||||||
|
|
||||||
|
# Split the lines in the target into lines that are less wide than pixelWidth
|
||||||
|
# where possible.
|
||||||
|
fun void LinesSplit=2289(int pixelWidth,)
|
||||||
|
|
||||||
|
# Set the colours used as a chequerboard pattern in the fold margin
|
||||||
|
fun void SetFoldMarginColour=2290(bool useSetting, colour back)
|
||||||
|
fun void SetFoldMarginHiColour=2291(bool useSetting, colour fore)
|
||||||
|
|
||||||
|
## New messages go here
|
||||||
|
|
||||||
## Start of key messages
|
## Start of key messages
|
||||||
# Move caret down one line.
|
# Move caret down one line.
|
||||||
fun void LineDown=2300(,)
|
fun void LineDown=2300(,)
|
||||||
@@ -1111,6 +1185,9 @@ fun void LineDelete=2338(,)
|
|||||||
# Switch the current line with the previous.
|
# Switch the current line with the previous.
|
||||||
fun void LineTranspose=2339(,)
|
fun void LineTranspose=2339(,)
|
||||||
|
|
||||||
|
# Duplicate the current line.
|
||||||
|
fun void LineDuplicate=2404(,)
|
||||||
|
|
||||||
# Transform the selection to lower case.
|
# Transform the selection to lower case.
|
||||||
fun void LowerCase=2340(,)
|
fun void LowerCase=2340(,)
|
||||||
|
|
||||||
@@ -1141,6 +1218,19 @@ fun void LineEndDisplay=2347(,)
|
|||||||
# caret position.
|
# caret position.
|
||||||
fun void LineEndDisplayExtend=2348(,)
|
fun void LineEndDisplayExtend=2348(,)
|
||||||
|
|
||||||
|
# These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)?
|
||||||
|
# except they behave differently when word-wrap is enabled:
|
||||||
|
# They go first to the start / end of the display line, like (Home|LineEnd)Display
|
||||||
|
# The difference is that, the cursor is already at the point, it goes on to the start
|
||||||
|
# or end of the document line, as appropriate for (Home|LineEnd|VCHome)Extend.
|
||||||
|
|
||||||
|
fun void HomeWrap=2349(,)
|
||||||
|
fun void HomeWrapExtend=2450(,)
|
||||||
|
fun void LineEndWrap=2451(,)
|
||||||
|
fun void LineEndWrapExtend=2452(,)
|
||||||
|
fun void VCHomeWrap=2453(,)
|
||||||
|
fun void VCHomeWrapExtend=2454(,)
|
||||||
|
|
||||||
# Move the caret inside current view if it's not there already.
|
# Move the caret inside current view if it's not there already.
|
||||||
fun void MoveCaretInsideView=2401(,)
|
fun void MoveCaretInsideView=2401(,)
|
||||||
|
|
||||||
@@ -1251,7 +1341,7 @@ get bool GetMouseDownCaptures=2385(,)
|
|||||||
|
|
||||||
enu CursorShape=SC_CURSOR
|
enu CursorShape=SC_CURSOR
|
||||||
val SC_CURSORNORMAL=-1
|
val SC_CURSORNORMAL=-1
|
||||||
val SC_CURSORWAIT=3
|
val SC_CURSORWAIT=4
|
||||||
# Sets the cursor to one of the SC_CURSOR* values.
|
# Sets the cursor to one of the SC_CURSOR* values.
|
||||||
set void SetCursor=2386(int cursorType,)
|
set void SetCursor=2386(int cursorType,)
|
||||||
# Get cursor type.
|
# Get cursor type.
|
||||||
@@ -1291,6 +1381,9 @@ fun void DelLineRight=2396(,)
|
|||||||
set void SetXOffset=2397(int newOffset,)
|
set void SetXOffset=2397(int newOffset,)
|
||||||
get int GetXOffset=2398(,)
|
get int GetXOffset=2398(,)
|
||||||
|
|
||||||
|
# Set the last x chosen value to be the caret x position
|
||||||
|
fun void ChooseCaretX=2399(,)
|
||||||
|
|
||||||
# Set the focus to this Scintilla widget.
|
# Set the focus to this Scintilla widget.
|
||||||
# GTK+ Specific.
|
# GTK+ Specific.
|
||||||
fun void GrabFocus=2400(,)
|
fun void GrabFocus=2400(,)
|
||||||
@@ -1327,6 +1420,27 @@ fun void SetXCaretPolicy=2402(int caretPolicy, int caretSlop)
|
|||||||
# The exclusion zone is given in lines.
|
# The exclusion zone is given in lines.
|
||||||
fun void SetYCaretPolicy=2403(int caretPolicy, int caretSlop)
|
fun void SetYCaretPolicy=2403(int caretPolicy, int caretSlop)
|
||||||
|
|
||||||
|
# Set printing to line wrapped (SC_WRAP_WORD) or not line wrapped (SC_WRAP_NONE).
|
||||||
|
set void SetPrintWrapMode=2406(int mode,)
|
||||||
|
|
||||||
|
# Is printing line wrapped.
|
||||||
|
get int GetPrintWrapMode=2407(,)
|
||||||
|
|
||||||
|
# Set a fore colour for active hotspots.
|
||||||
|
set void SetHotspotActiveFore=2410(bool useSetting, colour fore)
|
||||||
|
|
||||||
|
# Set a back colour for active hotspots.
|
||||||
|
set void SetHotspotActiveBack=2411(bool useSetting, colour back)
|
||||||
|
|
||||||
|
# Enable / Disable underlining active hotspots.
|
||||||
|
set void SetHotspotActiveUnderline=2412(bool underline,)
|
||||||
|
|
||||||
|
# Move caret between paragraphs (delimited by empty lines)
|
||||||
|
fun void ParaDown=2413(,)
|
||||||
|
fun void ParaDownExtend=2414(,)
|
||||||
|
fun void ParaUp=2415(,)
|
||||||
|
fun void ParaUpExtend=2416(,)
|
||||||
|
|
||||||
# Start notifying the container of all key presses and commands.
|
# Start notifying the container of all key presses and commands.
|
||||||
fun void StartRecord=3001(,)
|
fun void StartRecord=3001(,)
|
||||||
|
|
||||||
@@ -1351,6 +1465,10 @@ set void SetKeyWords=4005(int keywordSet, string keyWords)
|
|||||||
# Set the lexing language of the document based on string name.
|
# Set the lexing language of the document based on string name.
|
||||||
set void SetLexerLanguage=4006(, string language)
|
set void SetLexerLanguage=4006(, string language)
|
||||||
|
|
||||||
|
# Load a lexer library (dll / so)
|
||||||
|
# NOT YET IMPLEMENTED
|
||||||
|
fun void LoadLexerLibrary=4007(, string path)
|
||||||
|
|
||||||
# Notifications
|
# Notifications
|
||||||
# Type of modification and the action which caused the modification.
|
# Type of modification and the action which caused the modification.
|
||||||
# These are defined as a bit mask to make it easy to specify which notifications are wanted.
|
# These are defined as a bit mask to make it easy to specify which notifications are wanted.
|
||||||
@@ -1442,6 +1560,12 @@ val SCLEX_PHP=30
|
|||||||
val SCLEX_BAAN=31
|
val SCLEX_BAAN=31
|
||||||
val SCLEX_MATLAB=32
|
val SCLEX_MATLAB=32
|
||||||
val SCLEX_SCRIPTOL=33
|
val SCLEX_SCRIPTOL=33
|
||||||
|
val SCLEX_ASM=34
|
||||||
|
val SCLEX_CPPNOCASE=35
|
||||||
|
val SCLEX_FORTRAN=36
|
||||||
|
val SCLEX_F77=37
|
||||||
|
val SCLEX_CSS=38
|
||||||
|
val SCLEX_POV=39
|
||||||
|
|
||||||
# When a lexer specifies its language as SCLEX_AUTOMATIC it receives a
|
# When a lexer specifies its language as SCLEX_AUTOMATIC it receives a
|
||||||
# value assigned in sequence from SCLEX_AUTOMATIC+1.
|
# value assigned in sequence from SCLEX_AUTOMATIC+1.
|
||||||
@@ -1708,6 +1832,9 @@ val SCE_ERR_DIFF_CHANGED=10
|
|||||||
val SCE_ERR_DIFF_ADDITION=11
|
val SCE_ERR_DIFF_ADDITION=11
|
||||||
val SCE_ERR_DIFF_DELETION=12
|
val SCE_ERR_DIFF_DELETION=12
|
||||||
val SCE_ERR_DIFF_MESSAGE=13
|
val SCE_ERR_DIFF_MESSAGE=13
|
||||||
|
val SCE_ERR_PHP=14
|
||||||
|
val SCE_ERR_ELF=15
|
||||||
|
val SCE_ERR_IFC=16
|
||||||
# Lexical states for SCLEX_BATCH
|
# Lexical states for SCLEX_BATCH
|
||||||
lex Batch=SCLEX_BATCH SCE_BAT_
|
lex Batch=SCLEX_BATCH SCE_BAT_
|
||||||
val SCE_BAT_DEFAULT=0
|
val SCE_BAT_DEFAULT=0
|
||||||
@@ -1754,24 +1881,31 @@ val SCE_AVE_DEFAULT=0
|
|||||||
val SCE_AVE_COMMENT=1
|
val SCE_AVE_COMMENT=1
|
||||||
val SCE_AVE_NUMBER=2
|
val SCE_AVE_NUMBER=2
|
||||||
val SCE_AVE_WORD=3
|
val SCE_AVE_WORD=3
|
||||||
val SCE_AVE_KEYWORD=4
|
|
||||||
val SCE_AVE_STATEMENT=5
|
|
||||||
val SCE_AVE_STRING=6
|
val SCE_AVE_STRING=6
|
||||||
val SCE_AVE_ENUM=7
|
val SCE_AVE_ENUM=7
|
||||||
val SCE_AVE_STRINGEOL=8
|
val SCE_AVE_STRINGEOL=8
|
||||||
val SCE_AVE_IDENTIFIER=9
|
val SCE_AVE_IDENTIFIER=9
|
||||||
val SCE_AVE_OPERATOR=10
|
val SCE_AVE_OPERATOR=10
|
||||||
|
val SCE_AVE_WORD1=11
|
||||||
|
val SCE_AVE_WORD2=12
|
||||||
|
val SCE_AVE_WORD3=13
|
||||||
|
val SCE_AVE_WORD4=14
|
||||||
|
val SCE_AVE_WORD5=15
|
||||||
|
val SCE_AVE_WORD6=16
|
||||||
# Lexical states for SCLEX_ADA
|
# Lexical states for SCLEX_ADA
|
||||||
lex Ada=SCLEX_ADA SCE_ADA_
|
lex Ada=SCLEX_ADA SCE_ADA_
|
||||||
val SCE_ADA_DEFAULT=0
|
val SCE_ADA_DEFAULT=0
|
||||||
val SCE_ADA_COMMENT=1
|
val SCE_ADA_WORD=1
|
||||||
val SCE_ADA_NUMBER=2
|
val SCE_ADA_IDENTIFIER=2
|
||||||
val SCE_ADA_WORD=3
|
val SCE_ADA_NUMBER=3
|
||||||
val SCE_ADA_STRING=4
|
val SCE_ADA_DELIMITER=4
|
||||||
val SCE_ADA_CHARACTER=5
|
val SCE_ADA_CHARACTER=5
|
||||||
val SCE_ADA_OPERATOR=6
|
val SCE_ADA_CHARACTEREOL=6
|
||||||
val SCE_ADA_IDENTIFIER=7
|
val SCE_ADA_STRING=7
|
||||||
val SCE_ADA_STRINGEOL=8
|
val SCE_ADA_STRINGEOL=8
|
||||||
|
val SCE_ADA_LABEL=9
|
||||||
|
val SCE_ADA_COMMENTLINE=10
|
||||||
|
val SCE_ADA_ILLEGAL=11
|
||||||
# Lexical states for SCLEX_BAAN
|
# Lexical states for SCLEX_BAAN
|
||||||
lex Baan=SCLEX_BAAN SCE_BAAN_
|
lex Baan=SCLEX_BAAN SCE_BAAN_
|
||||||
val SCE_BAAN_DEFAULT=0
|
val SCE_BAAN_DEFAULT=0
|
||||||
@@ -1852,7 +1986,67 @@ val SCE_SCRIPTOL_WORD2=16
|
|||||||
val SCE_SCRIPTOL_COMMENTDOCKEYWORD=17
|
val SCE_SCRIPTOL_COMMENTDOCKEYWORD=17
|
||||||
val SCE_SCRIPTOL_COMMENTDOCKEYWORDERROR=18
|
val SCE_SCRIPTOL_COMMENTDOCKEYWORDERROR=18
|
||||||
val SCE_SCRIPTOL_COMMENTBASIC=19
|
val SCE_SCRIPTOL_COMMENTBASIC=19
|
||||||
|
# Lexical states for SCLEX_ASM
|
||||||
|
lex Asm=SCLEX_ASM SCE_ASM_
|
||||||
|
val SCE_ASM_DEFAULT=0
|
||||||
|
val SCE_ASM_COMMENT=1
|
||||||
|
val SCE_ASM_NUMBER=2
|
||||||
|
val SCE_ASM_STRING=3
|
||||||
|
val SCE_ASM_OPERATOR=4
|
||||||
|
val SCE_ASM_IDENTIFIER=5
|
||||||
|
val SCE_ASM_CPUINSTRUCTION=6
|
||||||
|
val SCE_ASM_MATHINSTRUCTION=7
|
||||||
|
val SCE_ASM_REGISTER=8
|
||||||
|
val SCE_ASM_DIRECTIVE=9
|
||||||
|
val SCE_ASM_DIRECTIVEOPERAND=10
|
||||||
|
# Lexical states for SCLEX_FORTRAN
|
||||||
|
lex Fortran=SCLEX_FORTRAN SCE_F_
|
||||||
|
lex F77=SCLEX_F77 SCE_F_
|
||||||
|
val SCE_F_DEFAULT=0
|
||||||
|
val SCE_F_COMMENT=1
|
||||||
|
val SCE_F_NUMBER=2
|
||||||
|
val SCE_F_STRING1=3
|
||||||
|
val SCE_F_STRING2=4
|
||||||
|
val SCE_F_STRINGEOL=5
|
||||||
|
val SCE_F_OPERATOR=6
|
||||||
|
val SCE_F_IDENTIFIER=7
|
||||||
|
val SCE_F_WORD=8
|
||||||
|
val SCE_F_WORD2=9
|
||||||
|
val SCE_F_WORD3=10
|
||||||
|
val SCE_F_PREPROCESSOR=11
|
||||||
|
val SCE_F_OPERATOR2=12
|
||||||
|
val SCE_F_LABEL=13
|
||||||
|
val SCE_F_CONTINUATION=14
|
||||||
|
# Lexical states for SCLEX_CSS
|
||||||
|
lex CSS=SCLEX_CSS SCE_CSS_
|
||||||
|
val SCE_CSS_DEFAULT=0
|
||||||
|
val SCE_CSS_TAG=1
|
||||||
|
val SCE_CSS_CLASS=2
|
||||||
|
val SCE_CSS_PSEUDOCLASS=3
|
||||||
|
val SCE_CSS_UNKNOWN_PSEUDOCLASS=4
|
||||||
|
val SCE_CSS_OPERATOR=5
|
||||||
|
val SCE_CSS_IDENTIFIER=6
|
||||||
|
val SCE_CSS_UNKNOWN_IDENTIFIER=7
|
||||||
|
val SCE_CSS_VALUE=8
|
||||||
|
val SCE_CSS_COMMENT=9
|
||||||
|
val SCE_CSS_ID=10
|
||||||
|
val SCE_CSS_IMPORTANT=11
|
||||||
|
val SCE_CSS_DIRECTIVE=12
|
||||||
|
val SCE_CSS_DOUBLESTRING=13
|
||||||
|
val SCE_CSS_SINGLESTRING=14
|
||||||
|
# Lexical states for SCLEX_POV
|
||||||
|
lex POV=SCLEX_POV SCE_POV_
|
||||||
|
val SCE_POV_DEFAULT=0
|
||||||
|
val SCE_POV_COMMENT=1
|
||||||
|
val SCE_POV_COMMENTLINE=2
|
||||||
|
val SCE_POV_COMMENTDOC=3
|
||||||
|
val SCE_POV_NUMBER=4
|
||||||
|
val SCE_POV_WORD=5
|
||||||
|
val SCE_POV_STRING=6
|
||||||
|
val SCE_POV_OPERATOR=7
|
||||||
|
val SCE_POV_IDENTIFIER=8
|
||||||
|
val SCE_POV_BRACE=9
|
||||||
|
val SCE_POV_WORD2=10
|
||||||
# Events
|
# Events
|
||||||
|
|
||||||
evt void StyleNeeded=2000(int position)
|
evt void StyleNeeded=2000(int position)
|
||||||
@@ -1874,6 +2068,9 @@ evt void URIDropped=2015(string text)
|
|||||||
evt void DwellStart=2016(int position)
|
evt void DwellStart=2016(int position)
|
||||||
evt void DwellEnd=2017(int position)
|
evt void DwellEnd=2017(int position)
|
||||||
evt void Zoom=2018(void)
|
evt void Zoom=2018(void)
|
||||||
|
evt void HotSpotClick=2019(int modifiers, int position)
|
||||||
|
evt void HotSpotDoubleClick=2020(int modifiers, int position)
|
||||||
|
evt void CallTipClick=2021(int position)
|
||||||
|
|
||||||
cat Deprecated
|
cat Deprecated
|
||||||
|
|
||||||
|
@@ -37,7 +37,8 @@ struct _ScintillaClass {
|
|||||||
guint scintilla_get_type (void);
|
guint scintilla_get_type (void);
|
||||||
GtkWidget* scintilla_new (void);
|
GtkWidget* scintilla_new (void);
|
||||||
void scintilla_set_id (ScintillaObject *sci,int id);
|
void scintilla_set_id (ScintillaObject *sci,int id);
|
||||||
sptr_t scintilla_send_message (ScintillaObject *sci,unsigned int iMessage, uptr_t wParam, sptr_t lParam);
|
sptr_t scintilla_send_message (ScintillaObject *sci,unsigned int iMessage, uptr_t wParam, sptr_t lParam);
|
||||||
|
void scintilla_release_resources(void);
|
||||||
|
|
||||||
#if GTK_MAJOR_VERSION < 2
|
#if GTK_MAJOR_VERSION < 2
|
||||||
#define SCINTILLA_NOTIFY "notify"
|
#define SCINTILLA_NOTIFY "notify"
|
||||||
|
@@ -26,8 +26,8 @@ protected:
|
|||||||
bool InternalIsLeadByte(char ch);
|
bool InternalIsLeadByte(char ch);
|
||||||
void Fill(int position);
|
void Fill(int position);
|
||||||
public:
|
public:
|
||||||
WindowAccessor(WindowID id_, PropSet &props_) :
|
WindowAccessor(WindowID id_, PropSet &props_) :
|
||||||
Accessor(), id(id_), props(props_),
|
Accessor(), id(id_), props(props_),
|
||||||
lenDoc(-1), validLen(0), chFlags(0), chWhile(0) {
|
lenDoc(-1), validLen(0), chFlags(0), chWhile(0) {
|
||||||
}
|
}
|
||||||
~WindowAccessor();
|
~WindowAccessor();
|
||||||
@@ -40,8 +40,8 @@ public:
|
|||||||
void Flush();
|
void Flush();
|
||||||
int GetLineState(int line);
|
int GetLineState(int line);
|
||||||
int SetLineState(int line, int state);
|
int SetLineState(int line, int state);
|
||||||
int GetPropertyInt(const char *key, int defaultValue=0) {
|
int GetPropertyInt(const char *key, int defaultValue=0) {
|
||||||
return props.GetInt(key, defaultValue);
|
return props.GetInt(key, defaultValue);
|
||||||
}
|
}
|
||||||
char *GetProperties() {
|
char *GetProperties() {
|
||||||
return props.ToString();
|
return props.ToString();
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
/** @file AutoComplete.cxx
|
/** @file AutoComplete.cxx
|
||||||
** Defines the auto completion list box.
|
** Defines the auto completion list box.
|
||||||
**/
|
**/
|
||||||
// Copyright 1998-2002 by Neil Hodgson <neilh@scintilla.org>
|
// Copyright 1998-2003 by Neil Hodgson <neilh@scintilla.org>
|
||||||
// The License.txt file describes the conditions under which this software may be distributed.
|
// The License.txt file describes the conditions under which this software may be distributed.
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@@ -14,33 +14,42 @@
|
|||||||
#include "PropSet.h"
|
#include "PropSet.h"
|
||||||
#include "AutoComplete.h"
|
#include "AutoComplete.h"
|
||||||
|
|
||||||
AutoComplete::AutoComplete() :
|
AutoComplete::AutoComplete() :
|
||||||
active(false),
|
active(false),
|
||||||
separator(' '),
|
separator(' '),
|
||||||
|
typesep('?'),
|
||||||
ignoreCase(false),
|
ignoreCase(false),
|
||||||
chooseSingle(false),
|
chooseSingle(false),
|
||||||
|
lb(0),
|
||||||
posStart(0),
|
posStart(0),
|
||||||
startLen(0),
|
startLen(0),
|
||||||
cancelAtStartPos(true),
|
cancelAtStartPos(true),
|
||||||
autoHide(true),
|
autoHide(true),
|
||||||
dropRestOfWord(false) {
|
dropRestOfWord(false) {
|
||||||
|
lb = ListBox::Allocate();
|
||||||
stopChars[0] = '\0';
|
stopChars[0] = '\0';
|
||||||
fillUpChars[0] = '\0';
|
fillUpChars[0] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
AutoComplete::~AutoComplete() {
|
AutoComplete::~AutoComplete() {
|
||||||
lb.Destroy();
|
if (lb) {
|
||||||
|
lb->Destroy();
|
||||||
|
delete lb;
|
||||||
|
lb = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AutoComplete::Active() {
|
bool AutoComplete::Active() {
|
||||||
return active;
|
return active;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AutoComplete::Start(Window &parent, int ctrlID, int position, int startLen_) {
|
void AutoComplete::Start(Window &parent, int ctrlID, int position,
|
||||||
if (!lb.Created()) {
|
int startLen_, int lineHeight, bool unicodeMode) {
|
||||||
lb.Create(parent, ctrlID);
|
if (active) {
|
||||||
|
Cancel();
|
||||||
}
|
}
|
||||||
lb.Clear();
|
lb->Create(parent, ctrlID, lineHeight, unicodeMode);
|
||||||
|
lb->Clear();
|
||||||
active = true;
|
active = true;
|
||||||
startLen = startLen_;
|
startLen = startLen_;
|
||||||
posStart = position;
|
posStart = position;
|
||||||
@@ -63,7 +72,7 @@ void AutoComplete::SetFillUpChars(const char *fillUpChars_) {
|
|||||||
bool AutoComplete::IsFillUpChar(char ch) {
|
bool AutoComplete::IsFillUpChar(char ch) {
|
||||||
return ch && strchr(fillUpChars, ch);
|
return ch && strchr(fillUpChars, ch);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AutoComplete::SetSeparator(char separator_) {
|
void AutoComplete::SetSeparator(char separator_) {
|
||||||
separator = separator_;
|
separator = separator_;
|
||||||
}
|
}
|
||||||
@@ -72,49 +81,65 @@ char AutoComplete::GetSeparator() {
|
|||||||
return separator;
|
return separator;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void AutoComplete::SetTypesep(char separator_) {
|
||||||
|
typesep = separator_;
|
||||||
|
}
|
||||||
|
|
||||||
|
char AutoComplete::GetTypesep() {
|
||||||
|
return typesep;
|
||||||
|
}
|
||||||
|
|
||||||
void AutoComplete::SetList(const char *list) {
|
void AutoComplete::SetList(const char *list) {
|
||||||
lb.Clear();
|
lb->Clear();
|
||||||
char *words = new char[strlen(list) + 1];
|
char *words = new char[strlen(list) + 1];
|
||||||
if (words) {
|
if (words) {
|
||||||
strcpy(words, list);
|
strcpy(words, list);
|
||||||
char *startword = words;
|
char *startword = words;
|
||||||
|
char *numword = NULL;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (; words && words[i]; i++) {
|
for (; words && words[i]; i++) {
|
||||||
if (words[i] == separator) {
|
if (words[i] == separator) {
|
||||||
words[i] = '\0';
|
words[i] = '\0';
|
||||||
lb.Append(startword);
|
if (numword)
|
||||||
|
*numword = '\0';
|
||||||
|
lb->Append(startword, numword?atoi(numword + 1):-1);
|
||||||
startword = words + i + 1;
|
startword = words + i + 1;
|
||||||
|
numword = NULL;
|
||||||
|
} else if (words[i] == typesep) {
|
||||||
|
numword = words + i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (startword) {
|
if (startword) {
|
||||||
lb.Append(startword);
|
if (numword)
|
||||||
|
*numword = '\0';
|
||||||
|
lb->Append(startword, numword?atoi(numword + 1):-1);
|
||||||
}
|
}
|
||||||
delete []words;
|
delete []words;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void AutoComplete::Show() {
|
void AutoComplete::Show() {
|
||||||
lb.Show();
|
lb->Show();
|
||||||
lb.Select(0);
|
lb->Select(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AutoComplete::Cancel() {
|
void AutoComplete::Cancel() {
|
||||||
if (lb.Created()) {
|
if (lb->Created()) {
|
||||||
lb.Destroy();
|
lb->Destroy();
|
||||||
active = false;
|
active = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void AutoComplete::Move(int delta) {
|
void AutoComplete::Move(int delta) {
|
||||||
int count = lb.Length();
|
int count = lb->Length();
|
||||||
int current = lb.GetSelection();
|
int current = lb->GetSelection();
|
||||||
current += delta;
|
current += delta;
|
||||||
if (current >= count)
|
if (current >= count)
|
||||||
current = count - 1;
|
current = count - 1;
|
||||||
if (current < 0)
|
if (current < 0)
|
||||||
current = 0;
|
current = 0;
|
||||||
lb.Select(current);
|
lb->Select(current);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AutoComplete::Select(const char *word) {
|
void AutoComplete::Select(const char *word) {
|
||||||
@@ -123,10 +148,10 @@ void AutoComplete::Select(const char *word) {
|
|||||||
const int maxItemLen=1000;
|
const int maxItemLen=1000;
|
||||||
char item[maxItemLen];
|
char item[maxItemLen];
|
||||||
int start = 0; // lower bound of the api array block to search
|
int start = 0; // lower bound of the api array block to search
|
||||||
int end = lb.Length() - 1; // upper bound of the api array block to search
|
int end = lb->Length() - 1; // upper bound of the api array block to search
|
||||||
while ((start <= end) && (location == -1)) { // Binary searching loop
|
while ((start <= end) && (location == -1)) { // Binary searching loop
|
||||||
int pivot = (start + end) / 2;
|
int pivot = (start + end) / 2;
|
||||||
lb.GetValue(pivot, item, maxItemLen);
|
lb->GetValue(pivot, item, maxItemLen);
|
||||||
int cond;
|
int cond;
|
||||||
if (ignoreCase)
|
if (ignoreCase)
|
||||||
cond = CompareNCaseInsensitive(word, item, lenWord);
|
cond = CompareNCaseInsensitive(word, item, lenWord);
|
||||||
@@ -135,7 +160,7 @@ void AutoComplete::Select(const char *word) {
|
|||||||
if (!cond) {
|
if (!cond) {
|
||||||
// Find first match
|
// Find first match
|
||||||
while (pivot > start) {
|
while (pivot > start) {
|
||||||
lb.GetValue(pivot-1, item, maxItemLen);
|
lb->GetValue(pivot-1, item, maxItemLen);
|
||||||
if (ignoreCase)
|
if (ignoreCase)
|
||||||
cond = CompareNCaseInsensitive(word, item, lenWord);
|
cond = CompareNCaseInsensitive(word, item, lenWord);
|
||||||
else
|
else
|
||||||
@@ -154,6 +179,6 @@ void AutoComplete::Select(const char *word) {
|
|||||||
if (location == -1 && autoHide)
|
if (location == -1 && autoHide)
|
||||||
Cancel();
|
Cancel();
|
||||||
else
|
else
|
||||||
lb.Select(location);
|
lb->Select(location);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
/** @file AutoComplete.h
|
/** @file AutoComplete.h
|
||||||
** Defines the auto completion list box.
|
** Defines the auto completion list box.
|
||||||
**/
|
**/
|
||||||
// Copyright 1998-2002 by Neil Hodgson <neilh@scintilla.org>
|
// Copyright 1998-2003 by Neil Hodgson <neilh@scintilla.org>
|
||||||
// The License.txt file describes the conditions under which this software may be distributed.
|
// The License.txt file describes the conditions under which this software may be distributed.
|
||||||
|
|
||||||
#ifndef AUTOCOMPLETE_H
|
#ifndef AUTOCOMPLETE_H
|
||||||
@@ -15,11 +15,12 @@ class AutoComplete {
|
|||||||
char stopChars[256];
|
char stopChars[256];
|
||||||
char fillUpChars[256];
|
char fillUpChars[256];
|
||||||
char separator;
|
char separator;
|
||||||
|
char typesep; // Type seperator
|
||||||
|
|
||||||
public:
|
public:
|
||||||
bool ignoreCase;
|
bool ignoreCase;
|
||||||
bool chooseSingle;
|
bool chooseSingle;
|
||||||
ListBox lb;
|
ListBox *lb;
|
||||||
int posStart;
|
int posStart;
|
||||||
int startLen;
|
int startLen;
|
||||||
/// Should autocompletion be canceled if editor's currentPos <= startPos?
|
/// Should autocompletion be canceled if editor's currentPos <= startPos?
|
||||||
@@ -34,7 +35,8 @@ public:
|
|||||||
bool Active();
|
bool Active();
|
||||||
|
|
||||||
/// Display the auto completion list positioned to be near a character position
|
/// Display the auto completion list positioned to be near a character position
|
||||||
void Start(Window &parent, int ctrlID, int position, int startLen_);
|
void Start(Window &parent, int ctrlID, int position,
|
||||||
|
int startLen_, int lineHeight, bool unicodeMode);
|
||||||
|
|
||||||
/// The stop chars are characters which, when typed, cause the auto completion list to disappear
|
/// The stop chars are characters which, when typed, cause the auto completion list to disappear
|
||||||
void SetStopChars(const char *stopChars_);
|
void SetStopChars(const char *stopChars_);
|
||||||
@@ -48,6 +50,10 @@ public:
|
|||||||
void SetSeparator(char separator_);
|
void SetSeparator(char separator_);
|
||||||
char GetSeparator();
|
char GetSeparator();
|
||||||
|
|
||||||
|
/// The typesep character is used for seperating the word from the type
|
||||||
|
void SetTypesep(char separator_);
|
||||||
|
char GetTypesep();
|
||||||
|
|
||||||
/// The list string contains a sequence of words separated by the separator character
|
/// The list string contains a sequence of words separated by the separator character
|
||||||
void SetList(const char *list);
|
void SetList(const char *list);
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user