mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-21 13:26:08 +08:00
merged 2.4 branch into the trunk
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
+78
-5
@@ -391,11 +391,19 @@ afminstall: preinstall
|
||||
$(INSTALL) -d $(datadir)/wx/$(VER_MAJMIN)/gs_afm
|
||||
$(INSTALL_DATA) $(top_srcdir)/misc/afm/*.afm $(datadir)/wx/$(VER_MAJMIN)/afm
|
||||
$(INSTALL_DATA) $(top_srcdir)/misc/gs_afm/*.afm $(datadir)/wx/$(VER_MAJMIN)/gs_afm
|
||||
|
||||
|
||||
m4datainstall: preinstall
|
||||
$(INSTALL) -d $(datadir)/aclocal
|
||||
$(INSTALL_DATA) $(top_srcdir)/wxwin.m4 $(datadir)/aclocal
|
||||
|
||||
win32install: preinstall
|
||||
$(INSTALL) -d $(includedir)/wx/msw
|
||||
$(INSTALL_DATA) $(top_srcdir)/include/wx/msw/*.cur \
|
||||
$(top_srcdir)/include/wx/msw/*.ico \
|
||||
$(top_srcdir)/include/wx/msw/*.bmp \
|
||||
$(top_srcdir)/include/wx/msw/wx.rc \
|
||||
$(includedir)/wx/msw
|
||||
|
||||
# this is the real install target: copies the library, wx-config and the
|
||||
# headers to the installation directory
|
||||
preinstall: $(build_libdir)/@WX_TARGET_LIBRARY@ $(top_builddir)/wx@TOOLCHAIN_NAME@-config
|
||||
@@ -462,7 +470,7 @@ preinstall_gl: $(build_libdir)/@WX_TARGET_LIBRARY_GL@
|
||||
@if test ! -d $(libdir); then $(INSTALL) -d $(libdir); fi
|
||||
@INSTALL_LIBRARY@ $(build_libdir)/@WX_TARGET_LIBRARY_GL@ $(libdir)/@WX_TARGET_LIBRARY_GL@
|
||||
|
||||
install: @AFMINSTALL@ @WX_ALL_INSTALLED@ m4datainstall
|
||||
install: @AFMINSTALL@ @WX_ALL_INSTALLED@ m4datainstall @WIN32INSTALL@
|
||||
@echo " "
|
||||
@echo " The installation of wxWindows is finished. On certain"
|
||||
@echo " platforms (e.g. Linux) you'll now have to run ldconfig"
|
||||
@@ -493,7 +501,7 @@ uninstall:
|
||||
@$(RM) $(bindir)/wx@TOOLCHAIN_NAME@-config
|
||||
@$(RM) $(datadir)/wx/$(VER_MAJMIN)/afm/*
|
||||
@$(RM) $(datadir)/wx/$(VER_MAJMIN)/gs_afm/*
|
||||
# FIXME: wxBase doesnt install these next 3 dirs.
|
||||
# FIXME: wxBase doesnt install these next 3 dirs.
|
||||
@-rmdir $(datadir)/wx/$(VER_MAJMIN)/gs_afm
|
||||
@-rmdir $(datadir)/wx/$(VER_MAJMIN)/afm
|
||||
@-rmdir $(datadir)/wx/$(VER_MAJMIN)
|
||||
@@ -502,6 +510,7 @@ uninstall:
|
||||
@list='$(HEADERS)'; for p in $$list; do \
|
||||
$(RM) $(includedir)/wx/$$p; \
|
||||
done
|
||||
# TODO: uninstall the files installed by win32install
|
||||
@echo " Removing i18n files..."
|
||||
@-for p in $(WX_LINGUAS); do \
|
||||
$(RM) $(localedir)/$$p/LC_MESSAGES/wxstd.mo; \
|
||||
@@ -536,6 +545,7 @@ ALL_DIST: distclean
|
||||
cp $(WXDIR)/install-sh $(DISTDIR)
|
||||
cp $(WXDIR)/mkinstalldirs $(DISTDIR)
|
||||
cp $(WXDIR)/wx-config.in $(DISTDIR)
|
||||
cp $(WXDIR)/version-script.in $(DISTDIR)
|
||||
cp $(WXDIR)/setup.h.in $(DISTDIR)
|
||||
cp $(WXDIR)/setup.h_vms $(DISTDIR)
|
||||
cp $(WXDIR)/descrip.mms $(DISTDIR)
|
||||
@@ -580,7 +590,8 @@ ALL_GUI_DIST: ALL_DIST
|
||||
if test -f $(DOCDIR)/$(TOOLKITDIR)/changes.txt ; then \
|
||||
cp $(DOCDIR)/$(TOOLKITDIR)/changes.txt $(DISTDIR)/CHANGES-$(TOOLKIT).txt ; fi
|
||||
cp $(DOCDIR)/$(TOOLKITDIR)/readme.txt $(DISTDIR)/README-$(TOOLKIT).txt
|
||||
cp $(DOCDIR)/$(TOOLKITDIR)/todo.txt $(DISTDIR)/TODO.txt
|
||||
if test -f $(DOCDIR)/$(TOOLKITDIR)/todo.txt ; then \
|
||||
cp $(DOCDIR)/$(TOOLKITDIR)/todo.txt $(DISTDIR)/TODO.txt ; fi
|
||||
mkdir $(DISTDIR)/include
|
||||
mkdir $(DISTDIR)/include/wx
|
||||
mkdir $(DISTDIR)/include/wx/$(TOOLKITDIR)
|
||||
@@ -777,6 +788,8 @@ MSW_ZIP_TEXT_DIST: ALL_GUI_DIST
|
||||
cp $(SRCDIR)/*.??? $(DISTDIR)/src
|
||||
cp $(SRCDIR)/*.?? $(DISTDIR)/src
|
||||
cp $(MSWDIR)/?ake*.* $(DISTDIR)/src/msw
|
||||
mkdir $(DISTDIR)/contrib
|
||||
cp -R $(WXDIR)/contrib $(DISTDIR)
|
||||
|
||||
UNIV_DIST: ALL_GUI_DIST
|
||||
mkdir $(DISTDIR)/include/wx/univ
|
||||
@@ -787,6 +800,15 @@ UNIV_DIST: ALL_GUI_DIST
|
||||
cp $(SRCDIR)/univ/*.cpp $(DISTDIR)/src/univ
|
||||
cp $(SRCDIR)/univ/themes/*.cpp $(DISTDIR)/src/univ/themes
|
||||
|
||||
MGL_DIST: UNIV_DIST
|
||||
cp $(WXDIR)/wxMGL.spec $(DISTDIR)
|
||||
cp $(INCDIR)/wx/mgl/*.h $(DISTDIR)/include/wx/mgl
|
||||
cp $(SRCDIR)/mgl/files.lst $(DISTDIR)/src/mgl
|
||||
cp $(SRCDIR)/mgl/make* $(DISTDIR)/src/mgl
|
||||
cp $(SRCDIR)/mgl/*.cpp $(DISTDIR)/src/mgl
|
||||
mkdir $(DISTDIR)/contrib
|
||||
cp -R $(WXDIR)/contrib $(DISTDIR)
|
||||
|
||||
DEMOS_DIST: ALL_GUI_DIST
|
||||
mkdir $(DISTDIR)/demos
|
||||
cp $(DEMODIR)/Makefile.in $(DISTDIR)/demos
|
||||
@@ -842,6 +864,13 @@ SAMPLES_DIST: ALL_GUI_DIST
|
||||
cp $(SAMPDIR)/configure $(DISTDIR)/samples
|
||||
cp $(SAMPDIR)/configure.in $(DISTDIR)/samples
|
||||
|
||||
mkdir $(DISTDIR)/samples/artprov
|
||||
cp $(SAMPDIR)/artprov/Makefile.in $(DISTDIR)/samples/artprov
|
||||
cp $(SAMPDIR)/artprov/makefile.unx $(DISTDIR)/samples/artprov
|
||||
cp $(SAMPDIR)/artprov/*.cpp $(DISTDIR)/samples/artprov
|
||||
cp $(SAMPDIR)/artprov/*.h $(DISTDIR)/samples/artprov
|
||||
cp $(SAMPDIR)/artprov/*.xpm $(DISTDIR)/samples/artprov
|
||||
|
||||
mkdir $(DISTDIR)/samples/calendar
|
||||
cp $(SAMPDIR)/calendar/Makefile.in $(DISTDIR)/samples/calendar
|
||||
cp $(SAMPDIR)/calendar/makefile.unx $(DISTDIR)/samples/calendar
|
||||
@@ -1053,6 +1082,10 @@ SAMPLES_DIST: ALL_GUI_DIST
|
||||
cp $(SAMPDIR)/joytest/*.h $(DISTDIR)/samples/joytest
|
||||
cp $(SAMPDIR)/joytest/*.wav $(DISTDIR)/samples/joytest
|
||||
|
||||
mkdir $(DISTDIR)/samples/keyboard
|
||||
cp $(SAMPDIR)/keyboard/Makefile.in $(DISTDIR)/samples/keyboard
|
||||
cp $(SAMPDIR)/keyboard/*.cpp $(DISTDIR)/samples/keyboard
|
||||
|
||||
mkdir $(DISTDIR)/samples/layout
|
||||
cp $(SAMPDIR)/layout/Makefile.in $(DISTDIR)/samples/layout
|
||||
cp $(SAMPDIR)/layout/makefile.unx $(DISTDIR)/samples/layout
|
||||
@@ -1110,6 +1143,11 @@ SAMPLES_DIST: ALL_GUI_DIST
|
||||
cp $(SAMPDIR)/mobile/wxedit/Makefile.in $(DISTDIR)/samples/mobile/wxedit
|
||||
cp $(SAMPDIR)/mobile/wxedit/*.cpp $(DISTDIR)/samples/mobile/wxedit
|
||||
cp $(SAMPDIR)/mobile/wxedit/*.h $(DISTDIR)/samples/mobile/wxedit
|
||||
mkdir $(DISTDIR)/samples/mobile/styles
|
||||
cp $(SAMPDIR)/mobile/styles/Makefile.in $(DISTDIR)/samples/mobile/styles
|
||||
cp $(SAMPDIR)/mobile/styles/*.cpp $(DISTDIR)/samples/mobile/styles
|
||||
cp $(SAMPDIR)/mobile/styles/*.h $(DISTDIR)/samples/mobile/styles
|
||||
cp $(SAMPDIR)/mobile/styles/*.jpg $(DISTDIR)/samples/mobile/styles
|
||||
|
||||
mkdir $(DISTDIR)/samples/dialup
|
||||
cp $(SAMPDIR)/dialup/Makefile.in $(DISTDIR)/samples/dialup
|
||||
@@ -1305,6 +1343,18 @@ UTILS_DIST: ALL_GUI_DIST
|
||||
cp $(UTILSDIR)/tex2rtf/src/*.cpp $(DISTDIR)/utils/tex2rtf/src
|
||||
cp $(UTILSDIR)/tex2rtf/src/tex2rtf.* $(DISTDIR)/utils/tex2rtf/src
|
||||
|
||||
mkdir $(DISTDIR)/utils/emulator
|
||||
mkdir $(DISTDIR)/utils/emulator/src
|
||||
mkdir $(DISTDIR)/utils/emulator/docs
|
||||
cp $(UTILSDIR)/emulator/*.in $(DISTDIR)/utils/emulator
|
||||
cp $(UTILSDIR)/emulator/src/*.h $(DISTDIR)/utils/emulator/src
|
||||
cp $(UTILSDIR)/emulator/src/*.in $(DISTDIR)/utils/emulator/src
|
||||
cp $(UTILSDIR)/emulator/src/*.cpp $(DISTDIR)/utils/emulator/src
|
||||
cp $(UTILSDIR)/emulator/src/*.jpg $(DISTDIR)/utils/emulator/src
|
||||
cp $(UTILSDIR)/emulator/src/*.wxe $(DISTDIR)/utils/emulator/src
|
||||
cp $(UTILSDIR)/emulator/docs/*.txt $(DISTDIR)/utils/emulator/docs
|
||||
cp $(UTILSDIR)/emulator/docs/*.jpg $(DISTDIR)/utils/emulator/docs
|
||||
|
||||
mkdir $(DISTDIR)/utils/makegen
|
||||
mkdir $(DISTDIR)/utils/makegen/templates
|
||||
cp $(UTILSDIR)/makegen/Makefile.in $(DISTDIR)/utils/makegen
|
||||
@@ -1319,7 +1369,29 @@ UTILS_DIST: ALL_GUI_DIST
|
||||
cp $(UTILSDIR)/HelpGen/Makefile.in $(DISTDIR)/utils/HelpGen
|
||||
cp $(UTILSDIR)/HelpGen/src/*.* $(DISTDIR)/utils/HelpGen/src
|
||||
|
||||
cp -R $(UTILSDIR)/dialoged $(DISTDIR)/utils/dialoged
|
||||
mkdir $(DISTDIR)/utils/dialoged
|
||||
mkdir $(DISTDIR)/utils/dialoged/src
|
||||
mkdir $(DISTDIR)/utils/dialoged/src/bitmaps
|
||||
mkdir $(DISTDIR)/utils/dialoged/docs
|
||||
cp $(UTILSDIR)/dialoged/Makefile.in $(DISTDIR)/utils/dialoged
|
||||
cp $(UTILSDIR)/dialoged/src/*.h $(DISTDIR)/utils/dialoged/src
|
||||
cp $(UTILSDIR)/dialoged/src/*.cpp $(DISTDIR)/utils/dialoged/src
|
||||
cp $(UTILSDIR)/dialoged/src/Makefile.in $(DISTDIR)/utils/dialoged/src
|
||||
cp $(UTILSDIR)/dialoged/src/makefile.unx $(DISTDIR)/utils/dialoged/src
|
||||
cp $(UTILSDIR)/dialoged/src/bitmaps/*.xpm $(DISTDIR)/utils/dialoged/src/bitmaps
|
||||
cp $(UTILSDIR)/dialoged/docs/*.tex $(DISTDIR)/utils/dialoged/docs
|
||||
cp $(UTILSDIR)/dialoged/docs/*.ini $(DISTDIR)/utils/dialoged/docs
|
||||
cp $(UTILSDIR)/dialoged/docs/*.gif $(DISTDIR)/utils/dialoged/docs
|
||||
|
||||
mkdir $(DISTDIR)/utils/helpview
|
||||
mkdir $(DISTDIR)/utils/helpview/src
|
||||
mkdir $(DISTDIR)/utils/helpview/src/bitmaps
|
||||
cp $(UTILSDIR)/helpview/Makefile.in $(DISTDIR)/utils/helpview
|
||||
cp $(UTILSDIR)/helpview/src/*.h $(DISTDIR)/utils/helpview/src
|
||||
cp $(UTILSDIR)/helpview/src/*.cpp $(DISTDIR)/utils/helpview/src
|
||||
cp $(UTILSDIR)/helpview/src/Makefile.in $(DISTDIR)/utils/helpview/src
|
||||
cp $(UTILSDIR)/helpview/src/test.zip $(DISTDIR)/utils/helpview/src
|
||||
cp $(UTILSDIR)/helpview/src/bitmaps/*.xpm $(DISTDIR)/utils/helpview/src/bitmaps
|
||||
|
||||
MISC_DIST: ALL_GUI_DIST
|
||||
mkdir $(DISTDIR)/misc
|
||||
@@ -1499,6 +1571,7 @@ debian-dist: debian-native-dist debian-msw-dirs MSW_DIST
|
||||
mv $(DISTDIR) $(WXDIR)/../wxwindows$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER)-$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER).$(WX_RELEASE_NUMBER)
|
||||
|
||||
debian-native-dist: @GUIDIST@ UNIV_DIST MANUAL_DIST PYTHON_DIST
|
||||
cp $(SRCDIR)/files.lst $(DISTDIR)/src
|
||||
|
||||
debian-msw-dirs:
|
||||
mkdir $(DISTDIR)/include/wx/msw
|
||||
|
||||
+62
-7
@@ -19,7 +19,7 @@ dnl ---------------------------------------------------------------------------
|
||||
AC_DEFUN([WX_PATH_FIND_INCLUDES],
|
||||
[
|
||||
ac_find_includes=
|
||||
for ac_dir in $1;
|
||||
for ac_dir in $1 /usr/include;
|
||||
do
|
||||
if test -f "$ac_dir/$2"; then
|
||||
ac_find_includes=$ac_dir
|
||||
@@ -35,7 +35,7 @@ dnl ---------------------------------------------------------------------------
|
||||
AC_DEFUN([WX_PATH_FIND_LIBRARIES],
|
||||
[
|
||||
ac_find_libraries=
|
||||
for ac_dir in $1;
|
||||
for ac_dir in $1 /usr/lib;
|
||||
do
|
||||
for ac_extension in a so sl dylib; do
|
||||
if test -f "$ac_dir/lib$2.$ac_extension"; then
|
||||
@@ -51,13 +51,17 @@ dnl Path to include, already defined
|
||||
dnl ---------------------------------------------------------------------------
|
||||
AC_DEFUN([WX_INCLUDE_PATH_EXIST],
|
||||
[
|
||||
ac_path_to_include=$1
|
||||
echo "$2" | grep "\-I$1" > /dev/null
|
||||
result=$?
|
||||
if test $result = 0; then
|
||||
dnl never add -I/usr/include to the CPPFLAGS
|
||||
if test "x$1" = "x/usr/include"; then
|
||||
ac_path_to_include=""
|
||||
else
|
||||
ac_path_to_include=" -I$1"
|
||||
echo "$2" | grep "\-I$1" > /dev/null
|
||||
result=$?
|
||||
if test $result = 0; then
|
||||
ac_path_to_include=""
|
||||
else
|
||||
ac_path_to_include=" -I$1"
|
||||
fi
|
||||
fi
|
||||
])
|
||||
|
||||
@@ -378,6 +382,57 @@ AC_DEFUN([WX_ARG_ENABLE],
|
||||
])
|
||||
|
||||
|
||||
dnl ===========================================================================
|
||||
dnl Linker features test
|
||||
dnl ===========================================================================
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl WX_VERSIONED_SYMBOLS checks whether the linker can create versioned
|
||||
dnl symbols. If it can, sets LDFLAGS_VERSIONING to $CXX flags needed to use
|
||||
dnl version script file named versionfile
|
||||
dnl
|
||||
dnl call WX_VERSIONED_SYMBOLS(versionfile)
|
||||
dnl ---------------------------------------------------------------------------
|
||||
AC_DEFUN([WX_VERSIONED_SYMBOLS],
|
||||
[
|
||||
found_versioning=no
|
||||
|
||||
dnl Check for known non-gcc cases:
|
||||
case "${host}" in
|
||||
*-*-solaris2* )
|
||||
if test "x$GCC" != "xyes" ; then
|
||||
LDFLAGS_VERSIONING="-M $1"
|
||||
found_versioning=yes
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
dnl Generic check for GCC or GCC-like behaviour (Intel C++, GCC):
|
||||
if test $found_versioning = no ; then
|
||||
AC_CACHE_CHECK([if the linker accepts --version-script], wx_cv_version_script,
|
||||
[
|
||||
echo "VER_1 { *; };" >conftest.sym
|
||||
echo "int main() { return 0; }" >conftest.cpp
|
||||
|
||||
if AC_TRY_COMMAND([
|
||||
$CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
|
||||
-Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr]) ; then
|
||||
if test -s conftest.stderr ; then
|
||||
wx_cv_version_script=no
|
||||
else
|
||||
wx_cv_version_script=yes
|
||||
fi
|
||||
else
|
||||
wx_cv_version_script=no
|
||||
fi
|
||||
rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
|
||||
])
|
||||
if test $wx_cv_version_script = yes ; then
|
||||
LDFLAGS_VERSIONING="-Wl,--version-script,$1"
|
||||
fi
|
||||
fi
|
||||
])
|
||||
|
||||
|
||||
dnl ===========================================================================
|
||||
dnl "3rd party" macros included here because they are not widely available
|
||||
|
||||
Vendored
+124
-65
@@ -31,7 +31,7 @@ dnl ---------------------------------------------------------------------------
|
||||
AC_DEFUN([WX_PATH_FIND_INCLUDES],
|
||||
[
|
||||
ac_find_includes=
|
||||
for ac_dir in $1;
|
||||
for ac_dir in $1 /usr/include;
|
||||
do
|
||||
if test -f "$ac_dir/$2"; then
|
||||
ac_find_includes=$ac_dir
|
||||
@@ -47,7 +47,7 @@ dnl ---------------------------------------------------------------------------
|
||||
AC_DEFUN([WX_PATH_FIND_LIBRARIES],
|
||||
[
|
||||
ac_find_libraries=
|
||||
for ac_dir in $1;
|
||||
for ac_dir in $1 /usr/lib;
|
||||
do
|
||||
for ac_extension in a so sl dylib; do
|
||||
if test -f "$ac_dir/lib$2.$ac_extension"; then
|
||||
@@ -63,13 +63,17 @@ dnl Path to include, already defined
|
||||
dnl ---------------------------------------------------------------------------
|
||||
AC_DEFUN([WX_INCLUDE_PATH_EXIST],
|
||||
[
|
||||
ac_path_to_include=$1
|
||||
echo "$2" | grep "\-I$1" > /dev/null
|
||||
result=$?
|
||||
if test $result = 0; then
|
||||
dnl never add -I/usr/include to the CPPFLAGS
|
||||
if test "x$1" = "x/usr/include"; then
|
||||
ac_path_to_include=""
|
||||
else
|
||||
ac_path_to_include=" -I$1"
|
||||
echo "$2" | grep "\-I$1" > /dev/null
|
||||
result=$?
|
||||
if test $result = 0; then
|
||||
ac_path_to_include=""
|
||||
else
|
||||
ac_path_to_include=" -I$1"
|
||||
fi
|
||||
fi
|
||||
])
|
||||
|
||||
@@ -349,6 +353,10 @@ AC_DEFUN([WX_ARG_WITH],
|
||||
|
||||
dnl like WX_ARG_WITH but uses AC_ARG_ENABLE instead of AC_ARG_WITH
|
||||
dnl usage: WX_ARG_ENABLE(option, helpmessage, variable-name, enablestring)
|
||||
dnl
|
||||
dnl enablestring is a hack and allows to show "checking for --disable-foo"
|
||||
dnl message when running configure instead of the default "checking for
|
||||
dnl --enable-foo" one whih is useful for the options enabled by default
|
||||
AC_DEFUN([WX_ARG_ENABLE],
|
||||
[
|
||||
enablestring=$4
|
||||
@@ -386,6 +394,57 @@ AC_DEFUN([WX_ARG_ENABLE],
|
||||
])
|
||||
|
||||
|
||||
dnl ===========================================================================
|
||||
dnl Linker features test
|
||||
dnl ===========================================================================
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl WX_VERSIONED_SYMBOLS checks whether the linker can create versioned
|
||||
dnl symbols. If it can, sets LDFLAGS_VERSIONING to $CXX flags needed to use
|
||||
dnl version script file named versionfile
|
||||
dnl
|
||||
dnl call WX_VERSIONED_SYMBOLS(versionfile)
|
||||
dnl ---------------------------------------------------------------------------
|
||||
AC_DEFUN([WX_VERSIONED_SYMBOLS],
|
||||
[
|
||||
found_versioning=no
|
||||
|
||||
dnl Check for known non-gcc cases:
|
||||
case "${host}" in
|
||||
*-*-solaris2* )
|
||||
if test "x$GCC" != "xyes" ; then
|
||||
LDFLAGS_VERSIONING="-M $1"
|
||||
found_versioning=yes
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
dnl Generic check for GCC or GCC-like behaviour (Intel C++, GCC):
|
||||
if test $found_versioning = no ; then
|
||||
AC_CACHE_CHECK([if the linker accepts --version-script], wx_cv_version_script,
|
||||
[
|
||||
echo "VER_1 { *; };" >conftest.sym
|
||||
echo "int main() { return 0; }" >conftest.cpp
|
||||
|
||||
if AC_TRY_COMMAND([
|
||||
$CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
|
||||
-Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr]) ; then
|
||||
if test -s conftest.stderr ; then
|
||||
wx_cv_version_script=no
|
||||
else
|
||||
wx_cv_version_script=yes
|
||||
fi
|
||||
else
|
||||
wx_cv_version_script=no
|
||||
fi
|
||||
rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
|
||||
])
|
||||
if test $wx_cv_version_script = yes ; then
|
||||
LDFLAGS_VERSIONING="-Wl,--version-script,$1"
|
||||
fi
|
||||
fi
|
||||
])
|
||||
|
||||
|
||||
dnl ===========================================================================
|
||||
dnl "3rd party" macros included here because they are not widely available
|
||||
@@ -729,64 +788,6 @@ main ()
|
||||
rm -f conf.gtktest
|
||||
])
|
||||
|
||||
|
||||
dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
|
||||
dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
|
||||
dnl also defines GSTUFF_PKG_ERRORS on error
|
||||
AC_DEFUN(PKG_CHECK_MODULES, [
|
||||
succeeded=no
|
||||
|
||||
if test -z "$PKG_CONFIG"; then
|
||||
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
|
||||
fi
|
||||
|
||||
if test "$PKG_CONFIG" = "no" ; then
|
||||
echo "*** The pkg-config script could not be found. Make sure it is"
|
||||
echo "*** in your path, or set the PKG_CONFIG environment variable"
|
||||
echo "*** to the full path to pkg-config."
|
||||
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
|
||||
else
|
||||
PKG_CONFIG_MIN_VERSION=0.9.0
|
||||
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
|
||||
AC_MSG_CHECKING(for $2)
|
||||
|
||||
if $PKG_CONFIG --exists "$2" ; then
|
||||
AC_MSG_RESULT(yes)
|
||||
succeeded=yes
|
||||
|
||||
AC_MSG_CHECKING($1_CFLAGS)
|
||||
$1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
|
||||
AC_MSG_RESULT($$1_CFLAGS)
|
||||
|
||||
AC_MSG_CHECKING($1_LIBS)
|
||||
$1_LIBS=`$PKG_CONFIG --libs "$2"`
|
||||
AC_MSG_RESULT($$1_LIBS)
|
||||
else
|
||||
$1_CFLAGS=""
|
||||
$1_LIBS=""
|
||||
## If we have a custom action on failure, don't print errors, but
|
||||
## do set a variable so people can do so.
|
||||
$1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
|
||||
ifelse([$4], ,echo $$1_PKG_ERRORS,)
|
||||
fi
|
||||
|
||||
AC_SUBST($1_CFLAGS)
|
||||
AC_SUBST($1_LIBS)
|
||||
else
|
||||
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
|
||||
echo "*** See http://www.freedesktop.org/software/pkgconfig"
|
||||
fi
|
||||
fi
|
||||
|
||||
if test $succeeded = yes; then
|
||||
ifelse([$3], , :, [$3])
|
||||
else
|
||||
ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
|
||||
fi
|
||||
])
|
||||
|
||||
|
||||
|
||||
# Configure paths for GTK+
|
||||
# Owen Taylor 97-11-3
|
||||
|
||||
@@ -982,3 +983,61 @@ main ()
|
||||
rm -f conf.gtktest
|
||||
])
|
||||
|
||||
|
||||
dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
|
||||
dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
|
||||
dnl also defines GSTUFF_PKG_ERRORS on error
|
||||
AC_DEFUN(PKG_CHECK_MODULES, [
|
||||
succeeded=no
|
||||
|
||||
if test -z "$PKG_CONFIG"; then
|
||||
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
|
||||
fi
|
||||
|
||||
if test "$PKG_CONFIG" = "no" ; then
|
||||
echo "*** The pkg-config script could not be found. Make sure it is"
|
||||
echo "*** in your path, or set the PKG_CONFIG environment variable"
|
||||
echo "*** to the full path to pkg-config."
|
||||
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
|
||||
else
|
||||
PKG_CONFIG_MIN_VERSION=0.9.0
|
||||
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
|
||||
AC_MSG_CHECKING(for $2)
|
||||
|
||||
if $PKG_CONFIG --exists "$2" ; then
|
||||
AC_MSG_RESULT(yes)
|
||||
succeeded=yes
|
||||
|
||||
AC_MSG_CHECKING($1_CFLAGS)
|
||||
$1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
|
||||
AC_MSG_RESULT($$1_CFLAGS)
|
||||
|
||||
AC_MSG_CHECKING($1_LIBS)
|
||||
$1_LIBS=`$PKG_CONFIG --libs "$2"`
|
||||
AC_MSG_RESULT($$1_LIBS)
|
||||
else
|
||||
$1_CFLAGS=""
|
||||
$1_LIBS=""
|
||||
## If we have a custom action on failure, don't print errors, but
|
||||
## do set a variable so people can do so.
|
||||
$1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
|
||||
ifelse([$4], ,echo $$1_PKG_ERRORS,)
|
||||
fi
|
||||
|
||||
AC_SUBST($1_CFLAGS)
|
||||
AC_SUBST($1_LIBS)
|
||||
else
|
||||
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
|
||||
echo "*** See http://www.freedesktop.org/software/pkgconfig"
|
||||
fi
|
||||
fi
|
||||
|
||||
if test $succeeded = yes; then
|
||||
ifelse([$3], , :, [$3])
|
||||
else
|
||||
ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
|
||||
fi
|
||||
])
|
||||
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
@@ -0,0 +1,25 @@
|
||||
/* XPM */
|
||||
static char *wxwin16x16_xpm[] = {
|
||||
"16 16 6 1",
|
||||
" c None",
|
||||
". c #000000",
|
||||
"X c #000084",
|
||||
"o c #FFFFFF",
|
||||
"O c #FFFF00",
|
||||
"+ c #FF0000",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ....... ",
|
||||
" .XXXXX. ",
|
||||
" .oXXXX. ",
|
||||
" .oXXX.......",
|
||||
".....oXXX.OOOOO.",
|
||||
".+++.XXXX.oOOOO.",
|
||||
".o++......oOOOO.",
|
||||
".o++++. .oOOOO.",
|
||||
".o++++. .OOOOO.",
|
||||
".+++++. .......",
|
||||
"....... ",
|
||||
" ",
|
||||
" "};
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
@@ -0,0 +1,41 @@
|
||||
/* XPM */
|
||||
static char *wxwin32x32_xpm[] = {
|
||||
"32 32 6 1",
|
||||
" c None",
|
||||
". c #000000",
|
||||
"X c #000084",
|
||||
"o c #FFFFFF",
|
||||
"O c #FFFF00",
|
||||
"+ c #FF0000",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" .............. ",
|
||||
" .XXXXXXXXXXXX. ",
|
||||
" .XXXXXXXXXXXX. ",
|
||||
" .XooXXXXXXXXX. ",
|
||||
" .XooXXXXXXXXX. ",
|
||||
" .XooXXXXXXXXX. ",
|
||||
" .XooXXXXXX..............",
|
||||
" .XooXXXXXX.OOOOOOOOOOOO.",
|
||||
".........XooXXXXXX.OOOOOOOOOOOO.",
|
||||
".+++++++.XooXXXXXX.OooOOOOOOOOO.",
|
||||
".+++++++.XooXXXXXX.OooOOOOOOOOO.",
|
||||
".+oo++++.XXXXXXXXX.OooOOOOOOOOO.",
|
||||
".+oo++++.XXXXXXXXX.OooOOOOOOOOO.",
|
||||
".+oo++++...........OooOOOOOOOOO.",
|
||||
".+oo+++++++++. .OooOOOOOOOOO.",
|
||||
".+oo+++++++++. .OooOOOOOOOOO.",
|
||||
".+oo+++++++++. .OooOOOOOOOOO.",
|
||||
".+oo+++++++++. .OOOOOOOOOOOO.",
|
||||
".+oo+++++++++. .OOOOOOOOOOOO.",
|
||||
".++++++++++++. ..............",
|
||||
".++++++++++++. ",
|
||||
".............. ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "};
|
||||
Vendored
+197
-151
File diff suppressed because it is too large
Load Diff
+255
-76
File diff suppressed because it is too large
Load Diff
Vendored
+23
-6
@@ -691,6 +691,16 @@ fi
|
||||
PATH_IFS=$wx_cv_path_ifs
|
||||
WX_TARGET_LIBRARY=$wx_cv_target_library
|
||||
WX_TARGET_LIBRARY_TYPE=$wx_cv_target_libtype
|
||||
WX_LIBRARY_BASENAME=$wx_cv_library_basename
|
||||
WX_RELEASE=$wx_cv_release
|
||||
WX_CURRENT=$wx_cv_current
|
||||
WX_REVISION=$wx_cv_revision
|
||||
WX_AGE=$wx_cv_age
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -830,16 +840,17 @@ trap 'rm -fr `echo "
|
||||
samples/ogl/ogledit/Makefile
|
||||
samples/ogl/studio/Makefile
|
||||
samples/stc/Makefile
|
||||
samples/svg/Makefile
|
||||
samples/svg/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/gizmos/dynsash/Makefile
|
||||
samples/gizmos/dynsash_switch/Makefile
|
||||
samples/gizmos/multicell/Makefile
|
||||
samples/gizmos/splittree/Makefile
|
||||
samples/gizmos/led/Makefile
|
||||
samples/xrc/Makefile
|
||||
samples/plot/Makefile
|
||||
samples/applet/Makefile
|
||||
@@ -890,6 +901,11 @@ s%@PATH_IFS@%$PATH_IFS%g
|
||||
s%@ESD_LINK@%$ESD_LINK%g
|
||||
s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
|
||||
s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
|
||||
s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
|
||||
s%@WX_RELEASE@%$WX_RELEASE%g
|
||||
s%@WX_CURRENT@%$WX_CURRENT%g
|
||||
s%@WX_REVISION@%$WX_REVISION%g
|
||||
s%@WX_AGE@%$WX_AGE%g
|
||||
|
||||
CEOF
|
||||
EOF
|
||||
@@ -949,16 +965,17 @@ CONFIG_FILES=\${CONFIG_FILES-"src/Makefile
|
||||
samples/ogl/ogledit/Makefile
|
||||
samples/ogl/studio/Makefile
|
||||
samples/stc/Makefile
|
||||
samples/svg/Makefile
|
||||
samples/svg/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/gizmos/dynsash/Makefile
|
||||
samples/gizmos/dynsash_switch/Makefile
|
||||
samples/gizmos/multicell/Makefile
|
||||
samples/gizmos/splittree/Makefile
|
||||
samples/gizmos/led/Makefile
|
||||
samples/xrc/Makefile
|
||||
samples/plot/Makefile
|
||||
samples/applet/Makefile
|
||||
|
||||
+14
-2
@@ -26,11 +26,21 @@ dnl Final subst
|
||||
PATH_IFS=$wx_cv_path_ifs
|
||||
WX_TARGET_LIBRARY=$wx_cv_target_library
|
||||
WX_TARGET_LIBRARY_TYPE=$wx_cv_target_libtype
|
||||
WX_LIBRARY_BASENAME=$wx_cv_library_basename
|
||||
WX_RELEASE=$wx_cv_release
|
||||
WX_CURRENT=$wx_cv_current
|
||||
WX_REVISION=$wx_cv_revision
|
||||
WX_AGE=$wx_cv_age
|
||||
|
||||
AC_SUBST(PATH_IFS)
|
||||
AC_SUBST(ESD_LINK)
|
||||
AC_SUBST(WX_TARGET_LIBRARY)
|
||||
AC_SUBST(WX_TARGET_LIBRARY_TYPE)
|
||||
AC_SUBST(WX_LIBRARY_BASENAME)
|
||||
AC_SUBST(WX_RELEASE)
|
||||
AC_SUBST(WX_CURRENT)
|
||||
AC_SUBST(WX_REVISION)
|
||||
AC_SUBST(WX_AGE)
|
||||
|
||||
dnl -----------
|
||||
dnl File output
|
||||
@@ -55,15 +65,17 @@ AC_OUTPUT([
|
||||
samples/ogl/ogledit/Makefile
|
||||
samples/ogl/studio/Makefile
|
||||
samples/stc/Makefile
|
||||
samples/svg/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/gizmos/dynsash/Makefile
|
||||
samples/gizmos/dynsash_switch/Makefile
|
||||
samples/gizmos/multicell/Makefile
|
||||
samples/gizmos/splittree/Makefile
|
||||
samples/gizmos/led/Makefile
|
||||
samples/xrc/Makefile
|
||||
samples/plot/Makefile
|
||||
samples/applet/Makefile
|
||||
|
||||
@@ -21,7 +21,7 @@ class wxBoundingBox
|
||||
{
|
||||
public:
|
||||
wxBoundingBox();
|
||||
wxBoundingBox(wxBoundingBox&);
|
||||
wxBoundingBox(const wxBoundingBox&);
|
||||
wxBoundingBox(const wxPoint2DDouble&);
|
||||
wxBoundingBox(double xmin, double ymin, double xmax, double ymax);
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ antiflicker plugins within the application.
|
||||
Locking for multithreaded applications is not yet implemented.
|
||||
*/
|
||||
|
||||
class cbAntiflickerPlugin : public cbPluginBase
|
||||
class WXFL_DECLSPEC cbAntiflickerPlugin : public cbPluginBase
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS( cbAntiflickerPlugin )
|
||||
protected:
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
Plugin class implementing bar dragging.
|
||||
*/
|
||||
|
||||
class cbBarDragPlugin : public cbPluginBase
|
||||
class WXFL_DECLSPEC cbBarDragPlugin : public cbPluginBase
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS( cbBarDragPlugin )
|
||||
protected:
|
||||
|
||||
@@ -24,7 +24,7 @@ This class intercepts bar-decoration and sizing events, and draws 3D hints
|
||||
around fixed and flexible bars, similar to those in Microsoft DevStudio 6.x
|
||||
*/
|
||||
|
||||
class cbBarHintsPlugin : public cbPluginBase
|
||||
class WXFL_DECLSPEC cbBarHintsPlugin : public cbPluginBase
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS( cbBarHintsPlugin )
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ menu and handling basic customization such as floating
|
||||
and horizontal/vertical alignment of the bar.
|
||||
*/
|
||||
|
||||
class cbSimpleCustomizationPlugin : public cbPluginBase
|
||||
class WXFL_DECLSPEC cbSimpleCustomizationPlugin : public cbPluginBase
|
||||
{
|
||||
public:
|
||||
DECLARE_DYNAMIC_CLASS( cbSimpleCustomizationPlugin )
|
||||
|
||||
@@ -21,30 +21,31 @@
|
||||
#include "wx/string.h"
|
||||
#include "wx/window.h"
|
||||
#include "wx/dynarray.h"
|
||||
#include "wx/fl/fldefs.h"
|
||||
|
||||
#define WXCONTROLBAR_VERSION 1.3
|
||||
|
||||
// forward declarations
|
||||
|
||||
class wxFrameLayout;
|
||||
class WXFL_DECLSPEC wxFrameLayout;
|
||||
|
||||
class cbDockPane;
|
||||
class cbUpdatesManagerBase;
|
||||
class cbBarDimHandlerBase;
|
||||
class cbPluginBase;
|
||||
class cbPluginEvent;
|
||||
class cbPaneDrawPlugin;
|
||||
class WXFL_DECLSPEC cbDockPane;
|
||||
class WXFL_DECLSPEC cbUpdatesManagerBase;
|
||||
class WXFL_DECLSPEC cbBarDimHandlerBase;
|
||||
class WXFL_DECLSPEC cbPluginBase;
|
||||
class WXFL_DECLSPEC cbPluginEvent;
|
||||
class WXFL_DECLSPEC cbPaneDrawPlugin;
|
||||
|
||||
class cbBarInfo;
|
||||
class cbRowInfo;
|
||||
class cbDimInfo;
|
||||
class cbCommonPaneProperties;
|
||||
class WXFL_DECLSPEC cbBarInfo;
|
||||
class WXFL_DECLSPEC cbRowInfo;
|
||||
class WXFL_DECLSPEC cbDimInfo;
|
||||
class WXFL_DECLSPEC cbCommonPaneProperties;
|
||||
|
||||
typedef cbBarInfo* BarInfoPtrT;
|
||||
typedef cbRowInfo* RowInfoPtrT;
|
||||
|
||||
WX_DEFINE_ARRAY( BarInfoPtrT, BarArrayT );
|
||||
WX_DEFINE_ARRAY( RowInfoPtrT, RowArrayT );
|
||||
WXFL_DEFINE_ARRAY( BarInfoPtrT, BarArrayT );
|
||||
WXFL_DEFINE_ARRAY( RowInfoPtrT, RowArrayT );
|
||||
|
||||
// control bar states
|
||||
|
||||
@@ -97,7 +98,7 @@ Helper class, used for spying for unhandled mouse events on control bars
|
||||
and forwarding them to the frame layout.
|
||||
*/
|
||||
|
||||
class cbBarSpy : public wxEvtHandler
|
||||
class WXFL_DECLSPEC cbBarSpy : public wxEvtHandler
|
||||
{
|
||||
public:
|
||||
DECLARE_DYNAMIC_CLASS( cbBarSpy )
|
||||
@@ -129,7 +130,7 @@ which can be docked along the top, bottom, right, or left side of the
|
||||
parent frame.
|
||||
*/
|
||||
|
||||
class wxFrameLayout : public wxEvtHandler
|
||||
class WXFL_DECLSPEC wxFrameLayout : public wxEvtHandler
|
||||
{
|
||||
public:
|
||||
// Default constructor, used only for serialization.
|
||||
@@ -647,7 +648,7 @@ used by any particular updates-manager to store
|
||||
auxiliary information to be used by its updating algorithm.
|
||||
*/
|
||||
|
||||
class cbUpdateMgrData : public wxObject
|
||||
class WXFL_DECLSPEC cbUpdateMgrData : public wxObject
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS( cbUpdateMgrData )
|
||||
public:
|
||||
@@ -687,7 +688,7 @@ to adjust the values in cbDimInfo::mSizes accordingly.
|
||||
Specific handlers can be hooked up to specific types of bar.
|
||||
*/
|
||||
|
||||
class cbBarDimHandlerBase : public wxObject
|
||||
class WXFL_DECLSPEC cbBarDimHandlerBase : public wxObject
|
||||
{
|
||||
DECLARE_ABSTRACT_CLASS( cbBarDimHandlerBase )
|
||||
|
||||
@@ -725,7 +726,7 @@ Helper class used internally by the wxFrameLayout class.
|
||||
Holds and manages information about bar dimensions.
|
||||
*/
|
||||
|
||||
class cbDimInfo : public wxObject
|
||||
class WXFL_DECLSPEC cbDimInfo : public wxObject
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS( cbDimInfo )
|
||||
public:
|
||||
@@ -824,7 +825,7 @@ public:
|
||||
};
|
||||
|
||||
// FIXME: this array definition compiles but probably doesn't do what was intended (GD)
|
||||
WX_DEFINE_ARRAY_LONG(float, cbArrayFloat);
|
||||
WXFL_DEFINE_ARRAY_LONG(float, cbArrayFloat);
|
||||
|
||||
/*
|
||||
Helper class used internally by the wxFrameLayout class.
|
||||
|
||||
@@ -18,12 +18,13 @@
|
||||
|
||||
#include "wx/tbarbase.h"
|
||||
#include "wx/dynarray.h"
|
||||
#include "wx/fl/fldefs.h"
|
||||
|
||||
/*
|
||||
Tool layout item.
|
||||
*/
|
||||
|
||||
class wxToolLayoutItem : public wxObject
|
||||
class WXFL_DECLSPEC wxToolLayoutItem : public wxObject
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxToolLayoutItem)
|
||||
|
||||
@@ -32,19 +33,19 @@ public:
|
||||
bool mIsSeparator;
|
||||
};
|
||||
|
||||
class wxDynToolInfo;
|
||||
class WXFL_DECLSPEC wxDynToolInfo;
|
||||
|
||||
typedef wxToolLayoutItem* wxToolLayoutItemPtrT;
|
||||
typedef wxDynToolInfo* wxDynToolInfoPtrT;
|
||||
|
||||
WX_DEFINE_ARRAY( wxToolLayoutItemPtrT, wxLayoutItemArrayT );
|
||||
WX_DEFINE_ARRAY( wxDynToolInfoPtrT, wxDynToolInfoArrayT );
|
||||
WXFL_DEFINE_ARRAY( wxToolLayoutItemPtrT, wxLayoutItemArrayT );
|
||||
WXFL_DEFINE_ARRAY( wxDynToolInfoPtrT, wxDynToolInfoArrayT );
|
||||
|
||||
/*
|
||||
This is a base class for layout algorithm implementations.
|
||||
*/
|
||||
|
||||
class LayoutManagerBase
|
||||
class WXFL_DECLSPEC LayoutManagerBase
|
||||
{
|
||||
public:
|
||||
// Constructor.
|
||||
@@ -63,7 +64,7 @@ BagLayout lays out items in left-to-right order from
|
||||
top to bottom.
|
||||
*/
|
||||
|
||||
class BagLayout : public LayoutManagerBase
|
||||
class WXFL_DECLSPEC BagLayout : public LayoutManagerBase
|
||||
{
|
||||
public:
|
||||
// Constructor.
|
||||
@@ -78,7 +79,7 @@ public:
|
||||
This class holds dynamic toolbar item information.
|
||||
*/
|
||||
|
||||
class wxDynToolInfo : public wxToolLayoutItem
|
||||
class WXFL_DECLSPEC wxDynToolInfo : public wxToolLayoutItem
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxDynToolInfo)
|
||||
|
||||
@@ -98,7 +99,7 @@ public:
|
||||
wxDynamicToolBar manages containment and layout of tool windows.
|
||||
*/
|
||||
|
||||
class wxDynamicToolBar : public wxToolBarBase
|
||||
class WXFL_DECLSPEC wxDynamicToolBar : public wxToolBarBase
|
||||
{
|
||||
protected:
|
||||
friend class wxDynamicToolBarSerializer;
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
Dynamic toolbar dimension handler.
|
||||
*/
|
||||
|
||||
class cbDynToolBarDimHandler : public cbBarDimHandlerBase
|
||||
class WXFL_DECLSPEC cbDynToolBarDimHandler : public cbBarDimHandlerBase
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS( cbDynToolBarDimHandler )
|
||||
public:
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: fldefs.h
|
||||
// Purpose: Declaration of global types and defines.
|
||||
// Author: David M. Falkinder (david_falkinder@hp.com)
|
||||
// Modified by:
|
||||
// Created: 18/09/2002
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) David M. Falkinder
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef __fldefs_H_INCLUDED__
|
||||
#define __fldefs_H_INCLUDED__
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
/*
|
||||
* If we're using wx in Dynamic Library format do we
|
||||
* want FL to be in DLL form as well?
|
||||
*/
|
||||
#if defined(WXUSINGDLL) && \
|
||||
(defined(WXMAKING_FL_DLL) || defined(WXUSING_FL_DLL))
|
||||
|
||||
#if defined(WXMAKING_FL_DLL)
|
||||
// When building the DLL WXFLDECLSPEC exports classes
|
||||
# define WXFL_DECLSPEC WXEXPORT
|
||||
#elif defined(WXUSING_FL_DLL)
|
||||
// When building the DLL WXFLDECLSPEC imports classes
|
||||
# define WXFL_DECLSPEC WXIMPORT
|
||||
#endif // defined(WXBUILD_FL_DLL)
|
||||
|
||||
#else
|
||||
// When building the static library nullify the effect of WXFL_DECLSPEC
|
||||
#define WXFL_DECLSPEC
|
||||
#endif // WXUSINGDLL && (WXMAKING_FL_DLL || WXUSING_FL_DLL)
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Override some of the wxArray functions to
|
||||
// include our definitions
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
#define WXFL_DEFINE_ARRAY(c,l) \
|
||||
class WXFL_DECLSPEC l; \
|
||||
WX_DEFINE_ARRAY(c,l)
|
||||
|
||||
#define WXFL_DEFINE_ARRAY_LONG(t,l) \
|
||||
class WXFL_DECLSPEC l; \
|
||||
WX_DEFINE_ARRAY_LONG(t,l)
|
||||
|
||||
|
||||
#endif // __fldefs_H_INCLUDED__
|
||||
@@ -32,7 +32,7 @@ class wxFrameManager;
|
||||
It is not clear what this class does. It is not used elsewhere in FL.
|
||||
*/
|
||||
|
||||
class wxFrameView : public wxEvtHandler
|
||||
class WXFL_DECLSPEC wxFrameView : public wxEvtHandler
|
||||
{
|
||||
protected:
|
||||
wxStringList mTopMenus;
|
||||
@@ -87,7 +87,7 @@ class wxFrame;
|
||||
It is not clear what this class does. It is not used elsewhere in FL.
|
||||
*/
|
||||
|
||||
class wxFrameManager : wxObject
|
||||
class WXFL_DECLSPEC wxFrameManager : wxObject
|
||||
{
|
||||
protected:
|
||||
wxList mViews;
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#endif
|
||||
|
||||
#include "wx/list.h"
|
||||
#include "wx/fl/fldefs.h"
|
||||
|
||||
struct GCItem
|
||||
{
|
||||
@@ -33,7 +34,7 @@ inline void* gc_node_to_obj( wxNode* pGCNode )
|
||||
This class implements an extremely slow but simple garbage collection algorithm.
|
||||
*/
|
||||
|
||||
class GarbageCollector
|
||||
class WXFL_DECLSPEC GarbageCollector
|
||||
{
|
||||
protected:
|
||||
wxList mAllNodes;
|
||||
|
||||
@@ -93,7 +93,7 @@ to avoid dirty non-client areas of moved windows
|
||||
in some special cases of 'overlapping anomalies'.
|
||||
*/
|
||||
|
||||
class cbGCUpdatesMgr : public cbSimpleUpdatesMgr
|
||||
class WXFL_DECLSPEC cbGCUpdatesMgr : public cbSimpleUpdatesMgr
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS( cbGCUpdatesMgr )
|
||||
protected:
|
||||
|
||||
@@ -20,13 +20,13 @@
|
||||
|
||||
#include "wx/timer.h"
|
||||
|
||||
class cbHintAnimTimer;
|
||||
class WXFL_DECLSPEC cbHintAnimTimer;
|
||||
|
||||
/*
|
||||
A plugin to draw animated hints when the user drags a pane.
|
||||
*/
|
||||
|
||||
class cbHintAnimationPlugin : public cbPluginBase
|
||||
class WXFL_DECLSPEC cbHintAnimationPlugin : public cbPluginBase
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS( cbHintAnimationPlugin )
|
||||
protected:
|
||||
@@ -101,7 +101,7 @@ public:
|
||||
A private helper class.
|
||||
*/
|
||||
|
||||
struct MorphInfoT
|
||||
struct WXFL_DECLSPEC MorphInfoT
|
||||
{
|
||||
wxPoint mFrom;
|
||||
wxPoint mTill;
|
||||
@@ -111,7 +111,7 @@ struct MorphInfoT
|
||||
A private helper class.
|
||||
*/
|
||||
|
||||
class cbHintAnimTimer : public wxTimer
|
||||
class WXFL_DECLSPEC cbHintAnimTimer : public wxTimer
|
||||
{
|
||||
protected:
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
#include "wx/button.h"
|
||||
#include "wx/string.h"
|
||||
#include "wx/fl/fldefs.h"
|
||||
|
||||
// defaults
|
||||
#define NB_DEFAULT_MARGIN 2
|
||||
@@ -31,8 +32,8 @@
|
||||
|
||||
// classes declared in this header file
|
||||
|
||||
class wxNewBitmapButton;
|
||||
class wxBorderLessBitmapButton;
|
||||
class WXFL_DECLSPEC wxNewBitmapButton;
|
||||
class WXFL_DECLSPEC wxBorderLessBitmapButton;
|
||||
|
||||
/*
|
||||
This is an alternative class to wxBitmapButton. It is used
|
||||
@@ -194,11 +195,6 @@ public:
|
||||
// Responds to a kill focus event.
|
||||
void OnKillFocus( wxFocusEvent& event );
|
||||
|
||||
// Maps bitmap to current system colours on Windows
|
||||
#ifdef __WXMSW__
|
||||
WXHBITMAP MapBitmap(WXHBITMAP bitmap, int width, int height);
|
||||
#endif
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ would be enough for the frame layout to function properly
|
||||
(they are plugged in automatically by the wxFrameLayout class).
|
||||
*/
|
||||
|
||||
class cbPaneDrawPlugin : public cbPluginBase
|
||||
class WXFL_DECLSPEC cbPaneDrawPlugin : public cbPluginBase
|
||||
{
|
||||
public:
|
||||
DECLARE_DYNAMIC_CLASS( cbPaneDrawPlugin )
|
||||
|
||||
@@ -25,7 +25,7 @@ The behaviour and appearance resembles drag and drop positioning
|
||||
of the toolbar rows in Netscape Communicator 4.xx.
|
||||
*/
|
||||
|
||||
class cbRowDragPlugin : public cbPluginBase
|
||||
class WXFL_DECLSPEC cbRowDragPlugin : public cbPluginBase
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS( cbRowDragPlugin )
|
||||
public:
|
||||
@@ -217,7 +217,7 @@ public:
|
||||
Internal helper class.
|
||||
*/
|
||||
|
||||
class cbHiddenBarInfo : public wxObject
|
||||
class WXFL_DECLSPEC cbHiddenBarInfo : public wxObject
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS( cbHiddenBarInfo )
|
||||
public:
|
||||
|
||||
@@ -23,7 +23,7 @@ Simple implementation of a plugin which handles row layout
|
||||
requests sent from a frame layout.
|
||||
*/
|
||||
|
||||
class cbRowLayoutPlugin : public cbPluginBase
|
||||
class WXFL_DECLSPEC cbRowLayoutPlugin : public cbPluginBase
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS( cbRowLayoutPlugin )
|
||||
protected:
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
#include "wx/frame.h"
|
||||
#include "wx/dynarray.h"
|
||||
#include "wx/fl/fldefs.h"
|
||||
|
||||
// fixed settings
|
||||
|
||||
@@ -26,18 +27,18 @@
|
||||
#define BTN_BOX_WIDTH 12
|
||||
#define BTN_X_WIEGHT 2
|
||||
|
||||
class cbMiniButton;
|
||||
class WXFL_DECLSPEC cbMiniButton;
|
||||
|
||||
typedef cbMiniButton* cbMinitButtonPtrT;
|
||||
|
||||
WX_DEFINE_ARRAY( cbMinitButtonPtrT, cbMiniButtonArrayT );
|
||||
WXFL_DEFINE_ARRAY( cbMinitButtonPtrT, cbMiniButtonArrayT );
|
||||
|
||||
/*
|
||||
A tool window is a special kind of frame that paints its own title, and
|
||||
can be used to implement small floating windows.
|
||||
*/
|
||||
|
||||
class wxToolWindow : public wxFrame
|
||||
class WXFL_DECLSPEC wxToolWindow : public wxFrame
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS( wxToolWindow )
|
||||
|
||||
@@ -221,7 +222,7 @@ public:
|
||||
cbCloseBox is a window close button, used in a wxToolWindow titlebar.
|
||||
*/
|
||||
|
||||
class cbCloseBox : public cbMiniButton
|
||||
class WXFL_DECLSPEC cbCloseBox : public cbMiniButton
|
||||
{
|
||||
public:
|
||||
// Draws the close button appearance.
|
||||
@@ -232,7 +233,7 @@ public:
|
||||
cbCollapseBox is a window collapse button, used in a wxToolWindow titlebar.
|
||||
*/
|
||||
|
||||
class cbCollapseBox : public cbMiniButton
|
||||
class WXFL_DECLSPEC cbCollapseBox : public cbMiniButton
|
||||
{
|
||||
public:
|
||||
bool mIsAtLeft;
|
||||
@@ -245,7 +246,7 @@ public:
|
||||
cbDockBox is a window dock button, used in a wxToolWindow titlebar.
|
||||
*/
|
||||
|
||||
class cbDockBox : public cbMiniButton
|
||||
class WXFL_DECLSPEC cbDockBox : public cbMiniButton
|
||||
{
|
||||
public:
|
||||
// Draws the dock button appearance.
|
||||
@@ -257,7 +258,7 @@ cbFloatedBarWindow is a kind of wxToolWindow,
|
||||
implementing floating toolbars.
|
||||
*/
|
||||
|
||||
class cbFloatedBarWindow : public wxToolWindow
|
||||
class WXFL_DECLSPEC cbFloatedBarWindow : public wxToolWindow
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS( cbFloatedBarWindow )
|
||||
protected:
|
||||
|
||||
@@ -23,7 +23,7 @@ This class implements slightly optimized logic for refreshing
|
||||
the areas of frame layout that actually need to be updated.
|
||||
*/
|
||||
|
||||
class cbSimpleUpdatesMgr : public cbUpdatesManagerBase
|
||||
class WXFL_DECLSPEC cbSimpleUpdatesMgr : public cbUpdatesManagerBase
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS( cbSimpleUpdatesMgr )
|
||||
protected:
|
||||
|
||||
@@ -22,11 +22,6 @@
|
||||
#define DEFAULT_MOUSE_TOLERANCE 3
|
||||
#endif
|
||||
|
||||
// Edit these lines if you positively don't want PROLOGIO support
|
||||
#ifndef PROLOGIO
|
||||
#define PROLOGIO
|
||||
#endif
|
||||
|
||||
// Key identifiers
|
||||
#define KEY_SHIFT 1
|
||||
#define KEY_CTRL 2
|
||||
@@ -110,7 +105,7 @@ class wxControlPoint;
|
||||
class wxShapeRegion;
|
||||
class wxShape;
|
||||
|
||||
#ifdef PROLOGIO
|
||||
#if wxUSE_PROLOGIO
|
||||
class WXDLLEXPORT wxExpr;
|
||||
class WXDLLEXPORT wxExprDatabase;
|
||||
#endif
|
||||
@@ -381,7 +376,7 @@ class wxShape: public wxShapeEvtHandler
|
||||
virtual void ClearText(int regionId = 0);
|
||||
void RemoveLine(wxLineShape *line);
|
||||
|
||||
#ifdef PROLOGIO
|
||||
#if wxUSE_PROLOGIO
|
||||
// I/O
|
||||
virtual void WriteAttributes(wxExpr *clause);
|
||||
virtual void ReadAttributes(wxExpr *clause);
|
||||
@@ -613,7 +608,7 @@ class wxPolygonShape: public wxShape
|
||||
// Recalculates the centre of the polygon
|
||||
virtual void CalculatePolygonCentre();
|
||||
|
||||
#ifdef PROLOGIO
|
||||
#if wxUSE_PROLOGIO
|
||||
void WriteAttributes(wxExpr *clause);
|
||||
void ReadAttributes(wxExpr *clause);
|
||||
#endif
|
||||
@@ -652,7 +647,7 @@ class wxRectangleShape: public wxShape
|
||||
void SetSize(double x, double y, bool recursive = TRUE);
|
||||
void SetCornerRadius(double rad); // If > 0, rounded corners
|
||||
|
||||
#ifdef PROLOGIO
|
||||
#if wxUSE_PROLOGIO
|
||||
void WriteAttributes(wxExpr *clause);
|
||||
void ReadAttributes(wxExpr *clause);
|
||||
#endif
|
||||
@@ -682,8 +677,8 @@ class wxTextShape: public wxRectangleShape
|
||||
|
||||
void OnDraw(wxDC& dc);
|
||||
|
||||
#ifdef PROLOGIO
|
||||
void WriteAttributes(wxExpr *clause);
|
||||
#if wxUSE_PROLOGIO
|
||||
void WriteAttributes(wxExpr *clause);
|
||||
#endif
|
||||
|
||||
// Does the copying for this object
|
||||
@@ -704,7 +699,7 @@ class wxEllipseShape: public wxShape
|
||||
void OnDraw(wxDC& dc);
|
||||
void SetSize(double x, double y, bool recursive = TRUE);
|
||||
|
||||
#ifdef PROLOGIO
|
||||
#if wxUSE_PROLOGIO
|
||||
void WriteAttributes(wxExpr *clause);
|
||||
void ReadAttributes(wxExpr *clause);
|
||||
#endif
|
||||
|
||||
@@ -136,7 +136,8 @@ class wxShapeRegion: public wxObject
|
||||
~wxShapeRegion();
|
||||
|
||||
// Accessors
|
||||
inline void SetText(const wxString& s) { m_regionText = s; }
|
||||
inline void SetText(const wxString& s)
|
||||
{ m_regionText = s; m_formattedText.Append(new wxShapeTextLine(0,0,s));}
|
||||
void SetFont(wxFont *f);
|
||||
void SetMinSize(double w, double h);
|
||||
void SetSize(double w, double h);
|
||||
|
||||
@@ -27,7 +27,7 @@ class wxBitmapShape: public wxRectangleShape
|
||||
|
||||
void OnDraw(wxDC& dc);
|
||||
|
||||
#ifdef PROLOGIO
|
||||
#if wxUSE_PROLOGIO
|
||||
// I/O
|
||||
void WriteAttributes(wxExpr *clause);
|
||||
void ReadAttributes(wxExpr *clause);
|
||||
|
||||
@@ -77,7 +77,7 @@ public:
|
||||
// Calculates size and position of composite object based on children
|
||||
void CalculateSize();
|
||||
|
||||
#ifdef PROLOGIO
|
||||
#if wxUSE_PROLOGIO
|
||||
void WriteAttributes(wxExpr *clause);
|
||||
void ReadAttributes(wxExpr *clause);
|
||||
// In case the object has constraints it needs to read in in a different pass
|
||||
@@ -152,7 +152,7 @@ class wxDivisionShape: public wxCompositeShape
|
||||
void MakeMandatoryControlPoints();
|
||||
void ResetMandatoryControlPoints();
|
||||
|
||||
#ifdef PROLOGIO
|
||||
#if wxUSE_PROLOGIO
|
||||
void WriteAttributes(wxExpr *clause);
|
||||
void ReadAttributes(wxExpr *clause);
|
||||
#endif
|
||||
|
||||
@@ -46,7 +46,7 @@ class wxDividedShape: public wxRectangleShape
|
||||
void MakeMandatoryControlPoints();
|
||||
void ResetMandatoryControlPoints();
|
||||
|
||||
#ifdef PROLOGIO
|
||||
#if wxUSE_PROLOGIO
|
||||
void WriteAttributes(wxExpr *clause);
|
||||
void ReadAttributes(wxExpr *clause);
|
||||
#endif
|
||||
|
||||
@@ -32,7 +32,7 @@ class wxPseudoMetaFile: public wxObject
|
||||
|
||||
void Draw(wxDC& dc, double xoffset, double yoffset);
|
||||
|
||||
#ifdef PROLOGIO
|
||||
#if wxUSE_PROLOGIO
|
||||
void WriteAttributes(wxExpr *clause, int whichAngle);
|
||||
void ReadAttributes(wxExpr *clause, int whichAngle);
|
||||
#endif
|
||||
@@ -139,7 +139,7 @@ class wxDrawnShape: public wxRectangleShape
|
||||
|
||||
void OnDraw(wxDC& dc);
|
||||
|
||||
#ifdef PROLOGIO
|
||||
#if wxUSE_PROLOGIO
|
||||
// I/O
|
||||
void WriteAttributes(wxExpr *clause);
|
||||
void ReadAttributes(wxExpr *clause);
|
||||
|
||||
@@ -65,9 +65,10 @@ public:
|
||||
inline virtual void Rotate(double x, double y, double theta, double sinTheta, double cosTheta) {};
|
||||
virtual void Do(wxDC& dc, double xoffset, double yoffset) = 0;
|
||||
virtual wxDrawOp *Copy(wxPseudoMetaFile *newImage) = 0;
|
||||
#if wxUSE_PROLOGIO
|
||||
virtual wxExpr *WriteExpr(wxPseudoMetaFile *image) = 0;
|
||||
virtual void ReadExpr(wxPseudoMetaFile *image, wxExpr *expr) = 0;
|
||||
|
||||
#endif
|
||||
inline int GetOp() const { return m_op; }
|
||||
|
||||
// Draw an outline using the current operation. By default, return FALSE (not drawn)
|
||||
@@ -98,8 +99,10 @@ class wxOpSetGDI: public wxDrawOp
|
||||
wxOpSetGDI(int theOp, wxPseudoMetaFile *theImage, int theGdiIndex, int theMode = 0);
|
||||
void Do(wxDC& dc, double xoffset, double yoffset);
|
||||
wxDrawOp *Copy(wxPseudoMetaFile *newImage);
|
||||
#if wxUSE_PROLOGIO
|
||||
wxExpr *WriteExpr(wxPseudoMetaFile *image);
|
||||
void ReadExpr(wxPseudoMetaFile *image, wxExpr *expr);
|
||||
#endif
|
||||
|
||||
public:
|
||||
int m_mode;
|
||||
@@ -123,8 +126,10 @@ public:
|
||||
void Scale(double xScale, double yScale);
|
||||
void Translate(double x, double y);
|
||||
wxDrawOp *Copy(wxPseudoMetaFile *newImage);
|
||||
#if wxUSE_PROLOGIO
|
||||
wxExpr *WriteExpr(wxPseudoMetaFile *image);
|
||||
void ReadExpr(wxPseudoMetaFile *image, wxExpr *expr);
|
||||
#endif
|
||||
|
||||
public:
|
||||
double m_x1;
|
||||
@@ -149,8 +154,10 @@ class wxOpDraw: public wxDrawOp
|
||||
void Translate(double x, double y);
|
||||
void Rotate(double x, double y, double theta, double sinTheta, double cosTheta);
|
||||
wxDrawOp *Copy(wxPseudoMetaFile *newImage);
|
||||
#if wxUSE_PROLOGIO
|
||||
wxExpr *WriteExpr(wxPseudoMetaFile *image);
|
||||
void ReadExpr(wxPseudoMetaFile *image, wxExpr *expr);
|
||||
#endif
|
||||
|
||||
public:
|
||||
double m_x1;
|
||||
@@ -179,8 +186,10 @@ public:
|
||||
void Translate(double x, double y);
|
||||
void Rotate(double x, double y, double theta, double sinTheta, double cosTheta);
|
||||
wxDrawOp *Copy(wxPseudoMetaFile *newImage);
|
||||
#if wxUSE_PROLOGIO
|
||||
wxExpr *WriteExpr(wxPseudoMetaFile *image);
|
||||
void ReadExpr(wxPseudoMetaFile *image, wxExpr *expr);
|
||||
#endif
|
||||
|
||||
// Draw an outline using the current operation.
|
||||
virtual bool OnDrawOutline(wxDC& dc, double x, double y, double w, double h,
|
||||
|
||||
@@ -188,7 +188,7 @@ class wxLineShape: public wxShape
|
||||
|
||||
bool HitTest(double x, double y, int *attachment, double *distance);
|
||||
|
||||
#ifdef PROLOGIO
|
||||
#if wxUSE_PROLOGIO
|
||||
// I/O
|
||||
virtual void WriteAttributes(wxExpr *clause);
|
||||
virtual void ReadAttributes(wxExpr *clause);
|
||||
|
||||
@@ -67,7 +67,7 @@ public:
|
||||
// Make sure all text that should be centred, is centred.
|
||||
void RecentreAll(wxDC& dc);
|
||||
|
||||
#ifdef PROLOGIO
|
||||
#if wxUSE_PROLOGIO
|
||||
virtual bool SaveFile(const wxString& filename);
|
||||
virtual bool LoadFile(const wxString& filename);
|
||||
|
||||
|
||||
+213
-175
@@ -24,6 +24,12 @@
|
||||
#include <wx/wx.h>
|
||||
#include <wx/dnd.h>
|
||||
|
||||
#ifdef STCISDLL
|
||||
#define STCDLLEXPORT WXDLLEXPORT
|
||||
#else
|
||||
#define STCDLLEXPORT
|
||||
#endif
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
// Should a wxPopupWindow be used for the call tips and autocomplete windows?
|
||||
@@ -43,12 +49,6 @@
|
||||
#define wxSTC_START 2000
|
||||
#define wxSTC_OPTIONAL_START 3000
|
||||
#define wxSTC_LEXER_START 4000
|
||||
|
||||
// Redoes the next action on the undo history.
|
||||
#define wxSTC_CMD_REDO 2011
|
||||
|
||||
// Select all the text in the document.
|
||||
#define wxSTC_CMD_SELECTALL 2013
|
||||
#define wxSTC_WS_INVISIBLE 0
|
||||
#define wxSTC_WS_VISIBLEALWAYS 1
|
||||
#define wxSTC_WS_VISIBLEAFTERINDENT 2
|
||||
@@ -167,18 +167,6 @@
|
||||
#define wxSTC_FIND_MATCHCASE 4
|
||||
#define wxSTC_FIND_WORDSTART 0x00100000
|
||||
#define wxSTC_FIND_REGEXP 0x00200000
|
||||
|
||||
// Undo one action in the undo history.
|
||||
#define wxSTC_CMD_UNDO 2176
|
||||
|
||||
// Cut the selection to the clipboard.
|
||||
#define wxSTC_CMD_CUT 2177
|
||||
|
||||
// Copy the selection to the clipboard.
|
||||
#define wxSTC_CMD_COPY 2178
|
||||
|
||||
// Paste the contents of the clipboard into the document replacing the selection.
|
||||
#define wxSTC_CMD_PASTE 2179
|
||||
#define wxSTC_FOLDLEVELBASE 0x400
|
||||
#define wxSTC_FOLDLEVELWHITEFLAG 0x1000
|
||||
#define wxSTC_FOLDLEVELHEADERFLAG 0x2000
|
||||
@@ -190,158 +178,6 @@
|
||||
#define wxSTC_CACHE_CARET 1
|
||||
#define wxSTC_CACHE_PAGE 2
|
||||
#define wxSTC_CACHE_DOCUMENT 3
|
||||
|
||||
// Move caret down one line.
|
||||
#define wxSTC_CMD_LINEDOWN 2300
|
||||
|
||||
// Move caret down one line extending selection to new caret position.
|
||||
#define wxSTC_CMD_LINEDOWNEXTEND 2301
|
||||
|
||||
// Move caret up one line.
|
||||
#define wxSTC_CMD_LINEUP 2302
|
||||
|
||||
// Move caret up one line extending selection to new caret position.
|
||||
#define wxSTC_CMD_LINEUPEXTEND 2303
|
||||
|
||||
// Move caret left one character.
|
||||
#define wxSTC_CMD_CHARLEFT 2304
|
||||
|
||||
// Move caret left one character extending selection to new caret position.
|
||||
#define wxSTC_CMD_CHARLEFTEXTEND 2305
|
||||
|
||||
// Move caret right one character.
|
||||
#define wxSTC_CMD_CHARRIGHT 2306
|
||||
|
||||
// Move caret right one character extending selection to new caret position.
|
||||
#define wxSTC_CMD_CHARRIGHTEXTEND 2307
|
||||
|
||||
// Move caret left one word.
|
||||
#define wxSTC_CMD_WORDLEFT 2308
|
||||
|
||||
// Move caret left one word extending selection to new caret position.
|
||||
#define wxSTC_CMD_WORDLEFTEXTEND 2309
|
||||
|
||||
// Move caret right one word.
|
||||
#define wxSTC_CMD_WORDRIGHT 2310
|
||||
|
||||
// Move caret right one word extending selection to new caret position.
|
||||
#define wxSTC_CMD_WORDRIGHTEXTEND 2311
|
||||
|
||||
// Move caret to first position on line.
|
||||
#define wxSTC_CMD_HOME 2312
|
||||
|
||||
// Move caret to first position on line extending selection to new caret position.
|
||||
#define wxSTC_CMD_HOMEEXTEND 2313
|
||||
|
||||
// Move caret to last position on line.
|
||||
#define wxSTC_CMD_LINEEND 2314
|
||||
|
||||
// Move caret to last position on line extending selection to new caret position.
|
||||
#define wxSTC_CMD_LINEENDEXTEND 2315
|
||||
|
||||
// Move caret to first position in document.
|
||||
#define wxSTC_CMD_DOCUMENTSTART 2316
|
||||
|
||||
// Move caret to first position in document extending selection to new caret position.
|
||||
#define wxSTC_CMD_DOCUMENTSTARTEXTEND 2317
|
||||
|
||||
// Move caret to last position in document.
|
||||
#define wxSTC_CMD_DOCUMENTEND 2318
|
||||
|
||||
// Move caret to last position in document extending selection to new caret position.
|
||||
#define wxSTC_CMD_DOCUMENTENDEXTEND 2319
|
||||
|
||||
// Move caret one page up.
|
||||
#define wxSTC_CMD_PAGEUP 2320
|
||||
|
||||
// Move caret one page up extending selection to new caret position.
|
||||
#define wxSTC_CMD_PAGEUPEXTEND 2321
|
||||
|
||||
// Move caret one page down.
|
||||
#define wxSTC_CMD_PAGEDOWN 2322
|
||||
|
||||
// Move caret one page down extending selection to new caret position.
|
||||
#define wxSTC_CMD_PAGEDOWNEXTEND 2323
|
||||
|
||||
// Switch from insert to overtype mode or the reverse.
|
||||
#define wxSTC_CMD_EDITTOGGLEOVERTYPE 2324
|
||||
|
||||
// Cancel any modes such as call tip or auto-completion list display.
|
||||
#define wxSTC_CMD_CANCEL 2325
|
||||
|
||||
// Delete the selection or if no selection, the character before the caret.
|
||||
#define wxSTC_CMD_DELETEBACK 2326
|
||||
|
||||
// If selection is empty or all on one line replace the selection with a tab character.
|
||||
// If more than one line selected, indent the lines.
|
||||
#define wxSTC_CMD_TAB 2327
|
||||
|
||||
// Dedent the selected lines.
|
||||
#define wxSTC_CMD_BACKTAB 2328
|
||||
|
||||
// Insert a new line, may use a CRLF, CR or LF depending on EOL mode.
|
||||
#define wxSTC_CMD_NEWLINE 2329
|
||||
|
||||
// Insert a Form Feed character.
|
||||
#define wxSTC_CMD_FORMFEED 2330
|
||||
|
||||
// Move caret to before first visible character on line.
|
||||
// If already there move to first character on line.
|
||||
#define wxSTC_CMD_VCHOME 2331
|
||||
|
||||
// Like VCHome but extending selection to new caret position.
|
||||
#define wxSTC_CMD_VCHOMEEXTEND 2332
|
||||
|
||||
// Magnify the displayed text by increasing the sizes by 1 point.
|
||||
#define wxSTC_CMD_ZOOMIN 2333
|
||||
|
||||
// Make the displayed text smaller by decreasing the sizes by 1 point.
|
||||
#define wxSTC_CMD_ZOOMOUT 2334
|
||||
|
||||
// Delete the word to the left of the caret.
|
||||
#define wxSTC_CMD_DELWORDLEFT 2335
|
||||
|
||||
// Delete the word to the right of the caret.
|
||||
#define wxSTC_CMD_DELWORDRIGHT 2336
|
||||
|
||||
// Cut the line containing the caret.
|
||||
#define wxSTC_CMD_LINECUT 2337
|
||||
|
||||
// Delete the line containing the caret.
|
||||
#define wxSTC_CMD_LINEDELETE 2338
|
||||
|
||||
// Switch the current line with the previous.
|
||||
#define wxSTC_CMD_LINETRANSPOSE 2339
|
||||
|
||||
// Transform the selection to lower case.
|
||||
#define wxSTC_CMD_LOWERCASE 2340
|
||||
|
||||
// Transform the selection to upper case.
|
||||
#define wxSTC_CMD_UPPERCASE 2341
|
||||
|
||||
// Scroll the document down, keeping the caret visible.
|
||||
#define wxSTC_CMD_LINESCROLLDOWN 2342
|
||||
|
||||
// Scroll the document up, keeping the caret visible.
|
||||
#define wxSTC_CMD_LINESCROLLUP 2343
|
||||
|
||||
// Delete the selection or if no selection, the character before the caret.
|
||||
// Will not delete the character before at the start of a line.
|
||||
#define wxSTC_CMD_DELETEBACKNOTLINE 2344
|
||||
|
||||
// Move caret to first position on display line.
|
||||
#define wxSTC_CMD_HOMEDISPLAY 2345
|
||||
|
||||
// Move caret to first position on display line extending selection to
|
||||
// new caret position.
|
||||
#define wxSTC_CMD_HOMEDISPLAYEXTEND 2346
|
||||
|
||||
// Move caret to last position on display line.
|
||||
#define wxSTC_CMD_LINEENDDISPLAY 2347
|
||||
|
||||
// Move caret to last position on display line extending selection to new
|
||||
// caret position.
|
||||
#define wxSTC_CMD_LINEENDDISPLAYEXTEND 2348
|
||||
#define wxSTC_EDGE_NONE 0
|
||||
#define wxSTC_EDGE_LINE 1
|
||||
#define wxSTC_EDGE_BACKGROUND 2
|
||||
@@ -866,6 +702,204 @@
|
||||
#define wxSTC_SCRIPTOL_COMMENTDOCKEYWORDERROR 18
|
||||
#define wxSTC_SCRIPTOL_COMMENTBASIC 19
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Commands that can be bound to keystrokes
|
||||
|
||||
// Redoes the next action on the undo history.
|
||||
#define wxSTC_CMD_REDO 2011
|
||||
|
||||
// Select all the text in the document.
|
||||
#define wxSTC_CMD_SELECTALL 2013
|
||||
|
||||
// Undo one action in the undo history.
|
||||
#define wxSTC_CMD_UNDO 2176
|
||||
|
||||
// Cut the selection to the clipboard.
|
||||
#define wxSTC_CMD_CUT 2177
|
||||
|
||||
// Copy the selection to the clipboard.
|
||||
#define wxSTC_CMD_COPY 2178
|
||||
|
||||
// Paste the contents of the clipboard into the document replacing the selection.
|
||||
#define wxSTC_CMD_PASTE 2179
|
||||
|
||||
// Clear the selection.
|
||||
#define wxSTC_CMD_CLEAR 2180
|
||||
|
||||
// Move caret down one line.
|
||||
#define wxSTC_CMD_LINEDOWN 2300
|
||||
|
||||
// Move caret down one line extending selection to new caret position.
|
||||
#define wxSTC_CMD_LINEDOWNEXTEND 2301
|
||||
|
||||
// Move caret up one line.
|
||||
#define wxSTC_CMD_LINEUP 2302
|
||||
|
||||
// Move caret up one line extending selection to new caret position.
|
||||
#define wxSTC_CMD_LINEUPEXTEND 2303
|
||||
|
||||
// Move caret left one character.
|
||||
#define wxSTC_CMD_CHARLEFT 2304
|
||||
|
||||
// Move caret left one character extending selection to new caret position.
|
||||
#define wxSTC_CMD_CHARLEFTEXTEND 2305
|
||||
|
||||
// Move caret right one character.
|
||||
#define wxSTC_CMD_CHARRIGHT 2306
|
||||
|
||||
// Move caret right one character extending selection to new caret position.
|
||||
#define wxSTC_CMD_CHARRIGHTEXTEND 2307
|
||||
|
||||
// Move caret left one word.
|
||||
#define wxSTC_CMD_WORDLEFT 2308
|
||||
|
||||
// Move caret left one word extending selection to new caret position.
|
||||
#define wxSTC_CMD_WORDLEFTEXTEND 2309
|
||||
|
||||
// Move caret right one word.
|
||||
#define wxSTC_CMD_WORDRIGHT 2310
|
||||
|
||||
// Move caret right one word extending selection to new caret position.
|
||||
#define wxSTC_CMD_WORDRIGHTEXTEND 2311
|
||||
|
||||
// Move caret to first position on line.
|
||||
#define wxSTC_CMD_HOME 2312
|
||||
|
||||
// Move caret to first position on line extending selection to new caret position.
|
||||
#define wxSTC_CMD_HOMEEXTEND 2313
|
||||
|
||||
// Move caret to last position on line.
|
||||
#define wxSTC_CMD_LINEEND 2314
|
||||
|
||||
// Move caret to last position on line extending selection to new caret position.
|
||||
#define wxSTC_CMD_LINEENDEXTEND 2315
|
||||
|
||||
// Move caret to first position in document.
|
||||
#define wxSTC_CMD_DOCUMENTSTART 2316
|
||||
|
||||
// Move caret to first position in document extending selection to new caret position.
|
||||
#define wxSTC_CMD_DOCUMENTSTARTEXTEND 2317
|
||||
|
||||
// Move caret to last position in document.
|
||||
#define wxSTC_CMD_DOCUMENTEND 2318
|
||||
|
||||
// Move caret to last position in document extending selection to new caret position.
|
||||
#define wxSTC_CMD_DOCUMENTENDEXTEND 2319
|
||||
|
||||
// Move caret one page up.
|
||||
#define wxSTC_CMD_PAGEUP 2320
|
||||
|
||||
// Move caret one page up extending selection to new caret position.
|
||||
#define wxSTC_CMD_PAGEUPEXTEND 2321
|
||||
|
||||
// Move caret one page down.
|
||||
#define wxSTC_CMD_PAGEDOWN 2322
|
||||
|
||||
// Move caret one page down extending selection to new caret position.
|
||||
#define wxSTC_CMD_PAGEDOWNEXTEND 2323
|
||||
|
||||
// Switch from insert to overtype mode or the reverse.
|
||||
#define wxSTC_CMD_EDITTOGGLEOVERTYPE 2324
|
||||
|
||||
// Cancel any modes such as call tip or auto-completion list display.
|
||||
#define wxSTC_CMD_CANCEL 2325
|
||||
|
||||
// Delete the selection or if no selection, the character before the caret.
|
||||
#define wxSTC_CMD_DELETEBACK 2326
|
||||
|
||||
// If selection is empty or all on one line replace the selection with a tab character.
|
||||
// If more than one line selected, indent the lines.
|
||||
#define wxSTC_CMD_TAB 2327
|
||||
|
||||
// Dedent the selected lines.
|
||||
#define wxSTC_CMD_BACKTAB 2328
|
||||
|
||||
// Insert a new line, may use a CRLF, CR or LF depending on EOL mode.
|
||||
#define wxSTC_CMD_NEWLINE 2329
|
||||
|
||||
// Insert a Form Feed character.
|
||||
#define wxSTC_CMD_FORMFEED 2330
|
||||
|
||||
// Move caret to before first visible character on line.
|
||||
// If already there move to first character on line.
|
||||
#define wxSTC_CMD_VCHOME 2331
|
||||
|
||||
// Like VCHome but extending selection to new caret position.
|
||||
#define wxSTC_CMD_VCHOMEEXTEND 2332
|
||||
|
||||
// Magnify the displayed text by increasing the sizes by 1 point.
|
||||
#define wxSTC_CMD_ZOOMIN 2333
|
||||
|
||||
// Make the displayed text smaller by decreasing the sizes by 1 point.
|
||||
#define wxSTC_CMD_ZOOMOUT 2334
|
||||
|
||||
// Delete the word to the left of the caret.
|
||||
#define wxSTC_CMD_DELWORDLEFT 2335
|
||||
|
||||
// Delete the word to the right of the caret.
|
||||
#define wxSTC_CMD_DELWORDRIGHT 2336
|
||||
|
||||
// Cut the line containing the caret.
|
||||
#define wxSTC_CMD_LINECUT 2337
|
||||
|
||||
// Delete the line containing the caret.
|
||||
#define wxSTC_CMD_LINEDELETE 2338
|
||||
|
||||
// Switch the current line with the previous.
|
||||
#define wxSTC_CMD_LINETRANSPOSE 2339
|
||||
|
||||
// Transform the selection to lower case.
|
||||
#define wxSTC_CMD_LOWERCASE 2340
|
||||
|
||||
// Transform the selection to upper case.
|
||||
#define wxSTC_CMD_UPPERCASE 2341
|
||||
|
||||
// Scroll the document down, keeping the caret visible.
|
||||
#define wxSTC_CMD_LINESCROLLDOWN 2342
|
||||
|
||||
// Scroll the document up, keeping the caret visible.
|
||||
#define wxSTC_CMD_LINESCROLLUP 2343
|
||||
|
||||
// Delete the selection or if no selection, the character before the caret.
|
||||
// Will not delete the character before at the start of a line.
|
||||
#define wxSTC_CMD_DELETEBACKNOTLINE 2344
|
||||
|
||||
// Move caret to first position on display line.
|
||||
#define wxSTC_CMD_HOMEDISPLAY 2345
|
||||
|
||||
// Move caret to first position on display line extending selection to
|
||||
// new caret position.
|
||||
#define wxSTC_CMD_HOMEDISPLAYEXTEND 2346
|
||||
|
||||
// Move caret to last position on display line.
|
||||
#define wxSTC_CMD_LINEENDDISPLAY 2347
|
||||
|
||||
// Move caret to last position on display line extending selection to new
|
||||
// caret position.
|
||||
#define wxSTC_CMD_LINEENDDISPLAYEXTEND 2348
|
||||
|
||||
// Move to the previous change in capitalisation.
|
||||
#define wxSTC_CMD_WORDPARTLEFT 2390
|
||||
|
||||
// Move to the previous change in capitalisation extending selection
|
||||
// to new caret position.
|
||||
#define wxSTC_CMD_WORDPARTLEFTEXTEND 2391
|
||||
|
||||
// Move to the change next in capitalisation.
|
||||
#define wxSTC_CMD_WORDPARTRIGHT 2392
|
||||
|
||||
// Move to the next change in capitalisation extending selection
|
||||
// to new caret position.
|
||||
#define wxSTC_CMD_WORDPARTRIGHTEXTEND 2393
|
||||
|
||||
// Delete back from the current position to the start of the line.
|
||||
#define wxSTC_CMD_DELLINELEFT 2395
|
||||
|
||||
// Delete forwards from the current position to the end of the line.
|
||||
#define wxSTC_CMD_DELLINERIGHT 2396
|
||||
|
||||
|
||||
// END of generated section
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
@@ -873,8 +907,11 @@ class ScintillaWX; // forward declare
|
||||
class WordList;
|
||||
struct SCNotification;
|
||||
|
||||
|
||||
extern const wxChar* wxSTCNameStr;
|
||||
#ifndef SWIG
|
||||
extern STCDLLEXPORT const wxChar* wxSTCNameStr;
|
||||
class STCDLLEXPORT wxStyledTextCtrl;
|
||||
class STCDLLEXPORT wxStyledTextEvent;
|
||||
#endif
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
@@ -1644,14 +1681,14 @@ public:
|
||||
// Move caret to first position on display line.
|
||||
void HomeDisplay();
|
||||
|
||||
// Move caret to first position on display line extending selection to
|
||||
// Move caret to first position on display line extending selection to
|
||||
// new caret position.
|
||||
void HomeDisplayExtend();
|
||||
|
||||
// Move caret to last position on display line.
|
||||
void LineEndDisplay();
|
||||
|
||||
// Move caret to last position on display line extending selection to new
|
||||
// Move caret to last position on display line extending selection to new
|
||||
// caret position.
|
||||
void LineEndDisplayExtend();
|
||||
|
||||
@@ -1933,6 +1970,7 @@ private:
|
||||
void OnMouseMove(wxMouseEvent& evt);
|
||||
void OnMouseLeftUp(wxMouseEvent& evt);
|
||||
void OnMouseRightUp(wxMouseEvent& evt);
|
||||
void OnMouseMiddleUp(wxMouseEvent& evt);
|
||||
void OnContextMenu(wxContextMenuEvent& evt);
|
||||
void OnMouseWheel(wxMouseEvent& evt);
|
||||
void OnChar(wxKeyEvent& evt);
|
||||
@@ -1968,7 +2006,7 @@ private:
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
// SWIG can't handle "#if" type of conditionals, onlu "#ifdef"
|
||||
// SWIG can't handle "#if" type of conditionals, only "#ifdef"
|
||||
#ifdef SWIG
|
||||
#define STC_USE_DND 1
|
||||
#else
|
||||
|
||||
@@ -46,5 +46,6 @@
|
||||
#include "wx/xrc/xh_unkwn.h"
|
||||
#include "wx/xrc/xh_gdctl.h"
|
||||
#include "wx/xrc/xh_frame.h"
|
||||
#include "wx/xrc/xh_scwin.h"
|
||||
|
||||
#endif // _WX_XMLRES_H_
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: xh_scwin.h
|
||||
// Purpose: XML resource handler for wxScrolledWindow
|
||||
// Author: Vaclav Slavik
|
||||
// Created: 2002/10/18
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) 2002 Vaclav Slavik
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_XH_SCWIN_H_
|
||||
#define _WX_XH_SCWIN_H_
|
||||
|
||||
#if defined(__GNUG__) && !defined(__APPLE__)
|
||||
#pragma interface "xh_scwin.h"
|
||||
#endif
|
||||
|
||||
#include "wx/xrc/xmlres.h"
|
||||
#include "wx/defs.h"
|
||||
|
||||
|
||||
|
||||
class WXXMLDLLEXPORT wxScrolledWindowXmlHandler : public wxXmlResourceHandler
|
||||
{
|
||||
public:
|
||||
wxScrolledWindowXmlHandler();
|
||||
virtual wxObject *DoCreateResource();
|
||||
virtual bool CanHandle(wxXmlNode *node);
|
||||
};
|
||||
|
||||
|
||||
#endif // _WX_XH_SCWIN_H_
|
||||
@@ -37,6 +37,9 @@ class WXDLLEXPORT wxFrame;
|
||||
class WXDLLEXPORT wxToolBar;
|
||||
|
||||
class WXXMLDLLEXPORT wxXmlResourceHandler;
|
||||
class WXXMLDLLEXPORT wxXmlSubclassFactory;
|
||||
class WXXMLDLLEXPORT wxXmlSubclassFactoriesList;
|
||||
class wxXmlResourceModule;
|
||||
|
||||
|
||||
// These macros indicate current version of XML resources (this information is
|
||||
@@ -133,6 +136,11 @@ public:
|
||||
|
||||
// Removes all handlers
|
||||
void ClearHandlers();
|
||||
|
||||
// Registers subclasses factory for use in XRC. This function is not meant
|
||||
// for public use, please see the comment above wxXmlSubclassFactory
|
||||
// definition.
|
||||
static void AddSubclassFactory(wxXmlSubclassFactory *factory);
|
||||
|
||||
// Loads menu from resource. Returns NULL on failure.
|
||||
wxMenu *LoadMenu(const wxString& name);
|
||||
@@ -216,7 +224,9 @@ public:
|
||||
static wxXmlResource *Set(wxXmlResource *res);
|
||||
|
||||
// Returns flags, which may be a bitlist of wxXRC_USE_LOCALE and wxXRC_NO_SUBCLASSING.
|
||||
int GetFlags() { return m_flags; }
|
||||
int GetFlags() const { return m_flags; }
|
||||
// Set flags after construction.
|
||||
void SetFlags(int flags) { m_flags = flags; }
|
||||
|
||||
protected:
|
||||
// Scans the resources list for unloaded files and loads them. Also reloads
|
||||
@@ -244,6 +254,9 @@ private:
|
||||
#endif
|
||||
|
||||
friend class wxXmlResourceHandler;
|
||||
friend class wxXmlResourceModule;
|
||||
|
||||
static wxXmlSubclassFactoriesList *ms_subclassFactories;
|
||||
|
||||
// singleton instance:
|
||||
static wxXmlResource *ms_instance;
|
||||
@@ -438,6 +451,20 @@ protected:
|
||||
void wxXmlInitResourceModule();
|
||||
|
||||
|
||||
// This class is used to create instances of XRC "object" nodes with "subclass"
|
||||
// property. It is _not_ supposed to be used by XRC users, you should instead
|
||||
// register your subclasses via wxWindows' RTTI mechanism. This class is useful
|
||||
// only for language bindings developer who need a way to implement subclassing
|
||||
// in wxWindows ports that don't support wxRTTI (e.g. wxPython).
|
||||
class WXXMLDLLEXPORT wxXmlSubclassFactory
|
||||
{
|
||||
public:
|
||||
// Try to create instance of given class and return it, return NULL on failure:
|
||||
virtual wxObject *Create(const wxString& className) = 0;
|
||||
virtual ~wxXmlSubclassFactory() {}
|
||||
};
|
||||
|
||||
|
||||
/* -------------------------------------------------------------------------
|
||||
Backward compatibility macros. Do *NOT* use, they may disappear in future
|
||||
versions of the XRC library!
|
||||
|
||||
@@ -111,7 +111,7 @@ BSC32=bscmake.exe
|
||||
# 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 wxmsw233d.lib animd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/anitest.exe" /pdbtype:sept /libpath:"../../../lib"
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw234d.lib animd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/anitest.exe" /pdbtype:sept /libpath:"../../../lib"
|
||||
|
||||
!ELSEIF "$(CFG)" == "AniTestVC - Win32 Release DLL"
|
||||
|
||||
@@ -138,7 +138,7 @@ BSC32=bscmake.exe
|
||||
# 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 wxmsw233.lib anim.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/anitest.exe" /libpath:"../../../lib"
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw234.lib anim.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/anitest.exe" /libpath:"../../../lib"
|
||||
|
||||
!ELSEIF "$(CFG)" == "AniTestVC - Win32 UnivRelease"
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ PROGRAM=anitest
|
||||
|
||||
OBJECTS=$(PROGRAM).o
|
||||
|
||||
APPEXTRALIBS=$(top_builddir)/lib/libwx_anim.@WX_TARGET_LIBRARY_TYPE@
|
||||
APPEXTRALIBS=$(top_builddir)/lib/lib@WX_LIBRARY_BASENAME@_anim-@WX_RELEASE@.@WX_TARGET_LIBRARY_TYPE@
|
||||
APPEXTRADEFS=-I$(top_srcdir)/contrib/include
|
||||
|
||||
include $(top_builddir)/src/makeprog.env
|
||||
|
||||
@@ -19,7 +19,7 @@ DATAFILES=about.html index.html
|
||||
|
||||
OBJECTS=applet.o dialogs_wdr.o monitorapplet.o combobox.o
|
||||
|
||||
APPEXTRALIBS=$(top_builddir)/lib/libapplet.@WX_TARGET_LIBRARY_TYPE@
|
||||
APPEXTRALIBS=$(top_builddir)/lib/lib@WX_LIBRARY_BASENAME@_applet-@WX_RELEASE@.@WX_TARGET_LIBRARY_TYPE@
|
||||
APPEXTRADEFS=-I$(top_srcdir)/contrib/include
|
||||
|
||||
include $(top_builddir)/src/makeprog.env
|
||||
|
||||
@@ -17,7 +17,7 @@ PROGRAM=simple
|
||||
|
||||
OBJECTS=simple.o
|
||||
|
||||
APPEXTRALIBS=$(top_builddir)/lib/libcanvas.@WX_TARGET_LIBRARY_TYPE@
|
||||
APPEXTRALIBS=$(top_builddir)/lib/lib@WX_LIBRARY_BASENAME@_canvas-@WX_RELEASE@.@WX_TARGET_LIBRARY_TYPE@
|
||||
APPEXTRADEFS=-I$(top_srcdir)/contrib/include
|
||||
|
||||
include $(top_builddir)/src/makeprog.env
|
||||
|
||||
@@ -109,7 +109,7 @@ BSC32=bscmake.exe
|
||||
# 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 wxmsw233d.lib canvasd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/simple.exe" /pdbtype:sept /libpath:"../../../../lib"
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw234d.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"
|
||||
|
||||
@@ -136,7 +136,7 @@ BSC32=bscmake.exe
|
||||
# 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 wxmsw233.lib canvas.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/simple.exe" /libpath:"../../../../lib"
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw234.lib canvas.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/simple.exe" /libpath:"../../../../lib"
|
||||
|
||||
!ENDIF
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user