Compare commits
1 Commits
v2.3.2
...
wxPy_2_3_2
Author | SHA1 | Date | |
---|---|---|---|
|
12c8593175 |
@@ -25,10 +25,6 @@ Release
|
|||||||
Debug
|
Debug
|
||||||
ReleaseDLL
|
ReleaseDLL
|
||||||
DebugDLL
|
DebugDLL
|
||||||
UnivRelease
|
|
||||||
UnivDebug
|
|
||||||
BaseRelease
|
|
||||||
BaseDebug
|
|
||||||
robert
|
robert
|
||||||
stamp-h.in
|
stamp-h.in
|
||||||
Makefile
|
Makefile
|
||||||
|
52
BuildCVS.txt
52
BuildCVS.txt
@@ -125,15 +125,11 @@ Refer to the readme.txt and install.txt files in docs/mac to build
|
|||||||
wxWindows under Classic Mac OS using CodeWarrior.
|
wxWindows under Classic Mac OS using CodeWarrior.
|
||||||
|
|
||||||
If you are checking out the CVS sources using cvs under Mac OS X and
|
If you are checking out the CVS sources using cvs under Mac OS X and
|
||||||
compiling under Classic Mac OS:
|
compiling under Classic Mac OS, make sure that all text files have a
|
||||||
|
Mac OS type of 'TEXT' otherwise CodeWarrior may ignore them. Checking
|
||||||
- make sure that all text files have a Mac OS type of 'TEXT' otherwise
|
out the CVS sources using cvs under Mac OS X creates untyped files
|
||||||
CodeWarrior may ignore them. Checking out the CVS sources using cvs
|
which can lead to compialtion errors under CodeWarrior which are hard
|
||||||
under Mac OS X creates untyped files which can lead to compilation
|
to track down.
|
||||||
errors under CodeWarrior which are hard to track down.
|
|
||||||
|
|
||||||
- convert the xml files to CodeWarrior binary projects using the supplied
|
|
||||||
AppleScript in docs/mac (M5xml2mcp.applescript for CodeWarrior 5.3)
|
|
||||||
|
|
||||||
V) MacOS X using configure and the Developer Tools
|
V) MacOS X using configure and the Developer Tools
|
||||||
----------------------------------------
|
----------------------------------------
|
||||||
@@ -162,10 +158,8 @@ 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 mingw32 and
|
||||||
cygwin32 (both based on egcs) can be found at
|
cygwin32 (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. Otherwise you can
|
||||||
based on the latest MinGW release can be found at
|
compile one yourself. Check the relevant FAQs.
|
||||||
http://members.telering.at/jessich/mingw/mingwcross/mingw_cross.html
|
|
||||||
Otherwise you can compile one yourself.
|
|
||||||
|
|
||||||
[ A Note about cygwin32 and mingw32: the main difference is that cygwin32
|
[ A Note about cygwin32 and mingw32: the main difference is that cygwin32
|
||||||
binaries are always linked against cygwin.dll. This dll encapsulates most
|
binaries are always linked against cygwin.dll. This dll encapsulates most
|
||||||
@@ -185,7 +179,8 @@ To cross compile the windows library, do
|
|||||||
-> cd win32
|
-> cd win32
|
||||||
(or whatever you called it)
|
(or whatever you called it)
|
||||||
Now run configure. There are two ways to do this
|
Now run configure. There are two ways to do this
|
||||||
-> ../configure --host=i586-mingw32 --build=i586-linux --with-mingw
|
-> ../configure --host=i586-mingw32 --build=i586-linux --with-mingw \
|
||||||
|
--enable-dnd=no --without-odbc
|
||||||
where --build= should read whatever platform you're building on. Configure
|
where --build= should read whatever platform you're building on. Configure
|
||||||
will notice that build and host platforms differ, and automatically prepend
|
will notice that build and host platforms differ, and automatically prepend
|
||||||
i586-mingw32- to gcc, ar, ld, etc (make sure they're in the PATH!).
|
i586-mingw32- to gcc, ar, ld, etc (make sure they're in the PATH!).
|
||||||
@@ -193,22 +188,29 @@ The other way to run configure is by specifying the names of the binaries
|
|||||||
yourself:
|
yourself:
|
||||||
-> CC=i586-mingw32-gcc CXX=i586-mingw32-g++ RANLIB=i586-mingw32-ranlib \
|
-> CC=i586-mingw32-gcc CXX=i586-mingw32-g++ RANLIB=i586-mingw32-ranlib \
|
||||||
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 --enable-dnd=no
|
||||||
|
|
||||||
(all assuming you're using mingw32)
|
(all assuming you're using mingw32)
|
||||||
By default this will compile a DLL, if you want a static library,
|
Drag'n'drop is disabled because mingw32 lacks (AFAIK) OLE headers.
|
||||||
specify --disable-shared.
|
|
||||||
|
[ Update: some new mingw32 versions now have a new set of windows header
|
||||||
|
files, which apparently can handle ole. Untested at the moment ]
|
||||||
|
|
||||||
|
ODBC files don't compile as of 13.10.99 - may be this will be fixed by the
|
||||||
|
moment you're reading these lines.
|
||||||
|
|
||||||
|
Configure will conclude that shared libraries are out of the question and
|
||||||
|
opt for a static one. I haven't looked into DLL creation yet.
|
||||||
|
|
||||||
Type
|
Type
|
||||||
-> make
|
-> make
|
||||||
and wait, wait, wait. Don't leave the room, because the minute you do there
|
and wait, wait, wait. Don't leave the room, because the minute you do there
|
||||||
will be a compile error :-)
|
will be a compile error :-)
|
||||||
|
|
||||||
NB: if you are using a very old compiler you risk to get quite a few warnings
|
NB: you risk to get quite a few warnings about "ANSI C++ forbids implicit
|
||||||
about "ANSI C++ forbids implicit conversion from 'void *'" in all places
|
conversion from 'void *'" in all places where va_arg macro is used. This
|
||||||
where va_arg macro is used. This is due to a bug in (some versions of)
|
is due to a bug in (some versions of) mingw32 headers which may be
|
||||||
mingw32 headers which may be corrected by upgrading your compier,
|
corrected by editing 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
|
||||||
|
|
||||||
@@ -229,9 +231,8 @@ typedef void *__gnuc_va_list;
|
|||||||
and adding "|| defined(_WIN32)" to the list of platforms on which
|
and adding "|| defined(_WIN32)" to the list of platforms on which
|
||||||
__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 libwx_msw.a in win32/lib. Now try
|
||||||
( or just libwx_msw.a if you opted for a static build ).
|
building the minimal sample:
|
||||||
Now try building the minimal sample:
|
|
||||||
|
|
||||||
-> cd samples/minimal
|
-> cd samples/minimal
|
||||||
-> make
|
-> make
|
||||||
@@ -251,5 +252,6 @@ Cross-compiling TODO:
|
|||||||
- resource compiling must be done manually for now (should/can we link the
|
- resource compiling must be done manually for now (should/can we link the
|
||||||
default wx resources into libwx_msw.a?) [ No we can't; the linker won't
|
default wx resources into libwx_msw.a?) [ No we can't; the linker won't
|
||||||
link it in... you have to supply an object file ]
|
link it in... you have to supply an object file ]
|
||||||
|
- dynamic libraries
|
||||||
- static executables are HUGE -- there must be room for improvement.
|
- static executables are HUGE -- there must be room for improvement.
|
||||||
|
|
||||||
|
362
Makefile.in
362
Makefile.in
@@ -1,12 +1,11 @@
|
|||||||
#
|
#
|
||||||
# File: makefile.unx
|
# File: makefile.unx
|
||||||
# Author: Julian Smart, Robert Roebling, Vadim Zeitlin, Ron Lee
|
# Author: Julian Smart, Robert Roebling, Vadim Zeitlin
|
||||||
# Created: 1993
|
# Created: 1993
|
||||||
# Updated: 2001
|
# Updated: 1999
|
||||||
# Copyright:(c) 1993, AIAI, University of Edinburgh,
|
# Copyright:(c) 1993, AIAI, University of Edinburgh,
|
||||||
# Copyright:(c) 1999, Vadim Zeitlin
|
# Copyright:(c) 1999, Vadim Zeitlin
|
||||||
# Copyright:(c) 1999, Robert Roebling
|
# Copyright:(c) 1999, Robert Roebling
|
||||||
# Copyright:(c) 2001, Ron Lee
|
|
||||||
#
|
#
|
||||||
# Makefile for libwx_gtk.a, libwx_motif.a and libwx_msw.a
|
# Makefile for libwx_gtk.a, libwx_motif.a and libwx_msw.a
|
||||||
|
|
||||||
@@ -16,17 +15,17 @@ include ./src/make.env
|
|||||||
|
|
||||||
############## override make.env for PIC ##########################
|
############## override make.env for PIC ##########################
|
||||||
|
|
||||||
%.o : %.c
|
# Clears all default suffixes
|
||||||
$(CC) -c $(CFLAGS) $(PICFLAGS) -o $@ $<
|
.SUFFIXES: .o .cpp .c .cxx
|
||||||
|
|
||||||
%.o : %.cpp
|
.c.o :
|
||||||
$(CXX) -c $(CXXFLAGS) $(PICFLAGS) -o $@ $<
|
$(CCC) -c @DEP_INFO_FLAGS@ $(CFLAGS) $(PICFLAGS) @WXMSW_DLL_DEFINES@ -o $@ $<
|
||||||
|
|
||||||
%.o : %.cxx
|
.cpp.o :
|
||||||
$(CXX) -c $(CXXFLAGS) $(PICFLAGS) -o $@ $<
|
$(CC) -c @DEP_INFO_FLAGS@ $(CXXFLAGS) $(PICFLAGS) @WXMSW_DLL_DEFINES@ -o $@ $<
|
||||||
|
|
||||||
%.r : %.rsrc
|
.cxx.o :
|
||||||
$(DEREZ) $^ Carbon.r -useDF > $@
|
$(CC) -c @DEP_INFO_FLAGS@ $(CXXFLAGS) $(PICFLAGS) @WXMSW_DLL_DEFINES@ -o $@ $<
|
||||||
|
|
||||||
########################### Paths #################################
|
########################### Paths #################################
|
||||||
|
|
||||||
@@ -45,31 +44,55 @@ VP9 = @top_srcdir@/src/zlib
|
|||||||
VPA = @top_srcdir@/src/regex
|
VPA = @top_srcdir@/src/regex
|
||||||
VP10 = @top_srcdir@/src/iodbc
|
VP10 = @top_srcdir@/src/iodbc
|
||||||
VP11 = @top_srcdir@/src/msw/ole
|
VP11 = @top_srcdir@/src/msw/ole
|
||||||
|
VP12 = $(FTVP01)@PATH_IFS@$(FTVP02)@PATH_IFS@$(FTVP03)@PATH_IFS@$(FTVP04)@PATH_IFS@$(FTVP05)@PATH_IFS@$(FTVP06)@PATH_IFS@$(FTVP07)@PATH_IFS@$(FTVP08)@PATH_IFS@
|
||||||
|
VP13 = $(FTVP09)@PATH_IFS@$(FTVP10)@PATH_IFS@$(FTVP11)@PATH_IFS@$(FTVP12)@PATH_IFS@$(FTVP13)@PATH_IFS@$(FTVP14)@PATH_IFS@$(FTVP15)@PATH_IFS@
|
||||||
|
|
||||||
# the comment at the end of the next line is needed because otherwise autoconf
|
# the comment at the end of the next line is needed because otherwise autoconf
|
||||||
# would remove this line completely - it contains a built-in hack to remove
|
# would remove this line completely - it contains a built-in hack to remove
|
||||||
# any VPATH assignment not containing ':'
|
# any VPATH assignment not containing ':'
|
||||||
VPATH = $(VP1)@PATH_IFS@$(VP2)@PATH_IFS@$(VP3)@PATH_IFS@$(VP4)@PATH_IFS@$(VP5)@PATH_IFS@$(VP6)@PATH_IFS@$(VP7)@PATH_IFS@$(VP8)@PATH_IFS@$(VP9)@PATH_IFS@$(VPA)@PATH_IFS@$(VP10)@PATH_IFS@$(VP11) # ':' for autoconf
|
VPATH = $(VP1)@PATH_IFS@$(VP2)@PATH_IFS@$(VP3)@PATH_IFS@$(VP4)@PATH_IFS@$(VP5)@PATH_IFS@$(VP6)@PATH_IFS@$(VP7)@PATH_IFS@$(VP8)@PATH_IFS@$(VP9)@PATH_IFS@$(VPA)@PATH_IFS@$(VP10)@PATH_IFS@$(VP11)@PATH_IFS@$(VP12)@PATH_IFS@$(VP13) # ':' for autoconf
|
||||||
|
|
||||||
prefix = @prefix@
|
prefix = @prefix@
|
||||||
exec_prefix = @exec_prefix@
|
exec_prefix = @exec_prefix@
|
||||||
|
|
||||||
bindir = @bindir@
|
bindir = @bindir@
|
||||||
|
sbindir = @sbindir@
|
||||||
|
libexecdir = @libexecdir@
|
||||||
datadir = @datadir@
|
datadir = @datadir@
|
||||||
|
sysconfdir = @sysconfdir@
|
||||||
|
sharedstatedir = @sharedstatedir@
|
||||||
|
localstatedir = @localstatedir@
|
||||||
libdir = @libdir@
|
libdir = @libdir@
|
||||||
|
infodir = @infodir@
|
||||||
mandir = @mandir@
|
mandir = @mandir@
|
||||||
includedir = @includedir@
|
includedir = @includedir@
|
||||||
|
oldincludedir = /usr/include
|
||||||
|
|
||||||
|
DESTDIR =
|
||||||
|
|
||||||
localedir = $(datadir)/locale
|
localedir = $(datadir)/locale
|
||||||
|
|
||||||
|
pkgdatadir = $(datadir)/@PACKAGE@
|
||||||
|
pkglibdir = $(libdir)/@PACKAGE@
|
||||||
|
pkgincludedir = $(includedir)/@PACKAGE@
|
||||||
|
|
||||||
top_builddir = .
|
top_builddir = .
|
||||||
build_libdir = $(top_builddir)/lib
|
|
||||||
|
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||||
INSTALL_DATA = @INSTALL_DATA@
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
# my autoconf doesn't set this
|
||||||
|
#INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
|
# maybe do an additional chmod if needed?
|
||||||
INSTALL_SCRIPT = @INSTALL@
|
INSTALL_SCRIPT = @INSTALL@
|
||||||
|
transform = @program_transform_name@
|
||||||
|
|
||||||
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
build_alias = @build_alias@
|
build_alias = @build_alias@
|
||||||
build_triplet = @build@
|
build_triplet = @build@
|
||||||
host_alias = @host_alias@
|
host_alias = @host_alias@
|
||||||
@@ -94,7 +117,6 @@ PNGDIR = $(WXDIR)/src/png
|
|||||||
JPEGDIR = $(WXDIR)/src/jpeg
|
JPEGDIR = $(WXDIR)/src/jpeg
|
||||||
TIFFDIR = $(WXDIR)/src/tiff
|
TIFFDIR = $(WXDIR)/src/tiff
|
||||||
ZLIBDIR = $(WXDIR)/src/zlib
|
ZLIBDIR = $(WXDIR)/src/zlib
|
||||||
REGEXDIR = $(WXDIR)/src/regex
|
|
||||||
GTKDIR = $(WXDIR)/src/gtk
|
GTKDIR = $(WXDIR)/src/gtk
|
||||||
MOTIFDIR = $(WXDIR)/src/motif
|
MOTIFDIR = $(WXDIR)/src/motif
|
||||||
MSWDIR = $(WXDIR)/src/msw
|
MSWDIR = $(WXDIR)/src/msw
|
||||||
@@ -114,7 +136,6 @@ INTLDIR = $(WXDIR)/locale
|
|||||||
########################## Archive name ###############################
|
########################## Archive name ###############################
|
||||||
|
|
||||||
# append a version suffix x.y.z to all file names
|
# append a version suffix x.y.z to all file names
|
||||||
VER_MAJMIN=$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER)
|
|
||||||
VER_SUFFIX=$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER).$(WX_RELEASE_NUMBER)$(EXTRA_VER)
|
VER_SUFFIX=$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER).$(WX_RELEASE_NUMBER)$(EXTRA_VER)
|
||||||
WXARCHIVE=@DISTDIR@-$(VER_SUFFIX).tar.gz
|
WXARCHIVE=@DISTDIR@-$(VER_SUFFIX).tar.gz
|
||||||
WXGLARCHIVE=@DISTDIR@-gl-$(VER_SUFFIX).tar.gz
|
WXGLARCHIVE=@DISTDIR@-gl-$(VER_SUFFIX).tar.gz
|
||||||
@@ -145,6 +166,7 @@ HEADERS = $(ALL_HEADERS)
|
|||||||
# for the objects and depfiles, we might be bulding only part of them
|
# for the objects and depfiles, we might be bulding only part of them
|
||||||
# depending on configure arguments, so select a subset of ALL
|
# depending on configure arguments, so select a subset of ALL
|
||||||
OBJECTS = @ALL_OBJECTS@
|
OBJECTS = @ALL_OBJECTS@
|
||||||
|
DEPFILES = @ALL_DEPFILES@
|
||||||
|
|
||||||
# the object files of sublibraries (we assume that they don't change [often],
|
# the object files of sublibraries (we assume that they don't change [often],
|
||||||
# so we don't generate these lists with tmake but embed them here)
|
# so we don't generate these lists with tmake but embed them here)
|
||||||
@@ -306,56 +328,85 @@ IODBCOBJS = \
|
|||||||
prepare.o \
|
prepare.o \
|
||||||
result.o
|
result.o
|
||||||
|
|
||||||
|
OLEOBJS = \
|
||||||
|
automtn.o \
|
||||||
|
dataobj.o \
|
||||||
|
dropsrc.o \
|
||||||
|
droptgt.o \
|
||||||
|
oleutils.o \
|
||||||
|
uuid.o
|
||||||
|
|
||||||
############################## Rules ##################################
|
############################## Rules ##################################
|
||||||
|
|
||||||
SONAME_FLAGS = @SONAME_FLAGS@
|
BURNT_LIBRARY_NAME = @BURNT_LIBRARY_NAME@
|
||||||
SONAME_FLAGS_GL = @SONAME_FLAGS_GL@
|
BURNT_LIBRARY_NAME_GL = @BURNT_LIBRARY_NAME_GL@
|
||||||
|
|
||||||
all: @WX_ALL@
|
all: @WX_ALL@
|
||||||
|
|
||||||
$(build_libdir)/@WX_LIBRARY_NAME_STATIC@: $(OBJECTS)
|
@WX_LIBRARY_NAME_STATIC@: $(OBJECTS)
|
||||||
@$(INSTALL) -d $(build_libdir)
|
@$(INSTALL) -d ./lib
|
||||||
@$(RM) $@
|
$(AR) $(AROPTIONS) ./lib/$@ $(OBJECTS)
|
||||||
$(AR) $(AROPTIONS) $@ $(OBJECTS)
|
$(RANLIB) ./lib/$@
|
||||||
$(RANLIB) $@
|
|
||||||
|
|
||||||
$(build_libdir)/@WX_LIBRARY_NAME_STATIC_GL@: glcanvas.o
|
@WX_LIBRARY_NAME_STATIC_GL@: glcanvas.o
|
||||||
@$(INSTALL) -d $(build_libdir)
|
@$(INSTALL) -d ./lib
|
||||||
@$(RM) $@
|
$(AR) $(AROPTIONS) ./lib/$@ glcanvas.o
|
||||||
$(AR) $(AROPTIONS) $@ glcanvas.o
|
$(RANLIB) ./lib/$@
|
||||||
$(RANLIB) $@
|
|
||||||
|
|
||||||
$(build_libdir)/@WX_LIBRARY_NAME_SHARED@: $(OBJECTS)
|
@WX_LIBRARY_NAME_SHARED@: $(OBJECTS)
|
||||||
@$(INSTALL) -d $(build_libdir)
|
@$(INSTALL) -d ./lib
|
||||||
$(SHARED_LD) $@ $(SONAME_FLAGS) $(OBJECTS) $(EXTRALIBS)
|
$(SHARED_LD) ./lib/$@ $(BURNT_LIBRARY_NAME) $(OBJECTS) $(EXTRALIBS)
|
||||||
|
|
||||||
$(build_libdir)/@WX_LIBRARY_NAME_SHARED_GL@: glcanvas.o $(build_libdir)/@WX_LIBRARY_NAME_SHARED@
|
@WX_LIBRARY_NAME_SHARED_GL@: glcanvas.o @WX_LIBRARY_NAME_SHARED@
|
||||||
@$(INSTALL) -d $(build_libdir)
|
@$(INSTALL) -d ./lib
|
||||||
$(SHARED_LD) $@ $(SONAME_FLAGS_GL) glcanvas.o -L$(build_libdir) @WXCONFIG_LIBS@ $(EXTRALIBS) $(OPENGLLIBS)
|
$(SHARED_LD) ./lib/$@ $(BURNT_LIBRARY_NAME_GL) glcanvas.o ./lib/@WX_LIBRARY_NAME_SHARED@ $(EXTRALIBS) $(OPENGLLIBS)
|
||||||
|
|
||||||
$(build_libdir)/@WX_RESOURCES_MACOSX@: $(MACRESOURCES)
|
./lib/lib@WX_LIBRARY@-$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER).r: ./lib/lib@WX_LIBRARY@-$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER).rsrc
|
||||||
@$(INSTALL) -d $(build_libdir)
|
$(DEREZ) $^ $(DEREZFLAGS) > $@
|
||||||
$(RESCOMP) -d __UNIX__ -useDF $^ -o $@
|
|
||||||
|
|
||||||
$(build_libdir)/@WX_LIBRARY_LINK1@: $(build_libdir)/@WX_LIBRARY_NAME_SHARED@
|
./lib/lib@WX_LIBRARY@-$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER).rsrc: $(MACRESOURCES)
|
||||||
@$(RM) $(build_libdir)/@WX_LIBRARY_LINK1@
|
$(REZ) $(REZFLAGS) $^ -o $@
|
||||||
@$(RM) $(build_libdir)/@WX_LIBRARY_LINK2@
|
|
||||||
cd $(build_libdir) \
|
CREATE_LINKS: @WX_LIBRARY_NAME_SHARED@
|
||||||
|
@$(RM) ./lib/@WX_LIBRARY_LINK1@
|
||||||
|
@$(RM) ./lib/@WX_LIBRARY_LINK2@
|
||||||
|
@$(RM) ./lib/@WX_LIBRARY_LINK3@
|
||||||
|
cd lib \
|
||||||
&& $(LN_S) @WX_TARGET_LIBRARY@ @WX_LIBRARY_LINK1@ \
|
&& $(LN_S) @WX_TARGET_LIBRARY@ @WX_LIBRARY_LINK1@ \
|
||||||
&& $(LN_S) @WX_TARGET_LIBRARY@ @WX_LIBRARY_LINK2@
|
&& $(LN_S) @WX_TARGET_LIBRARY@ @WX_LIBRARY_LINK2@ \
|
||||||
|
&& $(LN_S) @WX_TARGET_LIBRARY@ @WX_LIBRARY_LINK3@
|
||||||
|
|
||||||
$(build_libdir)/@WX_LIBRARY_LINK1_GL@: $(build_libdir)/@WX_LIBRARY_NAME_SHARED_GL@
|
CREATE_LINKS_GL: @WX_LIBRARY_NAME_SHARED_GL@
|
||||||
@$(RM) $(build_libdir)/@WX_LIBRARY_LINK1_GL@
|
@$(RM) ./lib/@WX_LIBRARY_LINK1_GL@
|
||||||
@$(RM) $(build_libdir)/@WX_LIBRARY_LINK2_GL@
|
@$(RM) ./lib/@WX_LIBRARY_LINK2_GL@
|
||||||
cd $(build_libdir) \
|
@$(RM) ./lib/@WX_LIBRARY_LINK3_GL@
|
||||||
|
cd lib \
|
||||||
&& $(LN_S) @WX_TARGET_LIBRARY_GL@ @WX_LIBRARY_LINK1_GL@ \
|
&& $(LN_S) @WX_TARGET_LIBRARY_GL@ @WX_LIBRARY_LINK1_GL@ \
|
||||||
&& $(LN_S) @WX_TARGET_LIBRARY_GL@ @WX_LIBRARY_LINK2_GL@
|
&& $(LN_S) @WX_TARGET_LIBRARY_GL@ @WX_LIBRARY_LINK2_GL@ \
|
||||||
|
&& $(LN_S) @WX_TARGET_LIBRARY_GL@ @WX_LIBRARY_LINK3_GL@
|
||||||
|
|
||||||
|
CREATE_INSTALLED_LINKS: preinstall
|
||||||
|
$(RM) $(libdir)/@WX_LIBRARY_LINK1@
|
||||||
|
$(RM) $(libdir)/@WX_LIBRARY_LINK2@
|
||||||
|
$(RM) $(libdir)/@WX_LIBRARY_LINK3@
|
||||||
|
cd $(libdir) \
|
||||||
|
&& $(LN_S) @WX_LIBRARY_NAME_SHARED@ @WX_LIBRARY_LINK1@ \
|
||||||
|
&& $(LN_S) @WX_LIBRARY_NAME_SHARED@ @WX_LIBRARY_LINK2@ \
|
||||||
|
&& $(LN_S) @WX_LIBRARY_NAME_SHARED@ @WX_LIBRARY_LINK3@
|
||||||
|
|
||||||
|
CREATE_INSTALLED_LINKS_GL: preinstall_gl
|
||||||
|
$(RM) $(libdir)/@WX_LIBRARY_LINK1_GL@
|
||||||
|
$(RM) $(libdir)/@WX_LIBRARY_LINK2_GL@
|
||||||
|
$(RM) $(libdir)/@WX_LIBRARY_LINK3_GL@
|
||||||
|
cd $(libdir) \
|
||||||
|
&& $(LN_S) @WX_LIBRARY_NAME_SHARED_GL@ @WX_LIBRARY_LINK1_GL@ \
|
||||||
|
&& $(LN_S) @WX_LIBRARY_NAME_SHARED_GL@ @WX_LIBRARY_LINK2_GL@ \
|
||||||
|
&& $(LN_S) @WX_LIBRARY_NAME_SHARED_GL@ @WX_LIBRARY_LINK3_GL@
|
||||||
|
|
||||||
$(OBJECTS): $(WXDIR)/include/wx/defs.h $(WXDIR)/include/wx/object.h
|
$(OBJECTS): $(WXDIR)/include/wx/defs.h $(WXDIR)/include/wx/object.h
|
||||||
|
|
||||||
parser.o: parser.c lexer.c
|
parser.o: parser.c lexer.c
|
||||||
$(CCLEX) -c $(CFLAGS) -I. $(PICFLAGS) -o $@ parser.c
|
$(CCLEX) -c $(CFLAGS) $(PICFLAGS) -o $@ parser.c
|
||||||
|
|
||||||
parser.c: $(COMMDIR)/parser.y lexer.c
|
parser.c: $(COMMDIR)/parser.y lexer.c
|
||||||
$(YACC) $(COMMDIR)/parser.y
|
$(YACC) $(COMMDIR)/parser.y
|
||||||
@@ -375,39 +426,19 @@ lexer.c: $(COMMDIR)/lexer.l
|
|||||||
sed -e "s/unput/PROIO_unput/g" > lexer.c
|
sed -e "s/unput/PROIO_unput/g" > lexer.c
|
||||||
@$(RM) @LEX_STEM@.c
|
@$(RM) @LEX_STEM@.c
|
||||||
|
|
||||||
-include $(OBJECTS:.o=.d)
|
-include $(DEPFILES)
|
||||||
|
|
||||||
|
|
||||||
CREATE_INSTALLED_LINKS: preinstall
|
|
||||||
$(RM) $(libdir)/@WX_LIBRARY_LINK1@
|
|
||||||
$(RM) $(libdir)/@WX_LIBRARY_LINK2@
|
|
||||||
cd $(libdir) \
|
|
||||||
&& $(LN_S) @WX_LIBRARY_NAME_SHARED@ @WX_LIBRARY_LINK1@ \
|
|
||||||
&& $(LN_S) @WX_LIBRARY_NAME_SHARED@ @WX_LIBRARY_LINK2@
|
|
||||||
|
|
||||||
CREATE_INSTALLED_LINKS_GL: preinstall_gl
|
|
||||||
$(RM) $(libdir)/@WX_LIBRARY_LINK1_GL@
|
|
||||||
$(RM) $(libdir)/@WX_LIBRARY_LINK2_GL@
|
|
||||||
cd $(libdir) \
|
|
||||||
&& $(LN_S) @WX_LIBRARY_NAME_SHARED_GL@ @WX_LIBRARY_LINK1_GL@ \
|
|
||||||
&& $(LN_S) @WX_LIBRARY_NAME_SHARED_GL@ @WX_LIBRARY_LINK2_GL@
|
|
||||||
|
|
||||||
afminstall: preinstall
|
afminstall: preinstall
|
||||||
@if test ! -d $(datadir); then $(INSTALL) -d $(datadir); fi
|
@if test ! -d $(datadir); then $(INSTALL) -d $(datadir); fi
|
||||||
$(INSTALL) -d $(datadir)/wx
|
$(INSTALL) -d $(datadir)/wx
|
||||||
$(INSTALL) -d $(datadir)/wx/$(VER_MAJMIN)
|
$(INSTALL) -d $(datadir)/wx/afm
|
||||||
$(INSTALL) -d $(datadir)/wx/$(VER_MAJMIN)/afm
|
$(INSTALL) -d $(datadir)/wx/gs_afm
|
||||||
$(INSTALL) -d $(datadir)/wx/$(VER_MAJMIN)/gs_afm
|
$(INSTALL_DATA) $(top_srcdir)/misc/afm/*.afm $(datadir)/wx/afm
|
||||||
$(INSTALL_DATA) $(top_srcdir)/misc/afm/*.afm $(datadir)/wx/$(VER_MAJMIN)/afm
|
$(INSTALL_DATA) $(top_srcdir)/misc/gs_afm/*.afm $(datadir)/wx/gs_afm
|
||||||
$(INSTALL_DATA) $(top_srcdir)/misc/gs_afm/*.afm $(datadir)/wx/$(VER_MAJMIN)/gs_afm
|
|
||||||
|
|
||||||
m4datainstall: preinstall
|
|
||||||
$(INSTALL) -d $(datadir)/aclocal
|
|
||||||
$(INSTALL_DATA) $(top_srcdir)/wxwin.m4 $(datadir)/aclocal
|
|
||||||
|
|
||||||
# this is the real install target: copies the library, wx-config and the
|
# this is the real install target: copies the library, wx-config and the
|
||||||
# headers to the installation directory
|
# headers to the installation directory
|
||||||
preinstall: $(build_libdir)/@WX_TARGET_LIBRARY@ $(top_builddir)/wx@TOOLCHAIN_NAME@-config
|
preinstall: $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(top_builddir)/wx@TOOLKIT_NAME@-config
|
||||||
@echo " "
|
@echo " "
|
||||||
@echo " Installing wxWindows..."
|
@echo " Installing wxWindows..."
|
||||||
@echo " "
|
@echo " "
|
||||||
@@ -416,29 +447,20 @@ preinstall: $(build_libdir)/@WX_TARGET_LIBRARY@ $(top_builddir)/wx@TOOLCHAIN_NAM
|
|||||||
@if test ! -d $(bindir); then $(INSTALL) -d $(bindir); fi
|
@if test ! -d $(bindir); then $(INSTALL) -d $(bindir); fi
|
||||||
@if test ! -d $(libdir); then $(INSTALL) -d $(libdir); fi
|
@if test ! -d $(libdir); then $(INSTALL) -d $(libdir); fi
|
||||||
|
|
||||||
$(INSTALL_SCRIPT) $(top_builddir)/wx@TOOLCHAIN_NAME@-config $(bindir)/wx@TOOLCHAIN_NAME@-config
|
$(INSTALL_SCRIPT) $(top_builddir)/wx@TOOLKIT_NAME@-config $(bindir)/wx@TOOLKIT_NAME@-config
|
||||||
cd $(bindir) && rm -f wx-config && $(LN_S) wx@TOOLCHAIN_NAME@-config wx-config
|
cd $(bindir) && rm -f wx-config && $(LN_S) wx@TOOLKIT_NAME@-config wx-config
|
||||||
@INSTALL_LIBRARY@ $(build_libdir)/@WX_TARGET_LIBRARY@ $(libdir)/@WX_TARGET_LIBRARY@
|
$(INSTALL_PROGRAM) $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(libdir)/@WX_TARGET_LIBRARY@
|
||||||
@if test "x@WX_LIBRARY_IMPORTLIB@" != "x"; then \
|
|
||||||
$(INSTALL_PROGRAM) $(top_builddir)/lib/@WX_LIBRARY_IMPORTLIB@ $(libdir)/@WX_LIBRARY_IMPORTLIB@; fi
|
|
||||||
|
|
||||||
$(INSTALL) -d $(libdir)/wx
|
$(INSTALL) -d $(libdir)/wx
|
||||||
$(INSTALL) -d $(libdir)/wx/include
|
$(INSTALL) -d $(libdir)/wx/include
|
||||||
$(INSTALL) -d $(libdir)/wx/include/@TOOLCHAIN_NAME@
|
$(INSTALL) -d $(libdir)/wx/include/wx
|
||||||
$(INSTALL) -d $(libdir)/wx/include/@TOOLCHAIN_NAME@/wx
|
$(INSTALL) -d $(libdir)/wx/include/wx/@TOOLKIT_NAME@
|
||||||
$(INSTALL_DATA) $(build_libdir)/wx/include/@TOOLCHAIN_NAME@/wx/setup.h \
|
$(INSTALL_DATA) $(top_builddir)/include/wx/@TOOLKIT_DIR@/setup.h $(libdir)/wx/include/wx/@TOOLKIT_NAME@/setup.h
|
||||||
$(libdir)/wx/include/@TOOLCHAIN_NAME@/wx/setup.h
|
|
||||||
|
|
||||||
$(INSTALL) -d $(includedir)/wx
|
$(INSTALL) -d $(includedir)/wx
|
||||||
@# FIXME: This will erroneously install a wx/base dir for wxBase..
|
|
||||||
@if test "$(USE_GUI)" = 1; then $(INSTALL) -d $(includedir)/wx/@TOOLKIT_DIR@; fi
|
@if test "$(USE_GUI)" = 1; then $(INSTALL) -d $(includedir)/wx/@TOOLKIT_DIR@; fi
|
||||||
@if test "$(USE_GUI)" = 1; then $(INSTALL) -d $(includedir)/wx/html; fi
|
@if test "$(USE_GUI)" = 1; then $(INSTALL) -d $(includedir)/wx/html; fi
|
||||||
@if test "$(USE_GUI)" = 1; then $(INSTALL) -d $(includedir)/wx/generic; fi
|
@if test "$(USE_GUI)" = 1; then $(INSTALL) -d $(includedir)/wx/generic; fi
|
||||||
@if test "@TOOLKIT_DIR@" = "msw"; then $(INSTALL) -d $(includedir)/wx/msw/ole; fi
|
|
||||||
|
|
||||||
@# always install msw headers for wxBase, it's much simpler
|
|
||||||
@if test "$(USE_GUI)" = 0; then $(INSTALL) -d $(includedir)/wx/msw; fi
|
|
||||||
|
|
||||||
$(INSTALL) -d $(includedir)/wx/protocol
|
$(INSTALL) -d $(includedir)/wx/protocol
|
||||||
$(INSTALL) -d $(includedir)/wx/unix
|
$(INSTALL) -d $(includedir)/wx/unix
|
||||||
@list='$(HEADERS)'; for p in $$list; do \
|
@list='$(HEADERS)'; for p in $$list; do \
|
||||||
@@ -454,21 +476,14 @@ preinstall: $(build_libdir)/@WX_TARGET_LIBRARY@ $(top_builddir)/wx@TOOLCHAIN_NAM
|
|||||||
echo "$(INSTALL_DATA) $(top_srcdir)/locale/$$p.mo $(localedir)/$$p/LC_MESSAGES/wxstd.mo"; \
|
echo "$(INSTALL_DATA) $(top_srcdir)/locale/$$p.mo $(localedir)/$$p/LC_MESSAGES/wxstd.mo"; \
|
||||||
done
|
done
|
||||||
|
|
||||||
preinstall_res: $(build_libdir)/@WX_RESOURCES_MACOSX_COMPILED@
|
preinstall_gl: $(top_builddir)/lib/@WX_TARGET_LIBRARY_GL@
|
||||||
@echo " "
|
|
||||||
@echo " Installing wxWindows Mac resource ..."
|
|
||||||
@echo " "
|
|
||||||
@if test ! -d $(libdir); then $(INSTALL) -d $(libdir); fi
|
|
||||||
$(INSTALL_PROGRAM) $(build_libdir)/@WX_RESOURCES_MACOSX_COMPILED@ $(libdir)/@WX_RESOURCES_MACOSX_COMPILED@
|
|
||||||
|
|
||||||
preinstall_gl: $(build_libdir)/@WX_TARGET_LIBRARY_GL@
|
|
||||||
@echo " "
|
@echo " "
|
||||||
@echo " Installing wxWindows OpenGl add-on..."
|
@echo " Installing wxWindows OpenGl add-on..."
|
||||||
@echo " "
|
@echo " "
|
||||||
@if test ! -d $(libdir); then $(INSTALL) -d $(libdir); fi
|
@if test ! -d $(libdir); then $(INSTALL) -d $(libdir); fi
|
||||||
@INSTALL_LIBRARY@ $(build_libdir)/@WX_TARGET_LIBRARY_GL@ $(libdir)/@WX_TARGET_LIBRARY_GL@
|
$(INSTALL_PROGRAM) $(top_builddir)/lib/@WX_TARGET_LIBRARY_GL@ $(libdir)/@WX_TARGET_LIBRARY_GL@
|
||||||
|
|
||||||
install: @AFMINSTALL@ @WX_ALL_INSTALLED@ m4datainstall
|
install: @AFMINSTALL@ @WX_ALL_INSTALLED@
|
||||||
@echo " "
|
@echo " "
|
||||||
@echo " The installation of wxWindows is finished. On certain"
|
@echo " The installation of wxWindows is finished. On certain"
|
||||||
@echo " platforms (e.g. Linux) you'll now have to run ldconfig"
|
@echo " platforms (e.g. Linux) you'll now have to run ldconfig"
|
||||||
@@ -489,14 +504,16 @@ uninstall:
|
|||||||
@$(RM) $(libdir)/@WX_TARGET_LIBRARY@
|
@$(RM) $(libdir)/@WX_TARGET_LIBRARY@
|
||||||
@$(RM) $(libdir)/@WX_LIBRARY_LINK1@
|
@$(RM) $(libdir)/@WX_LIBRARY_LINK1@
|
||||||
@$(RM) $(libdir)/@WX_LIBRARY_LINK2@
|
@$(RM) $(libdir)/@WX_LIBRARY_LINK2@
|
||||||
|
@$(RM) $(libdir)/@WX_LIBRARY_LINK3@
|
||||||
@echo " Removing GL library..."
|
@echo " Removing GL library..."
|
||||||
@$(RM) $(libdir)/@WX_TARGET_LIBRARY_GL@
|
@$(RM) $(libdir)/@WX_TARGET_LIBRARY_GL@
|
||||||
@$(RM) $(libdir)/@WX_LIBRARY_LINK1_GL@
|
@$(RM) $(libdir)/@WX_LIBRARY_LINK1_GL@
|
||||||
@$(RM) $(libdir)/@WX_LIBRARY_LINK2_GL@
|
@$(RM) $(libdir)/@WX_LIBRARY_LINK2_GL@
|
||||||
|
@$(RM) $(libdir)/@WX_LIBRARY_LINK3_GL@
|
||||||
@echo " Removing helper files..."
|
@echo " Removing helper files..."
|
||||||
@$(RM) $(libdir)/wx/include/@TOOLCHAIN_NAME@/wx/setup.h
|
@$(RM) $(libdir)/wx/include/wx/@TOOLKIT_NAME@/setup.h
|
||||||
@$(RM) $(bindir)/wx-config
|
@$(RM) $(bindir)/wx-config
|
||||||
@$(RM) $(bindir)/wx@TOOLCHAIN_NAME@-config
|
@$(RM) $(bindir)/wx@TOOLKIT_NAME@-config
|
||||||
@$(RM) $(datadir)/wx/afm/*
|
@$(RM) $(datadir)/wx/afm/*
|
||||||
@$(RM) $(datadir)/wx/gs_afm/*
|
@$(RM) $(datadir)/wx/gs_afm/*
|
||||||
# FIXME: wxBase doesnt install these next 3 dirs.
|
# FIXME: wxBase doesnt install these next 3 dirs.
|
||||||
@@ -515,8 +532,8 @@ uninstall:
|
|||||||
done
|
done
|
||||||
@echo " Removing directories..."
|
@echo " Removing directories..."
|
||||||
@-rmdir $(localedir)
|
@-rmdir $(localedir)
|
||||||
@if test -d $(libdir)/wx/include/@TOOLCHAIN_NAME@/wx; then rmdir $(libdir)/wx/include/@TOOLCHAIN_NAME@/wx; fi
|
@if test -d $(libdir)/wx/include/wx/@TOOLKIT_NAME@; then rmdir $(libdir)/wx/include/wx/@TOOLKIT_NAME@; fi
|
||||||
@if test -d $(libdir)/wx/include/@TOOLCHAIN_NAME@; then rmdir $(libdir)/wx/include/@TOOLCHAIN_NAME@; fi
|
@if test -d $(libdir)/wx/include/wx; then rmdir $(libdir)/wx/include/wx; fi
|
||||||
@if test -d $(libdir)/wx/include; then rmdir $(libdir)/wx/include; fi
|
@if test -d $(libdir)/wx/include; then rmdir $(libdir)/wx/include; fi
|
||||||
@if test -d $(libdir)/wx; then rmdir $(libdir)/wx; fi
|
@if test -d $(libdir)/wx; then rmdir $(libdir)/wx; fi
|
||||||
@if test -d $(includedir)/wx/gtk; then rmdir $(includedir)/wx/gtk; fi
|
@if test -d $(includedir)/wx/gtk; then rmdir $(includedir)/wx/gtk; fi
|
||||||
@@ -533,8 +550,8 @@ uninstall:
|
|||||||
ALL_DIST: distclean
|
ALL_DIST: distclean
|
||||||
mkdir _dist_dir
|
mkdir _dist_dir
|
||||||
mkdir $(DISTDIR)
|
mkdir $(DISTDIR)
|
||||||
cp $(WXDIR)/wxwin.m4 $(DISTDIR)
|
cp $(WXDIR)/configure.in $(DISTDIR)
|
||||||
cp $(WXDIR)/aclocal.m4 $(DISTDIR)
|
cp $(WXDIR)/configure $(DISTDIR)
|
||||||
cp $(WXDIR)/config.sub $(DISTDIR)
|
cp $(WXDIR)/config.sub $(DISTDIR)
|
||||||
cp $(WXDIR)/config.guess $(DISTDIR)
|
cp $(WXDIR)/config.guess $(DISTDIR)
|
||||||
cp $(WXDIR)/install-sh $(DISTDIR)
|
cp $(WXDIR)/install-sh $(DISTDIR)
|
||||||
@@ -544,42 +561,27 @@ ALL_DIST: distclean
|
|||||||
cp $(WXDIR)/setup.h_vms $(DISTDIR)
|
cp $(WXDIR)/setup.h_vms $(DISTDIR)
|
||||||
cp $(WXDIR)/descrip.mms $(DISTDIR)
|
cp $(WXDIR)/descrip.mms $(DISTDIR)
|
||||||
cp $(WXDIR)/Makefile.in $(DISTDIR)
|
cp $(WXDIR)/Makefile.in $(DISTDIR)
|
||||||
cp $(WXDIR)/wxBase.spec $(DISTDIR)
|
|
||||||
cp $(DOCDIR)/lgpl.txt $(DISTDIR)/COPYING.LIB
|
cp $(DOCDIR)/lgpl.txt $(DISTDIR)/COPYING.LIB
|
||||||
cp $(DOCDIR)/licence.txt $(DISTDIR)/LICENCE.txt
|
cp $(DOCDIR)/licence.txt $(DISTDIR)/LICENCE.txt
|
||||||
cp $(DOCDIR)/symbols.txt $(DISTDIR)/SYMBOLS.txt
|
cp $(DOCDIR)/symbols.txt $(DISTDIR)/SYMBOLS.txt
|
||||||
cp $(DOCDIR)/changes.txt $(DISTDIR)/CHANGES.txt
|
|
||||||
mkdir $(DISTDIR)/lib
|
mkdir $(DISTDIR)/lib
|
||||||
cp $(WXDIR)/lib/vms.opt $(DISTDIR)/lib
|
cp $(WXDIR)/lib/vms.opt $(DISTDIR)/lib
|
||||||
cp $(WXDIR)/lib/vms_gtk.opt $(DISTDIR)/lib
|
cp $(WXDIR)/lib/vms_gtk.opt $(DISTDIR)/lib
|
||||||
mkdir $(DISTDIR)/src
|
mkdir $(DISTDIR)/src
|
||||||
cp $(SRCDIR)/files.lst $(DISTDIR)/src/
|
|
||||||
mkdir $(DISTDIR)/src/zlib
|
mkdir $(DISTDIR)/src/zlib
|
||||||
cp $(ZLIBDIR)/*.h $(DISTDIR)/src/zlib
|
cp $(ZLIBDIR)/*.h $(DISTDIR)/src/zlib
|
||||||
cp $(ZLIBDIR)/*.c $(DISTDIR)/src/zlib
|
cp $(ZLIBDIR)/*.c $(DISTDIR)/src/zlib
|
||||||
cp $(ZLIBDIR)/README $(DISTDIR)/src/zlib
|
cp $(ZLIBDIR)/README $(DISTDIR)/src/zlib
|
||||||
cp $(ZLIBDIR)/*.mms $(DISTDIR)/src/zlib
|
cp $(ZLIBDIR)/*.mms $(DISTDIR)/src/zlib
|
||||||
mkdir $(DISTDIR)/src/regex
|
|
||||||
cp $(REGEXDIR)/*.h $(DISTDIR)/src/regex
|
|
||||||
cp $(REGEXDIR)/*.ih $(DISTDIR)/src/regex
|
|
||||||
cp $(REGEXDIR)/*.c $(DISTDIR)/src/regex
|
|
||||||
cp $(REGEXDIR)/Makefile $(DISTDIR)/src/regex
|
|
||||||
cp $(REGEXDIR)/COPYRIGHT $(DISTDIR)/src/regex
|
|
||||||
cp $(REGEXDIR)/README $(DISTDIR)/src/regex
|
|
||||||
cp $(REGEXDIR)/WHATSNEW $(DISTDIR)/src/regex
|
|
||||||
cp $(REGEXDIR)/mkh $(DISTDIR)/src/regex
|
|
||||||
cp $(REGEXDIR)/tests $(DISTDIR)/src/regex
|
|
||||||
|
|
||||||
# this target is the common part of distribution script for all GUI toolkits,
|
# this target is the common part of distribution script for all GUI toolkits,
|
||||||
# but is not used when building wxBase distribution
|
# but is not used when building wxBase distribution
|
||||||
ALL_GUI_DIST: ALL_DIST
|
ALL_GUI_DIST: ALL_DIST
|
||||||
cp $(WXDIR)/configure.in $(DISTDIR)
|
cp $(WXDIR)/wx$(TOOLKIT).spec $(DISTDIR)
|
||||||
cp $(WXDIR)/configure $(DISTDIR)
|
cp $(WXDIR)/wxBase.spec $(DISTDIR)
|
||||||
cp $(DOCDIR)/readme.txt $(DISTDIR)/README.txt
|
|
||||||
cp $(DOCDIR)/$(TOOLKITDIR)/install.txt $(DISTDIR)/INSTALL.txt
|
cp $(DOCDIR)/$(TOOLKITDIR)/install.txt $(DISTDIR)/INSTALL.txt
|
||||||
if test -f $(DOCDIR)/$(TOOLKITDIR)/changes.txt ; then \
|
cp $(DOCDIR)/$(TOOLKITDIR)/changes.txt $(DISTDIR)/CHANGES.txt
|
||||||
cp $(DOCDIR)/$(TOOLKITDIR)/changes.txt $(DISTDIR)/CHANGES-$(TOOLKIT).txt ; fi
|
cp $(DOCDIR)/$(TOOLKITDIR)/readme.txt $(DISTDIR)/README.txt
|
||||||
cp $(DOCDIR)/$(TOOLKITDIR)/readme.txt $(DISTDIR)/README-$(TOOLKIT).txt
|
|
||||||
cp $(DOCDIR)/$(TOOLKITDIR)/todo.txt $(DISTDIR)/TODO.txt
|
cp $(DOCDIR)/$(TOOLKITDIR)/todo.txt $(DISTDIR)/TODO.txt
|
||||||
mkdir $(DISTDIR)/include
|
mkdir $(DISTDIR)/include
|
||||||
mkdir $(DISTDIR)/include/wx
|
mkdir $(DISTDIR)/include/wx
|
||||||
@@ -606,6 +608,7 @@ ALL_GUI_DIST: ALL_DIST
|
|||||||
mkdir $(DISTDIR)/src/tiff
|
mkdir $(DISTDIR)/src/tiff
|
||||||
mkdir $(DISTDIR)/src/iodbc
|
mkdir $(DISTDIR)/src/iodbc
|
||||||
mkdir $(DISTDIR)/src/unix
|
mkdir $(DISTDIR)/src/unix
|
||||||
|
cp $(WXDIR)/@PORT_FILES@ $(DISTDIR)
|
||||||
cp $(SRCDIR)/*.in $(DISTDIR)/src
|
cp $(SRCDIR)/*.in $(DISTDIR)/src
|
||||||
cp $(COMMDIR)/*.cpp $(DISTDIR)/src/common
|
cp $(COMMDIR)/*.cpp $(DISTDIR)/src/common
|
||||||
cp $(COMMDIR)/*.c $(DISTDIR)/src/common
|
cp $(COMMDIR)/*.c $(DISTDIR)/src/common
|
||||||
@@ -639,25 +642,18 @@ ALL_GUI_DIST: ALL_DIST
|
|||||||
cp $(ODBCDIR)/Changes.log $(DISTDIR)/src/iodbc
|
cp $(ODBCDIR)/Changes.log $(DISTDIR)/src/iodbc
|
||||||
|
|
||||||
BASE_DIST: ALL_DIST
|
BASE_DIST: ALL_DIST
|
||||||
# make --disable-gui the default
|
|
||||||
sed 's/DEFAULT_wxUSE_GUI=yes/DEFAULT_wxUSE_GUI=no/' \
|
|
||||||
$(WXDIR)/configure.in > $(DISTDIR)/configure.in
|
|
||||||
sed 's/DEFAULT_wxUSE_GUI=yes/DEFAULT_wxUSE_GUI=no/' \
|
|
||||||
$(WXDIR)/configure > $(DISTDIR)/configure
|
|
||||||
chmod +x $(DISTDIR)/configure
|
|
||||||
mkdir $(DISTDIR)/include
|
mkdir $(DISTDIR)/include
|
||||||
mkdir $(DISTDIR)/include/wx
|
mkdir $(DISTDIR)/include/wx
|
||||||
mkdir $(DISTDIR)/include/wx/protocol
|
mkdir $(DISTDIR)/include/wx/protocol
|
||||||
mkdir $(DISTDIR)/include/wx/unix
|
mkdir $(DISTDIR)/include/wx/unix
|
||||||
mkdir $(DISTDIR)/include/wx/msw
|
|
||||||
mkdir $(DISTDIR)/src/common
|
mkdir $(DISTDIR)/src/common
|
||||||
mkdir $(DISTDIR)/src/unix
|
mkdir $(DISTDIR)/src/unix
|
||||||
mkdir $(DISTDIR)/src/msw
|
cp $(WXDIR)/@PORT_FILES@ $(DISTDIR)
|
||||||
cp @PORT_FILES@ $(DISTDIR)
|
cp $(WXDIR)/@RPM_FILES@ $(DISTDIR)/@RPM_FILES@
|
||||||
cp $(WXDIR)/src/wxBase*.dsp $(DISTDIR)
|
cp $(WXDIR)/@RPM_SPEC@ $(DISTDIR)/@RPM_SPEC@
|
||||||
cp $(WXDIR)/src/wxBase*.dsw $(DISTDIR)
|
cp $(WXDIR)/wxBase*.ds[pw] $(DISTDIR)
|
||||||
cp $(DOCDIR)/changes.txt $(DISTDIR)/CHANGES.txt
|
cp $(DOCDIR)/changes.txt $(DISTDIR)/CHANGES.txt
|
||||||
cp $(DOCDIR)/install.txt $(DISTDIR)/README.txt
|
cp $(DOCDIR)/readme.txt $(DISTDIR)/README.txt
|
||||||
cp $(SRCDIR)/*.in $(DISTDIR)/src
|
cp $(SRCDIR)/*.in $(DISTDIR)/src
|
||||||
cp $(WXDIR)/src/common/*.inc $(DISTDIR)/src/common
|
cp $(WXDIR)/src/common/*.inc $(DISTDIR)/src/common
|
||||||
cp $(WXDIR)/src/common/base.rc $(DISTDIR)/src/common
|
cp $(WXDIR)/src/common/base.rc $(DISTDIR)/src/common
|
||||||
@@ -678,14 +674,11 @@ BASE_DIST: ALL_DIST
|
|||||||
cp $(SAMPDIR)/console/Makefile.in $(DISTDIR)/samples/console
|
cp $(SAMPDIR)/console/Makefile.in $(DISTDIR)/samples/console
|
||||||
cp $(SAMPDIR)/console/makefile.unx $(DISTDIR)/samples/console
|
cp $(SAMPDIR)/console/makefile.unx $(DISTDIR)/samples/console
|
||||||
cp $(SAMPDIR)/console/console.cpp $(DISTDIR)/samples/console
|
cp $(SAMPDIR)/console/console.cpp $(DISTDIR)/samples/console
|
||||||
cp $(SAMPDIR)/console/console.dsp $(DISTDIR)/samples/console
|
|
||||||
cp $(SAMPDIR)/console/testdata.fc $(DISTDIR)/samples/console
|
cp $(SAMPDIR)/console/testdata.fc $(DISTDIR)/samples/console
|
||||||
|
|
||||||
GTK_DIST: ALL_GUI_DIST
|
GTK_DIST: ALL_GUI_DIST
|
||||||
cp $(WXDIR)/wxGTK.spec $(DISTDIR)
|
|
||||||
cp $(INCDIR)/wx/gtk/*.h $(DISTDIR)/include/wx/gtk
|
cp $(INCDIR)/wx/gtk/*.h $(DISTDIR)/include/wx/gtk
|
||||||
cp $(INCDIR)/wx/gtk/*.xpm $(DISTDIR)/include/wx/gtk
|
cp $(INCDIR)/wx/gtk/*.xpm $(DISTDIR)/include/wx/gtk
|
||||||
cp $(GTKDIR)/files.lst $(DISTDIR)/src/gtk
|
|
||||||
cp $(GTKDIR)/*.cpp $(DISTDIR)/src/gtk
|
cp $(GTKDIR)/*.cpp $(DISTDIR)/src/gtk
|
||||||
cp $(GTKDIR)/*.c $(DISTDIR)/src/gtk
|
cp $(GTKDIR)/*.c $(DISTDIR)/src/gtk
|
||||||
cp $(GTKDIR)/*.xbm $(DISTDIR)/src/gtk
|
cp $(GTKDIR)/*.xbm $(DISTDIR)/src/gtk
|
||||||
@@ -694,11 +687,9 @@ GTK_DIST: ALL_GUI_DIST
|
|||||||
cp -R $(WXDIR)/contrib $(DISTDIR)
|
cp -R $(WXDIR)/contrib $(DISTDIR)
|
||||||
|
|
||||||
MOTIF_DIST: ALL_GUI_DIST
|
MOTIF_DIST: ALL_GUI_DIST
|
||||||
cp $(WXDIR)/wxMotif.spec $(DISTDIR)
|
cp $(WXDIR)/wxMOTIF.spec $(DISTDIR)
|
||||||
cp $(INCDIR)/wx/motif/*.h $(DISTDIR)/include/wx/motif
|
cp $(INCDIR)/wx/motif/*.h $(DISTDIR)/include/wx/motif
|
||||||
cp $(MOTIFDIR)/files.lst $(DISTDIR)/src/motif
|
|
||||||
cp $(MOTIFDIR)/*.cpp $(DISTDIR)/src/motif
|
cp $(MOTIFDIR)/*.cpp $(DISTDIR)/src/motif
|
||||||
cp $(MOTIFDIR)/*.c $(DISTDIR)/src/motif
|
|
||||||
cp $(MOTIFDIR)/*.xbm $(DISTDIR)/src/motif
|
cp $(MOTIFDIR)/*.xbm $(DISTDIR)/src/motif
|
||||||
mkdir $(DISTDIR)/src/motif/xmcombo
|
mkdir $(DISTDIR)/src/motif/xmcombo
|
||||||
cp $(MOTIFDIR)/xmcombo/*.c $(DISTDIR)/src/motif/xmcombo
|
cp $(MOTIFDIR)/xmcombo/*.c $(DISTDIR)/src/motif/xmcombo
|
||||||
@@ -706,58 +697,29 @@ MOTIF_DIST: ALL_GUI_DIST
|
|||||||
cp $(MOTIFDIR)/xmcombo/copying.txt $(DISTDIR)/src/motif/xmcombo
|
cp $(MOTIFDIR)/xmcombo/copying.txt $(DISTDIR)/src/motif/xmcombo
|
||||||
|
|
||||||
MACX_DIST: ALL_GUI_DIST
|
MACX_DIST: ALL_GUI_DIST
|
||||||
cp $(INCDIR)/*.* $(DISTDIR)/include
|
echo "Apple Mac OS X specific distribution not complete"
|
||||||
cp $(INCDIR)/wx/mac/*.h $(DISTDIR)/include/wx/mac
|
|
||||||
cp $(MACDIR)/files.lst $(DISTDIR)/src/mac
|
|
||||||
cp $(MACDIR)/*.cpp $(DISTDIR)/src/mac
|
|
||||||
cp $(MACDIR)/*.c $(DISTDIR)/src/mac
|
|
||||||
cp $(MACDIR)/*.h $(DISTDIR)/src/mac
|
|
||||||
cp $(MACDIR)/*.r $(DISTDIR)/src/mac
|
|
||||||
mkdir $(DISTDIR)/src/mac/morefile
|
|
||||||
cp $(MACDIR)/morefile/*.h $(DISTDIR)/src/mac/morefile
|
|
||||||
cp $(MACDIR)/morefile/*.c $(DISTDIR)/src/mac/morefile
|
|
||||||
mkdir $(DISTDIR)/src/mac/macsock
|
|
||||||
cp $(MACDIR)/macsock/*.lib $(DISTDIR)/src/mac/macsock
|
|
||||||
|
|
||||||
MSW_DIST: ALL_GUI_DIST
|
MSW_DIST: ALL_GUI_DIST
|
||||||
cp $(WXDIR)/wxWINE.spec $(DISTDIR)
|
cp $(WXDIR)/wxWINE.spec $(DISTDIR)
|
||||||
mkdir $(DISTDIR)/include/wx/msw/ctl3d
|
|
||||||
mkdir $(DISTDIR)/include/wx/msw/gnuwin32
|
|
||||||
mkdir $(DISTDIR)/include/wx/msw/gnuwin32/gl
|
|
||||||
mkdir $(DISTDIR)/include/wx/msw/ole
|
|
||||||
cp $(INCDIR)/wx/msw/*.h $(DISTDIR)/include/wx/msw
|
cp $(INCDIR)/wx/msw/*.h $(DISTDIR)/include/wx/msw
|
||||||
cp $(INCDIR)/wx/msw/*.cur $(DISTDIR)/include/wx/msw
|
cp $(INCDIR)/wx/msw/*.cur $(DISTDIR)/include/wx/msw
|
||||||
cp $(INCDIR)/wx/msw/*.ico $(DISTDIR)/include/wx/msw
|
cp $(INCDIR)/wx/msw/*.ico $(DISTDIR)/include/wx/msw
|
||||||
cp $(INCDIR)/wx/msw/*.bmp $(DISTDIR)/include/wx/msw
|
cp $(INCDIR)/wx/msw/*.bmp $(DISTDIR)/include/wx/msw
|
||||||
cp $(INCDIR)/wx/msw/*.rc $(DISTDIR)/include/wx/msw
|
cp $(INCDIR)/wx/msw/*.rc $(DISTDIR)/include/wx/msw
|
||||||
cp $(INCDIR)/wx/msw/ctl3d/*.h $(DISTDIR)/include/wx/msw/ctl3d
|
|
||||||
cp $(INCDIR)/wx/msw/gnuwin32/*.h $(DISTDIR)/include/wx/msw/gnuwin32
|
|
||||||
cp $(INCDIR)/wx/msw/gnuwin32/gl/*.h $(DISTDIR)/include/wx/msw/gnuwin32/gl
|
|
||||||
cp $(INCDIR)/wx/msw/gnuwin32/gl/*.def $(DISTDIR)/include/wx/msw/gnuwin32/gl
|
|
||||||
cp $(INCDIR)/wx/msw/ole/*.h $(DISTDIR)/include/wx/msw/ole
|
|
||||||
|
|
||||||
mkdir $(DISTDIR)/src/msw/ole
|
|
||||||
cp $(MSWDIR)/files.lst $(DISTDIR)/src/msw
|
|
||||||
cp $(MSWDIR)/*.cpp $(DISTDIR)/src/msw
|
cp $(MSWDIR)/*.cpp $(DISTDIR)/src/msw
|
||||||
cp $(MSWDIR)/*.c $(DISTDIR)/src/msw
|
cp $(MSWDIR)/*.c $(DISTDIR)/src/msw
|
||||||
cp $(MSWDIR)/*.def $(DISTDIR)/src/msw
|
cp $(MSWDIR)/*.def $(DISTDIR)/src/msw
|
||||||
|
mkdir $(DISTDIR)/src/msw/ole
|
||||||
cp $(MSWDIR)/ole/*.cpp $(DISTDIR)/src/msw/ole
|
cp $(MSWDIR)/ole/*.cpp $(DISTDIR)/src/msw/ole
|
||||||
|
|
||||||
UNIV_DIST: ALL_GUI_DIST
|
|
||||||
mkdir $(DISTDIR)/include/wx/univ
|
|
||||||
mkdir $(DISTDIR)/src/univ
|
|
||||||
mkdir $(DISTDIR)/src/univ/themes
|
|
||||||
cp $(INCDIR)/wx/univ/*.h $(DISTDIR)/include/wx/univ
|
|
||||||
cp $(SRCDIR)/univ/files.lst $(DISTDIR)/src/univ
|
|
||||||
cp $(SRCDIR)/univ/*.cpp $(DISTDIR)/src/univ
|
|
||||||
cp $(SRCDIR)/univ/themes/*.cpp $(DISTDIR)/src/univ/themes
|
|
||||||
|
|
||||||
DEMOS_DIST: ALL_GUI_DIST
|
DEMOS_DIST: ALL_GUI_DIST
|
||||||
mkdir $(DISTDIR)/demos
|
mkdir $(DISTDIR)/demos
|
||||||
cp $(DEMODIR)/Makefile.in $(DISTDIR)/demos
|
cp $(DEMODIR)/Makefile.in $(DISTDIR)/demos
|
||||||
cp $(DEMODIR)/configure $(DISTDIR)/demos
|
cp $(DEMODIR)/configure $(DISTDIR)/demos
|
||||||
cp $(DEMODIR)/configure.in $(DISTDIR)/demos
|
cp $(DEMODIR)/configure.in $(DISTDIR)/demos
|
||||||
|
|
||||||
|
cp -R $(DEMODIR)/dbbrowse $(DISTDIR)/demos/dbbrowse
|
||||||
|
|
||||||
mkdir $(DISTDIR)/demos/bombs
|
mkdir $(DISTDIR)/demos/bombs
|
||||||
cp $(DEMODIR)/bombs/Makefile.in $(DISTDIR)/demos/bombs
|
cp $(DEMODIR)/bombs/Makefile.in $(DISTDIR)/demos/bombs
|
||||||
cp $(DEMODIR)/bombs/makefile.unx $(DISTDIR)/demos/bombs
|
cp $(DEMODIR)/bombs/makefile.unx $(DISTDIR)/demos/bombs
|
||||||
@@ -766,8 +728,6 @@ DEMOS_DIST: ALL_GUI_DIST
|
|||||||
cp $(DEMODIR)/bombs/*.xpm $(DISTDIR)/demos/bombs
|
cp $(DEMODIR)/bombs/*.xpm $(DISTDIR)/demos/bombs
|
||||||
cp $(DEMODIR)/bombs/readme.txt $(DISTDIR)/demos/bombs
|
cp $(DEMODIR)/bombs/readme.txt $(DISTDIR)/demos/bombs
|
||||||
|
|
||||||
cp -R $(DEMODIR)/dbbrowse $(DISTDIR)/demos/dbbrowse
|
|
||||||
|
|
||||||
mkdir $(DISTDIR)/demos/forty
|
mkdir $(DISTDIR)/demos/forty
|
||||||
cp $(DEMODIR)/forty/Makefile.in $(DISTDIR)/demos/forty
|
cp $(DEMODIR)/forty/Makefile.in $(DISTDIR)/demos/forty
|
||||||
cp $(DEMODIR)/forty/makefile.unx $(DISTDIR)/demos/forty
|
cp $(DEMODIR)/forty/makefile.unx $(DISTDIR)/demos/forty
|
||||||
@@ -1243,14 +1203,6 @@ SAMPLES_DIST: ALL_GUI_DIST
|
|||||||
cp $(SAMPDIR)/wizard/*.cpp $(DISTDIR)/samples/wizard
|
cp $(SAMPDIR)/wizard/*.cpp $(DISTDIR)/samples/wizard
|
||||||
cp $(SAMPDIR)/wizard/*.xpm $(DISTDIR)/samples/wizard
|
cp $(SAMPDIR)/wizard/*.xpm $(DISTDIR)/samples/wizard
|
||||||
|
|
||||||
mkdir $(DISTDIR)/samples/widgets
|
|
||||||
mkdir $(DISTDIR)/samples/widgets/icons
|
|
||||||
cp $(SAMPDIR)/widgets/Makefile.in $(DISTDIR)/samples/widgets
|
|
||||||
cp $(SAMPDIR)/widgets/*.cpp $(DISTDIR)/samples/widgets
|
|
||||||
cp $(SAMPDIR)/widgets/*.h $(DISTDIR)/samples/widgets
|
|
||||||
cp $(SAMPDIR)/widgets/*.rc $(DISTDIR)/samples/widgets
|
|
||||||
cp $(SAMPDIR)/widgets/icons/*.xpm $(DISTDIR)/samples/widgets/icons
|
|
||||||
|
|
||||||
UTILS_DIST: ALL_GUI_DIST
|
UTILS_DIST: ALL_GUI_DIST
|
||||||
mkdir $(DISTDIR)/utils
|
mkdir $(DISTDIR)/utils
|
||||||
cp $(UTILSDIR)/Makefile.in $(DISTDIR)/utils
|
cp $(UTILSDIR)/Makefile.in $(DISTDIR)/utils
|
||||||
@@ -1299,7 +1251,6 @@ MANUAL_DIST:
|
|||||||
mkdir $(DISTDIR)/docs/latex
|
mkdir $(DISTDIR)/docs/latex
|
||||||
mkdir $(DISTDIR)/docs/latex/wx
|
mkdir $(DISTDIR)/docs/latex/wx
|
||||||
cp $(DOCDIR)/latex/wx/*.tex $(DISTDIR)/docs/latex/wx
|
cp $(DOCDIR)/latex/wx/*.tex $(DISTDIR)/docs/latex/wx
|
||||||
cp $(DOCDIR)/latex/wx/*.inc $(DISTDIR)/docs/latex/wx
|
|
||||||
cp $(DOCDIR)/latex/wx/*.gif $(DISTDIR)/docs/latex/wx
|
cp $(DOCDIR)/latex/wx/*.gif $(DISTDIR)/docs/latex/wx
|
||||||
cp $(DOCDIR)/latex/wx/*.ini $(DISTDIR)/docs/latex/wx
|
cp $(DOCDIR)/latex/wx/*.ini $(DISTDIR)/docs/latex/wx
|
||||||
cp $(DOCDIR)/latex/wx/*.bib $(DISTDIR)/docs/latex/wx
|
cp $(DOCDIR)/latex/wx/*.bib $(DISTDIR)/docs/latex/wx
|
||||||
@@ -1311,13 +1262,10 @@ MANUAL_DIST:
|
|||||||
PYTHON_DIST:
|
PYTHON_DIST:
|
||||||
mkdir $(DISTDIR)/wxPython
|
mkdir $(DISTDIR)/wxPython
|
||||||
mkdir $(DISTDIR)/wxPython/contrib
|
mkdir $(DISTDIR)/wxPython/contrib
|
||||||
mkdir $(DISTDIR)/wxPython/contrib/gizmos
|
|
||||||
mkdir $(DISTDIR)/wxPython/contrib/glcanvas
|
mkdir $(DISTDIR)/wxPython/contrib/glcanvas
|
||||||
mkdir $(DISTDIR)/wxPython/contrib/glcanvas/gtk
|
mkdir $(DISTDIR)/wxPython/contrib/glcanvas/gtk
|
||||||
mkdir $(DISTDIR)/wxPython/contrib/ogl
|
mkdir $(DISTDIR)/wxPython/contrib/ogl
|
||||||
mkdir $(DISTDIR)/wxPython/contrib/stc
|
mkdir $(DISTDIR)/wxPython/contrib/stc
|
||||||
mkdir $(DISTDIR)/wxPython/contrib/stc/gtk
|
|
||||||
mkdir $(DISTDIR)/wxPython/contrib/xrc
|
|
||||||
mkdir $(DISTDIR)/wxPython/demo
|
mkdir $(DISTDIR)/wxPython/demo
|
||||||
mkdir $(DISTDIR)/wxPython/demo/bitmaps
|
mkdir $(DISTDIR)/wxPython/demo/bitmaps
|
||||||
mkdir $(DISTDIR)/wxPython/demo/data
|
mkdir $(DISTDIR)/wxPython/demo/data
|
||||||
@@ -1326,19 +1274,16 @@ PYTHON_DIST:
|
|||||||
mkdir $(DISTDIR)/wxPython/wxPython
|
mkdir $(DISTDIR)/wxPython/wxPython
|
||||||
mkdir $(DISTDIR)/wxPython/wxPython/lib
|
mkdir $(DISTDIR)/wxPython/wxPython/lib
|
||||||
mkdir $(DISTDIR)/wxPython/wxPython/lib/editor
|
mkdir $(DISTDIR)/wxPython/wxPython/lib/editor
|
||||||
mkdir $(DISTDIR)/wxPython/wxPython/lib/mixins
|
mkdir $(DISTDIR)/wxPython/wxPython/lib/sizers
|
||||||
|
|
||||||
cp $(WXDIR)/wxPython/*.txt $(DISTDIR)/wxPython
|
cp $(WXDIR)/wxPython/*.txt $(DISTDIR)/wxPython
|
||||||
cp $(WXDIR)/wxPython/*.py $(DISTDIR)/wxPython
|
cp $(WXDIR)/wxPython/*.py $(DISTDIR)/wxPython
|
||||||
cp $(WXDIR)/wxPython/setup.cfg $(DISTDIR)/wxPython
|
cp $(WXDIR)/wxPython/setup.cfg $(DISTDIR)/wxPython
|
||||||
cp $(WXDIR)/wxPython/MANIFEST.in $(DISTDIR)/wxPython
|
cp $(WXDIR)/wxPython/MANIFEST.in $(DISTDIR)/wxPython
|
||||||
cp $(WXDIR)/wxPython/contrib/gizmos/*.{py,cpp,i} $(DISTDIR)/wxPython/contrib/gizmos
|
|
||||||
-cp $(WXDIR)/wxPython/contrib/glcanvas/* $(DISTDIR)/wxPython/contrib/glcanvas
|
-cp $(WXDIR)/wxPython/contrib/glcanvas/* $(DISTDIR)/wxPython/contrib/glcanvas
|
||||||
cp $(WXDIR)/wxPython/contrib/glcanvas/gtk/glcanvas.* $(DISTDIR)/wxPython/contrib/glcanvas/gtk
|
cp $(WXDIR)/wxPython/contrib/glcanvas/gtk/glcanvas.* $(DISTDIR)/wxPython/contrib/glcanvas/gtk
|
||||||
-cp $(WXDIR)/wxPython/contrib/ogl/* $(DISTDIR)/wxPython/contrib/ogl
|
-cp $(WXDIR)/wxPython/contrib/ogl/* $(DISTDIR)/wxPython/contrib/ogl
|
||||||
-cp $(WXDIR)/wxPython/contrib/stc/* $(DISTDIR)/wxPython/contrib/stc
|
-cp $(WXDIR)/wxPython/contrib/stc/* $(DISTDIR)/wxPython/contrib/stc
|
||||||
-cp $(WXDIR)/wxPython/contrib/stc/gtk/* $(DISTDIR)/wxPython/contrib/stc/gtk
|
|
||||||
-cp $(WXDIR)/wxPython/contrib/xrc/xrc.* $(DISTDIR)/wxPython/contrib/xrc
|
|
||||||
-cp $(WXDIR)/wxPython/demo/* $(DISTDIR)/wxPython/demo
|
-cp $(WXDIR)/wxPython/demo/* $(DISTDIR)/wxPython/demo
|
||||||
-cp $(WXDIR)/wxPython/demo/bitmaps/* $(DISTDIR)/wxPython/demo/bitmaps
|
-cp $(WXDIR)/wxPython/demo/bitmaps/* $(DISTDIR)/wxPython/demo/bitmaps
|
||||||
-cp $(WXDIR)/wxPython/demo/data/* $(DISTDIR)/wxPython/demo/data
|
-cp $(WXDIR)/wxPython/demo/data/* $(DISTDIR)/wxPython/demo/data
|
||||||
@@ -1347,7 +1292,6 @@ PYTHON_DIST:
|
|||||||
cp $(WXDIR)/wxPython/src/gtk/*.cpp $(DISTDIR)/wxPython/src/gtk
|
cp $(WXDIR)/wxPython/src/gtk/*.cpp $(DISTDIR)/wxPython/src/gtk
|
||||||
cp $(WXDIR)/wxPython/wxPython/lib/*.py $(DISTDIR)/wxPython/wxPython/lib
|
cp $(WXDIR)/wxPython/wxPython/lib/*.py $(DISTDIR)/wxPython/wxPython/lib
|
||||||
cp $(WXDIR)/wxPython/wxPython/lib/editor/*.py $(DISTDIR)/wxPython/wxPython/lib/editor
|
cp $(WXDIR)/wxPython/wxPython/lib/editor/*.py $(DISTDIR)/wxPython/wxPython/lib/editor
|
||||||
cp $(WXDIR)/wxPython/wxPython/lib/mixins/*.py $(DISTDIR)/wxPython/wxPython/lib/mixins
|
|
||||||
|
|
||||||
distclean:
|
distclean:
|
||||||
$(RM) -r _dist_dir
|
$(RM) -r _dist_dir
|
||||||
@@ -1370,6 +1314,7 @@ dist-only:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
dist: @GUIDIST@
|
dist: @GUIDIST@
|
||||||
|
cp $(WXDIR)/src/files.lst $(DISTDIR)/src
|
||||||
@echo "*** Creating wxWindows distribution in $(DISTDIR)..."
|
@echo "*** Creating wxWindows distribution in $(DISTDIR)..."
|
||||||
@cd _dist_dir && tar ch $(DISTDIRNAME) | gzip -f9 > ../$(WXARCHIVE);
|
@cd _dist_dir && tar ch $(DISTDIRNAME) | gzip -f9 > ../$(WXARCHIVE);
|
||||||
@if test "$(USE_GUI)" = 1; then \
|
@if test "$(USE_GUI)" = 1; then \
|
||||||
@@ -1400,6 +1345,7 @@ bzip-dist-only:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
bzip-dist: @GUIDIST@
|
bzip-dist: @GUIDIST@
|
||||||
|
cp $(WXDIR)/src/files.lst $(DISTDIR)/src/
|
||||||
@echo "*** Creating wxWindows distribution in $(DISTDIR)..."
|
@echo "*** Creating wxWindows distribution in $(DISTDIR)..."
|
||||||
@cd _dist_dir && tar ch $(DISTDIRNAME) | bzip2 -f9 > ../$(WXARCHIVE_BZIP)
|
@cd _dist_dir && tar ch $(DISTDIRNAME) | bzip2 -f9 > ../$(WXARCHIVE_BZIP)
|
||||||
@if test "$(USE_GUI)" = 1; then \
|
@if test "$(USE_GUI)" = 1; then \
|
||||||
@@ -1412,48 +1358,31 @@ bzip-dist: @GUIDIST@
|
|||||||
mv wxDemos demos; \
|
mv wxDemos demos; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
debian-dist: debian-native-dist debian-msw-dirs MSW_DIST
|
debian-dist: @GUIDIST@ MANUAL_DIST PYTHON_DIST
|
||||||
mkdir $(DISTDIR)/debian
|
mkdir $(DISTDIR)/debian
|
||||||
-cp $(WXDIR)/debian/* $(DISTDIR)/debian
|
-cp $(WXDIR)/debian/* $(DISTDIR)/debian
|
||||||
|
cp $(WXDIR)/src/files.lst $(DISTDIR)/src/
|
||||||
cp $(DOCDIR)/licence.txt $(DISTDIR)/docs
|
cp $(DOCDIR)/licence.txt $(DISTDIR)/docs
|
||||||
cp $(DOCDIR)/licendoc.txt $(DISTDIR)/docs
|
cp $(DOCDIR)/licendoc.txt $(DISTDIR)/docs
|
||||||
cp $(DOCDIR)/preamble.txt $(DISTDIR)/docs
|
cp $(DOCDIR)/preamble.txt $(DISTDIR)/docs
|
||||||
rm -f $(DISTDIR)/*.spec
|
rm -f $(DISTDIR)/*.spec
|
||||||
|
|
||||||
@# now prune away a lot of the crap included by using cp -R
|
|
||||||
@# in other dist targets. Ugly and hardly portable but it
|
|
||||||
@# will run on any Debian box and that's enough for now.
|
|
||||||
|
|
||||||
find $(DISTDIR) \( -name "CVS" -o -name ".cvsignore" -o -name "*.dsp" -o -name "*.dsw" -o -name "*.hh*" -o \
|
|
||||||
\( -name "makefile.*" -a ! -name "makefile.unx" \) \) \
|
|
||||||
-print0 | xargs -0 rm -rf
|
|
||||||
|
|
||||||
rm -rf $(WXDIR)/../wxwindows$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER)-$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER).$(WX_RELEASE_NUMBER)
|
rm -rf $(WXDIR)/../wxwindows$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER)-$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER).$(WX_RELEASE_NUMBER)
|
||||||
mv $(DISTDIR) $(WXDIR)/../wxwindows$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER)-$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER).$(WX_RELEASE_NUMBER)
|
mv $(DISTDIR) $(WXDIR)/../wxwindows$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER)-$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER).$(WX_RELEASE_NUMBER)
|
||||||
|
|
||||||
debian-native-dist: @GUIDIST@ UNIV_DIST MANUAL_DIST PYTHON_DIST
|
|
||||||
|
|
||||||
debian-msw-dirs:
|
|
||||||
mkdir $(DISTDIR)/include/wx/msw
|
|
||||||
mkdir $(DISTDIR)/src/msw
|
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) *.o
|
$(RM) *.o
|
||||||
$(RM) *.d
|
$(RM) *.d
|
||||||
$(RM) parser.c
|
$(RM) parser.c
|
||||||
$(RM) lexer.c
|
$(RM) lexer.c
|
||||||
$(RM) $(build_libdir)/lib*
|
# $(RM) -r ./lib/wx/*
|
||||||
# Don't remove this lot, configure will reuse it
|
$(RM) ./lib/lib*
|
||||||
# if it's still good
|
|
||||||
# $(RM) -r $(build_libdir)/wx/*
|
|
||||||
|
|
||||||
cleanall: clean
|
cleanall: clean
|
||||||
|
|
||||||
|
|
||||||
RPMTOP=_dist_dir/_rpm_top
|
RPMTOP=_dist_dir/_rpm_top
|
||||||
|
|
||||||
rpm: bzip-dist
|
rpm: dist
|
||||||
@echo "*** Building RPMs ***"
|
@echo "*** Building RPMs ***"
|
||||||
-mkdir $(RPMTOP)
|
-mkdir $(RPMTOP)
|
||||||
-mkdir $(RPMTOP)/SOURCES
|
-mkdir $(RPMTOP)/SOURCES
|
||||||
@@ -1461,7 +1390,6 @@ rpm: bzip-dist
|
|||||||
-mkdir $(RPMTOP)/BUILD
|
-mkdir $(RPMTOP)/BUILD
|
||||||
-mkdir $(RPMTOP)/RPMS
|
-mkdir $(RPMTOP)/RPMS
|
||||||
-mkdir $(RPMTOP)/SRPMS
|
-mkdir $(RPMTOP)/SRPMS
|
||||||
cp -f $(WXARCHIVE_BZIP) $(RPMTOP)/SOURCES
|
cp -f $(WXARCHIVE) $(RPMTOP)/SOURCES
|
||||||
rpm -ba --define "_topdir `pwd`/$(RPMTOP)" $(WXDIR)/wx$(TOOLKIT).spec
|
rpm -ba --define "_topdir `pwd`/$(RPMTOP)" $(WXDIR)/wx$(TOOLKIT).spec
|
||||||
mv -f `find $(RPMTOP) -name "wx$(TARGET)*.rpm"` .
|
mv -f `find $(RPMTOP) -name "wx$(TARGET)*.rpm"` .
|
||||||
|
|
||||||
|
546
config.guess
vendored
546
config.guess
vendored
@@ -1,9 +1,9 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# Attempt to guess a canonical system name.
|
# Attempt to guess a canonical system name.
|
||||||
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
|
||||||
# Free Software Foundation, Inc.
|
# Free Software Foundation, Inc.
|
||||||
|
|
||||||
timestamp='2001-09-04'
|
version='2000-10-23'
|
||||||
|
|
||||||
# This file is free software; you can redistribute it and/or modify it
|
# This file is free software; you can redistribute it and/or modify it
|
||||||
# under the terms of the GNU General Public License as published by
|
# under the terms of the GNU General Public License as published by
|
||||||
@@ -32,41 +32,30 @@ timestamp='2001-09-04'
|
|||||||
# exits with 0. Otherwise, it exits with 1.
|
# exits with 0. Otherwise, it exits with 1.
|
||||||
#
|
#
|
||||||
# The plan is that this can be called by configure scripts if you
|
# The plan is that this can be called by configure scripts if you
|
||||||
# don't specify an explicit build system type.
|
# don't specify an explicit system type (host/target name).
|
||||||
|
#
|
||||||
|
# Only a few systems have been added to this list; please add others
|
||||||
|
# (but try to keep the structure clean).
|
||||||
|
#
|
||||||
|
|
||||||
me=`echo "$0" | sed -e 's,.*/,,'`
|
me=`echo "$0" | sed -e 's,.*/,,'`
|
||||||
|
|
||||||
usage="\
|
usage="\
|
||||||
Usage: $0 [OPTION]
|
Usage: $0 [OPTION]
|
||||||
|
|
||||||
Output the configuration name of the system \`$me' is run on.
|
Output the configuration name of this system.
|
||||||
|
|
||||||
Operation modes:
|
Operation modes:
|
||||||
-h, --help print this help, then exit
|
-h, --help print this help, then exit
|
||||||
-t, --time-stamp print date of last modification, then exit
|
-V, --version print version number, then exit"
|
||||||
-v, --version print version number, then exit
|
|
||||||
|
|
||||||
Report bugs and patches to <config-patches@gnu.org>."
|
|
||||||
|
|
||||||
version="\
|
|
||||||
GNU config.guess ($timestamp)
|
|
||||||
|
|
||||||
Originally written by Per Bothner.
|
|
||||||
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
|
||||||
Free Software Foundation, Inc.
|
|
||||||
|
|
||||||
This is free software; see the source for copying conditions. There is NO
|
|
||||||
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
|
||||||
|
|
||||||
help="
|
help="
|
||||||
Try \`$me --help' for more information."
|
Try \`$me --help' for more information."
|
||||||
|
|
||||||
# Parse command line
|
# Parse command line
|
||||||
while test $# -gt 0 ; do
|
while test $# -gt 0 ; do
|
||||||
case $1 in
|
case "$1" in
|
||||||
--time-stamp | --time* | -t )
|
--version | --vers* | -V )
|
||||||
echo "$timestamp" ; exit 0 ;;
|
|
||||||
--version | -v )
|
|
||||||
echo "$version" ; exit 0 ;;
|
echo "$version" ; exit 0 ;;
|
||||||
--help | --h* | -h )
|
--help | --h* | -h )
|
||||||
echo "$usage"; exit 0 ;;
|
echo "$usage"; exit 0 ;;
|
||||||
@@ -75,7 +64,9 @@ while test $# -gt 0 ; do
|
|||||||
- ) # Use stdin as input.
|
- ) # Use stdin as input.
|
||||||
break ;;
|
break ;;
|
||||||
-* )
|
-* )
|
||||||
echo "$me: invalid option $1$help" >&2
|
exec >&2
|
||||||
|
echo "$me: invalid option $1"
|
||||||
|
echo "$help"
|
||||||
exit 1 ;;
|
exit 1 ;;
|
||||||
* )
|
* )
|
||||||
break ;;
|
break ;;
|
||||||
@@ -87,33 +78,22 @@ if test $# != 0; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Use $HOST_CC if defined. $CC may point to a cross-compiler
|
||||||
dummy=dummy-$$
|
|
||||||
trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15
|
|
||||||
|
|
||||||
# CC_FOR_BUILD -- compiler used by this script.
|
|
||||||
# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
|
|
||||||
# use `HOST_CC' if defined, but it is deprecated.
|
|
||||||
|
|
||||||
set_cc_for_build='case $CC_FOR_BUILD,$HOST_CC,$CC in
|
|
||||||
,,) echo "int dummy(){}" > $dummy.c ;
|
|
||||||
for c in cc gcc c89 ; do
|
|
||||||
($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ;
|
|
||||||
if test $? = 0 ; then
|
|
||||||
CC_FOR_BUILD="$c"; break ;
|
|
||||||
fi ;
|
|
||||||
done ;
|
|
||||||
rm -f $dummy.c $dummy.o $dummy.rel ;
|
|
||||||
if test x"$CC_FOR_BUILD" = x; then
|
if test x"$CC_FOR_BUILD" = x; then
|
||||||
CC_FOR_BUILD=no_compiler_found ;
|
if test x"$HOST_CC" != x; then
|
||||||
|
CC_FOR_BUILD="$HOST_CC"
|
||||||
|
else
|
||||||
|
if test x"$CC" != x; then
|
||||||
|
CC_FOR_BUILD="$CC"
|
||||||
|
else
|
||||||
|
CC_FOR_BUILD=cc
|
||||||
fi
|
fi
|
||||||
;;
|
fi
|
||||||
,,*) CC_FOR_BUILD=$CC ;;
|
fi
|
||||||
,*,*) CC_FOR_BUILD=$HOST_CC ;;
|
|
||||||
esac'
|
|
||||||
|
|
||||||
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
|
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
|
||||||
# (ghazi@noc.rutgers.edu 1994-08-24)
|
# (ghazi@noc.rutgers.edu 8/24/94.)
|
||||||
if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
|
if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
|
||||||
PATH=$PATH:/.attbin ; export PATH
|
PATH=$PATH:/.attbin ; export PATH
|
||||||
fi
|
fi
|
||||||
@@ -123,6 +103,9 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
|
|||||||
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
|
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
|
||||||
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
|
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
|
||||||
|
|
||||||
|
dummy=dummy-$$
|
||||||
|
trap 'rm -f $dummy.c $dummy.o $dummy; exit 1' 1 2 15
|
||||||
|
|
||||||
# Note: order is significant - the case branches are not exclusive.
|
# Note: order is significant - the case branches are not exclusive.
|
||||||
|
|
||||||
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
||||||
@@ -146,11 +129,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|||||||
ibmrt|romp-ibm) machine=romp-ibm ;;
|
ibmrt|romp-ibm) machine=romp-ibm ;;
|
||||||
*) machine=${UNAME_MACHINE}-unknown ;;
|
*) machine=${UNAME_MACHINE}-unknown ;;
|
||||||
esac
|
esac
|
||||||
# The Operating System including object format, if it has switched
|
# The Operating System including object format.
|
||||||
# to ELF recently, or will in the future.
|
|
||||||
case "${UNAME_MACHINE}" in
|
|
||||||
i386|sparc|amiga|arm*|hp300|mvme68k|vax|atari|luna68k|mac68k|news68k|next68k|pc532|sun3*|x68k)
|
|
||||||
eval $set_cc_for_build
|
|
||||||
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
||||||
| grep __ELF__ >/dev/null
|
| grep __ELF__ >/dev/null
|
||||||
then
|
then
|
||||||
@@ -160,11 +139,6 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|||||||
else
|
else
|
||||||
os=netbsdelf
|
os=netbsdelf
|
||||||
fi
|
fi
|
||||||
;;
|
|
||||||
*)
|
|
||||||
os=netbsd
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
# The OS release
|
# The OS release
|
||||||
release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
|
release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
|
||||||
# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
|
# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
|
||||||
@@ -205,7 +179,6 @@ main:
|
|||||||
jsr \$26,exit
|
jsr \$26,exit
|
||||||
.end main
|
.end main
|
||||||
EOF
|
EOF
|
||||||
eval $set_cc_for_build
|
|
||||||
$CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
|
$CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
|
||||||
if test "$?" = 0 ; then
|
if test "$?" = 0 ; then
|
||||||
case `./$dummy` in
|
case `./$dummy` in
|
||||||
@@ -227,9 +200,6 @@ EOF
|
|||||||
2-307)
|
2-307)
|
||||||
UNAME_MACHINE="alphaev67"
|
UNAME_MACHINE="alphaev67"
|
||||||
;;
|
;;
|
||||||
2-1307)
|
|
||||||
UNAME_MACHINE="alphaev68"
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
rm -f $dummy.s $dummy
|
rm -f $dummy.s $dummy
|
||||||
@@ -277,7 +247,7 @@ EOF
|
|||||||
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
|
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
|
||||||
echo arm-acorn-riscix${UNAME_RELEASE}
|
echo arm-acorn-riscix${UNAME_RELEASE}
|
||||||
exit 0;;
|
exit 0;;
|
||||||
SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
|
SR2?01:HI-UX/MPP:*:*)
|
||||||
echo hppa1.1-hitachi-hiuxmpp
|
echo hppa1.1-hitachi-hiuxmpp
|
||||||
exit 0;;
|
exit 0;;
|
||||||
Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
|
Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
|
||||||
@@ -333,9 +303,6 @@ EOF
|
|||||||
aushp:SunOS:*:*)
|
aushp:SunOS:*:*)
|
||||||
echo sparc-auspex-sunos${UNAME_RELEASE}
|
echo sparc-auspex-sunos${UNAME_RELEASE}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
sparc*:NetBSD:*)
|
|
||||||
echo `uname -p`-unknown-netbsd${UNAME_RELEASE}
|
|
||||||
exit 0 ;;
|
|
||||||
atari*:OpenBSD:*:*)
|
atari*:OpenBSD:*:*)
|
||||||
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
@@ -393,7 +360,6 @@ EOF
|
|||||||
echo clipper-intergraph-clix${UNAME_RELEASE}
|
echo clipper-intergraph-clix${UNAME_RELEASE}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
mips:*:*:UMIPS | mips:*:*:RISCos)
|
mips:*:*:UMIPS | mips:*:*:RISCos)
|
||||||
eval $set_cc_for_build
|
|
||||||
sed 's/^ //' << EOF >$dummy.c
|
sed 's/^ //' << EOF >$dummy.c
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
#include <stdio.h> /* for printf() prototype */
|
#include <stdio.h> /* for printf() prototype */
|
||||||
@@ -417,13 +383,10 @@ EOF
|
|||||||
EOF
|
EOF
|
||||||
$CC_FOR_BUILD $dummy.c -o $dummy \
|
$CC_FOR_BUILD $dummy.c -o $dummy \
|
||||||
&& ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
|
&& ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
|
||||||
&& rm -f $dummy.c $dummy && exit 0
|
&& rm $dummy.c $dummy && exit 0
|
||||||
rm -f $dummy.c $dummy
|
rm -f $dummy.c $dummy
|
||||||
echo mips-mips-riscos${UNAME_RELEASE}
|
echo mips-mips-riscos${UNAME_RELEASE}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
Motorola:PowerMAX_OS:*:*)
|
|
||||||
echo powerpc-motorola-powermax
|
|
||||||
exit 0 ;;
|
|
||||||
Night_Hawk:Power_UNIX:*:*)
|
Night_Hawk:Power_UNIX:*:*)
|
||||||
echo powerpc-harris-powerunix
|
echo powerpc-harris-powerunix
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
@@ -471,20 +434,11 @@ EOF
|
|||||||
????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
|
????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
|
||||||
echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
|
echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
|
||||||
exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
|
exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
|
||||||
i*86:AIX:*:*)
|
i?86:AIX:*:*)
|
||||||
echo i386-ibm-aix
|
echo i386-ibm-aix
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
ia64:AIX:*:*)
|
|
||||||
if [ -x /usr/bin/oslevel ] ; then
|
|
||||||
IBM_REV=`/usr/bin/oslevel`
|
|
||||||
else
|
|
||||||
IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
|
|
||||||
fi
|
|
||||||
echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
|
|
||||||
exit 0 ;;
|
|
||||||
*:AIX:2:3)
|
*:AIX:2:3)
|
||||||
if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
|
if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
|
||||||
eval $set_cc_for_build
|
|
||||||
sed 's/^ //' << EOF >$dummy.c
|
sed 's/^ //' << EOF >$dummy.c
|
||||||
#include <sys/systemcfg.h>
|
#include <sys/systemcfg.h>
|
||||||
|
|
||||||
@@ -496,7 +450,7 @@ EOF
|
|||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
$CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
|
$CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0
|
||||||
rm -f $dummy.c $dummy
|
rm -f $dummy.c $dummy
|
||||||
echo rs6000-ibm-aix3.2.5
|
echo rs6000-ibm-aix3.2.5
|
||||||
elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
|
elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
|
||||||
@@ -505,9 +459,9 @@ EOF
|
|||||||
echo rs6000-ibm-aix3.2
|
echo rs6000-ibm-aix3.2
|
||||||
fi
|
fi
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
*:AIX:*:[45])
|
*:AIX:*:4)
|
||||||
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'`
|
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'`
|
||||||
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
|
if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER >/dev/null 2>&1; then
|
||||||
IBM_ARCH=rs6000
|
IBM_ARCH=rs6000
|
||||||
else
|
else
|
||||||
IBM_ARCH=powerpc
|
IBM_ARCH=powerpc
|
||||||
@@ -515,7 +469,7 @@ EOF
|
|||||||
if [ -x /usr/bin/oslevel ] ; then
|
if [ -x /usr/bin/oslevel ] ; then
|
||||||
IBM_REV=`/usr/bin/oslevel`
|
IBM_REV=`/usr/bin/oslevel`
|
||||||
else
|
else
|
||||||
IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
|
IBM_REV=4.${UNAME_RELEASE}
|
||||||
fi
|
fi
|
||||||
echo ${IBM_ARCH}-ibm-aix${IBM_REV}
|
echo ${IBM_ARCH}-ibm-aix${IBM_REV}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
@@ -541,29 +495,10 @@ EOF
|
|||||||
echo m68k-hp-bsd4.4
|
echo m68k-hp-bsd4.4
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
9000/[34678]??:HP-UX:*:*)
|
9000/[34678]??:HP-UX:*:*)
|
||||||
HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
|
|
||||||
case "${UNAME_MACHINE}" in
|
case "${UNAME_MACHINE}" in
|
||||||
9000/31? ) HP_ARCH=m68000 ;;
|
9000/31? ) HP_ARCH=m68000 ;;
|
||||||
9000/[34]?? ) HP_ARCH=m68k ;;
|
9000/[34]?? ) HP_ARCH=m68k ;;
|
||||||
9000/[678][0-9][0-9])
|
9000/[678][0-9][0-9])
|
||||||
case "${HPUX_REV}" in
|
|
||||||
11.[0-9][0-9])
|
|
||||||
if [ -x /usr/bin/getconf ]; then
|
|
||||||
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
|
|
||||||
sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
|
|
||||||
case "${sc_cpu_version}" in
|
|
||||||
523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
|
|
||||||
528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
|
|
||||||
532) # CPU_PA_RISC2_0
|
|
||||||
case "${sc_kernel_bits}" in
|
|
||||||
32) HP_ARCH="hppa2.0n" ;;
|
|
||||||
64) HP_ARCH="hppa2.0w" ;;
|
|
||||||
esac ;;
|
|
||||||
esac
|
|
||||||
fi ;;
|
|
||||||
esac
|
|
||||||
if [ "${HP_ARCH}" = "" ]; then
|
|
||||||
eval $set_cc_for_build
|
|
||||||
sed 's/^ //' << EOF >$dummy.c
|
sed 's/^ //' << EOF >$dummy.c
|
||||||
|
|
||||||
#define _HPUX_SOURCE
|
#define _HPUX_SOURCE
|
||||||
@@ -598,18 +533,12 @@ EOF
|
|||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
(CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy`
|
(CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy`
|
||||||
if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
|
|
||||||
rm -f $dummy.c $dummy
|
rm -f $dummy.c $dummy
|
||||||
fi ;;
|
|
||||||
esac
|
esac
|
||||||
|
HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
|
||||||
echo ${HP_ARCH}-hp-hpux${HPUX_REV}
|
echo ${HP_ARCH}-hp-hpux${HPUX_REV}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
ia64:HP-UX:*:*)
|
|
||||||
HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
|
|
||||||
echo ia64-hp-hpux${HPUX_REV}
|
|
||||||
exit 0 ;;
|
|
||||||
3050*:HI-UX:*:*)
|
3050*:HI-UX:*:*)
|
||||||
eval $set_cc_for_build
|
|
||||||
sed 's/^ //' << EOF >$dummy.c
|
sed 's/^ //' << EOF >$dummy.c
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
int
|
int
|
||||||
@@ -635,7 +564,7 @@ EOF
|
|||||||
exit (0);
|
exit (0);
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
$CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
|
$CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0
|
||||||
rm -f $dummy.c $dummy
|
rm -f $dummy.c $dummy
|
||||||
echo unknown-hitachi-hiuxwe2
|
echo unknown-hitachi-hiuxwe2
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
@@ -645,7 +574,7 @@ EOF
|
|||||||
9000/8??:4.3bsd:*:*)
|
9000/8??:4.3bsd:*:*)
|
||||||
echo hppa1.0-hp-bsd
|
echo hppa1.0-hp-bsd
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
*9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
|
*9??*:MPE/iX:*:*)
|
||||||
echo hppa1.0-hp-mpeix
|
echo hppa1.0-hp-mpeix
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
|
hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
|
||||||
@@ -654,7 +583,7 @@ EOF
|
|||||||
hp8??:OSF1:*:*)
|
hp8??:OSF1:*:*)
|
||||||
echo hppa1.0-hp-osf
|
echo hppa1.0-hp-osf
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
i*86:OSF1:*:*)
|
i?86:OSF1:*:*)
|
||||||
if [ -x /usr/sbin/sysversion ] ; then
|
if [ -x /usr/sbin/sysversion ] ; then
|
||||||
echo ${UNAME_MACHINE}-unknown-osf1mk
|
echo ${UNAME_MACHINE}-unknown-osf1mk
|
||||||
else
|
else
|
||||||
@@ -689,22 +618,18 @@ EOF
|
|||||||
echo xmp-cray-unicos
|
echo xmp-cray-unicos
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
CRAY*Y-MP:*:*:*)
|
CRAY*Y-MP:*:*:*)
|
||||||
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
echo ymp-cray-unicos${UNAME_RELEASE}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
CRAY*[A-Z]90:*:*:*)
|
CRAY*[A-Z]90:*:*:*)
|
||||||
echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
|
echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
|
||||||
| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
|
| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
|
||||||
-e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
|
-e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
|
||||||
-e 's/\.[^.]*$/.X/'
|
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
CRAY*TS:*:*:*)
|
CRAY*TS:*:*:*)
|
||||||
echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
CRAY*T3D:*:*:*)
|
|
||||||
echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
|
||||||
exit 0 ;;
|
|
||||||
CRAY*T3E:*:*:*)
|
CRAY*T3E:*:*:*)
|
||||||
echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
CRAY*SV1:*:*:*)
|
CRAY*SV1:*:*:*)
|
||||||
echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
||||||
@@ -712,16 +637,18 @@ EOF
|
|||||||
CRAY-2:*:*:*)
|
CRAY-2:*:*:*)
|
||||||
echo cray2-cray-unicos
|
echo cray2-cray-unicos
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
|
F300:UNIX_System_V:*:*)
|
||||||
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
|
||||||
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
||||||
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
|
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
|
||||||
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
||||||
|
exit 0 ;;
|
||||||
|
F301:UNIX_System_V:*:*)
|
||||||
|
echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'`
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
hp300:OpenBSD:*:*)
|
hp300:OpenBSD:*:*)
|
||||||
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
|
i?86:BSD/386:*:* | i?86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
|
||||||
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
|
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
sparc*:BSD/OS:*:*)
|
sparc*:BSD/OS:*:*)
|
||||||
@@ -766,92 +693,204 @@ EOF
|
|||||||
i*86:Minix:*:*)
|
i*86:Minix:*:*)
|
||||||
echo ${UNAME_MACHINE}-pc-minix
|
echo ${UNAME_MACHINE}-pc-minix
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
arm*:Linux:*:*)
|
*:Linux:*:*)
|
||||||
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
||||||
exit 0 ;;
|
|
||||||
ia64:Linux:*:*)
|
|
||||||
echo ${UNAME_MACHINE}-unknown-linux
|
|
||||||
exit 0 ;;
|
|
||||||
m68*:Linux:*:*)
|
|
||||||
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
||||||
exit 0 ;;
|
|
||||||
mips:Linux:*:*)
|
|
||||||
case `sed -n '/^byte/s/^.*: \(.*\) endian/\1/p' < /proc/cpuinfo` in
|
|
||||||
big) echo mips-unknown-linux-gnu && exit 0 ;;
|
|
||||||
little) echo mipsel-unknown-linux-gnu && exit 0 ;;
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
ppc:Linux:*:*)
|
|
||||||
echo powerpc-unknown-linux-gnu
|
|
||||||
exit 0 ;;
|
|
||||||
ppc64:Linux:*:*)
|
|
||||||
echo powerpc64-unknown-linux-gnu
|
|
||||||
exit 0 ;;
|
|
||||||
alpha:Linux:*:*)
|
|
||||||
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
|
|
||||||
EV5) UNAME_MACHINE=alphaev5 ;;
|
|
||||||
EV56) UNAME_MACHINE=alphaev56 ;;
|
|
||||||
PCA56) UNAME_MACHINE=alphapca56 ;;
|
|
||||||
PCA57) UNAME_MACHINE=alphapca56 ;;
|
|
||||||
EV6) UNAME_MACHINE=alphaev6 ;;
|
|
||||||
EV67) UNAME_MACHINE=alphaev67 ;;
|
|
||||||
EV68*) UNAME_MACHINE=alphaev68 ;;
|
|
||||||
esac
|
|
||||||
objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
|
|
||||||
if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
|
|
||||||
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
|
|
||||||
exit 0 ;;
|
|
||||||
parisc:Linux:*:* | hppa:Linux:*:*)
|
|
||||||
# Look for CPU level
|
|
||||||
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
|
|
||||||
PA7*) echo hppa1.1-unknown-linux-gnu ;;
|
|
||||||
PA8*) echo hppa2.0-unknown-linux-gnu ;;
|
|
||||||
*) echo hppa-unknown-linux-gnu ;;
|
|
||||||
esac
|
|
||||||
exit 0 ;;
|
|
||||||
parisc64:Linux:*:* | hppa64:Linux:*:*)
|
|
||||||
echo hppa64-unknown-linux-gnu
|
|
||||||
exit 0 ;;
|
|
||||||
s390:Linux:*:* | s390x:Linux:*:*)
|
|
||||||
echo ${UNAME_MACHINE}-ibm-linux
|
|
||||||
exit 0 ;;
|
|
||||||
sh*:Linux:*:*)
|
|
||||||
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
||||||
exit 0 ;;
|
|
||||||
sparc:Linux:*:* | sparc64:Linux:*:*)
|
|
||||||
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
||||||
exit 0 ;;
|
|
||||||
x86_64:Linux:*:*)
|
|
||||||
echo x86_64-unknown-linux-gnu
|
|
||||||
exit 0 ;;
|
|
||||||
i*86:Linux:*:*)
|
|
||||||
# The BFD linker knows what the default object file format is, so
|
# The BFD linker knows what the default object file format is, so
|
||||||
# first see if it will tell us. cd to the root directory to prevent
|
# first see if it will tell us. cd to the root directory to prevent
|
||||||
# problems with other programs or directories called `ld' in the path.
|
# problems with other programs or directories called `ld' in the path.
|
||||||
ld_supported_targets=`cd /; ld --help 2>&1 \
|
ld_supported_emulations=`cd /; ld --help 2>&1 \
|
||||||
| sed -ne '/supported targets:/!d
|
| sed -ne '/supported emulations:/!d
|
||||||
s/[ ][ ]*/ /g
|
s/[ ][ ]*/ /g
|
||||||
s/.*supported targets: *//
|
s/.*supported emulations: *//
|
||||||
s/ .*//
|
s/ .*//
|
||||||
p'`
|
p'`
|
||||||
case "$ld_supported_targets" in
|
case "$ld_supported_emulations" in
|
||||||
elf32-i386)
|
*ia64)
|
||||||
|
echo "${UNAME_MACHINE}-unknown-linux"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
i?86linux)
|
||||||
|
echo "${UNAME_MACHINE}-pc-linux-gnuaout"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
elf_i?86)
|
||||||
TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
|
TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
|
||||||
;;
|
;;
|
||||||
a.out-i386-linux)
|
i?86coff)
|
||||||
echo "${UNAME_MACHINE}-pc-linux-gnuaout"
|
|
||||||
exit 0 ;;
|
|
||||||
coff-i386)
|
|
||||||
echo "${UNAME_MACHINE}-pc-linux-gnucoff"
|
echo "${UNAME_MACHINE}-pc-linux-gnucoff"
|
||||||
exit 0 ;;
|
exit 0
|
||||||
"")
|
;;
|
||||||
# Either a pre-BFD a.out linker (linux-gnuoldld) or
|
sparclinux)
|
||||||
# one that does not give us useful --help.
|
echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
|
||||||
echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
|
exit 0
|
||||||
exit 0 ;;
|
;;
|
||||||
|
armlinux)
|
||||||
|
echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
elf32arm*)
|
||||||
|
echo "${UNAME_MACHINE}-unknown-linux-gnuoldld"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
armelf_linux*)
|
||||||
|
echo "${UNAME_MACHINE}-unknown-linux-gnu"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
m68klinux)
|
||||||
|
echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
elf32ppc | elf32ppclinux)
|
||||||
|
# Determine Lib Version
|
||||||
|
cat >$dummy.c <<EOF
|
||||||
|
#include <features.h>
|
||||||
|
#if defined(__GLIBC__)
|
||||||
|
extern char __libc_version[];
|
||||||
|
extern char __libc_release[];
|
||||||
|
#endif
|
||||||
|
main(argc, argv)
|
||||||
|
int argc;
|
||||||
|
char *argv[];
|
||||||
|
{
|
||||||
|
#if defined(__GLIBC__)
|
||||||
|
printf("%s %s\n", __libc_version, __libc_release);
|
||||||
|
#else
|
||||||
|
printf("unkown\n");
|
||||||
|
#endif
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
LIBC=""
|
||||||
|
$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null
|
||||||
|
if test "$?" = 0 ; then
|
||||||
|
./$dummy | grep 1\.99 > /dev/null
|
||||||
|
if test "$?" = 0 ; then
|
||||||
|
LIBC="libc1"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
rm -f $dummy.c $dummy
|
||||||
|
echo powerpc-unknown-linux-gnu${LIBC}
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
shelf_linux)
|
||||||
|
echo "${UNAME_MACHINE}-unknown-linux-gnu"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if test "${UNAME_MACHINE}" = "alpha" ; then
|
||||||
|
cat <<EOF >$dummy.s
|
||||||
|
.data
|
||||||
|
\$Lformat:
|
||||||
|
.byte 37,100,45,37,120,10,0 # "%d-%x\n"
|
||||||
|
|
||||||
|
.text
|
||||||
|
.globl main
|
||||||
|
.align 4
|
||||||
|
.ent main
|
||||||
|
main:
|
||||||
|
.frame \$30,16,\$26,0
|
||||||
|
ldgp \$29,0(\$27)
|
||||||
|
.prologue 1
|
||||||
|
.long 0x47e03d80 # implver \$0
|
||||||
|
lda \$2,-1
|
||||||
|
.long 0x47e20c21 # amask \$2,\$1
|
||||||
|
lda \$16,\$Lformat
|
||||||
|
mov \$0,\$17
|
||||||
|
not \$1,\$18
|
||||||
|
jsr \$26,printf
|
||||||
|
ldgp \$29,0(\$26)
|
||||||
|
mov 0,\$16
|
||||||
|
jsr \$26,exit
|
||||||
|
.end main
|
||||||
|
EOF
|
||||||
|
LIBC=""
|
||||||
|
$CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
|
||||||
|
if test "$?" = 0 ; then
|
||||||
|
case `./$dummy` in
|
||||||
|
0-0)
|
||||||
|
UNAME_MACHINE="alpha"
|
||||||
|
;;
|
||||||
|
1-0)
|
||||||
|
UNAME_MACHINE="alphaev5"
|
||||||
|
;;
|
||||||
|
1-1)
|
||||||
|
UNAME_MACHINE="alphaev56"
|
||||||
|
;;
|
||||||
|
1-101)
|
||||||
|
UNAME_MACHINE="alphapca56"
|
||||||
|
;;
|
||||||
|
2-303)
|
||||||
|
UNAME_MACHINE="alphaev6"
|
||||||
|
;;
|
||||||
|
2-307)
|
||||||
|
UNAME_MACHINE="alphaev67"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
objdump --private-headers $dummy | \
|
||||||
|
grep ld.so.1 > /dev/null
|
||||||
|
if test "$?" = 0 ; then
|
||||||
|
LIBC="libc1"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
rm -f $dummy.s $dummy
|
||||||
|
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0
|
||||||
|
elif test "${UNAME_MACHINE}" = "mips" ; then
|
||||||
|
cat >$dummy.c <<EOF
|
||||||
|
#ifdef __cplusplus
|
||||||
|
#include <stdio.h> /* for printf() prototype */
|
||||||
|
int main (int argc, char *argv[]) {
|
||||||
|
#else
|
||||||
|
int main (argc, argv) int argc; char *argv[]; {
|
||||||
|
#endif
|
||||||
|
#ifdef __MIPSEB__
|
||||||
|
printf ("%s-unknown-linux-gnu\n", argv[1]);
|
||||||
|
#endif
|
||||||
|
#ifdef __MIPSEL__
|
||||||
|
printf ("%sel-unknown-linux-gnu\n", argv[1]);
|
||||||
|
#endif
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0
|
||||||
|
rm -f $dummy.c $dummy
|
||||||
|
elif test "${UNAME_MACHINE}" = "s390"; then
|
||||||
|
echo s390-ibm-linux && exit 0
|
||||||
|
elif test "${UNAME_MACHINE}" = "x86_64"; then
|
||||||
|
echo x86_64-unknown-linux-gnu && exit 0
|
||||||
|
elif test "${UNAME_MACHINE}" = "parisc" -o "${UNAME_MACHINE}" = "hppa"; then
|
||||||
|
# Look for CPU level
|
||||||
|
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
|
||||||
|
PA7*)
|
||||||
|
echo hppa1.1-unknown-linux-gnu
|
||||||
|
;;
|
||||||
|
PA8*)
|
||||||
|
echo hppa2.0-unknown-linux-gnu
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo hppa-unknown-linux-gnu
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
# Either a pre-BFD a.out linker (linux-gnuoldld)
|
||||||
|
# or one that does not give us useful --help.
|
||||||
|
# GCC wants to distinguish between linux-gnuoldld and linux-gnuaout.
|
||||||
|
# If ld does not provide *any* "supported emulations:"
|
||||||
|
# that means it is gnuoldld.
|
||||||
|
test -z "$ld_supported_emulations" \
|
||||||
|
&& echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0
|
||||||
|
|
||||||
|
case "${UNAME_MACHINE}" in
|
||||||
|
i?86)
|
||||||
|
VENDOR=pc;
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
VENDOR=unknown;
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
# Determine whether the default compiler is a.out or elf
|
# Determine whether the default compiler is a.out or elf
|
||||||
eval $set_cc_for_build
|
|
||||||
cat >$dummy.c <<EOF
|
cat >$dummy.c <<EOF
|
||||||
#include <features.h>
|
#include <features.h>
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
@@ -863,30 +902,29 @@ EOF
|
|||||||
#ifdef __ELF__
|
#ifdef __ELF__
|
||||||
# ifdef __GLIBC__
|
# ifdef __GLIBC__
|
||||||
# if __GLIBC__ >= 2
|
# if __GLIBC__ >= 2
|
||||||
printf ("%s-pc-linux-gnu\n", argv[1]);
|
printf ("%s-${VENDOR}-linux-gnu\n", argv[1]);
|
||||||
# else
|
# else
|
||||||
printf ("%s-pc-linux-gnulibc1\n", argv[1]);
|
printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
|
||||||
# endif
|
# endif
|
||||||
# else
|
# else
|
||||||
printf ("%s-pc-linux-gnulibc1\n", argv[1]);
|
printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
printf ("%s-pc-linux-gnuaout\n", argv[1]);
|
printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]);
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm -f $dummy.c $dummy && exit 0
|
$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0
|
||||||
rm -f $dummy.c $dummy
|
rm -f $dummy.c $dummy
|
||||||
test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
|
test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
|
||||||
;;
|
fi ;;
|
||||||
i*86:DYNIX/ptx:4*:*)
|
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
|
||||||
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
|
# are messed up and put the nodename in both sysname and nodename.
|
||||||
# earlier versions are messed up and put the nodename in both
|
i?86:DYNIX/ptx:4*:*)
|
||||||
# sysname and nodename.
|
|
||||||
echo i386-sequent-sysv4
|
echo i386-sequent-sysv4
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
i*86:UNIX_SV:4.2MP:2.*)
|
i?86:UNIX_SV:4.2MP:2.*)
|
||||||
# Unixware is an offshoot of SVR4, but it has its own version
|
# Unixware is an offshoot of SVR4, but it has its own version
|
||||||
# number series starting with 2...
|
# number series starting with 2...
|
||||||
# I am not positive that other SVR4 systems won't match this,
|
# I am not positive that other SVR4 systems won't match this,
|
||||||
@@ -894,7 +932,7 @@ EOF
|
|||||||
# Use sysv4.2uw... so that sysv4* matches it.
|
# Use sysv4.2uw... so that sysv4* matches it.
|
||||||
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
|
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
|
i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*)
|
||||||
UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
|
UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
|
||||||
if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
|
if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
|
||||||
echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
|
echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
|
||||||
@@ -902,15 +940,16 @@ EOF
|
|||||||
echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
|
echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
|
||||||
fi
|
fi
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
i*86:*:5:[78]*)
|
i?86:*:5:7*)
|
||||||
case `/bin/uname -X | grep "^Machine"` in
|
# Fixed at (any) Pentium or better
|
||||||
*486*) UNAME_MACHINE=i486 ;;
|
UNAME_MACHINE=i586
|
||||||
*Pentium) UNAME_MACHINE=i586 ;;
|
if [ ${UNAME_SYSTEM} = "UnixWare" ] ; then
|
||||||
*Pent*|*Celeron) UNAME_MACHINE=i686 ;;
|
echo ${UNAME_MACHINE}-sco-sysv${UNAME_RELEASE}uw${UNAME_VERSION}
|
||||||
esac
|
else
|
||||||
echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
|
echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
|
||||||
|
fi
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
i*86:*:3.2:*)
|
i?86:*:3.2:*)
|
||||||
if test -f /usr/options/cb.name; then
|
if test -f /usr/options/cb.name; then
|
||||||
UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
|
UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
|
||||||
echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
|
echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
|
||||||
@@ -928,7 +967,7 @@ EOF
|
|||||||
echo ${UNAME_MACHINE}-pc-sysv32
|
echo ${UNAME_MACHINE}-pc-sysv32
|
||||||
fi
|
fi
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
i*86:*DOS:*:*)
|
i?86:*DOS:*:*)
|
||||||
echo ${UNAME_MACHINE}-pc-msdosdjgpp
|
echo ${UNAME_MACHINE}-pc-msdosdjgpp
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
pc:*:*:*)
|
pc:*:*:*)
|
||||||
@@ -967,24 +1006,21 @@ EOF
|
|||||||
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
|
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
|
||||||
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
||||||
&& echo i486-ncr-sysv4 && exit 0 ;;
|
&& echo i486-ncr-sysv4 && exit 0 ;;
|
||||||
m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
|
m68*:LynxOS:2.*:*)
|
||||||
echo m68k-unknown-lynxos${UNAME_RELEASE}
|
echo m68k-unknown-lynxos${UNAME_RELEASE}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
mc68030:UNIX_System_V:4.*:*)
|
mc68030:UNIX_System_V:4.*:*)
|
||||||
echo m68k-atari-sysv4
|
echo m68k-atari-sysv4
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
|
i?86:LynxOS:2.*:* | i?86:LynxOS:3.[01]*:*)
|
||||||
echo i386-unknown-lynxos${UNAME_RELEASE}
|
echo i386-unknown-lynxos${UNAME_RELEASE}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
TSUNAMI:LynxOS:2.*:*)
|
TSUNAMI:LynxOS:2.*:*)
|
||||||
echo sparc-unknown-lynxos${UNAME_RELEASE}
|
echo sparc-unknown-lynxos${UNAME_RELEASE}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
rs6000:LynxOS:2.*:*)
|
rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*)
|
||||||
echo rs6000-unknown-lynxos${UNAME_RELEASE}
|
echo rs6000-unknown-lynxos${UNAME_RELEASE}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
|
|
||||||
echo powerpc-unknown-lynxos${UNAME_RELEASE}
|
|
||||||
exit 0 ;;
|
|
||||||
SM[BE]S:UNIX_SV:*:*)
|
SM[BE]S:UNIX_SV:*:*)
|
||||||
echo mips-dde-sysv${UNAME_RELEASE}
|
echo mips-dde-sysv${UNAME_RELEASE}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
@@ -1002,7 +1038,7 @@ EOF
|
|||||||
echo ns32k-sni-sysv
|
echo ns32k-sni-sysv
|
||||||
fi
|
fi
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
|
PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
|
||||||
# says <Richard.M.Bartel@ccMail.Census.GOV>
|
# says <Richard.M.Bartel@ccMail.Census.GOV>
|
||||||
echo i586-unisys-sysv4
|
echo i586-unisys-sysv4
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
@@ -1015,10 +1051,6 @@ EOF
|
|||||||
# From seanf@swdc.stratus.com.
|
# From seanf@swdc.stratus.com.
|
||||||
echo i860-stratus-sysv4
|
echo i860-stratus-sysv4
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
*:VOS:*:*)
|
|
||||||
# From Paul.Green@stratus.com.
|
|
||||||
echo hppa1.1-stratus-vos
|
|
||||||
exit 0 ;;
|
|
||||||
mc68*:A/UX:*:*)
|
mc68*:A/UX:*:*)
|
||||||
echo m68k-apple-aux${UNAME_RELEASE}
|
echo m68k-apple-aux${UNAME_RELEASE}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
@@ -1088,41 +1120,11 @@ EOF
|
|||||||
fi
|
fi
|
||||||
echo ${UNAME_MACHINE}-unknown-plan9
|
echo ${UNAME_MACHINE}-unknown-plan9
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
i*86:OS/2:*:*)
|
|
||||||
# If we were able to find `uname', then EMX Unix compatibility
|
|
||||||
# is probably installed.
|
|
||||||
echo ${UNAME_MACHINE}-pc-os2-emx
|
|
||||||
exit 0 ;;
|
|
||||||
*:TOPS-10:*:*)
|
|
||||||
echo pdp10-unknown-tops10
|
|
||||||
exit 0 ;;
|
|
||||||
*:TENEX:*:*)
|
|
||||||
echo pdp10-unknown-tenex
|
|
||||||
exit 0 ;;
|
|
||||||
KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
|
|
||||||
echo pdp10-dec-tops20
|
|
||||||
exit 0 ;;
|
|
||||||
XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
|
|
||||||
echo pdp10-xkl-tops20
|
|
||||||
exit 0 ;;
|
|
||||||
*:TOPS-20:*:*)
|
|
||||||
echo pdp10-unknown-tops20
|
|
||||||
exit 0 ;;
|
|
||||||
*:ITS:*:*)
|
|
||||||
echo pdp10-unknown-its
|
|
||||||
exit 0 ;;
|
|
||||||
i*86:XTS-300:*:STOP)
|
|
||||||
echo ${UNAME_MACHINE}-unknown-stop
|
|
||||||
exit 0 ;;
|
|
||||||
i*86:atheos:*:*)
|
|
||||||
echo ${UNAME_MACHINE}-unknown-atheos
|
|
||||||
exit 0 ;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
#echo '(No uname command or uname output not recognized.)' 1>&2
|
#echo '(No uname command or uname output not recognized.)' 1>&2
|
||||||
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
|
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
|
||||||
|
|
||||||
eval $set_cc_for_build
|
|
||||||
cat >$dummy.c <<EOF
|
cat >$dummy.c <<EOF
|
||||||
#ifdef _SEQUENT_
|
#ifdef _SEQUENT_
|
||||||
# include <sys/types.h>
|
# include <sys/types.h>
|
||||||
@@ -1210,20 +1212,7 @@ main ()
|
|||||||
|
|
||||||
#if defined (vax)
|
#if defined (vax)
|
||||||
#if !defined (ultrix)
|
#if !defined (ultrix)
|
||||||
# include <sys/param.h>
|
|
||||||
# if defined (BSD)
|
|
||||||
# if BSD == 43
|
|
||||||
printf ("vax-dec-bsd4.3\n"); exit (0);
|
|
||||||
# else
|
|
||||||
# if BSD == 199006
|
|
||||||
printf ("vax-dec-bsd4.3reno\n"); exit (0);
|
|
||||||
# else
|
|
||||||
printf ("vax-dec-bsd\n"); exit (0);
|
printf ("vax-dec-bsd\n"); exit (0);
|
||||||
# endif
|
|
||||||
# endif
|
|
||||||
# else
|
|
||||||
printf ("vax-dec-bsd\n"); exit (0);
|
|
||||||
# endif
|
|
||||||
#else
|
#else
|
||||||
printf ("vax-dec-ultrix\n"); exit (0);
|
printf ("vax-dec-ultrix\n"); exit (0);
|
||||||
#endif
|
#endif
|
||||||
@@ -1237,7 +1226,7 @@ main ()
|
|||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm -f $dummy.c $dummy && exit 0
|
$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm $dummy.c $dummy && exit 0
|
||||||
rm -f $dummy.c $dummy
|
rm -f $dummy.c $dummy
|
||||||
|
|
||||||
# Apollos put the system type in the environment.
|
# Apollos put the system type in the environment.
|
||||||
@@ -1273,9 +1262,8 @@ fi
|
|||||||
cat >&2 <<EOF
|
cat >&2 <<EOF
|
||||||
$0: unable to guess system type
|
$0: unable to guess system type
|
||||||
|
|
||||||
This script, last modified $timestamp, has failed to recognize
|
The $version version of this script cannot recognize your system type.
|
||||||
the operating system you are using. It is advised that you
|
Please download the most up to date version of the config scripts:
|
||||||
download the most up to date version of the config scripts from
|
|
||||||
|
|
||||||
ftp://ftp.gnu.org/pub/gnu/config/
|
ftp://ftp.gnu.org/pub/gnu/config/
|
||||||
|
|
||||||
@@ -1284,7 +1272,7 @@ send the following data and any information you think might be
|
|||||||
pertinent to <config-patches@gnu.org> in order to provide the needed
|
pertinent to <config-patches@gnu.org> in order to provide the needed
|
||||||
information to handle your system.
|
information to handle your system.
|
||||||
|
|
||||||
config.guess timestamp = $timestamp
|
config.guess version = $version
|
||||||
|
|
||||||
uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
||||||
uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
||||||
@@ -1311,7 +1299,7 @@ exit 1
|
|||||||
|
|
||||||
# Local variables:
|
# Local variables:
|
||||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
# time-stamp-start: "timestamp='"
|
# time-stamp-start: "version='"
|
||||||
# time-stamp-format: "%:y-%02m-%02d"
|
# time-stamp-format: "%:y-%02m-%02d"
|
||||||
# time-stamp-end: "'"
|
# time-stamp-end: "'"
|
||||||
# End:
|
# End:
|
||||||
|
239
config.sub
vendored
239
config.sub
vendored
@@ -1,9 +1,9 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# Configuration validation subroutine script.
|
# Configuration validation subroutine script, version 1.1.
|
||||||
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
|
||||||
# Free Software Foundation, Inc.
|
# Free Software Foundation, Inc.
|
||||||
|
|
||||||
timestamp='2001-09-07'
|
version='2000-11-04'
|
||||||
|
|
||||||
# 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
|
||||||
@@ -61,29 +61,15 @@ Canonicalize a configuration name.
|
|||||||
|
|
||||||
Operation modes:
|
Operation modes:
|
||||||
-h, --help print this help, then exit
|
-h, --help print this help, then exit
|
||||||
-t, --time-stamp print date of last modification, then exit
|
-V, --version print version number, then exit"
|
||||||
-v, --version print version number, then exit
|
|
||||||
|
|
||||||
Report bugs and patches to <config-patches@gnu.org>."
|
|
||||||
|
|
||||||
version="\
|
|
||||||
GNU config.sub ($timestamp)
|
|
||||||
|
|
||||||
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
|
||||||
Free Software Foundation, Inc.
|
|
||||||
|
|
||||||
This is free software; see the source for copying conditions. There is NO
|
|
||||||
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
|
||||||
|
|
||||||
help="
|
help="
|
||||||
Try \`$me --help' for more information."
|
Try \`$me --help' for more information."
|
||||||
|
|
||||||
# Parse command line
|
# Parse command line
|
||||||
while test $# -gt 0 ; do
|
while test $# -gt 0 ; do
|
||||||
case $1 in
|
case "$1" in
|
||||||
--time-stamp | --time* | -t )
|
--version | --vers* | -V )
|
||||||
echo "$timestamp" ; exit 0 ;;
|
|
||||||
--version | -v )
|
|
||||||
echo "$version" ; exit 0 ;;
|
echo "$version" ; exit 0 ;;
|
||||||
--help | --h* | -h )
|
--help | --h* | -h )
|
||||||
echo "$usage"; exit 0 ;;
|
echo "$usage"; exit 0 ;;
|
||||||
@@ -92,7 +78,9 @@ while test $# -gt 0 ; do
|
|||||||
- ) # Use stdin as input.
|
- ) # Use stdin as input.
|
||||||
break ;;
|
break ;;
|
||||||
-* )
|
-* )
|
||||||
echo "$me: invalid option $1$help"
|
exec >&2
|
||||||
|
echo "$me: invalid option $1"
|
||||||
|
echo "$help"
|
||||||
exit 1 ;;
|
exit 1 ;;
|
||||||
|
|
||||||
*local*)
|
*local*)
|
||||||
@@ -117,7 +105,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* | storm-chaos*)
|
||||||
os=-$maybe_os
|
os=-$maybe_os
|
||||||
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
|
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
|
||||||
;;
|
;;
|
||||||
@@ -157,14 +145,6 @@ case $os in
|
|||||||
os=-vxworks
|
os=-vxworks
|
||||||
basic_machine=$1
|
basic_machine=$1
|
||||||
;;
|
;;
|
||||||
-chorusos*)
|
|
||||||
os=-chorusos
|
|
||||||
basic_machine=$1
|
|
||||||
;;
|
|
||||||
-chorusrdb)
|
|
||||||
os=-chorusrdb
|
|
||||||
basic_machine=$1
|
|
||||||
;;
|
|
||||||
-hiux*)
|
-hiux*)
|
||||||
os=-hiuxwe2
|
os=-hiuxwe2
|
||||||
;;
|
;;
|
||||||
@@ -223,36 +203,22 @@ esac
|
|||||||
case $basic_machine in
|
case $basic_machine in
|
||||||
# Recognize the basic CPU types without company name.
|
# Recognize the basic CPU types without company name.
|
||||||
# Some are omitted here because they have special meanings below.
|
# Some are omitted here because they have special meanings below.
|
||||||
1750a | 580 \
|
tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
|
||||||
| a29k \
|
| arme[lb] | armv[2345] | armv[345][lb] | pyramid | mn10200 | mn10300 | tron | a29k \
|
||||||
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
|
| 580 | i960 | h8300 \
|
||||||
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
|
| x86 | ppcbe | mipsbe | mipsle | shbe | shle | armbe | armle \
|
||||||
| c4x | clipper \
|
| hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
|
||||||
| d10v | d30v | dsp16xx \
|
| hppa64 \
|
||||||
| fr30 \
|
| alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \
|
||||||
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
|
| alphaev6[78] \
|
||||||
| i370 | i860 | i960 | ia64 \
|
| we32k | ns16k | clipper | i370 | sh | sh[34] \
|
||||||
| m32r | m68000 | m68k | m88k | mcore \
|
| powerpc | powerpcle \
|
||||||
| mips16 | mips64 | mips64el | mips64orion | mips64orionel \
|
| 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \
|
||||||
| mips64vr4100 | mips64vr4100el | mips64vr4300 \
|
| mips64orion | mips64orionel | mipstx39 | mipstx39el \
|
||||||
| mips64vr4300el | mips64vr5000 | mips64vr5000el \
|
| mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
|
||||||
| mipsbe | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \
|
| mips64vr5000 | miprs64vr5000el | mcore \
|
||||||
| mipsisa32 \
|
| sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \
|
||||||
| mn10200 | mn10300 \
|
| thumb | d10v | d30v | fr30 | avr)
|
||||||
| ns16k | ns32k \
|
|
||||||
| openrisc \
|
|
||||||
| pdp10 | pdp11 | pj | pjl \
|
|
||||||
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
|
|
||||||
| pyramid \
|
|
||||||
| s390 | s390x \
|
|
||||||
| sh | sh[34] | sh[34]eb | shbe | shle \
|
|
||||||
| sparc | sparc64 | sparclet | sparclite | sparcv9 | sparcv9b \
|
|
||||||
| stormy16 | strongarm \
|
|
||||||
| tahoe | thumb | tic80 | tron \
|
|
||||||
| v850 \
|
|
||||||
| we32k \
|
|
||||||
| x86 | xscale \
|
|
||||||
| z8k)
|
|
||||||
basic_machine=$basic_machine-unknown
|
basic_machine=$basic_machine-unknown
|
||||||
;;
|
;;
|
||||||
m6811 | m68hc11 | m6812 | m68hc12)
|
m6811 | m68hc11 | m6812 | m68hc12)
|
||||||
@@ -260,13 +226,13 @@ case $basic_machine in
|
|||||||
basic_machine=$basic_machine-unknown
|
basic_machine=$basic_machine-unknown
|
||||||
os=-none
|
os=-none
|
||||||
;;
|
;;
|
||||||
m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
|
m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl)
|
||||||
;;
|
;;
|
||||||
|
|
||||||
# We use `pc' rather than `unknown'
|
# We use `pc' rather than `unknown'
|
||||||
# because (1) that's what they normally are, and
|
# because (1) that's what they normally are, and
|
||||||
# (2) the word "unknown" tends to confuse beginning users.
|
# (2) the word "unknown" tends to confuse beginning users.
|
||||||
i*86 | x86_64)
|
i[234567]86 | x86_64)
|
||||||
basic_machine=$basic_machine-pc
|
basic_machine=$basic_machine-pc
|
||||||
;;
|
;;
|
||||||
# Object if more than one company name word.
|
# Object if more than one company name word.
|
||||||
@@ -275,43 +241,28 @@ case $basic_machine in
|
|||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
# Recognize the basic CPU types with company name.
|
# Recognize the basic CPU types with company name.
|
||||||
580-* \
|
# FIXME: clean up the formatting here.
|
||||||
| a29k-* \
|
vax-* | tahoe-* | i[234567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
|
||||||
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
|
| m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
|
||||||
| alphapca5[67]-* | arc-* \
|
| mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
|
||||||
| arm-* | armbe-* | armle-* | armv*-* \
|
| power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
|
||||||
| bs2000-* \
|
| xmp-* | ymp-* \
|
||||||
| c[123]* | c30-* | [cjt]90-* | c54x-* \
|
| x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* | armbe-* | armle-* \
|
||||||
| clipper-* | cray2-* | cydra-* \
|
| hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \
|
||||||
| d10v-* | d30v-* \
|
| hppa2.0n-* | hppa64-* \
|
||||||
| elxsi-* \
|
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \
|
||||||
| f30[01]-* | f700-* | fr30-* | fx80-* \
|
| alphaev6[78]-* \
|
||||||
| h8300-* | h8500-* \
|
| we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
|
||||||
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
|
| clipper-* | orion-* \
|
||||||
| i*86-* | i860-* | i960-* | ia64-* \
|
| sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
|
||||||
| m32r-* \
|
| sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \
|
||||||
| m68000-* | m680[01234]0-* | m68360-* | m683?2-* | m68k-* \
|
| mips64el-* | mips64orion-* | mips64orionel-* \
|
||||||
| m88110-* | m88k-* | mcore-* \
|
| mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
|
||||||
| mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \
|
| mipstx39-* | mipstx39el-* | mcore-* \
|
||||||
| mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \
|
| f301-* | armv*-* | s390-* | sv1-* | t3e-* \
|
||||||
| mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \
|
| m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
|
||||||
| mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \
|
| thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* \
|
||||||
| none-* | np1-* | ns16k-* | ns32k-* \
|
| bs2000-* | tic54x-* | c54x-* | x86_64-*)
|
||||||
| orion-* \
|
|
||||||
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
|
|
||||||
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
|
|
||||||
| pyramid-* \
|
|
||||||
| romp-* | rs6000-* \
|
|
||||||
| s390-* | s390x-* \
|
|
||||||
| sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* \
|
|
||||||
| sparc-* | sparc64-* | sparc86x-* | sparclite-* \
|
|
||||||
| sparcv9-* | sparcv9b-* | stormy16-* | strongarm-* | sv1-* \
|
|
||||||
| t3e-* | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
|
|
||||||
| v850-* | vax-* \
|
|
||||||
| we32k-* \
|
|
||||||
| x86-* | x86_64-* | xmp-* | xps100-* | xscale-* \
|
|
||||||
| ymp-* \
|
|
||||||
| z8k-*)
|
|
||||||
;;
|
;;
|
||||||
# Recognize the various machine names and aliases which stand
|
# Recognize the various machine names and aliases which stand
|
||||||
# for a CPU type and a company and sometimes even an OS.
|
# for a CPU type and a company and sometimes even an OS.
|
||||||
@@ -402,8 +353,8 @@ case $basic_machine in
|
|||||||
basic_machine=cray2-cray
|
basic_machine=cray2-cray
|
||||||
os=-unicos
|
os=-unicos
|
||||||
;;
|
;;
|
||||||
[cjt]90)
|
[ctj]90-cray)
|
||||||
basic_machine=${basic_machine}-cray
|
basic_machine=c90-cray
|
||||||
os=-unicos
|
os=-unicos
|
||||||
;;
|
;;
|
||||||
crds | unos)
|
crds | unos)
|
||||||
@@ -459,10 +410,6 @@ case $basic_machine in
|
|||||||
basic_machine=tron-gmicro
|
basic_machine=tron-gmicro
|
||||||
os=-sysv
|
os=-sysv
|
||||||
;;
|
;;
|
||||||
go32)
|
|
||||||
basic_machine=i386-pc
|
|
||||||
os=-go32
|
|
||||||
;;
|
|
||||||
h3050r* | hiux*)
|
h3050r* | hiux*)
|
||||||
basic_machine=hppa1.1-hitachi
|
basic_machine=hppa1.1-hitachi
|
||||||
os=-hiuxwe2
|
os=-hiuxwe2
|
||||||
@@ -538,19 +485,19 @@ case $basic_machine in
|
|||||||
basic_machine=i370-ibm
|
basic_machine=i370-ibm
|
||||||
;;
|
;;
|
||||||
# I'm not sure what "Sysv32" means. Should this be sysv3.2?
|
# I'm not sure what "Sysv32" means. Should this be sysv3.2?
|
||||||
i*86v32)
|
i[34567]86v32)
|
||||||
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
|
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
|
||||||
os=-sysv32
|
os=-sysv32
|
||||||
;;
|
;;
|
||||||
i*86v4*)
|
i[34567]86v4*)
|
||||||
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
|
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
|
||||||
os=-sysv4
|
os=-sysv4
|
||||||
;;
|
;;
|
||||||
i*86v)
|
i[34567]86v)
|
||||||
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
|
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
|
||||||
os=-sysv
|
os=-sysv
|
||||||
;;
|
;;
|
||||||
i*86sol2)
|
i[34567]86sol2)
|
||||||
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
|
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
|
||||||
os=-solaris2
|
os=-solaris2
|
||||||
;;
|
;;
|
||||||
@@ -562,6 +509,18 @@ case $basic_machine in
|
|||||||
basic_machine=i386-unknown
|
basic_machine=i386-unknown
|
||||||
os=-vsta
|
os=-vsta
|
||||||
;;
|
;;
|
||||||
|
i386-go32 | go32)
|
||||||
|
basic_machine=i386-unknown
|
||||||
|
os=-go32
|
||||||
|
;;
|
||||||
|
i386-mingw32 | mingw32)
|
||||||
|
basic_machine=i386-unknown
|
||||||
|
os=-mingw32
|
||||||
|
;;
|
||||||
|
i[34567]86-pw32 | pw32)
|
||||||
|
basic_machine=i586-unknown
|
||||||
|
os=-pw32
|
||||||
|
;;
|
||||||
iris | iris4d)
|
iris | iris4d)
|
||||||
basic_machine=mips-sgi
|
basic_machine=mips-sgi
|
||||||
case $os in
|
case $os in
|
||||||
@@ -587,10 +546,6 @@ case $basic_machine in
|
|||||||
basic_machine=ns32k-utek
|
basic_machine=ns32k-utek
|
||||||
os=-sysv
|
os=-sysv
|
||||||
;;
|
;;
|
||||||
mingw32)
|
|
||||||
basic_machine=i386-pc
|
|
||||||
os=-mingw32
|
|
||||||
;;
|
|
||||||
miniframe)
|
miniframe)
|
||||||
basic_machine=m68000-convergent
|
basic_machine=m68000-convergent
|
||||||
;;
|
;;
|
||||||
@@ -621,7 +576,7 @@ case $basic_machine in
|
|||||||
os=-coff
|
os=-coff
|
||||||
;;
|
;;
|
||||||
msdos)
|
msdos)
|
||||||
basic_machine=i386-pc
|
basic_machine=i386-unknown
|
||||||
os=-msdos
|
os=-msdos
|
||||||
;;
|
;;
|
||||||
mvs)
|
mvs)
|
||||||
@@ -731,7 +686,7 @@ case $basic_machine in
|
|||||||
basic_machine=i686-pc
|
basic_machine=i686-pc
|
||||||
;;
|
;;
|
||||||
pentiumii | pentium2)
|
pentiumii | pentium2)
|
||||||
basic_machine=i686-pc
|
basic_machine=i786-pc
|
||||||
;;
|
;;
|
||||||
pentium-* | p5-* | k5-* | k6-* | nexgen-*)
|
pentium-* | p5-* | k5-* | k6-* | nexgen-*)
|
||||||
basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
|
basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||||
@@ -740,12 +695,12 @@ case $basic_machine in
|
|||||||
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
|
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||||
;;
|
;;
|
||||||
pentiumii-* | pentium2-*)
|
pentiumii-* | pentium2-*)
|
||||||
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
|
basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||||
;;
|
;;
|
||||||
pn)
|
pn)
|
||||||
basic_machine=pn-gould
|
basic_machine=pn-gould
|
||||||
;;
|
;;
|
||||||
power) basic_machine=power-ibm
|
power) basic_machine=rs6000-ibm
|
||||||
;;
|
;;
|
||||||
ppc) basic_machine=powerpc-unknown
|
ppc) basic_machine=powerpc-unknown
|
||||||
;;
|
;;
|
||||||
@@ -757,23 +712,9 @@ case $basic_machine in
|
|||||||
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-`echo $basic_machine | sed 's/^[^-]*-//'`
|
|
||||||
;;
|
|
||||||
ppc64le | powerpc64little | ppc64-le | powerpc64-little)
|
|
||||||
basic_machine=powerpc64le-unknown
|
|
||||||
;;
|
|
||||||
ppc64le-* | powerpc64little-*)
|
|
||||||
basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
|
|
||||||
;;
|
|
||||||
ps2)
|
ps2)
|
||||||
basic_machine=i386-ibm
|
basic_machine=i386-ibm
|
||||||
;;
|
;;
|
||||||
pw32)
|
|
||||||
basic_machine=i586-unknown
|
|
||||||
os=-pw32
|
|
||||||
;;
|
|
||||||
rom68k)
|
rom68k)
|
||||||
basic_machine=m68k-rom68k
|
basic_machine=m68k-rom68k
|
||||||
os=-coff
|
os=-coff
|
||||||
@@ -921,10 +862,6 @@ case $basic_machine in
|
|||||||
basic_machine=hppa1.1-winbond
|
basic_machine=hppa1.1-winbond
|
||||||
os=-proelf
|
os=-proelf
|
||||||
;;
|
;;
|
||||||
windows32)
|
|
||||||
basic_machine=i386-pc
|
|
||||||
os=-windows32-msvcrt
|
|
||||||
;;
|
|
||||||
xmp)
|
xmp)
|
||||||
basic_machine=xmp-cray
|
basic_machine=xmp-cray
|
||||||
os=-unicos
|
os=-unicos
|
||||||
@@ -968,20 +905,16 @@ case $basic_machine in
|
|||||||
vax)
|
vax)
|
||||||
basic_machine=vax-dec
|
basic_machine=vax-dec
|
||||||
;;
|
;;
|
||||||
pdp10)
|
|
||||||
# there are many clones, so DEC is not a safe bet
|
|
||||||
basic_machine=pdp10-unknown
|
|
||||||
;;
|
|
||||||
pdp11)
|
pdp11)
|
||||||
basic_machine=pdp11-dec
|
basic_machine=pdp11-dec
|
||||||
;;
|
;;
|
||||||
we32k)
|
we32k)
|
||||||
basic_machine=we32k-att
|
basic_machine=we32k-att
|
||||||
;;
|
;;
|
||||||
sh3 | sh4 | sh3eb | sh4eb)
|
sh3 | sh4)
|
||||||
basic_machine=sh-unknown
|
basic_machine=sh-unknown
|
||||||
;;
|
;;
|
||||||
sparc | sparcv9 | sparcv9b)
|
sparc | sparcv9)
|
||||||
basic_machine=sparc-sun
|
basic_machine=sparc-sun
|
||||||
;;
|
;;
|
||||||
cydra)
|
cydra)
|
||||||
@@ -1003,9 +936,6 @@ case $basic_machine in
|
|||||||
basic_machine=c4x-none
|
basic_machine=c4x-none
|
||||||
os=-coff
|
os=-coff
|
||||||
;;
|
;;
|
||||||
*-unknown)
|
|
||||||
# Make sure to match an already-canonicalized machine name.
|
|
||||||
;;
|
|
||||||
*)
|
*)
|
||||||
echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
|
echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
@@ -1062,18 +992,15 @@ case $os in
|
|||||||
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
|
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
|
||||||
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
|
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
|
||||||
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
|
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
|
||||||
| -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* | -rhapsody* | -darwin* | -opened* \
|
||||||
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
|
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* | -storm-chaos*)
|
||||||
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
|
|
||||||
| -os2* | -vos*)
|
|
||||||
# Remember, each alternative MUST END IN *, to match a version number.
|
# Remember, each alternative MUST END IN *, to match a version number.
|
||||||
;;
|
;;
|
||||||
-qnx*)
|
-qnx*)
|
||||||
case $basic_machine in
|
case $basic_machine in
|
||||||
x86-* | i*86-*)
|
x86-* | i[34567]86-*)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
os=-nto$os
|
os=-nto$os
|
||||||
@@ -1166,7 +1093,7 @@ case $os in
|
|||||||
-xenix)
|
-xenix)
|
||||||
os=-xenix
|
os=-xenix
|
||||||
;;
|
;;
|
||||||
-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
|
-*mint | -*MiNT)
|
||||||
os=-mint
|
os=-mint
|
||||||
;;
|
;;
|
||||||
-none)
|
-none)
|
||||||
@@ -1200,9 +1127,6 @@ case $basic_machine in
|
|||||||
arm*-semi)
|
arm*-semi)
|
||||||
os=-aout
|
os=-aout
|
||||||
;;
|
;;
|
||||||
pdp10-*)
|
|
||||||
os=-tops20
|
|
||||||
;;
|
|
||||||
pdp11-*)
|
pdp11-*)
|
||||||
os=-none
|
os=-none
|
||||||
;;
|
;;
|
||||||
@@ -1311,7 +1235,7 @@ case $basic_machine in
|
|||||||
*-masscomp)
|
*-masscomp)
|
||||||
os=-rtu
|
os=-rtu
|
||||||
;;
|
;;
|
||||||
f30[01]-fujitsu | f700-fujitsu)
|
f301-fujitsu)
|
||||||
os=-uxpv
|
os=-uxpv
|
||||||
;;
|
;;
|
||||||
*-rom68k)
|
*-rom68k)
|
||||||
@@ -1389,12 +1313,9 @@ case $basic_machine in
|
|||||||
-mpw* | -macos*)
|
-mpw* | -macos*)
|
||||||
vendor=apple
|
vendor=apple
|
||||||
;;
|
;;
|
||||||
-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
|
-*mint | -*MiNT)
|
||||||
vendor=atari
|
vendor=atari
|
||||||
;;
|
;;
|
||||||
-vos*)
|
|
||||||
vendor=stratus
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
|
basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
|
||||||
;;
|
;;
|
||||||
@@ -1405,7 +1326,7 @@ exit 0
|
|||||||
|
|
||||||
# Local variables:
|
# Local variables:
|
||||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
# time-stamp-start: "timestamp='"
|
# time-stamp-start: "version='"
|
||||||
# time-stamp-format: "%:y-%02m-%02d"
|
# time-stamp-format: "%:y-%02m-%02d"
|
||||||
# time-stamp-end: "'"
|
# time-stamp-end: "'"
|
||||||
# End:
|
# End:
|
||||||
|
1773
configure.in
1773
configure.in
File diff suppressed because it is too large
Load Diff
@@ -3,13 +3,13 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
all:
|
all:
|
||||||
cd src; $(MAKE)
|
cd src; make
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
cd src; $(MAKE) clean
|
cd src; make clean
|
||||||
cd samples; $(MAKE) clean
|
cd samples; make clean
|
||||||
cd utils; $(MAKE) clean
|
cd utils; make clean
|
||||||
|
|
||||||
|
|
||||||
samples:
|
samples:
|
||||||
cd samples; $(MAKE)
|
cd samples; make
|
||||||
|
@@ -1,57 +0,0 @@
|
|||||||
/****************************************************************************
|
|
||||||
*
|
|
||||||
* wxWindows HTML Applet Package
|
|
||||||
*
|
|
||||||
* Copyright (C) 1991-2001 SciTech Software, Inc.
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* ========================================================================
|
|
||||||
*
|
|
||||||
* The contents of this file are subject to the wxWindows License
|
|
||||||
* Version 3.0 (the "License"); you may not use this file except in
|
|
||||||
* compliance with the License. You may obtain a copy of the License at
|
|
||||||
* http://www.wxwindows.org/licence3.txt
|
|
||||||
*
|
|
||||||
* Software distributed under the License is distributed on an
|
|
||||||
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
||||||
* implied. See the License for the specific language governing
|
|
||||||
* rights and limitations under the License.
|
|
||||||
*
|
|
||||||
* ========================================================================
|
|
||||||
*
|
|
||||||
* Language: ANSI C++
|
|
||||||
* Environment: Any
|
|
||||||
*
|
|
||||||
* Description: Header file for the wxQlet class
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#ifndef __WX_PLUGIN_H
|
|
||||||
#define __WX_PLUGIN_H
|
|
||||||
|
|
||||||
// Forward declaration
|
|
||||||
class wxHtmlAppletWindow;
|
|
||||||
|
|
||||||
/*--------------------------- Class Definitions ---------------------------*/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
Defines the abstract base class for wxQlet objects.
|
|
||||||
****************************************************************************/
|
|
||||||
class wxPlugIn : public wxObject {
|
|
||||||
private:
|
|
||||||
DECLARE_ABSTRACT_CLASS(wxPlugIn);
|
|
||||||
|
|
||||||
wxHtmlAppletWindow *m_parent;
|
|
||||||
public:
|
|
||||||
// Constructor (called during dynamic creation)
|
|
||||||
wxPlugIn() { m_parent = NULL; };
|
|
||||||
|
|
||||||
// Psuedo virtual constructor
|
|
||||||
virtual bool Create(wxHtmlAppletWindow *parent);
|
|
||||||
|
|
||||||
// Virtual destructor
|
|
||||||
virtual ~wxPlugIn();
|
|
||||||
};
|
|
||||||
#endif // __WX_PLUGIN_H
|
|
||||||
|
|
@@ -41,9 +41,10 @@ wxIncludePrep class Definition
|
|||||||
class wxIncludePrep : public wxHtmlProcessor {
|
class wxIncludePrep : public wxHtmlProcessor {
|
||||||
private:
|
private:
|
||||||
//DECLARE_DYNAMIC_CLASS(wxIncludePrep);
|
//DECLARE_DYNAMIC_CLASS(wxIncludePrep);
|
||||||
wxFileSystem *m_FS;
|
wxString DOC_ROOT;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxIncludePrep() : wxHtmlProcessor() {}
|
wxIncludePrep() : wxHtmlProcessor() {DOC_ROOT = wxString("");}
|
||||||
~wxIncludePrep() {}
|
~wxIncludePrep() {}
|
||||||
|
|
||||||
// Process input text and return processed result
|
// Process input text and return processed result
|
||||||
@@ -53,7 +54,8 @@ public:
|
|||||||
// is the processor applied to the text.
|
// is the processor applied to the text.
|
||||||
int GetPriority() const { return wxHTML_PRIORITY_SYSTEM; }
|
int GetPriority() const { return wxHTML_PRIORITY_SYSTEM; }
|
||||||
|
|
||||||
void ChangeDirectory(wxFileSystem *);
|
void ChangeDirectory(const wxString &dir);
|
||||||
|
wxString GetDirectory() { return DOC_ROOT; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@@ -5,19 +5,23 @@
|
|||||||
* Copyright (C) 1991-2001 SciTech Software, Inc.
|
* Copyright (C) 1991-2001 SciTech Software, Inc.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* ========================================================================
|
* ======================================================================
|
||||||
*
|
* |REMOVAL OR MODIFICATION OF THIS HEADER IS STRICTLY PROHIBITED BY LAW|
|
||||||
* The contents of this file are subject to the wxWindows License
|
* | |
|
||||||
* Version 3.0 (the "License"); you may not use this file except in
|
* |This copyrighted computer code is a proprietary trade secret of |
|
||||||
* compliance with the License. You may obtain a copy of the License at
|
* |SciTech Software, Inc., located at 505 Wall Street, Chico, CA 95928 |
|
||||||
* http://www.wxwindows.org/licence3.txt
|
* |USA (www.scitechsoft.com). ANY UNAUTHORIZED POSSESSION, USE, |
|
||||||
*
|
* |VIEWING, COPYING, MODIFICATION OR DISSEMINATION OF THIS CODE IS |
|
||||||
* Software distributed under the License is distributed on an
|
* |STRICTLY PROHIBITED BY LAW. Unless you have current, express |
|
||||||
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
* |written authorization from SciTech to possess or use this code, you |
|
||||||
* implied. See the License for the specific language governing
|
* |may be subject to civil and/or criminal penalties. |
|
||||||
* rights and limitations under the License.
|
* | |
|
||||||
*
|
* |If you received this code in error or you would like to report |
|
||||||
* ========================================================================
|
* |improper use, please immediately contact SciTech Software, Inc. at |
|
||||||
|
* |530-894-8400. |
|
||||||
|
* | |
|
||||||
|
* |REMOVAL OR MODIFICATION OF THIS HEADER IS STRICTLY PROHIBITED BY LAW|
|
||||||
|
* ======================================================================
|
||||||
*
|
*
|
||||||
* Language: ANSI C++
|
* Language: ANSI C++
|
||||||
* Environment: Any
|
* Environment: Any
|
||||||
@@ -34,11 +38,9 @@
|
|||||||
|
|
||||||
// Forward declare
|
// Forward declare
|
||||||
class wxApplet;
|
class wxApplet;
|
||||||
class wxQlet;
|
|
||||||
class wxLoadPageEvent;
|
class wxLoadPageEvent;
|
||||||
class wxPageLoadedEvent;
|
class wxPageLoadedEvent;
|
||||||
class wxIncludePrep;
|
class wxIncludePrep;
|
||||||
class wxToolBarBase;
|
|
||||||
|
|
||||||
// Declare a linked list of wxApplet pointers
|
// Declare a linked list of wxApplet pointers
|
||||||
WX_DECLARE_LIST(wxApplet, wxAppletList);
|
WX_DECLARE_LIST(wxApplet, wxAppletList);
|
||||||
@@ -62,8 +64,6 @@ public:
|
|||||||
wxString& group,
|
wxString& group,
|
||||||
wxString& href );
|
wxString& href );
|
||||||
|
|
||||||
VirtualData();
|
|
||||||
|
|
||||||
// Gets
|
// Gets
|
||||||
wxString GetName(){ return m_name;};
|
wxString GetName(){ return m_name;};
|
||||||
wxString GetGroup(){ return m_group;};
|
wxString GetGroup(){ return m_group;};
|
||||||
@@ -88,19 +88,13 @@ private:
|
|||||||
|
|
||||||
bool m_mutexLock;
|
bool m_mutexLock;
|
||||||
wxIncludePrep *incPreprocessor; // deleted by list it is added too in constructor
|
wxIncludePrep *incPreprocessor; // deleted by list it is added too in constructor
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
wxAppletList m_AppletList;
|
wxAppletList m_AppletList;
|
||||||
static wxHashTable m_Cookies;
|
static wxHashTable m_Cookies;
|
||||||
bool m_NavBarEnabled;
|
|
||||||
wxToolBarBase *m_NavBar;
|
wxToolBarBase *m_NavBar;
|
||||||
int m_NavBackId;
|
int m_NavBackId;
|
||||||
int m_NavForwardId;
|
int m_NavForwardId;
|
||||||
wxPalette m_globalPalette;
|
wxString m_DocRoot;
|
||||||
|
|
||||||
// Override this so we can do proper palette management!!
|
|
||||||
virtual void OnDraw(wxDC& dc);
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// Constructor
|
// Constructor
|
||||||
wxHtmlAppletWindow(
|
wxHtmlAppletWindow(
|
||||||
@@ -113,7 +107,7 @@ public:
|
|||||||
const wxSize& size = wxDefaultSize,
|
const wxSize& size = wxDefaultSize,
|
||||||
long style = wxHW_SCROLLBAR_AUTO,
|
long style = wxHW_SCROLLBAR_AUTO,
|
||||||
const wxString& name = "htmlAppletWindow",
|
const wxString& name = "htmlAppletWindow",
|
||||||
const wxPalette& globalPalette = wxNullPalette);
|
const wxString& docroot = "" );
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
~wxHtmlAppletWindow();
|
~wxHtmlAppletWindow();
|
||||||
@@ -125,9 +119,6 @@ public:
|
|||||||
const wxHtmlTag ¶ms,
|
const wxHtmlTag ¶ms,
|
||||||
const wxSize& size);
|
const wxSize& size);
|
||||||
|
|
||||||
// Create an instance of an Qlet based on it's class name
|
|
||||||
bool CreatePlugIn(const wxString& classId );
|
|
||||||
|
|
||||||
// Find an instance of an applet based on it's class name
|
// Find an instance of an applet based on it's class name
|
||||||
wxApplet *FindApplet(const wxString& className);
|
wxApplet *FindApplet(const wxString& className);
|
||||||
|
|
||||||
@@ -146,14 +137,6 @@ public:
|
|||||||
// Handles backwards navigation within the HTML stack
|
// Handles backwards navigation within the HTML stack
|
||||||
bool HistoryBack();
|
bool HistoryBack();
|
||||||
|
|
||||||
// Disables Nav bars
|
|
||||||
void DisableNavBar();
|
|
||||||
|
|
||||||
// Enables Nav bars
|
|
||||||
void EnableNavBar();
|
|
||||||
|
|
||||||
void SetNavBar(wxToolBarBase *navBar);
|
|
||||||
|
|
||||||
// Broadcast a message to all applets on the page
|
// Broadcast a message to all applets on the page
|
||||||
void SendMessage(wxEvent& msg);
|
void SendMessage(wxEvent& msg);
|
||||||
|
|
||||||
@@ -203,24 +186,6 @@ public:
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
Defines the class for wxHtmlAppletCell
|
|
||||||
***************************************************************************/
|
|
||||||
class wxHtmlAppletCell : public wxHtmlCell
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxHtmlAppletCell(wxWindow *wnd, int w = 0);
|
|
||||||
~wxHtmlAppletCell() { m_Wnd->Destroy(); }
|
|
||||||
virtual void Draw(wxDC& dc, int x, int y, int view_y1, int view_y2);
|
|
||||||
virtual void DrawInvisible(wxDC& dc, int x, int y);
|
|
||||||
virtual void Layout(int w);
|
|
||||||
|
|
||||||
protected:
|
|
||||||
wxWindow* m_Wnd;
|
|
||||||
// width float is used in adjustWidth (it is in percents)
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#endif // __WX_APPLET_WINDOW_H
|
#endif // __WX_APPLET_WINDOW_H
|
||||||
|
|
||||||
|
@@ -1052,8 +1052,6 @@ public:
|
|||||||
cbUpdatesManagerBase( wxFrameLayout* pPanel )
|
cbUpdatesManagerBase( wxFrameLayout* pPanel )
|
||||||
: mpLayout( pPanel ) {}
|
: mpLayout( pPanel ) {}
|
||||||
|
|
||||||
virtual ~cbUpdatesManagerBase() {}
|
|
||||||
|
|
||||||
void SetLayout( wxFrameLayout* pLayout ) { mpLayout = pLayout; }
|
void SetLayout( wxFrameLayout* pLayout ) { mpLayout = pLayout; }
|
||||||
|
|
||||||
// notificiactions received from frame-layout (in the order, in which
|
// notificiactions received from frame-layout (in the order, in which
|
||||||
@@ -1098,9 +1096,6 @@ public:
|
|||||||
bool mAuxBoolVal;
|
bool mAuxBoolVal;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Not used, but required
|
|
||||||
virtual wxEvent* Clone() const { return NULL; }
|
|
||||||
|
|
||||||
#if wxCHECK_VERSION(2,3,0)
|
#if wxCHECK_VERSION(2,3,0)
|
||||||
cbPluginEvent( wxEventType eventType, cbDockPane* pPane )
|
cbPluginEvent( wxEventType eventType, cbDockPane* pPane )
|
||||||
: mpPane( pPane )
|
: mpPane( pPane )
|
||||||
|
@@ -121,7 +121,7 @@ public:
|
|||||||
|
|
||||||
virtual void AddTool( int toolIndex,
|
virtual void AddTool( int toolIndex,
|
||||||
const wxString& imageFileName,
|
const wxString& imageFileName,
|
||||||
wxBitmapType imageFileType = wxBITMAP_TYPE_BMP,
|
int imageFileType = wxBITMAP_TYPE_BMP,
|
||||||
const wxString& labelText = "", bool alignTextRight = FALSE,
|
const wxString& labelText = "", bool alignTextRight = FALSE,
|
||||||
bool isFlat = TRUE );
|
bool isFlat = TRUE );
|
||||||
virtual void AddTool( int toolIndex, wxBitmap labelBmp,
|
virtual void AddTool( int toolIndex, wxBitmap labelBmp,
|
||||||
|
@@ -50,7 +50,7 @@ protected:
|
|||||||
|
|
||||||
wxString mLabelText;
|
wxString mLabelText;
|
||||||
wxString mImageFileName;
|
wxString mImageFileName;
|
||||||
wxBitmapType mImageFileType;
|
int mImageFileType;
|
||||||
|
|
||||||
wxBitmap mDepressedBmp; // source image for rendering
|
wxBitmap mDepressedBmp; // source image for rendering
|
||||||
// labels for particular state
|
// labels for particular state
|
||||||
@@ -114,7 +114,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 int bitmapFileType = wxBITMAP_TYPE_BMP,
|
||||||
const wxString& labelText = "",
|
const wxString& labelText = "",
|
||||||
int alignText = NB_ALIGN_TEXT_BOTTOM,
|
int alignText = NB_ALIGN_TEXT_BOTTOM,
|
||||||
bool isFlat = TRUE,
|
bool isFlat = TRUE,
|
||||||
|
@@ -13,13 +13,6 @@
|
|||||||
#ifndef _WX_DYNAMICSASH_H_
|
#ifndef _WX_DYNAMICSASH_H_
|
||||||
#define _WX_DYNAMICSASH_H_
|
#define _WX_DYNAMICSASH_H_
|
||||||
|
|
||||||
#ifdef GIZMOISDLL
|
|
||||||
#define GIZMODLLEXPORT WXDLLEXPORT
|
|
||||||
#else
|
|
||||||
#define GIZMODLLEXPORT
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
wxDynamicSashWindow
|
wxDynamicSashWindow
|
||||||
@@ -51,7 +44,7 @@
|
|||||||
for instance, you wish to scroll a subwindow of the view you add to
|
for instance, you wish to scroll a subwindow of the view you add to
|
||||||
your wxDynamicSashWindow object, rather than scrolling the whole view.)
|
your wxDynamicSashWindow object, rather than scrolling the whole view.)
|
||||||
In this case, you will need to construct your wxDynamicSashWindow without
|
In this case, you will need to construct your wxDynamicSashWindow without
|
||||||
the wxDS_MANAGE_SCROLLBARS style and you will need to use the
|
the wxMANAGE_SCROLLBARS style and you will need to use the
|
||||||
GetHScrollBar() and GetVScrollBar() methods to retrieve the scrollbar
|
GetHScrollBar() and GetVScrollBar() methods to retrieve the scrollbar
|
||||||
controls and call SetEventHanler() on them to redirect the scrolling
|
controls and call SetEventHanler() on them to redirect the scrolling
|
||||||
events whenever your window is reparented by wxDyanmicSashWindow.
|
events whenever your window is reparented by wxDyanmicSashWindow.
|
||||||
@@ -80,19 +73,11 @@ class wxScrollBar;
|
|||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
wxDS_MANAGE_SCROLLBARS is a default style of wxDynamicSashWindow which
|
wxMANAGE_SCROLLBARS is a default style of wxDynamicSashWindow which
|
||||||
will cause it to respond to scrollbar events for your application by
|
will cause it to respond to scrollbar events for your application by
|
||||||
automatically scrolling the child view.
|
automatically scrolling the child view.
|
||||||
*/
|
*/
|
||||||
#define wxDS_MANAGE_SCROLLBARS 0x0010
|
#define wxMANAGE_SCROLLBARS 0x00800000
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
wxDS_DRAG_CORNER style indicates that the views can also be resized by
|
|
||||||
dragging the corner piece between the scrollbars, and which is reflected up
|
|
||||||
to the frame if necessary.
|
|
||||||
*/
|
|
||||||
#define wxDS_DRAG_CORNER 0x0020
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -102,14 +87,11 @@ class wxScrollBar;
|
|||||||
a child of the wxDynamicSashWindow. wxDynamicSashWindow will
|
a child of the wxDynamicSashWindow. wxDynamicSashWindow will
|
||||||
automatically reparent it to the proper place in its window hierarchy.
|
automatically reparent it to the proper place in its window hierarchy.
|
||||||
*/
|
*/
|
||||||
class GIZMODLLEXPORT wxDynamicSashSplitEvent : public wxCommandEvent {
|
class wxDynamicSashSplitEvent : public wxCommandEvent {
|
||||||
public:
|
public:
|
||||||
wxDynamicSashSplitEvent();
|
wxDynamicSashSplitEvent();
|
||||||
wxDynamicSashSplitEvent(const wxDynamicSashSplitEvent& event): wxCommandEvent(event) { }
|
|
||||||
wxDynamicSashSplitEvent(wxObject *target);
|
wxDynamicSashSplitEvent(wxObject *target);
|
||||||
|
|
||||||
virtual wxEvent* Clone() const { return new wxDynamicSashSplitEvent(*this); }
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxDynamicSashSplitEvent)
|
DECLARE_DYNAMIC_CLASS(wxDynamicSashSplitEvent)
|
||||||
};
|
};
|
||||||
@@ -124,14 +106,11 @@ private:
|
|||||||
the scrollbars' event handlers connected to your view's event handler
|
the scrollbars' event handlers connected to your view's event handler
|
||||||
class.
|
class.
|
||||||
*/
|
*/
|
||||||
class GIZMODLLEXPORT wxDynamicSashUnifyEvent : public wxCommandEvent {
|
class wxDynamicSashUnifyEvent : public wxCommandEvent {
|
||||||
public:
|
public:
|
||||||
wxDynamicSashUnifyEvent();
|
wxDynamicSashUnifyEvent();
|
||||||
wxDynamicSashUnifyEvent(const wxDynamicSashUnifyEvent& event): wxCommandEvent(event) {}
|
|
||||||
wxDynamicSashUnifyEvent(wxObject *target);
|
wxDynamicSashUnifyEvent(wxObject *target);
|
||||||
|
|
||||||
virtual wxEvent* Clone() const { return new wxDynamicSashUnifyEvent(*this); }
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxDynamicSashUnifyEvent);
|
DECLARE_DYNAMIC_CLASS(wxDynamicSashUnifyEvent);
|
||||||
};
|
};
|
||||||
@@ -139,18 +118,18 @@ private:
|
|||||||
/*
|
/*
|
||||||
wxDynamicSashWindow. See above.
|
wxDynamicSashWindow. See above.
|
||||||
*/
|
*/
|
||||||
class GIZMODLLEXPORT wxDynamicSashWindow : public wxWindow {
|
class wxDynamicSashWindow : public wxWindow {
|
||||||
public:
|
public:
|
||||||
wxDynamicSashWindow();
|
wxDynamicSashWindow();
|
||||||
wxDynamicSashWindow(wxWindow *parent, wxWindowID id,
|
wxDynamicSashWindow(wxWindow *parent, wxWindowID id,
|
||||||
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
|
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
|
||||||
long style = wxCLIP_CHILDREN | wxDS_MANAGE_SCROLLBARS | wxDS_DRAG_CORNER,
|
long style = wxCLIP_CHILDREN | wxMANAGE_SCROLLBARS,
|
||||||
const wxString& name = "dynamicSashWindow");
|
const wxString& name = "dynamicSashWindow");
|
||||||
virtual ~wxDynamicSashWindow();
|
virtual ~wxDynamicSashWindow();
|
||||||
|
|
||||||
virtual bool Create(wxWindow *parent, wxWindowID id,
|
virtual bool Create(wxWindow *parent, wxWindowID id,
|
||||||
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
|
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
|
||||||
long style = wxCLIP_CHILDREN | wxDS_MANAGE_SCROLLBARS | wxDS_DRAG_CORNER,
|
long style = wxCLIP_CHILDREN | wxMANAGE_SCROLLBARS,
|
||||||
const wxString& name = "dynamicSashWindow");
|
const wxString& name = "dynamicSashWindow");
|
||||||
virtual wxScrollBar *GetHScrollBar(const wxWindow *child) const;
|
virtual wxScrollBar *GetHScrollBar(const wxWindow *child) const;
|
||||||
virtual wxScrollBar *GetVScrollBar(const wxWindow *child) const;
|
virtual wxScrollBar *GetVScrollBar(const wxWindow *child) const;
|
||||||
|
@@ -17,12 +17,6 @@
|
|||||||
|
|
||||||
#include "wx/panel.h"
|
#include "wx/panel.h"
|
||||||
|
|
||||||
#ifdef GIZMOISDLL
|
|
||||||
#define GIZMODLLEXPORT WXDLLEXPORT
|
|
||||||
#else
|
|
||||||
#define GIZMODLLEXPORT
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
class WXDLLEXPORT wxBitmapButton;
|
class WXDLLEXPORT wxBitmapButton;
|
||||||
class WXDLLEXPORT wxListCtrl;
|
class WXDLLEXPORT wxListCtrl;
|
||||||
@@ -31,7 +25,7 @@ class WXDLLEXPORT wxListEvent;
|
|||||||
// This class provides a composite control that lets the
|
// This class provides a composite control that lets the
|
||||||
// user easily enter list of strings
|
// user easily enter list of strings
|
||||||
|
|
||||||
class GIZMODLLEXPORT wxEditableListBox : public wxPanel
|
class WXDLLEXPORT wxEditableListBox : public wxPanel
|
||||||
{
|
{
|
||||||
DECLARE_CLASS(wxEditableListBox);
|
DECLARE_CLASS(wxEditableListBox);
|
||||||
|
|
||||||
|
@@ -1,89 +0,0 @@
|
|||||||
#ifndef _WX_LEDNUMBERCTRL_H_
|
|
||||||
#define _WX_LEDNUMBERCTRL_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "wxLEDNumberCtrl.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef GIZMOISDLL
|
|
||||||
#define GIZMODLLEXPORT WXDLLEXPORT
|
|
||||||
#else
|
|
||||||
#define GIZMODLLEXPORT
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#include <wx/window.h>
|
|
||||||
#include <wx/control.h>
|
|
||||||
|
|
||||||
class wxEraseEvent;
|
|
||||||
class wxPaintEvent;
|
|
||||||
class wxSizeEvent;
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
// enum and styles
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
enum wxLEDValueAlign
|
|
||||||
{
|
|
||||||
wxLED_ALIGN_LEFT = 0x01,
|
|
||||||
wxLED_ALIGN_RIGHT = 0x02,
|
|
||||||
wxLED_ALIGN_CENTER = 0x04,
|
|
||||||
|
|
||||||
wxLED_ALIGN_MASK = 0x04
|
|
||||||
};
|
|
||||||
|
|
||||||
#define wxLED_DRAW_FADED 0x08
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
// wxLEDNumberCtrl
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
class GIZMODLLEXPORT wxLEDNumberCtrl : public wxControl
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
// Constructors.
|
|
||||||
wxLEDNumberCtrl();
|
|
||||||
wxLEDNumberCtrl(wxWindow *parent, wxWindowID id = -1,
|
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
|
||||||
const wxSize& size = wxDefaultSize,
|
|
||||||
long style = wxLED_ALIGN_LEFT | wxLED_DRAW_FADED);
|
|
||||||
|
|
||||||
// Create functions.
|
|
||||||
bool Create(wxWindow *parent, wxWindowID id = -1,
|
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
|
||||||
const wxSize& size = wxDefaultSize,
|
|
||||||
long style = 0);
|
|
||||||
|
|
||||||
wxLEDValueAlign GetAlignment() const { return m_Alignment; }
|
|
||||||
bool GetDrawFaded() const { return m_DrawFaded; }
|
|
||||||
const wxString &GetValue() const { return m_Value; }
|
|
||||||
|
|
||||||
void SetAlignment(wxLEDValueAlign Alignment, bool Redraw = TRUE);
|
|
||||||
void SetDrawFaded(bool DrawFaded, bool Redraw = TRUE);
|
|
||||||
void SetValue(const wxString &Value, bool Redraw = TRUE);
|
|
||||||
|
|
||||||
private:
|
|
||||||
// Members.
|
|
||||||
wxString m_Value;
|
|
||||||
wxLEDValueAlign m_Alignment;
|
|
||||||
|
|
||||||
int m_LineMargin;
|
|
||||||
int m_DigitMargin;
|
|
||||||
int m_LineLength;
|
|
||||||
int m_LineWidth;
|
|
||||||
bool m_DrawFaded;
|
|
||||||
int m_LeftStartPos;
|
|
||||||
|
|
||||||
// Functions.
|
|
||||||
void DrawDigit(wxDC &Dc, int Digit, int Column);
|
|
||||||
void RecalcInternals(const wxSize &CurrentSize);
|
|
||||||
|
|
||||||
// Events.
|
|
||||||
DECLARE_EVENT_TABLE()
|
|
||||||
|
|
||||||
void OnEraseBackground(wxEraseEvent &Event);
|
|
||||||
void OnPaint(wxPaintEvent &Event);
|
|
||||||
void OnSize(wxSizeEvent &Event);
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
@@ -19,14 +19,6 @@
|
|||||||
#pragma interface "multicell.h"
|
#pragma interface "multicell.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef GIZMOISDLL
|
|
||||||
#define GIZMODLLEXPORT WXDLLEXPORT
|
|
||||||
#else
|
|
||||||
#define GIZMODLLEXPORT
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// headers
|
// headers
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@@ -53,7 +45,7 @@ enum wxResizable
|
|||||||
// wxMultiCellItemHandle
|
// wxMultiCellItemHandle
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
class GIZMODLLEXPORT wxMultiCellItemHandle: public wxObject
|
class WXDLLEXPORT wxMultiCellItemHandle: public wxObject
|
||||||
{
|
{
|
||||||
DECLARE_CLASS(wxMultiCellItemHandle);
|
DECLARE_CLASS(wxMultiCellItemHandle);
|
||||||
protected:
|
protected:
|
||||||
@@ -89,7 +81,7 @@ private:
|
|||||||
// wxMultiCellSizer
|
// wxMultiCellSizer
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
class GIZMODLLEXPORT wxMultiCellSizer : virtual public wxSizer
|
class WXDLLEXPORT wxMultiCellSizer : virtual public wxSizer
|
||||||
{
|
{
|
||||||
DECLARE_CLASS(wxMultiCellSizer);
|
DECLARE_CLASS(wxMultiCellSizer);
|
||||||
|
|
||||||
@@ -139,7 +131,7 @@ class wxCell;
|
|||||||
// wxMultiCellCanvas
|
// wxMultiCellCanvas
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
class GIZMODLLEXPORT wxMultiCellCanvas : public wxFlexGridSizer
|
class wxMultiCellCanvas : public wxFlexGridSizer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxMultiCellCanvas(wxWindow *parent, int numRows = 2, int numCols = 2);
|
wxMultiCellCanvas(wxWindow *parent, int numRows = 2, int numCols = 2);
|
||||||
|
@@ -18,12 +18,6 @@
|
|||||||
#pragma interface "splittree.h"
|
#pragma interface "splittree.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef GIZMOISDLL
|
|
||||||
#define GIZMODLLEXPORT WXDLLEXPORT
|
|
||||||
#else
|
|
||||||
#define GIZMODLLEXPORT
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Set this to 1 to use generic tree control (doesn't yet work properly)
|
// Set this to 1 to use generic tree control (doesn't yet work properly)
|
||||||
#define USE_GENERIC_TREECTRL 0
|
#define USE_GENERIC_TREECTRL 0
|
||||||
|
|
||||||
@@ -52,7 +46,7 @@ class wxSplitterScrolledWindow;
|
|||||||
* It also updates the scrolled window vertical scrollbar as appropriate.
|
* It also updates the scrolled window vertical scrollbar as appropriate.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class GIZMODLLEXPORT wxRemotelyScrolledTreeCtrl: public wxTreeCtrl
|
class wxRemotelyScrolledTreeCtrl: public wxTreeCtrl
|
||||||
{
|
{
|
||||||
DECLARE_CLASS(wxRemotelyScrolledTreeCtrl)
|
DECLARE_CLASS(wxRemotelyScrolledTreeCtrl)
|
||||||
public:
|
public:
|
||||||
@@ -64,7 +58,6 @@ public:
|
|||||||
void OnSize(wxSizeEvent& event);
|
void OnSize(wxSizeEvent& event);
|
||||||
void OnExpand(wxTreeEvent& event);
|
void OnExpand(wxTreeEvent& event);
|
||||||
void OnScroll(wxScrollWinEvent& event);
|
void OnScroll(wxScrollWinEvent& event);
|
||||||
void OnPaint(wxPaintEvent& event);
|
|
||||||
|
|
||||||
//// Overrides
|
//// Overrides
|
||||||
// Override this in case we're using the generic tree control.
|
// Override this in case we're using the generic tree control.
|
||||||
@@ -117,7 +110,6 @@ public:
|
|||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
protected:
|
protected:
|
||||||
wxWindow* m_companionWindow;
|
wxWindow* m_companionWindow;
|
||||||
bool m_drawRowLines;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -126,7 +118,7 @@ protected:
|
|||||||
* A window displaying values associated with tree control items.
|
* A window displaying values associated with tree control items.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class GIZMODLLEXPORT wxTreeCompanionWindow: public wxWindow
|
class wxTreeCompanionWindow: public wxWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_CLASS(wxTreeCompanionWindow)
|
DECLARE_CLASS(wxTreeCompanionWindow)
|
||||||
@@ -165,7 +157,7 @@ protected:
|
|||||||
* than the usual one.
|
* than the usual one.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class GIZMODLLEXPORT wxThinSplitterWindow: public wxSplitterWindow
|
class wxThinSplitterWindow: public wxSplitterWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_DYNAMIC_CLASS(wxThinSplitterWindow)
|
DECLARE_DYNAMIC_CLASS(wxThinSplitterWindow)
|
||||||
@@ -205,7 +197,7 @@ protected:
|
|||||||
* scroll appropriately.
|
* scroll appropriately.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class GIZMODLLEXPORT wxSplitterScrolledWindow: public wxScrolledWindow
|
class wxSplitterScrolledWindow: public wxScrolledWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_DYNAMIC_CLASS(wxSplitterScrolledWindow)
|
DECLARE_DYNAMIC_CLASS(wxSplitterScrolledWindow)
|
||||||
|
@@ -33,8 +33,7 @@ public:
|
|||||||
|
|
||||||
// Send a message.
|
// Send a message.
|
||||||
// Specify profile, or leave it to wxWindows to find the current user name
|
// Specify profile, or leave it to wxWindows to find the current user name
|
||||||
static bool Send(wxMailMessage& message, const wxString& profileName = wxEmptyString,
|
static bool Send(wxMailMessage& message, const wxString& profileName = wxEmptyString );
|
||||||
const wxString& sendMail = wxT("/usr/lib/sendmail -t"));
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
};
|
};
|
||||||
|
@@ -27,14 +27,12 @@ public:
|
|||||||
|
|
||||||
// A common usage
|
// A common usage
|
||||||
wxMailMessage(const wxString& subject, const wxString& to,
|
wxMailMessage(const wxString& subject, const wxString& to,
|
||||||
const wxString& body, const wxString& from = wxEmptyString,
|
const wxString& body, const wxString& attachment = wxEmptyString,
|
||||||
const wxString& attachment = wxEmptyString,
|
|
||||||
const wxString& attachmentTitle = wxEmptyString)
|
const wxString& attachmentTitle = wxEmptyString)
|
||||||
{
|
{
|
||||||
m_to.Add(to);
|
m_to.Add(to);
|
||||||
m_subject = subject;
|
m_subject = subject;
|
||||||
m_body = body;
|
m_body = body;
|
||||||
m_from = from;
|
|
||||||
if (!attachment.IsEmpty())
|
if (!attachment.IsEmpty())
|
||||||
{
|
{
|
||||||
m_attachments.Add(attachment);
|
m_attachments.Add(attachment);
|
||||||
@@ -54,11 +52,9 @@ public:
|
|||||||
|
|
||||||
void SetSubject(const wxString& subject) { m_subject = subject; }
|
void SetSubject(const wxString& subject) { m_subject = subject; }
|
||||||
void SetBody(const wxString& body) { m_body = body; }
|
void SetBody(const wxString& body) { m_body = body; }
|
||||||
void SetFrom(const wxString& from) { m_from = from; }
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxArrayString m_to; //The To: Recipients
|
wxArrayString m_to; //The To: Recipients
|
||||||
wxString m_from; //The From: email address (optional)
|
|
||||||
wxArrayString m_cc; //The CC: Recipients
|
wxArrayString m_cc; //The CC: Recipients
|
||||||
wxArrayString m_bcc; //The BCC Recipients
|
wxArrayString m_bcc; //The BCC Recipients
|
||||||
wxString m_subject; //The Subject of the message
|
wxString m_subject; //The Subject of the message
|
||||||
|
@@ -124,7 +124,7 @@ class WXDLLEXPORT wxExprDatabase;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
class wxShapeEvtHandler: public wxObject, public wxClientDataContainer
|
class wxShapeEvtHandler: public wxObject
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxShapeEvtHandler)
|
DECLARE_DYNAMIC_CLASS(wxShapeEvtHandler)
|
||||||
|
|
||||||
@@ -299,6 +299,8 @@ class wxShape: public wxShapeEvtHandler
|
|||||||
|
|
||||||
void SetPen(wxPen *pen);
|
void SetPen(wxPen *pen);
|
||||||
void SetBrush(wxBrush *brush);
|
void SetBrush(wxBrush *brush);
|
||||||
|
inline void SetClientData(wxObject *client_data) { m_clientData = client_data; };
|
||||||
|
inline wxObject *GetClientData() const { return m_clientData; };
|
||||||
|
|
||||||
virtual void Show(bool show);
|
virtual void Show(bool show);
|
||||||
virtual bool IsShown() const { return m_visible; }
|
virtual bool IsShown() const { return m_visible; }
|
||||||
@@ -513,10 +515,8 @@ class wxShape: public wxShapeEvtHandler
|
|||||||
// Clears points from a list of wxRealPoints
|
// Clears points from a list of wxRealPoints
|
||||||
void ClearPointList(wxList& list);
|
void ClearPointList(wxList& list);
|
||||||
|
|
||||||
// Return pen or brush of the right colour for the background
|
private:
|
||||||
wxPen GetBackgroundPen();
|
wxObject* m_clientData;
|
||||||
wxBrush GetBackgroundBrush();
|
|
||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
wxShapeEvtHandler* m_eventHandler;
|
wxShapeEvtHandler* m_eventHandler;
|
||||||
|
@@ -99,6 +99,7 @@ extern wxPen* g_oglWhiteBackgroundPen;
|
|||||||
extern wxPen* g_oglTransparentPen;
|
extern wxPen* g_oglTransparentPen;
|
||||||
extern wxBrush* g_oglWhiteBackgroundBrush;
|
extern wxBrush* g_oglWhiteBackgroundBrush;
|
||||||
extern wxPen* g_oglBlackForegroundPen;
|
extern wxPen* g_oglBlackForegroundPen;
|
||||||
|
extern wxCursor* g_oglBullseyeCursor;
|
||||||
|
|
||||||
extern wxFont* oglMatchFont(int point_size);
|
extern wxFont* oglMatchFont(int point_size);
|
||||||
|
|
||||||
|
@@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
|
|
||||||
#include <wx/wx.h>
|
#include <wx/wx.h>
|
||||||
#include <wx/dnd.h>
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
// BEGIN generated section. The following code is automatically generated
|
// BEGIN generated section. The following code is automatically generated
|
||||||
@@ -73,7 +72,6 @@
|
|||||||
#define wxSTC_MARK_CIRCLEPLUSCONNECTED 19
|
#define wxSTC_MARK_CIRCLEPLUSCONNECTED 19
|
||||||
#define wxSTC_MARK_CIRCLEMINUS 20
|
#define wxSTC_MARK_CIRCLEMINUS 20
|
||||||
#define wxSTC_MARK_CIRCLEMINUSCONNECTED 21
|
#define wxSTC_MARK_CIRCLEMINUSCONNECTED 21
|
||||||
#define wxSTC_MARK_CHARACTER 10000
|
|
||||||
|
|
||||||
// Markers used for outlining column
|
// Markers used for outlining column
|
||||||
#define wxSTC_MARKNUM_FOLDEREND 25
|
#define wxSTC_MARKNUM_FOLDEREND 25
|
||||||
@@ -85,16 +83,12 @@
|
|||||||
#define wxSTC_MARKNUM_FOLDEROPEN 31
|
#define wxSTC_MARKNUM_FOLDEROPEN 31
|
||||||
#define wxSTC_MARGIN_SYMBOL 0
|
#define wxSTC_MARGIN_SYMBOL 0
|
||||||
#define wxSTC_MARGIN_NUMBER 1
|
#define wxSTC_MARGIN_NUMBER 1
|
||||||
|
|
||||||
// Styles in range 32..37 are predefined for parts of the UI and are not used as normal styles.
|
|
||||||
// Styles 38 and 39 are for future use.
|
|
||||||
#define wxSTC_STYLE_DEFAULT 32
|
#define wxSTC_STYLE_DEFAULT 32
|
||||||
#define wxSTC_STYLE_LINENUMBER 33
|
#define wxSTC_STYLE_LINENUMBER 33
|
||||||
#define wxSTC_STYLE_BRACELIGHT 34
|
#define wxSTC_STYLE_BRACELIGHT 34
|
||||||
#define wxSTC_STYLE_BRACEBAD 35
|
#define wxSTC_STYLE_BRACEBAD 35
|
||||||
#define wxSTC_STYLE_CONTROLCHAR 36
|
#define wxSTC_STYLE_CONTROLCHAR 36
|
||||||
#define wxSTC_STYLE_INDENTGUIDE 37
|
#define wxSTC_STYLE_INDENTGUIDE 37
|
||||||
#define wxSTC_STYLE_LASTPREDEFINED 39
|
|
||||||
#define wxSTC_STYLE_MAX 127
|
#define wxSTC_STYLE_MAX 127
|
||||||
|
|
||||||
// Character set identifiers are used in StyleSetCharacterSet.
|
// Character set identifiers are used in StyleSetCharacterSet.
|
||||||
@@ -301,7 +295,6 @@
|
|||||||
#define wxSTC_LEX_EIFFEL 23
|
#define wxSTC_LEX_EIFFEL 23
|
||||||
#define wxSTC_LEX_EIFFELKW 24
|
#define wxSTC_LEX_EIFFELKW 24
|
||||||
#define wxSTC_LEX_TCL 25
|
#define wxSTC_LEX_TCL 25
|
||||||
#define wxSTC_LEX_NNCRONTAB 26
|
|
||||||
|
|
||||||
// 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.
|
||||||
@@ -341,8 +334,6 @@
|
|||||||
#define wxSTC_C_REGEX 14
|
#define wxSTC_C_REGEX 14
|
||||||
#define wxSTC_C_COMMENTLINEDOC 15
|
#define wxSTC_C_COMMENTLINEDOC 15
|
||||||
#define wxSTC_C_WORD2 16
|
#define wxSTC_C_WORD2 16
|
||||||
#define wxSTC_C_COMMENTDOCKEYWORD 17
|
|
||||||
#define wxSTC_C_COMMENTDOCKEYWORDERROR 18
|
|
||||||
|
|
||||||
// Lexical states for SCLEX_HTML, SCLEX_XML
|
// Lexical states for SCLEX_HTML, SCLEX_XML
|
||||||
#define wxSTC_H_DEFAULT 0
|
#define wxSTC_H_DEFAULT 0
|
||||||
@@ -374,17 +365,7 @@
|
|||||||
#define wxSTC_H_XCCOMMENT 20
|
#define wxSTC_H_XCCOMMENT 20
|
||||||
|
|
||||||
// SGML
|
// SGML
|
||||||
#define wxSTC_H_SGML_DEFAULT 21
|
#define wxSTC_H_SGML 21
|
||||||
#define wxSTC_H_SGML_COMMAND 22
|
|
||||||
#define wxSTC_H_SGML_1ST_PARAM 23
|
|
||||||
#define wxSTC_H_SGML_DOUBLESTRING 24
|
|
||||||
#define wxSTC_H_SGML_SIMPLESTRING 25
|
|
||||||
#define wxSTC_H_SGML_ERROR 26
|
|
||||||
#define wxSTC_H_SGML_SPECIAL 27
|
|
||||||
#define wxSTC_H_SGML_ENTITY 28
|
|
||||||
#define wxSTC_H_SGML_COMMENT 29
|
|
||||||
#define wxSTC_H_SGML_1ST_PARAM_COMMENT 30
|
|
||||||
#define wxSTC_H_SGML_BLOCK_DEFAULT 31
|
|
||||||
|
|
||||||
// Embedded Javascript
|
// Embedded Javascript
|
||||||
#define wxSTC_HJ_START 40
|
#define wxSTC_HJ_START 40
|
||||||
@@ -623,19 +604,6 @@
|
|||||||
#define wxSTC_EIFFEL_IDENTIFIER 7
|
#define wxSTC_EIFFEL_IDENTIFIER 7
|
||||||
#define wxSTC_EIFFEL_STRINGEOL 8
|
#define wxSTC_EIFFEL_STRINGEOL 8
|
||||||
|
|
||||||
// Lexical states for the SCLEX_NNCRONTAB (nnCron crontab Lexer)
|
|
||||||
#define wxSTC_NNCRONTAB_DEFAULT 0
|
|
||||||
#define wxSTC_NNCRONTAB_COMMENT 1
|
|
||||||
#define wxSTC_NNCRONTAB_TASK 2
|
|
||||||
#define wxSTC_NNCRONTAB_SECTION 3
|
|
||||||
#define wxSTC_NNCRONTAB_KEYWORD 4
|
|
||||||
#define wxSTC_NNCRONTAB_MODIFIER 5
|
|
||||||
#define wxSTC_NNCRONTAB_ASTERISK 6
|
|
||||||
#define wxSTC_NNCRONTAB_NUMBER 7
|
|
||||||
#define wxSTC_NNCRONTAB_STRING 8
|
|
||||||
#define wxSTC_NNCRONTAB_ENVIRONMENT 9
|
|
||||||
#define wxSTC_NNCRONTAB_IDENTIFIER 10
|
|
||||||
|
|
||||||
// END of generated section
|
// END of generated section
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
// Others
|
// Others
|
||||||
@@ -663,8 +631,6 @@ public:
|
|||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize, long style = 0,
|
const wxSize& size = wxDefaultSize, long style = 0,
|
||||||
const char* name = "styledtext");
|
const char* name = "styledtext");
|
||||||
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
wxStyledTextCtrl(wxWindow *parent, wxWindowID id,
|
wxStyledTextCtrl(wxWindow *parent, wxWindowID id,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
@@ -768,11 +734,7 @@ public:
|
|||||||
|
|
||||||
// Retrieve the text of the line containing the caret.
|
// Retrieve the text of the line containing the caret.
|
||||||
// Returns the index of the caret on the line.
|
// Returns the index of the caret on the line.
|
||||||
#ifdef SWIG
|
wxString GetCurLine(int* OUTPUT=NULL);
|
||||||
wxString GetCurLine(int* OUTPUT);
|
|
||||||
#else
|
|
||||||
wxString GetCurLine(int* linePos=NULL);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Retrieve the position of the last correctly styled character.
|
// Retrieve the position of the last correctly styled character.
|
||||||
int GetEndStyled();
|
int GetEndStyled();
|
||||||
@@ -1255,12 +1217,10 @@ public:
|
|||||||
int GetTargetEnd();
|
int GetTargetEnd();
|
||||||
|
|
||||||
// Replace the target text with the argument text.
|
// Replace the target text with the argument text.
|
||||||
// Text is counted so it can contain nulls.
|
|
||||||
// Returns the length of the replacement text.
|
// Returns the length of the replacement text.
|
||||||
int ReplaceTarget(const wxString& text);
|
int ReplaceTarget(const wxString& text);
|
||||||
|
|
||||||
// Replace the target text with the argument text after \d processing.
|
// Replace the target text with the argument text after \d processing.
|
||||||
// Text is counted so it can contain nulls.
|
|
||||||
// Looks for \d where d is between 1 and 9 and replaces these with the strings
|
// Looks for \d where d is between 1 and 9 and replaces these with the strings
|
||||||
// matched in the last search operation which were surrounded by \( and \).
|
// matched in the last search operation which were surrounded by \( and \).
|
||||||
// Returns the length of the replacement text including any change
|
// Returns the length of the replacement text including any change
|
||||||
@@ -1268,7 +1228,7 @@ public:
|
|||||||
int ReplaceTargetRE(const wxString& text);
|
int ReplaceTargetRE(const wxString& text);
|
||||||
|
|
||||||
// Search for a counted string in the target and set the target to the found
|
// Search for a counted string in the target and set the target to the found
|
||||||
// range. Text is counted so it can contain nulls.
|
// range.
|
||||||
// Returns length of range or -1 for failure in which case target is not moved.
|
// Returns length of range or -1 for failure in which case target is not moved.
|
||||||
int SearchInTarget(const wxString& text);
|
int SearchInTarget(const wxString& text);
|
||||||
|
|
||||||
@@ -1457,10 +1417,10 @@ public:
|
|||||||
int GetModEventMask();
|
int GetModEventMask();
|
||||||
|
|
||||||
// Change internal focus flag
|
// Change internal focus flag
|
||||||
void SetSTCFocus(bool focus);
|
void SetFocus(bool focus);
|
||||||
|
|
||||||
// Get internal focus flag
|
// Get internal focus flag
|
||||||
bool GetSTCFocus();
|
bool GetFocus();
|
||||||
|
|
||||||
// Change error status - 0 = OK
|
// Change error status - 0 = OK
|
||||||
void SetStatus(int statusCode);
|
void SetStatus(int statusCode);
|
||||||
@@ -1594,14 +1554,6 @@ public:
|
|||||||
// Send a message to Scintilla
|
// Send a message to Scintilla
|
||||||
long SendMsg(int msg, long wp=0, long lp=0);
|
long SendMsg(int msg, long wp=0, long lp=0);
|
||||||
|
|
||||||
|
|
||||||
// Set the vertical scrollbar to use instead of the ont that's built-in.
|
|
||||||
void SetVScrollBar(wxScrollBar* bar) { m_vScrollBar = bar; }
|
|
||||||
|
|
||||||
|
|
||||||
// Set the horizontal scrollbar to use instead of the ont that's built-in.
|
|
||||||
void SetHScrollBar(wxScrollBar* bar) { m_hScrollBar = bar; }
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
@@ -1610,12 +1562,10 @@ private:
|
|||||||
// Event handlers
|
// Event handlers
|
||||||
void OnPaint(wxPaintEvent& evt);
|
void OnPaint(wxPaintEvent& evt);
|
||||||
void OnScrollWin(wxScrollWinEvent& evt);
|
void OnScrollWin(wxScrollWinEvent& evt);
|
||||||
void OnScroll(wxScrollEvent& evt);
|
|
||||||
void OnSize(wxSizeEvent& evt);
|
void OnSize(wxSizeEvent& evt);
|
||||||
void OnMouseLeftDown(wxMouseEvent& evt);
|
void OnMouseLeftDown(wxMouseEvent& evt);
|
||||||
void OnMouseMove(wxMouseEvent& evt);
|
void OnMouseMove(wxMouseEvent& evt);
|
||||||
void OnMouseLeftUp(wxMouseEvent& evt);
|
void OnMouseLeftUp(wxMouseEvent& evt);
|
||||||
void OnMouseRightUp(wxMouseEvent& evt);
|
|
||||||
void OnContextMenu(wxContextMenuEvent& evt);
|
void OnContextMenu(wxContextMenuEvent& evt);
|
||||||
void OnMouseWheel(wxMouseEvent& evt);
|
void OnMouseWheel(wxMouseEvent& evt);
|
||||||
void OnChar(wxKeyEvent& evt);
|
void OnChar(wxKeyEvent& evt);
|
||||||
@@ -1632,17 +1582,13 @@ private:
|
|||||||
void NotifyChange();
|
void NotifyChange();
|
||||||
void NotifyParent(SCNotification* scn);
|
void NotifyParent(SCNotification* scn);
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
DECLARE_CLASS(wxStyledTextCtrl)
|
DECLARE_CLASS(wxStyledTextCtrl)
|
||||||
|
|
||||||
ScintillaWX* m_swx;
|
ScintillaWX* m_swx;
|
||||||
wxStopWatch m_stopWatch;
|
wxStopWatch m_stopWatch;
|
||||||
wxScrollBar* m_vScrollBar;
|
|
||||||
wxScrollBar* m_hScrollBar;
|
|
||||||
|
|
||||||
bool m_lastKeyDownConsumed;
|
|
||||||
|
|
||||||
friend class ScintillaWX;
|
friend class ScintillaWX;
|
||||||
friend class Platform;
|
friend class Platform;
|
||||||
@@ -1654,9 +1600,6 @@ private:
|
|||||||
class wxStyledTextEvent : public wxCommandEvent {
|
class wxStyledTextEvent : public wxCommandEvent {
|
||||||
public:
|
public:
|
||||||
wxStyledTextEvent(wxEventType commandType=0, int id=0);
|
wxStyledTextEvent(wxEventType commandType=0, int id=0);
|
||||||
#ifndef SWIG
|
|
||||||
wxStyledTextEvent(const wxStyledTextEvent& event);
|
|
||||||
#endif
|
|
||||||
~wxStyledTextEvent() {}
|
~wxStyledTextEvent() {}
|
||||||
|
|
||||||
void SetPosition(int pos) { m_position = pos; }
|
void SetPosition(int pos) { m_position = pos; }
|
||||||
@@ -1676,11 +1619,6 @@ public:
|
|||||||
void SetListType(int val) { m_listType = val; }
|
void SetListType(int val) { m_listType = val; }
|
||||||
void SetX(int val) { m_x = val; }
|
void SetX(int val) { m_x = val; }
|
||||||
void SetY(int val) { m_y = val; }
|
void SetY(int val) { m_y = val; }
|
||||||
#ifndef __WXMAC__ // #if wxUSE_DRAG_AND_DROP
|
|
||||||
void SetDragText(const wxString& val) { m_dragText = val; }
|
|
||||||
void SetDragAllowMove(bool val) { m_dragAllowMove = val; }
|
|
||||||
void SetDragResult(wxDragResult val) { m_dragResult = val; }
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int GetPosition() const { return m_position; }
|
int GetPosition() const { return m_position; }
|
||||||
int GetKey() const { return m_key; }
|
int GetKey() const { return m_key; }
|
||||||
@@ -1699,17 +1637,12 @@ public:
|
|||||||
int GetListType() const { return m_listType; }
|
int GetListType() const { return m_listType; }
|
||||||
int GetX() const { return m_x; }
|
int GetX() const { return m_x; }
|
||||||
int GetY() const { return m_y; }
|
int GetY() const { return m_y; }
|
||||||
#ifndef __WXMAC__ // #if wxUSE_DRAG_AND_DROP
|
|
||||||
wxString GetDragText() { return m_dragText; }
|
|
||||||
bool GetDragAllowMove() { return m_dragAllowMove; }
|
|
||||||
wxDragResult GetDragResult() { return m_dragResult; }
|
|
||||||
#endif
|
|
||||||
|
|
||||||
bool GetShift() const;
|
bool GetShift() const;
|
||||||
bool GetControl() const;
|
bool GetControl() const;
|
||||||
bool GetAlt() const;
|
bool GetAlt() const;
|
||||||
|
|
||||||
virtual wxEvent* Clone() const { return new wxStyledTextEvent(*this); }
|
void CopyObject(wxObject& obj) const;
|
||||||
|
|
||||||
#ifndef SWIG
|
#ifndef SWIG
|
||||||
private:
|
private:
|
||||||
@@ -1736,13 +1669,6 @@ private:
|
|||||||
int m_listType;
|
int m_listType;
|
||||||
int m_x;
|
int m_x;
|
||||||
int m_y;
|
int m_y;
|
||||||
|
|
||||||
#ifndef __WXMAC__ // #if wxUSE_DRAG_AND_DROP
|
|
||||||
wxString m_dragText; // wxEVT_STC_START_DRAG, wxEVT_STC_DO_DROP
|
|
||||||
bool m_dragAllowMove; // wxEVT_STC_START_DRAG
|
|
||||||
|
|
||||||
wxDragResult m_dragResult; // wxEVT_STC_DRAG_OVER,wxEVT_STC_DO_DROP
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -1767,11 +1693,6 @@ BEGIN_DECLARE_EVENT_TYPES()
|
|||||||
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_URIDROPPED, 1666)
|
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_URIDROPPED, 1666)
|
||||||
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_DWELLSTART, 1667)
|
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_DWELLSTART, 1667)
|
||||||
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_DWELLEND, 1668)
|
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_DWELLEND, 1668)
|
||||||
#if wxUSE_DRAG_AND_DROP
|
|
||||||
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_START_DRAG, 1669)
|
|
||||||
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_DRAG_OVER, 1670)
|
|
||||||
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_DO_DROP, 1671)
|
|
||||||
#endif
|
|
||||||
END_DECLARE_EVENT_TYPES()
|
END_DECLARE_EVENT_TYPES()
|
||||||
#else
|
#else
|
||||||
enum {
|
enum {
|
||||||
@@ -1794,11 +1715,6 @@ END_DECLARE_EVENT_TYPES()
|
|||||||
wxEVT_STC_URIDROPPED,
|
wxEVT_STC_URIDROPPED,
|
||||||
wxEVT_STC_DWELLSTART,
|
wxEVT_STC_DWELLSTART,
|
||||||
wxEVT_STC_DWELLEND,
|
wxEVT_STC_DWELLEND,
|
||||||
#ifndef __WXMAC__ // #if wxUSE_DRAG_AND_DROP
|
|
||||||
wxEVT_STC_START_DRAG,
|
|
||||||
wxEVT_STC_DRAG_OVER,
|
|
||||||
wxEVT_STC_DO_DROP,
|
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -1826,11 +1742,8 @@ typedef void (wxEvtHandler::*wxStyledTextEventFunction)(wxStyledTextEvent&);
|
|||||||
#define EVT_STC_URIDROPPED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_URIDROPPED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
|
#define EVT_STC_URIDROPPED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_URIDROPPED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
|
||||||
#define EVT_STC_DWELLSTART(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DWELLSTART, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
|
#define EVT_STC_DWELLSTART(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DWELLSTART, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
|
||||||
#define EVT_STC_DWELLEND(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DWELLEND, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
|
#define EVT_STC_DWELLEND(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DWELLEND, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
|
||||||
#if wxUSE_DRAG_AND_DROP
|
|
||||||
#define EVT_STC_START_DRAG(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_START_DRAG, 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 ),
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
CONTRIB_SAMPLES=canvas fl gizmos mmedia net ogl plot stc xrc #applet
|
CONTRIB_SAMPLES=mmedia ogl stc gizmos canvas xrc plot applet fl
|
||||||
|
|
||||||
all:
|
all:
|
||||||
@for d in $(CONTRIB_SAMPLES); do (cd $$d && $(MAKE)); done
|
@for d in $(CONTRIB_SAMPLES); do (cd $$d && $(MAKE)); done
|
||||||
|
@@ -47,7 +47,7 @@ RSC=rc.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/msw" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
# ADD CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "../../../include" /I "../../../contrib/include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /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
|
||||||
@@ -58,7 +58,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 wxmsw.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib anim.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /out:"Release/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 wx.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib anim.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /out:"Release/anitest.exe" /libpath:"../../../lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "AniTestVC - Win32 Debug"
|
!ELSEIF "$(CFG)" == "AniTestVC - Win32 Debug"
|
||||||
|
|
||||||
@@ -74,7 +74,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 /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/mswd" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "../../../include" /I "../../../contrib/include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
||||||
# SUBTRACT CPP /YX /Yc /Yu
|
# 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
|
||||||
@@ -85,7 +85,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 wxmswd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib animd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /out:"Debug/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 wxd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib animd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /out:"Debug/anitest.exe" /pdbtype:sept /libpath:"../../../lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "AniTestVC - Win32 Debug DLL"
|
!ELSEIF "$(CFG)" == "AniTestVC - Win32 Debug DLL"
|
||||||
|
|
||||||
@@ -101,7 +101,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 /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" /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 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"
|
||||||
@@ -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 wxmsw232d.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 wx23_2d.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"
|
||||||
|
|
||||||
@@ -127,7 +127,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 /O1 /Ob2 /I "../../../include" /I "../../../contrib/include" /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
|
||||||
@@ -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 wxmsw232.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 wx23_2.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"
|
||||||
|
|
||||||
@@ -218,8 +218,6 @@ SOURCE=.\anitest.h
|
|||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\anitest.rc
|
SOURCE=.\anitest.rc
|
||||||
# ADD BASE RSC /l 0x809
|
|
||||||
# ADD RSC /l 0x809 /i "../../../include"
|
|
||||||
# End Source File
|
# End Source File
|
||||||
# End Target
|
# End Target
|
||||||
# End Project
|
# End Project
|
||||||
|
@@ -27,7 +27,7 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
// 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
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
// 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
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -45,18 +45,18 @@ RSC=rc.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/msw" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
# ADD CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "../../../../include" /I "../../../../contrib/include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /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
|
||||||
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
||||||
# ADD RSC /l 0x809 /i "../../../include" /d "NDEBUG"
|
# ADD RSC /l 0x809 /d "NDEBUG"
|
||||||
BSC32=bscmake.exe
|
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 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 wxmsw.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib canvas.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /out:"Release/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 wx.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib canvas.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /out:"Release/simple.exe" /libpath:"../../../../lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "SimpleVC - Win32 Debug"
|
!ELSEIF "$(CFG)" == "SimpleVC - Win32 Debug"
|
||||||
|
|
||||||
@@ -72,18 +72,18 @@ 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/mswd" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "../../../../include" /I "../../../../contrib/include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
||||||
# SUBTRACT CPP /YX /Yc /Yu
|
# 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"
|
||||||
# ADD RSC /l 0x809 /i "../../../include" /d "_DEBUG"
|
# ADD RSC /l 0x809 /d "_DEBUG"
|
||||||
BSC32=bscmake.exe
|
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 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 wxmswd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib canvasd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /out:"Debug/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 wxd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib canvasd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /out:"Debug/simple.exe" /pdbtype:sept /libpath:"../../../../lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "SimpleVC - Win32 Debug DLL"
|
!ELSEIF "$(CFG)" == "SimpleVC - Win32 Debug DLL"
|
||||||
|
|
||||||
@@ -99,17 +99,17 @@ 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" /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 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"
|
||||||
# ADD RSC /l 0x809 /i "../../../include" /d "_DEBUG"
|
# ADD RSC /l 0x809 /d "_DEBUG"
|
||||||
BSC32=bscmake.exe
|
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 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 wxmsw232d.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 wxdlld.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"
|
||||||
|
|
||||||
@@ -125,18 +125,18 @@ 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 /O1 /Ob2 /I "../../../../include" /I "../../../../contrib/include" /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
|
||||||
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
||||||
# ADD RSC /l 0x809 /i "../../../include" /d "NDEBUG"
|
# ADD RSC /l 0x809 /d "NDEBUG"
|
||||||
BSC32=bscmake.exe
|
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 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 wxmsw232.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 wxdll.lib canvas.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/simple.exe" /libpath:"../../../../lib"
|
||||||
|
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
@@ -169,8 +169,7 @@ SOURCE=.\simple.cpp
|
|||||||
|
|
||||||
SOURCE=.\simple.rc
|
SOURCE=.\simple.rc
|
||||||
# ADD BASE RSC /l 0x809
|
# ADD BASE RSC /l 0x809
|
||||||
# ADD RSC /l 0x809 /i "../../../../include" /i "..\..\include"
|
# ADD RSC /l 0x809 /i "..\..\include"
|
||||||
# SUBTRACT RSC /i "../../../include"
|
|
||||||
# End Source File
|
# End Source File
|
||||||
# End Target
|
# End Target
|
||||||
# End Project
|
# End Project
|
||||||
|
@@ -45,7 +45,7 @@ RSC=rc.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/msw" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
# ADD CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "../../../../include" /I "../../../../contrib/include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /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
|
||||||
@@ -56,7 +56,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 wxmsw.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib canvas.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /out:"Release/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 wx.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib canvas.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /out:"Release/test.exe" /libpath:"../../../../lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "TestVC - Win32 Debug"
|
!ELSEIF "$(CFG)" == "TestVC - Win32 Debug"
|
||||||
|
|
||||||
@@ -72,7 +72,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 /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/mswd" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "../../../../include" /I "../../../../contrib/include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
||||||
# SUBTRACT CPP /YX /Yc /Yu
|
# 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
|
||||||
@@ -83,7 +83,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 wxmswd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib canvasd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /out:"Debug/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 wxd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib canvasd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /out:"Debug/test.exe" /pdbtype:sept /libpath:"../../../../lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "TestVC - Win32 Debug DLL"
|
!ELSEIF "$(CFG)" == "TestVC - Win32 Debug DLL"
|
||||||
|
|
||||||
@@ -99,7 +99,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 /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" /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 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 +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 wxmsw232d.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 wxdlld.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"
|
||||||
|
|
||||||
@@ -125,7 +125,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 /O1 /Ob2 /I "../../../../include" /I "../../../../contrib/include" /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 +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 wxmsw232.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 wxdll.lib canvas.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/test.exe" /libpath:"../../../../lib"
|
||||||
|
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
@@ -169,7 +169,7 @@ SOURCE=.\test.cpp
|
|||||||
|
|
||||||
SOURCE=.\test.rc
|
SOURCE=.\test.rc
|
||||||
# ADD BASE RSC /l 0x809
|
# ADD BASE RSC /l 0x809
|
||||||
# ADD RSC /l 0x809 /i "../../../../include"
|
# ADD RSC /l 0x809 /i "..\..\..\include"
|
||||||
# End Source File
|
# End Source File
|
||||||
# End Target
|
# End Target
|
||||||
# End Project
|
# End Project
|
||||||
|
@@ -43,7 +43,7 @@ RSC=rc.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/msw" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /D BMP_DIR=\"../bitmaps/\" /c
|
# ADD CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "../../../../include" /I "../../../../contrib/include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /D BMP_DIR=\"../bitmaps/\" /c
|
||||||
# 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
|
||||||
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
||||||
@@ -53,7 +53,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 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 wx.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"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "fl_demo1 - Win32 Debug"
|
!ELSEIF "$(CFG)" == "fl_demo1 - Win32 Debug"
|
||||||
|
|
||||||
@@ -69,7 +69,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 /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/mswd" /D "_DEBUG" /D DEBUG=1 /D "__WXDEBUG__" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /Yu"wx/wxprec.h" /FD /D BMP_DIR=\"../bitmaps/\" /c
|
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "../../../../include" /I "../../../../contrib/include" /D "_DEBUG" /D DEBUG=1 /D "__WXDEBUG__" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /Yu"wx/wxprec.h" /FD /D BMP_DIR=\"../bitmaps/\" /c
|
||||||
# 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"
|
||||||
@@ -79,7 +79,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 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 wxd.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"
|
||||||
|
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
@@ -103,8 +103,6 @@ SOURCE=.\fl_demo1.cpp
|
|||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\fl_demo1.rc
|
SOURCE=.\fl_demo1.rc
|
||||||
# ADD BASE RSC /l 0x809
|
|
||||||
# ADD RSC /l 0x809 /i "../../../../include"
|
|
||||||
# End Source File
|
# End Source File
|
||||||
# End Target
|
# End Target
|
||||||
# End Project
|
# End Project
|
||||||
|
@@ -78,8 +78,8 @@ bool MyApp::OnInit(void)
|
|||||||
SetTopWindow(frame);
|
SetTopWindow(frame);
|
||||||
|
|
||||||
|
|
||||||
wxMessageBox("Hello, this demo has a bunch of yet-not-fixed-bugs and missing functionality\n" \
|
wxMessageBox("Hello, this demo has a bunch of yet-not-fixed-bugs and misssing functionality\n" \
|
||||||
"The ONLY purpose is to demonstrate self-layouting toolbars,\nflat-bitmapped-buttons and 2-new FL-plugins" \
|
"The ONLY purpose is to demostrate self-layouting toolbars,\nflat-bitmapped-buttons and 2-new FL-plugins" \
|
||||||
"(cbRowDragPlugin & cbBarHintsPlugin)\n\n" \
|
"(cbRowDragPlugin & cbBarHintsPlugin)\n\n" \
|
||||||
"BTW, disabled images and label-text are rendered at run-time" );
|
"BTW, disabled images and label-text are rendered at run-time" );
|
||||||
|
|
||||||
@@ -203,7 +203,7 @@ MyFrame::MyFrame(wxFrame *frame)
|
|||||||
sizes1, FL_ALIGN_TOP, // alignment ( 0-top,1-bottom, etc)
|
sizes1, FL_ALIGN_TOP, // alignment ( 0-top,1-bottom, etc)
|
||||||
0, // insert into 0th row (vert. position)
|
0, // insert into 0th row (vert. position)
|
||||||
0, // offset from the start of row (in pixels)
|
0, // offset from the start of row (in pixels)
|
||||||
"ToolBar1", // name to refer in customization pop-ups
|
"ToolBar1", // name to refere in customization pop-ups
|
||||||
TRUE
|
TRUE
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@@ -43,7 +43,7 @@ RSC=rc.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/msw" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /D BMP_DIR=\"../bitmaps/\" /c
|
# ADD CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "../../../../include" /I "../../../../contrib/include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /D BMP_DIR=\"../bitmaps/\" /c
|
||||||
# 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
|
||||||
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
||||||
@@ -53,7 +53,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 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 wx.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"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "fl_demo2 - Win32 Debug"
|
!ELSEIF "$(CFG)" == "fl_demo2 - Win32 Debug"
|
||||||
|
|
||||||
@@ -69,7 +69,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 /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/mswd" /D "_DEBUG" /D DEBUG=1 /D "__WXDEBUG__" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /Yu"wx/wxprec.h" /FD /D BMP_DIR=\"../bitmaps/\" /c
|
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "../../../../include" /I "../../../../contrib/include" /D "_DEBUG" /D DEBUG=1 /D "__WXDEBUG__" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /Yu"wx/wxprec.h" /FD /D BMP_DIR=\"../bitmaps/\" /c
|
||||||
# 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"
|
||||||
@@ -79,7 +79,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 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 wxd.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"
|
||||||
|
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
@@ -103,8 +103,6 @@ SOURCE=.\fl_demo2.cpp
|
|||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\fl_demo2.rc
|
SOURCE=.\fl_demo2.rc
|
||||||
# ADD BASE RSC /l 0x809
|
|
||||||
# ADD RSC /l 0x809 /i "../../../../include"
|
|
||||||
# End Source File
|
# End Source File
|
||||||
# End Target
|
# End Target
|
||||||
# End Project
|
# End Project
|
||||||
|
@@ -43,7 +43,7 @@ RSC=rc.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/msw" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /D BMP_DIR=\"../bitmaps/\" /c
|
# ADD CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "../../../../include" /I "../../../../contrib/include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /D BMP_DIR=\"../bitmaps/\" /c
|
||||||
# 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
|
||||||
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
||||||
@@ -53,7 +53,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 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 wx.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"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "fl_sample1 - Win32 Debug"
|
!ELSEIF "$(CFG)" == "fl_sample1 - Win32 Debug"
|
||||||
|
|
||||||
@@ -69,7 +69,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 /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/mswd" /D "_DEBUG" /D DEBUG=1 /D "__WXDEBUG__" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /Yu"wx/wxprec.h" /FD /D BMP_DIR=\"../bitmaps/\" /c
|
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "../../../../include" /I "../../../../contrib/include" /D "_DEBUG" /D DEBUG=1 /D "__WXDEBUG__" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /Yu"wx/wxprec.h" /FD /D BMP_DIR=\"../bitmaps/\" /c
|
||||||
# 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"
|
||||||
@@ -79,7 +79,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 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 wxd.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"
|
||||||
|
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
@@ -103,8 +103,6 @@ SOURCE=.\fl_sample1.cpp
|
|||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\fl_sample1.rc
|
SOURCE=.\fl_sample1.rc
|
||||||
# ADD BASE RSC /l 0x809
|
|
||||||
# ADD RSC /l 0x809 /i "../../../../include"
|
|
||||||
# End Source File
|
# End Source File
|
||||||
# End Target
|
# End Target
|
||||||
# End Project
|
# End Project
|
||||||
|
@@ -43,7 +43,7 @@ RSC=rc.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/msw" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /D BMP_DIR=\"../bitmaps/\" /c
|
# ADD CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "../../../../include" /I "../../../../contrib/include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /D BMP_DIR=\"../bitmaps/\" /c
|
||||||
# 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
|
||||||
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
||||||
@@ -53,7 +53,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 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 wx.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"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "fl_sample2 - Win32 Debug"
|
!ELSEIF "$(CFG)" == "fl_sample2 - Win32 Debug"
|
||||||
|
|
||||||
@@ -69,7 +69,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 /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/mswd" /D "_DEBUG" /D DEBUG=1 /D "__WXDEBUG__" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /Yu"wx/wxprec.h" /FD /D BMP_DIR=\"../bitmaps/\" /c
|
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "../../../../include" /I "../../../../contrib/include" /D "_DEBUG" /D DEBUG=1 /D "__WXDEBUG__" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /Yu"wx/wxprec.h" /FD /D BMP_DIR=\"../bitmaps/\" /c
|
||||||
# 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"
|
||||||
@@ -79,7 +79,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 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 wxd.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"
|
||||||
|
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
@@ -103,8 +103,6 @@ SOURCE=.\fl_sample2.cpp
|
|||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\fl_sample2.rc
|
SOURCE=.\fl_sample2.rc
|
||||||
# ADD BASE RSC /l 0x809
|
|
||||||
# ADD RSC /l 0x809 /i "../../../../include"
|
|
||||||
# End Source File
|
# End Source File
|
||||||
# End Target
|
# End Target
|
||||||
# End Project
|
# End Project
|
||||||
|
@@ -43,7 +43,7 @@ RSC=rc.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/msw" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /D BMP_DIR=\"../bitmaps/\" /c
|
# ADD CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "../../../../include" /I "../../../../contrib/include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /D BMP_DIR=\"../bitmaps/\" /c
|
||||||
# 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
|
||||||
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
||||||
@@ -53,7 +53,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 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 wx.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"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "fl_sample3 - Win32 Debug"
|
!ELSEIF "$(CFG)" == "fl_sample3 - Win32 Debug"
|
||||||
|
|
||||||
@@ -69,7 +69,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 /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/mswd" /D "_DEBUG" /D DEBUG=1 /D "__WXDEBUG__" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /Yu"wx/wxprec.h" /FD /D BMP_DIR=\"../bitmaps/\" /c
|
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "../../../../include" /I "../../../../contrib/include" /D "_DEBUG" /D DEBUG=1 /D "__WXDEBUG__" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /Yu"wx/wxprec.h" /FD /D BMP_DIR=\"../bitmaps/\" /c
|
||||||
# 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"
|
||||||
@@ -79,7 +79,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 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 wxd.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"
|
||||||
|
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
@@ -103,8 +103,6 @@ SOURCE=.\fl_sample3.cpp
|
|||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\fl_sample3.rc
|
SOURCE=.\fl_sample3.rc
|
||||||
# ADD BASE RSC /l 0x809
|
|
||||||
# ADD RSC /l 0x809 /i "../../../../include"
|
|
||||||
# End Source File
|
# End Source File
|
||||||
# End Target
|
# End Target
|
||||||
# End Project
|
# End Project
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
# Purpose: makefile for multicell example (Unix)
|
# Purpose: makefile for multicell example (Unix)
|
||||||
# Created 2000-07-28
|
# Created 2000-07-28
|
||||||
|
|
||||||
CXX = $(shell wx-config --cxx)
|
CC = gcc
|
||||||
|
|
||||||
PROGRAM = mtest
|
PROGRAM = mtest
|
||||||
|
|
||||||
@@ -13,12 +13,12 @@ EXTRAINC=-I../include
|
|||||||
.SUFFIXES: .o .cpp
|
.SUFFIXES: .o .cpp
|
||||||
|
|
||||||
.cpp.o :
|
.cpp.o :
|
||||||
$(CXX) -c `wx-config --cxxflags` -o $@ $<
|
$(CC) -c `wx-config --cflags` -o $@ $<
|
||||||
|
|
||||||
all: $(PROGRAM)
|
all: $(PROGRAM)
|
||||||
|
|
||||||
$(PROGRAM): $(OBJECTS)
|
$(PROGRAM): $(OBJECTS)
|
||||||
$(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs`
|
$(CC) -o $(PROGRAM) $(OBJECTS) `wx-config --libs`
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o $(PROGRAM)
|
rm -f *.o $(PROGRAM)
|
||||||
|
@@ -45,7 +45,7 @@ RSC=rc.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 "..\..\include" /I "../../../../lib/msw" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
# ADD CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "..\..\..\..\include" /I "..\..\include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /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
|
||||||
@@ -56,7 +56,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 wxmsw.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib gizmos.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" /nodefaultlib:"msvcrtd.lib" /out:"Release/tree.exe" /libpath:"../../../../lib"
|
# ADD LINK32 wx.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib gizmos.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" /nodefaultlib:"msvcrtd.lib" /out:"Release/tree.exe" /libpath:"d:\wx2\wxWindows\lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "TreeVC - Win32 Debug"
|
!ELSEIF "$(CFG)" == "TreeVC - Win32 Debug"
|
||||||
|
|
||||||
@@ -72,7 +72,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 /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 "..\..\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" /Yu"wx/wxprec.h" /FD /c
|
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "..\..\..\..\include" /I "..\..\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /Yu"wx/wxprec.h" /FD /c
|
||||||
# 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"
|
||||||
@@ -82,7 +82,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 wxmswd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib gizmosd.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" /nodefaultlib:"msvcrt.lib" /out:"Debug/tree.exe" /pdbtype:sept /libpath:"../../../../lib"
|
# ADD LINK32 wxd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib gizmosd.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" /nodefaultlib:"msvcrt.lib" /out:"Debug/tree.exe" /pdbtype:sept /libpath:"d:\wx2\wxWindows\lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "TreeVC - Win32 Debug DLL"
|
!ELSEIF "$(CFG)" == "TreeVC - Win32 Debug DLL"
|
||||||
|
|
||||||
@@ -98,7 +98,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 /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 "..\..\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 "..\..\include" /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 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"
|
||||||
@@ -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 wxmsw232d.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 wxdlld.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" /libpath:"../../contrib/lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "TreeVC - Win32 Release DLL"
|
!ELSEIF "$(CFG)" == "TreeVC - Win32 Release DLL"
|
||||||
|
|
||||||
@@ -124,7 +124,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 "..\..\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 /O1 /Ob2 /I "..\..\..\..\include" /I "..\..\include" /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
|
||||||
@@ -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 wxmsw232.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 wxdll.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" /libpath:"../../contrib/lib"
|
||||||
|
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
@@ -181,7 +181,7 @@ SOURCE=.\tree.h
|
|||||||
|
|
||||||
SOURCE=.\tree.rc
|
SOURCE=.\tree.rc
|
||||||
# ADD BASE RSC /l 0x809
|
# ADD BASE RSC /l 0x809
|
||||||
# ADD RSC /l 0x809 /i "../../../../include"
|
# ADD RSC /l 0x809 /i "d:\wx2\wxWindows\include"
|
||||||
# End Source File
|
# End Source File
|
||||||
# End Target
|
# End Target
|
||||||
# End Project
|
# End Project
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
# under Linux.
|
# under Linux.
|
||||||
#
|
#
|
||||||
|
|
||||||
CXX = $(shell wx-config --cxx)
|
CC = gcc
|
||||||
|
|
||||||
PROGRAM = minimal
|
PROGRAM = minimal
|
||||||
|
|
||||||
@@ -24,12 +24,12 @@ OBJECTS = $(PROGRAM).o
|
|||||||
.SUFFIXES: .o .cpp
|
.SUFFIXES: .o .cpp
|
||||||
|
|
||||||
.cpp.o :
|
.cpp.o :
|
||||||
$(CXX) -c `wx-config --cxxflags` -o $@ $<
|
$(CC) -c `wx-config --cflags` -o $@ $<
|
||||||
|
|
||||||
all: $(PROGRAM)
|
all: $(PROGRAM)
|
||||||
|
|
||||||
$(PROGRAM): $(OBJECTS)
|
$(PROGRAM): $(OBJECTS)
|
||||||
$(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs`
|
$(CC) -o $(PROGRAM) $(OBJECTS) `wx-config --libs`
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o $(PROGRAM)
|
rm -f *.o $(PROGRAM)
|
||||||
|
@@ -169,10 +169,8 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
|
|||||||
m_splitter = new wxThinSplitterWindow(m_scrolledWindow, idSPLITTER_WINDOW, wxDefaultPosition,
|
m_splitter = new wxThinSplitterWindow(m_scrolledWindow, idSPLITTER_WINDOW, wxDefaultPosition,
|
||||||
wxDefaultSize, wxSP_3DBORDER | wxCLIP_CHILDREN /* | wxSP_LIVE_UPDATE */);
|
wxDefaultSize, wxSP_3DBORDER | wxCLIP_CHILDREN /* | wxSP_LIVE_UPDATE */);
|
||||||
m_splitter->SetSashSize(2);
|
m_splitter->SetSashSize(2);
|
||||||
|
|
||||||
/* Note the wxTR_ROW_LINES style: draws horizontal lines between items */
|
|
||||||
m_tree = new TestTree(m_splitter, idTREE_CTRL, wxDefaultPosition,
|
m_tree = new TestTree(m_splitter, idTREE_CTRL, wxDefaultPosition,
|
||||||
wxDefaultSize, wxTR_HAS_BUTTONS | wxTR_NO_LINES | wxNO_BORDER | wxTR_ROW_LINES );
|
wxDefaultSize, wxTR_HAS_BUTTONS | wxTR_NO_LINES | wxNO_BORDER );
|
||||||
m_valueWindow = new TestValueWindow(m_splitter, idVALUE_WINDOW, wxDefaultPosition,
|
m_valueWindow = new TestValueWindow(m_splitter, idVALUE_WINDOW, wxDefaultPosition,
|
||||||
wxDefaultSize, wxNO_BORDER);
|
wxDefaultSize, wxNO_BORDER);
|
||||||
m_splitter->SplitVertically(m_tree, m_valueWindow);
|
m_splitter->SplitVertically(m_tree, m_valueWindow);
|
||||||
@@ -232,6 +230,7 @@ void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
|
|||||||
IMPLEMENT_CLASS(TestTree, wxRemotelyScrolledTreeCtrl)
|
IMPLEMENT_CLASS(TestTree, wxRemotelyScrolledTreeCtrl)
|
||||||
|
|
||||||
BEGIN_EVENT_TABLE(TestTree, wxRemotelyScrolledTreeCtrl)
|
BEGIN_EVENT_TABLE(TestTree, wxRemotelyScrolledTreeCtrl)
|
||||||
|
EVT_PAINT(TestTree::OnPaint)
|
||||||
END_EVENT_TABLE()
|
END_EVENT_TABLE()
|
||||||
|
|
||||||
TestTree::TestTree(wxWindow* parent, wxWindowID id, const wxPoint& pt,
|
TestTree::TestTree(wxWindow* parent, wxWindowID id, const wxPoint& pt,
|
||||||
@@ -274,6 +273,39 @@ TestTree::~TestTree()
|
|||||||
delete m_imageList;
|
delete m_imageList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TestTree::OnPaint(wxPaintEvent& event)
|
||||||
|
{
|
||||||
|
wxPaintDC dc(this);
|
||||||
|
|
||||||
|
wxTreeCtrl::OnPaint(event);
|
||||||
|
|
||||||
|
// Reset the device origin since it may have been set
|
||||||
|
dc.SetDeviceOrigin(0, 0);
|
||||||
|
|
||||||
|
wxPen pen(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DLIGHT), 1, wxSOLID);
|
||||||
|
dc.SetPen(pen);
|
||||||
|
dc.SetBrush(* wxTRANSPARENT_BRUSH);
|
||||||
|
|
||||||
|
wxSize clientSize = GetClientSize();
|
||||||
|
wxRect itemRect;
|
||||||
|
int cy=0;
|
||||||
|
wxTreeItemId h, lastH;
|
||||||
|
for(h=GetFirstVisibleItem();h;h=GetNextVisible(h))
|
||||||
|
{
|
||||||
|
if (GetBoundingRect(h, itemRect))
|
||||||
|
{
|
||||||
|
cy = itemRect.GetTop();
|
||||||
|
dc.DrawLine(0, cy, clientSize.x, cy);
|
||||||
|
lastH = h;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (GetBoundingRect(lastH, itemRect))
|
||||||
|
{
|
||||||
|
cy = itemRect.GetBottom();
|
||||||
|
dc.DrawLine(0, cy, clientSize.x, cy);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* TestValueWindow
|
* TestValueWindow
|
||||||
*/
|
*/
|
||||||
|
@@ -45,7 +45,6 @@ protected:
|
|||||||
wxRemotelyScrolledTreeCtrl* m_tree;
|
wxRemotelyScrolledTreeCtrl* m_tree;
|
||||||
wxThinSplitterWindow* m_splitter;
|
wxThinSplitterWindow* m_splitter;
|
||||||
wxSplitterScrolledWindow* m_scrolledWindow;
|
wxSplitterScrolledWindow* m_scrolledWindow;
|
||||||
//wxScrolledWindow* m_scrolledWindow;
|
|
||||||
TestValueWindow* m_valueWindow;
|
TestValueWindow* m_valueWindow;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@@ -79,6 +78,7 @@ public:
|
|||||||
const wxSize& sz = wxDefaultSize, long style = wxTR_HAS_BUTTONS);
|
const wxSize& sz = wxDefaultSize, long style = wxTR_HAS_BUTTONS);
|
||||||
~TestTree();
|
~TestTree();
|
||||||
|
|
||||||
|
void OnPaint(wxPaintEvent& event);
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
protected:
|
protected:
|
||||||
wxImageList* m_imageList;
|
wxImageList* m_imageList;
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
# Microsoft Developer Studio Project File - Name="MMboardVC" - Package Owner=<4>
|
# Microsoft Developer Studio Project File - Name="MMboardVC" - Package Owner=<4>
|
||||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
# Microsoft Developer Studio Generated Build File, Format Version 5.00
|
||||||
|
# (Actually, generated by MakeProject, (c) Julian Smart, 1998)
|
||||||
# ** DO NOT EDIT **
|
# ** DO NOT EDIT **
|
||||||
|
|
||||||
# TARGTYPE "Win32 (x86) Application" 0x0101
|
# TARGTYPE "Win32 (x86) Application" 0x0101
|
||||||
@@ -24,7 +25,6 @@ CFG=MMboardVC - Win32 Debug
|
|||||||
!MESSAGE
|
!MESSAGE
|
||||||
|
|
||||||
# Begin Project
|
# Begin Project
|
||||||
# PROP AllowPerConfigDependencies 0
|
|
||||||
# PROP Scc_ProjName ""
|
# PROP Scc_ProjName ""
|
||||||
# PROP Scc_LocalPath ""
|
# PROP Scc_LocalPath ""
|
||||||
CPP=cl.exe
|
CPP=cl.exe
|
||||||
@@ -45,10 +45,10 @@ RSC=rc.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/msw" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
# ADD CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "../../../include" /I "../../../contrib/include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /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
|
||||||
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
||||||
# ADD RSC /l 0x809 /d "NDEBUG"
|
# ADD RSC /l 0x809 /d "NDEBUG"
|
||||||
BSC32=bscmake.exe
|
BSC32=bscmake.exe
|
||||||
@@ -56,7 +56,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 wxmsw.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib mmedia.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /out:"Release/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 wx.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib mmedia.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib,libci.lib,msvcrtd.lib" /out:"Release/mmboard.exe" /libpath:"../../../lib" /libpath:"../../../contrib/lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "MMboardVC - Win32 Debug"
|
!ELSEIF "$(CFG)" == "MMboardVC - Win32 Debug"
|
||||||
|
|
||||||
@@ -72,9 +72,9 @@ 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/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" /Yu"wx/wxprec.h" /FD /c
|
# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "../../../include" /I "../../../contrib/include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /Yu"wx/wxprec.h" /FD /c
|
||||||
# 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"
|
||||||
# ADD RSC /l 0x809 /d "_DEBUG"
|
# ADD RSC /l 0x809 /d "_DEBUG"
|
||||||
BSC32=bscmake.exe
|
BSC32=bscmake.exe
|
||||||
@@ -82,7 +82,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 wxmswd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib mmediad.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /out:"Debug/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 wxd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib mmediad.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib,libcid.lib,msvcrt.lib" /out:"Debug/mmboard.exe" /pdbtype:sept /libpath:"../../../lib" /libpath:"../../../contrib/lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "MMboardVC - Win32 Debug DLL"
|
!ELSEIF "$(CFG)" == "MMboardVC - Win32 Debug DLL"
|
||||||
|
|
||||||
@@ -98,9 +98,9 @@ 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" /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 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"
|
||||||
# ADD RSC /l 0x809 /d "_DEBUG"
|
# ADD RSC /l 0x809 /d "_DEBUG"
|
||||||
BSC32=bscmake.exe
|
BSC32=bscmake.exe
|
||||||
@@ -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 wxmsw232d.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 wx23_2d.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"
|
||||||
|
|
||||||
@@ -124,10 +124,10 @@ 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 /O1 /Ob2 /I "../../../include" /I "../../../contrib/include" /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
|
||||||
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
||||||
# ADD RSC /l 0x809 /d "NDEBUG"
|
# ADD RSC /l 0x809 /d "NDEBUG"
|
||||||
BSC32=bscmake.exe
|
BSC32=bscmake.exe
|
||||||
@@ -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 wxmsw232.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 wx23_2.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
|
||||||
|
|
||||||
@@ -147,30 +147,6 @@ LINK32=link.exe
|
|||||||
# Name "MMboardVC - Win32 Release DLL"
|
# Name "MMboardVC - Win32 Release DLL"
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\mmbman.cpp
|
|
||||||
|
|
||||||
!IF "$(CFG)" == "MMboardVC - Win32 Release"
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "MMboardVC - Win32 Debug"
|
|
||||||
|
|
||||||
# SUBTRACT CPP /YX /Yc /Yu
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "MMboardVC - Win32 Debug DLL"
|
|
||||||
|
|
||||||
# SUBTRACT BASE CPP /YX /Yc /Yu
|
|
||||||
# SUBTRACT CPP /YX /Yc /Yu
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "MMboardVC - Win32 Release DLL"
|
|
||||||
|
|
||||||
!ENDIF
|
|
||||||
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=.\mmbman.h
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=.\mmboard.cpp
|
SOURCE=.\mmboard.cpp
|
||||||
|
|
||||||
!IF "$(CFG)" == "MMboardVC - Win32 Release"
|
!IF "$(CFG)" == "MMboardVC - Win32 Release"
|
||||||
@@ -192,33 +168,68 @@ SOURCE=.\mmboard.cpp
|
|||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\mmboard.h
|
SOURCE=.\mmboard.h
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=.\mmboard.rc
|
|
||||||
|
|
||||||
!IF "$(CFG)" == "MMboardVC - Win32 Release"
|
!IF "$(CFG)" == "MMboardVC - Win32 Release"
|
||||||
|
|
||||||
# ADD BASE RSC /l 0x809
|
|
||||||
# ADD RSC /l 0x809 /i "../../../include" /i "../../../contrib/include"
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "MMboardVC - Win32 Debug"
|
!ELSEIF "$(CFG)" == "MMboardVC - Win32 Debug"
|
||||||
|
|
||||||
# ADD BASE RSC /l 0x809
|
# SUBTRACT CPP /YX /Yc /Yu
|
||||||
# ADD RSC /l 0x809 /i "../../../include" /i "../../../contrib/include"
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "MMboardVC - Win32 Debug DLL"
|
!ELSEIF "$(CFG)" == "MMboardVC - Win32 Debug DLL"
|
||||||
|
|
||||||
# ADD BASE RSC /l 0x809
|
# SUBTRACT BASE CPP /YX /Yc /Yu
|
||||||
# ADD RSC /l 0x809 /i "../../../include" /i "../../../contrib/include"
|
# SUBTRACT CPP /YX /Yc /Yu
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "MMboardVC - Win32 Release DLL"
|
!ELSEIF "$(CFG)" == "MMboardVC - Win32 Release DLL"
|
||||||
|
|
||||||
# ADD BASE RSC /l 0x809
|
|
||||||
# ADD RSC /l 0x809 /i "../../../../include" /i "../../../../contrib/include"
|
|
||||||
|
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\mmbman.cpp
|
||||||
|
|
||||||
|
!IF "$(CFG)" == "MMboardVC - Win32 Release"
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "MMboardVC - Win32 Debug"
|
||||||
|
|
||||||
|
# SUBTRACT CPP /YX /Yc /Yu
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "MMboardVC - Win32 Debug DLL"
|
||||||
|
|
||||||
|
# SUBTRACT BASE CPP /YX /Yc /Yu
|
||||||
|
# SUBTRACT CPP /YX /Yc /Yu
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "MMboardVC - Win32 Release DLL"
|
||||||
|
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\mmbman.h
|
||||||
|
|
||||||
|
!IF "$(CFG)" == "MMboardVC - Win32 Release"
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "MMboardVC - Win32 Debug"
|
||||||
|
|
||||||
|
# SUBTRACT CPP /YX /Yc /Yu
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "MMboardVC - Win32 Debug DLL"
|
||||||
|
|
||||||
|
# SUBTRACT BASE CPP /YX /Yc /Yu
|
||||||
|
# SUBTRACT CPP /YX /Yc /Yu
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "MMboardVC - Win32 Release DLL"
|
||||||
|
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\mmboard.rc
|
||||||
|
# ADD BASE RSC /l 0x809
|
||||||
|
# ADD RSC /l 0x809 /i "../../../include" /i "../../../contrib/include"
|
||||||
# End Source File
|
# End Source File
|
||||||
# End Target
|
# End Target
|
||||||
# End Project
|
# End Project
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
Microsoft Developer Studio Workspace File, Format Version 6.00
|
Microsoft Developer Studio Workspace File, Format Version 5.00
|
||||||
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
@@ -45,7 +45,7 @@ RSC=rc.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/msw" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
# ADD CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "../../../../include" /I "../../../../contrib/include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /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
|
||||||
@@ -56,7 +56,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 wxmsw.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib ogl.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /out:"Release/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 wx.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib ogl.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /out:"Release/ogledit.exe" /libpath:"../../../../lib" /libpath:"../../../../contrib/lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "OGLEditVC - Win32 Debug"
|
!ELSEIF "$(CFG)" == "OGLEditVC - Win32 Debug"
|
||||||
|
|
||||||
@@ -72,7 +72,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 /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/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" /Yu"wx/wxprec.h" /FD /c
|
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "../../../../include" /I "../../../../contrib/include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /Yu"wx/wxprec.h" /FD /c
|
||||||
# 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"
|
||||||
@@ -82,7 +82,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 wxmswd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib ogld.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /out:"Debug/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 wxd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib ogld.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /out:"Debug/ogledit.exe" /pdbtype:sept /libpath:"../../../../lib" /libpath:"../../../../contrib/lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "OGLEditVC - Win32 Debug DLL"
|
!ELSEIF "$(CFG)" == "OGLEditVC - Win32 Debug DLL"
|
||||||
|
|
||||||
@@ -98,7 +98,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 /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" /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 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"
|
||||||
@@ -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 wxmsw232d.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 wx23_2d.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"
|
||||||
|
|
||||||
@@ -124,7 +124,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 /O1 /Ob2 /I "../../../../include" /I "../../../../contrib/include" /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
|
||||||
@@ -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 wxmsw232.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 wx23_2.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
|
||||||
|
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// For compilers that support precompilation, includes "wx.h".
|
// For compilers that support precompilation, includes "wx.h".
|
||||||
#include "wx/wxprec.h"
|
#include <wx/wxprec.h>
|
||||||
|
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
|
@@ -12,7 +12,8 @@
|
|||||||
# on your system.
|
# on your system.
|
||||||
#
|
#
|
||||||
|
|
||||||
CXX = $(shell wx-config --cxx)
|
CPP = gcc -g
|
||||||
|
CC = gcc
|
||||||
WXCONFIG=../../../../wx-config
|
WXCONFIG=../../../../wx-config
|
||||||
WXINCLUDE=-I../../../../include -I../../../include
|
WXINCLUDE=-I../../../../include -I../../../include
|
||||||
WXLIB=-L../../../../lib -L../../../src/ogl
|
WXLIB=-L../../../../lib -L../../../src/ogl
|
||||||
@@ -20,19 +21,19 @@ WXLIB=-L../../../../lib -L../../../src/ogl
|
|||||||
OBJECTS=ogledit.o palette.o doc.o view.o
|
OBJECTS=ogledit.o palette.o doc.o view.o
|
||||||
|
|
||||||
ogledit: $(OBJECTS)
|
ogledit: $(OBJECTS)
|
||||||
$(CXX) -o ogledit $(OBJECTS) `$(WXCONFIG) --libs` $(WXLIB) -logl
|
$(CPP) -o ogledit $(OBJECTS) `$(WXCONFIG) --libs` $(WXLIB) -logl
|
||||||
|
|
||||||
ogledit.o: ogledit.cpp
|
ogledit.o: ogledit.cpp
|
||||||
$(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c ogledit.cpp
|
$(CPP) `$(WXCONFIG) --cflags` -I../../src $(WXINCLUDE) -c ogledit.cpp
|
||||||
|
|
||||||
palette.o: palette.cpp
|
palette.o: palette.cpp
|
||||||
$(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c palette.cpp
|
$(CPP) `$(WXCONFIG) --cflags` -I../../src $(WXINCLUDE) -c palette.cpp
|
||||||
|
|
||||||
doc.o: doc.cpp
|
doc.o: doc.cpp
|
||||||
$(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c doc.cpp
|
$(CPP) `$(WXCONFIG) --cflags` -I../../src $(WXINCLUDE) -c doc.cpp
|
||||||
|
|
||||||
view.o: view.cpp
|
view.o: view.cpp
|
||||||
$(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c view.cpp
|
$(CPP) `$(WXCONFIG) --cflags` -I../../src $(WXINCLUDE) -c view.cpp
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o ogledit
|
rm -f *.o ogledit
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// For compilers that support precompilation, includes "wx.h".
|
// For compilers that support precompilation, includes "wx.h".
|
||||||
#include "wx/wxprec.h"
|
#include <wx/wxprec.h>
|
||||||
|
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// For compilers that support precompilation, includes "wx.h".
|
// For compilers that support precompilation, includes "wx.h".
|
||||||
#include "wx/wxprec.h"
|
#include <wx/wxprec.h>
|
||||||
|
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// For compilers that support precompilation, includes "wx.h".
|
// For compilers that support precompilation, includes "wx.h".
|
||||||
#include "wx/wxprec.h"
|
#include <wx/wxprec.h>
|
||||||
|
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
|
@@ -45,7 +45,7 @@ RSC=rc.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/msw" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
# ADD CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "../../../../include" /I "../../../../contrib/include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /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
|
||||||
@@ -56,7 +56,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 wxmsw.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib ogl.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /out:"Release/studio.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 wx.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib ogl.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /out:"Release/studio.exe" /libpath:"../../../../lib" /libpath:"../../../../contrib/lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "StudioVC - Win32 Debug"
|
!ELSEIF "$(CFG)" == "StudioVC - Win32 Debug"
|
||||||
|
|
||||||
@@ -72,7 +72,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 /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/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" /Yu"wx/wxprec.h" /FD /c
|
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "../../../../include" /I "../../../../contrib/include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /Yu"wx/wxprec.h" /FD /c
|
||||||
# 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"
|
||||||
@@ -82,7 +82,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 wxmswd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib ogld.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /out:"Debug/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 wxd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib ogld.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /out:"Debug/studio.exe" /pdbtype:sept /libpath:"../../../../lib" /libpath:"../../../../contrib/lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "StudioVC - Win32 Debug DLL"
|
!ELSEIF "$(CFG)" == "StudioVC - Win32 Debug DLL"
|
||||||
|
|
||||||
@@ -98,7 +98,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 /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" /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 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"
|
||||||
@@ -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 wxmsw232d.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 wx23_2d.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"
|
||||||
|
|
||||||
@@ -124,7 +124,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 /O1 /Ob2 /I "../../../../include" /I "../../../../contrib/include" /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
|
||||||
@@ -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 wx232.lib ogl.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/studio.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 wx23_2.lib ogl.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/studio.exe" /libpath:"../../../../lib" /libpath:"../../../../contrib/lib"
|
||||||
|
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// For compilers that support precompilation, includes "wx.h".
|
// For compilers that support precompilation, includes "wx.h".
|
||||||
#include "wx/wxprec.h"
|
#include <wx/wxprec.h>
|
||||||
|
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// For compilers that support precompilation, includes "wx.h".
|
// For compilers that support precompilation, includes "wx.h".
|
||||||
#include "wx/wxprec.h"
|
#include <wx/wxprec.h>
|
||||||
|
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// For compilers that support precompilation, includes "wx.h".
|
// For compilers that support precompilation, includes "wx.h".
|
||||||
#include "wx/wxprec.h"
|
#include <wx/wxprec.h>
|
||||||
|
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// For compilers that support precompilation, includes "wx.h".
|
// For compilers that support precompilation, includes "wx.h".
|
||||||
#include "wx/wxprec.h"
|
#include <wx/wxprec.h>
|
||||||
|
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
|
@@ -12,7 +12,8 @@
|
|||||||
# on your system.
|
# on your system.
|
||||||
#
|
#
|
||||||
|
|
||||||
CXX = $(shell wx-config --cxx)
|
CPP = gcc -g
|
||||||
|
CC = gcc
|
||||||
WXCONFIG=../../../../wx-config
|
WXCONFIG=../../../../wx-config
|
||||||
WXINCLUDE=-I../../../../include -I../../../include
|
WXINCLUDE=-I../../../../include -I../../../include
|
||||||
WXLIB=-L../../../../lib -L../../../src/ogl
|
WXLIB=-L../../../../lib -L../../../src/ogl
|
||||||
@@ -20,37 +21,37 @@ WXLIB=-L../../../../lib -L../../../src/ogl
|
|||||||
OBJECTS=studio.o cspalette.o csprint.o dialogs.o doc.o mainfrm.o project.o shapes.o symbols.o view.o
|
OBJECTS=studio.o cspalette.o csprint.o dialogs.o doc.o mainfrm.o project.o shapes.o symbols.o view.o
|
||||||
|
|
||||||
studio: $(OBJECTS)
|
studio: $(OBJECTS)
|
||||||
$(CXX) -o studio $(OBJECTS) `$(WXCONFIG) --libs` $(WXLIB) -logl
|
$(CPP) -o studio $(OBJECTS) `$(WXCONFIG) --libs` $(WXLIB) -logl
|
||||||
|
|
||||||
studio.o: studio.cpp
|
studio.o: studio.cpp
|
||||||
$(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c studio.cpp
|
$(CPP) `$(WXCONFIG) --cflags` -I../../src $(WXINCLUDE) -c studio.cpp
|
||||||
|
|
||||||
cspalette.o: cspalette.cpp
|
cspalette.o: cspalette.cpp
|
||||||
$(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c cspalette.cpp
|
$(CPP) `$(WXCONFIG) --cflags` -I../../src $(WXINCLUDE) -c cspalette.cpp
|
||||||
|
|
||||||
doc.o: doc.cpp
|
doc.o: doc.cpp
|
||||||
$(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c doc.cpp
|
$(CPP) `$(WXCONFIG) --cflags` -I../../src $(WXINCLUDE) -c doc.cpp
|
||||||
|
|
||||||
view.o: view.cpp
|
view.o: view.cpp
|
||||||
$(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c view.cpp
|
$(CPP) `$(WXCONFIG) --cflags` -I../../src $(WXINCLUDE) -c view.cpp
|
||||||
|
|
||||||
dialogs.o: dialogs.cpp
|
dialogs.o: dialogs.cpp
|
||||||
$(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c dialogs.cpp
|
$(CPP) `$(WXCONFIG) --cflags` -I../../src $(WXINCLUDE) -c dialogs.cpp
|
||||||
|
|
||||||
mainfrm.o: mainfrm.cpp
|
mainfrm.o: mainfrm.cpp
|
||||||
$(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c mainfrm.cpp
|
$(CPP) `$(WXCONFIG) --cflags` -I../../src $(WXINCLUDE) -c mainfrm.cpp
|
||||||
|
|
||||||
project.o: project.cpp
|
project.o: project.cpp
|
||||||
$(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c project.cpp
|
$(CPP) `$(WXCONFIG) --cflags` -I../../src $(WXINCLUDE) -c project.cpp
|
||||||
|
|
||||||
shapes.o: shapes.cpp
|
shapes.o: shapes.cpp
|
||||||
$(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c shapes.cpp
|
$(CPP) `$(WXCONFIG) --cflags` -I../../src $(WXINCLUDE) -c shapes.cpp
|
||||||
|
|
||||||
symbols.o: symbols.cpp
|
symbols.o: symbols.cpp
|
||||||
$(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c symbols.cpp
|
$(CPP) `$(WXCONFIG) --cflags` -I../../src $(WXINCLUDE) -c symbols.cpp
|
||||||
|
|
||||||
csprint.o: csprint.cpp
|
csprint.o: csprint.cpp
|
||||||
$(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c csprint.cpp
|
$(CPP) `$(WXCONFIG) --cflags` -I../../src $(WXINCLUDE) -c csprint.cpp
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o studio
|
rm -f *.o studio
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// For compilers that support precompilation, includes "wx.h".
|
// For compilers that support precompilation, includes "wx.h".
|
||||||
#include "wx/wxprec.h"
|
#include <wx/wxprec.h>
|
||||||
|
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
@@ -168,7 +168,7 @@ void csEvtHandler::OnRightClick(double x, double y, int keys, int attachment)
|
|||||||
|
|
||||||
int viewStartX, viewStartY;
|
int viewStartX, viewStartY;
|
||||||
int unitX, unitY;
|
int unitX, unitY;
|
||||||
GetShape()->GetCanvas()->GetViewStart(& viewStartX, & viewStartY);
|
GetShape()->GetCanvas()->ViewStart(& viewStartX, & viewStartY);
|
||||||
GetShape()->GetCanvas()->GetScrollPixelsPerUnit(& unitX, & unitY);
|
GetShape()->GetCanvas()->GetScrollPixelsPerUnit(& unitX, & unitY);
|
||||||
|
|
||||||
int x1 = (int)(x * GetShape()->GetCanvas()->GetScaleX());
|
int x1 = (int)(x * GetShape()->GetCanvas()->GetScaleX());
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// For compilers that support precompilation, includes "wx.h".
|
// For compilers that support precompilation, includes "wx.h".
|
||||||
#include "wx/wxprec.h"
|
#include <wx/wxprec.h>
|
||||||
|
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// For compilers that support precompilation, includes "wx.h".
|
// For compilers that support precompilation, includes "wx.h".
|
||||||
#include "wx/wxprec.h"
|
#include <wx/wxprec.h>
|
||||||
|
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
|
@@ -56,7 +56,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 wxmsw.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib plot.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /out:"Release/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 wx.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib plot.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /out:"Release/plot.exe" /libpath:"../../../lib" /libpath:"../../../contrib/lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "PlotVC - Win32 Debug"
|
!ELSEIF "$(CFG)" == "PlotVC - Win32 Debug"
|
||||||
|
|
||||||
@@ -83,7 +83,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 wxmswd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib plotd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /out:"Debug/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 wxd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib plotd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /out:"Debug/plot.exe" /pdbtype:sept /libpath:"../../../lib" /libpath:"../../../contrib/lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "PlotVC - Win32 Debug DLL"
|
!ELSEIF "$(CFG)" == "PlotVC - Win32 Debug DLL"
|
||||||
|
|
||||||
@@ -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 wxmsw232d.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 wxdlld.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 wxmsw232.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 wxdll.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
|
||||||
|
|
||||||
@@ -169,7 +169,7 @@ SOURCE=.\plot.cpp
|
|||||||
|
|
||||||
SOURCE=.\plot.rc
|
SOURCE=.\plot.rc
|
||||||
# ADD BASE RSC /l 0x809
|
# ADD BASE RSC /l 0x809
|
||||||
# ADD RSC /l 0x809 /i "..\..\..\include" /i "..\..\..\contrib\include"
|
# ADD RSC /l 0x809 /i "..\..\..\include"
|
||||||
# End Source File
|
# End Source File
|
||||||
# End Target
|
# End Target
|
||||||
# End Project
|
# End Project
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
# Microsoft Developer Studio Project File - Name="StcTestVC" - Package Owner=<4>
|
# Microsoft Developer Studio Project File - Name="StcTestVC" - Package Owner=<4>
|
||||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
# Microsoft Developer Studio Generated Build File, Format Version 5.00
|
||||||
|
# (Actually, generated by MakeProject, (c) Julian Smart, 1998)
|
||||||
# ** DO NOT EDIT **
|
# ** DO NOT EDIT **
|
||||||
|
|
||||||
# TARGTYPE "Win32 (x86) Application" 0x0101
|
# TARGTYPE "Win32 (x86) Application" 0x0101
|
||||||
@@ -24,7 +25,6 @@ CFG=StcTestVC - Win32 Debug
|
|||||||
!MESSAGE
|
!MESSAGE
|
||||||
|
|
||||||
# Begin Project
|
# Begin Project
|
||||||
# PROP AllowPerConfigDependencies 0
|
|
||||||
# PROP Scc_ProjName ""
|
# PROP Scc_ProjName ""
|
||||||
# PROP Scc_LocalPath ""
|
# PROP Scc_LocalPath ""
|
||||||
CPP=cl.exe
|
CPP=cl.exe
|
||||||
@@ -45,10 +45,10 @@ RSC=rc.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/msw" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
# ADD CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "../../../include" /I "../../../contrib/include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /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
|
||||||
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
||||||
# ADD RSC /l 0x809 /d "NDEBUG"
|
# ADD RSC /l 0x809 /d "NDEBUG"
|
||||||
BSC32=bscmake.exe
|
BSC32=bscmake.exe
|
||||||
@@ -56,7 +56,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 wxmsw.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib stc.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /out:"Release/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 wx.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib stc.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib,libci.lib,msvcrtd.lib" /out:"Release/stctest.exe" /libpath:"../../../lib" /libpath:"../../../contrib/lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "StcTestVC - Win32 Debug"
|
!ELSEIF "$(CFG)" == "StcTestVC - Win32 Debug"
|
||||||
|
|
||||||
@@ -72,9 +72,9 @@ 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/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" /Yu"wx/wxprec.h" /FD /c
|
# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "../../../include" /I "../../../contrib/include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /Yu"wx/wxprec.h" /FD /c
|
||||||
# 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"
|
||||||
# ADD RSC /l 0x809 /d "_DEBUG"
|
# ADD RSC /l 0x809 /d "_DEBUG"
|
||||||
BSC32=bscmake.exe
|
BSC32=bscmake.exe
|
||||||
@@ -82,7 +82,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 wxmswd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib stcd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /out:"Debug/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 wxd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib stcd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib,libcid.lib,msvcrt.lib" /out:"Debug/stctest.exe" /pdbtype:sept /libpath:"../../../lib" /libpath:"../../../contrib/lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "StcTestVC - Win32 Debug DLL"
|
!ELSEIF "$(CFG)" == "StcTestVC - Win32 Debug DLL"
|
||||||
|
|
||||||
@@ -98,9 +98,9 @@ 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" /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 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"
|
||||||
# ADD RSC /l 0x809 /d "_DEBUG"
|
# ADD RSC /l 0x809 /d "_DEBUG"
|
||||||
BSC32=bscmake.exe
|
BSC32=bscmake.exe
|
||||||
@@ -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 wxmsw232d.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 wx23_2d.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"
|
||||||
|
|
||||||
@@ -124,10 +124,10 @@ 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 /O1 /Ob2 /I "../../../include" /I "../../../contrib/include" /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
|
||||||
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
||||||
# ADD RSC /l 0x809 /d "NDEBUG"
|
# ADD RSC /l 0x809 /d "NDEBUG"
|
||||||
BSC32=bscmake.exe
|
BSC32=bscmake.exe
|
||||||
@@ -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 wxmsw232.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 wx23_2.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
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
Microsoft Developer Studio Workspace File, Format Version 6.00
|
Microsoft Developer Studio Workspace File, Format Version 5.00
|
||||||
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
@@ -49,6 +49,7 @@ public:
|
|||||||
|
|
||||||
void OnQuit(wxCommandEvent& event);
|
void OnQuit(wxCommandEvent& event);
|
||||||
void OnAbout(wxCommandEvent& event);
|
void OnAbout(wxCommandEvent& event);
|
||||||
|
void OnStyleNeeded(wxStyledTextEvent& event);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
wxStyledTextCtrl* ed;
|
wxStyledTextCtrl* ed;
|
||||||
@@ -69,6 +70,7 @@ enum
|
|||||||
BEGIN_EVENT_TABLE(MyFrame, wxFrame)
|
BEGIN_EVENT_TABLE(MyFrame, wxFrame)
|
||||||
EVT_MENU (ID_Quit, MyFrame::OnQuit)
|
EVT_MENU (ID_Quit, MyFrame::OnQuit)
|
||||||
EVT_MENU (ID_About, MyFrame::OnAbout)
|
EVT_MENU (ID_About, MyFrame::OnAbout)
|
||||||
|
EVT_STC_STYLENEEDED (ID_ED, MyFrame::OnStyleNeeded)
|
||||||
END_EVENT_TABLE()
|
END_EVENT_TABLE()
|
||||||
|
|
||||||
IMPLEMENT_APP(MyApp)
|
IMPLEMENT_APP(MyApp)
|
||||||
@@ -126,7 +128,7 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
|
|||||||
ed = new wxStyledTextCtrl(this, ID_ED);
|
ed = new wxStyledTextCtrl(this, ID_ED);
|
||||||
|
|
||||||
// Default font
|
// Default font
|
||||||
wxFont font(10, wxMODERN, wxNORMAL, wxNORMAL);
|
wxFont font(8, wxMODERN, wxNORMAL, wxNORMAL);
|
||||||
ed->StyleSetFont(wxSTC_STYLE_DEFAULT, font);
|
ed->StyleSetFont(wxSTC_STYLE_DEFAULT, font);
|
||||||
ed->StyleClearAll();
|
ed->StyleClearAll();
|
||||||
|
|
||||||
@@ -146,9 +148,9 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
|
|||||||
ed->StyleSetBold(10, TRUE);
|
ed->StyleSetBold(10, TRUE);
|
||||||
|
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
ed->StyleSetSpec(2, "fore:#007f00,bold,face:Arial,size:9");
|
ed->StyleSetSpec(2, "fore:#007f00,bold,face:Arial,size:7");
|
||||||
#else
|
#else
|
||||||
ed->StyleSetSpec(2, "fore:#007f00,bold,face:Helvetica,size:9");
|
ed->StyleSetSpec(2, "fore:#007f00,bold,face:Helvetica,size:7");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// give it some text to play with
|
// give it some text to play with
|
||||||
@@ -179,6 +181,14 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
|
|||||||
|
|
||||||
// event handlers
|
// event handlers
|
||||||
|
|
||||||
|
void MyFrame::OnStyleNeeded(wxStyledTextEvent& event) {
|
||||||
|
int currEndStyled = ed->GetEndStyled();
|
||||||
|
ed->Colourise(currEndStyled, event.GetPosition());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
|
void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
|
||||||
{
|
{
|
||||||
// TRUE is to force the frame to close
|
// TRUE is to force the frame to close
|
||||||
|
@@ -45,7 +45,7 @@ RSC=rc.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/msw" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
# ADD CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "../../../include" /I "../../../contrib/include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /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
|
||||||
@@ -56,7 +56,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 wxmsw.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib wxxrc.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /out:"Release/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 wx.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib wxxrc.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /out:"Release/xmldemo.exe" /libpath:"../../../lib" /libpath:"../../../contrib/lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "XrcDemoVC - Win32 Debug"
|
!ELSEIF "$(CFG)" == "XrcDemoVC - Win32 Debug"
|
||||||
|
|
||||||
@@ -72,7 +72,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 /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/mswd" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "../../../include" /I "../../../contrib/include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
||||||
# SUBTRACT CPP /YX /Yc /Yu
|
# 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
|
||||||
@@ -83,7 +83,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 wxmswd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib wxxrcd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /out:"Debug/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 wxd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib wxxrcd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /out:"Debug/xmldemo.exe" /pdbtype:sept /libpath:"../../../lib" /libpath:"../../../contrib/lib"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "XrcDemoVC - Win32 Debug DLL"
|
!ELSEIF "$(CFG)" == "XrcDemoVC - Win32 Debug DLL"
|
||||||
|
|
||||||
@@ -99,7 +99,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 /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" /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 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 +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 wxmsw232d.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 wxdlld.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 +125,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 /O1 /Ob2 /I "../../../include" /I "../../../contrib/include" /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 +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 wxmsw232.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 wxdll.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
|
||||||
|
|
||||||
@@ -168,8 +168,6 @@ SOURCE=.\xrcdemo.cpp
|
|||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\xrcdemo.rc
|
SOURCE=.\xrcdemo.rc
|
||||||
# ADD BASE RSC /l 0x809
|
|
||||||
# ADD RSC /l 0x809 /i "../../../include"
|
|
||||||
# End Source File
|
# End Source File
|
||||||
# End Target
|
# End Target
|
||||||
# End Project
|
# End Project
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
CONTRIB_SUBDIRS=canvas fl gizmos mmedia net ogl plot stc xrc #applet
|
CONTRIB_SUBDIRS=ogl mmedia stc xrc applet plot canvas animate fl
|
||||||
|
|
||||||
all:
|
all:
|
||||||
@for d in $(CONTRIB_SUBDIRS); do (cd $$d && $(MAKE)); done
|
@for d in $(CONTRIB_SUBDIRS); do (cd $$d && $(MAKE)); done
|
||||||
|
@@ -41,7 +41,7 @@ RSC=rc.exe
|
|||||||
# PROP Intermediate_Dir "Release"
|
# PROP Intermediate_Dir "Release"
|
||||||
# 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 "../../include" /I "../../../lib/msw" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
# ADD CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "../../../include" /I "../../include" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
||||||
# SUBTRACT CPP /YX
|
# SUBTRACT CPP /YX
|
||||||
# ADD BASE RSC /l 0x809
|
# ADD BASE RSC /l 0x809
|
||||||
# ADD RSC /l 0x809
|
# ADD RSC /l 0x809
|
||||||
@@ -65,7 +65,7 @@ LIB32=link.exe -lib
|
|||||||
# PROP Intermediate_Dir "Debug"
|
# PROP Intermediate_Dir "Debug"
|
||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
# ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
|
# ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
|
||||||
# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "../../../include" /I "../../include" /I "../../../lib/mswd" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "../../../include" /I "../../include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
||||||
# SUBTRACT CPP /YX
|
# SUBTRACT CPP /YX
|
||||||
# ADD BASE RSC /l 0x809
|
# ADD BASE RSC /l 0x809
|
||||||
# ADD RSC /l 0x809
|
# ADD RSC /l 0x809
|
||||||
|
@@ -16,10 +16,8 @@ HEADER_SUBDIR=plot
|
|||||||
HEADERS=animate.h
|
HEADERS=animate.h
|
||||||
|
|
||||||
OBJECTS=animate.o
|
OBJECTS=animate.o
|
||||||
DEPFILES=$(OBJECTS:.o=.d)
|
|
||||||
|
|
||||||
APPEXTRADEFS=-I$(top_srcdir)/contrib/include
|
APPEXTRADEFS=-I$(top_srcdir)/contrib/include
|
||||||
|
|
||||||
include $(top_builddir)/src/makelib.env
|
include $(top_builddir)/src/makelib.env
|
||||||
|
|
||||||
-include $(DEPFILES)
|
|
||||||
|
@@ -16,10 +16,8 @@ HEADER_SUBDIR=applet
|
|||||||
HEADERS=applet.h appletwindow.h
|
HEADERS=applet.h appletwindow.h
|
||||||
|
|
||||||
OBJECTS=applet.o appletwindow.o
|
OBJECTS=applet.o appletwindow.o
|
||||||
DEPFILES=$(OBJECTS:.o=.d)
|
|
||||||
|
|
||||||
APPEXTRADEFS=-I$(top_srcdir)/contrib/include
|
APPEXTRADEFS=-I$(top_srcdir)/contrib/include
|
||||||
|
|
||||||
include $(top_builddir)/src/makelib.env
|
include $(top_builddir)/src/makelib.env
|
||||||
|
|
||||||
-include $(DEPFILES)
|
|
||||||
|
@@ -5,19 +5,23 @@
|
|||||||
* Copyright (C) 1991-2001 SciTech Software, Inc.
|
* Copyright (C) 1991-2001 SciTech Software, Inc.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* ========================================================================
|
* ======================================================================
|
||||||
*
|
* |REMOVAL OR MODIFICATION OF THIS HEADER IS STRICTLY PROHIBITED BY LAW|
|
||||||
* The contents of this file are subject to the wxWindows License
|
* | |
|
||||||
* Version 3.0 (the "License"); you may not use this file except in
|
* |This copyrighted computer code is a proprietary trade secret of |
|
||||||
* compliance with the License. You may obtain a copy of the License at
|
* |SciTech Software, Inc., located at 505 Wall Street, Chico, CA 95928 |
|
||||||
* http://www.wxwindows.org/licence3.txt
|
* |USA (www.scitechsoft.com). ANY UNAUTHORIZED POSSESSION, USE, |
|
||||||
*
|
* |VIEWING, COPYING, MODIFICATION OR DISSEMINATION OF THIS CODE IS |
|
||||||
* Software distributed under the License is distributed on an
|
* |STRICTLY PROHIBITED BY LAW. Unless you have current, express |
|
||||||
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
* |written authorization from SciTech to possess or use this code, you |
|
||||||
* implied. See the License for the specific language governing
|
* |may be subject to civil and/or criminal penalties. |
|
||||||
* rights and limitations under the License.
|
* | |
|
||||||
*
|
* |If you received this code in error or you would like to report |
|
||||||
* ========================================================================
|
* |improper use, please immediately contact SciTech Software, Inc. at |
|
||||||
|
* |530-894-8400. |
|
||||||
|
* | |
|
||||||
|
* |REMOVAL OR MODIFICATION OF THIS HEADER IS STRICTLY PROHIBITED BY LAW|
|
||||||
|
* ======================================================================
|
||||||
*
|
*
|
||||||
* Language: ANSI C++
|
* Language: ANSI C++
|
||||||
* Environment: Any
|
* Environment: Any
|
||||||
@@ -33,16 +37,10 @@
|
|||||||
#include "wx/spawnbrowser.h"
|
#include "wx/spawnbrowser.h"
|
||||||
#include "wx/html/forcelnk.h"
|
#include "wx/html/forcelnk.h"
|
||||||
|
|
||||||
// crt
|
|
||||||
#ifdef __WXMSW__
|
|
||||||
#include <process.h> // spawnl()
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Include private headers
|
// Include private headers
|
||||||
#include "wx/applet/applet.h"
|
#include "wx/applet/applet.h"
|
||||||
#include "wx/applet/window.h"
|
#include "wx/applet/window.h"
|
||||||
#include "wx/applet/loadpage.h"
|
#include "wx/applet/loadpage.h"
|
||||||
#include "wx/applet/plugin.h"
|
|
||||||
|
|
||||||
// Preprocessor Stuff
|
// Preprocessor Stuff
|
||||||
#include "wx/applet/prepinclude.h"
|
#include "wx/applet/prepinclude.h"
|
||||||
@@ -84,36 +82,30 @@ wxHtmlAppletWindow::wxHtmlAppletWindow(
|
|||||||
const wxSize& size,
|
const wxSize& size,
|
||||||
long style,
|
long style,
|
||||||
const wxString& name,
|
const wxString& name,
|
||||||
const wxPalette& globalPalette)
|
const wxString& docroot )
|
||||||
: wxHtmlWindow(parent,id,pos,size,style,name), m_globalPalette(globalPalette)
|
: wxHtmlWindow(parent,id,pos,size,style,name)
|
||||||
{
|
{
|
||||||
// Init our locks
|
// Init our locks
|
||||||
UnLock();
|
UnLock();
|
||||||
|
|
||||||
// setup client navbars
|
// setup client navbars
|
||||||
if (navBar) {
|
if (navBar) {
|
||||||
m_NavBarEnabled = true;
|
|
||||||
m_NavBar = navBar;
|
m_NavBar = navBar;
|
||||||
m_NavBackId = navBackId;
|
m_NavBackId = navBackId;
|
||||||
m_NavForwardId = navForwardId;
|
m_NavForwardId = navForwardId;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
m_NavBarEnabled = false;
|
|
||||||
m_NavBar = NULL;
|
m_NavBar = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_NavBackId = navBackId;
|
// Set up docroot
|
||||||
m_NavForwardId = navForwardId;
|
m_DocRoot = docroot;
|
||||||
|
|
||||||
|
|
||||||
// Set the key_type for applets
|
|
||||||
m_AppletList = wxAppletList(wxKEY_STRING);
|
|
||||||
|
|
||||||
// Add HTML preprocessors
|
// Add HTML preprocessors
|
||||||
// deleting preprocessors is done by the code within the window
|
// deleting preprocessors is done by the code within the window
|
||||||
|
|
||||||
incPreprocessor = new wxIncludePrep(); // #include preprocessor
|
incPreprocessor = new wxIncludePrep(); // #include preprocessor
|
||||||
incPreprocessor->ChangeDirectory(m_FS); // give it access to our filesys object
|
incPreprocessor->ChangeDirectory(m_DocRoot);
|
||||||
|
|
||||||
wxEchoPrep * echoPreprocessor = new wxEchoPrep(); // #echo preprocessor
|
wxEchoPrep * echoPreprocessor = new wxEchoPrep(); // #echo preprocessor
|
||||||
wxIfElsePrep * ifPreprocessor = new wxIfElsePrep();
|
wxIfElsePrep * ifPreprocessor = new wxIfElsePrep();
|
||||||
@@ -131,27 +123,6 @@ wxHtmlAppletWindow::~wxHtmlAppletWindow()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "scitech.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
PARAMETERS:
|
|
||||||
dc - wxDC object to draw on
|
|
||||||
|
|
||||||
REMARKS:
|
|
||||||
This function handles drawing the HTML applet window. Because the standard
|
|
||||||
wxWindows classes don't properly handle palette management, we add code
|
|
||||||
in here to properly select the global palette that we use for all drawing
|
|
||||||
into the DC before we allow the regular wxWindows code to finish the
|
|
||||||
drawing process.
|
|
||||||
****************************************************************************/
|
|
||||||
void wxHtmlAppletWindow::OnDraw(
|
|
||||||
wxDC& dc)
|
|
||||||
{
|
|
||||||
// TODO: Only do this for <= 8bpp modes!
|
|
||||||
dc.SetPalette(m_globalPalette);
|
|
||||||
wxHtmlWindow::OnDraw(dc);
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
PARAMETERS:
|
PARAMETERS:
|
||||||
className - Name of the applet class to create an object for
|
className - Name of the applet class to create an object for
|
||||||
@@ -186,51 +157,10 @@ wxApplet *wxHtmlAppletWindow::CreateApplet(
|
|||||||
delete applet;
|
delete applet;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
else {
|
m_AppletList.Append(iName,applet);
|
||||||
// do some fixups on the size if its screwed up
|
|
||||||
wxSize nsize = applet->GetBestSize();
|
|
||||||
if (nsize.x < size.x) nsize.x = size.x;
|
|
||||||
if (nsize.y < size.y) nsize.y = size.y;
|
|
||||||
applet->SetSize(nsize);
|
|
||||||
}
|
|
||||||
|
|
||||||
m_AppletList.Append(iName,(wxObject*)applet);
|
|
||||||
return applet;
|
return applet;
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
PARAMETERS:
|
|
||||||
classId - Name of the Plugin class to create an object for
|
|
||||||
|
|
||||||
RETURNS:
|
|
||||||
Pointer to the wxplugIn created, or NULL if unable to create the PlugIn.
|
|
||||||
|
|
||||||
REMARKS:
|
|
||||||
This function is used to create new wxPlugIn objects dynamically based on the
|
|
||||||
class name as a string. This allows instances of wxPlugIn classes to be
|
|
||||||
created dynamically based on string values embedded in the custom tags of an
|
|
||||||
HTML page.
|
|
||||||
****************************************************************************/
|
|
||||||
bool wxHtmlAppletWindow::CreatePlugIn(
|
|
||||||
const wxString& classId )
|
|
||||||
{
|
|
||||||
// Dynamically create the class instance at runtime
|
|
||||||
wxClassInfo *info = wxClassInfo::FindClass(classId.c_str());
|
|
||||||
if (!info)
|
|
||||||
return false;
|
|
||||||
wxObject *obj = info->CreateObject();
|
|
||||||
if (!obj)
|
|
||||||
return false;
|
|
||||||
wxPlugIn *plugIn = wxDynamicCast(obj,wxPlugIn);
|
|
||||||
if (!plugIn)
|
|
||||||
return false;
|
|
||||||
if (!plugIn->Create(this)) {
|
|
||||||
delete plugIn;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
PARAMETERS:
|
PARAMETERS:
|
||||||
appletName - Name of the applet class to find
|
appletName - Name of the applet class to find
|
||||||
@@ -288,23 +218,23 @@ bool wxHtmlAppletWindow::LoadPage(
|
|||||||
{
|
{
|
||||||
wxString href(link);
|
wxString href(link);
|
||||||
|
|
||||||
|
// Check for abs path. If it is not then tack on the path
|
||||||
|
// supplied at creation.
|
||||||
|
if (!wxIsAbsolutePath(href))
|
||||||
|
href = m_DocRoot + href;
|
||||||
|
|
||||||
|
// TODO: This needs to be made platform inde if possible.
|
||||||
if (link.GetChar(0) == '?'){
|
if (link.GetChar(0) == '?'){
|
||||||
wxString cmd = link.BeforeFirst('=');
|
wxString cmd = link.BeforeFirst('=');
|
||||||
wxString cmdValue = link.AfterFirst('=');
|
wxString cmdValue = link.AfterFirst('=');
|
||||||
|
|
||||||
// Launches the default Internet browser for the system.
|
|
||||||
if(!(cmd.CmpNoCase("?EXTERNAL"))){
|
if(!(cmd.CmpNoCase("?EXTERNAL"))){
|
||||||
return wxSpawnBrowser(this, cmdValue.c_str());
|
return wxSpawnBrowser(this, cmdValue.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Launches an external program on the system.
|
|
||||||
if (!(cmd.CmpNoCase("?EXECUTE"))){
|
if (!(cmd.CmpNoCase("?EXECUTE"))){
|
||||||
int code = spawnl( P_NOWAIT, cmdValue , NULL );
|
wxProcess *child = new AppletProcess(this);
|
||||||
return (!code);
|
wxExecute(cmdValue, false, child);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Looks for a href in a variable stored as a cookie. The href can be
|
|
||||||
// changed on the fly.
|
|
||||||
if (!(cmd.CmpNoCase("?VIRTUAL"))){
|
if (!(cmd.CmpNoCase("?VIRTUAL"))){
|
||||||
VirtualData& temp = *((VirtualData*)FindCookie(cmdValue));
|
VirtualData& temp = *((VirtualData*)FindCookie(cmdValue));
|
||||||
if (&temp) {
|
if (&temp) {
|
||||||
@@ -317,31 +247,17 @@ bool wxHtmlAppletWindow::LoadPage(
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// This launches a qlet - It is like an applet but is more generic in that it
|
|
||||||
// can be of any wxWin type so it then has the freedom to do more stuff.
|
|
||||||
if (!(cmd.CmpNoCase("?WXAPPLET"))){
|
|
||||||
if (!cmdValue.IsNull()){
|
|
||||||
if (!CreatePlugIn(cmdValue)){
|
|
||||||
#ifdef CHECKED
|
|
||||||
wxLogError(_T("Launch Applet ERROR: '%s' does not exist."), cmdValue.c_str());
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Inform all the applets that the new page is being loaded
|
// Inform all the applets that the new page is being loaded
|
||||||
for (wxAppletList::Node *node = m_AppletList.GetFirst(); node; node = node->GetNext())
|
for (wxAppletList::Node *node = m_AppletList.GetFirst(); node; node = node->GetNext())
|
||||||
(node->GetData())->OnLinkClicked(wxHtmlLinkInfo(href));
|
(node->GetData())->OnLinkClicked(wxHtmlLinkInfo(href));
|
||||||
Show(false);
|
Show(false);
|
||||||
|
|
||||||
bool stat = wxHtmlWindow::LoadPage(href);
|
bool stat = wxHtmlWindow::LoadPage(href);
|
||||||
Show(true);
|
Show(true);
|
||||||
|
|
||||||
// Enable/Dis the navbar tools
|
// Enable/Dis the navbar tools
|
||||||
if (m_NavBarEnabled) {
|
if (m_NavBar) {
|
||||||
m_NavBar->EnableTool(m_NavForwardId,HistoryCanForward());
|
m_NavBar->EnableTool(m_NavForwardId,HistoryCanForward());
|
||||||
m_NavBar->EnableTool(m_NavBackId,HistoryCanBack());
|
m_NavBar->EnableTool(m_NavBackId,HistoryCanBack());
|
||||||
}
|
}
|
||||||
@@ -396,37 +312,6 @@ bool wxHtmlAppletWindow::HistoryBack()
|
|||||||
return wxHtmlWindow::HistoryBack();
|
return wxHtmlWindow::HistoryBack();
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
This function is used to disable the navigation bars. If you want to
|
|
||||||
toggle to the navbars off you must call this function.
|
|
||||||
****************************************************************************/
|
|
||||||
void wxHtmlAppletWindow::DisableNavBar()
|
|
||||||
{
|
|
||||||
m_NavBarEnabled = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
This function is used to enable the nav bars. If you toggle the nav bars on
|
|
||||||
you must call this function.
|
|
||||||
****************************************************************************/
|
|
||||||
void wxHtmlAppletWindow::EnableNavBar()
|
|
||||||
{
|
|
||||||
m_NavBarEnabled = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
This function is used to set the nav bar to a new nav bar if you deleted the
|
|
||||||
one that you were useing. Usally this happens when you toggle a nav bar
|
|
||||||
on or off.
|
|
||||||
****************************************************************************/
|
|
||||||
void wxHtmlAppletWindow::SetNavBar(wxToolBarBase *navBar)
|
|
||||||
{
|
|
||||||
m_NavBar = navBar;
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
PARAMETERS:
|
PARAMETERS:
|
||||||
msg - wxEvent message to be sent to all wxApplets
|
msg - wxEvent message to be sent to all wxApplets
|
||||||
@@ -609,18 +494,6 @@ VirtualData::VirtualData(
|
|||||||
m_href = href;
|
m_href = href;
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
PARAMETERS:
|
|
||||||
REMARKS:
|
|
||||||
VirtualData is used to store information on the virtual links.
|
|
||||||
****************************************************************************/
|
|
||||||
VirtualData::VirtualData()
|
|
||||||
{
|
|
||||||
m_name.Empty();
|
|
||||||
m_group.Empty();
|
|
||||||
m_href.Empty();
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
PARAMETERS:
|
PARAMETERS:
|
||||||
REMARKS:
|
REMARKS:
|
||||||
@@ -655,28 +528,8 @@ TAG_HANDLER_PROC(tag)
|
|||||||
wnd = m_WParser->GetWindow();
|
wnd = m_WParser->GetWindow();
|
||||||
|
|
||||||
if ((appletWindow = wxDynamicCast(wnd,wxHtmlAppletWindow)) != NULL){
|
if ((appletWindow = wxDynamicCast(wnd,wxHtmlAppletWindow)) != NULL){
|
||||||
wxSize size = wxDefaultSize;
|
tag.ScanParam("WIDTH", "%i", &width);
|
||||||
int al;
|
tag.ScanParam("HEIGHT", "%i", &height);
|
||||||
if (tag.HasParam("WIDTH")) {
|
|
||||||
tag.GetParamAsInt("WIDTH", &width);
|
|
||||||
size.SetWidth(width);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (tag.HasParam("HEIGHT")) {
|
|
||||||
tag.GetParamAsInt("HEIGHT", &height);
|
|
||||||
size.SetHeight(height);
|
|
||||||
}
|
|
||||||
|
|
||||||
al = wxHTML_ALIGN_BOTTOM;
|
|
||||||
if (tag.HasParam(wxT("ALIGN"))) {
|
|
||||||
wxString alstr = tag.GetParam(wxT("ALIGN"));
|
|
||||||
alstr.MakeUpper(); // for the case alignment was in ".."
|
|
||||||
if (alstr == wxT("TEXTTOP") || alstr == wxT("TOP"))
|
|
||||||
al = wxHTML_ALIGN_TOP;
|
|
||||||
else if ((alstr == wxT("CENTER")) || (alstr == wxT("ABSCENTER")))
|
|
||||||
al = wxHTML_ALIGN_CENTER;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (tag.HasParam("CLASSID")){
|
if (tag.HasParam("CLASSID")){
|
||||||
classId = tag.GetParam("CLASSID");
|
classId = tag.GetParam("CLASSID");
|
||||||
if ( classId.IsNull() || classId.Len() == 0 ){
|
if ( classId.IsNull() || classId.Len() == 0 ){
|
||||||
@@ -692,9 +545,9 @@ TAG_HANDLER_PROC(tag)
|
|||||||
name = classId;
|
name = classId;
|
||||||
|
|
||||||
// We got all the params and can now create the applet
|
// We got all the params and can now create the applet
|
||||||
if ((applet = appletWindow->CreateApplet(classId, name, tag , size)) != NULL){
|
if ((applet = appletWindow->CreateApplet(classId, name, tag , wxSize(width, height))) != NULL){
|
||||||
applet->Show(true);
|
applet->Show(true);
|
||||||
m_WParser->OpenContainer()->InsertCell(new wxHtmlAppletCell(applet,al));
|
m_WParser->OpenContainer()->InsertCell(new wxHtmlWidgetCell(applet,0));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
wxMessageBox("wxApplet error: Could not create:" + classId + "," + name);
|
wxMessageBox("wxApplet error: Could not create:" + classId + "," + name);
|
||||||
@@ -717,81 +570,6 @@ TAGS_MODULE_BEGIN(wxApplet)
|
|||||||
TAGS_MODULE_ADD(wxApplet)
|
TAGS_MODULE_ADD(wxApplet)
|
||||||
TAGS_MODULE_END(wxApplet)
|
TAGS_MODULE_END(wxApplet)
|
||||||
|
|
||||||
/*********************************************************************************
|
|
||||||
wxHtmlAppletCell
|
|
||||||
*********************************************************************************/
|
|
||||||
wxHtmlAppletCell::wxHtmlAppletCell(wxWindow *wnd, int align) : wxHtmlCell()
|
|
||||||
{
|
|
||||||
int sx, sy;
|
|
||||||
m_Wnd = wnd;
|
|
||||||
m_Wnd->GetSize(&sx, &sy);
|
|
||||||
m_Width = sx, m_Height = sy;
|
|
||||||
|
|
||||||
switch (align) {
|
|
||||||
case wxHTML_ALIGN_TOP :
|
|
||||||
m_Descent = m_Height;
|
|
||||||
break;
|
|
||||||
case wxHTML_ALIGN_CENTER :
|
|
||||||
m_Descent = m_Height / 2;
|
|
||||||
break;
|
|
||||||
case wxHTML_ALIGN_BOTTOM :
|
|
||||||
default :
|
|
||||||
m_Descent = 0;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
SetCanLiveOnPagebreak(FALSE);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void wxHtmlAppletCell::Draw(wxDC& WXUNUSED(dc), int WXUNUSED(x), int WXUNUSED(y), int WXUNUSED(view_y1), int WXUNUSED(view_y2))
|
|
||||||
{
|
|
||||||
int absx = 0, absy = 0, stx, sty;
|
|
||||||
wxHtmlCell *c = this;
|
|
||||||
|
|
||||||
while (c)
|
|
||||||
{
|
|
||||||
absx += c->GetPosX();
|
|
||||||
absy += c->GetPosY();
|
|
||||||
c = c->GetParent();
|
|
||||||
}
|
|
||||||
|
|
||||||
((wxScrolledWindow*)(m_Wnd->GetParent()))->GetViewStart(&stx, &sty);
|
|
||||||
m_Wnd->Move(absx - wxHTML_SCROLL_STEP * stx, absy - wxHTML_SCROLL_STEP * sty);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void wxHtmlAppletCell::DrawInvisible(wxDC& WXUNUSED(dc), int WXUNUSED(x), int WXUNUSED(y))
|
|
||||||
{
|
|
||||||
int absx = 0, absy = 0, stx, sty;
|
|
||||||
wxHtmlCell *c = this;
|
|
||||||
|
|
||||||
while (c)
|
|
||||||
{
|
|
||||||
absx += c->GetPosX();
|
|
||||||
absy += c->GetPosY();
|
|
||||||
c = c->GetParent();
|
|
||||||
}
|
|
||||||
|
|
||||||
((wxScrolledWindow*)(m_Wnd->GetParent()))->GetViewStart(&stx, &sty);
|
|
||||||
m_Wnd->Move(absx - wxHTML_SCROLL_STEP * stx, absy - wxHTML_SCROLL_STEP * sty);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void wxHtmlAppletCell::Layout(int w)
|
|
||||||
{
|
|
||||||
int sx, sy;
|
|
||||||
m_Wnd->GetSize(&sx, &sy);
|
|
||||||
m_Width = sx, m_Height = sy;
|
|
||||||
|
|
||||||
wxHtmlCell::Layout(w);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// This is our little forcelink hack.
|
// This is our little forcelink hack.
|
||||||
FORCE_LINK(loadpage)
|
FORCE_LINK(loadpage)
|
||||||
|
|
||||||
|
@@ -1,60 +0,0 @@
|
|||||||
/****************************************************************************
|
|
||||||
*
|
|
||||||
* wxWindows HTML Applet Package
|
|
||||||
*
|
|
||||||
* Copyright (C) 1991-2001 SciTech Software, Inc.
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* ========================================================================
|
|
||||||
*
|
|
||||||
* The contents of this file are subject to the wxWindows License
|
|
||||||
* Version 3.0 (the "License"); you may not use this file except in
|
|
||||||
* compliance with the License. You may obtain a copy of the License at
|
|
||||||
* http://www.wxwindows.org/licence3.txt
|
|
||||||
*
|
|
||||||
* Software distributed under the License is distributed on an
|
|
||||||
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
||||||
* implied. See the License for the specific language governing
|
|
||||||
* rights and limitations under the License.
|
|
||||||
*
|
|
||||||
* ========================================================================
|
|
||||||
*
|
|
||||||
* Language: ANSI C++
|
|
||||||
* Environment: Any
|
|
||||||
*
|
|
||||||
* Description: Main wxPlugIn class implementation
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
// For compilers that support precompilation
|
|
||||||
#include "wx/wxprec.h"
|
|
||||||
|
|
||||||
// Include private headers
|
|
||||||
#include "wx/applet/plugin.h"
|
|
||||||
#include "wx/applet/window.h"
|
|
||||||
|
|
||||||
/*------------------------- Implementation --------------------------------*/
|
|
||||||
|
|
||||||
// Implement the abstract class functions
|
|
||||||
IMPLEMENT_ABSTRACT_CLASS(wxPlugIn, wxObject);
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
Psuedo virtual constructor for the wxPlugIn class.
|
|
||||||
****************************************************************************/
|
|
||||||
bool wxPlugIn::Create(
|
|
||||||
wxHtmlAppletWindow *parent)
|
|
||||||
{
|
|
||||||
m_parent = parent;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
Destructor for the wxPlugIn class.
|
|
||||||
****************************************************************************/
|
|
||||||
wxPlugIn::~wxPlugIn()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
@@ -115,13 +115,8 @@ wxString wxEchoPrep::Process(
|
|||||||
|
|
||||||
// grab the value from the class, put it in tag since the data is no longer needed
|
// grab the value from the class, put it in tag since the data is no longer needed
|
||||||
tag = wxEchoVariable::FindValue(cname, parms.c_str());
|
tag = wxEchoVariable::FindValue(cname, parms.c_str());
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
// remove ampersands and <> chars
|
|
||||||
tag.Replace("&", "&");
|
|
||||||
tag.Replace("<", "<");
|
|
||||||
tag.Replace(">", ">");
|
|
||||||
|
|
||||||
output = (output.Mid(0,i) + tag + output.Mid(i));
|
output = (output.Mid(0,i) + tag + output.Mid(i));
|
||||||
}
|
}
|
||||||
|
@@ -49,17 +49,12 @@ do not correctly pass the given return value.
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
int ReverseFind(
|
int ReverseFind(
|
||||||
const wxString &tstr,
|
const wxString &tstr,
|
||||||
const wxString &str,
|
const wxString &str)
|
||||||
int start = -1)
|
|
||||||
{
|
{
|
||||||
wxASSERT( str.GetStringData()->IsValid() );
|
wxASSERT( str.GetStringData()->IsValid() );
|
||||||
|
|
||||||
// TODO could be made much quicker than that
|
// TODO could be made much quicker than that
|
||||||
int p = tstr.Len()-str.Len()-1;
|
int p = tstr.Len()-str.Len()-1;
|
||||||
int p2 = start-str.Len();
|
|
||||||
|
|
||||||
// if the user supplied a valid start point, use it
|
|
||||||
if (start != -1 && p > p2) p = p2;
|
|
||||||
while ( p >= 0 ) {
|
while ( p >= 0 ) {
|
||||||
if ( wxStrncmp(tstr.c_str() + p, str.c_str(), str.Len()) == 0 )
|
if ( wxStrncmp(tstr.c_str() + p, str.c_str(), str.Len()) == 0 )
|
||||||
return p;
|
return p;
|
||||||
@@ -69,131 +64,6 @@ int ReverseFind(
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
PARAMETERS:
|
|
||||||
str - text of #if statement
|
|
||||||
|
|
||||||
RETURNS:
|
|
||||||
true or false depending on how it evaluated
|
|
||||||
|
|
||||||
REMARKS:
|
|
||||||
|
|
||||||
SEE ALSO:
|
|
||||||
wxIfElseVariable
|
|
||||||
****************************************************************************/
|
|
||||||
bool ParseIfStatementValue(wxString &str) {
|
|
||||||
|
|
||||||
// Find out if the tag has parenthesis
|
|
||||||
// recursive to parse the text within the parenthesis,
|
|
||||||
// replacing the text with 1 or 0, (hardcoded true or false)
|
|
||||||
int b;
|
|
||||||
while ((b = str.Find('(')) != -1) {
|
|
||||||
int e;
|
|
||||||
// Find the matching parenthesis
|
|
||||||
int nextbeg, nextend;
|
|
||||||
int parencount = 1, min = b+1;
|
|
||||||
do {
|
|
||||||
|
|
||||||
nextbeg = str.find('(', min);
|
|
||||||
nextend = str.find(')', min);
|
|
||||||
if (nextbeg < nextend && nextbeg != wxString::npos) {
|
|
||||||
parencount++;
|
|
||||||
min = nextbeg+1;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
parencount--;
|
|
||||||
min = nextend+1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (nextend == wxString::npos) {
|
|
||||||
#ifdef CHECKED
|
|
||||||
wxMessageBox("wxHTML #if\\else error: Unmatched parenthesis in #if expression.","Error",wxICON_ERROR);
|
|
||||||
#endif
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
// once parencount reaches 0 again we have found our matchin )
|
|
||||||
} while (parencount > 0);
|
|
||||||
|
|
||||||
e = nextend;
|
|
||||||
|
|
||||||
// Extract the expression from the parenthesis block and recurse
|
|
||||||
// to solve it.
|
|
||||||
wxString tag;
|
|
||||||
tag = str.Mid(b+1, e-b-1);
|
|
||||||
bool val = ParseIfStatementValue(tag);
|
|
||||||
// Add extra spaces just in case of NOT(VAL)
|
|
||||||
if (val) str = str.Mid(0, b) + " 1" + str.Mid(e+1);
|
|
||||||
else str = str.Mid(0, b) + " 0" + str.Mid(e+1);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// Remove spaces from left and right
|
|
||||||
str.Trim(false);
|
|
||||||
str.Trim(true);
|
|
||||||
|
|
||||||
// Convert text method of operators "AND" and "OR" to c style
|
|
||||||
// this makes only one special case necessary for each later on
|
|
||||||
str.Replace(" AND ", "&&");
|
|
||||||
str.Replace(" OR ", "||");
|
|
||||||
|
|
||||||
// We use ReverseFind so that the whole left expression gets evaluated agains
|
|
||||||
// the right single item, creating a left -> right evaluation
|
|
||||||
// Search for || operators, recurse to solve (so we don't have to handle special cases here)
|
|
||||||
int and, or;
|
|
||||||
and = ReverseFind(str, "&&");
|
|
||||||
or = ReverseFind(str, "||");
|
|
||||||
if ( (and != -1) || (or != -1) ) {
|
|
||||||
wxString tag1, tag2;
|
|
||||||
// handle the rightmost first to force left->right evaluation
|
|
||||||
if (and > or) {
|
|
||||||
return (
|
|
||||||
ParseIfStatementValue(tag2 = str.Mid(and+2)) &&
|
|
||||||
ParseIfStatementValue(tag1 = str.Mid(0, and)) );
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return (
|
|
||||||
ParseIfStatementValue(tag2 = str.Mid(or+2)) ||
|
|
||||||
ParseIfStatementValue(tag1 = str.Mid(0, or)) );
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// By the time we get to this place in the function we are guarenteed to have a single
|
|
||||||
// variable operation, perhaps with a NOT or ! operator
|
|
||||||
bool notval = false;
|
|
||||||
|
|
||||||
// search for a NOT or ! operator
|
|
||||||
if (str.Mid(0, 1) == "!") {
|
|
||||||
str.Remove(0, 1);
|
|
||||||
str.Trim(false); // trim spaces from left
|
|
||||||
notval = true;
|
|
||||||
}
|
|
||||||
else if (str.Mid(0,4).CmpNoCase("NOT ") == 0) {
|
|
||||||
str.Remove(0, 4);
|
|
||||||
str.Trim(false); // trim any extra spaces from left
|
|
||||||
notval = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// now all we have left is the name of the class or a hardcoded 0 or 1
|
|
||||||
|
|
||||||
if (str == "") {
|
|
||||||
#ifdef CHECKED
|
|
||||||
wxMessageBox("wxHTML #if\\else error: Empty expression in #if\\#elif statement.","Error",wxICON_ERROR);
|
|
||||||
#endif
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// check for hardcoded 0 and 1 cases, (these are used by parenthesis catcher)
|
|
||||||
// this just decomplicates the recursion algorithm
|
|
||||||
if (str == "0") return notval;
|
|
||||||
if (str == "1") return !notval;
|
|
||||||
|
|
||||||
// Grab the value from the variable class identified by cname
|
|
||||||
bool value = wxIfElseVariable::FindValue(str);
|
|
||||||
if (notval) value = !value;
|
|
||||||
return value;
|
|
||||||
|
|
||||||
}
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
PARAMETERS:
|
PARAMETERS:
|
||||||
text - HTML to process for if/else blocks
|
text - HTML to process for if/else blocks
|
||||||
@@ -202,7 +72,7 @@ RETURNS:
|
|||||||
The string containing the processed HTML
|
The string containing the processed HTML
|
||||||
|
|
||||||
REMARKS:
|
REMARKS:
|
||||||
This function replaces #if, #else, #elif, and #endif directives with the text
|
This function replaces #if, #else, and #endif directives with the text
|
||||||
contained within the blocks, dependant on the value of the given boolean
|
contained within the blocks, dependant on the value of the given boolean
|
||||||
variable. The variable is created by making a sub class of wxIfElseVariable.
|
variable. The variable is created by making a sub class of wxIfElseVariable.
|
||||||
Dynamic class construction is used at run time internally to create an instance
|
Dynamic class construction is used at run time internally to create an instance
|
||||||
@@ -216,81 +86,14 @@ wxString wxIfElsePrep::Process(
|
|||||||
{
|
{
|
||||||
int b;
|
int b;
|
||||||
char ft[] = "<!--#if ";
|
char ft[] = "<!--#if ";
|
||||||
char ftend[] = "<!--#endif-->";
|
|
||||||
char ftelse[] = "<!--#else-->";
|
|
||||||
char ftnot[] = "<!--#if not ";
|
|
||||||
char ftnot2[] = "<!--#if !";
|
|
||||||
|
|
||||||
char ftelif[] = "<!--#elif ";
|
|
||||||
|
|
||||||
// make a copy so we can replace text as we go without affecting the original
|
// make a copy so we can replace text as we go without affecting the original
|
||||||
wxString output = text;
|
wxString output = text;
|
||||||
|
|
||||||
// Avoid duplication of our parsing code by turning any #elif blocks into appropriate
|
|
||||||
// else/if blocks
|
|
||||||
while ((b = ReverseFind(output.Lower(), ftelif)) != -1) {
|
|
||||||
int e;
|
|
||||||
// Replace beginning of block
|
|
||||||
e = output.find("-->", b + strlen(ftelif));
|
|
||||||
|
|
||||||
if (e == wxString::npos) {
|
|
||||||
#ifdef CHECKED
|
|
||||||
wxMessageBox("wxHTML #elif error: Premature end of file while parsing #elif.","Error",wxICON_ERROR);
|
|
||||||
#endif
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert to lower case so find is easy, grab everything after #elif tag
|
|
||||||
wxString remains = (output.Mid(e+strlen("-->"))).Lower();
|
|
||||||
|
|
||||||
// find matching else or endif
|
|
||||||
int nextif, nextendif;
|
|
||||||
int ifcount = 1, min = 0;
|
|
||||||
do {
|
|
||||||
nextif = remains.find(ft, min);
|
|
||||||
nextendif = remains.find(ftend, min);
|
|
||||||
if (nextif < nextendif && nextif != wxString::npos) {
|
|
||||||
ifcount++;
|
|
||||||
min = nextif+1;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
ifcount--;
|
|
||||||
min = nextendif+1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (nextendif == wxString::npos) {
|
|
||||||
#ifdef CHECKED
|
|
||||||
wxMessageBox("wxHTML #elif error: Premature end of file before finding #endif.","Error",wxICON_ERROR);
|
|
||||||
#endif
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
// once ifcount reaches 0 again we have found our matchin #endif
|
|
||||||
} while (ifcount > 0);
|
|
||||||
|
|
||||||
// If it couldn't be found die gracefully
|
|
||||||
if (nextendif == wxString::npos) {
|
|
||||||
// We already displayed a message, just break all the way out
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
int elifsize = e - (b + strlen(ftelif)) + strlen("-->");
|
|
||||||
// Create the #if/else block, removing the #elif code
|
|
||||||
output = output.Mid(0, b) +
|
|
||||||
wxString(wxString(ftelse)+wxString(ft)) +
|
|
||||||
output.Mid(b+strlen(ftelif), elifsize+nextendif) +
|
|
||||||
wxString(ftend) +
|
|
||||||
output.Mid(b+strlen(ftelif)+elifsize+nextendif);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// Parse out the if else blocks themselves
|
|
||||||
while ((b = ReverseFind(output.Lower(), ft)) != -1) {
|
while ((b = ReverseFind(output.Lower(), ft)) != -1) {
|
||||||
// Loop until every #if directive is found
|
// Loop until every #echo directive is found
|
||||||
// We search from the end of the string so that #if statements will properly recurse
|
// We search from the end of the string so that #if statements will properly recurse
|
||||||
// and we avoid the hassle of matching statements with the correct <!--#endif-->
|
// and we avoid the hassle of matching statements with the correct <!--#endif-->
|
||||||
bool notval = false;
|
int end, c, n;
|
||||||
int off = 0;
|
|
||||||
int end;
|
|
||||||
wxString usecode, code;
|
wxString usecode, code;
|
||||||
wxString cname;
|
wxString cname;
|
||||||
wxString tag;
|
wxString tag;
|
||||||
@@ -308,14 +111,29 @@ wxString wxIfElsePrep::Process(
|
|||||||
}
|
}
|
||||||
|
|
||||||
end += 3;
|
end += 3;
|
||||||
// remove the <!--#if and --> sections from the tag before passing it on to be parsed
|
tag = output.Mid(b, end);
|
||||||
tag = output.Mid(b+strlen(ft), end-strlen(ft)-3);
|
|
||||||
output.Remove(b, end);
|
output.Remove(b, end);
|
||||||
|
|
||||||
value = ParseIfStatementValue(tag);
|
c = tag.Find("-->");
|
||||||
|
n = c;
|
||||||
|
|
||||||
|
// find the classname
|
||||||
|
c = (tag.Mid(8, n-8)).Find(" ");
|
||||||
|
if (c == -1) n -= 8;
|
||||||
|
else n = c;
|
||||||
|
cname = tag.Mid(8, n);
|
||||||
|
|
||||||
|
cname.Trim(false);
|
||||||
|
c = cname.Find("\"");
|
||||||
|
if (c != -1) cname = cname.Mid(c+1);
|
||||||
|
c = cname.Find("\"");
|
||||||
|
if (c != -1) cname = cname.Mid(0, c);
|
||||||
|
|
||||||
|
// Grab the value from the variable class identified by cname
|
||||||
|
value = wxIfElseVariable::FindValue(cname);
|
||||||
|
|
||||||
// Find the end of the tag (<!--#endif-->) and copy it all into the variable code
|
// Find the end of the tag (<!--#endif-->) and copy it all into the variable code
|
||||||
end = ((output.Mid(b)).Lower()).Find(ftend);
|
end = ((output.Mid(b)).Lower()).Find("<!--#endif-->");
|
||||||
if (end == -1) {
|
if (end == -1) {
|
||||||
#ifdef CHECKED
|
#ifdef CHECKED
|
||||||
wxMessageBox("wxHTML #if error: Premature end of file while searching for matching #endif.","Error",wxICON_ERROR);
|
wxMessageBox("wxHTML #if error: Premature end of file while searching for matching #endif.","Error",wxICON_ERROR);
|
||||||
@@ -324,14 +142,14 @@ wxString wxIfElsePrep::Process(
|
|||||||
}
|
}
|
||||||
|
|
||||||
code = output.Mid(b, end);
|
code = output.Mid(b, end);
|
||||||
output.Remove(b, end+strlen(ftend)); // remove the entire #if block from original document
|
output.Remove(b, end+13); // remove the entire #if block from original document
|
||||||
|
|
||||||
// Find out if there is an else statement
|
// Find out if there is an else statement
|
||||||
end = (code.Lower()).Find(ftelse);
|
end = (code.Lower()).Find("<!--#else-->");
|
||||||
if (end != -1) {
|
if (end != -1) {
|
||||||
if (!value) {
|
if (!value) {
|
||||||
// Use the else statement
|
// Use the else statement
|
||||||
usecode = code.Mid(end+strlen(ftelse));
|
usecode = code.Mid(end+12);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Use statement before #else
|
// Use statement before #else
|
||||||
|
@@ -59,6 +59,8 @@ wxString wxIncludePrep::Process(
|
|||||||
int i;
|
int i;
|
||||||
char ft[] = "<!--#include virtual=";
|
char ft[] = "<!--#include virtual=";
|
||||||
|
|
||||||
|
wxFileSystem *fs = new wxFileSystem;
|
||||||
|
fs->ChangePathTo(DOC_ROOT, true);
|
||||||
|
|
||||||
int openedcount = 0;
|
int openedcount = 0;
|
||||||
|
|
||||||
@@ -90,8 +92,7 @@ wxString wxIncludePrep::Process(
|
|||||||
// remove the #include tag
|
// remove the #include tag
|
||||||
output.Remove(i, n+21+3);
|
output.Remove(i, n+21+3);
|
||||||
|
|
||||||
wxFSFile * file;
|
wxFSFile * file = fs->OpenFile(fname);
|
||||||
file = m_FS->OpenFile(fname);
|
|
||||||
|
|
||||||
if (!file) {
|
if (!file) {
|
||||||
#ifdef CHECKED
|
#ifdef CHECKED
|
||||||
@@ -124,6 +125,7 @@ wxString wxIncludePrep::Process(
|
|||||||
delete file;
|
delete file;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delete fs;
|
||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -136,8 +138,9 @@ This function sets the directory to get included HTML files from. The default
|
|||||||
value is the current directory. Directorys may be given as a relative path.
|
value is the current directory. Directorys may be given as a relative path.
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
void wxIncludePrep::ChangeDirectory(
|
void wxIncludePrep::ChangeDirectory(
|
||||||
wxFileSystem *fs)
|
const wxString &dir)
|
||||||
{
|
{
|
||||||
m_FS = fs;
|
|
||||||
|
DOC_ROOT = dir;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -41,7 +41,7 @@ RSC=rc.exe
|
|||||||
# PROP Intermediate_Dir "Release"
|
# PROP Intermediate_Dir "Release"
|
||||||
# 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 "../../include" /I "../../../lib/msw" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
# ADD CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "../../../include" /I "../../include" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
||||||
# SUBTRACT CPP /YX
|
# SUBTRACT CPP /YX
|
||||||
# ADD BASE RSC /l 0x809
|
# ADD BASE RSC /l 0x809
|
||||||
# ADD RSC /l 0x809
|
# ADD RSC /l 0x809
|
||||||
@@ -65,7 +65,7 @@ LIB32=link.exe -lib
|
|||||||
# PROP Intermediate_Dir "Debug"
|
# PROP Intermediate_Dir "Debug"
|
||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
# ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
|
# ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
|
||||||
# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "../../../include" /I "../../include" /I "../../../lib/mswd" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "../../../include" /I "../../include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
||||||
# SUBTRACT CPP /YX
|
# SUBTRACT CPP /YX
|
||||||
# ADD BASE RSC /l 0x809
|
# ADD BASE RSC /l 0x809
|
||||||
# ADD RSC /l 0x809
|
# ADD RSC /l 0x809
|
||||||
|
@@ -16,10 +16,8 @@ HEADER_SUBDIR=canvas
|
|||||||
HEADERS=canvas.h bbox.h liner.h polygon.h
|
HEADERS=canvas.h bbox.h liner.h polygon.h
|
||||||
|
|
||||||
OBJECTS=canvas.o bbox.o liner.o polygon.o
|
OBJECTS=canvas.o bbox.o liner.o polygon.o
|
||||||
DEPFILES=$(OBJECTS:.o=.d)
|
|
||||||
|
|
||||||
APPEXTRADEFS=-I$(top_srcdir)/contrib/include
|
APPEXTRADEFS=-I$(top_srcdir)/contrib/include
|
||||||
|
|
||||||
include $(top_builddir)/src/makelib.env
|
include $(top_builddir)/src/makelib.env
|
||||||
|
|
||||||
-include $(DEPFILES)
|
|
||||||
|
@@ -1,62 +1,29 @@
|
|||||||
# $Id$
|
#
|
||||||
|
# File: Makefile
|
||||||
|
# Author: Hans Van Leemputten
|
||||||
|
# Created: 2001
|
||||||
|
# Updated:
|
||||||
|
# Copyright: (c) wxWorkshop team, 2001
|
||||||
|
#
|
||||||
|
# Makefile for wxWindows FrameLayout library (Linux/wxGTK).
|
||||||
|
|
||||||
top_srcdir = @top_srcdir@/..
|
top_srcdir = @top_srcdir@/..
|
||||||
top_builddir = ../../..
|
top_builddir = ../../..
|
||||||
libsrc_dir = contrib/src/fl
|
libsrc_dir = contrib/src/fl
|
||||||
|
|
||||||
TARGET_LIBNAME = libfl
|
TARGET_LIBNAME = libfl
|
||||||
|
OBJ_EXT = o
|
||||||
|
|
||||||
|
# Version Info.
|
||||||
LIBVERSION_CURRENT=1
|
LIBVERSION_CURRENT=1
|
||||||
LIBVERSION_REVISION=0
|
LIBVERSION_REVISION=0
|
||||||
LIBVERSION_AGE=0
|
LIBVERSION_AGE=0
|
||||||
|
|
||||||
HEADER_PATH=$(top_srcdir)/contrib/include/wx
|
include ./files.lst
|
||||||
HEADER_SUBDIR=fl
|
|
||||||
|
|
||||||
HEADERS = \
|
OBJECTS = $(FL_OBJECTS)
|
||||||
bardragpl.h \
|
|
||||||
cbcustom.h \
|
|
||||||
dynbarhnd.h \
|
|
||||||
dyntbarhnd.h \
|
|
||||||
garbagec.h \
|
|
||||||
hintanimpl.h \
|
|
||||||
panedrawpl.h \
|
|
||||||
rowlayoutpl.h \
|
|
||||||
updatesmgr.h \
|
|
||||||
antiflickpl.h \
|
|
||||||
barhintspl.h \
|
|
||||||
controlbar.h \
|
|
||||||
dyntbar.h \
|
|
||||||
frmview.h \
|
|
||||||
gcupdatesmgr.h \
|
|
||||||
newbmpbtn.h \
|
|
||||||
rowdragpl.h \
|
|
||||||
toolwnd.h
|
|
||||||
|
|
||||||
OBJECTS = \
|
|
||||||
antiflickpl.o \
|
|
||||||
gcupdatesmgr.o \
|
|
||||||
rowlayoutpl.o \
|
|
||||||
bardragpl.o \
|
|
||||||
dyntbar.o \
|
|
||||||
hintanimpl.o \
|
|
||||||
toolwnd.o \
|
|
||||||
barhintspl.o \
|
|
||||||
dyntbarhnd.o \
|
|
||||||
newbmpbtn.o \
|
|
||||||
updatesmgr.o \
|
|
||||||
cbcustom.o \
|
|
||||||
frmview.o \
|
|
||||||
panedrawpl.o \
|
|
||||||
controlbar.o \
|
|
||||||
garbagec.o \
|
|
||||||
rowdragpl.o
|
|
||||||
|
|
||||||
DEPFILES= $(OBJECTS:.o=.d)
|
|
||||||
|
|
||||||
APPEXTRADEFS = -I$(top_srcdir)/contrib/include
|
APPEXTRADEFS = -I$(top_srcdir)/contrib/include
|
||||||
|
|
||||||
include $(top_builddir)/src/makelib.env
|
include $(top_builddir)/src/makelib.env
|
||||||
|
|
||||||
-include $(DEPFILES)
|
|
||||||
|
|
||||||
|
@@ -371,7 +371,7 @@ void cbBarDragPlugin::UnstickFromPane( cbDockPane* pPane, wxPoint& mousePos )
|
|||||||
|
|
||||||
if ( pPane->IsHorizontal() && fromLowerEdge )
|
if ( pPane->IsHorizontal() && fromLowerEdge )
|
||||||
{
|
{
|
||||||
// bool fromLowerEdge = mousePos.y > bounds.y;
|
bool fromLowerEdge = mousePos.y > bounds.y;
|
||||||
|
|
||||||
mHintRect.y = wxMax( bounds.y + bounds.height + 1, mousePos.y - newHeight );
|
mHintRect.y = wxMax( bounds.y + bounds.height + 1, mousePos.y - newHeight );
|
||||||
|
|
||||||
|
@@ -140,7 +140,7 @@ void cbBarHintsPlugin::DrawGrooves( wxDC& dc, const wxPoint& pos, int length )
|
|||||||
|
|
||||||
int i;
|
int i;
|
||||||
for( i = 0; i != mGrooveCount; ++i, ofs += ( GROOVE_WIDTH + GROOVE_TO_GROOVE_GAP ) )
|
for( i = 0; i != mGrooveCount; ++i, ofs += ( GROOVE_WIDTH + GROOVE_TO_GROOVE_GAP ) )
|
||||||
{
|
|
||||||
if ( mpPane->IsHorizontal() )
|
if ( mpPane->IsHorizontal() )
|
||||||
{
|
{
|
||||||
dc.SetPen( mpLayout->mLightPen );
|
dc.SetPen( mpLayout->mLightPen );
|
||||||
@@ -164,7 +164,6 @@ void cbBarHintsPlugin::DrawGrooves( wxDC& dc, const wxPoint& pos, int length )
|
|||||||
dc.DrawPoint( pos.x + length - 1, pos.y + ofs );
|
dc.DrawPoint( pos.x + length - 1, pos.y + ofs );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void cbBarHintsPlugin::ExcludeHints( wxRect& rect, cbBarInfo& info )
|
void cbBarHintsPlugin::ExcludeHints( wxRect& rect, cbBarInfo& info )
|
||||||
{
|
{
|
||||||
@@ -240,21 +239,20 @@ void cbBarHintsPlugin::GetHintsLayout( wxRect& rect, cbBarInfo& info,
|
|||||||
int& boxOfs, int& grooveOfs, int& pos )
|
int& boxOfs, int& grooveOfs, int& pos )
|
||||||
{
|
{
|
||||||
int boxHeight = BTN_BOX_HEIGHT;
|
int boxHeight = BTN_BOX_HEIGHT;
|
||||||
// int boxWidth = BTN_BOX_WIDTH + BOX_TO_GROOVE_GAP + BTN_BOX_WIDTH;
|
int boxWidth = BTN_BOX_WIDTH + BOX_TO_GROOVE_GAP + BTN_BOX_WIDTH;
|
||||||
|
|
||||||
// collapse and close box are not placed on fixed bars
|
// collapse and close box are not placed on fixed bars
|
||||||
|
|
||||||
if ( info.IsFixed() || ( !mCloseBoxOn && !mCollapseBoxOn ) )
|
if ( info.IsFixed() || ( !mCloseBoxOn && !mCollapseBoxOn ) )
|
||||||
{
|
{
|
||||||
boxHeight = 0;
|
boxHeight = 0;
|
||||||
// boxWidth = 0;
|
boxWidth = 0;
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
else
|
else
|
||||||
if ( !mCloseBoxOn || !mCollapseBoxOn )
|
if ( !mCloseBoxOn || !mCollapseBoxOn )
|
||||||
|
|
||||||
boxWidth = BTN_BOX_WIDTH;
|
boxWidth = BTN_BOX_WIDTH;
|
||||||
*/
|
|
||||||
int grooveHeight = mGrooveCount*(GROOVE_WIDTH + GROOVE_TO_GROOVE_GAP)
|
int grooveHeight = mGrooveCount*(GROOVE_WIDTH + GROOVE_TO_GROOVE_GAP)
|
||||||
- GROOVE_TO_GROOVE_GAP;
|
- GROOVE_TO_GROOVE_GAP;
|
||||||
|
|
||||||
@@ -301,9 +299,9 @@ void cbBarHintsPlugin::GetHintsLayout( wxRect& rect, cbBarInfo& info,
|
|||||||
|
|
||||||
int i;
|
int i;
|
||||||
for( i = 0; i != BOXES_IN_HINT; ++i )
|
for( i = 0; i != BOXES_IN_HINT; ++i )
|
||||||
{
|
|
||||||
mBoxes[i]->mpPane = mpPane;
|
mBoxes[i]->mpPane = mpPane;
|
||||||
}
|
|
||||||
|
|
||||||
if ( mpPane->IsHorizontal() )
|
if ( mpPane->IsHorizontal() )
|
||||||
{
|
{
|
||||||
@@ -447,8 +445,8 @@ void cbBarHintsPlugin::OnDrawBarDecorations( cbDrawBarDecorEvent& event )
|
|||||||
void cbBarHintsPlugin::OnLeftDown( cbLeftDownEvent& event )
|
void cbBarHintsPlugin::OnLeftDown( cbLeftDownEvent& event )
|
||||||
{
|
{
|
||||||
mpPane = event.mpPane;
|
mpPane = event.mpPane;
|
||||||
wxPoint inFrame = event.mPos;
|
|
||||||
|
|
||||||
|
wxPoint inFrame = event.mPos;
|
||||||
mpPane->PaneToFrame( &inFrame.x, &inFrame.y );
|
mpPane->PaneToFrame( &inFrame.x, &inFrame.y );
|
||||||
|
|
||||||
wxBarIterator iter( mpPane->GetRowList() );
|
wxBarIterator iter( mpPane->GetRowList() );
|
||||||
@@ -505,12 +503,12 @@ void cbBarHintsPlugin::OnLeftUp( cbLeftUpEvent& event )
|
|||||||
if ( mBoxes[i]->WasClicked() )
|
if ( mBoxes[i]->WasClicked() )
|
||||||
{
|
{
|
||||||
if ( i == 0 )
|
if ( i == 0 )
|
||||||
{
|
|
||||||
mpLayout->SetBarState( mpClickedBar, wxCBAR_HIDDEN, TRUE );
|
mpLayout->SetBarState( mpClickedBar, wxCBAR_HIDDEN, TRUE );
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ( mpClickedBar->IsExpanded() )
|
if ( mpClickedBar->IsExpanded() )
|
||||||
|
|
||||||
mpPane->ContractBar( mpClickedBar );
|
mpPane->ContractBar( mpClickedBar );
|
||||||
else
|
else
|
||||||
mpPane->ExpandBar( mpClickedBar );
|
mpPane->ExpandBar( mpClickedBar );
|
||||||
@@ -536,10 +534,9 @@ void cbBarHintsPlugin::OnMotion( cbMotionEvent& event )
|
|||||||
|
|
||||||
int i;
|
int i;
|
||||||
for( i = 0; i != BOXES_IN_HINT; ++i )
|
for( i = 0; i != BOXES_IN_HINT; ++i )
|
||||||
{
|
|
||||||
mBoxes[i]->OnMotion( inFrame );
|
mBoxes[i]->OnMotion( inFrame );
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
event.Skip();
|
event.Skip();
|
||||||
}
|
}
|
||||||
|
@@ -293,8 +293,8 @@ wxFrameLayout::wxFrameLayout(void)
|
|||||||
{
|
{
|
||||||
CreateCursors();
|
CreateCursors();
|
||||||
|
|
||||||
int i;
|
for( int i = 0; i != MAX_PANES; ++i )
|
||||||
for ( i = 0; i != MAX_PANES; ++i )
|
|
||||||
mPanes[i] = NULL;
|
mPanes[i] = NULL;
|
||||||
|
|
||||||
mFloatingOn = CanReparent();
|
mFloatingOn = CanReparent();
|
||||||
@@ -329,8 +329,8 @@ wxFrameLayout::wxFrameLayout( wxWindow* pParentFrame, wxWindow* pFrameClient, bo
|
|||||||
{
|
{
|
||||||
CreateCursors();
|
CreateCursors();
|
||||||
|
|
||||||
int i;
|
for( int i = 0; i != MAX_PANES; ++i )
|
||||||
for ( i = 0; i != MAX_PANES; ++i )
|
|
||||||
mPanes[i] = new cbDockPane( i, this );
|
mPanes[i] = new cbDockPane( i, this );
|
||||||
|
|
||||||
if ( activateNow )
|
if ( activateNow )
|
||||||
@@ -421,8 +421,7 @@ void wxFrameLayout::DestroyBarWindows()
|
|||||||
|
|
||||||
mBarSpyList.Clear();
|
mBarSpyList.Clear();
|
||||||
|
|
||||||
size_t i;
|
for( size_t i = 0; i != mAllBars.Count(); ++i )
|
||||||
for ( i = 0; i != mAllBars.Count(); ++i )
|
|
||||||
{
|
{
|
||||||
if ( mAllBars[i]->mpBarWnd )
|
if ( mAllBars[i]->mpBarWnd )
|
||||||
{
|
{
|
||||||
@@ -477,6 +476,7 @@ wxFrameLayout::~wxFrameLayout()
|
|||||||
// destroy contents of arrays and lists
|
// destroy contents of arrays and lists
|
||||||
|
|
||||||
size_t i = 0;
|
size_t i = 0;
|
||||||
|
|
||||||
for( i = 0; i != MAX_PANES; ++i )
|
for( i = 0; i != MAX_PANES; ++i )
|
||||||
{
|
{
|
||||||
if ( mPanes[i] )
|
if ( mPanes[i] )
|
||||||
@@ -509,6 +509,7 @@ wxFrameLayout::~wxFrameLayout()
|
|||||||
}
|
}
|
||||||
|
|
||||||
for( i = 0; i != mAllBars.Count(); ++i )
|
for( i = 0; i != mAllBars.Count(); ++i )
|
||||||
|
|
||||||
delete mAllBars[i];
|
delete mAllBars[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -651,9 +652,10 @@ bool wxFrameLayout::RedockBar( cbBarInfo* pBar,
|
|||||||
|
|
||||||
cbBarInfo* wxFrameLayout::FindBarByName( const wxString& name )
|
cbBarInfo* wxFrameLayout::FindBarByName( const wxString& name )
|
||||||
{
|
{
|
||||||
size_t i;
|
for( size_t i = 0; i != mAllBars.Count(); ++i )
|
||||||
for ( i = 0; i != mAllBars.Count(); ++i )
|
|
||||||
if ( mAllBars[i]->mName == name )
|
if ( mAllBars[i]->mName == name )
|
||||||
|
|
||||||
return mAllBars[i];
|
return mAllBars[i];
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
@@ -661,9 +663,10 @@ cbBarInfo* wxFrameLayout::FindBarByName( const wxString& name )
|
|||||||
|
|
||||||
cbBarInfo* wxFrameLayout::FindBarByWindow( const wxWindow* pWnd )
|
cbBarInfo* wxFrameLayout::FindBarByWindow( const wxWindow* pWnd )
|
||||||
{
|
{
|
||||||
size_t i;
|
for( size_t i = 0; i != mAllBars.Count(); ++i )
|
||||||
for ( i = 0; i != mAllBars.Count(); ++i )
|
|
||||||
if ( mAllBars[i]->mpBarWnd == pWnd )
|
if ( mAllBars[i]->mpBarWnd == pWnd )
|
||||||
|
|
||||||
return mAllBars[i];
|
return mAllBars[i];
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
@@ -952,8 +955,7 @@ void wxFrameLayout::RemoveBar( cbBarInfo* pBarInfo )
|
|||||||
pPane->RemoveBar( pBarInfo );
|
pPane->RemoveBar( pBarInfo );
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t i;
|
for( size_t i = 0; i != mAllBars.Count(); ++i )
|
||||||
for ( i = 0; i != mAllBars.Count(); ++i )
|
|
||||||
{
|
{
|
||||||
if ( mAllBars[i] == pBarInfo )
|
if ( mAllBars[i] == pBarInfo )
|
||||||
{
|
{
|
||||||
@@ -971,7 +973,9 @@ void wxFrameLayout::RemoveBar( cbBarInfo* pBarInfo )
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
wxFAIL_MSG("bar info should be present in the list of all bars of all panes");
|
int avoidCompilerWarning = 0;
|
||||||
|
wxASSERT(avoidCompilerWarning); // DBG:: bar info should be present in the list of all bars of all panes
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxFrameLayout::LocateBar( cbBarInfo* pBarInfo,
|
bool wxFrameLayout::LocateBar( cbBarInfo* pBarInfo,
|
||||||
@@ -981,8 +985,7 @@ bool wxFrameLayout::LocateBar( cbBarInfo* pBarInfo,
|
|||||||
(*ppRow) = NULL;
|
(*ppRow) = NULL;
|
||||||
(*ppPane) = NULL;
|
(*ppPane) = NULL;
|
||||||
|
|
||||||
int n;
|
for( int n = 0; n != MAX_PANES; ++n )
|
||||||
for ( n = 0; n != MAX_PANES; ++n )
|
|
||||||
{
|
{
|
||||||
wxBarIterator i( mPanes[n]->GetRowList() );
|
wxBarIterator i( mPanes[n]->GetRowList() );
|
||||||
|
|
||||||
@@ -1143,8 +1146,8 @@ void wxFrameLayout::PositionPanes()
|
|||||||
// FOR NOW:: excessive updates!
|
// FOR NOW:: excessive updates!
|
||||||
// reposition bars within all panes
|
// reposition bars within all panes
|
||||||
|
|
||||||
int i;
|
for( int i = 0; i != MAX_PANES; ++i )
|
||||||
for ( i = 0; i != MAX_PANES; ++i )
|
|
||||||
mPanes[i]->SizePaneObjects();
|
mPanes[i]->SizePaneObjects();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1159,9 +1162,10 @@ void wxFrameLayout::OnSize( wxSizeEvent& event )
|
|||||||
|
|
||||||
void wxFrameLayout::HideBarWindows()
|
void wxFrameLayout::HideBarWindows()
|
||||||
{
|
{
|
||||||
size_t i;
|
for( size_t i = 0; i != mAllBars.Count(); ++i )
|
||||||
for ( i = 0; i != mAllBars.Count(); ++i )
|
|
||||||
if ( mAllBars[i]->mpBarWnd && mAllBars[i]->mState != wxCBAR_FLOATING )
|
if ( mAllBars[i]->mpBarWnd && mAllBars[i]->mState != wxCBAR_FLOATING )
|
||||||
|
|
||||||
mAllBars[i]->mpBarWnd->Show( FALSE );
|
mAllBars[i]->mpBarWnd->Show( FALSE );
|
||||||
|
|
||||||
// then floated frames
|
// then floated frames
|
||||||
@@ -1190,35 +1194,34 @@ void wxFrameLayout::UnhookFromFrame()
|
|||||||
// FOR NOW::
|
// FOR NOW::
|
||||||
|
|
||||||
if ( mpFrame->GetEventHandler() == this )
|
if ( mpFrame->GetEventHandler() == this )
|
||||||
{
|
|
||||||
mpFrame->PopEventHandler();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
mpFrame->PopEventHandler();
|
||||||
|
|
||||||
|
return;
|
||||||
|
|
||||||
|
// TBD ???: Cannot reach this code
|
||||||
if ( mpFrame )
|
if ( mpFrame )
|
||||||
{
|
{
|
||||||
if ( this == mpFrame->GetEventHandler() )
|
if ( this == mpFrame->GetEventHandler() )
|
||||||
{
|
|
||||||
mpFrame->SetEventHandler( this->GetNextHandler() );
|
mpFrame->SetEventHandler( this->GetNextHandler() );
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
wxEvtHandler* pCur = mpFrame->GetEventHandler();
|
wxEvtHandler* pCur = mpFrame->GetEventHandler();
|
||||||
|
|
||||||
while( pCur )
|
while( pCur )
|
||||||
{
|
{
|
||||||
if ( pCur == this )
|
if ( pCur == this ) break;
|
||||||
break;
|
|
||||||
|
|
||||||
pCur = pCur->GetNextHandler();
|
pCur = pCur->GetNextHandler();
|
||||||
}
|
}
|
||||||
|
|
||||||
// do not try to unhook ourselves if we're not hooked yet
|
// do not try to unhook ourselves if we're not hooked yet
|
||||||
if ( !pCur )
|
if ( !pCur ) return;
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( GetPreviousHandler() )
|
if ( GetPreviousHandler() )
|
||||||
|
|
||||||
GetPreviousHandler()->SetNextHandler( GetNextHandler() );
|
GetPreviousHandler()->SetNextHandler( GetNextHandler() );
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -1226,7 +1229,9 @@ void wxFrameLayout::UnhookFromFrame()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ( GetNextHandler() )
|
if ( GetNextHandler() )
|
||||||
|
|
||||||
GetNextHandler()->SetPreviousHandler( GetPreviousHandler() );
|
GetNextHandler()->SetPreviousHandler( GetPreviousHandler() );
|
||||||
|
|
||||||
SetNextHandler( NULL );
|
SetNextHandler( NULL );
|
||||||
@@ -1247,10 +1252,9 @@ void wxFrameLayout::HookUpToFrame()
|
|||||||
|
|
||||||
cbDockPane* wxFrameLayout::GetBarPane( cbBarInfo* pBar )
|
cbDockPane* wxFrameLayout::GetBarPane( cbBarInfo* pBar )
|
||||||
{
|
{
|
||||||
int i;
|
for( int i = 0; i != MAX_PANES; ++i )
|
||||||
for ( i = 0; i != MAX_PANES; ++i )
|
|
||||||
if ( mPanes[i]->BarPresent( pBar ) )
|
if ( mPanes[i]->BarPresent( pBar ) ) return mPanes[i];
|
||||||
return mPanes[i];
|
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@@ -1299,15 +1303,13 @@ cbDockPane* wxFrameLayout::HitTestPanes( const wxRect& rect,
|
|||||||
|
|
||||||
return pCurPane;
|
return pCurPane;
|
||||||
|
|
||||||
int i;
|
for( int i = 0; i != MAX_PANES; ++i )
|
||||||
for ( i = 0; i != MAX_PANES; ++i )
|
|
||||||
{
|
|
||||||
if ( pCurPane != mPanes[i] &&
|
if ( pCurPane != mPanes[i] &&
|
||||||
rect_hits_rect( mPanes[i]->GetRealRect(), rect ) )
|
rect_hits_rect( mPanes[i]->GetRealRect(), rect ) )
|
||||||
{
|
|
||||||
return mPanes[i];
|
return mPanes[i];
|
||||||
}
|
|
||||||
}
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1318,6 +1320,7 @@ void wxFrameLayout::ForwardMouseEvent( wxMouseEvent& event,
|
|||||||
wxPoint pos( event.m_x, event.m_y );
|
wxPoint pos( event.m_x, event.m_y );
|
||||||
pToPane->FrameToPane( &pos.x, &pos.y );
|
pToPane->FrameToPane( &pos.x, &pos.y );
|
||||||
|
|
||||||
|
#if wxCHECK_VERSION(2,3,0)
|
||||||
if ( eventType == cbEVT_PL_LEFT_DOWN )
|
if ( eventType == cbEVT_PL_LEFT_DOWN )
|
||||||
{
|
{
|
||||||
cbLeftDownEvent evt( pos, pToPane );
|
cbLeftDownEvent evt( pos, pToPane );
|
||||||
@@ -1353,6 +1356,36 @@ void wxFrameLayout::ForwardMouseEvent( wxMouseEvent& event,
|
|||||||
int avoidCompilerWarning = 0;
|
int avoidCompilerWarning = 0;
|
||||||
wxASSERT(avoidCompilerWarning); // DBG::
|
wxASSERT(avoidCompilerWarning); // DBG::
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
switch ( eventType )
|
||||||
|
{
|
||||||
|
case cbEVT_PL_LEFT_DOWN : { cbLeftDownEvent evt( pos, pToPane );
|
||||||
|
FirePluginEvent( evt ); break;
|
||||||
|
}
|
||||||
|
|
||||||
|
case cbEVT_PL_LEFT_DCLICK:{ cbLeftDClickEvent evt( pos, pToPane );
|
||||||
|
FirePluginEvent( evt ); break;
|
||||||
|
}
|
||||||
|
|
||||||
|
case cbEVT_PL_LEFT_UP : { cbLeftUpEvent evt( pos, pToPane );
|
||||||
|
FirePluginEvent( evt ); break;
|
||||||
|
}
|
||||||
|
|
||||||
|
case cbEVT_PL_RIGHT_DOWN: { cbRightDownEvent evt( pos, pToPane );
|
||||||
|
FirePluginEvent( evt ); break;
|
||||||
|
}
|
||||||
|
|
||||||
|
case cbEVT_PL_RIGHT_UP : { cbRightUpEvent evt( pos, pToPane );
|
||||||
|
FirePluginEvent( evt ); break;
|
||||||
|
}
|
||||||
|
|
||||||
|
case cbEVT_PL_MOTION : { cbMotionEvent evt( pos, pToPane );
|
||||||
|
FirePluginEvent( evt ); break;
|
||||||
|
}
|
||||||
|
|
||||||
|
default : wxASSERT(0); // DBG::
|
||||||
|
}
|
||||||
|
#endif // #if wxCHECK_VERSION(2,3,0)
|
||||||
} // wxFrameLayout::ForwardMouseEvent()
|
} // wxFrameLayout::ForwardMouseEvent()
|
||||||
|
|
||||||
|
|
||||||
@@ -1362,18 +1395,15 @@ void wxFrameLayout::RouteMouseEvent( wxMouseEvent& event, int pluginEvtType )
|
|||||||
|
|
||||||
ForwardMouseEvent( event, mpPaneInFocus, pluginEvtType );
|
ForwardMouseEvent( event, mpPaneInFocus, pluginEvtType );
|
||||||
else
|
else
|
||||||
{
|
for( int i = 0; i != MAX_PANES; ++i )
|
||||||
int i;
|
|
||||||
for ( i = 0; i != MAX_PANES; ++i )
|
|
||||||
{
|
|
||||||
if ( HitTestPane( mPanes[i], event.m_x, event.m_y ) )
|
if ( HitTestPane( mPanes[i], event.m_x, event.m_y ) )
|
||||||
{
|
{
|
||||||
ForwardMouseEvent( event, mPanes[i], pluginEvtType );
|
ForwardMouseEvent( event, mPanes[i], pluginEvtType );
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/*** event handlers ***/
|
/*** event handlers ***/
|
||||||
|
|
||||||
@@ -1408,10 +1438,8 @@ void wxFrameLayout::OnMouseMove( wxMouseEvent& event )
|
|||||||
|
|
||||||
ForwardMouseEvent( event, mpPaneInFocus, cbEVT_PL_MOTION );
|
ForwardMouseEvent( event, mpPaneInFocus, cbEVT_PL_MOTION );
|
||||||
else
|
else
|
||||||
{
|
for( int i = 0; i != MAX_PANES; ++i )
|
||||||
int i;
|
|
||||||
for ( i = 0; i != MAX_PANES; ++i )
|
|
||||||
{
|
|
||||||
if ( HitTestPane( mPanes[i], event.m_x, event.m_y ) )
|
if ( HitTestPane( mPanes[i], event.m_x, event.m_y ) )
|
||||||
{
|
{
|
||||||
if ( mpLRUPane && mpLRUPane != mPanes[i] )
|
if ( mpLRUPane && mpLRUPane != mPanes[i] )
|
||||||
@@ -1426,8 +1454,6 @@ void wxFrameLayout::OnMouseMove( wxMouseEvent& event )
|
|||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( mpLRUPane )
|
if ( mpLRUPane )
|
||||||
{
|
{
|
||||||
@@ -1440,12 +1466,12 @@ void wxFrameLayout::OnMouseMove( wxMouseEvent& event )
|
|||||||
void wxFrameLayout::OnPaint( wxPaintEvent& event )
|
void wxFrameLayout::OnPaint( wxPaintEvent& event )
|
||||||
{
|
{
|
||||||
if ( mRecalcPending )
|
if ( mRecalcPending )
|
||||||
|
|
||||||
RecalcLayout( TRUE );
|
RecalcLayout( TRUE );
|
||||||
|
|
||||||
wxPaintDC dc(mpFrame);
|
wxPaintDC dc(mpFrame);
|
||||||
|
|
||||||
int i;
|
for( int i = 0; i != MAX_PANES; ++i )
|
||||||
for ( i = 0; i != MAX_PANES; ++i )
|
|
||||||
{
|
{
|
||||||
wxRect& rect = mPanes[i]->mBoundsInParent;
|
wxRect& rect = mPanes[i]->mBoundsInParent;
|
||||||
|
|
||||||
@@ -1520,19 +1546,17 @@ void wxFrameLayout::GetPaneProperties( cbCommonPaneProperties& props, int alignm
|
|||||||
|
|
||||||
void wxFrameLayout::SetPaneProperties( const cbCommonPaneProperties& props, int paneMask )
|
void wxFrameLayout::SetPaneProperties( const cbCommonPaneProperties& props, int paneMask )
|
||||||
{
|
{
|
||||||
int i;
|
for( int i = 0; i != MAX_PANES; ++i )
|
||||||
for ( i = 0; i != MAX_PANES; ++i )
|
|
||||||
{
|
|
||||||
if ( mPanes[i]->MatchesMask( paneMask ) )
|
if ( mPanes[i]->MatchesMask( paneMask ) )
|
||||||
|
|
||||||
mPanes[i]->mProps = props;
|
mPanes[i]->mProps = props;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void wxFrameLayout::SetMargins( int top, int bottom, int left, int right,
|
void wxFrameLayout::SetMargins( int top, int bottom, int left, int right,
|
||||||
int paneMask )
|
int paneMask )
|
||||||
{
|
{
|
||||||
int i;
|
for( int i = 0; i != MAX_PANES; ++i )
|
||||||
for ( i = 0; i != MAX_PANES; ++i )
|
|
||||||
{
|
{
|
||||||
cbDockPane& pane = *mPanes[i];
|
cbDockPane& pane = *mPanes[i];
|
||||||
|
|
||||||
@@ -1712,7 +1736,7 @@ void wxFrameLayout::AddPlugin( wxClassInfo* pPlInfo, int paneMask )
|
|||||||
void wxFrameLayout::AddPluginBefore( wxClassInfo* pNextPlInfo, wxClassInfo* pPlInfo,
|
void wxFrameLayout::AddPluginBefore( wxClassInfo* pNextPlInfo, wxClassInfo* pPlInfo,
|
||||||
int paneMask )
|
int paneMask )
|
||||||
{
|
{
|
||||||
wxASSERT( pNextPlInfo != pPlInfo ); // DBG:: no sense
|
wxASSERT( pNextPlInfo != pPlInfo ); // DBG:: no sence
|
||||||
|
|
||||||
cbPluginBase* pNextPl = FindPlugin( pNextPlInfo );
|
cbPluginBase* pNextPl = FindPlugin( pNextPlInfo );
|
||||||
|
|
||||||
@@ -1906,8 +1930,7 @@ cbDimInfo::cbDimInfo()
|
|||||||
mIsFixed(TRUE),
|
mIsFixed(TRUE),
|
||||||
mpHandler( NULL )
|
mpHandler( NULL )
|
||||||
{
|
{
|
||||||
size_t i;
|
for( size_t i = 0; i != MAX_BAR_STATES; ++i )
|
||||||
for ( i = 0; i != MAX_BAR_STATES; ++i )
|
|
||||||
{
|
{
|
||||||
mSizes[i].x = 20;
|
mSizes[i].x = 20;
|
||||||
mSizes[i].y = 20;
|
mSizes[i].y = 20;
|
||||||
@@ -1931,8 +1954,7 @@ cbDimInfo::cbDimInfo( cbBarDimHandlerBase* pDimHandler,
|
|||||||
mpHandler->AddRef();
|
mpHandler->AddRef();
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t i;
|
for( size_t i = 0; i != MAX_BAR_STATES; ++i )
|
||||||
for ( i = 0; i != MAX_BAR_STATES; ++i )
|
|
||||||
{
|
{
|
||||||
mSizes[i].x = -1;
|
mSizes[i].x = -1;
|
||||||
mSizes[i].y = -1;
|
mSizes[i].y = -1;
|
||||||
@@ -1969,8 +1991,7 @@ cbDimInfo::cbDimInfo( int dh_x, int dh_y,
|
|||||||
mSizes[wxCBAR_FLOATING ].x = f_x;
|
mSizes[wxCBAR_FLOATING ].x = f_x;
|
||||||
mSizes[wxCBAR_FLOATING ].y = f_y;
|
mSizes[wxCBAR_FLOATING ].y = f_y;
|
||||||
|
|
||||||
size_t i;
|
for( size_t i = 0; i != MAX_BAR_STATES; ++i )
|
||||||
for ( i = 0; i != MAX_BAR_STATES; ++i )
|
|
||||||
mBounds[i] = wxRect( -1,-1,-1,-1 );
|
mBounds[i] = wxRect( -1,-1,-1,-1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1995,8 +2016,7 @@ cbDimInfo::cbDimInfo( int x, int y,
|
|||||||
mSizes[wxCBAR_FLOATING ].x = x;
|
mSizes[wxCBAR_FLOATING ].x = x;
|
||||||
mSizes[wxCBAR_FLOATING ].y = y;
|
mSizes[wxCBAR_FLOATING ].y = y;
|
||||||
|
|
||||||
size_t i;
|
for( size_t i = 0; i != MAX_BAR_STATES; ++i )
|
||||||
for ( i = 0; i != MAX_BAR_STATES; ++i )
|
|
||||||
mBounds[i] = wxRect( -1,-1,-1,-1 );
|
mBounds[i] = wxRect( -1,-1,-1,-1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2009,11 +2029,10 @@ cbDimInfo::~cbDimInfo()
|
|||||||
|
|
||||||
const cbDimInfo& cbDimInfo::operator=( const cbDimInfo& other )
|
const cbDimInfo& cbDimInfo::operator=( const cbDimInfo& other )
|
||||||
{
|
{
|
||||||
if ( this == &other )
|
if ( this == &other ) return *this;
|
||||||
return *this;
|
|
||||||
|
for( int i = 0; i != MAX_BAR_STATES; ++i )
|
||||||
|
|
||||||
int i;
|
|
||||||
for ( i = 0; i != MAX_BAR_STATES; ++i )
|
|
||||||
mSizes[i] = other.mSizes[i];
|
mSizes[i] = other.mSizes[i];
|
||||||
|
|
||||||
mIsFixed = other.mIsFixed;
|
mIsFixed = other.mIsFixed;
|
||||||
@@ -2122,8 +2141,8 @@ cbDockPane::cbDockPane( int alignment, wxFrameLayout* pPanel )
|
|||||||
|
|
||||||
cbDockPane::~cbDockPane()
|
cbDockPane::~cbDockPane()
|
||||||
{
|
{
|
||||||
size_t i;
|
for( size_t i = 0; i != mRows.Count(); ++i )
|
||||||
for ( i = 0; i != mRows.Count(); ++i )
|
|
||||||
delete mRows[i];
|
delete mRows[i];
|
||||||
|
|
||||||
mRowShapeData.DeleteContents( TRUE );
|
mRowShapeData.DeleteContents( TRUE );
|
||||||
@@ -2231,6 +2250,7 @@ void cbDockPane::PaintPane( wxDC& dc )
|
|||||||
|
|
||||||
// than handles
|
// than handles
|
||||||
for( i = 0; i != mRows.Count(); ++i )
|
for( i = 0; i != mRows.Count(); ++i )
|
||||||
|
|
||||||
PaintRowHandles( mRows[i], dc );
|
PaintRowHandles( mRows[i], dc );
|
||||||
|
|
||||||
// and finally
|
// and finally
|
||||||
@@ -2247,15 +2267,15 @@ void cbDockPane::SizeBar( cbBarInfo* pBar )
|
|||||||
|
|
||||||
void cbDockPane::SizeRowObjects( cbRowInfo* pRow )
|
void cbDockPane::SizeRowObjects( cbRowInfo* pRow )
|
||||||
{
|
{
|
||||||
size_t i;
|
for( size_t i = 0; i != pRow->mBars.Count(); ++i )
|
||||||
for ( i = 0; i != pRow->mBars.Count(); ++i )
|
|
||||||
SizeBar( pRow->mBars[i] );
|
SizeBar( pRow->mBars[i] );
|
||||||
}
|
}
|
||||||
|
|
||||||
void cbDockPane::SizePaneObjects()
|
void cbDockPane::SizePaneObjects()
|
||||||
{
|
{
|
||||||
size_t i;
|
for( size_t i = 0; i != mRows.Count(); ++i )
|
||||||
for ( i = 0; i != mRows.Count(); ++i )
|
|
||||||
SizeRowObjects( mRows[i] );
|
SizeRowObjects( mRows[i] );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2286,12 +2306,9 @@ int cbDockPane::GetNotFixedBarsCount( cbRowInfo* pRow )
|
|||||||
{
|
{
|
||||||
int cnt = 0;
|
int cnt = 0;
|
||||||
|
|
||||||
size_t i;
|
for( size_t i = 0; i != pRow->mBars.Count(); ++i )
|
||||||
for ( i = 0; i != pRow->mBars.Count(); ++i )
|
|
||||||
{
|
if ( !pRow->mBars[i]->IsFixed() ) ++cnt;
|
||||||
if ( !pRow->mBars[i]->IsFixed() )
|
|
||||||
++cnt;
|
|
||||||
}
|
|
||||||
|
|
||||||
return cnt;
|
return cnt;
|
||||||
}
|
}
|
||||||
@@ -2320,8 +2337,7 @@ void cbDockPane::SyncRowFlags( cbRowInfo* pRow )
|
|||||||
|
|
||||||
pRow->mNotFixedBarsCnt = 0;
|
pRow->mNotFixedBarsCnt = 0;
|
||||||
|
|
||||||
size_t i;
|
for( size_t i = 0; i != pRow->mBars.Count(); ++i )
|
||||||
for ( i = 0; i != pRow->mBars.Count(); ++i )
|
|
||||||
{
|
{
|
||||||
cbBarInfo& bar = *pRow->mBars[i];
|
cbBarInfo& bar = *pRow->mBars[i];
|
||||||
|
|
||||||
@@ -2415,8 +2431,7 @@ void cbDockPane::PaneToFrame( wxRect* pRect )
|
|||||||
|
|
||||||
int cbDockPane::GetRowAt( int paneY )
|
int cbDockPane::GetRowAt( int paneY )
|
||||||
{
|
{
|
||||||
if ( paneY < 0 )
|
if ( paneY < 0 ) return -1;
|
||||||
return -1;
|
|
||||||
|
|
||||||
int curY = 0;
|
int curY = 0;
|
||||||
|
|
||||||
@@ -2480,8 +2495,7 @@ int cbDockPane::GetRowAt( int upperY, int lowerY )
|
|||||||
|
|
||||||
int mid = upperY + (lowerY - upperY)/2;
|
int mid = upperY + (lowerY - upperY)/2;
|
||||||
|
|
||||||
if ( mid < 0 )
|
if ( mid < 0 ) return -1;
|
||||||
return -1;
|
|
||||||
|
|
||||||
int curY = 0;
|
int curY = 0;
|
||||||
size_t i = 0;
|
size_t i = 0;
|
||||||
@@ -2502,11 +2516,9 @@ int cbDockPane::GetRowY( cbRowInfo* pRow )
|
|||||||
{
|
{
|
||||||
int curY = 0;
|
int curY = 0;
|
||||||
|
|
||||||
size_t i;
|
for( size_t i = 0; i != mRows.Count(); ++i )
|
||||||
for ( i = 0; i != mRows.Count(); ++i )
|
|
||||||
{
|
{
|
||||||
if ( mRows[i] == pRow )
|
if ( mRows[i] == pRow ) break;
|
||||||
break;
|
|
||||||
|
|
||||||
curY += mRows[i]->mRowHeight;
|
curY += mRows[i]->mRowHeight;
|
||||||
}
|
}
|
||||||
@@ -2583,6 +2595,7 @@ void cbDockPane::CalcLengthRatios( cbRowInfo* pInRow )
|
|||||||
cbBarInfo& bar = *pInRow->mBars[i];
|
cbBarInfo& bar = *pInRow->mBars[i];
|
||||||
|
|
||||||
if ( !bar.IsFixed() )
|
if ( !bar.IsFixed() )
|
||||||
|
|
||||||
totalWidth += bar.mBounds.width;
|
totalWidth += bar.mBounds.width;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2593,6 +2606,7 @@ void cbDockPane::CalcLengthRatios( cbRowInfo* pInRow )
|
|||||||
cbBarInfo& bar = *pInRow->mBars[i];
|
cbBarInfo& bar = *pInRow->mBars[i];
|
||||||
|
|
||||||
if ( !bar.IsFixed() )
|
if ( !bar.IsFixed() )
|
||||||
|
|
||||||
bar.mLenRatio = double(bar.mBounds.width)/double(totalWidth);
|
bar.mLenRatio = double(bar.mBounds.width)/double(totalWidth);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2690,17 +2704,18 @@ void cbDockPane::ContractBar( cbBarInfo* pBar )
|
|||||||
|
|
||||||
void cbDockPane::InitLinksForRow( cbRowInfo* pRow )
|
void cbDockPane::InitLinksForRow( cbRowInfo* pRow )
|
||||||
{
|
{
|
||||||
size_t i;
|
for( size_t i = 0; i != pRow->mBars.Count(); ++i )
|
||||||
for ( i = 0; i != pRow->mBars.Count(); ++i )
|
|
||||||
{
|
{
|
||||||
cbBarInfo& bar = *pRow->mBars[i];
|
cbBarInfo& bar = *pRow->mBars[i];
|
||||||
|
|
||||||
if ( i == 0 )
|
if ( i == 0 )
|
||||||
|
|
||||||
bar.mpPrev = NULL;
|
bar.mpPrev = NULL;
|
||||||
else
|
else
|
||||||
bar.mpPrev = pRow->mBars[i-1];
|
bar.mpPrev = pRow->mBars[i-1];
|
||||||
|
|
||||||
if ( i == pRow->mBars.Count() - 1 )
|
if ( i == pRow->mBars.Count() - 1 )
|
||||||
|
|
||||||
bar.mpNext = NULL;
|
bar.mpNext = NULL;
|
||||||
else
|
else
|
||||||
bar.mpNext = pRow->mBars[i+1];
|
bar.mpNext = pRow->mBars[i+1];
|
||||||
@@ -2709,17 +2724,18 @@ void cbDockPane::InitLinksForRow( cbRowInfo* pRow )
|
|||||||
|
|
||||||
void cbDockPane::InitLinksForRows()
|
void cbDockPane::InitLinksForRows()
|
||||||
{
|
{
|
||||||
size_t i;
|
for( size_t i = 0; i != mRows.Count(); ++i )
|
||||||
for ( i = 0; i != mRows.Count(); ++i )
|
|
||||||
{
|
{
|
||||||
cbRowInfo& row = *mRows[i];
|
cbRowInfo& row = *mRows[i];
|
||||||
|
|
||||||
if ( i == 0 )
|
if ( i == 0 )
|
||||||
|
|
||||||
row.mpPrev = NULL;
|
row.mpPrev = NULL;
|
||||||
else
|
else
|
||||||
row.mpPrev = mRows[i-1];
|
row.mpPrev = mRows[i-1];
|
||||||
|
|
||||||
if ( i == mRows.Count() - 1 )
|
if ( i == mRows.Count() - 1 )
|
||||||
|
|
||||||
row.mpNext = NULL;
|
row.mpNext = NULL;
|
||||||
else
|
else
|
||||||
row.mpNext = mRows[i+1];
|
row.mpNext = mRows[i+1];
|
||||||
@@ -2810,13 +2826,12 @@ void cbDockPane::InsertBar( cbBarInfo* pBarInfo )
|
|||||||
|
|
||||||
void cbDockPane::RemoveRow( cbRowInfo* pRow )
|
void cbDockPane::RemoveRow( cbRowInfo* pRow )
|
||||||
{
|
{
|
||||||
size_t i;
|
|
||||||
// first, hide all bar-windows in the removed row
|
// first, hide all bar-windows in the removed row
|
||||||
for ( i = 0; i != pRow->mBars.Count(); ++i )
|
for( size_t i = 0; i != pRow->mBars.Count(); ++i )
|
||||||
{
|
|
||||||
if ( pRow->mBars[i]->mpBarWnd )
|
if ( pRow->mBars[i]->mpBarWnd )
|
||||||
|
|
||||||
pRow->mBars[i]->mpBarWnd->Show( FALSE );
|
pRow->mBars[i]->mpBarWnd->Show( FALSE );
|
||||||
}
|
|
||||||
|
|
||||||
mRows.Remove( pRow );
|
mRows.Remove( pRow );
|
||||||
|
|
||||||
@@ -2835,8 +2850,8 @@ void cbDockPane::InsertRow( cbRowInfo* pRow, cbRowInfo* pBeforeRow )
|
|||||||
|
|
||||||
pRow->mUMgrData.SetDirty(TRUE);
|
pRow->mUMgrData.SetDirty(TRUE);
|
||||||
|
|
||||||
size_t i;
|
for( size_t i = 0; i != pRow->mBars.Count(); ++i )
|
||||||
for ( i = 0; i != pRow->mBars.Count(); ++i )
|
|
||||||
pRow->mBars[i]->mUMgrData.SetDirty( TRUE );
|
pRow->mBars[i]->mUMgrData.SetDirty( TRUE );
|
||||||
|
|
||||||
SyncRowFlags( pRow );
|
SyncRowFlags( pRow );
|
||||||
@@ -2845,6 +2860,7 @@ void cbDockPane::InsertRow( cbRowInfo* pRow, cbRowInfo* pBeforeRow )
|
|||||||
void cbDockPane::SetPaneWidth(int width)
|
void cbDockPane::SetPaneWidth(int width)
|
||||||
{
|
{
|
||||||
if ( IsHorizontal() )
|
if ( IsHorizontal() )
|
||||||
|
|
||||||
mPaneWidth = width - mLeftMargin - mRightMargin;
|
mPaneWidth = width - mLeftMargin - mRightMargin;
|
||||||
else
|
else
|
||||||
mPaneWidth = width - mTopMargin - mBottomMargin;
|
mPaneWidth = width - mTopMargin - mBottomMargin;
|
||||||
@@ -2853,6 +2869,7 @@ void cbDockPane::SetPaneWidth(int width)
|
|||||||
|
|
||||||
void cbDockPane::SetBoundsInParent( const wxRect& rect )
|
void cbDockPane::SetBoundsInParent( const wxRect& rect )
|
||||||
{
|
{
|
||||||
|
|
||||||
mBoundsInParent = rect;
|
mBoundsInParent = rect;
|
||||||
|
|
||||||
// set pane dimensions in local coordinates
|
// set pane dimensions in local coordinates
|
||||||
@@ -2956,14 +2973,14 @@ cbRowInfo* cbDockPane::GetRow( int row )
|
|||||||
|
|
||||||
int cbDockPane::GetRowIndex( cbRowInfo* pRow )
|
int cbDockPane::GetRowIndex( cbRowInfo* pRow )
|
||||||
{
|
{
|
||||||
size_t i;
|
for( size_t i = 0; i != mRows.Count(); ++i )
|
||||||
for ( i = 0; i != mRows.Count(); ++i )
|
|
||||||
{
|
{
|
||||||
if ( mRows[i] == pRow )
|
if ( mRows[i] == pRow )
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxFAIL_MSG("Row must be present to call cbDockPane::GetRowIndex()");
|
int avoidCompilerWarning = 0;
|
||||||
|
wxASSERT(avoidCompilerWarning); // DBG:: row should be present
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -3011,7 +3028,8 @@ 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()");
|
int avoidCompilerWarning = 0;
|
||||||
|
wxASSERT(avoidCompilerWarning); // DBG:: bogus alignment type
|
||||||
}
|
}
|
||||||
|
|
||||||
return ( thisMask & paneMask ) != 0;
|
return ( thisMask & paneMask ) != 0;
|
||||||
@@ -3026,8 +3044,8 @@ void cbDockPane::RecalcLayout()
|
|||||||
|
|
||||||
// then horizontally in each row
|
// then horizontally in each row
|
||||||
|
|
||||||
size_t i;
|
for( size_t i = 0; i != mRows.Count(); ++i )
|
||||||
for ( i = 0; i != mRows.Count(); ++i )
|
|
||||||
RecalcRowLayout( mRows[i] );
|
RecalcRowLayout( mRows[i] );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3059,8 +3077,7 @@ int cbDockPane::HitTestPaneItems( const wxPoint& pos,
|
|||||||
(*ppRow) = NULL;
|
(*ppRow) = NULL;
|
||||||
(*ppBar) = NULL;
|
(*ppBar) = NULL;
|
||||||
|
|
||||||
size_t i;
|
for( size_t i = 0; i != mRows.Count(); ++i )
|
||||||
for ( i = 0; i != mRows.Count(); ++i )
|
|
||||||
{
|
{
|
||||||
cbRowInfo& row = *mRows[i];
|
cbRowInfo& row = *mRows[i];
|
||||||
|
|
||||||
@@ -3086,8 +3103,7 @@ int cbDockPane::HitTestPaneItems( const wxPoint& pos,
|
|||||||
|
|
||||||
// hit-test bar handles and bar content
|
// hit-test bar handles and bar content
|
||||||
|
|
||||||
size_t k;
|
for( size_t k = 0; k != row.mBars.Count(); ++k )
|
||||||
for ( k = 0; k != row.mBars.Count(); ++k )
|
|
||||||
{
|
{
|
||||||
cbBarInfo& bar = *row.mBars[k];
|
cbBarInfo& bar = *row.mBars[k];
|
||||||
wxRect& bounds = bar.mBounds;
|
wxRect& bounds = bar.mBounds;
|
||||||
@@ -3111,6 +3127,7 @@ int cbDockPane::HitTestPaneItems( const wxPoint& pos,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( HasPoint( pos, bounds.x, bounds.y, bounds.width, bounds.height ) )
|
if ( HasPoint( pos, bounds.x, bounds.y, bounds.width, bounds.height ) )
|
||||||
|
|
||||||
return CB_BAR_CONTENT_HITTED;
|
return CB_BAR_CONTENT_HITTED;
|
||||||
|
|
||||||
} // hit-test next bar
|
} // hit-test next bar
|
||||||
@@ -3185,17 +3202,18 @@ int cbDockPane::GetMinimalRowHeight( cbRowInfo* pRow )
|
|||||||
{
|
{
|
||||||
int height = mProps.mMinCBarDim.y;
|
int height = mProps.mMinCBarDim.y;
|
||||||
|
|
||||||
size_t i;
|
for( size_t i = 0; i != pRow->mBars.Count(); ++i )
|
||||||
for ( i = 0; i != pRow->mBars.Count(); ++i )
|
|
||||||
{
|
|
||||||
if ( pRow->mBars[i]->IsFixed() )
|
if ( pRow->mBars[i]->IsFixed() )
|
||||||
|
|
||||||
height = wxMax( height, pRow->mBars[i]->mBounds.height );
|
height = wxMax( height, pRow->mBars[i]->mBounds.height );
|
||||||
}
|
|
||||||
|
|
||||||
if ( pRow->mHasUpperHandle )
|
if ( pRow->mHasUpperHandle )
|
||||||
|
|
||||||
height += mProps.mResizeHandleSize;
|
height += mProps.mResizeHandleSize;
|
||||||
|
|
||||||
if ( pRow->mHasLowerHandle )
|
if ( pRow->mHasLowerHandle )
|
||||||
|
|
||||||
height += mProps.mResizeHandleSize;
|
height += mProps.mResizeHandleSize;
|
||||||
|
|
||||||
return height;
|
return height;
|
||||||
@@ -3211,13 +3229,12 @@ void cbDockPane::SetRowHeight( cbRowInfo* pRow, int newHeight )
|
|||||||
|
|
||||||
newHeight -= mProps.mResizeHandleSize;
|
newHeight -= mProps.mResizeHandleSize;
|
||||||
|
|
||||||
size_t i;
|
for( size_t i = 0; i != pRow->mBars.Count(); ++i )
|
||||||
for ( i = 0; i != pRow->mBars.Count(); ++i )
|
|
||||||
{
|
|
||||||
if ( !pRow->mBars[i]->IsFixed() )
|
if ( !pRow->mBars[i]->IsFixed() )
|
||||||
|
|
||||||
pRow->mBars[i]->mBounds.height = newHeight;
|
pRow->mBars[i]->mBounds.height = newHeight;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void cbDockPane::GetRowResizeRange( cbRowInfo* pRow, int* from, int* till,
|
void cbDockPane::GetRowResizeRange( cbRowInfo* pRow, int* from, int* till,
|
||||||
bool forUpperHandle )
|
bool forUpperHandle )
|
||||||
@@ -3363,8 +3380,7 @@ void cbDockPane::DrawVertHandle( wxDC& dc, int x, int y, int height )
|
|||||||
dc.DrawLine( x,y, x, lower );
|
dc.DrawLine( x,y, x, lower );
|
||||||
|
|
||||||
dc.SetPen( mpLayout->mGrayPen );
|
dc.SetPen( mpLayout->mGrayPen );
|
||||||
int i;
|
for( int i = 0; i != mProps.mResizeHandleSize-1; ++i )
|
||||||
for ( i = 0; i != mProps.mResizeHandleSize-1; ++i )
|
|
||||||
{
|
{
|
||||||
++x;
|
++x;
|
||||||
dc.DrawLine( x,y, x, lower );
|
dc.DrawLine( x,y, x, lower );
|
||||||
@@ -3388,8 +3404,7 @@ void cbDockPane::DrawHorizHandle( wxDC& dc, int x, int y, int width )
|
|||||||
|
|
||||||
dc.SetPen( mpLayout->mGrayPen );
|
dc.SetPen( mpLayout->mGrayPen );
|
||||||
|
|
||||||
int i;
|
for( int i = 0; i != mProps.mResizeHandleSize-1; ++i )
|
||||||
for ( i = 0; i != mProps.mResizeHandleSize-1; ++i )
|
|
||||||
{
|
{
|
||||||
++y;
|
++y;
|
||||||
dc.DrawLine( x,y, right, y );
|
dc.DrawLine( x,y, right, y );
|
||||||
@@ -3420,8 +3435,7 @@ void cbDockPane::GetRowShapeData( cbRowInfo* pRow, wxList* pLst )
|
|||||||
pLst->DeleteContents( TRUE );
|
pLst->DeleteContents( TRUE );
|
||||||
pLst->Clear();
|
pLst->Clear();
|
||||||
|
|
||||||
size_t i;
|
for( size_t i = 0; i != pRow->mBars.Count(); ++i )
|
||||||
for ( i = 0; i != pRow->mBars.Count(); ++i )
|
|
||||||
{
|
{
|
||||||
cbBarInfo& bar = *pRow->mBars[i];
|
cbBarInfo& bar = *pRow->mBars[i];
|
||||||
|
|
||||||
@@ -3436,13 +3450,11 @@ void cbDockPane::GetRowShapeData( cbRowInfo* pRow, wxList* pLst )
|
|||||||
|
|
||||||
void cbDockPane::SetRowShapeData( cbRowInfo* pRow, wxList* pLst )
|
void cbDockPane::SetRowShapeData( cbRowInfo* pRow, wxList* pLst )
|
||||||
{
|
{
|
||||||
if ( pLst->First() == NULL )
|
if ( pLst->First() == NULL ) return;
|
||||||
return;
|
|
||||||
|
|
||||||
wxNode* pData = pLst->First();
|
wxNode* pData = pLst->First();
|
||||||
|
|
||||||
size_t i;
|
for( size_t i = 0; i != pRow->mBars.Count(); ++i )
|
||||||
for ( i = 0; i != pRow->mBars.Count(); ++i )
|
|
||||||
{
|
{
|
||||||
wxASSERT( pData ); // DBG::
|
wxASSERT( pData ); // DBG::
|
||||||
|
|
||||||
|
@@ -126,7 +126,7 @@ void wxDynamicToolBar::AddTool( int toolIndex,
|
|||||||
|
|
||||||
void wxDynamicToolBar::AddTool( int toolIndex,
|
void wxDynamicToolBar::AddTool( int toolIndex,
|
||||||
const wxString& imageFileName,
|
const wxString& imageFileName,
|
||||||
wxBitmapType imageFileType,
|
int imageFileType,
|
||||||
const wxString& labelText, bool alignTextRight,
|
const wxString& labelText, bool alignTextRight,
|
||||||
bool isFlat )
|
bool isFlat )
|
||||||
{
|
{
|
||||||
|
@@ -41,7 +41,7 @@ RSC=rc.exe
|
|||||||
# PROP Intermediate_Dir "Release"
|
# PROP Intermediate_Dir "Release"
|
||||||
# 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 "../../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" /FD /c
|
# ADD CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "../../../include" /I "../../include" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__HACK_MY_MSDEV40__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
||||||
# SUBTRACT CPP /YX
|
# SUBTRACT CPP /YX
|
||||||
# ADD BASE RSC /l 0x809
|
# ADD BASE RSC /l 0x809
|
||||||
# ADD RSC /l 0x809
|
# ADD RSC /l 0x809
|
||||||
@@ -65,7 +65,7 @@ LIB32=link.exe -lib
|
|||||||
# PROP Intermediate_Dir "Debug"
|
# PROP Intermediate_Dir "Debug"
|
||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
# ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
|
# ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
|
||||||
# ADD CPP /nologo /MDd /W3 /GX /Zi /Od /I "../../../include" /I "../../include" /I "../../../lib/mswd" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
# ADD CPP /nologo /MDd /W3 /GX /Zi /Od /I "../../../include" /I "../../include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
||||||
# SUBTRACT CPP /YX
|
# SUBTRACT CPP /YX
|
||||||
# ADD BASE RSC /l 0x809
|
# ADD BASE RSC /l 0x809
|
||||||
# ADD RSC /l 0x809
|
# ADD RSC /l 0x809
|
||||||
|
@@ -208,17 +208,16 @@ void wxFrameManager::EnableMenusForView( wxFrameView* pView, bool enable )
|
|||||||
wxMenuBar* pMenuBar = GetParentFrame()->GetMenuBar();
|
wxMenuBar* pMenuBar = GetParentFrame()->GetMenuBar();
|
||||||
int count = pMenuBar->GetMenuCount();
|
int count = pMenuBar->GetMenuCount();
|
||||||
|
|
||||||
if ( !pMenuBar )
|
if ( !pMenuBar ) return;
|
||||||
return;
|
|
||||||
|
|
||||||
wxStringListNode* pNode = pView->mTopMenus.GetFirst();
|
wxStringListNode* pNode = pView->mTopMenus.GetFirst();
|
||||||
|
|
||||||
int i;
|
|
||||||
while( pNode )
|
while( pNode )
|
||||||
{
|
{
|
||||||
for ( i = 0; i != count; ++i )
|
for( int i = 0; i != count; ++i )
|
||||||
{
|
{
|
||||||
if ( pMenuBar->GetMenu(i)->GetTitle() == pNode->GetData() )
|
if ( pMenuBar->GetMenu(i)->GetTitle() == pNode->GetData() )
|
||||||
|
|
||||||
pMenuBar->EnableTop( i, enable );
|
pMenuBar->EnableTop( i, enable );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -294,6 +293,7 @@ void wxFrameManager::Init( wxWindow* pMainFrame, const wxString& settingsFile )
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( mActiveViewNo >= mViews.Number() )
|
if ( mActiveViewNo >= mViews.Number() )
|
||||||
|
|
||||||
mActiveViewNo = -1;
|
mActiveViewNo = -1;
|
||||||
|
|
||||||
ActivateView( GetView( ( mActiveViewNo == -1 ) ? 0 : mActiveViewNo ) );
|
ActivateView( GetView( ( mActiveViewNo == -1 ) ? 0 : mActiveViewNo ) );
|
||||||
@@ -311,7 +311,8 @@ void wxFrameManager::AddView( wxFrameView* pFrmView )
|
|||||||
void wxFrameManager::RemoveView( wxFrameView* pFrmView )
|
void wxFrameManager::RemoveView( wxFrameView* pFrmView )
|
||||||
{
|
{
|
||||||
// TBD::
|
// TBD::
|
||||||
wxFAIL_MSG("wxFrameManager::RemoveView() has not been implemented yet.");
|
int avoidCompilerWarning = 0;
|
||||||
|
wxASSERT(avoidCompilerWarning);
|
||||||
}
|
}
|
||||||
|
|
||||||
int wxFrameManager::GetActiveViewNo()
|
int wxFrameManager::GetActiveViewNo()
|
||||||
@@ -392,8 +393,7 @@ wxWindow* wxFrameManager::GetClientWindow()
|
|||||||
|
|
||||||
void wxFrameManager::DeactivateCurrentView()
|
void wxFrameManager::DeactivateCurrentView()
|
||||||
{
|
{
|
||||||
if ( mActiveViewNo == -1 )
|
if ( mActiveViewNo == -1 ) return;
|
||||||
return;
|
|
||||||
|
|
||||||
wxFrameView* pView = GetActiveView();
|
wxFrameView* pView = GetActiveView();
|
||||||
|
|
||||||
@@ -403,6 +403,7 @@ void wxFrameManager::DeactivateCurrentView()
|
|||||||
GetParentFrame()->PopEventHandler();
|
GetParentFrame()->PopEventHandler();
|
||||||
|
|
||||||
if ( pView->mpLayout )
|
if ( pView->mpLayout )
|
||||||
|
|
||||||
pView->mpLayout->Deactivate();
|
pView->mpLayout->Deactivate();
|
||||||
|
|
||||||
EnableMenusForView( pView, FALSE );
|
EnableMenusForView( pView, FALSE );
|
||||||
@@ -428,6 +429,7 @@ bool wxFrameManager::ReloadViews()
|
|||||||
// TBD: ????
|
// TBD: ????
|
||||||
#if 0
|
#if 0
|
||||||
if ( mSettingsFile == "" || !wxFileExists( mSettingsFile ) )
|
if ( mSettingsFile == "" || !wxFileExists( mSettingsFile ) )
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
DestroyViews();
|
DestroyViews();
|
||||||
|
@@ -141,8 +141,7 @@ void cbGCUpdatesMgr::UpdateNow()
|
|||||||
|
|
||||||
wxList mBarsToResize;
|
wxList mBarsToResize;
|
||||||
|
|
||||||
int n;
|
for( int n = 0; n != MAX_PANES; ++n )
|
||||||
for ( n = 0; n != MAX_PANES; ++n )
|
|
||||||
{
|
{
|
||||||
cbDockPane& pane = *(panes[n]);
|
cbDockPane& pane = *(panes[n]);
|
||||||
|
|
||||||
@@ -165,7 +164,7 @@ void cbGCUpdatesMgr::UpdateNow()
|
|||||||
cbBarInfo* pBar = pRow->GetFirstBar();
|
cbBarInfo* pBar = pRow->GetFirstBar();
|
||||||
|
|
||||||
bool rowChanged = FALSE;
|
bool rowChanged = FALSE;
|
||||||
// bool rowBkPainted = FALSE;
|
bool rowBkPainted = FALSE;
|
||||||
|
|
||||||
// FIXME:: the below should not be fixed
|
// FIXME:: the below should not be fixed
|
||||||
cbBarInfo* barsToRepaint[128];
|
cbBarInfo* barsToRepaint[128];
|
||||||
|
@@ -34,9 +34,7 @@ static int* create_array( int width, int height, int fill = 0 )
|
|||||||
int* array = new int[width*height];
|
int* array = new int[width*height];
|
||||||
|
|
||||||
int len = width*height;
|
int len = width*height;
|
||||||
int i;
|
for( int i = 0; i != len; ++i ) array[i] = fill;
|
||||||
for ( i = 0; i != len; ++i )
|
|
||||||
array[i] = fill;
|
|
||||||
|
|
||||||
return array;
|
return array;
|
||||||
}
|
}
|
||||||
@@ -112,28 +110,24 @@ static void gray_out_pixmap( int* src, int* dest, int width, int height )
|
|||||||
|
|
||||||
if ( IS_IN_ARRAY(x+1,y-1) )
|
if ( IS_IN_ARRAY(x+1,y-1) )
|
||||||
{
|
{
|
||||||
++x;
|
++x;--y;
|
||||||
--y;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
while( IS_IN_ARRAY(x-1,y+1) )
|
while( IS_IN_ARRAY(x-1,y+1) )
|
||||||
{
|
{
|
||||||
--x;
|
--x;++y;
|
||||||
++y;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( IS_IN_ARRAY(x,y+1) )
|
if ( IS_IN_ARRAY(x,y+1) )
|
||||||
{
|
{
|
||||||
++y;
|
++y; continue;
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ( IS_IN_ARRAY(x+1,y) )
|
if ( IS_IN_ARRAY(x+1,y) )
|
||||||
{
|
{
|
||||||
++x;
|
++x; continue;
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
else break;
|
else break;
|
||||||
}
|
}
|
||||||
@@ -158,22 +152,23 @@ void gray_out_image_on_dc( wxDC& dc, int width, int height )
|
|||||||
int* src = create_array( width, height, MASK_BG );
|
int* src = create_array( width, height, MASK_BG );
|
||||||
int* dest = create_array( width, height, MASK_BG );
|
int* dest = create_array( width, height, MASK_BG );
|
||||||
|
|
||||||
int x, y;
|
int y = 0;
|
||||||
for( y = 0; y != height; ++y )
|
for( y = 0; y != height; ++y )
|
||||||
{
|
|
||||||
for ( x = 0; x != width; ++x )
|
for( int x = 0; x != width; ++x )
|
||||||
{
|
{
|
||||||
wxColour col;
|
wxColour col;
|
||||||
dc.GetPixel( x,y, &col );
|
dc.GetPixel( x,y, &col );
|
||||||
|
|
||||||
|
|
||||||
GET_ELEM(src,x,y) = MAKE_INT_COLOR( col.Red(), col.Green(), col.Blue() );
|
GET_ELEM(src,x,y) = MAKE_INT_COLOR( col.Red(), col.Green(), col.Blue() );
|
||||||
}
|
}
|
||||||
}
|
|
||||||
gray_out_pixmap( src, dest, width, height );
|
gray_out_pixmap( src, dest, width, height );
|
||||||
|
|
||||||
for( y = 0; y != height; ++y )
|
for( y = 0; y != height; ++y )
|
||||||
{
|
|
||||||
for ( x = 0; x != width; ++x )
|
for( int x = 0; x != width; ++x )
|
||||||
{
|
{
|
||||||
int mask = GET_ELEM(dest,x,y);
|
int mask = GET_ELEM(dest,x,y);
|
||||||
|
|
||||||
@@ -191,7 +186,7 @@ void gray_out_image_on_dc( wxDC& dc, int width, int height )
|
|||||||
default : break;
|
default : break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
delete [] src;
|
delete [] src;
|
||||||
delete [] dest;
|
delete [] dest;
|
||||||
}
|
}
|
||||||
@@ -233,7 +228,7 @@ wxNewBitmapButton::wxNewBitmapButton( const wxBitmap& labelBitmap,
|
|||||||
mIsSticky( isSticky ),
|
mIsSticky( isSticky ),
|
||||||
mIsFlat( isFlat ),
|
mIsFlat( isFlat ),
|
||||||
mLabelText( labelText ),
|
mLabelText( labelText ),
|
||||||
mImageFileType( wxBITMAP_TYPE_INVALID ),
|
mImageFileType( -1 ),
|
||||||
mDepressedBmp( labelBitmap ),
|
mDepressedBmp( labelBitmap ),
|
||||||
|
|
||||||
mpDepressedImg( NULL ),
|
mpDepressedImg( NULL ),
|
||||||
@@ -262,7 +257,7 @@ wxNewBitmapButton::wxNewBitmapButton( const wxBitmap& labelBitmap,
|
|||||||
}
|
}
|
||||||
|
|
||||||
wxNewBitmapButton::wxNewBitmapButton( const wxString& bitmapFileName,
|
wxNewBitmapButton::wxNewBitmapButton( const wxString& bitmapFileName,
|
||||||
const wxBitmapType bitmapFileType,
|
const int bitmapFileType,
|
||||||
const wxString& labelText,
|
const wxString& labelText,
|
||||||
int alignText,
|
int alignText,
|
||||||
bool isFlat,
|
bool isFlat,
|
||||||
@@ -430,7 +425,8 @@ void wxNewBitmapButton::RenderLabelImage( wxBitmap*& destBmp, wxBitmap* srcBmp,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
wxFAIL_MSG("Unsupported FL alignment type detected in wxNewBitmapButton::RenderLabelImage()");
|
int avoidCompilerWarning = 0;
|
||||||
|
wxASSERT(avoidCompilerWarning);// unsupported alignment type
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -381,7 +381,14 @@ void cbPaneDrawPlugin::OnLDblClick( cbLeftDClickEvent& event )
|
|||||||
&pBarToFloat ) == CB_BAR_CONTENT_HITTED
|
&pBarToFloat ) == CB_BAR_CONTENT_HITTED
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
// TBD: ????
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
mpLayout->SetBarState( pBarToFloat, wxCBAR_FLOATING, TRUE );
|
||||||
|
|
||||||
|
mpLayout->RepositionFloatedBar( pBarToFloat );
|
||||||
|
|
||||||
|
return; // event is "eaten" by this plugin
|
||||||
}
|
}
|
||||||
|
|
||||||
event.Skip();
|
event.Skip();
|
||||||
@@ -432,7 +439,7 @@ void cbPaneDrawPlugin::OnLButtonDown( cbLeftDownEvent& event )
|
|||||||
{
|
{
|
||||||
// otehrwise if bar handle dragged
|
// otehrwise if bar handle dragged
|
||||||
|
|
||||||
// cbRowInfo& rowInfo = *mpDraggedBar->mpRow;
|
cbRowInfo& rowInfo = *mpDraggedBar->mpRow;
|
||||||
wxRect& bounds = mpDraggedBar->mBounds;
|
wxRect& bounds = mpDraggedBar->mBounds;
|
||||||
|
|
||||||
mHandleIsVertical = ( event.mpPane->IsHorizontal() ) ? TRUE : FALSE;
|
mHandleIsVertical = ( event.mpPane->IsHorizontal() ) ? TRUE : FALSE;
|
||||||
@@ -728,12 +735,12 @@ void cbPaneDrawPlugin::OnDrawRowBackground ( cbDrawRowBkGroundEvent& event )
|
|||||||
wxRect rowBounds = pRow->mBoundsInParent;
|
wxRect rowBounds = pRow->mBoundsInParent;
|
||||||
bool isHorizontal = event.mpPane->IsHorizontal();
|
bool isHorizontal = event.mpPane->IsHorizontal();
|
||||||
|
|
||||||
// int prevPos;
|
int prevPos;
|
||||||
|
|
||||||
if ( isHorizontal )
|
if ( isHorizontal )
|
||||||
{
|
{
|
||||||
// prevPos = rowBounds.x;
|
prevPos = rowBounds.x;
|
||||||
// include one line above and below the row
|
// include one line obove and below the row
|
||||||
--rowBounds.y;
|
--rowBounds.y;
|
||||||
rowBounds.height +=2;
|
rowBounds.height +=2;
|
||||||
|
|
||||||
@@ -742,8 +749,8 @@ void cbPaneDrawPlugin::OnDrawRowBackground ( cbDrawRowBkGroundEvent& event )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// prevPos = rowBounds.y;
|
prevPos = rowBounds.y;
|
||||||
// include one line above and below the row
|
// include one line obove and below the row
|
||||||
--rowBounds.x;
|
--rowBounds.x;
|
||||||
rowBounds.width += 2;
|
rowBounds.width += 2;
|
||||||
|
|
||||||
@@ -1163,7 +1170,7 @@ void cbPaneDrawPlugin::OnDrawPaneDecorations( cbDrawPaneDecorEvent& event )
|
|||||||
|
|
||||||
void cbPaneDrawPlugin::OnDrawBarDecorations( cbDrawBarDecorEvent& event )
|
void cbPaneDrawPlugin::OnDrawBarDecorations( cbDrawBarDecorEvent& event )
|
||||||
{
|
{
|
||||||
// cbBarInfo* pBar = event.mpBar;
|
cbBarInfo* pBar = event.mpBar;
|
||||||
wxDC& dc = *event.mpDc;
|
wxDC& dc = *event.mpDc;
|
||||||
|
|
||||||
// draw brick borders
|
// draw brick borders
|
||||||
|
@@ -229,7 +229,7 @@ void cbRowDragPlugin::OnMouseMove( cbMotionEvent& event )
|
|||||||
// DBG::
|
// DBG::
|
||||||
wxPoint p = event.mPos;
|
wxPoint p = event.mPos;
|
||||||
wxPoint d = mDragOrigin;
|
wxPoint d = mDragOrigin;
|
||||||
// int dif = event.mPos.x - mDragOrigin.x;
|
int dif = event.mPos.x - mDragOrigin.x;
|
||||||
|
|
||||||
// row is dragged up or down;
|
// row is dragged up or down;
|
||||||
ShowDraggedRow( pos.y - mDragOrigin.y );
|
ShowDraggedRow( pos.y - mDragOrigin.y );
|
||||||
@@ -239,7 +239,7 @@ void cbRowDragPlugin::OnMouseMove( cbMotionEvent& event )
|
|||||||
// DBG::
|
// DBG::
|
||||||
wxPoint p = event.mPos;
|
wxPoint p = event.mPos;
|
||||||
wxPoint d = mDragOrigin;
|
wxPoint d = mDragOrigin;
|
||||||
// int dif = event.mPos.x - mDragOrigin.x;
|
int dif = event.mPos.x - mDragOrigin.x;
|
||||||
|
|
||||||
// row is dragged left or right
|
// row is dragged left or right
|
||||||
ShowDraggedRow( pos.x - mDragOrigin.x );
|
ShowDraggedRow( pos.x - mDragOrigin.x );
|
||||||
|
@@ -129,7 +129,8 @@ void cbRowLayoutPlugin::ExpandNotFixedBars( cbRowInfo* pRow )
|
|||||||
|
|
||||||
double pcntSum = 0.0;
|
double pcntSum = 0.0;
|
||||||
|
|
||||||
size_t i;
|
size_t i = 0;
|
||||||
|
|
||||||
for( i = 0; i != pRow->mBars.Count(); ++i )
|
for( i = 0; i != pRow->mBars.Count(); ++i )
|
||||||
{
|
{
|
||||||
if ( !pRow->mBars[i]->IsFixed() )
|
if ( !pRow->mBars[i]->IsFixed() )
|
||||||
@@ -160,7 +161,7 @@ void cbRowLayoutPlugin::ExpandNotFixedBars( cbRowInfo* pRow )
|
|||||||
|
|
||||||
void cbRowLayoutPlugin::AdjustLengthOfInserted( cbRowInfo* pRow, cbBarInfo* pTheBar )
|
void cbRowLayoutPlugin::AdjustLengthOfInserted( cbRowInfo* pRow, cbBarInfo* pTheBar )
|
||||||
{
|
{
|
||||||
return; // TBD: Makes following code unreachable
|
return;
|
||||||
|
|
||||||
// pTheBar is not-fixed
|
// pTheBar is not-fixed
|
||||||
|
|
||||||
@@ -183,6 +184,7 @@ void cbRowLayoutPlugin::AdjustLengthOfInserted( cbRowInfo* pRow, cbBarInfo* pThe
|
|||||||
if ( pRow->mBars.Count() )
|
if ( pRow->mBars.Count() )
|
||||||
|
|
||||||
pTheBar->mBounds.width = int( mpPane->mPaneWidth * (curWidth / double(totalLen)) );
|
pTheBar->mBounds.width = int( mpPane->mPaneWidth * (curWidth / double(totalLen)) );
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
double freeSpc = (double)GetRowFreeSpace( pRow );
|
double freeSpc = (double)GetRowFreeSpace( pRow );
|
||||||
@@ -232,6 +234,7 @@ void cbRowLayoutPlugin::FitBarsToRange( int from, int till,
|
|||||||
while( pBar != pTillBar )
|
while( pBar != pTillBar )
|
||||||
{
|
{
|
||||||
if ( pBar->IsFixed() )
|
if ( pBar->IsFixed() )
|
||||||
|
|
||||||
freeSpc -= pBar->mBounds.width;
|
freeSpc -= pBar->mBounds.width;
|
||||||
else
|
else
|
||||||
pcntSum += pBar->mLenRatio;
|
pcntSum += pBar->mLenRatio;
|
||||||
@@ -246,12 +249,13 @@ void cbRowLayoutPlugin::FitBarsToRange( int from, int till,
|
|||||||
while( pBar != pTillBar )
|
while( pBar != pTillBar )
|
||||||
{
|
{
|
||||||
if ( !pBar->IsFixed() )
|
if ( !pBar->IsFixed() )
|
||||||
{
|
|
||||||
pBar->mBounds.width =
|
pBar->mBounds.width =
|
||||||
|
|
||||||
wxMax( mpPane->mProps.mMinCBarDim.x,
|
wxMax( mpPane->mProps.mMinCBarDim.x,
|
||||||
int( double(freeSpc) * (pBar->mLenRatio/pcntSum) )
|
int( double(freeSpc) * (pBar->mLenRatio/pcntSum) )
|
||||||
);
|
);
|
||||||
}
|
|
||||||
pBar = pBar->mpNext;
|
pBar = pBar->mpNext;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -457,6 +461,7 @@ void cbRowLayoutPlugin::ApplyLengthRatios( cbRowInfo* pRow )
|
|||||||
} // for
|
} // for
|
||||||
|
|
||||||
if ( haveSquished )
|
if ( haveSquished )
|
||||||
|
|
||||||
unit = freeSpc / pcntSum;
|
unit = freeSpc / pcntSum;
|
||||||
|
|
||||||
for( i = 0; i != pRow->mBars.Count(); ++i )
|
for( i = 0; i != pRow->mBars.Count(); ++i )
|
||||||
|
@@ -496,7 +496,8 @@ void wxToolWindow::CalcResizedRect( wxRect& rect, wxPoint& delta, const wxSize&
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
wxFAIL( _T("what did the cursor hit?") );
|
int avoidCompilerWarning = 0;
|
||||||
|
wxASSERT(avoidCompilerWarning); // DBG::
|
||||||
}
|
}
|
||||||
|
|
||||||
rect.x = left;
|
rect.x = left;
|
||||||
|
@@ -289,4 +289,3 @@ void cbSimpleUpdatesMgr::UpdateNow()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -41,7 +41,7 @@ RSC=rc.exe
|
|||||||
# PROP Intermediate_Dir "Release"
|
# PROP Intermediate_Dir "Release"
|
||||||
# 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 "../../include" /I "../../../lib/msw" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
# ADD CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "../../../include" /I "../../include" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
||||||
# SUBTRACT CPP /YX
|
# SUBTRACT CPP /YX
|
||||||
# ADD BASE RSC /l 0x809
|
# ADD BASE RSC /l 0x809
|
||||||
# ADD RSC /l 0x809
|
# ADD RSC /l 0x809
|
||||||
@@ -65,7 +65,7 @@ LIB32=link.exe -lib
|
|||||||
# PROP Intermediate_Dir "Debug"
|
# PROP Intermediate_Dir "Debug"
|
||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
# ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
|
# ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
|
||||||
# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "../../../include" /I "../../include" /I "../../../lib/mswd" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "../../../include" /I "../../include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
||||||
# SUBTRACT CPP /YX
|
# SUBTRACT CPP /YX
|
||||||
# ADD BASE RSC /l 0x809
|
# ADD BASE RSC /l 0x809
|
||||||
# ADD RSC /l 0x809
|
# ADD RSC /l 0x809
|
||||||
@@ -87,7 +87,7 @@ LIB32=link.exe -lib
|
|||||||
# PROP Default_Filter ""
|
# PROP Default_Filter ""
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\include\wx\gizmos\dynamicsash.h
|
SOURCE=..\..\include\wx\gizmos\multicell.h
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
@@ -95,16 +95,16 @@ SOURCE=..\..\include\wx\gizmos\editlbox.h
|
|||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\include\wx\gizmos\multicell.h
|
SOURCE=..\..\include\wx\gizmos\splittree.h
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\include\wx\gizmos\splittree.h
|
SOURCE=..\..\include\wx\gizmos\dynamicsash.h
|
||||||
# End Source File
|
# End Source File
|
||||||
# End Group
|
# End Group
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\dynamicsash.cpp
|
SOURCE=.\multicell.cpp
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
@@ -112,15 +112,11 @@ SOURCE=.\editlbox.cpp
|
|||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\multicell.cpp
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=.\splittree.cpp
|
SOURCE=.\splittree.cpp
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\ledctrl.cpp
|
SOURCE=.\dynamicsash.cpp
|
||||||
# End Source File
|
# End Source File
|
||||||
# End Target
|
# End Target
|
||||||
# End Project
|
# End Project
|
||||||
|
@@ -13,13 +13,11 @@ LIBVERSION_AGE=0
|
|||||||
HEADER_PATH=$(top_srcdir)/contrib/include/wx
|
HEADER_PATH=$(top_srcdir)/contrib/include/wx
|
||||||
HEADER_SUBDIR=gizmos
|
HEADER_SUBDIR=gizmos
|
||||||
|
|
||||||
HEADERS=multicell.h splittree.h editlbox.h dynamicsash.h ledctrl.h
|
HEADERS=multicell.h splittree.h editlbox.h dynamicsash.h
|
||||||
|
|
||||||
OBJECTS=multicell.o splittree.o editlbox.o dynamicsash.o ledctrl.o
|
OBJECTS=multicell.o splittree.o editlbox.o dynamicsash.o
|
||||||
DEPFILES=$(OBJECTS:.o=.d)
|
|
||||||
|
|
||||||
APPEXTRADEFS=-I$(top_srcdir)/contrib/include
|
APPEXTRADEFS=-I$(top_srcdir)/contrib/include
|
||||||
|
|
||||||
include $(top_builddir)/src/makelib.env
|
include $(top_builddir)/src/makelib.env
|
||||||
|
|
||||||
-include $(DEPFILES)
|
|
||||||
|
@@ -10,23 +10,6 @@
|
|||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma implementation "splittree.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// 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
|
|
||||||
|
|
||||||
#include "wx/gizmos/dynamicsash.h"
|
#include "wx/gizmos/dynamicsash.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -100,9 +83,6 @@ class wxDynamicSashReparentEvent : public wxEvent {
|
|||||||
public:
|
public:
|
||||||
wxDynamicSashReparentEvent();
|
wxDynamicSashReparentEvent();
|
||||||
wxDynamicSashReparentEvent(wxObject *object);
|
wxDynamicSashReparentEvent(wxObject *object);
|
||||||
wxDynamicSashReparentEvent(const wxDynamicSashReparentEvent& evt);
|
|
||||||
|
|
||||||
virtual wxEvent* Clone() const { return new wxDynamicSashReparentEvent(*this); }
|
|
||||||
|
|
||||||
DECLARE_DYNAMIC_CLASS(wxDynamicSashReparentEvent);
|
DECLARE_DYNAMIC_CLASS(wxDynamicSashReparentEvent);
|
||||||
};
|
};
|
||||||
@@ -348,8 +328,7 @@ void wxDynamicSashWindowImpl::DrawSash(int x, int y) const {
|
|||||||
dc.SetBrush(brush);
|
dc.SetBrush(brush);
|
||||||
dc.SetLogicalFunction(wxXOR);
|
dc.SetLogicalFunction(wxXOR);
|
||||||
|
|
||||||
if ((m_dragging == DSR_CORNER) &&
|
if (m_dragging == DSR_CORNER) {
|
||||||
(m_window->GetWindowStyle() & wxDS_DRAG_CORNER) != 0) {
|
|
||||||
int cx = 0;
|
int cx = 0;
|
||||||
int cy = 0;
|
int cy = 0;
|
||||||
|
|
||||||
@@ -551,6 +530,7 @@ void wxDynamicSashWindowImpl::Unify(int panel) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void wxDynamicSashWindowImpl::Split(int px, int py) {
|
void wxDynamicSashWindowImpl::Split(int px, int py) {
|
||||||
|
m_window->Hide();
|
||||||
|
|
||||||
m_add_child_target = NULL;
|
m_add_child_target = NULL;
|
||||||
|
|
||||||
@@ -597,8 +577,9 @@ void wxDynamicSashWindowImpl::Split(int px, int py) {
|
|||||||
m_leaf = NULL;
|
m_leaf = NULL;
|
||||||
|
|
||||||
m_container->Layout();
|
m_container->Layout();
|
||||||
}
|
|
||||||
|
|
||||||
|
m_window->Show();
|
||||||
|
}
|
||||||
|
|
||||||
/* This code is called when you finish resizing a view by dragging the
|
/* This code is called when you finish resizing a view by dragging the
|
||||||
corner tab, but I think this implementation is lousy and will surprise
|
corner tab, but I think this implementation is lousy and will surprise
|
||||||
@@ -791,8 +772,7 @@ void wxDynamicSashWindowImpl::OnPress(wxMouseEvent &event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void wxDynamicSashWindowImpl::OnRelease(wxMouseEvent &event) {
|
void wxDynamicSashWindowImpl::OnRelease(wxMouseEvent &event) {
|
||||||
if ((m_dragging == DSR_CORNER) &&
|
if (m_dragging == DSR_CORNER) {
|
||||||
(m_window->GetWindowStyle() & wxDS_DRAG_CORNER) != 0) {
|
|
||||||
DrawSash(m_drag_x, m_drag_y);
|
DrawSash(m_drag_x, m_drag_y);
|
||||||
m_container->ReleaseMouse();
|
m_container->ReleaseMouse();
|
||||||
|
|
||||||
@@ -894,7 +874,7 @@ bool wxDynamicSashWindowLeaf::Create() {
|
|||||||
m_viewport->SetEventHandler(this);
|
m_viewport->SetEventHandler(this);
|
||||||
Connect(-1, wxEVT_DYNAMIC_SASH_REPARENT, (wxObjectEventFunction)&wxDynamicSashWindowLeaf::OnReparent);
|
Connect(-1, wxEVT_DYNAMIC_SASH_REPARENT, (wxObjectEventFunction)&wxDynamicSashWindowLeaf::OnReparent);
|
||||||
|
|
||||||
if (m_impl->m_window->GetWindowStyle() & wxDS_MANAGE_SCROLLBARS) {
|
if (m_impl->m_window->GetWindowStyle() & wxMANAGE_SCROLLBARS) {
|
||||||
m_hscroll->SetEventHandler(this);
|
m_hscroll->SetEventHandler(this);
|
||||||
m_vscroll->SetEventHandler(this);
|
m_vscroll->SetEventHandler(this);
|
||||||
|
|
||||||
@@ -991,7 +971,7 @@ DynamicSashRegion wxDynamicSashWindowLeaf::GetRegion(int x, int y) {
|
|||||||
|
|
||||||
void wxDynamicSashWindowLeaf::ResizeChild(wxSize size) {
|
void wxDynamicSashWindowLeaf::ResizeChild(wxSize size) {
|
||||||
if (m_child) {
|
if (m_child) {
|
||||||
if (m_impl->m_window->GetWindowStyle() & wxDS_MANAGE_SCROLLBARS) {
|
if (m_impl->m_window->GetWindowStyle() & wxMANAGE_SCROLLBARS) {
|
||||||
m_child->SetSize(size);
|
m_child->SetSize(size);
|
||||||
wxSize best_size = m_child->GetBestSize();
|
wxSize best_size = m_child->GetBestSize();
|
||||||
if (best_size.GetWidth() < size.GetWidth()) {
|
if (best_size.GetWidth() < size.GetWidth()) {
|
||||||
@@ -1102,6 +1082,7 @@ void wxDynamicSashWindowLeaf::OnPaint(wxPaintEvent &event) {
|
|||||||
dc.DrawLine(9, h - sh - 3, 9, h - 4);
|
dc.DrawLine(9, h - sh - 3, 9, h - 4);
|
||||||
dc.DrawLine(9, h - 4, 3, h - 4);
|
dc.DrawLine(9, h - 4, 3, h - 4);
|
||||||
|
|
||||||
|
|
||||||
int cy = (h - sh + h - 6) / 2 + 1;
|
int cy = (h - sh + h - 6) / 2 + 1;
|
||||||
int cx = (w - sw + w - 6) / 2 + 1;
|
int cx = (w - sw + w - 6) / 2 + 1;
|
||||||
int sy = cy;
|
int sy = cy;
|
||||||
@@ -1154,8 +1135,7 @@ void wxDynamicSashWindowLeaf::OnMouseMove(wxMouseEvent &event) {
|
|||||||
cursor = wxCursor(wxCURSOR_SIZENS);
|
cursor = wxCursor(wxCURSOR_SIZENS);
|
||||||
} else if (region == DSR_VERTICAL_TAB) {
|
} else if (region == DSR_VERTICAL_TAB) {
|
||||||
cursor = wxCursor(wxCURSOR_SIZEWE);
|
cursor = wxCursor(wxCURSOR_SIZEWE);
|
||||||
} else if ((region == DSR_CORNER) &&
|
} else if (region == DSR_CORNER) {
|
||||||
(m_impl->m_window->GetWindowStyle() & wxDS_DRAG_CORNER) != 0) {
|
|
||||||
cursor = wxCursor(wxCURSOR_SIZENWSE);
|
cursor = wxCursor(wxCURSOR_SIZENWSE);
|
||||||
} else if (region == DSR_LEFT_EDGE || region == DSR_TOP_EDGE
|
} else if (region == DSR_LEFT_EDGE || region == DSR_TOP_EDGE
|
||||||
|| region == DSR_RIGHT_EDGE || region == DSR_BOTTOM_EDGE) {
|
|| region == DSR_RIGHT_EDGE || region == DSR_BOTTOM_EDGE) {
|
||||||
@@ -1180,9 +1160,6 @@ void wxDynamicSashWindowLeaf::OnLeave(wxMouseEvent &event) {
|
|||||||
void wxDynamicSashWindowLeaf::OnPress(wxMouseEvent &event) {
|
void wxDynamicSashWindowLeaf::OnPress(wxMouseEvent &event) {
|
||||||
DynamicSashRegion region = GetRegion(event.m_x, event.m_y);
|
DynamicSashRegion region = GetRegion(event.m_x, event.m_y);
|
||||||
|
|
||||||
if ((region == DSR_CORNER) && (m_impl->m_window->GetWindowStyle() & wxDS_DRAG_CORNER) == 0)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (region == DSR_HORIZONTAL_TAB || region == DSR_VERTICAL_TAB || region == DSR_CORNER) {
|
if (region == DSR_HORIZONTAL_TAB || region == DSR_VERTICAL_TAB || region == DSR_CORNER) {
|
||||||
m_impl->m_dragging = region;
|
m_impl->m_dragging = region;
|
||||||
m_impl->m_drag_x = event.m_x;
|
m_impl->m_drag_x = event.m_x;
|
||||||
@@ -1260,11 +1237,6 @@ wxDynamicSashReparentEvent::wxDynamicSashReparentEvent(wxObject *object) {
|
|||||||
m_eventType = wxEVT_DYNAMIC_SASH_REPARENT;
|
m_eventType = wxEVT_DYNAMIC_SASH_REPARENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxDynamicSashReparentEvent::wxDynamicSashReparentEvent(const wxDynamicSashReparentEvent& evt)
|
|
||||||
: wxEvent(evt)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxDynamicSashReparentEvent, wxEvent)
|
IMPLEMENT_DYNAMIC_CLASS(wxDynamicSashReparentEvent, wxEvent)
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
@@ -121,13 +121,6 @@ wxEditableListBox::wxEditableListBox(wxWindow *parent, wxWindowID id,
|
|||||||
m_bDel = new wxBitmapButton(subp, wxID_ELB_DELETE, wxBitmap(eldel_xpm));
|
m_bDel = new wxBitmapButton(subp, wxID_ELB_DELETE, wxBitmap(eldel_xpm));
|
||||||
m_bUp = new wxBitmapButton(subp, wxID_ELB_UP, wxBitmap(elup_xpm));
|
m_bUp = new wxBitmapButton(subp, wxID_ELB_UP, wxBitmap(elup_xpm));
|
||||||
m_bDown = new wxBitmapButton(subp, wxID_ELB_DOWN, wxBitmap(eldown_xpm));
|
m_bDown = new wxBitmapButton(subp, wxID_ELB_DOWN, wxBitmap(eldown_xpm));
|
||||||
|
|
||||||
m_bEdit->SetToolTip(wxT("Edit item"));
|
|
||||||
m_bNew->SetToolTip(wxT("New item"));
|
|
||||||
m_bDel->SetToolTip(wxT("Delete item"));
|
|
||||||
m_bUp->SetToolTip(wxT("Move up"));
|
|
||||||
m_bDown->SetToolTip(wxT("Move down"));
|
|
||||||
|
|
||||||
subsizer->Add(m_bEdit, 0, wxALIGN_CENTRE_VERTICAL);
|
subsizer->Add(m_bEdit, 0, wxALIGN_CENTRE_VERTICAL);
|
||||||
subsizer->Add(m_bNew, 0, wxALIGN_CENTRE_VERTICAL);
|
subsizer->Add(m_bNew, 0, wxALIGN_CENTRE_VERTICAL);
|
||||||
subsizer->Add(m_bDel, 0, wxALIGN_CENTRE_VERTICAL);
|
subsizer->Add(m_bDel, 0, wxALIGN_CENTRE_VERTICAL);
|
||||||
|
@@ -1,358 +0,0 @@
|
|||||||
// ============================================================================
|
|
||||||
// headers
|
|
||||||
// ============================================================================
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma implementation "wxLEDNumberCtrl.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/wxprec.h"
|
|
||||||
|
|
||||||
#ifdef __BORLANDC__
|
|
||||||
#pragma hdrstop
|
|
||||||
#endif //__BORLANDC__
|
|
||||||
|
|
||||||
#ifndef WX_PRECOMP
|
|
||||||
#include "wx/dcclient.h"
|
|
||||||
#include "wx/dcmemory.h"
|
|
||||||
#include "wx/intl.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/gizmos/ledctrl.h"
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
// constants
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// A LED digit is build up like this, with maximum 7 Lines :
|
|
||||||
//
|
|
||||||
// 111
|
|
||||||
// 6 2
|
|
||||||
// 777
|
|
||||||
// 5 3
|
|
||||||
// 444
|
|
||||||
//
|
|
||||||
// Each number contains combinations of the lines, and they are set up below.
|
|
||||||
|
|
||||||
const int LINE1 = 1;
|
|
||||||
const int LINE2 = 2;
|
|
||||||
const int LINE3 = 4;
|
|
||||||
const int LINE4 = 8;
|
|
||||||
const int LINE5 = 16;
|
|
||||||
const int LINE6 = 32;
|
|
||||||
const int LINE7 = 64;
|
|
||||||
|
|
||||||
const int DIGIT0 = LINE1 | LINE2 | LINE3 | LINE4 | LINE5 | LINE6;
|
|
||||||
const int DIGIT1 = LINE2 | LINE3;
|
|
||||||
const int DIGIT2 = LINE1 | LINE2 | LINE4 | LINE5 | LINE7;
|
|
||||||
const int DIGIT3 = LINE1 | LINE2 | LINE3 | LINE4 | LINE7;
|
|
||||||
const int DIGIT4 = LINE2 | LINE3 | LINE6 | LINE7;
|
|
||||||
const int DIGIT5 = LINE1 | LINE3 | LINE4 | LINE6 | LINE7;
|
|
||||||
const int DIGIT6 = LINE1 | LINE3 | LINE4 | LINE5 | LINE6 | LINE7;
|
|
||||||
const int DIGIT7 = LINE1 | LINE2 | LINE3;
|
|
||||||
const int DIGIT8 = LINE1 | LINE2 | LINE3 | LINE4 | LINE5 | LINE6 | LINE7;
|
|
||||||
const int DIGIT9 = LINE1 | LINE2 | LINE3 | LINE6 | LINE7;
|
|
||||||
const int DASH = LINE7;
|
|
||||||
|
|
||||||
const int DIGITALL = -1;
|
|
||||||
|
|
||||||
// ============================================================================
|
|
||||||
// wxLEDNumberCtrl class implementation
|
|
||||||
// ============================================================================
|
|
||||||
|
|
||||||
wxLEDNumberCtrl::wxLEDNumberCtrl()
|
|
||||||
: m_Alignment(wxLED_ALIGN_LEFT),
|
|
||||||
m_LineMargin(-1),
|
|
||||||
m_DigitMargin(-1),
|
|
||||||
m_LineLength(-1),
|
|
||||||
m_LineWidth(-1),
|
|
||||||
m_DrawFaded(FALSE),
|
|
||||||
m_LeftStartPos(-1)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
wxLEDNumberCtrl::wxLEDNumberCtrl(wxWindow *parent, wxWindowID id,
|
|
||||||
const wxPoint& pos, const wxSize& size,
|
|
||||||
long style)
|
|
||||||
: m_Alignment(wxLED_ALIGN_LEFT),
|
|
||||||
m_LineMargin(-1),
|
|
||||||
m_DigitMargin(-1),
|
|
||||||
m_LineLength(-1),
|
|
||||||
m_LineWidth(-1),
|
|
||||||
m_DrawFaded(FALSE),
|
|
||||||
m_LeftStartPos(-1)
|
|
||||||
{
|
|
||||||
Create(parent, id, pos, size, style);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool wxLEDNumberCtrl::Create(wxWindow *parent, wxWindowID id,
|
|
||||||
const wxPoint& pos, const wxSize& size,
|
|
||||||
long style)
|
|
||||||
{
|
|
||||||
bool RetVal = wxControl::Create(parent, id, pos, size, style);
|
|
||||||
|
|
||||||
if ((style & wxLED_DRAW_FADED) != 0)
|
|
||||||
SetDrawFaded(TRUE);
|
|
||||||
if ((style & wxLED_ALIGN_MASK) != 0)
|
|
||||||
SetAlignment((wxLEDValueAlign)(style & wxLED_ALIGN_MASK));
|
|
||||||
|
|
||||||
SetBackgroundColour(*wxBLACK);
|
|
||||||
SetForegroundColour(*wxGREEN);
|
|
||||||
|
|
||||||
return RetVal;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void wxLEDNumberCtrl::SetAlignment(wxLEDValueAlign Alignment, bool Redraw)
|
|
||||||
{
|
|
||||||
if (Alignment != m_Alignment)
|
|
||||||
{
|
|
||||||
m_Alignment = Alignment;
|
|
||||||
RecalcInternals(GetClientSize());
|
|
||||||
|
|
||||||
if (Redraw)
|
|
||||||
Refresh(FALSE);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void wxLEDNumberCtrl::SetDrawFaded(bool DrawFaded, bool Redraw)
|
|
||||||
{
|
|
||||||
if (DrawFaded != m_DrawFaded)
|
|
||||||
{
|
|
||||||
m_DrawFaded = DrawFaded;
|
|
||||||
|
|
||||||
if (Redraw)
|
|
||||||
Refresh(FALSE);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void wxLEDNumberCtrl::SetValue(wxString const &Value, bool Redraw)
|
|
||||||
{
|
|
||||||
if (Value != m_Value)
|
|
||||||
{
|
|
||||||
if (!Value.IsEmpty())
|
|
||||||
{
|
|
||||||
for(size_t i=0; i<Value.Length(); i++) {
|
|
||||||
wxChar ch = Value[i];
|
|
||||||
wxASSERT_MSG((ch>='0' && ch<='9') || ch=='-' || ch==' ',
|
|
||||||
wxT("wxLEDNumberCtrl can only display numeric string values."));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
m_Value = Value;
|
|
||||||
RecalcInternals(GetClientSize());
|
|
||||||
|
|
||||||
if (Redraw)
|
|
||||||
Refresh(FALSE);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
BEGIN_EVENT_TABLE(wxLEDNumberCtrl, wxControl)
|
|
||||||
EVT_ERASE_BACKGROUND(wxLEDNumberCtrl::OnEraseBackground)
|
|
||||||
EVT_PAINT(wxLEDNumberCtrl::OnPaint)
|
|
||||||
EVT_SIZE(wxLEDNumberCtrl::OnSize)
|
|
||||||
END_EVENT_TABLE()
|
|
||||||
|
|
||||||
|
|
||||||
void wxLEDNumberCtrl::OnEraseBackground(wxEraseEvent &Event)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void wxLEDNumberCtrl::OnPaint(wxPaintEvent &Event)
|
|
||||||
{
|
|
||||||
wxPaintDC Dc(this);
|
|
||||||
|
|
||||||
int Width, Height;
|
|
||||||
GetClientSize(&Width, &Height);
|
|
||||||
|
|
||||||
wxBitmap *pMemoryBitmap = new wxBitmap(Width, Height);
|
|
||||||
wxMemoryDC MemDc;
|
|
||||||
|
|
||||||
MemDc.SelectObject(*pMemoryBitmap);
|
|
||||||
MemDc.BeginDrawing();
|
|
||||||
|
|
||||||
// Draw background.
|
|
||||||
MemDc.SetBrush(wxBrush(GetBackgroundColour(), wxSOLID));
|
|
||||||
MemDc.DrawRectangle(wxRect(0, 0, Width, Height));
|
|
||||||
MemDc.SetBrush(wxNullBrush);
|
|
||||||
|
|
||||||
// Iterate each digit in the value, and draw.
|
|
||||||
const int DigitCount = m_Value.Len();
|
|
||||||
for (int i = 0; i < DigitCount; ++i)
|
|
||||||
{
|
|
||||||
// Draw faded lines if wanted.
|
|
||||||
if (m_DrawFaded)
|
|
||||||
DrawDigit(MemDc, DIGITALL, i);
|
|
||||||
|
|
||||||
// Draw the digits.
|
|
||||||
switch (m_Value[i])
|
|
||||||
{
|
|
||||||
case '0' :
|
|
||||||
DrawDigit(MemDc, DIGIT0, i);
|
|
||||||
break;
|
|
||||||
case '1' :
|
|
||||||
DrawDigit(MemDc, DIGIT1, i);
|
|
||||||
break;
|
|
||||||
case '2' :
|
|
||||||
DrawDigit(MemDc, DIGIT2, i);
|
|
||||||
break;
|
|
||||||
case '3' :
|
|
||||||
DrawDigit(MemDc, DIGIT3, i);
|
|
||||||
break;
|
|
||||||
case '4' :
|
|
||||||
DrawDigit(MemDc, DIGIT4, i);
|
|
||||||
break;
|
|
||||||
case '5' :
|
|
||||||
DrawDigit(MemDc, DIGIT5, i);
|
|
||||||
break;
|
|
||||||
case '6' :
|
|
||||||
DrawDigit(MemDc, DIGIT6, i);
|
|
||||||
break;
|
|
||||||
case '7' :
|
|
||||||
DrawDigit(MemDc, DIGIT7, i);
|
|
||||||
break;
|
|
||||||
case '8' :
|
|
||||||
DrawDigit(MemDc, DIGIT8, i);
|
|
||||||
break;
|
|
||||||
case '9' :
|
|
||||||
DrawDigit(MemDc, DIGIT9, i);
|
|
||||||
break;
|
|
||||||
case '-' :
|
|
||||||
DrawDigit(MemDc, DASH, i);
|
|
||||||
break;
|
|
||||||
case ' ' :
|
|
||||||
// just skip it
|
|
||||||
break;
|
|
||||||
default :
|
|
||||||
wxFAIL_MSG(_("Unknown digit value"));
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
MemDc.EndDrawing();
|
|
||||||
|
|
||||||
// Blit the memory dc to screen.
|
|
||||||
Dc.Blit(0, 0, Width, Height, &MemDc, 0, 0, wxCOPY);
|
|
||||||
delete pMemoryBitmap;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void wxLEDNumberCtrl::DrawDigit(wxDC &Dc, int Digit, int Column)
|
|
||||||
{
|
|
||||||
wxColour LineColor(GetForegroundColour());
|
|
||||||
|
|
||||||
if (Digit == DIGITALL)
|
|
||||||
{
|
|
||||||
const int R = LineColor.Red() / 3;
|
|
||||||
const int G = LineColor.Green() / 3;
|
|
||||||
const int B = LineColor.Blue() / 3;
|
|
||||||
|
|
||||||
LineColor.Set(R, G, B);
|
|
||||||
}
|
|
||||||
|
|
||||||
int XPos = m_LeftStartPos;
|
|
||||||
|
|
||||||
if (Column > 0)
|
|
||||||
XPos += (Column * m_LineLength) + (m_DigitMargin) * Column;
|
|
||||||
|
|
||||||
// Create a pen and draw the lines.
|
|
||||||
wxPen Pen(LineColor, m_LineWidth, wxSOLID);
|
|
||||||
Dc.SetPen(Pen);
|
|
||||||
|
|
||||||
if ((Digit & LINE1))
|
|
||||||
{
|
|
||||||
Dc.DrawLine(XPos + m_LineMargin*2, m_LineMargin,
|
|
||||||
XPos + m_LineLength, m_LineMargin);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Digit & LINE2)
|
|
||||||
{
|
|
||||||
Dc.DrawLine(XPos + m_LineLength + m_LineMargin, m_LineMargin*2,
|
|
||||||
XPos + m_LineLength + m_LineMargin, m_LineLength + (m_LineMargin*2));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Digit & LINE3)
|
|
||||||
{
|
|
||||||
Dc.DrawLine(XPos + m_LineLength + m_LineMargin, m_LineLength + (m_LineMargin*4),
|
|
||||||
XPos + m_LineLength + m_LineMargin, m_LineLength*2 + (m_LineMargin*3));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Digit & LINE4)
|
|
||||||
{
|
|
||||||
Dc.DrawLine(XPos + m_LineMargin*2, m_LineLength*2 + (m_LineMargin*4),
|
|
||||||
XPos + m_LineLength, m_LineLength*2 + (m_LineMargin*4));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Digit & LINE5)
|
|
||||||
{
|
|
||||||
Dc.DrawLine(XPos + m_LineMargin, m_LineLength + (m_LineMargin*4),
|
|
||||||
XPos + m_LineMargin, m_LineLength*2 + (m_LineMargin*3));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Digit & LINE6)
|
|
||||||
{
|
|
||||||
Dc.DrawLine(XPos + m_LineMargin, m_LineMargin*2,
|
|
||||||
XPos + m_LineMargin, m_LineLength + (m_LineMargin*2));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Digit & LINE7)
|
|
||||||
{
|
|
||||||
Dc.DrawLine(XPos + m_LineMargin*2, m_LineLength + (m_LineMargin*3),
|
|
||||||
XPos + m_LineMargin + m_LineLength - m_LineMargin, m_LineLength + (m_LineMargin*3));
|
|
||||||
}
|
|
||||||
|
|
||||||
Dc.SetPen(wxNullPen);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void wxLEDNumberCtrl::RecalcInternals(const wxSize &CurrentSize)
|
|
||||||
{
|
|
||||||
const int Height = CurrentSize.GetHeight();
|
|
||||||
|
|
||||||
if ((Height * 0.07) < 1)
|
|
||||||
m_LineMargin = 1;
|
|
||||||
else
|
|
||||||
m_LineMargin = Height * 0.07;
|
|
||||||
|
|
||||||
if ((Height * 0.35) < 1)
|
|
||||||
m_LineLength = 1;
|
|
||||||
else
|
|
||||||
m_LineLength = Height * 0.35;
|
|
||||||
|
|
||||||
m_LineWidth = m_LineMargin;
|
|
||||||
|
|
||||||
m_DigitMargin = m_LineMargin * 4;
|
|
||||||
|
|
||||||
const int ValueWidth = (m_LineLength + m_DigitMargin) * m_Value.Len();
|
|
||||||
const int ClientWidth = CurrentSize.GetWidth();
|
|
||||||
|
|
||||||
switch (m_Alignment)
|
|
||||||
{
|
|
||||||
case wxLED_ALIGN_LEFT :
|
|
||||||
m_LeftStartPos = 0;
|
|
||||||
break;
|
|
||||||
case wxLED_ALIGN_RIGHT :
|
|
||||||
m_LeftStartPos = ClientWidth - ValueWidth;
|
|
||||||
break;
|
|
||||||
case wxLED_ALIGN_CENTER :
|
|
||||||
m_LeftStartPos = (ClientWidth - ValueWidth) / 2;
|
|
||||||
break;
|
|
||||||
default :
|
|
||||||
wxFAIL_MSG(_("Unknown alignent value for wxLEDNumberCtrl."));
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void wxLEDNumberCtrl::OnSize(wxSizeEvent &Event)
|
|
||||||
{
|
|
||||||
RecalcInternals(Event.GetSize());
|
|
||||||
|
|
||||||
Event.Skip();
|
|
||||||
}
|
|
@@ -11,7 +11,7 @@ WXDIR = $(WXWIN)
|
|||||||
|
|
||||||
LIBTARGET=$(WXDIR)\lib\gizmos.lib
|
LIBTARGET=$(WXDIR)\lib\gizmos.lib
|
||||||
|
|
||||||
OBJECTS = multicell.obj splittree.obj editlbox.obj dynamicsash.obj ledctrl.obj
|
OBJECTS = multicell.obj splittree.obj editlbox.obj dynamicsash.obj
|
||||||
|
|
||||||
!include $(WXDIR)\src\makelib.b32
|
!include $(WXDIR)\src\makelib.b32
|
||||||
|
|
||||||
|
@@ -14,7 +14,7 @@ WXDIR = $(WXWIN)
|
|||||||
|
|
||||||
LIBTARGET=$(WXDIR)\lib\gizmos.lib
|
LIBTARGET=$(WXDIR)\lib\gizmos.lib
|
||||||
|
|
||||||
OBJECTS = multicell.obj splittree.obj editlbox.obj dynamicsash.obj ledctrl.obj
|
OBJECTS = multicell.obj splittree.obj editlbox.obj dynamicsash.obj
|
||||||
|
|
||||||
!include $(WXDIR)\src\makelib.bcc
|
!include $(WXDIR)\src\makelib.bcc
|
||||||
|
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
WXDIR = ../../..
|
WXDIR = ../../..
|
||||||
|
|
||||||
LIBTARGET=$(WXDIR)/lib/libgizmos.a
|
LIBTARGET=$(WXDIR)/lib/libgizmos.a
|
||||||
OBJECTS = multicell.o splittree.o editlbox.o dynamicsash.o ledctrl.o
|
OBJECTS = multicell.o splittree.o editlbox.o dynamicsash.o
|
||||||
|
|
||||||
include $(WXDIR)/src/makelib.g95
|
include $(WXDIR)/src/makelib.g95
|
||||||
|
|
||||||
|
@@ -23,7 +23,7 @@ LOCALDOCDIR=$(WXDIR)\contrib\docs\latex\gizmos
|
|||||||
|
|
||||||
!include $(WXDIR)\src\makevc.env
|
!include $(WXDIR)\src\makevc.env
|
||||||
|
|
||||||
OBJECTS = $(D)\multicell.obj $(D)\splittree.obj $(D)\editlbox.obj $(D)\dynamicsash.obj $(D)\ledctrl.obj
|
OBJECTS = $(D)\multicell.obj $(D)\splittree.obj $(D)\editlbox.obj $(D)\dynamicsash.obj
|
||||||
|
|
||||||
LIBTARGET=$(WXDIR)\lib\gizmos$(LIBEXT).lib
|
LIBTARGET=$(WXDIR)\lib\gizmos$(LIBEXT).lib
|
||||||
|
|
||||||
|
@@ -10,7 +10,7 @@ THISDIR = $(WXDIR)\contrib\src\gizmos
|
|||||||
NAME = gizmos
|
NAME = gizmos
|
||||||
LNK = $(name).lnk
|
LNK = $(name).lnk
|
||||||
|
|
||||||
OBJECTS = multicell.obj splittree.obj editlbox.obj dynamicsash.obj ledctrl.obj
|
OBJECTS = multicell.obj splittree.obj editlbox.obj dynamicsash.obj
|
||||||
|
|
||||||
all: $(GIZMOSLIB)
|
all: $(GIZMOSLIB)
|
||||||
|
|
||||||
|
@@ -40,6 +40,8 @@
|
|||||||
#include "wx/msw/winundef.h"
|
#include "wx/msw/winundef.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "wx/generic/treectlg.h"
|
||||||
|
|
||||||
#include "wx/gizmos/splittree.h"
|
#include "wx/gizmos/splittree.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
@@ -59,24 +61,16 @@ BEGIN_EVENT_TABLE(wxRemotelyScrolledTreeCtrl, wxGenericTreeCtrl)
|
|||||||
BEGIN_EVENT_TABLE(wxRemotelyScrolledTreeCtrl, wxTreeCtrl)
|
BEGIN_EVENT_TABLE(wxRemotelyScrolledTreeCtrl, wxTreeCtrl)
|
||||||
#endif
|
#endif
|
||||||
EVT_SIZE(wxRemotelyScrolledTreeCtrl::OnSize)
|
EVT_SIZE(wxRemotelyScrolledTreeCtrl::OnSize)
|
||||||
EVT_PAINT(wxRemotelyScrolledTreeCtrl::OnPaint)
|
|
||||||
EVT_TREE_ITEM_EXPANDED(-1, wxRemotelyScrolledTreeCtrl::OnExpand)
|
EVT_TREE_ITEM_EXPANDED(-1, wxRemotelyScrolledTreeCtrl::OnExpand)
|
||||||
EVT_TREE_ITEM_COLLAPSED(-1, wxRemotelyScrolledTreeCtrl::OnExpand)
|
EVT_TREE_ITEM_COLLAPSED(-1, wxRemotelyScrolledTreeCtrl::OnExpand)
|
||||||
EVT_SCROLLWIN(wxRemotelyScrolledTreeCtrl::OnScroll)
|
EVT_SCROLLWIN(wxRemotelyScrolledTreeCtrl::OnScroll)
|
||||||
END_EVENT_TABLE()
|
END_EVENT_TABLE()
|
||||||
|
|
||||||
wxRemotelyScrolledTreeCtrl::wxRemotelyScrolledTreeCtrl(
|
wxRemotelyScrolledTreeCtrl::wxRemotelyScrolledTreeCtrl(wxWindow* parent, wxWindowID id, const wxPoint& pt,
|
||||||
wxWindow* parent, wxWindowID id, const wxPoint& pt,
|
const wxSize& sz, long style):
|
||||||
const wxSize& sz, long style)
|
wxTreeCtrl(parent, id, pt, sz, style)
|
||||||
: wxTreeCtrl(parent, id, pt, sz, style & ~wxTR_ROW_LINES)
|
|
||||||
{
|
{
|
||||||
m_companionWindow = NULL;
|
m_companionWindow = NULL;
|
||||||
|
|
||||||
// We draw the row lines ourself so they match what's done
|
|
||||||
// by the companion window. That is why the flag is turned
|
|
||||||
// off above, so wxGenericTreeCtrl doesn't draw them in a
|
|
||||||
// different colour.
|
|
||||||
m_drawRowLines = (style & wxTR_ROW_LINES) != 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
wxRemotelyScrolledTreeCtrl::~wxRemotelyScrolledTreeCtrl()
|
wxRemotelyScrolledTreeCtrl::~wxRemotelyScrolledTreeCtrl()
|
||||||
@@ -85,20 +79,16 @@ wxRemotelyScrolledTreeCtrl::~wxRemotelyScrolledTreeCtrl()
|
|||||||
|
|
||||||
void wxRemotelyScrolledTreeCtrl::HideVScrollbar()
|
void wxRemotelyScrolledTreeCtrl::HideVScrollbar()
|
||||||
{
|
{
|
||||||
#if defined(__WXMSW__)
|
#ifdef __WXMSW__
|
||||||
#if USE_GENERIC_TREECTRL
|
|
||||||
if (!IsKindOf(CLASSINFO(wxGenericTreeCtrl)))
|
if (!IsKindOf(CLASSINFO(wxGenericTreeCtrl)))
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
::ShowScrollBar((HWND) GetHWND(), SB_VERT, FALSE);
|
::ShowScrollBar((HWND) GetHWND(), SB_VERT, FALSE);
|
||||||
}
|
}
|
||||||
#if USE_GENERIC_TREECTRL
|
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
// Implicit in overriding SetScrollbars
|
// Implicit in overriding SetScrollbars
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Number of pixels per user unit (0 or -1 for no scrollbar)
|
// Number of pixels per user unit (0 or -1 for no scrollbar)
|
||||||
@@ -109,7 +99,6 @@ void wxRemotelyScrolledTreeCtrl::SetScrollbars(int pixelsPerUnitX, int pixelsPer
|
|||||||
int xPos, int yPos,
|
int xPos, int yPos,
|
||||||
bool noRefresh)
|
bool noRefresh)
|
||||||
{
|
{
|
||||||
#if USE_GENERIC_TREECTRL || !defined(__WXMSW__)
|
|
||||||
if (IsKindOf(CLASSINFO(wxGenericTreeCtrl)))
|
if (IsKindOf(CLASSINFO(wxGenericTreeCtrl)))
|
||||||
{
|
{
|
||||||
wxGenericTreeCtrl* win = (wxGenericTreeCtrl*) this;
|
wxGenericTreeCtrl* win = (wxGenericTreeCtrl*) this;
|
||||||
@@ -121,7 +110,6 @@ void wxRemotelyScrolledTreeCtrl::SetScrollbars(int pixelsPerUnitX, int pixelsPer
|
|||||||
scrolledWindow->SetScrollbars(0, pixelsPerUnitY, 0, noUnitsY, 0, yPos, noRefresh);
|
scrolledWindow->SetScrollbars(0, pixelsPerUnitY, 0, noUnitsY, 0, yPos, noRefresh);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// In case we're using the generic tree control.
|
// In case we're using the generic tree control.
|
||||||
@@ -129,7 +117,6 @@ int wxRemotelyScrolledTreeCtrl::GetScrollPos(int orient) const
|
|||||||
{
|
{
|
||||||
wxScrolledWindow* scrolledWindow = GetScrolledWindow();
|
wxScrolledWindow* scrolledWindow = GetScrolledWindow();
|
||||||
|
|
||||||
#if USE_GENERIC_TREECTRL || !defined(__WXMSW__)
|
|
||||||
if (IsKindOf(CLASSINFO(wxGenericTreeCtrl)))
|
if (IsKindOf(CLASSINFO(wxGenericTreeCtrl)))
|
||||||
{
|
{
|
||||||
wxGenericTreeCtrl* win = (wxGenericTreeCtrl*) this;
|
wxGenericTreeCtrl* win = (wxGenericTreeCtrl*) this;
|
||||||
@@ -141,7 +128,6 @@ int wxRemotelyScrolledTreeCtrl::GetScrollPos(int orient) const
|
|||||||
return scrolledWindow->GetScrollPos(orient);
|
return scrolledWindow->GetScrollPos(orient);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -152,7 +138,6 @@ void wxRemotelyScrolledTreeCtrl::GetViewStart(int *x, int *y) const
|
|||||||
{
|
{
|
||||||
wxScrolledWindow* scrolledWindow = GetScrolledWindow();
|
wxScrolledWindow* scrolledWindow = GetScrolledWindow();
|
||||||
|
|
||||||
#if USE_GENERIC_TREECTRL || !defined(__WXMSW__)
|
|
||||||
if (IsKindOf(CLASSINFO(wxGenericTreeCtrl)))
|
if (IsKindOf(CLASSINFO(wxGenericTreeCtrl)))
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -167,7 +152,6 @@ void wxRemotelyScrolledTreeCtrl::GetViewStart(int *x, int *y) const
|
|||||||
* y = y2;
|
* y = y2;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
// x is wrong since the horizontal scrollbar is controlled by the
|
// x is wrong since the horizontal scrollbar is controlled by the
|
||||||
// tree control, but we probably don't need it.
|
// tree control, but we probably don't need it.
|
||||||
@@ -178,7 +162,6 @@ void wxRemotelyScrolledTreeCtrl::GetViewStart(int *x, int *y) const
|
|||||||
// In case we're using the generic tree control.
|
// In case we're using the generic tree control.
|
||||||
void wxRemotelyScrolledTreeCtrl::PrepareDC(wxDC& dc)
|
void wxRemotelyScrolledTreeCtrl::PrepareDC(wxDC& dc)
|
||||||
{
|
{
|
||||||
#if USE_GENERIC_TREECTRL || !defined(__WXMSW__)
|
|
||||||
if (IsKindOf(CLASSINFO(wxGenericTreeCtrl)))
|
if (IsKindOf(CLASSINFO(wxGenericTreeCtrl)))
|
||||||
{
|
{
|
||||||
wxScrolledWindow* scrolledWindow = GetScrolledWindow();
|
wxScrolledWindow* scrolledWindow = GetScrolledWindow();
|
||||||
@@ -195,7 +178,6 @@ void wxRemotelyScrolledTreeCtrl::PrepareDC(wxDC& dc)
|
|||||||
dc.SetDeviceOrigin( -startX * xppu1, -startY * yppu2 );
|
dc.SetDeviceOrigin( -startX * xppu1, -startY * yppu2 );
|
||||||
// dc.SetUserScale( win->GetScaleX(), win->GetScaleY() );
|
// dc.SetUserScale( win->GetScaleX(), win->GetScaleY() );
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scroll to the given line (in scroll units where each unit is
|
// Scroll to the given line (in scroll units where each unit is
|
||||||
@@ -203,19 +185,14 @@ void wxRemotelyScrolledTreeCtrl::PrepareDC(wxDC& dc)
|
|||||||
void wxRemotelyScrolledTreeCtrl::ScrollToLine(int posHoriz, int posVert)
|
void wxRemotelyScrolledTreeCtrl::ScrollToLine(int posHoriz, int posVert)
|
||||||
{
|
{
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
#if USE_GENERIC_TREECTRL
|
|
||||||
if (!IsKindOf(CLASSINFO(wxGenericTreeCtrl)))
|
if (!IsKindOf(CLASSINFO(wxGenericTreeCtrl)))
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
UINT sbCode = SB_THUMBPOSITION;
|
UINT sbCode = SB_THUMBPOSITION;
|
||||||
HWND vertScrollBar = 0;
|
HWND vertScrollBar = 0;
|
||||||
MSWDefWindowProc((WXUINT) WM_VSCROLL, MAKELONG(sbCode, posVert), (WXHWND) vertScrollBar);
|
MSWDefWindowProc((WXUINT) WM_VSCROLL, MAKELONG(sbCode, posVert), (WXHWND) vertScrollBar);
|
||||||
}
|
}
|
||||||
#if USE_GENERIC_TREECTRL
|
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
#if USE_GENERIC_TREECTRL || !defined(__WXMSW__)
|
|
||||||
{
|
{
|
||||||
wxGenericTreeCtrl* win = (wxGenericTreeCtrl*) this;
|
wxGenericTreeCtrl* win = (wxGenericTreeCtrl*) this;
|
||||||
win->Refresh();
|
win->Refresh();
|
||||||
@@ -229,7 +206,6 @@ void wxRemotelyScrolledTreeCtrl::ScrollToLine(int posHoriz, int posVert)
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxRemotelyScrolledTreeCtrl::OnSize(wxSizeEvent& event)
|
void wxRemotelyScrolledTreeCtrl::OnSize(wxSizeEvent& event)
|
||||||
@@ -253,47 +229,9 @@ void wxRemotelyScrolledTreeCtrl::OnExpand(wxTreeEvent& event)
|
|||||||
m_companionWindow->GetEventHandler()->ProcessEvent(event);
|
m_companionWindow->GetEventHandler()->ProcessEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxRemotelyScrolledTreeCtrl::OnPaint(wxPaintEvent& event)
|
|
||||||
{
|
|
||||||
wxPaintDC dc(this);
|
|
||||||
|
|
||||||
wxTreeCtrl::OnPaint(event);
|
|
||||||
|
|
||||||
if (! m_drawRowLines)
|
|
||||||
return;
|
|
||||||
|
|
||||||
// Reset the device origin since it may have been set
|
|
||||||
dc.SetDeviceOrigin(0, 0);
|
|
||||||
|
|
||||||
wxPen pen(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DLIGHT), 1, wxSOLID);
|
|
||||||
dc.SetPen(pen);
|
|
||||||
dc.SetBrush(* wxTRANSPARENT_BRUSH);
|
|
||||||
|
|
||||||
wxSize clientSize = GetClientSize();
|
|
||||||
wxRect itemRect;
|
|
||||||
int cy=0;
|
|
||||||
wxTreeItemId h, lastH;
|
|
||||||
for(h=GetFirstVisibleItem();h;h=GetNextVisible(h))
|
|
||||||
{
|
|
||||||
if (GetBoundingRect(h, itemRect))
|
|
||||||
{
|
|
||||||
cy = itemRect.GetTop();
|
|
||||||
dc.DrawLine(0, cy, clientSize.x, cy);
|
|
||||||
lastH = h;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (GetBoundingRect(lastH, itemRect))
|
|
||||||
{
|
|
||||||
cy = itemRect.GetBottom();
|
|
||||||
dc.DrawLine(0, cy, clientSize.x, cy);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Adjust the containing wxScrolledWindow's scrollbars appropriately
|
// Adjust the containing wxScrolledWindow's scrollbars appropriately
|
||||||
void wxRemotelyScrolledTreeCtrl::AdjustRemoteScrollbars()
|
void wxRemotelyScrolledTreeCtrl::AdjustRemoteScrollbars()
|
||||||
{
|
{
|
||||||
#if USE_GENERIC_TREECTRL || !defined(__WXMSW__)
|
|
||||||
if (IsKindOf(CLASSINFO(wxGenericTreeCtrl)))
|
if (IsKindOf(CLASSINFO(wxGenericTreeCtrl)))
|
||||||
{
|
{
|
||||||
// This is for the generic tree control.
|
// This is for the generic tree control.
|
||||||
@@ -304,7 +242,6 @@ void wxRemotelyScrolledTreeCtrl::AdjustRemoteScrollbars()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
// This is for the wxMSW tree control
|
// This is for the wxMSW tree control
|
||||||
wxScrolledWindow* scrolledWindow = GetScrolledWindow();
|
wxScrolledWindow* scrolledWindow = GetScrolledWindow();
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user