Compare commits
20 Commits
v2.6.2
...
BEFORE_PRA
Author | SHA1 | Date | |
---|---|---|---|
|
d53bd38b85 | ||
|
919de94c4f | ||
|
2b5e2b5847 | ||
|
cae8f1bf03 | ||
|
422e411e95 | ||
|
74a7eb0bf6 | ||
|
37d0e9f603 | ||
|
de9a407728 | ||
|
d1fd98ccd8 | ||
|
421d214fa9 | ||
|
d48ba93329 | ||
|
ef1a9be407 | ||
|
fc87210f7d | ||
|
ae4e0c7a5c | ||
|
66c05fa96b | ||
|
ea4806251e | ||
|
57764418a4 | ||
|
7615dee740 | ||
|
9ffaedfcd0 | ||
|
9a7247f0e9 |
169
Makefile.in
169
Makefile.in
@@ -215,7 +215,7 @@ WXEXPAT_OBJECTS = \
|
|||||||
wxexpat_xmlrole.o \
|
wxexpat_xmlrole.o \
|
||||||
wxexpat_xmltok.o
|
wxexpat_xmltok.o
|
||||||
PLUGINS_INST_DIR = $(libdir)/wx/$(PLUGIN_VERSION0)
|
PLUGINS_INST_DIR = $(libdir)/wx/$(PLUGIN_VERSION0)
|
||||||
ALL_BASE_HEADERS = \
|
ALL_HEADERS = \
|
||||||
wx/afterstd.h \
|
wx/afterstd.h \
|
||||||
wx/app.h \
|
wx/app.h \
|
||||||
wx/apptrait.h \
|
wx/apptrait.h \
|
||||||
@@ -337,10 +337,164 @@ ALL_BASE_HEADERS = \
|
|||||||
wx/xtixml.h \
|
wx/xtixml.h \
|
||||||
wx/db.h \
|
wx/db.h \
|
||||||
wx/dbkeyg.h \
|
wx/dbkeyg.h \
|
||||||
wx/dbtable.h
|
wx/dbtable.h \
|
||||||
ALL_HEADERS = \
|
|
||||||
$(ALL_BASE_HEADERS) \
|
|
||||||
$(ALL_GUI_HEADERS)
|
$(ALL_GUI_HEADERS)
|
||||||
|
ALL_BASE_HEADERS = \
|
||||||
|
wx/afterstd.h \
|
||||||
|
wx/app.h \
|
||||||
|
wx/apptrait.h \
|
||||||
|
wx/archive.h \
|
||||||
|
wx/arrimpl.cpp \
|
||||||
|
wx/arrstr.h \
|
||||||
|
wx/beforestd.h \
|
||||||
|
wx/buffer.h \
|
||||||
|
wx/build.h \
|
||||||
|
wx/chkconf.h \
|
||||||
|
wx/clntdata.h \
|
||||||
|
wx/cmdline.h \
|
||||||
|
wx/confbase.h \
|
||||||
|
wx/config.h \
|
||||||
|
wx/containr.h \
|
||||||
|
wx/datetime.h \
|
||||||
|
wx/datstrm.h \
|
||||||
|
wx/dde.h \
|
||||||
|
wx/debug.h \
|
||||||
|
wx/defs.h \
|
||||||
|
wx/dir.h \
|
||||||
|
wx/dlimpexp.h \
|
||||||
|
wx/dynarray.h \
|
||||||
|
wx/dynlib.h \
|
||||||
|
wx/dynload.h \
|
||||||
|
wx/encconv.h \
|
||||||
|
wx/event.h \
|
||||||
|
wx/except.h \
|
||||||
|
wx/features.h \
|
||||||
|
wx/ffile.h \
|
||||||
|
wx/file.h \
|
||||||
|
wx/fileconf.h \
|
||||||
|
wx/filefn.h \
|
||||||
|
wx/filename.h \
|
||||||
|
wx/filesys.h \
|
||||||
|
wx/fontenc.h \
|
||||||
|
wx/fontmap.h \
|
||||||
|
wx/fs_mem.h \
|
||||||
|
wx/fs_zip.h \
|
||||||
|
wx/hash.h \
|
||||||
|
wx/hashmap.h \
|
||||||
|
wx/hashset.h \
|
||||||
|
wx/html/forcelnk.h \
|
||||||
|
wx/iconloc.h \
|
||||||
|
wx/init.h \
|
||||||
|
wx/intl.h \
|
||||||
|
wx/iosfwrap.h \
|
||||||
|
wx/ioswrap.h \
|
||||||
|
wx/ipc.h \
|
||||||
|
wx/ipcbase.h \
|
||||||
|
wx/isql.h \
|
||||||
|
wx/isqlext.h \
|
||||||
|
wx/list.h \
|
||||||
|
wx/listimpl.cpp \
|
||||||
|
wx/log.h \
|
||||||
|
wx/longlong.h \
|
||||||
|
wx/math.h \
|
||||||
|
wx/memconf.h \
|
||||||
|
wx/memory.h \
|
||||||
|
wx/memtext.h \
|
||||||
|
wx/mimetype.h \
|
||||||
|
wx/module.h \
|
||||||
|
wx/msgout.h \
|
||||||
|
wx/mstream.h \
|
||||||
|
wx/object.h \
|
||||||
|
wx/platform.h \
|
||||||
|
wx/process.h \
|
||||||
|
wx/ptr_scpd.h \
|
||||||
|
wx/recguard.h \
|
||||||
|
wx/regex.h \
|
||||||
|
wx/scopeguard.h \
|
||||||
|
wx/snglinst.h \
|
||||||
|
wx/sstream.h \
|
||||||
|
wx/stack.h \
|
||||||
|
wx/stackwalk.h \
|
||||||
|
wx/stdpaths.h \
|
||||||
|
wx/stockitem.h \
|
||||||
|
wx/stopwatch.h \
|
||||||
|
wx/strconv.h \
|
||||||
|
wx/stream.h \
|
||||||
|
wx/string.h \
|
||||||
|
wx/sysopt.h \
|
||||||
|
wx/textbuf.h \
|
||||||
|
wx/textfile.h \
|
||||||
|
wx/thread.h \
|
||||||
|
wx/thrimpl.cpp \
|
||||||
|
wx/timer.h \
|
||||||
|
wx/tokenzr.h \
|
||||||
|
wx/txtstrm.h \
|
||||||
|
wx/types.h \
|
||||||
|
wx/uri.h \
|
||||||
|
wx/utils.h \
|
||||||
|
wx/variant.h \
|
||||||
|
wx/vector.h \
|
||||||
|
wx/version.h \
|
||||||
|
wx/volume.h \
|
||||||
|
wx/wfstream.h \
|
||||||
|
wx/wx.h \
|
||||||
|
wx/wxchar.h \
|
||||||
|
wx/wxprec.h \
|
||||||
|
wx/xti.h \
|
||||||
|
wx/xtistrm.h \
|
||||||
|
wx/zipstrm.h \
|
||||||
|
wx/zstream.h \
|
||||||
|
wx/unix/apptbase.h \
|
||||||
|
wx/unix/apptrait.h \
|
||||||
|
wx/unix/execute.h \
|
||||||
|
wx/unix/mimetype.h \
|
||||||
|
wx/unix/pipe.h \
|
||||||
|
wx/unix/stackwalk.h \
|
||||||
|
wx/unix/stdpaths.h \
|
||||||
|
wx/msw/apptrait.h \
|
||||||
|
wx/msw/apptbase.h \
|
||||||
|
wx/msw/chkconf.h \
|
||||||
|
wx/msw/crashrpt.h \
|
||||||
|
wx/msw/dde.h \
|
||||||
|
wx/msw/debughlp.h \
|
||||||
|
wx/msw/gccpriv.h \
|
||||||
|
wx/msw/mimetype.h \
|
||||||
|
wx/msw/stackwalk.h \
|
||||||
|
wx/msw/stdpaths.h \
|
||||||
|
wx/msw/winundef.h \
|
||||||
|
wx/msw/wrapcctl.h \
|
||||||
|
wx/msw/wrapcdlg.h \
|
||||||
|
wx/msw/wrapwin.h \
|
||||||
|
$(BASE_WINCE_HDR) \
|
||||||
|
$(BASE_MACOSX_HDR) \
|
||||||
|
wx/palmos/apptbase.h \
|
||||||
|
wx/palmos/apptrait.h \
|
||||||
|
wx/palmos/chkconf.h \
|
||||||
|
wx/palmos/mimetype.h \
|
||||||
|
wx/palmos/stdpaths.h \
|
||||||
|
wx/msdos/mimetype.h \
|
||||||
|
wx/fs_inet.h \
|
||||||
|
wx/gsocket.h \
|
||||||
|
wx/protocol/file.h \
|
||||||
|
wx/protocol/ftp.h \
|
||||||
|
wx/protocol/http.h \
|
||||||
|
wx/protocol/protocol.h \
|
||||||
|
wx/sckaddr.h \
|
||||||
|
wx/sckipc.h \
|
||||||
|
wx/sckstrm.h \
|
||||||
|
wx/socket.h \
|
||||||
|
wx/url.h \
|
||||||
|
wx/unix/gsockunx.h \
|
||||||
|
wx/msw/gsockmsw.h \
|
||||||
|
$(NET_WINCE_HDR) \
|
||||||
|
wx/unix/gsockunx.h \
|
||||||
|
wx/unix/gsockunx.h \
|
||||||
|
wx/mac/carbon/gsockmac.h \
|
||||||
|
wx/xml/xml.h \
|
||||||
|
wx/xtixml.h \
|
||||||
|
wx/db.h \
|
||||||
|
wx/dbkeyg.h \
|
||||||
|
wx/dbtable.h
|
||||||
ALL_BASE_SOURCES = \
|
ALL_BASE_SOURCES = \
|
||||||
src/common/appbase.cpp \
|
src/common/appbase.cpp \
|
||||||
src/common/archive.cpp \
|
src/common/archive.cpp \
|
||||||
@@ -24179,6 +24333,7 @@ X11DIR = $(WXDIR)/src/x11
|
|||||||
X11INC = $(WXDIR)/include/wx/x11
|
X11INC = $(WXDIR)/include/wx/x11
|
||||||
MGLDIR = $(WXDIR)/src/mgl
|
MGLDIR = $(WXDIR)/src/mgl
|
||||||
MOTIFDIR = $(WXDIR)/src/motif
|
MOTIFDIR = $(WXDIR)/src/motif
|
||||||
|
MSDOSDIR = $(WXDIR)/src/msdos
|
||||||
MSWDIR = $(WXDIR)/src/msw
|
MSWDIR = $(WXDIR)/src/msw
|
||||||
PMDIR = $(WXDIR)/src/os2
|
PMDIR = $(WXDIR)/src/os2
|
||||||
MACDIR = $(WXDIR)/src/mac
|
MACDIR = $(WXDIR)/src/mac
|
||||||
@@ -24359,9 +24514,11 @@ BASE_DIST: ALL_DIST
|
|||||||
mkdir $(DISTDIR)/include/wx/protocol
|
mkdir $(DISTDIR)/include/wx/protocol
|
||||||
mkdir $(DISTDIR)/include/wx/unix
|
mkdir $(DISTDIR)/include/wx/unix
|
||||||
mkdir $(DISTDIR)/include/wx/xml
|
mkdir $(DISTDIR)/include/wx/xml
|
||||||
|
mkdir $(DISTDIR)/include/wx/msdos
|
||||||
mkdir $(DISTDIR)/include/wx/msw
|
mkdir $(DISTDIR)/include/wx/msw
|
||||||
mkdir $(DISTDIR)/include/wx/html
|
mkdir $(DISTDIR)/include/wx/html
|
||||||
mkdir $(DISTDIR)/src/unix
|
mkdir $(DISTDIR)/src/unix
|
||||||
|
mkdir $(DISTDIR)/src/msdos
|
||||||
mkdir $(DISTDIR)/src/msw
|
mkdir $(DISTDIR)/src/msw
|
||||||
cp $(DOCDIR)/changes.txt $(DISTDIR)/CHANGES.txt
|
cp $(DOCDIR)/changes.txt $(DISTDIR)/CHANGES.txt
|
||||||
cp $(DOCDIR)/base/readme.txt $(DISTDIR)/README.txt
|
cp $(DOCDIR)/base/readme.txt $(DISTDIR)/README.txt
|
||||||
@@ -24536,8 +24693,12 @@ UNIV_DIST: ALL_GUI_DIST
|
|||||||
MGL_DIST: UNIV_DIST
|
MGL_DIST: UNIV_DIST
|
||||||
cp $(WXDIR)/wxMGL.spec $(DISTDIR)
|
cp $(WXDIR)/wxMGL.spec $(DISTDIR)
|
||||||
cp $(INCDIR)/wx/mgl/*.h $(DISTDIR)/include/wx/mgl
|
cp $(INCDIR)/wx/mgl/*.h $(DISTDIR)/include/wx/mgl
|
||||||
|
mkdir $(DISTDIR)/include/wx/msdos
|
||||||
|
cp $(INCDIR)/wx/msdos/*.h $(DISTDIR)/include/wx/msdos
|
||||||
cp $(SRCDIR)/mgl/make* $(DISTDIR)/src/mgl
|
cp $(SRCDIR)/mgl/make* $(DISTDIR)/src/mgl
|
||||||
cp $(SRCDIR)/mgl/*.cpp $(DISTDIR)/src/mgl
|
cp $(SRCDIR)/mgl/*.cpp $(DISTDIR)/src/mgl
|
||||||
|
mkdir $(DISTDIR)/src/msdos
|
||||||
|
cp $(SRCDIR)/msdos/*.cpp $(DISTDIR)/src/msdos
|
||||||
mkdir $(DISTDIR)/contrib
|
mkdir $(DISTDIR)/contrib
|
||||||
cp -R $(WXDIR)/contrib $(DISTDIR)
|
cp -R $(WXDIR)/contrib $(DISTDIR)
|
||||||
|
|
||||||
|
27
build/README.txt
Normal file
27
build/README.txt
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
autogen.mk
|
||||||
|
|
||||||
|
autogen.mk is a makefile provided to automatically update the GNU autotools
|
||||||
|
build system. It will run Bakefile, aclocal, and autoconf as appropriate.
|
||||||
|
|
||||||
|
The .m4 files required for running aclocal are located in build/aclocal.
|
||||||
|
When upgrading software that wxWidgets depends on (for example, Bakefile,
|
||||||
|
cppunit, GTK, SDL, or others) it is advisable to upgrade the .m4 files
|
||||||
|
located in the build/aclocal directory.
|
||||||
|
|
||||||
|
It is particularly important that if you use a newer version of Bakefile
|
||||||
|
to generate the Makefile.in files that you use the newer bakefile*.m4.
|
||||||
|
Because build/autogen.mk is a Makefile it will automatically rerun
|
||||||
|
aclocal and autoconf as necessary whenever any m4 in build/aclocal is
|
||||||
|
newer than the generated aclocal.m4.
|
||||||
|
|
||||||
|
You can achieve this simply by copying the new bakefile*.m4 files from
|
||||||
|
PREFIX/share/aclocal/ into the build/aclocal/ directory and
|
||||||
|
rerunning make -f build/autogen.mk. Note that you should _not_ preserve
|
||||||
|
source file times (don't use cp -p) or else it's possible your .m4 files
|
||||||
|
will be older than the generated aclocal.m4).
|
||||||
|
Example:
|
||||||
|
cp /usr/share/aclocal/bakefile*.m4 build/aclocal/
|
||||||
|
make -f build/autogen.mk
|
||||||
|
|
||||||
|
Please don't forget to commit updated .m4 files as well as updated aclocal.m4,
|
||||||
|
configure, and Makefile.in files to wxWidgets.
|
66
build/autogen.mk
Normal file
66
build/autogen.mk
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
# Created: 2005/03/12
|
||||||
|
# Author: David Elliott
|
||||||
|
|
||||||
|
# Usage Example:
|
||||||
|
# make -f build/autogen.mk ACLOCAL=aclocal-1.9
|
||||||
|
|
||||||
|
# This is a simple Makefile to update the UNIX build system in such a
|
||||||
|
# way that doing a cvs diff on its output files should reveal only the
|
||||||
|
# true changes, not meaningless differences due to slightly different
|
||||||
|
# autoconf or aclocal m4 files.
|
||||||
|
|
||||||
|
# For aclocal: All necessary m4 files are located in the build/aclocal
|
||||||
|
# directory. Running aclocal -I build/aclocal when using aclocal 1.9
|
||||||
|
# will result in an aclocal.m4 which uses m4_include for these files.
|
||||||
|
|
||||||
|
ACLOCAL=aclocal
|
||||||
|
AUTOCONF=autoconf
|
||||||
|
BAKEFILE_GEN=bakefile_gen
|
||||||
|
AUTOHACKS_PREPEND_INCLUDE_DIR=build/autoconf_prepend-include
|
||||||
|
|
||||||
|
# configure depends on everything else so this will build everything.
|
||||||
|
.PHONY: all
|
||||||
|
all: configure
|
||||||
|
|
||||||
|
.PHONY: autoconf_m4f
|
||||||
|
|
||||||
|
# Invoke make on wxAutohacks dir, but don't fail if it's not present
|
||||||
|
autoconf_m4f:
|
||||||
|
-make -C $(AUTOHACKS_PREPEND_INCLUDE_DIR)
|
||||||
|
|
||||||
|
BAKEFILES=\
|
||||||
|
build/bakefiles/wx.bkl \
|
||||||
|
build/bakefiles/common.bkl \
|
||||||
|
build/bakefiles/files.bkl \
|
||||||
|
build/bakefiles/monolithic.bkl \
|
||||||
|
build/bakefiles/multilib.bkl \
|
||||||
|
build/bakefiles/opengl.bkl \
|
||||||
|
build/bakefiles/plugins.bkl \
|
||||||
|
build/bakefiles/build_cfg.bkl
|
||||||
|
|
||||||
|
# Run bakefile-gen (which generates everything) whenever a bakefile is newer
|
||||||
|
# than Makefile.in or autoconf_inc.m4.
|
||||||
|
# This dep is obviously wrong but probably close enough
|
||||||
|
autoconf_inc.m4 Makefile.in: $(BAKEFILES)
|
||||||
|
cd build/bakefiles && \
|
||||||
|
$(BAKEFILE_GEN) -f autoconf
|
||||||
|
|
||||||
|
# Run configure whenever configure.in, aclocal.m4 or autoconf_inc.m4 is updated
|
||||||
|
# Depend on our custom autoconf.m4f
|
||||||
|
configure: configure.in aclocal.m4 autoconf_inc.m4 autoconf_m4f
|
||||||
|
$(AUTOCONF) -B $(AUTOHACKS_PREPEND_INCLUDE_DIR)
|
||||||
|
|
||||||
|
ACLOCAL_SOURCES = \
|
||||||
|
build/aclocal/bakefile.m4 \
|
||||||
|
build/aclocal/bakefile-lang.m4 \
|
||||||
|
build/aclocal/cppunit.m4 \
|
||||||
|
build/aclocal/gst-element-check.m4 \
|
||||||
|
build/aclocal/gtk-2.0.m4 \
|
||||||
|
build/aclocal/gtk.m4 \
|
||||||
|
build/aclocal/pkg.m4 \
|
||||||
|
build/aclocal/sdl.m4
|
||||||
|
|
||||||
|
# Run aclocal whenever acinclude or one of our local m4s is updated.
|
||||||
|
aclocal.m4: configure.in acinclude.m4 $(ACLOCAL_SOURCES)
|
||||||
|
$(ACLOCAL) -I build/aclocal
|
||||||
|
|
@@ -2960,17 +2960,33 @@ IMPORTANT: please read docs/tech/tn0016.txt before modifying this file!
|
|||||||
</if>
|
</if>
|
||||||
</set>
|
</set>
|
||||||
|
|
||||||
|
<!-- for 'make install', only the headers needed for the installed port -->
|
||||||
<set var="ALL_BASE_HEADERS" make_var="1" hints="files">
|
<set var="ALL_HEADERS" make_var="1" hints="files">
|
||||||
$(BASE_CMN_HDR) $(BASE_PLATFORM_HDR)
|
$(BASE_CMN_HDR) $(BASE_PLATFORM_HDR)
|
||||||
$(NET_CMN_HDR) $(NET_PLATFORM_HDR)
|
$(NET_CMN_HDR) $(NET_PLATFORM_HDR)
|
||||||
$(XML_HDR) $(ODBC_HDR)
|
$(XML_HDR) $(ODBC_HDR)
|
||||||
|
$(ALL_GUI_HEADERS)
|
||||||
</set>
|
</set>
|
||||||
|
|
||||||
<set var="ALL_HEADERS" make_var="1" hints="files">
|
|
||||||
$(ALL_BASE_HEADERS) $(ALL_GUI_HEADERS)
|
<!-- used by 'make dist', should include wxBase headers for all ports -->
|
||||||
|
<set var="ALL_BASE_HEADERS" make_var="1" hints="files">
|
||||||
|
$(BASE_CMN_HDR)
|
||||||
|
$(BASE_UNIX_HDR)
|
||||||
|
$(BASE_WIN32_HDR) $(BASE_WINCE_HDR)
|
||||||
|
$(BASE_MACOSX_HDR)
|
||||||
|
$(BASE_PALMOS_HDR)
|
||||||
|
$(BASE_MSDOS_HDR)
|
||||||
|
$(NET_CMN_HDR)
|
||||||
|
$(NET_UNIX_HDR)
|
||||||
|
$(NET_WIN32_HDR) $(NET_WINCE_HDR)
|
||||||
|
$(NET_OS2_HDR)
|
||||||
|
$(NET_UNIX_HDR)
|
||||||
|
$(NET_MAC_CARBONLIB_HDR)
|
||||||
|
$(XML_HDR) $(ODBC_HDR)
|
||||||
</set>
|
</set>
|
||||||
|
|
||||||
|
<!-- used by 'make dist', should include wxBase sources for all ports -->
|
||||||
<set var="ALL_BASE_SOURCES" make_var="1" hints="files">
|
<set var="ALL_BASE_SOURCES" make_var="1" hints="files">
|
||||||
$(BASE_CMN_SRC)
|
$(BASE_CMN_SRC)
|
||||||
$(BASE_UNIX_SRC) $(BASE_WIN32_SRC) $(BASE_WINCE_SRC)
|
$(BASE_UNIX_SRC) $(BASE_WIN32_SRC) $(BASE_WINCE_SRC)
|
||||||
|
@@ -25,6 +25,7 @@ X11DIR = $(WXDIR)/src/x11
|
|||||||
X11INC = $(WXDIR)/include/wx/x11
|
X11INC = $(WXDIR)/include/wx/x11
|
||||||
MGLDIR = $(WXDIR)/src/mgl
|
MGLDIR = $(WXDIR)/src/mgl
|
||||||
MOTIFDIR = $(WXDIR)/src/motif
|
MOTIFDIR = $(WXDIR)/src/motif
|
||||||
|
MSDOSDIR = $(WXDIR)/src/msdos
|
||||||
MSWDIR = $(WXDIR)/src/msw
|
MSWDIR = $(WXDIR)/src/msw
|
||||||
PMDIR = $(WXDIR)/src/os2
|
PMDIR = $(WXDIR)/src/os2
|
||||||
MACDIR = $(WXDIR)/src/mac
|
MACDIR = $(WXDIR)/src/mac
|
||||||
@@ -205,9 +206,11 @@ BASE_DIST: ALL_DIST
|
|||||||
mkdir $(DISTDIR)/include/wx/protocol
|
mkdir $(DISTDIR)/include/wx/protocol
|
||||||
mkdir $(DISTDIR)/include/wx/unix
|
mkdir $(DISTDIR)/include/wx/unix
|
||||||
mkdir $(DISTDIR)/include/wx/xml
|
mkdir $(DISTDIR)/include/wx/xml
|
||||||
|
mkdir $(DISTDIR)/include/wx/msdos
|
||||||
mkdir $(DISTDIR)/include/wx/msw
|
mkdir $(DISTDIR)/include/wx/msw
|
||||||
mkdir $(DISTDIR)/include/wx/html
|
mkdir $(DISTDIR)/include/wx/html
|
||||||
mkdir $(DISTDIR)/src/unix
|
mkdir $(DISTDIR)/src/unix
|
||||||
|
mkdir $(DISTDIR)/src/msdos
|
||||||
mkdir $(DISTDIR)/src/msw
|
mkdir $(DISTDIR)/src/msw
|
||||||
cp $(DOCDIR)/changes.txt $(DISTDIR)/CHANGES.txt
|
cp $(DOCDIR)/changes.txt $(DISTDIR)/CHANGES.txt
|
||||||
cp $(DOCDIR)/base/readme.txt $(DISTDIR)/README.txt
|
cp $(DOCDIR)/base/readme.txt $(DISTDIR)/README.txt
|
||||||
@@ -382,8 +385,12 @@ UNIV_DIST: ALL_GUI_DIST
|
|||||||
MGL_DIST: UNIV_DIST
|
MGL_DIST: UNIV_DIST
|
||||||
cp $(WXDIR)/wxMGL.spec $(DISTDIR)
|
cp $(WXDIR)/wxMGL.spec $(DISTDIR)
|
||||||
cp $(INCDIR)/wx/mgl/*.h $(DISTDIR)/include/wx/mgl
|
cp $(INCDIR)/wx/mgl/*.h $(DISTDIR)/include/wx/mgl
|
||||||
|
mkdir $(DISTDIR)/include/wx/msdos
|
||||||
|
cp $(INCDIR)/wx/msdos/*.h $(DISTDIR)/include/wx/msdos
|
||||||
cp $(SRCDIR)/mgl/make* $(DISTDIR)/src/mgl
|
cp $(SRCDIR)/mgl/make* $(DISTDIR)/src/mgl
|
||||||
cp $(SRCDIR)/mgl/*.cpp $(DISTDIR)/src/mgl
|
cp $(SRCDIR)/mgl/*.cpp $(DISTDIR)/src/mgl
|
||||||
|
mkdir $(DISTDIR)/src/msdos
|
||||||
|
cp $(SRCDIR)/msdos/*.cpp $(DISTDIR)/src/msdos
|
||||||
mkdir $(DISTDIR)/contrib
|
mkdir $(DISTDIR)/contrib
|
||||||
cp -R $(WXDIR)/contrib $(DISTDIR)
|
cp -R $(WXDIR)/contrib $(DISTDIR)
|
||||||
|
|
||||||
|
@@ -218,7 +218,7 @@
|
|||||||
|
|
||||||
<!-- add "make dist" target to autoconf: -->
|
<!-- add "make dist" target to autoconf: -->
|
||||||
<set var="VARS_DONT_ELIMINATE" append="1">
|
<set var="VARS_DONT_ELIMINATE" append="1">
|
||||||
ALL_BASE_SOURCES WX_VERSION
|
ALL_BASE_HEADERS ALL_BASE_SOURCES WX_VERSION
|
||||||
</set>
|
</set>
|
||||||
<fragment format="autoconf" file="make_dist.mk"/>
|
<fragment format="autoconf" file="make_dist.mk"/>
|
||||||
|
|
||||||
|
@@ -2,6 +2,11 @@
|
|||||||
|
|
||||||
A paint event is sent when a window's contents needs to be repainted.
|
A paint event is sent when a window's contents needs to be repainted.
|
||||||
|
|
||||||
|
Please notice that in general it is impossible to change the drawing of a
|
||||||
|
standard control (such as \helpref{wxButton}{wxbutton}) and so you shouldn't
|
||||||
|
attempt to handle paint events for them as even if it might work on some
|
||||||
|
platforms, this is inherently not portable and won't work everywhere.
|
||||||
|
|
||||||
\wxheading{Derived from}
|
\wxheading{Derived from}
|
||||||
|
|
||||||
\helpref{wxEvent}{wxevent}\\
|
\helpref{wxEvent}{wxevent}\\
|
||||||
|
@@ -62,9 +62,7 @@ public:
|
|||||||
|
|
||||||
virtual bool SetShape(const wxRegion& region);
|
virtual bool SetShape(const wxRegion& region);
|
||||||
|
|
||||||
#if wxABI_VERSION >= 20602
|
|
||||||
virtual void RequestUserAttention(int flags = wxUSER_ATTENTION_INFO);
|
virtual void RequestUserAttention(int flags = wxUSER_ATTENTION_INFO);
|
||||||
#endif
|
|
||||||
|
|
||||||
virtual bool Show(bool show = TRUE);
|
virtual bool Show(bool show = TRUE);
|
||||||
|
|
||||||
@@ -110,6 +108,10 @@ public:
|
|||||||
long m_gdkFunc,
|
long m_gdkFunc,
|
||||||
m_gdkDecor;
|
m_gdkDecor;
|
||||||
|
|
||||||
|
// private gtk_timeout_add result for mimicing wxUSER_ATTENTION_INFO and
|
||||||
|
// wxUSER_ATTENTION_ERROR difference, -2 for no hint, -1 for ERROR hint, rest for GtkTimeout handle.
|
||||||
|
int m_urgency_hint;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// common part of all ctors
|
// common part of all ctors
|
||||||
void Init();
|
void Init();
|
||||||
|
@@ -62,9 +62,7 @@ public:
|
|||||||
|
|
||||||
virtual bool SetShape(const wxRegion& region);
|
virtual bool SetShape(const wxRegion& region);
|
||||||
|
|
||||||
#if wxABI_VERSION >= 20602
|
|
||||||
virtual void RequestUserAttention(int flags = wxUSER_ATTENTION_INFO);
|
virtual void RequestUserAttention(int flags = wxUSER_ATTENTION_INFO);
|
||||||
#endif
|
|
||||||
|
|
||||||
virtual bool Show(bool show = TRUE);
|
virtual bool Show(bool show = TRUE);
|
||||||
|
|
||||||
@@ -110,6 +108,10 @@ public:
|
|||||||
long m_gdkFunc,
|
long m_gdkFunc,
|
||||||
m_gdkDecor;
|
m_gdkDecor;
|
||||||
|
|
||||||
|
// private gtk_timeout_add result for mimicing wxUSER_ATTENTION_INFO and
|
||||||
|
// wxUSER_ATTENTION_ERROR difference, -2 for no hint, -1 for ERROR hint, rest for GtkTimeout handle.
|
||||||
|
int m_urgency_hint;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// common part of all ctors
|
// common part of all ctors
|
||||||
void Init();
|
void Init();
|
||||||
|
@@ -561,12 +561,15 @@ DECLARE_LOG_FUNCTION2(SysError, long, lErrCode);
|
|||||||
DECLARE_LOG_FUNCTION2(Trace, wxTraceMask, mask);
|
DECLARE_LOG_FUNCTION2(Trace, wxTraceMask, mask);
|
||||||
#else //!debug
|
#else //!debug
|
||||||
// these functions do nothing in release builds
|
// these functions do nothing in release builds
|
||||||
|
|
||||||
|
// note that leaving out "fmt" in the vararg functions provokes a warning
|
||||||
|
// from SGI CC: "the last argument of the varargs function is unnamed"
|
||||||
inline void wxVLogDebug(const wxChar *, va_list) { }
|
inline void wxVLogDebug(const wxChar *, va_list) { }
|
||||||
inline void wxLogDebug(const wxChar *, ...) { }
|
inline void wxLogDebug(const wxChar *fmt, ...) { wxUnusedVar(fmt); }
|
||||||
inline void wxVLogTrace(wxTraceMask, const wxChar *, va_list) { }
|
inline void wxVLogTrace(wxTraceMask, const wxChar *, va_list) { }
|
||||||
inline void wxLogTrace(wxTraceMask, const wxChar *, ...) { }
|
inline void wxLogTrace(wxTraceMask, const wxChar *fmt, ...) { wxUnusedVar(fmt); }
|
||||||
inline void wxVLogTrace(const wxChar *, const wxChar *, va_list) { }
|
inline void wxVLogTrace(const wxChar *, const wxChar *, va_list) { }
|
||||||
inline void wxLogTrace(const wxChar *, const wxChar *, ...) { }
|
inline void wxLogTrace(const wxChar *, const wxChar *fmt, ...) { wxUnusedVar(fmt); }
|
||||||
#endif // debug/!debug
|
#endif // debug/!debug
|
||||||
|
|
||||||
// wxLogFatalError helper: show the (fatal) error to the user in a safe way,
|
// wxLogFatalError helper: show the (fatal) error to the user in a safe way,
|
||||||
|
@@ -1114,7 +1114,7 @@
|
|||||||
// Default is 1 if supported by the compiler (VC++ and recent BC++ only).
|
// Default is 1 if supported by the compiler (VC++ and recent BC++ only).
|
||||||
//
|
//
|
||||||
// Recommended setting: 1, set to 0 if your programs never crash
|
// Recommended setting: 1, set to 0 if your programs never crash
|
||||||
#define wxUSE_CRASHREPORT 1
|
#define wxUSE_CRASHREPORT 0
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// obsolete settings
|
// obsolete settings
|
||||||
|
@@ -1,173 +0,0 @@
|
|||||||
# =========================================================================
|
|
||||||
# This makefile was generated by
|
|
||||||
# Bakefile 0.1.6 (http://bakefile.sourceforge.net)
|
|
||||||
# Do not modify, all changes will be overwritten!
|
|
||||||
# =========================================================================
|
|
||||||
|
|
||||||
|
|
||||||
@MAKE_SET@
|
|
||||||
|
|
||||||
prefix = @prefix@
|
|
||||||
exec_prefix = @exec_prefix@
|
|
||||||
INSTALL = @INSTALL@
|
|
||||||
EXEEXT = @EXEEXT@
|
|
||||||
RESCOMP = @RESCOMP@
|
|
||||||
SETFILE = @SETFILE@
|
|
||||||
NM = @NM@
|
|
||||||
srcdir = @srcdir@
|
|
||||||
top_srcdir = @top_srcdir@
|
|
||||||
top_builddir = @top_builddir@
|
|
||||||
LDFLAGS_GUI = @LDFLAGS_GUI@
|
|
||||||
CXX = @CXX@
|
|
||||||
CXXFLAGS = @CXXFLAGS@
|
|
||||||
CPPFLAGS = @CPPFLAGS@
|
|
||||||
LDFLAGS = @LDFLAGS@
|
|
||||||
WX_LIB_FLAVOUR = @WX_LIB_FLAVOUR@
|
|
||||||
TOOLKIT = @TOOLKIT@
|
|
||||||
TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@
|
|
||||||
TOOLKIT_VERSION = @TOOLKIT_VERSION@
|
|
||||||
TOOLCHAIN_NAME = @TOOLCHAIN_NAME@
|
|
||||||
EXTRALIBS = @EXTRALIBS@
|
|
||||||
EXTRALIBS_GUI = @EXTRALIBS_GUI@
|
|
||||||
HOST_SUFFIX = @HOST_SUFFIX@
|
|
||||||
SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@
|
|
||||||
SAMPLES_RPATH_POSTLINK = @SAMPLES_RPATH_POSTLINK@
|
|
||||||
|
|
||||||
### Variables: ###
|
|
||||||
|
|
||||||
DESTDIR =
|
|
||||||
WX_RELEASE = 2.5
|
|
||||||
WX_VERSION = $(WX_RELEASE).4
|
|
||||||
LIBDIRNAME = $(top_builddir)lib
|
|
||||||
TAB_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) -I$(srcdir) \
|
|
||||||
$(__DLLFLAG_p) -I$(srcdir)/../../samples $(CPPFLAGS) $(CXXFLAGS)
|
|
||||||
TAB_OBJECTS = \
|
|
||||||
$(__tab_os2_lib_res) \
|
|
||||||
tab_tab.o \
|
|
||||||
$(__tab___win32rc)
|
|
||||||
|
|
||||||
### Conditionally set variables: ###
|
|
||||||
|
|
||||||
@COND_DEPS_TRACKING_0@CXXC = $(CXX)
|
|
||||||
@COND_DEPS_TRACKING_1@CXXC = $(top_builddir)./bk-deps $(CXX)
|
|
||||||
@COND_USE_GUI_0@PORTNAME = base
|
|
||||||
@COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
|
|
||||||
@COND_TOOLKIT_MAC@WXBASEPORT = _carbon
|
|
||||||
@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@WXDEBUGFLAG = d
|
|
||||||
@COND_DEBUG_FLAG_1@WXDEBUGFLAG = d
|
|
||||||
@COND_UNICODE_1@WXUNICODEFLAG = u
|
|
||||||
@COND_WXUNIV_1@WXUNIVNAME = univ
|
|
||||||
@COND_MONOLITHIC_0@EXTRALIBS_FOR_BASE = $(EXTRALIBS)
|
|
||||||
@COND_MONOLITHIC_1@EXTRALIBS_FOR_BASE = $(EXTRALIBS) $(EXTRALIBS_GUI)
|
|
||||||
@COND_MONOLITHIC_0@EXTRALIBS_FOR_GUI = $(EXTRALIBS_GUI)
|
|
||||||
@COND_MONOLITHIC_1@EXTRALIBS_FOR_GUI =
|
|
||||||
@COND_PLATFORM_MAC_1@__tab___mac_setfilecmd = $(SETFILE) -a C tab$(EXEEXT)
|
|
||||||
@COND_PLATFORM_MAC_1@__tab___mac_rezcmd = $(__MACOSX_RESOURCES_p_1)
|
|
||||||
@COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
|
|
||||||
@COND_WXUNIV_1@__WXUNIV_DEFINE_p_1 = -d __WXUNIVERSAL__
|
|
||||||
@COND_WXUNIV_1@__WXUNIV_DEFINE_p_2 = --define __WXUNIVERSAL__
|
|
||||||
@COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL
|
|
||||||
@COND_SHARED_1@__DLLFLAG_p_1 = -d WXUSINGDLL
|
|
||||||
@COND_SHARED_1@__DLLFLAG_p_2 = --define WXUSINGDLL
|
|
||||||
COND_PLATFORM_OS2_1___tab___os2_emxbindcmd = $(NM) tab$(EXEEXT) | if grep -q \
|
|
||||||
pmwin.763 ; then emxbind -ep tab$(EXEEXT) ; fi
|
|
||||||
@COND_PLATFORM_OS2_1@__tab___os2_emxbindcmd = $(COND_PLATFORM_OS2_1___tab___os2_emxbindcmd)
|
|
||||||
@COND_PLATFORM_OS2_1@__tab_os2_lib_res = \
|
|
||||||
@COND_PLATFORM_OS2_1@ $(top_srcdir)/include/wx/os2/wx.res
|
|
||||||
@COND_PLATFORM_MACOSX_1@__tab_bundle___depname = tab_bundle
|
|
||||||
@COND_TOOLKIT_COCOA@____tab_BUNDLE_TGT_REF_DEP = tab.app/Contents/PkgInfo
|
|
||||||
@COND_TOOLKIT_MAC@____tab_BUNDLE_TGT_REF_DEP = tab.app/Contents/PkgInfo
|
|
||||||
COND_MONOLITHIC_0___WXLIB_CORE_p = \
|
|
||||||
-lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core-$(WX_RELEASE)$(HOST_SUFFIX)
|
|
||||||
@COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p)
|
|
||||||
COND_MONOLITHIC_0___WXLIB_BASE_p = \
|
|
||||||
-lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
|
||||||
@COND_MONOLITHIC_0@__WXLIB_BASE_p = $(COND_MONOLITHIC_0___WXLIB_BASE_p)
|
|
||||||
@COND_PLATFORM_WIN32_1@__tab___win32rc = tab_tab_rc.o
|
|
||||||
COND_MONOLITHIC_1___WXLIB_MONO_p = \
|
|
||||||
-lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
|
||||||
@COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p)
|
|
||||||
@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@__LIB_TIFF_p \
|
|
||||||
@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ = \
|
|
||||||
@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ -lwxtiff$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
|
||||||
@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@__LIB_JPEG_p \
|
|
||||||
@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ = \
|
|
||||||
@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ -lwxjpeg$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
|
||||||
@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@__LIB_PNG_p \
|
|
||||||
@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ = \
|
|
||||||
@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ -lwxpng$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
|
||||||
@COND_WXUSE_ZLIB_BUILTIN@__LIB_ZLIB_p = \
|
|
||||||
@COND_WXUSE_ZLIB_BUILTIN@ -lwxzlib$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
|
||||||
@COND_WXUSE_ODBC_BUILTIN@__LIB_ODBC_p = \
|
|
||||||
@COND_WXUSE_ODBC_BUILTIN@ -lwxodbc$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
|
||||||
COND_WXUSE_REGEX_BUILTIN___LIB_REGEX_p = \
|
|
||||||
-lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
|
||||||
@COND_WXUSE_REGEX_BUILTIN@__LIB_REGEX_p = $(COND_WXUSE_REGEX_BUILTIN___LIB_REGEX_p)
|
|
||||||
@COND_WXUSE_EXPAT_BUILTIN@__LIB_EXPAT_p = \
|
|
||||||
@COND_WXUSE_EXPAT_BUILTIN@ -lwxexpat$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
|
||||||
COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1 = $(RESCOMP) -d __DARWIN__ -t APPL -d \
|
|
||||||
__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) -i $(srcdir) $(__DLLFLAG_p_1) -i \
|
|
||||||
$(srcdir)/../../samples -i $(top_srcdir)/include -o tab$(EXEEXT) Carbon.r \
|
|
||||||
$(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).4.r sample.r
|
|
||||||
@COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_1 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1)
|
|
||||||
|
|
||||||
### Targets: ###
|
|
||||||
|
|
||||||
all: tab$(EXEEXT) $(__tab_bundle___depname)
|
|
||||||
|
|
||||||
install: all
|
|
||||||
|
|
||||||
uninstall:
|
|
||||||
|
|
||||||
install-strip: install
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -rf ./.deps ./.pch
|
|
||||||
rm -f ./*.o
|
|
||||||
rm -f tab$(EXEEXT)
|
|
||||||
rm -rf tab.app
|
|
||||||
|
|
||||||
distclean: clean
|
|
||||||
rm -f config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile
|
|
||||||
|
|
||||||
tab$(EXEEXT): $(TAB_OBJECTS) $(__tab___win32rc)
|
|
||||||
$(CXX) -o $@ $(TAB_OBJECTS) $(LDFLAGS) -L$(LIBDIRNAME) $(LDFLAGS_GUI) $(SAMPLES_RPATH_FLAG) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(__LIB_ZLIB_p) $(__LIB_ODBC_p) $(__LIB_REGEX_p) $(__LIB_EXPAT_p) $(EXTRALIBS_FOR_BASE) $(EXTRALIBS_FOR_GUI)
|
|
||||||
$(__tab___mac_rezcmd)
|
|
||||||
$(__tab___mac_setfilecmd)
|
|
||||||
$(__tab___os2_emxbindcmd)
|
|
||||||
$(SAMPLES_RPATH_POSTLINK)
|
|
||||||
|
|
||||||
tab.app/Contents/PkgInfo: tab$(EXEEXT) $(top_srcdir)/src/mac/carbon/Info.plist.in $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).4.rsrc $(top_srcdir)/src/mac/carbon/wxmac.icns
|
|
||||||
mkdir -p tab.app/Contents
|
|
||||||
mkdir -p tab.app/Contents/MacOS
|
|
||||||
mkdir -p tab.app/Contents/Resources
|
|
||||||
|
|
||||||
|
|
||||||
sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \
|
|
||||||
-e "s/EXECUTABLE/tab/" \
|
|
||||||
-e "s/VERSION/$(WX_VERSION)/" \
|
|
||||||
$(top_srcdir)/src/mac/carbon/Info.plist.in >tab.app/Contents/Info.plist
|
|
||||||
|
|
||||||
|
|
||||||
echo -n "APPL????" >tab.app/Contents/PkgInfo
|
|
||||||
|
|
||||||
|
|
||||||
ln -f tab$(EXEEXT) tab.app/Contents/MacOS/tab
|
|
||||||
|
|
||||||
|
|
||||||
cp -f $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).4.rsrc tab.app/Contents/Resources/tab.rsrc
|
|
||||||
cp -f $(top_srcdir)/src/mac/carbon/wxmac.icns tab.app/Contents/Resources/wxmac.icns
|
|
||||||
|
|
||||||
@COND_PLATFORM_MACOSX_1@tab_bundle: $(____tab_BUNDLE_TGT_REF_DEP)
|
|
||||||
|
|
||||||
tab_tab.o: $(srcdir)/tab.cpp
|
|
||||||
$(CXXC) -c -o $@ $(TAB_CXXFLAGS) $(srcdir)/tab.cpp
|
|
||||||
|
|
||||||
tab_tab_rc.o: $(srcdir)/tab.rc
|
|
||||||
$(RESCOMP) -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_2) --include-dir $(srcdir) $(__DLLFLAG_p_2) --include-dir $(srcdir)/../../samples --include-dir $(top_srcdir)/include
|
|
||||||
|
|
||||||
|
|
||||||
# Include dependency info, if present:
|
|
||||||
@IF_GNU_MAKE@-include .deps/*.d
|
|
||||||
|
|
||||||
.PHONY: all install uninstall clean distclean tab_bundle
|
|
@@ -40,6 +40,7 @@ WX_IMPLEMENT_POSER(wxPoserNSMenu);
|
|||||||
wxCocoaNSMenu *menu = wxCocoaNSMenu::GetFromCocoa(self);
|
wxCocoaNSMenu *menu = wxCocoaNSMenu::GetFromCocoa(self);
|
||||||
if(menu)
|
if(menu)
|
||||||
menu->Cocoa_dealloc();
|
menu->Cocoa_dealloc();
|
||||||
|
[super dealloc];
|
||||||
}
|
}
|
||||||
|
|
||||||
@end // wxPoserNSMenu
|
@end // wxPoserNSMenu
|
||||||
|
@@ -64,6 +64,7 @@
|
|||||||
- (void)dealloc
|
- (void)dealloc
|
||||||
{
|
{
|
||||||
[m_image release];
|
[m_image release];
|
||||||
|
[super dealloc];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSSize)sizeOfLabel:(BOOL)shouldTruncateLabel
|
- (NSSize)sizeOfLabel:(BOOL)shouldTruncateLabel
|
||||||
|
@@ -235,11 +235,14 @@ static const long MILLISECONDS_PER_DAY = 86400000l;
|
|||||||
// (i.e. JDN(Jan 1, 1970) = 2440587.5)
|
// (i.e. JDN(Jan 1, 1970) = 2440587.5)
|
||||||
static const long EPOCH_JDN = 2440587l;
|
static const long EPOCH_JDN = 2440587l;
|
||||||
|
|
||||||
|
// used only in asserts
|
||||||
|
#ifdef __WXDEBUG__
|
||||||
// the date of JDN -0.5 (as we don't work with fractional parts, this is the
|
// the date of JDN -0.5 (as we don't work with fractional parts, this is the
|
||||||
// reference date for us) is Nov 24, 4714BC
|
// reference date for us) is Nov 24, 4714BC
|
||||||
static const int JDN_0_YEAR = -4713;
|
static const int JDN_0_YEAR = -4713;
|
||||||
static const int JDN_0_MONTH = wxDateTime::Nov;
|
static const int JDN_0_MONTH = wxDateTime::Nov;
|
||||||
static const int JDN_0_DAY = 24;
|
static const int JDN_0_DAY = 24;
|
||||||
|
#endif // __WXDEBUG__
|
||||||
|
|
||||||
// the constants used for JDN calculations
|
// the constants used for JDN calculations
|
||||||
static const long JDN_OFFSET = 32046l;
|
static const long JDN_OFFSET = 32046l;
|
||||||
|
@@ -195,10 +195,10 @@ static const wxChar* gs_encodingNames[WXSIZEOF(gs_encodingDescs)][10] =
|
|||||||
|
|
||||||
{ wxT( "UTF-7" ), NULL },
|
{ wxT( "UTF-7" ), NULL },
|
||||||
{ wxT( "UTF-8" ), NULL },
|
{ wxT( "UTF-8" ), NULL },
|
||||||
{ wxT( "UTF-16" ), NULL },
|
{ wxT( "UTF-16" ), wxT("UCS-2"), wxT("UCS2"), NULL },
|
||||||
{ wxT( "UTF-16BE" ), NULL },
|
{ wxT( "UTF-16BE" ), wxT("UCS-2BE"), NULL },
|
||||||
{ wxT( "UTF-16LE" ), NULL },
|
{ wxT( "UTF-16LE" ), wxT("UCS-2LE"), NULL },
|
||||||
{ wxT( "UTF-32" ), wxT( "UCS-4" ), NULL },
|
{ wxT( "UTF-32" ), wxT( "UCS-4" ), wxT("UCS4"), NULL },
|
||||||
{ wxT( "UTF-32BE" ), wxT( "UCS-4BE" ), NULL },
|
{ wxT( "UTF-32BE" ), wxT( "UCS-4BE" ), NULL },
|
||||||
{ wxT( "UTF-32LE" ), wxT( "UCS-4LE" ), NULL },
|
{ wxT( "UTF-32LE" ), wxT( "UCS-4LE" ), NULL },
|
||||||
|
|
||||||
|
@@ -57,10 +57,6 @@
|
|||||||
#define wxHAVE_WIN32_MB2WC
|
#define wxHAVE_WIN32_MB2WC
|
||||||
#endif // __WIN32__ but !__WXMICROWIN__
|
#endif // __WIN32__ but !__WXMICROWIN__
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
// headers
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifdef __SALFORDC__
|
#ifdef __SALFORDC__
|
||||||
#include <clib.h>
|
#include <clib.h>
|
||||||
#endif
|
#endif
|
||||||
@@ -86,35 +82,6 @@
|
|||||||
|
|
||||||
#define TRACE_STRCONV _T("strconv")
|
#define TRACE_STRCONV _T("strconv")
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
// macros
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#define BSWAP_UCS4(str, len) { unsigned _c; for (_c=0; _c<len; _c++) str[_c]=wxUINT32_SWAP_ALWAYS(str[_c]); }
|
|
||||||
#define BSWAP_UTF16(str, len) { unsigned _c; for (_c=0; _c<len; _c++) str[_c]=wxUINT16_SWAP_ALWAYS(str[_c]); }
|
|
||||||
|
|
||||||
#if SIZEOF_WCHAR_T == 4
|
|
||||||
#define WC_NAME "UCS4"
|
|
||||||
#define WC_BSWAP BSWAP_UCS4
|
|
||||||
#ifdef WORDS_BIGENDIAN
|
|
||||||
#define WC_NAME_BEST "UCS-4BE"
|
|
||||||
#else
|
|
||||||
#define WC_NAME_BEST "UCS-4LE"
|
|
||||||
#endif
|
|
||||||
#elif SIZEOF_WCHAR_T == 2
|
|
||||||
#define WC_NAME "UTF16"
|
|
||||||
#define WC_BSWAP BSWAP_UTF16
|
|
||||||
#define WC_UTF16
|
|
||||||
#ifdef WORDS_BIGENDIAN
|
|
||||||
#define WC_NAME_BEST "UTF-16BE"
|
|
||||||
#else
|
|
||||||
#define WC_NAME_BEST "UTF-16LE"
|
|
||||||
#endif
|
|
||||||
#else // sizeof(wchar_t) != 2 nor 4
|
|
||||||
// does this ever happen?
|
|
||||||
#error "Unknown sizeof(wchar_t): please report this to wx-dev@lists.wxwindows.org"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// implementation
|
// implementation
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
@@ -1313,6 +1280,19 @@ size_t wxMBConvUTF32swap::WC2MB(char *buf, const wchar_t *psz, size_t n) const
|
|||||||
|
|
||||||
#define ICONV_CHAR_CAST(x) ((ICONV_CONST char **)(x))
|
#define ICONV_CHAR_CAST(x) ((ICONV_CONST char **)(x))
|
||||||
|
|
||||||
|
#define ICONV_T_INVALID ((iconv_t)-1)
|
||||||
|
|
||||||
|
#if SIZEOF_WCHAR_T == 4
|
||||||
|
#define WC_BSWAP wxUINT32_SWAP_ALWAYS
|
||||||
|
#define WC_ENC wxFONTENCODING_UTF32
|
||||||
|
#elif SIZEOF_WCHAR_T == 2
|
||||||
|
#define WC_BSWAP wxUINT16_SWAP_ALWAYS
|
||||||
|
#define WC_ENC wxFONTENCODING_UTF16
|
||||||
|
#else // sizeof(wchar_t) != 2 nor 4
|
||||||
|
// does this ever happen?
|
||||||
|
#error "Unknown sizeof(wchar_t): please report this to wx-dev@lists.wxwindows.org"
|
||||||
|
#endif
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// wxMBConv_iconv: encapsulates an iconv character set
|
// wxMBConv_iconv: encapsulates an iconv character set
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@@ -1327,7 +1307,7 @@ public:
|
|||||||
virtual size_t WC2MB(char *buf, const wchar_t *psz, size_t n) const;
|
virtual size_t WC2MB(char *buf, const wchar_t *psz, size_t n) const;
|
||||||
|
|
||||||
bool IsOk() const
|
bool IsOk() const
|
||||||
{ return (m2w != (iconv_t)-1) && (w2m != (iconv_t)-1); }
|
{ return (m2w != ICONV_T_INVALID) && (w2m != ICONV_T_INVALID); }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// the iconv handlers used to translate from multibyte to wide char and in
|
// the iconv handlers used to translate from multibyte to wide char and in
|
||||||
@@ -1342,7 +1322,7 @@ protected:
|
|||||||
private:
|
private:
|
||||||
// the name (for iconv_open()) of a wide char charset -- if none is
|
// the name (for iconv_open()) of a wide char charset -- if none is
|
||||||
// available on this machine, it will remain NULL
|
// available on this machine, it will remain NULL
|
||||||
static const char *ms_wcCharsetName;
|
static wxString ms_wcCharsetName;
|
||||||
|
|
||||||
// true if the wide char encoding we use (i.e. ms_wcCharsetName) has
|
// true if the wide char encoding we use (i.e. ms_wcCharsetName) has
|
||||||
// different endian-ness than the native one
|
// different endian-ness than the native one
|
||||||
@@ -1361,7 +1341,7 @@ WXDLLIMPEXP_BASE wxMBConv* new_wxMBConv_iconv( const wxChar* name )
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *wxMBConv_iconv::ms_wcCharsetName = NULL;
|
wxString wxMBConv_iconv::ms_wcCharsetName;
|
||||||
bool wxMBConv_iconv::ms_wcNeedsSwap = false;
|
bool wxMBConv_iconv::ms_wcNeedsSwap = false;
|
||||||
|
|
||||||
wxMBConv_iconv::wxMBConv_iconv(const wxChar *name)
|
wxMBConv_iconv::wxMBConv_iconv(const wxChar *name)
|
||||||
@@ -1371,91 +1351,111 @@ wxMBConv_iconv::wxMBConv_iconv(const wxChar *name)
|
|||||||
const wxCharBuffer cname(wxString(name).ToAscii());
|
const wxCharBuffer cname(wxString(name).ToAscii());
|
||||||
|
|
||||||
// check for charset that represents wchar_t:
|
// check for charset that represents wchar_t:
|
||||||
if (ms_wcCharsetName == NULL)
|
if ( ms_wcCharsetName.empty() )
|
||||||
{
|
{
|
||||||
ms_wcNeedsSwap = false;
|
#if wxUSE_FONTMAP
|
||||||
|
const wxChar **names = wxFontMapperBase::GetAllEncodingNames(WC_ENC);
|
||||||
// try charset with explicit bytesex info (e.g. "UCS-4LE"):
|
#else // !wxUSE_FONTMAP
|
||||||
ms_wcCharsetName = WC_NAME_BEST;
|
static const wxChar *names[] =
|
||||||
m2w = iconv_open(ms_wcCharsetName, cname);
|
|
||||||
|
|
||||||
if (m2w == (iconv_t)-1)
|
|
||||||
{
|
{
|
||||||
// try charset w/o bytesex info (e.g. "UCS4")
|
#if SIZEOF_WCHAR_T == 4
|
||||||
// and check for bytesex ourselves:
|
_T("UCS-4"),
|
||||||
ms_wcCharsetName = WC_NAME;
|
#elif SIZEOF_WCHAR_T = 2
|
||||||
m2w = iconv_open(ms_wcCharsetName, cname);
|
_T("UCS-2"),
|
||||||
|
#endif
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
#endif // wxUSE_FONTMAP/!wxUSE_FONTMAP
|
||||||
|
|
||||||
// last bet, try if it knows WCHAR_T pseudo-charset
|
for ( ; *names; ++names )
|
||||||
if (m2w == (iconv_t)-1)
|
{
|
||||||
|
const wxString name(*names);
|
||||||
|
|
||||||
|
// first try charset with explicit bytesex info (e.g. "UCS-4LE"):
|
||||||
|
wxString nameXE(name);
|
||||||
|
#ifdef WORDS_BIGENDIAN
|
||||||
|
nameXE += _T("BE");
|
||||||
|
#else // little endian
|
||||||
|
nameXE += _T("LE");
|
||||||
|
#endif
|
||||||
|
|
||||||
|
m2w = iconv_open(nameXE.ToAscii(), cname);
|
||||||
|
if ( m2w == ICONV_T_INVALID )
|
||||||
{
|
{
|
||||||
ms_wcCharsetName = "WCHAR_T";
|
// try charset w/o bytesex info (e.g. "UCS4")
|
||||||
m2w = iconv_open(ms_wcCharsetName, cname);
|
m2w = iconv_open(name.ToAscii(), cname);
|
||||||
}
|
|
||||||
|
|
||||||
if (m2w != (iconv_t)-1)
|
// and check for bytesex ourselves:
|
||||||
{
|
if ( m2w != ICONV_T_INVALID )
|
||||||
char buf[2], *bufPtr;
|
|
||||||
wchar_t wbuf[2], *wbufPtr;
|
|
||||||
size_t insz, outsz;
|
|
||||||
size_t res;
|
|
||||||
|
|
||||||
buf[0] = 'A';
|
|
||||||
buf[1] = 0;
|
|
||||||
wbuf[0] = 0;
|
|
||||||
insz = 2;
|
|
||||||
outsz = SIZEOF_WCHAR_T * 2;
|
|
||||||
wbufPtr = wbuf;
|
|
||||||
bufPtr = buf;
|
|
||||||
|
|
||||||
res = iconv(m2w, ICONV_CHAR_CAST(&bufPtr), &insz,
|
|
||||||
(char**)&wbufPtr, &outsz);
|
|
||||||
|
|
||||||
if (ICONV_FAILED(res, insz))
|
|
||||||
{
|
{
|
||||||
ms_wcCharsetName = NULL;
|
char buf[2], *bufPtr;
|
||||||
wxLogLastError(wxT("iconv"));
|
wchar_t wbuf[2], *wbufPtr;
|
||||||
wxLogError(_("Conversion to charset '%s' doesn't work."), name);
|
size_t insz, outsz;
|
||||||
}
|
size_t res;
|
||||||
else
|
|
||||||
{
|
buf[0] = 'A';
|
||||||
ms_wcNeedsSwap = wbuf[0] != (wchar_t)buf[0];
|
buf[1] = 0;
|
||||||
|
wbuf[0] = 0;
|
||||||
|
insz = 2;
|
||||||
|
outsz = SIZEOF_WCHAR_T * 2;
|
||||||
|
wbufPtr = wbuf;
|
||||||
|
bufPtr = buf;
|
||||||
|
|
||||||
|
res = iconv(m2w, ICONV_CHAR_CAST(&bufPtr), &insz,
|
||||||
|
(char**)&wbufPtr, &outsz);
|
||||||
|
|
||||||
|
if (ICONV_FAILED(res, insz))
|
||||||
|
{
|
||||||
|
wxLogLastError(wxT("iconv"));
|
||||||
|
wxLogError(_("Conversion to charset '%s' doesn't work."),
|
||||||
|
name.c_str());
|
||||||
|
}
|
||||||
|
else // ok, can convert to this encoding, remember it
|
||||||
|
{
|
||||||
|
ms_wcCharsetName = name;
|
||||||
|
ms_wcNeedsSwap = wbuf[0] != (wchar_t)buf[0];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else // use charset not requiring byte swapping
|
||||||
{
|
{
|
||||||
ms_wcCharsetName = NULL;
|
ms_wcCharsetName = nameXE;
|
||||||
|
|
||||||
// VS: we must not output an error here, since wxWidgets will safely
|
|
||||||
// fall back to using wxEncodingConverter.
|
|
||||||
wxLogTrace(TRACE_STRCONV, wxT("Impossible to convert to/from charset '%s' with iconv, falling back to wxEncodingConverter."), name);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
wxLogTrace(TRACE_STRCONV,
|
wxLogTrace(TRACE_STRCONV,
|
||||||
wxT("wchar_t charset is '%s', needs swap: %i"),
|
wxT("iconv wchar_t charset is \"%s\"%s"),
|
||||||
ms_wcCharsetName ? ms_wcCharsetName : "<none>", ms_wcNeedsSwap);
|
ms_wcCharsetName.empty() ? _T("<none>")
|
||||||
|
: ms_wcCharsetName.c_str(),
|
||||||
|
ms_wcNeedsSwap ? _T(" (needs swap)")
|
||||||
|
: _T(""));
|
||||||
}
|
}
|
||||||
else // we already have ms_wcCharsetName
|
else // we already have ms_wcCharsetName
|
||||||
{
|
{
|
||||||
m2w = iconv_open(ms_wcCharsetName, cname);
|
m2w = iconv_open(ms_wcCharsetName.ToAscii(), cname);
|
||||||
}
|
}
|
||||||
|
|
||||||
// NB: don't ever pass NULL to iconv_open(), it may crash!
|
if ( ms_wcCharsetName.empty() )
|
||||||
if ( ms_wcCharsetName )
|
|
||||||
{
|
{
|
||||||
w2m = iconv_open( cname, ms_wcCharsetName);
|
w2m = ICONV_T_INVALID;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
w2m = (iconv_t)-1;
|
w2m = iconv_open(cname, ms_wcCharsetName.ToAscii());
|
||||||
|
if ( w2m == ICONV_T_INVALID )
|
||||||
|
{
|
||||||
|
wxLogTrace(TRACE_STRCONV,
|
||||||
|
wxT("\"%s\" -> \"%s\" works but not the converse!?"),
|
||||||
|
ms_wcCharsetName.c_str(), cname.data());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
wxMBConv_iconv::~wxMBConv_iconv()
|
wxMBConv_iconv::~wxMBConv_iconv()
|
||||||
{
|
{
|
||||||
if ( m2w != (iconv_t)-1 )
|
if ( m2w != ICONV_T_INVALID )
|
||||||
iconv_close(m2w);
|
iconv_close(m2w);
|
||||||
if ( w2m != (iconv_t)-1 )
|
if ( w2m != ICONV_T_INVALID )
|
||||||
iconv_close(w2m);
|
iconv_close(w2m);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1489,7 +1489,8 @@ size_t wxMBConv_iconv::MB2WC(wchar_t *buf, const char *psz, size_t n) const
|
|||||||
if (ms_wcNeedsSwap)
|
if (ms_wcNeedsSwap)
|
||||||
{
|
{
|
||||||
// convert to native endianness
|
// convert to native endianness
|
||||||
WC_BSWAP(buf /* _not_ bufPtr */, res)
|
for ( unsigned n = 0; n < res; n++ )
|
||||||
|
buf[n] = WC_BSWAP(buf[n]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// NB: iconv was given only strlen(psz) characters on input, and so
|
// NB: iconv was given only strlen(psz) characters on input, and so
|
||||||
@@ -1542,13 +1543,13 @@ size_t wxMBConv_iconv::WC2MB(char *buf, const wchar_t *psz, size_t n) const
|
|||||||
if (ms_wcNeedsSwap)
|
if (ms_wcNeedsSwap)
|
||||||
{
|
{
|
||||||
// need to copy to temp buffer to switch endianness
|
// need to copy to temp buffer to switch endianness
|
||||||
// this absolutely doesn't rock!
|
// (doing WC_BSWAP twice on the original buffer won't help, as it
|
||||||
// (no, doing WC_BSWAP twice on the original buffer won't help, as it
|
|
||||||
// could be in read-only memory, or be accessed in some other thread)
|
// could be in read-only memory, or be accessed in some other thread)
|
||||||
tmpbuf=(wchar_t*)malloc((inbuf+1)*SIZEOF_WCHAR_T);
|
tmpbuf = (wchar_t *)malloc(inbuf + SIZEOF_WCHAR_T);
|
||||||
memcpy(tmpbuf,psz,(inbuf+1)*SIZEOF_WCHAR_T);
|
for ( size_t n = 0; n < inbuf; n++ )
|
||||||
WC_BSWAP(tmpbuf, inbuf)
|
tmpbuf[n] = WC_BSWAP(psz[n]);
|
||||||
psz=tmpbuf;
|
tmpbuf[inbuf] = L'\0';
|
||||||
|
psz = tmpbuf;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buf)
|
if (buf)
|
||||||
|
@@ -105,17 +105,16 @@ static void wxgtk_window_set_urgency_hint (GtkWindow *win,
|
|||||||
XFree(wm_hints);
|
XFree(wm_hints);
|
||||||
}
|
}
|
||||||
|
|
||||||
static gint gtk_frame_urgency_timer_callback( GtkWidget *win )
|
static gint gtk_frame_urgency_timer_callback( wxTopLevelWindowGTK *win )
|
||||||
{
|
{
|
||||||
#if defined(__WXGTK20__) && GTK_CHECK_VERSION(2,7,0)
|
#if defined(__WXGTK20__) && GTK_CHECK_VERSION(2,7,0)
|
||||||
if(!gtk_check_version(2,7,0))
|
if(!gtk_check_version(2,7,0))
|
||||||
gtk_window_set_urgency_hint(GTK_WINDOW( win ), FALSE);
|
gtk_window_set_urgency_hint(GTK_WINDOW( win->m_widget ), FALSE);
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
wxgtk_window_set_urgency_hint(GTK_WINDOW( win ), FALSE);
|
wxgtk_window_set_urgency_hint(GTK_WINDOW( win->m_widget ), FALSE);
|
||||||
|
|
||||||
//BCI: argument from GtkWidget* to wxTopLevelWindowGTK* && win->m_urgency_hint = -2;
|
win->m_urgency_hint = -2;
|
||||||
gtk_object_set_data(GTK_OBJECT(win), "m_urgency_hint", GINT_TO_POINTER(-2));
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -152,12 +151,10 @@ static gint gtk_frame_focus_in_callback( GtkWidget *widget,
|
|||||||
// wxPrintf( wxT("active: %s\n"), win->GetTitle().c_str() );
|
// wxPrintf( wxT("active: %s\n"), win->GetTitle().c_str() );
|
||||||
|
|
||||||
// MR: wxRequestUserAttention related block
|
// MR: wxRequestUserAttention related block
|
||||||
//BCI: switch(win->m_urgency_hint)
|
switch( win->m_urgency_hint )
|
||||||
switch( GPOINTER_TO_INT(gtk_object_get_data( GTK_OBJECT(widget), "m_urgency_hint") ) )
|
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
//BCI:
|
gtk_timeout_remove( win->m_urgency_hint );
|
||||||
gtk_timeout_remove( GPOINTER_TO_INT(gtk_object_get_data( GTK_OBJECT(widget), "m_urgency_hint") ) );
|
|
||||||
// no break, fallthrough to remove hint too
|
// no break, fallthrough to remove hint too
|
||||||
case -1:
|
case -1:
|
||||||
#if defined(__WXGTK20__) && GTK_CHECK_VERSION(2,7,0)
|
#if defined(__WXGTK20__) && GTK_CHECK_VERSION(2,7,0)
|
||||||
@@ -169,8 +166,7 @@ static gint gtk_frame_focus_in_callback( GtkWidget *widget,
|
|||||||
wxgtk_window_set_urgency_hint(GTK_WINDOW( widget ), FALSE);
|
wxgtk_window_set_urgency_hint(GTK_WINDOW( widget ), FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
//BCI: win->m_urgency_hint = -2;
|
win->m_urgency_hint = -2;
|
||||||
gtk_object_set_data( GTK_OBJECT(widget), "m_urgency_hint", GINT_TO_POINTER(-2) );
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case -2: break;
|
case -2: break;
|
||||||
@@ -487,12 +483,7 @@ void wxTopLevelWindowGTK::Init()
|
|||||||
m_gdkDecor = m_gdkFunc = 0;
|
m_gdkDecor = m_gdkFunc = 0;
|
||||||
m_grabbed = false;
|
m_grabbed = false;
|
||||||
|
|
||||||
//BCI: header wx/gtk/toplevel.h:
|
m_urgency_hint = -2;
|
||||||
// private gtk_timeout_add result for mimicing wxUSER_ATTENTION_INFO and
|
|
||||||
// wxUSER_ATTENTION_ERROR difference, -2 for no hint, -1 for ERROR hint, rest for GtkTimeout handle.
|
|
||||||
// int m_urgency_hint;
|
|
||||||
|
|
||||||
//BCI: m_urgency_hint = -2;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxTopLevelWindowGTK::Create( wxWindow *parent,
|
bool wxTopLevelWindowGTK::Create( wxWindow *parent,
|
||||||
@@ -566,9 +557,6 @@ bool wxTopLevelWindowGTK::Create( wxWindow *parent,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// BCI:
|
|
||||||
gtk_object_set_data( GTK_OBJECT(m_widget), "m_urgency_hint", GINT_TO_POINTER(-2) );
|
|
||||||
|
|
||||||
wxWindow *topParent = wxGetTopLevelParent(m_parent);
|
wxWindow *topParent = wxGetTopLevelParent(m_parent);
|
||||||
if (topParent && (((GTK_IS_WINDOW(topParent->m_widget)) &&
|
if (topParent && (((GTK_IS_WINDOW(topParent->m_widget)) &&
|
||||||
(GetExtraStyle() & wxTOPLEVEL_EX_DIALOG)) ||
|
(GetExtraStyle() & wxTOPLEVEL_EX_DIALOG)) ||
|
||||||
@@ -1349,17 +1337,10 @@ void wxTopLevelWindowGTK::RequestUserAttention(int flags)
|
|||||||
// wxYieldIfNeeded ensures the processing of it, but can have unwanted side effects - MR
|
// wxYieldIfNeeded ensures the processing of it, but can have unwanted side effects - MR
|
||||||
::wxYieldIfNeeded();
|
::wxYieldIfNeeded();
|
||||||
|
|
||||||
/*BCI:
|
|
||||||
if(m_urgency_hint >= 0)
|
if(m_urgency_hint >= 0)
|
||||||
gtk_timeout_remove(m_urgency_hint);
|
gtk_timeout_remove(m_urgency_hint);
|
||||||
*/
|
|
||||||
int urgency_hint = GPOINTER_TO_INT( gtk_object_get_data( GTK_OBJECT(m_widget), "m_urgency_hint") );
|
|
||||||
if(urgency_hint >= 0)
|
|
||||||
gtk_timeout_remove(urgency_hint);
|
|
||||||
//BCI: END
|
|
||||||
|
|
||||||
//BCI: m_urgency_hint = -2;
|
m_urgency_hint = -2;
|
||||||
gtk_object_set_data( GTK_OBJECT(m_widget), "m_urgency_hint", GINT_TO_POINTER(-2));
|
|
||||||
|
|
||||||
if( GTK_WIDGET_REALIZED(m_widget) && !IsActive() )
|
if( GTK_WIDGET_REALIZED(m_widget) && !IsActive() )
|
||||||
{
|
{
|
||||||
@@ -1367,14 +1348,9 @@ void wxTopLevelWindowGTK::RequestUserAttention(int flags)
|
|||||||
|
|
||||||
if (flags & wxUSER_ATTENTION_INFO)
|
if (flags & wxUSER_ATTENTION_INFO)
|
||||||
{
|
{
|
||||||
//BCI: m_urgency_hint = gtk_timeout_add(5000, (GtkFunction)gtk_frame_urgency_timer_callback, this);
|
m_urgency_hint = gtk_timeout_add(5000, (GtkFunction)gtk_frame_urgency_timer_callback, this);
|
||||||
gtk_object_set_data( GTK_OBJECT(m_widget), "m_urgency_hint",
|
|
||||||
GINT_TO_POINTER( gtk_timeout_add(5000,
|
|
||||||
(GtkFunction)gtk_frame_urgency_timer_callback,
|
|
||||||
m_widget) ) );
|
|
||||||
} else {
|
} else {
|
||||||
//BCI: m_urgency_hint = -1;
|
m_urgency_hint = -1;
|
||||||
gtk_object_set_data( GTK_OBJECT(m_widget), "m_urgency_hint", GINT_TO_POINTER(-1) );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -105,17 +105,16 @@ static void wxgtk_window_set_urgency_hint (GtkWindow *win,
|
|||||||
XFree(wm_hints);
|
XFree(wm_hints);
|
||||||
}
|
}
|
||||||
|
|
||||||
static gint gtk_frame_urgency_timer_callback( GtkWidget *win )
|
static gint gtk_frame_urgency_timer_callback( wxTopLevelWindowGTK *win )
|
||||||
{
|
{
|
||||||
#if defined(__WXGTK20__) && GTK_CHECK_VERSION(2,7,0)
|
#if defined(__WXGTK20__) && GTK_CHECK_VERSION(2,7,0)
|
||||||
if(!gtk_check_version(2,7,0))
|
if(!gtk_check_version(2,7,0))
|
||||||
gtk_window_set_urgency_hint(GTK_WINDOW( win ), FALSE);
|
gtk_window_set_urgency_hint(GTK_WINDOW( win->m_widget ), FALSE);
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
wxgtk_window_set_urgency_hint(GTK_WINDOW( win ), FALSE);
|
wxgtk_window_set_urgency_hint(GTK_WINDOW( win->m_widget ), FALSE);
|
||||||
|
|
||||||
//BCI: argument from GtkWidget* to wxTopLevelWindowGTK* && win->m_urgency_hint = -2;
|
win->m_urgency_hint = -2;
|
||||||
gtk_object_set_data(GTK_OBJECT(win), "m_urgency_hint", GINT_TO_POINTER(-2));
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -152,12 +151,10 @@ static gint gtk_frame_focus_in_callback( GtkWidget *widget,
|
|||||||
// wxPrintf( wxT("active: %s\n"), win->GetTitle().c_str() );
|
// wxPrintf( wxT("active: %s\n"), win->GetTitle().c_str() );
|
||||||
|
|
||||||
// MR: wxRequestUserAttention related block
|
// MR: wxRequestUserAttention related block
|
||||||
//BCI: switch(win->m_urgency_hint)
|
switch( win->m_urgency_hint )
|
||||||
switch( GPOINTER_TO_INT(gtk_object_get_data( GTK_OBJECT(widget), "m_urgency_hint") ) )
|
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
//BCI:
|
gtk_timeout_remove( win->m_urgency_hint );
|
||||||
gtk_timeout_remove( GPOINTER_TO_INT(gtk_object_get_data( GTK_OBJECT(widget), "m_urgency_hint") ) );
|
|
||||||
// no break, fallthrough to remove hint too
|
// no break, fallthrough to remove hint too
|
||||||
case -1:
|
case -1:
|
||||||
#if defined(__WXGTK20__) && GTK_CHECK_VERSION(2,7,0)
|
#if defined(__WXGTK20__) && GTK_CHECK_VERSION(2,7,0)
|
||||||
@@ -169,8 +166,7 @@ static gint gtk_frame_focus_in_callback( GtkWidget *widget,
|
|||||||
wxgtk_window_set_urgency_hint(GTK_WINDOW( widget ), FALSE);
|
wxgtk_window_set_urgency_hint(GTK_WINDOW( widget ), FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
//BCI: win->m_urgency_hint = -2;
|
win->m_urgency_hint = -2;
|
||||||
gtk_object_set_data( GTK_OBJECT(widget), "m_urgency_hint", GINT_TO_POINTER(-2) );
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case -2: break;
|
case -2: break;
|
||||||
@@ -487,12 +483,7 @@ void wxTopLevelWindowGTK::Init()
|
|||||||
m_gdkDecor = m_gdkFunc = 0;
|
m_gdkDecor = m_gdkFunc = 0;
|
||||||
m_grabbed = false;
|
m_grabbed = false;
|
||||||
|
|
||||||
//BCI: header wx/gtk/toplevel.h:
|
m_urgency_hint = -2;
|
||||||
// private gtk_timeout_add result for mimicing wxUSER_ATTENTION_INFO and
|
|
||||||
// wxUSER_ATTENTION_ERROR difference, -2 for no hint, -1 for ERROR hint, rest for GtkTimeout handle.
|
|
||||||
// int m_urgency_hint;
|
|
||||||
|
|
||||||
//BCI: m_urgency_hint = -2;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxTopLevelWindowGTK::Create( wxWindow *parent,
|
bool wxTopLevelWindowGTK::Create( wxWindow *parent,
|
||||||
@@ -566,9 +557,6 @@ bool wxTopLevelWindowGTK::Create( wxWindow *parent,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// BCI:
|
|
||||||
gtk_object_set_data( GTK_OBJECT(m_widget), "m_urgency_hint", GINT_TO_POINTER(-2) );
|
|
||||||
|
|
||||||
wxWindow *topParent = wxGetTopLevelParent(m_parent);
|
wxWindow *topParent = wxGetTopLevelParent(m_parent);
|
||||||
if (topParent && (((GTK_IS_WINDOW(topParent->m_widget)) &&
|
if (topParent && (((GTK_IS_WINDOW(topParent->m_widget)) &&
|
||||||
(GetExtraStyle() & wxTOPLEVEL_EX_DIALOG)) ||
|
(GetExtraStyle() & wxTOPLEVEL_EX_DIALOG)) ||
|
||||||
@@ -1349,17 +1337,10 @@ void wxTopLevelWindowGTK::RequestUserAttention(int flags)
|
|||||||
// wxYieldIfNeeded ensures the processing of it, but can have unwanted side effects - MR
|
// wxYieldIfNeeded ensures the processing of it, but can have unwanted side effects - MR
|
||||||
::wxYieldIfNeeded();
|
::wxYieldIfNeeded();
|
||||||
|
|
||||||
/*BCI:
|
|
||||||
if(m_urgency_hint >= 0)
|
if(m_urgency_hint >= 0)
|
||||||
gtk_timeout_remove(m_urgency_hint);
|
gtk_timeout_remove(m_urgency_hint);
|
||||||
*/
|
|
||||||
int urgency_hint = GPOINTER_TO_INT( gtk_object_get_data( GTK_OBJECT(m_widget), "m_urgency_hint") );
|
|
||||||
if(urgency_hint >= 0)
|
|
||||||
gtk_timeout_remove(urgency_hint);
|
|
||||||
//BCI: END
|
|
||||||
|
|
||||||
//BCI: m_urgency_hint = -2;
|
m_urgency_hint = -2;
|
||||||
gtk_object_set_data( GTK_OBJECT(m_widget), "m_urgency_hint", GINT_TO_POINTER(-2));
|
|
||||||
|
|
||||||
if( GTK_WIDGET_REALIZED(m_widget) && !IsActive() )
|
if( GTK_WIDGET_REALIZED(m_widget) && !IsActive() )
|
||||||
{
|
{
|
||||||
@@ -1367,14 +1348,9 @@ void wxTopLevelWindowGTK::RequestUserAttention(int flags)
|
|||||||
|
|
||||||
if (flags & wxUSER_ATTENTION_INFO)
|
if (flags & wxUSER_ATTENTION_INFO)
|
||||||
{
|
{
|
||||||
//BCI: m_urgency_hint = gtk_timeout_add(5000, (GtkFunction)gtk_frame_urgency_timer_callback, this);
|
m_urgency_hint = gtk_timeout_add(5000, (GtkFunction)gtk_frame_urgency_timer_callback, this);
|
||||||
gtk_object_set_data( GTK_OBJECT(m_widget), "m_urgency_hint",
|
|
||||||
GINT_TO_POINTER( gtk_timeout_add(5000,
|
|
||||||
(GtkFunction)gtk_frame_urgency_timer_callback,
|
|
||||||
m_widget) ) );
|
|
||||||
} else {
|
} else {
|
||||||
//BCI: m_urgency_hint = -1;
|
m_urgency_hint = -1;
|
||||||
gtk_object_set_data( GTK_OBJECT(m_widget), "m_urgency_hint", GINT_TO_POINTER(-1) );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1776,6 +1776,7 @@ void wxTextCtrl::OnChar(wxKeyEvent& event)
|
|||||||
// Insert tab since calling the default Windows handler
|
// Insert tab since calling the default Windows handler
|
||||||
// doesn't seem to do it
|
// doesn't seem to do it
|
||||||
WriteText(wxT("\t"));
|
WriteText(wxT("\t"));
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
# Name: wx-config-inplace
|
# Name: wx-config-inplace
|
||||||
# Purpose: wx configuration in tree search and query tool
|
# Purpose: wx configuration in tree search and query tool
|
||||||
# Author: Ron <ron@debian.org>
|
# Author: Ron <ron@debian.org>
|
||||||
# Modified by:
|
# Modified by: VZ on 2005-09-20 to make it work with Bourne shell
|
||||||
# Created: 14/9/2004
|
# Created: 14/9/2004
|
||||||
# RCS-ID: $Id$
|
# RCS-ID: $Id$
|
||||||
# Copyright: (c) 2004 Ron <ron@debian.org>
|
# Copyright: (c) 2004 Ron <ron@debian.org>
|
||||||
@@ -24,8 +24,16 @@ check_dirname()
|
|||||||
( cd $1 && pwd )
|
( cd $1 && pwd )
|
||||||
}
|
}
|
||||||
|
|
||||||
this_prefix=$(check_dirname "@abs_top_srcdir@") || exit
|
# set the variables which allow the real wx-config to check if we're using it
|
||||||
this_exec_prefix=$(check_dirname "@abs_top_builddir@") || exit
|
# in place or after installation
|
||||||
|
this_prefix=`check_dirname "@abs_top_srcdir@"`
|
||||||
|
if [ "x$this_prefix" = "x" ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
this_exec_prefix=`check_dirname "@abs_top_builddir@"`
|
||||||
|
if [ "x$this_exec_prefix" = "x" ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
. "$this_exec_prefix/lib/wx/config/@TOOLCHAIN_FULLNAME@"
|
. "$this_exec_prefix/lib/wx/config/@TOOLCHAIN_FULLNAME@"
|
||||||
|
|
||||||
|
@@ -3,6 +3,16 @@
|
|||||||
PY_VERSION=$1
|
PY_VERSION=$1
|
||||||
shift
|
shift
|
||||||
|
|
||||||
|
unicode=no
|
||||||
|
debug=no
|
||||||
|
|
||||||
|
for flag in $*; do
|
||||||
|
case ${flag} in
|
||||||
|
debug) debug=yes ;;
|
||||||
|
unicode) unicode=yes ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
if [ "$WXWIN" = "" ]; then
|
if [ "$WXWIN" = "" ]; then
|
||||||
export WXWIN=`pwd`/../..
|
export WXWIN=`pwd`/../..
|
||||||
fi
|
fi
|
||||||
@@ -32,7 +42,7 @@ if [ "$OSTYPE" = "cygwin" ]; then
|
|||||||
# remove old build files
|
# remove old build files
|
||||||
rm -rf vc_msw*
|
rm -rf vc_msw*
|
||||||
UNI=
|
UNI=
|
||||||
if [ "$UNICODE" != "" ]; then
|
if [ $unicode = yes ]; then
|
||||||
UNI=-uni
|
UNI=-uni
|
||||||
fi
|
fi
|
||||||
./.make hybrid$UNI
|
./.make hybrid$UNI
|
||||||
@@ -67,7 +77,7 @@ if [ "$OSTYPE" = "cygwin" ]; then
|
|||||||
if [ "$DEBUG" != "" ]; then
|
if [ "$DEBUG" != "" ]; then
|
||||||
DEBUG_FLAG=--debug
|
DEBUG_FLAG=--debug
|
||||||
fi
|
fi
|
||||||
if [ "$UNICODE" != "" ]; then
|
if [ $unicode = yes ]; then
|
||||||
UNICODE_FLAG="UNICODE=1"
|
UNICODE_FLAG="UNICODE=1"
|
||||||
fi
|
fi
|
||||||
b $PY_VERSION h $DEBUG_FLAG $UNICODE_FLAG
|
b $PY_VERSION h $DEBUG_FLAG $UNICODE_FLAG
|
||||||
@@ -83,7 +93,17 @@ elif [ "$OSTYPE" = "darwin" ]; then
|
|||||||
# re-generate SWIG files
|
# re-generate SWIG files
|
||||||
./b $PY_VERSION t
|
./b $PY_VERSION t
|
||||||
|
|
||||||
sudo distrib/mac/wxPythonOSX/build 2.3 panther inplace
|
PY_DOT_VER=2.3
|
||||||
|
if [ "$PY_VERSION" = "24" ]; then
|
||||||
|
PY_DOT_VER=2.4
|
||||||
|
fi
|
||||||
|
|
||||||
|
UNICODE_OPT=
|
||||||
|
if [ $unicode = yes ]; then
|
||||||
|
UNICODE_OPT=unicode
|
||||||
|
fi
|
||||||
|
|
||||||
|
sudo distrib/mac/wxPythonOSX/build $PY_DOT_VER panther inplace $UNICODE_OPT
|
||||||
exit
|
exit
|
||||||
else
|
else
|
||||||
echo "OSTYPE $OSTYPE not yet supported by this build script."
|
echo "OSTYPE $OSTYPE not yet supported by this build script."
|
||||||
|
@@ -182,6 +182,9 @@ mkdir -p $DMGROOT
|
|||||||
mkdir -p $DMGAPPS/Docs
|
mkdir -p $DMGAPPS/Docs
|
||||||
mkdir -p $DMGAPPS/Samples
|
mkdir -p $DMGAPPS/Samples
|
||||||
|
|
||||||
|
if [ ! -d $DESTDIR ]; then
|
||||||
|
mkdir $DESTDIR
|
||||||
|
fi
|
||||||
|
|
||||||
pushd $BUILDROOT
|
pushd $BUILDROOT
|
||||||
|
|
||||||
@@ -470,7 +473,7 @@ EOF
|
|||||||
$PROGDIR/../makedmg $DMGROOT $DMGDIR $dmgname
|
$PROGDIR/../makedmg $DMGROOT $DMGDIR $dmgname
|
||||||
|
|
||||||
echo Moving $DMGDIR/$dmgname.dmg to $DESTDIR
|
echo Moving $DMGDIR/$dmgname.dmg to $DESTDIR
|
||||||
mv $DMGDIR/$dmgname.dmg $DESTDIR
|
mv $DMGDIR/$dmgname.dmg $DESTDIR/$dmgname.dmg
|
||||||
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
@@ -626,7 +629,7 @@ EOF
|
|||||||
$PROGDIR/../makedmg $DMGAPPS $DMGDIR $dmgname
|
$PROGDIR/../makedmg $DMGAPPS $DMGDIR $dmgname
|
||||||
|
|
||||||
echo Moving $DMGDIR/$dmgname.dmg to $DESTDIR
|
echo Moving $DMGDIR/$dmgname.dmg to $DESTDIR
|
||||||
mv $DMGDIR/$dmgname.dmg $DESTDIR
|
mv $DMGDIR/$dmgname.dmg $DESTDIR/$dmgname.dmg
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user