Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
32e9664653 |
21
.cvsignore
21
.cvsignore
@@ -21,10 +21,23 @@ linux-gnu.system.cache
|
|||||||
*.d
|
*.d
|
||||||
*.swp
|
*.swp
|
||||||
*.swo
|
*.swo
|
||||||
|
*.swq
|
||||||
Release
|
Release
|
||||||
Debug
|
Debug
|
||||||
ReleaseDLL
|
ReleaseDll
|
||||||
DebugDLL
|
DebugDll
|
||||||
|
ReleaseUnicode
|
||||||
|
DebugUnicode
|
||||||
|
ReleaseUnicodeDll
|
||||||
|
DebugUnicodeDll
|
||||||
|
BaseRelease
|
||||||
|
BaseDebug
|
||||||
|
BaseReleaseDll
|
||||||
|
BaseDebugDll
|
||||||
|
BaseReleaseUnicode
|
||||||
|
BaseDebugUnicode
|
||||||
|
BaseReleaseUnicodeDll
|
||||||
|
BaseDebugUnicodeDll
|
||||||
robert
|
robert
|
||||||
stamp-h.in
|
stamp-h.in
|
||||||
Makefile
|
Makefile
|
||||||
@@ -37,10 +50,6 @@ base
|
|||||||
gtk
|
gtk
|
||||||
motif
|
motif
|
||||||
win32
|
win32
|
||||||
base-debug
|
|
||||||
gtk-debug
|
|
||||||
motif-debug
|
|
||||||
win32-debug
|
|
||||||
base-release
|
base-release
|
||||||
gtk-release
|
gtk-release
|
||||||
motif-release
|
motif-release
|
||||||
|
37
BuildCVS.txt
37
BuildCVS.txt
@@ -118,38 +118,23 @@ ftp server at ftp://sourceware.cygnus.com/pub/cygwin/.
|
|||||||
Of course, you can also build the library using plain makefiles (see
|
Of course, you can also build the library using plain makefiles (see
|
||||||
section I).
|
section I).
|
||||||
|
|
||||||
IV) Classic MacOS using CodeWarrior (eg MacOS 8.x/9.x)
|
IV) wxBase
|
||||||
----------------------------------------
|
----------------------------------------
|
||||||
|
|
||||||
Refer to the readme.txt and install.txt files in docs/mac to build
|
wxBase is the non GUI part of wxWindows. Currently it can be only built using
|
||||||
wxWindows under Classic Mac OS using CodeWarrior.
|
configure (i.e. under Unix and probably under Win32 with cygwin) and with
|
||||||
|
Visual C++.
|
||||||
|
|
||||||
If you are checking out the CVS sources using cvs under Mac OS X and
|
To build it using configure, just add "--disable-gui" argument to it.
|
||||||
compiling under Classic Mac OS, make sure that all text files have a
|
|
||||||
Mac OS type of 'TEXT' otherwise CodeWarrior may ignore them. Checking
|
|
||||||
out the CVS sources using cvs under Mac OS X creates untyped files
|
|
||||||
which can lead to compialtion errors under CodeWarrior which are hard
|
|
||||||
to track down.
|
|
||||||
|
|
||||||
V) MacOS X using configure and the Developer Tools
|
To build wxBase with VC++, use the project files wxBase.dsp and wxBaseDll.dsp
|
||||||
|
included in the CVS. See http://www.wxwindows.org/vadim/wxDocs/buildmsw.html
|
||||||
|
for the instructions on how to generate the project files for the programs
|
||||||
|
using wxBase.
|
||||||
|
|
||||||
|
V) MacOS
|
||||||
----------------------------------------
|
----------------------------------------
|
||||||
|
|
||||||
You need to have the Developer Tools installed. If this is not the case,
|
|
||||||
you will need to register at the Apple Developer web site (this is a free
|
|
||||||
registration) in order to download the Developer Tools installer.
|
|
||||||
|
|
||||||
In order to create configure, you need to have the
|
|
||||||
GNU autoconf package (version 2.13 or 2.14) installed
|
|
||||||
on your system and type run "autoconf" in the base
|
|
||||||
directory (or run the autogen.sh script in the same
|
|
||||||
directory, which just calls autoconf).
|
|
||||||
|
|
||||||
-> type: mkdir macbuild
|
|
||||||
-> type: cd macbuild
|
|
||||||
-> type: ../configure --with-mac
|
|
||||||
or type: ../configure
|
|
||||||
-> type: make
|
|
||||||
|
|
||||||
VI) OS/2
|
VI) OS/2
|
||||||
----------------------------------------
|
----------------------------------------
|
||||||
|
|
||||||
|
297
Makefile.in
297
Makefile.in
@@ -1,11 +1,12 @@
|
|||||||
#
|
#
|
||||||
# File: makefile.unx
|
# File: makefile.unx
|
||||||
# Author: Julian Smart, Robert Roebling, Vadim Zeitlin
|
# Author: Julian Smart, Robert Roebling, Vadim Zeitlin, Ron Lee
|
||||||
# Created: 1993
|
# Created: 1993
|
||||||
# Updated: 1999
|
# Updated: 2001
|
||||||
# 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
|
||||||
|
|
||||||
@@ -15,24 +16,22 @@ include ./src/make.env
|
|||||||
|
|
||||||
############## override make.env for PIC ##########################
|
############## override make.env for PIC ##########################
|
||||||
|
|
||||||
# Clears all default suffixes
|
%.o : %.c
|
||||||
.SUFFIXES: .o .cpp .c .cxx
|
$(CC) -c $(CFLAGS) $(PICFLAGS) @WXMSW_DLL_DEFINES@ -o $@ $<
|
||||||
|
|
||||||
.c.o :
|
%.o : %.cpp
|
||||||
$(CCC) -c @DEP_INFO_FLAGS@ $(CFLAGS) $(PICFLAGS) -o $@ $<
|
$(CXX) -c $(CXXFLAGS) $(PICFLAGS) @WXMSW_DLL_DEFINES@ -o $@ $<
|
||||||
|
|
||||||
.cpp.o :
|
%.o : %.cxx
|
||||||
$(CC) -c @DEP_INFO_FLAGS@ $(CPPFLAGS) $(PICFLAGS) -o $@ $<
|
$(CXX) -c $(CXXFLAGS) $(PICFLAGS) @WXMSW_DLL_DEFINES@ -o $@ $<
|
||||||
|
|
||||||
.cxx.o :
|
|
||||||
$(CC) -c @DEP_INFO_FLAGS@ $(CPPFLAGS) $(PICFLAGS) -o $@ $<
|
|
||||||
|
|
||||||
########################### Paths #################################
|
########################### Paths #################################
|
||||||
|
|
||||||
srcdir = @srcdir@
|
srcdir = @srcdir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
|
||||||
VP1 = @top_srcdir@/src/common
|
VP1 = @TOOLKIT_VPATH@
|
||||||
VP2 = @top_srcdir@/src/@TOOLKIT_DIR@
|
VP2 = @top_srcdir@/src/common
|
||||||
VP3 = @top_srcdir@/src/motif/xmcombo
|
VP3 = @top_srcdir@/src/motif/xmcombo
|
||||||
VP4 = @top_srcdir@/src/generic
|
VP4 = @top_srcdir@/src/generic
|
||||||
VP5 = @top_srcdir@/src/unix
|
VP5 = @top_srcdir@/src/unix
|
||||||
@@ -68,48 +67,25 @@ VP14 = $(FTVP09)@PATH_IFS@$(FTVP10)@PATH_IFS@$(FTVP11)@PATH_IFS@$(FTVP12)@PATH_I
|
|||||||
# 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@$(VP10)@PATH_IFS@$(VP11)@PATH_IFS@$(VP12)@PATH_IFS@$(VP13)@PATH_IFS@$(VP14) # ':' 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@$(VP10)@PATH_IFS@$(VP11)@PATH_IFS@$(VP12)@PATH_IFS@$(VP13)@PATH_IFS@$(VP14) # ':' for autoconf
|
||||||
|
|
||||||
top_srcdir = @top_srcdir@
|
|
||||||
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@
|
||||||
@@ -153,19 +129,18 @@ 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_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)
|
||||||
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
|
||||||
WXSAMPLES=wx$(TOOLKIT)-samples-$(VER_SUFFIX).tar.gz
|
WXSAMPLES = wx$(TOOLKIT)-samples-$(VER_SUFFIX).tar.gz
|
||||||
WXDEMOS=wx$(TOOLKIT)-demos-$(VER_SUFFIX).tar.gz
|
WXDEMOS = wx$(TOOLKIT)-demos-$(VER_SUFFIX).tar.gz
|
||||||
|
|
||||||
WXARCHIVE_BZIP=@DISTDIR@-$(VER_SUFFIX).tar.bz2
|
WXARCHIVE_BZIP = @DISTDIR@-$(VER_SUFFIX).tar.bz2
|
||||||
WXGLARCHIVE_BZIP=@DISTDIR@-gl-$(VER_SUFFIX).tar.bz2
|
WXGLARCHIVE_BZIP = @DISTDIR@-gl-$(VER_SUFFIX).tar.bz2
|
||||||
WXSAMPLES_BZIP=wx$(TOOLKIT)-samples-$(VER_SUFFIX).tar.bz2
|
WXSAMPLES_BZIP = wx$(TOOLKIT)-samples-$(VER_SUFFIX).tar.bz2
|
||||||
WXDEMOS_BZIP=wx$(TOOLKIT)-demos-$(VER_SUFFIX).tar.bz2
|
WXDEMOS_BZIP = wx$(TOOLKIT)-demos-$(VER_SUFFIX).tar.bz2
|
||||||
|
|
||||||
DISTDIRNAME=@DISTDIR@-$(VER_SUFFIX)
|
DISTDIR = ./_dist_dir/@DISTDIR@
|
||||||
DISTDIR=./_dist_dir/$(DISTDIRNAME)
|
|
||||||
|
|
||||||
|
|
||||||
############################## Files ##################################
|
############################## Files ##################################
|
||||||
@@ -183,7 +158,6 @@ 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)
|
||||||
@@ -339,80 +313,44 @@ IODBCOBJS = \
|
|||||||
prepare.o \
|
prepare.o \
|
||||||
result.o
|
result.o
|
||||||
|
|
||||||
OLEOBJS = \
|
|
||||||
automtn.o \
|
|
||||||
dataobj.o \
|
|
||||||
dropsrc.o \
|
|
||||||
droptgt.o \
|
|
||||||
oleutils.o \
|
|
||||||
uuid.o
|
|
||||||
|
|
||||||
############################## Rules ##################################
|
############################## Rules ##################################
|
||||||
|
|
||||||
BURNT_LIBRARY_NAME = @BURNT_LIBRARY_NAME@
|
SONAME_FLAGS = @SONAME_FLAGS@
|
||||||
BURNT_LIBRARY_NAME_GL = @BURNT_LIBRARY_NAME_GL@
|
SONAME_FLAGS_GL = @SONAME_FLAGS_GL@
|
||||||
|
|
||||||
all: @WX_ALL@
|
all: @WX_ALL@
|
||||||
|
|
||||||
@WX_LIBRARY_NAME_STATIC@: $(OBJECTS)
|
$(build_libdir)/@WX_LIBRARY_NAME_STATIC@: $(OBJECTS)
|
||||||
@$(INSTALL) -d ./lib
|
@$(INSTALL) -d $(build_libdir)
|
||||||
$(AR) $(AROPTIONS) ./lib/$@ $(OBJECTS)
|
$(AR) $(AROPTIONS) $@ $(OBJECTS)
|
||||||
$(RANLIB) ./lib/$@
|
$(RANLIB) $@
|
||||||
|
|
||||||
@WX_LIBRARY_NAME_STATIC_GL@: glcanvas.o
|
$(build_libdir)/@WX_LIBRARY_NAME_STATIC_GL@: glcanvas.o
|
||||||
@$(INSTALL) -d ./lib
|
@$(INSTALL) -d $(build_libdir)
|
||||||
$(AR) $(AROPTIONS) ./lib/$@ glcanvas.o
|
$(AR) $(AROPTIONS) $@ glcanvas.o
|
||||||
$(RANLIB) ./lib/$@
|
$(RANLIB) $@
|
||||||
|
|
||||||
@WX_LIBRARY_NAME_SHARED@: $(OBJECTS)
|
$(build_libdir)/@WX_LIBRARY_NAME_SHARED@: $(OBJECTS)
|
||||||
@$(INSTALL) -d ./lib
|
@$(INSTALL) -d $(build_libdir)
|
||||||
$(SHARED_LD) ./lib/$@ $(BURNT_LIBRARY_NAME) $(OBJECTS) $(EXTRALIBS)
|
$(SHARED_LD) $@ $(SONAME_FLAGS) $(OBJECTS) $(EXTRALIBS)
|
||||||
|
|
||||||
@WX_LIBRARY_NAME_SHARED_GL@: glcanvas.o
|
$(build_libdir)/@WX_LIBRARY_NAME_SHARED_GL@: glcanvas.o $(build_libdir)/@WX_LIBRARY_NAME_SHARED@
|
||||||
@$(INSTALL) -d ./lib
|
@$(INSTALL) -d $(build_libdir)
|
||||||
$(SHARED_LD) ./lib/$@ $(BURNT_LIBRARY_NAME_GL) glcanvas.o $(EXTRALIBS)
|
$(SHARED_LD) $@ $(SONAME_FLAGS_GL) glcanvas.o -L$(build_libdir) @WXCONFIG_LIBS@ $(EXTRALIBS) $(OPENGLLIBS)
|
||||||
|
|
||||||
./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
|
$(build_libdir)/@WX_LIBRARY_LINK1@: $(build_libdir)/@WX_LIBRARY_NAME_SHARED@
|
||||||
$(DEREZ) $^ $(DEREZFLAGS) > $@
|
@$(RM) $(build_libdir)/@WX_LIBRARY_LINK1@
|
||||||
|
@$(RM) $(build_libdir)/@WX_LIBRARY_LINK2@
|
||||||
./lib/lib@WX_LIBRARY@-$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER).rsrc: $(MACRESOURCES)
|
cd $(build_libdir) \
|
||||||
$(REZ) $(REZFLAGS) $^ -o $@
|
|
||||||
|
|
||||||
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@
|
|
||||||
|
|
||||||
CREATE_LINKS_GL: @WX_LIBRARY_NAME_SHARED_GL@
|
$(build_libdir)/@WX_LIBRARY_LINK1_GL@: $(build_libdir)/@WX_LIBRARY_NAME_SHARED_GL@
|
||||||
@$(RM) ./lib/@WX_LIBRARY_LINK1_GL@
|
@$(RM) $(build_libdir)/@WX_LIBRARY_LINK1_GL@
|
||||||
@$(RM) ./lib/@WX_LIBRARY_LINK2_GL@
|
@$(RM) $(build_libdir)/@WX_LIBRARY_LINK2_GL@
|
||||||
@$(RM) ./lib/@WX_LIBRARY_LINK3_GL@
|
cd $(build_libdir) \
|
||||||
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
|
||||||
|
|
||||||
@@ -437,7 +375,22 @@ 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 $(DEPFILES)
|
-include $(OBJECTS:.o=.d)
|
||||||
|
|
||||||
|
|
||||||
|
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
|
||||||
$(INSTALL) -d $(datadir)
|
$(INSTALL) -d $(datadir)
|
||||||
@@ -449,7 +402,7 @@ afminstall: preinstall
|
|||||||
|
|
||||||
# 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: $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(top_builddir)/wx@TOOLKIT_NAME@-config
|
preinstall: $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(top_builddir)/wx@TOOLCHAIN_NAME@-config
|
||||||
@echo " "
|
@echo " "
|
||||||
@echo " Installing wxWindows..."
|
@echo " Installing wxWindows..."
|
||||||
@echo " "
|
@echo " "
|
||||||
@@ -458,20 +411,27 @@ preinstall: $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(top_builddir)/wx@TOOLKIT_N
|
|||||||
$(INSTALL) -d $(bindir)
|
$(INSTALL) -d $(bindir)
|
||||||
$(INSTALL) -d $(libdir)
|
$(INSTALL) -d $(libdir)
|
||||||
|
|
||||||
$(INSTALL_SCRIPT) $(top_builddir)/wx@TOOLKIT_NAME@-config $(bindir)/wx@TOOLKIT_NAME@-config
|
$(INSTALL_SCRIPT) $(top_builddir)/wx@TOOLCHAIN_NAME@-config $(bindir)/wx@TOOLCHAIN_NAME@-config
|
||||||
cd $(bindir) && rm -f wx-config && $(LN_S) wx@TOOLKIT_NAME@-config wx-config
|
cd $(bindir) && rm -f wx-config && $(LN_S) wx@TOOLCHAIN_NAME@-config wx-config
|
||||||
$(INSTALL_PROGRAM) $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(libdir)/@WX_TARGET_LIBRARY@
|
$(INSTALL_PROGRAM) $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(libdir)/@WX_TARGET_LIBRARY@
|
||||||
|
@# this installs the import library for a MSW DLL
|
||||||
|
@# remember: for wxMSW DLL WX_LIBRARY_NAME_STATIC is the
|
||||||
|
@# import livraru name
|
||||||
|
@if test "@TOOLKIT_DIR@" = "msw" -a "@WX_LIBRARY_NAME_STATIC@" != "@WX_TARGET_LIBRARY@"; then $(INSTALL_PROGRAM) $(top_builddir)/lib/@WX_LIBRARY_NAME_STATIC@ $(libdir)/@WX_LIBRARY_NAME_STATIC@; fi
|
||||||
|
|
||||||
$(INSTALL) -d $(libdir)/wx
|
$(INSTALL) -d $(libdir)/wx
|
||||||
$(INSTALL) -d $(libdir)/wx/include
|
$(INSTALL) -d $(libdir)/wx/include
|
||||||
$(INSTALL) -d $(libdir)/wx/include/wx
|
$(INSTALL) -d $(libdir)/wx/include/@TOOLCHAIN_NAME@
|
||||||
$(INSTALL) -d $(libdir)/wx/include/wx/@TOOLKIT_NAME@
|
$(INSTALL) -d $(libdir)/wx/include/@TOOLCHAIN_NAME@/wx
|
||||||
$(INSTALL_DATA) $(top_builddir)/include/wx/@TOOLKIT_DIR@/setup.h $(libdir)/wx/include/wx/@TOOLKIT_NAME@/setup.h
|
$(INSTALL_DATA) $(top_builddir)/lib/wx/include/@TOOLCHAIN_NAME@/wx/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
|
||||||
|
|
||||||
$(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 \
|
||||||
@@ -515,16 +475,14 @@ 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/wx/@TOOLKIT_NAME@/setup.h
|
@$(RM) $(libdir)/wx/include/@TOOLCHAIN_NAME@/wx/setup.h
|
||||||
@$(RM) $(bindir)/wx-config
|
@$(RM) $(bindir)/wx-config
|
||||||
@$(RM) $(bindir)/wx@TOOLKIT_NAME@-config
|
@$(RM) $(bindir)/wx@TOOLCHAIN_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.
|
||||||
@@ -543,8 +501,8 @@ uninstall:
|
|||||||
done
|
done
|
||||||
@echo " Removing directories..."
|
@echo " Removing directories..."
|
||||||
@-rmdir $(localedir)
|
@-rmdir $(localedir)
|
||||||
@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@/wx; then rmdir $(libdir)/wx/include/@TOOLCHAIN_NAME@/wx; fi
|
||||||
@if test -d $(libdir)/wx/include/wx; then rmdir $(libdir)/wx/include/wx; fi
|
@if test -d $(libdir)/wx/include/@TOOLCHAIN_NAME@; then rmdir $(libdir)/wx/include/@TOOLCHAIN_NAME@; 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
|
||||||
@@ -712,15 +670,25 @@ MACX_DIST: ALL_GUI_DIST
|
|||||||
|
|
||||||
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)/*.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
|
||||||
|
|
||||||
DEMOS_DIST: ALL_GUI_DIST
|
DEMOS_DIST: ALL_GUI_DIST
|
||||||
@@ -873,16 +841,6 @@ SAMPLES_DIST: ALL_GUI_DIST
|
|||||||
cp $(SAMPDIR)/dynamic/*.cpp $(DISTDIR)/samples/dynamic
|
cp $(SAMPDIR)/dynamic/*.cpp $(DISTDIR)/samples/dynamic
|
||||||
cp $(SAMPDIR)/dynamic/*.xpm $(DISTDIR)/samples/dynamic
|
cp $(SAMPDIR)/dynamic/*.xpm $(DISTDIR)/samples/dynamic
|
||||||
|
|
||||||
mkdir $(DISTDIR)/samples/erase
|
|
||||||
cp $(SAMPDIR)/erase/Makefile.in $(DISTDIR)/samples/erase
|
|
||||||
cp $(SAMPDIR)/erase/makefile.unx $(DISTDIR)/samples/erase
|
|
||||||
cp $(SAMPDIR)/erase/*.cpp $(DISTDIR)/samples/erase
|
|
||||||
|
|
||||||
mkdir $(DISTDIR)/samples/event
|
|
||||||
cp $(SAMPDIR)/event/Makefile.in $(DISTDIR)/samples/event
|
|
||||||
cp $(SAMPDIR)/event/makefile.unx $(DISTDIR)/samples/event
|
|
||||||
cp $(SAMPDIR)/event/*.cpp $(DISTDIR)/samples/event
|
|
||||||
|
|
||||||
mkdir $(DISTDIR)/samples/exec
|
mkdir $(DISTDIR)/samples/exec
|
||||||
cp $(SAMPDIR)/exec/Makefile.in $(DISTDIR)/samples/exec
|
cp $(SAMPDIR)/exec/Makefile.in $(DISTDIR)/samples/exec
|
||||||
cp $(SAMPDIR)/exec/makefile.unx $(DISTDIR)/samples/exec
|
cp $(SAMPDIR)/exec/makefile.unx $(DISTDIR)/samples/exec
|
||||||
@@ -961,7 +919,6 @@ SAMPLES_DIST: ALL_GUI_DIST
|
|||||||
mkdir $(DISTDIR)/samples/internat
|
mkdir $(DISTDIR)/samples/internat
|
||||||
mkdir $(DISTDIR)/samples/internat/de
|
mkdir $(DISTDIR)/samples/internat/de
|
||||||
mkdir $(DISTDIR)/samples/internat/fr
|
mkdir $(DISTDIR)/samples/internat/fr
|
||||||
mkdir $(DISTDIR)/samples/internat/ru
|
|
||||||
cp $(SAMPDIR)/internat/Makefile.in $(DISTDIR)/samples/internat
|
cp $(SAMPDIR)/internat/Makefile.in $(DISTDIR)/samples/internat
|
||||||
cp $(SAMPDIR)/internat/makefile.unx $(DISTDIR)/samples/internat
|
cp $(SAMPDIR)/internat/makefile.unx $(DISTDIR)/samples/internat
|
||||||
cp $(SAMPDIR)/internat/*.cpp $(DISTDIR)/samples/internat
|
cp $(SAMPDIR)/internat/*.cpp $(DISTDIR)/samples/internat
|
||||||
@@ -970,10 +927,10 @@ SAMPLES_DIST: ALL_GUI_DIST
|
|||||||
cp $(SAMPDIR)/internat/*.po $(DISTDIR)/samples/internat
|
cp $(SAMPDIR)/internat/*.po $(DISTDIR)/samples/internat
|
||||||
cp $(SAMPDIR)/internat/fr/*.mo $(DISTDIR)/samples/internat/fr
|
cp $(SAMPDIR)/internat/fr/*.mo $(DISTDIR)/samples/internat/fr
|
||||||
cp $(SAMPDIR)/internat/de/*.mo $(DISTDIR)/samples/internat/de
|
cp $(SAMPDIR)/internat/de/*.mo $(DISTDIR)/samples/internat/de
|
||||||
cp $(SAMPDIR)/internat/ru/*.mo $(DISTDIR)/samples/internat/ru
|
cp $(SAMPDIR)/internat/ru/*.mo $(DISTDIR)/samples/internat/de
|
||||||
cp $(SAMPDIR)/internat/fr/*.po $(DISTDIR)/samples/internat/fr
|
cp $(SAMPDIR)/internat/fr/*.po $(DISTDIR)/samples/internat/fr
|
||||||
cp $(SAMPDIR)/internat/de/*.po $(DISTDIR)/samples/internat/de
|
cp $(SAMPDIR)/internat/de/*.po $(DISTDIR)/samples/internat/de
|
||||||
cp $(SAMPDIR)/internat/ru/*.po $(DISTDIR)/samples/internat/ru
|
cp $(SAMPDIR)/internat/ru/*.po $(DISTDIR)/samples/internat/de
|
||||||
|
|
||||||
mkdir $(DISTDIR)/samples/ipc
|
mkdir $(DISTDIR)/samples/ipc
|
||||||
cp $(SAMPDIR)/ipc/Makefile.in $(DISTDIR)/samples/ipc
|
cp $(SAMPDIR)/ipc/Makefile.in $(DISTDIR)/samples/ipc
|
||||||
@@ -1311,7 +1268,10 @@ distclean:
|
|||||||
# the files twice
|
# the files twice
|
||||||
dist-only:
|
dist-only:
|
||||||
@echo "*** Creating wxWindows distribution in $(DISTDIR)..."
|
@echo "*** Creating wxWindows distribution in $(DISTDIR)..."
|
||||||
@cd _dist_dir && tar ch $(DISTDIRNAME) | gzip -f9 > ../$(WXARCHIVE);
|
@cd _dist_dir; \
|
||||||
|
mv @DISTDIR@ @DISTDIR@-$(VER_SUFFIX); \
|
||||||
|
tar ch @DISTDIR@-$(VER_SUFFIX) | gzip -f9 > ../$(WXARCHIVE); \
|
||||||
|
mv @DISTDIR@-$(VER_SUFFIX) @DISTDIR@
|
||||||
@if test "$(USE_GUI)" = 1; then \
|
@if test "$(USE_GUI)" = 1; then \
|
||||||
cd $(DISTDIR); \
|
cd $(DISTDIR); \
|
||||||
mv samples wxSamples-$(VER_SUFFIX); \
|
mv samples wxSamples-$(VER_SUFFIX); \
|
||||||
@@ -1325,9 +1285,12 @@ dist-only:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
dist: @GUIDIST@
|
dist: @GUIDIST@
|
||||||
cp $(WXDIR)/src/files.lst $(DISTDIR)/src
|
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; \
|
||||||
|
mv @DISTDIR@ @DISTDIR@-$(VER_SUFFIX); \
|
||||||
|
tar ch @DISTDIR@-$(VER_SUFFIX) | gzip -f9 > ../$(WXARCHIVE); \
|
||||||
|
mv @DISTDIR@-$(VER_SUFFIX) @DISTDIR@
|
||||||
@if test "$(USE_GUI)" = 1; then \
|
@if test "$(USE_GUI)" = 1; then \
|
||||||
cd $(DISTDIR); \
|
cd $(DISTDIR); \
|
||||||
mv samples wxSamples-$(VER_SUFFIX); \
|
mv samples wxSamples-$(VER_SUFFIX); \
|
||||||
@@ -1342,7 +1305,7 @@ dist: @GUIDIST@
|
|||||||
|
|
||||||
bzip-dist-only:
|
bzip-dist-only:
|
||||||
@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 @DISTDIR@ | bzip2 -f9 > $(WXARCHIVE_BZIP); mv $(WXARCHIVE_BZIP) ..
|
||||||
@if test "$(USE_GUI)" = 1; then \
|
@if test "$(USE_GUI)" = 1; then \
|
||||||
cd $(DISTDIR); \
|
cd $(DISTDIR); \
|
||||||
mv samples wxSamples-${VER_SUFFIX}; \
|
mv samples wxSamples-${VER_SUFFIX}; \
|
||||||
@@ -1358,18 +1321,20 @@ bzip-dist-only:
|
|||||||
bzip-dist: @GUIDIST@
|
bzip-dist: @GUIDIST@
|
||||||
cp $(WXDIR)/src/files.lst $(DISTDIR)/src/
|
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 @DISTDIR@ | bzip2 -f9 > $(WXARCHIVE_BZIP); mv $(WXARCHIVE_BZIP) ..
|
||||||
@if test "$(USE_GUI)" = 1; then \
|
@if test "$(USE_GUI)" = 1; then \
|
||||||
cd $(DISTDIR); \
|
cd $(DISTDIR); \
|
||||||
mv samples wxSamples; \
|
mv samples wxSamples-${VER_SUFFIX}; \
|
||||||
tar ch wxSamples | bzip2 -f9 > ../../$(WXSAMPLES_BZIP); \
|
echo "*** Creating wxSamples archive..."; \
|
||||||
mv wxSamples samples; \
|
tar ch wxSamples-${VER_SUFFIX} | bzip2 -f9 > ../../$(WXSAMPLES_BZIP); \
|
||||||
mv demos wxDemos; \
|
mv wxSamples-${VER_SUFFIX} samples; \
|
||||||
tar ch wxDemos | bzip2 -f9 > ../../$(WXDEMOS_BZIP); \
|
mv demos wxDemos-${VER_SUFFIX}; \
|
||||||
mv wxDemos demos; \
|
echo "*** Creating wxDemos archive..."; \
|
||||||
|
tar ch wxDemos-${VER_SUFFIX} | bzip2 -f9 > ../../$(WXDEMOS_BZIP); \
|
||||||
|
mv wxDemos-${VER_SUFFIX} demos; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
debian-dist: @GUIDIST@ MANUAL_DIST PYTHON_DIST
|
debian-dist: debian-native-dist debian-msw-dirs MSW_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 $(WXDIR)/src/files.lst $(DISTDIR)/src/
|
||||||
@@ -1377,9 +1342,26 @@ debian-dist: @GUIDIST@ MANUAL_DIST PYTHON_DIST
|
|||||||
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 "*.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@ MANUAL_DIST PYTHON_DIST
|
||||||
|
|
||||||
|
debian-msw-dirs:
|
||||||
|
mkdir $(DISTDIR)/include/wx/msw
|
||||||
|
mkdir $(DISTDIR)/src/msw
|
||||||
|
cp $(WXDIR)/src/msw/files.lst $(DISTDIR)/src/msw
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) *.o
|
$(RM) *.o
|
||||||
$(RM) *.d
|
$(RM) *.d
|
||||||
@@ -1389,18 +1371,3 @@ clean:
|
|||||||
$(RM) ./lib/lib*
|
$(RM) ./lib/lib*
|
||||||
|
|
||||||
cleanall: clean
|
cleanall: clean
|
||||||
|
|
||||||
|
|
||||||
RPMTOP=_dist_dir/_rpm_top
|
|
||||||
|
|
||||||
rpm: dist
|
|
||||||
@echo "*** Building RPMs ***"
|
|
||||||
-mkdir $(RPMTOP)
|
|
||||||
-mkdir $(RPMTOP)/SOURCES
|
|
||||||
-mkdir $(RPMTOP)/SPECS
|
|
||||||
-mkdir $(RPMTOP)/BUILD
|
|
||||||
-mkdir $(RPMTOP)/RPMS
|
|
||||||
-mkdir $(RPMTOP)/SRPMS
|
|
||||||
cp -f $(WXARCHIVE) $(RPMTOP)/SOURCES
|
|
||||||
rpm -ba --define "_topdir `pwd`/$(RPMTOP)" $(WXDIR)/wx$(TOOLKIT).spec
|
|
||||||
mv -f `find $(RPMTOP) -name "wx$(TARGET)*.rpm"` .
|
|
||||||
|
194
aclocal.m4
vendored
194
aclocal.m4
vendored
@@ -1,194 +0,0 @@
|
|||||||
# Configure paths for GTK+
|
|
||||||
# Owen Taylor 97-11-3
|
|
||||||
|
|
||||||
dnl AM_PATH_GTK_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
|
|
||||||
dnl Test for GTK, and define GTK_CFLAGS and GTK_LIBS
|
|
||||||
dnl
|
|
||||||
AC_DEFUN(AM_PATH_GTK_2_0,
|
|
||||||
[dnl
|
|
||||||
dnl Get the cflags and libraries from the gtk-config-2.0 script
|
|
||||||
dnl
|
|
||||||
AC_ARG_WITH(gtk-prefix,[ --with-gtk-prefix=PFX Prefix where GTK is installed (optional)],
|
|
||||||
gtk_config_prefix="$withval", gtk_config_prefix="")
|
|
||||||
AC_ARG_WITH(gtk-exec-prefix,[ --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)],
|
|
||||||
gtk_config_exec_prefix="$withval", gtk_config_exec_prefix="")
|
|
||||||
AC_ARG_ENABLE(gtktest, [ --disable-gtktest Do not try to compile and run a test GTK program],
|
|
||||||
, enable_gtktest=yes)
|
|
||||||
|
|
||||||
for module in . $4
|
|
||||||
do
|
|
||||||
case "$module" in
|
|
||||||
gthread)
|
|
||||||
gtk_config_args="$gtk_config_args gthread"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
if test x$gtk_config_exec_prefix != x ; then
|
|
||||||
gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
|
|
||||||
if test x${GTK_CONFIG_2_0+set} != xset ; then
|
|
||||||
GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
if test x$gtk_config_prefix != x ; then
|
|
||||||
gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
|
|
||||||
if test x${GTK_CONFIG_2_0+set} != xset ; then
|
|
||||||
GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_PATH_PROG(GTK_CONFIG_2_0, gtk-config-2.0, no)
|
|
||||||
min_gtk_version=ifelse([$1], ,1.3.1,$1)
|
|
||||||
AC_MSG_CHECKING(for GTK - version >= $min_gtk_version)
|
|
||||||
no_gtk=""
|
|
||||||
if test "$GTK_CONFIG_2_0" = "no" ; then
|
|
||||||
no_gtk=yes
|
|
||||||
else
|
|
||||||
GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
|
|
||||||
GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
|
|
||||||
gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
|
|
||||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
|
|
||||||
gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
|
|
||||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
|
|
||||||
gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
|
|
||||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
|
|
||||||
if test "x$enable_gtktest" = "xyes" ; then
|
|
||||||
ac_save_CFLAGS="$CFLAGS"
|
|
||||||
ac_save_LIBS="$LIBS"
|
|
||||||
CFLAGS="$CFLAGS $GTK_CFLAGS"
|
|
||||||
LIBS="$GTK_LIBS $LIBS"
|
|
||||||
dnl
|
|
||||||
dnl Now check if the installed GTK is sufficiently new. (Also sanity
|
|
||||||
dnl checks the results of gtk-config-2.0 to some extent
|
|
||||||
dnl
|
|
||||||
rm -f conf.gtktest
|
|
||||||
AC_TRY_RUN([
|
|
||||||
#include <gtk/gtk.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
int major, minor, micro;
|
|
||||||
char *tmp_version;
|
|
||||||
|
|
||||||
system ("touch conf.gtktest");
|
|
||||||
|
|
||||||
/* HP/UX 9 (%@#!) writes to sscanf strings */
|
|
||||||
tmp_version = g_strdup("$min_gtk_version");
|
|
||||||
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
|
|
||||||
printf("%s, bad version string\n", "$min_gtk_version");
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((gtk_major_version != $gtk_config_major_version) ||
|
|
||||||
(gtk_minor_version != $gtk_config_minor_version) ||
|
|
||||||
(gtk_micro_version != $gtk_config_micro_version))
|
|
||||||
{
|
|
||||||
printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
|
|
||||||
$gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
|
|
||||||
gtk_major_version, gtk_minor_version, gtk_micro_version);
|
|
||||||
printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
|
|
||||||
printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
|
|
||||||
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
|
|
||||||
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
|
|
||||||
printf("*** required on your system.\n");
|
|
||||||
printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
|
|
||||||
printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
|
|
||||||
printf("*** before re-running configure\n");
|
|
||||||
}
|
|
||||||
#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
|
|
||||||
else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
|
|
||||||
(gtk_minor_version != GTK_MINOR_VERSION) ||
|
|
||||||
(gtk_micro_version != GTK_MICRO_VERSION))
|
|
||||||
{
|
|
||||||
printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
|
|
||||||
GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
|
|
||||||
printf("*** library (version %d.%d.%d)\n",
|
|
||||||
gtk_major_version, gtk_minor_version, gtk_micro_version);
|
|
||||||
}
|
|
||||||
#endif /* defined (GTK_MAJOR_VERSION) ... */
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ((gtk_major_version > major) ||
|
|
||||||
((gtk_major_version == major) && (gtk_minor_version > minor)) ||
|
|
||||||
((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
|
|
||||||
gtk_major_version, gtk_minor_version, gtk_micro_version);
|
|
||||||
printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
|
|
||||||
major, minor, micro);
|
|
||||||
printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
|
|
||||||
printf("***\n");
|
|
||||||
printf("*** If you have already installed a sufficiently new version, this error\n");
|
|
||||||
printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
|
|
||||||
printf("*** being found. The easiest way to fix this is to remove the old version\n");
|
|
||||||
printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
|
|
||||||
printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
|
|
||||||
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
|
|
||||||
printf("*** so that the correct libraries are found at run-time))\n");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
|
|
||||||
CFLAGS="$ac_save_CFLAGS"
|
|
||||||
LIBS="$ac_save_LIBS"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
if test "x$no_gtk" = x ; then
|
|
||||||
AC_MSG_RESULT(yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version))
|
|
||||||
ifelse([$2], , :, [$2])
|
|
||||||
else
|
|
||||||
AC_MSG_RESULT(no)
|
|
||||||
if test "$GTK_CONFIG_2_0" = "no" ; then
|
|
||||||
echo "*** The gtk-config-2.0 script installed by GTK could not be found"
|
|
||||||
echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
|
|
||||||
echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
|
|
||||||
echo "*** full path to gtk-config-2.0."
|
|
||||||
else
|
|
||||||
if test -f conf.gtktest ; then
|
|
||||||
:
|
|
||||||
else
|
|
||||||
echo "*** Could not run GTK test program, checking why..."
|
|
||||||
CFLAGS="$CFLAGS $GTK_CFLAGS"
|
|
||||||
LIBS="$LIBS $GTK_LIBS"
|
|
||||||
AC_TRY_LINK([
|
|
||||||
#include <gtk/gtk.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ],
|
|
||||||
[ echo "*** The test program compiled, but did not run. This usually means"
|
|
||||||
echo "*** that the run-time linker is not finding GTK or finding the wrong"
|
|
||||||
echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
|
|
||||||
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
|
|
||||||
echo "*** to the installed location Also, make sure you have run ldconfig if that"
|
|
||||||
echo "*** is required on your system"
|
|
||||||
echo "***"
|
|
||||||
echo "*** If you have an old version installed, it is best to remove it, although"
|
|
||||||
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
|
|
||||||
echo "***"
|
|
||||||
echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
|
|
||||||
echo "*** came with the system with the command"
|
|
||||||
echo "***"
|
|
||||||
echo "*** rpm --erase --nodeps gtk gtk-devel" ],
|
|
||||||
[ echo "*** The test program failed to compile or link. See the file config.log for the"
|
|
||||||
echo "*** exact error that occured. This usually means GTK was incorrectly installed"
|
|
||||||
echo "*** or that you have moved GTK since it was installed. In the latter case, you"
|
|
||||||
echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" ])
|
|
||||||
CFLAGS="$ac_save_CFLAGS"
|
|
||||||
LIBS="$ac_save_LIBS"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
GTK_CFLAGS=""
|
|
||||||
GTK_LIBS=""
|
|
||||||
ifelse([$3], , :, [$3])
|
|
||||||
fi
|
|
||||||
AC_SUBST(GTK_CFLAGS)
|
|
||||||
AC_SUBST(GTK_LIBS)
|
|
||||||
rm -f conf.gtktest
|
|
||||||
])
|
|
554
config.guess
vendored
554
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
|
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
||||||
# Free Software Foundation, Inc.
|
# Free Software Foundation, Inc.
|
||||||
|
|
||||||
version='2000-10-23'
|
timestamp='2001-09-04'
|
||||||
|
|
||||||
# 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,30 +32,41 @@ version='2000-10-23'
|
|||||||
# 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 system type (host/target name).
|
# don't specify an explicit build system type.
|
||||||
#
|
|
||||||
# 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 this system.
|
Output the configuration name of the system \`$me' is run on.
|
||||||
|
|
||||||
Operation modes:
|
Operation modes:
|
||||||
-h, --help print this help, then exit
|
-h, --help print this help, then exit
|
||||||
-V, --version print version number, then exit"
|
-t, --time-stamp print date of last modification, 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
|
||||||
--version | --vers* | -V )
|
--time-stamp | --time* | -t )
|
||||||
|
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 ;;
|
||||||
@@ -64,9 +75,7 @@ while test $# -gt 0 ; do
|
|||||||
- ) # Use stdin as input.
|
- ) # Use stdin as input.
|
||||||
break ;;
|
break ;;
|
||||||
-* )
|
-* )
|
||||||
exec >&2
|
echo "$me: invalid option $1$help" >&2
|
||||||
echo "$me: invalid option $1"
|
|
||||||
echo "$help"
|
|
||||||
exit 1 ;;
|
exit 1 ;;
|
||||||
* )
|
* )
|
||||||
break ;;
|
break ;;
|
||||||
@@ -78,22 +87,33 @@ if test $# != 0; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Use $HOST_CC if defined. $CC may point to a cross-compiler
|
|
||||||
if test x"$CC_FOR_BUILD" = x; then
|
|
||||||
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
|
|
||||||
|
|
||||||
|
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
|
||||||
|
CC_FOR_BUILD=no_compiler_found ;
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
,,*) CC_FOR_BUILD=$CC ;;
|
||||||
|
,*,*) 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 8/24/94.)
|
# (ghazi@noc.rutgers.edu 1994-08-24)
|
||||||
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
|
||||||
@@ -103,9 +123,6 @@ 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
|
||||||
@@ -129,7 +146,11 @@ 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.
|
# The Operating System including object format, if it has switched
|
||||||
|
# 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
|
||||||
@@ -139,6 +160,11 @@ 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:
|
||||||
@@ -179,6 +205,7 @@ 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
|
||||||
@@ -200,6 +227,9 @@ 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
|
||||||
@@ -247,7 +277,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:*:*)
|
SR2?01:HI-UX/MPP:*:* | SR8000: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*:*:*)
|
||||||
@@ -303,6 +333,9 @@ 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 ;;
|
||||||
@@ -360,6 +393,7 @@ 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 */
|
||||||
@@ -383,10 +417,13 @@ 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 $dummy.c $dummy && exit 0
|
&& rm -f $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 ;;
|
||||||
@@ -434,11 +471,20 @@ 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>
|
||||||
|
|
||||||
@@ -450,7 +496,7 @@ EOF
|
|||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
$CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0
|
$CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $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
|
||||||
@@ -459,9 +505,9 @@ EOF
|
|||||||
echo rs6000-ibm-aix3.2
|
echo rs6000-ibm-aix3.2
|
||||||
fi
|
fi
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
*:AIX:*:4)
|
*:AIX:*:[45])
|
||||||
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 -EHl ${IBM_CPU_ID} | grep POWER >/dev/null 2>&1; then
|
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
|
||||||
IBM_ARCH=rs6000
|
IBM_ARCH=rs6000
|
||||||
else
|
else
|
||||||
IBM_ARCH=powerpc
|
IBM_ARCH=powerpc
|
||||||
@@ -469,7 +515,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=4.${UNAME_RELEASE}
|
IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
|
||||||
fi
|
fi
|
||||||
echo ${IBM_ARCH}-ibm-aix${IBM_REV}
|
echo ${IBM_ARCH}-ibm-aix${IBM_REV}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
@@ -495,10 +541,29 @@ 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
|
||||||
@@ -533,12 +598,18 @@ 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
|
||||||
@@ -564,7 +635,7 @@ EOF
|
|||||||
exit (0);
|
exit (0);
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
$CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0
|
$CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $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 ;;
|
||||||
@@ -574,7 +645,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:*:*)
|
*9??*:MPE/iX:*:* | *3000*: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:*:* )
|
||||||
@@ -583,7 +654,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
|
||||||
@@ -618,37 +689,39 @@ 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}
|
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
||||||
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*T3E:*:*:*)
|
CRAY*T3D:*:*:*)
|
||||||
echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
|
CRAY*T3E:*:*:*)
|
||||||
|
echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
||||||
|
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/'
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
CRAY-2:*:*:*)
|
CRAY-2:*:*:*)
|
||||||
echo cray2-cray-unicos
|
echo cray2-cray-unicos
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
F300:UNIX_System_V:*:*)
|
F30[01]:UNIX_System_V:*:* | F700: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 "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
echo "${FUJITSU_PROC}-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:*:*)
|
||||||
@@ -693,204 +766,92 @@ EOF
|
|||||||
i*86:Minix:*:*)
|
i*86:Minix:*:*)
|
||||||
echo ${UNAME_MACHINE}-pc-minix
|
echo ${UNAME_MACHINE}-pc-minix
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
*:Linux:*:*)
|
arm*: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_emulations=`cd /; ld --help 2>&1 \
|
ld_supported_targets=`cd /; ld --help 2>&1 \
|
||||||
| sed -ne '/supported emulations:/!d
|
| sed -ne '/supported targets:/!d
|
||||||
s/[ ][ ]*/ /g
|
s/[ ][ ]*/ /g
|
||||||
s/.*supported emulations: *//
|
s/.*supported targets: *//
|
||||||
s/ .*//
|
s/ .*//
|
||||||
p'`
|
p'`
|
||||||
case "$ld_supported_emulations" in
|
case "$ld_supported_targets" in
|
||||||
*ia64)
|
elf32-i386)
|
||||||
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"
|
||||||
;;
|
;;
|
||||||
i?86coff)
|
a.out-i386-linux)
|
||||||
|
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 ;;
|
||||||
;;
|
"")
|
||||||
sparclinux)
|
# Either a pre-BFD a.out linker (linux-gnuoldld) or
|
||||||
echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
|
# one that does not give us useful --help.
|
||||||
exit 0
|
echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
|
||||||
;;
|
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
|
||||||
@@ -902,29 +863,30 @@ EOF
|
|||||||
#ifdef __ELF__
|
#ifdef __ELF__
|
||||||
# ifdef __GLIBC__
|
# ifdef __GLIBC__
|
||||||
# if __GLIBC__ >= 2
|
# if __GLIBC__ >= 2
|
||||||
printf ("%s-${VENDOR}-linux-gnu\n", argv[1]);
|
printf ("%s-pc-linux-gnu\n", argv[1]);
|
||||||
# else
|
# else
|
||||||
printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
|
printf ("%s-pc-linux-gnulibc1\n", argv[1]);
|
||||||
# endif
|
# endif
|
||||||
# else
|
# else
|
||||||
printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
|
printf ("%s-pc-linux-gnulibc1\n", argv[1]);
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]);
|
printf ("%s-pc-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 $dummy.c $dummy && exit 0
|
$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm -f $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 ;;
|
;;
|
||||||
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
|
i*86:DYNIX/ptx:4*:*)
|
||||||
# are messed up and put the nodename in both sysname and nodename.
|
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
|
||||||
i?86:DYNIX/ptx:4*:*)
|
# earlier versions are messed up and put the nodename in both
|
||||||
|
# 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,
|
||||||
@@ -932,7 +894,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}
|
||||||
@@ -940,16 +902,15 @@ EOF
|
|||||||
echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
|
echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
|
||||||
fi
|
fi
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
i?86:*:5:7*)
|
i*86:*:5:[78]*)
|
||||||
# Fixed at (any) Pentium or better
|
case `/bin/uname -X | grep "^Machine"` in
|
||||||
UNAME_MACHINE=i586
|
*486*) UNAME_MACHINE=i486 ;;
|
||||||
if [ ${UNAME_SYSTEM} = "UnixWare" ] ; then
|
*Pentium) UNAME_MACHINE=i586 ;;
|
||||||
echo ${UNAME_MACHINE}-sco-sysv${UNAME_RELEASE}uw${UNAME_VERSION}
|
*Pent*|*Celeron) UNAME_MACHINE=i686 ;;
|
||||||
else
|
esac
|
||||||
echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
|
echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
|
||||||
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
|
||||||
@@ -967,7 +928,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:*:*:*)
|
||||||
@@ -1006,21 +967,24 @@ 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:2.*:* | m68*:LynxOS:3.0*:*)
|
||||||
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:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
|
||||||
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.*:* | PowerPC:LynxOS:2.*:*)
|
rs6000: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 ;;
|
||||||
@@ -1038,7 +1002,7 @@ EOF
|
|||||||
echo ns32k-sni-sysv
|
echo ns32k-sni-sysv
|
||||||
fi
|
fi
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
|
PENTIUM:*: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 ;;
|
||||||
@@ -1051,6 +1015,10 @@ 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 ;;
|
||||||
@@ -1120,11 +1088,41 @@ 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>
|
||||||
@@ -1211,11 +1209,24 @@ main ()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#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);
|
||||||
#else
|
# endif
|
||||||
|
# endif
|
||||||
|
# else
|
||||||
|
printf ("vax-dec-bsd\n"); exit (0);
|
||||||
|
# endif
|
||||||
|
# else
|
||||||
printf ("vax-dec-ultrix\n"); exit (0);
|
printf ("vax-dec-ultrix\n"); exit (0);
|
||||||
#endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined (alliant) && defined (i860)
|
#if defined (alliant) && defined (i860)
|
||||||
@@ -1226,7 +1237,7 @@ main ()
|
|||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm $dummy.c $dummy && exit 0
|
$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm -f $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.
|
||||||
@@ -1262,8 +1273,9 @@ fi
|
|||||||
cat >&2 <<EOF
|
cat >&2 <<EOF
|
||||||
$0: unable to guess system type
|
$0: unable to guess system type
|
||||||
|
|
||||||
The $version version of this script cannot recognize your system type.
|
This script, last modified $timestamp, has failed to recognize
|
||||||
Please download the most up to date version of the config scripts:
|
the operating system you are using. It is advised that you
|
||||||
|
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/
|
||||||
|
|
||||||
@@ -1272,7 +1284,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 version = $version
|
config.guess timestamp = $timestamp
|
||||||
|
|
||||||
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`
|
||||||
@@ -1299,7 +1311,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: "version='"
|
# time-stamp-start: "timestamp='"
|
||||||
# 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, version 1.1.
|
# Configuration validation subroutine script.
|
||||||
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
|
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
||||||
# Free Software Foundation, Inc.
|
# Free Software Foundation, Inc.
|
||||||
|
|
||||||
version='2000-11-04'
|
timestamp='2001-09-07'
|
||||||
|
|
||||||
# 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,15 +61,29 @@ Canonicalize a configuration name.
|
|||||||
|
|
||||||
Operation modes:
|
Operation modes:
|
||||||
-h, --help print this help, then exit
|
-h, --help print this help, then exit
|
||||||
-V, --version print version number, then exit"
|
-t, --time-stamp print date of last modification, 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
|
||||||
--version | --vers* | -V )
|
--time-stamp | --time* | -t )
|
||||||
|
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 ;;
|
||||||
@@ -78,9 +92,7 @@ while test $# -gt 0 ; do
|
|||||||
- ) # Use stdin as input.
|
- ) # Use stdin as input.
|
||||||
break ;;
|
break ;;
|
||||||
-* )
|
-* )
|
||||||
exec >&2
|
echo "$me: invalid option $1$help"
|
||||||
echo "$me: invalid option $1"
|
|
||||||
echo "$help"
|
|
||||||
exit 1 ;;
|
exit 1 ;;
|
||||||
|
|
||||||
*local*)
|
*local*)
|
||||||
@@ -105,7 +117,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*)
|
nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*)
|
||||||
os=-$maybe_os
|
os=-$maybe_os
|
||||||
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
|
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
|
||||||
;;
|
;;
|
||||||
@@ -145,6 +157,14 @@ 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
|
||||||
;;
|
;;
|
||||||
@@ -203,22 +223,36 @@ 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.
|
||||||
tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
|
1750a | 580 \
|
||||||
| arme[lb] | armv[2345] | armv[345][lb] | pyramid | mn10200 | mn10300 | tron | a29k \
|
| a29k \
|
||||||
| 580 | i960 | h8300 \
|
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
|
||||||
| x86 | ppcbe | mipsbe | mipsle | shbe | shle | armbe | armle \
|
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
|
||||||
| hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
|
| c4x | clipper \
|
||||||
| hppa64 \
|
| d10v | d30v | dsp16xx \
|
||||||
| alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \
|
| fr30 \
|
||||||
| alphaev6[78] \
|
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
|
||||||
| we32k | ns16k | clipper | i370 | sh | sh[34] \
|
| i370 | i860 | i960 | ia64 \
|
||||||
| powerpc | powerpcle \
|
| m32r | m68000 | m68k | m88k | mcore \
|
||||||
| 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \
|
| mips16 | mips64 | mips64el | mips64orion | mips64orionel \
|
||||||
| mips64orion | mips64orionel | mipstx39 | mipstx39el \
|
| mips64vr4100 | mips64vr4100el | mips64vr4300 \
|
||||||
| mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
|
| mips64vr4300el | mips64vr5000 | mips64vr5000el \
|
||||||
| mips64vr5000 | miprs64vr5000el | mcore \
|
| mipsbe | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \
|
||||||
| sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \
|
| mipsisa32 \
|
||||||
| thumb | d10v | d30v | fr30 | avr)
|
| mn10200 | mn10300 \
|
||||||
|
| 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)
|
||||||
@@ -226,13 +260,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 | z8k | v70 | h8500 | w65 | pj | pjl)
|
m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
|
||||||
;;
|
;;
|
||||||
|
|
||||||
# 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[234567]86 | x86_64)
|
i*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.
|
||||||
@@ -241,28 +275,43 @@ case $basic_machine in
|
|||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
# Recognize the basic CPU types with company name.
|
# Recognize the basic CPU types with company name.
|
||||||
# FIXME: clean up the formatting here.
|
580-* \
|
||||||
vax-* | tahoe-* | i[234567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
|
| a29k-* \
|
||||||
| m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
|
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
|
||||||
| mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
|
| alphapca5[67]-* | arc-* \
|
||||||
| power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
|
| arm-* | armbe-* | armle-* | armv*-* \
|
||||||
| xmp-* | ymp-* \
|
| bs2000-* \
|
||||||
| x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* | armbe-* | armle-* \
|
| c[123]* | c30-* | [cjt]90-* | c54x-* \
|
||||||
| hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \
|
| clipper-* | cray2-* | cydra-* \
|
||||||
| hppa2.0n-* | hppa64-* \
|
| d10v-* | d30v-* \
|
||||||
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \
|
| elxsi-* \
|
||||||
| alphaev6[78]-* \
|
| f30[01]-* | f700-* | fr30-* | fx80-* \
|
||||||
| we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
|
| h8300-* | h8500-* \
|
||||||
| clipper-* | orion-* \
|
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
|
||||||
| sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
|
| i*86-* | i860-* | i960-* | ia64-* \
|
||||||
| sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \
|
| m32r-* \
|
||||||
| mips64el-* | mips64orion-* | mips64orionel-* \
|
| m68000-* | m680[01234]0-* | m68360-* | m683?2-* | m68k-* \
|
||||||
| mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
|
| m88110-* | m88k-* | mcore-* \
|
||||||
| mipstx39-* | mipstx39el-* | mcore-* \
|
| mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \
|
||||||
| f301-* | armv*-* | s390-* | sv1-* | t3e-* \
|
| mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \
|
||||||
| m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
|
| mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \
|
||||||
| thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* \
|
| mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \
|
||||||
| bs2000-* | tic54x-* | c54x-* | x86_64-*)
|
| none-* | np1-* | ns16k-* | ns32k-* \
|
||||||
|
| 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.
|
||||||
@@ -353,8 +402,8 @@ case $basic_machine in
|
|||||||
basic_machine=cray2-cray
|
basic_machine=cray2-cray
|
||||||
os=-unicos
|
os=-unicos
|
||||||
;;
|
;;
|
||||||
[ctj]90-cray)
|
[cjt]90)
|
||||||
basic_machine=c90-cray
|
basic_machine=${basic_machine}-cray
|
||||||
os=-unicos
|
os=-unicos
|
||||||
;;
|
;;
|
||||||
crds | unos)
|
crds | unos)
|
||||||
@@ -410,6 +459,10 @@ 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
|
||||||
@@ -485,19 +538,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[34567]86v32)
|
i*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[34567]86v4*)
|
i*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[34567]86v)
|
i*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[34567]86sol2)
|
i*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
|
||||||
;;
|
;;
|
||||||
@@ -509,18 +562,6 @@ 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
|
||||||
@@ -546,6 +587,10 @@ 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
|
||||||
;;
|
;;
|
||||||
@@ -576,7 +621,7 @@ case $basic_machine in
|
|||||||
os=-coff
|
os=-coff
|
||||||
;;
|
;;
|
||||||
msdos)
|
msdos)
|
||||||
basic_machine=i386-unknown
|
basic_machine=i386-pc
|
||||||
os=-msdos
|
os=-msdos
|
||||||
;;
|
;;
|
||||||
mvs)
|
mvs)
|
||||||
@@ -686,7 +731,7 @@ case $basic_machine in
|
|||||||
basic_machine=i686-pc
|
basic_machine=i686-pc
|
||||||
;;
|
;;
|
||||||
pentiumii | pentium2)
|
pentiumii | pentium2)
|
||||||
basic_machine=i786-pc
|
basic_machine=i686-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/^[^-]*-//'`
|
||||||
@@ -695,12 +740,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=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
|
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||||
;;
|
;;
|
||||||
pn)
|
pn)
|
||||||
basic_machine=pn-gould
|
basic_machine=pn-gould
|
||||||
;;
|
;;
|
||||||
power) basic_machine=rs6000-ibm
|
power) basic_machine=power-ibm
|
||||||
;;
|
;;
|
||||||
ppc) basic_machine=powerpc-unknown
|
ppc) basic_machine=powerpc-unknown
|
||||||
;;
|
;;
|
||||||
@@ -712,9 +757,23 @@ 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
|
||||||
@@ -862,6 +921,10 @@ 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
|
||||||
@@ -905,16 +968,20 @@ 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)
|
sh3 | sh4 | sh3eb | sh4eb)
|
||||||
basic_machine=sh-unknown
|
basic_machine=sh-unknown
|
||||||
;;
|
;;
|
||||||
sparc | sparcv9)
|
sparc | sparcv9 | sparcv9b)
|
||||||
basic_machine=sparc-sun
|
basic_machine=sparc-sun
|
||||||
;;
|
;;
|
||||||
cydra)
|
cydra)
|
||||||
@@ -936,6 +1003,9 @@ 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
|
||||||
@@ -992,15 +1062,18 @@ 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* | -storm-chaos*)
|
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
|
||||||
|
| -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[34567]86-*)
|
x86-* | i*86-*)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
os=-nto$os
|
os=-nto$os
|
||||||
@@ -1093,7 +1166,7 @@ case $os in
|
|||||||
-xenix)
|
-xenix)
|
||||||
os=-xenix
|
os=-xenix
|
||||||
;;
|
;;
|
||||||
-*mint | -*MiNT)
|
-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
|
||||||
os=-mint
|
os=-mint
|
||||||
;;
|
;;
|
||||||
-none)
|
-none)
|
||||||
@@ -1127,6 +1200,9 @@ case $basic_machine in
|
|||||||
arm*-semi)
|
arm*-semi)
|
||||||
os=-aout
|
os=-aout
|
||||||
;;
|
;;
|
||||||
|
pdp10-*)
|
||||||
|
os=-tops20
|
||||||
|
;;
|
||||||
pdp11-*)
|
pdp11-*)
|
||||||
os=-none
|
os=-none
|
||||||
;;
|
;;
|
||||||
@@ -1235,7 +1311,7 @@ case $basic_machine in
|
|||||||
*-masscomp)
|
*-masscomp)
|
||||||
os=-rtu
|
os=-rtu
|
||||||
;;
|
;;
|
||||||
f301-fujitsu)
|
f30[01]-fujitsu | f700-fujitsu)
|
||||||
os=-uxpv
|
os=-uxpv
|
||||||
;;
|
;;
|
||||||
*-rom68k)
|
*-rom68k)
|
||||||
@@ -1313,9 +1389,12 @@ case $basic_machine in
|
|||||||
-mpw* | -macos*)
|
-mpw* | -macos*)
|
||||||
vendor=apple
|
vendor=apple
|
||||||
;;
|
;;
|
||||||
-*mint | -*MiNT)
|
-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
|
||||||
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/"`
|
||||||
;;
|
;;
|
||||||
@@ -1326,7 +1405,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: "version='"
|
# time-stamp-start: "timestamp='"
|
||||||
# time-stamp-format: "%:y-%02m-%02d"
|
# time-stamp-format: "%:y-%02m-%02d"
|
||||||
# time-stamp-end: "'"
|
# time-stamp-end: "'"
|
||||||
# End:
|
# End:
|
||||||
|
1099
configure.in
1099
configure.in
File diff suppressed because it is too large
Load Diff
@@ -3,13 +3,11 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
|
|
||||||
samples:
|
samples:
|
||||||
cd samples; make
|
cd samples; $(MAKE)
|
||||||
|
38
contrib/configure
vendored
38
contrib/configure
vendored
@@ -817,31 +817,12 @@ trap 'rm -fr `echo "
|
|||||||
src/ogl/Makefile
|
src/ogl/Makefile
|
||||||
src/mmedia/Makefile
|
src/mmedia/Makefile
|
||||||
src/stc/Makefile
|
src/stc/Makefile
|
||||||
src/xrc/Makefile
|
|
||||||
src/canvas/Makefile
|
|
||||||
src/gizmos/Makefile
|
|
||||||
src/plot/Makefile
|
|
||||||
src/applet/Makefile
|
|
||||||
samples/Makefile
|
samples/Makefile
|
||||||
samples/mmedia/Makefile
|
samples/mmedia/Makefile
|
||||||
samples/ogl/Makefile
|
samples/ogl/Makefile
|
||||||
samples/ogl/ogledit/Makefile
|
samples/ogl/ogledit/Makefile
|
||||||
samples/ogl/studio/Makefile
|
samples/ogl/studio/Makefile
|
||||||
samples/stc/Makefile
|
samples/stc/Makefile
|
||||||
samples/canvas/Makefile
|
|
||||||
samples/canvas/test/Makefile
|
|
||||||
samples/canvas/simple/Makefile
|
|
||||||
samples/gizmos/Makefile
|
|
||||||
samples/gizmos/multicell/Makefile
|
|
||||||
samples/gizmos/splittree/Makefile
|
|
||||||
samples/gizmos/editlbox/Makefile
|
|
||||||
samples/xrc/Makefile
|
|
||||||
samples/plot/Makefile
|
|
||||||
samples/applet/Makefile
|
|
||||||
utils/Makefile
|
|
||||||
utils/wxrc/Makefile
|
|
||||||
utils/wxrcedit/Makefile
|
|
||||||
utils/convertrc/Makefile
|
|
||||||
" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
||||||
EOF
|
EOF
|
||||||
cat >> $CONFIG_STATUS <<EOF
|
cat >> $CONFIG_STATUS <<EOF
|
||||||
@@ -925,31 +906,12 @@ CONFIG_FILES=\${CONFIG_FILES-"Makefile
|
|||||||
src/ogl/Makefile
|
src/ogl/Makefile
|
||||||
src/mmedia/Makefile
|
src/mmedia/Makefile
|
||||||
src/stc/Makefile
|
src/stc/Makefile
|
||||||
src/xrc/Makefile
|
|
||||||
src/canvas/Makefile
|
|
||||||
src/gizmos/Makefile
|
|
||||||
src/plot/Makefile
|
|
||||||
src/applet/Makefile
|
|
||||||
samples/Makefile
|
samples/Makefile
|
||||||
samples/mmedia/Makefile
|
samples/mmedia/Makefile
|
||||||
samples/ogl/Makefile
|
samples/ogl/Makefile
|
||||||
samples/ogl/ogledit/Makefile
|
samples/ogl/ogledit/Makefile
|
||||||
samples/ogl/studio/Makefile
|
samples/ogl/studio/Makefile
|
||||||
samples/stc/Makefile
|
samples/stc/Makefile
|
||||||
samples/canvas/Makefile
|
|
||||||
samples/canvas/test/Makefile
|
|
||||||
samples/canvas/simple/Makefile
|
|
||||||
samples/gizmos/Makefile
|
|
||||||
samples/gizmos/multicell/Makefile
|
|
||||||
samples/gizmos/splittree/Makefile
|
|
||||||
samples/gizmos/editlbox/Makefile
|
|
||||||
samples/xrc/Makefile
|
|
||||||
samples/plot/Makefile
|
|
||||||
samples/applet/Makefile
|
|
||||||
utils/Makefile
|
|
||||||
utils/wxrc/Makefile
|
|
||||||
utils/wxrcedit/Makefile
|
|
||||||
utils/convertrc/Makefile
|
|
||||||
"}
|
"}
|
||||||
EOF
|
EOF
|
||||||
cat >> $CONFIG_STATUS <<\EOF
|
cat >> $CONFIG_STATUS <<\EOF
|
||||||
|
@@ -42,29 +42,10 @@ AC_OUTPUT([
|
|||||||
src/ogl/Makefile
|
src/ogl/Makefile
|
||||||
src/mmedia/Makefile
|
src/mmedia/Makefile
|
||||||
src/stc/Makefile
|
src/stc/Makefile
|
||||||
src/xrc/Makefile
|
|
||||||
src/canvas/Makefile
|
|
||||||
src/gizmos/Makefile
|
|
||||||
src/plot/Makefile
|
|
||||||
src/applet/Makefile
|
|
||||||
samples/Makefile
|
samples/Makefile
|
||||||
samples/mmedia/Makefile
|
samples/mmedia/Makefile
|
||||||
samples/ogl/Makefile
|
samples/ogl/Makefile
|
||||||
samples/ogl/ogledit/Makefile
|
samples/ogl/ogledit/Makefile
|
||||||
samples/ogl/studio/Makefile
|
samples/ogl/studio/Makefile
|
||||||
samples/stc/Makefile
|
samples/stc/Makefile
|
||||||
samples/canvas/Makefile
|
|
||||||
samples/canvas/test/Makefile
|
|
||||||
samples/canvas/simple/Makefile
|
|
||||||
samples/gizmos/Makefile
|
|
||||||
samples/gizmos/multicell/Makefile
|
|
||||||
samples/gizmos/splittree/Makefile
|
|
||||||
samples/gizmos/editlbox/Makefile
|
|
||||||
samples/xrc/Makefile
|
|
||||||
samples/plot/Makefile
|
|
||||||
samples/applet/Makefile
|
|
||||||
utils/Makefile
|
|
||||||
utils/wxrc/Makefile
|
|
||||||
utils/wxrcedit/Makefile
|
|
||||||
utils/convertrc/Makefile
|
|
||||||
])
|
])
|
||||||
|
5
contrib/docs/.cvsignore
Normal file
5
contrib/docs/.cvsignore
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
html
|
||||||
|
htmlhelp
|
||||||
|
pdf
|
||||||
|
winhelp
|
||||||
|
htb
|
Binary file not shown.
Before Width: | Height: | Size: 440 B |
@@ -214,30 +214,15 @@ been set. In all other cases, you must return FALSE.
|
|||||||
\membersection{wxSoundFileStream::RepositionStream}\label{wxsoundfilestreamrepositionstream}
|
\membersection{wxSoundFileStream::RepositionStream}\label{wxsoundfilestreamrepositionstream}
|
||||||
\func{bool}{RepositionStream}{\param{wxUint32 }{position}}
|
\func{bool}{RepositionStream}{\param{wxUint32 }{position}}
|
||||||
|
|
||||||
This is called by wxSoundFileStream::SetPosition to seek the input stream
|
|
||||||
to the right position. This must be overidden by the file codec class.
|
|
||||||
The position is relative to the beginning of the samples.
|
|
||||||
If it is impossible (as for a piped input stream), you must return FALSE.
|
|
||||||
|
|
||||||
\membersection{wxSoundFileStream::FinishPreparation}\label{wxsoundfilestreamfinishpreparation}
|
\membersection{wxSoundFileStream::FinishPreparation}\label{wxsoundfilestreamfinishpreparation}
|
||||||
\func{void}{FinishPreparation}{\param{wxUint32 }{len}}
|
\func{void}{FinishPreparation}{\param{wxUint32 }{len}}
|
||||||
|
|
||||||
This is an internal function but it must called by the file codec class when
|
|
||||||
the "playing" preparation is finished and you know the size of the stream.
|
|
||||||
If it is an {\it infinite} stream, you should set this to wxSOUND\_INFINITE\_TIME.
|
|
||||||
|
|
||||||
\membersection{wxSoundFileStream::GetData}\label{wxsoundfilestreamgetdata}
|
\membersection{wxSoundFileStream::GetData}\label{wxsoundfilestreamgetdata}
|
||||||
\func{wxUint32}{GetData}{\param{void* }{buffer}, \param{wxUint32 }{len}}
|
\func{wxUint32}{GetData}{\param{void* }{buffer}, \param{wxUint32 }{len}}
|
||||||
|
|
||||||
This is called by wxSoundFileStream when it needs to get new sound data to
|
|
||||||
send to the device driver (or to a conversion codec). This must be eventually
|
|
||||||
overidden by the file codec class. The default behaviour is simply to read from
|
|
||||||
the input stream.
|
|
||||||
|
|
||||||
\membersection{wxSoundFileStream::PutData}\label{wxsoundfilestreamputdata}
|
\membersection{wxSoundFileStream::PutData}\label{wxsoundfilestreamputdata}
|
||||||
\func{wxUint32}{PutData}{\param{const void* }{buffer}, \param{wxUint32 }{len}}
|
\func{wxUint32}{PutData}{\param{const void* }{buffer}, \param{wxUint32 }{len}}
|
||||||
|
|
||||||
This is called by wxSoundFileStream when it needs to put new sound data received
|
|
||||||
from the device driver (or from a conversion codec). This must be eventually
|
|
||||||
overidden by the file codec class. The default behaviour is simply to write to
|
|
||||||
the input stream.
|
|
||||||
|
@@ -6,8 +6,8 @@
|
|||||||
|
|
||||||
\section{\class{wxSoundRouterStream}}\label{wxsoundrouterstream}
|
\section{\class{wxSoundRouterStream}}\label{wxsoundrouterstream}
|
||||||
|
|
||||||
This is the router "codec" class. It should do codec routing when the device
|
|
||||||
driver does not deal with a format.
|
Codec router class
|
||||||
|
|
||||||
\wxheading{Derived from}
|
\wxheading{Derived from}
|
||||||
|
|
||||||
@@ -17,21 +17,43 @@ driver does not deal with a format.
|
|||||||
|
|
||||||
\latexignore{\rtfignore{\wxheading{Members}}}
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
||||||
|
|
||||||
\membersection{wxSoundRouterStream::wxSoundRouterStream}\label{wxsoundrouterstreamwxsoundrouterstream}
|
|
||||||
\func{}{wxSoundRouterStream}{\param{wxSoundStream\& }{sndio}}
|
|
||||||
|
|
||||||
\helpref{wxSoundCodec}{wxsoundcodec}
|
\membersection{wxSoundRouterStream::wxSoundRouterStream}\label{wxsoundrouterstreamwxsoundrouterstream}
|
||||||
|
|
||||||
|
\func{}{wxSoundRouterStream}{\param{wxSoundStream\& }{sndio}}
|
||||||
|
|
||||||
|
|
||||||
\membersection{wxSoundRouterStream::\destruct{wxSoundRouterStream}}\label{wxsoundrouterstreamdtor}
|
\membersection{wxSoundRouterStream::\destruct{wxSoundRouterStream}}\label{wxsoundrouterstreamdtor}
|
||||||
|
|
||||||
\func{}{\destruct{wxSoundRouterStream}}{\void}
|
\func{}{\destruct{wxSoundRouterStream}}{\void}
|
||||||
|
|
||||||
Destructor.
|
|
||||||
|
\membersection{wxSoundRouterStream::Read}\label{wxsoundrouterstreamread}
|
||||||
|
|
||||||
|
\func{wxSoundStream\&}{Read}{\param{void* }{buffer}, \param{wxUint32 }{len}}
|
||||||
|
|
||||||
|
|
||||||
|
\membersection{wxSoundRouterStream::Write}\label{wxsoundrouterstreamwrite}
|
||||||
|
|
||||||
|
\func{wxSoundStream\&}{Write}{\param{const void* }{buffer}, \param{wxUint32 }{len}}
|
||||||
|
|
||||||
|
|
||||||
\membersection{wxSoundRouterStream::SetSoundFormat}\label{wxsoundrouterstreamsetsoundformat}
|
\membersection{wxSoundRouterStream::SetSoundFormat}\label{wxsoundrouterstreamsetsoundformat}
|
||||||
|
|
||||||
\func{bool}{SetSoundFormat}{\param{const wxSoundFormatBase\& }{format}}
|
\func{bool}{SetSoundFormat}{\param{const wxSoundFormatBase\& }{format}}
|
||||||
|
|
||||||
SetSoundFormat will first try to setup the device driver with the specified
|
|
||||||
format. If this fails, it will try to find a codec which will convert the
|
\membersection{wxSoundRouterStream::StartProduction}\label{wxsoundrouterstreamstartproduction}
|
||||||
input format to a valid format for the device driver. It uses an internal
|
|
||||||
codec database.
|
\func{bool}{StartProduction}{\param{int }{evt}}
|
||||||
|
|
||||||
|
|
||||||
|
\membersection{wxSoundRouterStream::StopProduction}\label{wxsoundrouterstreamstopproduction}
|
||||||
|
|
||||||
|
\func{bool}{StopProduction}{\void}
|
||||||
|
|
||||||
|
|
||||||
|
\membersection{wxSoundRouterStream::GetBestSize}\label{wxsoundrouterstreamgetbestsize}
|
||||||
|
|
||||||
|
\constfunc{wxUint32}{GetBestSize}{\void}
|
||||||
|
|
||||||
|
@@ -1,4 +1,3 @@
|
|||||||
; Last change: JAC 13 Oct 100 5:16 pm
|
|
||||||
runTwice = yes
|
runTwice = yes
|
||||||
titleFontSize = 12
|
titleFontSize = 12
|
||||||
authorFontSize = 10
|
authorFontSize = 10
|
||||||
@@ -14,7 +13,7 @@ htmlBrowseButtons = bitmap
|
|||||||
winHelpVersion = 3
|
winHelpVersion = 3
|
||||||
winHelpContents = yes
|
winHelpContents = yes
|
||||||
winHelpTitle = "MMedia Manual"
|
winHelpTitle = "MMedia Manual"
|
||||||
truncateFilenames = no
|
truncateFilenames = yes
|
||||||
combineSubSections = yes
|
combineSubSections = yes
|
||||||
\overview [2] {\rtfonly{See also }\settransparency{on}\sethotspotcolour{off}\sethotspotunderline{on}\winhelponly{\image{}{books.bmp}\settransparency{off}}
|
\overview [2] {\rtfonly{See also }\settransparency{on}\sethotspotcolour{off}\sethotspotunderline{on}\winhelponly{\image{}{books.bmp}\settransparency{off}}
|
||||||
\htmlonly{\image{}{books.gif}}\helpref{#1}{#2}
|
\htmlonly{\image{}{books.gif}}\helpref{#1}{#2}
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 440 B |
@@ -1,4 +1,4 @@
|
|||||||
; Last change: JAC 13 Oct 100 5:11 pm
|
; Last change: JS 8 Sep 98 2:54 pm
|
||||||
runTwice = yes
|
runTwice = yes
|
||||||
titleFontSize = 12
|
titleFontSize = 12
|
||||||
authorFontSize = 10
|
authorFontSize = 10
|
||||||
|
@@ -1,85 +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 wxApplet class
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#ifndef __WX_APPLET_H
|
|
||||||
#define __WX_APPLET_H
|
|
||||||
|
|
||||||
#include "wx/panel.h"
|
|
||||||
#include "wx/html/htmlwin.h"
|
|
||||||
|
|
||||||
// Forward declaration
|
|
||||||
class wxHtmlAppletWindow;
|
|
||||||
|
|
||||||
/*--------------------------- Class Definitions ---------------------------*/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
Defines the abstract base class for wxApplet objects.
|
|
||||||
****************************************************************************/
|
|
||||||
class wxApplet : public wxPanel {
|
|
||||||
private:
|
|
||||||
DECLARE_ABSTRACT_CLASS(wxApplet);
|
|
||||||
DECLARE_EVENT_TABLE();
|
|
||||||
|
|
||||||
protected:
|
|
||||||
//wxHtmlAppletWindow *m_parent;
|
|
||||||
|
|
||||||
// Special handler for background erase messages
|
|
||||||
void OnEraseBackground(wxEraseEvent&);
|
|
||||||
|
|
||||||
public:
|
|
||||||
// Constructor (called during dynamic creation)
|
|
||||||
wxApplet() { m_parent = NULL; };
|
|
||||||
|
|
||||||
// Psuedo virtual constructor
|
|
||||||
virtual bool Create(
|
|
||||||
wxHtmlAppletWindow *parent,
|
|
||||||
const wxHtmlTag& params,
|
|
||||||
const wxSize& size,
|
|
||||||
long style = wxTAB_TRAVERSAL | wxNO_BORDER);
|
|
||||||
|
|
||||||
// Virtual destructor
|
|
||||||
virtual ~wxApplet();
|
|
||||||
|
|
||||||
// Handle HTML navigation to a new URL
|
|
||||||
virtual void OnLinkClicked(const wxHtmlLinkInfo& link) = 0;
|
|
||||||
|
|
||||||
// Handle HTML navigation forward command in applet
|
|
||||||
virtual void OnHistoryForward() = 0;
|
|
||||||
|
|
||||||
// Handle HTML navigation back command in applet
|
|
||||||
virtual void OnHistoryBack() = 0;
|
|
||||||
|
|
||||||
// Handle messages from the wxAppletManager and other applets
|
|
||||||
virtual void OnMessage(wxEvent& msg) = 0;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif // __WX_APPLET_H
|
|
||||||
|
|
@@ -1,95 +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 wxEchoVariable Class, Dynamically constructed
|
|
||||||
* objects representing variables in SSI #echo directive
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#ifndef __WX_ECHOVAR_H
|
|
||||||
#define __WX_ECHOVAR_H
|
|
||||||
|
|
||||||
/*--------------------------- Class Definitions ---------------------------*/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
wxEchoVariable class Definition
|
|
||||||
****************************************************************************/
|
|
||||||
class wxEchoVariable : public wxObject {
|
|
||||||
private:
|
|
||||||
DECLARE_ABSTRACT_CLASS(wxEchoVariable);
|
|
||||||
|
|
||||||
public:
|
|
||||||
wxEchoVariable() : wxObject() {}
|
|
||||||
~wxEchoVariable() {}
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
RETURNS:
|
|
||||||
The boolean value of the variable
|
|
||||||
|
|
||||||
PARAMETERS:
|
|
||||||
parms - Optional parameter string passed from parm= field in HTML
|
|
||||||
|
|
||||||
REMARKS:
|
|
||||||
To create new variables for the #echo HTML preprocessing directives
|
|
||||||
you need to derive classes from wxEchoVariable and override the
|
|
||||||
pure virtual GetValue function. However this should not be done directly
|
|
||||||
but by using the BEGIN_ECHO_VARIABLE and END_ECHO_VARIABLE macros
|
|
||||||
|
|
||||||
SEE ALSO:
|
|
||||||
wxEchoPrep, BEGIN_ECHO_VARIABLE, END_ECHO_VARIABLE
|
|
||||||
****************************************************************************/
|
|
||||||
virtual wxString GetValue(const char *parms = NULL) const = 0;
|
|
||||||
|
|
||||||
|
|
||||||
public:
|
|
||||||
// static function to retrieve any variable avaliable
|
|
||||||
static wxString GetValue(const wxString &cls, const char *parms = NULL);
|
|
||||||
};
|
|
||||||
|
|
||||||
/*--------------------------------- MACROS --------------------------------*/
|
|
||||||
|
|
||||||
#define ECHO_PARM (_BEV_parm)
|
|
||||||
#define BEGIN_ECHO_VARIABLE(name) \
|
|
||||||
class wxEchoVariable##name : public wxEchoVariable { \
|
|
||||||
private: \
|
|
||||||
DECLARE_DYNAMIC_CLASS(wxEchoVariable##name##); \
|
|
||||||
public: \
|
|
||||||
wxEchoVariable##name##() : wxEchoVariable() {} \
|
|
||||||
virtual wxString GetValue(const char *parms = NULL) const; \
|
|
||||||
}; \
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxEchoVariable##name##, wxEchoVariable); \
|
|
||||||
wxString wxEchoVariable##name :: GetValue(const char *parms) const { \
|
|
||||||
wxString _BEV_parm = wxString(parms);
|
|
||||||
|
|
||||||
#define END_ECHO_VARIABLE(name, returnval) \
|
|
||||||
return returnval; \
|
|
||||||
}
|
|
||||||
|
|
||||||
#define STRING_ECHO_VARIABLE(name, string) \
|
|
||||||
BEGIN_ECHO_VARIABLE(##name##); \
|
|
||||||
END_ECHO_VARIABLE(##name##, wxString(##string##))
|
|
||||||
|
|
||||||
#endif // __WX_ECHOVAR_H
|
|
||||||
|
|
@@ -1,95 +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 wxIfElseVariable Class, Dynamically constructed
|
|
||||||
* objects representing variables in SSI #if, #else and #endif directives
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#ifndef __WX_IFELSEVAR_H
|
|
||||||
#define __WX_IFELSEVAR_H
|
|
||||||
|
|
||||||
/*--------------------------- Class Definitions ---------------------------*/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
This class is used to create variables for the HTML preprocessor #if, #else,
|
|
||||||
and #endif directives.
|
|
||||||
|
|
||||||
SEE ALSO:
|
|
||||||
wxIfElsePrep
|
|
||||||
****************************************************************************/
|
|
||||||
class wxIfElseVariable : public wxObject {
|
|
||||||
private:
|
|
||||||
DECLARE_ABSTRACT_CLASS(wxIfElseVariable);
|
|
||||||
|
|
||||||
public:
|
|
||||||
wxIfElseVariable() : wxObject() {}
|
|
||||||
~wxIfElseVariable() {}
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
RETURNS:
|
|
||||||
The boolean value of the variable
|
|
||||||
|
|
||||||
REMARKS:
|
|
||||||
To create new variables for the #if, #else and #endif HTML preprocessing
|
|
||||||
blocks you need to derive classes from wxIfElseVariable and override the
|
|
||||||
pure virtual GetValue function. However this should not be done directly
|
|
||||||
but by using the BEGIN_IFELSE_VARIABLE and END_IFELSE_VARIABLE macros
|
|
||||||
|
|
||||||
SEE ALSO:
|
|
||||||
wxIfElsePrep, BEGIN_IFELSE_VARIABLE, END_IFELSE_VARIABLE
|
|
||||||
****************************************************************************/
|
|
||||||
virtual bool GetValue() const = 0;
|
|
||||||
|
|
||||||
|
|
||||||
public:
|
|
||||||
// static function to retrieve any variable avaliable
|
|
||||||
static bool GetValue(const wxString &cls);
|
|
||||||
};
|
|
||||||
|
|
||||||
/*--------------------------------- MACROS --------------------------------*/
|
|
||||||
|
|
||||||
#define BEGIN_IFELSE_VARIABLE(name) \
|
|
||||||
class wxIfElseVariable##name : public wxIfElseVariable { \
|
|
||||||
private: \
|
|
||||||
DECLARE_DYNAMIC_CLASS(wxIfElseVariable##name##); \
|
|
||||||
public: \
|
|
||||||
wxIfElseVariable##name##() : wxIfElseVariable() {} \
|
|
||||||
virtual bool GetValue() const; \
|
|
||||||
}; \
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxIfElseVariable##name##, wxIfElseVariable); \
|
|
||||||
bool wxIfElseVariable##name :: GetValue() const {
|
|
||||||
|
|
||||||
#define END_IFELSE_VARIABLE(name, returnval) \
|
|
||||||
return returnval; \
|
|
||||||
}
|
|
||||||
|
|
||||||
#define IFELSE_VARIABLE(name, state) \
|
|
||||||
BEGIN_IFELSE_VARIABLE(##name##); \
|
|
||||||
END_IFELSE_VARIABLE(##name##, bool (state))
|
|
||||||
|
|
||||||
|
|
||||||
#endif // __WX_IFELSEVAR_H
|
|
||||||
|
|
@@ -1,109 +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 wxLoadPage Event class
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#ifndef __WX_LOAD_PAGE_H
|
|
||||||
#define __WX_LOAD_PAGE_H
|
|
||||||
|
|
||||||
#include "wx/html/htmlwin.h"
|
|
||||||
|
|
||||||
// Forward declaration
|
|
||||||
class wxHtmlAppletWindow;
|
|
||||||
|
|
||||||
// If we are compiling this code into a library that links against
|
|
||||||
// the DLL, we need to remove all the __declspec(dllimports) that
|
|
||||||
// would declare our classes below incorrectly.
|
|
||||||
|
|
||||||
#ifndef WXMAKINGDLL
|
|
||||||
#undef WXDLLEXPORT
|
|
||||||
#define WXDLLEXPORT
|
|
||||||
#endif
|
|
||||||
// Declare our local load page event type
|
|
||||||
BEGIN_DECLARE_EVENT_TYPES()
|
|
||||||
DECLARE_EVENT_TYPE(wxEVT_LOAD_PAGE, wxEVT_USER_FIRST+1)
|
|
||||||
DECLARE_EVENT_TYPE(wxEVT_PAGE_LOADED, wxEVT_USER_FIRST+2)
|
|
||||||
END_DECLARE_EVENT_TYPES()
|
|
||||||
|
|
||||||
/*--------------------------- Class Definitions ---------------------------*/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
Defines the class for load page events.
|
|
||||||
****************************************************************************/
|
|
||||||
class wxLoadPageEvent : public wxEvent {
|
|
||||||
DECLARE_DYNAMIC_CLASS(wxLoadPageEvent);
|
|
||||||
|
|
||||||
protected:
|
|
||||||
wxString m_hRef;
|
|
||||||
wxHtmlAppletWindow *m_htmlWindow;
|
|
||||||
|
|
||||||
public:
|
|
||||||
// Constructor
|
|
||||||
wxLoadPageEvent(const wxString &hRef = "",wxHtmlAppletWindow *htmlWindow = NULL);
|
|
||||||
|
|
||||||
// Destructor
|
|
||||||
~wxLoadPageEvent() {}
|
|
||||||
|
|
||||||
// Return the hmtl window for the load page operation
|
|
||||||
wxHtmlAppletWindow *GetHtmlWindow() { return m_htmlWindow; };
|
|
||||||
|
|
||||||
// Get the hRef string for the load page operation
|
|
||||||
const wxString & GetHRef() { return m_hRef; };
|
|
||||||
|
|
||||||
// Copy constructor for the object
|
|
||||||
void CopyObject(wxObject& obj) const;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
// Define the macro to create our event type
|
|
||||||
typedef void (wxEvtHandler::*wxLoadPageEventFunction)(wxLoadPageEvent&);
|
|
||||||
#define EVT_LOAD_PAGE(fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_LOAD_PAGE, -1, -1, (wxObjectEventFunction)(wxEventFunction)(wxLoadPageEventFunction) & fn, (wxObject *) NULL ),
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
Defines the class for pageloaded events.
|
|
||||||
****************************************************************************/
|
|
||||||
class wxPageLoadedEvent : public wxEvent {
|
|
||||||
DECLARE_DYNAMIC_CLASS(wxPageLoadedEvent);
|
|
||||||
|
|
||||||
public:
|
|
||||||
// Constructor
|
|
||||||
wxPageLoadedEvent();
|
|
||||||
|
|
||||||
// Destructor
|
|
||||||
~wxPageLoadedEvent() {}
|
|
||||||
|
|
||||||
// Copy constructor for the object
|
|
||||||
void CopyObject(wxObject& obj) const;
|
|
||||||
};
|
|
||||||
|
|
||||||
// Define the macro to create our event type
|
|
||||||
typedef void (wxEvtHandler::*wxPageLoadedEventFunction)(wxPageLoadedEvent&);
|
|
||||||
#define EVT_PAGE_LOADED(fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_PAGE_LOADED, -1, -1, (wxObjectEventFunction)(wxEventFunction)(wxPageLoadedEventFunction) & fn, (wxObject *) NULL ),
|
|
||||||
|
|
||||||
|
|
||||||
#endif // __WX_LOAD_PAGE_H
|
|
@@ -1,59 +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 Preprocessor of the #echo directive
|
|
||||||
* in wxHTML.
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#ifndef __WX_PREPECHO_H
|
|
||||||
#define __WX_PREPECHO_H
|
|
||||||
|
|
||||||
#include "wx/html/htmlproc.h"
|
|
||||||
|
|
||||||
/*--------------------------- Class Definitions ---------------------------*/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
Echo Preprocessor class Definition
|
|
||||||
****************************************************************************/
|
|
||||||
class wxEchoPrep : public wxHtmlProcessor {
|
|
||||||
private:
|
|
||||||
//DECLARE_DYNAMIC_CLASS(wxEchoPrep);
|
|
||||||
|
|
||||||
public:
|
|
||||||
wxEchoPrep() : wxHtmlProcessor() {}
|
|
||||||
~wxEchoPrep() {}
|
|
||||||
|
|
||||||
// Process input text and return processed result
|
|
||||||
wxString Process(const wxString& text) const;
|
|
||||||
|
|
||||||
// Return priority value of this processor. The higher, the sooner
|
|
||||||
// is the processor applied to the text.
|
|
||||||
int GetPriority() const { return wxHTML_PRIORITY_SYSTEM-2; }
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#endif // __WX_PREPECHO_H
|
|
||||||
|
|
@@ -1,59 +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 Preprocessor of the #if SSI directive
|
|
||||||
* in wxHTML.
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#ifndef __WX_PREPIFELSE_H
|
|
||||||
#define __WX_PREPIFELSE_H
|
|
||||||
|
|
||||||
#include "wx/html/htmlproc.h"
|
|
||||||
|
|
||||||
/*--------------------------- Class Definitions ---------------------------*/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
If Else Preprocessor class Definition
|
|
||||||
****************************************************************************/
|
|
||||||
class wxIfElsePrep : public wxHtmlProcessor {
|
|
||||||
private:
|
|
||||||
//DECLARE_DYNAMIC_CLASS(wxIfElsePrep);
|
|
||||||
|
|
||||||
public:
|
|
||||||
wxIfElsePrep() : wxHtmlProcessor() {}
|
|
||||||
~wxIfElsePrep() {}
|
|
||||||
|
|
||||||
// Process input text and return processed result
|
|
||||||
wxString Process(const wxString& text) const;
|
|
||||||
|
|
||||||
// Return priority value of this processor. The higher, the sooner
|
|
||||||
// is the processor applied to the text.
|
|
||||||
int GetPriority() const { return wxHTML_PRIORITY_SYSTEM-2; }
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#endif // __WX_PREPECHO_H
|
|
||||||
|
|
@@ -1,63 +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 Preprocessor of the #include directive
|
|
||||||
* in wxHTML.
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#ifndef __WX_PREPINCLUDE_H
|
|
||||||
#define __WX_PREPINCLUDE_H
|
|
||||||
|
|
||||||
#include "wx/html/htmlproc.h"
|
|
||||||
|
|
||||||
/*--------------------------- Class Definitions ---------------------------*/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
wxIncludePrep class Definition
|
|
||||||
****************************************************************************/
|
|
||||||
class wxIncludePrep : public wxHtmlProcessor {
|
|
||||||
private:
|
|
||||||
//DECLARE_DYNAMIC_CLASS(wxIncludePrep);
|
|
||||||
wxString DOC_ROOT;
|
|
||||||
|
|
||||||
public:
|
|
||||||
wxIncludePrep() : wxHtmlProcessor() {DOC_ROOT = wxString("");}
|
|
||||||
~wxIncludePrep() {}
|
|
||||||
|
|
||||||
// Process input text and return processed result
|
|
||||||
wxString Process(const wxString& text) const;
|
|
||||||
|
|
||||||
// Return priority value of this processor. The higher, the sooner
|
|
||||||
// is the processor applied to the text.
|
|
||||||
int GetPriority() const { return wxHTML_PRIORITY_SYSTEM; }
|
|
||||||
|
|
||||||
void ChangeDirectory(const wxString &dir);
|
|
||||||
wxString GetDirectory() { return DOC_ROOT; }
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#endif // __WX_PREPINCLUDE_H
|
|
||||||
|
|
@@ -1,165 +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 wxHtmlAppletWindow class
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#ifndef __WX_APPLET_WINDOW_H
|
|
||||||
#define __WX_APPLET_WINDOW_H
|
|
||||||
|
|
||||||
#include "wx/html/htmlwin.h"
|
|
||||||
|
|
||||||
// Forward declare
|
|
||||||
class wxApplet;
|
|
||||||
class wxLoadPageEvent;
|
|
||||||
class wxPageLoadedEvent;
|
|
||||||
class wxIncludePrep;
|
|
||||||
|
|
||||||
// Declare a linked list of wxApplet pointers
|
|
||||||
WX_DECLARE_LIST(wxApplet, wxAppletList);
|
|
||||||
|
|
||||||
/*--------------------------- Class Definitions ---------------------------*/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
Defines the class for virtual-link data types
|
|
||||||
****************************************************************************/
|
|
||||||
class VirtualData : public wxObject {
|
|
||||||
private:
|
|
||||||
wxString m_name;
|
|
||||||
wxString m_group;
|
|
||||||
wxString m_href;
|
|
||||||
|
|
||||||
public:
|
|
||||||
// Ctors
|
|
||||||
VirtualData(
|
|
||||||
wxString& name,
|
|
||||||
wxString& group,
|
|
||||||
wxString& href );
|
|
||||||
|
|
||||||
// Gets
|
|
||||||
wxString GetName(){ return m_name;};
|
|
||||||
wxString GetGroup(){ return m_group;};
|
|
||||||
wxString GetHref(){ return m_href;};
|
|
||||||
|
|
||||||
// Sets
|
|
||||||
void SetName (wxString& s){ m_name = s; };
|
|
||||||
void SetGroup(wxString& s){ m_group = s; };
|
|
||||||
void SetHref (wxString& s){ m_href = s; };
|
|
||||||
};
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
Defines the class for wxAppletWindow. This class is derived from the
|
|
||||||
wxHtmlWindow class and extends it with functionality to handle embedded
|
|
||||||
wxApplet's on the HTML pages.
|
|
||||||
****************************************************************************/
|
|
||||||
class wxHtmlAppletWindow : public wxHtmlWindow {
|
|
||||||
private:
|
|
||||||
DECLARE_CLASS(wxHtmlAppletWindow);
|
|
||||||
DECLARE_EVENT_TABLE();
|
|
||||||
|
|
||||||
bool m_mutexLock;
|
|
||||||
wxIncludePrep *incPreprocessor; // deleted by list it is added too in constructor
|
|
||||||
protected:
|
|
||||||
wxAppletList m_AppletList;
|
|
||||||
static wxHashTable m_Cookies;
|
|
||||||
wxToolBarBase *m_NavBar;
|
|
||||||
int m_NavBackId;
|
|
||||||
int m_NavForwardId;
|
|
||||||
|
|
||||||
public:
|
|
||||||
// Constructor
|
|
||||||
wxHtmlAppletWindow(
|
|
||||||
wxWindow *parent,
|
|
||||||
wxWindowID id = -1,
|
|
||||||
wxToolBarBase *navBar = NULL,
|
|
||||||
int navBackId = -1,
|
|
||||||
int navForwardId = -1,
|
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
|
||||||
const wxSize& size = wxDefaultSize,
|
|
||||||
long style = wxHW_SCROLLBAR_AUTO,
|
|
||||||
const wxString& name = "htmlAppletWindow");
|
|
||||||
|
|
||||||
// Destructor
|
|
||||||
~wxHtmlAppletWindow();
|
|
||||||
|
|
||||||
// Create an instance of an applet based on it's class name
|
|
||||||
wxApplet *CreateApplet(
|
|
||||||
const wxString& classId,
|
|
||||||
const wxString& iName,
|
|
||||||
const wxHtmlTag ¶ms,
|
|
||||||
const wxSize& size);
|
|
||||||
|
|
||||||
// Find an instance of an applet based on it's class name
|
|
||||||
wxApplet *FindApplet(const wxString& className);
|
|
||||||
|
|
||||||
// Remove an applet from the window. Called during applet destruction
|
|
||||||
bool RemoveApplet(const wxApplet *applet);
|
|
||||||
|
|
||||||
// Load a new URL page
|
|
||||||
virtual bool LoadPage(const wxString& location);
|
|
||||||
|
|
||||||
// Called when users clicked on hypertext link.
|
|
||||||
virtual void OnLinkClicked(const wxHtmlLinkInfo& link);
|
|
||||||
|
|
||||||
// Handles forward navigation within the HTML stack
|
|
||||||
bool HistoryForward();
|
|
||||||
|
|
||||||
// Handles backwards navigation within the HTML stack
|
|
||||||
bool HistoryBack();
|
|
||||||
|
|
||||||
// Broadcast a message to all applets on the page
|
|
||||||
void SendMessage(wxEvent& msg);
|
|
||||||
|
|
||||||
// Register a cookie of data in the applet manager
|
|
||||||
bool RegisterCookie(const wxString& name,wxObject *cookie);
|
|
||||||
|
|
||||||
// UnRegister a cookie of data in the applet manager
|
|
||||||
bool UnRegisterCookie(const wxString& name);
|
|
||||||
|
|
||||||
// Find a cookie of data given it's public name
|
|
||||||
wxObject *FindCookie(const wxString& name);
|
|
||||||
|
|
||||||
// Event handlers to load a new page
|
|
||||||
void OnLoadPage(wxLoadPageEvent &event);
|
|
||||||
|
|
||||||
// Event handlers to load a new page
|
|
||||||
void OnPageLoaded(wxPageLoadedEvent &event);
|
|
||||||
|
|
||||||
// LoadPage mutex locks
|
|
||||||
void Lock() { m_mutexLock = true;};
|
|
||||||
void UnLock() { m_mutexLock = false;};
|
|
||||||
|
|
||||||
// Returns TRUE if the mutex is locked, FALSE otherwise.
|
|
||||||
bool IsLocked() { return m_mutexLock;};
|
|
||||||
|
|
||||||
// Tries to lock the mutex. If it can't, returns immediately with false.
|
|
||||||
bool TryLock();
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // __WX_APPLET_WINDOW_H
|
|
||||||
|
|
@@ -1,76 +0,0 @@
|
|||||||
#ifndef __WXBOUNDINGBOX_H__
|
|
||||||
#define __WXBOUNDINGBOX_H__
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "bbox.cpp"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef WX_PRECOMP
|
|
||||||
#include "wx/wx.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/matrix.h"
|
|
||||||
#include "wx/geometry.h"
|
|
||||||
|
|
||||||
enum OVERLAP {_IN,_ON,_OUT};
|
|
||||||
|
|
||||||
//Purpose The wxBoundingBox class stores one wxBoundingBox.
|
|
||||||
//The wxBoundingBox is defined by two coordiates,
|
|
||||||
//a upperleft coordinate and a lowerright coordinate.
|
|
||||||
class wxBoundingBox
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxBoundingBox();
|
|
||||||
wxBoundingBox(wxBoundingBox&);
|
|
||||||
wxBoundingBox(const wxPoint2DDouble&);
|
|
||||||
wxBoundingBox(double xmin, double ymin, double xmax, double ymax);
|
|
||||||
|
|
||||||
bool And(wxBoundingBox*, double Marge = 0);
|
|
||||||
|
|
||||||
void EnLarge(const double Marge);
|
|
||||||
void Shrink(const double Marge);
|
|
||||||
|
|
||||||
void Expand(const wxPoint2DDouble& , const wxPoint2DDouble&);
|
|
||||||
void Expand(const wxPoint2DDouble&);
|
|
||||||
void Expand(double x,double y);
|
|
||||||
void Expand(const wxBoundingBox& bbox);
|
|
||||||
|
|
||||||
OVERLAP Intersect( wxBoundingBox &, double Marge = 0);
|
|
||||||
bool LineIntersect(const wxPoint2DDouble& begin, const wxPoint2DDouble& end );
|
|
||||||
bool PointInBox( const wxPoint2DDouble&, double Marge = 0);
|
|
||||||
bool PointInBox( double, double, double Marge = 0);
|
|
||||||
|
|
||||||
void Reset();
|
|
||||||
|
|
||||||
void Translate( wxPoint2DDouble& );
|
|
||||||
void MapBbox( const wxTransformMatrix& matrix);
|
|
||||||
|
|
||||||
double GetWidth() {return m_maxx-m_minx;};
|
|
||||||
double GetHeight(){return m_maxy-m_miny;};
|
|
||||||
bool GetValid() const;
|
|
||||||
void SetValid(bool);
|
|
||||||
|
|
||||||
void SetBoundingBox(const wxPoint2DDouble& a_point);
|
|
||||||
|
|
||||||
void SetMin(double, double);
|
|
||||||
void SetMax(double, double);
|
|
||||||
inline wxPoint2DDouble GetMin();
|
|
||||||
inline wxPoint2DDouble GetMax();
|
|
||||||
inline double GetMinX(){return m_minx;};
|
|
||||||
inline double GetMinY(){return m_miny;};
|
|
||||||
inline double GetMaxX(){return m_maxx;};
|
|
||||||
inline double GetMaxY(){return m_maxy;};
|
|
||||||
|
|
||||||
wxBoundingBox& operator+( wxBoundingBox& );
|
|
||||||
wxBoundingBox& operator=( const wxBoundingBox& );
|
|
||||||
|
|
||||||
protected:
|
|
||||||
//bounding box in world
|
|
||||||
double m_minx;
|
|
||||||
double m_miny;
|
|
||||||
double m_maxx;
|
|
||||||
double m_maxy;
|
|
||||||
bool m_validbbox;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
@@ -1,859 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: canvas.h
|
|
||||||
// Author: Robert Roebling
|
|
||||||
// Created: XX/XX/XX
|
|
||||||
// Copyright: 2000 (c) Robert Roebling
|
|
||||||
// Licence: wxWindows Licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef __WXCANVAS_H__
|
|
||||||
#define __WXCANVAS_H__
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "canvas.cpp"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef WX_PRECOMP
|
|
||||||
#include "wx/wx.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/image.h"
|
|
||||||
#include "wx/txtstrm.h"
|
|
||||||
#include "wx/geometry.h"
|
|
||||||
#include "wx/matrix.h"
|
|
||||||
#include "bbox.h"
|
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
|
||||||
// decls
|
|
||||||
//----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
class wxCanvas;
|
|
||||||
class wxCanvasAdmin;
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
|
||||||
// wxCanvasObject
|
|
||||||
//----------------------------------------------------------------------------
|
|
||||||
enum wxDRAG_MODE
|
|
||||||
{
|
|
||||||
wxDRAG_RECTANGLE,
|
|
||||||
wxDRAG_ONTOP,
|
|
||||||
wxDRAG_REDRAW
|
|
||||||
};
|
|
||||||
|
|
||||||
//:defenition
|
|
||||||
// wxCanvasObject is the base class for Canvas Objects.
|
|
||||||
// All Objects for drawing one the canvas are derived from this class.
|
|
||||||
// It supports dragging and moving methods that can be used in derived
|
|
||||||
// classes for defining several ways of dragging.
|
|
||||||
// Also it is possible to plug in events handlers to do this for all derived classes at once.
|
|
||||||
//
|
|
||||||
// wxCanvasObjects have themselves as their event handlers by default,
|
|
||||||
// but their event handlers could be set to another object entirely. This
|
|
||||||
// separation can reduce the amount of derivation required, and allow
|
|
||||||
// alteration of a wxCanvasObject functionality
|
|
||||||
class wxCanvasObject: public wxEvtHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
wxCanvasObject();
|
|
||||||
|
|
||||||
//If the position (x,y) is within the object this return a pointer to the object
|
|
||||||
//Normally this function needs to be defined for each derived wxCanvasObject.
|
|
||||||
//The default is a simple bounding box test.
|
|
||||||
virtual wxCanvasObject* IsHitWorld( double x, double y, double margin = 0 );
|
|
||||||
|
|
||||||
//render this object to the canvas (either on its buffer or directly on the canvas)
|
|
||||||
//this depends on the wxDC that is set for the active canvas.
|
|
||||||
virtual void Render(wxTransformMatrix* cworld, int clip_x, int clip_y, int clip_width, int clip_height );
|
|
||||||
|
|
||||||
//x position in world coordinates of the object
|
|
||||||
virtual double GetPosX()=0;
|
|
||||||
//y position in world coordinates of the object
|
|
||||||
virtual double GetPosY()=0;
|
|
||||||
|
|
||||||
//set position in world coordinates for the object
|
|
||||||
virtual void SetPosXY( double x, double y)=0;
|
|
||||||
|
|
||||||
//absolute moving the object to position x,y in world coordinates
|
|
||||||
//also does an update of the old and new area
|
|
||||||
virtual void MoveAbsolute( double x, double y );
|
|
||||||
|
|
||||||
//relative moving the object to position x,y in world coordinates
|
|
||||||
//also does an update of the old and new area
|
|
||||||
virtual void MoveRelative( double x, double y );
|
|
||||||
|
|
||||||
//relative translate the object to position x,y in world coordinates
|
|
||||||
//does NOT update the old and new area
|
|
||||||
//this function must be defined for each derived object,
|
|
||||||
//it is used internally for dragging and moving objects.
|
|
||||||
virtual void TransLate( double x, double y )=0;
|
|
||||||
|
|
||||||
//choose one of the three diffrenet drag methods |
|
|
||||||
//DRAG_RECTANGLE = as a rectangle when drag is in progress |
|
|
||||||
//DRAG_ONTOP = only redraw the object when dragging |
|
|
||||||
//DRAG_REDRAW = redraw the damaged areas when dragging
|
|
||||||
void SetDragMode(wxDRAG_MODE mode) { m_dragmode=mode; };
|
|
||||||
|
|
||||||
//return the dragmode
|
|
||||||
wxDRAG_MODE GetDragMode() { return m_dragmode; };
|
|
||||||
|
|
||||||
//called when starting a drag
|
|
||||||
virtual void DragStart();
|
|
||||||
//called when dragging is in progress
|
|
||||||
virtual void DragRelative( double x, double y);
|
|
||||||
//called when dragging is ended
|
|
||||||
virtual void DragEnd();
|
|
||||||
|
|
||||||
//return the object if it is part of the given object or
|
|
||||||
//if the given object is part of a group within this object.
|
|
||||||
//For group objects this means recursively search for it.
|
|
||||||
virtual wxCanvasObject* Contains( wxCanvasObject* obj );
|
|
||||||
|
|
||||||
//calculate the boundingbox in world coordinates
|
|
||||||
virtual void CalcBoundingBox()=0;
|
|
||||||
|
|
||||||
//write the object as SVG (scalable vector grafhics
|
|
||||||
virtual void WriteSVG( wxTextOutputStream &stream );
|
|
||||||
|
|
||||||
//get the administrator for the object,
|
|
||||||
//this will give access to the canvas's where it is displayed upon.
|
|
||||||
//It is used to render the object to the active canvas.
|
|
||||||
//Conversion from world to Device coordinates and visa versa is
|
|
||||||
//done using the Active canvas at that moment.
|
|
||||||
wxCanvasAdmin *GetAdmin() { return m_admin; }
|
|
||||||
|
|
||||||
//set the administrator
|
|
||||||
virtual void SetAdmin( wxCanvasAdmin *admin ) { m_admin = admin; }
|
|
||||||
|
|
||||||
//is this a control type of canvas object
|
|
||||||
bool IsControl() { return m_isControl; }
|
|
||||||
//is this a vector type of canvas object
|
|
||||||
bool IsVector() { return m_isVector; }
|
|
||||||
//is this an Image type of canvas object
|
|
||||||
bool IsImage() { return m_isImage; }
|
|
||||||
|
|
||||||
//get minimum X of the boundingbox in world coordinates
|
|
||||||
inline double GetXMin() { return m_bbox.GetMinX(); }
|
|
||||||
//get minimum Y of the boundingbox in world coordinates
|
|
||||||
inline double GetYMin() { return m_bbox.GetMinY(); }
|
|
||||||
//get maximum X of the boundingbox in world coordinates
|
|
||||||
inline double GetXMax() { return m_bbox.GetMaxX(); }
|
|
||||||
//get maximum Y of the boundingbox in world coordinates
|
|
||||||
inline double GetYMax() { return m_bbox.GetMaxY(); }
|
|
||||||
|
|
||||||
//get boundingbox
|
|
||||||
inline wxBoundingBox GetBbox() { return m_bbox; }
|
|
||||||
|
|
||||||
//redirect all mouse events for the canvas to this object
|
|
||||||
void CaptureMouse();
|
|
||||||
//release the mouse capture for this object
|
|
||||||
void ReleaseMouse();
|
|
||||||
//is the mouse captured for this object
|
|
||||||
bool IsCapturedMouse();
|
|
||||||
|
|
||||||
//set if this object will visible (be rendered or not)
|
|
||||||
inline void SetVisible(bool visible) { m_visible=visible; }
|
|
||||||
//get visibility
|
|
||||||
inline bool GetVisible() {return m_visible; }
|
|
||||||
|
|
||||||
//can the object be dragged
|
|
||||||
inline void SetDraggable(bool drag) { m_dragable=drag; }
|
|
||||||
//get if the object can be dragged
|
|
||||||
inline bool GetDraggable() {return m_dragable; }
|
|
||||||
|
|
||||||
//get absolute area in the device coordinates where the object
|
|
||||||
//its boundingbox in world coordinates is first translated using the matrix.
|
|
||||||
wxRect GetAbsoluteArea(const wxTransformMatrix& cworld);
|
|
||||||
|
|
||||||
//get currently used eventhandler (always the first in the list)
|
|
||||||
wxEvtHandler *GetEventHandler() const { return m_eventHandler; }
|
|
||||||
|
|
||||||
//process an event for the object, starting with the first eventhandler
|
|
||||||
// in the list.
|
|
||||||
bool ProcessCanvasObjectEvent(wxEvent& event);
|
|
||||||
|
|
||||||
// push/pop event handler: allows to chain a custom event handler to
|
|
||||||
// already existing ones
|
|
||||||
void PushEventHandler( wxEvtHandler *handler );
|
|
||||||
|
|
||||||
//remove first eventhandler in the list (one will be always stay in)
|
|
||||||
wxEvtHandler *PopEventHandler( bool deleteHandler = FALSE );
|
|
||||||
//append an eventhandler to the list, this event handler will be called
|
|
||||||
//if the other skipped the event to process.
|
|
||||||
void AppendEventHandler(wxEvtHandler *handler);
|
|
||||||
//remove last event handler in the list (one will always stay in)
|
|
||||||
wxEvtHandler *RemoveLastEventHandler(bool deleteHandler);
|
|
||||||
|
|
||||||
protected:
|
|
||||||
|
|
||||||
//administator for rendering and accessing the canvas's
|
|
||||||
wxCanvasAdmin* m_admin;
|
|
||||||
|
|
||||||
//active event handler, default the object itself
|
|
||||||
wxEvtHandler* m_eventHandler;
|
|
||||||
|
|
||||||
bool m_isControl:1;
|
|
||||||
bool m_isVector:1;
|
|
||||||
bool m_isImage:1;
|
|
||||||
bool m_visible:1;
|
|
||||||
bool m_dragable:1;
|
|
||||||
wxDRAG_MODE m_dragmode:3;
|
|
||||||
|
|
||||||
//boundingbox in world coordinates
|
|
||||||
wxBoundingBox m_bbox;
|
|
||||||
|
|
||||||
//used for dragging
|
|
||||||
wxBitmap m_atnewpos;
|
|
||||||
};
|
|
||||||
|
|
||||||
//:defenition
|
|
||||||
// wxCanvasObjectGroup is a container for wxCanvas derived Objects.
|
|
||||||
// It renders itself by calling the render methods of the wxCanvasObjects it contains.
|
|
||||||
// It can have nested groups also, in the same way as the other wxCanvasObjects it already contains.
|
|
||||||
// The group has a matrix to position/rotate/scale the group.
|
|
||||||
class wxCanvasObjectGroup: public wxCanvasObject
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxCanvasObjectGroup(double x, double y);
|
|
||||||
virtual ~wxCanvasObjectGroup();
|
|
||||||
|
|
||||||
void SetAdmin(wxCanvasAdmin* admin);
|
|
||||||
|
|
||||||
//prepend a wxCanvasObject to this group
|
|
||||||
virtual void Prepend( wxCanvasObject* obj );
|
|
||||||
//append a wxCanvasObject to this group
|
|
||||||
virtual void Append( wxCanvasObject* obj );
|
|
||||||
//insert a wxCanvasObject to this group
|
|
||||||
virtual void Insert( size_t before, wxCanvasObject* obj );
|
|
||||||
//remove the given object from the group
|
|
||||||
virtual void Remove( wxCanvasObject* obj );
|
|
||||||
|
|
||||||
//those this group contain the given object.
|
|
||||||
//in case of nested groups also search in there to the lowwest level.
|
|
||||||
virtual wxCanvasObject* Contains( wxCanvasObject* obj );
|
|
||||||
|
|
||||||
//returns index of the given wxCanvasObject in this group
|
|
||||||
virtual int IndexOf( wxCanvasObject* obj );
|
|
||||||
|
|
||||||
double GetPosX() { return lworld.GetValue(2,0); }
|
|
||||||
double GetPosY() { return lworld.GetValue(2,1); }
|
|
||||||
void SetPosXY( double x, double y) {lworld.SetValue(2,0,x);lworld.SetValue(2,1,y);CalcBoundingBox();};
|
|
||||||
|
|
||||||
void TransLate( double x, double y );
|
|
||||||
|
|
||||||
void CalcBoundingBox();
|
|
||||||
//remove all wxCanvasObjects from the group (flag for deletion of the objectsalso)
|
|
||||||
void DeleteContents( bool );
|
|
||||||
virtual void Render(wxTransformMatrix* cworld,int x, int y, int width, int height );
|
|
||||||
virtual void WriteSVG( wxTextOutputStream &stream );
|
|
||||||
|
|
||||||
//recursive call the IsHitWorld on all contained objects, the first
|
|
||||||
//one that is hit will be returned
|
|
||||||
wxCanvasObject* IsHitWorld( double x, double y, double margin = 0 );
|
|
||||||
|
|
||||||
//recursive calls for contained objects to set eventhandlers,
|
|
||||||
//and also sets its own eventhandler
|
|
||||||
void PushEventHandler( wxEvtHandler *handler );
|
|
||||||
//recursive calls for contained objects to set eventhandlers,
|
|
||||||
//and also sets its own eventhandler
|
|
||||||
wxEvtHandler *PopEventHandler( bool deleteHandler = FALSE );
|
|
||||||
//recursive calls for contained objects to set eventhandlers,
|
|
||||||
//and also sets its own eventhandler
|
|
||||||
void AppendEventHandler(wxEvtHandler *handler);
|
|
||||||
//recursive calls for contained objects to set eventhandlers,
|
|
||||||
//and also sets its own eventhandler
|
|
||||||
wxEvtHandler *RemoveLastEventHandler(bool deleteHandler);
|
|
||||||
|
|
||||||
protected:
|
|
||||||
|
|
||||||
//to position the object
|
|
||||||
wxTransformMatrix lworld;
|
|
||||||
|
|
||||||
wxList m_objects;
|
|
||||||
|
|
||||||
friend class wxCanvas;
|
|
||||||
};
|
|
||||||
|
|
||||||
//:defenition
|
|
||||||
// wxCanvasObjectRef is a reference to any wxCanvasObject derived class.
|
|
||||||
// It does not duplicate the referenced object.
|
|
||||||
// It has a matrix to reposition/rotate/scale the object it references.
|
|
||||||
// The position/matrix of the referenced Object is accumulated with the one here.
|
|
||||||
class wxCanvasObjectRef: public wxCanvasObject
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxCanvasObjectRef(double x, double y,wxCanvasObject* obj);
|
|
||||||
|
|
||||||
//set rotation for the reference
|
|
||||||
void SetRotation(double rotation);
|
|
||||||
|
|
||||||
//set scale in x and y ( > zero)
|
|
||||||
void SetScale( double scalex, double scaley );
|
|
||||||
|
|
||||||
void SetAdmin(wxCanvasAdmin* admin);
|
|
||||||
|
|
||||||
double GetPosX() { return lworld.GetValue(2,0); }
|
|
||||||
double GetPosY() { return lworld.GetValue(2,1); }
|
|
||||||
void SetPosXY( double x, double y) {lworld.SetValue(2,0,x);lworld.SetValue(2,1,y);CalcBoundingBox();};
|
|
||||||
|
|
||||||
void TransLate( double x, double y );
|
|
||||||
void CalcBoundingBox();
|
|
||||||
virtual void Render(wxTransformMatrix* cworld,int x, int y, int width, int height );
|
|
||||||
virtual void WriteSVG( wxTextOutputStream &stream );
|
|
||||||
|
|
||||||
//return this object if one of the objects it references is hit
|
|
||||||
wxCanvasObject* IsHitWorld( double x, double y, double margin = 0 );
|
|
||||||
virtual wxCanvasObject* Contains( wxCanvasObject* obj );
|
|
||||||
|
|
||||||
//recursive calls for contained objects to set eventhandlers,
|
|
||||||
//and also sets its own eventhandler
|
|
||||||
void PushEventHandler( wxEvtHandler *handler );
|
|
||||||
//recursive calls for contained objects to set eventhandlers,
|
|
||||||
//and also sets its own eventhandler
|
|
||||||
wxEvtHandler *PopEventHandler( bool deleteHandler = FALSE );
|
|
||||||
//recursive calls for contained objects to set eventhandlers,
|
|
||||||
//and also sets its own eventhandler
|
|
||||||
void AppendEventHandler(wxEvtHandler *handler);
|
|
||||||
//recursive calls for contained objects to set eventhandlers,
|
|
||||||
//and also sets its own eventhandler
|
|
||||||
wxEvtHandler *RemoveLastEventHandler(bool deleteHandler);
|
|
||||||
|
|
||||||
protected:
|
|
||||||
|
|
||||||
//to position the object
|
|
||||||
wxTransformMatrix lworld;
|
|
||||||
|
|
||||||
//reference to another wxCanvasObject
|
|
||||||
wxCanvasObject* m_obj;
|
|
||||||
};
|
|
||||||
|
|
||||||
//:defenition
|
|
||||||
// wxCanvasRect
|
|
||||||
class wxCanvasRect: public wxCanvasObject
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxCanvasRect( double x, double y, double w, double h , double radius=0 );
|
|
||||||
void SetBrush( const wxBrush& brush) { m_brush = brush; };
|
|
||||||
void SetPen( const wxPen& pen) { m_pen = pen; CalcBoundingBox(); };
|
|
||||||
|
|
||||||
double GetPosX() { return m_x; }
|
|
||||||
double GetPosY() { return m_y; }
|
|
||||||
void SetPosXY( double x, double y) {m_x=x; m_y=y; CalcBoundingBox();};
|
|
||||||
|
|
||||||
void TransLate( double x, double y );
|
|
||||||
void CalcBoundingBox();
|
|
||||||
|
|
||||||
virtual void Render(wxTransformMatrix* cworld, int clip_x, int clip_y, int clip_width, int clip_height );
|
|
||||||
virtual void WriteSVG( wxTextOutputStream &stream );
|
|
||||||
|
|
||||||
private:
|
|
||||||
wxPen m_pen;
|
|
||||||
wxBrush m_brush;
|
|
||||||
|
|
||||||
double m_x;
|
|
||||||
double m_y;
|
|
||||||
double m_width;
|
|
||||||
double m_height;
|
|
||||||
double m_radius;
|
|
||||||
};
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
|
||||||
// wxCanvasCircle
|
|
||||||
//----------------------------------------------------------------------------
|
|
||||||
class wxCanvasCircle: public wxCanvasObject
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxCanvasCircle( double x, double y, double radius );
|
|
||||||
void SetBrush( const wxBrush& brush) { m_brush = brush; };
|
|
||||||
void SetPen( const wxPen& pen) { m_pen = pen; CalcBoundingBox(); };
|
|
||||||
|
|
||||||
double GetPosX() { return m_x; }
|
|
||||||
double GetPosY() { return m_y; }
|
|
||||||
void SetPosXY( double x, double y) {m_x=x; m_y=y;CalcBoundingBox(); };
|
|
||||||
|
|
||||||
void TransLate( double x, double y );
|
|
||||||
|
|
||||||
void CalcBoundingBox();
|
|
||||||
|
|
||||||
virtual void Render(wxTransformMatrix* cworld, int clip_x, int clip_y, int clip_width, int clip_height );
|
|
||||||
virtual void WriteSVG( wxTextOutputStream &stream );
|
|
||||||
|
|
||||||
wxCanvasObject* IsHitWorld( double x, double y, double margin = 0 );
|
|
||||||
|
|
||||||
private:
|
|
||||||
wxPen m_pen;
|
|
||||||
wxBrush m_brush;
|
|
||||||
|
|
||||||
double m_x;
|
|
||||||
double m_y;
|
|
||||||
double m_radius;
|
|
||||||
};
|
|
||||||
|
|
||||||
//:defenition
|
|
||||||
// wxCanvasEllipse
|
|
||||||
class wxCanvasEllipse: public wxCanvasObject
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxCanvasEllipse( double x, double y, double width, double height );
|
|
||||||
void SetBrush( const wxBrush& brush) { m_brush = brush; };
|
|
||||||
void SetPen( const wxPen& pen) { m_pen = pen; CalcBoundingBox(); };
|
|
||||||
|
|
||||||
double GetPosX() { return m_x; }
|
|
||||||
double GetPosY() { return m_y; }
|
|
||||||
void SetPosXY( double x, double y) {m_x=x; m_y=y; CalcBoundingBox();};
|
|
||||||
|
|
||||||
void TransLate( double x, double y );
|
|
||||||
|
|
||||||
void CalcBoundingBox();
|
|
||||||
|
|
||||||
virtual void Render(wxTransformMatrix* cworld, int clip_x, int clip_y, int clip_width, int clip_height );
|
|
||||||
virtual void WriteSVG( wxTextOutputStream &stream );
|
|
||||||
|
|
||||||
wxCanvasObject* IsHitWorld( double x, double y, double margin = 0 );
|
|
||||||
|
|
||||||
private:
|
|
||||||
wxPen m_pen;
|
|
||||||
wxBrush m_brush;
|
|
||||||
|
|
||||||
double m_x;
|
|
||||||
double m_y;
|
|
||||||
double m_width;
|
|
||||||
double m_height;
|
|
||||||
};
|
|
||||||
|
|
||||||
//:defenition
|
|
||||||
// wxCanvasEllipticArc
|
|
||||||
class wxCanvasEllipticArc: public wxCanvasObject
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxCanvasEllipticArc( double x, double y, double width, double height, double start, double end );
|
|
||||||
void SetBrush( const wxBrush& brush) { m_brush = brush; };
|
|
||||||
void SetPen( const wxPen& pen) { m_pen = pen; CalcBoundingBox(); };
|
|
||||||
|
|
||||||
double GetPosX() { return m_x; }
|
|
||||||
double GetPosY() { return m_y; }
|
|
||||||
void SetPosXY( double x, double y) {m_x=x; m_y=y; CalcBoundingBox();};
|
|
||||||
|
|
||||||
void TransLate( double x, double y );
|
|
||||||
void CalcBoundingBox();
|
|
||||||
|
|
||||||
virtual void Render(wxTransformMatrix* cworld, int clip_x, int clip_y, int clip_width, int clip_height );
|
|
||||||
virtual void WriteSVG( wxTextOutputStream &stream );
|
|
||||||
|
|
||||||
wxCanvasObject* IsHitWorld( double x, double y, double margin = 0 );
|
|
||||||
|
|
||||||
private:
|
|
||||||
wxPen m_pen;
|
|
||||||
wxBrush m_brush;
|
|
||||||
|
|
||||||
double m_x;
|
|
||||||
double m_y;
|
|
||||||
double m_width;
|
|
||||||
double m_height;
|
|
||||||
double m_start;
|
|
||||||
double m_end;
|
|
||||||
};
|
|
||||||
|
|
||||||
//:defenition
|
|
||||||
// wxCanvasLine
|
|
||||||
class wxCanvasLine: public wxCanvasObject
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxCanvasLine( double x1, double y1, double x2, double y2 );
|
|
||||||
void SetPen( const wxPen& pen) { m_pen = pen; CalcBoundingBox(); };
|
|
||||||
|
|
||||||
|
|
||||||
double GetPosX() { return m_x1; }
|
|
||||||
double GetPosY() { return m_y1; }
|
|
||||||
void SetPosXY( double x, double y) {m_x1=x; m_y1=y; CalcBoundingBox();};
|
|
||||||
|
|
||||||
void TransLate( double x, double y );
|
|
||||||
|
|
||||||
void CalcBoundingBox();
|
|
||||||
|
|
||||||
virtual void Render(wxTransformMatrix* cworld, int clip_x, int clip_y, int clip_width, int clip_height );
|
|
||||||
virtual void WriteSVG( wxTextOutputStream &stream );
|
|
||||||
|
|
||||||
wxCanvasObject* IsHitWorld( double x, double y, double margin = 0 );
|
|
||||||
|
|
||||||
private:
|
|
||||||
wxPen m_pen;
|
|
||||||
|
|
||||||
double m_x1;
|
|
||||||
double m_y1;
|
|
||||||
double m_x2;
|
|
||||||
double m_y2;
|
|
||||||
};
|
|
||||||
|
|
||||||
//:defenition
|
|
||||||
// wxCanvasImage
|
|
||||||
class wxCanvasImage: public wxCanvasObject
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxCanvasImage( const wxImage &image, double x, double y, double w, double h );
|
|
||||||
|
|
||||||
double GetPosX() { return m_x; }
|
|
||||||
double GetPosY() { return m_y; }
|
|
||||||
void SetPosXY( double x, double y);
|
|
||||||
|
|
||||||
void TransLate( double x, double y );
|
|
||||||
|
|
||||||
void CalcBoundingBox();
|
|
||||||
|
|
||||||
virtual void Render(wxTransformMatrix* cworld, int clip_x, int clip_y, int clip_width, int clip_height );
|
|
||||||
virtual void WriteSVG( wxTextOutputStream &stream );
|
|
||||||
|
|
||||||
private:
|
|
||||||
double m_x;
|
|
||||||
double m_y;
|
|
||||||
double m_width;
|
|
||||||
double m_height;
|
|
||||||
|
|
||||||
wxImage m_image;
|
|
||||||
int m_orgw,m_orgh;
|
|
||||||
|
|
||||||
// cache
|
|
||||||
wxBitmap m_cBitmap;
|
|
||||||
wxImage m_cImage;
|
|
||||||
int m_cW;
|
|
||||||
int m_cH;
|
|
||||||
double m_cR;
|
|
||||||
};
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
|
||||||
// wxCanvasControl
|
|
||||||
//----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
class wxCanvasControl: public wxCanvasObject
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxCanvasControl( wxWindow *control );
|
|
||||||
~wxCanvasControl();
|
|
||||||
|
|
||||||
double GetPosX();
|
|
||||||
double GetPosY();
|
|
||||||
void SetPosXY( double x, double y);
|
|
||||||
|
|
||||||
void TransLate( double x, double y );
|
|
||||||
void MoveRelative( double x, double y );
|
|
||||||
|
|
||||||
void CalcBoundingBox();
|
|
||||||
|
|
||||||
private:
|
|
||||||
wxWindow *m_control;
|
|
||||||
};
|
|
||||||
|
|
||||||
//:defenition
|
|
||||||
// wxCanvasText
|
|
||||||
class wxCanvasText: public wxCanvasObject
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxCanvasText( const wxString &text, double x, double y, const wxString &foneFile, int size );
|
|
||||||
~wxCanvasText();
|
|
||||||
|
|
||||||
double GetPosX() { return m_x; }
|
|
||||||
double GetPosY() { return m_y; }
|
|
||||||
void SetPosXY( double x, double y) {m_x=x; m_y=y;CalcBoundingBox(); };
|
|
||||||
|
|
||||||
void TransLate( double x, double y );
|
|
||||||
|
|
||||||
void CalcBoundingBox();
|
|
||||||
|
|
||||||
virtual void Render(wxTransformMatrix* cworld, int clip_x, int clip_y, int clip_width, int clip_height );
|
|
||||||
virtual void WriteSVG( wxTextOutputStream &stream );
|
|
||||||
|
|
||||||
void SetRGB( unsigned char red, unsigned char green, unsigned char blue );
|
|
||||||
void SetFlag( int flag );
|
|
||||||
int GetFlag() { return m_flag; }
|
|
||||||
|
|
||||||
private:
|
|
||||||
wxString m_text;
|
|
||||||
double m_x;
|
|
||||||
double m_y;
|
|
||||||
unsigned char *m_alpha;
|
|
||||||
void *m_faceData;
|
|
||||||
int m_flag;
|
|
||||||
int m_red;
|
|
||||||
int m_green;
|
|
||||||
int m_blue;
|
|
||||||
wxString m_fontFileName;
|
|
||||||
int m_size;
|
|
||||||
};
|
|
||||||
|
|
||||||
//:defenition
|
|
||||||
// wxCanvas is used to display a wxCanvasGroupObject, which contains wxCanvasObject derived
|
|
||||||
// drawable objects. The group to draw is called the root.
|
|
||||||
// All objects are defined in world coordinates, relative to its parent (e.g. nested groups)
|
|
||||||
// There are methods to convert from world to device coordinates and visa versa.
|
|
||||||
// Rendering a draw is normally started on the root, it to a buffer, afterwords
|
|
||||||
// an update of the damaged parts will blitted from the buffer to the screen.
|
|
||||||
// This is done in Idle time, but can also be forced.
|
|
||||||
// World coordinates can be with the Y axis going up are down.
|
|
||||||
// The area of the drawing in world coordinates that is visible on the canvas
|
|
||||||
// can be set. Parts of this area can be zoomed into resulting in scroll bars
|
|
||||||
// to be displayed.
|
|
||||||
class wxCanvas: public wxScrolledWindow
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
// constructors and destructors
|
|
||||||
wxCanvas( wxCanvasAdmin* admin ,wxWindow *parent, wxWindowID id = -1,
|
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
|
||||||
const wxSize& size = wxDefaultSize,
|
|
||||||
long style = wxScrolledWindowStyle );
|
|
||||||
virtual ~wxCanvas();
|
|
||||||
|
|
||||||
//background colour for the canvas
|
|
||||||
virtual void SetColour( const wxColour& background );
|
|
||||||
|
|
||||||
//update the area given in device coordinates
|
|
||||||
virtual void Update( int x, int y, int width, int height, bool blit = TRUE );
|
|
||||||
|
|
||||||
//blit all updated areas now to the screen, else it will happen in idle time.
|
|
||||||
//Use this to support dragging for instance, becuase in such cases idle time
|
|
||||||
//will take to long.
|
|
||||||
virtual void UpdateNow();
|
|
||||||
|
|
||||||
//prevent canvas activety
|
|
||||||
virtual void Freeze();
|
|
||||||
//allow canvas activety
|
|
||||||
virtual void Thaw();
|
|
||||||
|
|
||||||
//get the buffer that is used for rendering in general
|
|
||||||
inline wxBitmap *GetBuffer() { return &m_buffer; }
|
|
||||||
//get the DC that is used for rendering
|
|
||||||
inline wxDC *GetDC() { return m_renderDC; }
|
|
||||||
//set the DC that is used for rendering
|
|
||||||
inline void SetDC(wxDC* dc) { m_renderDC=dc; }
|
|
||||||
|
|
||||||
inline int GetBufferWidth() { return m_buffer.GetWidth(); }
|
|
||||||
inline int GetBufferHeight() { return m_buffer.GetHeight(); }
|
|
||||||
|
|
||||||
//updating is needed for the canvas if the buffer did change
|
|
||||||
bool NeedUpdate() { return m_needUpdate; }
|
|
||||||
bool IsFrozen() { return m_frozen; }
|
|
||||||
|
|
||||||
//blit damaged areas in the buffer to the screen
|
|
||||||
void BlitBuffer( wxDC &dc );
|
|
||||||
|
|
||||||
//redirect events to this canvas object
|
|
||||||
void SetCaptureMouse( wxCanvasObject *obj );
|
|
||||||
//are events redirected, if so return the object else NULL
|
|
||||||
inline wxCanvasObject* GetCaptured() { return m_captureMouse;}
|
|
||||||
|
|
||||||
//set the root group where the objects for this canvas are stored
|
|
||||||
void SetRoot(wxCanvasObjectGroup* aroot){m_root=aroot;}
|
|
||||||
|
|
||||||
//get root group that is displayed on the canvas
|
|
||||||
wxCanvasObjectGroup* GetRoot(){return m_root;}
|
|
||||||
|
|
||||||
//scroll the window in device coordinates
|
|
||||||
virtual void ScrollWindow( int dx, int dy,
|
|
||||||
const wxRect* rect = (wxRect *) NULL );
|
|
||||||
|
|
||||||
//get y axis orientation
|
|
||||||
virtual bool GetYaxis() { return FALSE; }
|
|
||||||
|
|
||||||
//get the visible part in world coordinates
|
|
||||||
virtual double GetMinX() const;
|
|
||||||
virtual double GetMinY() const;
|
|
||||||
virtual double GetMaxX() const;
|
|
||||||
virtual double GetMaxY() const;
|
|
||||||
|
|
||||||
//convert from window to virtual coordinates
|
|
||||||
virtual double DeviceToLogicalX(int x) const;
|
|
||||||
virtual double DeviceToLogicalY(int y) const;
|
|
||||||
virtual double DeviceToLogicalXRel(int x) const;
|
|
||||||
virtual double DeviceToLogicalYRel(int y) const;
|
|
||||||
virtual int LogicalToDeviceX(double x) const;
|
|
||||||
virtual int LogicalToDeviceY(double y) const;
|
|
||||||
virtual int LogicalToDeviceXRel(double x) const;
|
|
||||||
virtual int LogicalToDeviceYRel(double y) const;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
wxBitmap m_buffer;
|
|
||||||
|
|
||||||
//always available and m_buffer selected
|
|
||||||
wxDC* m_renderDC;
|
|
||||||
|
|
||||||
bool m_needUpdate;
|
|
||||||
wxList m_updateRects;
|
|
||||||
wxCanvasObjectGroup* m_root;
|
|
||||||
|
|
||||||
wxColour m_background;
|
|
||||||
bool m_frozen;
|
|
||||||
wxCanvasObject *m_lastMouse;
|
|
||||||
wxCanvasObject *m_captureMouse;
|
|
||||||
|
|
||||||
int m_oldDeviceX,m_oldDeviceY;
|
|
||||||
|
|
||||||
wxCanvasAdmin* m_admin;
|
|
||||||
|
|
||||||
private:
|
|
||||||
int m_bufferX,m_bufferY;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void OnMouse( wxMouseEvent &event );
|
|
||||||
void OnPaint( wxPaintEvent &event );
|
|
||||||
void OnSize( wxSizeEvent &event );
|
|
||||||
void OnIdle( wxIdleEvent &event );
|
|
||||||
void OnSetFocus( wxFocusEvent &event );
|
|
||||||
void OnKillFocus( wxFocusEvent &event );
|
|
||||||
void OnEraseBackground( wxEraseEvent &event );
|
|
||||||
|
|
||||||
private:
|
|
||||||
DECLARE_CLASS(wxCanvas)
|
|
||||||
DECLARE_EVENT_TABLE()
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class wxVectorCanvas: public wxCanvas
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
// constructors and destructors
|
|
||||||
wxVectorCanvas( wxCanvasAdmin* admin ,wxWindow *parent, wxWindowID id = -1,
|
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
|
||||||
const wxSize& size = wxDefaultSize,
|
|
||||||
long style = wxScrolledWindowStyle );
|
|
||||||
|
|
||||||
//scroll the window in device coordinates
|
|
||||||
virtual void ScrollWindow( int dx, int dy,
|
|
||||||
const wxRect* rect = (wxRect *) NULL );
|
|
||||||
|
|
||||||
//set if the Yaxis goes up or down
|
|
||||||
void SetYaxis(bool up) { m_yaxis=up; }
|
|
||||||
|
|
||||||
//get currently used Yaxis setting
|
|
||||||
virtual bool GetYaxis() { return m_yaxis; }
|
|
||||||
|
|
||||||
//to set the total area in world coordinates that can be scrolled.
|
|
||||||
// when totaly zoomed out (SetMappingScroll same size as given here),
|
|
||||||
// this will be the area displayed.
|
|
||||||
// To display all of a drawing, set this here to the boundingbox of the root group
|
|
||||||
// of the canvas.
|
|
||||||
void SetScroll(double vx1,double vy1,double vx2,double vy2);
|
|
||||||
|
|
||||||
//given the virtual size to be displayed, the mappingmatrix will be calculated
|
|
||||||
//in such a manner that it fits (same ratio in width and height) to the window size.
|
|
||||||
//The window size is used to intitialize the mapping.
|
|
||||||
//The virtual size is just an indication, it will be ajusted to fit in the client window ratio.
|
|
||||||
//When border is set an extra margin is added so that the drawing will fit nicely.
|
|
||||||
// To display all of a drawing, set this here to the boundingbox of the root group
|
|
||||||
// of the canvas.
|
|
||||||
void SetMappingScroll(double vx1,double vy1,double vx2,double vy2,bool border);
|
|
||||||
|
|
||||||
//matrix for calculating the virtual coordinate given a screen coordinate
|
|
||||||
wxTransformMatrix GetInverseMappingMatrix();
|
|
||||||
|
|
||||||
//matrix for calculating the screen coordinate given a virtual coordinate
|
|
||||||
wxTransformMatrix GetMappingMatrix();
|
|
||||||
|
|
||||||
//get minimum X of the visible part in world coordinates
|
|
||||||
virtual double GetMinX() const;
|
|
||||||
virtual double GetMinY() const;
|
|
||||||
virtual double GetMaxX() const;
|
|
||||||
virtual double GetMaxY() const;
|
|
||||||
|
|
||||||
//convert from window to virtual coordinates and back
|
|
||||||
virtual double DeviceToLogicalX(int x) const;
|
|
||||||
virtual double DeviceToLogicalY(int y) const;
|
|
||||||
virtual double DeviceToLogicalXRel(int x) const;
|
|
||||||
virtual double DeviceToLogicalYRel(int y) const;
|
|
||||||
virtual int LogicalToDeviceX(double x) const;
|
|
||||||
virtual int LogicalToDeviceY(double y) const;
|
|
||||||
virtual int LogicalToDeviceXRel(double x) const;
|
|
||||||
virtual int LogicalToDeviceYRel(double y) const;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
// up or down
|
|
||||||
bool m_yaxis;
|
|
||||||
|
|
||||||
// holds the matrix for mapping from virtual to screen coordinates
|
|
||||||
wxTransformMatrix m_mapping_matrix;
|
|
||||||
|
|
||||||
// holds the inverse of the mapping matrix
|
|
||||||
wxTransformMatrix m_inverse_mapping;
|
|
||||||
|
|
||||||
//virtual coordinates of total drawing
|
|
||||||
double m_virtm_minX, m_virtm_minY, m_virtm_maxX, m_virtm_maxY;
|
|
||||||
|
|
||||||
// virtual coordinates box
|
|
||||||
double m_virt_minX, m_virt_minY, m_virt_maxX, m_virt_maxY;
|
|
||||||
|
|
||||||
// bounding box
|
|
||||||
double m_minX, m_minY, m_maxX, m_maxY;
|
|
||||||
|
|
||||||
//are scroll bars active?
|
|
||||||
bool m_scrolled;
|
|
||||||
|
|
||||||
private:
|
|
||||||
void OnScroll(wxScrollWinEvent& event);
|
|
||||||
void OnChar( wxKeyEvent &event );
|
|
||||||
void OnSize( wxSizeEvent &event );
|
|
||||||
|
|
||||||
private:
|
|
||||||
DECLARE_CLASS(wxVectorCanvas)
|
|
||||||
DECLARE_EVENT_TABLE()
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//:defenition
|
|
||||||
//Contains a list of wxCanvas Objects that will be maintained through this class.
|
|
||||||
//Each wxCanvasObject can be displayed on several wxCanvas Objects at the same time.
|
|
||||||
//The active wxCanvas is used to render and convert coordinates from world to device.
|
|
||||||
//So it is important to set the active wxCanvas based on the wxCanvas that has the focus
|
|
||||||
//or is scrolled etc. This is normally done within wxCanvas when appropriate.
|
|
||||||
class wxCanvasAdmin
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
// constructors and destructors
|
|
||||||
wxCanvasAdmin();
|
|
||||||
virtual ~wxCanvasAdmin();
|
|
||||||
|
|
||||||
//convert from window to virtual coordinates
|
|
||||||
double DeviceToLogicalX(int x) const;
|
|
||||||
//convert from window to virtual coordinates
|
|
||||||
double DeviceToLogicalY(int y) const;
|
|
||||||
//convert from window to virtual coordinates relatif
|
|
||||||
double DeviceToLogicalXRel(int x) const;
|
|
||||||
//convert from window to virtual coordinates relatif
|
|
||||||
double DeviceToLogicalYRel(int y) const;
|
|
||||||
//convert from virtual to window coordinates
|
|
||||||
int LogicalToDeviceX(double x) const;
|
|
||||||
//convert from virtual to window coordinates
|
|
||||||
int LogicalToDeviceY(double y) const;
|
|
||||||
//convert from virtual to window coordinates relatif
|
|
||||||
int LogicalToDeviceXRel(double x) const;
|
|
||||||
//convert from virtual to window coordinates relatif
|
|
||||||
int LogicalToDeviceYRel(double y) const;
|
|
||||||
|
|
||||||
//update in the buffer off all canvases, the area given in world coordinates
|
|
||||||
virtual void Update(wxCanvasObject* obj, double x, double y, double width, double height);
|
|
||||||
|
|
||||||
//blit all updated areas now to the screen, else it will happen in idle time.
|
|
||||||
//Use this to support dragging for instance, becuase in such cases idle time
|
|
||||||
//will take to long.
|
|
||||||
virtual void UpdateNow();
|
|
||||||
|
|
||||||
//append another canvas
|
|
||||||
virtual void Append( wxCanvas* canvas );
|
|
||||||
|
|
||||||
//remove a canvas
|
|
||||||
virtual void Remove( wxCanvas* canvas );
|
|
||||||
|
|
||||||
//set the given canvas as active (for rendering, coordinate conversion etc.)
|
|
||||||
void SetActive(wxCanvas* activate);
|
|
||||||
|
|
||||||
//get active canvas
|
|
||||||
inline wxCanvas* GetActive() {return m_active;};
|
|
||||||
|
|
||||||
private:
|
|
||||||
wxList m_canvaslist;
|
|
||||||
wxCanvas* m_active;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
||||||
// WXCANVAS
|
|
||||||
|
|
@@ -1,58 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: liner.h
|
|
||||||
// Author: Klaas Holwerda
|
|
||||||
// Created: 1/10/2000
|
|
||||||
// Copyright: 2000 (c) Klaas Holwerda
|
|
||||||
// Licence: wxWindows Licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
#ifndef __WXLINER_H
|
|
||||||
#define __WXLINER_H
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "liner.cpp"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#include "wx/geometry.h"
|
|
||||||
|
|
||||||
enum OUTPRODUCT {R_IS_LEFT,R_IS_ON,R_IS_RIGHT};
|
|
||||||
|
|
||||||
// Status of a point to a wxLine
|
|
||||||
enum R_PointStatus {R_LEFT_SIDE, R_RIGHT_SIDE, R_ON_AREA, R_IN_AREA};
|
|
||||||
|
|
||||||
class wxLine
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
// constructors and destructor
|
|
||||||
wxLine( double x1, double y1, double x2, double y2 );
|
|
||||||
wxLine( const wxPoint2DDouble& a, const wxPoint2DDouble& b);
|
|
||||||
~wxLine();
|
|
||||||
|
|
||||||
wxPoint2DDouble GetBeginPoint(); // Get the beginpoint from a wxLine
|
|
||||||
wxPoint2DDouble GetEndPoint(); // Get the endpoint from a wxLine
|
|
||||||
bool CheckIntersect( wxLine&, double Marge); // Check if two wxLines intersects
|
|
||||||
int Intersect( wxLine&, wxPoint2DDouble& bp ,wxPoint2DDouble& ep ,double Marge) ; // Intersects two wxLines
|
|
||||||
bool Intersect( wxLine& lijn, wxPoint2DDouble& crossing); //intersect two (infinit) lines
|
|
||||||
R_PointStatus PointOnLine( const wxPoint2DDouble& a_Point, double& Distance, double Marge ); //For an infinite wxLine
|
|
||||||
R_PointStatus PointInLine( const wxPoint2DDouble& a_Point, double& Distance, double Marge ); //For a non-infinite wxLine
|
|
||||||
OUTPRODUCT OutProduct( const wxLine& two, double accur); // outproduct of two wxLines
|
|
||||||
double Calculate_Y( double X); // Caclulate Y if X is known
|
|
||||||
void Virtual_Point( wxPoint2DDouble& a_point, double distance) const;
|
|
||||||
wxLine& operator=( const wxLine&); // assignment operator
|
|
||||||
void CalculateLineParameters(); // Calculate the parameters if nessecary
|
|
||||||
void OffsetContour( const wxLine& nextline, double factor,wxPoint2DDouble& offsetpoint) const;
|
|
||||||
|
|
||||||
private:
|
|
||||||
|
|
||||||
int ActionOnTable1(R_PointStatus,R_PointStatus); // Function needed for Intersect
|
|
||||||
int ActionOnTable2(R_PointStatus,R_PointStatus); // Function needed for Intersect
|
|
||||||
|
|
||||||
double m_AA;
|
|
||||||
double m_BB;
|
|
||||||
double m_CC;
|
|
||||||
wxPoint2DDouble m_a;
|
|
||||||
wxPoint2DDouble m_b;
|
|
||||||
bool m_valid_parameters;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
@@ -1,220 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: polygon.h
|
|
||||||
// Author: Klaas Holwerda
|
|
||||||
// Created: XX/XX/XX
|
|
||||||
// Copyright: 2000 (c) Klaas Holwerda
|
|
||||||
// Licence: wxWindows Licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef __WXPOLYGON_H__
|
|
||||||
#define __WXPOLYGON_H__
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "polygon.cpp"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef WX_PRECOMP
|
|
||||||
#include "wx/wx.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/matrix.h"
|
|
||||||
#include "wx/geometry.h"
|
|
||||||
#include "bbox.h"
|
|
||||||
#include "canvas.h"
|
|
||||||
|
|
||||||
enum INOUTPOLY {OUTSIDE_POLY,INSIDE_POLY,ON_POLY};
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
|
||||||
// wxCanvasPolygon
|
|
||||||
//----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
class wxCanvasPolygon: public wxCanvasObject
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxCanvasPolygon( int n, wxPoint2DDouble points[], bool spline = FALSE );
|
|
||||||
~wxCanvasPolygon();
|
|
||||||
void SetBrush( const wxBrush& brush) { m_brush = brush; }
|
|
||||||
void SetPen( const wxPen& pen) { m_pen = pen; CalcBoundingBox(); }
|
|
||||||
|
|
||||||
//set colour 1
|
|
||||||
//being the background color if filling with a monochrome bitmap
|
|
||||||
//or in case of gradient filling the starting colour for the fill
|
|
||||||
void SetColour1( const wxColour& fg) { m_textfg=fg;}
|
|
||||||
//set colour 1
|
|
||||||
//being the foreground color if filling with a monochrome bitmap
|
|
||||||
//or in case of gradient filling the ending colour for the fill
|
|
||||||
void SetColour2( const wxColour& bg) { m_textbg=bg;}
|
|
||||||
//transparent filling when bitmapbrush is monochrome
|
|
||||||
void SetTransParent(bool transp) { m_transp=transp;}
|
|
||||||
//gradient filling using lines chnging in colour from colour1 to colour2
|
|
||||||
void SetGradient(bool gradient, const wxPen& gpen, double distance)
|
|
||||||
{ m_gradient=gradient;
|
|
||||||
m_gpen=gpen;
|
|
||||||
m_gdistance=distance;
|
|
||||||
}
|
|
||||||
|
|
||||||
double GetPosX() { return m_points[0].m_x; }
|
|
||||||
double GetPosY() { return m_points[0].m_y; }
|
|
||||||
void SetPosXY( double x, double y);
|
|
||||||
|
|
||||||
void TransLate( double x, double y );
|
|
||||||
void CalcBoundingBox();
|
|
||||||
|
|
||||||
virtual void Render(wxTransformMatrix* cworld, int clip_x, int clip_y, int clip_width, int clip_height );
|
|
||||||
virtual void WriteSVG( wxTextOutputStream &stream );
|
|
||||||
|
|
||||||
wxCanvasObject* IsHitWorld( double x, double y, double margin = 0 );
|
|
||||||
|
|
||||||
INOUTPOLY PointInPolygon(const wxPoint2DDouble& P, double marge);
|
|
||||||
|
|
||||||
private:
|
|
||||||
|
|
||||||
bool MoveUp(double horline, int& index, int direction);
|
|
||||||
void DetectCriticalPoints();
|
|
||||||
void FillPolygon(wxTransformMatrix* cworld, int clip_x, int clip_y, int clip_width, int clip_height );
|
|
||||||
wxList m_CRlist;
|
|
||||||
wxList m_AETlist;
|
|
||||||
|
|
||||||
|
|
||||||
wxBrush m_brush;
|
|
||||||
wxPen m_pen;
|
|
||||||
wxColour m_textbg;
|
|
||||||
wxColour m_textfg;
|
|
||||||
|
|
||||||
//if brush is of type bitmap with a mask fill with mask transparent
|
|
||||||
bool m_transp;
|
|
||||||
bool m_gradient;
|
|
||||||
wxPen m_gpen;
|
|
||||||
double m_gdistance;
|
|
||||||
|
|
||||||
bool m_spline;
|
|
||||||
|
|
||||||
int m_n;
|
|
||||||
wxPoint2DDouble* m_points;
|
|
||||||
};
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
|
||||||
// wxCanvasPolyline
|
|
||||||
//----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
class wxCanvasPolyline: public wxCanvasObject
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxCanvasPolyline(int n, wxPoint2DDouble points[]);
|
|
||||||
~wxCanvasPolyline();
|
|
||||||
void SetPen( const wxPen& pen) { m_pen = pen; CalcBoundingBox(); }
|
|
||||||
|
|
||||||
double GetPosX() { return m_points[0].m_x; }
|
|
||||||
double GetPosY() { return m_points[0].m_y; }
|
|
||||||
void SetPosXY( double x, double y);
|
|
||||||
|
|
||||||
void TransLate( double x, double y );
|
|
||||||
void CalcBoundingBox();
|
|
||||||
|
|
||||||
virtual void Render(wxTransformMatrix* cworld, int clip_x, int clip_y, int clip_width, int clip_height );
|
|
||||||
virtual void WriteSVG( wxTextOutputStream &stream );
|
|
||||||
|
|
||||||
wxCanvasObject* IsHitWorld( double x, double y, double margin = 0 );
|
|
||||||
|
|
||||||
bool PointOnPolyline(const wxPoint2DDouble& P, double marge);
|
|
||||||
|
|
||||||
private:
|
|
||||||
|
|
||||||
wxPen m_pen;
|
|
||||||
|
|
||||||
int m_n;
|
|
||||||
wxPoint2DDouble* m_points;
|
|
||||||
};
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
|
||||||
// wxCanvasPolygon
|
|
||||||
//----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
class wxCanvasPolygonL: public wxCanvasObject
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxCanvasPolygonL(wxList* points, bool spline = FALSE);
|
|
||||||
~wxCanvasPolygonL();
|
|
||||||
void SetBrush( const wxBrush& brush) { m_brush = brush; }
|
|
||||||
void SetPen( const wxPen& pen) { m_pen = pen; CalcBoundingBox(); }
|
|
||||||
void SetColour1( const wxColour& fg) { m_textfg=fg;}
|
|
||||||
void SetColour2( const wxColour& bg) { m_textbg=bg;}
|
|
||||||
void SetTransParent(bool transp) { m_transp=transp;}
|
|
||||||
|
|
||||||
double GetPosX();
|
|
||||||
double GetPosY();
|
|
||||||
void SetPosXY( double x, double y);
|
|
||||||
void TransLate( double x, double y );
|
|
||||||
void CalcBoundingBox();
|
|
||||||
|
|
||||||
virtual void Render(wxTransformMatrix* cworld, int clip_x, int clip_y, int clip_width, int clip_height );
|
|
||||||
virtual void WriteSVG( wxTextOutputStream &stream );
|
|
||||||
|
|
||||||
wxCanvasObject* IsHitWorld( double x, double y, double margin = 0 );
|
|
||||||
|
|
||||||
INOUTPOLY PointInPolygon(const wxPoint2DDouble& P, double marge);
|
|
||||||
|
|
||||||
private:
|
|
||||||
|
|
||||||
wxBrush m_brush;
|
|
||||||
wxPen m_pen;
|
|
||||||
bool m_spline;
|
|
||||||
wxColour m_textbg;
|
|
||||||
wxColour m_textfg;
|
|
||||||
//if brush is of type bitmap with a mask fill with mask transparent
|
|
||||||
bool m_transp;
|
|
||||||
|
|
||||||
wxList* m_lpoints;
|
|
||||||
};
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
|
||||||
// wxCanvasPolyline
|
|
||||||
//----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
class wxCanvasPolylineL: public wxCanvasObject
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxCanvasPolylineL(wxList* points, bool spline );
|
|
||||||
~wxCanvasPolylineL();
|
|
||||||
void SetPen( const wxPen& pen) { m_pen = pen; CalcBoundingBox(); }
|
|
||||||
|
|
||||||
double GetPosX();
|
|
||||||
double GetPosY();
|
|
||||||
void SetPosXY( double x, double y);
|
|
||||||
|
|
||||||
void TransLate( double x, double y );
|
|
||||||
void CalcBoundingBox();
|
|
||||||
|
|
||||||
virtual void Render(wxTransformMatrix* cworld, int clip_x, int clip_y, int clip_width, int clip_height );
|
|
||||||
virtual void WriteSVG( wxTextOutputStream &stream );
|
|
||||||
|
|
||||||
wxCanvasObject* IsHitWorld( double x, double y, double margin = 0 );
|
|
||||||
|
|
||||||
bool PointOnPolyline(const wxPoint2DDouble& P, double marge);
|
|
||||||
|
|
||||||
private:
|
|
||||||
wxPen m_pen;
|
|
||||||
bool m_spline;
|
|
||||||
|
|
||||||
wxList* m_lpoints;
|
|
||||||
};
|
|
||||||
|
|
||||||
//active edge table
|
|
||||||
class wxAET
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
inline void CalculateLineParameters( const wxPoint2DDouble& p1 , const wxPoint2DDouble& p2 );
|
|
||||||
inline void CalculateXs( double y );
|
|
||||||
|
|
||||||
//line paramters
|
|
||||||
bool m_horizontal;
|
|
||||||
double m_BdivA;
|
|
||||||
double m_CdivA;
|
|
||||||
int m_index;
|
|
||||||
int m_direction;
|
|
||||||
//intersection point with scanline;
|
|
||||||
double m_xs;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@@ -1,59 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: editlbox.h
|
|
||||||
// Purpose: ListBox with editable items
|
|
||||||
// Author: Vaclav Slavik
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) Vaclav Slavik
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef __WX_EDITLBOX_H__
|
|
||||||
#define __WX_EDITLBOX_H__
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "editlbox.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/panel.h"
|
|
||||||
|
|
||||||
|
|
||||||
class WXDLLEXPORT wxBitmapButton;
|
|
||||||
class WXDLLEXPORT wxListCtrl;
|
|
||||||
class WXDLLEXPORT wxListEvent;
|
|
||||||
|
|
||||||
// This class provides a composite control that lets the
|
|
||||||
// user easily enter list of strings
|
|
||||||
|
|
||||||
class WXDLLEXPORT wxEditableListBox : public wxPanel
|
|
||||||
{
|
|
||||||
DECLARE_CLASS(wxEditableListBox);
|
|
||||||
|
|
||||||
public:
|
|
||||||
wxEditableListBox(wxWindow *parent, wxWindowID id,
|
|
||||||
const wxString& label,
|
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
|
||||||
const wxSize& size = wxDefaultSize,
|
|
||||||
const wxString& name = wxT("editableListBox"));
|
|
||||||
|
|
||||||
void SetStrings(const wxArrayString& strings);
|
|
||||||
void GetStrings(wxArrayString& strings);
|
|
||||||
|
|
||||||
protected:
|
|
||||||
wxBitmapButton *m_bDel, *m_bNew, *m_bUp, *m_bDown, *m_bEdit;
|
|
||||||
wxListCtrl *m_listCtrl;
|
|
||||||
int m_selection;
|
|
||||||
bool m_edittingNew;
|
|
||||||
|
|
||||||
void OnItemSelected(wxListEvent& event);
|
|
||||||
void OnEndLabelEdit(wxListEvent& event);
|
|
||||||
void OnNewItem(wxCommandEvent& event);
|
|
||||||
void OnDelItem(wxCommandEvent& event);
|
|
||||||
void OnEditItem(wxCommandEvent& event);
|
|
||||||
void OnUpItem(wxCommandEvent& event);
|
|
||||||
void OnDownItem(wxCommandEvent& event);
|
|
||||||
|
|
||||||
DECLARE_EVENT_TABLE()
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
@@ -1,167 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: multicell.h
|
|
||||||
// Purpose: provide two new classes for layout, wxMultiCellSizer and wxMultiCellCanvas
|
|
||||||
// Author: Jonathan Bayer
|
|
||||||
// Modified by:
|
|
||||||
// Created:
|
|
||||||
// RCS-ID: $Id:
|
|
||||||
// Copyright: (c) Jonathan Bayer
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
// This was inspired by the gbsizer class written by Alex Andruschak
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef __WX_MULTICELL_H__
|
|
||||||
#define __WX_MULTICELL_H__
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "multicell.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
// headers
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
// The classes are derived from wxSizer
|
|
||||||
#include "wx/sizer.h"
|
|
||||||
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
// constants
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
enum wxResizable
|
|
||||||
{
|
|
||||||
wxNOT_RESIZABLE = 0x00,
|
|
||||||
wxHORIZENTAL_RESIZABLE = 0x01,
|
|
||||||
wxVERTICAL_RESIZABLE = 0x10,
|
|
||||||
wxRESIZABLE = 0x11
|
|
||||||
};
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
// classes
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
// wxMultiCellItemHandle
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
class WXDLLEXPORT wxMultiCellItemHandle: public wxObject
|
|
||||||
{
|
|
||||||
DECLARE_CLASS(wxMultiCellItemHandle);
|
|
||||||
protected:
|
|
||||||
int m_column;
|
|
||||||
int m_row;
|
|
||||||
int m_width;
|
|
||||||
int m_height;
|
|
||||||
wxResizable m_style;
|
|
||||||
wxSize m_fixedSize;
|
|
||||||
int m_alignment;
|
|
||||||
wxSize m_weight;
|
|
||||||
|
|
||||||
public:
|
|
||||||
wxMultiCellItemHandle( int row, int column, int height = 1, int width = 1, wxSize size = wxDefaultSize, wxResizable style = wxNOT_RESIZABLE, wxSize weight = wxSize(1,1), int align = wxALIGN_NOT);
|
|
||||||
wxMultiCellItemHandle( int row, int column, wxSize size, wxResizable style = wxNOT_RESIZABLE, wxSize weight = wxSize(1,1), int align = wxALIGN_NOT);
|
|
||||||
wxMultiCellItemHandle( int row, int column, wxResizable style, wxSize weight = wxSize(1,1), int align = wxALIGN_NOT);
|
|
||||||
wxMultiCellItemHandle( int row, int column, int align);
|
|
||||||
int GetColumn();
|
|
||||||
int GetRow();
|
|
||||||
int GetWidth();
|
|
||||||
int GetHeight();
|
|
||||||
wxResizable GetStyle();
|
|
||||||
wxSize GetLocalSize();
|
|
||||||
int GetAlignment();
|
|
||||||
wxSize GetWeight();
|
|
||||||
|
|
||||||
private:
|
|
||||||
void Initialize( int row, int column, int height = 1, int width = 1, wxSize size = wxDefaultSize, wxResizable style = wxNOT_RESIZABLE, wxSize weight = wxSize(1,1), int align = wxALIGN_NOT);
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
// wxMultiCellSizer
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
class WXDLLEXPORT wxMultiCellSizer : virtual public wxSizer
|
|
||||||
{
|
|
||||||
DECLARE_CLASS(wxMultiCellSizer);
|
|
||||||
|
|
||||||
protected:
|
|
||||||
wxSize m_cell_count;
|
|
||||||
|
|
||||||
public:
|
|
||||||
wxMultiCellSizer(wxSize & size);
|
|
||||||
wxMultiCellSizer(int rows, int cols);
|
|
||||||
~wxMultiCellSizer();
|
|
||||||
|
|
||||||
virtual void RecalcSizes();
|
|
||||||
virtual wxSize CalcMin();
|
|
||||||
bool SetDefaultCellSize(wxSize size);
|
|
||||||
bool SetColumnWidth(int column, int colSize = 5, bool expandable = FALSE);
|
|
||||||
bool SetRowHeight(int row, int rowSize = 5, bool expandable = FALSE);
|
|
||||||
bool EnableGridLines(wxWindow *win);
|
|
||||||
bool SetGridPen(wxPen *pen);
|
|
||||||
void OnPaint(wxDC& dc);
|
|
||||||
|
|
||||||
private:
|
|
||||||
void GetMinimums();
|
|
||||||
int Sum(int *array, int x);
|
|
||||||
|
|
||||||
private:
|
|
||||||
int *m_maxHeight;
|
|
||||||
int *m_maxWidth;
|
|
||||||
int *m_rowStretch;
|
|
||||||
int *m_colStretch;
|
|
||||||
wxSize **m_weights;
|
|
||||||
wxSize **m_minSizes;
|
|
||||||
int m_maxWeights;
|
|
||||||
wxSize m_defaultCellSize;
|
|
||||||
wxWindow *m_win; // usually used for debugging
|
|
||||||
wxPen *m_pen;
|
|
||||||
|
|
||||||
void DrawGridLines(wxDC& dc);
|
|
||||||
void Initialize(wxSize size);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
// wxCell is used internally, so we don't need to declare it here
|
|
||||||
|
|
||||||
class wxCell;
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
// wxMultiCellCanvas
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
class wxMultiCellCanvas : public wxFlexGridSizer
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxMultiCellCanvas(wxWindow *parent, int numRows = 2, int numCols = 2);
|
|
||||||
void Add(wxWindow *win, unsigned int row, unsigned int col);
|
|
||||||
|
|
||||||
void Resize(int numRows, int numCols);
|
|
||||||
int MaxRows()
|
|
||||||
{
|
|
||||||
return m_maxRows;
|
|
||||||
};
|
|
||||||
int MaxCols()
|
|
||||||
{
|
|
||||||
return m_maxCols;
|
|
||||||
};
|
|
||||||
void CalculateConstraints();
|
|
||||||
void SetMinCellSize(const wxSize size)
|
|
||||||
{
|
|
||||||
m_minCellSize = size;
|
|
||||||
};
|
|
||||||
|
|
||||||
private:
|
|
||||||
wxWindow *m_parent;
|
|
||||||
unsigned int m_maxRows, m_maxCols;
|
|
||||||
|
|
||||||
wxSize m_minCellSize;
|
|
||||||
wxCell **m_cells;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*** End of File ***/
|
|
@@ -1,227 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: splittree.h
|
|
||||||
// Purpose: Classes to achieve a remotely-scrolled tree in a splitter
|
|
||||||
// window that can be scrolled by a scrolled window higher in the
|
|
||||||
// hierarchy
|
|
||||||
// Author: Julian Smart
|
|
||||||
// Modified by:
|
|
||||||
// Created: 8/7/2000
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) Julian Smart
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_SPLITTREE_H_
|
|
||||||
#define _WX_SPLITTREE_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "splittree.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Set this to 1 to use generic tree control (doesn't yet work properly)
|
|
||||||
#define USE_GENERIC_TREECTRL 0
|
|
||||||
|
|
||||||
#include "wx/wx.h"
|
|
||||||
#include "wx/treectrl.h"
|
|
||||||
#include "wx/splitter.h"
|
|
||||||
#include "wx/scrolwin.h"
|
|
||||||
|
|
||||||
#if USE_GENERIC_TREECTRL
|
|
||||||
#include "wx/generic/treectlg.h"
|
|
||||||
#ifndef wxTreeCtrl
|
|
||||||
#define wxTreeCtrl wxGenericTreeCtrl
|
|
||||||
#define sm_classwxTreeCtrl sm_classwxGenericTreeCtrl
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
class wxRemotelyScrolledTreeCtrl;
|
|
||||||
class wxThinSplitterWindow;
|
|
||||||
class wxSplitterScrolledWindow;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* wxRemotelyScrolledTreeCtrl
|
|
||||||
*
|
|
||||||
* This tree control disables its vertical scrollbar and catches scroll
|
|
||||||
* events passed by a scrolled window higher in the hierarchy.
|
|
||||||
* It also updates the scrolled window vertical scrollbar as appropriate.
|
|
||||||
*/
|
|
||||||
|
|
||||||
class wxRemotelyScrolledTreeCtrl: public wxTreeCtrl
|
|
||||||
{
|
|
||||||
DECLARE_CLASS(wxRemotelyScrolledTreeCtrl)
|
|
||||||
public:
|
|
||||||
wxRemotelyScrolledTreeCtrl(wxWindow* parent, wxWindowID id, const wxPoint& pt = wxDefaultPosition,
|
|
||||||
const wxSize& sz = wxDefaultSize, long style = wxTR_HAS_BUTTONS);
|
|
||||||
~wxRemotelyScrolledTreeCtrl();
|
|
||||||
|
|
||||||
//// Events
|
|
||||||
void OnSize(wxSizeEvent& event);
|
|
||||||
void OnExpand(wxTreeEvent& event);
|
|
||||||
void OnScroll(wxScrollWinEvent& event);
|
|
||||||
|
|
||||||
//// Overrides
|
|
||||||
// Override this in case we're using the generic tree control.
|
|
||||||
// Calls to this should disable the vertical scrollbar.
|
|
||||||
|
|
||||||
// Number of pixels per user unit (0 or -1 for no scrollbar)
|
|
||||||
// Length of virtual canvas in user units
|
|
||||||
// Length of page in user units
|
|
||||||
virtual void SetScrollbars(int pixelsPerUnitX, int pixelsPerUnitY,
|
|
||||||
int noUnitsX, int noUnitsY,
|
|
||||||
int xPos = 0, int yPos = 0,
|
|
||||||
bool noRefresh = FALSE );
|
|
||||||
|
|
||||||
// In case we're using the generic tree control.
|
|
||||||
// Get the view start
|
|
||||||
virtual void GetViewStart(int *x, int *y) const;
|
|
||||||
|
|
||||||
// In case we're using the generic tree control.
|
|
||||||
virtual void PrepareDC(wxDC& dc);
|
|
||||||
|
|
||||||
// In case we're using the generic tree control.
|
|
||||||
virtual int GetScrollPos(int orient) const;
|
|
||||||
|
|
||||||
//// Helpers
|
|
||||||
void HideVScrollbar();
|
|
||||||
|
|
||||||
// Calculate the tree overall size so we can set the scrollbar
|
|
||||||
// correctly
|
|
||||||
void CalcTreeSize(wxRect& rect);
|
|
||||||
void CalcTreeSize(const wxTreeItemId& id, wxRect& rect);
|
|
||||||
|
|
||||||
// Adjust the containing wxScrolledWindow's scrollbars appropriately
|
|
||||||
void AdjustRemoteScrollbars();
|
|
||||||
|
|
||||||
// Find the scrolled window that contains this control
|
|
||||||
wxScrolledWindow* GetScrolledWindow() const;
|
|
||||||
|
|
||||||
// Scroll to the given line (in scroll units where each unit is
|
|
||||||
// the height of an item)
|
|
||||||
void ScrollToLine(int posHoriz, int posVert);
|
|
||||||
|
|
||||||
//// Accessors
|
|
||||||
|
|
||||||
// The companion window is one which will get notified when certain
|
|
||||||
// events happen such as node expansion
|
|
||||||
void SetCompanionWindow(wxWindow* companion) { m_companionWindow = companion; }
|
|
||||||
wxWindow* GetCompanionWindow() const { return m_companionWindow; }
|
|
||||||
|
|
||||||
|
|
||||||
DECLARE_EVENT_TABLE()
|
|
||||||
protected:
|
|
||||||
wxWindow* m_companionWindow;
|
|
||||||
};
|
|
||||||
|
|
||||||
/*
|
|
||||||
* wxTreeCompanionWindow
|
|
||||||
*
|
|
||||||
* A window displaying values associated with tree control items.
|
|
||||||
*/
|
|
||||||
|
|
||||||
class wxTreeCompanionWindow: public wxWindow
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
DECLARE_CLASS(wxTreeCompanionWindow)
|
|
||||||
|
|
||||||
wxTreeCompanionWindow(wxWindow* parent, wxWindowID id = -1,
|
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
|
||||||
const wxSize& sz = wxDefaultSize,
|
|
||||||
long style = 0);
|
|
||||||
|
|
||||||
//// Overrides
|
|
||||||
virtual void DrawItem(wxDC& dc, wxTreeItemId id, const wxRect& rect);
|
|
||||||
|
|
||||||
//// Events
|
|
||||||
void OnPaint(wxPaintEvent& event);
|
|
||||||
void OnScroll(wxScrollWinEvent& event);
|
|
||||||
void OnExpand(wxTreeEvent& event);
|
|
||||||
|
|
||||||
//// Operations
|
|
||||||
|
|
||||||
//// Accessors
|
|
||||||
wxRemotelyScrolledTreeCtrl* GetTreeCtrl() const { return m_treeCtrl; };
|
|
||||||
void SetTreeCtrl(wxRemotelyScrolledTreeCtrl* treeCtrl) { m_treeCtrl = treeCtrl; }
|
|
||||||
|
|
||||||
//// Data members
|
|
||||||
protected:
|
|
||||||
wxRemotelyScrolledTreeCtrl* m_treeCtrl;
|
|
||||||
|
|
||||||
DECLARE_EVENT_TABLE()
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* wxThinSplitterWindow
|
|
||||||
*
|
|
||||||
* Implements a splitter with a less obvious sash
|
|
||||||
* than the usual one.
|
|
||||||
*/
|
|
||||||
|
|
||||||
class wxThinSplitterWindow: public wxSplitterWindow
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
DECLARE_DYNAMIC_CLASS(wxThinSplitterWindow)
|
|
||||||
|
|
||||||
wxThinSplitterWindow(wxWindow* parent, wxWindowID id = -1,
|
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
|
||||||
const wxSize& sz = wxDefaultSize,
|
|
||||||
long style = wxSP_3D | wxCLIP_CHILDREN);
|
|
||||||
|
|
||||||
//// Overrides
|
|
||||||
|
|
||||||
void SizeWindows();
|
|
||||||
// Tests for x, y over sash. Overriding this allows us to increase
|
|
||||||
// the tolerance.
|
|
||||||
bool SashHitTest(int x, int y, int tolerance = 2);
|
|
||||||
void DrawSash(wxDC& dc);
|
|
||||||
|
|
||||||
//// Events
|
|
||||||
|
|
||||||
void OnSize(wxSizeEvent& event);
|
|
||||||
|
|
||||||
//// Operations
|
|
||||||
|
|
||||||
//// Accessors
|
|
||||||
|
|
||||||
//// Data members
|
|
||||||
protected:
|
|
||||||
DECLARE_EVENT_TABLE()
|
|
||||||
};
|
|
||||||
|
|
||||||
/*
|
|
||||||
* wxSplitterScrolledWindow
|
|
||||||
*
|
|
||||||
* This scrolled window is aware of the fact that one of its
|
|
||||||
* children is a splitter window. It passes on its scroll events
|
|
||||||
* (after some processing) to both splitter children for them
|
|
||||||
* scroll appropriately.
|
|
||||||
*/
|
|
||||||
|
|
||||||
class wxSplitterScrolledWindow: public wxScrolledWindow
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
DECLARE_DYNAMIC_CLASS(wxSplitterScrolledWindow)
|
|
||||||
|
|
||||||
wxSplitterScrolledWindow(wxWindow* parent, wxWindowID id = -1,
|
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
|
||||||
const wxSize& sz = wxDefaultSize,
|
|
||||||
long style = 0);
|
|
||||||
|
|
||||||
//// Overrides
|
|
||||||
|
|
||||||
//// Events
|
|
||||||
|
|
||||||
void OnScroll(wxScrollWinEvent& event);
|
|
||||||
void OnSize(wxSizeEvent& event);
|
|
||||||
|
|
||||||
//// Operations
|
|
||||||
|
|
||||||
//// Accessors
|
|
||||||
|
|
||||||
//// Data members
|
|
||||||
public:
|
|
||||||
DECLARE_EVENT_TABLE()
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
||||||
// _SPLITTREE_H_
|
|
@@ -27,7 +27,7 @@ class WXDLLEXPORT wxCDAudio : public wxObject {
|
|||||||
public:
|
public:
|
||||||
typedef enum { PLAYING, PAUSED, STOPPED } CDstatus;
|
typedef enum { PLAYING, PAUSED, STOPPED } CDstatus;
|
||||||
// Table of contents manager
|
// Table of contents manager
|
||||||
class WXDLLEXPORT CDtoc {
|
class CDtoc {
|
||||||
protected:
|
protected:
|
||||||
wxCDtime *tracks_time, *tracks_pos;
|
wxCDtime *tracks_time, *tracks_pos;
|
||||||
wxCDtime total_time;
|
wxCDtime total_time;
|
||||||
|
@@ -22,7 +22,7 @@
|
|||||||
// AIFF codec
|
// AIFF codec
|
||||||
//
|
//
|
||||||
|
|
||||||
class WXDLLEXPORT wxSoundAiff: public wxSoundFileStream {
|
class wxSoundAiff: public wxSoundFileStream {
|
||||||
public:
|
public:
|
||||||
wxSoundAiff(wxInputStream& stream, wxSoundStream& io_sound);
|
wxSoundAiff(wxInputStream& stream, wxSoundStream& io_sound);
|
||||||
wxSoundAiff(wxOutputStream& stream, wxSoundStream& io_sound);
|
wxSoundAiff(wxOutputStream& stream, wxSoundStream& io_sound);
|
||||||
|
@@ -112,7 +112,7 @@ class WXDLLEXPORT wxSoundFormatBase {
|
|||||||
// Base class for sound streams
|
// Base class for sound streams
|
||||||
//
|
//
|
||||||
|
|
||||||
class WXDLLEXPORT wxSoundStream {
|
class wxSoundStream {
|
||||||
public:
|
public:
|
||||||
wxSoundStream();
|
wxSoundStream();
|
||||||
virtual ~wxSoundStream();
|
virtual ~wxSoundStream();
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
#include "wx/defs.h"
|
#include "wx/defs.h"
|
||||||
#include "wx/mmedia/sndbase.h"
|
#include "wx/mmedia/sndbase.h"
|
||||||
|
|
||||||
class WXDLLEXPORT wxSoundStreamCodec: public wxSoundStream {
|
class wxSoundStreamCodec: public wxSoundStream {
|
||||||
public:
|
public:
|
||||||
wxSoundStreamCodec(wxSoundStream& snd_io);
|
wxSoundStreamCodec(wxSoundStream& snd_io);
|
||||||
~wxSoundStreamCodec();
|
~wxSoundStreamCodec();
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
// PCM converter class
|
// PCM converter class
|
||||||
//
|
//
|
||||||
|
|
||||||
class WXDLLEXPORT wxSoundStreamPcm: public wxSoundStreamCodec {
|
class wxSoundStreamPcm: public wxSoundStreamCodec {
|
||||||
public:
|
public:
|
||||||
typedef void (*ConverterType)(const void *buf_in, void *buf_out,
|
typedef void (*ConverterType)(const void *buf_in, void *buf_out,
|
||||||
wxUint32 len);
|
wxUint32 len);
|
||||||
|
@@ -5,8 +5,8 @@
|
|||||||
// Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 2000
|
// Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 2000
|
||||||
// CVSID: $Id$
|
// CVSID: $Id$
|
||||||
// --------------------------------------------------------------------------
|
// --------------------------------------------------------------------------
|
||||||
#ifndef _WX_SNDMSAD_H
|
#ifndef _WX_SNDULAW_H
|
||||||
#define _WX_SNDMSAD_H
|
#define _WX_SNDULAW_H
|
||||||
|
|
||||||
#ifdef __GNUG__
|
#ifdef __GNUG__
|
||||||
#pragma interface "sndmsad.h"
|
#pragma interface "sndmsad.h"
|
||||||
@@ -17,30 +17,26 @@
|
|||||||
#include "wx/mmedia/sndcodec.h"
|
#include "wx/mmedia/sndcodec.h"
|
||||||
#include "wx/mmedia/sndbase.h"
|
#include "wx/mmedia/sndbase.h"
|
||||||
|
|
||||||
WX_DEFINE_EXPORTED_ARRAY(wxInt16, wxMSAdpcmCoeffs);
|
WX_DEFINE_EXPORTED_ARRAY(wxUint16, wxMSAdpcmCoeffs);
|
||||||
|
|
||||||
//
|
//
|
||||||
// MSADPCM format
|
// MSADPCM format
|
||||||
//
|
//
|
||||||
class WXDLLEXPORT wxSoundFormatMSAdpcm: public wxSoundFormatBase {
|
class WXDLLEXPORT wxSoundFormatMSAdpcm: public wxSoundFormatBase {
|
||||||
public:
|
public:
|
||||||
wxSoundFormatMSAdpcm();
|
wxSoundFormatMSAdpcm();
|
||||||
~wxSoundFormatMSAdpcm();
|
~wxSoundFormatMSAdpcm();
|
||||||
|
|
||||||
void SetSampleRate(wxUint32 srate);
|
void SetSampleRate(wxUint32 srate);
|
||||||
wxUint32 GetSampleRate() const;
|
wxUint32 GetSampleRate() const;
|
||||||
|
|
||||||
void SetCoefs(wxInt16 **coefs, wxUint16 ncoefs, wxUint16 coefs_len);
|
void SetSamplesBlock(wxUint16 sampblock);
|
||||||
void GetCoefs(wxInt16 **&coefs, wxUint16& ncoefs,
|
wxUint16 GetSamplesBlock() const;
|
||||||
wxUint16& coefs_len) const;
|
|
||||||
|
|
||||||
void SetBlockSize(wxUint16 block_size);
|
void SetCoefs(wxMSAdpcmCoefs& coefs);
|
||||||
wxUint16 GetBlockSize() const;
|
wxMSAdpcmCoefs& GetCoefs() const;
|
||||||
|
|
||||||
void SetChannels(wxUint16 channels);
|
wxSoundFormatType GetType() const { return wxSOUND_ULAW; }
|
||||||
wxUint16 GetChannels() const;
|
|
||||||
|
|
||||||
wxSoundFormatType GetType() const { return wxSOUND_MSADPCM; }
|
|
||||||
wxSoundFormatBase *Clone() const;
|
wxSoundFormatBase *Clone() const;
|
||||||
|
|
||||||
wxUint32 GetTimeFromBytes(wxUint32 bytes) const;
|
wxUint32 GetTimeFromBytes(wxUint32 bytes) const;
|
||||||
@@ -48,21 +44,19 @@ public:
|
|||||||
|
|
||||||
bool operator !=(const wxSoundFormatBase& frmt2) const;
|
bool operator !=(const wxSoundFormatBase& frmt2) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
wxUint32 m_srate, m_nchannels;
|
wxUint32 m_srate;
|
||||||
wxInt16 **m_coefs;
|
wxMSAdpcmCoefs *m_coefs;
|
||||||
wxUint16 m_ncoefs, m_coefs_len;
|
|
||||||
wxUint16 m_block_size;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//
|
//
|
||||||
// MS ADPCM converter class
|
// MS ADPCM converter class
|
||||||
//
|
//
|
||||||
class WXDLLEXPORT wxSoundRouterStream;
|
class WXDLLEXPORT wxSoundRouterStream;
|
||||||
class WXDLLEXPORT wxSoundStreamMSAdpcm: public wxSoundStreamCodec {
|
class WXDLLEXPORT wxSoundStreamAdpcm: public wxSoundStreamCodec {
|
||||||
public:
|
public:
|
||||||
wxSoundStreamMSAdpcm(wxSoundStream& sndio);
|
wxSoundStreamAdpcm(wxSoundStream& sndio);
|
||||||
~wxSoundStreamMSAdpcm();
|
~wxSoundStreamAdpcm();
|
||||||
|
|
||||||
wxSoundStream& Read(void *buffer, wxUint32 len);
|
wxSoundStream& Read(void *buffer, wxUint32 len);
|
||||||
wxSoundStream& Write(const void *buffer, wxUint32 len);
|
wxSoundStream& Write(const void *buffer, wxUint32 len);
|
||||||
@@ -73,32 +67,6 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
wxSoundRouterStream *m_router;
|
wxSoundRouterStream *m_router;
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
wxInt32 predictor;
|
|
||||||
wxInt16 samp1;
|
|
||||||
wxInt16 samp2;
|
|
||||||
wxInt16 coeff[2];
|
|
||||||
wxInt32 iDelta;
|
|
||||||
} AdpcmState;
|
|
||||||
|
|
||||||
AdpcmState m_state[1];
|
|
||||||
|
|
||||||
bool m_got_header;
|
|
||||||
bool m_stereo;
|
|
||||||
wxInt16 **m_coefs;
|
|
||||||
wxUint16 m_block_size;
|
|
||||||
wxUint16 m_ncoefs;
|
|
||||||
wxUint16 m_next_block;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
wxUint32 DecodeMonoADPCM(const void *in_buffer, void *out_buffer,
|
|
||||||
wxUint32 in_len);
|
|
||||||
wxUint32 DecodeStereoADPCM(const void *in_buffer, void *out_buffer,
|
|
||||||
wxUint32 in_len);
|
|
||||||
void Nibble(wxInt8 nyb,
|
|
||||||
AdpcmState *state,
|
|
||||||
wxInt16 **out_buffer);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
// OSS output class
|
// OSS output class
|
||||||
//
|
//
|
||||||
|
|
||||||
class WXDLLEXPORT wxSoundStreamOSS : public wxSoundStream {
|
class wxSoundStreamOSS : public wxSoundStream {
|
||||||
public:
|
public:
|
||||||
wxSoundStreamOSS(const wxString& dev_name = wxT("/dev/dsp"));
|
wxSoundStreamOSS(const wxString& dev_name = wxT("/dev/dsp"));
|
||||||
~wxSoundStreamOSS();
|
~wxSoundStreamOSS();
|
||||||
|
@@ -42,18 +42,12 @@ protected:
|
|||||||
wxUint32 GetData(void *buffer, wxUint32 len);
|
wxUint32 GetData(void *buffer, wxUint32 len);
|
||||||
wxUint32 PutData(const void *buffer, wxUint32 len);
|
wxUint32 PutData(const void *buffer, wxUint32 len);
|
||||||
|
|
||||||
bool HandleOutputPCM(wxDataInputStream& data, wxUint32 len,
|
bool HandleOutputPCM(wxDataInputStream& data, wxUint16 channels,
|
||||||
wxUint16 channels, wxUint32 sample_fq,
|
wxUint32 sample_fq, wxUint32 byte_p_sec,
|
||||||
wxUint32 byte_p_sec, wxUint16 byte_p_spl,
|
wxUint16 byte_p_spl, wxUint16 bits_p_spl);
|
||||||
wxUint16 bits_p_spl);
|
bool HandleOutputG721(wxDataInputStream& data, wxUint16 channels,
|
||||||
bool HandleOutputMSADPCM(wxDataInputStream& data, wxUint32 len,
|
wxUint32 sample_fq, wxUint32 byte_p_sec,
|
||||||
wxUint16 channels, wxUint32 sample_fq,
|
wxUint16 byte_p_spl, wxUint16 bits_p_spl);
|
||||||
wxUint32 byte_p_sec, wxUint16 byte_p_spl,
|
|
||||||
wxUint16 bits_p_spl);
|
|
||||||
bool HandleOutputG721(wxDataInputStream& data, wxUint32 len,
|
|
||||||
wxUint16 channels, wxUint32 sample_fq,
|
|
||||||
wxUint32 byte_p_sec, wxUint16 byte_p_spl,
|
|
||||||
wxUint16 bits_p_spl);
|
|
||||||
wxSoundFormatBase *HandleInputPCM(wxDataOutputStream& data);
|
wxSoundFormatBase *HandleInputPCM(wxDataOutputStream& data);
|
||||||
wxSoundFormatBase *HandleInputG72X(wxDataOutputStream& data);
|
wxSoundFormatBase *HandleInputG72X(wxDataOutputStream& data);
|
||||||
|
|
||||||
|
@@ -1,8 +0,0 @@
|
|||||||
|
|
||||||
// For /plot.cpp
|
|
||||||
plot_up_bmp BITMAP "wx/plot/plot_up.bmp"
|
|
||||||
plot_dwn_bmp BITMAP "wx/plot/plot_dwn.bmp"
|
|
||||||
plot_enl_bmp BITMAP "wx/plot/plot_enl.bmp"
|
|
||||||
plot_shr_bmp BITMAP "wx/plot/plot_shr.bmp"
|
|
||||||
plot_zin_bmp BITMAP "wx/plot/plot_zin.bmp"
|
|
||||||
plot_zot_bmp BITMAP "wx/plot/plot_zot.bmp"
|
|
@@ -29,9 +29,6 @@
|
|||||||
// and regenerate
|
// and regenerate
|
||||||
|
|
||||||
#define wxSTC_INVALID_POSITION -1
|
#define wxSTC_INVALID_POSITION -1
|
||||||
|
|
||||||
// Define start of Scintilla messages to be greater than all edit (EM_*) messages
|
|
||||||
// as many EM_ messages can be used although that use is deprecated.
|
|
||||||
#define wxSTC_START 2000
|
#define wxSTC_START 2000
|
||||||
#define wxSTC_OPTIONAL_START 3000
|
#define wxSTC_OPTIONAL_START 3000
|
||||||
#define wxSTC_LEXER_START 4000
|
#define wxSTC_LEXER_START 4000
|
||||||
@@ -99,7 +96,7 @@
|
|||||||
#define wxSTC_INDIC0_MASK 32
|
#define wxSTC_INDIC0_MASK 32
|
||||||
#define wxSTC_INDIC1_MASK 64
|
#define wxSTC_INDIC1_MASK 64
|
||||||
#define wxSTC_INDIC2_MASK 128
|
#define wxSTC_INDIC2_MASK 128
|
||||||
#define wxSTC_INDICS_MASK 224
|
#define wxSTC_INDICS_MASK 32 | 64 | 128
|
||||||
|
|
||||||
// PrintColourMode - use same colours as screen.
|
// PrintColourMode - use same colours as screen.
|
||||||
#define wxSTC_PRINT_NORMAL 0
|
#define wxSTC_PRINT_NORMAL 0
|
||||||
@@ -1256,7 +1253,6 @@ private:
|
|||||||
void OnMouseMove(wxMouseEvent& evt);
|
void OnMouseMove(wxMouseEvent& evt);
|
||||||
void OnMouseLeftUp(wxMouseEvent& evt);
|
void OnMouseLeftUp(wxMouseEvent& evt);
|
||||||
void OnMouseRightUp(wxMouseEvent& evt);
|
void OnMouseRightUp(wxMouseEvent& evt);
|
||||||
void OnMouseWheel(wxMouseEvent& evt);
|
|
||||||
void OnChar(wxKeyEvent& evt);
|
void OnChar(wxKeyEvent& evt);
|
||||||
void OnKeyDown(wxKeyEvent& evt);
|
void OnKeyDown(wxKeyEvent& evt);
|
||||||
void OnLoseFocus(wxFocusEvent& evt);
|
void OnLoseFocus(wxFocusEvent& evt);
|
||||||
@@ -1353,26 +1349,10 @@ private:
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifndef SWIG
|
|
||||||
BEGIN_DECLARE_EVENT_TYPES()
|
// Event types
|
||||||
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_CHANGE, 1650)
|
enum {
|
||||||
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_STYLENEEDED, 1651)
|
wxEVT_STC_CHANGE = 1650,
|
||||||
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_CHARADDED, 1652)
|
|
||||||
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_UPDATEUI, 1653)
|
|
||||||
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_SAVEPOINTREACHED, 1654)
|
|
||||||
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_SAVEPOINTLEFT, 1655)
|
|
||||||
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_ROMODIFYATTEMPT, 1656)
|
|
||||||
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_DOUBLECLICK, 1657)
|
|
||||||
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_MODIFIED, 1658)
|
|
||||||
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_KEY, 1659)
|
|
||||||
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_MACRORECORD, 1660)
|
|
||||||
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_MARGINCLICK, 1661)
|
|
||||||
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_NEEDSHOWN, 1662)
|
|
||||||
DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_POSCHANGED, 1663)
|
|
||||||
END_DECLARE_EVENT_TYPES()
|
|
||||||
#else
|
|
||||||
enum {
|
|
||||||
wxEVT_STC_CHANGE,
|
|
||||||
wxEVT_STC_STYLENEEDED,
|
wxEVT_STC_STYLENEEDED,
|
||||||
wxEVT_STC_CHARADDED,
|
wxEVT_STC_CHARADDED,
|
||||||
wxEVT_STC_UPDATEUI,
|
wxEVT_STC_UPDATEUI,
|
||||||
@@ -1386,28 +1366,26 @@ END_DECLARE_EVENT_TYPES()
|
|||||||
wxEVT_STC_MARGINCLICK,
|
wxEVT_STC_MARGINCLICK,
|
||||||
wxEVT_STC_NEEDSHOWN,
|
wxEVT_STC_NEEDSHOWN,
|
||||||
wxEVT_STC_POSCHANGED
|
wxEVT_STC_POSCHANGED
|
||||||
};
|
};
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef SWIG
|
#ifndef SWIG
|
||||||
typedef void (wxEvtHandler::*wxStyledTextEventFunction)(wxStyledTextEvent&);
|
typedef void (wxEvtHandler::*wxStyledTextEventFunction)(wxStyledTextEvent&);
|
||||||
|
|
||||||
#define EVT_STC_CHANGE(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CHANGE, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
|
#define EVT_STC_CHANGE(id, fn) { wxEVT_STC_CHANGE, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
|
||||||
#define EVT_STC_STYLENEEDED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_STYLENEEDED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
|
#define EVT_STC_STYLENEEDED(id, fn) { wxEVT_STC_STYLENEEDED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
|
||||||
#define EVT_STC_CHARADDED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CHARADDED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
|
#define EVT_STC_CHARADDED(id, fn) { wxEVT_STC_CHARADDED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
|
||||||
#define EVT_STC_UPDATEUI(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_UPDATEUI, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
|
#define EVT_STC_UPDATEUI(id, fn) { wxEVT_STC_UPDATEUI, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
|
||||||
#define EVT_STC_SAVEPOINTREACHED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_SAVEPOINTREACHED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
|
#define EVT_STC_SAVEPOINTREACHED(id, fn) { wxEVT_STC_SAVEPOINTREACHED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
|
||||||
#define EVT_STC_SAVEPOINTLEFT(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_SAVEPOINTLEFT, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
|
#define EVT_STC_SAVEPOINTLEFT(id, fn) { wxEVT_STC_SAVEPOINTLEFT, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
|
||||||
#define EVT_STC_ROMODIFYATTEMPT(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_ROMODIFYATTEMPT, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
|
#define EVT_STC_ROMODIFYATTEMPT(id, fn) { wxEVT_STC_ROMODIFYATTEMPT, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
|
||||||
#define EVT_STC_DOUBLECLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DOUBLECLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
|
#define EVT_STC_DOUBLECLICK(id, fn) { wxEVT_STC_DOUBLECLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
|
||||||
#define EVT_STC_MODIFIED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MODIFIED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
|
#define EVT_STC_MODIFIED(id, fn) { wxEVT_STC_MODIFIED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
|
||||||
#define EVT_STC_KEY(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_KEY, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
|
#define EVT_STC_KEY(id, fn) { wxEVT_STC_KEY, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
|
||||||
#define EVT_STC_MACRORECORD(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MACRORECORD, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
|
#define EVT_STC_MACRORECORD(id, fn) { wxEVT_STC_MACRORECORD, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
|
||||||
#define EVT_STC_MARGINCLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MARGINCLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
|
#define EVT_STC_MARGINCLICK(id, fn) { wxEVT_STC_MARGINCLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
|
||||||
#define EVT_STC_NEEDSHOWN(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_NEEDSHOWN, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
|
#define EVT_STC_NEEDSHOWN(id, fn) { wxEVT_STC_NEEDSHOWN, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
|
||||||
#define EVT_STC_POSCHANGED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_POSCHANGED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
|
#define EVT_STC_POSCHANGED(id, fn) { wxEVT_STC_POSCHANGED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -1,49 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xh_all.h
|
|
||||||
// Purpose: includes all xh_*.h files
|
|
||||||
// Author: Vaclav Slavik
|
|
||||||
// Created: 2000/03/05
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Vaclav Slavik
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XH_ALL_H_
|
|
||||||
#define _WX_XH_ALL_H_
|
|
||||||
|
|
||||||
|
|
||||||
// Existing handlers:
|
|
||||||
|
|
||||||
#include "wx/xrc/xh_menu.h"
|
|
||||||
#include "wx/xrc/xh_panel.h"
|
|
||||||
#include "wx/xrc/xh_dlg.h"
|
|
||||||
#include "wx/xrc/xh_bttn.h"
|
|
||||||
#include "wx/xrc/xh_chckb.h"
|
|
||||||
#include "wx/xrc/xh_gauge.h"
|
|
||||||
#include "wx/xrc/xh_html.h"
|
|
||||||
#include "wx/xrc/xh_spin.h"
|
|
||||||
#include "wx/xrc/xh_sttxt.h"
|
|
||||||
#include "wx/xrc/xh_slidr.h"
|
|
||||||
#include "wx/xrc/xh_radbt.h"
|
|
||||||
#include "wx/xrc/xh_radbx.h"
|
|
||||||
#include "wx/xrc/xh_combo.h"
|
|
||||||
#include "wx/xrc/xh_chckl.h"
|
|
||||||
#include "wx/xrc/xh_choic.h"
|
|
||||||
#include "wx/xrc/xh_sizer.h"
|
|
||||||
#include "wx/xrc/xh_stbmp.h"
|
|
||||||
#include "wx/xrc/xh_notbk.h"
|
|
||||||
#include "wx/xrc/xh_text.h"
|
|
||||||
#include "wx/xrc/xh_listb.h"
|
|
||||||
#include "wx/xrc/xh_toolb.h"
|
|
||||||
#include "wx/xrc/xh_bmpbt.h"
|
|
||||||
#include "wx/xrc/xh_stbox.h"
|
|
||||||
#include "wx/xrc/xh_scrol.h"
|
|
||||||
#include "wx/xrc/xh_tree.h"
|
|
||||||
#include "wx/xrc/xh_cald.h"
|
|
||||||
#include "wx/xrc/xh_listc.h"
|
|
||||||
#include "wx/xrc/xh_stlin.h"
|
|
||||||
#include "wx/xrc/xh_bmp.h"
|
|
||||||
#include "wx/xrc/xh_unkwn.h"
|
|
||||||
#include "wx/xrc/xh_frame.h"
|
|
||||||
|
|
||||||
#endif // _WX_XMLRES_H_
|
|
@@ -1,38 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xh_bmp.h
|
|
||||||
// Purpose: XML resource handler for wxBitmap and wxIcon
|
|
||||||
// Author: Vaclav Slavik
|
|
||||||
// Created: 2000/09/00
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Vaclav Slavik
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XH_BMP_H_
|
|
||||||
#define _WX_XH_BMP_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xh_bmp.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
|
||||||
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxBitmapXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxBitmapXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
};
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxIconXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxIconXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#endif // _WX_XH_BMP_H_
|
|
@@ -1,30 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xh_bmpbt.h
|
|
||||||
// Purpose: XML resource handler for bitmap buttons
|
|
||||||
// Author: Brian Gavin
|
|
||||||
// Created: 2000/03/05
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Brian Gavin
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XH_BMPBT_H_
|
|
||||||
#define _WX_XH_BMPBT_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xh_bmpbt.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
|
||||||
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxBitmapButtonXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxBitmapButtonXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#endif // _WX_XH_BMPBT_H_
|
|
@@ -1,29 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xh_bttn.h
|
|
||||||
// Purpose: XML resource handler for buttons
|
|
||||||
// Author: Vaclav Slavik
|
|
||||||
// Created: 2000/03/05
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Vaclav Slavik
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XH_BTTN_H_
|
|
||||||
#define _WX_XH_BTTN_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xh_bttn.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxButtonXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxButtonXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#endif // _WX_XH_BTTN_H_
|
|
@@ -1,29 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xh_cald.h
|
|
||||||
// Purpose: XML resource handler for wxCalendarCtrl
|
|
||||||
// Author: Brian Gavin
|
|
||||||
// Created: 2000/09/09
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Brian Gavin
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XH_CALD_H_
|
|
||||||
#define _WX_XH_CALD_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xh_cald.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxCalendarCtrlXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxCalendarCtrlXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#endif // _WX_XH_CALD_H_
|
|
@@ -1,35 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xh_chckb.h
|
|
||||||
// Purpose: XML resource handler for wxCheckBox
|
|
||||||
// Author: Bob Mitchell
|
|
||||||
// Created: 2000/03/21
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Bob Mitchell and Verant Interactive
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XH_CHCKB_H_
|
|
||||||
#define _WX_XH_CHCKB_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xh_chckb.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
|
||||||
#include "wx/defs.h"
|
|
||||||
|
|
||||||
#if wxUSE_CHECKBOX
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxCheckBoxXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxCheckBoxXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#endif // _WX_XH_CHECKBOX_H_
|
|
||||||
|
|
@@ -1,33 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xh_chckl.h
|
|
||||||
// Purpose: XML resource handler for wxCheckListBox
|
|
||||||
// Author: Bob Mitchell
|
|
||||||
// Created: 2000/03/21
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Bob Mitchell and Verant Interactive
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XH_CHCKL_H_
|
|
||||||
#define _WX_XH_CHCKL_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xh_chckl.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxCheckListXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxCheckListXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
private:
|
|
||||||
bool m_insideBox;
|
|
||||||
wxArrayString strList;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif // _WX_XH_CHECKLIST_H_
|
|
@@ -1,32 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xh_choic.h
|
|
||||||
// Purpose: XML resource handler for wxChoice
|
|
||||||
// Author: Bob Mitchell
|
|
||||||
// Created: 2000/03/21
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Bob Mitchell and Verant Interactive
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XH_CHOIC_H_
|
|
||||||
#define _WX_XH_CHOIC_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xh_choic.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxChoiceXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxChoiceXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
private:
|
|
||||||
bool m_insideBox;
|
|
||||||
wxArrayString strList;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#endif // _WX_XH_CHOIC_H_
|
|
@@ -1,35 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xh_combo.h
|
|
||||||
// Purpose: XML resource handler for wxComboBox
|
|
||||||
// Author: Bob Mitchell
|
|
||||||
// Created: 2000/03/21
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Bob Mitchell and Verant Interactive
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XH_COMBO_H_
|
|
||||||
#define _WX_XH_COMBO_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xh_combo.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
|
||||||
|
|
||||||
#if wxUSE_COMBOBOX
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxComboBoxXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxComboBoxXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
private:
|
|
||||||
bool m_insideBox;
|
|
||||||
wxArrayString strList;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif // _WX_XH_COMBO_H_
|
|
@@ -1,29 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xh_dlg.h
|
|
||||||
// Purpose: XML resource handler for dialogs
|
|
||||||
// Author: Vaclav Slavik
|
|
||||||
// Created: 2000/03/05
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Vaclav Slavik
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XH_DLG_H_
|
|
||||||
#define _WX_XH_DLG_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xh_dlg.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxDialogXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxDialogXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#endif // _WX_XH_DLG_H_
|
|
@@ -1,29 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xh_frame.h
|
|
||||||
// Purpose: XML resource handler for dialogs
|
|
||||||
// Author: Vaclav Slavik & Aleks.
|
|
||||||
// Created: 2000/03/05
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Vaclav Slavik
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XH_FRAME_H_
|
|
||||||
#define _WX_XH_FRAME_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xh_frame.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxFrameXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxFrameXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#endif // _WX_XH_FRAME_H_
|
|
@@ -1,40 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xh_gauge.h
|
|
||||||
// Purpose: XML resource handler for wxGauge
|
|
||||||
// Author: Bob Mitchell
|
|
||||||
// Created: 2000/03/21
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Bob Mitchell and Verant Interactive
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XH_GAUGE_H_
|
|
||||||
#define _WX_XH_GAUGE_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xh_gauge.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/defs.h"
|
|
||||||
|
|
||||||
#if wxUSE_GAUGE
|
|
||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
|
||||||
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxGaugeXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
wxGAUGE_DEFAULT_RANGE = 100
|
|
||||||
};
|
|
||||||
|
|
||||||
public:
|
|
||||||
wxGaugeXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif // _WX_XH_GAUGE_H_
|
|
@@ -1,34 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xh_html.h
|
|
||||||
// Purpose: XML resource handler for wxHtmlWindow
|
|
||||||
// Author: Bob Mitchell
|
|
||||||
// Created: 2000/03/21
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Bob Mitchell and Verant Interactive
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XH_HTML_H_
|
|
||||||
#define _WX_XH_HTML_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xh_html.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
|
||||||
|
|
||||||
#include "wx/defs.h"
|
|
||||||
|
|
||||||
#if wxUSE_HTML
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxHtmlWindowXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxHtmlWindowXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif // _WX_XH_SLIDER_H_
|
|
@@ -1,35 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xh_listb.h
|
|
||||||
// Purpose: XML resource handler for wxListbox
|
|
||||||
// Author: Bob Mitchell & Vaclav Slavik
|
|
||||||
// Created: 2000/07/29
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Bob Mitchell & Vaclav Slavik
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XH_LISTB_H_
|
|
||||||
#define _WX_XH_LISTB_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xh_listb.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
|
||||||
|
|
||||||
#if wxUSE_LISTBOX
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxListBoxXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxListBoxXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
private:
|
|
||||||
bool m_insideBox;
|
|
||||||
wxArrayString strList;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif // _WX_XH_LISTB_H_
|
|
@@ -1,29 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xh_listc.h
|
|
||||||
// Purpose: XML resource handler for wxCalendarCtrl
|
|
||||||
// Author: Brian Gavin
|
|
||||||
// Created: 2000/09/09
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Brian Gavin
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XH_LISTC_H_
|
|
||||||
#define _WX_XH_LISTC_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xh_listc.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxListCtrlXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxListCtrlXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#endif // _WX_XH_LISTC_H_
|
|
@@ -1,40 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xh_menu.h
|
|
||||||
// Purpose: XML resource handler for menus/menubars
|
|
||||||
// Author: Vaclav Slavik
|
|
||||||
// Created: 2000/03/05
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Vaclav Slavik
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XH_MENU_H_
|
|
||||||
#define _WX_XH_MENU_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xh_menu.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxMenuXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxMenuXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
|
|
||||||
private:
|
|
||||||
bool m_insideMenu;
|
|
||||||
};
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxMenuBarXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxMenuBarXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#endif // _WX_XH_MENU_H_
|
|
@@ -1,37 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xh_notbk.h
|
|
||||||
// Purpose: XML resource handler for wxNotebook
|
|
||||||
// Author: Vaclav Slavik
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Vaclav Slavik
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XH_NOTBK_H_
|
|
||||||
#define _WX_XH_NOTBK_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xh_notbk.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
|
||||||
|
|
||||||
#if wxUSE_NOTEBOOK
|
|
||||||
|
|
||||||
class WXDLLEXPORT wxNotebook;
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxNotebookXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxNotebookXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
|
|
||||||
private:
|
|
||||||
bool m_isInside;
|
|
||||||
wxNotebook *m_notebook;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif // _WX_XH_NOTBK_H_
|
|
@@ -1,29 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xh_panel.h
|
|
||||||
// Purpose: XML resource handler for panels
|
|
||||||
// Author: Vaclav Slavik
|
|
||||||
// Created: 2000/03/05
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Vaclav Slavik
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XH_PANEL_H_
|
|
||||||
#define _WX_XH_PANEL_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xh_panel.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxPanelXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxPanelXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#endif // _WX_XH_PANEL_H_
|
|
@@ -1,33 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xh_radbt.h
|
|
||||||
// Purpose: XML resource handler for radio buttons
|
|
||||||
// Author: Bob Mitchell
|
|
||||||
// Created: 2000/03/21
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Bob Mitchell and Verant Interactive
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XH_RADBT_H_
|
|
||||||
#define _WX_XH_RADBT_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xh_radbt.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
|
||||||
#include "wx/defs.h"
|
|
||||||
|
|
||||||
#if wxUSE_RADIOBOX
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxRadioButtonXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxRadioButtonXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif // _WX_XH_RADIOBUTTON_H_
|
|
@@ -1,35 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xh_radbx.h
|
|
||||||
// Purpose: XML resource handler for radio box
|
|
||||||
// Author: Bob Mitchell
|
|
||||||
// Created: 2000/03/21
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Bob Mitchell and Verant Interactive
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XH_RADBX_H_
|
|
||||||
#define _WX_XH_RADBX_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xh_radbx.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
|
||||||
|
|
||||||
#if wxUSE_RADIOBOX
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxRadioBoxXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxRadioBoxXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
private:
|
|
||||||
bool m_insideBox;
|
|
||||||
wxArrayString strList;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif // _WX_XH_RADBX_H_
|
|
@@ -1,39 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xh_scrol.h
|
|
||||||
// Purpose: XML resource handler for wxScrollBar
|
|
||||||
// Author: Brian Gavin
|
|
||||||
// Created: 2000/09/09
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Brian Gavin
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XH_SCROL_H_
|
|
||||||
#define _WX_XH_SCROL_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xh_scrol.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
|
||||||
#include "wx/defs.h"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxScrollBarXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
wxSL_DEFAULT_VALUE = 0,
|
|
||||||
wxSL_DEFAULT_MIN = 0,
|
|
||||||
wxSL_DEFAULT_MAX = 100
|
|
||||||
};
|
|
||||||
|
|
||||||
public:
|
|
||||||
wxScrollBarXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#endif // _WX_XH_SCROL_H_
|
|
@@ -1,38 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xh_sizer.h
|
|
||||||
// Purpose: XML resource handler for wxBoxSizer
|
|
||||||
// Author: Vaclav Slavik
|
|
||||||
// Created: 2000/04/24
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Vaclav Slavik
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XH_SIZER_H_
|
|
||||||
#define _WX_XH_SIZER_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xh_sizer.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
|
||||||
|
|
||||||
|
|
||||||
class WXDLLEXPORT wxSizer;
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxSizerXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxSizerXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
|
|
||||||
private:
|
|
||||||
bool m_isInside;
|
|
||||||
wxSizer *m_parentSizer;
|
|
||||||
|
|
||||||
bool IsSizerNode(wxXmlNode *node);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#endif // _WX_XH_BOXSIZER_H_
|
|
@@ -1,40 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xh_slidr.h
|
|
||||||
// Purpose: XML resource handler for wxSlider
|
|
||||||
// Author: Bob Mitchell
|
|
||||||
// Created: 2000/03/21
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Bob Mitchell and Verant Interactive
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XH_SLIDR_H_
|
|
||||||
#define _WX_XH_SLIDR_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xh_slidr.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
|
||||||
#include "wx/defs.h"
|
|
||||||
|
|
||||||
#if wxUSE_SLIDER
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxSliderXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
wxSL_DEFAULT_VALUE = 0,
|
|
||||||
wxSL_DEFAULT_MIN = 0,
|
|
||||||
wxSL_DEFAULT_MAX = 100
|
|
||||||
};
|
|
||||||
|
|
||||||
public:
|
|
||||||
wxSliderXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif // _WX_XH_SLIDER_H_
|
|
@@ -1,55 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xh_spin.h
|
|
||||||
// Purpose: XML resource handler for wxSpinButton
|
|
||||||
// Author: Bob Mitchell
|
|
||||||
// Created: 2000/03/21
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Bob Mitchell and Verant Interactive
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XH_SPIN_H_
|
|
||||||
#define _WX_XH_SPIN_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xh_spin.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
|
||||||
#include "wx/defs.h"
|
|
||||||
|
|
||||||
#if wxUSE_SPINBTN
|
|
||||||
class WXXMLDLLEXPORT wxSpinButtonXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
wxSP_DEFAULT_VALUE = 0,
|
|
||||||
wxSP_DEFAULT_MIN = 0,
|
|
||||||
wxSP_DEFAULT_MAX = 100
|
|
||||||
};
|
|
||||||
|
|
||||||
public:
|
|
||||||
wxSpinButtonXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if wxUSE_SPINCTRL
|
|
||||||
class WXXMLDLLEXPORT wxSpinCtrlXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
wxSP_DEFAULT_VALUE = 0,
|
|
||||||
wxSP_DEFAULT_MIN = 0,
|
|
||||||
wxSP_DEFAULT_MAX = 100
|
|
||||||
};
|
|
||||||
|
|
||||||
public:
|
|
||||||
wxSpinCtrlXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif // _WX_XH_SPIN_H_
|
|
@@ -1,30 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xh_stbmp.h
|
|
||||||
// Purpose: XML resource handler for wxStaticBitmap
|
|
||||||
// Author: Vaclav Slavik
|
|
||||||
// Created: 2000/04/22
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Vaclav Slavik
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XH_STBMP_H_
|
|
||||||
#define _WX_XH_STBMP_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xh_stbmp.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
|
||||||
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxStaticBitmapXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxStaticBitmapXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#endif // _WX_XH_STBMP_H_
|
|
@@ -1,30 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xh_stbox.h
|
|
||||||
// Purpose: XML resource handler for wxStaticBox
|
|
||||||
// Author: Brian Gavin
|
|
||||||
// Created: 2000/09/00
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Brian Gavin
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XH_STBOX_H_
|
|
||||||
#define _WX_XH_STBOX_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xh_stbox.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
|
||||||
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxStaticBoxXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxStaticBoxXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#endif // _WX_XH_STBOX_H_
|
|
@@ -1,32 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xh_stlin.h
|
|
||||||
// Purpose: XML resource handler for wxStaticLine
|
|
||||||
// Author: Vaclav Slavik
|
|
||||||
// Created: 2000/09/00
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Vaclav Slavik
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XH_STLIN_H_
|
|
||||||
#define _WX_XH_STLIN_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xh_stlin.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
|
||||||
|
|
||||||
#if wxUSE_STATLINE
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxStaticLineXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxStaticLineXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif // _WX_XH_STLIN_H_
|
|
@@ -1,30 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xh_sttxt.h
|
|
||||||
// Purpose: XML resource handler for wxStaticBitmap
|
|
||||||
// Author: Bob Mitchell
|
|
||||||
// Created: 2000/03/21
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Bob Mitchell
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XH_STTXT_H_
|
|
||||||
#define _WX_XH_STTXT_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xh_sttxt.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
|
||||||
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxStaticTextXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxStaticTextXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#endif // _WX_XH_STBMP_H_
|
|
@@ -1,30 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xh_text.h
|
|
||||||
// Purpose: XML resource handler for wxTextCtrl
|
|
||||||
// Author: Aleksandras Gluchovas
|
|
||||||
// Created: 2000/03/21
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Aleksandras Gluchovas
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XH_TEXT_H_
|
|
||||||
#define _WX_XH_TEXT_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xh_text.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
|
||||||
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxTextCtrlXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxTextCtrlXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#endif // _WX_XH_TEXT_H_
|
|
@@ -1,38 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xh_toolb.h
|
|
||||||
// Purpose: XML resource handler for wxBoxSizer
|
|
||||||
// Author: Vaclav Slavik
|
|
||||||
// Created: 2000/08/11
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Vaclav Slavik
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XH_TOOLB_H_
|
|
||||||
#define _WX_XH_TOOLB_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xh_toolb.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
|
||||||
|
|
||||||
#if wxUSE_TOOLBAR
|
|
||||||
|
|
||||||
class WXDLLEXPORT wxToolBar;
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxToolBarXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxToolBarXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
|
|
||||||
private:
|
|
||||||
bool m_isInside;
|
|
||||||
wxToolBar *m_toolbar;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif // _WX_XH_TOOLBAR_H_
|
|
@@ -1,29 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xh_tree.h
|
|
||||||
// Purpose: XML resource handler for wxTreeCtrl
|
|
||||||
// Author: Brian Gavin
|
|
||||||
// Created: 2000/09/09
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Brian Gavin
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XH_TREE_H_
|
|
||||||
#define _WX_XH_TREE_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xh_tree.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxTreeCtrlXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxTreeCtrlXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#endif // _WX_XH_TREE_H_
|
|
@@ -1,30 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xh_unkwn.h
|
|
||||||
// Purpose: XML resource handler for unkown widget
|
|
||||||
// Author: Vaclav Slavik
|
|
||||||
// Created: 2000/03/05
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Vaclav Slavik
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XH_UNKWN_H_
|
|
||||||
#define _WX_XH_UNKWN_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xh_unkwn.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
|
||||||
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxUnknownWidgetXmlHandler : public wxXmlResourceHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxUnknownWidgetXmlHandler();
|
|
||||||
virtual wxObject *DoCreateResource();
|
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#endif // _WX_XH_UNKWN_H_
|
|
@@ -1,264 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xml.h
|
|
||||||
// Purpose: wxXmlDocument - XML parser & data holder class
|
|
||||||
// Author: Vaclav Slavik
|
|
||||||
// Created: 2000/03/05
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Vaclav Slavik
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XML_H_
|
|
||||||
#define _WX_XML_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xml.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/defs.h"
|
|
||||||
#include "wx/string.h"
|
|
||||||
#include "wx/object.h"
|
|
||||||
#include "wx/list.h"
|
|
||||||
|
|
||||||
#ifdef WXXMLISDLL
|
|
||||||
#define WXXMLDLLEXPORT WXDLLEXPORT
|
|
||||||
#else
|
|
||||||
#define WXXMLDLLEXPORT
|
|
||||||
#endif
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxXmlNode;
|
|
||||||
class WXXMLDLLEXPORT wxXmlProperty;
|
|
||||||
class WXXMLDLLEXPORT wxXmlDocument;
|
|
||||||
class WXXMLDLLEXPORT wxXmlIOHandler;
|
|
||||||
class WXDLLEXPORT wxInputStream;
|
|
||||||
class WXDLLEXPORT wxOutputStream;
|
|
||||||
|
|
||||||
|
|
||||||
// Represents XML node type.
|
|
||||||
enum wxXmlNodeType
|
|
||||||
{
|
|
||||||
// note: values are synchronized with xmlElementType from libxml
|
|
||||||
wxXML_ELEMENT_NODE = 1,
|
|
||||||
wxXML_ATTRIBUTE_NODE = 2,
|
|
||||||
wxXML_TEXT_NODE = 3,
|
|
||||||
wxXML_CDATA_SECTION_NODE = 4,
|
|
||||||
wxXML_ENTITY_REF_NODE = 5,
|
|
||||||
wxXML_ENTITY_NODE = 6,
|
|
||||||
wxXML_PI_NODE = 7,
|
|
||||||
wxXML_COMMENT_NODE = 8,
|
|
||||||
wxXML_DOCUMENT_NODE = 9,
|
|
||||||
wxXML_DOCUMENT_TYPE_NODE = 10,
|
|
||||||
wxXML_DOCUMENT_FRAG_NODE = 11,
|
|
||||||
wxXML_NOTATION_NODE = 12,
|
|
||||||
wxXML_HTML_DOCUMENT_NODE = 13
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
// Types of XML files:
|
|
||||||
|
|
||||||
enum wxXmlIOType
|
|
||||||
{
|
|
||||||
wxXML_IO_AUTO = 0, // detect it automatically
|
|
||||||
wxXML_IO_EXPAT, // use Expat to load from text/xml document
|
|
||||||
wxXML_IO_TEXT_OUTPUT, // generic saver into text/xml
|
|
||||||
wxXML_IO_BIN, // save in binary uncompressed proprietary format
|
|
||||||
wxXML_IO_BINZ // svae in binary zlib-compressed proprietary format
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
// Represents node property(ies).
|
|
||||||
// Example: in <img src="hello.gif" id="3"/> "src" is property with value
|
|
||||||
// "hello.gif" and "id" is prop. with value "3".
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxXmlProperty
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxXmlProperty() : m_next(NULL) {}
|
|
||||||
wxXmlProperty(const wxString& name, const wxString& value,
|
|
||||||
wxXmlProperty *next)
|
|
||||||
: m_name(name), m_value(value), m_next(next) {}
|
|
||||||
~wxXmlProperty() { delete m_next; }
|
|
||||||
|
|
||||||
wxString GetName() const { return m_name; }
|
|
||||||
wxString GetValue() const { return m_value; }
|
|
||||||
wxXmlProperty *GetNext() const { return m_next; }
|
|
||||||
|
|
||||||
void SetName(const wxString& name) { m_name = name; }
|
|
||||||
void SetValue(const wxString& value) { m_value = value; }
|
|
||||||
void SetNext(wxXmlProperty *next) { m_next = next; }
|
|
||||||
|
|
||||||
private:
|
|
||||||
wxString m_name;
|
|
||||||
wxString m_value;
|
|
||||||
wxXmlProperty *m_next;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Represents node in XML document. Node has name and may have content
|
|
||||||
// and properties. Most common node types are wxXML_TEXT_NODE (name and props
|
|
||||||
// are irrelevant) and wxXML_ELEMENT_NODE (e.g. in <title>hi</title> there is
|
|
||||||
// element with name="title", irrelevant content and one child (wxXML_TEXT_NODE
|
|
||||||
// with content="hi").
|
|
||||||
//
|
|
||||||
// If wxUSE_UNICODE is 0, all strings are encoded in UTF-8 encoding (same as
|
|
||||||
// ASCII for characters 0-127). You can use wxMBConvUTF8 to convert then to
|
|
||||||
// desired encoding:
|
|
||||||
//
|
|
||||||
// wxCSConv myConv("iso8859-2");
|
|
||||||
// wxString s(cMB2WC(node->GetContent().c_str()), myConv);
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxXmlNode
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxXmlNode() : m_properties(NULL), m_parent(NULL),
|
|
||||||
m_children(NULL), m_next(NULL) {}
|
|
||||||
wxXmlNode(wxXmlNode *parent,wxXmlNodeType type,
|
|
||||||
const wxString& name, const wxString& content,
|
|
||||||
wxXmlProperty *props, wxXmlNode *next);
|
|
||||||
~wxXmlNode() { delete m_properties; delete m_next; delete m_children; }
|
|
||||||
|
|
||||||
// copy ctor & operator=. Note that this does NOT copy syblings
|
|
||||||
// and parent pointer, i.e. m_parent and m_next will be NULL
|
|
||||||
// after using copy ctor and are never unmodified by operator=.
|
|
||||||
// On the other hand, it DOES copy children and properties.
|
|
||||||
wxXmlNode(const wxXmlNode& node);
|
|
||||||
wxXmlNode& operator=(const wxXmlNode& node);
|
|
||||||
|
|
||||||
// user-friendly creation:
|
|
||||||
wxXmlNode(wxXmlNodeType type, const wxString& name,
|
|
||||||
const wxString& content = wxEmptyString);
|
|
||||||
void AddChild(wxXmlNode *child);
|
|
||||||
void InsertChild(wxXmlNode *child, wxXmlNode *before_node);
|
|
||||||
bool RemoveChild(wxXmlNode *child);
|
|
||||||
void AddProperty(const wxString& name, const wxString& value);
|
|
||||||
bool DeleteProperty(const wxString& name);
|
|
||||||
|
|
||||||
// access methods:
|
|
||||||
wxXmlNodeType GetType() const { return m_type; }
|
|
||||||
wxString GetName() const { return m_name; }
|
|
||||||
wxString GetContent() const { return m_content; }
|
|
||||||
|
|
||||||
wxXmlNode *GetParent() const { return m_parent; }
|
|
||||||
wxXmlNode *GetNext() const { return m_next; }
|
|
||||||
wxXmlNode *GetChildren() const { return m_children; }
|
|
||||||
|
|
||||||
wxXmlProperty *GetProperties() const { return m_properties; }
|
|
||||||
bool GetPropVal(const wxString& propName, wxString *value) const;
|
|
||||||
wxString GetPropVal(const wxString& propName,
|
|
||||||
const wxString& defaultVal) const;
|
|
||||||
bool HasProp(const wxString& propName) const;
|
|
||||||
|
|
||||||
void SetType(wxXmlNodeType type) { m_type = type; }
|
|
||||||
void SetName(const wxString& name) { m_name = name; }
|
|
||||||
void SetContent(const wxString& con) { m_content = con; }
|
|
||||||
|
|
||||||
void SetParent(wxXmlNode *parent) { m_parent = parent; }
|
|
||||||
void SetNext(wxXmlNode *next) { m_next = next; }
|
|
||||||
void SetChildren(wxXmlNode *child) { m_children = child; }
|
|
||||||
|
|
||||||
void SetProperties(wxXmlProperty *prop) { m_properties = prop; }
|
|
||||||
void AddProperty(wxXmlProperty *prop);
|
|
||||||
|
|
||||||
private:
|
|
||||||
wxXmlNodeType m_type;
|
|
||||||
wxString m_name;
|
|
||||||
wxString m_content;
|
|
||||||
wxXmlProperty *m_properties;
|
|
||||||
wxXmlNode *m_parent, *m_children, *m_next;
|
|
||||||
|
|
||||||
void DoCopy(const wxXmlNode& node);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// This class holds XML data/document as parsed by libxml. Note that
|
|
||||||
// internal representation is independant on libxml and you can use
|
|
||||||
// it without libxml (see Load/SaveBinary).
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxXmlDocument : public wxObject
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxXmlDocument() : wxObject(), m_version(wxT("1.0")), m_root(NULL) {}
|
|
||||||
wxXmlDocument(const wxString& filename,
|
|
||||||
wxXmlIOType io_type = wxXML_IO_AUTO);
|
|
||||||
wxXmlDocument(wxInputStream& stream,
|
|
||||||
wxXmlIOType io_type = wxXML_IO_AUTO);
|
|
||||||
~wxXmlDocument() { delete m_root; }
|
|
||||||
|
|
||||||
wxXmlDocument(const wxXmlDocument& doc);
|
|
||||||
wxXmlDocument& operator=(const wxXmlDocument& doc);
|
|
||||||
|
|
||||||
// Parses .xml file and loads data. Returns TRUE on success, FALSE
|
|
||||||
// otherwise.
|
|
||||||
// NOTE: Any call to this method will result into linking against libxml
|
|
||||||
// and app's binary size will grow by ca. 250kB
|
|
||||||
bool Load(const wxString& filename, wxXmlIOType io_type = wxXML_IO_AUTO);
|
|
||||||
bool Load(wxInputStream& stream, wxXmlIOType io_type = wxXML_IO_AUTO);
|
|
||||||
|
|
||||||
// Saves document as .xml file.
|
|
||||||
bool Save(const wxString& filename,
|
|
||||||
wxXmlIOType io_type = wxXML_IO_TEXT_OUTPUT) const;
|
|
||||||
bool Save(wxOutputStream& stream,
|
|
||||||
wxXmlIOType io_type = wxXML_IO_TEXT_OUTPUT) const;
|
|
||||||
|
|
||||||
bool IsOk() const { return m_root != NULL; }
|
|
||||||
|
|
||||||
// Returns root node of the document.
|
|
||||||
wxXmlNode *GetRoot() const { return m_root; }
|
|
||||||
|
|
||||||
// Returns version of document (may be empty).
|
|
||||||
wxString GetVersion() const { return m_version; }
|
|
||||||
// Returns encoding of document (may be empty).
|
|
||||||
// Note: this is the encoding original fail was saved in, *not* the
|
|
||||||
// encoding of in-memory representation! Data in wxXmlNode are always
|
|
||||||
// stored in wchar_t (in Unicode build) or UTF-8 encoded
|
|
||||||
// (if wxUSE_UNICODE is 0).
|
|
||||||
wxString GetEncoding() const { return m_encoding; }
|
|
||||||
|
|
||||||
// Write-access methods:
|
|
||||||
void SetRoot(wxXmlNode *node) { delete m_root ; m_root = node; }
|
|
||||||
void SetVersion(const wxString& version) { m_version = version; }
|
|
||||||
void SetEncoding(const wxString& encoding) { m_encoding = encoding; }
|
|
||||||
|
|
||||||
static void AddHandler(wxXmlIOHandler *handler);
|
|
||||||
static void CleanUpHandlers();
|
|
||||||
static void InitStandardHandlers();
|
|
||||||
|
|
||||||
protected:
|
|
||||||
static wxList *sm_handlers;
|
|
||||||
|
|
||||||
private:
|
|
||||||
wxString m_version, m_encoding;
|
|
||||||
wxXmlNode *m_root;
|
|
||||||
|
|
||||||
void DoCopy(const wxXmlDocument& doc);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// wxXmlIOHandler takes care of loading and/or saving XML data.
|
|
||||||
// see xmlio.h for available handlers
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxXmlIOHandler : public wxObject
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxXmlIOHandler() {}
|
|
||||||
|
|
||||||
virtual wxXmlIOType GetType() = 0;
|
|
||||||
virtual bool CanLoad(wxInputStream& stream) = 0;
|
|
||||||
virtual bool CanSave() = 0;
|
|
||||||
|
|
||||||
virtual bool Load(wxInputStream& stream, wxXmlDocument& doc) = 0;
|
|
||||||
virtual bool Save(wxOutputStream& stream, const wxXmlDocument& doc) = 0;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void wxXmlInitXmlModule();
|
|
||||||
|
|
||||||
#endif // _WX_XML_H_
|
|
@@ -1,85 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xmlio.h
|
|
||||||
// Purpose: wxXmlIOHandler - XML I/O classes
|
|
||||||
// Author: Vaclav Slavik
|
|
||||||
// Created: 2000/07/24
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Vaclav Slavik
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XMLIO_H_
|
|
||||||
#define _WX_XMLIO_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xmlio.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/defs.h"
|
|
||||||
#include "wx/string.h"
|
|
||||||
#include "wx/xrc/xml.h"
|
|
||||||
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxXmlIOHandlerExpat : public wxXmlIOHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
virtual wxXmlIOType GetType() { return wxXML_IO_EXPAT; }
|
|
||||||
virtual bool CanLoad(wxInputStream& stream);
|
|
||||||
virtual bool CanSave() { return FALSE; }
|
|
||||||
|
|
||||||
virtual bool Load(wxInputStream& stream, wxXmlDocument& doc);
|
|
||||||
virtual bool Save(wxOutputStream& WXUNUSED(stream), const wxXmlDocument& WXUNUSED(doc))
|
|
||||||
{ return FALSE; }
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxXmlIOHandlerWriter : public wxXmlIOHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
virtual wxXmlIOType GetType() { return wxXML_IO_TEXT_OUTPUT; }
|
|
||||||
virtual bool CanLoad(wxInputStream& WXUNUSED(stream)) { return FALSE; }
|
|
||||||
virtual bool CanSave() { return TRUE; }
|
|
||||||
|
|
||||||
virtual bool Load(wxInputStream& WXUNUSED(stream), wxXmlDocument& WXUNUSED(doc))
|
|
||||||
{ return FALSE; }
|
|
||||||
virtual bool Save(wxOutputStream& stream, const wxXmlDocument& doc);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxXmlIOHandlerBin : public wxXmlIOHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxXmlIOHandlerBin() {}
|
|
||||||
|
|
||||||
virtual wxXmlIOType GetType() { return wxXML_IO_BIN; }
|
|
||||||
virtual bool CanLoad(wxInputStream& stream);
|
|
||||||
virtual bool CanSave() { return TRUE; }
|
|
||||||
|
|
||||||
virtual bool Load(wxInputStream& stream, wxXmlDocument& doc);
|
|
||||||
virtual bool Save(wxOutputStream& stream, const wxXmlDocument& doc);
|
|
||||||
|
|
||||||
protected:
|
|
||||||
wxString ReadHeader(wxInputStream& stream);
|
|
||||||
void WriteHeader(wxOutputStream& stream, const wxString& header);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#if wxUSE_ZLIB
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxXmlIOHandlerBinZ : public wxXmlIOHandlerBin
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxXmlIOHandlerBinZ() {}
|
|
||||||
|
|
||||||
virtual wxXmlIOType GetType() { return wxXML_IO_BINZ; }
|
|
||||||
virtual bool CanLoad(wxInputStream& stream);
|
|
||||||
|
|
||||||
virtual bool Load(wxInputStream& stream, wxXmlDocument& doc);
|
|
||||||
virtual bool Save(wxOutputStream& stream, const wxXmlDocument& doc);
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#endif // _WX_XMLIO_H_
|
|
@@ -1,358 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: xmlres.h
|
|
||||||
// Purpose: XML resources
|
|
||||||
// Author: Vaclav Slavik
|
|
||||||
// Created: 2000/03/05
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2000 Vaclav Slavik
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef _WX_XMLRES_H_
|
|
||||||
#define _WX_XMLRES_H_
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "xmlres.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/defs.h"
|
|
||||||
#include "wx/string.h"
|
|
||||||
#include "wx/dynarray.h"
|
|
||||||
#include "wx/datetime.h"
|
|
||||||
#include "wx/list.h"
|
|
||||||
#include "wx/gdicmn.h"
|
|
||||||
#include "wx/filesys.h"
|
|
||||||
#include "wx/bitmap.h"
|
|
||||||
#include "wx/icon.h"
|
|
||||||
|
|
||||||
#include "wx/xrc/xml.h"
|
|
||||||
|
|
||||||
class WXDLLEXPORT wxMenu;
|
|
||||||
class WXDLLEXPORT wxMenuBar;
|
|
||||||
class WXDLLEXPORT wxDialog;
|
|
||||||
class WXDLLEXPORT wxPanel;
|
|
||||||
class WXDLLEXPORT wxWindow;
|
|
||||||
class WXDLLEXPORT wxFrame;
|
|
||||||
class WXDLLEXPORT wxToolBar;
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxXmlResourceHandler;
|
|
||||||
|
|
||||||
|
|
||||||
// These macros indicate current version of XML resources (this information is
|
|
||||||
// encoded in root node of XRC file as "version" property).
|
|
||||||
//
|
|
||||||
// Rules for increasing version number:
|
|
||||||
// - change it only if you made incompatible change to the format. Addition of new
|
|
||||||
// attribute to control handler is _not_ incompatible change, because older
|
|
||||||
// versions of the library may ignore it.
|
|
||||||
// - if you change version number, follow these steps:
|
|
||||||
// - set major, minor and release numbers to respective version numbers of
|
|
||||||
// the wxWindows library (see wx/version.h)
|
|
||||||
// - reset revision to 0 unless the first three are same as before, in which
|
|
||||||
// case you should increase revision by one
|
|
||||||
#define WX_XMLRES_CURRENT_VERSION_MAJOR 2
|
|
||||||
#define WX_XMLRES_CURRENT_VERSION_MINOR 3
|
|
||||||
#define WX_XMLRES_CURRENT_VERSION_RELEASE 0
|
|
||||||
#define WX_XMLRES_CURRENT_VERSION_REVISION 1
|
|
||||||
#define WX_XMLRES_CURRENT_VERSION_STRING "2.3.0.1"
|
|
||||||
|
|
||||||
#define WX_XMLRES_CURRENT_VERSION \
|
|
||||||
(WX_XMLRES_CURRENT_VERSION_MAJOR * 256*256*256 + \
|
|
||||||
WX_XMLRES_CURRENT_VERSION_MINOR * 256*256 + \
|
|
||||||
WX_XMLRES_CURRENT_VERSION_RELEASE * 256 + \
|
|
||||||
WX_XMLRES_CURRENT_VERSION_REVISION)
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxXmlResourceDataRecord
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxXmlResourceDataRecord() : Doc(NULL), Time(wxDateTime::Now()) {}
|
|
||||||
~wxXmlResourceDataRecord() {delete Doc;}
|
|
||||||
|
|
||||||
wxString File;
|
|
||||||
wxXmlDocument *Doc;
|
|
||||||
wxDateTime Time;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef WXXMLISDLL
|
|
||||||
WX_DECLARE_EXPORTED_OBJARRAY(wxXmlResourceDataRecord, wxXmlResourceDataRecords);
|
|
||||||
#else
|
|
||||||
WX_DECLARE_OBJARRAY(wxXmlResourceDataRecord, wxXmlResourceDataRecords);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
// This class holds XML resources from one or more .xml files
|
|
||||||
// (or derived forms, either binary or zipped -- see manual for
|
|
||||||
// details).
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxXmlResource : public wxObject
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
// Ctor. If use_locale is TRUE, translatable strings are
|
|
||||||
// translated via _(). You can disable it by passing use_locale=FALSE
|
|
||||||
// (for example if you provide resource file for each locale)
|
|
||||||
wxXmlResource(bool use_locale = TRUE);
|
|
||||||
wxXmlResource(const wxString& filemask, bool use_locale = TRUE);
|
|
||||||
~wxXmlResource();
|
|
||||||
|
|
||||||
// Loads resources from XML files that match given filemask.
|
|
||||||
// This method understands VFS (see filesys.h).
|
|
||||||
bool Load(const wxString& filemask);
|
|
||||||
|
|
||||||
// Initialize handlers for all supported controls/windows. This will
|
|
||||||
// make the executable quite big because it forces linking against
|
|
||||||
// most of wxWin library
|
|
||||||
void InitAllHandlers();
|
|
||||||
|
|
||||||
// Initialize only specific handler (or custom handler). Convention says
|
|
||||||
// that handler name is equal to control's name plus 'XmlHandler', e.g.
|
|
||||||
// wxTextCtrlXmlHandler, wxHtmlWindowXmlHandler. XML resource compiler
|
|
||||||
// (xmlres) can create include file that contains initialization code for
|
|
||||||
// all controls used within the resource.
|
|
||||||
void AddHandler(wxXmlResourceHandler *handler);
|
|
||||||
|
|
||||||
// Removes all handlers
|
|
||||||
void ClearHandlers();
|
|
||||||
|
|
||||||
// Loads menu from resource. Returns NULL on failure.
|
|
||||||
wxMenu *LoadMenu(const wxString& name);
|
|
||||||
|
|
||||||
// Loads menubar from resource. Returns NULL on failure.
|
|
||||||
wxMenuBar *LoadMenuBar(const wxString& name);
|
|
||||||
|
|
||||||
#if wxUSE_TOOLBAR
|
|
||||||
// Loads toolbar
|
|
||||||
wxToolBar *LoadToolBar(wxWindow *parent, const wxString& name);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Loads dialog. dlg points to parent window (if any). Second form
|
|
||||||
// is used to finish creation of already existing instance (main reason
|
|
||||||
// for this is that you may want to use derived class with new event table)
|
|
||||||
// Example (typical usage):
|
|
||||||
// MyDialog dlg;
|
|
||||||
// wxTheXmlResource->LoadDialog(&dlg, mainFrame, "my_dialog");
|
|
||||||
// dlg->ShowModal();
|
|
||||||
wxDialog *LoadDialog(wxWindow *parent, const wxString& name);
|
|
||||||
bool LoadDialog(wxDialog *dlg, wxWindow *parent, const wxString& name);
|
|
||||||
|
|
||||||
// Loads panel. panel points to parent window (if any). Second form
|
|
||||||
// is used to finish creation of already existing instance.
|
|
||||||
wxPanel *LoadPanel(wxWindow *parent, const wxString& name);
|
|
||||||
bool LoadPanel(wxPanel *panel, wxWindow *parent, const wxString& name);
|
|
||||||
|
|
||||||
bool LoadFrame(wxFrame* frame, wxWindow *parent, const wxString& name);
|
|
||||||
|
|
||||||
// Loads bitmap or icon resource from file:
|
|
||||||
wxBitmap LoadBitmap(const wxString& name);
|
|
||||||
wxIcon LoadIcon(const wxString& name);
|
|
||||||
|
|
||||||
// Attaches unknown control into given panel/window/dialog:
|
|
||||||
// (unknown controls are used in conjunction with <object class="unknown">)
|
|
||||||
bool AttachUnknownControl(const wxString& name, wxWindow *control,
|
|
||||||
wxWindow *parent = NULL);
|
|
||||||
|
|
||||||
// Returns numeric ID that is equivalent to string id used in XML
|
|
||||||
// resource. To be used in event tables
|
|
||||||
// Macro XMLID is provided for convenience
|
|
||||||
static int GetXMLID(const char *str_id);
|
|
||||||
|
|
||||||
// Returns version info (a.b.c.d = d+ 256*c + 256^2*b + 256^3*a)
|
|
||||||
long GetVersion() const { return m_version; }
|
|
||||||
|
|
||||||
// Compares resources version to argument. Returns -1 if resources version
|
|
||||||
// is less than the argument, +1 if greater and 0 if they equal.
|
|
||||||
int CompareVersion(int major, int minor, int release, int revision) const
|
|
||||||
{ return GetVersion() -
|
|
||||||
(major*256*256*256 + minor*256*256 + release*256 + revision); }
|
|
||||||
|
|
||||||
protected:
|
|
||||||
// Scans resources list for unloaded files and loads them. Also reloads
|
|
||||||
// files that have been modified since last loading.
|
|
||||||
void UpdateResources();
|
|
||||||
|
|
||||||
// Finds resource (calls UpdateResources) and returns node containing it
|
|
||||||
wxXmlNode *FindResource(const wxString& name, const wxString& classname);
|
|
||||||
|
|
||||||
// Creates resource from info in given node:
|
|
||||||
wxObject *CreateResFromNode(wxXmlNode *node, wxObject *parent, wxObject *instance = NULL);
|
|
||||||
|
|
||||||
// Remove nodes with property "platform" that does not
|
|
||||||
// match current platform
|
|
||||||
void ProcessPlatformProperty(wxXmlNode *node);
|
|
||||||
|
|
||||||
bool GetUseLocale() { return m_useLocale; }
|
|
||||||
|
|
||||||
private:
|
|
||||||
long m_version;
|
|
||||||
|
|
||||||
bool m_useLocale;
|
|
||||||
wxList m_handlers;
|
|
||||||
wxXmlResourceDataRecords m_data;
|
|
||||||
#if wxUSE_FILESYSTEM
|
|
||||||
wxFileSystem m_curFileSystem;
|
|
||||||
wxFileSystem& GetCurFileSystem() { return m_curFileSystem; }
|
|
||||||
#endif
|
|
||||||
|
|
||||||
friend class wxXmlResourceHandler;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
// Global instance of resource class. For your convenience.
|
|
||||||
extern WXXMLDLLEXPORT wxXmlResource *wxTheXmlResource;
|
|
||||||
|
|
||||||
// This macro translates string identifier (as used in XML resource,
|
|
||||||
// e.g. <menuitem id="my_menu">...</menuitem>) to integer id that is needed by
|
|
||||||
// wxWindows event tables.
|
|
||||||
// Example:
|
|
||||||
// BEGIN_EVENT_TABLE(MyFrame, wxFrame)
|
|
||||||
// EVT_MENU(XMLID("quit"), MyFrame::OnQuit)
|
|
||||||
// EVT_MENU(XMLID("about"), MyFrame::OnAbout)
|
|
||||||
// EVT_MENU(XMLID("new"), MyFrame::OnNew)
|
|
||||||
// EVT_MENU(XMLID("open"), MyFrame::OnOpen)
|
|
||||||
// END_EVENT_TABLE()
|
|
||||||
|
|
||||||
#define XMLID(str_id) \
|
|
||||||
wxXmlResource::GetXMLID(wxT(str_id))
|
|
||||||
|
|
||||||
|
|
||||||
// This macro returns pointer to particular control in dialog
|
|
||||||
// created using XML resources. You can use it to set/get values from
|
|
||||||
// controls.
|
|
||||||
// Example:
|
|
||||||
// wxDialog dlg;
|
|
||||||
// wxTheXmlResource->LoadDialog(&dlg, mainFrame, "my_dialog");
|
|
||||||
// XMLCTRL(dlg, "my_textctrl", wxTextCtrl)->SetValue(wxT("default value"));
|
|
||||||
|
|
||||||
#ifdef __WXDEBUG__
|
|
||||||
#define XMLCTRL(window, id, type) \
|
|
||||||
(wxDynamicCast((window).FindWindow(XMLID(id)), type))
|
|
||||||
#else
|
|
||||||
#define XMLCTRL(window, id, type) \
|
|
||||||
((type*)((window).FindWindow(XMLID(id))))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
class WXXMLDLLEXPORT wxXmlResourceHandler : public wxObject
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxXmlResourceHandler();
|
|
||||||
virtual ~wxXmlResourceHandler() {}
|
|
||||||
|
|
||||||
// Creates object (menu, dialog, control, ...) from XML node.
|
|
||||||
// Should check for validity.
|
|
||||||
// parent is higher-level object (usually window, dialog or panel)
|
|
||||||
// that is often neccessary to create resource
|
|
||||||
// if instance != NULL it should not create new instance via 'new' but
|
|
||||||
// rather use this one and call its Create method
|
|
||||||
wxObject *CreateResource(wxXmlNode *node, wxObject *parent,
|
|
||||||
wxObject *instance);
|
|
||||||
|
|
||||||
// This one is called from CreateResource after variables
|
|
||||||
// were filled
|
|
||||||
virtual wxObject *DoCreateResource() = 0;
|
|
||||||
|
|
||||||
// Returns TRUE if it understands this node and can create
|
|
||||||
// resource from it, FALSE otherwise.
|
|
||||||
virtual bool CanHandle(wxXmlNode *node) = 0;
|
|
||||||
|
|
||||||
void SetParentResource(wxXmlResource *res) { m_resource = res; }
|
|
||||||
|
|
||||||
|
|
||||||
protected:
|
|
||||||
|
|
||||||
wxXmlResource *m_resource;
|
|
||||||
wxArrayString m_styleNames;
|
|
||||||
wxArrayInt m_styleValues;
|
|
||||||
|
|
||||||
// Variables (filled by CreateResource)
|
|
||||||
wxXmlNode *m_node;
|
|
||||||
wxString m_class;
|
|
||||||
wxObject *m_parent, *m_instance;
|
|
||||||
wxWindow *m_parentAsWindow, *m_instanceAsWindow;
|
|
||||||
|
|
||||||
// --- Handy methods:
|
|
||||||
|
|
||||||
// Returns true if the node has property class equal to classname,
|
|
||||||
// e.g. <object class="wxDialog">
|
|
||||||
bool IsOfClass(wxXmlNode *node, const wxString& classname)
|
|
||||||
{ return node->GetPropVal(wxT("class"), wxEmptyString) == classname; }
|
|
||||||
|
|
||||||
// Gets node content from wxXML_ENTITY_NODE
|
|
||||||
// (the problem is, <tag>content<tag> is represented as
|
|
||||||
// wxXML_ENTITY_NODE name="tag", content=""
|
|
||||||
// |-- wxXML_TEXT_NODE or
|
|
||||||
// wxXML_CDATA_SECTION_NODE name="" content="content"
|
|
||||||
wxString GetNodeContent(wxXmlNode *node);
|
|
||||||
|
|
||||||
// Check to see if a param exists
|
|
||||||
bool HasParam(const wxString& param);
|
|
||||||
|
|
||||||
// Finds the node or returns NULL
|
|
||||||
wxXmlNode *GetParamNode(const wxString& param);
|
|
||||||
wxString GetParamValue(const wxString& param);
|
|
||||||
|
|
||||||
// Add style flag (e.g. wxMB_DOCKABLE) to list of flags
|
|
||||||
// understood by this handler
|
|
||||||
void AddStyle(const wxString& name, int value);
|
|
||||||
|
|
||||||
// Add styles common to all wxWindow-derived classes
|
|
||||||
void AddWindowStyles();
|
|
||||||
|
|
||||||
// Gets style flags from text in form "flag | flag2| flag3 |..."
|
|
||||||
// Only understads flags added with AddStyle
|
|
||||||
int GetStyle(const wxString& param = wxT("style"), int defaults = 0);
|
|
||||||
|
|
||||||
// Gets text from param and does some convertions:
|
|
||||||
// - replaces \n, \r, \t by respective chars (according to C syntax)
|
|
||||||
// - replaces $ by & and $$ by $ (needed for $File => &File because of XML)
|
|
||||||
// - calls wxGetTranslations (unless disabled in wxXmlResource)
|
|
||||||
wxString GetText(const wxString& param);
|
|
||||||
|
|
||||||
// Return XMLID
|
|
||||||
int GetID();
|
|
||||||
wxString GetName();
|
|
||||||
|
|
||||||
// Get bool flag (1,t,yes,on,true are TRUE, everything else is FALSE)
|
|
||||||
bool GetBool(const wxString& param, bool defaultv = FALSE);
|
|
||||||
|
|
||||||
// Get integer value from param
|
|
||||||
long GetLong( const wxString& param, long defaultv = 0 );
|
|
||||||
|
|
||||||
// Get colour in HTML syntax (#RRGGBB)
|
|
||||||
wxColour GetColour(const wxString& param);
|
|
||||||
|
|
||||||
// Get size/position (may be in dlg units):
|
|
||||||
wxSize GetSize(const wxString& param = wxT("size"));
|
|
||||||
wxPoint GetPosition(const wxString& param = wxT("pos"));
|
|
||||||
|
|
||||||
// Get dimension (may be in dlg units):
|
|
||||||
wxCoord GetDimension(const wxString& param, wxCoord defaultv = 0);
|
|
||||||
|
|
||||||
// Get bitmap:
|
|
||||||
wxBitmap GetBitmap(const wxString& param = wxT("bitmap"),
|
|
||||||
wxSize size = wxDefaultSize);
|
|
||||||
wxIcon GetIcon(const wxString& param = wxT("icon"),
|
|
||||||
wxSize size = wxDefaultSize);
|
|
||||||
|
|
||||||
// Get font:
|
|
||||||
wxFont GetFont(const wxString& param = wxT("font"));
|
|
||||||
|
|
||||||
// Sets common window options:
|
|
||||||
void SetupWindow(wxWindow *wnd);
|
|
||||||
|
|
||||||
void CreateChildren(wxObject *parent, bool this_hnd_only = FALSE);
|
|
||||||
void CreateChildrenPrivately(wxObject *parent, wxXmlNode *rootnode = NULL);
|
|
||||||
wxObject *CreateResFromNode(wxXmlNode *node,
|
|
||||||
wxObject *parent, wxObject *instance = NULL)
|
|
||||||
{ return m_resource->CreateResFromNode(node, parent, instance); }
|
|
||||||
|
|
||||||
// helper
|
|
||||||
wxFileSystem& GetCurFileSystem() { return m_resource->GetCurFileSystem(); }
|
|
||||||
};
|
|
||||||
|
|
||||||
#define ADD_STYLE(style) AddStyle(wxT(#style), style)
|
|
||||||
|
|
||||||
|
|
||||||
void wxXmlInitResourceModule();
|
|
||||||
|
|
||||||
#endif // _WX_XMLRES_H_
|
|
@@ -1,6 +1,6 @@
|
|||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
CONTRIB_SAMPLES=mmedia ogl stc gizmos canvas xrc plot applet
|
CONTRIB_SAMPLES=mmedia ogl stc
|
||||||
|
|
||||||
all:
|
all:
|
||||||
@for d in $(CONTRIB_SAMPLES); do (cd $$d && $(MAKE)); done
|
@for d in $(CONTRIB_SAMPLES); do (cd $$d && $(MAKE)); done
|
||||||
|
@@ -1,25 +0,0 @@
|
|||||||
#
|
|
||||||
# File: Makefile.in
|
|
||||||
# Author: Julian Smart
|
|
||||||
# Created: 2000
|
|
||||||
# Updated:
|
|
||||||
# Copyright: (c) 2000 Julian Smart
|
|
||||||
#
|
|
||||||
# "%W% %G%"
|
|
||||||
#
|
|
||||||
# Makefile for the multicell example (UNIX).
|
|
||||||
|
|
||||||
top_srcdir = @top_srcdir@/..
|
|
||||||
top_builddir = ../../..
|
|
||||||
program_dir = contrib/samples/applet
|
|
||||||
|
|
||||||
PROGRAM=monitor
|
|
||||||
|
|
||||||
DATAFILES=about.html index.html
|
|
||||||
|
|
||||||
OBJECTS=applet.o dialogs_wdr.o monitorapplet.o combobox.o
|
|
||||||
|
|
||||||
APPEXTRALIBS=$(top_builddir)/lib/libapplet.@WX_TARGET_LIBRARY_TYPE@
|
|
||||||
APPEXTRADEFS=-I$(top_srcdir)/contrib/include
|
|
||||||
|
|
||||||
include $(top_builddir)/src/makeprog.env
|
|
@@ -1,10 +0,0 @@
|
|||||||
<html>
|
|
||||||
<head><title>Scitech Display Doctor</title></head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<BODY BGCOLOR="#FFFFFF" >
|
|
||||||
<center><IMG SRC="biglogo.bmp"></center>
|
|
||||||
<hr>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
@@ -1,156 +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 wxApplet sample program
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
// For compilers that support precompilation, includes "wx/wx.h".
|
|
||||||
#include <wx/wxprec.h>
|
|
||||||
#ifdef __BORLANDC__
|
|
||||||
#pragma hdrstop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/wx.h"
|
|
||||||
#include "wx/applet/window.h"
|
|
||||||
#include "applet.h"
|
|
||||||
|
|
||||||
/*---------------------------- Global variables ---------------------------*/
|
|
||||||
|
|
||||||
// Define the event tables for handling application frame events
|
|
||||||
BEGIN_EVENT_TABLE(MyFrame, wxFrame)
|
|
||||||
EVT_MENU(Minimal_Quit, MyFrame::OnQuit)
|
|
||||||
EVT_MENU(Minimal_About, MyFrame::OnAbout)
|
|
||||||
EVT_MENU(Minimal_Back, MyFrame::OnBack)
|
|
||||||
EVT_MENU(Minimal_Forward, MyFrame::OnForward)
|
|
||||||
END_EVENT_TABLE()
|
|
||||||
|
|
||||||
// Create a new application object: this macro will allow wxWindows to create
|
|
||||||
// the application object during program execution (it's better than using a
|
|
||||||
// static object for many reasons) and also declares the accessor function
|
|
||||||
// wxGetApp() which will return the reference of the right type (i.e. MyApp and
|
|
||||||
// not wxApp)
|
|
||||||
IMPLEMENT_APP(MyApp)
|
|
||||||
|
|
||||||
/*------------------------- Implementation --------------------------------*/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
PARAMETERS:
|
|
||||||
title - Title for the frame window
|
|
||||||
pos - Position to place to frame window
|
|
||||||
size - Size of the frame window
|
|
||||||
|
|
||||||
REMARKS:
|
|
||||||
Application frame window constructor
|
|
||||||
****************************************************************************/
|
|
||||||
MyFrame::MyFrame(
|
|
||||||
const wxString& title,
|
|
||||||
const wxPoint& pos,
|
|
||||||
const wxSize& size)
|
|
||||||
: wxFrame(NULL, -1, title, pos, size)
|
|
||||||
{
|
|
||||||
// Create a menu bar
|
|
||||||
wxMenu *menuFile = new wxMenu;
|
|
||||||
wxMenu *menuNav = new wxMenu;
|
|
||||||
menuFile->Append(Minimal_Quit, "E&xit");
|
|
||||||
menuNav->Append(Minimal_Back, "Go &back");
|
|
||||||
menuNav->Append(Minimal_Forward, "Go &forward");
|
|
||||||
|
|
||||||
// Now append the freshly created menu to the menu bar...
|
|
||||||
wxMenuBar *menuBar = new wxMenuBar;
|
|
||||||
menuBar->Append(menuFile, "&File");
|
|
||||||
menuBar->Append(menuNav, "&Navigate");
|
|
||||||
|
|
||||||
// ... and attach this menu bar to the frame
|
|
||||||
SetMenuBar(menuBar);
|
|
||||||
CreateStatusBar(2);
|
|
||||||
|
|
||||||
// Create the HTML window
|
|
||||||
html = new wxHtmlAppletWindow(this);
|
|
||||||
html->SetRelatedFrame(this, "wxApplet Demo: '%s'");
|
|
||||||
html->SetRelatedStatusBar(1);
|
|
||||||
html->LoadPage("index.html");
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
Event handler for the 'Exit' menu item
|
|
||||||
****************************************************************************/
|
|
||||||
void MyFrame::OnQuit(
|
|
||||||
wxCommandEvent&)
|
|
||||||
{
|
|
||||||
// TRUE is to force the frame to close
|
|
||||||
Close(TRUE);
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
Event handler for the 'About' menu item
|
|
||||||
****************************************************************************/
|
|
||||||
void MyFrame::OnAbout(
|
|
||||||
wxCommandEvent&)
|
|
||||||
{
|
|
||||||
// TODO: Bring up and about html page!
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
Event handler for the 'Go back' menu item
|
|
||||||
****************************************************************************/
|
|
||||||
void MyFrame::OnBack(
|
|
||||||
wxCommandEvent&)
|
|
||||||
{
|
|
||||||
if (!html -> HistoryBack())
|
|
||||||
wxMessageBox("You reached prehistory era!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
Event handler for the 'Go forward' menu item
|
|
||||||
****************************************************************************/
|
|
||||||
void MyFrame::OnForward(
|
|
||||||
wxCommandEvent&)
|
|
||||||
{
|
|
||||||
if (!html -> HistoryForward())
|
|
||||||
wxMessageBox("No more items in history!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
`Main program' equivalent: the program execution "starts" here
|
|
||||||
****************************************************************************/
|
|
||||||
bool MyApp::OnInit()
|
|
||||||
{
|
|
||||||
// Create the main application window
|
|
||||||
MyFrame *frame = new MyFrame("wxApplet testing application",
|
|
||||||
wxPoint(50, 50), wxSize(640, 480));
|
|
||||||
|
|
||||||
// Show it and tell the application that it's our main window
|
|
||||||
frame->Show(TRUE);
|
|
||||||
SetTopWindow(frame);
|
|
||||||
|
|
||||||
// Success: wxApp::OnRun() will be called to run the application
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
@@ -1,77 +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 wxApplet sample program header file
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#ifndef __SAMPLE_H
|
|
||||||
|
|
||||||
/*------------------------------ Constants --------------------------------*/
|
|
||||||
|
|
||||||
enum {
|
|
||||||
// Menu items
|
|
||||||
Minimal_Quit = 1,
|
|
||||||
Minimal_About,
|
|
||||||
Minimal_Back,
|
|
||||||
Minimal_Forward,
|
|
||||||
|
|
||||||
// Controls start here (the numbers are, of course, arbitrary)
|
|
||||||
Minimal_Text = 1000,
|
|
||||||
};
|
|
||||||
|
|
||||||
/*--------------------------- Class Definitions ---------------------------*/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
Define a new application type, each program should derive a class from wxApp
|
|
||||||
****************************************************************************/
|
|
||||||
class MyApp : public wxApp {
|
|
||||||
public:
|
|
||||||
// Initialise the application on startup
|
|
||||||
virtual bool OnInit();
|
|
||||||
};
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
Define a new frame type: this is going to be our main frame
|
|
||||||
****************************************************************************/
|
|
||||||
class MyFrame : public wxFrame {
|
|
||||||
private:
|
|
||||||
DECLARE_EVENT_TABLE() // Declare event table
|
|
||||||
wxHtmlAppletWindow *html; // Pointer to the html applet window
|
|
||||||
|
|
||||||
public:
|
|
||||||
// Constructor
|
|
||||||
MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size);
|
|
||||||
|
|
||||||
// Event handlers
|
|
||||||
void OnQuit(wxCommandEvent& event);
|
|
||||||
void OnAbout(wxCommandEvent& event);
|
|
||||||
void OnBack(wxCommandEvent& event);
|
|
||||||
void OnForward(wxCommandEvent& event);
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // __SAMPLE_H
|
|
||||||
|
|
@@ -1,173 +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: Combobox wrapper. This file implements the custom
|
|
||||||
* combo boxes used for this sample program.
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
// For compilers that support precompilation, includes "wx/wx.h".
|
|
||||||
#include <wx/wxprec.h>
|
|
||||||
#ifdef __BORLANDC__
|
|
||||||
#pragma hdrstop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/wx.h"
|
|
||||||
#include "combobox.h"
|
|
||||||
|
|
||||||
/*------------------------- Implementation --------------------------------*/
|
|
||||||
|
|
||||||
ComboBox::ComboBox(
|
|
||||||
wxWindow *parent,
|
|
||||||
int listid,
|
|
||||||
int textid)
|
|
||||||
: m_Parent(parent), m_ListBoxId(listid), m_TextCtrlId(textid)
|
|
||||||
{
|
|
||||||
m_ListBox = wxDynamicCast(m_Parent->FindWindow(listid),wxListBox);
|
|
||||||
m_TextCtrl = wxDynamicCast(m_Parent->FindWindow(textid),wxTextCtrl);
|
|
||||||
}
|
|
||||||
|
|
||||||
int ComboBox::GetListBoxId()
|
|
||||||
{
|
|
||||||
return m_ListBoxId;
|
|
||||||
}
|
|
||||||
|
|
||||||
int ComboBox::GetSelection()
|
|
||||||
{
|
|
||||||
return m_ListBox->GetSelection();
|
|
||||||
}
|
|
||||||
|
|
||||||
wxString ComboBox::GetStringSelection()
|
|
||||||
{
|
|
||||||
return m_ListBox->GetStringSelection();
|
|
||||||
}
|
|
||||||
|
|
||||||
bool ComboBox::SetStringSelection(const wxString& s, bool select)
|
|
||||||
{
|
|
||||||
select = TRUE;
|
|
||||||
select = m_ListBox->SetStringSelection(s, select);
|
|
||||||
m_TextCtrl->SetValue(GetStringSelection());
|
|
||||||
return select;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ComboBox::Select(int n)
|
|
||||||
{
|
|
||||||
m_ListBox->Select(n);
|
|
||||||
m_TextCtrl->SetValue(GetStringSelection());
|
|
||||||
}
|
|
||||||
|
|
||||||
void ComboBox::Deselect(int n)
|
|
||||||
{
|
|
||||||
m_ListBox->Deselect(n);
|
|
||||||
}
|
|
||||||
|
|
||||||
void ComboBox::Insert(const wxString& item, int pos)
|
|
||||||
{
|
|
||||||
m_ListBox->Insert(item,pos);
|
|
||||||
}
|
|
||||||
|
|
||||||
void ComboBox::Insert(const wxString& item, int pos, void *clientData)
|
|
||||||
{
|
|
||||||
m_ListBox->Insert(item, pos, clientData);
|
|
||||||
}
|
|
||||||
|
|
||||||
void ComboBox::Insert(const wxString& item, int pos, wxClientData *clientData)
|
|
||||||
{
|
|
||||||
m_ListBox->Insert(item, pos, clientData);
|
|
||||||
}
|
|
||||||
|
|
||||||
void ComboBox::InsertItems(int nItems, const wxString *items, int pos)
|
|
||||||
{
|
|
||||||
m_ListBox->InsertItems(nItems, items, pos);
|
|
||||||
}
|
|
||||||
|
|
||||||
void ComboBox::InsertItems(const wxArrayString& items, int pos)
|
|
||||||
{
|
|
||||||
m_ListBox->InsertItems(items, pos);
|
|
||||||
}
|
|
||||||
|
|
||||||
void ComboBox::Set(int n, const wxString* items, void **clientData)
|
|
||||||
{
|
|
||||||
m_ListBox->Set(n, items, clientData);
|
|
||||||
m_TextCtrl->SetValue(GetStringSelection());
|
|
||||||
}
|
|
||||||
|
|
||||||
void ComboBox::Set(const wxArrayString& items, void **clientData)
|
|
||||||
{
|
|
||||||
m_ListBox->Set(items, clientData);
|
|
||||||
m_TextCtrl->SetValue(GetStringSelection());
|
|
||||||
}
|
|
||||||
|
|
||||||
int ComboBox::FindString(const wxString &s)
|
|
||||||
{
|
|
||||||
return (m_ListBox->FindString(s));
|
|
||||||
}
|
|
||||||
|
|
||||||
void ComboBox::SetFirstItem(int n)
|
|
||||||
{
|
|
||||||
m_ListBox->SetFirstItem(n);
|
|
||||||
m_TextCtrl->SetValue(GetStringSelection());
|
|
||||||
}
|
|
||||||
|
|
||||||
void ComboBox::SetFirstItem(const wxString &s)
|
|
||||||
{
|
|
||||||
m_ListBox->SetFirstItem(s);
|
|
||||||
m_TextCtrl->SetValue(GetStringSelection());
|
|
||||||
}
|
|
||||||
|
|
||||||
void ComboBox::Append(const wxString &item)
|
|
||||||
{
|
|
||||||
m_ListBox->Append(item);
|
|
||||||
m_TextCtrl->SetValue(GetStringSelection());
|
|
||||||
}
|
|
||||||
|
|
||||||
void ComboBox::Append(const wxString& item, void *clientData)
|
|
||||||
{
|
|
||||||
m_ListBox->Append(item, clientData);
|
|
||||||
m_TextCtrl->SetValue(GetStringSelection());
|
|
||||||
}
|
|
||||||
|
|
||||||
void ComboBox::Append(const wxString& item, wxClientData *clientData)
|
|
||||||
{
|
|
||||||
m_ListBox->Append(item, clientData);
|
|
||||||
m_TextCtrl->SetValue(GetStringSelection());
|
|
||||||
}
|
|
||||||
|
|
||||||
void ComboBox::Clear()
|
|
||||||
{
|
|
||||||
m_ListBox->Clear();
|
|
||||||
m_TextCtrl->SetValue(GetStringSelection());
|
|
||||||
}
|
|
||||||
|
|
||||||
void ComboBox::Delete(int n)
|
|
||||||
{
|
|
||||||
m_ListBox->Delete(n);
|
|
||||||
m_TextCtrl->SetValue(GetStringSelection());
|
|
||||||
}
|
|
||||||
|
|
||||||
void ComboBox::OnChange(wxCommandEvent &)
|
|
||||||
{
|
|
||||||
m_TextCtrl->SetValue(GetStringSelection());
|
|
||||||
}
|
|
||||||
|
|
@@ -1,97 +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: Combobox wrapper. This header file defines the custom
|
|
||||||
* combo boxes used for this sample program.
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#ifndef __COMBOBOX_H
|
|
||||||
#define __COMBOBOX_H
|
|
||||||
|
|
||||||
/*--------------------------- Class Definitions ---------------------------*/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
Defines a Custom ComboBox. This combobox is a portable implementation of
|
|
||||||
the msw combobox control. It is made of the wxWindows textctrl primitive and
|
|
||||||
the listbox primitive. This object does not create or display the controls,
|
|
||||||
it provides the relationship and underlying behavior layer for the primitives
|
|
||||||
allready created via wxDesigner.
|
|
||||||
****************************************************************************/
|
|
||||||
class ComboBox {
|
|
||||||
private:
|
|
||||||
int m_ListBoxId;
|
|
||||||
int m_TextCtrlId;
|
|
||||||
wxWindow *m_Parent;
|
|
||||||
wxListBox *m_ListBox;
|
|
||||||
wxTextCtrl *m_TextCtrl;
|
|
||||||
|
|
||||||
public:
|
|
||||||
// Constructor
|
|
||||||
ComboBox(wxWindow *parent, int,int);
|
|
||||||
|
|
||||||
// Returns the id of the listbox: listBoxId.
|
|
||||||
int GetListBoxId();
|
|
||||||
|
|
||||||
// Inserts: Used to insert items into the listbox
|
|
||||||
void Insert(const wxString& item, int pos);
|
|
||||||
void Insert(const wxString& item, int pos, void *clientData);
|
|
||||||
void Insert(const wxString& item, int pos, wxClientData *clientData);
|
|
||||||
void InsertItems(int nItems, const wxString *items, int pos);
|
|
||||||
void InsertItems(const wxArrayString& items, int pos);
|
|
||||||
|
|
||||||
// Sets: Used to set items in the combo box
|
|
||||||
void Set(int n, const wxString* items, void **clientData );
|
|
||||||
void Set(const wxArrayString& items, void **clientData);
|
|
||||||
int FindString(const wxString &s);
|
|
||||||
|
|
||||||
// Selections: Used to get/de/select items in the listbox
|
|
||||||
void Select(int n);
|
|
||||||
void Deselect(int n);
|
|
||||||
int GetSelection();
|
|
||||||
wxString GetStringSelection();
|
|
||||||
bool SetStringSelection(const wxString& s, bool select);
|
|
||||||
|
|
||||||
// Set the specified item at the first visible item or scroll to max
|
|
||||||
// range.
|
|
||||||
void SetFirstItem(int n);
|
|
||||||
void SetFirstItem(const wxString& s);
|
|
||||||
|
|
||||||
// Append items to the listbox
|
|
||||||
void Append(const wxString& item);
|
|
||||||
void Append(const wxString& item, void *clientData);
|
|
||||||
void Append(const wxString& item, wxClientData *clientData);
|
|
||||||
|
|
||||||
// Deleting items from the list box
|
|
||||||
void Clear();
|
|
||||||
void Delete(int n);
|
|
||||||
|
|
||||||
// OnChange event function (called from SDD dialog box code, see: dialog.h) Mimic
|
|
||||||
// msw combobox behavior: Click on listbox item it shows in textbox.
|
|
||||||
void OnChange(wxCommandEvent &event);
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // __COMBOBOX_H
|
|
||||||
|
|
Binary file not shown.
@@ -1,106 +0,0 @@
|
|||||||
//------------------------------------------------------------------------------
|
|
||||||
// Source code generated by wxDesigner from file: dialogs.wdr
|
|
||||||
// Do not modify this file, all changes will be lost!
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma implementation "dialogs_wdr.cpp"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// For compilers that support precompilation
|
|
||||||
#include "wx/wxprec.h"
|
|
||||||
|
|
||||||
#ifdef __BORLANDC__
|
|
||||||
#pragma hdrstop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Include private header
|
|
||||||
#include "dialogs_wdr.h"
|
|
||||||
|
|
||||||
|
|
||||||
// Implement window functions
|
|
||||||
|
|
||||||
wxSizer *MonitorDialogFunc( wxPanel *parent, bool call_fit, bool set_sizer )
|
|
||||||
{
|
|
||||||
wxSizer *item0 = new wxBoxSizer( wxVERTICAL );
|
|
||||||
|
|
||||||
wxSizer *item1 = new wxFlexGridSizer( 2, 0, 0 );
|
|
||||||
|
|
||||||
wxSizer *item2 = new wxBoxSizer( wxHORIZONTAL );
|
|
||||||
|
|
||||||
wxStaticText *item3 = new wxStaticText( parent, ID_TEXT_MANUFACTURER, "Manufacturer:", wxDefaultPosition, wxSize(180,-1), 0 );
|
|
||||||
item3->SetForegroundColour( *wxBLACK );
|
|
||||||
item3->SetBackgroundColour( *wxWHITE );
|
|
||||||
item2->Add( item3, 0, wxALIGN_CENTRE, 5 );
|
|
||||||
|
|
||||||
item2->Add( 10, 20, 0, wxALIGN_CENTRE, 5 );
|
|
||||||
|
|
||||||
item1->Add( item2, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
|
||||||
|
|
||||||
wxSizer *item4 = new wxBoxSizer( wxHORIZONTAL );
|
|
||||||
|
|
||||||
wxStaticText *item5 = new wxStaticText( parent, ID_TEXT_MODEL, "Model:", wxDefaultPosition, wxSize(250,-1), 0 );
|
|
||||||
item5->SetForegroundColour( *wxBLACK );
|
|
||||||
item5->SetBackgroundColour( *wxWHITE );
|
|
||||||
item4->Add( item5, 0, wxALIGN_CENTRE, 5 );
|
|
||||||
|
|
||||||
item1->Add( item4, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
|
||||||
|
|
||||||
wxSizer *item6 = new wxBoxSizer( wxHORIZONTAL );
|
|
||||||
|
|
||||||
wxTextCtrl *item7 = new wxTextCtrl( parent, ID_TEXTCTRL_MFTR, "", wxDefaultPosition, wxSize(190,-1), wxTE_READONLY );
|
|
||||||
item7->SetForegroundColour( *wxBLACK );
|
|
||||||
item7->SetBackgroundColour( *wxWHITE );
|
|
||||||
item6->Add( item7, 0, wxALIGN_CENTRE, 5 );
|
|
||||||
|
|
||||||
item6->Add( 15, 20, 0, wxALIGN_CENTRE, 5 );
|
|
||||||
|
|
||||||
item1->Add( item6, 0, wxALIGN_CENTRE, 5 );
|
|
||||||
|
|
||||||
wxSizer *item8 = new wxBoxSizer( wxHORIZONTAL );
|
|
||||||
|
|
||||||
wxTextCtrl *item9 = new wxTextCtrl( parent, ID_TEXTCTRL_MDL, "", wxDefaultPosition, wxSize(260,-1), wxTE_READONLY );
|
|
||||||
item8->Add( item9, 0, wxALIGN_CENTRE, 5 );
|
|
||||||
|
|
||||||
item1->Add( item8, 0, wxALIGN_CENTRE, 5 );
|
|
||||||
|
|
||||||
wxSizer *item10 = new wxBoxSizer( wxHORIZONTAL );
|
|
||||||
|
|
||||||
wxString *strs11 = (wxString*) NULL;
|
|
||||||
wxListBox *item11 = new wxListBox( parent, ID_LISTBOX_MFTR, wxDefaultPosition, wxSize(190,150), 0, strs11, wxLB_SORT|wxLB_ALWAYS_SB );
|
|
||||||
item10->Add( item11, 0, wxALIGN_CENTRE, 5 );
|
|
||||||
|
|
||||||
item10->Add( 15, 20, 0, wxALIGN_CENTRE, 5 );
|
|
||||||
|
|
||||||
item1->Add( item10, 0, wxALIGN_CENTRE, 5 );
|
|
||||||
|
|
||||||
wxSizer *item12 = new wxBoxSizer( wxHORIZONTAL );
|
|
||||||
|
|
||||||
wxString *strs13 = (wxString*) NULL;
|
|
||||||
wxListBox *item13 = new wxListBox( parent, ID_LISTBOX_MDL, wxDefaultPosition, wxSize(260,150), 0, strs13, wxLB_SORT|wxLB_NEEDED_SB );
|
|
||||||
item13->SetForegroundColour( *wxBLACK );
|
|
||||||
item13->SetBackgroundColour( *wxWHITE );
|
|
||||||
item12->Add( item13, 0, wxALIGN_CENTRE, 5 );
|
|
||||||
|
|
||||||
item1->Add( item12, 0, wxALIGN_CENTRE, 5 );
|
|
||||||
|
|
||||||
item0->Add( item1, 0, wxALIGN_CENTRE, 15 );
|
|
||||||
|
|
||||||
if (set_sizer)
|
|
||||||
{
|
|
||||||
parent->SetAutoLayout( TRUE );
|
|
||||||
parent->SetSizer( item0 );
|
|
||||||
if (call_fit)
|
|
||||||
{
|
|
||||||
item0->Fit( parent );
|
|
||||||
item0->SetSizeHints( parent );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return item0;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Implement bitmap functions
|
|
||||||
|
|
||||||
|
|
||||||
// End of generated file
|
|
@@ -1,42 +0,0 @@
|
|||||||
//------------------------------------------------------------------------------
|
|
||||||
// Header generated by wxDesigner from file: dialogs.wdr
|
|
||||||
// Do not modify this file, all changes will be lost!
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __WDR_dialogs_H__
|
|
||||||
#define __WDR_dialogs_H__
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma interface "dialogs_wdr.cpp"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Include wxWindows' headers
|
|
||||||
|
|
||||||
#ifndef WX_PRECOMP
|
|
||||||
#include <wx/wx.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <wx/image.h>
|
|
||||||
#include <wx/statline.h>
|
|
||||||
#include <wx/spinbutt.h>
|
|
||||||
#include <wx/spinctrl.h>
|
|
||||||
#include <wx/splitter.h>
|
|
||||||
#include <wx/listctrl.h>
|
|
||||||
#include <wx/treectrl.h>
|
|
||||||
#include <wx/notebook.h>
|
|
||||||
|
|
||||||
// Declare window functions
|
|
||||||
|
|
||||||
#define ID_TEXT_MANUFACTURER 10000
|
|
||||||
#define ID_TEXT_MODEL 10001
|
|
||||||
#define ID_TEXTCTRL_MFTR 10
|
|
||||||
#define ID_TEXTCTRL_MDL 20
|
|
||||||
#define ID_LISTBOX_MFTR 11
|
|
||||||
#define ID_LISTBOX_MDL 21
|
|
||||||
wxSizer *MonitorDialogFunc( wxPanel *parent, bool call_fit = TRUE, bool set_sizer = TRUE );
|
|
||||||
|
|
||||||
// Declare bitmap functions
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// End of generated file
|
|
@@ -1,21 +0,0 @@
|
|||||||
<html>
|
|
||||||
<head><title>Widgets demo</title></head>
|
|
||||||
<body text="#000000" bgcolor="#D0D0D0">
|
|
||||||
|
|
||||||
<h3>wxHtmlWidgetCell demonstration</h3>
|
|
||||||
|
|
||||||
There is an embedded window somewhere around. Enjoy it.
|
|
||||||
|
|
||||||
<A HREF="about.html">About...</A>
|
|
||||||
|
|
||||||
<insert "wxChipsetName">
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
<center>
|
|
||||||
<embed applet="MonitorApplet" width=100 height=100>
|
|
||||||
</center>
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
@@ -1,218 +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 wxApplet class implementation
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
// For compilers that support precompilation
|
|
||||||
#include "wx/wxprec.h"
|
|
||||||
|
|
||||||
// Include private headers
|
|
||||||
#include "wx/wx.h"
|
|
||||||
#include "monitorapplet.h"
|
|
||||||
|
|
||||||
/*---------------------------- Global variables ---------------------------*/
|
|
||||||
|
|
||||||
// Implement the dynamic class so it can be constructed dynamically
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(MonitorApplet, wxApplet);
|
|
||||||
|
|
||||||
// Event handler table.
|
|
||||||
BEGIN_EVENT_TABLE(MonitorApplet, wxApplet)
|
|
||||||
EVT_LISTBOX(ID_LISTBOX_MFTR, MonitorApplet::OnChange)
|
|
||||||
EVT_LISTBOX(ID_LISTBOX_MDL, MonitorApplet::OnChange)
|
|
||||||
END_EVENT_TABLE()
|
|
||||||
|
|
||||||
// Include database of known monitors. Normally this would come from a
|
|
||||||
// real database on disk, but for this simple example we hard code all
|
|
||||||
// the values into a table.
|
|
||||||
#include "monitors.c"
|
|
||||||
|
|
||||||
/*------------------------- Implementation --------------------------------*/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
Constructor called during dynamic creation. Simple initialise all
|
|
||||||
internal values for the class so that it can be properly created later
|
|
||||||
via the virtual Create member function.
|
|
||||||
****************************************************************************/
|
|
||||||
MonitorApplet::MonitorApplet()
|
|
||||||
{
|
|
||||||
m_Mfr = NULL;
|
|
||||||
m_Model = NULL;
|
|
||||||
m_Data = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
Psuedo virtual constructor for the MonitorApplet class.
|
|
||||||
****************************************************************************/
|
|
||||||
bool MonitorApplet::Create(
|
|
||||||
wxHtmlAppletWindow *parent,
|
|
||||||
const wxSize& size,
|
|
||||||
long style)
|
|
||||||
{
|
|
||||||
bool ret = wxApplet::Create(parent, size, style);
|
|
||||||
if (ret) {
|
|
||||||
// Read our cookie or create it if it does not exist
|
|
||||||
if ((m_Data = (MonitorData*)parent->FindCookie(MONITOR_COOKIE_NAME)) == NULL) {
|
|
||||||
m_Data = new MonitorData;
|
|
||||||
memset(&m_Data->m_Monitor,0,sizeof(m_Data->m_Monitor));
|
|
||||||
parent->RegisterCookie(MONITOR_COOKIE_NAME,m_Data);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Create all the controls and initialise them
|
|
||||||
MonitorDialogFunc(this,true,true);
|
|
||||||
if ((m_Mfr = new ComboBox(this , ID_LISTBOX_MFTR, ID_TEXTCTRL_MFTR)) == NULL)
|
|
||||||
return false;
|
|
||||||
if ((m_Model = new ComboBox(this , ID_LISTBOX_MDL, ID_TEXTCTRL_MDL)) == NULL)
|
|
||||||
return false;
|
|
||||||
ReadMfrList();
|
|
||||||
ReadModelList(true);
|
|
||||||
}
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
Destructor for the MonitorApplet class.
|
|
||||||
****************************************************************************/
|
|
||||||
MonitorApplet::~MonitorApplet()
|
|
||||||
{
|
|
||||||
delete m_Mfr;
|
|
||||||
delete m_Model;
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
Save the current state for the applet to our cookie
|
|
||||||
****************************************************************************/
|
|
||||||
void MonitorApplet::SaveCurrentState()
|
|
||||||
{
|
|
||||||
// Read currently selected strings into cookie
|
|
||||||
strcpy(m_Data->m_Monitor.m_Mfr,m_Mfr->GetStringSelection());
|
|
||||||
strcpy(m_Data->m_Monitor.m_Model,m_Model->GetStringSelection());
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
Handles user navigation away from the applet via an HTML link
|
|
||||||
****************************************************************************/
|
|
||||||
void MonitorApplet::OnLinkClicked(
|
|
||||||
const wxHtmlLinkInfo&)
|
|
||||||
{
|
|
||||||
SaveCurrentState();
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
Handles user navigation away from the applet via the history forward command
|
|
||||||
****************************************************************************/
|
|
||||||
void MonitorApplet::OnHistoryForward()
|
|
||||||
{
|
|
||||||
SaveCurrentState();
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
Handles user navigation away from the applet via the history back command
|
|
||||||
****************************************************************************/
|
|
||||||
void MonitorApplet::OnHistoryBack()
|
|
||||||
{
|
|
||||||
SaveCurrentState();
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
Handles inter applet communication messages
|
|
||||||
****************************************************************************/
|
|
||||||
void MonitorApplet::OnMessage(
|
|
||||||
wxEvent& msg)
|
|
||||||
{
|
|
||||||
msg.Skip(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
****************************************************************************/
|
|
||||||
void MonitorApplet::OnChange(
|
|
||||||
wxCommandEvent &evt)
|
|
||||||
{
|
|
||||||
if (evt.GetId() == m_Mfr->GetListBoxId()) {
|
|
||||||
m_Mfr->OnChange(evt);
|
|
||||||
ReadModelList(true);
|
|
||||||
}
|
|
||||||
else if (evt.GetId() == m_Model->GetListBoxId()) {
|
|
||||||
m_Model->OnChange(evt);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
Updates the manufacturer list for the dialog box from the database.
|
|
||||||
****************************************************************************/
|
|
||||||
void MonitorApplet::ReadMfrList()
|
|
||||||
{
|
|
||||||
char buf[80] = "";
|
|
||||||
int i,selected = 0;
|
|
||||||
MonitorEntry *m;
|
|
||||||
|
|
||||||
m_Mfr->Clear();
|
|
||||||
for (m = m_Monitors,i = 0; m->m_Mfr[0] != 0; m++) {
|
|
||||||
if (wxStricmp(buf,m->m_Mfr) != 0) {
|
|
||||||
m_Mfr->Append(m->m_Mfr);
|
|
||||||
if (wxStricmp(m_Data->m_Monitor.m_Mfr,m->m_Mfr) == 0)
|
|
||||||
selected = i;
|
|
||||||
strcpy(buf,m->m_Mfr);
|
|
||||||
i++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
m_Mfr->Select(selected);
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
Updates the model list for the dialog box for the currently selected
|
|
||||||
manufacturer type.
|
|
||||||
****************************************************************************/
|
|
||||||
void MonitorApplet::ReadModelList(
|
|
||||||
bool selectCurrent)
|
|
||||||
{
|
|
||||||
int i,selected = 0;
|
|
||||||
MonitorEntry *m;
|
|
||||||
wxString mfrStr;
|
|
||||||
|
|
||||||
mfrStr = m_Mfr->GetStringSelection();
|
|
||||||
m_Model->Clear();
|
|
||||||
for (m = m_Monitors,i = 0; m->m_Mfr[0] != 0; m++) {
|
|
||||||
if (wxStricmp(mfrStr,m->m_Mfr) == 0) {
|
|
||||||
m_Model->Append(m->m_Model);
|
|
||||||
if (selectCurrent && wxStricmp(m_Data->m_Monitor.m_Model,m->m_Model) == 0)
|
|
||||||
selected = i;
|
|
||||||
i++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
m_Model->Select(selected);
|
|
||||||
}
|
|
||||||
|
|
@@ -1,112 +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 MonitorApplet class
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#ifndef __WX_MONITORAPPLET_H
|
|
||||||
#define __WX_MONITORAPPLET_H
|
|
||||||
|
|
||||||
#include "wx/applet/applet.h"
|
|
||||||
#include "combobox.h"
|
|
||||||
#include "dialogs_wdr.h"
|
|
||||||
|
|
||||||
/*--------------------------- Class Definitions ---------------------------*/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
Structure defining the simple monitor database records.
|
|
||||||
****************************************************************************/
|
|
||||||
struct MonitorEntry {
|
|
||||||
char m_Mfr[60];
|
|
||||||
char m_Model[60];
|
|
||||||
};
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
Defines our wxMonitorData cookie object that is stored to maintain state
|
|
||||||
information for this MonitorApplet.
|
|
||||||
****************************************************************************/
|
|
||||||
class MonitorData : public wxObject {
|
|
||||||
public:
|
|
||||||
MonitorEntry m_Monitor;
|
|
||||||
};
|
|
||||||
|
|
||||||
// Name used to track the monitor data cookie
|
|
||||||
#define MONITOR_COOKIE_NAME "MonitorData"
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
REMARKS:
|
|
||||||
Defines our wxMonitor applet class
|
|
||||||
****************************************************************************/
|
|
||||||
class MonitorApplet : public wxApplet {
|
|
||||||
private:
|
|
||||||
DECLARE_DYNAMIC_CLASS(MonitorApplet);
|
|
||||||
DECLARE_EVENT_TABLE();
|
|
||||||
|
|
||||||
protected:
|
|
||||||
ComboBox *m_Mfr;
|
|
||||||
ComboBox *m_Model;
|
|
||||||
MonitorData *m_Data;
|
|
||||||
static MonitorEntry m_Monitors[];
|
|
||||||
|
|
||||||
// Flush the current state to a cookie
|
|
||||||
void SaveCurrentState();
|
|
||||||
|
|
||||||
public:
|
|
||||||
// Constructor (called during dynamic creation)
|
|
||||||
MonitorApplet();
|
|
||||||
|
|
||||||
// Psuedo virtual constructor
|
|
||||||
virtual bool Create(
|
|
||||||
wxHtmlAppletWindow *parent,
|
|
||||||
const wxSize& size,
|
|
||||||
long style);
|
|
||||||
|
|
||||||
// Virtual destructor
|
|
||||||
virtual ~MonitorApplet();
|
|
||||||
|
|
||||||
// Handle HTML navigation to a new URL
|
|
||||||
virtual void OnLinkClicked(const wxHtmlLinkInfo& link);
|
|
||||||
|
|
||||||
// Handle HTML navigation forward command in applet
|
|
||||||
virtual void OnHistoryForward();
|
|
||||||
|
|
||||||
// Handle HTML navigation back command in applet
|
|
||||||
virtual void OnHistoryBack();
|
|
||||||
|
|
||||||
// Handle messages from the wxAppletManager and other applets
|
|
||||||
virtual void OnMessage(wxEvent& msg);
|
|
||||||
|
|
||||||
// Update the model and menufacturer lists
|
|
||||||
void ReadMfrList();
|
|
||||||
void ReadModelList(bool selectCurrent);
|
|
||||||
|
|
||||||
// Event handlers
|
|
||||||
void OnChange(wxCommandEvent &event);
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // __WX_MONITORAPPLET_H
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
@@ -1,10 +0,0 @@
|
|||||||
# $Id$
|
|
||||||
|
|
||||||
CONTRIB_SAMPLES=test simple
|
|
||||||
|
|
||||||
all:
|
|
||||||
@for d in $(CONTRIB_SAMPLES); do (cd $$d && $(MAKE)); done
|
|
||||||
|
|
||||||
clean:
|
|
||||||
@for d in $(CONTRIB_SAMPLES); do (cd $$d && $(MAKE) clean); done
|
|
||||||
|
|
@@ -1,23 +0,0 @@
|
|||||||
#
|
|
||||||
# File: Makefile.in
|
|
||||||
# Author: Julian Smart
|
|
||||||
# Created: 2000
|
|
||||||
# Updated:
|
|
||||||
# Copyright: (c) 2000 Julian Smart
|
|
||||||
#
|
|
||||||
# "%W% %G%"
|
|
||||||
#
|
|
||||||
# Makefile for the multicell example (UNIX).
|
|
||||||
|
|
||||||
top_srcdir = @top_srcdir@/..
|
|
||||||
top_builddir = ../../../..
|
|
||||||
program_dir = contrib/samples/canvas/simple
|
|
||||||
|
|
||||||
PROGRAM=simple
|
|
||||||
|
|
||||||
OBJECTS=simple.o
|
|
||||||
|
|
||||||
APPEXTRALIBS=$(top_builddir)/lib/libcanvas.@WX_TARGET_LIBRARY_TYPE@
|
|
||||||
APPEXTRADEFS=-I$(top_srcdir)/contrib/include
|
|
||||||
|
|
||||||
include $(top_builddir)/src/makeprog.env
|
|
@@ -1,175 +0,0 @@
|
|||||||
# Microsoft Developer Studio Project File - Name="SimpleVC" - Package Owner=<4>
|
|
||||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
|
||||||
# ** DO NOT EDIT **
|
|
||||||
|
|
||||||
# TARGTYPE "Win32 (x86) Application" 0x0101
|
|
||||||
|
|
||||||
CFG=SimpleVC - Win32 Debug
|
|
||||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
|
||||||
!MESSAGE use the Export Makefile command and run
|
|
||||||
!MESSAGE
|
|
||||||
!MESSAGE NMAKE /f "SimpleVC.mak".
|
|
||||||
!MESSAGE
|
|
||||||
!MESSAGE You can specify a configuration when running NMAKE
|
|
||||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
|
||||||
!MESSAGE
|
|
||||||
!MESSAGE NMAKE /f "SimpleVC.mak" CFG="SimpleVC - Win32 Debug"
|
|
||||||
!MESSAGE
|
|
||||||
!MESSAGE Possible choices for configuration are:
|
|
||||||
!MESSAGE
|
|
||||||
!MESSAGE "SimpleVC - Win32 Release" (based on "Win32 (x86) Application")
|
|
||||||
!MESSAGE "SimpleVC - Win32 Debug" (based on "Win32 (x86) Application")
|
|
||||||
!MESSAGE "SimpleVC - Win32 Debug DLL" (based on "Win32 (x86) Application")
|
|
||||||
!MESSAGE "SimpleVC - Win32 Release DLL" (based on "Win32 (x86) Application")
|
|
||||||
!MESSAGE
|
|
||||||
|
|
||||||
# Begin Project
|
|
||||||
# PROP AllowPerConfigDependencies 0
|
|
||||||
# PROP Scc_ProjName ""
|
|
||||||
# PROP Scc_LocalPath ""
|
|
||||||
CPP=cl.exe
|
|
||||||
MTL=midl.exe
|
|
||||||
RSC=rc.exe
|
|
||||||
|
|
||||||
!IF "$(CFG)" == "SimpleVC - Win32 Release"
|
|
||||||
|
|
||||||
# PROP BASE Use_MFC 0
|
|
||||||
# PROP BASE Use_Debug_Libraries 0
|
|
||||||
# PROP BASE Output_Dir "Release"
|
|
||||||
# PROP BASE Intermediate_Dir "Release"
|
|
||||||
# PROP BASE Target_Dir ""
|
|
||||||
# PROP Use_MFC 0
|
|
||||||
# PROP Use_Debug_Libraries 0
|
|
||||||
# PROP Output_Dir "Release"
|
|
||||||
# PROP Intermediate_Dir "Release"
|
|
||||||
# PROP Ignore_Export_Lib 0
|
|
||||||
# PROP Target_Dir ""
|
|
||||||
# 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" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
|
||||||
# SUBTRACT CPP /YX
|
|
||||||
# ADD BASE 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 RSC /l 0x809 /d "NDEBUG"
|
|
||||||
BSC32=bscmake.exe
|
|
||||||
# ADD BASE BSC32 /nologo
|
|
||||||
# ADD BSC32 /nologo
|
|
||||||
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 LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib 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 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"
|
|
||||||
|
|
||||||
# PROP BASE Use_MFC 0
|
|
||||||
# PROP BASE Use_Debug_Libraries 1
|
|
||||||
# PROP BASE Output_Dir "Debug"
|
|
||||||
# PROP BASE Intermediate_Dir "Debug"
|
|
||||||
# PROP BASE Target_Dir ""
|
|
||||||
# PROP Use_MFC 0
|
|
||||||
# PROP Use_Debug_Libraries 1
|
|
||||||
# PROP Output_Dir "Debug"
|
|
||||||
# PROP Intermediate_Dir "Debug"
|
|
||||||
# PROP Ignore_Export_Lib 0
|
|
||||||
# PROP Target_Dir ""
|
|
||||||
# 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" /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
|
|
||||||
# ADD BASE 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 RSC /l 0x809 /d "_DEBUG"
|
|
||||||
BSC32=bscmake.exe
|
|
||||||
# ADD BASE BSC32 /nologo
|
|
||||||
# ADD BSC32 /nologo
|
|
||||||
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 LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib 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 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"
|
|
||||||
|
|
||||||
# PROP BASE Use_MFC 0
|
|
||||||
# PROP BASE Use_Debug_Libraries 1
|
|
||||||
# PROP BASE Output_Dir "DebugDLL"
|
|
||||||
# PROP BASE Intermediate_Dir "DebugDLL"
|
|
||||||
# PROP BASE Target_Dir ""
|
|
||||||
# PROP Use_MFC 0
|
|
||||||
# PROP Use_Debug_Libraries 1
|
|
||||||
# PROP Output_Dir "DebugDLL"
|
|
||||||
# PROP Intermediate_Dir "DebugDLL"
|
|
||||||
# PROP Ignore_Export_Lib 0
|
|
||||||
# PROP Target_Dir ""
|
|
||||||
# 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" /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 MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
|
|
||||||
# ADD BASE RSC /l 0x809 /d "_DEBUG"
|
|
||||||
# ADD RSC /l 0x809 /d "_DEBUG"
|
|
||||||
BSC32=bscmake.exe
|
|
||||||
# ADD BASE BSC32 /nologo
|
|
||||||
# ADD BSC32 /nologo
|
|
||||||
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 LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib 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"
|
|
||||||
|
|
||||||
# PROP BASE Use_MFC 0
|
|
||||||
# PROP BASE Use_Debug_Libraries 0
|
|
||||||
# PROP BASE Output_Dir "ReleaseDLL"
|
|
||||||
# PROP BASE Intermediate_Dir "ReleaseDLL"
|
|
||||||
# PROP BASE Target_Dir ""
|
|
||||||
# PROP Use_MFC 0
|
|
||||||
# PROP Use_Debug_Libraries 0
|
|
||||||
# PROP Output_Dir "ReleaseDLL"
|
|
||||||
# PROP Intermediate_Dir "ReleaseDLL"
|
|
||||||
# PROP Ignore_Export_Lib 0
|
|
||||||
# PROP Target_Dir ""
|
|
||||||
# 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" /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
|
|
||||||
# ADD BASE 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 RSC /l 0x809 /d "NDEBUG"
|
|
||||||
BSC32=bscmake.exe
|
|
||||||
# ADD BASE BSC32 /nologo
|
|
||||||
# ADD BSC32 /nologo
|
|
||||||
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 LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib 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
|
|
||||||
|
|
||||||
# Begin Target
|
|
||||||
|
|
||||||
# Name "SimpleVC - Win32 Release"
|
|
||||||
# Name "SimpleVC - Win32 Debug"
|
|
||||||
# Name "SimpleVC - Win32 Debug DLL"
|
|
||||||
# Name "SimpleVC - Win32 Release DLL"
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=.\simple.cpp
|
|
||||||
|
|
||||||
!IF "$(CFG)" == "SimpleVC - Win32 Release"
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "SimpleVC - Win32 Debug"
|
|
||||||
|
|
||||||
# SUBTRACT CPP /YX /Yc /Yu
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "SimpleVC - Win32 Debug DLL"
|
|
||||||
|
|
||||||
# SUBTRACT CPP /YX /Yc /Yu
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "SimpleVC - Win32 Release DLL"
|
|
||||||
|
|
||||||
!ENDIF
|
|
||||||
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=.\simple.rc
|
|
||||||
# ADD BASE RSC /l 0x809
|
|
||||||
# ADD RSC /l 0x809 /i "..\..\include"
|
|
||||||
# End Source File
|
|
||||||
# End Target
|
|
||||||
# End Project
|
|
@@ -1,29 +0,0 @@
|
|||||||
Microsoft Developer Studio Workspace File, Format Version 6.00
|
|
||||||
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
Project: "SimpleVC"=.\SimpleVC.dsp - Package Owner=<4>
|
|
||||||
|
|
||||||
Package=<5>
|
|
||||||
{{{
|
|
||||||
}}}
|
|
||||||
|
|
||||||
Package=<4>
|
|
||||||
{{{
|
|
||||||
}}}
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
Global:
|
|
||||||
|
|
||||||
Package=<5>
|
|
||||||
{{{
|
|
||||||
}}}
|
|
||||||
|
|
||||||
Package=<3>
|
|
||||||
{{{
|
|
||||||
}}}
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
|
|
@@ -1,18 +0,0 @@
|
|||||||
#
|
|
||||||
# File: makefile.b32
|
|
||||||
# Author: Julian Smart
|
|
||||||
# Created: 1999
|
|
||||||
# Updated:
|
|
||||||
# Copyright:
|
|
||||||
#
|
|
||||||
# Makefile : Builds sample for 32-bit BC++
|
|
||||||
|
|
||||||
WXDIR = $(WXWIN)
|
|
||||||
|
|
||||||
TARGET=simple
|
|
||||||
|
|
||||||
EXTRALIBS=$(WXDIR)\lib\canvas.lib
|
|
||||||
OBJECTS = $(TARGET).obj
|
|
||||||
|
|
||||||
!include $(WXDIR)\src\makeprog.b32
|
|
||||||
|
|
@@ -1,14 +0,0 @@
|
|||||||
# File: makefile.g95 for Plot demo
|
|
||||||
# Author: Julian Smart
|
|
||||||
# Created: 2001-06-12
|
|
||||||
# Updated:
|
|
||||||
|
|
||||||
WXDIR = ../../../..
|
|
||||||
|
|
||||||
TARGET = simple
|
|
||||||
OBJECTS = $(TARGET).o
|
|
||||||
EXTRAINC = -I$(WXDIR)/contrib/include
|
|
||||||
EXTRALIBS = -lcanvas
|
|
||||||
|
|
||||||
include $(WXDIR)/src/makeprog.g95
|
|
||||||
|
|
@@ -1,14 +0,0 @@
|
|||||||
# File: makefile.vc for Plot sample
|
|
||||||
# Author: Julian Smart
|
|
||||||
# Created: 2001-06-12
|
|
||||||
# Updated:
|
|
||||||
|
|
||||||
WXDIR = $(WXWIN)
|
|
||||||
PROGRAM = simple
|
|
||||||
|
|
||||||
OBJECTS = $(PROGRAM).obj
|
|
||||||
EXTRALIBS = $(WXDIR)\lib\canvas$(LIBEXT).lib
|
|
||||||
EXTRAINC = -I$(WXDIR)\contrib\include
|
|
||||||
|
|
||||||
!include $(WXDIR)\src\makeprog.vc
|
|
||||||
|
|
@@ -1,44 +0,0 @@
|
|||||||
/* XPM */
|
|
||||||
static char *mondrian_xpm[] = {
|
|
||||||
/* columns rows colors chars-per-pixel */
|
|
||||||
"32 32 6 1",
|
|
||||||
" c Black",
|
|
||||||
". c Blue",
|
|
||||||
"X c #00bf00",
|
|
||||||
"o c Red",
|
|
||||||
"O c Yellow",
|
|
||||||
"+ c Gray100",
|
|
||||||
/* pixels */
|
|
||||||
" ",
|
|
||||||
" oooooo +++++++++++++++++++++++ ",
|
|
||||||
" oooooo +++++++++++++++++++++++ ",
|
|
||||||
" oooooo +++++++++++++++++++++++ ",
|
|
||||||
" oooooo +++++++++++++++++++++++ ",
|
|
||||||
" oooooo +++++++++++++++++++++++ ",
|
|
||||||
" oooooo +++++++++++++++++++++++ ",
|
|
||||||
" oooooo +++++++++++++++++++++++ ",
|
|
||||||
" ",
|
|
||||||
" ++++++ ++++++++++++++++++ .... ",
|
|
||||||
" ++++++ ++++++++++++++++++ .... ",
|
|
||||||
" ++++++ ++++++++++++++++++ .... ",
|
|
||||||
" ++++++ ++++++++++++++++++ .... ",
|
|
||||||
" ++++++ ++++++++++++++++++ .... ",
|
|
||||||
" ++++++ ++++++++++++++++++ ",
|
|
||||||
" ++++++ ++++++++++++++++++ ++++ ",
|
|
||||||
" ++++++ ++++++++++++++++++ ++++ ",
|
|
||||||
" ++++++ ++++++++++++++++++ ++++ ",
|
|
||||||
" ++++++ ++++++++++++++++++ ++++ ",
|
|
||||||
" ++++++ ++++++++++++++++++ ++++ ",
|
|
||||||
" ++++++ ++++++++++++++++++ ++++ ",
|
|
||||||
" ++++++ ++++++++++++++++++ ++++ ",
|
|
||||||
" ++++++ ++++++++++++++++++ ++++ ",
|
|
||||||
" ++++++ ++++++++++++++++++ ++++ ",
|
|
||||||
" ++++++ ++++ ",
|
|
||||||
" ++++++ OOOOOOOOOOOO XXXXX ++++ ",
|
|
||||||
" ++++++ OOOOOOOOOOOO XXXXX ++++ ",
|
|
||||||
" ++++++ OOOOOOOOOOOO XXXXX ++++ ",
|
|
||||||
" ++++++ OOOOOOOOOOOO XXXXX ++++ ",
|
|
||||||
" ++++++ OOOOOOOOOOOO XXXXX ++++ ",
|
|
||||||
" ++++++ OOOOOOOOOOOO XXXXX ++++ ",
|
|
||||||
" "
|
|
||||||
};
|
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user