Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
7096c4526a |
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
|
||||||
|
137
Makefile.in
137
Makefile.in
@@ -324,7 +324,7 @@ $(build_libdir)/@WX_LIBRARY_NAME_SHARED@: $(OBJECTS)
|
|||||||
# but this seems to result in problems with libwx_gtk being linked in twice
|
# but this seems to result in problems with libwx_gtk being linked in twice
|
||||||
$(build_libdir)/@WX_LIBRARY_NAME_SHARED_GL@: glcanvas.o $(build_libdir)/@WX_LIBRARY_NAME_SHARED@
|
$(build_libdir)/@WX_LIBRARY_NAME_SHARED_GL@: glcanvas.o $(build_libdir)/@WX_LIBRARY_NAME_SHARED@
|
||||||
@$(INSTALL) -d $(build_libdir)
|
@$(INSTALL) -d $(build_libdir)
|
||||||
$(SHARED_LD) $@ $(SONAME_FLAGS_GL) glcanvas.o $(EXTRALIBS) $(OPENGLLIBS)
|
$(SHARED_LD) $@ $(SONAME_FLAGS_GL) glcanvas.o $(EXTRALIBS) $(LDFLAGS_GL) $(OPENGLLIBS)
|
||||||
|
|
||||||
$(build_libdir)/@WX_RESOURCES_MACOSX_DATA@: $(MACRESOURCES)
|
$(build_libdir)/@WX_RESOURCES_MACOSX_DATA@: $(MACRESOURCES)
|
||||||
@$(INSTALL) -d $(build_libdir)
|
@$(INSTALL) -d $(build_libdir)
|
||||||
@@ -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
|
||||||
@@ -1356,6 +1362,7 @@ UTILS_DIST: ALL_GUI_DIST
|
|||||||
cp $(UTILSDIR)/emulator/src/*.in $(DISTDIR)/utils/emulator/src
|
cp $(UTILSDIR)/emulator/src/*.in $(DISTDIR)/utils/emulator/src
|
||||||
cp $(UTILSDIR)/emulator/src/*.cpp $(DISTDIR)/utils/emulator/src
|
cp $(UTILSDIR)/emulator/src/*.cpp $(DISTDIR)/utils/emulator/src
|
||||||
cp $(UTILSDIR)/emulator/src/*.jpg $(DISTDIR)/utils/emulator/src
|
cp $(UTILSDIR)/emulator/src/*.jpg $(DISTDIR)/utils/emulator/src
|
||||||
|
cp $(UTILSDIR)/emulator/src/*.xpm $(DISTDIR)/utils/emulator/src
|
||||||
cp $(UTILSDIR)/emulator/src/*.wxe $(DISTDIR)/utils/emulator/src
|
cp $(UTILSDIR)/emulator/src/*.wxe $(DISTDIR)/utils/emulator/src
|
||||||
cp $(UTILSDIR)/emulator/docs/*.txt $(DISTDIR)/utils/emulator/docs
|
cp $(UTILSDIR)/emulator/docs/*.txt $(DISTDIR)/utils/emulator/docs
|
||||||
cp $(UTILSDIR)/emulator/docs/*.jpg $(DISTDIR)/utils/emulator/docs
|
cp $(UTILSDIR)/emulator/docs/*.jpg $(DISTDIR)/utils/emulator/docs
|
||||||
@@ -1424,62 +1431,78 @@ 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/distrib \
|
||||||
mkdir $(DISTDIR)/wxPython/scripts
|
wxPython/distutils \
|
||||||
mkdir $(DISTDIR)/wxPython/wxPython
|
wxPython/distutils/command \
|
||||||
mkdir $(DISTDIR)/wxPython/wxPython/lib
|
wxPython/docs \
|
||||||
mkdir $(DISTDIR)/wxPython/wxPython/lib/PyCrust
|
wxPython/docs/screenshots \
|
||||||
mkdir $(DISTDIR)/wxPython/wxPython/lib/editor
|
wxPython/samples/StyleEditor \
|
||||||
mkdir $(DISTDIR)/wxPython/wxPython/lib/mixins
|
wxPython/samples/doodle \
|
||||||
mkdir $(DISTDIR)/wxPython/wxPython/tools
|
wxPython/samples/embedded \
|
||||||
mkdir $(DISTDIR)/wxPython/wxPython/tools/XRCed
|
wxPython/samples/frogedit \
|
||||||
|
wxPython/samples/hangman \
|
||||||
cp $(WXDIR)/wxPython/*.txt $(DISTDIR)/wxPython
|
wxPython/samples/pySketch \
|
||||||
cp $(WXDIR)/wxPython/*.py $(DISTDIR)/wxPython
|
wxPython/samples/pySketch/images \
|
||||||
cp $(WXDIR)/wxPython/setup.cfg $(DISTDIR)/wxPython
|
wxPython/samples/wxProject \
|
||||||
cp $(WXDIR)/wxPython/MANIFEST.in $(DISTDIR)/wxPython
|
wxPython/samples/wx_examples \
|
||||||
cp $(WXDIR)/wxPython/contrib/dllwidget/*.{py,cpp,h,i} $(DISTDIR)/wxPython/contrib/dllwidget
|
wxPython/samples/wx_examples/basic \
|
||||||
cp $(WXDIR)/wxPython/contrib/gizmos/*.{py,cpp,i} $(DISTDIR)/wxPython/contrib/gizmos
|
wxPython/samples/wx_examples/hello \
|
||||||
-cp $(WXDIR)/wxPython/contrib/glcanvas/* $(DISTDIR)/wxPython/contrib/glcanvas
|
wxPython/scripts \
|
||||||
cp $(WXDIR)/wxPython/contrib/glcanvas/gtk/glcanvas.* $(DISTDIR)/wxPython/contrib/glcanvas/gtk
|
wxPython/src \
|
||||||
-cp $(WXDIR)/wxPython/contrib/ogl/* $(DISTDIR)/wxPython/contrib/ogl
|
wxPython/src/gtk \
|
||||||
-cp $(WXDIR)/wxPython/contrib/stc/* $(DISTDIR)/wxPython/contrib/stc
|
wxPython/wx \
|
||||||
-cp $(WXDIR)/wxPython/contrib/stc/gtk/* $(DISTDIR)/wxPython/contrib/stc/gtk
|
wxPython/wx/lib \
|
||||||
-cp $(WXDIR)/wxPython/contrib/xrc/xrc.* $(DISTDIR)/wxPython/contrib/xrc
|
wxPython/wx/lib/colourchooser \
|
||||||
-cp $(WXDIR)/wxPython/demo/* $(DISTDIR)/wxPython/demo
|
wxPython/wx/lib/editor \
|
||||||
-cp $(WXDIR)/wxPython/demo/bitmaps/* $(DISTDIR)/wxPython/demo/bitmaps
|
wxPython/wx/lib/mixins \
|
||||||
-cp $(WXDIR)/wxPython/demo/bmp_source/* $(DISTDIR)/wxPython/demo/bmp_source
|
wxPython/wx/py \
|
||||||
-cp $(WXDIR)/wxPython/demo/data/* $(DISTDIR)/wxPython/demo/data
|
wxPython/wx/tools \
|
||||||
-cp $(WXDIR)/wxPython/demo/dllwidget/Makefile $(DISTDIR)/wxPython/demo/dllwidget
|
wxPython/wx/tools/XRCed \
|
||||||
-cp $(WXDIR)/wxPython/demo/dllwidget/test_* $(DISTDIR)/wxPython/demo/dllwidget
|
wxPython/wxPython \
|
||||||
-cp $(WXDIR)/wxPython/scripts/* $(DISTDIR)/wxPython/scripts
|
wxPython/wxPython/lib \
|
||||||
-cp $(WXDIR)/wxPython/src/* $(DISTDIR)/wxPython/src
|
wxPython/wxPython/lib/PyCrust \
|
||||||
cp $(WXDIR)/wxPython/src/gtk/*.py $(DISTDIR)/wxPython/src/gtk
|
wxPython/wxPython/lib/colourchooser \
|
||||||
cp $(WXDIR)/wxPython/src/gtk/*.cpp $(DISTDIR)/wxPython/src/gtk
|
wxPython/wxPython/lib/editor \
|
||||||
cp $(WXDIR)/wxPython/wxPython/lib/*.py $(DISTDIR)/wxPython/wxPython/lib
|
wxPython/wxPython/lib/mixins \
|
||||||
cp $(WXDIR)/wxPython/wxPython/lib/PyCrust/*.py $(DISTDIR)/wxPython/wxPython/lib/PyCrust
|
wxPython/wxPython/tools \
|
||||||
cp $(WXDIR)/wxPython/wxPython/lib/editor/*.py $(DISTDIR)/wxPython/wxPython/lib/editor
|
wxPython/wxPython/tools/XRCed \
|
||||||
cp $(WXDIR)/wxPython/wxPython/lib/mixins/*.py $(DISTDIR)/wxPython/wxPython/lib/mixins
|
wxPython/wxPython/tools/XRCed/src-images \
|
||||||
cp $(WXDIR)/wxPython/wxPython/tools/*.py $(DISTDIR)/wxPython/wxPython/tools
|
wxPython/wxPython/py \
|
||||||
cp $(WXDIR)/wxPython/wxPython/tools/XRCed/*.{py,ico,sh,xrc} $(DISTDIR)/wxPython/wxPython/tools/XRCed
|
wxPython/wxPython/py/tests \
|
||||||
|
wxPython/wxPython/py/wxd \
|
||||||
|
; do \
|
||||||
|
echo "Copying dir: $$dir..."; \
|
||||||
|
mkdir $(DISTDIR)/$$dir; \
|
||||||
|
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*)
|
||||||
|
343
configure.in
343
configure.in
@@ -25,20 +25,12 @@ dnl When making releases do:
|
|||||||
dnl
|
dnl
|
||||||
dnl WX_RELEASE_NUMBER += 1
|
dnl WX_RELEASE_NUMBER += 1
|
||||||
dnl
|
dnl
|
||||||
dnl ..and update WX_CURRENT, WX_RELEASE and WX_AGE according to the
|
dnl In case of backwards incompatible change (shouldn't happen
|
||||||
dnl following rules:
|
dnl but if it does, do change the soname here to avoid run-time
|
||||||
dnl
|
dnl problems!), do WX_CURRENT++; WX_REVISION = WX_AGE = 0. Otherwise
|
||||||
dnl If any changes have been made to the public interface, that is if any
|
dnl (i.e. normal case), WX_CURRENT should be left unchanged, but you
|
||||||
dnl exported class, method, global or global type has been added, removed
|
dnl should do WX_REVISION++ and, if any public methods were added to
|
||||||
dnl or changed in any way, then do: WX_CURRENT += 1
|
dnl the library, also WX_AGE++.
|
||||||
dnl
|
|
||||||
dnl If source changes have been made that *do not* alter the public
|
|
||||||
dnl interface then do: WX_REVISION += 1
|
|
||||||
dnl If WX_CURRENT was incremented (as above) instead do: WX_REVISION = 0
|
|
||||||
dnl
|
|
||||||
dnl If any public interface was added, do: WX_AGE += 1
|
|
||||||
dnl If any public interface was removed (or altered in a way effectively
|
|
||||||
dnl removing the previous definition), instead do: WX_AGE = 0
|
|
||||||
dnl
|
dnl
|
||||||
dnl When the major or minor version numbers are incremented, all the above
|
dnl When the major or minor version numbers are incremented, all the above
|
||||||
dnl variables should be reset to 0.
|
dnl variables should be reset to 0.
|
||||||
@@ -48,7 +40,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=2
|
||||||
|
|
||||||
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
|
||||||
@@ -56,8 +48,8 @@ WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
|
|||||||
WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
|
WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
|
||||||
|
|
||||||
WX_CURRENT=0
|
WX_CURRENT=0
|
||||||
WX_REVISION=0
|
WX_REVISION=1
|
||||||
WX_AGE=0
|
WX_AGE=1
|
||||||
|
|
||||||
|
|
||||||
dnl ------------------------------------------------------------------------
|
dnl ------------------------------------------------------------------------
|
||||||
@@ -66,12 +58,14 @@ dnl ------------------------------------------------------------------------
|
|||||||
|
|
||||||
dnl assume Unix
|
dnl assume Unix
|
||||||
USE_UNIX=1
|
USE_UNIX=1
|
||||||
|
USE_OS2=0
|
||||||
USE_WIN32=0
|
USE_WIN32=0
|
||||||
USE_DOS=0
|
USE_DOS=0
|
||||||
USE_BEOS=0
|
USE_BEOS=0
|
||||||
USE_MAC=0
|
USE_MAC=0
|
||||||
|
|
||||||
USE_LINUX=
|
USE_LINUX=
|
||||||
|
USE_GNU=
|
||||||
USE_SGI=
|
USE_SGI=
|
||||||
USE_HPUX=
|
USE_HPUX=
|
||||||
USE_SYSV=
|
USE_SYSV=
|
||||||
@@ -151,6 +145,16 @@ case "${host}" in
|
|||||||
fi
|
fi
|
||||||
DEFAULT_DEFAULT_wxUSE_GTK=1
|
DEFAULT_DEFAULT_wxUSE_GTK=1
|
||||||
;;
|
;;
|
||||||
|
*-*-gnu* )
|
||||||
|
USE_GNU=1
|
||||||
|
AC_DEFINE(__GNU__)
|
||||||
|
TMP=`uname -m`
|
||||||
|
if test "x$TMP" = "xalpha"; then
|
||||||
|
USE_ALPHA=1
|
||||||
|
AC_DEFINE(__ALPHA__)
|
||||||
|
fi
|
||||||
|
DEFAULT_DEFAULT_wxUSE_GTK=1
|
||||||
|
;;
|
||||||
*-*-irix5* | *-*-irix6* )
|
*-*-irix5* | *-*-irix6* )
|
||||||
USE_SGI=1
|
USE_SGI=1
|
||||||
USE_SVR4=1
|
USE_SVR4=1
|
||||||
@@ -228,7 +232,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__)
|
||||||
@@ -257,9 +261,14 @@ case "${host}" in
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
*-pc-os2_emx | *-pc-os2-emx )
|
*-pc-os2_emx | *-pc-os2-emx )
|
||||||
|
USE_OS2=1
|
||||||
|
dnl Now both USE_OS2 and USE_UNIX should be set to 1 !!
|
||||||
AC_DEFINE(__EMX__)
|
AC_DEFINE(__EMX__)
|
||||||
PROGRAM_EXT=".exe"
|
PROGRAM_EXT=".exe"
|
||||||
DEFAULT_DEFAULT_wxUSE_PM=1
|
DEFAULT_DEFAULT_wxUSE_PM=1
|
||||||
|
dnl "c++" wrapper is not always available, so always use plain gcc.
|
||||||
|
CXX=gcc
|
||||||
|
LDFLAGS="$LDFLAGS -Zcrtdll -Zsysv-signals"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
powerpc-*-darwin* )
|
powerpc-*-darwin* )
|
||||||
@@ -474,6 +483,8 @@ if test $DEBUG_CONFIGURE = 1; then
|
|||||||
DEFAULT_wxUSE_IFF=no
|
DEFAULT_wxUSE_IFF=no
|
||||||
DEFAULT_wxUSE_XPM=no
|
DEFAULT_wxUSE_XPM=no
|
||||||
DEFAULT_wxUSE_ICO_CUR=no
|
DEFAULT_wxUSE_ICO_CUR=no
|
||||||
|
DEFAULT_wxUSE_IMAGE_LOADING_IN_MSW=no
|
||||||
|
DEFAULT_wxUSE_RESOURCE_LOADING_IN_MSW=no
|
||||||
else
|
else
|
||||||
DEFAULT_wxUSE_UNIVERSAL=no
|
DEFAULT_wxUSE_UNIVERSAL=no
|
||||||
|
|
||||||
@@ -649,6 +660,8 @@ else
|
|||||||
DEFAULT_wxUSE_PNM=yes
|
DEFAULT_wxUSE_PNM=yes
|
||||||
DEFAULT_wxUSE_XPM=yes
|
DEFAULT_wxUSE_XPM=yes
|
||||||
DEFAULT_wxUSE_ICO_CUR=yes
|
DEFAULT_wxUSE_ICO_CUR=yes
|
||||||
|
DEFAULT_wxUSE_IMAGE_LOADING_IN_MSW=yes
|
||||||
|
DEFAULT_wxUSE_RESOURCE_LOADING_IN_MSW=yes
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl WX_ARG_WITH should be used to select whether an external package will be
|
dnl WX_ARG_WITH should be used to select whether an external package will be
|
||||||
@@ -1035,6 +1048,8 @@ WX_ARG_ENABLE(iff, [ --enable-iff use iff images (IFF file f
|
|||||||
WX_ARG_ENABLE(pnm, [ --enable-pnm use pnm images (PNM file format)], wxUSE_PNM)
|
WX_ARG_ENABLE(pnm, [ --enable-pnm use pnm images (PNM file format)], wxUSE_PNM)
|
||||||
WX_ARG_ENABLE(xpm, [ --enable-xpm use xpm images (XPM file format)], wxUSE_XPM)
|
WX_ARG_ENABLE(xpm, [ --enable-xpm use xpm images (XPM file format)], wxUSE_XPM)
|
||||||
WX_ARG_ENABLE(ico_cur, [ --enable-icocur use Windows ICO and CUR formats], wxUSE_ICO_CUR)
|
WX_ARG_ENABLE(ico_cur, [ --enable-icocur use Windows ICO and CUR formats], wxUSE_ICO_CUR)
|
||||||
|
WX_ARG_ENABLE(dynamic_dib, [ --disable-dynamic_dib don't use dynamic DIB loading/saving code under MSW], wxUSE_IMAGE_LOADING_IN_MSW, disable)
|
||||||
|
WX_ARG_ENABLE(dynamic_ico_cur, [ --disable-dynamic_ico_cur don't use dynamic icon/cursor loading/saving code under MSW], wxUSE_RESOURCE_LOADING_IN_MSW, disable)
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -1241,10 +1256,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
|
||||||
@@ -1342,6 +1360,8 @@ AC_PROG_LN_S
|
|||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
dnl When we are using gcc on OS/2, we want to be either using resources (PM)
|
dnl When we are using gcc on OS/2, we want to be either using resources (PM)
|
||||||
dnl or a more complete POSIX emulation for Motif/GTK+/X11
|
dnl or a more complete POSIX emulation for Motif/GTK+/X11
|
||||||
|
dnl Moreover we need to link explicitly against either stdcpp.a or stdcxx.a
|
||||||
|
dnl (depending on compiler version), since we are using "gcc", not "g++/c++".
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
dnl (OS/2-only piece)
|
dnl (OS/2-only piece)
|
||||||
case "${host}" in
|
case "${host}" in
|
||||||
@@ -1356,6 +1376,26 @@ case "${host}" in
|
|||||||
dnl Include resources for the "native" port (wxPM).
|
dnl Include resources for the "native" port (wxPM).
|
||||||
RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
|
RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
|
||||||
fi
|
fi
|
||||||
|
AC_CACHE_CHECK([for gcc 3 or later], wx_cv_gcc3,[
|
||||||
|
AC_TRY_COMPILE([#include <features.h>],
|
||||||
|
[
|
||||||
|
#if (__GNUC__ < 3)
|
||||||
|
#error old gcc
|
||||||
|
#endif
|
||||||
|
],
|
||||||
|
[
|
||||||
|
wx_cv_gcc3=yes
|
||||||
|
],
|
||||||
|
[
|
||||||
|
wx_cv_gcc3=no
|
||||||
|
]
|
||||||
|
)
|
||||||
|
])
|
||||||
|
if test "$wx_cv_gcc3" = "no"; then
|
||||||
|
LIBS="$LIBS -lstdcpp"
|
||||||
|
else
|
||||||
|
LIBS="$LIBS -lstdcxx"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
dnl (end of OS/2-only piece)
|
dnl (end of OS/2-only piece)
|
||||||
@@ -1397,8 +1437,17 @@ 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" -a "$wxUSE_PM" != 1; then
|
||||||
dnl defines HAVE_X11_XKBLIB_H
|
dnl defines HAVE_X11_XKBLIB_H
|
||||||
AC_CHECK_HEADERS(X11/XKBlib.h)
|
AC_CHECK_HEADERS(X11/XKBlib.h)
|
||||||
fi
|
fi
|
||||||
@@ -1601,7 +1650,7 @@ dnl check for glibc version
|
|||||||
dnl
|
dnl
|
||||||
dnl VZ: I have no idea why had this check been there originally, but now
|
dnl VZ: I have no idea why had this check been there originally, but now
|
||||||
dnl we could probably do without it by just always adding _GNU_SOURCE
|
dnl we could probably do without it by just always adding _GNU_SOURCE
|
||||||
if test "$USE_LINUX" = 1; then
|
if test "$USE_LINUX" = 1 || test "$USE_GNU" = 1 ; then
|
||||||
AC_CACHE_CHECK([for glibc 2.1 or later], wx_cv_lib_glibc21,[
|
AC_CACHE_CHECK([for glibc 2.1 or later], wx_cv_lib_glibc21,[
|
||||||
AC_TRY_COMPILE([#include <features.h>],
|
AC_TRY_COMPILE([#include <features.h>],
|
||||||
[
|
[
|
||||||
@@ -1667,7 +1716,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 +1761,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 +1778,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 +1839,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 +1857,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
|
||||||
@@ -1919,11 +1965,13 @@ if test "$wxUSE_LIBTIFF" != "no" ; then
|
|||||||
TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
|
TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
|
||||||
fi
|
fi
|
||||||
AC_CHECK_HEADER(tiffio.h,
|
AC_CHECK_HEADER(tiffio.h,
|
||||||
AC_CHECK_LIB(tiff, TIFFError,
|
[
|
||||||
TIFF_LINK=" -ltiff",
|
AC_CHECK_LIB(tiff, TIFFError,
|
||||||
,
|
TIFF_LINK=" -ltiff",
|
||||||
$TIFF_PREREQ_LINKS)
|
,
|
||||||
)
|
$TIFF_PREREQ_LINKS)
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
if test "x$TIFF_LINK" = "x" ; then
|
if test "x$TIFF_LINK" = "x" ; then
|
||||||
if test "$wxUSE_LIBTIFF" = "sys" ; then
|
if test "$wxUSE_LIBTIFF" = "sys" ; then
|
||||||
@@ -2154,35 +2202,51 @@ equivalent variable and GTK+ is version 1.2.3 or above.
|
|||||||
AC_MSG_RESULT($MGL_ROOT)
|
AC_MSG_RESULT($MGL_ROOT)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AC_MSG_CHECKING(for libmgl location)
|
||||||
dnl Find MGL library that we want
|
dnl Find MGL library that we want
|
||||||
dnl FIXME_MGL - test for MGL variants for freebsd etc.
|
dnl FIXME_MGL - test for MGL variants for freebsd etc.
|
||||||
case "${host}" in
|
case "${host}" in
|
||||||
*-*-linux* )
|
*-*-linux* )
|
||||||
mgl_os="linux/gcc/glibc*"
|
if test "x$wxUSE_SHARED" = xyes ; then
|
||||||
|
mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
|
||||||
|
else
|
||||||
|
mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
*-pc-msdosdjgpp )
|
*-pc-msdosdjgpp )
|
||||||
mgl_os=dos32/dj2
|
mgl_os_candidates="dos32/dj2"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
AC_MSG_ERROR(This system type ${host} is not yet supported by wxMGL.)
|
AC_MSG_ERROR(This system type ${host} is not yet supported by wxMGL.)
|
||||||
esac
|
esac
|
||||||
|
|
||||||
mgl_lib_type=""
|
mgl_lib_type=""
|
||||||
|
mgl_os=""
|
||||||
|
|
||||||
if test "$wxUSE_DEBUG_FLAG" = yes ; then
|
for mgl_os_i in $mgl_os_candidates ; do
|
||||||
if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
|
if test "x$mgl_os" = x ; then
|
||||||
-f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
|
if test "$wxUSE_DEBUG_FLAG" = yes ; then
|
||||||
mgl_lib_type=debug
|
if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
|
||||||
fi
|
-f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
|
||||||
fi
|
mgl_lib_type=debug
|
||||||
if test "x$mgl_lib_type" = x ; then
|
mgl_os=$mgl_os_i
|
||||||
if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
|
fi
|
||||||
-f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
|
fi
|
||||||
mgl_lib_type=release
|
if test "x$mgl_lib_type" = x ; then
|
||||||
else
|
if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
|
||||||
AC_MSG_ERROR([Cannot find MGL libraries, make sure they are compiled.])
|
-f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
|
||||||
|
mgl_lib_type=release
|
||||||
|
mgl_os=$mgl_os_i
|
||||||
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if test "x$mgl_os" = x ; then
|
||||||
|
AC_MSG_RESULT(not found)
|
||||||
|
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")
|
||||||
|
|
||||||
wxUSE_UNIVERSAL="yes"
|
wxUSE_UNIVERSAL="yes"
|
||||||
|
|
||||||
@@ -2312,7 +2376,7 @@ equivalent variable and GTK+ is version 1.2.3 or above.
|
|||||||
|
|
||||||
if test "$wxUSE_NANOX" = "yes"; then
|
if test "$wxUSE_NANOX" = "yes"; then
|
||||||
TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
|
TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
|
||||||
TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DLINUX=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1"
|
TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1"
|
||||||
GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
|
GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
|
||||||
else
|
else
|
||||||
GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
|
GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
|
||||||
@@ -2543,8 +2607,6 @@ equivalent variable and GTK+ is version 1.2.3 or above.
|
|||||||
AC_MSG_WARN([OS/2 PM requires old resource format, re-enabled])
|
AC_MSG_WARN([OS/2 PM requires old resource format, re-enabled])
|
||||||
wxUSE_PROLOGIO="yes"
|
wxUSE_PROLOGIO="yes"
|
||||||
wxUSE_RESOURCES="yes"
|
wxUSE_RESOURCES="yes"
|
||||||
AC_MSG_WARN([OS/2 threads are not yet supported... disabled])
|
|
||||||
wxUSE_THREADS="no"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl the name of the directory where the files for this toolkit live
|
dnl the name of the directory where the files for this toolkit live
|
||||||
@@ -2769,7 +2831,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}"
|
||||||
|
|
||||||
@@ -2781,9 +2843,10 @@ case "${host}" in
|
|||||||
dnl Under Mac OS X, we should build real frameworks instead of simple
|
dnl Under Mac OS X, we should build real frameworks instead of simple
|
||||||
dnl dynamic shared libraries (in order to embed the resources)
|
dnl dynamic shared libraries (in order to embed the resources)
|
||||||
if test "$wxUSE_MAC" = 1; then
|
if test "$wxUSE_MAC" = 1; then
|
||||||
dnl the name of the resources file for wxMac
|
dnl base name of the resource file for wxMac must be the same
|
||||||
WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r"
|
dnl as library installation base name (-install_name)
|
||||||
WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc"
|
WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
|
||||||
|
WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@@ -2862,7 +2925,7 @@ if test "$wxUSE_SHARED" = "yes"; then
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*-*-linux* )
|
*-*-linux* | *-*-gnu* )
|
||||||
if test "$GCC" != "yes"; then
|
if test "$GCC" != "yes"; then
|
||||||
AC_CACHE_CHECK([for Intel compiler], wx_cv_prog_icc,
|
AC_CACHE_CHECK([for Intel compiler], wx_cv_prog_icc,
|
||||||
[
|
[
|
||||||
@@ -2914,6 +2977,9 @@ if test "$wxUSE_SHARED" = "yes"; then
|
|||||||
dnl "-init _wxWindowsDylibInit" not useful with lazy linking solved
|
dnl "-init _wxWindowsDylibInit" not useful with lazy linking solved
|
||||||
SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
|
SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
|
||||||
PIC_FLAG="-dynamic -fPIC"
|
PIC_FLAG="-dynamic -fPIC"
|
||||||
|
dnl library installation base name and wxMac resources file base name
|
||||||
|
dnl must be identical in order for the resource file to be found at
|
||||||
|
dnl run time in src/mac/app.cpp
|
||||||
SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
|
SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
|
||||||
SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
|
SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
|
||||||
;;
|
;;
|
||||||
@@ -3031,6 +3097,8 @@ if test "$wxUSE_MAC" = 1; then
|
|||||||
else
|
else
|
||||||
if test "$wxUSE_PM" = 1; then
|
if test "$wxUSE_PM" = 1; then
|
||||||
LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
|
LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
|
||||||
|
else
|
||||||
|
LIBWXMACRESCOMP="#"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -3050,11 +3118,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
|
||||||
@@ -3072,6 +3141,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
|
||||||
@@ -3266,20 +3336,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
|
||||||
@@ -3291,12 +3358,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
|
||||||
@@ -3371,12 +3499,16 @@ AC_CHECK_FUNCS(inet_addr,
|
|||||||
[
|
[
|
||||||
AC_CHECK_LIB(nsl, inet_addr,
|
AC_CHECK_LIB(nsl, inet_addr,
|
||||||
INET_LINK="nsl",
|
INET_LINK="nsl",
|
||||||
AC_CHECK_LIB(resolv, inet_addr,
|
[
|
||||||
INET_LINK="resolv",
|
AC_CHECK_LIB(resolv, inet_addr,
|
||||||
AC_CHECK_LIB(socket, inet_addr,
|
INET_LINK="resolv",
|
||||||
INET_LINK="socket"
|
[
|
||||||
|
AC_CHECK_LIB(socket, inet_addr,
|
||||||
|
INET_LINK="socket"
|
||||||
|
)
|
||||||
|
]
|
||||||
)
|
)
|
||||||
)
|
]
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
@@ -3409,7 +3541,7 @@ dnl ---------------------------------------------------------------------------
|
|||||||
|
|
||||||
dnl under MSW (except mingw32) we always have thread support
|
dnl under MSW (except mingw32) we always have thread support
|
||||||
CPP_MT_FLAG=
|
CPP_MT_FLAG=
|
||||||
if test "$TOOLKIT" != "MSW"; then
|
if test "$TOOLKIT" != "MSW" -a "$TOOLKIT" != "PM"; then
|
||||||
|
|
||||||
dnl the code below:
|
dnl the code below:
|
||||||
dnl
|
dnl
|
||||||
@@ -3588,17 +3720,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
|
||||||
@@ -3705,6 +3837,11 @@ else
|
|||||||
CFLAGS="$CFLAGS_OLD"
|
CFLAGS="$CFLAGS_OLD"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
*-pc-os2*emx )
|
||||||
|
CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
|
||||||
|
CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
|
||||||
|
LDFLAGS="$LDFLAGS -Zmt"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@@ -4168,15 +4305,17 @@ if test "$wxUSE_SOCKETS" = "yes"; then
|
|||||||
if test "$TOOLKIT" != "MSW"; then
|
if test "$TOOLKIT" != "MSW"; then
|
||||||
dnl under Solaris and OS/2, socket functions live in -lsocket
|
dnl under Solaris and OS/2, socket functions live in -lsocket
|
||||||
AC_CHECK_FUNC(socket,,
|
AC_CHECK_FUNC(socket,,
|
||||||
AC_CHECK_LIB(socket, socket,
|
[
|
||||||
if test "$INET_LINK" != " -lsocket"; then
|
AC_CHECK_LIB(socket, socket,
|
||||||
INET_LINK="$INET_LINK -lsocket"
|
if test "$INET_LINK" != " -lsocket"; then
|
||||||
fi,
|
INET_LINK="$INET_LINK -lsocket"
|
||||||
[
|
fi,
|
||||||
AC_MSG_WARN([socket library not found - sockets will be disabled])
|
[
|
||||||
wxUSE_SOCKETS=no
|
AC_MSG_WARN([socket library not found - sockets will be disabled])
|
||||||
]
|
wxUSE_SOCKETS=no
|
||||||
)
|
]
|
||||||
|
)
|
||||||
|
]
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@@ -4286,8 +4425,9 @@ dnl ------------------------------------------------------------------------
|
|||||||
dnl DLL support
|
dnl DLL support
|
||||||
dnl ------------------------------------------------------------------------
|
dnl ------------------------------------------------------------------------
|
||||||
|
|
||||||
dnl under MSW we always have LoadLibrary/GetProcAddress
|
dnl under MSW we always have LoadLibrary/GetProcAddress and
|
||||||
if test "$TOOLKIT" != "MSW"; then
|
dnl under OS/2 we always have DosLoadModule/DosQueryProcAddr
|
||||||
|
if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
|
||||||
|
|
||||||
HAVE_DL_FUNCS=0
|
HAVE_DL_FUNCS=0
|
||||||
HAVE_SHL_FUNCS=0
|
HAVE_SHL_FUNCS=0
|
||||||
@@ -4330,8 +4470,11 @@ if test "$TOOLKIT" != "MSW"; then
|
|||||||
dnl check also for dlerror()
|
dnl check also for dlerror()
|
||||||
if test "$HAVE_DL_FUNCS" = 1; then
|
if test "$HAVE_DL_FUNCS" = 1; then
|
||||||
AC_CHECK_FUNCS(dlerror,
|
AC_CHECK_FUNCS(dlerror,
|
||||||
AC_DEFINE(HAVE_DLERROR),
|
AC_DEFINE(HAVE_DLERROR),
|
||||||
AC_CHECK_LIB(dl, dlerror, AC_DEFINE(HAVE_DLERROR)))
|
[
|
||||||
|
AC_CHECK_LIB(dl, dlerror, AC_DEFINE(HAVE_DLERROR))
|
||||||
|
]
|
||||||
|
)
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -5039,6 +5182,14 @@ if test "$wxUSE_ICO_CUR" = "yes" ; then
|
|||||||
AC_DEFINE(wxUSE_ICO_CUR)
|
AC_DEFINE(wxUSE_ICO_CUR)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "$wxUSE_IMAGE_LOADING_IN_MSW" = "yes"; then
|
||||||
|
AC_DEFINE(wxUSE_IMAGE_LOADING_IN_MSW)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$wxUSE_RESOURCE_LOADING_IN_MSW" = "yes"; then
|
||||||
|
AC_DEFINE(wxUSE_RESOURCE_LOADING_IN_MSW)
|
||||||
|
fi
|
||||||
|
|
||||||
if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
|
if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
|
||||||
dnl Must be done this late because -lunicows must be before all the other libs
|
dnl Must be done this late because -lunicows must be before all the other libs
|
||||||
LIBS=" -lunicows $LIBS"
|
LIBS=" -lunicows $LIBS"
|
||||||
@@ -5211,7 +5362,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.
|
||||||
@@ -144,6 +166,7 @@
|
|||||||
#define wxSTC_INDIC_TT 2
|
#define wxSTC_INDIC_TT 2
|
||||||
#define wxSTC_INDIC_DIAGONAL 3
|
#define wxSTC_INDIC_DIAGONAL 3
|
||||||
#define wxSTC_INDIC_STRIKE 4
|
#define wxSTC_INDIC_STRIKE 4
|
||||||
|
#define wxSTC_INDIC_HIDDEN 5
|
||||||
#define wxSTC_INDIC0_MASK 0x20
|
#define wxSTC_INDIC0_MASK 0x20
|
||||||
#define wxSTC_INDIC1_MASK 0x40
|
#define wxSTC_INDIC1_MASK 0x40
|
||||||
#define wxSTC_INDIC2_MASK 0x80
|
#define wxSTC_INDIC2_MASK 0x80
|
||||||
@@ -167,10 +190,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 +216,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
|
||||||
@@ -214,6 +248,9 @@
|
|||||||
// where most code reside, and the lines after the caret, eg. the body of a function.
|
// where most code reside, and the lines after the caret, eg. the body of a function.
|
||||||
#define wxSTC_CARET_EVEN 0x08
|
#define wxSTC_CARET_EVEN 0x08
|
||||||
|
|
||||||
|
// Maximum value of keywordSet parameter of SetKeyWords.
|
||||||
|
#define wxSTC_KEYWORDSET_MAX 8
|
||||||
|
|
||||||
// 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.
|
||||||
@@ -290,6 +327,17 @@
|
|||||||
#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
|
||||||
|
#define wxSTC_LEX_LOUT 40
|
||||||
|
#define wxSTC_LEX_ESCRIPT 41
|
||||||
|
#define wxSTC_LEX_PS 42
|
||||||
|
#define wxSTC_LEX_NSIS 43
|
||||||
|
#define wxSTC_LEX_MMIXAL 44
|
||||||
|
|
||||||
// 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.
|
||||||
@@ -331,6 +379,7 @@
|
|||||||
#define wxSTC_C_WORD2 16
|
#define wxSTC_C_WORD2 16
|
||||||
#define wxSTC_C_COMMENTDOCKEYWORD 17
|
#define wxSTC_C_COMMENTDOCKEYWORD 17
|
||||||
#define wxSTC_C_COMMENTDOCKEYWORDERROR 18
|
#define wxSTC_C_COMMENTDOCKEYWORDERROR 18
|
||||||
|
#define wxSTC_C_GLOBALCLASS 19
|
||||||
|
|
||||||
// Lexical states for SCLEX_HTML, SCLEX_XML
|
// Lexical states for SCLEX_HTML, SCLEX_XML
|
||||||
#define wxSTC_H_DEFAULT 0
|
#define wxSTC_H_DEFAULT 0
|
||||||
@@ -542,6 +591,8 @@
|
|||||||
#define wxSTC_LUA_WORD4 15
|
#define wxSTC_LUA_WORD4 15
|
||||||
#define wxSTC_LUA_WORD5 16
|
#define wxSTC_LUA_WORD5 16
|
||||||
#define wxSTC_LUA_WORD6 17
|
#define wxSTC_LUA_WORD6 17
|
||||||
|
#define wxSTC_LUA_WORD7 18
|
||||||
|
#define wxSTC_LUA_WORD8 19
|
||||||
|
|
||||||
// Lexical states for SCLEX_ERRORLIST
|
// Lexical states for SCLEX_ERRORLIST
|
||||||
#define wxSTC_ERR_DEFAULT 0
|
#define wxSTC_ERR_DEFAULT 0
|
||||||
@@ -558,6 +609,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 +658,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,10 +763,158 @@
|
|||||||
#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_NUMBER 3
|
||||||
|
#define wxSTC_POV_OPERATOR 4
|
||||||
|
#define wxSTC_POV_IDENTIFIER 5
|
||||||
|
#define wxSTC_POV_STRING 6
|
||||||
|
#define wxSTC_POV_STRINGEOL 7
|
||||||
|
#define wxSTC_POV_DIRECTIVE 8
|
||||||
|
#define wxSTC_POV_BADDIRECTIVE 9
|
||||||
|
#define wxSTC_POV_WORD2 10
|
||||||
|
#define wxSTC_POV_WORD3 11
|
||||||
|
#define wxSTC_POV_WORD4 12
|
||||||
|
#define wxSTC_POV_WORD5 13
|
||||||
|
#define wxSTC_POV_WORD6 14
|
||||||
|
#define wxSTC_POV_WORD7 15
|
||||||
|
#define wxSTC_POV_WORD8 16
|
||||||
|
|
||||||
|
// Lexical states for SCLEX_LOUT
|
||||||
|
#define wxSTC_LOUT_DEFAULT 0
|
||||||
|
#define wxSTC_LOUT_COMMENT 1
|
||||||
|
#define wxSTC_LOUT_NUMBER 2
|
||||||
|
#define wxSTC_LOUT_WORD 3
|
||||||
|
#define wxSTC_LOUT_WORD2 4
|
||||||
|
#define wxSTC_LOUT_WORD3 5
|
||||||
|
#define wxSTC_LOUT_WORD4 6
|
||||||
|
#define wxSTC_LOUT_STRING 7
|
||||||
|
#define wxSTC_LOUT_OPERATOR 8
|
||||||
|
#define wxSTC_LOUT_IDENTIFIER 9
|
||||||
|
#define wxSTC_LOUT_STRINGEOL 10
|
||||||
|
|
||||||
|
// Lexical states for SCLEX_ESCRIPT
|
||||||
|
#define wxSTC_ESCRIPT_DEFAULT 0
|
||||||
|
#define wxSTC_ESCRIPT_COMMENT 1
|
||||||
|
#define wxSTC_ESCRIPT_COMMENTLINE 2
|
||||||
|
#define wxSTC_ESCRIPT_COMMENTDOC 3
|
||||||
|
#define wxSTC_ESCRIPT_NUMBER 4
|
||||||
|
#define wxSTC_ESCRIPT_WORD 5
|
||||||
|
#define wxSTC_ESCRIPT_STRING 6
|
||||||
|
#define wxSTC_ESCRIPT_OPERATOR 7
|
||||||
|
#define wxSTC_ESCRIPT_IDENTIFIER 8
|
||||||
|
#define wxSTC_ESCRIPT_BRACE 9
|
||||||
|
#define wxSTC_ESCRIPT_WORD2 10
|
||||||
|
#define wxSTC_ESCRIPT_WORD3 11
|
||||||
|
|
||||||
|
// Lexical states for SCLEX_PS
|
||||||
|
#define wxSTC_PS_DEFAULT 0
|
||||||
|
#define wxSTC_PS_COMMENT 1
|
||||||
|
#define wxSTC_PS_DSC_COMMENT 2
|
||||||
|
#define wxSTC_PS_DSC_VALUE 3
|
||||||
|
#define wxSTC_PS_NUMBER 4
|
||||||
|
#define wxSTC_PS_NAME 5
|
||||||
|
#define wxSTC_PS_KEYWORD 6
|
||||||
|
#define wxSTC_PS_LITERAL 7
|
||||||
|
#define wxSTC_PS_IMMEVAL 8
|
||||||
|
#define wxSTC_PS_PAREN_ARRAY 9
|
||||||
|
#define wxSTC_PS_PAREN_DICT 10
|
||||||
|
#define wxSTC_PS_PAREN_PROC 11
|
||||||
|
#define wxSTC_PS_TEXT 12
|
||||||
|
#define wxSTC_PS_HEXSTRING 13
|
||||||
|
#define wxSTC_PS_BASE85STRING 14
|
||||||
|
#define wxSTC_PS_BADSTRINGCHAR 15
|
||||||
|
|
||||||
|
// Lexical states for SCLEX_NSIS
|
||||||
|
#define wxSTC_NSIS_DEFAULT 0
|
||||||
|
#define wxSTC_NSIS_COMMENT 1
|
||||||
|
#define wxSTC_NSIS_STRINGDQ 2
|
||||||
|
#define wxSTC_NSIS_STRINGLQ 3
|
||||||
|
#define wxSTC_NSIS_STRINGRQ 4
|
||||||
|
#define wxSTC_NSIS_FUNCTION 5
|
||||||
|
#define wxSTC_NSIS_VARIABLE 6
|
||||||
|
#define wxSTC_NSIS_LABEL 7
|
||||||
|
#define wxSTC_NSIS_USERDEFINED 8
|
||||||
|
#define wxSTC_NSIS_SECTIONDEF 9
|
||||||
|
#define wxSTC_NSIS_SUBSECTIONDEF 10
|
||||||
|
#define wxSTC_NSIS_IFDEFINEDEF 11
|
||||||
|
#define wxSTC_NSIS_MACRODEF 12
|
||||||
|
#define wxSTC_NSIS_STRINGVAR 13
|
||||||
|
|
||||||
|
// Lexical states for SCLEX_MMIXAL
|
||||||
|
#define wxSTC_MMIXAL_LEADWS 0
|
||||||
|
#define wxSTC_MMIXAL_COMMENT 1
|
||||||
|
#define wxSTC_MMIXAL_LABEL 2
|
||||||
|
#define wxSTC_MMIXAL_OPCODE 3
|
||||||
|
#define wxSTC_MMIXAL_OPCODE_PRE 4
|
||||||
|
#define wxSTC_MMIXAL_OPCODE_VALID 5
|
||||||
|
#define wxSTC_MMIXAL_OPCODE_UNKNOWN 6
|
||||||
|
#define wxSTC_MMIXAL_OPCODE_POST 7
|
||||||
|
#define wxSTC_MMIXAL_OPERANDS 8
|
||||||
|
#define wxSTC_MMIXAL_NUMBER 9
|
||||||
|
#define wxSTC_MMIXAL_REF 10
|
||||||
|
#define wxSTC_MMIXAL_CHAR 11
|
||||||
|
#define wxSTC_MMIXAL_STRING 12
|
||||||
|
#define wxSTC_MMIXAL_REGISTER 13
|
||||||
|
#define wxSTC_MMIXAL_HEX 14
|
||||||
|
#define wxSTC_MMIXAL_OPERATOR 15
|
||||||
|
#define wxSTC_MMIXAL_SYMBOL 16
|
||||||
|
#define wxSTC_MMIXAL_INCLUDE 17
|
||||||
|
|
||||||
|
|
||||||
//-----------------------------------------
|
//-----------------------------------------
|
||||||
// Commands that can be bound to keystrokes
|
// Commands that can be bound to keystrokes
|
||||||
|
|
||||||
|
|
||||||
// Redoes the next action on the undo history.
|
// Redoes the next action on the undo history.
|
||||||
#define wxSTC_CMD_REDO 2011
|
#define wxSTC_CMD_REDO 2011
|
||||||
|
|
||||||
@@ -849,6 +1058,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 +1091,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 +1123,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 +1138,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 +1303,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 +1330,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 +1393,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 +1557,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 +1658,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 +1820,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 +1867,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 +1933,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();
|
||||||
|
|
||||||
@@ -1692,6 +1980,9 @@ public:
|
|||||||
// caret position.
|
// caret position.
|
||||||
void LineEndDisplayExtend();
|
void LineEndDisplayExtend();
|
||||||
|
|
||||||
|
// Copy the line containing the caret.
|
||||||
|
void LineCopy();
|
||||||
|
|
||||||
// Move the caret inside current view if it's not there already.
|
// Move the caret inside current view if it's not there already.
|
||||||
void MoveCaretInsideView();
|
void MoveCaretInsideView();
|
||||||
|
|
||||||
@@ -1802,10 +2093,10 @@ public:
|
|||||||
bool GetMouseDownCaptures();
|
bool GetMouseDownCaptures();
|
||||||
|
|
||||||
// Sets the cursor to one of the SC_CURSOR* values.
|
// Sets the cursor to one of the SC_CURSOR* values.
|
||||||
void SetCursor(int cursorType);
|
void SetSTCCursor(int cursorType);
|
||||||
|
|
||||||
// Get cursor type.
|
// Get cursor type.
|
||||||
int GetCursor();
|
int GetSTCCursor();
|
||||||
|
|
||||||
// Change the way control characters are displayed:
|
// Change the way control characters are displayed:
|
||||||
// If symbol is < 32, keep the drawn way, else, use the given character.
|
// If symbol is < 32, keep the drawn way, else, use the given character.
|
||||||
@@ -1842,6 +2133,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 +2144,35 @@ 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);
|
||||||
|
|
||||||
|
// Given a valid document position, return the previous position taking code
|
||||||
|
// page into account. Returns 0 if passed 0.
|
||||||
|
int PositionBefore(int pos);
|
||||||
|
|
||||||
|
// Given a valid document position, return the next position taking code
|
||||||
|
// page into account. Maximum value returned is the last position in the document.
|
||||||
|
int PositionAfter(int pos);
|
||||||
|
|
||||||
|
// Copy a range of text to the clipboard. Positions are clipped into the document.
|
||||||
|
void CopyRange(int start, int end);
|
||||||
|
|
||||||
|
// Copy argument text to the clipboard.
|
||||||
|
void CopyText(int length, const wxString& text);
|
||||||
|
|
||||||
// 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 +2278,18 @@ 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);
|
||||||
|
|
||||||
|
// Allow for simulating a DnD DragOver
|
||||||
|
wxDragResult DoDragOver(wxCoord x, wxCoord y, wxDragResult def);
|
||||||
|
|
||||||
|
// Allow for simulating a DnD DropText
|
||||||
|
bool DoDropText(long x, long y, const wxString& data);
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
@@ -1987,11 +2322,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 +2445,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 +2472,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 +2501,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 +2535,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
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
@@ -2207,13 +2554,14 @@ inline wxString stc2wx(const char* str) {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
inline wxString stc2wx(const char* str, size_t len) {
|
|
||||||
#if wxUSE_UNICODE
|
#if wxUSE_UNICODE
|
||||||
return wxString(str, wxConvUTF8, len);
|
wxString stc2wx(const char* str, size_t len);
|
||||||
#else
|
#else
|
||||||
|
inline wxString stc2wx(const char* str, size_t len) {
|
||||||
return wxString(str, len);
|
return wxString(str, len);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#if wxUSE_UNICODE
|
#if wxUSE_UNICODE
|
||||||
inline const wxWX2MBbuf wx2stc(const wxString& str) {
|
inline const wxWX2MBbuf wx2stc(const wxString& str) {
|
||||||
|
@@ -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_
|
||||||
|
@@ -17,10 +17,10 @@
|
|||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
#include "wx/xrc/xmlres.h"
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxCheckListXmlHandler : public wxXmlResourceHandler
|
class WXXMLDLLEXPORT wxCheckListBoxXmlHandler : public wxXmlResourceHandler
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxCheckListXmlHandler();
|
wxCheckListBoxXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource();
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node);
|
||||||
private:
|
private:
|
||||||
|
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
|
||||||
|
|
||||||
|
@@ -11,7 +11,7 @@ program_dir = contrib/samples/stc
|
|||||||
|
|
||||||
PROGRAM=stctest
|
PROGRAM=stctest
|
||||||
|
|
||||||
OBJECTS=$(PROGRAM).o
|
OBJECTS=$(PROGRAM).o edit.o prefs.o
|
||||||
|
|
||||||
APPEXTRALIBS=$(top_builddir)/lib/lib@WX_LIBRARY_BASENAME@_stc-@WX_RELEASE@.@WX_TARGET_LIBRARY_TYPE@
|
APPEXTRALIBS=$(top_builddir)/lib/lib@WX_LIBRARY_BASENAME@_stc-@WX_RELEASE@.@WX_TARGET_LIBRARY_TYPE@
|
||||||
APPEXTRADEFS=-I$(top_srcdir)/contrib/include
|
APPEXTRADEFS=-I$(top_srcdir)/contrib/include
|
||||||
|
6
contrib/samples/stc/Makefile.sc
Normal file
6
contrib/samples/stc/Makefile.sc
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#Makefile from wxHatch for Symantec/Digital Mars compiler
|
||||||
|
WXDIR=..\..\..
|
||||||
|
TARGET=stctest
|
||||||
|
OBJECTS = $(TARGET).obj edit.obj prefs.obj
|
||||||
|
EXTRALIBS=$(WXDIR)\lib\stc_sc.lib
|
||||||
|
include $(WXDIR)\src\makeprog.sc
|
@@ -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
|
||||||
|
|
||||||
@@ -147,6 +147,44 @@ LINK32=link.exe
|
|||||||
# Name "StcTestVC - Win32 Release DLL"
|
# Name "StcTestVC - Win32 Release DLL"
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\edit.cpp
|
||||||
|
|
||||||
|
!IF "$(CFG)" == "StcTestVC - Win32 Release"
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "StcTestVC - Win32 Debug"
|
||||||
|
|
||||||
|
# SUBTRACT CPP /YX /Yc /Yu
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "StcTestVC - Win32 Debug DLL"
|
||||||
|
|
||||||
|
# SUBTRACT CPP /YX /Yc /Yu
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "StcTestVC - Win32 Release DLL"
|
||||||
|
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\prefs.cpp
|
||||||
|
|
||||||
|
!IF "$(CFG)" == "StcTestVC - Win32 Release"
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "StcTestVC - Win32 Debug"
|
||||||
|
|
||||||
|
# SUBTRACT CPP /YX /Yc /Yu
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "StcTestVC - Win32 Debug DLL"
|
||||||
|
|
||||||
|
# SUBTRACT CPP /YX /Yc /Yu
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "StcTestVC - Win32 Release DLL"
|
||||||
|
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\stctest.cpp
|
SOURCE=.\stctest.cpp
|
||||||
|
|
||||||
!IF "$(CFG)" == "StcTestVC - Win32 Release"
|
!IF "$(CFG)" == "StcTestVC - Win32 Release"
|
||||||
|
104
contrib/samples/stc/defsext.h
Normal file
104
contrib/samples/stc/defsext.h
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Name: defsext.h extensions
|
||||||
|
// Purpose: STC test declarations
|
||||||
|
// Maintainer: Wyo
|
||||||
|
// Created: 2003-09-01
|
||||||
|
// RCS-ID: $Id$
|
||||||
|
// Copyright: (c) wxGuide
|
||||||
|
// Licence: wxWindows licence
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef _WX_DEFSEXT_H_
|
||||||
|
#define _WX_DEFSEXT_H_
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
// headers
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
//! wxWindows headers
|
||||||
|
#include <wx/print.h> // printing support
|
||||||
|
#include <wx/printdlg.h> // printing dialog
|
||||||
|
|
||||||
|
|
||||||
|
//============================================================================
|
||||||
|
// declarations
|
||||||
|
//============================================================================
|
||||||
|
|
||||||
|
#define DEFAULT_LANGUAGE _("<default>")
|
||||||
|
|
||||||
|
#define PAGE_COMMON _("Common")
|
||||||
|
#define PAGE_LANGUAGES _("Languages")
|
||||||
|
#define PAGE_STYLE_TYPES _("Style types")
|
||||||
|
|
||||||
|
#define STYLE_TYPES_COUNT 32
|
||||||
|
|
||||||
|
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// standard IDs
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
enum {
|
||||||
|
// menu IDs
|
||||||
|
myID_PROPERTIES = wxID_HIGHEST,
|
||||||
|
myID_INDENTINC,
|
||||||
|
myID_INDENTRED,
|
||||||
|
myID_FINDNEXT,
|
||||||
|
myID_REPLACE,
|
||||||
|
myID_REPLACENEXT,
|
||||||
|
myID_BRACEMATCH,
|
||||||
|
myID_GOTO,
|
||||||
|
myID_PAGEACTIVE,
|
||||||
|
myID_DISPLAYEOL,
|
||||||
|
myID_INDENTGUIDE,
|
||||||
|
myID_LINENUMBER,
|
||||||
|
myID_LONGLINEON,
|
||||||
|
myID_WHITESPACE,
|
||||||
|
myID_FOLDTOGGLE,
|
||||||
|
myID_OVERTYPE,
|
||||||
|
myID_READONLY,
|
||||||
|
myID_WRAPMODEON,
|
||||||
|
myID_CHANGECASE,
|
||||||
|
myID_CHANGELOWER,
|
||||||
|
myID_CHANGEUPPER,
|
||||||
|
myID_HILIGHTLANG,
|
||||||
|
myID_HILIGHTFIRST,
|
||||||
|
myID_HILIGHTLAST = myID_HILIGHTFIRST + 99,
|
||||||
|
myID_CONVERTEOL,
|
||||||
|
myID_CONVERTCR,
|
||||||
|
myID_CONVERTCRLF,
|
||||||
|
myID_CONVERTLF,
|
||||||
|
myID_USECHARSET,
|
||||||
|
myID_CHARSETANSI,
|
||||||
|
myID_CHARSETMAC,
|
||||||
|
myID_PAGEPREV,
|
||||||
|
myID_PAGENEXT,
|
||||||
|
myID_SELECTLINE,
|
||||||
|
|
||||||
|
// other IDs
|
||||||
|
myID_STATUSBAR,
|
||||||
|
myID_TITLEBAR,
|
||||||
|
myID_ABOUTTIMER,
|
||||||
|
myID_UPDATETIMER,
|
||||||
|
|
||||||
|
// dialog find IDs
|
||||||
|
myID_DLG_FIND_TEXT,
|
||||||
|
|
||||||
|
// preferences IDs
|
||||||
|
myID_PREFS_LANGUAGE,
|
||||||
|
myID_PREFS_STYLETYPE,
|
||||||
|
myID_PREFS_KEYWORDS,
|
||||||
|
};
|
||||||
|
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// global items
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
//! global application name
|
||||||
|
extern wxString *g_appname;
|
||||||
|
|
||||||
|
//! global print data, to remember settings during the session
|
||||||
|
extern wxPrintData *g_printData;
|
||||||
|
extern wxPageSetupData *g_pageSetupData;
|
||||||
|
|
||||||
|
#endif // _WX_DEFSEXT_H_
|
||||||
|
|
824
contrib/samples/stc/edit.cpp
Normal file
824
contrib/samples/stc/edit.cpp
Normal file
@@ -0,0 +1,824 @@
|
|||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
// File: edit.cpp
|
||||||
|
// Purpose: STC test module
|
||||||
|
// Maintainer: Wyo
|
||||||
|
// Created: 2003-09-01
|
||||||
|
// RCS-ID: $Id$
|
||||||
|
// Copyright: (c) wxGuide
|
||||||
|
// Licence: wxWindows licence
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
// informations
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
// headers
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
// For compilers that support precompilation, includes <wx/wx.h>.
|
||||||
|
#include <wx/wxprec.h>
|
||||||
|
|
||||||
|
#ifdef __BORLANDC__
|
||||||
|
#pragma hdrstop
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// for all others, include the necessary headers (this file is usually all you
|
||||||
|
// need because it includes almost all 'standard' wxWindows headers)
|
||||||
|
#ifndef WX_PRECOMP
|
||||||
|
#include <wx/wx.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
//! wxWindows headers
|
||||||
|
#include <wx/file.h> // raw file io support
|
||||||
|
#include <wx/filename.h> // filename support
|
||||||
|
|
||||||
|
//! application headers
|
||||||
|
#include "defsext.h" // additional definitions
|
||||||
|
|
||||||
|
#include "edit.h" // edit module
|
||||||
|
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
// resources
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
//============================================================================
|
||||||
|
// declarations
|
||||||
|
//============================================================================
|
||||||
|
|
||||||
|
|
||||||
|
//============================================================================
|
||||||
|
// implementation
|
||||||
|
//============================================================================
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
// Edit
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
BEGIN_EVENT_TABLE (Edit, wxStyledTextCtrl)
|
||||||
|
// common
|
||||||
|
EVT_SIZE ( Edit::OnSize)
|
||||||
|
// edit
|
||||||
|
EVT_MENU (wxID_CLEAR, Edit::OnEditClear)
|
||||||
|
EVT_MENU (wxID_CUT, Edit::OnEditCut)
|
||||||
|
EVT_MENU (wxID_COPY, Edit::OnEditCopy)
|
||||||
|
EVT_MENU (wxID_PASTE, Edit::OnEditPaste)
|
||||||
|
EVT_MENU (myID_INDENTINC, Edit::OnEditIndentInc)
|
||||||
|
EVT_MENU (myID_INDENTRED, Edit::OnEditIndentRed)
|
||||||
|
EVT_MENU (wxID_SELECTALL, Edit::OnEditSelectAll)
|
||||||
|
EVT_MENU (myID_SELECTLINE, Edit::OnEditSelectLine)
|
||||||
|
EVT_MENU (wxID_REDO, Edit::OnEditRedo)
|
||||||
|
EVT_MENU (wxID_UNDO, Edit::OnEditUndo)
|
||||||
|
// find
|
||||||
|
EVT_MENU (wxID_FIND, Edit::OnFind)
|
||||||
|
EVT_MENU (myID_FINDNEXT, Edit::OnFindNext)
|
||||||
|
EVT_MENU (myID_REPLACE, Edit::OnReplace)
|
||||||
|
EVT_MENU (myID_REPLACENEXT, Edit::OnReplaceNext)
|
||||||
|
EVT_MENU (myID_BRACEMATCH, Edit::OnBraceMatch)
|
||||||
|
EVT_MENU (myID_GOTO, Edit::OnGoto)
|
||||||
|
// view
|
||||||
|
EVT_MENU_RANGE (myID_HILIGHTFIRST, myID_HILIGHTLAST,
|
||||||
|
Edit::OnHilightLang)
|
||||||
|
EVT_MENU (myID_DISPLAYEOL, Edit::OnDisplayEOL)
|
||||||
|
EVT_MENU (myID_INDENTGUIDE, Edit::OnIndentGuide)
|
||||||
|
EVT_MENU (myID_LINENUMBER, Edit::OnLineNumber)
|
||||||
|
EVT_MENU (myID_LONGLINEON, Edit::OnLongLineOn)
|
||||||
|
EVT_MENU (myID_WHITESPACE, Edit::OnWhiteSpace)
|
||||||
|
EVT_MENU (myID_FOLDTOGGLE, Edit::OnFoldToggle)
|
||||||
|
EVT_MENU (myID_OVERTYPE, Edit::OnSetOverType)
|
||||||
|
EVT_MENU (myID_READONLY, Edit::OnSetReadOnly)
|
||||||
|
EVT_MENU (myID_WRAPMODEON, Edit::OnWrapmodeOn)
|
||||||
|
EVT_MENU (myID_CHARSETANSI, Edit::OnUseCharset)
|
||||||
|
EVT_MENU (myID_CHARSETMAC, Edit::OnUseCharset)
|
||||||
|
// extra
|
||||||
|
EVT_MENU (myID_CHANGELOWER, Edit::OnChangeCase)
|
||||||
|
EVT_MENU (myID_CHANGEUPPER, Edit::OnChangeCase)
|
||||||
|
EVT_MENU (myID_CONVERTCR, Edit::OnConvertEOL)
|
||||||
|
EVT_MENU (myID_CONVERTCRLF, Edit::OnConvertEOL)
|
||||||
|
EVT_MENU (myID_CONVERTLF, Edit::OnConvertEOL)
|
||||||
|
// stc
|
||||||
|
EVT_STC_MARGINCLICK (-1, Edit::OnMarginClick)
|
||||||
|
EVT_STC_CHARADDED (-1, Edit::OnCharAdded)
|
||||||
|
END_EVENT_TABLE()
|
||||||
|
|
||||||
|
Edit::Edit (wxWindow *parent, wxWindowID id,
|
||||||
|
const wxPoint &pos,
|
||||||
|
const wxSize &size,
|
||||||
|
long style)
|
||||||
|
: wxStyledTextCtrl (parent, id, pos, size, style) {
|
||||||
|
|
||||||
|
m_filename = _T("");
|
||||||
|
|
||||||
|
m_LineNrID = 0;
|
||||||
|
m_DividerID = 1;
|
||||||
|
m_FoldingID = 2;
|
||||||
|
|
||||||
|
// initialize language
|
||||||
|
m_language = NULL;
|
||||||
|
|
||||||
|
// default font for all styles
|
||||||
|
SetViewEOL (g_CommonPrefs.displayEOLEnable);
|
||||||
|
SetIndentationGuides (g_CommonPrefs.indentGuideEnable);
|
||||||
|
SetEdgeMode (g_CommonPrefs.longLineOnEnable?
|
||||||
|
wxSTC_EDGE_LINE: wxSTC_EDGE_NONE);
|
||||||
|
SetViewWhiteSpace (g_CommonPrefs.whiteSpaceEnable?
|
||||||
|
wxSTC_WS_VISIBLEALWAYS: wxSTC_WS_INVISIBLE);
|
||||||
|
SetOvertype (g_CommonPrefs.overTypeInitial);
|
||||||
|
SetReadOnly (g_CommonPrefs.readOnlyInitial);
|
||||||
|
SetWrapMode (g_CommonPrefs.wrapModeInitial?
|
||||||
|
wxSTC_WRAP_WORD: wxSTC_WRAP_NONE);
|
||||||
|
wxFont font (10, wxMODERN, wxNORMAL, wxNORMAL);
|
||||||
|
StyleSetFont (wxSTC_STYLE_DEFAULT, font);
|
||||||
|
StyleSetForeground (wxSTC_STYLE_DEFAULT, wxColour (_T("BLACK")));
|
||||||
|
StyleSetBackground (wxSTC_STYLE_DEFAULT, wxColour (_T("WHITE")));
|
||||||
|
StyleSetForeground (wxSTC_STYLE_LINENUMBER, wxColour (_T("DARK GREY")));
|
||||||
|
StyleSetBackground (wxSTC_STYLE_LINENUMBER, wxColour (_T("WHITE")));
|
||||||
|
StyleSetForeground(wxSTC_STYLE_INDENTGUIDE, wxColour (_T("DARK GREY")));
|
||||||
|
InitializePrefs (DEFAULT_LANGUAGE);
|
||||||
|
|
||||||
|
// set visibility
|
||||||
|
SetVisiblePolicy (wxSTC_VISIBLE_STRICT|wxSTC_VISIBLE_SLOP, 1);
|
||||||
|
SetXCaretPolicy (wxSTC_CARET_EVEN|wxSTC_VISIBLE_STRICT|wxSTC_CARET_SLOP, 1);
|
||||||
|
SetYCaretPolicy (wxSTC_CARET_EVEN|wxSTC_VISIBLE_STRICT|wxSTC_CARET_SLOP, 1);
|
||||||
|
|
||||||
|
// markers
|
||||||
|
MarkerDefine (wxSTC_MARKNUM_FOLDER, wxSTC_MARK_DOTDOTDOT, _T("BLACK"), _T("BLACK"));
|
||||||
|
MarkerDefine (wxSTC_MARKNUM_FOLDEROPEN, wxSTC_MARK_ARROWDOWN, _T("BLACK"), _T("BLACK"));
|
||||||
|
MarkerDefine (wxSTC_MARKNUM_FOLDERSUB, wxSTC_MARK_EMPTY, _T("BLACK"), _T("BLACK"));
|
||||||
|
MarkerDefine (wxSTC_MARKNUM_FOLDEREND, wxSTC_MARK_DOTDOTDOT, _T("BLACK"), _T("WHITE"));
|
||||||
|
MarkerDefine (wxSTC_MARKNUM_FOLDEROPENMID, wxSTC_MARK_ARROWDOWN, _T("BLACK"), _T("WHITE"));
|
||||||
|
MarkerDefine (wxSTC_MARKNUM_FOLDERMIDTAIL, wxSTC_MARK_EMPTY, _T("BLACK"), _T("BLACK"));
|
||||||
|
MarkerDefine (wxSTC_MARKNUM_FOLDERTAIL, wxSTC_MARK_EMPTY, _T("BLACK"), _T("BLACK"));
|
||||||
|
|
||||||
|
// miscelaneous
|
||||||
|
m_LineNrMargin = TextWidth (wxSTC_STYLE_LINENUMBER, _T("_999999"));
|
||||||
|
m_FoldingMargin = 16;
|
||||||
|
SetMarginWidth (m_LineNrID,
|
||||||
|
g_CommonPrefs.lineNumberEnable? m_LineNrMargin: 0);
|
||||||
|
CmdKeyClear (wxSTC_KEY_TAB, 0); // this is done by the menu accelerator key
|
||||||
|
SetLayoutCache (wxSTC_CACHE_PAGE);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
Edit::~Edit () {}
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
// common event handlers
|
||||||
|
void Edit::OnSize( wxSizeEvent& event ) {
|
||||||
|
int x = GetClientSize().x +
|
||||||
|
(g_CommonPrefs.lineNumberEnable? m_LineNrMargin: 0) +
|
||||||
|
(g_CommonPrefs.foldEnable? m_FoldingMargin: 0);
|
||||||
|
if (x > 0) SetScrollWidth (x);
|
||||||
|
event.Skip();
|
||||||
|
}
|
||||||
|
|
||||||
|
// edit event handlers
|
||||||
|
void Edit::OnEditRedo (wxCommandEvent &WXUNUSED(event)) {
|
||||||
|
if (!CanRedo()) return;
|
||||||
|
Redo ();
|
||||||
|
}
|
||||||
|
|
||||||
|
void Edit::OnEditUndo (wxCommandEvent &WXUNUSED(event)) {
|
||||||
|
if (!CanUndo()) return;
|
||||||
|
Undo ();
|
||||||
|
}
|
||||||
|
|
||||||
|
void Edit::OnEditClear (wxCommandEvent &WXUNUSED(event)) {
|
||||||
|
if (GetReadOnly()) return;
|
||||||
|
Clear ();
|
||||||
|
}
|
||||||
|
|
||||||
|
void Edit::OnEditCut (wxCommandEvent &WXUNUSED(event)) {
|
||||||
|
if (GetReadOnly() || (GetSelectionEnd()-GetSelectionStart() <= 0)) return;
|
||||||
|
Cut ();
|
||||||
|
}
|
||||||
|
|
||||||
|
void Edit::OnEditCopy (wxCommandEvent &WXUNUSED(event)) {
|
||||||
|
if (GetSelectionEnd()-GetSelectionStart() <= 0) return;
|
||||||
|
Copy ();
|
||||||
|
}
|
||||||
|
|
||||||
|
void Edit::OnEditPaste (wxCommandEvent &WXUNUSED(event)) {
|
||||||
|
if (!CanPaste()) return;
|
||||||
|
Paste ();
|
||||||
|
}
|
||||||
|
|
||||||
|
void Edit::OnFind (wxCommandEvent &WXUNUSED(event)) {
|
||||||
|
}
|
||||||
|
|
||||||
|
void Edit::OnFindNext (wxCommandEvent &WXUNUSED(event)) {
|
||||||
|
}
|
||||||
|
|
||||||
|
void Edit::OnReplace (wxCommandEvent &WXUNUSED(event)) {
|
||||||
|
}
|
||||||
|
|
||||||
|
void Edit::OnReplaceNext (wxCommandEvent &WXUNUSED(event)) {
|
||||||
|
}
|
||||||
|
|
||||||
|
void Edit::OnBraceMatch (wxCommandEvent &WXUNUSED(event)) {
|
||||||
|
int min = GetCurrentPos ();
|
||||||
|
int max = BraceMatch (min);
|
||||||
|
if (max > (min+1)) {
|
||||||
|
BraceHighlight (min+1, max);
|
||||||
|
SetSelection (min+1, max);
|
||||||
|
}else{
|
||||||
|
BraceBadLight (min);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void Edit::OnGoto (wxCommandEvent &WXUNUSED(event)) {
|
||||||
|
}
|
||||||
|
|
||||||
|
void Edit::OnEditIndentInc (wxCommandEvent &WXUNUSED(event)) {
|
||||||
|
CmdKeyExecute (wxSTC_CMD_TAB);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Edit::OnEditIndentRed (wxCommandEvent &WXUNUSED(event)) {
|
||||||
|
CmdKeyExecute (wxSTC_CMD_DELETEBACK);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Edit::OnEditSelectAll (wxCommandEvent &WXUNUSED(event)) {
|
||||||
|
SetSelection (0, GetTextLength ());
|
||||||
|
}
|
||||||
|
|
||||||
|
void Edit::OnEditSelectLine (wxCommandEvent &WXUNUSED(event)) {
|
||||||
|
int lineStart = PositionFromLine (GetCurrentLine());
|
||||||
|
int lineEnd = PositionFromLine (GetCurrentLine() + 1);
|
||||||
|
SetSelection (lineStart, lineEnd);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Edit::OnHilightLang (wxCommandEvent &event) {
|
||||||
|
InitializePrefs (g_LanguagePrefs [event.GetId() - myID_HILIGHTFIRST].name);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Edit::OnDisplayEOL (wxCommandEvent &WXUNUSED(event)) {
|
||||||
|
SetViewEOL (!GetViewEOL());
|
||||||
|
}
|
||||||
|
|
||||||
|
void Edit::OnIndentGuide (wxCommandEvent &WXUNUSED(event)) {
|
||||||
|
SetIndentationGuides (!GetIndentationGuides());
|
||||||
|
}
|
||||||
|
|
||||||
|
void Edit::OnLineNumber (wxCommandEvent &WXUNUSED(event)) {
|
||||||
|
SetMarginWidth (m_LineNrID,
|
||||||
|
GetMarginWidth (m_LineNrID) == 0? m_LineNrMargin: 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Edit::OnLongLineOn (wxCommandEvent &WXUNUSED(event)) {
|
||||||
|
SetEdgeMode (GetEdgeMode() == 0? wxSTC_EDGE_LINE: wxSTC_EDGE_NONE);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Edit::OnWhiteSpace (wxCommandEvent &WXUNUSED(event)) {
|
||||||
|
SetViewWhiteSpace (GetViewWhiteSpace() == 0?
|
||||||
|
wxSTC_WS_VISIBLEALWAYS: wxSTC_WS_INVISIBLE);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Edit::OnFoldToggle (wxCommandEvent &WXUNUSED(event)) {
|
||||||
|
ToggleFold (GetFoldParent(GetCurrentLine()));
|
||||||
|
}
|
||||||
|
|
||||||
|
void Edit::OnSetOverType (wxCommandEvent &WXUNUSED(event)) {
|
||||||
|
SetOvertype (!GetOvertype());
|
||||||
|
}
|
||||||
|
|
||||||
|
void Edit::OnSetReadOnly (wxCommandEvent &WXUNUSED(event)) {
|
||||||
|
SetReadOnly (!GetReadOnly());
|
||||||
|
}
|
||||||
|
|
||||||
|
void Edit::OnWrapmodeOn (wxCommandEvent &WXUNUSED(event)) {
|
||||||
|
SetWrapMode (GetWrapMode() == 0? wxSTC_WRAP_WORD: wxSTC_WRAP_NONE);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Edit::OnUseCharset (wxCommandEvent &event) {
|
||||||
|
int Nr;
|
||||||
|
int charset = GetCodePage();
|
||||||
|
switch (event.GetId()) {
|
||||||
|
case myID_CHARSETANSI: {charset = wxSTC_CHARSET_ANSI; break;}
|
||||||
|
case myID_CHARSETMAC: {charset = wxSTC_CHARSET_ANSI; break;}
|
||||||
|
}
|
||||||
|
for (Nr = 0; Nr < wxSTC_STYLE_LASTPREDEFINED; Nr++) {
|
||||||
|
StyleSetCharacterSet (Nr, charset);
|
||||||
|
}
|
||||||
|
SetCodePage (charset);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Edit::OnChangeCase (wxCommandEvent &event) {
|
||||||
|
switch (event.GetId()) {
|
||||||
|
case myID_CHANGELOWER: {
|
||||||
|
CmdKeyExecute (wxSTC_CMD_LOWERCASE);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case myID_CHANGEUPPER: {
|
||||||
|
CmdKeyExecute (wxSTC_CMD_UPPERCASE);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void Edit::OnConvertEOL (wxCommandEvent &event) {
|
||||||
|
int eolMode = GetEOLMode();
|
||||||
|
switch (event.GetId()) {
|
||||||
|
case myID_CONVERTCR: { eolMode = wxSTC_EOL_CR; break;}
|
||||||
|
case myID_CONVERTCRLF: { eolMode = wxSTC_EOL_CRLF; break;}
|
||||||
|
case myID_CONVERTLF: { eolMode = wxSTC_EOL_LF; break;}
|
||||||
|
}
|
||||||
|
ConvertEOLs (eolMode);
|
||||||
|
SetEOLMode (eolMode);
|
||||||
|
}
|
||||||
|
|
||||||
|
//! misc
|
||||||
|
void Edit::OnMarginClick (wxStyledTextEvent &event) {
|
||||||
|
if (event.GetMargin() == 2) {
|
||||||
|
int lineClick = LineFromPosition (event.GetPosition());
|
||||||
|
int levelClick = GetFoldLevel (lineClick);
|
||||||
|
if ((levelClick & wxSTC_FOLDLEVELHEADERFLAG) > 0) {
|
||||||
|
ToggleFold (lineClick);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void Edit::OnCharAdded (wxStyledTextEvent &event) {
|
||||||
|
char chr = event.GetKey();
|
||||||
|
int currentLine = GetCurrentLine();
|
||||||
|
// Change this if support for mac files with \r is needed
|
||||||
|
if (chr == '\n') {
|
||||||
|
int lineInd = 0;
|
||||||
|
if (currentLine > 0) {
|
||||||
|
lineInd = GetLineIndentation(currentLine - 1);
|
||||||
|
}
|
||||||
|
if (lineInd == 0) return;
|
||||||
|
SetLineIndentation (currentLine, lineInd);
|
||||||
|
GotoPos(PositionFromLine (currentLine) + lineInd);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
// private functions
|
||||||
|
wxString Edit::DeterminePrefs (const wxString &filename) {
|
||||||
|
|
||||||
|
LanguageInfo const* curInfo;
|
||||||
|
|
||||||
|
// determine language from filepatterns
|
||||||
|
int languageNr;
|
||||||
|
for (languageNr = 0; languageNr < g_LanguagePrefsSize; languageNr++) {
|
||||||
|
curInfo = &g_LanguagePrefs [languageNr];
|
||||||
|
wxString filepattern = curInfo->filepattern;
|
||||||
|
filepattern.Lower();
|
||||||
|
while (!filepattern.IsEmpty()) {
|
||||||
|
wxString cur = filepattern.BeforeFirst (';');
|
||||||
|
if ((cur == filename) ||
|
||||||
|
(cur == (filename.BeforeLast ('.') + _T(".*"))) ||
|
||||||
|
(cur == (_T("*.") + filename.AfterLast ('.')))) {
|
||||||
|
return curInfo->name;
|
||||||
|
}
|
||||||
|
filepattern = filepattern.AfterFirst (';');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return wxEmptyString;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
bool Edit::InitializePrefs (const wxString &name) {
|
||||||
|
|
||||||
|
// initialize styles
|
||||||
|
StyleClearAll();
|
||||||
|
LanguageInfo const* curInfo = NULL;
|
||||||
|
|
||||||
|
// determine language
|
||||||
|
bool found = false;
|
||||||
|
int languageNr;
|
||||||
|
for (languageNr = 0; languageNr < g_LanguagePrefsSize; languageNr++) {
|
||||||
|
curInfo = &g_LanguagePrefs [languageNr];
|
||||||
|
if (curInfo->name == name) {
|
||||||
|
found = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!found) return false;
|
||||||
|
|
||||||
|
// set lexer and language
|
||||||
|
SetLexer (curInfo->lexer);
|
||||||
|
m_language = curInfo;
|
||||||
|
|
||||||
|
// set margin for line numbers
|
||||||
|
SetMarginType (m_LineNrID, wxSTC_MARGIN_NUMBER);
|
||||||
|
StyleSetForeground (wxSTC_STYLE_LINENUMBER, wxColour (_T("DARK GREY")));
|
||||||
|
StyleSetBackground (wxSTC_STYLE_LINENUMBER, wxColour (_T("WHITE")));
|
||||||
|
SetMarginWidth (m_LineNrID,
|
||||||
|
g_CommonPrefs.lineNumberEnable? m_LineNrMargin: 0);
|
||||||
|
|
||||||
|
// default fonts for all styles!
|
||||||
|
int Nr;
|
||||||
|
for (Nr = 0; Nr < wxSTC_STYLE_LASTPREDEFINED; Nr++) {
|
||||||
|
wxFont font (10, wxMODERN, wxNORMAL, wxNORMAL);
|
||||||
|
StyleSetFont (Nr, font);
|
||||||
|
}
|
||||||
|
|
||||||
|
// set common styles
|
||||||
|
StyleSetForeground (wxSTC_STYLE_DEFAULT, wxColour (_T("DARK GREY")));
|
||||||
|
StyleSetForeground (wxSTC_STYLE_INDENTGUIDE, wxColour (_T("DARK GREY")));
|
||||||
|
|
||||||
|
// initialize settings
|
||||||
|
if (g_CommonPrefs.syntaxEnable) {
|
||||||
|
int keywordnr = 0;
|
||||||
|
for (Nr = 0; Nr < STYLE_TYPES_COUNT; Nr++) {
|
||||||
|
if (curInfo->styles[Nr].type == -1) continue;
|
||||||
|
const StyleInfo &curType = g_StylePrefs [curInfo->styles[Nr].type];
|
||||||
|
wxFont font (curType.fontsize, wxMODERN, wxNORMAL, wxNORMAL, false,
|
||||||
|
curType.fontname);
|
||||||
|
StyleSetFont (Nr, font);
|
||||||
|
if (curType.foreground) {
|
||||||
|
StyleSetForeground (Nr, wxColour (curType.foreground));
|
||||||
|
}
|
||||||
|
if (curType.background) {
|
||||||
|
StyleSetBackground (Nr, wxColour (curType.background));
|
||||||
|
}
|
||||||
|
StyleSetBold (Nr, (curType.fontstyle & mySTC_STYLE_BOLD) > 0);
|
||||||
|
StyleSetItalic (Nr, (curType.fontstyle & mySTC_STYLE_ITALIC) > 0);
|
||||||
|
StyleSetUnderline (Nr, (curType.fontstyle & mySTC_STYLE_UNDERL) > 0);
|
||||||
|
StyleSetVisible (Nr, (curType.fontstyle & mySTC_STYLE_HIDDEN) == 0);
|
||||||
|
StyleSetCase (Nr, curType.lettercase);
|
||||||
|
const wxChar *pwords = curInfo->styles[Nr].words;
|
||||||
|
if (pwords) {
|
||||||
|
SetKeyWords (keywordnr, pwords);
|
||||||
|
keywordnr += 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// set margin as unused
|
||||||
|
SetMarginType (m_DividerID, wxSTC_MARGIN_SYMBOL);
|
||||||
|
SetMarginWidth (m_DividerID, 0);
|
||||||
|
SetMarginSensitive (m_DividerID, false);
|
||||||
|
|
||||||
|
// folding
|
||||||
|
SetMarginType (m_FoldingID, wxSTC_MARGIN_SYMBOL);
|
||||||
|
SetMarginMask (m_FoldingID, wxSTC_MASK_FOLDERS);
|
||||||
|
StyleSetBackground (m_FoldingID, wxColour (_T("WHITE")));
|
||||||
|
SetMarginWidth (m_FoldingID, 0);
|
||||||
|
SetMarginSensitive (m_FoldingID, false);
|
||||||
|
if (g_CommonPrefs.foldEnable) {
|
||||||
|
SetMarginWidth (m_FoldingID, curInfo->folds != 0? m_FoldingMargin: 0);
|
||||||
|
SetMarginSensitive (m_FoldingID, curInfo->folds != 0);
|
||||||
|
SetProperty (_T("fold"), curInfo->folds != 0? _T("1"): _T("0"));
|
||||||
|
SetProperty (_T("fold.comment"),
|
||||||
|
(curInfo->folds & mySTC_FOLD_COMMENT) > 0? _T("1"): _T("0"));
|
||||||
|
SetProperty (_T("fold.compact"),
|
||||||
|
(curInfo->folds & mySTC_FOLD_COMPACT) > 0? _T("1"): _T("0"));
|
||||||
|
SetProperty (_T("fold.preprocessor"),
|
||||||
|
(curInfo->folds & mySTC_FOLD_PREPROC) > 0? _T("1"): _T("0"));
|
||||||
|
SetProperty (_T("fold.html"),
|
||||||
|
(curInfo->folds & mySTC_FOLD_HTML) > 0? _T("1"): _T("0"));
|
||||||
|
SetProperty (_T("fold.html.preprocessor"),
|
||||||
|
(curInfo->folds & mySTC_FOLD_HTMLPREP) > 0? _T("1"): _T("0"));
|
||||||
|
SetProperty (_T("fold.comment.python"),
|
||||||
|
(curInfo->folds & mySTC_FOLD_COMMENTPY) > 0? _T("1"): _T("0"));
|
||||||
|
SetProperty (_T("fold.quotes.python"),
|
||||||
|
(curInfo->folds & mySTC_FOLD_QUOTESPY) > 0? _T("1"): _T("0"));
|
||||||
|
}
|
||||||
|
SetFoldFlags (wxSTC_FOLDFLAG_LINEBEFORE_CONTRACTED |
|
||||||
|
wxSTC_FOLDFLAG_LINEAFTER_CONTRACTED);
|
||||||
|
|
||||||
|
// set spaces and indention
|
||||||
|
SetTabWidth (4);
|
||||||
|
SetUseTabs (false);
|
||||||
|
SetTabIndents (true);
|
||||||
|
SetBackSpaceUnIndents (true);
|
||||||
|
SetIndent (g_CommonPrefs.indentEnable? 4: 0);
|
||||||
|
|
||||||
|
// others
|
||||||
|
SetViewEOL (g_CommonPrefs.displayEOLEnable);
|
||||||
|
SetIndentationGuides (g_CommonPrefs.indentGuideEnable);
|
||||||
|
SetEdgeColumn (80);
|
||||||
|
SetEdgeMode (g_CommonPrefs.longLineOnEnable? wxSTC_EDGE_LINE: wxSTC_EDGE_NONE);
|
||||||
|
SetViewWhiteSpace (g_CommonPrefs.whiteSpaceEnable?
|
||||||
|
wxSTC_WS_VISIBLEALWAYS: wxSTC_WS_INVISIBLE);
|
||||||
|
SetOvertype (g_CommonPrefs.overTypeInitial);
|
||||||
|
SetReadOnly (g_CommonPrefs.readOnlyInitial);
|
||||||
|
SetWrapMode (g_CommonPrefs.wrapModeInitial?
|
||||||
|
wxSTC_WRAP_WORD: wxSTC_WRAP_NONE);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool Edit::LoadFile () {
|
||||||
|
|
||||||
|
// get filname
|
||||||
|
if (!m_filename) {
|
||||||
|
wxFileDialog dlg (this, _T("Open file"), _T(""), _T(""),
|
||||||
|
_T("Any file (*)|*"), wxOPEN | wxFILE_MUST_EXIST | wxCHANGE_DIR);
|
||||||
|
if (dlg.ShowModal() != wxID_OK) return false;
|
||||||
|
m_filename = dlg.GetPath();
|
||||||
|
}
|
||||||
|
|
||||||
|
// load file
|
||||||
|
return LoadFile (m_filename);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool Edit::LoadFile (const wxString &filename) {
|
||||||
|
|
||||||
|
// load file in edit and clear undo
|
||||||
|
if (!filename.IsEmpty()) m_filename = filename;
|
||||||
|
// wxFile file (m_filename);
|
||||||
|
// if (!file.IsOpened()) return false;
|
||||||
|
ClearAll ();
|
||||||
|
// long lng = file.Length ();
|
||||||
|
// if (lng > 0) {
|
||||||
|
// wxString buf;
|
||||||
|
// wxChar *buff = buf.GetWriteBuf (lng);
|
||||||
|
// file.Read (buff, lng);
|
||||||
|
// buf.UngetWriteBuf ();
|
||||||
|
// InsertText (0, buf);
|
||||||
|
// }
|
||||||
|
// file.Close();
|
||||||
|
|
||||||
|
wxStyledTextCtrl::LoadFile(m_filename);
|
||||||
|
|
||||||
|
EmptyUndoBuffer();
|
||||||
|
|
||||||
|
// determine lexer language
|
||||||
|
wxFileName fname (m_filename);
|
||||||
|
InitializePrefs (DeterminePrefs (fname.GetFullName()));
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool Edit::SaveFile () {
|
||||||
|
|
||||||
|
// return if no change
|
||||||
|
if (!Modified()) return true;
|
||||||
|
|
||||||
|
// get filname
|
||||||
|
if (!m_filename) {
|
||||||
|
wxFileDialog dlg (this, _T("Save file"), _T(""), _T(""), _T("Any file (*)|*"),
|
||||||
|
wxSAVE | wxOVERWRITE_PROMPT);
|
||||||
|
if (dlg.ShowModal() != wxID_OK) return false;
|
||||||
|
m_filename = dlg.GetPath();
|
||||||
|
}
|
||||||
|
|
||||||
|
// save file
|
||||||
|
return SaveFile (m_filename);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool Edit::SaveFile (const wxString &filename) {
|
||||||
|
|
||||||
|
// return if no change
|
||||||
|
if (!Modified()) return true;
|
||||||
|
|
||||||
|
// // save edit in file and clear undo
|
||||||
|
// if (!filename.IsEmpty()) m_filename = filename;
|
||||||
|
// wxFile file (m_filename, wxFile::write);
|
||||||
|
// if (!file.IsOpened()) return false;
|
||||||
|
// wxString buf = GetText();
|
||||||
|
// bool okay = file.Write (buf);
|
||||||
|
// file.Close();
|
||||||
|
// if (!okay) return false;
|
||||||
|
// EmptyUndoBuffer();
|
||||||
|
// SetSavePoint();
|
||||||
|
|
||||||
|
// return true;
|
||||||
|
|
||||||
|
return wxStyledTextCtrl::SaveFile(filename);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
bool Edit::Modified () {
|
||||||
|
|
||||||
|
// return modified state
|
||||||
|
return (GetModify() && !GetReadOnly());
|
||||||
|
}
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
// EditProperties
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
EditProperties::EditProperties (Edit *edit,
|
||||||
|
long style)
|
||||||
|
: wxDialog (edit, -1, wxEmptyString,
|
||||||
|
wxDefaultPosition, wxDefaultSize,
|
||||||
|
style | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER) {
|
||||||
|
|
||||||
|
// sets the application title
|
||||||
|
SetTitle (_("Properties"));
|
||||||
|
wxString text;
|
||||||
|
|
||||||
|
// fullname
|
||||||
|
wxBoxSizer *fullname = new wxBoxSizer (wxHORIZONTAL);
|
||||||
|
fullname->Add (10, 0);
|
||||||
|
fullname->Add (new wxStaticText (this, -1, _("Full filename"),
|
||||||
|
wxDefaultPosition, wxSize(80, -1)),
|
||||||
|
0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL);
|
||||||
|
fullname->Add (new wxStaticText (this, -1, edit->GetFilename()),
|
||||||
|
0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL);
|
||||||
|
|
||||||
|
// text info
|
||||||
|
wxGridSizer *textinfo = new wxGridSizer (4, 0, 2);
|
||||||
|
textinfo->Add (new wxStaticText (this, -1, _("Language"),
|
||||||
|
wxDefaultPosition, wxSize(80, -1)),
|
||||||
|
0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT, 4);
|
||||||
|
textinfo->Add (new wxStaticText (this, -1, edit->m_language->name),
|
||||||
|
0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxRIGHT, 4);
|
||||||
|
textinfo->Add (new wxStaticText (this, -1, _("Lexer-ID: "),
|
||||||
|
wxDefaultPosition, wxSize(80, -1)),
|
||||||
|
0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT, 4);
|
||||||
|
text = wxString::Format (_T("%d"), edit->GetLexer());
|
||||||
|
textinfo->Add (new wxStaticText (this, -1, text),
|
||||||
|
0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxRIGHT, 4);
|
||||||
|
wxString EOLtype = _T("");
|
||||||
|
switch (edit->GetEOLMode()) {
|
||||||
|
case wxSTC_EOL_CR: {EOLtype = _T("CR (Unix)"); break; }
|
||||||
|
case wxSTC_EOL_CRLF: {EOLtype = _T("CRLF (Windows)"); break; }
|
||||||
|
case wxSTC_EOL_LF: {EOLtype = _T("CR (Macintosh)"); break; }
|
||||||
|
}
|
||||||
|
textinfo->Add (new wxStaticText (this, -1, _("Line endings"),
|
||||||
|
wxDefaultPosition, wxSize(80, -1)),
|
||||||
|
0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT, 4);
|
||||||
|
textinfo->Add (new wxStaticText (this, -1, EOLtype),
|
||||||
|
0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxRIGHT, 4);
|
||||||
|
|
||||||
|
// text info box
|
||||||
|
wxStaticBoxSizer *textinfos = new wxStaticBoxSizer (
|
||||||
|
new wxStaticBox (this, -1, _("Informations")),
|
||||||
|
wxVERTICAL);
|
||||||
|
textinfos->Add (textinfo, 0, wxEXPAND);
|
||||||
|
textinfos->Add (0, 6);
|
||||||
|
|
||||||
|
// statistic
|
||||||
|
wxGridSizer *statistic = new wxGridSizer (4, 0, 2);
|
||||||
|
statistic->Add (new wxStaticText (this, -1, _("Total lines"),
|
||||||
|
wxDefaultPosition, wxSize(80, -1)),
|
||||||
|
0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT, 4);
|
||||||
|
text = wxString::Format (_T("%d"), edit->GetLineCount());
|
||||||
|
statistic->Add (new wxStaticText (this, -1, text),
|
||||||
|
0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxRIGHT, 4);
|
||||||
|
statistic->Add (new wxStaticText (this, -1, _("Total chars"),
|
||||||
|
wxDefaultPosition, wxSize(80, -1)),
|
||||||
|
0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT, 4);
|
||||||
|
text = wxString::Format (_T("%d"), edit->GetTextLength());
|
||||||
|
statistic->Add (new wxStaticText (this, -1, text),
|
||||||
|
0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxRIGHT, 4);
|
||||||
|
statistic->Add (new wxStaticText (this, -1, _("Current line"),
|
||||||
|
wxDefaultPosition, wxSize(80, -1)),
|
||||||
|
0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT, 4);
|
||||||
|
text = wxString::Format (_T("%d"), edit->GetCurrentLine());
|
||||||
|
statistic->Add (new wxStaticText (this, -1, text),
|
||||||
|
0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxRIGHT, 4);
|
||||||
|
statistic->Add (new wxStaticText (this, -1, _("Current pos"),
|
||||||
|
wxDefaultPosition, wxSize(80, -1)),
|
||||||
|
0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT, 4);
|
||||||
|
text = wxString::Format (_T("%d"), edit->GetCurrentPos());
|
||||||
|
statistic->Add (new wxStaticText (this, -1, text),
|
||||||
|
0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxRIGHT, 4);
|
||||||
|
|
||||||
|
// char/line statistics
|
||||||
|
wxStaticBoxSizer *statistics = new wxStaticBoxSizer (
|
||||||
|
new wxStaticBox (this, -1, _("Statistics")),
|
||||||
|
wxVERTICAL);
|
||||||
|
statistics->Add (statistic, 0, wxEXPAND);
|
||||||
|
statistics->Add (0, 6);
|
||||||
|
|
||||||
|
// total pane
|
||||||
|
wxBoxSizer *totalpane = new wxBoxSizer (wxVERTICAL);
|
||||||
|
totalpane->Add (fullname, 0, wxEXPAND | wxLEFT | wxRIGHT | wxTOP, 10);
|
||||||
|
totalpane->Add (0, 6);
|
||||||
|
totalpane->Add (textinfos, 0, wxEXPAND | wxLEFT | wxRIGHT, 10);
|
||||||
|
totalpane->Add (0, 10);
|
||||||
|
totalpane->Add (statistics, 0, wxEXPAND | wxLEFT | wxRIGHT, 10);
|
||||||
|
totalpane->Add (0, 6);
|
||||||
|
wxButton *okButton = new wxButton (this, wxID_OK, _("OK"));
|
||||||
|
okButton->SetDefault();
|
||||||
|
totalpane->Add (okButton, 0, wxALIGN_CENTER | wxALL, 10);
|
||||||
|
|
||||||
|
SetSizerAndFit (totalpane);
|
||||||
|
|
||||||
|
ShowModal();
|
||||||
|
}
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
// EditPrint
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
EditPrint::EditPrint (Edit *edit, wxChar *title)
|
||||||
|
: wxPrintout(title) {
|
||||||
|
m_edit = edit;
|
||||||
|
m_printed = 0;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
bool EditPrint::OnPrintPage (int page) {
|
||||||
|
|
||||||
|
wxDC *dc = GetDC();
|
||||||
|
if (!dc) return false;
|
||||||
|
|
||||||
|
// scale DC
|
||||||
|
PrintScaling (dc);
|
||||||
|
|
||||||
|
// print page
|
||||||
|
if (page == 1) m_printed = 0;
|
||||||
|
m_printed = m_edit->FormatRange (1, m_printed, m_edit->GetLength(),
|
||||||
|
dc, dc, m_printRect, m_pageRect);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool EditPrint::OnBeginDocument (int startPage, int endPage) {
|
||||||
|
|
||||||
|
if (!wxPrintout::OnBeginDocument (startPage, endPage)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void EditPrint::GetPageInfo (int *minPage, int *maxPage, int *selPageFrom, int *selPageTo) {
|
||||||
|
|
||||||
|
// initialize values
|
||||||
|
*minPage = 0;
|
||||||
|
*maxPage = 0;
|
||||||
|
*selPageFrom = 0;
|
||||||
|
*selPageTo = 0;
|
||||||
|
|
||||||
|
// scale DC if possible
|
||||||
|
wxDC *dc = GetDC();
|
||||||
|
if (!dc) return;
|
||||||
|
PrintScaling (dc);
|
||||||
|
|
||||||
|
// get print page informations and convert to printer pixels
|
||||||
|
wxSize ppiScr;
|
||||||
|
GetPPIScreen (&ppiScr.x, &ppiScr.y);
|
||||||
|
wxSize page = g_pageSetupData->GetPaperSize();
|
||||||
|
page.x = static_cast<int> (page.x * ppiScr.x / 25.4);
|
||||||
|
page.y = static_cast<int> (page.y * ppiScr.y / 25.4);
|
||||||
|
m_pageRect = wxRect (0,
|
||||||
|
0,
|
||||||
|
page.x,
|
||||||
|
page.y);
|
||||||
|
|
||||||
|
// get margins informations and convert to printer pixels
|
||||||
|
int top = 25; // default 25
|
||||||
|
int bottom = 25; // default 25
|
||||||
|
int left = 20; // default 20
|
||||||
|
int right = 20; // default 20
|
||||||
|
wxPoint (top, left) = g_pageSetupData->GetMarginTopLeft();
|
||||||
|
wxPoint (bottom, right) = g_pageSetupData->GetMarginBottomRight();
|
||||||
|
top = static_cast<int> (top * ppiScr.y / 25.4);
|
||||||
|
bottom = static_cast<int> (bottom * ppiScr.y / 25.4);
|
||||||
|
left = static_cast<int> (left * ppiScr.x / 25.4);
|
||||||
|
right = static_cast<int> (right * ppiScr.x / 25.4);
|
||||||
|
m_printRect = wxRect (left,
|
||||||
|
top,
|
||||||
|
page.x - (left + right),
|
||||||
|
page.y - (top + bottom));
|
||||||
|
|
||||||
|
// count pages
|
||||||
|
while (HasPage (*maxPage)) {
|
||||||
|
m_printed = m_edit->FormatRange (0, m_printed, m_edit->GetLength(),
|
||||||
|
dc, dc, m_printRect, m_pageRect);
|
||||||
|
*maxPage += 1;
|
||||||
|
}
|
||||||
|
if (*maxPage > 0) *minPage = 1;
|
||||||
|
*selPageFrom = *minPage;
|
||||||
|
*selPageTo = *maxPage;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool EditPrint::HasPage (int WXUNUSED(page)) {
|
||||||
|
|
||||||
|
return (m_printed < m_edit->GetLength());
|
||||||
|
}
|
||||||
|
|
||||||
|
bool EditPrint::PrintScaling (wxDC *dc){
|
||||||
|
|
||||||
|
// check for dc, return if none
|
||||||
|
if (!dc) return false;
|
||||||
|
|
||||||
|
// get printer and screen sizing values
|
||||||
|
wxSize ppiScr;
|
||||||
|
GetPPIScreen (&ppiScr.x, &ppiScr.y);
|
||||||
|
if (ppiScr.x == 0) { // most possible guess 96 dpi
|
||||||
|
ppiScr.x = 96;
|
||||||
|
ppiScr.y = 96;
|
||||||
|
}
|
||||||
|
wxSize ppiPrt;
|
||||||
|
GetPPIPrinter (&ppiPrt.x, &ppiPrt.y);
|
||||||
|
if (ppiPrt.x == 0) { // scaling factor to 1
|
||||||
|
ppiPrt.x = ppiScr.x;
|
||||||
|
ppiPrt.y = ppiScr.y;
|
||||||
|
}
|
||||||
|
wxSize dcSize = dc->GetSize();
|
||||||
|
wxSize pageSize;
|
||||||
|
GetPageSizePixels (&pageSize.x, &pageSize.y);
|
||||||
|
|
||||||
|
// set user scale
|
||||||
|
float scale_x = (float)(ppiPrt.x * dcSize.x) /
|
||||||
|
(float)(ppiScr.x * pageSize.x);
|
||||||
|
float scale_y = (float)(ppiPrt.y * dcSize.y) /
|
||||||
|
(float)(ppiScr.y * pageSize.y);
|
||||||
|
dc->SetUserScale (scale_x, scale_y);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
169
contrib/samples/stc/edit.h
Normal file
169
contrib/samples/stc/edit.h
Normal file
@@ -0,0 +1,169 @@
|
|||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
// File: edit.h
|
||||||
|
// Purpose: STC test module
|
||||||
|
// Maintainer: Wyo
|
||||||
|
// Created: 2003-09-01
|
||||||
|
// RCS-ID: $Id$
|
||||||
|
// Copyright: (c) wxGuide
|
||||||
|
// Licence: wxWindows licence
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef _EDIT_H_
|
||||||
|
#define _EDIT_H_
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
// informations
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
// headers
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
//! wxWindows headers
|
||||||
|
|
||||||
|
//! wxWindows/contrib headers
|
||||||
|
#include <wx/stc/stc.h> // styled text control
|
||||||
|
|
||||||
|
//! application headers
|
||||||
|
#include "prefs.h" // preferences
|
||||||
|
|
||||||
|
|
||||||
|
//============================================================================
|
||||||
|
// declarations
|
||||||
|
//============================================================================
|
||||||
|
|
||||||
|
class EditPrint;
|
||||||
|
class EditProperties;
|
||||||
|
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
//! Edit
|
||||||
|
class Edit: public wxStyledTextCtrl {
|
||||||
|
friend class EditProperties;
|
||||||
|
friend class EditPrint;
|
||||||
|
|
||||||
|
public:
|
||||||
|
//! constructor
|
||||||
|
Edit (wxWindow *parent, wxWindowID id = -1,
|
||||||
|
const wxPoint &pos = wxDefaultPosition,
|
||||||
|
const wxSize &size = wxDefaultSize,
|
||||||
|
long style = wxSUNKEN_BORDER|wxVSCROLL
|
||||||
|
);
|
||||||
|
|
||||||
|
//! destructor
|
||||||
|
~Edit ();
|
||||||
|
|
||||||
|
// event handlers
|
||||||
|
// common
|
||||||
|
void OnSize( wxSizeEvent &event );
|
||||||
|
// edit
|
||||||
|
void OnEditRedo (wxCommandEvent &event);
|
||||||
|
void OnEditUndo (wxCommandEvent &event);
|
||||||
|
void OnEditClear (wxCommandEvent &event);
|
||||||
|
void OnEditCut (wxCommandEvent &event);
|
||||||
|
void OnEditCopy (wxCommandEvent &event);
|
||||||
|
void OnEditPaste (wxCommandEvent &event);
|
||||||
|
// find
|
||||||
|
void OnFind (wxCommandEvent &event);
|
||||||
|
void OnFindNext (wxCommandEvent &event);
|
||||||
|
void OnReplace (wxCommandEvent &event);
|
||||||
|
void OnReplaceNext (wxCommandEvent &event);
|
||||||
|
void OnBraceMatch (wxCommandEvent &event);
|
||||||
|
void OnGoto (wxCommandEvent &event);
|
||||||
|
void OnEditIndentInc (wxCommandEvent &event);
|
||||||
|
void OnEditIndentRed (wxCommandEvent &event);
|
||||||
|
void OnEditSelectAll (wxCommandEvent &event);
|
||||||
|
void OnEditSelectLine (wxCommandEvent &event);
|
||||||
|
//! view
|
||||||
|
void OnHilightLang (wxCommandEvent &event);
|
||||||
|
void OnDisplayEOL (wxCommandEvent &event);
|
||||||
|
void OnIndentGuide (wxCommandEvent &event);
|
||||||
|
void OnLineNumber (wxCommandEvent &event);
|
||||||
|
void OnLongLineOn (wxCommandEvent &event);
|
||||||
|
void OnWhiteSpace (wxCommandEvent &event);
|
||||||
|
void OnFoldToggle (wxCommandEvent &event);
|
||||||
|
void OnSetOverType (wxCommandEvent &event);
|
||||||
|
void OnSetReadOnly (wxCommandEvent &event);
|
||||||
|
void OnWrapmodeOn (wxCommandEvent &event);
|
||||||
|
void OnUseCharset (wxCommandEvent &event);
|
||||||
|
//! extra
|
||||||
|
void OnChangeCase (wxCommandEvent &event);
|
||||||
|
void OnConvertEOL (wxCommandEvent &event);
|
||||||
|
// stc
|
||||||
|
void OnMarginClick (wxStyledTextEvent &event);
|
||||||
|
void OnCharAdded (wxStyledTextEvent &event);
|
||||||
|
|
||||||
|
//! language/lexer
|
||||||
|
wxString DeterminePrefs (const wxString &filename);
|
||||||
|
bool InitializePrefs (const wxString &filename);
|
||||||
|
bool UserSettings (const wxString &filename);
|
||||||
|
LanguageInfo const* GetLanguageInfo () {return m_language;};
|
||||||
|
|
||||||
|
//! load/save file
|
||||||
|
bool LoadFile ();
|
||||||
|
bool LoadFile (const wxString &filename);
|
||||||
|
bool SaveFile ();
|
||||||
|
bool SaveFile (const wxString &filename);
|
||||||
|
bool Modified ();
|
||||||
|
wxString GetFilename () {return m_filename;};
|
||||||
|
void SetFilename (const wxString &filename) {m_filename = filename;};
|
||||||
|
|
||||||
|
private:
|
||||||
|
// file
|
||||||
|
wxString m_filename;
|
||||||
|
|
||||||
|
// lanugage properties
|
||||||
|
LanguageInfo const* m_language;
|
||||||
|
|
||||||
|
// margin variables
|
||||||
|
int m_LineNrID;
|
||||||
|
int m_LineNrMargin;
|
||||||
|
int m_FoldingID;
|
||||||
|
int m_FoldingMargin;
|
||||||
|
int m_DividerID;
|
||||||
|
|
||||||
|
DECLARE_EVENT_TABLE()
|
||||||
|
};
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
//! EditProperties
|
||||||
|
class EditProperties: public wxDialog {
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
|
//! constructor
|
||||||
|
EditProperties (Edit *edit, long style = 0);
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
//! EditPrint
|
||||||
|
class EditPrint: public wxPrintout {
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
|
//! constructor
|
||||||
|
EditPrint (Edit *edit, wxChar *title = _T(""));
|
||||||
|
|
||||||
|
//! event handlers
|
||||||
|
bool OnPrintPage (int page);
|
||||||
|
bool OnBeginDocument (int startPage, int endPage);
|
||||||
|
|
||||||
|
//! print functions
|
||||||
|
bool HasPage (int page);
|
||||||
|
void GetPageInfo (int *minPage, int *maxPage, int *selPageFrom, int *selPageTo);
|
||||||
|
|
||||||
|
private:
|
||||||
|
Edit *m_edit;
|
||||||
|
int m_printed;
|
||||||
|
wxRect m_pageRect;
|
||||||
|
wxRect m_printRect;
|
||||||
|
|
||||||
|
bool PrintScaling (wxDC *dc);
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // _EDIT_H_
|
||||||
|
|
@@ -11,8 +11,8 @@ WXDIR = $(WXWIN)
|
|||||||
|
|
||||||
TARGET=stctest
|
TARGET=stctest
|
||||||
|
|
||||||
EXTRALIBS=$(WXDIR)\contrib\lib\stc.lib
|
EXTRALIBS=$(WXDIR)\lib\stc.lib
|
||||||
OBJECTS = $(TARGET).obj
|
OBJECTS = $(TARGET).obj edit.obj prefs.obj
|
||||||
|
|
||||||
!include $(WXDIR)\src\makeprog.b32
|
!include $(WXDIR)\src\makeprog.b32
|
||||||
|
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
WXDIR = ../../..
|
WXDIR = ../../..
|
||||||
|
|
||||||
TARGET = stctest
|
TARGET = stctest
|
||||||
OBJECTS = $(TARGET).o
|
OBJECTS = $(TARGET).o edit.o prefs.o
|
||||||
EXTRAINC = -I$(WXDIR)/contrib/include
|
EXTRAINC = -I$(WXDIR)/contrib/include
|
||||||
EXTRALIBS = -lstc
|
EXTRALIBS = -lstc
|
||||||
|
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
WXDIR = $(WXWIN)
|
WXDIR = $(WXWIN)
|
||||||
PROGRAM = stctest
|
PROGRAM = stctest
|
||||||
|
|
||||||
OBJECTS = $(PROGRAM).obj
|
OBJECTS = $(PROGRAM).obj edit.obj prefs.obj
|
||||||
EXTRALIBS = $(WXDIR)\lib\stc$(LIBEXT).lib
|
EXTRALIBS = $(WXDIR)\lib\stc$(LIBEXT).lib
|
||||||
EXTRAINC = -I$(WXDIR)\contrib\include
|
EXTRAINC = -I$(WXDIR)\contrib\include
|
||||||
|
|
||||||
|
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 $(OUTPUTDIR)\edit.obj $(OUTPUTDIR)\prefs.obj
|
||||||
|
|
||||||
|
!include $(WXDIR)\src\makeprog.wat
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 766 B After Width: | Height: | Size: 766 B |
44
contrib/samples/stc/mondrian.xpm
Normal file
44
contrib/samples/stc/mondrian.xpm
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
/* XPM */
|
||||||
|
static char *mondrian_xpm[] = {
|
||||||
|
/* columns rows colors chars-per-pixel */
|
||||||
|
"32 32 6 1",
|
||||||
|
" c Black",
|
||||||
|
". c Blue",
|
||||||
|
"X c #00bf00",
|
||||||
|
"o c Red",
|
||||||
|
"O c Yellow",
|
||||||
|
"+ c Gray100",
|
||||||
|
/* pixels */
|
||||||
|
" ",
|
||||||
|
" oooooo +++++++++++++++++++++++ ",
|
||||||
|
" oooooo +++++++++++++++++++++++ ",
|
||||||
|
" oooooo +++++++++++++++++++++++ ",
|
||||||
|
" oooooo +++++++++++++++++++++++ ",
|
||||||
|
" oooooo +++++++++++++++++++++++ ",
|
||||||
|
" oooooo +++++++++++++++++++++++ ",
|
||||||
|
" oooooo +++++++++++++++++++++++ ",
|
||||||
|
" ",
|
||||||
|
" ++++++ ++++++++++++++++++ .... ",
|
||||||
|
" ++++++ ++++++++++++++++++ .... ",
|
||||||
|
" ++++++ ++++++++++++++++++ .... ",
|
||||||
|
" ++++++ ++++++++++++++++++ .... ",
|
||||||
|
" ++++++ ++++++++++++++++++ .... ",
|
||||||
|
" ++++++ ++++++++++++++++++ ",
|
||||||
|
" ++++++ ++++++++++++++++++ ++++ ",
|
||||||
|
" ++++++ ++++++++++++++++++ ++++ ",
|
||||||
|
" ++++++ ++++++++++++++++++ ++++ ",
|
||||||
|
" ++++++ ++++++++++++++++++ ++++ ",
|
||||||
|
" ++++++ ++++++++++++++++++ ++++ ",
|
||||||
|
" ++++++ ++++++++++++++++++ ++++ ",
|
||||||
|
" ++++++ ++++++++++++++++++ ++++ ",
|
||||||
|
" ++++++ ++++++++++++++++++ ++++ ",
|
||||||
|
" ++++++ ++++++++++++++++++ ++++ ",
|
||||||
|
" ++++++ ++++ ",
|
||||||
|
" ++++++ OOOOOOOOOOOO XXXXX ++++ ",
|
||||||
|
" ++++++ OOOOOOOOOOOO XXXXX ++++ ",
|
||||||
|
" ++++++ OOOOOOOOOOOO XXXXX ++++ ",
|
||||||
|
" ++++++ OOOOOOOOOOOO XXXXX ++++ ",
|
||||||
|
" ++++++ OOOOOOOOOOOO XXXXX ++++ ",
|
||||||
|
" ++++++ OOOOOOOOOOOO XXXXX ++++ ",
|
||||||
|
" "
|
||||||
|
};
|
379
contrib/samples/stc/prefs.cpp
Normal file
379
contrib/samples/stc/prefs.cpp
Normal file
@@ -0,0 +1,379 @@
|
|||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
// File: prefs.cpp
|
||||||
|
// Purpose: STC test Preferences initialization
|
||||||
|
// Maintainer: Wyo
|
||||||
|
// Created: 2003-09-01
|
||||||
|
// RCS-ID: $Id$
|
||||||
|
// Copyright: (c) wxGuide
|
||||||
|
// Licence: wxWindows licence
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
// headers
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
// For compilers that support precompilation, includes <wx/wx.h>.
|
||||||
|
#include <wx/wxprec.h>
|
||||||
|
|
||||||
|
#ifdef __BORLANDC__
|
||||||
|
#pragma hdrstop
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// for all others, include the necessary headers (this file is usually all you
|
||||||
|
// need because it includes almost all 'standard' wxWindows headers)
|
||||||
|
#ifndef WX_PRECOMP
|
||||||
|
#include <wx/wx.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
//! wxWindows headers
|
||||||
|
|
||||||
|
//! wxWindows/contrib headers
|
||||||
|
|
||||||
|
//! application headers
|
||||||
|
#include "defsext.h" // Additional definitions
|
||||||
|
#include "prefs.h" // Preferences
|
||||||
|
|
||||||
|
|
||||||
|
//============================================================================
|
||||||
|
// declarations
|
||||||
|
//============================================================================
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
//! language types
|
||||||
|
const CommonInfo g_CommonPrefs = {
|
||||||
|
// editor functionality prefs
|
||||||
|
true, // syntaxEnable
|
||||||
|
true, // foldEnable
|
||||||
|
true, // indentEnable
|
||||||
|
// display defaults prefs
|
||||||
|
false, // overTypeInitial
|
||||||
|
false, // readOnlyInitial
|
||||||
|
false, // wrapModeInitial
|
||||||
|
false, // displayEOLEnable
|
||||||
|
false, // IndentGuideEnable
|
||||||
|
true, // lineNumberEnable
|
||||||
|
false, // longLineOnEnable
|
||||||
|
false, // whiteSpaceEnable
|
||||||
|
};
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
// keywordlists
|
||||||
|
// C++
|
||||||
|
wxChar* CppWordlist1 =
|
||||||
|
_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");
|
||||||
|
wxChar* CppWordlist2 =
|
||||||
|
_T("file");
|
||||||
|
wxChar* CppWordlist3 =
|
||||||
|
_T("a addindex addtogroup anchor arg attention author b brief bug c \
|
||||||
|
class code date def defgroup deprecated dontinclude e em endcode \
|
||||||
|
endhtmlonly endif endlatexonly endlink endverbatim enum example \
|
||||||
|
exception f$ f[ f] file fn hideinitializer htmlinclude \
|
||||||
|
htmlonly if image include ingroup internal invariant interface \
|
||||||
|
latexonly li line link mainpage name namespace nosubgrouping note \
|
||||||
|
overload p page par param post pre ref relates remarks return \
|
||||||
|
retval sa section see showinitializer since skip skipline struct \
|
||||||
|
subsection test throw todo typedef union until var verbatim \
|
||||||
|
verbinclude version warning weakgroup $ @ "" & < > # { }");
|
||||||
|
|
||||||
|
// Python
|
||||||
|
wxChar* PythonWordlist1 =
|
||||||
|
_T("and assert break class continue def del elif else except exec \
|
||||||
|
finally for from global if import in is lambda None not or pass \
|
||||||
|
print raise return try while yield");
|
||||||
|
wxChar* PythonWordlist2 =
|
||||||
|
_T("ACCELERATORS ALT AUTO3STATE AUTOCHECKBOX AUTORADIOBUTTON BEGIN \
|
||||||
|
BITMAP BLOCK BUTTON CAPTION CHARACTERISTICS CHECKBOX CLASS \
|
||||||
|
COMBOBOX CONTROL CTEXT CURSOR DEFPUSHBUTTON DIALOG DIALOGEX \
|
||||||
|
DISCARDABLE EDITTEXT END EXSTYLE FONT GROUPBOX ICON LANGUAGE \
|
||||||
|
LISTBOX LTEXT MENU MENUEX MENUITEM MESSAGETABLE POPUP PUSHBUTTON \
|
||||||
|
RADIOBUTTON RCDATA RTEXT SCROLLBAR SEPARATOR SHIFT STATE3 \
|
||||||
|
STRINGTABLE STYLE TEXTINCLUDE VALUE VERSION VERSIONINFO VIRTKEY");
|
||||||
|
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
//! languages
|
||||||
|
const LanguageInfo g_LanguagePrefs [] = {
|
||||||
|
// C++
|
||||||
|
{_T("C++"),
|
||||||
|
_T("*.c;*.cc;*.cpp;*.cxx;*.cs;*.h;*.hh;*.hpp;*.hxx;*.sma"),
|
||||||
|
wxSTC_LEX_CPP,
|
||||||
|
{{mySTC_TYPE_DEFAULT, NULL},
|
||||||
|
{mySTC_TYPE_COMMENT, NULL},
|
||||||
|
{mySTC_TYPE_COMMENT_LINE, NULL},
|
||||||
|
{mySTC_TYPE_COMMENT_DOC, NULL},
|
||||||
|
{mySTC_TYPE_NUMBER, NULL},
|
||||||
|
{mySTC_TYPE_WORD1, CppWordlist1}, // KEYWORDS
|
||||||
|
{mySTC_TYPE_STRING, NULL},
|
||||||
|
{mySTC_TYPE_CHARACTER, NULL},
|
||||||
|
{mySTC_TYPE_UUID, NULL},
|
||||||
|
{mySTC_TYPE_PREPROCESSOR, NULL},
|
||||||
|
{mySTC_TYPE_OPERATOR, NULL},
|
||||||
|
{mySTC_TYPE_IDENTIFIER, NULL},
|
||||||
|
{mySTC_TYPE_STRING_EOL, NULL},
|
||||||
|
{mySTC_TYPE_DEFAULT, NULL}, // VERBATIM
|
||||||
|
{mySTC_TYPE_REGEX, NULL},
|
||||||
|
{mySTC_TYPE_COMMENT_SPECIAL, NULL}, // DOXY
|
||||||
|
{mySTC_TYPE_WORD2, CppWordlist2}, // EXTRA WORDS
|
||||||
|
{mySTC_TYPE_WORD3, CppWordlist3}, // DOXY KEYWORDS
|
||||||
|
{mySTC_TYPE_ERROR, NULL}, // KEYWORDS ERROR
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL}},
|
||||||
|
mySTC_FOLD_COMMENT | mySTC_FOLD_COMPACT | mySTC_FOLD_PREPROC},
|
||||||
|
// Python
|
||||||
|
{_T("Python"),
|
||||||
|
_T("*.py;*.pyw"),
|
||||||
|
wxSTC_LEX_PYTHON,
|
||||||
|
{{mySTC_TYPE_DEFAULT, NULL},
|
||||||
|
{mySTC_TYPE_COMMENT_LINE, NULL},
|
||||||
|
{mySTC_TYPE_NUMBER, NULL},
|
||||||
|
{mySTC_TYPE_STRING, NULL},
|
||||||
|
{mySTC_TYPE_CHARACTER, NULL},
|
||||||
|
{mySTC_TYPE_WORD1, PythonWordlist1}, // KEYWORDS
|
||||||
|
{mySTC_TYPE_DEFAULT, NULL}, // TRIPLE
|
||||||
|
{mySTC_TYPE_DEFAULT, NULL}, // TRIPLEDOUBLE
|
||||||
|
{mySTC_TYPE_DEFAULT, NULL}, // CLASSNAME
|
||||||
|
{mySTC_TYPE_DEFAULT, PythonWordlist2}, // DEFNAME
|
||||||
|
{mySTC_TYPE_OPERATOR, NULL},
|
||||||
|
{mySTC_TYPE_IDENTIFIER, NULL},
|
||||||
|
{mySTC_TYPE_DEFAULT, NULL}, // COMMENT_BLOCK
|
||||||
|
{mySTC_TYPE_STRING_EOL, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL}},
|
||||||
|
mySTC_FOLD_COMMENTPY | mySTC_FOLD_QUOTESPY},
|
||||||
|
// * (any)
|
||||||
|
{(wxChar *)DEFAULT_LANGUAGE,
|
||||||
|
_T("*.*"),
|
||||||
|
wxSTC_LEX_PROPERTIES,
|
||||||
|
{{mySTC_TYPE_DEFAULT, NULL},
|
||||||
|
{mySTC_TYPE_DEFAULT, NULL},
|
||||||
|
{mySTC_TYPE_DEFAULT, NULL},
|
||||||
|
{mySTC_TYPE_DEFAULT, NULL},
|
||||||
|
{mySTC_TYPE_DEFAULT, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL},
|
||||||
|
{-1, NULL}},
|
||||||
|
0},
|
||||||
|
};
|
||||||
|
|
||||||
|
const int g_LanguagePrefsSize = WXSIZEOF(g_LanguagePrefs);
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
//! style types
|
||||||
|
const StyleInfo g_StylePrefs [] = {
|
||||||
|
// mySTC_TYPE_DEFAULT
|
||||||
|
{_T("Default"),
|
||||||
|
_T("BLACK"), _T("WHITE"),
|
||||||
|
_T(""), 10, 0, 0},
|
||||||
|
|
||||||
|
// mySTC_TYPE_WORD1
|
||||||
|
{_T("Keyword1"),
|
||||||
|
_T("BLUE"), _T("WHITE"),
|
||||||
|
_T(""), 10, mySTC_STYLE_BOLD, 0},
|
||||||
|
|
||||||
|
// mySTC_TYPE_WORD2
|
||||||
|
{_T("Keyword2"),
|
||||||
|
_T("DARK BLUE"), _T("WHITE"),
|
||||||
|
_T(""), 10, 0, 0},
|
||||||
|
|
||||||
|
// mySTC_TYPE_WORD3
|
||||||
|
{_T("Keyword3"),
|
||||||
|
_T("CORNFLOWER BLUE"), _T("WHITE"),
|
||||||
|
_T(""), 10, 0, 0},
|
||||||
|
|
||||||
|
// mySTC_TYPE_WORD4
|
||||||
|
{_T("Keyword4"),
|
||||||
|
_T("CYAN"), _T("WHITE"),
|
||||||
|
_T(""), 10, 0, 0},
|
||||||
|
|
||||||
|
// mySTC_TYPE_WORD5
|
||||||
|
{_T("Keyword5"),
|
||||||
|
_T("DARK GREY"), _T("WHITE"),
|
||||||
|
_T(""), 10, 0, 0},
|
||||||
|
|
||||||
|
// mySTC_TYPE_WORD6
|
||||||
|
{_T("Keyword6"),
|
||||||
|
_T("GREY"), _T("WHITE"),
|
||||||
|
_T(""), 10, 0, 0},
|
||||||
|
|
||||||
|
// mySTC_TYPE_COMMENT
|
||||||
|
{_T("Comment"),
|
||||||
|
_T("FOREST GREEN"), _T("WHITE"),
|
||||||
|
_T(""), 10, 0, 0},
|
||||||
|
|
||||||
|
// mySTC_TYPE_COMMENT_DOC
|
||||||
|
{_T("Comment (Doc)"),
|
||||||
|
_T("FOREST GREEN"), _T("WHITE"),
|
||||||
|
_T(""), 10, 0, 0},
|
||||||
|
|
||||||
|
// mySTC_TYPE_COMMENT_LINE
|
||||||
|
{_T("Comment line"),
|
||||||
|
_T("FOREST GREEN"), _T("WHITE"),
|
||||||
|
_T(""), 10, 0, 0},
|
||||||
|
|
||||||
|
// mySTC_TYPE_COMMENT_SPECIAL
|
||||||
|
{_T("Special comment"),
|
||||||
|
_T("FOREST GREEN"), _T("WHITE"),
|
||||||
|
_T(""), 10, mySTC_STYLE_ITALIC, 0},
|
||||||
|
|
||||||
|
// mySTC_TYPE_CHARACTER
|
||||||
|
{_T("Character"),
|
||||||
|
_T("KHAKI"), _T("WHITE"),
|
||||||
|
_T(""), 10, 0, 0},
|
||||||
|
|
||||||
|
// mySTC_TYPE_CHARACTER_EOL
|
||||||
|
{_T("Character (EOL)"),
|
||||||
|
_T("KHAKI"), _T("WHITE"),
|
||||||
|
_T(""), 10, 0, 0},
|
||||||
|
|
||||||
|
// mySTC_TYPE_STRING
|
||||||
|
{_T("String"),
|
||||||
|
_T("BROWN"), _T("WHITE"),
|
||||||
|
_T(""), 10, 0, 0},
|
||||||
|
|
||||||
|
// mySTC_TYPE_STRING_EOL
|
||||||
|
{_T("String (EOL)"),
|
||||||
|
_T("BROWN"), _T("WHITE"),
|
||||||
|
_T(""), 10, 0, 0},
|
||||||
|
|
||||||
|
// mySTC_TYPE_DELIMITER
|
||||||
|
{_T("Delimiter"),
|
||||||
|
_T("ORANGE"), _T("WHITE"),
|
||||||
|
_T(""), 10, 0, 0},
|
||||||
|
|
||||||
|
// mySTC_TYPE_PUNCTUATION
|
||||||
|
{_T("Punctuation"),
|
||||||
|
_T("ORANGE"), _T("WHITE"),
|
||||||
|
_T(""), 10, 0, 0},
|
||||||
|
|
||||||
|
// mySTC_TYPE_OPERATOR
|
||||||
|
{_T("Operator"),
|
||||||
|
_T("BLACK"), _T("WHITE"),
|
||||||
|
_T(""), 10, mySTC_STYLE_BOLD, 0},
|
||||||
|
|
||||||
|
// mySTC_TYPE_BRACE
|
||||||
|
{_T("Label"),
|
||||||
|
_T("VIOLET"), _T("WHITE"),
|
||||||
|
_T(""), 10, 0, 0},
|
||||||
|
|
||||||
|
// mySTC_TYPE_COMMAND
|
||||||
|
{_T("Command"),
|
||||||
|
_T("BLUE"), _T("WHITE"),
|
||||||
|
_T(""), 10, 0, 0},
|
||||||
|
|
||||||
|
// mySTC_TYPE_IDENTIFIER
|
||||||
|
{_T("Identifier"),
|
||||||
|
_T("BLACK"), _T("WHITE"),
|
||||||
|
_T(""), 10, 0, 0},
|
||||||
|
|
||||||
|
// mySTC_TYPE_LABEL
|
||||||
|
{_T("Label"),
|
||||||
|
_T("VIOLET"), _T("WHITE"),
|
||||||
|
_T(""), 10, 0, 0},
|
||||||
|
|
||||||
|
// mySTC_TYPE_NUMBER
|
||||||
|
{_T("Number"),
|
||||||
|
_T("SIENNA"), _T("WHITE"),
|
||||||
|
_T(""), 10, 0, 0},
|
||||||
|
|
||||||
|
// mySTC_TYPE_PARAMETER
|
||||||
|
{_T("Parameter"),
|
||||||
|
_T("VIOLET"), _T("WHITE"),
|
||||||
|
_T(""), 10, mySTC_STYLE_ITALIC, 0},
|
||||||
|
|
||||||
|
// mySTC_TYPE_REGEX
|
||||||
|
{_T("Regular expression"),
|
||||||
|
_T("ORCHID"), _T("WHITE"),
|
||||||
|
_T(""), 10, 0, 0},
|
||||||
|
|
||||||
|
// mySTC_TYPE_UUID
|
||||||
|
{_T("UUID"),
|
||||||
|
_T("ORCHID"), _T("WHITE"),
|
||||||
|
_T(""), 10, 0, 0},
|
||||||
|
|
||||||
|
// mySTC_TYPE_VALUE
|
||||||
|
{_T("Value"),
|
||||||
|
_T("ORCHID"), _T("WHITE"),
|
||||||
|
_T(""), 10, mySTC_STYLE_ITALIC, 0},
|
||||||
|
|
||||||
|
// mySTC_TYPE_PREPROCESSOR
|
||||||
|
{_T("Preprocessor"),
|
||||||
|
_T("GREY"), _T("WHITE"),
|
||||||
|
_T(""), 10, 0, 0},
|
||||||
|
|
||||||
|
// mySTC_TYPE_SCRIPT
|
||||||
|
{_T("Script"),
|
||||||
|
_T("DARK GREY"), _T("WHITE"),
|
||||||
|
_T(""), 10, 0, 0},
|
||||||
|
|
||||||
|
// mySTC_TYPE_ERROR
|
||||||
|
{_T("Error"),
|
||||||
|
_T("RED"), _T("WHITE"),
|
||||||
|
_T(""), 10, 0, 0},
|
||||||
|
|
||||||
|
// mySTC_TYPE_UNDEFINED
|
||||||
|
{_T("Undefined"),
|
||||||
|
_T("ORANGE"), _T("WHITE"),
|
||||||
|
_T(""), 10, 0, 0}
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
const int g_StylePrefsSize = WXSIZEOF(g_StylePrefs);
|
||||||
|
|
153
contrib/samples/stc/prefs.h
Normal file
153
contrib/samples/stc/prefs.h
Normal file
@@ -0,0 +1,153 @@
|
|||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
// File: prefs.h
|
||||||
|
// Purpose: STC test Preferences initialization
|
||||||
|
// Maintainer: Wyo
|
||||||
|
// Created: 2003-09-01
|
||||||
|
// RCS-ID: $Id$
|
||||||
|
// Copyright: (c) wxGuide
|
||||||
|
// Licence: wxWindows licence
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef _PREFS_H_
|
||||||
|
#define _PREFS_H_
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
// informations
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
// headers
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
//! wxWindows headers
|
||||||
|
|
||||||
|
//! wxWindows/contrib headers
|
||||||
|
#include <wx/stc/stc.h> // styled text control
|
||||||
|
|
||||||
|
//! application headers
|
||||||
|
|
||||||
|
|
||||||
|
//============================================================================
|
||||||
|
// declarations
|
||||||
|
//============================================================================
|
||||||
|
|
||||||
|
//! general style types
|
||||||
|
#define mySTC_TYPE_DEFAULT 0
|
||||||
|
|
||||||
|
#define mySTC_TYPE_WORD1 1
|
||||||
|
#define mySTC_TYPE_WORD2 2
|
||||||
|
#define mySTC_TYPE_WORD3 3
|
||||||
|
#define mySTC_TYPE_WORD4 4
|
||||||
|
#define mySTC_TYPE_WORD5 5
|
||||||
|
#define mySTC_TYPE_WORD6 6
|
||||||
|
|
||||||
|
#define mySTC_TYPE_COMMENT 7
|
||||||
|
#define mySTC_TYPE_COMMENT_DOC 8
|
||||||
|
#define mySTC_TYPE_COMMENT_LINE 9
|
||||||
|
#define mySTC_TYPE_COMMENT_SPECIAL 10
|
||||||
|
|
||||||
|
#define mySTC_TYPE_CHARACTER 11
|
||||||
|
#define mySTC_TYPE_CHARACTER_EOL 12
|
||||||
|
#define mySTC_TYPE_STRING 13
|
||||||
|
#define mySTC_TYPE_STRING_EOL 14
|
||||||
|
|
||||||
|
#define mySTC_TYPE_DELIMITER 15
|
||||||
|
|
||||||
|
#define mySTC_TYPE_PUNCTUATION 16
|
||||||
|
|
||||||
|
#define mySTC_TYPE_OPERATOR 17
|
||||||
|
|
||||||
|
#define mySTC_TYPE_BRACE 18
|
||||||
|
|
||||||
|
#define mySTC_TYPE_COMMAND 19
|
||||||
|
#define mySTC_TYPE_IDENTIFIER 20
|
||||||
|
#define mySTC_TYPE_LABEL 21
|
||||||
|
#define mySTC_TYPE_NUMBER 22
|
||||||
|
#define mySTC_TYPE_PARAMETER 23
|
||||||
|
#define mySTC_TYPE_REGEX 24
|
||||||
|
#define mySTC_TYPE_UUID 25
|
||||||
|
#define mySTC_TYPE_VALUE 26
|
||||||
|
|
||||||
|
#define mySTC_TYPE_PREPROCESSOR 27
|
||||||
|
#define mySTC_TYPE_SCRIPT 28
|
||||||
|
|
||||||
|
#define mySTC_TYPE_ERROR 29
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
//! style bits types
|
||||||
|
#define mySTC_STYLE_BOLD 1
|
||||||
|
#define mySTC_STYLE_ITALIC 2
|
||||||
|
#define mySTC_STYLE_UNDERL 4
|
||||||
|
#define mySTC_STYLE_HIDDEN 8
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
//! general folding types
|
||||||
|
#define mySTC_FOLD_COMMENT 1
|
||||||
|
#define mySTC_FOLD_COMPACT 2
|
||||||
|
#define mySTC_FOLD_PREPROC 4
|
||||||
|
|
||||||
|
#define mySTC_FOLD_HTML 16
|
||||||
|
#define mySTC_FOLD_HTMLPREP 32
|
||||||
|
|
||||||
|
#define mySTC_FOLD_COMMENTPY 64
|
||||||
|
#define mySTC_FOLD_QUOTESPY 128
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
//! flags
|
||||||
|
#define mySTC_FLAG_WRAPMODE 16
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
// CommonInfo
|
||||||
|
|
||||||
|
struct CommonInfo {
|
||||||
|
// editor functionality prefs
|
||||||
|
bool syntaxEnable;
|
||||||
|
bool foldEnable;
|
||||||
|
bool indentEnable;
|
||||||
|
// display defaults prefs
|
||||||
|
bool readOnlyInitial;
|
||||||
|
bool overTypeInitial;
|
||||||
|
bool wrapModeInitial;
|
||||||
|
bool displayEOLEnable;
|
||||||
|
bool indentGuideEnable;
|
||||||
|
bool lineNumberEnable;
|
||||||
|
bool longLineOnEnable;
|
||||||
|
bool whiteSpaceEnable;
|
||||||
|
};
|
||||||
|
extern const CommonInfo g_CommonPrefs;
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
// LanguageInfo
|
||||||
|
|
||||||
|
struct LanguageInfo {
|
||||||
|
wxChar *name;
|
||||||
|
wxChar *filepattern;
|
||||||
|
int lexer;
|
||||||
|
struct {
|
||||||
|
int type;
|
||||||
|
const wxChar *words;
|
||||||
|
} styles [STYLE_TYPES_COUNT];
|
||||||
|
int folds;
|
||||||
|
};
|
||||||
|
|
||||||
|
extern const LanguageInfo g_LanguagePrefs[];
|
||||||
|
extern const int g_LanguagePrefsSize;
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
// StyleInfo
|
||||||
|
struct StyleInfo {
|
||||||
|
wxChar *name;
|
||||||
|
wxChar *foreground;
|
||||||
|
wxChar *background;
|
||||||
|
wxChar *fontname;
|
||||||
|
int fontsize;
|
||||||
|
int fontstyle;
|
||||||
|
int lettercase;
|
||||||
|
};
|
||||||
|
|
||||||
|
extern const StyleInfo g_StylePrefs[];
|
||||||
|
extern const int g_StylePrefsSize;
|
||||||
|
|
||||||
|
#endif // _PREFS_H_
|
||||||
|
|
@@ -1,194 +1,662 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
// Name: stctest.cpp
|
// File: app.cpp
|
||||||
// Purpose: sample of using wxStyledTextCtrl
|
// Purpose: STC test application
|
||||||
// Author: Robin Dunn
|
// Maintainer: Otto Wyss
|
||||||
// Modified by:
|
// Created: 2003-09-01
|
||||||
// Created: 3-Feb-2000
|
|
||||||
// RCS-ID: $Id$
|
// RCS-ID: $Id$
|
||||||
// Copyright: (c) 2000 by Total Control Software
|
// Copyright: (c) wxGuide
|
||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#if defined(__GNUG__) && !defined(__APPLE__)
|
//----------------------------------------------------------------------------
|
||||||
#pragma implementation "stctest.cpp"
|
// headers
|
||||||
#pragma interface "stctest.cpp"
|
//----------------------------------------------------------------------------
|
||||||
#endif
|
|
||||||
|
|
||||||
// For compilers that support precompilation, includes "wx/wx.h".
|
// For compilers that support precompilation, includes <wx/wx.h>.
|
||||||
#include "wx/wxprec.h"
|
#include <wx/wxprec.h>
|
||||||
|
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// for all others, include the necessary headers (this file is usually all you
|
// for all others, include the necessary headers (this file is usually all you
|
||||||
// need because it includes almost all "standard" wxWindows headers
|
// need because it includes almost all 'standard' wxWindows headers)
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
#include "wx/wx.h"
|
#include <wx/wx.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <wx/wfstream.h>
|
//! wxWindows headers
|
||||||
|
#include <wx/config.h> // configuration support
|
||||||
|
#include <wx/filedlg.h> // file dialog support
|
||||||
|
#include <wx/filename.h> // filename support
|
||||||
|
#include <wx/notebook.h> // notebook support
|
||||||
|
#include <wx/settings.h> // system settings
|
||||||
|
#include <wx/string.h> // strings support
|
||||||
|
#include <wx/image.h> // images support
|
||||||
|
|
||||||
#include <wx/stc/stc.h>
|
//! application headers
|
||||||
|
#include "defsext.h" // Additional definitions
|
||||||
|
#include "edit.h" // Edit module
|
||||||
|
#include "prefs.h" // Prefs
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
|
||||||
|
|
||||||
class MyApp : public wxApp
|
//----------------------------------------------------------------------------
|
||||||
{
|
// resources
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
// the application icon (under Windows and OS/2 it is in resources)
|
||||||
|
#if defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__) || defined(__WXMGL__) || defined(__WXX11__)
|
||||||
|
#include "mondrian.xpm"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
//============================================================================
|
||||||
|
// declarations
|
||||||
|
//============================================================================
|
||||||
|
|
||||||
|
#define APP_NAME _T("STC-Test")
|
||||||
|
#define APP_DESCR _("See http://wxguide.sourceforge.net/")
|
||||||
|
|
||||||
|
#define APP_MAINT _T("Otto Wyss")
|
||||||
|
#define APP_VENDOR _T("wxWindows")
|
||||||
|
#define APP_COPYRIGTH _T("(C) 2003 Otto Wyss")
|
||||||
|
#define APP_LICENCE _T("wxWindows")
|
||||||
|
|
||||||
|
#define APP_VERSION _T("0.1.alpha")
|
||||||
|
#define APP_BUILD __DATE__
|
||||||
|
|
||||||
|
#define APP_WEBSITE _T("http://www.wxWindows.org")
|
||||||
|
#define APP_MAIL _T("mailto://???")
|
||||||
|
|
||||||
|
#define NONAME _("<untitled>")
|
||||||
|
|
||||||
|
class AppBook;
|
||||||
|
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
//! global application name
|
||||||
|
wxString *g_appname = NULL;
|
||||||
|
|
||||||
|
//! global print data, to remember settings during the session
|
||||||
|
wxPrintData *g_printData = (wxPrintData*) NULL;
|
||||||
|
wxPageSetupData *g_pageSetupData = (wxPageSetupData*) NULL;
|
||||||
|
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
//! application APP_VENDOR-APP_NAME.
|
||||||
|
class App: public wxApp {
|
||||||
|
friend class AppFrame;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual bool OnInit();
|
//! the main function called durning application start
|
||||||
};
|
virtual bool OnInit ();
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//! application exit function
|
||||||
|
virtual int OnExit ();
|
||||||
// Define a new frame type: this is going to be our main frame
|
|
||||||
class MyFrame : public wxFrame
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size);
|
|
||||||
|
|
||||||
void OnQuit(wxCommandEvent& event);
|
|
||||||
void OnAbout(wxCommandEvent& event);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
wxStyledTextCtrl* ed;
|
//! frame window
|
||||||
|
AppFrame* m_frame;
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
// created dynamically by wxWindows
|
||||||
|
DECLARE_APP (App);
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
//! frame of the application APP_VENDOR-APP_NAME.
|
||||||
|
class AppFrame: public wxFrame {
|
||||||
|
friend class App;
|
||||||
|
friend class AppBook;
|
||||||
|
friend class AppAbout;
|
||||||
|
|
||||||
|
public:
|
||||||
|
//! constructor
|
||||||
|
AppFrame (const wxString &title);
|
||||||
|
|
||||||
|
//! destructor
|
||||||
|
~AppFrame ();
|
||||||
|
|
||||||
|
//! event handlers
|
||||||
|
//! common
|
||||||
|
void OnClose (wxCloseEvent &event);
|
||||||
|
void OnAbout (wxCommandEvent &event);
|
||||||
|
void OnExit (wxCommandEvent &event);
|
||||||
|
void OnTimerEvent (wxTimerEvent &event);
|
||||||
|
//! file
|
||||||
|
void OnFileNew (wxCommandEvent &event);
|
||||||
|
void OnFileNewFrame (wxCommandEvent &event);
|
||||||
|
void OnFileOpen (wxCommandEvent &event);
|
||||||
|
void OnFileOpenFrame (wxCommandEvent &event);
|
||||||
|
void OnFileSave (wxCommandEvent &event);
|
||||||
|
void OnFileSaveAs (wxCommandEvent &event);
|
||||||
|
void OnFileClose (wxCommandEvent &event);
|
||||||
|
//! properties
|
||||||
|
void OnProperties (wxCommandEvent &event);
|
||||||
|
//! print
|
||||||
|
void OnPrintSetup (wxCommandEvent &event);
|
||||||
|
void OnPrintPreview (wxCommandEvent &event);
|
||||||
|
void OnPrint (wxCommandEvent &event);
|
||||||
|
//! edit events
|
||||||
|
void OnEdit (wxCommandEvent &event);
|
||||||
|
|
||||||
|
private:
|
||||||
|
// edit object
|
||||||
|
Edit *m_edit;
|
||||||
|
void FileOpen (wxString fname);
|
||||||
|
|
||||||
|
//! creates the application menu bar
|
||||||
|
wxMenuBar *m_menuBar;
|
||||||
|
void CreateMenu ();
|
||||||
|
|
||||||
|
// print preview position and size
|
||||||
|
wxRect DeterminePrintSize ();
|
||||||
|
|
||||||
|
DECLARE_EVENT_TABLE()
|
||||||
|
};
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
//! about box of the application APP_VENDOR-APP_NAME
|
||||||
|
class AppAbout: public wxDialog {
|
||||||
|
|
||||||
|
public:
|
||||||
|
//! constructor
|
||||||
|
AppAbout (wxWindow *parent,
|
||||||
|
int milliseconds = 0,
|
||||||
|
long style = 0);
|
||||||
|
|
||||||
|
//! destructor
|
||||||
|
~AppAbout ();
|
||||||
|
|
||||||
|
// event handlers
|
||||||
|
void OnTimerEvent (wxTimerEvent &event);
|
||||||
|
|
||||||
|
private:
|
||||||
|
// timer
|
||||||
|
wxTimer *m_timer;
|
||||||
|
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
// IDs for the controls and the menu commands
|
//============================================================================
|
||||||
enum
|
// implementation
|
||||||
{
|
//============================================================================
|
||||||
// menu items
|
|
||||||
ID_Quit = 1,
|
|
||||||
ID_About,
|
|
||||||
ID_ED
|
|
||||||
};
|
|
||||||
|
|
||||||
BEGIN_EVENT_TABLE(MyFrame, wxFrame)
|
IMPLEMENT_APP (App)
|
||||||
EVT_MENU (ID_Quit, MyFrame::OnQuit)
|
|
||||||
EVT_MENU (ID_About, MyFrame::OnAbout)
|
|
||||||
END_EVENT_TABLE()
|
|
||||||
|
|
||||||
IMPLEMENT_APP(MyApp)
|
//----------------------------------------------------------------------------
|
||||||
|
// App
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
bool App::OnInit () {
|
||||||
// `Main program' equivalent: the program execution "starts" here
|
|
||||||
|
|
||||||
bool MyApp::OnInit()
|
wxInitAllImageHandlers();
|
||||||
{
|
|
||||||
MyFrame *frame = new MyFrame("Testing wxStyledTextCtrl",
|
// set application and vendor name
|
||||||
wxPoint(5, 5), wxSize(400, 600));
|
SetAppName (APP_NAME);
|
||||||
|
SetVendorName (APP_VENDOR);
|
||||||
|
g_appname = new wxString ();
|
||||||
|
g_appname->Append (APP_VENDOR);
|
||||||
|
g_appname->Append (_T("-"));
|
||||||
|
g_appname->Append (APP_NAME);
|
||||||
|
|
||||||
frame->Show(TRUE);
|
// initialize print data and setup
|
||||||
return TRUE;
|
g_printData = new wxPrintData;
|
||||||
|
g_pageSetupData = new wxPageSetupDialogData;
|
||||||
|
|
||||||
|
// create application frame
|
||||||
|
m_frame = new AppFrame (*g_appname);
|
||||||
|
|
||||||
|
// open application frame
|
||||||
|
m_frame->Layout ();
|
||||||
|
m_frame->Show (true);
|
||||||
|
SetTopWindow (m_frame);
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
int App::OnExit () {
|
||||||
|
|
||||||
// frame constructor
|
// delete global appname
|
||||||
MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
|
delete g_appname;
|
||||||
: wxFrame((wxFrame *)NULL, -1, title, pos, size)
|
|
||||||
{
|
|
||||||
#ifdef __WXMAC__
|
|
||||||
// we need this in order to allow the about menu relocation, since ABOUT is
|
|
||||||
// not the default id of the about menu
|
|
||||||
wxApp::s_macAboutMenuItemId = ID_About;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
// delete global print data and setup
|
||||||
|
if (g_printData) delete g_printData;
|
||||||
|
if (g_pageSetupData) delete g_pageSetupData;
|
||||||
|
|
||||||
// create a menu bar
|
return 0;
|
||||||
wxMenu *menuFile = new wxMenu("", wxMENU_TEAROFF);
|
}
|
||||||
|
|
||||||
// the "About" item should be in the help menu
|
//----------------------------------------------------------------------------
|
||||||
wxMenu *helpMenu = new wxMenu;
|
// AppFrame
|
||||||
helpMenu->Append(ID_About, "&About...\tCtrl-A", "Show about dialog");
|
//----------------------------------------------------------------------------
|
||||||
|
|
||||||
menuFile->Append(ID_Quit, "E&xit\tAlt-X", "Quit this program");
|
BEGIN_EVENT_TABLE (AppFrame, wxFrame)
|
||||||
|
// common
|
||||||
|
EVT_CLOSE ( AppFrame::OnClose)
|
||||||
|
// file
|
||||||
|
EVT_MENU (wxID_OPEN, AppFrame::OnFileOpen)
|
||||||
|
EVT_MENU (wxID_SAVE, AppFrame::OnFileSave)
|
||||||
|
EVT_MENU (wxID_SAVEAS, AppFrame::OnFileSaveAs)
|
||||||
|
EVT_MENU (wxID_CLOSE, AppFrame::OnFileClose)
|
||||||
|
// properties
|
||||||
|
EVT_MENU (myID_PROPERTIES, AppFrame::OnProperties)
|
||||||
|
// print and exit
|
||||||
|
EVT_MENU (wxID_PRINT_SETUP, AppFrame::OnPrintSetup)
|
||||||
|
EVT_MENU (wxID_PREVIEW, AppFrame::OnPrintPreview)
|
||||||
|
EVT_MENU (wxID_PRINT, AppFrame::OnPrint)
|
||||||
|
EVT_MENU (wxID_EXIT, AppFrame::OnExit)
|
||||||
|
// edit
|
||||||
|
EVT_MENU (wxID_CLEAR, AppFrame::OnEdit)
|
||||||
|
EVT_MENU (wxID_CUT, AppFrame::OnEdit)
|
||||||
|
EVT_MENU (wxID_COPY, AppFrame::OnEdit)
|
||||||
|
EVT_MENU (wxID_PASTE, AppFrame::OnEdit)
|
||||||
|
EVT_MENU (myID_INDENTINC, AppFrame::OnEdit)
|
||||||
|
EVT_MENU (myID_INDENTRED, AppFrame::OnEdit)
|
||||||
|
EVT_MENU (wxID_SELECTALL, AppFrame::OnEdit)
|
||||||
|
EVT_MENU (myID_SELECTLINE, AppFrame::OnEdit)
|
||||||
|
EVT_MENU (wxID_REDO, AppFrame::OnEdit)
|
||||||
|
EVT_MENU (wxID_UNDO, AppFrame::OnEdit)
|
||||||
|
// find
|
||||||
|
EVT_MENU (wxID_FIND, AppFrame::OnEdit)
|
||||||
|
EVT_MENU (myID_FINDNEXT, AppFrame::OnEdit)
|
||||||
|
EVT_MENU (myID_REPLACE, AppFrame::OnEdit)
|
||||||
|
EVT_MENU (myID_REPLACENEXT, AppFrame::OnEdit)
|
||||||
|
EVT_MENU (myID_BRACEMATCH, AppFrame::OnEdit)
|
||||||
|
EVT_MENU (myID_GOTO, AppFrame::OnEdit)
|
||||||
|
// view
|
||||||
|
EVT_MENU_RANGE (myID_HILIGHTFIRST, myID_HILIGHTLAST,
|
||||||
|
AppFrame::OnEdit)
|
||||||
|
EVT_MENU (myID_DISPLAYEOL, AppFrame::OnEdit)
|
||||||
|
EVT_MENU (myID_INDENTGUIDE, AppFrame::OnEdit)
|
||||||
|
EVT_MENU (myID_LINENUMBER, AppFrame::OnEdit)
|
||||||
|
EVT_MENU (myID_LONGLINEON, AppFrame::OnEdit)
|
||||||
|
EVT_MENU (myID_WHITESPACE, AppFrame::OnEdit)
|
||||||
|
EVT_MENU (myID_FOLDTOGGLE, AppFrame::OnEdit)
|
||||||
|
EVT_MENU (myID_OVERTYPE, AppFrame::OnEdit)
|
||||||
|
EVT_MENU (myID_READONLY, AppFrame::OnEdit)
|
||||||
|
EVT_MENU (myID_WRAPMODEON, AppFrame::OnEdit)
|
||||||
|
// extra
|
||||||
|
EVT_MENU (myID_CHANGELOWER, AppFrame::OnEdit)
|
||||||
|
EVT_MENU (myID_CHANGEUPPER, AppFrame::OnEdit)
|
||||||
|
EVT_MENU (myID_CONVERTCR, AppFrame::OnEdit)
|
||||||
|
EVT_MENU (myID_CONVERTCRLF, AppFrame::OnEdit)
|
||||||
|
EVT_MENU (myID_CONVERTLF, AppFrame::OnEdit)
|
||||||
|
EVT_MENU (myID_CHARSETANSI, AppFrame::OnEdit)
|
||||||
|
EVT_MENU (myID_CHARSETMAC, AppFrame::OnEdit)
|
||||||
|
// help
|
||||||
|
EVT_MENU (wxID_ABOUT, AppFrame::OnAbout)
|
||||||
|
END_EVENT_TABLE ()
|
||||||
|
|
||||||
// now append the freshly created menu to the menu bar...
|
AppFrame::AppFrame (const wxString &title)
|
||||||
wxMenuBar *menuBar = new wxMenuBar();
|
: wxFrame ((wxFrame *)NULL, -1, title, wxDefaultPosition, wxDefaultSize,
|
||||||
menuBar->Append(menuFile, "&File");
|
wxDEFAULT_FRAME_STYLE | wxNO_FULL_REPAINT_ON_RESIZE) {
|
||||||
menuBar->Append(helpMenu, "&Help");
|
|
||||||
|
|
||||||
// ... and attach this menu bar to the frame
|
// intitialize important variables
|
||||||
SetMenuBar(menuBar);
|
m_edit = NULL;
|
||||||
|
|
||||||
#if wxUSE_STATUSBAR
|
// set icon and background
|
||||||
CreateStatusBar(2);
|
SetTitle (*g_appname);
|
||||||
SetStatusText("Testing wxStyledTextCtrl");
|
SetIcon (wxICON (mondrian));
|
||||||
#endif // wxUSE_STATUSBAR
|
SetBackgroundColour (_T("WHITE"));
|
||||||
|
|
||||||
|
// about box shown for 1 seconds
|
||||||
|
AppAbout (this, 1000);
|
||||||
|
|
||||||
//----------------------------------------
|
// create menu
|
||||||
// Setup the editor
|
m_menuBar = new wxMenuBar;
|
||||||
ed = new wxStyledTextCtrl(this, ID_ED);
|
CreateMenu ();
|
||||||
|
|
||||||
// Default font
|
// open first page
|
||||||
wxFont font(10, wxMODERN, wxNORMAL, wxNORMAL);
|
m_edit = new Edit (this, -1);
|
||||||
ed->StyleSetFont(wxSTC_STYLE_DEFAULT, font);
|
m_edit->SetFocus();
|
||||||
ed->StyleClearAll();
|
|
||||||
|
|
||||||
ed->StyleSetForeground(0, wxColour(0x80, 0x80, 0x80));
|
FileOpen (_T("stctest.cpp"));
|
||||||
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__
|
AppFrame::~AppFrame () {
|
||||||
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
|
// common event handlers
|
||||||
wxFile file("stctest.cpp");
|
void AppFrame::OnClose (wxCloseEvent &event) {
|
||||||
wxString st;
|
wxCommandEvent evt;
|
||||||
|
OnFileClose (evt);
|
||||||
|
if (m_edit && m_edit->Modified()) {
|
||||||
|
if (event.CanVeto()) event.Veto (true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
Destroy();
|
||||||
|
}
|
||||||
|
|
||||||
char* buff = st.GetWriteBuf(file.Length());
|
void AppFrame::OnAbout (wxCommandEvent &WXUNUSED(event)) {
|
||||||
file.Read(buff, file.Length());
|
AppAbout (this);
|
||||||
st.UngetWriteBuf();
|
}
|
||||||
|
|
||||||
ed->InsertText(0, st);
|
void AppFrame::OnExit (wxCommandEvent &WXUNUSED(event)) {
|
||||||
ed->EmptyUndoBuffer();
|
Close (true);
|
||||||
|
}
|
||||||
|
|
||||||
ed->SetLexer(wxSTC_LEX_CPP);
|
// file event handlers
|
||||||
ed->SetKeyWords(0,
|
void AppFrame::OnFileOpen (wxCommandEvent &WXUNUSED(event)) {
|
||||||
"asm auto bool break case catch char class const "
|
if (!m_edit) return;
|
||||||
"const_cast continue default delete do double "
|
wxString fname;
|
||||||
"dynamic_cast else enum explicit export extern "
|
wxFileDialog dlg (this, _T("Open file"), _T(""), _T(""), _T("Any file (*)|*"),
|
||||||
"false float for friend goto if inline int long "
|
wxOPEN | wxFILE_MUST_EXIST | wxCHANGE_DIR);
|
||||||
"mutable namespace new operator private protected "
|
if (dlg.ShowModal() != wxID_OK) return;
|
||||||
"public register reinterpret_cast return short signed "
|
fname = dlg.GetPath ();
|
||||||
"sizeof static static_cast struct switch template this "
|
FileOpen (fname);
|
||||||
"throw true try typedef typeid typename union unsigned "
|
}
|
||||||
"using virtual void volatile wchar_t while");
|
|
||||||
|
void AppFrame::OnFileSave (wxCommandEvent &WXUNUSED(event)) {
|
||||||
|
if (!m_edit) return;
|
||||||
|
if (!m_edit->Modified()) {
|
||||||
|
wxMessageBox (_("There is nothing to save!"), _("Save file"),
|
||||||
|
wxOK | wxICON_EXCLAMATION);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
m_edit->SaveFile ();
|
||||||
|
}
|
||||||
|
|
||||||
|
void AppFrame::OnFileSaveAs (wxCommandEvent &WXUNUSED(event)) {
|
||||||
|
if (!m_edit) return;
|
||||||
|
wxString filename = wxEmptyString;
|
||||||
|
wxFileDialog dlg (this, _T("Save file"), _T(""), _T(""), _T("Any file (*)|*"), wxSAVE|wxOVERWRITE_PROMPT);
|
||||||
|
if (dlg.ShowModal() != wxID_OK) return;
|
||||||
|
filename = dlg.GetPath();
|
||||||
|
m_edit->SaveFile (filename);
|
||||||
|
}
|
||||||
|
|
||||||
|
void AppFrame::OnFileClose (wxCommandEvent &WXUNUSED(event)) {
|
||||||
|
if (!m_edit) return;
|
||||||
|
if (m_edit->Modified()) {
|
||||||
|
if (wxMessageBox (_("Text is not saved, save before closing?"), _("Close"),
|
||||||
|
wxYES_NO | wxICON_QUESTION) == wxYES) {
|
||||||
|
m_edit->SaveFile();
|
||||||
|
if (m_edit->Modified()) {
|
||||||
|
wxMessageBox (_("Text could not be saved!"), _("Close abort"),
|
||||||
|
wxOK | wxICON_EXCLAMATION);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Destroy();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// properties event handlers
|
||||||
|
void AppFrame::OnProperties (wxCommandEvent &WXUNUSED(event)) {
|
||||||
|
if (!m_edit) return;
|
||||||
|
EditProperties (m_edit, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
// print event handlers
|
||||||
|
void AppFrame::OnPrintSetup (wxCommandEvent &WXUNUSED(event)) {
|
||||||
|
(*g_pageSetupData) = * g_printData;
|
||||||
|
wxPageSetupDialog pageSetupDialog(this, g_pageSetupData);
|
||||||
|
pageSetupDialog.ShowModal();
|
||||||
|
(*g_printData) = pageSetupDialog.GetPageSetupData().GetPrintData();
|
||||||
|
(*g_pageSetupData) = pageSetupDialog.GetPageSetupData();
|
||||||
|
}
|
||||||
|
|
||||||
|
void AppFrame::OnPrintPreview (wxCommandEvent &WXUNUSED(event)) {
|
||||||
|
wxPrintDialogData printDialogData( *g_printData);
|
||||||
|
wxPrintPreview *preview =
|
||||||
|
new wxPrintPreview (new EditPrint (m_edit),
|
||||||
|
new EditPrint (m_edit),
|
||||||
|
&printDialogData);
|
||||||
|
if (!preview->Ok()) {
|
||||||
|
delete preview;
|
||||||
|
wxMessageBox (_("There was a problem with previewing.\n\
|
||||||
|
Perhaps your current printer is not correctly?"),
|
||||||
|
_("Previewing"), wxOK);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
wxRect rect = DeterminePrintSize();
|
||||||
|
wxPreviewFrame *frame = new wxPreviewFrame (preview, this, _("Print Preview"));
|
||||||
|
frame->SetSize (rect);
|
||||||
|
frame->Centre(wxBOTH);
|
||||||
|
frame->Initialize();
|
||||||
|
frame->Show(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
void AppFrame::OnPrint (wxCommandEvent &WXUNUSED(event)) {
|
||||||
|
wxPrintDialogData printDialogData( *g_printData);
|
||||||
|
wxPrinter printer (&printDialogData);
|
||||||
|
EditPrint printout (m_edit);
|
||||||
|
if (!printer.Print (this, &printout, true)) {
|
||||||
|
if (wxPrinter::GetLastError() == wxPRINTER_ERROR) {
|
||||||
|
wxMessageBox (_("There was a problem with printing.\n\
|
||||||
|
Perhaps your current printer is not correctly?"),
|
||||||
|
_("Previewing"), wxOK);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
(*g_printData) = printer.GetPrintDialogData().GetPrintData();
|
||||||
|
}
|
||||||
|
|
||||||
|
// edit events
|
||||||
|
void AppFrame::OnEdit (wxCommandEvent &event) {
|
||||||
|
if (m_edit) m_edit->ProcessEvent (event);
|
||||||
|
}
|
||||||
|
|
||||||
|
// private functions
|
||||||
|
void AppFrame::CreateMenu () {
|
||||||
|
|
||||||
|
// File menu
|
||||||
|
wxMenu *menuFile = new wxMenu;
|
||||||
|
menuFile->Append (wxID_OPEN, _("&Open ..\tCtrl+O"));
|
||||||
|
menuFile->Append (wxID_SAVE, _("&Save\tCtrl+S"));
|
||||||
|
menuFile->Append (wxID_SAVEAS, _("Save &as ..\tCtrl+Shift+S"));
|
||||||
|
menuFile->Append (wxID_CLOSE, _("&Close\tCtrl+W"));
|
||||||
|
menuFile->AppendSeparator();
|
||||||
|
menuFile->Append (myID_PROPERTIES, _("Proper&ties ..\tCtrl+I"));
|
||||||
|
menuFile->AppendSeparator();
|
||||||
|
menuFile->Append (wxID_PRINT_SETUP, _("Print Set&up .."));
|
||||||
|
menuFile->Append (wxID_PREVIEW, _("Print Pre&view\tCtrl+Shift+P"));
|
||||||
|
menuFile->Append (wxID_PRINT, _("&Print ..\tCtrl+P"));
|
||||||
|
menuFile->AppendSeparator();
|
||||||
|
menuFile->Append (wxID_EXIT, _("&Quit\tCtrl+Q"));
|
||||||
|
|
||||||
|
// Edit menu
|
||||||
|
wxMenu *menuEdit = new wxMenu;
|
||||||
|
menuEdit->Append (wxID_UNDO, _("&Undo\tCtrl+Z"));
|
||||||
|
menuEdit->Append (wxID_REDO, _("&Redo\tCtrl+Shift+Z"));
|
||||||
|
menuEdit->AppendSeparator();
|
||||||
|
menuEdit->Append (wxID_CUT, _("Cu&t\tCtrl+X"));
|
||||||
|
menuEdit->Append (wxID_COPY, _("&Copy\tCtrl+C"));
|
||||||
|
menuEdit->Append (wxID_PASTE, _("&Paste\tCtrl+V"));
|
||||||
|
menuEdit->Append (wxID_CLEAR, _("&Delete\tDel"));
|
||||||
|
menuEdit->AppendSeparator();
|
||||||
|
menuEdit->Append (wxID_FIND, _("&Find\tCtrl+F"));
|
||||||
|
menuEdit->Enable (wxID_FIND, false);
|
||||||
|
menuEdit->Append (myID_FINDNEXT, _("Find &next\tF3"));
|
||||||
|
menuEdit->Enable (myID_FINDNEXT, false);
|
||||||
|
menuEdit->Append (myID_REPLACE, _("&Replace\tCtrl+H"));
|
||||||
|
menuEdit->Enable (myID_REPLACE, false);
|
||||||
|
menuEdit->Append (myID_REPLACENEXT, _("Replace &again\tShift+F4"));
|
||||||
|
menuEdit->Enable (myID_REPLACENEXT, false);
|
||||||
|
menuEdit->AppendSeparator();
|
||||||
|
menuEdit->Append (myID_BRACEMATCH, _("&Match brace\tCtrl+M"));
|
||||||
|
menuEdit->Append (myID_GOTO, _("&Goto\tCtrl+G"));
|
||||||
|
menuEdit->Enable (myID_GOTO, false);
|
||||||
|
menuEdit->AppendSeparator();
|
||||||
|
menuEdit->Append (myID_INDENTINC, _("&Indent increase\tTab"));
|
||||||
|
menuEdit->Append (myID_INDENTRED, _("I&ndent reduce\tBksp"));
|
||||||
|
menuEdit->AppendSeparator();
|
||||||
|
menuEdit->Append (wxID_SELECTALL, _("&Select all\tCtrl+A"));
|
||||||
|
menuEdit->Append (myID_SELECTLINE, _("Select &line\tCtrl+L"));
|
||||||
|
|
||||||
|
// hilight submenu
|
||||||
|
wxMenu *menuHilight = new wxMenu;
|
||||||
|
int Nr;
|
||||||
|
for (Nr = 0; Nr < g_LanguagePrefsSize; Nr++) {
|
||||||
|
menuHilight->Append (myID_HILIGHTFIRST + Nr,
|
||||||
|
g_LanguagePrefs [Nr].name);
|
||||||
|
}
|
||||||
|
|
||||||
|
// charset submenu
|
||||||
|
wxMenu *menuCharset = new wxMenu;
|
||||||
|
menuCharset->Append (myID_CHARSETANSI, _("&ANSI (Windows)"));
|
||||||
|
menuCharset->Append (myID_CHARSETMAC, _("&MAC (Macintosh)"));
|
||||||
|
|
||||||
|
// View menu
|
||||||
|
wxMenu *menuView = new wxMenu;
|
||||||
|
menuView->Append (myID_HILIGHTLANG, _("&Hilight language .."), menuHilight);
|
||||||
|
menuView->AppendSeparator();
|
||||||
|
menuView->AppendCheckItem (myID_FOLDTOGGLE, _("&Toggle current fold\tCtrl+T"));
|
||||||
|
menuView->AppendCheckItem (myID_OVERTYPE, _("&Overwrite mode\tIns"));
|
||||||
|
menuView->AppendCheckItem (myID_WRAPMODEON, _("&Wrap mode\tCtrl+U"));
|
||||||
|
menuView->AppendSeparator();
|
||||||
|
menuView->AppendCheckItem (myID_DISPLAYEOL, _("Show line &endings"));
|
||||||
|
menuView->AppendCheckItem (myID_INDENTGUIDE, _("Show &indent guides"));
|
||||||
|
menuView->AppendCheckItem (myID_LINENUMBER, _("Show line &numbers"));
|
||||||
|
menuView->AppendCheckItem (myID_LONGLINEON, _("Show &long line marker"));
|
||||||
|
menuView->AppendCheckItem (myID_WHITESPACE, _("Show white&space"));
|
||||||
|
menuView->AppendSeparator();
|
||||||
|
menuView->Append (myID_USECHARSET, _("Use &code page of .."), menuCharset);
|
||||||
|
|
||||||
|
// change case submenu
|
||||||
|
wxMenu *menuChangeCase = new wxMenu;
|
||||||
|
menuChangeCase->Append (myID_CHANGEUPPER, _("&Upper case"));
|
||||||
|
menuChangeCase->Append (myID_CHANGELOWER, _("&Lower case"));
|
||||||
|
|
||||||
|
// convert EOL submenu
|
||||||
|
wxMenu *menuConvertEOL = new wxMenu;
|
||||||
|
menuConvertEOL->Append (myID_CONVERTCR, _("CR (&Linux)"));
|
||||||
|
menuConvertEOL->Append (myID_CONVERTCRLF, _("CR+LF (&Windows)"));
|
||||||
|
menuConvertEOL->Append (myID_CONVERTLF, _("LF (&Macintosh)"));
|
||||||
|
|
||||||
|
// Extra menu
|
||||||
|
wxMenu *menuExtra = new wxMenu;
|
||||||
|
menuExtra->AppendCheckItem (myID_READONLY, _("&Readonly mode"));
|
||||||
|
menuExtra->AppendSeparator();
|
||||||
|
menuExtra->Append (myID_CHANGECASE, _("Change &case to .."), menuChangeCase);
|
||||||
|
menuExtra->AppendSeparator();
|
||||||
|
menuExtra->Append (myID_CONVERTEOL, _("Convert line &endings to .."), menuConvertEOL);
|
||||||
|
|
||||||
|
// Window menu
|
||||||
|
wxMenu *menuWindow = new wxMenu;
|
||||||
|
menuWindow->Append (myID_PAGEPREV, _("&Previous\tCtrl+Shift+Tab"));
|
||||||
|
menuWindow->Append (myID_PAGENEXT, _("&Next\tCtrl+Tab"));
|
||||||
|
|
||||||
|
// Help menu
|
||||||
|
wxMenu *menuHelp = new wxMenu;
|
||||||
|
menuHelp->Append (wxID_ABOUT, _("&About ..\tShift+F1"));
|
||||||
|
|
||||||
|
// construct menu
|
||||||
|
m_menuBar->Append (menuFile, _("&File"));
|
||||||
|
m_menuBar->Append (menuEdit, _("&Edit"));
|
||||||
|
m_menuBar->Append (menuView, _("&View"));
|
||||||
|
m_menuBar->Append (menuExtra, _("E&xtra"));
|
||||||
|
m_menuBar->Append (menuWindow, _("&Window"));
|
||||||
|
m_menuBar->Append (menuHelp, _("&Help"));
|
||||||
|
SetMenuBar (m_menuBar);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void AppFrame::FileOpen (wxString fname) {
|
||||||
|
wxFileName w(fname); w.Normalize(); fname = w.GetFullPath();
|
||||||
|
m_edit->LoadFile (fname);
|
||||||
|
}
|
||||||
|
|
||||||
|
wxRect AppFrame::DeterminePrintSize () {
|
||||||
|
|
||||||
|
wxSize scr = wxGetDisplaySize();
|
||||||
|
|
||||||
|
// determine position and size (shifting 16 left and down)
|
||||||
|
wxRect rect = GetRect();
|
||||||
|
rect.x += 16;
|
||||||
|
rect.y += 16;
|
||||||
|
rect.width = wxMin (rect.width, (scr.x - rect.x));
|
||||||
|
rect.height = wxMin (rect.height, (scr.x - rect.y));
|
||||||
|
|
||||||
|
return rect;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
// AppAbout
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
BEGIN_EVENT_TABLE (AppAbout, wxDialog)
|
||||||
|
EVT_TIMER (myID_ABOUTTIMER, AppAbout::OnTimerEvent)
|
||||||
|
END_EVENT_TABLE ()
|
||||||
|
|
||||||
|
AppAbout::AppAbout (wxWindow *parent,
|
||||||
|
int milliseconds,
|
||||||
|
long style)
|
||||||
|
: wxDialog (parent, -1, wxEmptyString,
|
||||||
|
wxDefaultPosition, wxDefaultSize,
|
||||||
|
style | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER) {
|
||||||
|
|
||||||
|
// set timer if any
|
||||||
|
m_timer = NULL;
|
||||||
|
if (milliseconds > 0) {
|
||||||
|
m_timer = new wxTimer (this, myID_ABOUTTIMER);
|
||||||
|
m_timer->Start (milliseconds, wxTIMER_ONE_SHOT);
|
||||||
|
}
|
||||||
|
|
||||||
|
// sets the application title
|
||||||
|
SetTitle (_("About .."));
|
||||||
|
|
||||||
|
// about info
|
||||||
|
wxGridSizer *aboutinfo = new wxGridSizer (2, 0, 2);
|
||||||
|
aboutinfo->Add (new wxStaticText(this, -1, _("Written by: ")),
|
||||||
|
0, wxALIGN_LEFT);
|
||||||
|
aboutinfo->Add (new wxStaticText(this, -1, APP_MAINT),
|
||||||
|
1, wxEXPAND | wxALIGN_LEFT);
|
||||||
|
aboutinfo->Add (new wxStaticText(this, -1, _("Version: ")),
|
||||||
|
0, wxALIGN_LEFT);
|
||||||
|
aboutinfo->Add (new wxStaticText(this, -1, APP_VERSION),
|
||||||
|
1, wxEXPAND | wxALIGN_LEFT);
|
||||||
|
aboutinfo->Add (new wxStaticText(this, -1, _("Licence type: ")),
|
||||||
|
0, wxALIGN_LEFT);
|
||||||
|
aboutinfo->Add (new wxStaticText(this, -1, APP_LICENCE),
|
||||||
|
1, wxEXPAND | wxALIGN_LEFT);
|
||||||
|
aboutinfo->Add (new wxStaticText(this, -1, _("Copyright: ")),
|
||||||
|
0, wxALIGN_LEFT);
|
||||||
|
aboutinfo->Add (new wxStaticText(this, -1, APP_COPYRIGTH),
|
||||||
|
1, wxEXPAND | wxALIGN_LEFT);
|
||||||
|
|
||||||
|
// about icontitle//info
|
||||||
|
wxBoxSizer *aboutpane = new wxBoxSizer (wxHORIZONTAL);
|
||||||
|
wxBitmap bitmap = wxBitmap(wxICON (mondrian));
|
||||||
|
aboutpane->Add (new wxStaticBitmap (this, -1, bitmap),
|
||||||
|
0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 20);
|
||||||
|
aboutpane->Add (aboutinfo, 1, wxEXPAND);
|
||||||
|
aboutpane->Add (60, 0);
|
||||||
|
|
||||||
|
// about complete
|
||||||
|
wxBoxSizer *totalpane = new wxBoxSizer (wxVERTICAL);
|
||||||
|
totalpane->Add (0, 20);
|
||||||
|
wxStaticText *appname = new wxStaticText(this, -1, *g_appname);
|
||||||
|
appname->SetFont (wxFont (24, wxDEFAULT, wxNORMAL, wxBOLD));
|
||||||
|
totalpane->Add (appname, 0, wxALIGN_CENTER | wxLEFT | wxRIGHT, 40);
|
||||||
|
totalpane->Add (0, 10);
|
||||||
|
totalpane->Add (aboutpane, 0, wxEXPAND | wxALL, 4);
|
||||||
|
totalpane->Add (new wxStaticText(this, -1, APP_DESCR),
|
||||||
|
0, wxALIGN_CENTER | wxALL, 10);
|
||||||
|
wxButton *okButton = new wxButton (this, wxID_OK, _("OK"));
|
||||||
|
okButton->SetDefault();
|
||||||
|
totalpane->Add (okButton, 0, wxALIGN_CENTER | wxLEFT | wxRIGHT | wxBOTTOM, 10);
|
||||||
|
|
||||||
|
SetSizerAndFit (totalpane);
|
||||||
|
|
||||||
|
CenterOnScreen();
|
||||||
|
ShowModal();
|
||||||
|
}
|
||||||
|
|
||||||
|
AppAbout::~AppAbout () {
|
||||||
|
if (m_timer) {
|
||||||
|
delete m_timer;
|
||||||
|
m_timer = NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
// event handlers
|
// event handlers
|
||||||
|
void AppAbout::OnTimerEvent (wxTimerEvent &WXUNUSED(event)) {
|
||||||
void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
|
if (m_timer) delete m_timer;
|
||||||
{
|
m_timer = NULL;
|
||||||
// TRUE is to force the frame to close
|
EndModal (wxID_OK);
|
||||||
Close(TRUE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
|
|
||||||
{
|
|
||||||
wxString msg;
|
|
||||||
msg.Printf( _T("Testing wxStyledTextCtrl...\n"));
|
|
||||||
|
|
||||||
wxMessageBox(msg, "About This Test", wxOK | wxICON_INFORMATION, this);
|
|
||||||
}
|
|
||||||
|
@@ -1 +1,5 @@
|
|||||||
|
mondrian ICON "mondrian.ico"
|
||||||
#include "wx/msw/wx.rc"
|
#include "wx/msw/wx.rc"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
6
contrib/samples/svg/makefile.sc
Normal file
6
contrib/samples/svg/makefile.sc
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#Digital Mars (was Symantec) C++ makefile
|
||||||
|
WXDIR = ..\..\..
|
||||||
|
EXTRALIBS=dcsvg_sc
|
||||||
|
TARGET=svgtest
|
||||||
|
OBJECTS = $(TARGET).obj
|
||||||
|
include $(WXDIR)\src\makeprog.sc
|
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
|
||||||
|
|
||||||
|
|
11
contrib/samples/svg/svgtest.rc
Normal file
11
contrib/samples/svg/svgtest.rc
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
aaaa ICON "mondrian.ico"
|
||||||
|
|
||||||
|
/* Useful if PROVIDE_DEFAULT_ICONS is set in wx_setup.h */
|
||||||
|
#define IHaveMDIParentIcon
|
||||||
|
#define IHaveMDIChildIcon
|
||||||
|
|
||||||
|
mondrian ICON "mondrian.ico"
|
||||||
|
|
||||||
|
#include "wx/msw/wx.rc"
|
||||||
|
|
||||||
|
svgbitmap BITMAP "SVGlogo24.bmp"
|
@@ -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
|
||||||
|
|
||||||
|
@@ -130,7 +130,7 @@
|
|||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="notebookpage">
|
<object class="notebookpage">
|
||||||
<label>wxCheckList</label>
|
<label>wxCheckListBox</label>
|
||||||
<object class="wxPanel" name="checklist">
|
<object class="wxPanel" name="checklist">
|
||||||
<object class="wxFlexGridSizer">
|
<object class="wxFlexGridSizer">
|
||||||
<cols>1</cols>
|
<cols>1</cols>
|
||||||
@@ -142,7 +142,7 @@
|
|||||||
<object class="sizeritem">
|
<object class="sizeritem">
|
||||||
<flag>wxALIGN_CENTRE|wxALL</flag>
|
<flag>wxALIGN_CENTRE|wxALL</flag>
|
||||||
<border>5</border>
|
<border>5</border>
|
||||||
<object class="wxCheckList" name="conrols_checklist">
|
<object class="wxCheckListBox" name="conrols_checklist">
|
||||||
<size>180,180</size>
|
<size>180,180</size>
|
||||||
<content>
|
<content>
|
||||||
<item checked="1">Download library</item>
|
<item checked="1">Download library</item>
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
CONTRIB_SUBDIRS=canvas fl gizmos mmedia net ogl plot stc svg xrc #applet
|
CONTRIB_SUBDIRS=canvas fl gizmos mmedia net ogl plot stc svg xrc animate #applet
|
||||||
|
|
||||||
all:
|
all:
|
||||||
@for d in $(CONTRIB_SUBDIRS); do (cd $$d && $(MAKE)); done
|
@for d in $(CONTRIB_SUBDIRS); do (cd $$d && $(MAKE)); done
|
||||||
|
@@ -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)
|
||||||
@@ -311,7 +314,7 @@ void wxRemotelyScrolledTreeCtrl::AdjustRemoteScrollbars()
|
|||||||
if (scrolledWindow)
|
if (scrolledWindow)
|
||||||
{
|
{
|
||||||
wxRect itemRect;
|
wxRect itemRect;
|
||||||
if (GetBoundingRect(GetRootItem(), itemRect))
|
if (GetBoundingRect(GetFirstVisibleItem(), itemRect))
|
||||||
{
|
{
|
||||||
// Actually, the real height seems to be 1 less than reported
|
// Actually, the real height seems to be 1 less than reported
|
||||||
// (e.g. 16 instead of 16)
|
// (e.g. 16 instead of 16)
|
||||||
|
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
@@ -141,16 +141,21 @@ bool wxMapiSession::Logon(const wxString& sProfileName, const wxString& sPasswor
|
|||||||
|
|
||||||
//Setup the ascii versions of the profile name and password
|
//Setup the ascii versions of the profile name and password
|
||||||
int nProfileLength = sProfileName.Length();
|
int nProfileLength = sProfileName.Length();
|
||||||
int nPasswordLength = sPassword.Length();
|
|
||||||
|
|
||||||
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);
|
#ifndef UNICODE
|
||||||
// pszPassword = T2A((LPTSTR) (LPCTSTR) sPassword);
|
|
||||||
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
|
||||||
@@ -189,7 +194,7 @@ bool wxMapiSession::Logon(const wxString& sProfileName, const wxString& sPasswor
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
wxLogDebug(_T("Failed to logon to MAPI using a shared session, Error:%d\n"), nError);
|
wxLogDebug(_T("Failed to logon to MAPI using a shared session, Error:%ld\n"), nError);
|
||||||
m_data->m_nLastError = nError;
|
m_data->m_nLastError = nError;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -226,7 +231,7 @@ bool wxMapiSession::Logoff()
|
|||||||
ULONG nError = m_data->m_lpfnMAPILogoff(m_data->m_hSession, 0, 0, 0);
|
ULONG nError = m_data->m_lpfnMAPILogoff(m_data->m_hSession, 0, 0, 0);
|
||||||
if (nError != SUCCESS_SUCCESS)
|
if (nError != SUCCESS_SUCCESS)
|
||||||
{
|
{
|
||||||
wxLogDebug(_T("Failed in call to MapiLogoff, Error:%d"), nError);
|
wxLogDebug(_T("Failed in call to MapiLogoff, Error:%ld"), nError);
|
||||||
m_data->m_nLastError = nError;
|
m_data->m_nLastError = nError;
|
||||||
bSuccess = TRUE;
|
bSuccess = TRUE;
|
||||||
}
|
}
|
||||||
@@ -251,12 +256,18 @@ bool wxMapiSession::Resolve(const wxString& sName, void* lppRecip1)
|
|||||||
wxASSERT(m_data->m_hSession); //MAPI session handle must be valid
|
wxASSERT(m_data->m_hSession); //MAPI session handle must be valid
|
||||||
|
|
||||||
//Call the MAPIResolveName function
|
//Call the MAPIResolveName function
|
||||||
// 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)
|
||||||
{
|
{
|
||||||
wxLogDebug(_T("Failed to resolve the name: %s, Error:%d\n"), sName, nError);
|
wxLogDebug(_T("Failed to resolve the name: %s, Error:%ld\n"),
|
||||||
|
sName.c_str(), nError);
|
||||||
m_data->m_nLastError = nError;
|
m_data->m_nLastError = nError;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -277,10 +288,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();
|
||||||
// mapiMessage.lpszSubject = T2A((LPTSTR) (LPCTSTR) message.m_subject);
|
#else
|
||||||
// mapiMessage.lpszNoteText = T2A((LPTSTR) (LPCTSTR) message.m_body);
|
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.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();
|
||||||
wxASSERT(mapiMessage.nRecipCount); //Must have at least 1 recipient!
|
wxASSERT(mapiMessage.nRecipCount); //Must have at least 1 recipient!
|
||||||
|
|
||||||
@@ -295,13 +312,19 @@ 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
|
||||||
int nRecipIndex = 0;
|
int nRecipIndex = 0;
|
||||||
int nToSize = message.m_to.GetCount();
|
int nToSize = message.m_to.GetCount();
|
||||||
for (int i=0; i<nToSize; i++)
|
int i;
|
||||||
|
for (i=0; i<nToSize; i++)
|
||||||
{
|
{
|
||||||
MapiRecipDesc& recip = mapiMessage.lpRecips[nRecipIndex];
|
MapiRecipDesc& recip = mapiMessage.lpRecips[nRecipIndex];
|
||||||
ZeroMemory(&recip, sizeof(MapiRecipDesc));
|
ZeroMemory(&recip, sizeof(MapiRecipDesc));
|
||||||
@@ -313,13 +336,16 @@ 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);
|
#ifndef UNICODE
|
||||||
recip.lpszName = (LPSTR) sName.c_str();
|
recip.lpszName = (LPSTR) sName.c_str();
|
||||||
|
#else
|
||||||
|
recip.lpszName = sName.mb_str().release();
|
||||||
|
#endif
|
||||||
|
|
||||||
++nRecipIndex;
|
++nRecipIndex;
|
||||||
}
|
}
|
||||||
@@ -338,13 +364,16 @@ 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);
|
#ifndef UNICODE
|
||||||
recip.lpszName = (LPSTR) sName.c_str();
|
recip.lpszName = (LPSTR) sName.c_str();
|
||||||
|
#else
|
||||||
|
recip.lpszName = sName.mb_str().release();
|
||||||
|
#endif
|
||||||
|
|
||||||
++nRecipIndex;
|
++nRecipIndex;
|
||||||
}
|
}
|
||||||
@@ -363,13 +392,16 @@ 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);
|
#ifndef UNICODE
|
||||||
recip.lpszName = (LPSTR) sName.c_str();
|
recip.lpszName = (LPSTR) sName.c_str();
|
||||||
|
#else
|
||||||
|
recip.lpszName = sName.mb_str().release();
|
||||||
|
#endif
|
||||||
|
|
||||||
++nRecipIndex;
|
++nRecipIndex;
|
||||||
}
|
}
|
||||||
@@ -392,17 +424,23 @@ bool wxMapiSession::Send(wxMailMessage& message)
|
|||||||
ZeroMemory(&file, sizeof(MapiFileDesc));
|
ZeroMemory(&file, sizeof(MapiFileDesc));
|
||||||
file.nPosition = 0xFFFFFFFF;
|
file.nPosition = 0xFFFFFFFF;
|
||||||
wxString& sFilename = message.m_attachments[i];
|
wxString& sFilename = message.m_attachments[i];
|
||||||
//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;
|
||||||
|
|
||||||
if (nTitleSize && !message.m_attachmentTitles[i].IsEmpty())
|
if (nTitleSize && !message.m_attachmentTitles[i].IsEmpty())
|
||||||
{
|
{
|
||||||
wxString& sTitle = message.m_attachmentTitles[i];
|
wxString& sTitle = message.m_attachmentTitles[i];
|
||||||
//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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -416,16 +454,30 @@ bool wxMapiSession::Send(wxMailMessage& message)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
wxLogDebug(_T("Failed to send mail message, Error:%d\n"), nError);
|
wxLogDebug(_T("Failed to send mail message, Error:%ld\n"), nError);
|
||||||
m_data->m_nLastError = nError;
|
m_data->m_nLastError = nError;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Tidy up the Attachements
|
//Tidy up the Attachements
|
||||||
if (nAttachmentSize)
|
if (nAttachmentSize)
|
||||||
|
{
|
||||||
|
#ifdef UNICODE
|
||||||
|
for (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 (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;
|
||||||
@@ -435,4 +487,3 @@ long wxMapiSession::GetLastError() const
|
|||||||
{
|
{
|
||||||
return m_data->m_nLastError;
|
return m_data->m_nLastError;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -18,7 +18,7 @@ HEADERS=basic.h basicp.h bmpshape.h canvas.h composit.h constrnt.h \
|
|||||||
divided.h drawn.h drawnp.h lines.h linesp.h mfutils.h misc.h \
|
divided.h drawn.h drawnp.h lines.h linesp.h mfutils.h misc.h \
|
||||||
ogl.h ogldiag.h
|
ogl.h ogldiag.h
|
||||||
|
|
||||||
OBJECTS=basic.o bmpshape.o composit.o divided.o lines.o misc.o \
|
OBJECTS=basic.o bmpshape.o composit.o divided.o lines.o oglmisc.o \
|
||||||
basic2.o canvas.o constrnt.o drawn.o mfutils.o ogldiag.o
|
basic2.o canvas.o constrnt.o drawn.o mfutils.o ogldiag.o
|
||||||
DEPFILES=$(OBJECTS:.o=.d)
|
DEPFILES=$(OBJECTS:.o=.d)
|
||||||
|
|
||||||
|
@@ -124,11 +124,11 @@ SOURCE=.\mfutils.cpp
|
|||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\misc.cpp
|
SOURCE=.\ogldiag.cpp
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\ogldiag.cpp
|
SOURCE=.\oglmisc.cpp
|
||||||
# End Source File
|
# End Source File
|
||||||
# End Target
|
# End Target
|
||||||
# End Project
|
# End Project
|
||||||
|
@@ -507,22 +507,23 @@ bool wxLineShape::HitTest(double x, double y, int *attachment, double *distance)
|
|||||||
wxRealPoint *point1 = (wxRealPoint *)node->Data();
|
wxRealPoint *point1 = (wxRealPoint *)node->Data();
|
||||||
wxRealPoint *point2 = (wxRealPoint *)node->Next()->Data();
|
wxRealPoint *point2 = (wxRealPoint *)node->Next()->Data();
|
||||||
|
|
||||||
// Allow for inaccurate mousing or vert/horiz lines
|
// For inaccurate mousing allow 8 pixel corridor
|
||||||
int extra = 4;
|
int extra = 4;
|
||||||
double left = wxMin(point1->x, point2->x) - extra;
|
|
||||||
double right = wxMax(point1->x, point2->x) + extra;
|
|
||||||
|
|
||||||
double bottom = wxMin(point1->y, point2->y) - extra;
|
double dx = point2->x - point1->x;
|
||||||
double top = wxMax(point1->y, point2->y) + extra;
|
double dy = point2->y - point1->y;
|
||||||
|
double seg_len = sqrt(dx*dx+dy*dy);
|
||||||
if ((x > left && x < right && y > bottom && y < top) || inLabelRegion)
|
double distance_from_seg =
|
||||||
|
seg_len*((x-point1->x)*dy-(y-point1->y)*dx)/(dy*dy+dx*dx);
|
||||||
|
double distance_from_prev =
|
||||||
|
seg_len*((y-point1->y)*dy+(x-point1->x)*dx)/(dy*dy+dx*dx);
|
||||||
|
|
||||||
|
if ((fabs(distance_from_seg) < extra &&
|
||||||
|
distance_from_prev >= 0 && distance_from_prev <= seg_len)
|
||||||
|
|| inLabelRegion)
|
||||||
{
|
{
|
||||||
// Work out distance from centre of line
|
|
||||||
double centre_x = (double)(left + (right - left)/2.0);
|
|
||||||
double centre_y = (double)(bottom + (top - bottom)/2.0);
|
|
||||||
|
|
||||||
*attachment = 0;
|
*attachment = 0;
|
||||||
*distance = (double)sqrt((centre_x - x)*(centre_x - x) + (centre_y - y)*(centre_y - y));
|
*distance = distance_from_seg;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2334,7 +2335,7 @@ wxRealPoint *wxLineShape::GetNextControlPoint(wxShape *nodeObject)
|
|||||||
return (wxRealPoint *)node->Data();
|
return (wxRealPoint *)node->Data();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return FALSE;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -11,7 +11,7 @@ WXDIR = $(WXWIN)
|
|||||||
|
|
||||||
LIBTARGET=$(WXDIR)\lib\ogl.lib
|
LIBTARGET=$(WXDIR)\lib\ogl.lib
|
||||||
|
|
||||||
OBJECTS = basic.obj basic2.obj canvas.obj ogldiag.obj lines.obj misc.obj divided.obj constrnt.obj\
|
OBJECTS = basic.obj basic2.obj canvas.obj ogldiag.obj lines.obj oglmisc.obj divided.obj constrnt.obj\
|
||||||
composit.obj drawn.obj bmpshape.obj mfutils.obj
|
composit.obj drawn.obj bmpshape.obj mfutils.obj
|
||||||
|
|
||||||
!include $(WXDIR)\src\makelib.b32
|
!include $(WXDIR)\src\makelib.b32
|
||||||
|
@@ -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
|
|
||||||
|
|
@@ -27,7 +27,7 @@ INC = /I$(WXDIR)\include /I$(WXDIR)\contrib\include
|
|||||||
# to disable PROLOGIO-dependent code
|
# to disable PROLOGIO-dependent code
|
||||||
OPTIONS = -DPROLOGIO
|
OPTIONS = -DPROLOGIO
|
||||||
|
|
||||||
OBJECTS = basic.obj basic2.obj canvas.obj ogldiag.obj lines.obj misc.obj divided.obj constrnt.obj\
|
OBJECTS = basic.obj basic2.obj canvas.obj ogldiag.obj lines.obj oglmisc.obj divided.obj constrnt.obj\
|
||||||
composit.obj drawn.obj bitmap.obj mfutils.obj
|
composit.obj drawn.obj bitmap.obj mfutils.obj
|
||||||
|
|
||||||
all: $(GRAPHICSLIB)
|
all: $(GRAPHICSLIB)
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
WXDIR = ../../..
|
WXDIR = ../../..
|
||||||
|
|
||||||
LIBTARGET=$(WXDIR)/lib/libogl.a
|
LIBTARGET=$(WXDIR)/lib/libogl.a
|
||||||
OBJECTS = basic.o basic2.o canvas.o ogldiag.o lines.o misc.o divided.o constrnt.o\
|
OBJECTS = basic.o basic2.o canvas.o ogldiag.o lines.o oglmisc.o divided.o constrnt.o\
|
||||||
composit.o drawn.o bmpshape.o mfutils.o
|
composit.o drawn.o bmpshape.o mfutils.o
|
||||||
|
|
||||||
include $(WXDIR)/src/makelib.g95
|
include $(WXDIR)/src/makelib.g95
|
||||||
|
@@ -19,7 +19,7 @@ LIB_CPP_SRC=\
|
|||||||
canvas.o\
|
canvas.o\
|
||||||
ogldiag.o\
|
ogldiag.o\
|
||||||
lines.o\
|
lines.o\
|
||||||
misc.o\
|
oglmisc.o\
|
||||||
divided.o\
|
divided.o\
|
||||||
constrnt.o\
|
constrnt.o\
|
||||||
composit.o\
|
composit.o\
|
||||||
|
@@ -25,7 +25,7 @@ DOCSOURCEDIR=$(WXDIR)\contrib\docs\latex\ogl
|
|||||||
|
|
||||||
PROGRAM=test
|
PROGRAM=test
|
||||||
|
|
||||||
OBJECTS = $(D)\basic.obj $(D)\basic2.obj $(D)\canvas.obj $(D)\ogldiag.obj $(D)\lines.obj $(D)\misc.obj $(D)\divided.obj $(D)\constrnt.obj\
|
OBJECTS = $(D)\basic.obj $(D)\basic2.obj $(D)\canvas.obj $(D)\ogldiag.obj $(D)\lines.obj $(D)\oglmisc.obj $(D)\divided.obj $(D)\constrnt.obj\
|
||||||
$(D)\composit.obj $(D)\drawn.obj $(D)\bmpshape.obj $(D)\mfutils.obj
|
$(D)\composit.obj $(D)\drawn.obj $(D)\bmpshape.obj $(D)\mfutils.obj
|
||||||
|
|
||||||
LIBTARGET=$(WXDIR)\lib\ogl$(LIBEXT).lib
|
LIBTARGET=$(WXDIR)\lib\ogl$(LIBEXT).lib
|
||||||
@@ -82,7 +82,7 @@ $(D)\lines.obj: lines.$(SRCSUFF) $(OGLINC)/basic.h $(OGLINC)/misc.h $(OGLIN
|
|||||||
$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
|
$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
|
||||||
<<
|
<<
|
||||||
|
|
||||||
$(D)\misc.obj: misc.$(SRCSUFF) $(OGLINC)/basic.h $(OGLINC)/misc.h $(OGLINC)/constrnt.h $(OGLINC)/basicp.h
|
$(D)\oglmisc.obj: oglmisc.$(SRCSUFF) $(OGLINC)/basic.h $(OGLINC)/misc.h $(OGLINC)/constrnt.h $(OGLINC)/basicp.h
|
||||||
cl @<<
|
cl @<<
|
||||||
$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
|
$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
|
||||||
<<
|
<<
|
||||||
|
@@ -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
|
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user