diff --git a/CMakeLists.txt b/CMakeLists.txt
index c6fbad069d..fe40c84e02 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -146,12 +146,17 @@ if (APPLE)
# features can be used, not the minimum required version to run.
set(OSX_MIN_VERSION "10.5.4")
set(TARGET_FLAGS "${TARGET_FLAGS} -mmacosx-version-min=${OSX_MIN_VERSION}")
- set(TARGET_SYSROOT "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk")
- if (NOT EXISTS "${TARGET_SYSROOT}/")
- set(TARGET_SYSROOT "/Developer/SDKs/MacOSX10.6.sdk")
+ set(SYSROOT_LEGACY_PATH "/Developer/SDKs/MacOSX10.6.sdk")
+ set(SYSROOT_PATH "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk")
+ if (EXISTS "${SYSROOT_PATH}/")
+ set(TARGET_SYSROOT ${SYSROOT_PATH})
+ elif (EXISTS "${SYSROOT_LEGACY_PATH}/")
+ set(TARGET_SYSROOT ${SYSROOT_LEGACY_PATH})
+ endif()
+ if (${TARGET_SYSROOT})
+ set(TARGET_FLAGS "${TARGET_FLAGS} -isysroot ${TARGET_SYSROOT}")
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-syslibroot,${TARGET_SYSROOT}")
endif()
- set(TARGET_FLAGS "${TARGET_FLAGS} -isysroot ${TARGET_SYSROOT}")
- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-syslibroot,/Developer/SDKs/MacOSX10.6.sdk")
# Do not warn about frameworks that are not available on all architectures.
# This avoids a warning when linking with QuickTime.
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-no_arch_warnings")
@@ -472,10 +477,8 @@ endif()
option(DISABLE_WX "Disable wxWidgets (use CLI interface)" OFF)
if(NOT DISABLE_WX)
- if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
- include(FindwxWidgets OPTIONAL)
- FIND_PACKAGE(wxWidgets COMPONENTS core aui adv)
- endif()
+ include(FindwxWidgets OPTIONAL)
+ FIND_PACKAGE(wxWidgets COMPONENTS core aui adv)
if(wxWidgets_FOUND)
EXECUTE_PROCESS(
@@ -486,53 +489,61 @@ if(NOT DISABLE_WX)
ERROR_QUIET
)
message("Found wxWidgets version ${wxWidgets_VERSION}")
- if(${wxWidgets_VERSION} VERSION_LESS "2.8.9")
- message("At least 2.8.9 is required; ignoring found version")
+ if(${wxWidgets_VERSION} VERSION_LESS "2.9.4")
+ message("At least 2.9.4 is required; ignoring found version")
unset(wxWidgets_FOUND)
endif()
endif(wxWidgets_FOUND)
-
- if(wxWidgets_FOUND)
- include(${wxWidgets_USE_FILE})
- if(UNIX AND NOT APPLE)
- # There is a bug in the FindGTK module in cmake version 2.8.2 that
- # does not find gdk-pixbuf-2.0. On the other hand some 2.8.3
- # users have complained that pkg-config does not find
- # gdk-pixbuf-2.0. On yet another hand, cmake version 2.8.3 in
- # Ubuntu Natty does not find the glib libraries correctly.
- # Ugly!!!
- execute_process(COMMAND lsb_release -c -s
- OUTPUT_VARIABLE DIST_NAME
- ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
- if(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}
- VERSION_EQUAL 2.8.2 OR "${DIST_NAME}" STREQUAL "natty")
- check_lib(GTK2 gtk+-2.0 gtk.h REQUIRED)
- else()
- include(FindGTK2)
- if(GTK2_FOUND)
- include_directories(${GTK2_INCLUDE_DIRS})
- endif()
+ if(UNIX AND NOT APPLE)
+ # There is a bug in the FindGTK module in cmake version 2.8.2 that
+ # does not find gdk-pixbuf-2.0. On the other hand some 2.8.3
+ # users have complained that pkg-config does not find
+ # gdk-pixbuf-2.0. On yet another hand, cmake version 2.8.3 in
+ # Ubuntu Natty does not find the glib libraries correctly.
+ # Ugly!!!
+ execute_process(COMMAND lsb_release -c -s
+ OUTPUT_VARIABLE DIST_NAME
+ ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
+ if(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}
+ VERSION_EQUAL 2.8.2 OR "${DIST_NAME}" STREQUAL "natty")
+ check_lib(GTK2 gtk+-2.0 gtk.h REQUIRED)
+ else()
+ include(FindGTK2)
+ if(GTK2_FOUND)
+ include_directories(${GTK2_INCLUDE_DIRS})
endif()
endif()
+ endif()
+ if(wxWidgets_FOUND)
+ include(${wxWidgets_USE_FILE})
message("wxWidgets found, enabling GUI build")
else(wxWidgets_FOUND)
- if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
- message(FATAL_ERROR "wxWidgets not found. It is required to build the GUI")
- endif()
message("Using static wxWidgets from Externals")
+
+ # These definitions and includes are used when building dolphin against wx,
+ # not when building wx itself (see wxw3 CMakeLists.txt for that)
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
add_definitions(-D__WXOSX_COCOA__)
- include_directories(Externals/wxWidgets3)
- include_directories(Externals/wxWidgets3/include)
- add_subdirectory(Externals/wxWidgets3)
- set(wxWidgets_LIBRARIES "wx")
+ elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
+ add_definitions(-D__WXGTK__)
+
+ # Check for required libs
+ check_lib(GTHREAD2 gthread-2.0 glib/gthread.h REQUIRED)
+ check_lib(PANGOCAIRO pangocairo pango/pangocairo.h REQUIRED)
+ elseif(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
+ add_definitions(-D__WXMSW__)
else()
- include_directories(Externals/wxWidgets/include)
- add_subdirectory(Externals/wxWidgets)
+ message(FATAL_ERROR "wxWidgets in Externals is not compatible with your platform")
endif()
+
+ include_directories(
+ Externals/wxWidgets3
+ Externals/wxWidgets3/include)
+ add_subdirectory(Externals/wxWidgets3)
set(wxWidgets_FOUND TRUE)
+ set(wxWidgets_LIBRARIES "wx")
endif(wxWidgets_FOUND)
add_definitions(-DHAVE_WX=1)
endif(NOT DISABLE_WX)
diff --git a/Externals/Bochs_disasm/Bochs_disasm.vcxproj b/Externals/Bochs_disasm/Bochs_disasm.vcxproj
index f7110f2e9a..50f62f70f6 100644
--- a/Externals/Bochs_disasm/Bochs_disasm.vcxproj
+++ b/Externals/Bochs_disasm/Bochs_disasm.vcxproj
@@ -152,7 +152,6 @@
-
diff --git a/Externals/CLRun/clrun/CLRun.vcxproj b/Externals/CLRun/clrun/CLRun.vcxproj
index 0b168991d0..c6a4cb2e6d 100644
--- a/Externals/CLRun/clrun/CLRun.vcxproj
+++ b/Externals/CLRun/clrun/CLRun.vcxproj
@@ -166,9 +166,7 @@
-
-
diff --git a/Externals/CLRun/clrun/CLRun.vcxproj.filters b/Externals/CLRun/clrun/CLRun.vcxproj.filters
index 795200b898..3f252a668b 100644
--- a/Externals/CLRun/clrun/CLRun.vcxproj.filters
+++ b/Externals/CLRun/clrun/CLRun.vcxproj.filters
@@ -46,9 +46,7 @@
-
-
Resource Files
diff --git a/Externals/LZO/LZO.vcxproj b/Externals/LZO/LZO.vcxproj
index b29b9b2c84..76b75cdc4c 100644
--- a/Externals/LZO/LZO.vcxproj
+++ b/Externals/LZO/LZO.vcxproj
@@ -143,7 +143,6 @@
-
diff --git a/Externals/LZO/LZO.vcxproj.filters b/Externals/LZO/LZO.vcxproj.filters
index 50cd659802..889fdb14a0 100644
--- a/Externals/LZO/LZO.vcxproj.filters
+++ b/Externals/LZO/LZO.vcxproj.filters
@@ -26,6 +26,5 @@
-
\ No newline at end of file
diff --git a/Externals/SOIL/SOIL.vcxproj b/Externals/SOIL/SOIL.vcxproj
index eba92bad49..33f75bbaf9 100644
--- a/Externals/SOIL/SOIL.vcxproj
+++ b/Externals/SOIL/SOIL.vcxproj
@@ -150,7 +150,6 @@
-
diff --git a/Externals/libpng/png/png.vcxproj b/Externals/libpng/png/png.vcxproj
new file mode 100644
index 0000000000..e272b07452
--- /dev/null
+++ b/Externals/libpng/png/png.vcxproj
@@ -0,0 +1,208 @@
+
+
+
+
+ DebugFast
+ Win32
+
+
+ DebugFast
+ x64
+
+
+ Debug
+ Win32
+
+
+ Debug
+ x64
+
+
+ Release
+ Win32
+
+
+ Release
+ x64
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {01573C36-AC6E-49F6-94BA-572517EB9740}
+ Win32Proj
+ png
+
+
+
+ StaticLibrary
+ true
+ Unicode
+
+
+ StaticLibrary
+ true
+ Unicode
+
+
+ StaticLibrary
+ false
+ Unicode
+
+
+ StaticLibrary
+ false
+ Unicode
+
+
+ StaticLibrary
+ false
+ Unicode
+
+
+ StaticLibrary
+ false
+ Unicode
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Disabled
+ ..\..\zlib;%(AdditionalIncludeDirectories)
+
+
+ Windows
+ true
+
+
+
+
+ Disabled
+ ..\..\zlib;%(AdditionalIncludeDirectories)
+
+
+ Windows
+ true
+
+
+
+
+ MaxSpeed
+ true
+ true
+ ..\..\zlib;%(AdditionalIncludeDirectories)
+
+
+ Windows
+ true
+ true
+ true
+
+
+
+
+ MaxSpeed
+ true
+ true
+ ..\..\zlib;%(AdditionalIncludeDirectories)
+
+
+ Windows
+ true
+ true
+ true
+
+
+
+
+ MaxSpeed
+ true
+ true
+ ..\..\zlib;%(AdditionalIncludeDirectories)
+
+
+ Windows
+ true
+ true
+ true
+
+
+
+
+ MaxSpeed
+ true
+ true
+ ..\..\zlib;%(AdditionalIncludeDirectories)
+
+
+ Windows
+ true
+ true
+ true
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Externals/libpng/png/png.vcxproj.filters b/Externals/libpng/png/png.vcxproj.filters
new file mode 100644
index 0000000000..5bccb29842
--- /dev/null
+++ b/Externals/libpng/png/png.vcxproj.filters
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Externals/portaudio/Win32/Debug/portaudio.lib b/Externals/portaudio/Win32/Debug/portaudio.lib
new file mode 100644
index 0000000000..058b3c404c
Binary files /dev/null and b/Externals/portaudio/Win32/Debug/portaudio.lib differ
diff --git a/Externals/portaudio/Win32/Debug/portaudio.pdb b/Externals/portaudio/Win32/Debug/portaudio.pdb
new file mode 100644
index 0000000000..c9269f2c5d
Binary files /dev/null and b/Externals/portaudio/Win32/Debug/portaudio.pdb differ
diff --git a/Externals/portaudio/Win32/DebugFast/portaudio.lib b/Externals/portaudio/Win32/DebugFast/portaudio.lib
new file mode 100644
index 0000000000..30874d6f05
Binary files /dev/null and b/Externals/portaudio/Win32/DebugFast/portaudio.lib differ
diff --git a/Externals/portaudio/Win32/DebugFast/portaudio.pdb b/Externals/portaudio/Win32/DebugFast/portaudio.pdb
new file mode 100644
index 0000000000..12415be92d
Binary files /dev/null and b/Externals/portaudio/Win32/DebugFast/portaudio.pdb differ
diff --git a/Externals/portaudio/Win32/Release/portaudio.lib b/Externals/portaudio/Win32/Release/portaudio.lib
new file mode 100644
index 0000000000..30874d6f05
Binary files /dev/null and b/Externals/portaudio/Win32/Release/portaudio.lib differ
diff --git a/Externals/portaudio/Win32/Release/portaudio.pdb b/Externals/portaudio/Win32/Release/portaudio.pdb
new file mode 100644
index 0000000000..12415be92d
Binary files /dev/null and b/Externals/portaudio/Win32/Release/portaudio.pdb differ
diff --git a/Externals/portaudio/Win32/portaudio.lib b/Externals/portaudio/Win32/portaudio.lib
deleted file mode 100644
index 01213c5399..0000000000
Binary files a/Externals/portaudio/Win32/portaudio.lib and /dev/null differ
diff --git a/Externals/portaudio/x64/Debug/portaudio.lib b/Externals/portaudio/x64/Debug/portaudio.lib
new file mode 100644
index 0000000000..a092624370
Binary files /dev/null and b/Externals/portaudio/x64/Debug/portaudio.lib differ
diff --git a/Externals/portaudio/x64/Debug/portaudio.pdb b/Externals/portaudio/x64/Debug/portaudio.pdb
new file mode 100644
index 0000000000..fd5cd214b4
Binary files /dev/null and b/Externals/portaudio/x64/Debug/portaudio.pdb differ
diff --git a/Externals/portaudio/x64/DebugFast/portaudio.lib b/Externals/portaudio/x64/DebugFast/portaudio.lib
new file mode 100644
index 0000000000..3029595193
Binary files /dev/null and b/Externals/portaudio/x64/DebugFast/portaudio.lib differ
diff --git a/Externals/portaudio/x64/DebugFast/portaudio.pdb b/Externals/portaudio/x64/DebugFast/portaudio.pdb
new file mode 100644
index 0000000000..3642ec683a
Binary files /dev/null and b/Externals/portaudio/x64/DebugFast/portaudio.pdb differ
diff --git a/Externals/portaudio/x64/Release/portaudio.lib b/Externals/portaudio/x64/Release/portaudio.lib
new file mode 100644
index 0000000000..3029595193
Binary files /dev/null and b/Externals/portaudio/x64/Release/portaudio.lib differ
diff --git a/Externals/portaudio/x64/Release/portaudio.pdb b/Externals/portaudio/x64/Release/portaudio.pdb
new file mode 100644
index 0000000000..3642ec683a
Binary files /dev/null and b/Externals/portaudio/x64/Release/portaudio.pdb differ
diff --git a/Externals/portaudio/x64/portaudio.lib b/Externals/portaudio/x64/portaudio.lib
deleted file mode 100644
index 1793b91480..0000000000
Binary files a/Externals/portaudio/x64/portaudio.lib and /dev/null differ
diff --git a/Externals/wxWidgets3/CMakeLists.txt b/Externals/wxWidgets3/CMakeLists.txt
index 29d349f179..5b9891bb11 100644
--- a/Externals/wxWidgets3/CMakeLists.txt
+++ b/Externals/wxWidgets3/CMakeLists.txt
@@ -1,4 +1,4 @@
-# gtk, msw, osx and shared files as of r67291
+# gtk, msw, osx and shared files as of r70933
set(SRCS_AUI
"src/aui/auibar.cpp"
@@ -11,6 +11,7 @@ set(SRCS_AUI
set(SRCS_COMMON
"src/common/accelcmn.cpp"
#"src/common/accesscmn.cpp"
+ "src/common/affinematrix2d.cpp"
"src/common/anidecod.cpp"
"src/common/animatecmn.cpp"
"src/common/any.cpp"
@@ -215,6 +216,7 @@ set(SRCS_COMMON
"src/common/textcmn.cpp"
"src/common/textentrycmn.cpp"
"src/common/textfile.cpp"
+ "src/common/time.cpp"
"src/common/timercmn.cpp"
"src/common/timerimpl.cpp"
"src/common/tokenzr.cpp"
@@ -233,6 +235,7 @@ set(SRCS_COMMON
"src/common/valnum.cpp"
"src/common/valtext.cpp"
"src/common/variant.cpp"
+ #"src/common/webview.cpp"
"src/common/wfstream.cpp"
"src/common/wincmn.cpp"
"src/common/windowid.cpp"
@@ -247,25 +250,9 @@ set(SRCS_COMMON
"src/common/zipstrm.cpp"
"src/common/zstream.cpp")
-set(SRCS_EXPAT
- #"src/expat/lib/xmlparse.c"
- #"src/expat/lib/xmlrole.c"
- #"src/expat/lib/xmltok.c"
- #"src/expat/lib/xmltok_impl.c"
- #"src/expat/lib/xmltok_ns.c"
- #"src/expat/xmlwf/codepage.c"
- #"src/expat/xmlwf/ct.c"
- #"src/expat/xmlwf/readfilemap.c"
- #"src/expat/xmlwf/unixfilemap.c"
- #"src/expat/xmlwf/win32filemap.c"
- #"src/expat/xmlwf/xmlfile.c"
- #"src/expat/xmlwf/xmlmime.c"
- #"src/expat/xmlwf/xmlwf.c"
- #"src/expat/xmlwf/xmlwin32url.cxx"
-)
-
set(SRCS_GENERIC
"src/generic/aboutdlgg.cpp"
+ "src/generic/bannerwindow.cpp"
"src/generic/bmpcboxg.cpp"
"src/generic/busyinfo.cpp"
"src/generic/buttonbar.cpp"
@@ -310,7 +297,6 @@ set(SRCS_GENERIC
"src/generic/notifmsgg.cpp"
"src/generic/numdlgg.cpp"
"src/generic/odcombo.cpp"
- "src/generic/panelg.cpp"
"src/generic/printps.cpp"
"src/generic/prntdlgg.cpp"
"src/generic/progdlgg.cpp"
@@ -331,12 +317,14 @@ set(SRCS_GENERIC
"src/generic/statusbr.cpp"
"src/generic/tabg.cpp"
"src/generic/textdlgg.cpp"
+ "src/generic/timectrlg.cpp"
#"src/generic/timer.cpp"
"src/generic/tipdlg.cpp"
"src/generic/tipwin.cpp"
"src/generic/toolbkg.cpp"
"src/generic/treebkg.cpp"
"src/generic/treectlg.cpp"
+ "src/generic/treelist.cpp"
"src/generic/vlbox.cpp"
"src/generic/vscroll.cpp"
"src/generic/wizard.cpp")
@@ -359,9 +347,10 @@ set(SRCS_GENERICOSX
set(SRCS_GTK
"src/gtk/aboutdlg.cpp"
"src/gtk/animate.cpp"
+ "src/gtk/anybutton.cpp"
"src/gtk/app.cpp"
"src/gtk/artgtk.cpp"
- "src/gtk/assertdlg_gtk.c"
+ "src/gtk/assertdlg_gtk.cpp"
"src/gtk/bitmap.cpp"
"src/gtk/bmpbuttn.cpp"
"src/gtk/bmpcbox.cpp"
@@ -412,6 +401,7 @@ set(SRCS_GTK
"src/gtk/mnemonics.cpp"
"src/gtk/msgdlg.cpp"
"src/gtk/nativewin.cpp"
+ "src/gtk/nonownedwnd.cpp"
"src/gtk/notebook.cpp"
"src/gtk/pen.cpp"
"src/gtk/popupwin.cpp"
@@ -442,90 +432,14 @@ set(SRCS_GTK
"src/gtk/toplevel.cpp"
"src/gtk/treeentry_gtk.c"
"src/gtk/utilsgtk.cpp"
+ #"src/gtk/webview_webkit.cpp"
"src/gtk/win_gtk.cpp"
"src/gtk/window.cpp")
-set(SRCS_HTML
- "src/html/chm.cpp"
- "src/html/helpctrl.cpp"
- "src/html/helpdata.cpp"
- "src/html/helpdlg.cpp"
- "src/html/helpfrm.cpp"
- "src/html/helpwnd.cpp"
- "src/html/htmlcell.cpp"
- #"src/html/htmlctrl/webkit/webkit.mm"
- "src/html/htmlfilt.cpp"
- "src/html/htmlpars.cpp"
- "src/html/htmltag.cpp"
- "src/html/htmlwin.cpp"
- "src/html/htmprint.cpp"
- "src/html/m_dflist.cpp"
- "src/html/m_fonts.cpp"
- "src/html/m_hline.cpp"
- "src/html/m_image.cpp"
- "src/html/m_layout.cpp"
- "src/html/m_links.cpp"
- "src/html/m_list.cpp"
- "src/html/m_pre.cpp"
- "src/html/m_span.cpp"
- "src/html/m_style.cpp"
- "src/html/m_tables.cpp"
- "src/html/styleparams.cpp"
- "src/html/winpars.cpp")
-
-set(SRCS_JPEG
- "src/jpeg/jcapimin.c"
- "src/jpeg/jcapistd.c"
- "src/jpeg/jccoefct.c"
- "src/jpeg/jccolor.c"
- "src/jpeg/jcdctmgr.c"
- "src/jpeg/jchuff.c"
- "src/jpeg/jcinit.c"
- "src/jpeg/jcmainct.c"
- "src/jpeg/jcmarker.c"
- "src/jpeg/jcmaster.c"
- "src/jpeg/jcomapi.c"
- "src/jpeg/jcparam.c"
- "src/jpeg/jcphuff.c"
- "src/jpeg/jcprepct.c"
- "src/jpeg/jcsample.c"
- "src/jpeg/jctrans.c"
- "src/jpeg/jdapimin.c"
- "src/jpeg/jdapistd.c"
- "src/jpeg/jdatadst.c"
- "src/jpeg/jdatasrc.c"
- "src/jpeg/jdcoefct.c"
- "src/jpeg/jdcolor.c"
- "src/jpeg/jddctmgr.c"
- "src/jpeg/jdhuff.c"
- "src/jpeg/jdinput.c"
- "src/jpeg/jdmainct.c"
- "src/jpeg/jdmarker.c"
- "src/jpeg/jdmaster.c"
- "src/jpeg/jdmerge.c"
- "src/jpeg/jdphuff.c"
- "src/jpeg/jdpostct.c"
- "src/jpeg/jdsample.c"
- "src/jpeg/jdtrans.c"
- "src/jpeg/jerror.c"
- "src/jpeg/jfdctflt.c"
- "src/jpeg/jfdctfst.c"
- "src/jpeg/jfdctint.c"
- "src/jpeg/jidctflt.c"
- "src/jpeg/jidctfst.c"
- "src/jpeg/jidctint.c"
- "src/jpeg/jidctred.c"
- "src/jpeg/jmemansi.c"
- "src/jpeg/jmemmgr.c"
- "src/jpeg/jmemname.c"
- "src/jpeg/jmemnobs.c"
- "src/jpeg/jquant1.c"
- "src/jpeg/jquant2.c"
- "src/jpeg/jutils.c")
-
set(SRCS_MSW
"src/msw/aboutdlg.cpp"
"src/msw/accel.cpp"
+ "src/msw/anybutton.cpp"
"src/msw/app.cpp"
"src/msw/artmsw.cpp"
"src/msw/basemsw.cpp"
@@ -551,6 +465,7 @@ set(SRCS_MSW
"src/msw/data.cpp"
"src/msw/datecontrols.cpp"
"src/msw/datectrl.cpp"
+ "src/msw/datetimectrl.cpp"
"src/msw/dc.cpp"
"src/msw/dcclient.cpp"
"src/msw/dcmemory.cpp"
@@ -608,6 +523,7 @@ set(SRCS_MSW
"src/msw/mslu.cpp"
"src/msw/nativdlg.cpp"
"src/msw/nativewin.cpp"
+ "src/msw/nonownedwnd.cpp"
"src/msw/notebook.cpp"
"src/msw/notifmsg.cpp"
"src/msw/ole/access.cpp"
@@ -655,6 +571,7 @@ set(SRCS_MSW
"src/msw/textentry.cpp"
"src/msw/tglbtn.cpp"
"src/msw/thread.cpp"
+ "src/msw/timectrl.cpp"
"src/msw/timer.cpp"
"src/msw/toolbar.cpp"
"src/msw/tooltip.cpp"
@@ -668,6 +585,7 @@ set(SRCS_MSW
"src/msw/uxtheme.cpp"
"src/msw/version.rc"
"src/msw/volume.cpp"
+ #"src/msw/webview_ie.cpp"
"src/msw/wince/checklst.cpp"
"src/msw/wince/choicece.cpp"
"src/msw/wince/crt.cpp"
@@ -684,6 +602,7 @@ set(SRCS_MSW
set(SRCS_OSX
"src/osx/accel.cpp"
+ "src/osx/anybutton_osx.cpp"
"src/osx/artmac.cpp"
"src/osx/bmpbuttn_osx.cpp"
"src/osx/brush.cpp"
@@ -693,6 +612,8 @@ set(SRCS_OSX
"src/osx/choice_osx.cpp"
"src/osx/combobox_osx.cpp"
"src/osx/dataview_osx.cpp"
+ "src/osx/datectrl_osx.cpp"
+ "src/osx/datetimectrl_osx.cpp"
"src/osx/dialog_osx.cpp"
"src/osx/dnd_osx.cpp"
"src/osx/fontutil.cpp"
@@ -722,12 +643,15 @@ set(SRCS_OSX
"src/osx/textctrl_osx.cpp"
"src/osx/textentry_osx.cpp"
"src/osx/tglbtn_osx.cpp"
+ "src/osx/timectrl_osx.cpp"
"src/osx/toolbar_osx.cpp"
"src/osx/toplevel_osx.cpp"
"src/osx/uiaction_osx.cpp"
"src/osx/utils_osx.cpp"
+ #"src/osx/webview_webkit.mm"
"src/osx/window_osx.cpp"
#"src/osx/carbon/aboutdlg.cpp"
+ "src/osx/carbon/anybutton.cpp"
"src/osx/carbon/app.cpp"
#"src/osx/carbon/bmpbuttn.cpp"
#"src/osx/carbon/button.cpp"
@@ -805,12 +729,14 @@ set(SRCS_OSX
"src/osx/carbon/utilscocoa.mm"
#"src/osx/carbon/window.cpp"
"src/osx/cocoa/aboutdlg.mm"
+ "src/osx/cocoa/anybutton.mm"
"src/osx/cocoa/button.mm"
"src/osx/cocoa/checkbox.mm"
"src/osx/cocoa/choice.mm"
"src/osx/cocoa/colour.mm"
"src/osx/cocoa/combobox.mm"
"src/osx/cocoa/dataview.mm"
+ "src/osx/cocoa/datetimectrl.mm"
"src/osx/cocoa/dialog.mm"
"src/osx/cocoa/dirdlg.mm"
"src/osx/cocoa/dnd.mm"
@@ -878,221 +804,6 @@ set(SRCS_OSX
#"src/osx/iphone/window.mm"
)
-set(SRCS_PNG
- "src/png/png.c"
- "src/png/pngerror.c"
- "src/png/pngget.c"
- "src/png/pngmem.c"
- "src/png/pngpread.c"
- "src/png/pngread.c"
- "src/png/pngrio.c"
- "src/png/pngrtran.c"
- "src/png/pngrutil.c"
- "src/png/pngset.c"
- "src/png/pngtrans.c"
- "src/png/pngwio.c"
- "src/png/pngwrite.c"
- "src/png/pngwtran.c"
- "src/png/pngwutil.c")
-
-set(SRCS_PROPGRID
- "src/propgrid/advprops.cpp"
- "src/propgrid/editors.cpp"
- "src/propgrid/manager.cpp"
- "src/propgrid/property.cpp"
- "src/propgrid/propgrid.cpp"
- "src/propgrid/propgridiface.cpp"
- "src/propgrid/propgridpagestate.cpp"
- "src/propgrid/props.cpp")
-
-set(SRCS_REGEX
- "src/regex/regcomp.c"
- "src/regex/regerror.c"
- "src/regex/regexec.c"
- "src/regex/regfree.c")
-
-set(SRCS_RIBBON
- "src/ribbon/art_aui.cpp"
- "src/ribbon/art_internal.cpp"
- "src/ribbon/art_msw.cpp"
- "src/ribbon/bar.cpp"
- "src/ribbon/buttonbar.cpp"
- "src/ribbon/control.cpp"
- "src/ribbon/gallery.cpp"
- "src/ribbon/page.cpp"
- "src/ribbon/panel.cpp"
- "src/ribbon/toolbar.cpp")
-
-set(SRCS_RICHTEXT
- #"src/richtext/richtextbackgroundpage.cpp"
- #"src/richtext/richtextborderspage.cpp"
- "src/richtext/richtextbuffer.cpp"
- #"src/richtext/richtextbulletspage.cpp"
- "src/richtext/richtextctrl.cpp"
- #"src/richtext/richtextfontpage.cpp"
- "src/richtext/richtextformatdlg.cpp"
- "src/richtext/richtexthtml.cpp"
- "src/richtext/richtextimagedlg.cpp"
- #"src/richtext/richtextindentspage.cpp"
- #"src/richtext/richtextliststylepage.cpp"
- #"src/richtext/richtextmarginspage.cpp"
- "src/richtext/richtextprint.cpp"
- #"src/richtext/richtextsizepage.cpp"
- "src/richtext/richtextstyledlg.cpp"
- #"src/richtext/richtextstylepage.cpp"
- "src/richtext/richtextstyles.cpp"
- "src/richtext/richtextsymboldlg.cpp"
- #"src/richtext/richtexttabspage.cpp"
- "src/richtext/richtextxml.cpp")
-
-set(SRCS_STC
- "src/stc/PlatWX.cpp"
- "src/stc/ScintillaWX.cpp"
- "src/stc/scintilla/src/AutoComplete.cxx"
- "src/stc/scintilla/src/CallTip.cxx"
- "src/stc/scintilla/src/CellBuffer.cxx"
- "src/stc/scintilla/src/CharClassify.cxx"
- "src/stc/scintilla/src/ContractionState.cxx"
- "src/stc/scintilla/src/Decoration.cxx"
- "src/stc/scintilla/src/Document.cxx"
- "src/stc/scintilla/src/DocumentAccessor.cxx"
- "src/stc/scintilla/src/Editor.cxx"
- "src/stc/scintilla/src/ExternalLexer.cxx"
- "src/stc/scintilla/src/Indicator.cxx"
- "src/stc/scintilla/src/KeyMap.cxx"
- "src/stc/scintilla/src/KeyWords.cxx"
- "src/stc/scintilla/src/LexAPDL.cxx"
- "src/stc/scintilla/src/LexASY.cxx"
- "src/stc/scintilla/src/LexAU3.cxx"
- "src/stc/scintilla/src/LexAVE.cxx"
- "src/stc/scintilla/src/LexAbaqus.cxx"
- "src/stc/scintilla/src/LexAda.cxx"
- "src/stc/scintilla/src/LexAsm.cxx"
- "src/stc/scintilla/src/LexAsn1.cxx"
- "src/stc/scintilla/src/LexBaan.cxx"
- "src/stc/scintilla/src/LexBash.cxx"
- "src/stc/scintilla/src/LexBasic.cxx"
- "src/stc/scintilla/src/LexBullant.cxx"
- "src/stc/scintilla/src/LexCLW.cxx"
- "src/stc/scintilla/src/LexCOBOL.cxx"
- "src/stc/scintilla/src/LexCPP.cxx"
- "src/stc/scintilla/src/LexCSS.cxx"
- "src/stc/scintilla/src/LexCaml.cxx"
- "src/stc/scintilla/src/LexCmake.cxx"
- "src/stc/scintilla/src/LexConf.cxx"
- "src/stc/scintilla/src/LexCrontab.cxx"
- "src/stc/scintilla/src/LexCsound.cxx"
- "src/stc/scintilla/src/LexD.cxx"
- "src/stc/scintilla/src/LexEScript.cxx"
- "src/stc/scintilla/src/LexEiffel.cxx"
- "src/stc/scintilla/src/LexErlang.cxx"
- "src/stc/scintilla/src/LexFlagship.cxx"
- "src/stc/scintilla/src/LexForth.cxx"
- "src/stc/scintilla/src/LexFortran.cxx"
- "src/stc/scintilla/src/LexGAP.cxx"
- "src/stc/scintilla/src/LexGui4Cli.cxx"
- "src/stc/scintilla/src/LexHTML.cxx"
- "src/stc/scintilla/src/LexHaskell.cxx"
- "src/stc/scintilla/src/LexInno.cxx"
- "src/stc/scintilla/src/LexKix.cxx"
- "src/stc/scintilla/src/LexLisp.cxx"
- "src/stc/scintilla/src/LexLout.cxx"
- "src/stc/scintilla/src/LexLua.cxx"
- "src/stc/scintilla/src/LexMMIXAL.cxx"
- "src/stc/scintilla/src/LexMPT.cxx"
- "src/stc/scintilla/src/LexMSSQL.cxx"
- "src/stc/scintilla/src/LexMagik.cxx"
- "src/stc/scintilla/src/LexMarkdown.cxx"
- "src/stc/scintilla/src/LexMatlab.cxx"
- "src/stc/scintilla/src/LexMetapost.cxx"
- "src/stc/scintilla/src/LexMySQL.cxx"
- "src/stc/scintilla/src/LexNimrod.cxx"
- "src/stc/scintilla/src/LexNsis.cxx"
- "src/stc/scintilla/src/LexOpal.cxx"
- "src/stc/scintilla/src/LexOthers.cxx"
- "src/stc/scintilla/src/LexPB.cxx"
- "src/stc/scintilla/src/LexPLM.cxx"
- "src/stc/scintilla/src/LexPOV.cxx"
- "src/stc/scintilla/src/LexPS.cxx"
- "src/stc/scintilla/src/LexPascal.cxx"
- "src/stc/scintilla/src/LexPerl.cxx"
- "src/stc/scintilla/src/LexPowerPro.cxx"
- "src/stc/scintilla/src/LexPowerShell.cxx"
- "src/stc/scintilla/src/LexProgress.cxx"
- "src/stc/scintilla/src/LexPython.cxx"
- "src/stc/scintilla/src/LexR.cxx"
- "src/stc/scintilla/src/LexRebol.cxx"
- "src/stc/scintilla/src/LexRuby.cxx"
- "src/stc/scintilla/src/LexSML.cxx"
- "src/stc/scintilla/src/LexSQL.cxx"
- "src/stc/scintilla/src/LexScriptol.cxx"
- "src/stc/scintilla/src/LexSmalltalk.cxx"
- "src/stc/scintilla/src/LexSorcus.cxx"
- "src/stc/scintilla/src/LexSpecman.cxx"
- "src/stc/scintilla/src/LexSpice.cxx"
- "src/stc/scintilla/src/LexTACL.cxx"
- "src/stc/scintilla/src/LexTADS3.cxx"
- "src/stc/scintilla/src/LexTAL.cxx"
- "src/stc/scintilla/src/LexTCL.cxx"
- "src/stc/scintilla/src/LexTeX.cxx"
- "src/stc/scintilla/src/LexVB.cxx"
- "src/stc/scintilla/src/LexVHDL.cxx"
- "src/stc/scintilla/src/LexVerilog.cxx"
- "src/stc/scintilla/src/LexYAML.cxx"
- "src/stc/scintilla/src/LineMarker.cxx"
- "src/stc/scintilla/src/PerLine.cxx"
- "src/stc/scintilla/src/PositionCache.cxx"
- "src/stc/scintilla/src/PropSet.cxx"
- "src/stc/scintilla/src/RESearch.cxx"
- "src/stc/scintilla/src/RunStyles.cxx"
- "src/stc/scintilla/src/ScintillaBase.cxx"
- "src/stc/scintilla/src/Selection.cxx"
- "src/stc/scintilla/src/Style.cxx"
- "src/stc/scintilla/src/StyleContext.cxx"
- "src/stc/scintilla/src/UniConversion.cxx"
- "src/stc/scintilla/src/ViewStyle.cxx"
- "src/stc/scintilla/src/WindowAccessor.cxx"
- "src/stc/scintilla/src/XPM.cxx"
- "src/stc/stc.cpp")
-
-set(SRCS_TIFF
- "src/tiff/libtiff/tif_aux.c"
- "src/tiff/libtiff/tif_close.c"
- "src/tiff/libtiff/tif_codec.c"
- "src/tiff/libtiff/tif_color.c"
- "src/tiff/libtiff/tif_compress.c"
- "src/tiff/libtiff/tif_dir.c"
- "src/tiff/libtiff/tif_dirinfo.c"
- "src/tiff/libtiff/tif_dirread.c"
- "src/tiff/libtiff/tif_dirwrite.c"
- "src/tiff/libtiff/tif_dumpmode.c"
- "src/tiff/libtiff/tif_error.c"
- "src/tiff/libtiff/tif_extension.c"
- "src/tiff/libtiff/tif_fax3.c"
- "src/tiff/libtiff/tif_fax3sm.c"
- "src/tiff/libtiff/tif_flush.c"
- "src/tiff/libtiff/tif_getimage.c"
- "src/tiff/libtiff/tif_jpeg.c"
- "src/tiff/libtiff/tif_luv.c"
- "src/tiff/libtiff/tif_lzw.c"
- "src/tiff/libtiff/tif_next.c"
- "src/tiff/libtiff/tif_ojpeg.c"
- "src/tiff/libtiff/tif_open.c"
- "src/tiff/libtiff/tif_packbits.c"
- "src/tiff/libtiff/tif_pixarlog.c"
- "src/tiff/libtiff/tif_predict.c"
- "src/tiff/libtiff/tif_print.c"
- "src/tiff/libtiff/tif_read.c"
- "src/tiff/libtiff/tif_strip.c"
- "src/tiff/libtiff/tif_swab.c"
- "src/tiff/libtiff/tif_thunder.c"
- "src/tiff/libtiff/tif_tile.c"
- "src/tiff/libtiff/tif_unix.c"
- "src/tiff/libtiff/tif_version.c"
- "src/tiff/libtiff/tif_warning.c"
- "src/tiff/libtiff/tif_write.c"
- "src/tiff/libtiff/tif_zip.c")
-
set(SRCS_UNIX
"src/unix/apptraits.cpp"
"src/unix/appunix.cpp"
@@ -1127,87 +838,6 @@ set(SRCS_UNIXGTK
"src/unix/uiactionx11.cpp"
"src/unix/utilsx11.cpp")
-set(SRCS_XRC
- "src/xml/xml.cpp"
- "src/xrc/xh_animatctrl.cpp"
- "src/xrc/xh_bmp.cpp"
- "src/xrc/xh_bmpbt.cpp"
- "src/xrc/xh_bmpcbox.cpp"
- "src/xrc/xh_bttn.cpp"
- "src/xrc/xh_cald.cpp"
- "src/xrc/xh_chckb.cpp"
- "src/xrc/xh_chckl.cpp"
- "src/xrc/xh_choic.cpp"
- "src/xrc/xh_choicbk.cpp"
- "src/xrc/xh_clrpicker.cpp"
- "src/xrc/xh_cmdlinkbn.cpp"
- "src/xrc/xh_collpane.cpp"
- "src/xrc/xh_combo.cpp"
- "src/xrc/xh_comboctrl.cpp"
- "src/xrc/xh_datectrl.cpp"
- "src/xrc/xh_dirpicker.cpp"
- "src/xrc/xh_dlg.cpp"
- "src/xrc/xh_editlbox.cpp"
- "src/xrc/xh_filectrl.cpp"
- "src/xrc/xh_filepicker.cpp"
- "src/xrc/xh_fontpicker.cpp"
- "src/xrc/xh_frame.cpp"
- "src/xrc/xh_gauge.cpp"
- "src/xrc/xh_gdctl.cpp"
- "src/xrc/xh_grid.cpp"
- "src/xrc/xh_html.cpp"
- "src/xrc/xh_htmllbox.cpp"
- "src/xrc/xh_hyperlink.cpp"
- "src/xrc/xh_listb.cpp"
- "src/xrc/xh_listbk.cpp"
- "src/xrc/xh_listc.cpp"
- "src/xrc/xh_mdi.cpp"
- "src/xrc/xh_menu.cpp"
- "src/xrc/xh_notbk.cpp"
- "src/xrc/xh_odcombo.cpp"
- "src/xrc/xh_panel.cpp"
- "src/xrc/xh_propdlg.cpp"
- "src/xrc/xh_radbt.cpp"
- "src/xrc/xh_radbx.cpp"
- "src/xrc/xh_richtext.cpp"
- "src/xrc/xh_scrol.cpp"
- "src/xrc/xh_scwin.cpp"
- "src/xrc/xh_sizer.cpp"
- "src/xrc/xh_slidr.cpp"
- "src/xrc/xh_spin.cpp"
- "src/xrc/xh_split.cpp"
- "src/xrc/xh_srchctrl.cpp"
- "src/xrc/xh_statbar.cpp"
- "src/xrc/xh_stbmp.cpp"
- "src/xrc/xh_stbox.cpp"
- "src/xrc/xh_stlin.cpp"
- "src/xrc/xh_sttxt.cpp"
- "src/xrc/xh_text.cpp"
- "src/xrc/xh_tglbtn.cpp"
- "src/xrc/xh_toolb.cpp"
- "src/xrc/xh_toolbk.cpp"
- "src/xrc/xh_tree.cpp"
- "src/xrc/xh_treebk.cpp"
- "src/xrc/xh_unkwn.cpp"
- "src/xrc/xh_wizrd.cpp"
- "src/xrc/xmladv.cpp"
- "src/xrc/xmlres.cpp"
- "src/xrc/xmlrsall.cpp")
-
-set(SRCS_ZLIB
- "src/zlib/adler32.c"
- "src/zlib/compress.c"
- "src/zlib/crc32.c"
- "src/zlib/deflate.c"
- "src/zlib/gzio.c"
- "src/zlib/infback.c"
- "src/zlib/inffast.c"
- "src/zlib/inflate.c"
- "src/zlib/inftrees.c"
- "src/zlib/trees.c"
- "src/zlib/uncompr.c"
- "src/zlib/zutil.c")
-
include_directories(.)
include_directories(include)
@@ -1217,44 +847,50 @@ set(SRCS
${SRCS_GENERIC})
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
+ add_definitions(-D__WXOSX_COCOA__)
set(SRCS
${SRCS}
${SRCS_GENERICOSX}
${SRCS_OSX}
${SRCS_UNIX})
+ include_directories(../libpng)
+ add_subdirectory(../libpng ../libpng)
+ set(LIBS
+ png
+ iconv
+ ${APPKIT_LIBRARY}
+ ${APPSERV_LIBRARY}
+ ${ATB_LIBRARY}
+ ${CARBON_LIBRARY}
+ ${COCOA_LIBRARY}
+ ${COREFUND_LIBRARY}
+ ${CORESERV_LIBRARY}
+ ${IOK_LIBRARY}
+ ${QUICKTIME_LIBRARY})
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
+ add_definitions(-D__WXGTK__)
set(SRCS
${SRCS}
${SRCS_GENERICGTK}
${SRCS_GTK}
${SRCS_UNIX}
${SRCS_UNIXGTK})
+ set(LIBS
+ png
+ ${GTHREAD2_LIBRARIES}
+ ${PANGOCAIRO_LIBRARIES}
+ ${GTK2_LIBRARIES})
else()
+ add_definitions(-D__WXMSW__)
set(SRCS
${SRCS}
${SRCS_MSW})
endif()
-add_definitions(-D__WXOSX_COCOA__)
add_definitions(-DWXBUILDING)
add_definitions(-Wno-deprecated-declarations)
add_definitions(-Wno-shadow)
-set(LIBS
- iconv
- ${APPKIT_LIBRARY}
- ${APPSERV_LIBRARY}
- ${ATB_LIBRARY}
- ${CARBON_LIBRARY}
- ${COCOA_LIBRARY}
- ${COREFUND_LIBRARY}
- ${CORESERV_LIBRARY}
- ${IOK_LIBRARY}
- ${QUICKTIME_LIBRARY}
- )
-include_directories(../libpng)
-add_subdirectory(../libpng ../libpng)
-list(APPEND LIBS png)
-
-add_library(wx STATIC ${SRCS})
+enable_precompiled_headers(include/wx/wxprec.h src/common/dummy.cpp SRCS)
+add_library(wx STATIC ${PNG_SRCS} ${SRCS})
target_link_libraries(wx ${LIBS})
diff --git a/Externals/wxWidgets3/SConscript b/Externals/wxWidgets3/SConscript
index 4385282e66..c894dcb2a0 100644
--- a/Externals/wxWidgets3/SConscript
+++ b/Externals/wxWidgets3/SConscript
@@ -13,7 +13,7 @@ wxenv = env.Clone()
wxenv['CCFLAGS'] += ['-Wno-deprecated-declarations', '-Wno-shadow']
wxenv['CPPDEFINES'] += ['WXBUILDING']
-# gtk, msw, osx and shared files as of r67291
+# gtk, msw, osx and shared files as of r70933
aui = [
'src/aui/auibar.cpp',
@@ -27,6 +27,7 @@ aui = [
common = [
'src/common/accelcmn.cpp',
#'src/common/accesscmn.cpp',
+ 'src/common/affinematrix2d.cpp',
'src/common/anidecod.cpp',
'src/common/animatecmn.cpp',
'src/common/any.cpp',
@@ -231,6 +232,7 @@ common = [
'src/common/textcmn.cpp',
'src/common/textentrycmn.cpp',
'src/common/textfile.cpp',
+ 'src/common/time.cpp',
'src/common/timercmn.cpp',
'src/common/timerimpl.cpp',
'src/common/tokenzr.cpp',
@@ -249,6 +251,7 @@ common = [
'src/common/valnum.cpp',
'src/common/valtext.cpp',
'src/common/variant.cpp',
+ #'src/common/webview.cpp',
'src/common/wfstream.cpp',
'src/common/wincmn.cpp',
'src/common/windowid.cpp',
@@ -264,25 +267,9 @@ common = [
'src/common/zstream.cpp',
]
-expat = [
- #'src/expat/lib/xmlparse.c',
- #'src/expat/lib/xmlrole.c',
- #'src/expat/lib/xmltok.c',
- #'src/expat/lib/xmltok_impl.c',
- #'src/expat/lib/xmltok_ns.c',
- #'src/expat/xmlwf/codepage.c',
- #'src/expat/xmlwf/ct.c',
- #'src/expat/xmlwf/readfilemap.c',
- #'src/expat/xmlwf/unixfilemap.c',
- #'src/expat/xmlwf/win32filemap.c',
- #'src/expat/xmlwf/xmlfile.c',
- #'src/expat/xmlwf/xmlmime.c',
- #'src/expat/xmlwf/xmlwf.c',
- #'src/expat/xmlwf/xmlwin32url.cxx',
- ]
-
generic = [
'src/generic/aboutdlgg.cpp',
+ 'src/generic/bannerwindow.cpp',
'src/generic/bmpcboxg.cpp',
'src/generic/busyinfo.cpp',
'src/generic/buttonbar.cpp',
@@ -327,7 +314,6 @@ generic = [
'src/generic/notifmsgg.cpp',
'src/generic/numdlgg.cpp',
'src/generic/odcombo.cpp',
- 'src/generic/panelg.cpp',
'src/generic/printps.cpp',
'src/generic/prntdlgg.cpp',
'src/generic/progdlgg.cpp',
@@ -348,12 +334,14 @@ generic = [
'src/generic/statusbr.cpp',
'src/generic/tabg.cpp',
'src/generic/textdlgg.cpp',
+ 'src/generic/timectrlg.cpp',
#'src/generic/timer.cpp',
'src/generic/tipdlg.cpp',
'src/generic/tipwin.cpp',
'src/generic/toolbkg.cpp',
'src/generic/treebkg.cpp',
'src/generic/treectlg.cpp',
+ 'src/generic/treelist.cpp',
'src/generic/vlbox.cpp',
'src/generic/vscroll.cpp',
'src/generic/wizard.cpp',
@@ -379,9 +367,10 @@ genericosx = [
gtk = [
'src/gtk/aboutdlg.cpp',
'src/gtk/animate.cpp',
+ 'src/gtk/anybutton.cpp',
'src/gtk/app.cpp',
'src/gtk/artgtk.cpp',
- 'src/gtk/assertdlg_gtk.c',
+ 'src/gtk/assertdlg_gtk.cpp',
'src/gtk/bitmap.cpp',
'src/gtk/bmpbuttn.cpp',
'src/gtk/bmpcbox.cpp',
@@ -432,6 +421,7 @@ gtk = [
'src/gtk/mnemonics.cpp',
'src/gtk/msgdlg.cpp',
'src/gtk/nativewin.cpp',
+ 'src/gtk/nonownedwnd.cpp',
'src/gtk/notebook.cpp',
'src/gtk/pen.cpp',
'src/gtk/popupwin.cpp',
@@ -462,93 +452,15 @@ gtk = [
'src/gtk/toplevel.cpp',
'src/gtk/treeentry_gtk.c',
'src/gtk/utilsgtk.cpp',
+ #'src/gtk/webview_webkit.cpp',
'src/gtk/win_gtk.cpp',
'src/gtk/window.cpp',
]
-html = [
- 'src/html/chm.cpp',
- 'src/html/helpctrl.cpp',
- 'src/html/helpdata.cpp',
- 'src/html/helpdlg.cpp',
- 'src/html/helpfrm.cpp',
- 'src/html/helpwnd.cpp',
- 'src/html/htmlcell.cpp',
- #'src/html/htmlctrl/webkit/webkit.mm',
- 'src/html/htmlfilt.cpp',
- 'src/html/htmlpars.cpp',
- 'src/html/htmltag.cpp',
- 'src/html/htmlwin.cpp',
- 'src/html/htmprint.cpp',
- 'src/html/m_dflist.cpp',
- 'src/html/m_fonts.cpp',
- 'src/html/m_hline.cpp',
- 'src/html/m_image.cpp',
- 'src/html/m_layout.cpp',
- 'src/html/m_links.cpp',
- 'src/html/m_list.cpp',
- 'src/html/m_pre.cpp',
- 'src/html/m_span.cpp',
- 'src/html/m_style.cpp',
- 'src/html/m_tables.cpp',
- 'src/html/styleparams.cpp',
- 'src/html/winpars.cpp',
- ]
-
-jpeg = [
- 'src/jpeg/jcapimin.c',
- 'src/jpeg/jcapistd.c',
- 'src/jpeg/jccoefct.c',
- 'src/jpeg/jccolor.c',
- 'src/jpeg/jcdctmgr.c',
- 'src/jpeg/jchuff.c',
- 'src/jpeg/jcinit.c',
- 'src/jpeg/jcmainct.c',
- 'src/jpeg/jcmarker.c',
- 'src/jpeg/jcmaster.c',
- 'src/jpeg/jcomapi.c',
- 'src/jpeg/jcparam.c',
- 'src/jpeg/jcphuff.c',
- 'src/jpeg/jcprepct.c',
- 'src/jpeg/jcsample.c',
- 'src/jpeg/jctrans.c',
- 'src/jpeg/jdapimin.c',
- 'src/jpeg/jdapistd.c',
- 'src/jpeg/jdatadst.c',
- 'src/jpeg/jdatasrc.c',
- 'src/jpeg/jdcoefct.c',
- 'src/jpeg/jdcolor.c',
- 'src/jpeg/jddctmgr.c',
- 'src/jpeg/jdhuff.c',
- 'src/jpeg/jdinput.c',
- 'src/jpeg/jdmainct.c',
- 'src/jpeg/jdmarker.c',
- 'src/jpeg/jdmaster.c',
- 'src/jpeg/jdmerge.c',
- 'src/jpeg/jdphuff.c',
- 'src/jpeg/jdpostct.c',
- 'src/jpeg/jdsample.c',
- 'src/jpeg/jdtrans.c',
- 'src/jpeg/jerror.c',
- 'src/jpeg/jfdctflt.c',
- 'src/jpeg/jfdctfst.c',
- 'src/jpeg/jfdctint.c',
- 'src/jpeg/jidctflt.c',
- 'src/jpeg/jidctfst.c',
- 'src/jpeg/jidctint.c',
- 'src/jpeg/jidctred.c',
- 'src/jpeg/jmemansi.c',
- 'src/jpeg/jmemmgr.c',
- 'src/jpeg/jmemname.c',
- 'src/jpeg/jmemnobs.c',
- 'src/jpeg/jquant1.c',
- 'src/jpeg/jquant2.c',
- 'src/jpeg/jutils.c',
- ]
-
msw = [
'src/msw/aboutdlg.cpp',
'src/msw/accel.cpp',
+ 'src/msw/anybutton.cpp',
'src/msw/app.cpp',
'src/msw/artmsw.cpp',
'src/msw/basemsw.cpp',
@@ -574,6 +486,7 @@ msw = [
'src/msw/data.cpp',
'src/msw/datecontrols.cpp',
'src/msw/datectrl.cpp',
+ 'src/msw/datetimectrl.cpp',
'src/msw/dc.cpp',
'src/msw/dcclient.cpp',
'src/msw/dcmemory.cpp',
@@ -631,6 +544,7 @@ msw = [
'src/msw/mslu.cpp',
'src/msw/nativdlg.cpp',
'src/msw/nativewin.cpp',
+ 'src/msw/nonownedwnd.cpp',
'src/msw/notebook.cpp',
'src/msw/notifmsg.cpp',
'src/msw/ole/access.cpp',
@@ -678,6 +592,7 @@ msw = [
'src/msw/textentry.cpp',
'src/msw/tglbtn.cpp',
'src/msw/thread.cpp',
+ 'src/msw/timectrl.cpp',
'src/msw/timer.cpp',
'src/msw/toolbar.cpp',
'src/msw/tooltip.cpp',
@@ -691,6 +606,7 @@ msw = [
'src/msw/uxtheme.cpp',
'src/msw/version.rc',
'src/msw/volume.cpp',
+ #'src/msw/webview_ie.cpp',
'src/msw/wince/checklst.cpp',
'src/msw/wince/choicece.cpp',
'src/msw/wince/crt.cpp',
@@ -708,6 +624,7 @@ msw = [
osx = [
'src/osx/accel.cpp',
+ 'src/osx/anybutton_osx.cpp',
'src/osx/artmac.cpp',
'src/osx/bmpbuttn_osx.cpp',
'src/osx/brush.cpp',
@@ -717,6 +634,8 @@ osx = [
'src/osx/choice_osx.cpp',
'src/osx/combobox_osx.cpp',
'src/osx/dataview_osx.cpp',
+ 'src/osx/datectrl_osx.cpp',
+ 'src/osx/datetimectrl_osx.cpp',
'src/osx/dialog_osx.cpp',
'src/osx/dnd_osx.cpp',
'src/osx/fontutil.cpp',
@@ -746,12 +665,15 @@ osx = [
'src/osx/textctrl_osx.cpp',
'src/osx/textentry_osx.cpp',
'src/osx/tglbtn_osx.cpp',
+ 'src/osx/timectrl_osx.cpp',
'src/osx/toolbar_osx.cpp',
'src/osx/toplevel_osx.cpp',
'src/osx/uiaction_osx.cpp',
'src/osx/utils_osx.cpp',
+ #'src/osx/webview_webkit.mm',
'src/osx/window_osx.cpp',
#'src/osx/carbon/aboutdlg.cpp',
+ 'src/osx/carbon/anybutton.cpp',
'src/osx/carbon/app.cpp',
#'src/osx/carbon/bmpbuttn.cpp',
#'src/osx/carbon/button.cpp',
@@ -829,12 +751,14 @@ osx = [
'src/osx/carbon/utilscocoa.mm',
#'src/osx/carbon/window.cpp',
'src/osx/cocoa/aboutdlg.mm',
+ 'src/osx/cocoa/anybutton.mm',
'src/osx/cocoa/button.mm',
'src/osx/cocoa/checkbox.mm',
'src/osx/cocoa/choice.mm',
'src/osx/cocoa/colour.mm',
'src/osx/cocoa/combobox.mm',
'src/osx/cocoa/dataview.mm',
+ 'src/osx/cocoa/datetimectrl.mm',
'src/osx/cocoa/dialog.mm',
'src/osx/cocoa/dirdlg.mm',
'src/osx/cocoa/dnd.mm',
@@ -902,228 +826,6 @@ osx = [
#'src/osx/iphone/window.mm',
]
-png = [
- 'src/png/png.c',
- 'src/png/pngerror.c',
- 'src/png/pngget.c',
- 'src/png/pngmem.c',
- 'src/png/pngpread.c',
- 'src/png/pngread.c',
- 'src/png/pngrio.c',
- 'src/png/pngrtran.c',
- 'src/png/pngrutil.c',
- 'src/png/pngset.c',
- 'src/png/pngtrans.c',
- 'src/png/pngwio.c',
- 'src/png/pngwrite.c',
- 'src/png/pngwtran.c',
- 'src/png/pngwutil.c',
- ]
-
-propgrid = [
- 'src/propgrid/advprops.cpp',
- 'src/propgrid/editors.cpp',
- 'src/propgrid/manager.cpp',
- 'src/propgrid/property.cpp',
- 'src/propgrid/propgrid.cpp',
- 'src/propgrid/propgridiface.cpp',
- 'src/propgrid/propgridpagestate.cpp',
- 'src/propgrid/props.cpp',
- ]
-
-regex = [
- 'src/regex/regcomp.c',
- 'src/regex/regerror.c',
- 'src/regex/regexec.c',
- 'src/regex/regfree.c',
- ]
-
-ribbon = [
- 'src/ribbon/art_aui.cpp',
- 'src/ribbon/art_internal.cpp',
- 'src/ribbon/art_msw.cpp',
- 'src/ribbon/bar.cpp',
- 'src/ribbon/buttonbar.cpp',
- 'src/ribbon/control.cpp',
- 'src/ribbon/gallery.cpp',
- 'src/ribbon/page.cpp',
- 'src/ribbon/panel.cpp',
- 'src/ribbon/toolbar.cpp',
- ]
-
-richtext = [
- #'src/richtext/richtextbackgroundpage.cpp',
- #'src/richtext/richtextborderspage.cpp',
- 'src/richtext/richtextbuffer.cpp',
- #'src/richtext/richtextbulletspage.cpp',
- 'src/richtext/richtextctrl.cpp',
- #'src/richtext/richtextfontpage.cpp',
- 'src/richtext/richtextformatdlg.cpp',
- 'src/richtext/richtexthtml.cpp',
- 'src/richtext/richtextimagedlg.cpp',
- #'src/richtext/richtextindentspage.cpp',
- #'src/richtext/richtextliststylepage.cpp',
- #'src/richtext/richtextmarginspage.cpp',
- 'src/richtext/richtextprint.cpp',
- #'src/richtext/richtextsizepage.cpp',
- 'src/richtext/richtextstyledlg.cpp',
- #'src/richtext/richtextstylepage.cpp',
- 'src/richtext/richtextstyles.cpp',
- 'src/richtext/richtextsymboldlg.cpp',
- #'src/richtext/richtexttabspage.cpp',
- 'src/richtext/richtextxml.cpp',
- ]
-
-stc = [
- 'src/stc/PlatWX.cpp',
- 'src/stc/ScintillaWX.cpp',
- 'src/stc/scintilla/src/AutoComplete.cxx',
- 'src/stc/scintilla/src/CallTip.cxx',
- 'src/stc/scintilla/src/CellBuffer.cxx',
- 'src/stc/scintilla/src/CharClassify.cxx',
- 'src/stc/scintilla/src/ContractionState.cxx',
- 'src/stc/scintilla/src/Decoration.cxx',
- 'src/stc/scintilla/src/Document.cxx',
- 'src/stc/scintilla/src/DocumentAccessor.cxx',
- 'src/stc/scintilla/src/Editor.cxx',
- 'src/stc/scintilla/src/ExternalLexer.cxx',
- 'src/stc/scintilla/src/Indicator.cxx',
- 'src/stc/scintilla/src/KeyMap.cxx',
- 'src/stc/scintilla/src/KeyWords.cxx',
- 'src/stc/scintilla/src/LexAPDL.cxx',
- 'src/stc/scintilla/src/LexASY.cxx',
- 'src/stc/scintilla/src/LexAU3.cxx',
- 'src/stc/scintilla/src/LexAVE.cxx',
- 'src/stc/scintilla/src/LexAbaqus.cxx',
- 'src/stc/scintilla/src/LexAda.cxx',
- 'src/stc/scintilla/src/LexAsm.cxx',
- 'src/stc/scintilla/src/LexAsn1.cxx',
- 'src/stc/scintilla/src/LexBaan.cxx',
- 'src/stc/scintilla/src/LexBash.cxx',
- 'src/stc/scintilla/src/LexBasic.cxx',
- 'src/stc/scintilla/src/LexBullant.cxx',
- 'src/stc/scintilla/src/LexCLW.cxx',
- 'src/stc/scintilla/src/LexCOBOL.cxx',
- 'src/stc/scintilla/src/LexCPP.cxx',
- 'src/stc/scintilla/src/LexCSS.cxx',
- 'src/stc/scintilla/src/LexCaml.cxx',
- 'src/stc/scintilla/src/LexCmake.cxx',
- 'src/stc/scintilla/src/LexConf.cxx',
- 'src/stc/scintilla/src/LexCrontab.cxx',
- 'src/stc/scintilla/src/LexCsound.cxx',
- 'src/stc/scintilla/src/LexD.cxx',
- 'src/stc/scintilla/src/LexEScript.cxx',
- 'src/stc/scintilla/src/LexEiffel.cxx',
- 'src/stc/scintilla/src/LexErlang.cxx',
- 'src/stc/scintilla/src/LexFlagship.cxx',
- 'src/stc/scintilla/src/LexForth.cxx',
- 'src/stc/scintilla/src/LexFortran.cxx',
- 'src/stc/scintilla/src/LexGAP.cxx',
- 'src/stc/scintilla/src/LexGui4Cli.cxx',
- 'src/stc/scintilla/src/LexHTML.cxx',
- 'src/stc/scintilla/src/LexHaskell.cxx',
- 'src/stc/scintilla/src/LexInno.cxx',
- 'src/stc/scintilla/src/LexKix.cxx',
- 'src/stc/scintilla/src/LexLisp.cxx',
- 'src/stc/scintilla/src/LexLout.cxx',
- 'src/stc/scintilla/src/LexLua.cxx',
- 'src/stc/scintilla/src/LexMMIXAL.cxx',
- 'src/stc/scintilla/src/LexMPT.cxx',
- 'src/stc/scintilla/src/LexMSSQL.cxx',
- 'src/stc/scintilla/src/LexMagik.cxx',
- 'src/stc/scintilla/src/LexMarkdown.cxx',
- 'src/stc/scintilla/src/LexMatlab.cxx',
- 'src/stc/scintilla/src/LexMetapost.cxx',
- 'src/stc/scintilla/src/LexMySQL.cxx',
- 'src/stc/scintilla/src/LexNimrod.cxx',
- 'src/stc/scintilla/src/LexNsis.cxx',
- 'src/stc/scintilla/src/LexOpal.cxx',
- 'src/stc/scintilla/src/LexOthers.cxx',
- 'src/stc/scintilla/src/LexPB.cxx',
- 'src/stc/scintilla/src/LexPLM.cxx',
- 'src/stc/scintilla/src/LexPOV.cxx',
- 'src/stc/scintilla/src/LexPS.cxx',
- 'src/stc/scintilla/src/LexPascal.cxx',
- 'src/stc/scintilla/src/LexPerl.cxx',
- 'src/stc/scintilla/src/LexPowerPro.cxx',
- 'src/stc/scintilla/src/LexPowerShell.cxx',
- 'src/stc/scintilla/src/LexProgress.cxx',
- 'src/stc/scintilla/src/LexPython.cxx',
- 'src/stc/scintilla/src/LexR.cxx',
- 'src/stc/scintilla/src/LexRebol.cxx',
- 'src/stc/scintilla/src/LexRuby.cxx',
- 'src/stc/scintilla/src/LexSML.cxx',
- 'src/stc/scintilla/src/LexSQL.cxx',
- 'src/stc/scintilla/src/LexScriptol.cxx',
- 'src/stc/scintilla/src/LexSmalltalk.cxx',
- 'src/stc/scintilla/src/LexSorcus.cxx',
- 'src/stc/scintilla/src/LexSpecman.cxx',
- 'src/stc/scintilla/src/LexSpice.cxx',
- 'src/stc/scintilla/src/LexTACL.cxx',
- 'src/stc/scintilla/src/LexTADS3.cxx',
- 'src/stc/scintilla/src/LexTAL.cxx',
- 'src/stc/scintilla/src/LexTCL.cxx',
- 'src/stc/scintilla/src/LexTeX.cxx',
- 'src/stc/scintilla/src/LexVB.cxx',
- 'src/stc/scintilla/src/LexVHDL.cxx',
- 'src/stc/scintilla/src/LexVerilog.cxx',
- 'src/stc/scintilla/src/LexYAML.cxx',
- 'src/stc/scintilla/src/LineMarker.cxx',
- 'src/stc/scintilla/src/PerLine.cxx',
- 'src/stc/scintilla/src/PositionCache.cxx',
- 'src/stc/scintilla/src/PropSet.cxx',
- 'src/stc/scintilla/src/RESearch.cxx',
- 'src/stc/scintilla/src/RunStyles.cxx',
- 'src/stc/scintilla/src/ScintillaBase.cxx',
- 'src/stc/scintilla/src/Selection.cxx',
- 'src/stc/scintilla/src/Style.cxx',
- 'src/stc/scintilla/src/StyleContext.cxx',
- 'src/stc/scintilla/src/UniConversion.cxx',
- 'src/stc/scintilla/src/ViewStyle.cxx',
- 'src/stc/scintilla/src/WindowAccessor.cxx',
- 'src/stc/scintilla/src/XPM.cxx',
- 'src/stc/stc.cpp',
- ]
-
-tiff = [
- 'src/tiff/libtiff/tif_aux.c',
- 'src/tiff/libtiff/tif_close.c',
- 'src/tiff/libtiff/tif_codec.c',
- 'src/tiff/libtiff/tif_color.c',
- 'src/tiff/libtiff/tif_compress.c',
- 'src/tiff/libtiff/tif_dir.c',
- 'src/tiff/libtiff/tif_dirinfo.c',
- 'src/tiff/libtiff/tif_dirread.c',
- 'src/tiff/libtiff/tif_dirwrite.c',
- 'src/tiff/libtiff/tif_dumpmode.c',
- 'src/tiff/libtiff/tif_error.c',
- 'src/tiff/libtiff/tif_extension.c',
- 'src/tiff/libtiff/tif_fax3.c',
- 'src/tiff/libtiff/tif_fax3sm.c',
- 'src/tiff/libtiff/tif_flush.c',
- 'src/tiff/libtiff/tif_getimage.c',
- 'src/tiff/libtiff/tif_jpeg.c',
- 'src/tiff/libtiff/tif_luv.c',
- 'src/tiff/libtiff/tif_lzw.c',
- 'src/tiff/libtiff/tif_next.c',
- 'src/tiff/libtiff/tif_ojpeg.c',
- 'src/tiff/libtiff/tif_open.c',
- 'src/tiff/libtiff/tif_packbits.c',
- 'src/tiff/libtiff/tif_pixarlog.c',
- 'src/tiff/libtiff/tif_predict.c',
- 'src/tiff/libtiff/tif_print.c',
- 'src/tiff/libtiff/tif_read.c',
- 'src/tiff/libtiff/tif_strip.c',
- 'src/tiff/libtiff/tif_swab.c',
- 'src/tiff/libtiff/tif_thunder.c',
- 'src/tiff/libtiff/tif_tile.c',
- 'src/tiff/libtiff/tif_unix.c',
- 'src/tiff/libtiff/tif_version.c',
- 'src/tiff/libtiff/tif_warning.c',
- 'src/tiff/libtiff/tif_write.c',
- 'src/tiff/libtiff/tif_zip.c',
- ]
-
unix = [
'src/unix/apptraits.cpp',
'src/unix/appunix.cpp',
@@ -1160,89 +862,6 @@ unixgtk = [
'src/unix/utilsx11.cpp',
]
-xrc = [
- 'src/xml/xml.cpp',
- 'src/xrc/xh_animatctrl.cpp',
- 'src/xrc/xh_bmp.cpp',
- 'src/xrc/xh_bmpbt.cpp',
- 'src/xrc/xh_bmpcbox.cpp',
- 'src/xrc/xh_bttn.cpp',
- 'src/xrc/xh_cald.cpp',
- 'src/xrc/xh_chckb.cpp',
- 'src/xrc/xh_chckl.cpp',
- 'src/xrc/xh_choic.cpp',
- 'src/xrc/xh_choicbk.cpp',
- 'src/xrc/xh_clrpicker.cpp',
- 'src/xrc/xh_cmdlinkbn.cpp',
- 'src/xrc/xh_collpane.cpp',
- 'src/xrc/xh_combo.cpp',
- 'src/xrc/xh_comboctrl.cpp',
- 'src/xrc/xh_datectrl.cpp',
- 'src/xrc/xh_dirpicker.cpp',
- 'src/xrc/xh_dlg.cpp',
- 'src/xrc/xh_editlbox.cpp',
- 'src/xrc/xh_filectrl.cpp',
- 'src/xrc/xh_filepicker.cpp',
- 'src/xrc/xh_fontpicker.cpp',
- 'src/xrc/xh_frame.cpp',
- 'src/xrc/xh_gauge.cpp',
- 'src/xrc/xh_gdctl.cpp',
- 'src/xrc/xh_grid.cpp',
- 'src/xrc/xh_html.cpp',
- 'src/xrc/xh_htmllbox.cpp',
- 'src/xrc/xh_hyperlink.cpp',
- 'src/xrc/xh_listb.cpp',
- 'src/xrc/xh_listbk.cpp',
- 'src/xrc/xh_listc.cpp',
- 'src/xrc/xh_mdi.cpp',
- 'src/xrc/xh_menu.cpp',
- 'src/xrc/xh_notbk.cpp',
- 'src/xrc/xh_odcombo.cpp',
- 'src/xrc/xh_panel.cpp',
- 'src/xrc/xh_propdlg.cpp',
- 'src/xrc/xh_radbt.cpp',
- 'src/xrc/xh_radbx.cpp',
- 'src/xrc/xh_richtext.cpp',
- 'src/xrc/xh_scrol.cpp',
- 'src/xrc/xh_scwin.cpp',
- 'src/xrc/xh_sizer.cpp',
- 'src/xrc/xh_slidr.cpp',
- 'src/xrc/xh_spin.cpp',
- 'src/xrc/xh_split.cpp',
- 'src/xrc/xh_srchctrl.cpp',
- 'src/xrc/xh_statbar.cpp',
- 'src/xrc/xh_stbmp.cpp',
- 'src/xrc/xh_stbox.cpp',
- 'src/xrc/xh_stlin.cpp',
- 'src/xrc/xh_sttxt.cpp',
- 'src/xrc/xh_text.cpp',
- 'src/xrc/xh_tglbtn.cpp',
- 'src/xrc/xh_toolb.cpp',
- 'src/xrc/xh_toolbk.cpp',
- 'src/xrc/xh_tree.cpp',
- 'src/xrc/xh_treebk.cpp',
- 'src/xrc/xh_unkwn.cpp',
- 'src/xrc/xh_wizrd.cpp',
- 'src/xrc/xmladv.cpp',
- 'src/xrc/xmlres.cpp',
- 'src/xrc/xmlrsall.cpp',
- ]
-
-zlib = [
- 'src/zlib/adler32.c',
- 'src/zlib/compress.c',
- 'src/zlib/crc32.c',
- 'src/zlib/deflate.c',
- 'src/zlib/gzio.c',
- 'src/zlib/infback.c',
- 'src/zlib/inffast.c',
- 'src/zlib/inflate.c',
- 'src/zlib/inftrees.c',
- 'src/zlib/trees.c',
- 'src/zlib/uncompr.c',
- 'src/zlib/zutil.c',
- ]
-
files = aui + common + generic
if sys.platform == 'win32':
diff --git a/Externals/wxWidgets3/build/msw/wx_base.vcxproj b/Externals/wxWidgets3/build/msw/wx_base.vcxproj
new file mode 100644
index 0000000000..d99f6f8b94
--- /dev/null
+++ b/Externals/wxWidgets3/build/msw/wx_base.vcxproj
@@ -0,0 +1,1686 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Debug
+ x64
+
+
+ Release
+ Win32
+
+
+ Release
+ x64
+
+
+ DebugFast
+ Win32
+
+
+ DebugFast
+ x64
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Create
+ Create
+ Create
+ Create
+ Create
+ Create
+
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+ NotUsing
+ NotUsing
+ NotUsing
+ NotUsing
+ NotUsing
+ NotUsing
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+
+ {01573c36-ac6e-49f6-94ba-572517eb9740}
+
+
+ {3e1339f5-9311-4122-9442-369702e8fcad}
+
+
+
+ wxWidgets
+ {1C8436C9-DBAF-42BE-83BC-CF3EC9175ABE}
+ wxBase28
+
+
+
+ StaticLibrary
+ Unicode
+
+
+ StaticLibrary
+ Unicode
+
+
+ StaticLibrary
+ Unicode
+
+
+ StaticLibrary
+ Unicode
+
+
+ StaticLibrary
+ Unicode
+
+
+ StaticLibrary
+ Unicode
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ __WXDEBUG__;%(PreprocessorDefinitions)
+
+
+
+
+
+
+
+
+
+ __WXDEBUG__;%(PreprocessorDefinitions)
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Externals/wxWidgets3/build/msw/wx_base.vcxproj.filters b/Externals/wxWidgets3/build/msw/wx_base.vcxproj.filters
new file mode 100644
index 0000000000..e11b02d82e
--- /dev/null
+++ b/Externals/wxWidgets3/build/msw/wx_base.vcxproj.filters
@@ -0,0 +1,3425 @@
+
+
+
+
+ {ea19c29f-6825-47dc-b54d-ee464810b353}
+
+
+ {e1077817-0cf8-4a28-b86f-34e85984db45}
+
+
+ {887bf107-6891-4a1f-a32f-5be1aafc0535}
+
+
+ {303d663d-e46a-4394-9423-5d6bd35169f9}
+
+
+ {dab87ac5-435c-4c4c-a685-966df965635c}
+
+
+ {dd338b6e-5f9c-42f6-b1c3-e4db2c484490}
+
+
+ {7a3796f6-d621-4a89-a785-d0ec354b9652}
+
+
+ {3112ece1-9900-49c2-b90d-7e9c956d3cfb}
+
+
+ {6f4ef8f1-41e1-4bd6-8940-ac03c6b9218c}
+
+
+ {c4049f2a-35bb-494f-a789-c83ed28f18f1}
+
+
+ {302035ca-b308-4626-83f9-60c08f3015c9}
+
+
+
+
+ Setup Headers
+
+
+ Setup Headers
+
+
+ Setup Headers
+
+
+ Setup Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW\private
+
+
+ Headers\MSW\private
+
+
+ Headers\MSW\private
+
+
+ Headers\MSW\private
+
+
+ Headers\MSW\private
+
+
+ Headers\MSW\private
+
+
+ Headers\MSW\private
+
+
+ Headers\MSW\private
+
+
+ Headers\MSW\private
+
+
+ Headers\MSW\private
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\MSW
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\Generic
+
+
+ Headers\MSW\ole
+
+
+ Headers\MSW\ole
+
+
+ Headers\MSW\ole
+
+
+ Headers\MSW\ole
+
+
+ Headers\MSW\ole
+
+
+ Headers\MSW\ole
+
+
+ Headers\MSW\ole
+
+
+ Headers\MSW\ole
+
+
+ Headers\MSW\ole
+
+
+ Headers\MSW\ole
+
+
+
+
+ AUI
+
+
+ AUI
+
+
+ AUI
+
+
+ AUI
+
+
+ AUI
+
+
+ AUI
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Common
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ Generic
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW
+
+
+ MSW\ole
+
+
+ MSW\ole
+
+
+ MSW\ole
+
+
+ MSW\ole
+
+
+ MSW\ole
+
+
+ MSW\ole
+
+
+ MSW\ole
+
+
+ MSW\ole
+
+
+
+
+ Common
+
+
+
+
+
+ MSW
+
+
+
\ No newline at end of file
diff --git a/Externals/wxWidgets3/build_wx.sh b/Externals/wxWidgets3/build_wx.sh
new file mode 100755
index 0000000000..2173572bfa
--- /dev/null
+++ b/Externals/wxWidgets3/build_wx.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+svn co -r 70933 http://svn.wxwidgets.org/svn/wx/wxWidgets/trunk wxWidgets
+cd wxWidgets
+
+case $OSTYPE in
+darwin*)
+BACKEND="osx_cocoa"
+;;
+linux*)
+BACKEND="gtk"
+;;
+esac
+
+mkdir build-local
+cd build-local
+
+../configure --with-$BACKEND --disable-shared --enable-unicode --disable-compat28 --disable-exceptions --disable-fswatcher --without-regex --without-expat --disable-xml --disable-ribbon --disable-propgrid --disable-stc --disable-html --disable-richtext --without-libjpeg --without-libtiff --disable-webview --disable-markup
+make
diff --git a/Externals/wxWidgets3/include/wx/aboutdlg.h b/Externals/wxWidgets3/include/wx/aboutdlg.h
index 0becacd2a0..0552f91fd1 100644
--- a/Externals/wxWidgets3/include/wx/aboutdlg.h
+++ b/Externals/wxWidgets3/include/wx/aboutdlg.h
@@ -3,7 +3,7 @@
// Purpose: declaration of wxAboutDialog class
// Author: Vadim Zeitlin
// Created: 2006-10-07
-// RCS-ID: $Id: aboutdlg.h 61534 2009-07-25 22:53:23Z VZ $
+// RCS-ID: $Id: aboutdlg.h 67681 2011-05-03 16:29:04Z DS $
// Copyright: (c) 2006 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -69,7 +69,7 @@ public:
// icon to be shown in the dialog, defaults to the main frame icon
void SetIcon(const wxIcon& icon) { m_icon = icon; }
- bool HasIcon() const { return m_icon.Ok(); }
+ bool HasIcon() const { return m_icon.IsOk(); }
wxIcon GetIcon() const;
// web site for the program and its description (defaults to URL itself if
diff --git a/Externals/wxWidgets3/include/wx/accel.h b/Externals/wxWidgets3/include/wx/accel.h
index f4edd93047..200feffe4d 100644
--- a/Externals/wxWidgets3/include/wx/accel.h
+++ b/Externals/wxWidgets3/include/wx/accel.h
@@ -4,7 +4,7 @@
// Author: Julian Smart, Robert Roebling, Vadim Zeitlin
// Modified by:
// Created: 31.05.01 (extracted from other files)
-// RCS-ID: $Id: accel.h 67280 2011-03-22 14:17:38Z DS $
+// RCS-ID: $Id: accel.h 68718 2011-08-16 11:55:39Z SC $
// Copyright: (c) wxWidgets team
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -34,10 +34,11 @@ enum wxAcceleratorEntryFlags
wxACCEL_CTRL = 0x0002, // hold Ctrl key down
wxACCEL_SHIFT = 0x0004, // hold Shift key down
#if defined(__WXMAC__) || defined(__WXCOCOA__)
- wxACCEL_CMD = 0x0008 // Command key on OS X
+ wxACCEL_RAW_CTRL= 0x0008, //
#else
- wxACCEL_CMD = wxACCEL_CTRL
+ wxACCEL_RAW_CTRL= wxACCEL_CTRL,
#endif
+ wxACCEL_CMD = wxACCEL_CTRL
};
// ----------------------------------------------------------------------------
diff --git a/Externals/wxWidgets3/include/wx/affinematrix2d.h b/Externals/wxWidgets3/include/wx/affinematrix2d.h
new file mode 100644
index 0000000000..6516cd46f5
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/affinematrix2d.h
@@ -0,0 +1,51 @@
+/////////////////////////////////////////////////////////////////////////////
+// Name: wx/affinematrix2d.h
+// Purpose: wxAffineMatrix2D class.
+// Author: Based on wxTransformMatrix by Chris Breeze, Julian Smart
+// Created: 2011-04-05
+// Copyright: (c) wxWidgets team
+// Licence: wxWindows licence
+/////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_AFFINEMATRIX2D_H_
+#define _WX_AFFINEMATRIX2D_H_
+
+#include "wx/defs.h"
+
+#if wxUSE_GEOMETRY
+
+#include "wx/affinematrix2dbase.h"
+
+// A simple implementation of wxAffineMatrix2DBase interface done entirely in
+// wxWidgets.
+class WXDLLIMPEXP_CORE wxAffineMatrix2D : public wxAffineMatrix2DBase
+{
+public:
+ wxAffineMatrix2D() : m_11(1), m_12(0),
+ m_21(0), m_22(1),
+ m_tx(0), m_ty(0)
+ {
+ }
+
+ // Implement base class pure virtual methods.
+ virtual void Set(const wxMatrix2D& mat2D, const wxPoint2DDouble& tr);
+ virtual void Get(wxMatrix2D* mat2D, wxPoint2DDouble* tr) const;
+ virtual void Concat(const wxAffineMatrix2DBase& t);
+ virtual bool Invert();
+ virtual bool IsIdentity() const;
+ virtual bool IsEqual(const wxAffineMatrix2DBase& t) const;
+ virtual void Translate(wxDouble dx, wxDouble dy);
+ virtual void Scale(wxDouble xScale, wxDouble yScale);
+ virtual void Rotate(wxDouble ccRadians);
+
+protected:
+ virtual wxPoint2DDouble DoTransformPoint(const wxPoint2DDouble& p) const;
+ virtual wxPoint2DDouble DoTransformDistance(const wxPoint2DDouble& p) const;
+
+private:
+ wxDouble m_11, m_12, m_21, m_22, m_tx, m_ty;
+};
+
+#endif // wxUSE_GEOMETRY
+
+#endif // _WX_AFFINEMATRIX2D_H_
diff --git a/Externals/wxWidgets3/include/wx/affinematrix2dbase.h b/Externals/wxWidgets3/include/wx/affinematrix2dbase.h
new file mode 100644
index 0000000000..94b1955aa3
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/affinematrix2dbase.h
@@ -0,0 +1,127 @@
+/////////////////////////////////////////////////////////////////////////////
+// Name: wx/affinematrix2dbase.h
+// Purpose: Common interface for 2D transformation matrices.
+// Author: Catalin Raceanu
+// Created: 2011-04-06
+// Copyright: (c) wxWidgets team
+// Licence: wxWindows licence
+/////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_AFFINEMATRIX2DBASE_H_
+#define _WX_AFFINEMATRIX2DBASE_H_
+
+#include "wx/defs.h"
+
+#if wxUSE_GEOMETRY
+
+#include "wx/geometry.h"
+
+struct wxMatrix2D
+{
+ wxMatrix2D(wxDouble v11 = 1,
+ wxDouble v12 = 0,
+ wxDouble v21 = 0,
+ wxDouble v22 = 1)
+ {
+ m_11 = v11; m_12 = v12;
+ m_21 = v21; m_22 = v22;
+ }
+
+ wxDouble m_11, m_12, m_21, m_22;
+};
+
+// A 2x3 matrix representing an affine 2D transformation.
+//
+// This is an abstract base class implemented by wxAffineMatrix2D only so far,
+// but in the future we also plan to derive wxGraphicsMatrix from it (it should
+// also be documented then as currently only wxAffineMatrix2D itself is).
+class WXDLLIMPEXP_CORE wxAffineMatrix2DBase
+{
+public:
+ wxAffineMatrix2DBase() {}
+ virtual ~wxAffineMatrix2DBase() {}
+
+ // sets the matrix to the respective values
+ virtual void Set(const wxMatrix2D& mat2D, const wxPoint2DDouble& tr) = 0;
+
+ // gets the component valuess of the matrix
+ virtual void Get(wxMatrix2D* mat2D, wxPoint2DDouble* tr) const = 0;
+
+ // concatenates the matrix
+ virtual void Concat(const wxAffineMatrix2DBase& t) = 0;
+
+ // makes this the inverse matrix
+ virtual bool Invert() = 0;
+
+ // return true if this is the identity matrix
+ virtual bool IsIdentity() const = 0;
+
+ // returns true if the elements of the transformation matrix are equal ?
+ virtual bool IsEqual(const wxAffineMatrix2DBase& t) const = 0;
+ bool operator==(const wxAffineMatrix2DBase& t) const { return IsEqual(t); }
+ bool operator!=(const wxAffineMatrix2DBase& t) const { return !IsEqual(t); }
+
+
+ //
+ // transformations
+ //
+
+ // add the translation to this matrix
+ virtual void Translate(wxDouble dx, wxDouble dy) = 0;
+
+ // add the scale to this matrix
+ virtual void Scale(wxDouble xScale, wxDouble yScale) = 0;
+
+ // add the rotation to this matrix (counter clockwise, radians)
+ virtual void Rotate(wxDouble ccRadians) = 0;
+
+ // add mirroring to this matrix
+ void Mirror(int direction = wxHORIZONTAL)
+ {
+ wxDouble x = (direction & wxHORIZONTAL) ? -1 : 1;
+ wxDouble y = (direction & wxVERTICAL) ? -1 : 1;
+ Scale(x, y);
+ }
+
+
+ // applies that matrix to the point
+ wxPoint2DDouble TransformPoint(const wxPoint2DDouble& src) const
+ {
+ return DoTransformPoint(src);
+ }
+
+ void TransformPoint(wxDouble* x, wxDouble* y) const
+ {
+ wxCHECK_RET( x && y, "Can't be NULL" );
+
+ const wxPoint2DDouble dst = DoTransformPoint(wxPoint2DDouble(*x, *y));
+ *x = dst.m_x;
+ *y = dst.m_y;
+ }
+
+ // applies the matrix except for translations
+ wxPoint2DDouble TransformDistance(const wxPoint2DDouble& src) const
+ {
+ return DoTransformDistance(src);
+ }
+
+ void TransformDistance(wxDouble* dx, wxDouble* dy) const
+ {
+ wxCHECK_RET( dx && dy, "Can't be NULL" );
+
+ const wxPoint2DDouble
+ dst = DoTransformDistance(wxPoint2DDouble(*dx, *dy));
+ *dx = dst.m_x;
+ *dy = dst.m_y;
+ }
+
+protected:
+ virtual
+ wxPoint2DDouble DoTransformPoint(const wxPoint2DDouble& p) const = 0;
+ virtual
+ wxPoint2DDouble DoTransformDistance(const wxPoint2DDouble& p) const = 0;
+};
+
+#endif // wxUSE_GEOMETRY
+
+#endif // _WX_AFFINEMATRIX2DBASE_H_
diff --git a/Externals/wxWidgets3/include/wx/anybutton.h b/Externals/wxWidgets3/include/wx/anybutton.h
new file mode 100644
index 0000000000..4275c6bfd8
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/anybutton.h
@@ -0,0 +1,200 @@
+/////////////////////////////////////////////////////////////////////////////
+// Name: wx/anybutton.h
+// Purpose: wxAnyButtonBase class
+// Author: Vadim Zetlin
+// Created: 2000-08-15 (extracted from button.h)
+// RCS-ID: $Id: anybutton.h 70345 2012-01-15 01:05:28Z VZ $
+// Copyright: (c) Vadim Zetlin
+// Licence: wxWindows licence
+/////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_ANYBUTTON_H_BASE_
+#define _WX_ANYBUTTON_H_BASE_
+
+#include "wx/defs.h"
+
+#ifdef wxHAS_ANY_BUTTON
+
+// ----------------------------------------------------------------------------
+// wxAnyButton specific flags
+// ----------------------------------------------------------------------------
+
+// These flags affect label alignment
+#define wxBU_LEFT 0x0040
+#define wxBU_TOP 0x0080
+#define wxBU_RIGHT 0x0100
+#define wxBU_BOTTOM 0x0200
+#define wxBU_ALIGN_MASK ( wxBU_LEFT | wxBU_TOP | wxBU_RIGHT | wxBU_BOTTOM )
+
+// These two flags are obsolete
+#define wxBU_NOAUTODRAW 0x0000
+#define wxBU_AUTODRAW 0x0004
+
+// by default, the buttons will be created with some (system dependent)
+// minimal size to make them look nicer, giving this style will make them as
+// small as possible
+#define wxBU_EXACTFIT 0x0001
+
+// this flag can be used to disable using the text label in the button: it is
+// mostly useful when creating buttons showing bitmap and having stock id as
+// without it both the standard label corresponding to the stock id and the
+// bitmap would be shown
+#define wxBU_NOTEXT 0x0002
+
+
+#include "wx/bitmap.h"
+#include "wx/control.h"
+
+// ----------------------------------------------------------------------------
+// wxAnyButton: common button functionality
+// ----------------------------------------------------------------------------
+
+class WXDLLIMPEXP_CORE wxAnyButtonBase : public wxControl
+{
+public:
+ wxAnyButtonBase() { }
+
+ // show the image in the button in addition to the label: this method is
+ // supported on all (major) platforms
+ void SetBitmap(const wxBitmap& bitmap, wxDirection dir = wxLEFT)
+ {
+ SetBitmapLabel(bitmap);
+ SetBitmapPosition(dir);
+ }
+
+ wxBitmap GetBitmap() const { return DoGetBitmap(State_Normal); }
+
+ // Methods for setting individual images for different states: normal,
+ // selected (meaning pushed or pressed), focused (meaning normal state for
+ // a focused button), disabled or hover (a.k.a. hot or current).
+ //
+ // Remember that SetBitmap() itself must be called before any other
+ // SetBitmapXXX() methods (except for SetBitmapLabel() which is a synonym
+ // for it anyhow) and that all bitmaps passed to these functions should be
+ // of the same size.
+ void SetBitmapLabel(const wxBitmap& bitmap)
+ { DoSetBitmap(bitmap, State_Normal); }
+ void SetBitmapPressed(const wxBitmap& bitmap)
+ { DoSetBitmap(bitmap, State_Pressed); }
+ void SetBitmapDisabled(const wxBitmap& bitmap)
+ { DoSetBitmap(bitmap, State_Disabled); }
+ void SetBitmapCurrent(const wxBitmap& bitmap)
+ { DoSetBitmap(bitmap, State_Current); }
+ void SetBitmapFocus(const wxBitmap& bitmap)
+ { DoSetBitmap(bitmap, State_Focused); }
+
+ wxBitmap GetBitmapLabel() const { return DoGetBitmap(State_Normal); }
+ wxBitmap GetBitmapPressed() const { return DoGetBitmap(State_Pressed); }
+ wxBitmap GetBitmapDisabled() const { return DoGetBitmap(State_Disabled); }
+ wxBitmap GetBitmapCurrent() const { return DoGetBitmap(State_Current); }
+ wxBitmap GetBitmapFocus() const { return DoGetBitmap(State_Focused); }
+
+
+ // set the margins around the image
+ void SetBitmapMargins(wxCoord x, wxCoord y) { DoSetBitmapMargins(x, y); }
+ void SetBitmapMargins(const wxSize& sz) { DoSetBitmapMargins(sz.x, sz.y); }
+ wxSize GetBitmapMargins() { return DoGetBitmapMargins(); }
+
+ // set the image position relative to the text, i.e. wxLEFT means that the
+ // image is to the left of the text (this is the default)
+ void SetBitmapPosition(wxDirection dir);
+
+
+ // Buttons on MSW can look bad if they are not native colours, because
+ // then they become owner-drawn and not theme-drawn. Disable it here
+ // in wxAnyButtonBase to make it consistent.
+ virtual bool ShouldInheritColours() const { return false; }
+
+ // wxUniv-compatible and deprecated equivalents to SetBitmapXXX()
+#if WXWIN_COMPATIBILITY_2_8
+ void SetImageLabel(const wxBitmap& bitmap) { SetBitmap(bitmap); }
+ void SetImageMargins(wxCoord x, wxCoord y) { SetBitmapMargins(x, y); }
+#endif // WXWIN_COMPATIBILITY_2_8
+
+ // backwards compatible names for pressed/current bitmaps: they're not
+ // deprecated as there is nothing really wrong with using them and no real
+ // advantage to using the new names but the new names are still preferred
+ wxBitmap GetBitmapSelected() const { return GetBitmapPressed(); }
+ wxBitmap GetBitmapHover() const { return GetBitmapCurrent(); }
+
+ void SetBitmapSelected(const wxBitmap& bitmap) { SetBitmapPressed(bitmap); }
+ void SetBitmapHover(const wxBitmap& bitmap) { SetBitmapCurrent(bitmap); }
+
+
+ // this enum is not part of wx public API, it is public because it is used
+ // in non wxAnyButton-derived classes internally
+ //
+ // also notice that MSW code relies on the values of the enum elements, do
+ // not change them without revising src/msw/button.cpp
+ enum State
+ {
+ State_Normal,
+ State_Current, // a.k.a. hot or "hovering"
+ State_Pressed, // a.k.a. "selected" in public API for some reason
+ State_Disabled,
+ State_Focused,
+ State_Max
+ };
+
+ // return true if this button shouldn't show the text label, either because
+ // it doesn't have it or because it was explicitly disabled with wxBU_NOTEXT
+ bool DontShowLabel() const
+ {
+ return HasFlag(wxBU_NOTEXT) || GetLabel().empty();
+ }
+
+ // return true if we do show the label
+ bool ShowsLabel() const
+ {
+ return !DontShowLabel();
+ }
+
+protected:
+ // choose the default border for this window
+ virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
+
+ virtual wxBitmap DoGetBitmap(State WXUNUSED(which)) const
+ { return wxBitmap(); }
+ virtual void DoSetBitmap(const wxBitmap& WXUNUSED(bitmap),
+ State WXUNUSED(which))
+ { }
+
+ virtual wxSize DoGetBitmapMargins() const
+ { return wxSize(0, 0); }
+
+ virtual void DoSetBitmapMargins(wxCoord WXUNUSED(x), wxCoord WXUNUSED(y))
+ { }
+
+ virtual void DoSetBitmapPosition(wxDirection WXUNUSED(dir))
+ { }
+
+ virtual bool DoGetAuthNeeded() const { return false; }
+ virtual void DoSetAuthNeeded(bool WXUNUSED(show)) { }
+
+
+ wxDECLARE_NO_COPY_CLASS(wxAnyButtonBase);
+};
+
+#if defined(__WXUNIVERSAL__)
+ #include "wx/univ/anybutton.h"
+#elif defined(__WXMSW__)
+ #include "wx/msw/anybutton.h"
+//#elif defined(__WXMOTIF__)
+// #include "wx/motif/anybutton.h"
+#elif defined(__WXGTK20__)
+ #include "wx/gtk/anybutton.h"
+//#elif defined(__WXGTK__)
+// #include "wx/gtk1/anybutton.h"
+#elif defined(__WXMAC__)
+ #include "wx/osx/anybutton.h"
+//#elif defined(__WXCOCOA__)
+// #include "wx/cocoa/anybutton.h"
+//#elif defined(__WXPM__)
+// #include "wx/os2/anybutton.h"
+#else
+ typedef wxAnyButtonBase wxAnyButton;
+#endif
+
+#endif // wxHAS_ANY_BUTTON
+
+#endif // _WX_ANYBUTTON_H_BASE_
diff --git a/Externals/wxWidgets3/include/wx/app.h b/Externals/wxWidgets3/include/wx/app.h
index d4b1fae4f1..64f1220629 100644
--- a/Externals/wxWidgets3/include/wx/app.h
+++ b/Externals/wxWidgets3/include/wx/app.h
@@ -5,7 +5,7 @@
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
-// RCS-ID: $Id: app.h 66648 2011-01-08 06:42:41Z PC $
+// RCS-ID: $Id: app.h 70353 2012-01-15 14:46:41Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -18,6 +18,7 @@
// ----------------------------------------------------------------------------
#include "wx/event.h" // for the base class
+#include "wx/eventfilter.h" // (and another one)
#include "wx/build.h"
#include "wx/cmdargs.h" // for wxCmdLineArgsArray used by wxApp::argv
#include "wx/init.h" // we must declare wxEntry()
@@ -70,7 +71,8 @@ extern WXDLLIMPEXP_DATA_BASE(wxList) wxPendingDelete;
// wxAppConsoleBase: wxApp for non-GUI applications
// ----------------------------------------------------------------------------
-class WXDLLIMPEXP_BASE wxAppConsoleBase : public wxEvtHandler
+class WXDLLIMPEXP_BASE wxAppConsoleBase : public wxEvtHandler,
+ public wxEventFilter
{
public:
// ctor and dtor
@@ -238,13 +240,8 @@ public:
// event processing functions
// --------------------------
- // this method allows to filter all the events processed by the program, so
- // you should try to return quickly from it to avoid slowing down the
- // program to the crawl
- //
- // return value should be -1 to continue with the normal event processing,
- // or TRUE or FALSE to stop further processing and pretend that the event
- // had been already processed or won't be processed at all, respectively
+ // Implement the inherited wxEventFilter method but just return -1 from it
+ // to indicate that default processing should take place.
virtual int FilterEvent(wxEvent& event);
// return true if we're running event loop, i.e. if the events can
@@ -595,10 +592,10 @@ public:
// ------------------------------------------------------------------------
// Get display mode that is used use. This is only used in framebuffer
- // wxWin ports (such as wxMGL or wxDFB).
+ // wxWin ports such as wxDFB.
virtual wxVideoMode GetDisplayMode() const;
// Set display mode to use. This is only used in framebuffer wxWin
- // ports (such as wxMGL or wxDFB). This method should be called from
+ // ports such as wxDFB. This method should be called from
// wxApp::OnInitGui
virtual bool SetDisplayMode(const wxVideoMode& WXUNUSED(info)) { return true; }
@@ -684,14 +681,10 @@ protected:
// now include the declaration of the real class
// ----------------------------------------------------------------------------
-#if defined(__WXPALMOS__)
- #include "wx/palmos/app.h"
-#elif defined(__WXMSW__)
+#if defined(__WXMSW__)
#include "wx/msw/app.h"
#elif defined(__WXMOTIF__)
#include "wx/motif/app.h"
-#elif defined(__WXMGL__)
- #include "wx/mgl/app.h"
#elif defined(__WXDFB__)
#include "wx/dfb/app.h"
#elif defined(__WXGTK20__)
diff --git a/Externals/wxWidgets3/include/wx/apptrait.h b/Externals/wxWidgets3/include/wx/apptrait.h
index 2e29c20e5b..4dbf8d218c 100644
--- a/Externals/wxWidgets3/include/wx/apptrait.h
+++ b/Externals/wxWidgets3/include/wx/apptrait.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 19.06.2003
-// RCS-ID: $Id: apptrait.h 61488 2009-07-21 14:16:44Z VZ $
+// RCS-ID: $Id: apptrait.h 70345 2012-01-15 01:05:28Z VZ $
// Copyright: (c) 2003 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -177,9 +177,7 @@ private:
// NB: test for __UNIX__ before __WXMAC__ as under Darwin we want to use the
// Unix code (and otherwise __UNIX__ wouldn't be defined)
// ABX: check __WIN32__ instead of __WXMSW__ for the same MSWBase in any Win32 port
-#if defined(__WXPALMOS__)
- #include "wx/palmos/apptbase.h"
-#elif defined(__WIN32__)
+#if defined(__WIN32__)
#include "wx/msw/apptbase.h"
#elif defined(__UNIX__) && !defined(__EMX__)
#include "wx/unix/apptbase.h"
@@ -274,9 +272,7 @@ public:
// ----------------------------------------------------------------------------
// ABX: check __WIN32__ instead of __WXMSW__ for the same MSWBase in any Win32 port
-#if defined(__WXPALMOS__)
- #include "wx/palmos/apptrait.h"
-#elif defined(__WIN32__)
+#if defined(__WIN32__)
#include "wx/msw/apptrait.h"
#elif defined(__OS2__)
#include "wx/os2/apptrait.h"
diff --git a/Externals/wxWidgets3/include/wx/arrstr.h b/Externals/wxWidgets3/include/wx/arrstr.h
index ad8a52e62c..76343c71e5 100644
--- a/Externals/wxWidgets3/include/wx/arrstr.h
+++ b/Externals/wxWidgets3/include/wx/arrstr.h
@@ -4,7 +4,7 @@
// Author: Mattia Barbon and Vadim Zeitlin
// Modified by:
// Created: 07/07/03
-// RCS-ID: $Id: arrstr.h 66724 2011-01-20 08:38:36Z SC $
+// RCS-ID: $Id: arrstr.h 67343 2011-03-30 14:16:04Z VZ $
// Copyright: (c) 2003 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -28,7 +28,7 @@ inline int wxCMPFUNC_CONV wxStringSortDescending(wxString* s1, wxString* s2)
return wxStringSortAscending(s2, s1);
}
-#if wxUSE_STL
+#if wxUSE_STD_CONTAINERS
#include "wx/dynarray.h"
@@ -100,7 +100,7 @@ private:
}
};
-#else // if !wxUSE_STL
+#else // if !wxUSE_STD_CONTAINERS
// this shouldn't be defined for compilers not supporting template methods or
// without std::distance()
@@ -384,7 +384,7 @@ public:
{ Copy(array); }
};
-#endif // !wxUSE_STL
+#endif // !wxUSE_STD_CONTAINERS
// this class provides a temporary wxString* from a
// wxArrayString
diff --git a/Externals/wxWidgets3/include/wx/atomic.h b/Externals/wxWidgets3/include/wx/atomic.h
index 38b0f8171f..0c53ebef93 100644
--- a/Externals/wxWidgets3/include/wx/atomic.h
+++ b/Externals/wxWidgets3/include/wx/atomic.h
@@ -3,7 +3,7 @@
// Purpose: functions to manipulate atomically integers and pointers
// Author: Armel Asselin
// Created: 12/13/2006
-// RCS-ID: $Id: atomic.h 53954 2008-06-02 20:42:23Z VZ $
+// RCS-ID: $Id: atomic.h 70808 2012-03-04 20:31:42Z VZ $
// Copyright: (c) Armel Asselin
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -43,7 +43,7 @@ inline wxUint32 wxAtomicDec (wxUint32 &value)
}
-#elif defined(__WXMSW__)
+#elif defined(__WINDOWS__)
// include standard Windows headers
#include "wx/msw/wrapwin.h"
diff --git a/Externals/wxWidgets3/include/wx/aui/auibar.h b/Externals/wxWidgets3/include/wx/aui/auibar.h
index d73b8caed1..3440840a3b 100644
--- a/Externals/wxWidgets3/include/wx/aui/auibar.h
+++ b/Externals/wxWidgets3/include/wx/aui/auibar.h
@@ -4,7 +4,7 @@
// Author: Benjamin I. Williams
// Modified by:
// Created: 2008-08-04
-// RCS-ID: $Id: auibar.h 66546 2011-01-03 18:43:30Z VZ $
+// RCS-ID: $Id: auibar.h 69594 2011-10-30 16:51:10Z VZ $
// Copyright: (C) Copyright 2005, Kirix Corporation, All Rights Reserved.
// Licence: wxWindows Library Licence, Version 3.1
///////////////////////////////////////////////////////////////////////////////
@@ -65,44 +65,44 @@ enum wxAuiToolBarToolTextOrientation
class WXDLLIMPEXP_AUI wxAuiToolBarEvent : public wxNotifyEvent
{
public:
- wxAuiToolBarEvent(wxEventType command_type = wxEVT_NULL,
- int win_id = 0)
- : wxNotifyEvent(command_type, win_id)
+ wxAuiToolBarEvent(wxEventType commandType = wxEVT_NULL,
+ int winId = 0)
+ : wxNotifyEvent(commandType, winId)
{
- is_dropdown_clicked = false;
- click_pt = wxPoint(-1, -1);
- rect = wxRect(-1,-1, 0, 0);
- tool_id = -1;
+ m_isDropdownClicked = false;
+ m_clickPt = wxPoint(-1, -1);
+ m_rect = wxRect(-1,-1, 0, 0);
+ m_toolId = -1;
}
#ifndef SWIG
wxAuiToolBarEvent(const wxAuiToolBarEvent& c) : wxNotifyEvent(c)
{
- is_dropdown_clicked = c.is_dropdown_clicked;
- click_pt = c.click_pt;
- rect = c.rect;
- tool_id = c.tool_id;
+ m_isDropdownClicked = c.m_isDropdownClicked;
+ m_clickPt = c.m_clickPt;
+ m_rect = c.m_rect;
+ m_toolId = c.m_toolId;
}
#endif
wxEvent *Clone() const { return new wxAuiToolBarEvent(*this); }
- bool IsDropDownClicked() const { return is_dropdown_clicked; }
- void SetDropDownClicked(bool c) { is_dropdown_clicked = c; }
+ bool IsDropDownClicked() const { return m_isDropdownClicked; }
+ void SetDropDownClicked(bool c) { m_isDropdownClicked = c; }
- wxPoint GetClickPoint() const { return click_pt; }
- void SetClickPoint(const wxPoint& p) { click_pt = p; }
+ wxPoint GetClickPoint() const { return m_clickPt; }
+ void SetClickPoint(const wxPoint& p) { m_clickPt = p; }
- wxRect GetItemRect() const { return rect; }
- void SetItemRect(const wxRect& r) { rect = r; }
+ wxRect GetItemRect() const { return m_rect; }
+ void SetItemRect(const wxRect& r) { m_rect = r; }
- int GetToolId() const { return tool_id; }
- void SetToolId(int toolid) { tool_id = toolid; }
+ int GetToolId() const { return m_toolId; }
+ void SetToolId(int toolId) { m_toolId = toolId; }
private:
- bool is_dropdown_clicked;
- wxPoint click_pt;
- wxRect rect;
- int tool_id;
+ bool m_isDropdownClicked;
+ wxPoint m_clickPt;
+ wxRect m_rect;
+ int m_toolId;
private:
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxAuiToolBarEvent)
@@ -117,18 +117,18 @@ public:
wxAuiToolBarItem()
{
- window = NULL;
- sizer_item = NULL;
- spacer_pixels = 0;
- toolid = 0;
- kind = wxITEM_NORMAL;
- state = 0; // normal, enabled
- proportion = 0;
- active = true;
- dropdown = true;
- sticky = true;
- user_data = 0;
- alignment = wxALIGN_CENTER;
+ m_window = NULL;
+ m_sizerItem = NULL;
+ m_spacerPixels = 0;
+ m_toolId = 0;
+ m_kind = wxITEM_NORMAL;
+ m_state = 0; // normal, enabled
+ m_proportion = 0;
+ m_active = true;
+ m_dropDown = true;
+ m_sticky = true;
+ m_userData = 0;
+ m_alignment = wxALIGN_CENTER;
}
wxAuiToolBarItem(const wxAuiToolBarItem& c)
@@ -144,106 +144,106 @@ public:
void Assign(const wxAuiToolBarItem& c)
{
- window = c.window;
- label = c.label;
- bitmap = c.bitmap;
- disabled_bitmap = c.disabled_bitmap;
- hover_bitmap = c.hover_bitmap;
- short_help = c.short_help;
- long_help = c.long_help;
- sizer_item = c.sizer_item;
- min_size = c.min_size;
- spacer_pixels = c.spacer_pixels;
- toolid = c.toolid;
- kind = c.kind;
- state = c.state;
- proportion = c.proportion;
- active = c.active;
- dropdown = c.dropdown;
- sticky = c.sticky;
- user_data = c.user_data;
- alignment = c.alignment;
+ m_window = c.m_window;
+ m_label = c.m_label;
+ m_bitmap = c.m_bitmap;
+ m_disabledBitmap = c.m_disabledBitmap;
+ m_hoverBitmap = c.m_hoverBitmap;
+ m_shortHelp = c.m_shortHelp;
+ m_longHelp = c.m_longHelp;
+ m_sizerItem = c.m_sizerItem;
+ m_minSize = c.m_minSize;
+ m_spacerPixels = c.m_spacerPixels;
+ m_toolId = c.m_toolId;
+ m_kind = c.m_kind;
+ m_state = c.m_state;
+ m_proportion = c.m_proportion;
+ m_active = c.m_active;
+ m_dropDown = c.m_dropDown;
+ m_sticky = c.m_sticky;
+ m_userData = c.m_userData;
+ m_alignment = c.m_alignment;
}
- void SetWindow(wxWindow* w) { window = w; }
- wxWindow* GetWindow() { return window; }
+ void SetWindow(wxWindow* w) { m_window = w; }
+ wxWindow* GetWindow() { return m_window; }
- void SetId(int new_id) { toolid = new_id; }
- int GetId() const { return toolid; }
+ void SetId(int newId) { m_toolId = newId; }
+ int GetId() const { return m_toolId; }
- void SetKind(int new_kind) { kind = new_kind; }
- int GetKind() const { return kind; }
+ void SetKind(int newKind) { m_kind = newKind; }
+ int GetKind() const { return m_kind; }
- void SetState(int new_state) { state = new_state; }
- int GetState() const { return state; }
+ void SetState(int newState) { m_state = newState; }
+ int GetState() const { return m_state; }
- void SetSizerItem(wxSizerItem* s) { sizer_item = s; }
- wxSizerItem* GetSizerItem() const { return sizer_item; }
+ void SetSizerItem(wxSizerItem* s) { m_sizerItem = s; }
+ wxSizerItem* GetSizerItem() const { return m_sizerItem; }
- void SetLabel(const wxString& s) { label = s; }
- const wxString& GetLabel() const { return label; }
+ void SetLabel(const wxString& s) { m_label = s; }
+ const wxString& GetLabel() const { return m_label; }
- void SetBitmap(const wxBitmap& bmp) { bitmap = bmp; }
- const wxBitmap& GetBitmap() const { return bitmap; }
+ void SetBitmap(const wxBitmap& bmp) { m_bitmap = bmp; }
+ const wxBitmap& GetBitmap() const { return m_bitmap; }
- void SetDisabledBitmap(const wxBitmap& bmp) { disabled_bitmap = bmp; }
- const wxBitmap& GetDisabledBitmap() const { return disabled_bitmap; }
+ void SetDisabledBitmap(const wxBitmap& bmp) { m_disabledBitmap = bmp; }
+ const wxBitmap& GetDisabledBitmap() const { return m_disabledBitmap; }
- void SetHoverBitmap(const wxBitmap& bmp) { hover_bitmap = bmp; }
- const wxBitmap& GetHoverBitmap() const { return hover_bitmap; }
+ void SetHoverBitmap(const wxBitmap& bmp) { m_hoverBitmap = bmp; }
+ const wxBitmap& GetHoverBitmap() const { return m_hoverBitmap; }
- void SetShortHelp(const wxString& s) { short_help = s; }
- const wxString& GetShortHelp() const { return short_help; }
+ void SetShortHelp(const wxString& s) { m_shortHelp = s; }
+ const wxString& GetShortHelp() const { return m_shortHelp; }
- void SetLongHelp(const wxString& s) { long_help = s; }
- const wxString& GetLongHelp() const { return long_help; }
+ void SetLongHelp(const wxString& s) { m_longHelp = s; }
+ const wxString& GetLongHelp() const { return m_longHelp; }
- void SetMinSize(const wxSize& s) { min_size = s; }
- const wxSize& GetMinSize() const { return min_size; }
+ void SetMinSize(const wxSize& s) { m_minSize = s; }
+ const wxSize& GetMinSize() const { return m_minSize; }
- void SetSpacerPixels(int s) { spacer_pixels = s; }
- int GetSpacerPixels() const { return spacer_pixels; }
+ void SetSpacerPixels(int s) { m_spacerPixels = s; }
+ int GetSpacerPixels() const { return m_spacerPixels; }
- void SetProportion(int p) { proportion = p; }
- int GetProportion() const { return proportion; }
+ void SetProportion(int p) { m_proportion = p; }
+ int GetProportion() const { return m_proportion; }
- void SetActive(bool b) { active = b; }
- bool IsActive() const { return active; }
+ void SetActive(bool b) { m_active = b; }
+ bool IsActive() const { return m_active; }
- void SetHasDropDown(bool b) { dropdown = b; }
- bool HasDropDown() const { return dropdown; }
+ void SetHasDropDown(bool b) { m_dropDown = b; }
+ bool HasDropDown() const { return m_dropDown; }
- void SetSticky(bool b) { sticky = b; }
- bool IsSticky() const { return sticky; }
+ void SetSticky(bool b) { m_sticky = b; }
+ bool IsSticky() const { return m_sticky; }
- void SetUserData(long l) { user_data = l; }
- long GetUserData() const { return user_data; }
+ void SetUserData(long l) { m_userData = l; }
+ long GetUserData() const { return m_userData; }
- void SetAlignment(int l) { alignment = l; }
- int GetAlignment() const { return alignment; }
+ void SetAlignment(int l) { m_alignment = l; }
+ int GetAlignment() const { return m_alignment; }
private:
- wxWindow* window; // item's associated window
- wxString label; // label displayed on the item
- wxBitmap bitmap; // item's bitmap
- wxBitmap disabled_bitmap; // item's disabled bitmap
- wxBitmap hover_bitmap; // item's hover bitmap
- wxString short_help; // short help (for tooltip)
- wxString long_help; // long help (for status bar)
- wxSizerItem* sizer_item; // sizer item
- wxSize min_size; // item's minimum size
- int spacer_pixels; // size of a spacer
- int toolid; // item's id
- int kind; // item's kind
- int state; // state
- int proportion; // proportion
- bool active; // true if the item is currently active
- bool dropdown; // true if the item has a dropdown button
- bool sticky; // overrides button states if true (always active)
- long user_data; // user-specified data
- int alignment; // sizer alignment flag, defaults to wxCENTER, may be wxEXPAND or any other
+ wxWindow* m_window; // item's associated window
+ wxString m_label; // label displayed on the item
+ wxBitmap m_bitmap; // item's bitmap
+ wxBitmap m_disabledBitmap; // item's disabled bitmap
+ wxBitmap m_hoverBitmap; // item's hover bitmap
+ wxString m_shortHelp; // short help (for tooltip)
+ wxString m_longHelp; // long help (for status bar)
+ wxSizerItem* m_sizerItem; // sizer item
+ wxSize m_minSize; // item's minimum size
+ int m_spacerPixels; // size of a spacer
+ int m_toolId; // item's id
+ int m_kind; // item's kind
+ int m_state; // state
+ int m_proportion; // proportion
+ bool m_active; // true if the item is currently active
+ bool m_dropDown; // true if the item has a dropdown button
+ bool m_sticky; // overrides button states if true (always active)
+ long m_userData; // user-specified data
+ int m_alignment; // sizer alignment flag, defaults to wxCENTER, may be wxEXPAND or any other
};
#ifndef SWIG
@@ -325,8 +325,8 @@ public:
wxWindow* wnd,
const wxAuiToolBarItem& item) = 0;
- virtual int GetElementSize(int element_id) = 0;
- virtual void SetElementSize(int element_id, int size) = 0;
+ virtual int GetElementSize(int elementId) = 0;
+ virtual void SetElementSize(int elementId, int size) = 0;
virtual int ShowDropDown(
wxWindow* wnd,
@@ -407,30 +407,30 @@ public:
const wxAuiToolBarItem& item);
virtual int GetElementSize(int element);
- virtual void SetElementSize(int element_id, int size);
+ virtual void SetElementSize(int elementId, int size);
virtual int ShowDropDown(wxWindow* wnd,
const wxAuiToolBarItemArray& items);
protected:
- wxBitmap m_button_dropdown_bmp;
- wxBitmap m_disabled_button_dropdown_bmp;
- wxBitmap m_overflow_bmp;
- wxBitmap m_disabled_overflow_bmp;
- wxColour m_base_colour;
- wxColour m_highlight_colour;
+ wxBitmap m_buttonDropDownBmp;
+ wxBitmap m_disabledButtonDropDownBmp;
+ wxBitmap m_overflowBmp;
+ wxBitmap m_disabledOverflowBmp;
+ wxColour m_baseColour;
+ wxColour m_highlightColour;
wxFont m_font;
unsigned int m_flags;
- int m_text_orientation;
+ int m_textOrientation;
- wxPen m_gripper_pen1;
- wxPen m_gripper_pen2;
- wxPen m_gripper_pen3;
+ wxPen m_gripperPen1;
+ wxPen m_gripperPen2;
+ wxPen m_gripperPen3;
- int m_separator_size;
- int m_gripper_size;
- int m_overflow_size;
+ int m_separatorSize;
+ int m_gripperSize;
+ int m_overflowSize;
};
@@ -456,40 +456,40 @@ public:
bool SetFont(const wxFont& font);
- wxAuiToolBarItem* AddTool(int tool_id,
+ wxAuiToolBarItem* AddTool(int toolId,
const wxString& label,
const wxBitmap& bitmap,
- const wxString& short_help_string = wxEmptyString,
+ const wxString& shortHelpString = wxEmptyString,
wxItemKind kind = wxITEM_NORMAL);
- wxAuiToolBarItem* AddTool(int tool_id,
+ wxAuiToolBarItem* AddTool(int toolId,
const wxString& label,
const wxBitmap& bitmap,
- const wxBitmap& disabled_bitmap,
+ const wxBitmap& disabledBitmap,
wxItemKind kind,
- const wxString& short_help_string,
- const wxString& long_help_string,
- wxObject* client_data);
+ const wxString& shortHelpString,
+ const wxString& longHelpString,
+ wxObject* clientData);
- wxAuiToolBarItem* AddTool(int tool_id,
+ wxAuiToolBarItem* AddTool(int toolId,
const wxBitmap& bitmap,
- const wxBitmap& disabled_bitmap,
+ const wxBitmap& disabledBitmap,
bool toggle = false,
- wxObject* client_data = NULL,
- const wxString& short_help_string = wxEmptyString,
- const wxString& long_help_string = wxEmptyString)
+ wxObject* clientData = NULL,
+ const wxString& shortHelpString = wxEmptyString,
+ const wxString& longHelpString = wxEmptyString)
{
- return AddTool(tool_id,
+ return AddTool(toolId,
wxEmptyString,
bitmap,
- disabled_bitmap,
+ disabledBitmap,
toggle ? wxITEM_CHECK : wxITEM_NORMAL,
- short_help_string,
- long_help_string,
- client_data);
+ shortHelpString,
+ longHelpString,
+ clientData);
}
- wxAuiToolBarItem* AddLabel(int tool_id,
+ wxAuiToolBarItem* AddLabel(int toolId,
const wxString& label = wxEmptyString,
const int width = -1);
wxAuiToolBarItem* AddControl(wxControl* control,
@@ -500,22 +500,22 @@ public:
bool Realize();
- wxControl* FindControl(int window_id);
+ wxControl* FindControl(int windowId);
wxAuiToolBarItem* FindToolByPosition(wxCoord x, wxCoord y) const;
wxAuiToolBarItem* FindToolByIndex(int idx) const;
- wxAuiToolBarItem* FindTool(int tool_id) const;
+ wxAuiToolBarItem* FindTool(int toolId) const;
void ClearTools() { Clear() ; }
void Clear();
- bool DeleteTool(int tool_id);
- bool DeleteByIndex(int tool_id);
+ bool DeleteTool(int toolId);
+ bool DeleteByIndex(int toolId);
size_t GetToolCount() const;
- int GetToolPos(int tool_id) const { return GetToolIndex(tool_id); }
- int GetToolIndex(int tool_id) const;
- bool GetToolFits(int tool_id) const;
- wxRect GetToolRect(int tool_id) const;
- bool GetToolFitsByIndex(int tool_id) const;
+ int GetToolPos(int toolId) const { return GetToolIndex(toolId); }
+ int GetToolIndex(int toolId) const;
+ bool GetToolFits(int toolId) const;
+ wxRect GetToolRect(int toolId) const;
+ bool GetToolFitsByIndex(int toolId) const;
bool GetToolBarFits() const;
void SetMargins(const wxSize& size) { SetMargins(size.x, size.x, size.y, size.y); }
@@ -531,14 +531,14 @@ public:
bool GetGripperVisible() const;
void SetGripperVisible(bool visible);
- void ToggleTool(int tool_id, bool state);
- bool GetToolToggled(int tool_id) const;
+ void ToggleTool(int toolId, bool state);
+ bool GetToolToggled(int toolId) const;
- void EnableTool(int tool_id, bool state);
- bool GetToolEnabled(int tool_id) const;
+ void EnableTool(int toolId, bool state);
+ bool GetToolEnabled(int toolId) const;
- void SetToolDropDown(int tool_id, bool dropdown);
- bool GetToolDropDown(int tool_id) const;
+ void SetToolDropDown(int toolId, bool dropdown);
+ bool GetToolDropDown(int toolId) const;
void SetToolBorderPadding(int padding);
int GetToolBorderPadding() const;
@@ -549,34 +549,37 @@ public:
void SetToolPacking(int packing);
int GetToolPacking() const;
- void SetToolProportion(int tool_id, int proportion);
- int GetToolProportion(int tool_id) const;
+ void SetToolProportion(int toolId, int proportion);
+ int GetToolProportion(int toolId) const;
void SetToolSeparation(int separation);
int GetToolSeparation() const;
- void SetToolSticky(int tool_id, bool sticky);
- bool GetToolSticky(int tool_id) const;
+ void SetToolSticky(int toolId, bool sticky);
+ bool GetToolSticky(int toolId) const;
- wxString GetToolLabel(int tool_id) const;
- void SetToolLabel(int tool_id, const wxString& label);
+ wxString GetToolLabel(int toolId) const;
+ void SetToolLabel(int toolId, const wxString& label);
- wxBitmap GetToolBitmap(int tool_id) const;
- void SetToolBitmap(int tool_id, const wxBitmap& bitmap);
+ wxBitmap GetToolBitmap(int toolId) const;
+ void SetToolBitmap(int toolId, const wxBitmap& bitmap);
- wxString GetToolShortHelp(int tool_id) const;
- void SetToolShortHelp(int tool_id, const wxString& help_string);
+ wxString GetToolShortHelp(int toolId) const;
+ void SetToolShortHelp(int toolId, const wxString& helpString);
- wxString GetToolLongHelp(int tool_id) const;
- void SetToolLongHelp(int tool_id, const wxString& help_string);
+ wxString GetToolLongHelp(int toolId) const;
+ void SetToolLongHelp(int toolId, const wxString& helpString);
void SetCustomOverflowItems(const wxAuiToolBarItemArray& prepend,
const wxAuiToolBarItemArray& append);
// get size of hint rectangle for a particular dock location
- wxSize GetHintSize(int dock_direction) const;
+ wxSize GetHintSize(int dockDirection) const;
bool IsPaneValid(const wxAuiPaneInfo& pane) const;
+ // Override to call DoIdleUpdate().
+ virtual void UpdateWindowUI(long flags = wxUPDATE_UI_NONE);
+
protected:
virtual void OnCustomRender(wxDC& WXUNUSED(dc),
@@ -624,30 +627,30 @@ protected:
wxAuiToolBarItemArray m_items; // array of toolbar items
wxAuiToolBarArt* m_art; // art provider
wxBoxSizer* m_sizer; // main sizer for toolbar
- wxAuiToolBarItem* m_action_item; // item that's being acted upon (pressed)
- wxAuiToolBarItem* m_tip_item; // item that has its tooltip shown
+ wxAuiToolBarItem* m_actionItem; // item that's being acted upon (pressed)
+ wxAuiToolBarItem* m_tipItem; // item that has its tooltip shown
wxBitmap m_bitmap; // double-buffer bitmap
- wxSizerItem* m_gripper_sizer_item;
- wxSizerItem* m_overflow_sizer_item;
- wxSize m_absolute_min_size;
- wxPoint m_action_pos; // position of left-mouse down
- wxAuiToolBarItemArray m_custom_overflow_prepend;
- wxAuiToolBarItemArray m_custom_overflow_append;
+ wxSizerItem* m_gripperSizerItem;
+ wxSizerItem* m_overflowSizerItem;
+ wxSize m_absoluteMinSize;
+ wxPoint m_actionPos; // position of left-mouse down
+ wxAuiToolBarItemArray m_customOverflowPrepend;
+ wxAuiToolBarItemArray m_customOverflowAppend;
- int m_button_width;
- int m_button_height;
- int m_sizer_element_count;
- int m_left_padding;
- int m_right_padding;
- int m_top_padding;
- int m_bottom_padding;
- int m_tool_packing;
- int m_tool_border_padding;
- int m_tool_text_orientation;
- int m_overflow_state;
+ int m_buttonWidth;
+ int m_buttonHeight;
+ int m_sizerElementCount;
+ int m_leftPadding;
+ int m_rightPadding;
+ int m_topPadding;
+ int m_bottomPadding;
+ int m_toolPacking;
+ int m_toolBorderPadding;
+ int m_toolTextOrientation;
+ int m_overflowState;
bool m_dragging;
- bool m_gripper_visible;
- bool m_overflow_visible;
+ bool m_gripperVisible;
+ bool m_overflowVisible;
long m_style;
bool RealizeHelper(wxClientDC& dc, bool horizontal);
diff --git a/Externals/wxWidgets3/include/wx/aui/auibook.h b/Externals/wxWidgets3/include/wx/aui/auibook.h
index 5fa37345d2..e8e4527ff6 100644
--- a/Externals/wxWidgets3/include/wx/aui/auibook.h
+++ b/Externals/wxWidgets3/include/wx/aui/auibook.h
@@ -24,7 +24,7 @@
#include "wx/aui/framemanager.h"
#include "wx/aui/dockart.h"
#include "wx/aui/floatpane.h"
-#include "wx/control.h"
+#include "wx/bookctrl.h"
class wxAuiNotebook;
@@ -60,40 +60,28 @@ enum wxAuiNotebookOption
// aui notebook event class
-class WXDLLIMPEXP_AUI wxAuiNotebookEvent : public wxNotifyEvent
+class WXDLLIMPEXP_AUI wxAuiNotebookEvent : public wxBookCtrlEvent
{
public:
- wxAuiNotebookEvent(wxEventType command_type = wxEVT_NULL,
- int win_id = 0)
- : wxNotifyEvent(command_type, win_id)
+ wxAuiNotebookEvent(wxEventType commandType = wxEVT_NULL,
+ int winId = 0)
+ : wxBookCtrlEvent(commandType, winId)
{
- old_selection = -1;
- selection = -1;
- drag_source = NULL;
+ m_dragSource = NULL;
}
#ifndef SWIG
- wxAuiNotebookEvent(const wxAuiNotebookEvent& c) : wxNotifyEvent(c)
+ wxAuiNotebookEvent(const wxAuiNotebookEvent& c) : wxBookCtrlEvent(c)
{
- old_selection = c.old_selection;
- selection = c.selection;
- drag_source = c.drag_source;
+ m_dragSource = c.m_dragSource;
}
#endif
wxEvent *Clone() const { return new wxAuiNotebookEvent(*this); }
- void SetSelection(int s) { selection = s; m_commandInt = s; }
- int GetSelection() const { return selection; }
+ void SetDragSource(wxAuiNotebook* s) { m_dragSource = s; }
+ wxAuiNotebook* GetDragSource() const { return m_dragSource; }
- void SetOldSelection(int s) { old_selection = s; }
- int GetOldSelection() const { return old_selection; }
-
- void SetDragSource(wxAuiNotebook* s) { drag_source = s; }
- wxAuiNotebook* GetDragSource() const { return drag_source; }
-
-public:
- int old_selection;
- int selection;
- wxAuiNotebook* drag_source;
+private:
+ wxAuiNotebook* m_dragSource;
#ifndef SWIG
private:
@@ -117,10 +105,10 @@ class WXDLLIMPEXP_AUI wxAuiTabContainerButton
public:
int id; // button's id
- int cur_state; // current state (normal, hover, pressed, etc.)
+ int curState; // current state (normal, hover, pressed, etc.)
int location; // buttons location (wxLEFT, wxRIGHT, or wxCENTER)
wxBitmap bitmap; // button's hover bitmap
- wxBitmap dis_bitmap; // button's disabled bitmap
+ wxBitmap disBitmap; // button's disabled bitmap
wxRect rect; // button's hit rectangle
};
@@ -143,12 +131,14 @@ public:
virtual wxAuiTabArt* Clone() = 0;
virtual void SetFlags(unsigned int flags) = 0;
- virtual void SetSizingInfo(const wxSize& tab_ctrl_size,
- size_t tab_count) = 0;
+ virtual void SetSizingInfo(const wxSize& tabCtrlSize,
+ size_t tabCount) = 0;
virtual void SetNormalFont(const wxFont& font) = 0;
virtual void SetSelectedFont(const wxFont& font) = 0;
virtual void SetMeasuringFont(const wxFont& font) = 0;
+ virtual void SetColour(const wxColour& colour) = 0;
+ virtual void SetActiveColour(const wxColour& colour) = 0;
virtual void DrawBackground(
wxDC& dc,
@@ -158,20 +148,20 @@ public:
virtual void DrawTab(wxDC& dc,
wxWindow* wnd,
const wxAuiNotebookPage& pane,
- const wxRect& in_rect,
- int close_button_state,
- wxRect* out_tab_rect,
- wxRect* out_button_rect,
- int* x_extent) = 0;
+ const wxRect& inRect,
+ int closeButtonState,
+ wxRect* outTabRect,
+ wxRect* outButtonRect,
+ int* xExtent) = 0;
virtual void DrawButton(
wxDC& dc,
wxWindow* wnd,
- const wxRect& in_rect,
- int bitmap_id,
- int button_state,
+ const wxRect& inRect,
+ int bitmapId,
+ int buttonState,
int orientation,
- wxRect* out_rect) = 0;
+ wxRect* outRect) = 0;
virtual wxSize GetTabSize(
wxDC& dc,
@@ -179,20 +169,20 @@ public:
const wxString& caption,
const wxBitmap& bitmap,
bool active,
- int close_button_state,
- int* x_extent) = 0;
+ int closeButtonState,
+ int* xExtent) = 0;
virtual int ShowDropDown(
wxWindow* wnd,
const wxAuiNotebookPageArray& items,
- int active_idx) = 0;
+ int activeIdx) = 0;
virtual int GetIndentSize() = 0;
virtual int GetBestTabCtrlSize(
wxWindow* wnd,
const wxAuiNotebookPageArray& pages,
- const wxSize& required_bmp_size) = 0;
+ const wxSize& requiredBmpSize) = 0;
};
@@ -206,12 +196,14 @@ public:
wxAuiTabArt* Clone();
void SetFlags(unsigned int flags);
- void SetSizingInfo(const wxSize& tab_ctrl_size,
- size_t tab_count);
+ void SetSizingInfo(const wxSize& tabCtrlSize,
+ size_t tabCount);
void SetNormalFont(const wxFont& font);
void SetSelectedFont(const wxFont& font);
void SetMeasuringFont(const wxFont& font);
+ void SetColour(const wxColour& colour);
+ void SetActiveColour(const wxColour& colour);
void DrawBackground(
wxDC& dc,
@@ -221,20 +213,20 @@ public:
void DrawTab(wxDC& dc,
wxWindow* wnd,
const wxAuiNotebookPage& pane,
- const wxRect& in_rect,
- int close_button_state,
- wxRect* out_tab_rect,
- wxRect* out_button_rect,
- int* x_extent);
+ const wxRect& inRect,
+ int closeButtonState,
+ wxRect* outTabRect,
+ wxRect* outButtonRect,
+ int* xExtent);
void DrawButton(
wxDC& dc,
wxWindow* wnd,
- const wxRect& in_rect,
- int bitmap_id,
- int button_state,
+ const wxRect& inRect,
+ int bitmapId,
+ int buttonState,
int orientation,
- wxRect* out_rect);
+ wxRect* outRect);
int GetIndentSize();
@@ -244,38 +236,39 @@ public:
const wxString& caption,
const wxBitmap& bitmap,
bool active,
- int close_button_state,
- int* x_extent);
+ int closeButtonState,
+ int* xExtent);
int ShowDropDown(
wxWindow* wnd,
const wxAuiNotebookPageArray& items,
- int active_idx);
+ int activeIdx);
int GetBestTabCtrlSize(wxWindow* wnd,
const wxAuiNotebookPageArray& pages,
- const wxSize& required_bmp_size);
+ const wxSize& requiredBmpSize);
protected:
- wxFont m_normal_font;
- wxFont m_selected_font;
- wxFont m_measuring_font;
- wxColour m_base_colour;
- wxPen m_base_colour_pen;
- wxPen m_border_pen;
- wxBrush m_base_colour_brush;
- wxBitmap m_active_close_bmp;
- wxBitmap m_disabled_close_bmp;
- wxBitmap m_active_left_bmp;
- wxBitmap m_disabled_left_bmp;
- wxBitmap m_active_right_bmp;
- wxBitmap m_disabled_right_bmp;
- wxBitmap m_active_windowlist_bmp;
- wxBitmap m_disabled_windowlist_bmp;
+ wxFont m_normalFont;
+ wxFont m_selectedFont;
+ wxFont m_measuringFont;
+ wxColour m_baseColour;
+ wxPen m_baseColourPen;
+ wxPen m_borderPen;
+ wxBrush m_baseColourBrush;
+ wxColour m_activeColour;
+ wxBitmap m_activeCloseBmp;
+ wxBitmap m_disabledCloseBmp;
+ wxBitmap m_activeLeftBmp;
+ wxBitmap m_disabledLeftBmp;
+ wxBitmap m_activeRightBmp;
+ wxBitmap m_disabledRightBmp;
+ wxBitmap m_activeWindowListBmp;
+ wxBitmap m_disabledWindowListBmp;
- int m_fixed_tab_width;
- int m_tab_ctrl_height;
+ int m_fixedTabWidth;
+ int m_tabCtrlHeight;
unsigned int m_flags;
};
@@ -291,12 +284,14 @@ public:
wxAuiTabArt* Clone();
void SetFlags(unsigned int flags);
- void SetSizingInfo(const wxSize& tab_ctrl_size,
- size_t tab_count);
+ void SetSizingInfo(const wxSize& tabCtrlSize,
+ size_t tabCount);
void SetNormalFont(const wxFont& font);
void SetSelectedFont(const wxFont& font);
void SetMeasuringFont(const wxFont& font);
+ void SetColour(const wxColour& colour);
+ void SetActiveColour(const wxColour& colour);
void DrawBackground(
wxDC& dc,
@@ -306,20 +301,20 @@ public:
void DrawTab(wxDC& dc,
wxWindow* wnd,
const wxAuiNotebookPage& pane,
- const wxRect& in_rect,
- int close_button_state,
- wxRect* out_tab_rect,
- wxRect* out_button_rect,
- int* x_extent);
+ const wxRect& inRect,
+ int closeButtonState,
+ wxRect* outTabRect,
+ wxRect* outButtonRect,
+ int* xExtent);
void DrawButton(
wxDC& dc,
wxWindow* wnd,
- const wxRect& in_rect,
- int bitmap_id,
- int button_state,
+ const wxRect& inRect,
+ int bitmapId,
+ int buttonState,
int orientation,
- wxRect* out_rect);
+ wxRect* outRect);
int GetIndentSize();
@@ -329,38 +324,38 @@ public:
const wxString& caption,
const wxBitmap& bitmap,
bool active,
- int close_button_state,
- int* x_extent);
+ int closeButtonState,
+ int* xExtent);
int ShowDropDown(
wxWindow* wnd,
const wxAuiNotebookPageArray& items,
- int active_idx);
+ int activeIdx);
int GetBestTabCtrlSize(wxWindow* wnd,
const wxAuiNotebookPageArray& pages,
- const wxSize& required_bmp_size);
+ const wxSize& requiredBmpSize);
protected:
- wxFont m_normal_font;
- wxFont m_selected_font;
- wxFont m_measuring_font;
- wxPen m_normal_bkpen;
- wxPen m_selected_bkpen;
- wxBrush m_normal_bkbrush;
- wxBrush m_selected_bkbrush;
- wxBrush m_bkbrush;
- wxBitmap m_active_close_bmp;
- wxBitmap m_disabled_close_bmp;
- wxBitmap m_active_left_bmp;
- wxBitmap m_disabled_left_bmp;
- wxBitmap m_active_right_bmp;
- wxBitmap m_disabled_right_bmp;
- wxBitmap m_active_windowlist_bmp;
- wxBitmap m_disabled_windowlist_bmp;
+ wxFont m_normalFont;
+ wxFont m_selectedFont;
+ wxFont m_measuringFont;
+ wxPen m_normalBkPen;
+ wxPen m_selectedBkPen;
+ wxBrush m_normalBkBrush;
+ wxBrush m_selectedBkBrush;
+ wxBrush m_bkBrush;
+ wxBitmap m_activeCloseBmp;
+ wxBitmap m_disabledCloseBmp;
+ wxBitmap m_activeLeftBmp;
+ wxBitmap m_disabledLeftBmp;
+ wxBitmap m_activeRightBmp;
+ wxBitmap m_disabledRightBmp;
+ wxBitmap m_activeWindowListBmp;
+ wxBitmap m_disabledWindowListBmp;
- int m_fixed_tab_width;
+ int m_fixedTabWidth;
unsigned int m_flags;
};
@@ -387,7 +382,7 @@ public:
bool AddPage(wxWindow* page, const wxAuiNotebookPage& info);
bool InsertPage(wxWindow* page, const wxAuiNotebookPage& info, size_t idx);
- bool MovePage(wxWindow* page, size_t new_idx);
+ bool MovePage(wxWindow* page, size_t newIdx);
bool RemovePage(wxWindow* page);
bool SetActivePage(wxWindow* page);
bool SetActivePage(size_t page);
@@ -401,17 +396,19 @@ public:
wxAuiNotebookPage& GetPage(size_t idx);
const wxAuiNotebookPage& GetPage(size_t idx) const;
wxAuiNotebookPageArray& GetPages();
- void SetNormalFont(const wxFont& normal_font);
- void SetSelectedFont(const wxFont& selected_font);
- void SetMeasuringFont(const wxFont& measuring_font);
+ void SetNormalFont(const wxFont& normalFont);
+ void SetSelectedFont(const wxFont& selectedFont);
+ void SetMeasuringFont(const wxFont& measuringFont);
+ void SetColour(const wxColour& colour);
+ void SetActiveColour(const wxColour& colour);
void DoShowHide();
void SetRect(const wxRect& rect);
void RemoveButton(int id);
void AddButton(int id,
int location,
- const wxBitmap& normal_bitmap = wxNullBitmap,
- const wxBitmap& disabled_bitmap = wxNullBitmap);
+ const wxBitmap& normalBitmap = wxNullBitmap,
+ const wxBitmap& disabledBitmap = wxNullBitmap);
size_t GetTabOffset() const;
void SetTabOffset(size_t offset);
@@ -431,9 +428,9 @@ protected:
wxAuiTabArt* m_art;
wxAuiNotebookPageArray m_pages;
wxAuiTabContainerButtonArray m_buttons;
- wxAuiTabContainerButtonArray m_tab_close_buttons;
+ wxAuiTabContainerButtonArray m_tabCloseButtons;
wxRect m_rect;
- size_t m_tab_offset;
+ size_t m_tabOffset;
unsigned int m_flags;
};
@@ -452,7 +449,7 @@ public:
~wxAuiTabCtrl();
- bool IsDragging() const { return m_is_dragging; }
+ bool IsDragging() const { return m_isDragging; }
protected:
// choose the default border for this window
@@ -478,11 +475,11 @@ protected:
protected:
- wxPoint m_click_pt;
- wxWindow* m_click_tab;
- bool m_is_dragging;
- wxAuiTabContainerButton* m_hover_button;
- wxAuiTabContainerButton* m_pressed_button;
+ wxPoint m_clickPt;
+ wxWindow* m_clickTab;
+ bool m_isDragging;
+ wxAuiTabContainerButton* m_hoverButton;
+ wxAuiTabContainerButton* m_pressedButton;
#ifndef SWIG
DECLARE_CLASS(wxAuiTabCtrl)
@@ -493,18 +490,22 @@ protected:
-class WXDLLIMPEXP_AUI wxAuiNotebook : public wxControl
+class WXDLLIMPEXP_AUI wxAuiNotebook : public wxNavigationEnabled
{
public:
- wxAuiNotebook();
+ wxAuiNotebook() { Init(); }
wxAuiNotebook(wxWindow* parent,
wxWindowID id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
- long style = wxAUI_NB_DEFAULT_STYLE);
+ long style = wxAUI_NB_DEFAULT_STYLE)
+ {
+ Init();
+ Create(parent, id, pos, size, style);
+ }
virtual ~wxAuiNotebook();
@@ -526,7 +527,7 @@ public:
bool select = false,
const wxBitmap& bitmap = wxNullBitmap);
- bool InsertPage(size_t page_idx,
+ bool InsertPage(size_t pageIdx,
wxWindow* page,
const wxString& caption,
bool select = false,
@@ -536,16 +537,16 @@ public:
bool RemovePage(size_t page);
size_t GetPageCount() const;
- wxWindow* GetPage(size_t page_idx) const;
- int GetPageIndex(wxWindow* page_wnd) const;
+ wxWindow* GetPage(size_t pageIdx) const;
+ int GetPageIndex(wxWindow* pageWnd) const;
bool SetPageText(size_t page, const wxString& text);
- wxString GetPageText(size_t page_idx) const;
+ wxString GetPageText(size_t pageIdx) const;
bool SetPageBitmap(size_t page, const wxBitmap& bitmap);
- wxBitmap GetPageBitmap(size_t page_idx) const;
+ wxBitmap GetPageBitmap(size_t pageIdx) const;
- size_t SetSelection(size_t new_page);
+ int SetSelection(size_t newPage);
int GetSelection() const;
virtual void Split(size_t page, int direction);
@@ -585,7 +586,28 @@ public:
// Redo sizing after thawing
virtual void Thaw();
+ //wxBookCtrlBase functions
+
+ virtual void SetPageSize (const wxSize &size);
+ virtual int HitTest (const wxPoint &pt, long *flags=NULL) const;
+
+ virtual int GetPageImage(size_t n) const;
+ virtual bool SetPageImage(size_t n, int imageId);
+
+ wxWindow* GetCurrentPage () const;
+
+ virtual int ChangeSelection(size_t n);
+
+ virtual bool AddPage(wxWindow *page, const wxString &text, bool select,
+ int imageId);
+ virtual bool DeleteAllPages();
+ virtual bool InsertPage(size_t index, wxWindow *page, const wxString &text,
+ bool select, int imageId);
+
protected:
+ // Common part of all ctors.
+ void Init();
+
// choose the default border for this window
virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
@@ -598,12 +620,18 @@ protected:
virtual int CalculateTabCtrlHeight();
virtual wxSize CalculateNewSplitSize();
+ // remove the page and return a pointer to it
+ virtual wxWindow *DoRemovePage(size_t WXUNUSED(page)) { return NULL; }
+
+ //A general selection function
+ virtual int DoModifySelection(size_t n, bool events);
+
protected:
void DoSizing();
void InitNotebook(long style);
wxAuiTabCtrl* GetTabCtrlFromPoint(const wxPoint& pt);
- wxWindow* GetTabFrameFromTabCtrl(wxWindow* tab_ctrl);
+ wxWindow* GetTabFrameFromTabCtrl(wxWindow* tabCtrl);
wxAuiTabCtrl* GetActiveTabCtrl();
bool FindTab(wxWindow* page, wxAuiTabCtrl** ctrl, int* idx);
void RemoveEmptyTabFrames();
@@ -618,6 +646,7 @@ protected:
void OnTabBeginDrag(wxAuiNotebookEvent& evt);
void OnTabDragMotion(wxAuiNotebookEvent& evt);
void OnTabEndDrag(wxAuiNotebookEvent& evt);
+ void OnTabCancelDrag(wxAuiNotebookEvent& evt);
void OnTabButton(wxAuiNotebookEvent& evt);
void OnTabMiddleDown(wxAuiNotebookEvent& evt);
void OnTabMiddleUp(wxAuiNotebookEvent& evt);
@@ -638,26 +667,23 @@ protected:
wxAuiManager m_mgr;
wxAuiTabContainer m_tabs;
- int m_curpage;
- int m_tab_id_counter;
- wxWindow* m_dummy_wnd;
+ int m_curPage;
+ int m_tabIdCounter;
+ wxWindow* m_dummyWnd;
- wxSize m_requested_bmp_size;
- int m_requested_tabctrl_height;
- wxFont m_selected_font;
- wxFont m_normal_font;
- int m_tab_ctrl_height;
+ wxSize m_requestedBmpSize;
+ int m_requestedTabCtrlHeight;
+ wxFont m_selectedFont;
+ wxFont m_normalFont;
+ int m_tabCtrlHeight;
- int m_last_drag_x;
+ int m_lastDragX;
unsigned int m_flags;
#ifndef SWIG
DECLARE_CLASS(wxAuiNotebook)
DECLARE_EVENT_TABLE()
#endif
-
- WX_DECLARE_CONTROL_CONTAINER();
-
};
diff --git a/Externals/wxWidgets3/include/wx/aui/dockart.h b/Externals/wxWidgets3/include/wx/aui/dockart.h
index beaa0dc9fa..fbc2ba7593 100644
--- a/Externals/wxWidgets3/include/wx/aui/dockart.h
+++ b/Externals/wxWidgets3/include/wx/aui/dockart.h
@@ -4,7 +4,7 @@
// Author: Benjamin I. Williams
// Modified by:
// Created: 2005-05-17
-// RCS-ID: $Id: dockart.h 66670 2011-01-12 13:39:36Z VZ $
+// RCS-ID: $Id: dockart.h 69590 2011-10-30 14:20:03Z VZ $
// Copyright: (C) Copyright 2005, Kirix Corporation, All Rights Reserved.
// Licence: wxWindows Library Licence, Version 3.1
///////////////////////////////////////////////////////////////////////////////
@@ -37,7 +37,7 @@ public:
virtual ~wxAuiDockArt() { }
virtual int GetMetric(int id) = 0;
- virtual void SetMetric(int id, int new_val) = 0;
+ virtual void SetMetric(int id, int newVal) = 0;
virtual void SetFont(int id, const wxFont& font) = 0;
virtual wxFont GetFont(int id) = 0;
virtual wxColour GetColour(int id) = 0;
@@ -74,7 +74,7 @@ public:
virtual void DrawPaneButton(wxDC& dc,
wxWindow* window,
int button,
- int button_state,
+ int buttonState,
const wxRect& rect,
wxAuiPaneInfo& pane) = 0;
};
@@ -90,8 +90,8 @@ public:
wxAuiDefaultDockArt();
- int GetMetric(int metric_id);
- void SetMetric(int metric_id, int new_val);
+ int GetMetric(int metricId);
+ void SetMetric(int metricId, int newVal);
wxColour GetColour(int id);
void SetColour(int id, const wxColor& colour);
void SetFont(int id, const wxFont& font);
@@ -126,7 +126,7 @@ public:
void DrawPaneButton(wxDC& dc,
wxWindow *window,
int button,
- int button_state,
+ int buttonState,
const wxRect& rect,
wxAuiPaneInfo& pane);
@@ -142,35 +142,35 @@ protected:
protected:
- wxPen m_border_pen;
- wxBrush m_sash_brush;
- wxBrush m_background_brush;
- wxBrush m_gripper_brush;
- wxFont m_caption_font;
- wxBitmap m_inactive_close_bitmap;
- wxBitmap m_inactive_pin_bitmap;
- wxBitmap m_inactive_maximize_bitmap;
- wxBitmap m_inactive_restore_bitmap;
- wxBitmap m_active_close_bitmap;
- wxBitmap m_active_pin_bitmap;
- wxBitmap m_active_maximize_bitmap;
- wxBitmap m_active_restore_bitmap;
- wxPen m_gripper_pen1;
- wxPen m_gripper_pen2;
- wxPen m_gripper_pen3;
- wxColour m_base_colour;
- wxColour m_active_caption_colour;
- wxColour m_active_caption_gradient_colour;
- wxColour m_active_caption_text_colour;
- wxColour m_inactive_caption_colour;
- wxColour m_inactive_caption_gradient_colour;
- wxColour m_inactive_caption_text_colour;
- int m_border_size;
- int m_caption_size;
- int m_sash_size;
- int m_button_size;
- int m_gripper_size;
- int m_gradient_type;
+ wxPen m_borderPen;
+ wxBrush m_sashBrush;
+ wxBrush m_backgroundBrush;
+ wxBrush m_gripperBrush;
+ wxFont m_captionFont;
+ wxBitmap m_inactiveCloseBitmap;
+ wxBitmap m_inactivePinBitmap;
+ wxBitmap m_inactiveMaximizeBitmap;
+ wxBitmap m_inactiveRestoreBitmap;
+ wxBitmap m_activeCloseBitmap;
+ wxBitmap m_activePinBitmap;
+ wxBitmap m_activeMaximizeBitmap;
+ wxBitmap m_activeRestoreBitmap;
+ wxPen m_gripperPen1;
+ wxPen m_gripperPen2;
+ wxPen m_gripperPen3;
+ wxColour m_baseColour;
+ wxColour m_activeCaptionColour;
+ wxColour m_activeCaptionGradientColour;
+ wxColour m_activeCaptionTextColour;
+ wxColour m_inactiveCaptionColour;
+ wxColour m_inactiveCaptionGradientColour;
+ wxColour m_inactiveCaptionTextColour;
+ int m_borderSize;
+ int m_captionSize;
+ int m_sashSize;
+ int m_buttonSize;
+ int m_gripperSize;
+ int m_gradientType;
};
diff --git a/Externals/wxWidgets3/include/wx/aui/floatpane.h b/Externals/wxWidgets3/include/wx/aui/floatpane.h
index 76d1cb54b2..d88614555d 100644
--- a/Externals/wxWidgets3/include/wx/aui/floatpane.h
+++ b/Externals/wxWidgets3/include/wx/aui/floatpane.h
@@ -4,7 +4,7 @@
// Author: Benjamin I. Williams
// Modified by:
// Created: 2005-05-17
-// RCS-ID: $Id: floatpane.h 61724 2009-08-21 10:41:26Z VZ $
+// RCS-ID: $Id: floatpane.h 69590 2011-10-30 14:20:03Z VZ $
// Copyright: (C) Copyright 2005, Kirix Corporation, All Rights Reserved.
// Licence: wxWindows Library Licence, Version 3.1
///////////////////////////////////////////////////////////////////////////////
@@ -33,7 +33,7 @@ class WXDLLIMPEXP_AUI wxAuiFloatingFrame : public wxAuiFloatingFrameBaseClass
{
public:
wxAuiFloatingFrame(wxWindow* parent,
- wxAuiManager* owner_mgr,
+ wxAuiManager* ownerMgr,
const wxAuiPaneInfo& pane,
wxWindowID id = wxID_ANY,
long style = wxRESIZE_BORDER | wxSYSTEM_MENU | wxCAPTION |
@@ -46,7 +46,7 @@ public:
protected:
virtual void OnMoveStart();
- virtual void OnMoving(const wxRect& window_rect, wxDirection dir);
+ virtual void OnMoving(const wxRect& windowRect, wxDirection dir);
virtual void OnMoveFinished();
private:
@@ -58,16 +58,16 @@ private:
static bool isMouseDown();
private:
- wxWindow* m_pane_window; // pane window being managed
- bool m_solid_drag; // true if system uses solid window drag
+ wxWindow* m_paneWindow; // pane window being managed
+ bool m_solidDrag; // true if system uses solid window drag
bool m_moving;
- wxRect m_last_rect;
- wxRect m_last2_rect;
- wxRect m_last3_rect;
- wxSize m_last_size;
+ wxRect m_lastRect;
+ wxRect m_last2Rect;
+ wxRect m_last3Rect;
+ wxSize m_lastSize;
wxDirection m_lastDirection;
- wxWeakRef m_owner_mgr;
+ wxWeakRef m_ownerMgr;
wxAuiManager m_mgr;
#ifndef SWIG
diff --git a/Externals/wxWidgets3/include/wx/aui/framemanager.h b/Externals/wxWidgets3/include/wx/aui/framemanager.h
index 211171ebb6..c11491617f 100644
--- a/Externals/wxWidgets3/include/wx/aui/framemanager.h
+++ b/Externals/wxWidgets3/include/wx/aui/framemanager.h
@@ -4,7 +4,7 @@
// Author: Benjamin I. Williams
// Modified by:
// Created: 2005-05-17
-// RCS-ID: $Id: framemanager.h 66673 2011-01-12 18:04:39Z PC $
+// RCS-ID: $Id: framemanager.h 70807 2012-03-04 20:31:34Z VZ $
// Copyright: (C) Copyright 2005, Kirix Corporation, All Rights Reserved.
// Licence: wxWindows Library Licence, Version 3.1
///////////////////////////////////////////////////////////////////////////////
@@ -458,7 +458,7 @@ class WXDLLIMPEXP_AUI wxAuiManager : public wxEvtHandler
public:
- wxAuiManager(wxWindow* managed_wnd = NULL,
+ wxAuiManager(wxWindow* managedWnd = NULL,
unsigned int flags = wxAUI_MGR_DEFAULT);
virtual ~wxAuiManager();
void UnInit();
@@ -466,12 +466,12 @@ public:
void SetFlags(unsigned int flags);
unsigned int GetFlags() const;
- void SetManagedWindow(wxWindow* managed_wnd);
+ void SetManagedWindow(wxWindow* managedWnd);
wxWindow* GetManagedWindow() const;
static wxAuiManager* GetManager(wxWindow* window);
- void SetArtProvider(wxAuiDockArt* art_provider);
+ void SetArtProvider(wxAuiDockArt* artProvider);
wxAuiDockArt* GetArtProvider() const;
wxAuiPaneInfo& GetPane(wxWindow* window);
@@ -479,35 +479,35 @@ public:
wxAuiPaneInfoArray& GetAllPanes();
bool AddPane(wxWindow* window,
- const wxAuiPaneInfo& pane_info);
+ const wxAuiPaneInfo& paneInfo);
bool AddPane(wxWindow* window,
- const wxAuiPaneInfo& pane_info,
- const wxPoint& drop_pos);
+ const wxAuiPaneInfo& paneInfo,
+ const wxPoint& dropPos);
bool AddPane(wxWindow* window,
int direction = wxLEFT,
const wxString& caption = wxEmptyString);
bool InsertPane(wxWindow* window,
- const wxAuiPaneInfo& insert_location,
- int insert_level = wxAUI_INSERT_PANE);
+ const wxAuiPaneInfo& insertLocation,
+ int insertLevel = wxAUI_INSERT_PANE);
bool DetachPane(wxWindow* window);
void Update();
wxString SavePaneInfo(wxAuiPaneInfo& pane);
- void LoadPaneInfo(wxString pane_part, wxAuiPaneInfo &pane);
+ void LoadPaneInfo(wxString panePart, wxAuiPaneInfo &pane);
wxString SavePerspective();
bool LoadPerspective(const wxString& perspective, bool update = true);
- void SetDockSizeConstraint(double width_pct, double height_pct);
- void GetDockSizeConstraint(double* width_pct, double* height_pct) const;
+ void SetDockSizeConstraint(double widthPct, double heightPct);
+ void GetDockSizeConstraint(double* widthPct, double* heightPct) const;
- void ClosePane(wxAuiPaneInfo& pane_info);
- void MaximizePane(wxAuiPaneInfo& pane_info);
- void RestorePane(wxAuiPaneInfo& pane_info);
+ void ClosePane(wxAuiPaneInfo& paneInfo);
+ void MaximizePane(wxAuiPaneInfo& paneInfo);
+ void RestorePane(wxAuiPaneInfo& paneInfo);
void RestoreMaximizedPane();
public:
@@ -516,16 +516,16 @@ public:
virtual bool CanDockPanel(const wxAuiPaneInfo & p);
void StartPaneDrag(
- wxWindow* pane_window,
+ wxWindow* paneWindow,
const wxPoint& offset);
wxRect CalculateHintRect(
- wxWindow* pane_window,
+ wxWindow* paneWindow,
const wxPoint& pt,
const wxPoint& offset);
void DrawHintRect(
- wxWindow* pane_window,
+ wxWindow* paneWindow,
const wxPoint& pt,
const wxPoint& offset);
@@ -552,26 +552,26 @@ protected:
wxAuiDockInfo& dock,
wxAuiPaneInfo& pane,
wxAuiDockUIPartArray& uiparts,
- bool spacer_only);
+ bool spacerOnly);
void LayoutAddDock(wxSizer* container,
wxAuiDockInfo& dock,
- wxAuiDockUIPartArray& uiparts,
- bool spacer_only);
+ wxAuiDockUIPartArray& uiParts,
+ bool spacerOnly);
wxSizer* LayoutAll(wxAuiPaneInfoArray& panes,
wxAuiDockInfoArray& docks,
- wxAuiDockUIPartArray& uiparts,
- bool spacer_only = false);
+ wxAuiDockUIPartArray & uiParts,
+ bool spacerOnly = false);
virtual bool ProcessDockResult(wxAuiPaneInfo& target,
- const wxAuiPaneInfo& new_pos);
+ const wxAuiPaneInfo& newPos);
bool DoDrop(wxAuiDockInfoArray& docks,
wxAuiPaneInfoArray& panes,
wxAuiPaneInfo& drop,
const wxPoint& pt,
- const wxPoint& action_offset = wxPoint(0,0));
+ const wxPoint& actionOffset = wxPoint(0,0));
wxAuiDockUIPart* HitTest(int x, int y);
wxAuiDockUIPart* GetPanePart(wxWindow* pane);
@@ -585,7 +585,7 @@ protected:
void Render(wxDC* dc);
void Repaint(wxDC* dc = NULL);
void ProcessMgrEvent(wxAuiManagerEvent& event);
- void UpdateButtonOnScreen(wxAuiDockUIPart* button_ui_part,
+ void UpdateButtonOnScreen(wxAuiDockUIPart* buttonUiPart,
const wxMouseEvent& event);
void GetPanePositionsAndSizes(wxAuiDockInfo& dock,
wxArrayInt& positions,
@@ -594,6 +594,8 @@ protected:
/// Ends a resize action, or for live update, resizes the sash
bool DoEndResizeAction(wxMouseEvent& event);
+ void SetActivePane(wxWindow* active_pane);
+
public:
// public events (which can be invoked externally)
@@ -636,29 +638,29 @@ protected:
wxAuiPaneInfoArray m_panes; // array of panes structures
wxAuiDockInfoArray m_docks; // array of docks structures
- wxAuiDockUIPartArray m_uiparts; // array of UI parts (captions, buttons, etc)
+ wxAuiDockUIPartArray m_uiParts; // array of UI parts (captions, buttons, etc)
int m_action; // current mouse action
- wxPoint m_action_start; // position where the action click started
- wxPoint m_action_offset; // offset from upper left of the item clicked
- wxAuiDockUIPart* m_action_part; // ptr to the part the action happened to
- wxWindow* m_action_window; // action frame or window (NULL if none)
- wxRect m_action_hintrect; // hint rectangle for the action
- wxRect m_last_rect;
- wxAuiDockUIPart* m_hover_button;// button uipart being hovered over
- wxRect m_last_hint; // last hint rectangle
- wxPoint m_last_mouse_move; // last mouse move position (see OnMotion)
+ wxPoint m_actionStart; // position where the action click started
+ wxPoint m_actionOffset; // offset from upper left of the item clicked
+ wxAuiDockUIPart* m_actionPart; // ptr to the part the action happened to
+ wxWindow* m_actionWindow; // action frame or window (NULL if none)
+ wxRect m_actionHintRect; // hint rectangle for the action
+ wxRect m_lastRect;
+ wxAuiDockUIPart* m_hoverButton;// button uipart being hovered over
+ wxRect m_lastHint; // last hint rectangle
+ wxPoint m_lastMouseMove; // last mouse move position (see OnMotion)
int m_currentDragItem;
bool m_skipping;
- bool m_has_maximized;
+ bool m_hasMaximized;
- double m_dock_constraint_x; // 0.0 .. 1.0; max pct of window width a dock can consume
- double m_dock_constraint_y; // 0.0 .. 1.0; max pct of window height a dock can consume
+ double m_dockConstraintX; // 0.0 .. 1.0; max pct of window width a dock can consume
+ double m_dockConstraintY; // 0.0 .. 1.0; max pct of window height a dock can consume
- wxFrame* m_hint_wnd; // transparent hint window, if supported by platform
- wxTimer m_hint_fadetimer; // transparent fade timer
- wxByte m_hint_fadeamt; // transparent fade amount
- wxByte m_hint_fademax; // maximum value of hint fade
+ wxFrame* m_hintWnd; // transparent hint window, if supported by platform
+ wxTimer m_hintFadeTimer; // transparent fade timer
+ wxByte m_hintFadeAmt; // transparent fade amount
+ wxByte m_hintFadeMax; // maximum value of hint fade
void* m_reserved;
@@ -839,6 +841,7 @@ wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_AUI, wxEVT_AUI_PANE_BUTTON, wxAuiManagerEv
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_AUI, wxEVT_AUI_PANE_CLOSE, wxAuiManagerEvent );
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_AUI, wxEVT_AUI_PANE_MAXIMIZE, wxAuiManagerEvent );
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_AUI, wxEVT_AUI_PANE_RESTORE, wxAuiManagerEvent );
+wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_AUI, wxEVT_AUI_PANE_ACTIVATED, wxAuiManagerEvent );
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_AUI, wxEVT_AUI_RENDER, wxAuiManagerEvent );
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_AUI, wxEVT_AUI_FIND_MANAGER, wxAuiManagerEvent );
@@ -855,6 +858,8 @@ typedef void (wxEvtHandler::*wxAuiManagerEventFunction)(wxAuiManagerEvent&);
wx__DECLARE_EVT0(wxEVT_AUI_PANE_MAXIMIZE, wxAuiManagerEventHandler(func))
#define EVT_AUI_PANE_RESTORE(func) \
wx__DECLARE_EVT0(wxEVT_AUI_PANE_RESTORE, wxAuiManagerEventHandler(func))
+#define EVT_AUI_PANE_ACTIVATED(func) \
+ wx__DECLARE_EVT0(wxEVT_AUI_PANE_ACTIVATED, wxAuiManagerEventHandler(func))
#define EVT_AUI_RENDER(func) \
wx__DECLARE_EVT0(wxEVT_AUI_RENDER, wxAuiManagerEventHandler(func))
#define EVT_AUI_FIND_MANAGER(func) \
@@ -866,6 +871,7 @@ typedef void (wxEvtHandler::*wxAuiManagerEventFunction)(wxAuiManagerEvent&);
%constant wxEventType wxEVT_AUI_PANE_CLOSE;
%constant wxEventType wxEVT_AUI_PANE_MAXIMIZE;
%constant wxEventType wxEVT_AUI_PANE_RESTORE;
+%constant wxEventType wxEVT_AUI_PANE_ACTIVATED;
%constant wxEventType wxEVT_AUI_RENDER;
%constant wxEventType wxEVT_AUI_FIND_MANAGER;
@@ -874,6 +880,7 @@ typedef void (wxEvtHandler::*wxAuiManagerEventFunction)(wxAuiManagerEvent&);
EVT_AUI_PANE_CLOSE = wx.PyEventBinder( wxEVT_AUI_PANE_CLOSE )
EVT_AUI_PANE_MAXIMIZE = wx.PyEventBinder( wxEVT_AUI_PANE_MAXIMIZE )
EVT_AUI_PANE_RESTORE = wx.PyEventBinder( wxEVT_AUI_PANE_RESTORE )
+ EVT_AUI_PANE_ACTIVATED = wx.PyEventBinder( wxEVT_AUI_PANE_ACTIVATED )
EVT_AUI_RENDER = wx.PyEventBinder( wxEVT_AUI_RENDER )
EVT_AUI_FIND_MANAGER = wx.PyEventBinder( wxEVT_AUI_FIND_MANAGER )
}
diff --git a/Externals/wxWidgets3/include/wx/aui/tabmdi.h b/Externals/wxWidgets3/include/wx/aui/tabmdi.h
index ce9d812348..6a680845b3 100644
--- a/Externals/wxWidgets3/include/wx/aui/tabmdi.h
+++ b/Externals/wxWidgets3/include/wx/aui/tabmdi.h
@@ -4,7 +4,7 @@
// Author: Hans Van Leemputten
// Modified by: Benjamin I. Williams / Kirix Corporation
// Created: 29/07/2002
-// RCS-ID: $Id: tabmdi.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: tabmdi.h 70909 2012-03-15 13:49:54Z VZ $
// Copyright: (c) Hans Van Leemputten
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -101,6 +101,7 @@ protected:
void AddWindowMenu(wxMenuBar *pMenuBar);
void DoHandleMenu(wxCommandEvent &event);
+ void DoHandleUpdateUI(wxUpdateUIEvent &event);
#endif // wxUSE_MENUS
virtual bool ProcessEvent(wxEvent& event);
@@ -138,7 +139,7 @@ public:
const wxString& name = wxFrameNameStr);
#if wxUSE_MENUS
- virtual void SetMenuBar(wxMenuBar *menu_bar);
+ virtual void SetMenuBar(wxMenuBar *menuBar);
virtual wxMenuBar *GetMenuBar() const;
#endif // wxUSE_MENUS
@@ -199,7 +200,7 @@ public:
protected:
void Init();
- virtual void DoSetSize(int x, int y, int width, int height, int size_flags);
+ virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags);
virtual void DoMoveWindow(int x, int y, int width, int height);
// no size hints
@@ -215,12 +216,12 @@ public:
protected:
wxAuiMDIParentFrame* m_pMDIParentFrame;
- wxRect m_mdi_newrect;
- wxRect m_mdi_currect;
+ wxRect m_mdiNewRect;
+ wxRect m_mdiCurRect;
wxString m_title;
wxIcon m_icon;
- wxIconBundle m_icon_bundle;
- bool m_activate_on_create;
+ wxIconBundle m_iconBundle;
+ bool m_activateOnCreate;
#if wxUSE_MENUS
wxMenuBar* m_pMenuBar;
@@ -244,7 +245,6 @@ class WXDLLIMPEXP_AUI wxAuiMDIClientWindow : public wxAuiNotebook
public:
wxAuiMDIClientWindow();
wxAuiMDIClientWindow(wxAuiMDIParentFrame *parent, long style = 0);
- ~wxAuiMDIClientWindow();
virtual bool CreateClient(wxAuiMDIParentFrame *parent,
long style = wxVSCROLL | wxHSCROLL);
@@ -253,7 +253,7 @@ public:
protected:
- void PageChanged(int old_selection, int new_selection);
+ void PageChanged(int oldSelection, int newSelection);
void OnPageClose(wxAuiNotebookEvent& evt);
void OnPageChanged(wxAuiNotebookEvent& evt);
void OnSize(wxSizeEvent& evt);
diff --git a/Externals/wxWidgets3/include/wx/bannerwindow.h b/Externals/wxWidgets3/include/wx/bannerwindow.h
new file mode 100644
index 0000000000..1ce3bc3170
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/bannerwindow.h
@@ -0,0 +1,145 @@
+///////////////////////////////////////////////////////////////////////////////
+// Name: wx/bannerwindow.h
+// Purpose: wxBannerWindow class declaration
+// Author: Vadim Zeitlin
+// Created: 2011-08-16
+// RCS-ID: $Id: bannerwindow.h 69859 2011-11-28 18:58:52Z VZ $
+// Copyright: (c) 2011 Vadim Zeitlin
+// Licence: wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_BANNERWINDOW_H_
+#define _WX_BANNERWINDOW_H_
+
+#include "wx/defs.h"
+
+#if wxUSE_BANNERWINDOW
+
+#include "wx/bitmap.h"
+#include "wx/event.h"
+#include "wx/window.h"
+
+class WXDLLIMPEXP_FWD_CORE wxBitmap;
+class WXDLLIMPEXP_FWD_CORE wxColour;
+class WXDLLIMPEXP_FWD_CORE wxDC;
+
+extern WXDLLIMPEXP_DATA_ADV(const char) wxBannerWindowNameStr[];
+
+// ----------------------------------------------------------------------------
+// A simple banner window showing either a bitmap or text.
+// ----------------------------------------------------------------------------
+
+class WXDLLIMPEXP_ADV wxBannerWindow : public wxWindow
+{
+public:
+ // Default constructor, use Create() later.
+ wxBannerWindow() { Init(); }
+
+ // Convenient constructor that should be used in the majority of cases.
+ //
+ // The banner orientation changes how the text in it is displayed and also
+ // defines where is the bitmap truncated if it's too big to fit but doesn't
+ // do anything for the banner position, this is supposed to be taken care
+ // of in the usual way, e.g. using sizers.
+ wxBannerWindow(wxWindow* parent, wxDirection dir = wxLEFT)
+ {
+ Init();
+
+ Create(parent, wxID_ANY, dir);
+ }
+
+ // Full constructor provided for consistency with the other classes only.
+ wxBannerWindow(wxWindow* parent,
+ wxWindowID winid,
+ wxDirection dir = wxLEFT,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = 0,
+ const wxString& name = wxBannerWindowNameStr)
+ {
+ Init();
+
+ Create(parent, winid, dir, pos, size, style, name);
+ }
+
+ // Can be only called on objects created with the default constructor.
+ bool Create(wxWindow* parent,
+ wxWindowID winid,
+ wxDirection dir = wxLEFT,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = 0,
+ const wxString& name = wxBannerWindowNameStr);
+
+
+ // Provide an existing bitmap to show. For wxLEFT orientation the bitmap is
+ // truncated from the top, for wxTOP and wxBOTTOM -- from the right and for
+ // wxRIGHT -- from the bottom, so put the most important part of the bitmap
+ // information in the opposite direction.
+ void SetBitmap(const wxBitmap& bmp);
+
+ // Set the text to display. This is mutually exclusive with SetBitmap().
+ // Title is rendered in bold and should be single line, message can have
+ // multiple lines but is not wrapped automatically.
+ void SetText(const wxString& title, const wxString& message);
+
+ // Set the colours between which the gradient runs. This can be combined
+ // with SetText() but not SetBitmap().
+ void SetGradient(const wxColour& start, const wxColour& end);
+
+protected:
+ virtual wxSize DoGetBestClientSize() const;
+
+private:
+ // Common part of all constructors.
+ void Init();
+
+ // Fully invalidates the window.
+ void OnSize(wxSizeEvent& event);
+
+ // Redraws the window using either m_bitmap or m_title/m_message.
+ void OnPaint(wxPaintEvent& event);
+
+ // Helper of OnPaint(): draw the bitmap at the correct position depending
+ // on our orientation.
+ void DrawBitmapBackground(wxDC& dc);
+
+ // Helper of OnPaint(): draw the text in the appropriate direction.
+ void DrawBannerTextLine(wxDC& dc, const wxString& str, const wxPoint& pos);
+
+ // Return the font to use for the title. Currently this is hardcoded as a
+ // larger bold version of the standard window font but could be made
+ // configurable in the future.
+ wxFont GetTitleFont() const;
+
+ // Return the colour to use for extending the bitmap. Non-const as it
+ // updates m_colBitmapBg if needed.
+ wxColour GetBitmapBg();
+
+
+ // The window side along which the banner is laid out.
+ wxDirection m_direction;
+
+ // If valid, this bitmap is drawn as is.
+ wxBitmap m_bitmap;
+
+ // If bitmap is valid, this is the colour we use to extend it if the bitmap
+ // is smaller than this window. It is computed on demand by GetBitmapBg().
+ wxColour m_colBitmapBg;
+
+ // The title and main message to draw, used if m_bitmap is invalid.
+ wxString m_title,
+ m_message;
+
+ // Start and stop gradient colours, only used when drawing text.
+ wxColour m_colStart,
+ m_colEnd;
+
+ wxDECLARE_EVENT_TABLE();
+
+ wxDECLARE_NO_COPY_CLASS(wxBannerWindow);
+};
+
+#endif // wxUSE_BANNERWINDOW
+
+#endif // _WX_BANNERWINDOW_H_
diff --git a/Externals/wxWidgets3/include/wx/bitmap.h b/Externals/wxWidgets3/include/wx/bitmap.h
index 73c7ba965e..ab9046803c 100644
--- a/Externals/wxWidgets3/include/wx/bitmap.h
+++ b/Externals/wxWidgets3/include/wx/bitmap.h
@@ -4,7 +4,7 @@
// Author: Vaclav Slavik
// Modified by:
// Created: 22.04.01
-// RCS-ID: $Id: bitmap.h 66086 2010-11-10 13:51:51Z VZ $
+// RCS-ID: $Id: bitmap.h 70353 2012-01-15 14:46:41Z VZ $
// Copyright: (c) wxWidgets team
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -68,8 +68,7 @@ protected:
virtual bool InitFromMonoBitmap(const wxBitmap& bitmap) = 0;
};
-#if defined(__WXMGL__) || \
- defined(__WXDFB__) || \
+#if defined(__WXDFB__) || \
defined(__WXMAC__) || \
defined(__WXGTK__) || \
defined(__WXCOCOA__) || \
@@ -84,9 +83,9 @@ protected:
#define wxBITMAP_SCREEN_DEPTH (-1)
-// All ports except wxMSW,wxOS2,wxPalmOS use wxBitmapHandler and wxBitmapBase as base class
-// for wxBitmapHandler; wxMSW,wxOS2,wxPalmOS use wxGDIImageHandler as base class
-// since it allows some code reuse there.
+// All ports except wxMSW and wxOS2 use wxBitmapHandler and wxBitmapBase as
+// base class for wxBitmapHandler; wxMSW and wxOS2 use wxGDIImageHandler as
+// base class since it allows some code reuse there.
#if wxUSE_BITMAP_BASE
// ----------------------------------------------------------------------------
@@ -237,10 +236,7 @@ protected:
// the wxBITMAP_DEFAULT_TYPE constant defines the default argument value
// for wxBitmap's ctor and wxBitmap::LoadFile() functions.
-#if defined(__WXPALMOS__)
- #define wxBITMAP_DEFAULT_TYPE wxBITMAP_TYPE_BMP_RESOURCE
- #include "wx/palmos/bitmap.h"
-#elif defined(__WXMSW__)
+#if defined(__WXMSW__)
#define wxBITMAP_DEFAULT_TYPE wxBITMAP_TYPE_BMP_RESOURCE
#include "wx/msw/bitmap.h"
#elif defined(__WXMOTIF__)
@@ -255,11 +251,8 @@ protected:
#elif defined(__WXX11__)
#define wxBITMAP_DEFAULT_TYPE wxBITMAP_TYPE_XPM
#include "wx/x11/bitmap.h"
-#elif defined(__WXMGL__)
- #define wxBITMAP_DEFAULT_TYPE wxBITMAP_TYPE_RESOURCE
- #include "wx/mgl/bitmap.h"
#elif defined(__WXDFB__)
- #define wxBITMAP_DEFAULT_TYPE wxBITMAP_TYPE_RESOURCE
+ #define wxBITMAP_DEFAULT_TYPE wxBITMAP_TYPE_BMP_RESOURCE
#include "wx/dfb/bitmap.h"
#elif defined(__WXMAC__)
#define wxBITMAP_DEFAULT_TYPE wxBITMAP_TYPE_PICT_RESOURCE
@@ -287,7 +280,7 @@ ConvertToDisabled(unsigned char brightness) const
#endif // wxUSE_IMAGE
// we must include generic mask.h after wxBitmap definition
-#if defined(__WXMGL__) || defined(__WXDFB__)
+#if defined(__WXDFB__)
#define wxUSE_GENERIC_MASK 1
#else
#define wxUSE_GENERIC_MASK 0
diff --git a/Externals/wxWidgets3/include/wx/bmpbuttn.h b/Externals/wxWidgets3/include/wx/bmpbuttn.h
index 2b6c39fcd4..c2632b88f6 100644
--- a/Externals/wxWidgets3/include/wx/bmpbuttn.h
+++ b/Externals/wxWidgets3/include/wx/bmpbuttn.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 25.08.00
-// RCS-ID: $Id: bmpbuttn.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: bmpbuttn.h 70345 2012-01-15 01:05:28Z VZ $
// Copyright: (c) 2000 Vadim Zeitlin
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -130,8 +130,6 @@ protected:
#include "wx/cocoa/bmpbuttn.h"
#elif defined(__WXPM__)
#include "wx/os2/bmpbuttn.h"
-#elif defined(__WXPALMOS__)
- #include "wx/palmos/bmpbuttn.h"
#endif
#endif // wxUSE_BMPBUTTON
diff --git a/Externals/wxWidgets3/include/wx/bookctrl.h b/Externals/wxWidgets3/include/wx/bookctrl.h
index 471c278ff6..b3a6809690 100644
--- a/Externals/wxWidgets3/include/wx/bookctrl.h
+++ b/Externals/wxWidgets3/include/wx/bookctrl.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 19.08.03
-// RCS-ID: $Id: bookctrl.h 65967 2010-10-31 13:33:34Z VZ $
+// RCS-ID: $Id: bookctrl.h 69082 2011-09-14 08:24:06Z SJL $
// Copyright: (c) 2003 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -22,6 +22,7 @@
#include "wx/control.h"
#include "wx/dynarray.h"
+#include "wx/withimages.h"
WX_DEFINE_EXPORTED_ARRAY_PTR(wxWindow *, wxArrayPages);
@@ -54,7 +55,8 @@ enum
// wxBookCtrlBase
// ----------------------------------------------------------------------------
-class WXDLLIMPEXP_CORE wxBookCtrlBase : public wxControl
+class WXDLLIMPEXP_CORE wxBookCtrlBase : public wxControl,
+ public wxWithImages
{
public:
// construction
@@ -85,9 +87,6 @@ public:
long style = 0,
const wxString& name = wxEmptyString);
- // dtor
- virtual ~wxBookCtrlBase();
-
// accessors
// ---------
@@ -106,7 +105,7 @@ public:
}
// get the currently selected page or wxNOT_FOUND if none
- int GetSelection() const { return m_selection; }
+ virtual int GetSelection() const { return m_selection; }
// set/get the title of a page
virtual bool SetPageText(size_t n, const wxString& strText) = 0;
@@ -117,15 +116,6 @@ public:
// images belong to the same image list)
// ---------------------------------------------------------------------
- // sets the image list to use, it is *not* deleted by the control
- virtual void SetImageList(wxImageList *imageList);
-
- // as SetImageList() but we will delete the image list ourselves
- void AssignImageList(wxImageList *imageList);
-
- // get pointer (may be NULL) to the associated image list
- wxImageList* GetImageList() const { return m_imageList; }
-
// sets/returns item's image index in the current image list
virtual int GetPageImage(size_t n) const = 0;
virtual bool SetPageImage(size_t n, int imageId) = 0;
@@ -191,7 +181,7 @@ public:
virtual bool AddPage(wxWindow *page,
const wxString& text,
bool bSelect = false,
- int imageId = -1)
+ int imageId = NO_IMAGE)
{
DoInvalidateBestSize();
return InsertPage(GetPageCount(), page, text, bSelect, imageId);
@@ -202,7 +192,7 @@ public:
wxWindow *page,
const wxString& text,
bool bSelect = false,
- int imageId = -1) = 0;
+ int imageId = NO_IMAGE) = 0;
// set the currently selected page, return the index of the previously
// selected one (or wxNOT_FOUND on error)
@@ -320,12 +310,6 @@ protected:
// the array of all pages of this control
wxArrayPages m_pages;
- // the associated image list or NULL
- wxImageList *m_imageList;
-
- // true if we must delete m_imageList
- bool m_ownsImageList;
-
// get the page area
virtual wxRect GetPageRect() const;
diff --git a/Externals/wxWidgets3/include/wx/brush.h b/Externals/wxWidgets3/include/wx/brush.h
index 0791d38002..7dbb89425d 100644
--- a/Externals/wxWidgets3/include/wx/brush.h
+++ b/Externals/wxWidgets3/include/wx/brush.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created:
-// RCS-ID: $Id: brush.h 66054 2010-11-07 13:16:20Z VZ $
+// RCS-ID: $Id: brush.h 70353 2012-01-15 14:46:41Z VZ $
// Copyright: Julian Smart
// Licence: wxWindows Licence
/////////////////////////////////////////////////////////////////////////////
@@ -70,9 +70,7 @@ public:
}
};
-#if defined(__WXPALMOS__)
- #include "wx/palmos/brush.h"
-#elif defined(__WXMSW__)
+#if defined(__WXMSW__)
#include "wx/msw/brush.h"
#elif defined(__WXMOTIF__) || defined(__WXX11__)
#include "wx/x11/brush.h"
@@ -80,8 +78,6 @@ public:
#include "wx/gtk/brush.h"
#elif defined(__WXGTK__)
#include "wx/gtk1/brush.h"
-#elif defined(__WXMGL__)
- #include "wx/mgl/brush.h"
#elif defined(__WXDFB__)
#include "wx/dfb/brush.h"
#elif defined(__WXMAC__)
diff --git a/Externals/wxWidgets3/include/wx/buffer.h b/Externals/wxWidgets3/include/wx/buffer.h
index 161e935af6..8b57207f1d 100644
--- a/Externals/wxWidgets3/include/wx/buffer.h
+++ b/Externals/wxWidgets3/include/wx/buffer.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 12.04.99
-// RCS-ID: $Id: buffer.h 66780 2011-01-27 11:00:26Z SC $
+// RCS-ID: $Id: buffer.h 70417 2012-01-20 22:11:51Z VZ $
// Copyright: (c) 1998 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -15,9 +15,7 @@
#include "wx/chartype.h"
#include "wx/wxcrtbase.h"
-#ifndef __WXPALMOS5__
#include // malloc() and free()
-#endif // ! __WXPALMOS5__
class WXDLLIMPEXP_FWD_BASE wxCStrData;
@@ -314,6 +312,10 @@ public:
if ( !str )
return false;
+ // For consistency with the ctor taking just the length, NUL-terminate
+ // the buffer.
+ str[len] = (CharType)0;
+
if ( this->m_data == this->GetNullData() )
{
this->m_data = new Data(str, len);
@@ -537,6 +539,8 @@ public:
size_t GetBufSize() const { return m_bufdata->m_size; }
size_t GetDataLen() const { return m_bufdata->m_len; }
+ bool IsEmpty() const { return GetDataLen() == 0; }
+
void SetBufSize(size_t size) { m_bufdata->ResizeIfNeeded(size); }
void SetDataLen(size_t len)
{
@@ -544,6 +548,8 @@ public:
m_bufdata->m_len = len;
}
+ void Clear() { SetDataLen(0); }
+
// Ensure the buffer is big enough and return a pointer to it
void *GetWriteBuf(size_t sizeNeeded)
{
diff --git a/Externals/wxWidgets3/include/wx/build.h b/Externals/wxWidgets3/include/wx/build.h
index a82e56db81..ac0393fb99 100644
--- a/Externals/wxWidgets3/include/wx/build.h
+++ b/Externals/wxWidgets3/include/wx/build.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin, Vaclav Slavik
// Modified by:
// Created: 07.05.02
-// RCS-ID: $Id: build.h 64531 2010-06-09 13:23:13Z FM $
+// RCS-ID: $Id: build.h 67343 2011-03-30 14:16:04Z VZ $
// Copyright: (c) 2002 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -85,7 +85,7 @@
#endif
// deriving wxWin containers from STL ones changes them completely:
-#if wxUSE_STL
+#if wxUSE_STD_CONTAINERS
#define __WX_BO_STL ",STL containers"
#else
#define __WX_BO_STL ",wx containers"
diff --git a/Externals/wxWidgets3/include/wx/button.h b/Externals/wxWidgets3/include/wx/button.h
index d69cbe4b58..d164eee800 100644
--- a/Externals/wxWidgets3/include/wx/button.h
+++ b/Externals/wxWidgets3/include/wx/button.h
@@ -4,7 +4,7 @@
// Author: Vadim Zetlin
// Modified by:
// Created: 15.08.00
-// RCS-ID: $Id: button.h 65680 2010-09-30 11:44:45Z VZ $
+// RCS-ID: $Id: button.h 70345 2012-01-15 01:05:28Z VZ $
// Copyright: (c) Vadim Zetlin
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -14,44 +14,9 @@
#include "wx/defs.h"
-// ----------------------------------------------------------------------------
-// wxButton flags shared with other classes
-// ----------------------------------------------------------------------------
-
-#if wxUSE_TOGGLEBTN || wxUSE_BUTTON
-
-// These flags affect label alignment
-#define wxBU_LEFT 0x0040
-#define wxBU_TOP 0x0080
-#define wxBU_RIGHT 0x0100
-#define wxBU_BOTTOM 0x0200
-#define wxBU_ALIGN_MASK ( wxBU_LEFT | wxBU_TOP | wxBU_RIGHT | wxBU_BOTTOM )
-#endif
-
#if wxUSE_BUTTON
-// ----------------------------------------------------------------------------
-// wxButton specific flags
-// ----------------------------------------------------------------------------
-
-// These two flags are obsolete
-#define wxBU_NOAUTODRAW 0x0000
-#define wxBU_AUTODRAW 0x0004
-
-// by default, the buttons will be created with some (system dependent)
-// minimal size to make them look nicer, giving this style will make them as
-// small as possible
-#define wxBU_EXACTFIT 0x0001
-
-// this flag can be used to disable using the text label in the button: it is
-// mostly useful when creating buttons showing bitmap and having stock id as
-// without it both the standard label corresponding to the stock id and the
-// bitmap would be shown
-#define wxBU_NOTEXT 0x0002
-
-
-#include "wx/bitmap.h"
-#include "wx/control.h"
+#include "wx/anybutton.h"
extern WXDLLIMPEXP_DATA_CORE(const char) wxButtonNameStr[];
@@ -59,7 +24,7 @@ extern WXDLLIMPEXP_DATA_CORE(const char) wxButtonNameStr[];
// wxButton: a push button
// ----------------------------------------------------------------------------
-class WXDLLIMPEXP_CORE wxButtonBase : public wxControl
+class WXDLLIMPEXP_CORE wxButtonBase : public wxAnyButton
{
public:
wxButtonBase() { }
@@ -70,132 +35,15 @@ public:
void SetAuthNeeded(bool show = true) { DoSetAuthNeeded(show); }
bool GetAuthNeeded() const { return DoGetAuthNeeded(); }
- // show the image in the button in addition to the label: this method is
- // supported on all (major) platforms
- void SetBitmap(const wxBitmap& bitmap, wxDirection dir = wxLEFT)
- {
- SetBitmapLabel(bitmap);
- SetBitmapPosition(dir);
- }
-
- wxBitmap GetBitmap() const { return DoGetBitmap(State_Normal); }
-
- // Methods for setting individual images for different states: normal,
- // selected (meaning pushed or pressed), focused (meaning normal state for
- // a focused button), disabled or hover (a.k.a. hot or current).
- //
- // Remember that SetBitmap() itself must be called before any other
- // SetBitmapXXX() methods (except for SetBitmapLabel() which is a synonym
- // for it anyhow) and that all bitmaps passed to these functions should be
- // of the same size.
- void SetBitmapLabel(const wxBitmap& bitmap)
- { DoSetBitmap(bitmap, State_Normal); }
- void SetBitmapPressed(const wxBitmap& bitmap)
- { DoSetBitmap(bitmap, State_Pressed); }
- void SetBitmapDisabled(const wxBitmap& bitmap)
- { DoSetBitmap(bitmap, State_Disabled); }
- void SetBitmapCurrent(const wxBitmap& bitmap)
- { DoSetBitmap(bitmap, State_Current); }
- void SetBitmapFocus(const wxBitmap& bitmap)
- { DoSetBitmap(bitmap, State_Focused); }
-
- wxBitmap GetBitmapLabel() const { return DoGetBitmap(State_Normal); }
- wxBitmap GetBitmapPressed() const { return DoGetBitmap(State_Pressed); }
- wxBitmap GetBitmapDisabled() const { return DoGetBitmap(State_Disabled); }
- wxBitmap GetBitmapCurrent() const { return DoGetBitmap(State_Current); }
- wxBitmap GetBitmapFocus() const { return DoGetBitmap(State_Focused); }
-
-
- // set the margins around the image
- void SetBitmapMargins(wxCoord x, wxCoord y) { DoSetBitmapMargins(x, y); }
- void SetBitmapMargins(const wxSize& sz) { DoSetBitmapMargins(sz.x, sz.y); }
- wxSize GetBitmapMargins() { return DoGetBitmapMargins(); }
-
- // set the image position relative to the text, i.e. wxLEFT means that the
- // image is to the left of the text (this is the default)
- void SetBitmapPosition(wxDirection dir);
-
-
// make this button the default button in its top level window
//
// returns the old default item (possibly NULL)
virtual wxWindow *SetDefault();
- // Buttons on MSW can look bad if they are not native colours, because
- // then they become owner-drawn and not theme-drawn. Disable it here
- // in wxButtonBase to make it consistent.
- virtual bool ShouldInheritColours() const { return false; }
-
// returns the default button size for this platform
static wxSize GetDefaultSize();
- // wxUniv-compatible and deprecated equivalents to SetBitmapXXX()
-#if WXWIN_COMPATIBILITY_2_8
- void SetImageLabel(const wxBitmap& bitmap) { SetBitmap(bitmap); }
- void SetImageMargins(wxCoord x, wxCoord y) { SetBitmapMargins(x, y); }
-#endif // WXWIN_COMPATIBILITY_2_8
-
- // backwards compatible names for pressed/current bitmaps: they're not
- // deprecated as there is nothing really wrong with using them and no real
- // advantage to using the new names but the new names are still preferred
- wxBitmap GetBitmapSelected() const { return GetBitmapPressed(); }
- wxBitmap GetBitmapHover() const { return GetBitmapCurrent(); }
-
- void SetBitmapSelected(const wxBitmap& bitmap) { SetBitmapPressed(bitmap); }
- void SetBitmapHover(const wxBitmap& bitmap) { SetBitmapCurrent(bitmap); }
-
-
- // this enum is not part of wx public API, it is public because it is used
- // in non wxButton-derived classes internally
- //
- // also notice that MSW code relies on the values of the enum elements, do
- // not change them without revising src/msw/button.cpp
- enum State
- {
- State_Normal,
- State_Current, // a.k.a. hot or "hovering"
- State_Pressed, // a.k.a. "selected" in public API for some reason
- State_Disabled,
- State_Focused,
- State_Max
- };
-
- // return true if this button shouldn't show the text label, either because
- // it doesn't have it or because it was explicitly disabled with wxBU_NOTEXT
- bool DontShowLabel() const
- {
- return HasFlag(wxBU_NOTEXT) || GetLabel().empty();
- }
-
- // return true if we do show the label
- bool ShowsLabel() const
- {
- return !DontShowLabel();
- }
-
protected:
- // choose the default border for this window
- virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
-
- virtual bool DoGetAuthNeeded() const { return false; }
- virtual void DoSetAuthNeeded(bool WXUNUSED(show)) { }
-
- virtual wxBitmap DoGetBitmap(State WXUNUSED(which)) const
- { return wxBitmap(); }
- virtual void DoSetBitmap(const wxBitmap& WXUNUSED(bitmap),
- State WXUNUSED(which))
- { }
-
- virtual wxSize DoGetBitmapMargins() const
- { return wxSize(0, 0); }
-
- virtual void DoSetBitmapMargins(wxCoord WXUNUSED(x), wxCoord WXUNUSED(y))
- { }
-
- virtual void DoSetBitmapPosition(wxDirection WXUNUSED(dir))
- { }
-
-
wxDECLARE_NO_COPY_CLASS(wxButtonBase);
};
@@ -215,11 +63,8 @@ protected:
#include "wx/cocoa/button.h"
#elif defined(__WXPM__)
#include "wx/os2/button.h"
-#elif defined(__WXPALMOS__)
- #include "wx/palmos/button.h"
#endif
#endif // wxUSE_BUTTON
-#endif
- // _WX_BUTTON_H_BASE_
+#endif // _WX_BUTTON_H_BASE_
diff --git a/Externals/wxWidgets3/include/wx/cairo.h b/Externals/wxWidgets3/include/wx/cairo.h
index 2518a89a21..eb83424aa3 100644
--- a/Externals/wxWidgets3/include/wx/cairo.h
+++ b/Externals/wxWidgets3/include/wx/cairo.h
@@ -3,7 +3,7 @@
// Purpose: Cairo library
// Author: Anthony Bretaudeau
// Created: 2007-08-25
-// RCS-ID: $Id: cairo.h 67232 2011-03-18 15:10:15Z DS $
+// RCS-ID: $Id: cairo.h 68935 2011-08-27 23:26:53Z RD $
// Copyright: (c) Anthony Bretaudeau
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -16,129 +16,13 @@
#include "wx/dynlib.h"
#include
-
-class wxCairoLibrary
+extern "C"
{
-public:
- // return the pointer to the global instance of this class or NULL if we
- // failed to load/initialize it
- static wxCairoLibrary *Get();
+
+bool wxCairoInit();
+void wxCairoCleanUp();
-
- // for internal use only
- static void CleanUp();
-
-private:
- // the single wxCairoLibrary instance or NULL
- static wxCairoLibrary *ms_lib;
-
- wxCairoLibrary();
- ~wxCairoLibrary();
-
- bool IsOk();
- bool InitializeMethods();
-
- wxDynamicLibrary m_libCairo;
- wxDynamicLibrary m_libPangoCairo;
-
- // true if we successfully loaded the libraries and can use them
- //
- // note that this field must have this name as it's used by wxDL_XXX macros
- bool m_ok;
-
-public:
- wxDL_VOIDMETHOD_DEFINE( cairo_arc,
- (cairo_t *cr, double xc, double yc, double radius, double angle1, double angle2), (cr, xc, yc, radius, angle1, angle2) )
- wxDL_VOIDMETHOD_DEFINE( cairo_arc_negative,
- (cairo_t *cr, double xc, double yc, double radius, double angle1, double angle2), (cr, xc, yc, radius, angle1, angle2) )
- wxDL_VOIDMETHOD_DEFINE( cairo_clip,
- (cairo_t *cr), (cr) )
- wxDL_VOIDMETHOD_DEFINE( cairo_close_path,
- (cairo_t *cr), (cr) )
- wxDL_METHOD_DEFINE( cairo_t*, cairo_create,
- (cairo_surface_t *target), (target), NULL)
- wxDL_VOIDMETHOD_DEFINE( cairo_curve_to,
- (cairo_t *cr, double x1, double y1, double x2, double y2, double x3, double y3), (cr, x1, y1, x2, y2, x3, y3) )
- wxDL_VOIDMETHOD_DEFINE( cairo_destroy,
- (cairo_t *cr), (cr) )
- wxDL_VOIDMETHOD_DEFINE( cairo_fill,
- (cairo_t *cr), (cr) )
- wxDL_VOIDMETHOD_DEFINE( cairo_fill_preserve,
- (cairo_t *cr), (cr) )
- wxDL_METHOD_DEFINE( cairo_surface_t*, cairo_get_target,
- (cairo_t *cr), (cr), NULL)
- wxDL_METHOD_DEFINE( cairo_surface_t*, cairo_image_surface_create_for_data,
- (unsigned char *data, cairo_format_t format, int width, int height, int stride), (data, format, width, height, stride), NULL)
- wxDL_VOIDMETHOD_DEFINE( cairo_line_to,
- (cairo_t *cr, double x, double y), (cr, x, y) )
- wxDL_VOIDMETHOD_DEFINE( cairo_move_to,
- (cairo_t *cr, double x, double y), (cr, x, y) )
- wxDL_VOIDMETHOD_DEFINE( cairo_new_path,
- (cairo_t *cr), (cr) )
- wxDL_VOIDMETHOD_DEFINE( cairo_paint,
- (cairo_t *cr), (cr) )
- wxDL_VOIDMETHOD_DEFINE( cairo_pattern_add_color_stop_rgba,
- (cairo_pattern_t *pattern, double offset, double red, double green, double blue, double alpha), (pattern, offset, red, green, blue, alpha) )
- wxDL_METHOD_DEFINE( cairo_pattern_t*, cairo_pattern_create_for_surface,
- (cairo_surface_t *surface), (surface), NULL)
- wxDL_METHOD_DEFINE( cairo_pattern_t*, cairo_pattern_create_linear,
- (double x0, double y0, double x1, double y1), (x0, y0, x1, y1), NULL)
- wxDL_METHOD_DEFINE( cairo_pattern_t*, cairo_pattern_create_radial,
- (double cx0, double cy0, double radius0, double cx1, double cy1, double radius1), (cx0, cy0, radius0, cx1, cy1, radius1), NULL)
- wxDL_VOIDMETHOD_DEFINE( cairo_pattern_destroy,
- (cairo_pattern_t *pattern), (pattern) )
- wxDL_VOIDMETHOD_DEFINE( cairo_pattern_set_extend,
- (cairo_pattern_t *pattern, cairo_extend_t extend), (pattern, extend) )
- wxDL_VOIDMETHOD_DEFINE( cairo_pattern_set_filter,
- (cairo_pattern_t *pattern, cairo_filter_t filter), (pattern, filter) )
- wxDL_VOIDMETHOD_DEFINE( cairo_rectangle,
- (cairo_t *cr, double x, double y, double width, double height), (cr, x, y, width, height) )
- wxDL_METHOD_DEFINE( cairo_t*, cairo_reference,
- (cairo_t *cr), (cr), NULL )
- wxDL_VOIDMETHOD_DEFINE( cairo_reset_clip,
- (cairo_t *cr), (cr) )
- wxDL_VOIDMETHOD_DEFINE( cairo_restore,
- (cairo_t *cr), (cr) )
- wxDL_VOIDMETHOD_DEFINE( cairo_rotate,
- (cairo_t *cr, double angle), (cr, angle) )
- wxDL_VOIDMETHOD_DEFINE( cairo_save,
- (cairo_t *cr), (cr) )
- wxDL_VOIDMETHOD_DEFINE( cairo_scale,
- (cairo_t *cr, double sx, double sy), (cr, sx, sy) )
- wxDL_VOIDMETHOD_DEFINE( cairo_set_dash,
- (cairo_t *cr, const double *dashes, int num_dashes, double offset), (cr, dashes, num_dashes, offset) )
- wxDL_VOIDMETHOD_DEFINE( cairo_set_fill_rule,
- (cairo_t *cr, cairo_fill_rule_t fill_rule), (cr, fill_rule) )
- wxDL_VOIDMETHOD_DEFINE( cairo_set_line_cap,
- (cairo_t *cr, cairo_line_cap_t line_cap), (cr, line_cap) )
- wxDL_VOIDMETHOD_DEFINE( cairo_set_line_join,
- (cairo_t *cr, cairo_line_join_t line_join), (cr, line_join) )
- wxDL_VOIDMETHOD_DEFINE( cairo_set_line_width,
- (cairo_t *cr, double width), (cr, width) )
- wxDL_VOIDMETHOD_DEFINE( cairo_set_operator,
- (cairo_t *cr, cairo_operator_t op), (cr, op) )
- wxDL_VOIDMETHOD_DEFINE( cairo_set_source,
- (cairo_t *cr, cairo_pattern_t *source), (cr, source) )
- wxDL_VOIDMETHOD_DEFINE( cairo_set_source_rgba,
- (cairo_t *cr, double red, double green, double blue, double alpha), (cr, red, green, blue, alpha) )
- wxDL_VOIDMETHOD_DEFINE( cairo_stroke,
- (cairo_t *cr), (cr) )
- wxDL_VOIDMETHOD_DEFINE( cairo_stroke_preserve,
- (cairo_t *cr), (cr) )
- wxDL_METHOD_DEFINE( cairo_surface_t*, cairo_surface_create_similar,
- (cairo_surface_t *other, cairo_content_t content, int width, int height), (other, content, width, height), NULL)
- wxDL_VOIDMETHOD_DEFINE( cairo_surface_destroy,
- (cairo_surface_t *surface), (surface) )
- wxDL_VOIDMETHOD_DEFINE( cairo_translate,
- (cairo_t *cr, double tx, double ty), (cr, tx, ty) )
-
- wxDL_VOIDMETHOD_DEFINE( pango_cairo_update_layout,
- (cairo_t *cr, PangoLayout *layout), (cr, layout) )
- wxDL_VOIDMETHOD_DEFINE( pango_cairo_show_layout,
- (cairo_t *cr, PangoLayout *layout), (cr, layout) )
-
- wxDECLARE_NO_COPY_CLASS(wxCairoLibrary);
-};
+}
#endif // wxUSE_CAIRO
diff --git a/Externals/wxWidgets3/include/wx/calctrl.h b/Externals/wxWidgets3/include/wx/calctrl.h
index 801edf0959..7c2921d8e0 100644
--- a/Externals/wxWidgets3/include/wx/calctrl.h
+++ b/Externals/wxWidgets3/include/wx/calctrl.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 29.12.99
-// RCS-ID: $Id: calctrl.h 58718 2009-02-07 18:59:25Z VZ $
+// RCS-ID: $Id: calctrl.h 67681 2011-05-03 16:29:04Z DS $
// Copyright: (c) 1999 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -112,10 +112,10 @@ public:
void SetHoliday(bool holiday) { m_holiday = holiday; }
// accessors
- bool HasTextColour() const { return m_colText.Ok(); }
- bool HasBackgroundColour() const { return m_colBack.Ok(); }
- bool HasBorderColour() const { return m_colBorder.Ok(); }
- bool HasFont() const { return m_font.Ok(); }
+ bool HasTextColour() const { return m_colText.IsOk(); }
+ bool HasBackgroundColour() const { return m_colBack.IsOk(); }
+ bool HasBorderColour() const { return m_colBorder.IsOk(); }
+ bool HasFont() const { return m_font.IsOk(); }
bool HasBorder() const { return m_border != wxCAL_BORDER_NONE; }
bool IsHoliday() const { return m_holiday; }
diff --git a/Externals/wxWidgets3/include/wx/chartype.h b/Externals/wxWidgets3/include/wx/chartype.h
index 41eb59d9d6..d122b4c71c 100644
--- a/Externals/wxWidgets3/include/wx/chartype.h
+++ b/Externals/wxWidgets3/include/wx/chartype.h
@@ -4,7 +4,7 @@
* Author: Joel Farley, Ove Kåven
* Modified by: Vadim Zeitlin, Robert Roebling, Ron Lee
* Created: 1998/06/12
- * RCS-ID: $Id: chartype.h 66968 2011-02-19 13:44:19Z VZ $
+ * RCS-ID: $Id: chartype.h 70345 2012-01-15 01:05:28Z VZ $
* Copyright: (c) 1998-2006 wxWidgets dev team
* Licence: wxWindows licence
*/
@@ -105,8 +105,6 @@
#define wxHAVE_TCHAR_SUPPORT
#elif defined(__DMC__)
#define wxHAVE_TCHAR_SUPPORT
-#elif defined(__WXPALMOS__)
- #include
#elif defined(__MINGW32__) && wxCHECK_W32API_VERSION( 1, 0 )
#define wxHAVE_TCHAR_SUPPORT
#include
diff --git a/Externals/wxWidgets3/include/wx/checkbox.h b/Externals/wxWidgets3/include/wx/checkbox.h
index f3dc6ddc52..507bf31fea 100644
--- a/Externals/wxWidgets3/include/wx/checkbox.h
+++ b/Externals/wxWidgets3/include/wx/checkbox.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 07.09.00
-// RCS-ID: $Id: checkbox.h 65942 2010-10-28 14:23:09Z VZ $
+// RCS-ID: $Id: checkbox.h 70345 2012-01-15 01:05:28Z VZ $
// Copyright: (c) wxWidgets team
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -41,18 +41,6 @@
*/
#define wxCHK_ALLOW_3RD_STATE_FOR_USER 0x2000
-/*
- * The possible states of a 3-state checkbox (Compatible
- * with the 2-state checkbox).
- */
-enum wxCheckBoxState
-{
- wxCHK_UNCHECKED,
- wxCHK_CHECKED,
- wxCHK_UNDETERMINED /* 3-state checkbox only */
-};
-
-
extern WXDLLIMPEXP_DATA_CORE(const char) wxCheckBoxNameStr[];
// ----------------------------------------------------------------------------
@@ -196,8 +184,6 @@ private:
#elif defined(__WXPM__)
#undef wxHAS_3STATE_CHECKBOX
#include "wx/os2/checkbox.h"
-#elif defined(__WXPALMOS__)
- #include "wx/palmos/checkbox.h"
#endif
#endif // wxUSE_CHECKBOX
diff --git a/Externals/wxWidgets3/include/wx/chkconf.h b/Externals/wxWidgets3/include/wx/chkconf.h
index 723c71fb67..80f104911b 100644
--- a/Externals/wxWidgets3/include/wx/chkconf.h
+++ b/Externals/wxWidgets3/include/wx/chkconf.h
@@ -4,7 +4,7 @@
* Author: Vadim Zeitlin
* Modified by:
* Created: 09.08.00
- * RCS-ID: $Id: chkconf.h 67280 2011-03-22 14:17:38Z DS $
+ * RCS-ID: $Id: chkconf.h 70703 2012-02-26 20:24:25Z VZ $
* Copyright: (c) 2000 Vadim Zeitlin
* Licence: wxWindows licence
*/
@@ -57,11 +57,6 @@
global features
*/
-/* GUI build by default */
-#if !defined(wxUSE_GUI)
-# define wxUSE_GUI 1
-#endif /* !defined(wxUSE_GUI) */
-
/*
If we're compiling without support for threads/exceptions we have to
disable the corresponding features.
@@ -299,6 +294,22 @@
# endif
#endif /* !defined(wxUSE_SOCKETS) */
+#ifndef wxUSE_STD_CONTAINERS
+# ifdef wxABORT_ON_CONFIG_ERROR
+# error "wxUSE_STD_CONTAINERS must be defined, please read comment near the top of this file."
+# else
+# define wxUSE_STD_CONTAINERS 0
+# endif
+#endif /* !defined(wxUSE_STD_CONTAINERS) */
+
+#ifndef wxUSE_STD_STRING_CONV_IN_WXSTRING
+# ifdef wxABORT_ON_CONFIG_ERROR
+# error "wxUSE_STD_STRING_CONV_IN_WXSTRING must be defined, please read comment near the top of this file."
+# else
+# define wxUSE_STD_STRING_CONV_IN_WXSTRING 0
+# endif
+#endif /* !defined(wxUSE_STD_STRING_CONV_IN_WXSTRING) */
+
#ifndef wxUSE_STREAMS
# ifdef wxABORT_ON_CONFIG_ERROR
# error "wxUSE_STREAMS must be defined, please read comment near the top of this file."
@@ -599,6 +610,14 @@
# endif
#endif /* !defined(wxUSE_DATEPICKCTRL) */
+#ifndef wxUSE_DC_TRANSFORM_MATRIX
+# ifdef wxABORT_ON_CONFIG_ERROR
+# error "wxUSE_DC_TRANSFORM_MATRIX must be defined, please read comment near the top of this file."
+# else
+# define wxUSE_DC_TRANSFORM_MATRIX 1
+# endif
+#endif /* wxUSE_DC_TRANSFORM_MATRIX */
+
#ifndef wxUSE_DIRPICKERCTRL
# ifdef wxABORT_ON_CONFIG_ERROR
# error "wxUSE_DIRPICKERCTRL must be defined, please read comment near the top of this file."
@@ -729,7 +748,7 @@
#endif /* !defined(wxUSE_HTML) */
#ifndef wxUSE_LIBMSPACK
-# if !defined(__UNIX__) || defined(__WXPALMOS__)
+# if !defined(__UNIX__)
/* set to 0 on platforms that don't have libmspack */
# define wxUSE_LIBMSPACK 0
# else
@@ -955,7 +974,15 @@
# else
# define wxUSE_RICHMSGDLG 0
# endif
-#endif /* !defined(wxUSE_RIBBON) */
+#endif /* !defined(wxUSE_RICHMSGDLG) */
+
+#ifndef wxUSE_RICHTOOLTIP
+# ifdef wxABORT_ON_CONFIG_ERROR
+# error "wxUSE_RICHTOOLTIP must be defined, please read comment near the top of this file."
+# else
+# define wxUSE_RICHTOOLTIP 0
+# endif
+#endif /* !defined(wxUSE_RICHTOOLTIP) */
#ifndef wxUSE_SASH
# ifdef wxABORT_ON_CONFIG_ERROR
@@ -1077,6 +1104,14 @@
# endif
#endif /* !defined(wxUSE_TEXTCTRL) */
+#ifndef wxUSE_TIMEPICKCTRL
+# ifdef wxABORT_ON_CONFIG_ERROR
+# error "wxUSE_TIMEPICKCTRL must be defined, please read comment near the top of this file."
+# else
+# define wxUSE_TIMEPICKCTRL 0
+# endif
+#endif /* !defined(wxUSE_TIMEPICKCTRL) */
+
#ifndef wxUSE_TIPWINDOW
# ifdef wxABORT_ON_CONFIG_ERROR
# error "wxUSE_TIPWINDOW must be defined, please read comment near the top of this file."
@@ -1109,6 +1144,14 @@
# endif
#endif /* !defined(wxUSE_TREECTRL) */
+#ifndef wxUSE_TREELISTCTRL
+# ifdef wxABORT_ON_CONFIG_ERROR
+# error "wxUSE_TREELISTCTRL must be defined, please read comment near the top of this file."
+# else
+# define wxUSE_TREELISTCTRL 0
+# endif
+#endif /* !defined(wxUSE_TREELISTCTRL) */
+
#ifndef wxUSE_UIACTIONSIMULATOR
# ifdef wxABORT_ON_CONFIG_ERROR
# error "wxUSE_UIACTIONSIMULATOR must be defined, please read comment near the top of this file."
@@ -1125,6 +1168,14 @@
# endif
#endif /* !defined(wxUSE_VALIDATORS) */
+#ifndef wxUSE_WEBVIEW
+# ifdef wxABORT_ON_CONFIG_ERROR
+# error "wxUSE_WEBVIEW must be defined, please read comment near the top of this file."
+# else
+# define wxUSE_WEBVIEW 0
+# endif
+#endif /* !defined(wxUSE_WEBVIEW) */
+
#ifndef wxUSE_WXHTML_HELP
# ifdef wxABORT_ON_CONFIG_ERROR
# error "wxUSE_WXHTML_HELP must be defined, please read comment near the top of this file."
@@ -1150,9 +1201,7 @@
checks use wxUSE_XXX symbols in #if tests.
*/
-#if defined(__WXPALMOS__)
-# include "wx/palmos/chkconf.h"
-#elif defined(__WXWINCE__)
+#if defined(__WXWINCE__)
# include "wx/msw/wince/chkconf.h"
#elif defined(__WXMSW__)
# include "wx/msw/chkconf.h"
@@ -1164,14 +1213,14 @@
# include "wx/osx/chkconf.h"
#elif defined(__OS2__)
# include "wx/os2/chkconf.h"
-#elif defined(__WXMGL__)
-# include "wx/mgl/chkconf.h"
#elif defined(__WXDFB__)
# include "wx/dfb/chkconf.h"
#elif defined(__WXMOTIF__)
# include "wx/motif/chkconf.h"
#elif defined(__WXX11__)
# include "wx/x11/chkconf.h"
+#elif defined(__WXANDROID__)
+# include "wx/android/chkconf.h"
#endif
/*
@@ -1439,7 +1488,8 @@
wxUSE_STATUSBAR || \
wxUSE_TEXTCTRL || \
wxUSE_TOOLBAR || \
- wxUSE_TREECTRL
+ wxUSE_TREECTRL || \
+ wxUSE_TREELISTCTRL
# if !wxUSE_CONTROLS
# ifdef wxABORT_ON_CONFIG_ERROR
# error "wxUSE_CONTROLS unset but some controls used"
@@ -1582,9 +1632,7 @@
#ifndef wxUSE_NATIVE_STATUSBAR
# define wxUSE_NATIVE_STATUSBAR 0
#elif wxUSE_NATIVE_STATUSBAR
-# if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
- defined(__WXMAC__) || \
- defined(__WXPALMOS__) )
+# if defined(__WXUNIVERSAL__) || !(defined(__WXMSW__) || defined(__WXMAC__))
# undef wxUSE_NATIVE_STATUSBAR
# define wxUSE_NATIVE_STATUSBAR 0
# endif
@@ -1672,16 +1720,16 @@
# endif
#endif /* wxUSE_CALENDARCTRL */
-#if wxUSE_DATEPICKCTRL
+#if wxUSE_DATEPICKCTRL || wxUSE_TIMEPICKCTRL
# if !wxUSE_DATETIME
# ifdef wxABORT_ON_CONFIG_ERROR
-# error "wxDatePickerCtrl requires wxUSE_DATETIME"
+# error "wxDatePickerCtrl and wxTimePickerCtrl requires wxUSE_DATETIME"
# else
# undef wxUSE_DATETIME
# define wxUSE_DATETIME 1
# endif
# endif
-#endif /* wxUSE_DATEPICKCTRL */
+#endif /* wxUSE_DATEPICKCTRL || wxUSE_TIMEPICKCTRL */
#if wxUSE_CHECKLISTBOX
# if !wxUSE_LISTBOX
@@ -1705,6 +1753,17 @@
# endif
#endif /* wxUSE_CHOICEDLG */
+#if wxUSE_FILECTRL
+# if !wxUSE_DATETIME
+# ifdef wxABORT_ON_CONFIG_ERROR
+# error "wxFileCtrl requires wxDateTime"
+# else
+# undef wxUSE_DATETIME
+# define wxUSE_DATETIME 1
+# endif
+# endif
+#endif /* wxUSE_FILECTRL */
+
#if wxUSE_HELP
# if !wxUSE_BMPBUTTON
# ifdef wxABORT_ON_CONFIG_ERROR
@@ -1935,7 +1994,7 @@
#endif /* wxUSE_FILEDLG */
#if !wxUSE_GAUGE || !wxUSE_BUTTON
-# if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__)
+# if wxUSE_PROGRESSDLG
# ifdef wxABORT_ON_CONFIG_ERROR
# error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
# else
@@ -1977,7 +2036,7 @@
#endif
#if !wxUSE_IMAGLIST
-# if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
+# if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL || wxUSE_TREELISTCTRL
# ifdef wxABORT_ON_CONFIG_ERROR
# error "wxImageList must be compiled as well"
# else
@@ -1996,7 +2055,7 @@
# define wxUSE_RADIOBTN 1
# endif
# endif
-# if !wxUSE_STATBOX && !defined(__WXPALMOS__)
+# if !wxUSE_STATBOX
# ifdef wxABORT_ON_CONFIG_ERROR
# error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
# else
@@ -2104,6 +2163,24 @@
# endif
#endif /* wxUSE_VARIANT */
+#if wxUSE_TREELISTCTRL && !wxUSE_DATAVIEWCTRL
+# ifdef wxABORT_ON_CONFIG_ERROR
+# error "wxUSE_TREELISTCTRL requires wxDataViewCtrl"
+# else
+# undef wxUSE_TREELISTCTRL
+# define wxUSE_TREELISTCTRL 0
+# endif
+#endif /* wxUSE_TREELISTCTRL */
+
+#if wxUSE_WEBVIEW && !(wxUSE_WEBVIEW_WEBKIT || wxUSE_WEBVIEW_IE)
+# ifdef wxABORT_ON_CONFIG_ERROR
+# error "wxUSE_WEBVIEW requires at least one backend"
+# else
+# undef wxUSE_WEBVIEW
+# define wxUSE_WEBVIEW 0
+# endif
+#endif /* wxUSE_WEBVIEW && !any web view backend */
+
#endif /* wxUSE_GUI */
#endif /* _WX_CHKCONF_H_ */
diff --git a/Externals/wxWidgets3/include/wx/choice.h b/Externals/wxWidgets3/include/wx/choice.h
index e1f9c20456..e7854fb3cc 100644
--- a/Externals/wxWidgets3/include/wx/choice.h
+++ b/Externals/wxWidgets3/include/wx/choice.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 26.07.99
-// RCS-ID: $Id: choice.h 58757 2009-02-08 11:45:59Z VZ $
+// RCS-ID: $Id: choice.h 70345 2012-01-15 01:05:28Z VZ $
// Copyright: (c) wxWidgets team
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -84,8 +84,6 @@ private:
#include "wx/cocoa/choice.h"
#elif defined(__WXPM__)
#include "wx/os2/choice.h"
-#elif defined(__WXPALMOS__)
- #include "wx/palmos/choice.h"
#endif
#endif // wxUSE_CHOICE
diff --git a/Externals/wxWidgets3/include/wx/choicebk.h b/Externals/wxWidgets3/include/wx/choicebk.h
index 322d931d66..abd37cbb7d 100644
--- a/Externals/wxWidgets3/include/wx/choicebk.h
+++ b/Externals/wxWidgets3/include/wx/choicebk.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by: Wlodzimierz ABX Skiba from wx/listbook.h
// Created: 15.09.04
-// RCS-ID: $Id: choicebk.h 66233 2010-11-22 01:23:21Z VZ $
+// RCS-ID: $Id: choicebk.h 68810 2011-08-21 14:08:49Z VZ $
// Copyright: (c) Vadim Zeitlin, Wlodzimierz Skiba
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -68,7 +68,7 @@ public:
wxWindow *page,
const wxString& text,
bool bSelect = false,
- int imageId = -1);
+ int imageId = NO_IMAGE);
virtual int SetSelection(size_t n)
{ return DoSetSelection(n, SetSelection_SendEvent); }
virtual int ChangeSelection(size_t n) { return DoSetSelection(n); }
diff --git a/Externals/wxWidgets3/include/wx/clipbrd.h b/Externals/wxWidgets3/include/wx/clipbrd.h
index 9ba7f3734b..f9ff4df6af 100644
--- a/Externals/wxWidgets3/include/wx/clipbrd.h
+++ b/Externals/wxWidgets3/include/wx/clipbrd.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 19.10.99
-// RCS-ID: $Id: clipbrd.h 61485 2009-07-20 23:54:08Z VZ $
+// RCS-ID: $Id: clipbrd.h 70353 2012-01-15 14:46:41Z VZ $
// Copyright: (c) wxWidgets Team
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -160,8 +160,6 @@ typedef void (wxEvtHandler::*wxClipboardEventFunction)(wxClipboardEvent&);
#include "wx/gtk1/clipbrd.h"
#elif defined(__WXX11__)
#include "wx/x11/clipbrd.h"
-#elif defined(__WXMGL__)
- #include "wx/mgl/clipbrd.h"
#elif defined(__WXMAC__)
#include "wx/osx/clipbrd.h"
#elif defined(__WXCOCOA__)
diff --git a/Externals/wxWidgets3/include/wx/cmdline.h b/Externals/wxWidgets3/include/wx/cmdline.h
index af67c9c558..8d02fa3a68 100644
--- a/Externals/wxWidgets3/include/wx/cmdline.h
+++ b/Externals/wxWidgets3/include/wx/cmdline.h
@@ -5,7 +5,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 04.01.00
-// RCS-ID: $Id: cmdline.h 66253 2010-11-24 00:42:53Z VZ $
+// RCS-ID: $Id: cmdline.h 69797 2011-11-22 13:18:58Z VZ $
// Copyright: (c) 2000 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -183,12 +183,25 @@ public:
void AddSwitch(const wxString& name, const wxString& lng = wxEmptyString,
const wxString& desc = wxEmptyString,
int flags = 0);
+ void AddLongSwitch(const wxString& lng,
+ const wxString& desc = wxEmptyString,
+ int flags = 0)
+ {
+ AddSwitch(wxString(), lng, desc, flags);
+ }
// an option taking a value of the given type
void AddOption(const wxString& name, const wxString& lng = wxEmptyString,
const wxString& desc = wxEmptyString,
wxCmdLineParamType type = wxCMD_LINE_VAL_STRING,
int flags = 0);
+ void AddLongOption(const wxString& lng,
+ const wxString& desc = wxEmptyString,
+ wxCmdLineParamType type = wxCMD_LINE_VAL_STRING,
+ int flags = 0)
+ {
+ AddOption(wxString(), lng, desc, type, flags);
+ }
// a parameter
void AddParam(const wxString& desc = wxEmptyString,
diff --git a/Externals/wxWidgets3/include/wx/cmdproc.h b/Externals/wxWidgets3/include/wx/cmdproc.h
index dc738da629..e1692cbef5 100644
--- a/Externals/wxWidgets3/include/wx/cmdproc.h
+++ b/Externals/wxWidgets3/include/wx/cmdproc.h
@@ -4,7 +4,7 @@
// Author: Julian Smart (extracted from docview.h by VZ)
// Modified by:
// Created: 05.11.00
-// RCS-ID: $Id: cmdproc.h 58757 2009-02-08 11:45:59Z VZ $
+// RCS-ID: $Id: cmdproc.h 70459 2012-01-25 00:05:09Z VZ $
// Copyright: (c) wxWidgets team
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -97,10 +97,7 @@ public:
virtual void ClearCommands();
// Has the current project been changed?
- virtual bool IsDirty() const
- {
- return m_currentCommand && (m_lastSavedCommand != m_currentCommand);
- }
+ virtual bool IsDirty() const;
// Mark the current command as the one where the last save took place
void MarkAsSaved()
diff --git a/Externals/wxWidgets3/include/wx/cmndata.h b/Externals/wxWidgets3/include/wx/cmndata.h
index e803f49711..ce330fde5e 100644
--- a/Externals/wxWidgets3/include/wx/cmndata.h
+++ b/Externals/wxWidgets3/include/wx/cmndata.h
@@ -4,7 +4,7 @@
// Author: Julian Smart and others
// Modified by:
// Created: 01/02/97
-// RCS-ID: $Id: cmndata.h 66615 2011-01-07 05:26:57Z PC $
+// RCS-ID: $Id: cmndata.h 70636 2012-02-20 21:55:55Z VZ $
// Copyright: (c)
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -189,7 +189,7 @@ public:
// Is this data OK for showing the print dialog?
bool Ok() const { return IsOk(); }
- bool IsOk() const { return m_printData.Ok() ; }
+ bool IsOk() const { return m_printData.IsOk() ; }
wxPrintData& GetPrintData() { return m_printData; }
void SetPrintData(const wxPrintData& printData) { m_printData = printData; }
@@ -249,7 +249,7 @@ public:
// Is this data OK for showing the page setup dialog?
bool Ok() const { return IsOk(); }
- bool IsOk() const { return m_printData.Ok() ; }
+ bool IsOk() const { return m_printData.IsOk() ; }
// If a corresponding paper type is found in the paper database, will set the m_printData
// paper size id member as well.
@@ -280,7 +280,7 @@ public:
// Use paper id in wxPrintData to set this object's paper size
void CalculatePaperSizeFromId();
- wxPageSetupDialogData& operator=(const wxPageSetupData& data);
+ wxPageSetupDialogData& operator=(const wxPageSetupDialogData& data);
wxPageSetupDialogData& operator=(const wxPrintData& data);
wxPrintData& GetPrintData() { return m_printData; }
diff --git a/Externals/wxWidgets3/include/wx/cocoa/chkconf.h b/Externals/wxWidgets3/include/wx/cocoa/chkconf.h
index 450df1692d..0b2516cc44 100644
--- a/Externals/wxWidgets3/include/wx/cocoa/chkconf.h
+++ b/Externals/wxWidgets3/include/wx/cocoa/chkconf.h
@@ -3,7 +3,7 @@
* Purpose: wxCocoa-specific config settings checks
* Author: Vadim Zeitlin
* Created: 2008-09-11
- * RCS-ID: $Id: chkconf.h 55546 2008-09-11 11:20:33Z VZ $
+ * RCS-ID: $Id: chkconf.h 67497 2011-04-15 19:18:34Z DS $
* Copyright: (c) 2008 Vadim Zeitlin
* Licence: wxWindows licence
*/
@@ -19,4 +19,4 @@
#undef wxUSE_LOG_DIALOG
#define wxUSE_LOG_DIALOG 0
-#endif // _WX_COCOA_CHKCONF_H_
+#endif /* _WX_COCOA_CHKCONF_H_ */
diff --git a/Externals/wxWidgets3/include/wx/cocoa/dc.h b/Externals/wxWidgets3/include/wx/cocoa/dc.h
index 4c043ce8e7..e388eccaec 100644
--- a/Externals/wxWidgets3/include/wx/cocoa/dc.h
+++ b/Externals/wxWidgets3/include/wx/cocoa/dc.h
@@ -4,7 +4,7 @@
// Author: David Elliott
// Modified by:
// Created: 2003/04/01
-// RCS-ID: $Id: dc.h 58757 2009-02-08 11:45:59Z VZ $
+// RCS-ID: $Id: dc.h 70165 2011-12-29 14:42:13Z SN $
// Copyright: (c) 2003 David Elliott
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -80,10 +80,10 @@ public:
virtual void Clear();
virtual bool StartDoc( const wxString& WXUNUSED(message) ) { return true; }
- virtual void EndDoc(void) {};
+ virtual void EndDoc(void) {}
- virtual void StartPage(void) {};
- virtual void EndPage(void) {};
+ virtual void StartPage(void) {}
+ virtual void EndPage(void) {}
virtual void SetFont(const wxFont& font);
virtual void SetPen(const wxPen& pen);
diff --git a/Externals/wxWidgets3/include/wx/cocoa/font.h b/Externals/wxWidgets3/include/wx/cocoa/font.h
index 3f61c4fd1b..4783532b44 100644
--- a/Externals/wxWidgets3/include/wx/cocoa/font.h
+++ b/Externals/wxWidgets3/include/wx/cocoa/font.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
-// RCS-ID: $Id: font.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: font.h 70445 2012-01-23 11:28:21Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -75,6 +75,19 @@ public:
SetPixelSize(pixelSize);
}
+ wxFont(int pointSize,
+ wxFontFamily family,
+ int flags = wxFONTFLAG_DEFAULT,
+ const wxString& face = wxEmptyString,
+ wxFontEncoding encoding = wxFONTENCODING_DEFAULT)
+ {
+ Create(pointSize, family,
+ GetStyleFromFlags(flags),
+ GetWeightFromFlags(flags),
+ GetUnderlinedFromFlags(flags),
+ face, encoding);
+ }
+
/*! @abstract Construction with opaque wxNativeFontInfo
*/
wxFont(const wxNativeFontInfo& info)
diff --git a/Externals/wxWidgets3/include/wx/cocoa/notebook.h b/Externals/wxWidgets3/include/wx/cocoa/notebook.h
index 46be4d570c..fade3ac3a6 100644
--- a/Externals/wxWidgets3/include/wx/cocoa/notebook.h
+++ b/Externals/wxWidgets3/include/wx/cocoa/notebook.h
@@ -4,7 +4,7 @@
// Author: David Elliott
// Modified by:
// Created: 2004/04/08
-// RCS-ID: $Id: notebook.h 65930 2010-10-27 16:54:24Z VZ $
+// RCS-ID: $Id: notebook.h 68810 2011-08-21 14:08:49Z VZ $
// Copyright: (c) 2004 David Elliott
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -97,7 +97,7 @@ public:
wxNotebookPage *win,
const wxString& strText,
bool bSelect = false,
- int imageId = -1 );
+ int imageId = NO_IMAGE );
protected:
};
diff --git a/Externals/wxWidgets3/include/wx/cocoa/sound.h b/Externals/wxWidgets3/include/wx/cocoa/sound.h
index 2d22dfdff3..09bc45523d 100644
--- a/Externals/wxWidgets3/include/wx/cocoa/sound.h
+++ b/Externals/wxWidgets3/include/wx/cocoa/sound.h
@@ -5,7 +5,7 @@
// Authors: David Elliott, Ryan Norton
// Modified by:
// Created: 2004-10-02
-// RCS-ID: $Id: sound.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: sound.h 69178 2011-09-21 15:08:02Z VZ $
// Copyright: (c) 2004 David Elliott, Ryan Norton
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -25,7 +25,7 @@ public:
wxSound(const wxString& fileName, bool isResource = false)
: m_cocoaNSSound(NULL)
{ Create(fileName, isResource); }
- wxSound(int size, const wxByte* data)
+ wxSound(size_t size, const void* data)
: m_cocoaNSSound(NULL)
{ LoadWAV(data,size,true); }
wxSound(const wxSound& sound); // why not?
@@ -43,7 +43,7 @@ public:
{ return m_cocoaNSSound; }
protected:
bool DoPlay(unsigned flags) const;
- bool LoadWAV(const wxUint8 *data, size_t length, bool copyData);
+ bool LoadWAV(const void* data, size_t length, bool copyData);
private:
WX_NSSound m_cocoaNSSound;
static const wxObjcAutoRefFromAlloc sm_cocoaDelegate;
diff --git a/Externals/wxWidgets3/include/wx/colordlg.h b/Externals/wxWidgets3/include/wx/colordlg.h
index 1b339788d2..4632e99698 100644
--- a/Externals/wxWidgets3/include/wx/colordlg.h
+++ b/Externals/wxWidgets3/include/wx/colordlg.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitiln
// Modified by:
// Created: 01/02/97
-// RCS-ID: $Id: colordlg.h 66615 2011-01-07 05:26:57Z PC $
+// RCS-ID: $Id: colordlg.h 70345 2012-01-15 01:05:28Z VZ $
// Copyright: (c) wxWidgets team
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -24,8 +24,6 @@
#include "wx/osx/colordlg.h"
#elif defined(__WXGTK20__) && !defined(__WXUNIVERSAL__)
#include "wx/gtk/colordlg.h"
-#elif defined(__WXPALMOS__)
- #include "wx/palmos/colordlg.h"
#else
#include "wx/generic/colrdlgg.h"
diff --git a/Externals/wxWidgets3/include/wx/colour.h b/Externals/wxWidgets3/include/wx/colour.h
index 08dd20910c..0c9cf08565 100644
--- a/Externals/wxWidgets3/include/wx/colour.h
+++ b/Externals/wxWidgets3/include/wx/colour.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by: Francesco Montorsi
// Created:
-// RCS-ID: $Id: colour.h 66966 2011-02-19 12:32:59Z VZ $
+// RCS-ID: $Id: colour.h 70353 2012-01-15 14:46:41Z VZ $
// Copyright: Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -213,9 +213,7 @@ WXDLLIMPEXP_CORE bool wxFromString(const wxString& str, wxColourBase* col);
-#if defined(__WXPALMOS__)
- #include "wx/generic/colour.h"
-#elif defined(__WXMSW__)
+#if defined(__WXMSW__)
#include "wx/msw/colour.h"
#elif defined(__WXMOTIF__)
#include "wx/motif/colour.h"
@@ -223,8 +221,6 @@ WXDLLIMPEXP_CORE bool wxFromString(const wxString& str, wxColourBase* col);
#include "wx/gtk/colour.h"
#elif defined(__WXGTK__)
#include "wx/gtk1/colour.h"
-#elif defined(__WXMGL__)
- #include "wx/generic/colour.h"
#elif defined(__WXDFB__)
#include "wx/generic/colour.h"
#elif defined(__WXX11__)
diff --git a/Externals/wxWidgets3/include/wx/combo.h b/Externals/wxWidgets3/include/wx/combo.h
index 98a6094ff7..f624f7cd59 100644
--- a/Externals/wxWidgets3/include/wx/combo.h
+++ b/Externals/wxWidgets3/include/wx/combo.h
@@ -4,7 +4,7 @@
// Author: Jaakko Salli
// Modified by:
// Created: Apr-30-2006
-// RCS-ID: $Id: combo.h 67280 2011-03-22 14:17:38Z DS $
+// RCS-ID: $Id: combo.h 69942 2011-12-07 14:05:11Z VZ $
// Copyright: (c) Jaakko Salli
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -560,7 +560,8 @@ protected:
// Standard textctrl positioning routine. Just give it platform-dependant
// textctrl coordinate adjustment.
- virtual void PositionTextCtrl( int textCtrlXAdjust, int textCtrlYAdjust );
+ virtual void PositionTextCtrl( int textCtrlXAdjust = 0,
+ int textCtrlYAdjust = 0);
// event handlers
void OnSizeEvent( wxSizeEvent& event );
@@ -641,7 +642,7 @@ protected:
// main (ie. topmost) window of a composite control (default = this)
wxWindow* m_mainCtrlWnd;
- // used to prevent immediate re-popupping incase closed popup
+ // used to prevent immediate re-popupping in case closed popup
// by clicking on the combo control (needed because of inconsistent
// transient implementation across platforms).
wxLongLong m_timeCanAcceptClick;
@@ -767,6 +768,13 @@ public:
// Return true for success.
virtual bool Create(wxWindow* parent) = 0;
+ // Calls Destroy() for the popup control (i.e. one returned by
+ // GetControl()) and makes sure that 'this' is deleted at the end.
+ // Default implementation works for both cases where popup control
+ // class is multiple inherited or created on heap as a separate
+ // object.
+ virtual void DestroyPopup();
+
// We must have an associated control which is subclassed by the combobox.
virtual wxWindow *GetControl() = 0;
diff --git a/Externals/wxWidgets3/include/wx/combobox.h b/Externals/wxWidgets3/include/wx/combobox.h
index 63ae722bea..a28dae2454 100644
--- a/Externals/wxWidgets3/include/wx/combobox.h
+++ b/Externals/wxWidgets3/include/wx/combobox.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 24.12.00
-// RCS-ID: $Id: combobox.h 63242 2010-01-24 01:00:45Z VZ $
+// RCS-ID: $Id: combobox.h 70165 2011-12-29 14:42:13Z SN $
// Copyright: (c) 1996-2000 wxWidgets team
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -36,7 +36,13 @@ public:
wxItemContainer::Clear();
}
- bool IsEmpty() const { return wxItemContainer::IsEmpty(); }
+ // IsEmpty() is ambiguous because we inherit it from both wxItemContainer
+ // and wxTextEntry, and even if defined it here to help the compiler with
+ // choosing one of them, it would still be confusing for the human users of
+ // this class. So instead define the clearly named methods below and leave
+ // IsEmpty() ambiguous to trigger a compilation error if it's used.
+ bool IsListEmpty() const { return wxItemContainer::IsEmpty(); }
+ bool IsTextEmpty() const { return wxTextEntry::IsEmpty(); }
// also bring in GetSelection() versions of both base classes in scope
//
@@ -47,8 +53,8 @@ public:
virtual int GetSelection() const = 0;
virtual void GetSelection(long *from, long *to) const = 0;
- virtual void Popup() { wxFAIL_MSG( wxT("Not implemented") ); };
- virtual void Dismiss() { wxFAIL_MSG( wxT("Not implemented") ); };
+ virtual void Popup() { wxFAIL_MSG( wxT("Not implemented") ); }
+ virtual void Dismiss() { wxFAIL_MSG( wxT("Not implemented") ); }
// may return value different from GetSelection() when the combobox
// dropdown is shown and the user selected, but not yet accepted, a value
diff --git a/Externals/wxWidgets3/include/wx/compositewin.h b/Externals/wxWidgets3/include/wx/compositewin.h
index 390607d71f..2c6503aaeb 100644
--- a/Externals/wxWidgets3/include/wx/compositewin.h
+++ b/Externals/wxWidgets3/include/wx/compositewin.h
@@ -3,7 +3,7 @@
// Purpose: wxCompositeWindow<> declaration
// Author: Vadim Zeitlin
// Created: 2011-01-02
-// RCS-ID: $Id: compositewin.h 66931 2011-02-16 23:45:04Z VZ $
+// RCS-ID: $Id: compositewin.h 69470 2011-10-19 16:20:01Z VS $
// Copyright: (c) 2011 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -12,22 +12,15 @@
#define _WX_COMPOSITEWIN_H_
#include "wx/window.h"
+#include "wx/containr.h"
+
+class WXDLLIMPEXP_FWD_CORE wxToolTip;
// NB: This is an experimental and, as for now, undocumented class used only by
// wxWidgets itself internally. Don't use it in your code until its API is
// officially stabilized unless you are ready to change it with the next
// wxWidgets release.
-// FIXME-VC6: This compiler can't compile DoSetForAllParts() template function,
-// it can't determine whether the deduced type should be "T" or "const T&". And
-// without this function wxCompositeWindow is pretty useless so simply disable
-// this code for it, this does mean that setting colours/fonts/... for
-// composite controls won't work in the library compiled with it but so far
-// this only affects the generic wxDatePickerCtrl which is not used by default
-// under MSW anyhow so it doesn't seem to be worth it to spend time and uglify
-// the code to fix it.
-#ifndef __VISUALC6__
-
// ----------------------------------------------------------------------------
// wxCompositeWindow is a helper for implementing composite windows: to define
// a class using subwindows, simply inherit from it specialized with the real
@@ -42,7 +35,25 @@ public:
typedef W BaseWindowClass;
// Default ctor doesn't do anything.
- wxCompositeWindow() { }
+ wxCompositeWindow()
+ {
+ this->Connect
+ (
+ wxEVT_CREATE,
+ wxWindowCreateEventHandler(wxCompositeWindow::OnWindowCreate)
+ );
+
+ }
+
+#ifndef __VISUALC6__
+ // FIXME-VC6: This compiler can't compile DoSetForAllParts() template function,
+ // it can't determine whether the deduced type should be "T" or "const T&". And
+ // without this function wxCompositeWindow is pretty useless so simply disable
+ // this code for it, this does mean that setting colours/fonts/... for
+ // composite controls won't work in the library compiled with it but so far
+ // this only affects the generic wxDatePickerCtrl which is not used by default
+ // under MSW anyhow so it doesn't seem to be worth it to spend time and uglify
+ // the code to fix it.
// Override all wxWindow methods which must be forwarded to the composite
// window parts.
@@ -59,7 +70,7 @@ public:
if ( !BaseWindowClass::SetForegroundColour(colour) )
return false;
- DoSetForAllParts(&wxWindowBase::SetForegroundColour, colour);
+ SetForAllParts(&wxWindowBase::SetForegroundColour, colour);
return true;
}
@@ -69,7 +80,7 @@ public:
if ( !BaseWindowClass::SetBackgroundColour(colour) )
return false;
- DoSetForAllParts(&wxWindowBase::SetBackgroundColour, colour);
+ SetForAllParts(&wxWindowBase::SetBackgroundColour, colour);
return true;
}
@@ -79,7 +90,7 @@ public:
if ( !BaseWindowClass::SetFont(font) )
return false;
- DoSetForAllParts(&wxWindowBase::SetFont, font);
+ SetForAllParts(&wxWindowBase::SetFont, font);
return true;
}
@@ -89,18 +100,112 @@ public:
if ( !BaseWindowClass::SetCursor(cursor) )
return false;
- DoSetForAllParts(&wxWindowBase::SetCursor, cursor);
+ SetForAllParts(&wxWindowBase::SetCursor, cursor);
return true;
}
+#if wxUSE_TOOLTIPS
+ virtual void DoSetToolTip(wxToolTip *tip)
+ {
+ BaseWindowClass::DoSetToolTip(tip);
+
+ SetForAllParts(&wxWindowBase::CopyToolTip, tip);
+ }
+#endif // wxUSE_TOOLTIPS
+
+#endif // !__VISUALC6__
+
+ virtual void SetFocus()
+ {
+ wxSetFocusToChild(this, NULL);
+ }
+
private:
// Must be implemented by the derived class to return all children to which
// the public methods we override should forward to.
virtual wxWindowList GetCompositeWindowParts() const = 0;
+ void OnWindowCreate(wxWindowCreateEvent& event)
+ {
+ event.Skip();
+
+ // Attach a few event handlers to all parts of the composite window.
+ // This makes the composite window behave more like a simple control
+ // and allows other code (such as wxDataViewCtrl's inline editing
+ // support) to hook into its event processing.
+
+ wxWindow *child = event.GetWindow();
+ if ( child == this )
+ return; // not a child, we don't want to Connect() to ourselves
+
+ // Always capture wxEVT_KILL_FOCUS:
+ child->Connect(wxEVT_KILL_FOCUS,
+ wxFocusEventHandler(wxCompositeWindow::OnKillFocus),
+ NULL, this);
+
+ // Some events should be only handled for non-toplevel children. For
+ // example, we want to close the control in wxDataViewCtrl when Enter
+ // is pressed in the inline editor, but not when it's pressed in a
+ // popup dialog it opens.
+ wxWindow *win = child;
+ while ( win && win != this )
+ {
+ if ( win->IsTopLevel() )
+ return;
+ win = win->GetParent();
+ }
+
+ child->Connect(wxEVT_CHAR,
+ wxKeyEventHandler(wxCompositeWindow::OnChar),
+ NULL, this);
+ }
+
+ void OnChar(wxKeyEvent& event)
+ {
+ if ( !this->ProcessWindowEvent(event) )
+ event.Skip();
+ }
+
+ void OnKillFocus(wxFocusEvent& event)
+ {
+ // Ignore focus changes within the composite control:
+ wxWindow *win = event.GetWindow();
+ while ( win )
+ {
+ if ( win == this )
+ {
+ event.Skip();
+ return;
+ }
+
+ // Note that we don't use IsTopLevel() check here, because we do
+ // want to ignore focus changes going to toplevel window that have
+ // the composite control as its parent; these would typically be
+ // some kind of control's popup window.
+ win = win->GetParent();
+ }
+
+ // The event shouldn't be ignored, forward it to the main control:
+ if ( !this->ProcessWindowEvent(event) )
+ event.Skip();
+ }
+
+#ifndef __VISUALC6__
template
- void DoSetForAllParts(bool (wxWindowBase::*func)(const T&), const T& arg)
+ void SetForAllParts(bool (wxWindowBase::*func)(const T&), const T& arg)
+ {
+ DoSetForAllParts(func, arg);
+ }
+
+ template
+ void SetForAllParts(bool (wxWindowBase::*func)(T*), T* arg)
+ {
+ DoSetForAllParts(func, arg);
+ }
+
+ template
+ void DoSetForAllParts(bool (wxWindowBase::*func)(T), T arg)
{
// Simply call the setters for all parts of this composite window.
const wxWindowList parts = GetCompositeWindowParts();
@@ -110,20 +215,16 @@ private:
{
wxWindow * const child = *i;
- (child->*func)(arg);
+ // Allow NULL elements in the list, this makes the code of derived
+ // composite controls which may have optionally shown children
+ // simpler and it doesn't cost us much here.
+ if ( child )
+ (child->*func)(arg);
}
}
+#endif // !__VISUALC6__
wxDECLARE_NO_COPY_TEMPLATE_CLASS(wxCompositeWindow, W);
};
-#else // __VISUALC6__
-
-template
-class wxCompositeWindow : public W
-{
-};
-
-#endif // !__VISUALC6__/__VISUALC6__
-
#endif // _WX_COMPOSITEWIN_H_
diff --git a/Externals/wxWidgets3/include/wx/config.h b/Externals/wxWidgets3/include/wx/config.h
index 3c2dbad63a..672e0a5cf2 100644
--- a/Externals/wxWidgets3/include/wx/config.h
+++ b/Externals/wxWidgets3/include/wx/config.h
@@ -5,7 +5,7 @@
// Modified by:
// Created:
// Copyright: (c) Julian Smart
-// RCS-ID: $Id: config.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: config.h 70808 2012-03-04 20:31:42Z VZ $
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -22,15 +22,12 @@
// under Windows we prefer to use the native implementation but can be forced
// to use the file-based one
-#if defined(__WXMSW__) && wxUSE_CONFIG_NATIVE
+#if defined(__WINDOWS__) && wxUSE_CONFIG_NATIVE
#include "wx/msw/regconf.h"
#define wxConfig wxRegConfig
#elif defined(__WXOS2__) && wxUSE_CONFIG_NATIVE
#include "wx/os2/iniconf.h"
#define wxConfig wxIniConfig
-#elif defined(__WXPALMOS__) && wxUSE_CONFIG_NATIVE
- #include "wx/palmos/prefconf.h"
- #define wxConfig wxPrefConfig
#else // either we're under Unix or wish to always use config files
#include "wx/fileconf.h"
#define wxConfig wxFileConfig
diff --git a/Externals/wxWidgets3/include/wx/containr.h b/Externals/wxWidgets3/include/wx/containr.h
index c961a772da..a509df834c 100644
--- a/Externals/wxWidgets3/include/wx/containr.h
+++ b/Externals/wxWidgets3/include/wx/containr.h
@@ -1,12 +1,11 @@
///////////////////////////////////////////////////////////////////////////////
// Name: wx/containr.h
-// Purpose: wxControlContainer class declration: a "mix-in" class which
-// implements the TAB navigation between the controls
+// Purpose: wxControlContainer and wxNavigationEnabled declarations
// Author: Vadim Zeitlin
// Modified by:
// Created: 06.08.01
-// RCS-ID: $Id: containr.h 61508 2009-07-23 20:30:22Z VZ $
-// Copyright: (c) 2001 Vadim Zeitlin
+// RCS-ID: $Id: containr.h 70805 2012-03-04 09:42:51Z SC $
+// Copyright: (c) 2001, 2011 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -15,16 +14,20 @@
#include "wx/defs.h"
+#ifndef wxHAS_NATIVE_TAB_TRAVERSAL
+ // We need wxEVT_XXX declarations in this case.
+ #include "wx/event.h"
+#endif
+
class WXDLLIMPEXP_FWD_CORE wxWindow;
class WXDLLIMPEXP_FWD_CORE wxWindowBase;
/*
- Implementation note: wxControlContainer is not a real mix-in but rather
- a class meant to be aggregated with (and not inherited from). Although
- logically it should be a mix-in, doing it like this has no advantage from
- the point of view of the existing code but does have some problems (we'd
- need to play tricks with event handlers which may be difficult to do
- safely). The price we pay for this simplicity is the ugly macros below.
+ This header declares wxControlContainer class however it's not a real
+ container of controls but rather just a helper used to implement TAB
+ navigation among the window children. You should rarely need to use it
+ directly, derive from the documented public wxNavigationEnabled<> class to
+ implement TAB navigation in a custom composite window.
*/
// ----------------------------------------------------------------------------
@@ -102,6 +105,161 @@ private:
bool m_inSetFocus;
};
+#ifdef wxHAS_NATIVE_TAB_TRAVERSAL
+
+// ----------------------------------------------------------------------------
+// wxControlContainer for native TAB navigation
+// ----------------------------------------------------------------------------
+
+// this must be a real class as we forward-declare it elsewhere
+class WXDLLIMPEXP_CORE wxControlContainer : public wxControlContainerBase
+{
+protected:
+ // set the focus to the child which had it the last time
+ virtual bool SetFocusToChild();
+};
+
+#else // !wxHAS_NATIVE_TAB_TRAVERSAL
+
+// ----------------------------------------------------------------------------
+// wxControlContainer for TAB navigation implemented in wx itself
+// ----------------------------------------------------------------------------
+
+class WXDLLIMPEXP_CORE wxControlContainer : public wxControlContainerBase
+{
+public:
+ // default ctor, SetContainerWindow() must be called later
+ wxControlContainer();
+
+ // the methods to be called from the window event handlers
+ void HandleOnNavigationKey(wxNavigationKeyEvent& event);
+ void HandleOnFocus(wxFocusEvent& event);
+ void HandleOnWindowDestroy(wxWindowBase *child);
+
+ // called from OnChildFocus() handler, i.e. when one of our (grand)
+ // children gets the focus
+ void SetLastFocus(wxWindow *win);
+
+protected:
+
+ wxDECLARE_NO_COPY_CLASS(wxControlContainer);
+};
+
+#endif // wxHAS_NATIVE_TAB_TRAVERSAL/!wxHAS_NATIVE_TAB_TRAVERSAL
+
+// this function is for wxWidgets internal use only
+extern WXDLLIMPEXP_CORE bool wxSetFocusToChild(wxWindow *win, wxWindow **child);
+
+// ----------------------------------------------------------------------------
+// wxNavigationEnabled: Derive from this class to support keyboard navigation
+// among window children in a wxWindow-derived class. The details of this class
+// don't matter, you just need to derive from it to make navigation work.
+// ----------------------------------------------------------------------------
+
+// The template parameter W must be a wxWindow-derived class.
+template
+class wxNavigationEnabled : public W
+{
+public:
+ typedef W BaseWindowClass;
+
+ wxNavigationEnabled()
+ {
+ m_container.SetContainerWindow(this);
+
+#ifndef wxHAS_NATIVE_TAB_TRAVERSAL
+ BaseWindowClass::Connect(wxEVT_NAVIGATION_KEY,
+ wxNavigationKeyEventHandler(wxNavigationEnabled::OnNavigationKey));
+
+ BaseWindowClass::Connect(wxEVT_SET_FOCUS,
+ wxFocusEventHandler(wxNavigationEnabled::OnFocus));
+
+ BaseWindowClass::Connect(wxEVT_CHILD_FOCUS,
+ wxChildFocusEventHandler(wxNavigationEnabled::OnChildFocus));
+#endif // !wxHAS_NATIVE_TAB_TRAVERSAL
+ }
+
+ WXDLLIMPEXP_INLINE_CORE virtual bool AcceptsFocus() const
+ {
+ return m_container.AcceptsFocus();
+ }
+
+ WXDLLIMPEXP_INLINE_CORE virtual bool AcceptsFocusRecursively() const
+ {
+ return m_container.AcceptsFocusRecursively();
+ }
+
+ WXDLLIMPEXP_INLINE_CORE virtual bool AcceptsFocusFromKeyboard() const
+ {
+ return m_container.AcceptsFocusFromKeyboard();
+ }
+
+ WXDLLIMPEXP_INLINE_CORE virtual void AddChild(wxWindowBase *child)
+ {
+ BaseWindowClass::AddChild(child);
+
+ m_container.UpdateCanFocus();
+ }
+
+ WXDLLIMPEXP_INLINE_CORE virtual void RemoveChild(wxWindowBase *child)
+ {
+#ifndef wxHAS_NATIVE_TAB_TRAVERSAL
+ m_container.HandleOnWindowDestroy(child);
+#endif // !wxHAS_NATIVE_TAB_TRAVERSAL
+
+ BaseWindowClass::RemoveChild(child);
+
+ m_container.UpdateCanFocus();
+ }
+
+ WXDLLIMPEXP_INLINE_CORE virtual void SetFocus()
+ {
+ if ( !m_container.DoSetFocus() )
+ BaseWindowClass::SetFocus();
+ }
+
+ void SetFocusIgnoringChildren()
+ {
+ BaseWindowClass::SetFocus();
+ }
+
+ void AcceptFocus(bool acceptFocus)
+ {
+ m_container.SetCanFocus(acceptFocus);
+ }
+
+protected:
+#ifndef wxHAS_NATIVE_TAB_TRAVERSAL
+ void OnNavigationKey(wxNavigationKeyEvent& event)
+ {
+ m_container.HandleOnNavigationKey(event);
+ }
+
+ void OnFocus(wxFocusEvent& event)
+ {
+ m_container.HandleOnFocus(event);
+ }
+
+ void OnChildFocus(wxChildFocusEvent& event)
+ {
+ m_container.SetLastFocus(event.GetWindow());
+ event.Skip();
+ }
+#endif // !wxHAS_NATIVE_TAB_TRAVERSAL
+
+ wxControlContainer m_container;
+
+
+ wxDECLARE_NO_COPY_TEMPLATE_CLASS(wxNavigationEnabled, W);
+};
+
+// ----------------------------------------------------------------------------
+// Compatibility macros from now on, do NOT use them and preferably do not even
+// look at them.
+// ----------------------------------------------------------------------------
+
+#if WXWIN_COMPATIBILITY_2_8
+
// common part of WX_DECLARE_CONTROL_CONTAINER in the native and generic cases,
// it should be used in the wxWindow-derived class declaration
#define WX_DECLARE_CONTROL_CONTAINER_BASE() \
@@ -156,20 +314,9 @@ protected: \
return m_container.AcceptsFocusFromKeyboard(); \
}
+
#ifdef wxHAS_NATIVE_TAB_TRAVERSAL
-// ----------------------------------------------------------------------------
-// wxControlContainer for native TAB navigation
-// ----------------------------------------------------------------------------
-
-// this must be a real class as we forward-declare it elsewhere
-class WXDLLIMPEXP_CORE wxControlContainer : public wxControlContainerBase
-{
-protected:
- // set the focus to the child which had it the last time
- virtual bool SetFocusToChild();
-};
-
#define WX_EVENT_TABLE_CONTROL_CONTAINER(classname)
#define WX_DECLARE_CONTROL_CONTAINER WX_DECLARE_CONTROL_CONTAINER_BASE
@@ -191,38 +338,6 @@ protected:
#else // !wxHAS_NATIVE_TAB_TRAVERSAL
-class WXDLLIMPEXP_FWD_CORE wxFocusEvent;
-class WXDLLIMPEXP_FWD_CORE wxNavigationKeyEvent;
-
-// ----------------------------------------------------------------------------
-// wxControlContainer for TAB navigation implemented in wx itself
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxControlContainer : public wxControlContainerBase
-{
-public:
- // default ctor, SetContainerWindow() must be called later
- wxControlContainer();
-
- // the methods to be called from the window event handlers
- void HandleOnNavigationKey(wxNavigationKeyEvent& event);
- void HandleOnFocus(wxFocusEvent& event);
- void HandleOnWindowDestroy(wxWindowBase *child);
-
- // called from OnChildFocus() handler, i.e. when one of our (grand)
- // children gets the focus
- void SetLastFocus(wxWindow *win);
-
-protected:
-
- wxDECLARE_NO_COPY_CLASS(wxControlContainer);
-};
-
-// ----------------------------------------------------------------------------
-// macros which may be used by the classes wishing to implement TAB navigation
-// among their children
-// ----------------------------------------------------------------------------
-
// declare the methods to be forwarded
#define WX_DECLARE_CONTROL_CONTAINER() \
WX_DECLARE_CONTROL_CONTAINER_BASE(); \
@@ -274,7 +389,6 @@ public: \
#endif // wxHAS_NATIVE_TAB_TRAVERSAL/!wxHAS_NATIVE_TAB_TRAVERSAL
-// this function is for wxWidgets internal use only
-extern bool wxSetFocusToChild(wxWindow *win, wxWindow **child);
+#endif // WXWIN_COMPATIBILITY_2_8
#endif // _WX_CONTAINR_H_
diff --git a/Externals/wxWidgets3/include/wx/control.h b/Externals/wxWidgets3/include/wx/control.h
index 6c859b6868..778ec1870e 100644
--- a/Externals/wxWidgets3/include/wx/control.h
+++ b/Externals/wxWidgets3/include/wx/control.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 26.07.99
-// RCS-ID: $Id: control.h 67062 2011-02-27 12:48:07Z VZ $
+// RCS-ID: $Id: control.h 70345 2012-01-15 01:05:28Z VZ $
// Copyright: (c) wxWidgets team
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -221,8 +221,6 @@ protected:
#if defined(__WXUNIVERSAL__)
#include "wx/univ/control.h"
-#elif defined(__WXPALMOS__)
- #include "wx/palmos/control.h"
#elif defined(__WXMSW__)
#include "wx/msw/control.h"
#elif defined(__WXMOTIF__)
diff --git a/Externals/wxWidgets3/include/wx/convauto.h b/Externals/wxWidgets3/include/wx/convauto.h
index ac5f02d7f1..0d9303959d 100644
--- a/Externals/wxWidgets3/include/wx/convauto.h
+++ b/Externals/wxWidgets3/include/wx/convauto.h
@@ -3,7 +3,7 @@
// Purpose: wxConvAuto class declaration
// Author: Vadim Zeitlin
// Created: 2006-04-03
-// RCS-ID: $Id: convauto.h 63991 2010-04-16 10:43:18Z VS $
+// RCS-ID: $Id: convauto.h 69675 2011-11-05 11:23:41Z VZ $
// Copyright: (c) 2006 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -18,6 +18,18 @@
// wxConvAuto: uses BOM to automatically detect input encoding
// ----------------------------------------------------------------------------
+// All currently recognized BOM values.
+enum wxBOM
+{
+ wxBOM_Unknown = -1,
+ wxBOM_None,
+ wxBOM_UTF32BE,
+ wxBOM_UTF32LE,
+ wxBOM_UTF16BE,
+ wxBOM_UTF16LE,
+ wxBOM_UTF8
+};
+
class WXDLLIMPEXP_BASE wxConvAuto : public wxMBConv
{
public:
@@ -69,29 +81,27 @@ public:
virtual wxMBConv *Clone() const { return new wxConvAuto(*this); }
-private:
- // all currently recognized BOM values
- enum BOMType
- {
- BOM_Unknown = -1,
- BOM_None,
- BOM_UTF32BE,
- BOM_UTF32LE,
- BOM_UTF16BE,
- BOM_UTF16LE,
- BOM_UTF8
- };
-
// return the BOM type of this buffer
- static BOMType DetectBOM(const char *src, size_t srcLen);
+ static wxBOM DetectBOM(const char *src, size_t srcLen);
+ // return the characters composing the given BOM.
+ static const char* GetBOMChars(wxBOM bomType, size_t* count);
+
+ wxBOM GetBOM() const
+ {
+ return m_bomType;
+ }
+
+private:
// common part of all ctors
void Init()
{
- // no need to initialize m_bomType and m_consumedBOM here, this will be
- // done when m_conv is created
+ // We don't initialize m_encDefault here as different ctors do it
+ // differently.
m_conv = NULL;
+ m_bomType = wxBOM_Unknown;
m_ownsConv = false;
+ m_consumedBOM = false;
}
// initialize m_conv with the UTF-8 conversion
@@ -102,7 +112,7 @@ private:
}
// create the correct conversion object for the given BOM type
- void InitFromBOM(BOMType bomType);
+ void InitFromBOM(wxBOM bomType);
// create the correct conversion object for the BOM present in the
// beginning of the buffer
@@ -128,7 +138,7 @@ private:
wxFontEncoding m_encDefault;
// our BOM type
- BOMType m_bomType;
+ wxBOM m_bomType;
// true if we allocated m_conv ourselves, false if we just use an existing
// global conversion
diff --git a/Externals/wxWidgets3/include/wx/cppunit.h b/Externals/wxWidgets3/include/wx/cppunit.h
index 831b6891a0..7c5a114bf5 100644
--- a/Externals/wxWidgets3/include/wx/cppunit.h
+++ b/Externals/wxWidgets3/include/wx/cppunit.h
@@ -3,7 +3,7 @@
// Purpose: wrapper header for CppUnit headers
// Author: Vadim Zeitlin
// Created: 15.02.04
-// RCS-ID: $Id: cppunit.h 66711 2011-01-19 10:47:49Z VZ $
+// RCS-ID: $Id: cppunit.h 69241 2011-09-30 14:00:52Z JJ $
// Copyright: (c) 2004 Vadim Zeitlin
// Licence: wxWindows Licence
/////////////////////////////////////////////////////////////////////////////
@@ -200,6 +200,10 @@ WX_CPPUNIT_ALLOW_EQUALS_TO_INT(short)
WX_CPPUNIT_ALLOW_EQUALS_TO_INT(unsigned)
WX_CPPUNIT_ALLOW_EQUALS_TO_INT(unsigned long)
+#if defined( __VMS ) && defined( __ia64 )
+WX_CPPUNIT_ALLOW_EQUALS_TO_INT(std::basic_streambuf::pos_type);
+#endif
+
#ifdef wxHAS_LONG_LONG_T_DIFFERENT_FROM_LONG
WX_CPPUNIT_ALLOW_EQUALS_TO_INT(wxLongLong_t)
WX_CPPUNIT_ALLOW_EQUALS_TO_INT(unsigned wxLongLong_t)
diff --git a/Externals/wxWidgets3/include/wx/ctrlsub.h b/Externals/wxWidgets3/include/wx/ctrlsub.h
index 70a69d1103..198aae24c6 100644
--- a/Externals/wxWidgets3/include/wx/ctrlsub.h
+++ b/Externals/wxWidgets3/include/wx/ctrlsub.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 22.10.99
-// RCS-ID: $Id: ctrlsub.h 65040 2010-07-22 12:09:15Z VZ $
+// RCS-ID: $Id: ctrlsub.h 68460 2011-07-30 11:30:08Z VZ $
// Copyright: (c) wxWidgets team
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -395,41 +395,48 @@ private:
wxClientDataType m_clientDataItemsType;
};
-// this macro must (unfortunately) be used in any class deriving from both
-// wxItemContainer and wxControl because otherwise there is ambiguity when
-// calling GetClientXXX() functions -- the compiler can't choose between the
-// two versions
-#define wxCONTROL_ITEMCONTAINER_CLIENTDATAOBJECT_RECAST \
- void SetClientData(void *data) \
- { wxEvtHandler::SetClientData(data); } \
- void *GetClientData() const \
- { return wxEvtHandler::GetClientData(); } \
- void SetClientObject(wxClientData *data) \
- { wxEvtHandler::SetClientObject(data); } \
- wxClientData *GetClientObject() const \
- { return wxEvtHandler::GetClientObject(); } \
- void SetClientData(unsigned int n, void* clientData) \
- { wxItemContainer::SetClientData(n, clientData); } \
- void* GetClientData(unsigned int n) const \
- { return wxItemContainer::GetClientData(n); } \
- void SetClientObject(unsigned int n, wxClientData* clientData) \
- { wxItemContainer::SetClientObject(n, clientData); } \
- wxClientData* GetClientObject(unsigned int n) const \
- { return wxItemContainer::GetClientObject(n); }
+// Inheriting directly from a wxWindow-derived class and wxItemContainer
+// unfortunately introduces an ambiguity for all GetClientXXX() methods as they
+// are inherited twice: the "global" versions from wxWindow and the per-item
+// versions taking the index from wxItemContainer.
+//
+// So we need to explicitly resolve them and this helper template class is
+// provided to do it. To use it, simply inherit from wxWindowWithItems instead of Window and Container interface directly.
+template
+class wxWindowWithItems : public W, public C
+{
+public:
+ typedef W BaseWindowClass;
+ typedef C BaseContainerInterface;
-class WXDLLIMPEXP_CORE wxControlWithItemsBase : public wxControl,
- public wxItemContainer
+ wxWindowWithItems() { }
+
+ void SetClientData(void *data)
+ { BaseWindowClass::SetClientData(data); }
+ void *GetClientData() const
+ { return BaseWindowClass::GetClientData(); }
+ void SetClientObject(wxClientData *data)
+ { BaseWindowClass::SetClientObject(data); }
+ wxClientData *GetClientObject() const
+ { return BaseWindowClass::GetClientObject(); }
+
+ void SetClientData(unsigned int n, void* clientData)
+ { wxItemContainer::SetClientData(n, clientData); }
+ void* GetClientData(unsigned int n) const
+ { return wxItemContainer::GetClientData(n); }
+ void SetClientObject(unsigned int n, wxClientData* clientData)
+ { wxItemContainer::SetClientObject(n, clientData); }
+ wxClientData* GetClientObject(unsigned int n) const
+ { return wxItemContainer::GetClientObject(n); }
+};
+
+class WXDLLIMPEXP_CORE wxControlWithItemsBase :
+ public wxWindowWithItems
{
public:
wxControlWithItemsBase() { }
- // we have to redefine these functions here to avoid ambiguities in classes
- // deriving from us which would arise otherwise because both base classses
- // have the methods with the same names - hopefully, a smart compiler can
- // optimize away these simple inline wrappers so we don't suffer much from
- // this
- wxCONTROL_ITEMCONTAINER_CLIENTDATAOBJECT_RECAST
-
// usually the controls like list/combo boxes have their own background
// colour
virtual bool ShouldInheritColours() const { return false; }
diff --git a/Externals/wxWidgets3/include/wx/cursor.h b/Externals/wxWidgets3/include/wx/cursor.h
index 82bd282b45..a0ce868609 100644
--- a/Externals/wxWidgets3/include/wx/cursor.h
+++ b/Externals/wxWidgets3/include/wx/cursor.h
@@ -5,7 +5,7 @@
// Modified by:
// Created:
// Copyright: (c) Julian Smart
-// RCS-ID: $Id: cursor.h 60648 2009-05-16 10:42:48Z FM $
+// RCS-ID: $Id: cursor.h 70353 2012-01-15 14:46:41Z VZ $
// Licence: wxWindows Licence
/////////////////////////////////////////////////////////////////////////////
@@ -34,10 +34,7 @@ public:
*/
-#if defined(__WXPALMOS__)
- #define wxCURSOR_DEFAULT_TYPE wxBITMAP_TYPE_CUR_RESOURCE
- #include "wx/palmos/cursor.h"
-#elif defined(__WXMSW__)
+#if defined(__WXMSW__)
#define wxCURSOR_DEFAULT_TYPE wxBITMAP_TYPE_CUR_RESOURCE
#include "wx/msw/cursor.h"
#elif defined(__WXMOTIF__)
@@ -52,9 +49,6 @@ public:
#elif defined(__WXX11__)
#define wxCURSOR_DEFAULT_TYPE wxBITMAP_TYPE_XPM
#include "wx/x11/cursor.h"
-#elif defined(__WXMGL__)
- #define wxCURSOR_DEFAULT_TYPE wxBITMAP_TYPE_CUR_RESOURCE
- #include "wx/mgl/cursor.h"
#elif defined(__WXDFB__)
#define wxCURSOR_DEFAULT_TYPE wxBITMAP_TYPE_CUR_RESOURCE
#include "wx/dfb/cursor.h"
@@ -62,7 +56,7 @@ public:
#define wxCURSOR_DEFAULT_TYPE wxBITMAP_TYPE_MACCURSOR_RESOURCE
#include "wx/osx/cursor.h"
#elif defined(__WXCOCOA__)
- #define wxCURSOR_DEFAULT_TYPE 0
+ #define wxCURSOR_DEFAULT_TYPE wxBITMAP_TYPE_MACCURSOR_RESOURCE
#include "wx/cocoa/cursor.h"
#elif defined(__WXPM__)
#define wxCURSOR_DEFAULT_TYPE wxBITMAP_TYPE_CUR_RESOURCE
diff --git a/Externals/wxWidgets3/include/wx/custombgwin.h b/Externals/wxWidgets3/include/wx/custombgwin.h
new file mode 100644
index 0000000000..62ef32261f
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/custombgwin.h
@@ -0,0 +1,53 @@
+///////////////////////////////////////////////////////////////////////////////
+// Name: wx/custombgwin.h
+// Purpose: Class adding support for custom window backgrounds.
+// Author: Vadim Zeitlin
+// Created: 2011-10-10
+// RCS-ID: $Id: custombgwin.h 69930 2011-12-04 23:57:36Z VZ $
+// Copyright: (c) 2011 Vadim Zeitlin
+// Licence: wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_CUSTOMBGWIN_H_
+#define _WX_CUSTOMBGWIN_H_
+
+// ----------------------------------------------------------------------------
+// wxCustomBackgroundWindow: Adds support for custom backgrounds to any
+// wxWindow-derived class.
+// ----------------------------------------------------------------------------
+
+class wxCustomBackgroundWindowBase
+{
+public:
+ // Trivial default ctor.
+ wxCustomBackgroundWindowBase() { }
+
+ // Also a trivial but virtual -- to suppress g++ warnings -- dtor.
+ virtual ~wxCustomBackgroundWindowBase() { }
+
+ // Use the given bitmap to tile the background of this window. This bitmap
+ // will show through any transparent children.
+ //
+ // Notice that you must not prevent the base class EVT_ERASE_BACKGROUND
+ // handler from running (i.e. not to handle this event yourself) for this
+ // to work.
+ void SetBackgroundBitmap(const wxBitmap& bmp)
+ {
+ DoSetBackgroundBitmap(bmp);
+ }
+
+protected:
+ virtual void DoSetBackgroundBitmap(const wxBitmap& bmp) = 0;
+
+ wxDECLARE_NO_COPY_CLASS(wxCustomBackgroundWindowBase);
+};
+
+#if defined(__WXUNIVERSAL__)
+ #include "wx/univ/custombgwin.h"
+#elif defined(__WXMSW__)
+ #include "wx/msw/custombgwin.h"
+#else
+ #include "wx/generic/custombgwin.h"
+#endif
+
+#endif // _WX_CUSTOMBGWIN_H_
diff --git a/Externals/wxWidgets3/include/wx/dataview.h b/Externals/wxWidgets3/include/wx/dataview.h
index cc9d85efa9..3e81791cd0 100644
--- a/Externals/wxWidgets3/include/wx/dataview.h
+++ b/Externals/wxWidgets3/include/wx/dataview.h
@@ -4,7 +4,7 @@
// Author: Robert Roebling
// Modified by: Bo Yang
// Created: 08.01.06
-// RCS-ID: $Id: dataview.h 66783 2011-01-27 11:53:51Z SC $
+// RCS-ID: $Id: dataview.h 70377 2012-01-17 14:05:17Z VS $
// Copyright: (c) Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -21,9 +21,11 @@
#include "wx/variant.h"
#include "wx/dynarray.h"
#include "wx/icon.h"
+#include "wx/itemid.h"
#include "wx/weakref.h"
#include "wx/vector.h"
#include "wx/dataobj.h"
+#include "wx/withimages.h"
class WXDLLIMPEXP_FWD_CORE wxImageList;
@@ -44,7 +46,6 @@ class WXDLLIMPEXP_FWD_CORE wxImageList;
// wxDataViewCtrl globals
// ----------------------------------------------------------------------------
-class WXDLLIMPEXP_FWD_ADV wxDataViewItem;
class WXDLLIMPEXP_FWD_ADV wxDataViewModel;
class WXDLLIMPEXP_FWD_ADV wxDataViewCtrl;
class WXDLLIMPEXP_FWD_ADV wxDataViewColumn;
@@ -78,33 +79,14 @@ extern WXDLLIMPEXP_DATA_ADV(const char) wxDataViewCtrlNameStr[];
// wxDataViewItem
// ---------------------------------------------------------
-class WXDLLIMPEXP_ADV wxDataViewItem
+// Make it a class and not a typedef to allow forward declaring it.
+class wxDataViewItem : public wxItemId
{
public:
- wxDataViewItem( void* id = NULL )
- { m_id = id; }
- wxDataViewItem( const wxDataViewItem &item )
- { m_id = item.m_id; }
- bool IsOk() const { return m_id != NULL; }
- void* GetID() const { return m_id; }
- operator const void* () const { return m_id; }
-
-private:
- void* m_id;
+ wxDataViewItem() : wxItemId() { }
+ wxEXPLICIT wxDataViewItem(void* pItem) : wxItemId(pItem) { }
};
-inline
-bool operator==(const wxDataViewItem& left, const wxDataViewItem& right)
-{
- return left.GetID() == right.GetID();
-}
-
-inline
-bool operator!=(const wxDataViewItem& left, const wxDataViewItem& right)
-{
- return !(left == right);
-}
-
WX_DEFINE_ARRAY(wxDataViewItem, wxDataViewItemArray);
// ---------------------------------------------------------
@@ -161,16 +143,20 @@ public:
void SetColour(const wxColour& colour) { m_colour = colour; }
void SetBold( bool set ) { m_bold = set; }
void SetItalic( bool set ) { m_italic = set; }
+ void SetBackgroundColour(const wxColour& colour) { m_bgColour = colour; }
// accessors
- bool HasColour() const { return m_colour.Ok(); }
+ bool HasColour() const { return m_colour.IsOk(); }
const wxColour& GetColour() const { return m_colour; }
bool HasFont() const { return m_bold || m_italic; }
bool GetBold() const { return m_bold; }
bool GetItalic() const { return m_italic; }
- bool IsDefault() const { return !(HasColour() || HasFont()); }
+ bool HasBackgroundColour() const { return m_bgColour.IsOk(); }
+ const wxColour& GetBackgroundColour() const { return m_bgColour; }
+
+ bool IsDefault() const { return !(HasColour() || HasFont() || HasBackgroundColour()); }
// Return the font based on the given one with this attribute applied to it.
wxFont GetEffectiveFont(const wxFont& font) const;
@@ -179,6 +165,7 @@ private:
wxColour m_colour;
bool m_bold;
bool m_italic;
+ wxColour m_bgColour;
};
@@ -681,7 +668,18 @@ public:
wxDataViewItem GetCurrentItem() const;
void SetCurrentItem(const wxDataViewItem& item);
- virtual wxDataViewItem GetSelection() const = 0;
+ // Currently focused column of the current item or NULL if no column has focus
+ virtual wxDataViewColumn *GetCurrentColumn() const = 0;
+
+ // Selection: both GetSelection() and GetSelections() can be used for the
+ // controls both with and without wxDV_MULTIPLE style. For single selection
+ // controls GetSelections() is not very useful however. And for multi
+ // selection controls GetSelection() returns an invalid item if more than
+ // one item is selected. Use GetSelectedItemsCount() or HasSelection() to
+ // check if any items are selected at all.
+ virtual int GetSelectedItemsCount() const = 0;
+ bool HasSelection() const { return GetSelectedItemsCount() != 0; }
+ wxDataViewItem GetSelection() const;
virtual int GetSelections( wxDataViewItemArray & sel ) const = 0;
virtual void SetSelections( const wxDataViewItemArray & sel ) = 0;
virtual void Select( const wxDataViewItem & item ) = 0;
@@ -701,6 +699,13 @@ public:
virtual void HitTest( const wxPoint & point, wxDataViewItem &item, wxDataViewColumn* &column ) const = 0;
virtual wxRect GetItemRect( const wxDataViewItem & item, const wxDataViewColumn *column = NULL ) const = 0;
+ virtual bool SetRowHeight( int WXUNUSED(rowHeight) ) { return false; }
+
+ virtual void EditItem(const wxDataViewItem& item, const wxDataViewColumn *column) = 0;
+
+ // Use EditItem() instead
+ wxDEPRECATED( void StartEditor(const wxDataViewItem& item, unsigned int column) );
+
#if wxUSE_DRAG_AND_DROP
virtual bool EnableDragSource(const wxDataFormat& WXUNUSED(format))
{ return false; }
@@ -757,7 +762,8 @@ public:
m_column(NULL),
m_pos(-1,-1),
m_cacheFrom(0),
- m_cacheTo(0)
+ m_cacheTo(0),
+ m_editCancelled(false)
#if wxUSE_DRAG_AND_DROP
, m_dataObject(NULL),
m_dataBuffer(NULL),
@@ -774,7 +780,8 @@ public:
m_column(event.m_column),
m_pos(event.m_pos),
m_cacheFrom(event.m_cacheFrom),
- m_cacheTo(event.m_cacheTo)
+ m_cacheTo(event.m_cacheTo),
+ m_editCancelled(event.m_editCancelled)
#if wxUSE_DRAG_AND_DROP
, m_dataObject(event.m_dataObject),
m_dataFormat(event.m_dataFormat),
@@ -795,6 +802,10 @@ public:
const wxVariant &GetValue() const { return m_value; }
void SetValue( const wxVariant &value ) { m_value = value; }
+ // for wxEVT_COMMAND_DATAVIEW_ITEM_EDITING_DONE only
+ bool IsEditCancelled() const { return m_editCancelled; }
+ void SetEditCanceled(bool editCancelled) { m_editCancelled = editCancelled; }
+
// for wxEVT_DATAVIEW_COLUMN_HEADER_CLICKED only
void SetDataViewColumn( wxDataViewColumn *col ) { m_column = col; }
wxDataViewColumn *GetDataViewColumn() const { return m_column; }
@@ -834,6 +845,7 @@ protected:
wxPoint m_pos;
int m_cacheFrom;
int m_cacheTo;
+ bool m_editCancelled;
#if wxUSE_DRAG_AND_DROP
wxDataObject *m_dataObject;
@@ -1202,7 +1214,7 @@ public:
virtual bool HasDefaultCompare() const
{ return true; }
virtual unsigned int GetColumnCount() const
- { return 1; };
+ { return 1; }
virtual wxString GetColumnType( unsigned int WXUNUSED(col) ) const
{ return wxT("wxDataViewIconText"); }
@@ -1216,10 +1228,11 @@ public:
//-----------------------------------------------------------------------------
-class WXDLLIMPEXP_ADV wxDataViewTreeCtrl: public wxDataViewCtrl
+class WXDLLIMPEXP_ADV wxDataViewTreeCtrl: public wxDataViewCtrl,
+ public wxWithImages
{
public:
- wxDataViewTreeCtrl() { Init(); }
+ wxDataViewTreeCtrl() { }
wxDataViewTreeCtrl(wxWindow *parent,
wxWindowID id,
const wxPoint& pos = wxDefaultPosition,
@@ -1227,13 +1240,9 @@ public:
long style = wxDV_NO_HEADER | wxDV_ROW_LINES,
const wxValidator& validator = wxDefaultValidator)
{
- Init();
-
Create(parent, id, pos, size, style, validator);
}
- virtual ~wxDataViewTreeCtrl();
-
bool Create(wxWindow *parent,
wxWindowID id,
const wxPoint& pos = wxDefaultPosition,
@@ -1249,24 +1258,21 @@ public:
bool IsContainer( const wxDataViewItem& item ) const
{ return GetStore()->IsContainer(item); }
- void SetImageList( wxImageList *imagelist );
- wxImageList* GetImageList() { return m_imageList; }
-
wxDataViewItem AppendItem( const wxDataViewItem& parent,
- const wxString &text, int icon = -1, wxClientData *data = NULL );
+ const wxString &text, int icon = NO_IMAGE, wxClientData *data = NULL );
wxDataViewItem PrependItem( const wxDataViewItem& parent,
- const wxString &text, int icon = -1, wxClientData *data = NULL );
+ const wxString &text, int icon = NO_IMAGE, wxClientData *data = NULL );
wxDataViewItem InsertItem( const wxDataViewItem& parent, const wxDataViewItem& previous,
- const wxString &text, int icon = -1, wxClientData *data = NULL );
+ const wxString &text, int icon = NO_IMAGE, wxClientData *data = NULL );
wxDataViewItem PrependContainer( const wxDataViewItem& parent,
- const wxString &text, int icon = -1, int expanded = -1,
+ const wxString &text, int icon = NO_IMAGE, int expanded = NO_IMAGE,
wxClientData *data = NULL );
wxDataViewItem AppendContainer( const wxDataViewItem& parent,
- const wxString &text, int icon = -1, int expanded = -1,
+ const wxString &text, int icon = NO_IMAGE, int expanded = NO_IMAGE,
wxClientData *data = NULL );
wxDataViewItem InsertContainer( const wxDataViewItem& parent, const wxDataViewItem& previous,
- const wxString &text, int icon = -1, int expanded = -1,
+ const wxString &text, int icon = NO_IMAGE, int expanded = NO_IMAGE,
wxClientData *data = NULL );
wxDataViewItem GetNthChild( const wxDataViewItem& parent, unsigned int pos ) const
@@ -1296,14 +1302,6 @@ public:
void OnCollapsed( wxDataViewEvent &event );
void OnSize( wxSizeEvent &event );
-private:
- void Init()
- {
- m_imageList = NULL;
- }
-
- wxImageList *m_imageList;
-
private:
DECLARE_EVENT_TABLE()
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxDataViewTreeCtrl)
diff --git a/Externals/wxWidgets3/include/wx/datectrl.h b/Externals/wxWidgets3/include/wx/datectrl.h
index 576db17f48..8b16f0a9f2 100644
--- a/Externals/wxWidgets3/include/wx/datectrl.h
+++ b/Externals/wxWidgets3/include/wx/datectrl.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 2005-01-09
-// RCS-ID: $Id: datectrl.h 61508 2009-07-23 20:30:22Z VZ $
+// RCS-ID: $Id: datectrl.h 70345 2012-01-15 01:05:28Z VZ $
// Copyright: (c) 2005 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -16,8 +16,7 @@
#if wxUSE_DATEPICKCTRL
-#include "wx/control.h" // the base class
-#include "wx/datetime.h"
+#include "wx/datetimectrl.h" // the base class
#define wxDatePickerCtrlNameStr wxT("datectrl")
@@ -46,7 +45,7 @@ enum
// wxDatePickerCtrl: allow the user to enter the date
// ----------------------------------------------------------------------------
-class WXDLLIMPEXP_ADV wxDatePickerCtrlBase : public wxControl
+class WXDLLIMPEXP_ADV wxDatePickerCtrlBase : public wxDateTimePickerCtrl
{
public:
/*
@@ -63,23 +62,26 @@ public:
const wxString& name = wxDatePickerCtrlNameStr);
*/
- // set/get the date
- virtual void SetValue(const wxDateTime& dt) = 0;
- virtual wxDateTime GetValue() const = 0;
+ /*
+ We inherit the methods to set/get the date from the base class.
- // set/get the allowed valid range for the dates, if either/both of them
- // are invalid, there is no corresponding limit and if neither is set
- // GetRange() returns false
+ virtual void SetValue(const wxDateTime& dt) = 0;
+ virtual wxDateTime GetValue() const = 0;
+ */
+
+ // And add methods to set/get the allowed valid range for the dates. If
+ // either/both of them are invalid, there is no corresponding limit and if
+ // neither is set, GetRange() returns false.
virtual void SetRange(const wxDateTime& dt1, const wxDateTime& dt2) = 0;
virtual bool GetRange(wxDateTime *dt1, wxDateTime *dt2) const = 0;
};
-#if defined(__WXPALMOS__)
- #include "wx/palmos/datectrl.h"
+#if defined(__WXMSW__) && !defined(__WXUNIVERSAL__)
+ #include "wx/msw/datectrl.h"
#define wxHAS_NATIVE_DATEPICKCTRL
-#elif defined(__WXMSW__) && !defined(__WXUNIVERSAL__)
- #include "wx/msw/datectrl.h"
+#elif defined(__WXOSX_COCOA__) && !defined(__WXUNIVERSAL__)
+ #include "wx/osx/datectrl.h"
#define wxHAS_NATIVE_DATEPICKCTRL
#else
diff --git a/Externals/wxWidgets3/include/wx/dateevt.h b/Externals/wxWidgets3/include/wx/dateevt.h
index 8833bdd0de..7b10dd63b7 100644
--- a/Externals/wxWidgets3/include/wx/dateevt.h
+++ b/Externals/wxWidgets3/include/wx/dateevt.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 2005-01-10
-// RCS-ID: $Id: dateevt.h 58718 2009-02-07 18:59:25Z VZ $
+// RCS-ID: $Id: dateevt.h 69224 2011-09-29 13:43:15Z VZ $
// Copyright: (c) 2005 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -17,7 +17,7 @@
#include "wx/window.h"
// ----------------------------------------------------------------------------
-// wxDateEvent: used by wxCalendarCtrl and wxDatePickerCtrl
+// wxDateEvent: used by wxCalendarCtrl, wxDatePickerCtrl and wxTimePickerCtrl.
// ----------------------------------------------------------------------------
class WXDLLIMPEXP_ADV wxDateEvent : public wxCommandEvent
@@ -48,6 +48,7 @@ private:
// ----------------------------------------------------------------------------
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_ADV, wxEVT_DATE_CHANGED, wxDateEvent);
+wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_ADV, wxEVT_TIME_CHANGED, wxDateEvent);
typedef void (wxEvtHandler::*wxDateEventFunction)(wxDateEvent&);
@@ -57,5 +58,8 @@ typedef void (wxEvtHandler::*wxDateEventFunction)(wxDateEvent&);
#define EVT_DATE_CHANGED(id, fn) \
wx__DECLARE_EVT1(wxEVT_DATE_CHANGED, id, wxDateEventHandler(fn))
+#define EVT_TIME_CHANGED(id, fn) \
+ wx__DECLARE_EVT1(wxEVT_TIME_CHANGED, id, wxDateEventHandler(fn))
+
#endif // _WX_DATEEVT_H_
diff --git a/Externals/wxWidgets3/include/wx/datetime.h b/Externals/wxWidgets3/include/wx/datetime.h
index 448f6575d1..79cf5f1b7a 100644
--- a/Externals/wxWidgets3/include/wx/datetime.h
+++ b/Externals/wxWidgets3/include/wx/datetime.h
@@ -5,7 +5,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 10.02.99
-// RCS-ID: $Id: datetime.h 67280 2011-03-22 14:17:38Z DS $
+// RCS-ID: $Id: datetime.h 70796 2012-03-04 00:29:31Z VZ $
// Copyright: (c) 1998 Vadim Zeitlin
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -19,7 +19,7 @@
#ifdef __WXWINCE__
#include "wx/msw/wince/time.h"
-#elif !defined(__WXPALMOS5__)
+#else
#include
#endif // OS
@@ -31,7 +31,7 @@
class WXDLLIMPEXP_FWD_BASE wxDateTime;
class WXDLLIMPEXP_FWD_BASE wxTimeSpan;
class WXDLLIMPEXP_FWD_BASE wxDateSpan;
-#ifdef __WXMSW__
+#ifdef __WINDOWS__
struct _SYSTEMTIME;
#endif
@@ -53,27 +53,6 @@ struct _SYSTEMTIME;
* 5. wxDateTimeHolidayAuthority for Easter and other christian feasts
*/
-/* Two wrapper functions for thread safety */
-#ifdef HAVE_LOCALTIME_R
-#define wxLocaltime_r localtime_r
-#else
-WXDLLIMPEXP_BASE struct tm *wxLocaltime_r(const time_t*, struct tm*);
-#if wxUSE_THREADS && !defined(__WINDOWS__) && !defined(__WATCOMC__)
- // On Windows, localtime _is_ threadsafe!
-#warning using pseudo thread-safe wrapper for localtime to emulate localtime_r
-#endif
-#endif
-
-#ifdef HAVE_GMTIME_R
-#define wxGmtime_r gmtime_r
-#else
-WXDLLIMPEXP_BASE struct tm *wxGmtime_r(const time_t*, struct tm*);
-#if wxUSE_THREADS && !defined(__WINDOWS__) && !defined(__WATCOMC__)
- // On Windows, gmtime _is_ threadsafe!
-#warning using pseudo thread-safe wrapper for gmtime to emulate gmtime_r
-#endif
-#endif
-
/*
The three (main) classes declared in this header represent:
@@ -627,7 +606,7 @@ public:
wxDateTime_t minute = 0,
wxDateTime_t second = 0,
wxDateTime_t millisec = 0);
-#ifdef __WXMSW__
+#ifdef __WINDOWS__
wxDateTime(const struct _SYSTEMTIME& st)
{
SetFromMSWSysTime(st);
@@ -949,7 +928,7 @@ public:
// SYSTEMTIME format
// ------------------------------------------------------------------------
-#ifdef __WXMSW__
+#ifdef __WINDOWS__
// convert SYSTEMTIME to wxDateTime
wxDateTime& SetFromMSWSysTime(const struct _SYSTEMTIME& st);
@@ -959,7 +938,7 @@ public:
// same as above but only take date part into account, time is always zero
wxDateTime& SetFromMSWSysDate(const struct _SYSTEMTIME& st);
void GetAsMSWSysDate(struct _SYSTEMTIME* st) const;
-#endif // __WXMSW__
+#endif // __WINDOWS__
// comparison (see also functions below for operator versions)
// ------------------------------------------------------------------------
diff --git a/Externals/wxWidgets3/include/wx/datetimectrl.h b/Externals/wxWidgets3/include/wx/datetimectrl.h
new file mode 100644
index 0000000000..8632d5f12e
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/datetimectrl.h
@@ -0,0 +1,48 @@
+///////////////////////////////////////////////////////////////////////////////
+// Name: wx/timectrl.h
+// Purpose: Declaration of wxDateTimePickerCtrl class.
+// Author: Vadim Zeitlin
+// Created: 2011-09-22
+// RCS-ID: $Id: datetimectrl.h 70071 2011-12-20 21:27:14Z VZ $
+// Copyright: (c) 2011 Vadim Zeitlin
+// Licence: wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_DATETIME_CTRL_H_
+#define _WX_DATETIME_CTRL_H_
+
+#include "wx/defs.h"
+
+#if wxUSE_DATEPICKCTRL || wxUSE_TIMEPICKCTRL
+
+#define wxNEEDS_DATETIMEPICKCTRL
+
+#include "wx/control.h" // the base class
+
+#include "wx/datetime.h"
+
+// ----------------------------------------------------------------------------
+// wxDateTimePickerCtrl: Private common base class of wx{Date,Time}PickerCtrl.
+// ----------------------------------------------------------------------------
+
+// This class is an implementation detail and should not be used directly, only
+// use the documented API of wxDateTimePickerCtrl and wxTimePickerCtrl.
+class WXDLLIMPEXP_ADV wxDateTimePickerCtrlBase : public wxControl
+{
+public:
+ // Set/get the date or time (in the latter case, time part is ignored).
+ virtual void SetValue(const wxDateTime& dt) = 0;
+ virtual wxDateTime GetValue() const = 0;
+};
+
+#if defined(__WXMSW__) && !defined(__WXUNIVERSAL__)
+ #include "wx/msw/datetimectrl.h"
+#elif defined(__WXOSX_COCOA__) && !defined(__WXUNIVERSAL__)
+ #include "wx/osx/datetimectrl.h"
+#else
+ typedef wxDateTimePickerCtrlBase wxDateTimePickerCtrl;
+#endif
+
+#endif // wxUSE_DATEPICKCTRL || wxUSE_TIMEPICKCTRL
+
+#endif // _WX_DATETIME_CTRL_H_
diff --git a/Externals/wxWidgets3/include/wx/dc.h b/Externals/wxWidgets3/include/wx/dc.h
index 974666f5d2..2e66988c37 100644
--- a/Externals/wxWidgets3/include/wx/dc.h
+++ b/Externals/wxWidgets3/include/wx/dc.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 05/25/99
-// RCS-ID: $Id: dc.h 67063 2011-02-27 12:48:13Z VZ $
+// RCS-ID: $Id: dc.h 68935 2011-08-27 23:26:53Z RD $
// Copyright: (c) wxWidgets team
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -30,6 +30,7 @@
#include "wx/math.h"
#include "wx/image.h"
#include "wx/region.h"
+#include "wx/affinematrix2d.h"
#define wxUSE_NEW_DC 1
@@ -42,6 +43,10 @@ class WXDLLIMPEXP_FWD_CORE wxMemoryDC;
class WXDLLIMPEXP_FWD_CORE wxPrinterDC;
class WXDLLIMPEXP_FWD_CORE wxPrintData;
+#if wxUSE_GRAPHICS_CONTEXT
+class WXDLLIMPEXP_FWD_CORE wxGraphicsContext;
+#endif
+
// Logical ops
enum wxRasterOperationMode
{
@@ -470,7 +475,7 @@ public:
}
virtual void SetLogicalScale(double x, double y);
- virtual void GetLogicalScale(double *x, double *y)
+ virtual void GetLogicalScale(double *x, double *y) const
{
if ( x ) *x = m_logicalScaleX;
if ( y ) *y = m_logicalScaleY;
@@ -490,6 +495,20 @@ public:
if ( y ) *y = m_deviceOriginY;
}
+#if wxUSE_DC_TRANSFORM_MATRIX
+ // Transform matrix support is not available in most ports right now
+ // (currently only wxMSW provides it) so do nothing in these methods by
+ // default.
+ virtual bool CanUseTransformMatrix() const
+ { return false; }
+ virtual bool SetTransformMatrix(const wxAffineMatrix2D& WXUNUSED(matrix))
+ { return false; }
+ virtual wxAffineMatrix2D GetTransformMatrix() const
+ { return wxAffineMatrix2D(); }
+ virtual void ResetTransformMatrix()
+ { }
+#endif // wxUSE_DC_TRANSFORM_MATRIX
+
virtual void SetDeviceLocalOrigin( wxCoord x, wxCoord y );
virtual void ComputeScaleAndOrigin();
@@ -497,6 +516,19 @@ public:
// this needs to overidden if the axis is inverted
virtual void SetAxisOrientation(bool xLeftRight, bool yBottomUp);
+#ifdef __WXMSW__
+ // Native Windows functions using the underlying HDC don't honour GDI+
+ // transformations which may be applied to it. Using this function we can
+ // transform the coordinates manually before passing them to such functions
+ // (as in e.g. wxRendererMSW code). It doesn't do anything if this is not a
+ // wxGCDC.
+ virtual wxRect MSWApplyGDIPlusTransform(const wxRect& r) const
+ {
+ return r;
+ }
+#endif // __WXMSW__
+
+
// ---------------------------------------------------------
// the actual drawing API
@@ -612,6 +644,13 @@ public:
virtual int GetResolution() const
{ return -1; }
+#if wxUSE_GRAPHICS_CONTEXT
+ virtual wxGraphicsContext* GetGraphicsContext() const
+ { return NULL; }
+ virtual void SetGraphicsContext( wxGraphicsContext* WXUNUSED(ctx) )
+ {}
+#endif
+
private:
wxDC *m_owner;
@@ -981,7 +1020,7 @@ public:
void SetLogicalScale(double x, double y)
{ m_pimpl->SetLogicalScale( x, y ); }
- void GetLogicalScale(double *x, double *y)
+ void GetLogicalScale(double *x, double *y) const
{ m_pimpl->GetLogicalScale( x, y ); }
void SetLogicalOrigin(wxCoord x, wxCoord y)
@@ -1001,6 +1040,20 @@ public:
void SetAxisOrientation(bool xLeftRight, bool yBottomUp)
{ m_pimpl->SetAxisOrientation(xLeftRight, yBottomUp); }
+#if wxUSE_DC_TRANSFORM_MATRIX
+ bool CanUseTransformMatrix() const
+ { return m_pimpl->CanUseTransformMatrix(); }
+
+ bool SetTransformMatrix(const wxAffineMatrix2D &matrix)
+ { return m_pimpl->SetTransformMatrix(matrix); }
+
+ wxAffineMatrix2D GetTransformMatrix() const
+ { return m_pimpl->GetTransformMatrix(); }
+
+ void ResetTransformMatrix()
+ { m_pimpl->ResetTransformMatrix(); }
+#endif // wxUSE_DC_TRANSFORM_MATRIX
+
// mostly internal
void SetDeviceLocalOrigin( wxCoord x, wxCoord y )
{ m_pimpl->SetDeviceLocalOrigin( x, y ); }
@@ -1287,6 +1340,17 @@ public:
TempHDC GetTempHDC() { return TempHDC(*this); }
#endif // __WXMSW__
+#if wxUSE_GRAPHICS_CONTEXT
+ virtual wxGraphicsContext* GetGraphicsContext() const
+ {
+ return m_pimpl->GetGraphicsContext();
+ }
+ virtual void SetGraphicsContext( wxGraphicsContext* ctx )
+ {
+ m_pimpl->SetGraphicsContext(ctx);
+ }
+#endif
+
protected:
// ctor takes ownership of the pointer
wxDC(wxDCImpl *pimpl) : m_pimpl(pimpl) { }
@@ -1315,13 +1379,13 @@ public:
~wxDCTextColourChanger()
{
- if ( m_colFgOld.Ok() )
+ if ( m_colFgOld.IsOk() )
m_dc.SetTextForeground(m_colFgOld);
}
void Set(const wxColour& col)
{
- if ( !m_colFgOld.Ok() )
+ if ( !m_colFgOld.IsOk() )
m_colFgOld = m_dc.GetTextForeground();
m_dc.SetTextForeground(col);
}
@@ -1349,7 +1413,7 @@ public:
~wxDCPenChanger()
{
- if ( m_penOld.Ok() )
+ if ( m_penOld.IsOk() )
m_dc.SetPen(m_penOld);
}
@@ -1376,7 +1440,7 @@ public:
~wxDCBrushChanger()
{
- if ( m_brushOld.Ok() )
+ if ( m_brushOld.IsOk() )
m_dc.SetBrush(m_brushOld);
}
@@ -1432,14 +1496,14 @@ public:
void Set(const wxFont& font)
{
- if ( !m_fontOld.Ok() )
+ if ( !m_fontOld.IsOk() )
m_fontOld = m_dc.GetFont();
m_dc.SetFont(font);
}
~wxDCFontChanger()
{
- if ( m_fontOld.Ok() )
+ if ( m_fontOld.IsOk() )
m_dc.SetFont(m_fontOld);
}
diff --git a/Externals/wxWidgets3/include/wx/dcgraph.h b/Externals/wxWidgets3/include/wx/dcgraph.h
index 071c1d68b3..b636f239de 100644
--- a/Externals/wxWidgets3/include/wx/dcgraph.h
+++ b/Externals/wxWidgets3/include/wx/dcgraph.h
@@ -5,7 +5,7 @@
// Modified by:
// Created:
// Copyright: (c) Stefan Csomor
-// RCS-ID: $Id: dcgraph.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: dcgraph.h 68935 2011-08-27 23:26:53Z RD $
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -29,10 +29,15 @@ public:
#if wxUSE_PRINTING_ARCHITECTURE
wxGCDC( const wxPrinterDC& dc );
#endif
+#if defined(__WXMSW__) && wxUSE_ENH_METAFILE
+ wxGCDC( const wxEnhMetaFileDC& dc );
+#endif
+ wxGCDC(wxGraphicsContext* context);
+
wxGCDC();
virtual ~wxGCDC();
- wxGraphicsContext* GetGraphicsContext();
+ wxGraphicsContext* GetGraphicsContext() const;
void SetGraphicsContext( wxGraphicsContext* ctx );
#ifdef __WXMSW__
@@ -55,6 +60,9 @@ public:
wxGCDCImpl( wxDC *owner, const wxMemoryDC& dc );
#if wxUSE_PRINTING_ARCHITECTURE
wxGCDCImpl( wxDC *owner, const wxPrinterDC& dc );
+#endif
+#if defined(__WXMSW__) && wxUSE_ENH_METAFILE
+ wxGCDCImpl( wxDC *owner, const wxEnhMetaFileDC& dc );
#endif
wxGCDCImpl( wxDC *owner );
@@ -103,7 +111,7 @@ public:
virtual void ComputeScaleAndOrigin();
- wxGraphicsContext* GetGraphicsContext() { return m_graphicContext; }
+ wxGraphicsContext* GetGraphicsContext() const { return m_graphicContext; }
virtual void SetGraphicsContext( wxGraphicsContext* ctx );
// the true implementations
@@ -193,6 +201,10 @@ public:
virtual bool DoGetPartialTextExtents(const wxString& text, wxArrayInt& widths) const;
+#ifdef __WXMSW__
+ virtual wxRect MSWApplyGDIPlusTransform(const wxRect& r) const;
+#endif // __WXMSW__
+
protected:
// scaling variables
bool m_logicalFunctionSupported;
diff --git a/Externals/wxWidgets3/include/wx/dde.h b/Externals/wxWidgets3/include/wx/dde.h
index a39678c697..1c15a1f3ce 100644
--- a/Externals/wxWidgets3/include/wx/dde.h
+++ b/Externals/wxWidgets3/include/wx/dde.h
@@ -5,7 +5,7 @@
// Modified by:
// Created:
// Copyright: (c) Julian Smart
-// RCS-ID: $Id: dde.h 47254 2007-07-09 10:09:52Z VS $
+// RCS-ID: $Id: dde.h 70808 2012-03-04 20:31:42Z VZ $
// Licence: wxWindows Licence
/////////////////////////////////////////////////////////////////////////////
@@ -22,10 +22,10 @@ WX_DECLARE_USER_EXPORTED_LIST(wxDDEClient, wxDDEClientList, WXDLLIMPEXP_BASE);
WX_DECLARE_USER_EXPORTED_LIST(wxDDEServer, wxDDEServerList, WXDLLIMPEXP_BASE);
WX_DECLARE_USER_EXPORTED_LIST(wxDDEConnection, wxDDEConnectionList, WXDLLIMPEXP_BASE);
-#if defined(__WXMSW__)
+#if defined(__WINDOWS__)
#include "wx/msw/dde.h"
#else
- #error DDE is only supported on MSW
+ #error DDE is only supported under Windows
#endif
#endif
diff --git a/Externals/wxWidgets3/include/wx/debug.h b/Externals/wxWidgets3/include/wx/debug.h
index f66cf4681e..589ae85f67 100644
--- a/Externals/wxWidgets3/include/wx/debug.h
+++ b/Externals/wxWidgets3/include/wx/debug.h
@@ -3,7 +3,7 @@
// Purpose: Misc debug functions and macros
// Author: Vadim Zeitlin
// Created: 29/01/98
-// RCS-ID: $Id: debug.h 67280 2011-03-22 14:17:38Z DS $
+// RCS-ID: $Id: debug.h 70345 2012-01-15 01:05:28Z VZ $
// Copyright: (c) 1998-2009 Vadim Zeitlin
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -11,7 +11,7 @@
#ifndef _WX_DEBUG_H_
#define _WX_DEBUG_H_
-#if !defined(__WXPALMOS5__) && !defined(__WXWINCE__)
+#if !defined(__WXWINCE__)
#include
#endif // systems without assert.h
@@ -162,7 +162,7 @@ inline void wxDisableAsserts() { wxSetAssertHandler(NULL); }
/*
wxOnAssert() is used by the debugging macros defined below. Different
- overloads are needed because these macros can be used with or without _T().
+ overloads are needed because these macros can be used with or without wxT().
All of them are implemented in src/common/appcmn.cpp and unconditionally
call wxTheAssertHandler so the caller must check that it is non-NULL
@@ -172,7 +172,7 @@ inline void wxDisableAsserts() { wxSetAssertHandler(NULL); }
#if wxUSE_UNICODE
// these overloads are the ones typically used by debugging macros: we have to
-// provide wxChar* msg version because it's common to use _T() in the macros
+// provide wxChar* msg version because it's common to use wxT() in the macros
// and finally, we can't use const wx(char)* msg = NULL, because that would
// be ambiguous
//
@@ -299,6 +299,13 @@ extern void WXDLLIMPEXP_BASE wxOnAssert(const char *file,
#define wxASSERT_LEVEL_2(cond)
#endif
+// This is simply a wrapper for the standard abort() which is not available
+// under all platforms.
+//
+// It isn't really debug-related but there doesn't seem to be any better place
+// for it, so declare it here and define it in appbase.cpp, together with
+// wxTrap().
+extern void WXDLLIMPEXP_BASE wxAbort();
/*
wxCHECK macros always check their conditions, setting debug level to 0 only
diff --git a/Externals/wxWidgets3/include/wx/defs.h b/Externals/wxWidgets3/include/wx/defs.h
index 42fa627b78..bb6afaa107 100644
--- a/Externals/wxWidgets3/include/wx/defs.h
+++ b/Externals/wxWidgets3/include/wx/defs.h
@@ -4,7 +4,7 @@
* Author: Julian Smart and others
* Modified by: Ryan Norton (Converted to C)
* Created: 01/02/97
- * RCS-ID: $Id: defs.h 66711 2011-01-19 10:47:49Z VZ $
+ * RCS-ID: $Id: defs.h 70353 2012-01-15 14:46:41Z VZ $
* Copyright: (c) Julian Smart
* Licence: wxWindows licence
*/
@@ -14,8 +14,10 @@
#ifndef _WX_DEFS_H_
#define _WX_DEFS_H_
-// NOTE: this symbol will be replaced with "WXWIN_COMPATIBILITY_3_0" as soon
-// as the development branch for 3.1 is created
+/*
+ NOTE: this symbol will be replaced with "WXWIN_COMPATIBILITY_3_0" as soon
+ as the development branch for 3.1 is created
+ */
#define FUTURE_WXWIN_COMPATIBILITY_3_0 1
#define wxDEPRECATED_FUTURE( x ) x
@@ -29,11 +31,8 @@
/* Make sure the environment is set correctly */
# if defined(__WXMSW__) && defined(__X__)
# error "Target can't be both X and Windows"
-# elif defined(__WXMSW__) && defined(__PALMOS__)
-# error "Target can't be both PalmOS and Windows"
# elif !defined(__WXMOTIF__) && \
!defined(__WXMSW__) && \
- !defined(__WXPALMOS__)&& \
!defined(__WXGTK__) && \
!defined(__WXPM__) && \
!defined(__WXOSX_CARBON__) && \
@@ -41,7 +40,6 @@
!defined(__WXOSX_IPHONE__) && \
!defined(__WXCOCOA__) && \
!defined(__X__) && \
- !defined(__WXMGL__) && \
!defined(__WXDFB__) && \
!defined(__WXX11__) && \
wxUSE_GUI
@@ -79,8 +77,10 @@
# pragma warning(disable:4514) /* unreferenced inline func has been removed */
# pragma warning(disable:4710) /* function not inlined */
- // TODO: this warning should really be enabled as it can be genuinely
- // useful, check where does it occur in wxWidgets
+ /*
+ TODO: this warning should really be enabled as it can be genuinely
+ useful, check where does it occur in wxWidgets
+ */
#pragma warning(disable: 4127) /* conditional expression is constant */
/* There are too many false positivies for this one, particularly when
@@ -89,6 +89,16 @@
class 'bar'" */
# pragma warning(disable:4251)
+ /*
+ This is a similar warning which occurs when deriving from standard
+ containers. MSDN even mentions that it can be ignored in this case
+ (albeit only in debug build while the warning is the same in release
+ too and seems equally harmless).
+ */
+#if wxUSE_STD_CONTAINERS
+# pragma warning(disable:4275)
+#endif /* wxUSE_STD_CONTAINERS */
+
# ifdef __VISUALC5__
/* For VC++ 5.0 for release mode, the warning 'C4702: unreachable code */
/* is buggy, and occurs for code that does actually get executed */
@@ -115,7 +125,7 @@
*/
#ifdef __VISUALC6__
#pragma warning(disable: 4284)
- #endif // VC6
+ #endif /* VC6 */
/*
When compiling with VC++ 7 /Wp64 option we get thousands of warnings for
@@ -388,15 +398,15 @@ typedef short int WXTYPE;
#ifndef HAVE_WOSTREAM
- // Mingw <= 3.4 and all versions of Cygwin as well as any gcc version (so
- // far) targeting PalmOS don't have std::wostream
- #if defined(__PALMOS__) || \
- (defined(__MINGW32__) && !wxCHECK_GCC_VERSION(4, 0)) || \
+ /*
+ Mingw <= 3.4 and all versions of Cygwin don't have std::wostream
+ */
+ #if (defined(__MINGW32__) && !wxCHECK_GCC_VERSION(4, 0)) || \
defined(__CYGWIN__)
#define wxNO_WOSTREAM
#endif
- // VC++ doesn't have it in the old iostream library
+ /* VC++ doesn't have it in the old iostream library */
#if defined(__VISUALC__) && wxUSE_IOSTREAMH
#define wxNO_WOSTREAM
#endif
@@ -408,12 +418,12 @@ typedef short int WXTYPE;
#undef wxNO_WOSTREAM
#endif /* HAVE_WOSTREAM */
-// ----------------------------------------------------------------------------
-// other C++ features
-// ----------------------------------------------------------------------------
+/* ---------------------------------------------------------------------------- */
+/* other C++ features */
+/* ---------------------------------------------------------------------------- */
#ifndef HAVE_PARTIAL_SPECIALIZATION
- // be optimistic by default
+ /* be optimistic by default */
#define HAVE_PARTIAL_SPECIALIZATION
#endif
@@ -421,17 +431,17 @@ typedef short int WXTYPE;
#if __VISUALC__ < 1310
#undef HAVE_PARTIAL_SPECIALIZATION
#endif
-#endif // __VISUALC__
+#endif /* __VISUALC__ */
#ifndef HAVE_TEMPLATE_OVERLOAD_RESOLUTION
- // assume the compiler can use type or const expressions as template
- // arguments if it supports partial specialization -- except if it's a
- // Borland one which can't
+ /* assume the compiler can use type or const expressions as template
+ arguments if it supports partial specialization -- except if it's a
+ Borland one which can't */
#if defined(HAVE_PARTIAL_SPECIALIZATION) && !defined(__BORLANDC__)
#define HAVE_TEMPLATE_OVERLOAD_RESOLUTION
- #endif // __BORLANDC__
-#endif // !defined(HAVE_TEMPLATE_OVERLOAD_RESOLUTION)
+ #endif /* (HAVE_PARTIAL_SPECIALIZATION) && !defined(__BORLANDC__) */
+#endif /* !defined(HAVE_TEMPLATE_OVERLOAD_RESOLUTION) */
/* ---------------------------------------------------------------------------- */
/* portable calling conventions macros */
@@ -513,15 +523,14 @@ typedef short int WXTYPE;
#define wxDEPRECATED(x) x
#endif
-/*
- explicitly specifying inline allows gcc < 3.4 to
- handle the deprecation attribute even in the constructor.
- doesn't seem to work on Apple's gcc 4.0.1 unless using -O0
-*/
-#if wxCHECK_GCC_VERSION(3, 4) || defined( __DARWIN__ )
- #define wxDEPRECATED_CONSTRUCTOR(x) x
-#else
+#if defined(__GNUC__) && !wxCHECK_GCC_VERSION(3, 4)
+ /*
+ We need to add dummy "inline" to allow gcc < 3.4 to handle the
+ deprecation attribute on the constructors.
+ */
#define wxDEPRECATED_CONSTRUCTOR(x) wxDEPRECATED( inline x)
+#else
+ #define wxDEPRECATED_CONSTRUCTOR(x) wxDEPRECATED(x)
#endif
/*
@@ -564,7 +573,7 @@ typedef short int WXTYPE;
/* NULL declaration: it must be defined as 0 for C++ programs (in particular, */
/* it must not be defined as "(void *)0" which is standard for C but completely */
/* breaks C++ code) */
-#if !defined(__HANDHELDPC__) && !defined(__PALMOS__)
+#if !defined(__HANDHELDPC__)
#include
#endif
@@ -767,7 +776,7 @@ enum { wxDefaultCoord = -1 };
/* define fixed length types */
/* ---------------------------------------------------------------------------- */
-#if defined(__WXPALMOS__) || defined(__MINGW32__)
+#if defined(__MINGW32__)
#if !defined(__MWERKS__)
#include
#endif
@@ -819,19 +828,7 @@ typedef wxUint16 wxWord;
*/
/* 32bit */
-#ifdef __PALMOS__
- typedef int wxInt32;
- typedef unsigned int wxUint32;
- #define SIZEOF_INT 4
- #define SIZEOF_LONG 4
- #define SIZEOF_WCHAR_T 2
- #define SIZEOF_SIZE_T 4
- #ifdef __WXPALMOS6__
- #define wxSIZE_T_IS_UINT
- #endif
- #define SIZEOF_VOID_P 4
- #define SIZEOF_SIZE_T 4
-#elif defined(__WINDOWS__)
+#if defined(__WINDOWS__)
#if defined(__WIN32__)
typedef int wxInt32;
typedef unsigned int wxUint32;
@@ -1018,14 +1015,6 @@ typedef wxUint32 wxDword;
#error "The 64 bit integer support in CodeWarrior has been disabled."
#error "See the documentation on the 'longlong' pragma."
#endif
-#elif defined(__WXPALMOS__)
- #if defined(__WXPALMOS6__)
- #define wxLongLong_t int64_t
- #else
- #define wxLongLong_t long long
- #endif /* __WXPALMOS6__ */
- #define wxLongLongSuffix ll
- #define wxLongLongFmtSpec "ll"
#elif defined(__VISAGECPP__) && __IBMCPP__ >= 400
#define wxLongLong_t long long
#elif (defined(SIZEOF_LONG_LONG) && SIZEOF_LONG_LONG >= 8) || \
@@ -1045,16 +1034,7 @@ typedef wxUint32 wxDword;
#ifdef wxLongLong_t
-
- #ifdef __WXPALMOS__
- #if defined(__WXPALMOS6__)
- #define wxULongLong_t uint64_t
- #else
- #define wxULongLong_t unsigned long long
- #endif /* __WXPALMOS6__ */
- #else
- #define wxULongLong_t unsigned wxLongLong_t
- #endif
+ #define wxULongLong_t unsigned wxLongLong_t
/*
wxLL() and wxULL() macros allow to define 64 bit constants in a
@@ -1064,8 +1044,10 @@ typedef wxUint32 wxDword;
#define wxLL(x) wxCONCAT(x, wxLongLongSuffix)
#define wxULL(x) wxCONCAT(x, wxCONCAT(u, wxLongLongSuffix))
#else
- // Currently only Borland compiler has broken concatenation operator
- // and this compiler is known to use [u]i64 suffix.
+ /*
+ Currently only Borland compiler has broken concatenation operator
+ and this compiler is known to use [u]i64 suffix.
+ */
#define wxLL(x) wxAPPEND_i64(x)
#define wxULL(x) wxAPPEND_ui64(x)
#endif
@@ -1102,8 +1084,6 @@ typedef wxUint32 wxDword;
#if defined(_SSIZE_T_) || defined(_SSIZE_T_DEFINED)
#define HAVE_SSIZE_T
#endif
-#elif defined(__PALMOS__)
- #define HAVE_SSIZE_T
#elif wxCHECK_WATCOM_VERSION(1,4)
#define HAVE_SSIZE_T
#endif
@@ -1114,7 +1094,7 @@ typedef wxUint32 wxDword;
#ifdef __UNIX__
#include
#endif
-#else // !HAVE_SSIZE_T
+#else /* !HAVE_SSIZE_T */
#if SIZEOF_SIZE_T == 4
typedef wxInt32 ssize_t;
#elif SIZEOF_SIZE_T == 8
@@ -1127,11 +1107,13 @@ typedef wxUint32 wxDword;
#define HAVE_SSIZE_T
#endif
-// we can't rely on Windows _W64 being defined as windows.h may not be included
-// so define our own equivalent: this should be used with types like WXLPARAM
-// or WXWPARAM which are 64 bit under Win64 to avoid warnings each time we cast
-// it to a pointer or a handle (which results in hundreds of warnings as Win32
-// API often passes pointers in them)
+/*
+ We can't rely on Windows _W64 being defined as windows.h may not be
+ included so define our own equivalent: this should be used with types
+ like WXLPARAM or WXWPARAM which are 64 bit under Win64 to avoid warnings
+ each time we cast it to a pointer or a handle (which results in hundreds
+ of warnings as Win32 API often passes pointers in them)
+ */
#if wxCHECK_VISUALC_VERSION(7)
#define wxW64 __w64
#else
@@ -1142,7 +1124,13 @@ typedef wxUint32 wxDword;
Define signed and unsigned integral types big enough to contain all of long,
size_t and void *.
*/
-#if SIZEOF_SIZE_T >= SIZEOF_VOID_P
+#if SIZEOF_LONG >= SIZEOF_VOID_P
+ /*
+ Normal case when long is the largest integral type.
+ */
+ typedef long wxIntPtr;
+ typedef unsigned long wxUIntPtr;
+#elif SIZEOF_SIZE_T >= SIZEOF_VOID_P
/*
Win64 case: size_t is the only integral type big enough for "void *".
@@ -1152,12 +1140,6 @@ typedef wxUint32 wxDword;
*/
typedef wxW64 ssize_t wxIntPtr;
typedef size_t wxUIntPtr;
-#elif SIZEOF_LONG >= SIZEOF_VOID_P
- /*
- Normal case when long is the largest integral type.
- */
- typedef long wxIntPtr;
- typedef unsigned long wxUIntPtr;
#else
/*
This should never happen for the current architectures but if you're
@@ -1447,12 +1429,12 @@ typedef double wxDouble;
/* ---------------------------------------------------------------------------- */
#if defined(__GNUC__) && !wxCHECK_GCC_VERSION( 3, 4 )
- // GCC <= 3.4 has buggy template support
+ /* GCC <= 3.4 has buggy template support */
# define wxUSE_MEMBER_TEMPLATES 0
#endif
#if defined(_MSC_VER) && _MSC_VER <= 1200
- // MSVC <= 6.0 has buggy template support
+ /* MSVC <= 6.0 has buggy template support */
# define wxUSE_MEMBER_TEMPLATES 0
# define wxUSE_FUNC_TEMPLATE_POINTER 0
#endif
@@ -1532,9 +1514,11 @@ enum wxDirection
enum wxAlignment
{
- // 0 is a valid wxAlignment value (both wxALIGN_LEFT and wxALIGN_TOP use
- // it) so define a symbolic name for an invalid alignment value which can
- // be assumed to be different from anything else
+ /*
+ 0 is a valid wxAlignment value (both wxALIGN_LEFT and wxALIGN_TOP
+ use it) so define a symbolic name for an invalid alignment value
+ which can be assumed to be different from anything else
+ */
wxALIGN_INVALID = -1,
wxALIGN_NOT = 0x0000,
@@ -1557,10 +1541,12 @@ enum wxAlignment
/* misc. flags for wxSizer items */
enum wxSizerFlagBits
{
- // wxADJUST_MINSIZE doesn't do anything any more but we still define it for
- // compatibility. Notice that it may be also predefined (as 0, hopefully)
- // in the user code in order to use it even in !WXWIN_COMPATIBILITY_2_8
- // builds so don't redefine it in such case.
+ /*
+ wxADJUST_MINSIZE doesn't do anything any more but we still define
+ it for compatibility. Notice that it may be also predefined (as 0,
+ hopefully) in the user code in order to use it even in
+ !WXWIN_COMPATIBILITY_2_8 builds so don't redefine it in such case.
+ */
#if WXWIN_COMPATIBILITY_2_8 && !defined(wxADJUST_MINSIZE)
wxADJUST_MINSIZE = 0,
#endif
@@ -1848,14 +1834,12 @@ enum wxBorder
/* Old names for compatibility */
#define wxRA_HORIZONTAL wxHORIZONTAL
#define wxRA_VERTICAL wxVERTICAL
-#define wxRA_USE_CHECKBOX 0x0010 /* alternative native subcontrols (wxPalmOS) */
/*
* wxRadioButton style flag
*/
#define wxRB_GROUP 0x0004
#define wxRB_SINGLE 0x0008
-#define wxRB_USE_CHECKBOX 0x0010 /* alternative native control (wxPalmOS) */
/*
* wxScrollBar flags
@@ -1929,12 +1913,12 @@ enum wxBorder
#define wxICON_STOP wxICON_HAND
#define wxICON_ASTERISK wxICON_INFORMATION
-#define wxFORWARD 0x00001000
-#define wxBACKWARD 0x00002000
-#define wxRESET 0x00004000
-#define wxHELP 0x00008000
-#define wxMORE 0x00010000
-#define wxSETUP 0x00020000
+#define wxHELP 0x00001000
+#define wxFORWARD 0x00002000
+#define wxBACKWARD 0x00004000
+#define wxRESET 0x00008000
+#define wxMORE 0x00010000
+#define wxSETUP 0x00020000
#define wxICON_NONE 0x00040000
#define wxICON_MASK \
@@ -1945,29 +1929,37 @@ enum wxBorder
*/
enum wxBackgroundStyle
{
- // background is erased in the EVT_ERASE_BACKGROUND handler or using the
- // system default background if no such handler is defined (this is the
- // default style)
+ /*
+ background is erased in the EVT_ERASE_BACKGROUND handler or using
+ the system default background if no such handler is defined (this
+ is the default style)
+ */
wxBG_STYLE_ERASE,
- // background is erased by the system, no EVT_ERASE_BACKGROUND event is
- // generated at all
+ /*
+ background is erased by the system, no EVT_ERASE_BACKGROUND event
+ is generated at all
+ */
wxBG_STYLE_SYSTEM,
- // background is erased in EVT_PAINT handler and not erased at all before
- // it, this should be used if the paint handler paints over the entire
- // window to avoid flicker
+ /*
+ background is erased in EVT_PAINT handler and not erased at all
+ before it, this should be used if the paint handler paints over
+ the entire window to avoid flicker
+ */
wxBG_STYLE_PAINT,
- // this is a Mac-only style, don't use in portable code
+ /* this is a Mac-only style, don't use in portable code */
wxBG_STYLE_TRANSPARENT,
- // this style is deprecated and doesn't do anything, don't use
+ /* this style is deprecated and doesn't do anything, don't use */
wxBG_STYLE_COLOUR,
- // this style is deprecated and is synonymous with wxBG_STYLE_PAINT, use
- // the new name
+ /*
+ this style is deprecated and is synonymous with
+ wxBG_STYLE_PAINT, use the new name
+ */
wxBG_STYLE_CUSTOM = wxBG_STYLE_PAINT
};
@@ -2203,6 +2195,18 @@ enum wxItemKind
wxITEM_MAX
};
+/*
+ * The possible states of a 3-state checkbox (Compatible
+ * with the 2-state checkbox).
+ */
+enum wxCheckBoxState
+{
+ wxCHK_UNCHECKED,
+ wxCHK_CHECKED,
+ wxCHK_UNDETERMINED /* 3-state checkbox only */
+};
+
+
/* hit test results */
enum wxHitTest
{
@@ -2297,7 +2301,7 @@ enum wxDeprecatedGUIConstants
wxTRANSPARENT,
/* Brush & Pen Stippling. Note that a stippled pen cannot be dashed!! */
- /* Note also that stippling a Pen IS meaningfull, because a Line is */
+ /* Note also that stippling a Pen IS meaningful, because a Line is */
wxSTIPPLE_MASK_OPAQUE, /* mask is used for blitting monochrome using text fore and back ground colors */
wxSTIPPLE_MASK, /* mask is used for masking areas in the stipple bitmap (TO DO) */
/* drawn with a Pen, and without any Brush -- and it can be stippled. */
@@ -2354,7 +2358,34 @@ enum wxKeyCode
{
WXK_NONE = 0,
- WXK_BACK = 8, // backspace
+ WXK_CONTROL_A = 1,
+ WXK_CONTROL_B,
+ WXK_CONTROL_C,
+ WXK_CONTROL_D,
+ WXK_CONTROL_E,
+ WXK_CONTROL_F,
+ WXK_CONTROL_G,
+ WXK_CONTROL_H,
+ WXK_CONTROL_I,
+ WXK_CONTROL_J,
+ WXK_CONTROL_K,
+ WXK_CONTROL_L,
+ WXK_CONTROL_M,
+ WXK_CONTROL_N,
+ WXK_CONTROL_O,
+ WXK_CONTROL_P,
+ WXK_CONTROL_Q,
+ WXK_CONTROL_R,
+ WXK_CONTROL_S,
+ WXK_CONTROL_T,
+ WXK_CONTROL_U,
+ WXK_CONTROL_V,
+ WXK_CONTROL_W,
+ WXK_CONTROL_X,
+ WXK_CONTROL_Y,
+ WXK_CONTROL_Z,
+
+ WXK_BACK = 8, /* backspace */
WXK_TAB = 9,
WXK_RETURN = 13,
WXK_ESCAPE = 27,
@@ -2477,7 +2508,12 @@ enum wxKeyCode
WXK_WINDOWS_LEFT,
WXK_WINDOWS_RIGHT,
WXK_WINDOWS_MENU ,
- WXK_COMMAND,
+#ifdef __WXOSX__
+ WXK_RAW_CONTROL,
+#else
+ WXK_RAW_CONTROL = WXK_CONTROL,
+#endif
+ WXK_COMMAND = WXK_CONTROL,
/* Hardware-specific buttons */
WXK_SPECIAL1 = 193,
@@ -2513,10 +2549,11 @@ enum wxKeyModifier
wxMOD_META = 0x0008,
wxMOD_WIN = wxMOD_META,
#if defined(__WXMAC__) || defined(__WXCOCOA__)
- wxMOD_CMD = wxMOD_META,
+ wxMOD_RAW_CONTROL = 0x0010,
#else
- wxMOD_CMD = wxMOD_CONTROL,
+ wxMOD_RAW_CONTROL = wxMOD_CONTROL,
#endif
+ wxMOD_CMD = wxMOD_CONTROL,
wxMOD_ALL = 0xffff
};
@@ -2733,7 +2770,7 @@ typedef int (* LINKAGEMODE wxListIterateFunction)(void *current);
#endif
#if defined(__CYGWIN__) && defined(__WXMSW__)
-# if wxUSE_STL || defined(wxUSE_STD_STRING)
+# if wxUSE_STD_CONTAINERS || defined(wxUSE_STD_STRING)
/*
NASTY HACK because the gethostname in sys/unistd.h which the gnu
stl includes and wx builds with by default clash with each other
@@ -2786,7 +2823,7 @@ typedef void* WXDisplay;
typedef const void * CFTypeRef;
-// typedef const struct __CFString * CFStringRef;
+/* typedef const struct __CFString * CFStringRef; */
#define DECLARE_WXOSX_OPAQUE_CFREF( name ) typedef struct __##name* name##Ref;
#define DECLARE_WXOSX_OPAQUE_CONST_CFREF( name ) typedef const struct __##name* name##Ref;
@@ -2964,42 +3001,7 @@ typedef WX_NSString* WXGLPixelFormat;
#endif
-#endif // __WXMAC__
-
-#if defined(__WXPALMOS__)
-
-typedef void * WXHWND;
-typedef void * WXHANDLE;
-typedef void * WXHICON;
-typedef void * WXHFONT;
-typedef void * WXHMENU;
-typedef void * WXHPEN;
-typedef void * WXHBRUSH;
-typedef void * WXHPALETTE;
-typedef void * WXHCURSOR;
-typedef void * WXHRGN;
-typedef void * WXHACCEL;
-typedef void * WXHINSTANCE;
-typedef void * WXHBITMAP;
-typedef void * WXHIMAGELIST;
-typedef void * WXHGLOBAL;
-typedef void * WXHDC;
-typedef unsigned int WXUINT;
-typedef unsigned long WXDWORD;
-typedef unsigned short WXWORD;
-
-typedef unsigned long WXCOLORREF;
-typedef struct tagMSG WXMSG;
-
-typedef WXHWND WXWINHANDLE; /* WinHandle of PalmOS */
-typedef WXWINHANDLE WXWidget;
-
-typedef void * WXFORMPTR;
-typedef void * WXEVENTPTR;
-typedef void * WXRECTANGLEPTR;
-
-#endif /* __WXPALMOS__ */
-
+#endif /* __WXMAC__ */
/* ABX: check __WIN32__ instead of __WXMSW__ for the same MSWBase in any Win32 port */
#if defined(__WIN32__)
@@ -3208,53 +3210,45 @@ typedef long WXPixel; /* safety catch in src/motif/colour.cpp */
#ifdef __WXGTK__
/* Stand-ins for GLIB types */
-typedef char gchar;
-typedef signed char gint8;
-typedef int gint;
-typedef unsigned guint;
-typedef unsigned long gulong;
-typedef void* gpointer;
typedef struct _GSList GSList;
/* Stand-ins for GDK types */
typedef struct _GdkColor GdkColor;
-typedef struct _GdkColormap GdkColormap;
-typedef struct _GdkFont GdkFont;
-typedef struct _GdkGC GdkGC;
-typedef struct _GdkVisual GdkVisual;
-
-#ifdef __WXGTK20__
-typedef struct _GdkAtom *GdkAtom;
-typedef struct _GdkDrawable GdkWindow;
-typedef struct _GdkDrawable GdkBitmap;
-typedef struct _GdkDrawable GdkPixmap;
-#else /* GTK+ 1.2 */
-typedef gulong GdkAtom;
-typedef struct _GdkWindow GdkWindow;
-typedef struct _GdkWindow GdkBitmap;
-typedef struct _GdkWindow GdkPixmap;
-#endif /* GTK+ 1.2/2.0 */
-
typedef struct _GdkCursor GdkCursor;
-typedef struct _GdkRegion GdkRegion;
typedef struct _GdkDragContext GdkDragContext;
-#ifdef HAVE_XIM
-typedef struct _GdkIC GdkIC;
-typedef struct _GdkICAttr GdkICAttr;
+#if defined(__WXGTK20__)
+ typedef struct _GdkAtom* GdkAtom;
+#else
+ typedef unsigned long GdkAtom;
+#endif
+
+#if !defined(__WXGTK30__)
+ typedef struct _GdkColormap GdkColormap;
+ typedef struct _GdkFont GdkFont;
+ typedef struct _GdkGC GdkGC;
+ typedef struct _GdkRegion GdkRegion;
+#endif
+
+#if defined(__WXGTK30__)
+ typedef struct _GdkWindow GdkWindow;
+#elif defined(__WXGTK20__)
+ typedef struct _GdkDrawable GdkWindow;
+ typedef struct _GdkDrawable GdkPixmap;
+#else
+ typedef struct _GdkWindow GdkWindow;
+ typedef struct _GdkWindow GdkBitmap;
+ typedef struct _GdkWindow GdkPixmap;
#endif
/* Stand-ins for GTK types */
typedef struct _GtkWidget GtkWidget;
typedef struct _GtkRcStyle GtkRcStyle;
typedef struct _GtkAdjustment GtkAdjustment;
-typedef struct _GtkList GtkList;
typedef struct _GtkToolbar GtkToolbar;
-typedef struct _GtkTooltips GtkTooltips;
typedef struct _GtkNotebook GtkNotebook;
typedef struct _GtkNotebookPage GtkNotebookPage;
typedef struct _GtkAccelGroup GtkAccelGroup;
-typedef struct _GtkItemFactory GtkItemFactory;
typedef struct _GtkSelectionData GtkSelectionData;
typedef struct _GtkTextBuffer GtkTextBuffer;
typedef struct _GtkRange GtkRange;
@@ -3282,10 +3276,6 @@ typedef struct _PangoLayout PangoLayout;
typedef struct _PangoFontDescription PangoFontDescription;
#endif
-#ifdef __WXMGL__
-typedef struct window_t *WXWidget;
-#endif /* MGL */
-
#ifdef __WXDFB__
/* DirectFB doesn't have the concept of non-TLW window, so use
something arbitrary */
@@ -3328,7 +3318,7 @@ typedef const void* WXWidget;
private: \
classname& operator=(const classname&)
-// deprecated variants _not_ requiring a semicolon after them
+/* deprecated variants _not_ requiring a semicolon after them */
#define DECLARE_NO_COPY_CLASS(classname) \
wxDECLARE_NO_COPY_CLASS(classname);
#define DECLARE_NO_COPY_TEMPLATE_CLASS(classname, arg) \
diff --git a/Externals/wxWidgets3/include/wx/dialog.h b/Externals/wxWidgets3/include/wx/dialog.h
index 67191522a6..3ce0c53ccc 100644
--- a/Externals/wxWidgets3/include/wx/dialog.h
+++ b/Externals/wxWidgets3/include/wx/dialog.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 29.06.99
-// RCS-ID: $Id: dialog.h 66087 2010-11-10 13:51:57Z VZ $
+// RCS-ID: $Id: dialog.h 70345 2012-01-15 01:05:28Z VZ $
// Copyright: (c) Vadim Zeitlin
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ class wxTextSizerWrapper;
// Also see the bit summary table in wx/toplevel.h.
-#define wxDIALOG_NO_PARENT 0x0100 // Don't make owned by apps top window
+#define wxDIALOG_NO_PARENT 0x00000020 // Don't make owned by apps top window
#ifdef __WXWINCE__
#define wxDEFAULT_DIALOG_STYLE (wxCAPTION | wxMAXIMIZE | wxCLOSE_BOX | wxNO_BORDER)
@@ -350,9 +350,7 @@ public:
#if defined(__WXUNIVERSAL__) && !defined(__WXMICROWIN__)
#include "wx/univ/dialog.h"
#else
- #if defined(__WXPALMOS__)
- #include "wx/palmos/dialog.h"
- #elif defined(__WXMSW__)
+ #if defined(__WXMSW__)
#include "wx/msw/dialog.h"
#elif defined(__WXMOTIF__)
#include "wx/motif/dialog.h"
@@ -394,5 +392,8 @@ typedef void (wxEvtHandler::*wxWindowModalDialogEventFunction)(wxWindowModalDial
#define wxWindowModalDialogEventHandler(func) \
wxEVENT_HANDLER_CAST(wxWindowModalDialogEventFunction, func)
+#define EVT_WINDOW_MODAL_DIALOG_CLOSED(winid, func) \
+ wx__DECLARE_EVT1(wxEVT_WINDOW_MODAL_DIALOG_CLOSED, winid, wxWindowModalDialogEventHandler(func))
+
#endif
// _WX_DIALOG_H_BASE_
diff --git a/Externals/wxWidgets3/include/wx/dialup.h b/Externals/wxWidgets3/include/wx/dialup.h
index f52303f2b0..ba591ebe71 100644
--- a/Externals/wxWidgets3/include/wx/dialup.h
+++ b/Externals/wxWidgets3/include/wx/dialup.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 07.07.99
-// RCS-ID: $Id: dialup.h 58757 2009-02-08 11:45:59Z VZ $
+// RCS-ID: $Id: dialup.h 67384 2011-04-03 20:31:32Z DS $
// Copyright: (c) Vadim Zeitlin
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -171,7 +171,7 @@ public:
bool IsConnectedEvent() const
{ return GetEventType() == wxEVT_DIALUP_CONNECTED; }
- // does this event come from wxDialUpManager::Dial() or from some extrenal
+ // does this event come from wxDialUpManager::Dial() or from some external
// process (i.e. does it result from our own attempt to establish the
// connection)?
bool IsOwnEvent() const { return m_id != 0; }
diff --git a/Externals/wxWidgets3/include/wx/dirdlg.h b/Externals/wxWidgets3/include/wx/dirdlg.h
index 49f6d9630e..16f7beef5d 100644
--- a/Externals/wxWidgets3/include/wx/dirdlg.h
+++ b/Externals/wxWidgets3/include/wx/dirdlg.h
@@ -5,7 +5,7 @@
// Modified by:
// Created:
// Copyright: (c) Robert Roebling
-// RCS-ID: $Id: dirdlg.h 54125 2008-06-11 19:17:41Z SC $
+// RCS-ID: $Id: dirdlg.h 70353 2012-01-15 14:46:41Z VZ $
// Licence: wxWindows Licence
/////////////////////////////////////////////////////////////////////////////
@@ -116,9 +116,7 @@ protected:
#include "wx/cocoa/dirdlg.h" // Native Cocoa
#elif defined(__WXMOTIF__) || \
defined(__WXX11__) || \
- defined(__WXMGL__) || \
defined(__WXCOCOA__) || \
- defined(__WXPALMOS__) || \
defined(__WXPM__)
#include "wx/generic/dirdlgg.h" // Other ports use generic implementation
#define wxDirDialog wxGenericDirDialog
diff --git a/Externals/wxWidgets3/include/wx/dlimpexp.h b/Externals/wxWidgets3/include/wx/dlimpexp.h
index 9efcf5328a..1042938b40 100644
--- a/Externals/wxWidgets3/include/wx/dlimpexp.h
+++ b/Externals/wxWidgets3/include/wx/dlimpexp.h
@@ -4,7 +4,7 @@
* Author: Vadim Zeitlin
* Modified by:
* Created: 16.10.2003 (extracted from wx/defs.h)
- * RCS-ID: $Id: dlimpexp.h 61944 2009-09-16 12:06:02Z PJC $
+ * RCS-ID: $Id: dlimpexp.h 69049 2011-09-10 18:09:12Z SJL $
* Copyright: (c) 2003 Vadim Zeitlin
* Licence: wxWindows licence
*/
@@ -22,14 +22,25 @@
#elif defined(__WINDOWS__)
/*
__declspec works in BC++ 5 and later, Watcom C++ 11.0 and later as well
- as VC++ and gcc
+ as VC++.
*/
-# if defined(__VISUALC__) || defined(__BORLANDC__) || defined(__GNUC__) || defined(__WATCOMC__)
+# if defined(__VISUALC__) || defined(__BORLANDC__) || defined(__WATCOMC__)
# define WXEXPORT __declspec(dllexport)
# define WXIMPORT __declspec(dllimport)
-# else /* compiler doesn't support __declspec() */
-# define WXEXPORT
-# define WXIMPORT
+ /*
+ While gcc also supports __declspec(dllexport), it creates unusably huge
+ DLL files since gcc 4.5 (while taking horribly long amounts of time),
+ see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43601. Because of this
+ we rely on binutils auto export/import support which seems to work
+ quite well for 4.5+.
+ */
+# elif defined(__GNUC__) && !wxCHECK_GCC_VERSION(4, 5)
+ /*
+ __declspec could be used here too but let's use the native
+ __attribute__ instead for clarity.
+ */
+# define WXEXPORT __attribute__((dllexport))
+# define WXIMPORT __attribute__((dllimport))
# endif
#elif defined(__WXPM__)
# if defined (__WATCOMC__)
@@ -91,6 +102,7 @@
# define WXMAKINGDLL_RICHTEXT
# define WXMAKINGDLL_MEDIA
# define WXMAKINGDLL_STC
+# define WXMAKINGDLL_WEBVIEW
#endif /* WXMAKINGDLL */
/*
@@ -263,6 +275,17 @@
# define WXDLLIMPEXP_DATA_STC(type) type
#endif
+#ifdef WXMAKINGDLL_WEBVIEW
+# define WXDLLIMPEXP_WEBVIEW WXEXPORT
+# define WXDLLIMPEXP_DATA_WEBVIEW(type) WXEXPORT type
+#elif defined(WXUSINGDLL)
+# define WXDLLIMPEXP_WEBVIEW WXIMPORT
+# define WXDLLIMPEXP_DATA_WEBVIEW(type) WXIMPORT type
+#else /* not making nor using DLL */
+# define WXDLLIMPEXP_WEBVIEW
+# define WXDLLIMPEXP_DATA_WEBVIEW(type) type
+#endif
+
/*
GCC warns about using __attribute__ (and also __declspec in mingw32 case) on
forward declarations while MSVC complains about forward declarations without
@@ -284,6 +307,7 @@
#define WXDLLIMPEXP_FWD_RICHTEXT
#define WXDLLIMPEXP_FWD_MEDIA
#define WXDLLIMPEXP_FWD_STC
+ #define WXDLLIMPEXP_FWD_WEBVIEW
#else
#define WXDLLIMPEXP_FWD_BASE WXDLLIMPEXP_BASE
#define WXDLLIMPEXP_FWD_NET WXDLLIMPEXP_NET
@@ -299,6 +323,7 @@
#define WXDLLIMPEXP_FWD_RICHTEXT WXDLLIMPEXP_RICHTEXT
#define WXDLLIMPEXP_FWD_MEDIA WXDLLIMPEXP_MEDIA
#define WXDLLIMPEXP_FWD_STC WXDLLIMPEXP_STC
+ #define WXDLLIMPEXP_FWD_WEBVIEW WXDLLIMPEXP_WEBVIEW
#endif
/* for backwards compatibility, define suffix-less versions too */
diff --git a/Externals/wxWidgets3/include/wx/dlist.h b/Externals/wxWidgets3/include/wx/dlist.h
index 164ed8680a..b69f617d9b 100644
--- a/Externals/wxWidgets3/include/wx/dlist.h
+++ b/Externals/wxWidgets3/include/wx/dlist.h
@@ -13,7 +13,7 @@
#include "wx/defs.h"
#include "wx/utils.h"
-#if wxUSE_STL
+#if wxUSE_STD_CONTAINERS
#include "wx/beforestd.h"
#include
@@ -199,7 +199,7 @@ public:
}
};
-#else // STL
+#else // !wxUSE_STD_CONTAINERS
template
class wxDList
@@ -845,6 +845,6 @@ public:
} */
};
-#endif // wxUSE_STL/!wxUSE_STL
+#endif // wxUSE_STD_CONTAINERS/!wxUSE_STD_CONTAINERS
#endif // _WX_DLIST_H_
diff --git a/Externals/wxWidgets3/include/wx/docview.h b/Externals/wxWidgets3/include/wx/docview.h
index 3f48964a03..e15414e65f 100644
--- a/Externals/wxWidgets3/include/wx/docview.h
+++ b/Externals/wxWidgets3/include/wx/docview.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
-// RCS-ID: $Id: docview.h 67280 2011-03-22 14:17:38Z DS $
+// RCS-ID: $Id: docview.h 70098 2011-12-23 05:59:59Z PC $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -17,6 +17,7 @@
#if wxUSE_DOC_VIEW_ARCHITECTURE
#include "wx/list.h"
+#include "wx/dlist.h"
#include "wx/string.h"
#include "wx/frame.h"
#include "wx/filehistory.h"
@@ -172,6 +173,10 @@ public:
// dialogs. Override if necessary.
virtual wxWindow *GetDocumentWindow() const;
+ // Returns true if this document is a child document corresponding to a
+ // part of the parent document and not a disk file as usual.
+ bool IsChildDocument() const { return m_documentParent != NULL; }
+
protected:
wxList m_documentViews;
wxString m_documentFile;
@@ -179,7 +184,12 @@ protected:
wxString m_documentTypeName;
wxDocTemplate* m_documentTemplate;
bool m_documentModified;
+
+ // if the document parent is non-NULL, it's a pseudo-document corresponding
+ // to a part of the parent document which can't be saved or loaded
+ // independently of its parent and is always closed when its parent is
wxDocument* m_documentParent;
+
wxCommandProcessor* m_commandProcessor;
bool m_savedYet;
@@ -193,6 +203,10 @@ protected:
wxString DoGetUserReadableName() const;
private:
+ // list of all documents whose m_documentParent is this one
+ typedef wxDList DocsList;
+ DocsList m_childDocuments;
+
DECLARE_ABSTRACT_CLASS(wxDocument)
wxDECLARE_NO_COPY_CLASS(wxDocument);
};
@@ -386,6 +400,7 @@ public:
void OnUpdateFileRevert(wxUpdateUIEvent& event);
void OnUpdateFileNew(wxUpdateUIEvent& event);
void OnUpdateFileSave(wxUpdateUIEvent& event);
+ void OnUpdateFileSaveAs(wxUpdateUIEvent& event);
void OnUpdateUndo(wxUpdateUIEvent& event);
void OnUpdateRedo(wxUpdateUIEvent& event);
@@ -474,6 +489,13 @@ public:
// Get the current document manager
static wxDocManager* GetDocumentManager() { return sm_docManager; }
+#if wxUSE_PRINTING_ARCHITECTURE
+ wxPageSetupDialogData& GetPageSetupDialogData()
+ { return m_pageSetupDialogData; }
+ const wxPageSetupDialogData& GetPageSetupDialogData() const
+ { return m_pageSetupDialogData; }
+#endif // wxUSE_PRINTING_ARCHITECTURE
+
#if WXWIN_COMPATIBILITY_2_8
// deprecated, override GetDefaultName() instead
wxDEPRECATED_BUT_USED_INTERNALLY(
@@ -488,6 +510,11 @@ public:
protected:
+ // Called when a file selected from the MRU list doesn't exist any more.
+ // The default behaviour is to remove the file from the MRU and notify the
+ // user about it but this method can be overridden to customize it.
+ virtual void OnMRUFileNotExist(unsigned n, const wxString& filename);
+
// Open the MRU file with the given index in our associated file history.
void DoOpenMRUFile(unsigned n);
#if wxUSE_PRINTING_ARCHITECTURE
@@ -959,7 +986,7 @@ wxTransferStreamToFile(wxInputStream& stream, const wxString& filename);
// these flags are not used anywhere by wxWidgets and kept only for an unlikely
// case of existing user code using them for its own purposes
-#ifdef WXWIN_COMPATIBILITY_2_8
+#if WXWIN_COMPATIBILITY_2_8
enum
{
wxDOC_SDI = 1,
diff --git a/Externals/wxWidgets3/include/wx/dvrenderers.h b/Externals/wxWidgets3/include/wx/dvrenderers.h
index 64054732ef..7c372739b8 100644
--- a/Externals/wxWidgets3/include/wx/dvrenderers.h
+++ b/Externals/wxWidgets3/include/wx/dvrenderers.h
@@ -3,7 +3,7 @@
// Purpose: Declare all wxDataViewCtrl classes
// Author: Robert Roebling, Vadim Zeitlin
// Created: 2009-11-08 (extracted from wx/dataview.h)
-// RCS-ID: $Id: dvrenderers.h 67099 2011-03-01 12:16:49Z VS $
+// RCS-ID: $Id: dvrenderers.h 70050 2011-12-19 12:54:38Z VZ $
// Copyright: (c) 2006 Robert Roebling
// (c) 2009 Vadim Zeitlin
// Licence: wxWindows licence
@@ -54,6 +54,21 @@ public:
void SetIcon( const wxIcon &icon ) { m_icon = icon; }
const wxIcon &GetIcon() const { return m_icon; }
+ bool IsSameAs(const wxDataViewIconText& other) const
+ {
+ return m_text == other.m_text && m_icon.IsSameAs(other.m_icon);
+ }
+
+ bool operator==(const wxDataViewIconText& other) const
+ {
+ return IsSameAs(other);
+ }
+
+ bool operator!=(const wxDataViewIconText& other) const
+ {
+ return !IsSameAs(other);
+ }
+
private:
wxString m_text;
wxIcon m_icon;
@@ -61,19 +76,6 @@ private:
DECLARE_DYNAMIC_CLASS(wxDataViewIconText)
};
-inline
-bool operator==(const wxDataViewIconText& left, const wxDataViewIconText& right)
-{
- return left.GetText() == right.GetText() &&
- left.GetIcon().IsSameAs(right.GetIcon());
-}
-
-inline
-bool operator!=(const wxDataViewIconText& left, const wxDataViewIconText& right)
-{
- return !(left == right);
-}
-
DECLARE_VARIANT_OBJECT_EXPORTED(wxDataViewIconText, WXDLLIMPEXP_ADV)
// ----------------------------------------------------------------------------
@@ -145,11 +147,11 @@ public:
// in-place editing
virtual bool HasEditorCtrl() const
{ return false; }
- virtual wxControl* CreateEditorCtrl(wxWindow * WXUNUSED(parent),
- wxRect WXUNUSED(labelRect),
- const wxVariant& WXUNUSED(value))
+ virtual wxWindow* CreateEditorCtrl(wxWindow * WXUNUSED(parent),
+ wxRect WXUNUSED(labelRect),
+ const wxVariant& WXUNUSED(value))
{ return NULL; }
- virtual bool GetValueFromEditorCtrl(wxControl * WXUNUSED(editor),
+ virtual bool GetValueFromEditorCtrl(wxWindow * WXUNUSED(editor),
wxVariant& WXUNUSED(value))
{ return false; }
@@ -157,7 +159,7 @@ public:
virtual void CancelEditing();
virtual bool FinishEditing();
- wxControl *GetEditorCtrl() { return m_editorCtrl; }
+ wxWindow *GetEditorCtrl() { return m_editorCtrl; }
virtual bool IsCustomRenderer() const { return false; }
@@ -168,11 +170,12 @@ protected:
wxString m_variantType;
wxDataViewColumn *m_owner;
- wxWeakRef m_editorCtrl;
+ wxWeakRef m_editorCtrl;
wxDataViewItem m_item; // for m_editorCtrl
- // internal utility:
- const wxDataViewCtrl* GetView() const;
+ // internal utility, may be used anywhere the window associated with the
+ // renderer is required
+ wxDataViewCtrl* GetView() const;
protected:
DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewRendererBase)
@@ -225,23 +228,32 @@ public:
// Return the size of the item appropriate to its current value.
virtual wxSize GetSize() const = 0;
- // Define virtual function which are called when the item is activated
- // (double-clicked or Enter is pressed on it), clicked or the user starts
- // to drag it: by default they all simply return false indicating that the
- // events are not handled
+ // Define virtual function which are called when a key is pressed on the
+ // item, clicked or the user starts to drag it: by default they all simply
+ // return false indicating that the events are not handled
- virtual bool Activate(const wxRect& WXUNUSED(cell),
- wxDataViewModel *WXUNUSED(model),
- const wxDataViewItem & WXUNUSED(item),
- unsigned int WXUNUSED(col))
- { return false; }
+ virtual bool ActivateCell(const wxRect& cell,
+ wxDataViewModel *model,
+ const wxDataViewItem & item,
+ unsigned int col,
+ const wxMouseEvent* mouseEvent);
- virtual bool LeftClick(const wxPoint& WXUNUSED(cursor),
- const wxRect& WXUNUSED(cell),
- wxDataViewModel *WXUNUSED(model),
- const wxDataViewItem & WXUNUSED(item),
- unsigned int WXUNUSED(col) )
- { return false; }
+ // Deprecated, use (and override) ActivateCell() instead
+ wxDEPRECATED_BUT_USED_INTERNALLY_INLINE(
+ virtual bool Activate(wxRect WXUNUSED(cell),
+ wxDataViewModel *WXUNUSED(model),
+ const wxDataViewItem & WXUNUSED(item),
+ unsigned int WXUNUSED(col)),
+ return false; )
+
+ // Deprecated, use (and override) ActivateCell() instead
+ wxDEPRECATED_BUT_USED_INTERNALLY_INLINE(
+ virtual bool LeftClick(wxPoint WXUNUSED(cursor),
+ wxRect WXUNUSED(cell),
+ wxDataViewModel *WXUNUSED(model),
+ const wxDataViewItem & WXUNUSED(item),
+ unsigned int WXUNUSED(col)),
+ return false; )
virtual bool StartDrag(const wxPoint& WXUNUSED(cursor),
const wxRect& WXUNUSED(cell),
@@ -278,6 +290,9 @@ public:
// platform-specific classes.
virtual wxDC *GetDC() = 0;
+ // To draw background use the background colour in wxDataViewItemAttr
+ virtual void RenderBackground(wxDC* dc, const wxRect& rect);
+
// Prepare DC to use attributes and call Render().
void WXCallRender(wxRect rect, wxDC *dc, int state);
@@ -322,8 +337,8 @@ public:
wxDataViewCellMode mode = wxDATAVIEW_CELL_EDITABLE,
int alignment = wxDVR_DEFAULT_ALIGNMENT );
virtual bool HasEditorCtrl() const { return true; }
- virtual wxControl* CreateEditorCtrl( wxWindow *parent, wxRect labelRect, const wxVariant &value );
- virtual bool GetValueFromEditorCtrl( wxControl* editor, wxVariant &value );
+ virtual wxWindow* CreateEditorCtrl( wxWindow *parent, wxRect labelRect, const wxVariant &value );
+ virtual bool GetValueFromEditorCtrl( wxWindow* editor, wxVariant &value );
virtual bool Render( wxRect rect, wxDC *dc, int state );
virtual wxSize GetSize() const;
virtual bool SetValue( const wxVariant &value );
@@ -347,8 +362,8 @@ public:
wxDataViewCellMode mode = wxDATAVIEW_CELL_EDITABLE,
int alignment = wxDVR_DEFAULT_ALIGNMENT );
virtual bool HasEditorCtrl() const { return true; }
- virtual wxControl* CreateEditorCtrl( wxWindow *parent, wxRect labelRect, const wxVariant &value );
- virtual bool GetValueFromEditorCtrl( wxControl* editor, wxVariant &value );
+ virtual wxWindow* CreateEditorCtrl( wxWindow *parent, wxRect labelRect, const wxVariant &value );
+ virtual bool GetValueFromEditorCtrl( wxWindow* editor, wxVariant &value );
virtual bool Render( wxRect rect, wxDC *dc, int state );
virtual wxSize GetSize() const;
virtual bool SetValue( const wxVariant &value );
@@ -373,8 +388,8 @@ public:
wxDataViewCellMode mode = wxDATAVIEW_CELL_EDITABLE,
int alignment = wxDVR_DEFAULT_ALIGNMENT );
- virtual wxControl* CreateEditorCtrl( wxWindow *parent, wxRect labelRect, const wxVariant &value );
- virtual bool GetValueFromEditorCtrl( wxControl* editor, wxVariant &value );
+ virtual wxWindow* CreateEditorCtrl( wxWindow *parent, wxRect labelRect, const wxVariant &value );
+ virtual bool GetValueFromEditorCtrl( wxWindow* editor, wxVariant &value );
virtual bool SetValue( const wxVariant &value );
virtual bool GetValue( wxVariant &value ) const;
@@ -383,6 +398,37 @@ public:
#endif // generic or Carbon versions
+#if defined(wxHAS_GENERIC_DATAVIEWCTRL) || defined(__WXGTK__)
+
+// ----------------------------------------------------------------------------
+// wxDataViewDateRenderer
+// ----------------------------------------------------------------------------
+
+#if wxUSE_DATEPICKCTRL
+class WXDLLIMPEXP_ADV wxDataViewDateRenderer: public wxDataViewCustomRenderer
+{
+public:
+ wxDataViewDateRenderer(const wxString &varianttype = wxT("datetime"),
+ wxDataViewCellMode mode = wxDATAVIEW_CELL_EDITABLE,
+ int align = wxDVR_DEFAULT_ALIGNMENT);
+
+ virtual bool HasEditorCtrl() const { return true; }
+ virtual wxWindow *CreateEditorCtrl(wxWindow *parent, wxRect labelRect, const wxVariant &value);
+ virtual bool GetValueFromEditorCtrl(wxWindow* editor, wxVariant &value);
+ virtual bool SetValue(const wxVariant &value);
+ virtual bool GetValue(wxVariant& value) const;
+ virtual bool Render( wxRect cell, wxDC *dc, int state );
+ virtual wxSize GetSize() const;
+
+private:
+ wxDateTime m_date;
+};
+#else // !wxUSE_DATEPICKCTRL
+typedef wxDataViewTextRenderer wxDataViewDateRenderer;
+#endif
+
+#endif // generic or GTK+ versions
+
// this class is obsolete, its functionality was merged in
// wxDataViewTextRenderer itself now, don't use it any more
#define wxDataViewTextRendererAttr wxDataViewTextRenderer
diff --git a/Externals/wxWidgets3/include/wx/dynarray.h b/Externals/wxWidgets3/include/wx/dynarray.h
index 5a1e932668..09237e0a77 100644
--- a/Externals/wxWidgets3/include/wx/dynarray.h
+++ b/Externals/wxWidgets3/include/wx/dynarray.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 12.09.97
-// RCS-ID: $Id: dynarray.h 56600 2008-10-30 15:57:18Z VZ $
+// RCS-ID: $Id: dynarray.h 69688 2011-11-05 15:20:32Z VS $
// Copyright: (c) 1998 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -14,7 +14,7 @@
#include "wx/defs.h"
-#if wxUSE_STL
+#if wxUSE_STD_CONTAINERS
#include "wx/beforestd.h"
#include
#include
@@ -81,7 +81,7 @@ typedef int (wxCMPFUNC_CONV *CMPFUNC)(const void* pItem1, const void* pItem2);
// you cast "SomeArray *" as "BaseArray *" and then delete it)
// ----------------------------------------------------------------------------
-#if wxUSE_STL
+#if wxUSE_STD_CONTAINERS
template
class wxArray_SortFunction
@@ -151,7 +151,7 @@ public: \
e = rend(); \
for ( const_reverse_iterator i = b; i != e; ++i ) \
if ( *i == item ) \
- return (int)(i - b); \
+ return (int)(e - i - 1); \
} \
else \
{ \
@@ -203,12 +203,12 @@ public: \
} \
}
-#else // if !wxUSE_STL
+#else // if !wxUSE_STD_CONTAINERS
#define _WX_DECLARE_BASEARRAY(T, name, classexp) \
classexp name \
{ \
- typedef CMPFUNC SCMPFUNC; /* for compatibility wuth wxUSE_STL */ \
+ typedef CMPFUNC SCMPFUNC; /* for compatibility wuth wxUSE_STD_CONTAINERS */ \
public: \
name(); \
name(const name& array); \
@@ -307,7 +307,7 @@ private: \
T *m_pItems; \
}
-#endif // !wxUSE_STL
+#endif // !wxUSE_STD_CONTAINERS
// ============================================================================
// The private helper macros containing the core of the array classes
@@ -325,7 +325,7 @@ private: \
// _WX_DEFINE_TYPEARRAY: array for simple types
// ----------------------------------------------------------------------------
-#if wxUSE_STL
+#if wxUSE_STD_CONTAINERS
// in STL case we don't need the entire base arrays hack as standard container
// don't suffer from alignment/storage problems as our home-grown do
@@ -335,7 +335,7 @@ private: \
#define _WX_DEFINE_TYPEARRAY_PTR(T, name, base, classexp) \
_WX_DEFINE_TYPEARRAY(T, name, base, classexp)
-#else // if !wxUSE_STL
+#else // if !wxUSE_STD_CONTAINERS
// common declaration used by both _WX_DEFINE_TYPEARRAY and
// _WX_DEFINE_TYPEARRAY_PTR
@@ -505,7 +505,7 @@ public: \
#define _WX_DEFINE_TYPEARRAY_PTR(T, name, base, classexp) \
_WX_DEFINE_TYPEARRAY_HELPER(T, name, base, classexp, _WX_PTROP_NONE)
-#endif // !wxUSE_STL
+#endif // !wxUSE_STD_CONTAINERS
// ----------------------------------------------------------------------------
// _WX_DEFINE_SORTED_TYPEARRAY: sorted array for simple data types
@@ -546,6 +546,8 @@ public: \
\
size_t Add(T lItem) \
{ return base::Add(lItem, (CMPFUNC)m_fnCompare); } \
+ void push_back(T lItem) \
+ { Add(lItem); } \
\
void RemoveAt(size_t uiIndex, size_t nRemove = 1) \
{ base::erase(begin() + uiIndex, begin() + uiIndex + nRemove); } \
@@ -636,7 +638,7 @@ private: \
// that wants to export a wxArray daubed with your own import/export goo.
//
// Finally, you can define the macro below as something special to modify the
-// arrays defined by a simple WX_FOO_ARRAY as well. By default is is empty.
+// arrays defined by a simple WX_FOO_ARRAY as well. By default is empty.
#define wxARRAY_DEFAULT_EXPORT
// ----------------------------------------------------------------------------
diff --git a/Externals/wxWidgets3/include/wx/dynlib.h b/Externals/wxWidgets3/include/wx/dynlib.h
index 687794221d..4e4e411dbc 100644
--- a/Externals/wxWidgets3/include/wx/dynlib.h
+++ b/Externals/wxWidgets3/include/wx/dynlib.h
@@ -4,7 +4,7 @@
// Author: Guilhem Lavaux, Vadim Zeitlin, Vaclav Slavik
// Modified by:
// Created: 20/07/98
-// RCS-ID: $Id: dynlib.h 64139 2010-04-25 12:07:37Z VS $
+// RCS-ID: $Id: dynlib.h 70796 2012-03-04 00:29:31Z VZ $
// Copyright: (c) 1998 Guilhem Lavaux
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -123,14 +123,14 @@ enum wxPluginCategory
#define wxDL_INIT_FUNC(pfx, name, dynlib) \
pfx ## name = (name ## _t)(dynlib).RawGetSymbol(#name)
-#ifdef __WXMSW__
+#ifdef __WINDOWS__
// same as wxDL_INIT_FUNC() but appends 'A' or 'W' to the function name, see
// wxDynamicLibrary::GetSymbolAorW()
#define wxDL_INIT_FUNC_AW(pfx, name, dynlib) \
pfx ## name = (name ## _t)(dynlib).GetSymbolAorW(#name)
-#endif // __WXMSW__
+#endif // __WINDOWS__
// the following macros can be used to redirect a whole library to a class and
// check at run-time if the library is present and contains all required
@@ -304,7 +304,7 @@ public:
#endif
}
-#ifdef __WXMSW__
+#ifdef __WINDOWS__
// this function is useful for loading functions from the standard Windows
// DLLs: such functions have an 'A' (in ANSI build) or 'W' (in Unicode, or
// wide character build) suffix if they take string parameters
@@ -326,7 +326,7 @@ public:
{
return RawGetSymbolAorW(m_handle, name);
}
-#endif // __WXMSW__
+#endif // __WINDOWS__
// return all modules/shared libraries in the address space of this process
//
@@ -349,7 +349,7 @@ public:
static wxString GetPluginsDirectory();
-#ifdef __WXMSW__
+#ifdef __WINDOWS__
// return the handle (HMODULE/HINSTANCE) of the DLL with the given name
// and/or containing the specified address: for XP and later systems only
// the address is used and the name is ignored but for the previous systems
@@ -360,7 +360,7 @@ public:
// need to be freed using FreeLibrary() but it also means that it can
// become invalid if the DLL is unloaded
static WXHMODULE MSWGetModuleHandle(const char *name, void *addr);
-#endif // __WXMSW__
+#endif // __WINDOWS__
protected:
// common part of GetSymbol() and HasSymbol()
@@ -383,7 +383,7 @@ protected:
wxDECLARE_NO_COPY_CLASS(wxDynamicLibrary);
};
-#ifdef __WXMSW__
+#ifdef __WINDOWS__
// ----------------------------------------------------------------------------
// wxLoadedDLL is a MSW-only internal helper class allowing to dynamically bind
@@ -404,7 +404,7 @@ public:
}
};
-#endif // __WXMSW__
+#endif // __WINDOWS__
// ----------------------------------------------------------------------------
// Interesting defines
diff --git a/Externals/wxWidgets3/include/wx/encinfo.h b/Externals/wxWidgets3/include/wx/encinfo.h
index 2b9b1896ab..bbe7229723 100644
--- a/Externals/wxWidgets3/include/wx/encinfo.h
+++ b/Externals/wxWidgets3/include/wx/encinfo.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 19.09.2003 (extracted from wx/fontenc.h)
-// RCS-ID: $Id: encinfo.h 52834 2008-03-26 15:06:00Z FM $
+// RCS-ID: $Id: encinfo.h 70353 2012-01-15 14:46:41Z VZ $
// Copyright: (c) 2003 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -35,7 +35,6 @@
struct WXDLLIMPEXP_CORE wxNativeEncodingInfo
{
wxString facename; // may be empty meaning "any"
-#ifndef __WXPALMOS__
wxFontEncoding encoding; // so that we know what this struct represents
#if defined(__WXMSW__) || \
@@ -55,12 +54,9 @@ struct WXDLLIMPEXP_CORE wxNativeEncodingInfo
xencoding;
#elif defined(wxHAS_UTF8_FONTS)
// ports using UTF-8 for text don't need encoding information for fonts
-#elif defined(__WXMGL__)
- int mglEncoding;
#else
#error "Unsupported toolkit"
#endif
-#endif // !__WXPALMOS__
// this struct is saved in config by wxFontMapper, so it should know to
// serialise itself (implemented in platform-specific code)
bool FromString(const wxString& s);
diff --git a/Externals/wxWidgets3/include/wx/event.h b/Externals/wxWidgets3/include/wx/event.h
index b08e545365..19610b0f18 100644
--- a/Externals/wxWidgets3/include/wx/event.h
+++ b/Externals/wxWidgets3/include/wx/event.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
-// RCS-ID: $Id: event.h 66209 2010-11-19 07:51:15Z RD $
+// RCS-ID: $Id: event.h 70703 2012-02-26 20:24:25Z VZ $
// Copyright: (c) wxWidgets team
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -39,6 +39,7 @@
class WXDLLIMPEXP_FWD_BASE wxList;
class WXDLLIMPEXP_FWD_BASE wxEvent;
+class WXDLLIMPEXP_FWD_BASE wxEventFilter;
#if wxUSE_GUI
class WXDLLIMPEXP_FWD_CORE wxDC;
class WXDLLIMPEXP_FWD_CORE wxMenu;
@@ -224,10 +225,13 @@ public:
const wxObjectEventFunctor &other =
static_cast< const wxObjectEventFunctor & >( functor );
- // FIXME-VC6: amazing but true: replacing "method == NULL" here
- // with "!method" makes VC6 crash with an ICE in DLL build (only!)
+ // FIXME-VC6: amazing but true: replacing "m_method == 0" here
+ // with "!m_method" makes VC6 crash with an ICE in DLL build (only!)
+ // Also notice that using "NULL" instead of "0" results in warnings
+ // about "using NULL in arithmetics" from arm-linux-androideabi-g++
+ // 4.4.3 used for wxAndroid build.
- return ( m_method == other.m_method || other.m_method == NULL ) &&
+ return ( m_method == other.m_method || other.m_method == 0 ) &&
( m_handler == other.m_handler || other.m_handler == NULL );
}
else
@@ -615,8 +619,9 @@ extern WXDLLIMPEXP_BASE const wxEventType wxEVT_FIRST;
extern WXDLLIMPEXP_BASE const wxEventType wxEVT_USER_FIRST;
// Need events declared to do this
+class WXDLLIMPEXP_FWD_BASE wxIdleEvent;
+class WXDLLIMPEXP_FWD_BASE wxThreadEvent;
class WXDLLIMPEXP_FWD_CORE wxCommandEvent;
-class WXDLLIMPEXP_FWD_CORE wxThreadEvent;
class WXDLLIMPEXP_FWD_CORE wxMouseEvent;
class WXDLLIMPEXP_FWD_CORE wxFocusEvent;
class WXDLLIMPEXP_FWD_CORE wxChildFocusEvent;
@@ -649,7 +654,6 @@ class WXDLLIMPEXP_FWD_CORE wxPaletteChangedEvent;
class WXDLLIMPEXP_FWD_CORE wxJoystickEvent;
class WXDLLIMPEXP_FWD_CORE wxDropFilesEvent;
class WXDLLIMPEXP_FWD_CORE wxInitDialogEvent;
-class WXDLLIMPEXP_FWD_CORE wxIdleEvent;
class WXDLLIMPEXP_FWD_CORE wxUpdateUIEvent;
class WXDLLIMPEXP_FWD_CORE wxClipboardTextEvent;
class WXDLLIMPEXP_FWD_CORE wxHelpEvent;
@@ -678,7 +682,7 @@ wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CORE, wxEVT_COMMAND_COMBOBOX_DROPDOWN, wxCo
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CORE, wxEVT_COMMAND_COMBOBOX_CLOSEUP, wxCommandEvent);
// Thread events
-wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CORE, wxEVT_COMMAND_THREAD, wxThreadEvent);
+wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_BASE, wxEVT_THREAD, wxThreadEvent);
// Mouse event types
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CORE, wxEVT_LEFT_DOWN, wxMouseEvent);
@@ -713,6 +717,10 @@ wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CORE, wxEVT_KEY_UP, wxKeyEvent);
#if wxUSE_HOTKEY
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CORE, wxEVT_HOTKEY, wxKeyEvent);
#endif
+// This is a private event used by wxMSW code only and subject to change or
+// disappear in the future. Don't use.
+wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CORE, wxEVT_AFTER_CHAR, wxKeyEvent);
+
// Set cursor event
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CORE, wxEVT_SET_CURSOR, wxSetCursorEvent);
@@ -1112,6 +1120,148 @@ private:
wxDECLARE_NO_COPY_CLASS(wxEventProcessInHandlerOnly);
};
+
+class WXDLLIMPEXP_BASE wxEventBasicPayloadMixin
+{
+public:
+ wxEventBasicPayloadMixin()
+ : m_commandInt(0),
+ m_extraLong(0)
+ {
+ }
+
+ void SetString(const wxString& s) { m_cmdString = s; }
+ const wxString& GetString() const { return m_cmdString; }
+
+ void SetInt(int i) { m_commandInt = i; }
+ int GetInt() const { return m_commandInt; }
+
+ void SetExtraLong(long extraLong) { m_extraLong = extraLong; }
+ long GetExtraLong() const { return m_extraLong; }
+
+protected:
+ // Note: these variables have "cmd" or "command" in their name for backward compatibility:
+ // they used to be part of wxCommandEvent, not this mixin.
+ wxString m_cmdString; // String event argument
+ int m_commandInt;
+ long m_extraLong; // Additional information (e.g. select/deselect)
+
+ wxDECLARE_NO_ASSIGN_CLASS(wxEventBasicPayloadMixin);
+};
+
+class WXDLLIMPEXP_BASE wxEventAnyPayloadMixin : public wxEventBasicPayloadMixin
+{
+public:
+ wxEventAnyPayloadMixin() : wxEventBasicPayloadMixin() {}
+
+#if wxUSE_ANY && (!defined(__VISUALC__) || wxCHECK_VISUALC_VERSION(7))
+ template
+ void SetPayload(const T& payload)
+ {
+ m_payload = payload;
+ }
+
+ template
+ T GetPayload() const
+ {
+ return m_payload.As();
+ }
+
+protected:
+ wxAny m_payload;
+#endif // wxUSE_ANY && (!defined(__VISUALC__) || wxCHECK_VISUALC_VERSION(7))
+
+ wxDECLARE_NO_ASSIGN_CLASS(wxEventBasicPayloadMixin);
+};
+
+
+// Idle event
+/*
+ wxEVT_IDLE
+ */
+
+// Whether to always send idle events to windows, or
+// to only send update events to those with the
+// wxWS_EX_PROCESS_IDLE style.
+
+enum wxIdleMode
+{
+ // Send idle events to all windows
+ wxIDLE_PROCESS_ALL,
+
+ // Send idle events to windows that have
+ // the wxWS_EX_PROCESS_IDLE flag specified
+ wxIDLE_PROCESS_SPECIFIED
+};
+
+class WXDLLIMPEXP_BASE wxIdleEvent : public wxEvent
+{
+public:
+ wxIdleEvent()
+ : wxEvent(0, wxEVT_IDLE),
+ m_requestMore(false)
+ { }
+ wxIdleEvent(const wxIdleEvent& event)
+ : wxEvent(event),
+ m_requestMore(event.m_requestMore)
+ { }
+
+ void RequestMore(bool needMore = true) { m_requestMore = needMore; }
+ bool MoreRequested() const { return m_requestMore; }
+
+ virtual wxEvent *Clone() const { return new wxIdleEvent(*this); }
+
+ // Specify how wxWidgets will send idle events: to
+ // all windows, or only to those which specify that they
+ // will process the events.
+ static void SetMode(wxIdleMode mode) { sm_idleMode = mode; }
+
+ // Returns the idle event mode
+ static wxIdleMode GetMode() { return sm_idleMode; }
+
+protected:
+ bool m_requestMore;
+ static wxIdleMode sm_idleMode;
+
+private:
+ DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxIdleEvent)
+};
+
+
+// Thread event
+
+class WXDLLIMPEXP_BASE wxThreadEvent : public wxEvent,
+ public wxEventAnyPayloadMixin
+{
+public:
+ wxThreadEvent(wxEventType eventType = wxEVT_THREAD, int id = wxID_ANY)
+ : wxEvent(id, eventType)
+ { }
+
+ wxThreadEvent(const wxThreadEvent& event)
+ : wxEvent(event),
+ wxEventAnyPayloadMixin(event)
+ {
+ // make sure our string member (which uses COW, aka refcounting) is not
+ // shared by other wxString instances:
+ SetString(GetString().c_str());
+ }
+
+ virtual wxEvent *Clone() const
+ {
+ return new wxThreadEvent(*this);
+ }
+
+ // this is important to avoid that calling wxEventLoopBase::YieldFor thread events
+ // gets processed when this is unwanted:
+ virtual wxEventCategory GetEventCategory() const
+ { return wxEVT_CATEGORY_THREAD; }
+
+private:
+ DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxThreadEvent)
+};
+
+
#if wxUSE_GUI
@@ -1134,16 +1284,15 @@ private:
wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
*/
-class WXDLLIMPEXP_CORE wxCommandEvent : public wxEvent
+class WXDLLIMPEXP_CORE wxCommandEvent : public wxEvent,
+ public wxEventBasicPayloadMixin
{
public:
wxCommandEvent(wxEventType commandType = wxEVT_NULL, int winid = 0);
wxCommandEvent(const wxCommandEvent& event)
: wxEvent(event),
- m_cmdString(event.m_cmdString),
- m_commandInt(event.m_commandInt),
- m_extraLong(event.m_extraLong),
+ wxEventBasicPayloadMixin(event),
m_clientData(event.m_clientData),
m_clientObject(event.m_clientObject)
{ }
@@ -1156,32 +1305,23 @@ public:
void SetClientObject(wxClientData* clientObject) { m_clientObject = clientObject; }
wxClientData *GetClientObject() const { return m_clientObject; }
+ // Note: this shadows wxEventBasicPayloadMixin::GetString(), because it does some
+ // GUI-specific hacks
+ wxString GetString() const;
+
// Get listbox selection if single-choice
int GetSelection() const { return m_commandInt; }
- // Set/Get listbox/choice selection string
- void SetString(const wxString& s) { m_cmdString = s; }
- wxString GetString() const;
-
// Get checkbox value
bool IsChecked() const { return m_commandInt != 0; }
// true if the listbox event was a selection.
bool IsSelection() const { return (m_extraLong != 0); }
- void SetExtraLong(long extraLong) { m_extraLong = extraLong; }
- long GetExtraLong() const { return m_extraLong; }
-
- void SetInt(int i) { m_commandInt = i; }
- int GetInt() const { return m_commandInt; }
-
virtual wxEvent *Clone() const { return new wxCommandEvent(*this); }
virtual wxEventCategory GetEventCategory() const { return wxEVT_CATEGORY_USER_INPUT; }
protected:
- wxString m_cmdString; // String event argument
- int m_commandInt;
- long m_extraLong; // Additional information (e.g. select/deselect)
void* m_clientData; // Arbitrary client data
wxClientData* m_clientObject; // Arbitrary client object
@@ -1221,60 +1361,6 @@ private:
};
-// Thread event
-
-class WXDLLIMPEXP_CORE wxThreadEvent : public wxCommandEvent
-{
-public:
- wxThreadEvent(wxEventType eventType = wxEVT_COMMAND_THREAD, int id = wxID_ANY)
- : wxCommandEvent(eventType, id)
- { }
-
- wxThreadEvent(const wxThreadEvent& event)
- : wxCommandEvent(event)
- {
- // make sure our string member (which uses COW, aka refcounting) is not
- // shared by other wxString instances:
- SetString(GetString().c_str());
-
-#if wxUSE_ANY && (!defined(__VISUALC__) || wxCHECK_VISUALC_VERSION(7))
- m_payload = event.m_payload;
-#endif
- }
-
- virtual wxEvent *Clone() const
- {
- return new wxThreadEvent(*this);
- }
-
- // this is important to avoid that calling wxEventLoopBase::YieldFor thread events
- // gets processed when this is unwanted:
- virtual wxEventCategory GetEventCategory() const
- { return wxEVT_CATEGORY_THREAD; }
-
-#if wxUSE_ANY && (!defined(__VISUALC__) || wxCHECK_VISUALC_VERSION(7))
- template
- void SetPayload(const T& payload)
- {
- m_payload = payload;
- }
-
- template
- T GetPayload() const
- {
- return m_payload.As();
- }
-
-protected:
- wxAny m_payload;
-#endif // wxUSE_ANY && (!defined(__VISUALC__) || wxCHECK_VISUALC_VERSION(7))
-
-private:
- DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxThreadEvent)
-};
-
-
-
// Scroll event class, derived form wxCommandEvent. wxScrollEvents are
// sent by wxSlider and wxScrollBar.
/*
@@ -1360,18 +1446,6 @@ private:
wxEVT_LEFT_DCLICK
wxEVT_MIDDLE_DCLICK
wxEVT_RIGHT_DCLICK
- wxEVT_NC_LEFT_DOWN
- wxEVT_NC_LEFT_UP,
- wxEVT_NC_MIDDLE_DOWN,
- wxEVT_NC_MIDDLE_UP,
- wxEVT_NC_RIGHT_DOWN,
- wxEVT_NC_RIGHT_UP,
- wxEVT_NC_MOTION,
- wxEVT_NC_ENTER_WINDOW,
- wxEVT_NC_LEAVE_WINDOW,
- wxEVT_NC_LEFT_DCLICK,
- wxEVT_NC_MIDDLE_DCLICK,
- wxEVT_NC_RIGHT_DCLICK,
*/
class WXDLLIMPEXP_CORE wxMouseEvent : public wxEvent,
@@ -1420,8 +1494,8 @@ public:
bool LeftDClick() const { return (m_eventType == wxEVT_LEFT_DCLICK); }
bool MiddleDClick() const { return (m_eventType == wxEVT_MIDDLE_DCLICK); }
bool RightDClick() const { return (m_eventType == wxEVT_RIGHT_DCLICK); }
- bool Aux1DClick() const { return (m_eventType == wxEVT_AUX1_UP); }
- bool Aux2DClick() const { return (m_eventType == wxEVT_AUX2_UP); }
+ bool Aux1DClick() const { return (m_eventType == wxEVT_AUX1_DCLICK); }
+ bool Aux2DClick() const { return (m_eventType == wxEVT_AUX2_DCLICK); }
// True if a button is down and the mouse is moving
bool Dragging() const
@@ -1524,7 +1598,7 @@ public:
void SetCursor(const wxCursor& cursor) { m_cursor = cursor; }
const wxCursor& GetCursor() const { return m_cursor; }
- bool HasCursor() const { return m_cursor.Ok(); }
+ bool HasCursor() const { return m_cursor.IsOk(); }
virtual wxEvent *Clone() const { return new wxSetCursorEvent(*this); }
@@ -1578,7 +1652,12 @@ class WXDLLIMPEXP_CORE wxKeyEvent : public wxEvent,
{
public:
wxKeyEvent(wxEventType keyType = wxEVT_NULL);
+
+ // Normal copy ctor and a ctor creating a new event for the same key as the
+ // given one but a different event type (this is used in implementation
+ // code only, do not use outside of the library).
wxKeyEvent(const wxKeyEvent& evt);
+ wxKeyEvent(wxEventType eventType, const wxKeyEvent& evt);
// get the key code: an ASCII7 char or an element of wxKeyCode enum
int GetKeyCode() const { return (int)m_keyCode; }
@@ -1619,6 +1698,15 @@ public:
// Get Y position
wxCoord GetY() const { return m_y; }
+ // Can be called from wxEVT_CHAR_HOOK handler to allow generation of normal
+ // key events even though the event had been handled (by default they would
+ // not be generated in this case).
+ void DoAllowNextEvent() { m_allowNext = true; }
+
+ // Return the value of the "allow next" flag, for internal use only.
+ bool IsNextEventAllowed() const { return m_allowNext; }
+
+
virtual wxEvent *Clone() const { return new wxKeyEvent(*this); }
virtual wxEventCategory GetEventCategory() const { return wxEVT_CATEGORY_USER_INPUT; }
@@ -1634,16 +1722,7 @@ public:
// implicitly defined operator=() so need to do it this way:
*static_cast(this) = evt;
- m_x = evt.m_x;
- m_y = evt.m_y;
-
- m_keyCode = evt.m_keyCode;
-
- m_rawCode = evt.m_rawCode;
- m_rawFlags = evt.m_rawFlags;
-#if wxUSE_UNICODE
- m_uniChar = evt.m_uniChar;
-#endif
+ DoAssignMembers(evt);
}
return *this;
}
@@ -1665,6 +1744,37 @@ public:
wxUint32 m_rawFlags;
private:
+ // Set the event to propagate if necessary, i.e. if it's of wxEVT_CHAR_HOOK
+ // type. This is used by all ctors.
+ void InitPropagation()
+ {
+ if ( m_eventType == wxEVT_CHAR_HOOK )
+ m_propagationLevel = wxEVENT_PROPAGATE_MAX;
+
+ m_allowNext = false;
+ }
+
+ // Copy only the event data present in this class, this is used by
+ // AssignKeyData() and copy ctor.
+ void DoAssignMembers(const wxKeyEvent& evt)
+ {
+ m_x = evt.m_x;
+ m_y = evt.m_y;
+
+ m_keyCode = evt.m_keyCode;
+
+ m_rawCode = evt.m_rawCode;
+ m_rawFlags = evt.m_rawFlags;
+#if wxUSE_UNICODE
+ m_uniChar = evt.m_uniChar;
+#endif
+ }
+
+ // If this flag is true, the normal key events should still be generated
+ // even if wxEVT_CHAR_HOOK had been handled. By default it is false as
+ // handling wxEVT_CHAR_HOOK suppresses all the subsequent events.
+ bool m_allowNext;
+
DECLARE_DYNAMIC_CLASS(wxKeyEvent)
};
@@ -1749,7 +1859,6 @@ private:
/*
wxEVT_PAINT
wxEVT_NC_PAINT
- wxEVT_PAINT_ICON
*/
#if wxDEBUG_LEVEL && (defined(__WXMSW__) || defined(__WXPM__))
@@ -2722,59 +2831,6 @@ private:
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxContextMenuEvent)
};
-#endif // wxUSE_GUI
-
-// Idle event
-/*
- wxEVT_IDLE
- */
-
-// Whether to always send idle events to windows, or
-// to only send update events to those with the
-// wxWS_EX_PROCESS_IDLE style.
-
-enum wxIdleMode
-{
- // Send idle events to all windows
- wxIDLE_PROCESS_ALL,
-
- // Send idle events to windows that have
- // the wxWS_EX_PROCESS_IDLE flag specified
- wxIDLE_PROCESS_SPECIFIED
-};
-
-class WXDLLIMPEXP_BASE wxIdleEvent : public wxEvent
-{
-public:
- wxIdleEvent()
- : wxEvent(0, wxEVT_IDLE),
- m_requestMore(false)
- { }
- wxIdleEvent(const wxIdleEvent& event)
- : wxEvent(event),
- m_requestMore(event.m_requestMore)
- { }
-
- void RequestMore(bool needMore = true) { m_requestMore = needMore; }
- bool MoreRequested() const { return m_requestMore; }
-
- virtual wxEvent *Clone() const { return new wxIdleEvent(*this); }
-
- // Specify how wxWidgets will send idle events: to
- // all windows, or only to those which specify that they
- // will process the events.
- static void SetMode(wxIdleMode mode) { sm_idleMode = mode; }
-
- // Returns the idle event mode
- static wxIdleMode GetMode() { return sm_idleMode; }
-
-protected:
- bool m_requestMore;
- static wxIdleMode sm_idleMode;
-
-private:
- DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxIdleEvent)
-};
/* TODO
wxEVT_MOUSE_CAPTURE_CHANGED,
@@ -2786,6 +2842,7 @@ private:
wxEVT_COMPARE_ITEM
*/
+#endif // wxUSE_GUI
// ============================================================================
@@ -2983,6 +3040,19 @@ public:
bool IsUnlinked() const;
+ // Global event filters
+ // --------------------
+
+ // Add an event filter whose FilterEvent() method will be called for each
+ // and every event processed by wxWidgets. The filters are called in LIFO
+ // order and wxApp is registered as an event filter by default. The pointer
+ // must remain valid until it's removed with RemoveFilter() and is not
+ // deleted by wxEvtHandler.
+ static void AddFilter(wxEventFilter* filter);
+
+ // Remove a filter previously installed with AddFilter().
+ static void RemoveFilter(wxEventFilter* filter);
+
// Event queuing and processing
// ----------------------------
@@ -3269,7 +3339,7 @@ protected:
// base class implementation passes the event to wxTheApp
virtual bool TryAfter(wxEvent& event);
-#ifdef WXWIN_COMPATIBILITY_2_8
+#if WXWIN_COMPATIBILITY_2_8
// deprecated method: override TryBefore() instead of this one
wxDEPRECATED_BUT_USED_INTERNALLY_INLINE(
virtual bool TryValidator(wxEvent& WXUNUSED(event)), return false; )
@@ -3330,6 +3400,9 @@ private:
// try to process events in all handlers chained to this one
bool DoTryChain(wxEvent& event);
+ // Head of the event filter linked list.
+ static wxEventFilter* ms_filterList;
+
DECLARE_DYNAMIC_CLASS_NO_COPY(wxEvtHandler)
};
@@ -3418,11 +3491,14 @@ inline void wxQueueEvent(wxEvtHandler *dest, wxEvent *event)
typedef void (wxEvtHandler::*wxEventFunction)(wxEvent&);
typedef void (wxEvtHandler::*wxIdleEventFunction)(wxIdleEvent&);
+typedef void (wxEvtHandler::*wxThreadEventFunction)(wxThreadEvent&);
#define wxEventHandler(func) \
wxEVENT_HANDLER_CAST(wxEventFunction, func)
#define wxIdleEventHandler(func) \
wxEVENT_HANDLER_CAST(wxIdleEventFunction, func)
+#define wxThreadEventHandler(func) \
+ wxEVENT_HANDLER_CAST(wxThreadEventFunction, func)
#if wxUSE_GUI
@@ -3451,7 +3527,6 @@ protected:
};
typedef void (wxEvtHandler::*wxCommandEventFunction)(wxCommandEvent&);
-typedef void (wxEvtHandler::*wxThreadEventFunction)(wxThreadEvent&);
typedef void (wxEvtHandler::*wxScrollEventFunction)(wxScrollEvent&);
typedef void (wxEvtHandler::*wxScrollWinEventFunction)(wxScrollWinEvent&);
typedef void (wxEvtHandler::*wxSizeEventFunction)(wxSizeEvent&);
@@ -3491,8 +3566,6 @@ typedef void (wxEvtHandler::*wxClipboardTextEventFunction)(wxClipboardTextEvent&
#define wxCommandEventHandler(func) \
wxEVENT_HANDLER_CAST(wxCommandEventFunction, func)
-#define wxThreadEventHandler(func) \
- wxEVENT_HANDLER_CAST(wxThreadEventFunction, func)
#define wxScrollEventHandler(func) \
wxEVENT_HANDLER_CAST(wxScrollEventFunction, func)
#define wxScrollWinEventHandler(func) \
@@ -3976,7 +4049,9 @@ typedef void (wxEvtHandler::*wxClipboardTextEventFunction)(wxClipboardTextEvent&
#define EVT_TEXT_PASTE(winid, func) wx__DECLARE_EVT1(wxEVT_COMMAND_TEXT_PASTE, winid, wxClipboardTextEventHandler(func))
// Thread events
-#define EVT_THREAD(id, func) wx__DECLARE_EVT1(wxEVT_COMMAND_THREAD, id, wxThreadEventHandler(func))
+#define EVT_THREAD(id, func) wx__DECLARE_EVT1(wxEVT_THREAD, id, wxThreadEventHandler(func))
+// alias for backward compatibility with 2.9.0:
+#define wxEVT_COMMAND_THREAD wxEVT_THREAD
// ----------------------------------------------------------------------------
// Helper functions
diff --git a/Externals/wxWidgets3/include/wx/eventfilter.h b/Externals/wxWidgets3/include/wx/eventfilter.h
new file mode 100644
index 0000000000..5a110cb7c5
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/eventfilter.h
@@ -0,0 +1,72 @@
+///////////////////////////////////////////////////////////////////////////////
+// Name: wx/eventfilter.h
+// Purpose: wxEventFilter class declaration.
+// Author: Vadim Zeitlin
+// Created: 2011-11-21
+// RCS-ID: $Id: eventfilter.h 70302 2012-01-09 14:04:25Z DS $
+// Copyright: (c) 2011 Vadim Zeitlin
+// Licence: wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_EVENTFILTER_H_
+#define _WX_EVENTFILTER_H_
+
+#include "wx/defs.h"
+
+class WXDLLIMPEXP_FWD_BASE wxEvent;
+class WXDLLIMPEXP_FWD_BASE wxEvtHandler;
+
+// ----------------------------------------------------------------------------
+// wxEventFilter is used with wxEvtHandler::AddFilter() and ProcessEvent().
+// ----------------------------------------------------------------------------
+
+class wxEventFilter
+{
+public:
+ // Possible return values for FilterEvent().
+ //
+ // Notice that the values of these enum elements are fixed due to backwards
+ // compatibility constraints.
+ enum
+ {
+ // Process event as usual.
+ Event_Skip = -1,
+
+ // Don't process the event normally at all.
+ Event_Ignore = 0,
+
+ // Event was already handled, don't process it normally.
+ Event_Processed = 1
+ };
+
+ wxEventFilter()
+ {
+ m_next = NULL;
+ }
+
+ virtual ~wxEventFilter()
+ {
+ wxASSERT_MSG( !m_next, "Forgot to call wxEvtHandler::RemoveFilter()?" );
+ }
+
+ // This method allows to filter all the events processed by the program, so
+ // you should try to return quickly from it to avoid slowing down the
+ // program to a crawl.
+ //
+ // Return value should be -1 to continue with the normal event processing,
+ // or true or false to stop further processing and pretend that the event
+ // had been already processed or won't be processed at all, respectively.
+ virtual int FilterEvent(wxEvent& event) = 0;
+
+private:
+ // Objects of this class are made to be stored in a linked list in
+ // wxEvtHandler so put the next node ponter directly in the class itself.
+ wxEventFilter* m_next;
+
+ // And provide access to it for wxEvtHandler [only].
+ friend class wxEvtHandler;
+
+ wxDECLARE_NO_COPY_CLASS(wxEventFilter);
+};
+
+#endif // _WX_EVENTFILTER_H_
diff --git a/Externals/wxWidgets3/include/wx/evtloop.h b/Externals/wxWidgets3/include/wx/evtloop.h
index ae45b8800a..97a3548d8e 100644
--- a/Externals/wxWidgets3/include/wx/evtloop.h
+++ b/Externals/wxWidgets3/include/wx/evtloop.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 01.06.01
-// RCS-ID: $Id: evtloop.h 65057 2010-07-23 23:32:46Z VZ $
+// RCS-ID: $Id: evtloop.h 70345 2012-01-15 01:05:28Z VZ $
// Copyright: (c) 2001 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -233,9 +233,7 @@ private:
// integration with MFC) but currently this is not done for all ports yet (e.g.
// wxX11) so fall back to the old wxGUIEventLoop definition below for them
-#if defined(__WXPALMOS__)
- #include "wx/palmos/evtloop.h"
-#elif defined(__WXMSW__)
+#if defined(__WXMSW__)
// this header defines both console and GUI loops for MSW
#include "wx/msw/evtloop.h"
#elif defined(__WXOSX__)
diff --git a/Externals/wxWidgets3/include/wx/evtloopsrc.h b/Externals/wxWidgets3/include/wx/evtloopsrc.h
index 1851e30dd6..20d8770b76 100644
--- a/Externals/wxWidgets3/include/wx/evtloopsrc.h
+++ b/Externals/wxWidgets3/include/wx/evtloopsrc.h
@@ -3,7 +3,7 @@
// Purpose: declaration of wxEventLoopSource class
// Author: Vadim Zeitlin
// Created: 2009-10-21
-// RCS-ID: $Id: evtloopsrc.h 64140 2010-04-25 21:33:16Z FM $
+// RCS-ID: $Id: evtloopsrc.h 69559 2011-10-27 21:10:30Z VZ $
// Copyright: (c) 2009 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -49,7 +49,7 @@ enum
wxEVENT_SOURCE_EXCEPTION = 0x04,
wxEVENT_SOURCE_ALL = wxEVENT_SOURCE_INPUT |
wxEVENT_SOURCE_OUTPUT |
- wxEVENT_SOURCE_EXCEPTION,
+ wxEVENT_SOURCE_EXCEPTION
};
// wxEventLoopSource itself is an ABC and can't be created directly, currently
diff --git a/Externals/wxWidgets3/include/wx/features.h b/Externals/wxWidgets3/include/wx/features.h
index 66cabcba0d..0d8469917b 100644
--- a/Externals/wxWidgets3/include/wx/features.h
+++ b/Externals/wxWidgets3/include/wx/features.h
@@ -5,7 +5,7 @@
* Author: Vadim Zeitlin
* Modified by: Ryan Norton (Converted to C)
* Created: 18.03.02
-* RCS-ID: $Id: features.h 60526 2009-05-06 11:42:16Z VZ $
+* RCS-ID: $Id: features.h 69961 2011-12-08 15:58:45Z VZ $
* Copyright: (c) 2002 Vadim Zeitlin
* Licence: wxWindows licence
*/
@@ -108,8 +108,16 @@
If this is defined, wxEvtHandler::Bind<>() is available (not all compilers
have the required template support for this and in particular under Windows
where only g++ and MSVC >= 7 currently support it.
+
+ Recent Sun CC versions support this but perhaps older ones can compile this
+ code too, adjust the version check if this is the case (unfortunately we
+ can't easily test for the things used in wx/event.h in configure so we have
+ to maintain these checks manually). The same applies to xlC 7: perhaps
+ earlier versions can compile this code too but they were not tested.
*/
-#if wxCHECK_GCC_VERSION(3, 2) || wxCHECK_VISUALC_VERSION(7)
+#if wxCHECK_GCC_VERSION(3, 2) || wxCHECK_VISUALC_VERSION(7) \
+ || (defined(__SUNCC__) && __SUNCC__ >= 0x5100) \
+ || (defined(__xlC__) && __xlC__ >= 0x700)
#define wxHAS_EVENT_BIND
#endif
diff --git a/Externals/wxWidgets3/include/wx/filedlg.h b/Externals/wxWidgets3/include/wx/filedlg.h
index e756cbcc6e..45178d2d43 100644
--- a/Externals/wxWidgets3/include/wx/filedlg.h
+++ b/Externals/wxWidgets3/include/wx/filedlg.h
@@ -5,7 +5,7 @@
// Modified by:
// Created: 8/17/99
// Copyright: (c) Robert Roebling
-// RCS-ID: $Id: filedlg.h 62722 2009-11-26 16:17:00Z VZ $
+// RCS-ID: $Id: filedlg.h 70345 2012-01-15 01:05:28Z VZ $
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -232,9 +232,6 @@ wxSaveFileSelector(const wxString& what,
#include "wx/cocoa/filedlg.h"
#elif defined(__WXPM__)
#include "wx/os2/filedlg.h"
-#elif defined(__WXPALMOS__)
- #define wxHAS_GENERIC_FILEDIALOG
- #include "wx/generic/filedlgg.h"
#endif
#endif // wxUSE_FILEDLG
diff --git a/Externals/wxWidgets3/include/wx/filefn.h b/Externals/wxWidgets3/include/wx/filefn.h
index 5172917416..ebd0c373c4 100644
--- a/Externals/wxWidgets3/include/wx/filefn.h
+++ b/Externals/wxWidgets3/include/wx/filefn.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created: 29/01/98
-// RCS-ID: $Id: filefn.h 65057 2010-07-23 23:32:46Z VZ $
+// RCS-ID: $Id: filefn.h 70796 2012-03-04 00:29:31Z VZ $
// Copyright: (c) 1998 Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -15,7 +15,6 @@
#include "wx/list.h"
#include "wx/arrstr.h"
-#ifndef __WXPALMOS5__
#ifdef __WXWINCE__
#include "wx/msw/wince/time.h"
#include "wx/msw/private.h"
@@ -40,7 +39,6 @@
#include
#endif
#endif
-#endif // !__WXPALMOS5__
#ifdef __OS2__
// need to check for __OS2__ first since currently both
@@ -85,11 +83,10 @@
#include
#endif
-#ifndef __WXPALMOS5__
#ifndef __WXWINCE__
#include // O_RDONLY &c
#endif
-#endif // !__WXPALMOS5__
+
// ----------------------------------------------------------------------------
// constants
// ----------------------------------------------------------------------------
@@ -115,8 +112,6 @@
typedef long off_t;
#elif defined(__MWERKS__) && !defined(__INTEL__) && !defined(__MACH__)
typedef long off_t;
-#elif defined(__WXPALMOS5__)
- typedef long off_t;
#endif
enum wxSeekMode
@@ -205,7 +200,7 @@ enum wxPosixPermissions
#define wxCRT_RmDir _wrmdir
#define wxCRT_Stat _wstat
#define wxStructStat struct _stat
-#elif (defined(__WXMSW__) || defined(__OS2__)) && !defined(__WXPALMOS__) && \
+#elif (defined(__WINDOWS__) || defined(__OS2__)) && \
( \
defined(__VISUALC__) || \
defined(__MINGW64__) || \
@@ -368,7 +363,13 @@ enum wxPosixPermissions
#define wxCRT_MkDirA wxPOSIX_IDENT(mkdir)
#define wxCRT_RmDirA wxPOSIX_IDENT(rmdir)
#ifdef wxHAS_HUGE_FILES
- #define wxCRT_StatA wxPOSIX_IDENT(stati64)
+ // MinGW-64 provides underscore-less versions of all file functions
+ // except for this one.
+ #ifdef __MINGW64__
+ #define wxCRT_StatA _stati64
+ #else
+ #define wxCRT_StatA wxPOSIX_IDENT(stati64)
+ #endif
#else
// Unfortunately Watcom is not consistent
#if defined(__OS2__) && defined(__WATCOMC__)
@@ -468,43 +469,6 @@ enum wxPosixPermissions
// private defines, undefine so that nobody gets tempted to use
#undef wxHAS_HUGE_FILES
#undef wxHAS_HUGE_STDIO_FILES
-#elif defined (__WXPALMOS__)
- typedef off_t wxFileOffset;
-#ifdef _LARGE_FILES
- #define wxFileOffsetFmtSpec wxLongLongFmtSpec
- wxCOMPILE_TIME_ASSERT( sizeof(off_t) == sizeof(wxLongLong_t), BadFileSizeType );
- // wxFile is present and supports large files
- #ifdef wxUSE_FILE
- #define wxHAS_LARGE_FILES
- #endif
- // wxFFile is present and supports large files
- #if SIZEOF_LONG == 8 || defined HAVE_FSEEKO
- #define wxHAS_LARGE_FFILES
- #endif
-#else
- #define wxFileOffsetFmtSpec wxT("")
-#endif
- #define wxClose close
- #define wxRead ::read
- #define wxWrite ::write
- #define wxLseek lseek
- #define wxSeek lseek
- #define wxFsync fsync
- #define wxEof eof
-
- #define wxCRT_MkDir mkdir
- #define wxCRT_RmDir rmdir
-
- #define wxTell(fd) lseek(fd, 0, SEEK_CUR)
-
- #define wxStructStat struct stat
-
- #define wxCRT_Open open
- #define wxCRT_Stat svfs_stat
- #define wxCRT_Lstat lstat
- #define wxCRT_Access access
-
- #define wxHAS_NATIVE_LSTAT
#else // Unix or Windows using unknown compiler, assume POSIX supported
typedef off_t wxFileOffset;
#ifdef HAVE_LARGEFILE_SUPPORT
@@ -764,9 +728,6 @@ WXDLLIMPEXP_BASE bool wxIsExecutable(const wxString &path);
// CYGWIN also uses UNIX settings
#define wxFILE_SEP_PATH wxFILE_SEP_PATH_UNIX
#define wxPATH_SEP wxPATH_SEP_UNIX
-#elif defined(__WXPALMOS__)
- #define wxFILE_SEP_PATH wxFILE_SEP_PATH_UNIX
- #define wxPATH_SEP wxPATH_SEP_UNIX
#elif defined(__MAC__)
#define wxFILE_SEP_PATH wxFILE_SEP_PATH_MAC
#define wxPATH_SEP wxPATH_SEP_MAC
diff --git a/Externals/wxWidgets3/include/wx/filehistory.h b/Externals/wxWidgets3/include/wx/filehistory.h
index a98668d6bd..83afeaa3ec 100644
--- a/Externals/wxWidgets3/include/wx/filehistory.h
+++ b/Externals/wxWidgets3/include/wx/filehistory.h
@@ -3,7 +3,7 @@
// Purpose: wxFileHistory class
// Author: Julian Smart, Vaclav Slavik
// Created: 2010-05-03
-// RCS-ID: $Id: filehistory.h 64240 2010-05-07 06:45:48Z VS $
+// RCS-ID: $Id: filehistory.h 70503 2012-02-03 17:27:13Z VZ $
// Copyright: (c) Julian Smart, Vaclav Slavik
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -23,6 +23,7 @@
class WXDLLIMPEXP_FWD_CORE wxMenu;
class WXDLLIMPEXP_FWD_BASE wxConfigBase;
+class WXDLLIMPEXP_FWD_BASE wxFileName;
// ----------------------------------------------------------------------------
// File history management
@@ -79,6 +80,10 @@ private:
// The ID of the first history menu item (Doesn't have to be wxID_FILE1)
wxWindowID m_idBase;
+ // Normalize a file name to canonical form. We have a special function for
+ // this to ensure the same normalization is used everywhere.
+ static wxString NormalizeFileName(const wxFileName& filename);
+
wxDECLARE_NO_COPY_CLASS(wxFileHistoryBase);
};
diff --git a/Externals/wxWidgets3/include/wx/filename.h b/Externals/wxWidgets3/include/wx/filename.h
index ca89cf8ff7..e1454406b7 100644
--- a/Externals/wxWidgets3/include/wx/filename.h
+++ b/Externals/wxWidgets3/include/wx/filename.h
@@ -4,7 +4,7 @@
// Author: Robert Roebling, Vadim Zeitlin
// Modified by:
// Created: 28.12.00
-// RCS-ID: $Id: filename.h 63886 2010-04-06 22:51:11Z FM $
+// RCS-ID: $Id: filename.h 70796 2012-03-04 00:29:31Z VZ $
// Copyright: (c) 2000 Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -40,7 +40,7 @@ class WXDLLIMPEXP_FWD_BASE wxFFile;
// this symbol is defined for the platforms where file systems use volumes in
// paths
-#if defined(__WXMSW__) || defined(__DOS__) || defined(__OS2__)
+#if defined(__WINDOWS__) || defined(__DOS__) || defined(__OS2__)
#define wxHAS_FILESYSTEM_VOLUMES
#endif
@@ -214,14 +214,20 @@ public:
!m_ext.empty() || m_hasExt;
}
- // does the file with this name exists?
+ // does the file with this name exist?
bool FileExists() const;
static bool FileExists( const wxString &file );
- // does the directory with this name exists?
+ // does the directory with this name exist?
bool DirExists() const;
static bool DirExists( const wxString &dir );
+ // does anything at all with this name (i.e. file, directory or some
+ // other file system object such as a device, socket, ...) exist?
+ bool Exists() const { return Exists(GetFullPath()); }
+ static bool Exists(const wxString& path);
+
+
// checks on most common flags for files/directories;
// more platform-specific features (like e.g. Unix permissions) are not
// available in wxFileName
diff --git a/Externals/wxWidgets3/include/wx/filepicker.h b/Externals/wxWidgets3/include/wx/filepicker.h
index 949f6c650d..7796ac33b3 100644
--- a/Externals/wxWidgets3/include/wx/filepicker.h
+++ b/Externals/wxWidgets3/include/wx/filepicker.h
@@ -5,7 +5,7 @@
// Modified by:
// Created: 14/4/2006
// Copyright: (c) Francesco Montorsi
-// RCS-ID: $Id: filepicker.h 58849 2009-02-12 21:09:20Z RR $
+// RCS-ID: $Id: filepicker.h 70043 2011-12-18 12:34:47Z VZ $
// Licence: wxWindows Licence
/////////////////////////////////////////////////////////////////////////////
@@ -87,9 +87,13 @@ public:
wxFileDirPickerWidgetBase() { }
virtual ~wxFileDirPickerWidgetBase() { }
+ // Path here is the name of the selected file or directory.
wxString GetPath() const { return m_path; }
virtual void SetPath(const wxString &str) { m_path=str; }
+ // Set the directory to open the file browse dialog at initially.
+ virtual void SetInitialDirectory(const wxString& dir) = 0;
+
// returns the picker widget cast to wxControl
virtual wxControl *AsControl() = 0;
@@ -109,12 +113,14 @@ protected:
#define wxFLP_OVERWRITE_PROMPT 0x1000
#define wxFLP_FILE_MUST_EXIST 0x2000
#define wxFLP_CHANGE_DIR 0x4000
+#define wxFLP_SMALL wxPB_SMALL
// NOTE: wxMULTIPLE is not supported !
#define wxDIRP_DIR_MUST_EXIST 0x0008
#define wxDIRP_CHANGE_DIR 0x0010
+#define wxDIRP_SMALL wxPB_SMALL
// map platform-dependent controls which implement the wxFileDirPickerWidgetBase
@@ -163,6 +169,12 @@ public: // public API
wxString GetPath() const;
void SetPath(const wxString &str);
+ // Set the directory to open the file browse dialog at initially.
+ void SetInitialDirectory(const wxString& dir)
+ {
+ m_pickerIface->SetInitialDirectory(dir);
+ }
+
public: // internal functions
void UpdatePickerFromTextCtrl();
@@ -253,13 +265,7 @@ public:
const wxSize& size = wxDefaultSize,
long style = wxFLP_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxFilePickerCtrlNameStr)
- {
- return wxFileDirPickerCtrlBase::CreateBase(parent, id, path,
- message, wildcard,
- pos, size, style,
- validator, name);
- }
+ const wxString& name = wxFilePickerCtrlNameStr);
void SetFileName(const wxFileName &filename)
{ SetPath(filename.GetFullPath()); }
@@ -306,8 +312,13 @@ protected:
// extracts the style for our picker from wxFileDirPickerCtrlBase's style
long GetPickerStyle(long style) const
{
- return (style & (wxFLP_OPEN|wxFLP_SAVE|wxFLP_OVERWRITE_PROMPT|
- wxFLP_FILE_MUST_EXIST|wxFLP_CHANGE_DIR|wxFLP_USE_TEXTCTRL));
+ return style & (wxFLP_OPEN |
+ wxFLP_SAVE |
+ wxFLP_OVERWRITE_PROMPT |
+ wxFLP_FILE_MUST_EXIST |
+ wxFLP_CHANGE_DIR |
+ wxFLP_USE_TEXTCTRL |
+ wxFLP_SMALL);
}
private:
@@ -358,14 +369,7 @@ public:
const wxSize& size = wxDefaultSize,
long style = wxDIRP_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxDirPickerCtrlNameStr)
- {
- return wxFileDirPickerCtrlBase::CreateBase
- (
- parent, id, path, message, wxEmptyString,
- pos, size, style, validator, name
- );
- }
+ const wxString& name = wxDirPickerCtrlNameStr);
void SetDirName(const wxFileName &dirname)
{ SetPath(dirname.GetPath()); }
@@ -409,7 +413,12 @@ protected:
// extracts the style for our picker from wxFileDirPickerCtrlBase's style
long GetPickerStyle(long style) const
- { return (style & (wxDIRP_DIR_MUST_EXIST|wxDIRP_CHANGE_DIR|wxDIRP_USE_TEXTCTRL)); }
+ {
+ return style & (wxDIRP_DIR_MUST_EXIST |
+ wxDIRP_CHANGE_DIR |
+ wxDIRP_USE_TEXTCTRL |
+ wxDIRP_SMALL);
+ }
private:
DECLARE_DYNAMIC_CLASS(wxDirPickerCtrl)
diff --git a/Externals/wxWidgets3/include/wx/font.h b/Externals/wxWidgets3/include/wx/font.h
index 9952472d18..6e3c5237ab 100644
--- a/Externals/wxWidgets3/include/wx/font.h
+++ b/Externals/wxWidgets3/include/wx/font.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 20.09.99
-// RCS-ID: $Id: font.h 67052 2011-02-27 12:47:05Z VZ $
+// RCS-ID: $Id: font.h 70446 2012-01-23 11:28:28Z VZ $
// Copyright: (c) wxWidgets team
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -227,6 +227,7 @@ public:
virtual wxFontStyle GetStyle() const = 0;
virtual wxFontWeight GetWeight() const = 0;
virtual bool GetUnderlined() const = 0;
+ virtual bool GetStrikethrough() const { return false; }
virtual wxString GetFaceName() const = 0;
virtual wxFontEncoding GetEncoding() const = 0;
virtual const wxNativeFontInfo *GetNativeFontInfo() const = 0;
@@ -244,6 +245,7 @@ public:
virtual void SetWeight( wxFontWeight weight ) = 0;
virtual void SetUnderlined( bool underlined ) = 0;
+ virtual void SetStrikethrough( bool WXUNUSED(strikethrough) ) {}
virtual void SetEncoding(wxFontEncoding encoding) = 0;
virtual bool SetFaceName( const wxString& faceName );
void SetNativeFontInfo(const wxNativeFontInfo& info)
@@ -277,7 +279,7 @@ public:
static void SetDefaultEncoding(wxFontEncoding encoding);
// this doesn't do anything and is kept for compatibility only
-#ifdef WXWIN_COMPATIBILITY_2_8
+#if WXWIN_COMPATIBILITY_2_8
wxDEPRECATED_INLINE(void SetNoAntiAliasing(bool no = true), wxUnusedVar(no););
wxDEPRECATED_INLINE(bool GetNoAntiAliasing() const, return false;)
#endif // WXWIN_COMPATIBILITY_2_8
@@ -290,6 +292,33 @@ protected:
// wxFONTFAMILY_UNKNOWN unlike the public method (see comment there).
virtual wxFontFamily DoGetFamily() const = 0;
+
+ // Helper functions to recover wxFONTSTYLE/wxFONTWEIGHT and underlined flg
+ // values from flags containing a combination of wxFONTFLAG_XXX.
+ static wxFontStyle GetStyleFromFlags(int flags)
+ {
+ return flags & wxFONTFLAG_ITALIC
+ ? wxFONTSTYLE_ITALIC
+ : flags & wxFONTFLAG_SLANT
+ ? wxFONTSTYLE_SLANT
+ : wxFONTSTYLE_NORMAL;
+ }
+
+ static wxFontWeight GetWeightFromFlags(int flags)
+ {
+ return flags & wxFONTFLAG_LIGHT
+ ? wxFONTWEIGHT_LIGHT
+ : flags & wxFONTFLAG_BOLD
+ ? wxFONTWEIGHT_BOLD
+ : wxFONTWEIGHT_NORMAL;
+ }
+
+ static bool GetUnderlinedFromFlags(int flags)
+ {
+ return (flags & wxFONTFLAG_UNDERLINED) != 0;
+ }
+
+
private:
// the currently default encoding: by default, it's the default system
// encoding, but may be changed by the application using
@@ -329,6 +358,7 @@ WXDLLIMPEXP_CORE bool wxFromString(const wxString& str, wxFontBase* font);
wxFont& MakeBold(); \
wxFont& MakeItalic(); \
wxFont& MakeUnderlined(); \
+ wxFont& MakeStrikethrough(); \
wxFont& MakeLarger() { return Scale(1.2f); } \
wxFont& MakeSmaller() { return Scale(1/1.2f); } \
wxFont& Scale(float x); \
@@ -336,14 +366,13 @@ WXDLLIMPEXP_CORE bool wxFromString(const wxString& str, wxFontBase* font);
wxFont Bold() const; \
wxFont Italic() const; \
wxFont Underlined() const; \
+ wxFont Strikethrough() const; \
wxFont Larger() const { return Scaled(1.2f); } \
wxFont Smaller() const { return Scaled(1/1.2f); } \
wxFont Scaled(float x) const
// include the real class declaration
-#if defined(__WXPALMOS__)
- #include "wx/palmos/font.h"
-#elif defined(__WXMSW__)
+#if defined(__WXMSW__)
#include "wx/msw/font.h"
#elif defined(__WXMOTIF__)
#include "wx/motif/font.h"
@@ -353,8 +382,6 @@ WXDLLIMPEXP_CORE bool wxFromString(const wxString& str, wxFontBase* font);
#include "wx/gtk1/font.h"
#elif defined(__WXX11__)
#include "wx/x11/font.h"
-#elif defined(__WXMGL__)
- #include "wx/mgl/font.h"
#elif defined(__WXDFB__)
#include "wx/dfb/font.h"
#elif defined(__WXMAC__)
diff --git a/Externals/wxWidgets3/include/wx/fontutil.h b/Externals/wxWidgets3/include/wx/fontutil.h
index a34bf5ef5e..232ef8a8e3 100644
--- a/Externals/wxWidgets3/include/wx/fontutil.h
+++ b/Externals/wxWidgets3/include/wx/fontutil.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 05.11.99
-// RCS-ID: $Id: fontutil.h 63918 2010-04-08 21:39:14Z SC $
+// RCS-ID: $Id: fontutil.h 70446 2012-01-23 11:28:28Z VZ $
// Copyright: (c) wxWidgets team
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -172,6 +172,7 @@ public:
wxFontStyle m_style;
wxFontWeight m_weight;
bool m_underlined;
+ bool m_strikethrough;
wxString m_faceName;
wxFontEncoding m_encoding;
public :
@@ -187,6 +188,7 @@ public :
wxFontStyle style;
wxFontWeight weight;
bool underlined;
+ bool strikethrough;
wxString faceName;
wxFontEncoding encoding;
#endif // platforms
@@ -224,6 +226,7 @@ public:
SetStyle((wxFontStyle)font.GetStyle());
SetWeight((wxFontWeight)font.GetWeight());
SetUnderlined(font.GetUnderlined());
+ SetStrikethrough(font.GetStrikethrough());
#if defined(__WXMSW__)
if ( font.IsUsingSizeInPixels() )
SetPixelSize(font.GetPixelSize());
@@ -252,6 +255,7 @@ public:
wxFontStyle GetStyle() const;
wxFontWeight GetWeight() const;
bool GetUnderlined() const;
+ bool GetStrikethrough() const;
wxString GetFaceName() const;
wxFontFamily GetFamily() const;
wxFontEncoding GetEncoding() const;
@@ -261,6 +265,7 @@ public:
void SetStyle(wxFontStyle style);
void SetWeight(wxFontWeight weight);
void SetUnderlined(bool underlined);
+ void SetStrikethrough(bool strikethrough);
bool SetFaceName(const wxString& facename);
void SetFamily(wxFontFamily family);
void SetEncoding(wxFontEncoding encoding);
diff --git a/Externals/wxWidgets3/include/wx/frame.h b/Externals/wxWidgets3/include/wx/frame.h
index e2f06c5c79..396dd98f5a 100644
--- a/Externals/wxWidgets3/include/wx/frame.h
+++ b/Externals/wxWidgets3/include/wx/frame.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 15.11.99
-// RCS-ID: $Id: frame.h 64278 2010-05-10 21:09:50Z VZ $
+// RCS-ID: $Id: frame.h 70345 2012-01-15 01:05:28Z VZ $
// Copyright: (c) wxWidgets team
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -39,7 +39,6 @@ class WXDLLIMPEXP_FWD_CORE wxToolBar;
#define wxFRAME_NO_TASKBAR 0x0002 // No taskbar button (MSW only)
#define wxFRAME_TOOL_WINDOW 0x0004 // No taskbar button, no system menu
#define wxFRAME_FLOAT_ON_PARENT 0x0008 // Always above its parent
-#define wxFRAME_SHAPED 0x0010 // Create a window that is able to be shaped
// ----------------------------------------------------------------------------
// wxFrame is a top-level window with optional menubar, statusbar and toolbar
@@ -252,9 +251,7 @@ protected:
#if defined(__WXUNIVERSAL__) // && !defined(__WXMICROWIN__)
#include "wx/univ/frame.h"
#else // !__WXUNIVERSAL__
- #if defined(__WXPALMOS__)
- #include "wx/palmos/frame.h"
- #elif defined(__WXMSW__)
+ #if defined(__WXMSW__)
#include "wx/msw/frame.h"
#elif defined(__WXGTK20__)
#include "wx/gtk/frame.h"
diff --git a/Externals/wxWidgets3/include/wx/fswatcher.h b/Externals/wxWidgets3/include/wx/fswatcher.h
index 446ac98245..239a5b4dad 100644
--- a/Externals/wxWidgets3/include/wx/fswatcher.h
+++ b/Externals/wxWidgets3/include/wx/fswatcher.h
@@ -3,7 +3,7 @@
// Purpose: wxFileSystemWatcherBase
// Author: Bartosz Bekier
// Created: 2009-05-23
-// RCS-ID: $Id: fswatcher.h 62474 2009-10-22 11:35:43Z VZ $
+// RCS-ID: $Id: fswatcher.h 70796 2012-03-04 00:29:31Z VZ $
// Copyright: (c) 2009 Bartosz Bekier
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -55,6 +55,16 @@ enum
wxFSW_EVENT_WARNING | wxFSW_EVENT_ERROR
};
+// Type of the path watched, used only internally for now.
+enum wxFSWPathType
+{
+ wxFSWPath_None, // Invalid value for an initialized watch.
+ wxFSWPath_File, // Plain file.
+ wxFSWPath_Dir, // Watch a directory and the files in it.
+ wxFSWPath_Tree // Watch a directory and all its children recursively.
+};
+
+
/**
* Event containing information about file system change.
*/
@@ -174,24 +184,24 @@ typedef void (wxEvtHandler::*wxFileSystemWatcherEventFunction)
#define wxFileSystemWatcherEventHandler(func) \
wxEVENT_HANDLER_CAST(wxFileSystemWatcherEventFunction, func)
+#define EVT_FSWATCHER(winid, func) \
+ wx__DECLARE_EVT1(wxEVT_FSWATCHER, winid, wxFileSystemWatcherEventHandler(func))
// ----------------------------------------------------------------------------
// wxFileSystemWatcherBase: interface for wxFileSystemWatcher
// ----------------------------------------------------------------------------
-/**
- * Simple container to store information about one watched file
- */
+// Simple container to store information about one watched path.
class wxFSWatchInfo
{
public:
wxFSWatchInfo() :
- m_path(wxEmptyString), m_events(-1)
+ m_events(-1), m_type(wxFSWPath_None)
{
}
- wxFSWatchInfo(const wxString& path, int events) :
- m_path(path), m_events(events)
+ wxFSWatchInfo(const wxString& path, int events, wxFSWPathType type) :
+ m_path(path), m_events(events), m_type(type)
{
}
@@ -205,9 +215,15 @@ public:
return m_events;
}
+ wxFSWPathType GetType() const
+ {
+ return m_type;
+ }
+
protected:
wxString m_path;
int m_events;
+ wxFSWPathType m_type;
};
WX_DECLARE_STRING_HASH_MAP(wxFSWatchInfo, wxFSWatchInfoMap);
@@ -304,6 +320,11 @@ protected:
return path_copy.GetFullPath();
}
+ // Delegates the real work of adding the path to wxFSWatcherImpl::Add() and
+ // updates m_watches if the new path was successfully added.
+ bool DoAdd(const wxFileName& path, int events, wxFSWPathType type);
+
+
wxFSWatchInfoMap m_watches; // path=>wxFSWatchInfo map
wxFSWatcherImpl* m_service; // file system events service
wxEvtHandler* m_owner; // handler for file system events
@@ -320,7 +341,7 @@ protected:
#elif defined(wxHAS_KQUEUE)
#include "wx/unix/fswatcher_kqueue.h"
#define wxFileSystemWatcher wxKqueueFileSystemWatcher
-#elif defined(__WXMSW__)
+#elif defined(__WINDOWS__)
#include "wx/msw/fswatcher.h"
#define wxFileSystemWatcher wxMSWFileSystemWatcher
#else
diff --git a/Externals/wxWidgets3/include/wx/gbsizer.h b/Externals/wxWidgets3/include/wx/gbsizer.h
index 582f2881bb..51dc057d3d 100644
--- a/Externals/wxWidgets3/include/wx/gbsizer.h
+++ b/Externals/wxWidgets3/include/wx/gbsizer.h
@@ -6,7 +6,7 @@
//
// Author: Robin Dunn
// Created: 03-Nov-2003
-// RCS-ID: $Id: gbsizer.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: gbsizer.h 69970 2011-12-10 04:34:06Z RD $
// Copyright: (c) Robin Dunn
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -115,26 +115,26 @@ public:
wxGBSizerItem( int width,
int height,
const wxGBPosition& pos,
- const wxGBSpan& span,
- int flag,
- int border,
- wxObject* userData);
+ const wxGBSpan& span=wxDefaultSpan,
+ int flag=0,
+ int border=0,
+ wxObject* userData=NULL);
// window
wxGBSizerItem( wxWindow *window,
const wxGBPosition& pos,
- const wxGBSpan& span,
- int flag,
- int border,
- wxObject* userData );
+ const wxGBSpan& span=wxDefaultSpan,
+ int flag=0,
+ int border=0,
+ wxObject* userData=NULL );
// subsizer
wxGBSizerItem( wxSizer *sizer,
const wxGBPosition& pos,
- const wxGBSpan& span,
- int flag,
- int border,
- wxObject* userData );
+ const wxGBSpan& span=wxDefaultSpan,
+ int flag=0,
+ int border=0,
+ wxObject* userData=NULL );
// default ctor
wxGBSizerItem();
@@ -160,7 +160,7 @@ public:
// is successful and after the next Layout the item will be resized.
bool SetSpan( const wxGBSpan& span );
- // Returns true if this item and the other item instersect
+ // Returns true if this item and the other item intersect
bool Intersects(const wxGBSizerItem& other);
// Returns true if the given pos/span would intersect with this item.
diff --git a/Externals/wxWidgets3/include/wx/gdicmn.h b/Externals/wxWidgets3/include/wx/gdicmn.h
index 101c9a3907..d69b5f89be 100644
--- a/Externals/wxWidgets3/include/wx/gdicmn.h
+++ b/Externals/wxWidgets3/include/wx/gdicmn.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
-// RCS-ID: $Id: gdicmn.h 66306 2010-12-03 12:39:43Z VZ $
+// RCS-ID: $Id: gdicmn.h 70789 2012-03-04 00:28:58Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -59,8 +59,10 @@ enum wxBitmapType
wxBITMAP_TYPE_XBM_DATA,
wxBITMAP_TYPE_XPM,
wxBITMAP_TYPE_XPM_DATA,
- wxBITMAP_TYPE_TIF,
- wxBITMAP_TYPE_TIF_RESOURCE,
+ wxBITMAP_TYPE_TIFF,
+ wxBITMAP_TYPE_TIF = wxBITMAP_TYPE_TIFF,
+ wxBITMAP_TYPE_TIFF_RESOURCE,
+ wxBITMAP_TYPE_TIF_RESOURCE = wxBITMAP_TYPE_TIFF_RESOURCE,
wxBITMAP_TYPE_GIF,
wxBITMAP_TYPE_GIF_RESOURCE,
wxBITMAP_TYPE_PNG,
@@ -158,14 +160,18 @@ enum wxStockCursor
// macros
// ---------------------------------------------------------------------------
+#if defined(__WINDOWS__) || defined(__WXPM__)
+ #define wxHAS_IMAGES_IN_RESOURCES
+#endif
+
/* Useful macro for creating icons portably, for example:
wxIcon *icon = new wxICON(sample);
expands into:
- wxIcon *icon = new wxIcon("sample"); // On wxMSW
- wxIcon *icon = new wxIcon(sample_xpm); // On wxGTK
+ wxIcon *icon = new wxIcon("sample"); // On Windows
+ wxIcon *icon = new wxIcon(sample_xpm); // On wxGTK/Linux
*/
#ifdef __WXMSW__
@@ -174,9 +180,6 @@ enum wxStockCursor
#elif defined(__WXPM__)
// Load from a resource
#define wxICON(X) wxIcon(wxT(#X))
-#elif defined(__WXMGL__)
- // Initialize from an included XPM
- #define wxICON(X) wxIcon( X##_xpm )
#elif defined(__WXDFB__)
// Initialize from an included XPM
#define wxICON(X) wxIcon( X##_xpm )
@@ -202,12 +205,11 @@ enum wxStockCursor
*/
#if defined(__WXMSW__) || defined(__WXPM__)
- #define wxBITMAP(name) wxBitmap(wxT(#name), wxBITMAP_TYPE_RESOURCE)
+ #define wxBITMAP(name) wxBitmap(wxT(#name), wxBITMAP_TYPE_BMP_RESOURCE)
#elif defined(__WXGTK__) || \
defined(__WXMOTIF__) || \
defined(__WXX11__) || \
defined(__WXMAC__) || \
- defined(__WXMGL__) || \
defined(__WXDFB__) || \
defined(__WXCOCOA__)
// Initialize from an included XPM
@@ -900,7 +902,7 @@ class WXDLLIMPEXP_CORE wxResourceCache: public wxList
{
public:
wxResourceCache() { }
-#if !wxUSE_STL
+#if !wxUSE_STD_CONTAINERS
wxResourceCache(const unsigned int keyType) : wxList(keyType) { }
#endif
virtual ~wxResourceCache();
diff --git a/Externals/wxWidgets3/include/wx/gdiobj.h b/Externals/wxWidgets3/include/wx/gdiobj.h
index fc018231ba..5e07df0d81 100644
--- a/Externals/wxWidgets3/include/wx/gdiobj.h
+++ b/Externals/wxWidgets3/include/wx/gdiobj.h
@@ -5,7 +5,7 @@
// Modified by:
// Created:
// Copyright: (c) Julian Smart
-// RCS-ID: $Id: gdiobj.h 66374 2010-12-14 18:43:49Z VZ $
+// RCS-ID: $Id: gdiobj.h 70345 2012-01-15 01:05:28Z VZ $
// Licence: wxWindows Licence
/////////////////////////////////////////////////////////////////////////////
@@ -57,7 +57,7 @@ public:
// because it's still widely used)
bool Ok() const { return IsOk(); }
-#if defined(__WXMSW__) || defined(__WXPM__) || defined(__WXPALMOS__)
+#if defined(__WXMSW__) || defined(__WXPM__)
// Creates the resource
virtual bool RealizeResource() { return false; }
diff --git a/Externals/wxWidgets3/include/wx/generic/aboutdlgg.h b/Externals/wxWidgets3/include/wx/generic/aboutdlgg.h
index 9311de0abc..f5b1365953 100644
--- a/Externals/wxWidgets3/include/wx/generic/aboutdlgg.h
+++ b/Externals/wxWidgets3/include/wx/generic/aboutdlgg.h
@@ -3,7 +3,7 @@
// Purpose: generic wxAboutBox() implementation
// Author: Vadim Zeitlin
// Created: 2006-10-07
-// RCS-ID: $Id: aboutdlgg.h 60389 2009-04-26 13:41:21Z VZ $
+// RCS-ID: $Id: aboutdlgg.h 70413 2012-01-20 22:11:32Z VZ $
// Copyright: (c) 2006 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -21,6 +21,16 @@ class WXDLLIMPEXP_FWD_ADV wxAboutDialogInfo;
class WXDLLIMPEXP_FWD_CORE wxSizer;
class WXDLLIMPEXP_FWD_CORE wxSizerFlags;
+// Under GTK and OS X "About" dialogs are not supposed to be modal, unlike MSW
+// and, presumably, all the other platforms.
+#ifndef wxUSE_MODAL_ABOUT_DIALOG
+ #if defined(__WXGTK__) || defined(__WXMAC__)
+ #define wxUSE_MODAL_ABOUT_DIALOG 0
+ #else
+ #define wxUSE_MODAL_ABOUT_DIALOG 1
+ #endif
+#endif // wxUSE_MODAL_ABOUT_DIALOG not defined
+
// ----------------------------------------------------------------------------
// wxGenericAboutDialog: generic "About" dialog implementation
// ----------------------------------------------------------------------------
@@ -73,6 +83,12 @@ private:
// common part of all ctors
void Init() { m_sizerText = NULL; }
+#if !wxUSE_MODAL_ABOUT_DIALOG
+ // An explicit handler for deleting the dialog when it's closed is needed
+ // when we show it non-modally.
+ void OnCloseWindow(wxCloseEvent& event);
+ void OnOK(wxCommandEvent& event);
+#endif // !wxUSE_MODAL_ABOUT_DIALOG
wxSizer *m_sizerText;
};
diff --git a/Externals/wxWidgets3/include/wx/generic/choicdgg.h b/Externals/wxWidgets3/include/wx/generic/choicdgg.h
index 0cbf06d201..431c686b59 100644
--- a/Externals/wxWidgets3/include/wx/generic/choicdgg.h
+++ b/Externals/wxWidgets3/include/wx/generic/choicdgg.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by: 03.11.00: VZ to add wxArrayString and multiple sel functions
// Created: 01/02/97
-// RCS-ID: $Id: choicdgg.h 63731 2010-03-21 11:06:31Z VZ $
+// RCS-ID: $Id: choicdgg.h 70642 2012-02-20 21:56:18Z VZ $
// Copyright: (c) wxWidgets team
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -106,39 +106,112 @@ public:
const wxString& caption,
int n,
const wxString *choices,
- char **clientData = (char **)NULL,
+ void **clientData = NULL,
long style = wxCHOICEDLG_STYLE,
- const wxPoint& pos = wxDefaultPosition);
+ const wxPoint& pos = wxDefaultPosition)
+ {
+ Create(parent, message, caption, n, choices, clientData, style, pos);
+ }
+
wxSingleChoiceDialog(wxWindow *parent,
const wxString& message,
const wxString& caption,
const wxArrayString& choices,
- char **clientData = (char **)NULL,
+ void **clientData = NULL,
long style = wxCHOICEDLG_STYLE,
- const wxPoint& pos = wxDefaultPosition);
+ const wxPoint& pos = wxDefaultPosition)
+ {
+ Create(parent, message, caption, choices, clientData, style, pos);
+ }
bool Create(wxWindow *parent,
const wxString& message,
const wxString& caption,
int n,
const wxString *choices,
- char **clientData = (char **)NULL,
+ void **clientData = NULL,
long style = wxCHOICEDLG_STYLE,
const wxPoint& pos = wxDefaultPosition);
bool Create(wxWindow *parent,
const wxString& message,
const wxString& caption,
const wxArrayString& choices,
- char **clientData = (char **)NULL,
+ void **clientData = NULL,
long style = wxCHOICEDLG_STYLE,
const wxPoint& pos = wxDefaultPosition);
void SetSelection(int sel);
int GetSelection() const { return m_selection; }
wxString GetStringSelection() const { return m_stringSelection; }
+ void* GetSelectionData() const { return m_clientData; }
- // obsolete function (NB: no need to make it return wxChar, it's untyped)
- char *GetSelectionClientData() const { return (char *)m_clientData; }
+#if WXWIN_COMPATIBILITY_2_8
+ // Deprecated overloads taking "char**" client data.
+ wxDEPRECATED_CONSTRUCTOR
+ (
+ wxSingleChoiceDialog(wxWindow *parent,
+ const wxString& message,
+ const wxString& caption,
+ int n,
+ const wxString *choices,
+ char **clientData,
+ long style = wxCHOICEDLG_STYLE,
+ const wxPoint& pos = wxDefaultPosition)
+ )
+ {
+ Create(parent, message, caption, n, choices,
+ (void**)clientData, style, pos);
+ }
+
+ wxDEPRECATED_CONSTRUCTOR
+ (
+ wxSingleChoiceDialog(wxWindow *parent,
+ const wxString& message,
+ const wxString& caption,
+ const wxArrayString& choices,
+ char **clientData,
+ long style = wxCHOICEDLG_STYLE,
+ const wxPoint& pos = wxDefaultPosition)
+ )
+ {
+ Create(parent, message, caption, choices,
+ (void**)clientData, style, pos);
+ }
+
+ wxDEPRECATED_INLINE
+ (
+ bool Create(wxWindow *parent,
+ const wxString& message,
+ const wxString& caption,
+ int n,
+ const wxString *choices,
+ char **clientData,
+ long style = wxCHOICEDLG_STYLE,
+ const wxPoint& pos = wxDefaultPosition),
+ return Create(parent, message, caption, n, choices,
+ (void**)clientData, style, pos);
+ )
+
+ wxDEPRECATED_INLINE
+ (
+ bool Create(wxWindow *parent,
+ const wxString& message,
+ const wxString& caption,
+ const wxArrayString& choices,
+ char **clientData,
+ long style = wxCHOICEDLG_STYLE,
+ const wxPoint& pos = wxDefaultPosition),
+ return Create(parent, message, caption, choices,
+ (void**)clientData, style, pos);
+ )
+
+ // NB: no need to make it return wxChar, it's untyped
+ wxDEPRECATED_ACCESSOR
+ (
+ char* GetSelectionClientData() const,
+ (char*)GetSelectionData()
+ )
+#endif // WXWIN_COMPATIBILITY_2_8
// implementation from now on
void OnOK(wxCommandEvent& event);
diff --git a/Externals/wxWidgets3/include/wx/generic/collpaneg.h b/Externals/wxWidgets3/include/wx/generic/collpaneg.h
index 3a69a686d3..e06b361b18 100644
--- a/Externals/wxWidgets3/include/wx/generic/collpaneg.h
+++ b/Externals/wxWidgets3/include/wx/generic/collpaneg.h
@@ -4,7 +4,7 @@
// Author: Francesco Montorsi
// Modified by:
// Created: 8/10/2006
-// RCS-ID: $Id: collpaneg.h 58606 2009-02-01 20:59:03Z FM $
+// RCS-ID: $Id: collpaneg.h 68366 2011-07-24 22:19:33Z VZ $
// Copyright: (c) Francesco Montorsi
// Licence: wxWindows Licence
/////////////////////////////////////////////////////////////////////////////
@@ -25,7 +25,8 @@ class WXDLLIMPEXP_FWD_CORE wxDisclosureTriangle;
// wxGenericCollapsiblePane
// ----------------------------------------------------------------------------
-class WXDLLIMPEXP_CORE wxGenericCollapsiblePane : public wxCollapsiblePaneBase
+class WXDLLIMPEXP_CORE wxGenericCollapsiblePane :
+ public wxNavigationEnabled
{
public:
wxGenericCollapsiblePane() { Init(); }
@@ -103,7 +104,6 @@ private:
void OnButton(wxCommandEvent &ev);
void OnSize(wxSizeEvent &ev);
- WX_DECLARE_CONTROL_CONTAINER();
DECLARE_DYNAMIC_CLASS(wxGenericCollapsiblePane)
DECLARE_EVENT_TABLE()
};
diff --git a/Externals/wxWidgets3/include/wx/generic/custombgwin.h b/Externals/wxWidgets3/include/wx/generic/custombgwin.h
new file mode 100644
index 0000000000..a7ed85d995
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/generic/custombgwin.h
@@ -0,0 +1,96 @@
+///////////////////////////////////////////////////////////////////////////////
+// Name: wx/generic/custombgwin.h
+// Purpose: Generic implementation of wxCustomBackgroundWindow.
+// Author: Vadim Zeitlin
+// Created: 2011-10-10
+// RCS-ID: $Id: custombgwin.h 69378 2011-10-11 17:07:43Z VZ $
+// Copyright: (c) 2011 Vadim Zeitlin
+// Licence: wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_GENERIC_CUSTOMBGWIN_H_
+#define _WX_GENERIC_CUSTOMBGWIN_H_
+
+#include "wx/bitmap.h"
+
+// A helper to avoid template bloat: this class contains all type-independent
+// code of wxCustomBackgroundWindow<> below.
+class wxCustomBackgroundWindowGenericBase : public wxCustomBackgroundWindowBase
+{
+public:
+ wxCustomBackgroundWindowGenericBase() { }
+
+protected:
+ void DoEraseBackground(wxEraseEvent& event, wxWindow* win)
+ {
+ wxDC& dc = *event.GetDC();
+
+ const wxSize clientSize = win->GetClientSize();
+ const wxSize bitmapSize = m_bitmapBg.GetSize();
+
+ for ( int x = 0; x < clientSize.x; x += bitmapSize.x )
+ {
+ for ( int y = 0; y < clientSize.y; y += bitmapSize.y )
+ {
+ dc.DrawBitmap(m_bitmapBg, x, y);
+ }
+ }
+ }
+
+
+ // The bitmap used for painting the background if valid.
+ wxBitmap m_bitmapBg;
+
+
+ wxDECLARE_NO_COPY_CLASS(wxCustomBackgroundWindowGenericBase);
+};
+
+// ----------------------------------------------------------------------------
+// wxCustomBackgroundWindow
+// ----------------------------------------------------------------------------
+
+template
+class wxCustomBackgroundWindow : public W,
+ public wxCustomBackgroundWindowGenericBase
+{
+public:
+ typedef W BaseWindowClass;
+
+ wxCustomBackgroundWindow() { }
+
+protected:
+ virtual void DoSetBackgroundBitmap(const wxBitmap& bmp)
+ {
+ m_bitmapBg = bmp;
+
+ if ( m_bitmapBg.IsOk() )
+ {
+ BaseWindowClass::Connect
+ (
+ wxEVT_ERASE_BACKGROUND,
+ wxEraseEventHandler(wxCustomBackgroundWindow::OnEraseBackground)
+ );
+ }
+ else
+ {
+ BaseWindowClass::Disconnect
+ (
+ wxEVT_ERASE_BACKGROUND,
+ wxEraseEventHandler(wxCustomBackgroundWindow::OnEraseBackground)
+ );
+ }
+ }
+
+private:
+ // Event handler for erasing the background which is only used when we have
+ // a valid background bitmap.
+ void OnEraseBackground(wxEraseEvent& event)
+ {
+ DoEraseBackground(event, this);
+ }
+
+
+ wxDECLARE_NO_COPY_TEMPLATE_CLASS(wxCustomBackgroundWindow, W);
+};
+
+#endif // _WX_GENERIC_CUSTOMBGWIN_H_
diff --git a/Externals/wxWidgets3/include/wx/generic/dataview.h b/Externals/wxWidgets3/include/wx/generic/dataview.h
index 30c9893749..af16d65218 100644
--- a/Externals/wxWidgets3/include/wx/generic/dataview.h
+++ b/Externals/wxWidgets3/include/wx/generic/dataview.h
@@ -3,7 +3,7 @@
// Purpose: wxDataViewCtrl generic implementation header
// Author: Robert Roebling
// Modified By: Bo Yang
-// Id: $Id: dataview.h 65948 2010-10-30 15:57:41Z VS $
+// Id: $Id: dataview.h 70717 2012-02-27 18:54:02Z VZ $
// Copyright: (c) 1998 Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -68,10 +68,12 @@ public:
virtual void SetFlags(int flags) { m_flags = flags; UpdateDisplay(); }
virtual int GetFlags() const { return m_flags; }
- virtual void SetAsSortKey(bool sort = true) { m_sort = sort; UpdateDisplay(); }
virtual bool IsSortKey() const { return m_sort; }
- virtual void SetSortOrder(bool ascending) { m_sortAscending = ascending; UpdateDisplay(); }
+ virtual void UnsetAsSortKey() { m_sort = false; UpdateDisplay(); }
+
+ virtual void SetSortOrder(bool ascending);
+
virtual bool IsSortOrderAscending() const { return m_sortAscending; }
virtual void SetBitmap( const wxBitmap& bitmap ) { wxDataViewColumnBase::SetBitmap(bitmap); UpdateDisplay(); }
@@ -155,7 +157,7 @@ public:
virtual wxDataViewColumn *GetSortingColumn() const;
- virtual wxDataViewItem GetSelection() const;
+ virtual int GetSelectedItemsCount() const;
virtual int GetSelections( wxDataViewItemArray & sel ) const;
virtual void SetSelections( const wxDataViewItemArray & sel );
virtual void Select( const wxDataViewItem & item );
@@ -172,6 +174,8 @@ public:
virtual wxRect GetItemRect( const wxDataViewItem & item,
const wxDataViewColumn *column = NULL ) const;
+ virtual bool SetRowHeight( int rowHeight );
+
virtual void Expand( const wxDataViewItem & item );
virtual void Collapse( const wxDataViewItem & item );
virtual bool IsExpanded( const wxDataViewItem & item ) const;
@@ -185,19 +189,18 @@ public:
virtual wxBorder GetDefaultBorder() const;
- void StartEditor( const wxDataViewItem & item, unsigned int column );
+ virtual void EditItem(const wxDataViewItem& item, const wxDataViewColumn *column);
+
+ // These methods are specific to generic wxDataViewCtrl implementation and
+ // should not be used in portable code.
+ wxColour GetAlternateRowColour() const { return m_alternateRowColour; }
+ void SetAlternateRowColour(const wxColour& colour);
protected:
- virtual int GetSelections( wxArrayInt & sel ) const;
- virtual void SetSelections( const wxArrayInt & sel );
- virtual void Select( int row );
- virtual void Unselect( int row );
- virtual bool IsSelected( int row ) const;
- virtual void SelectRange( int from, int to );
- virtual void UnselectRange( int from, int to );
-
virtual void EnsureVisible( int row, int column );
+ // Notice that row here may be invalid (i.e. >= GetRowCount()), this is not
+ // an error and this function simply returns an invalid item in this case.
virtual wxDataViewItem GetItemByRow( unsigned int row ) const;
virtual int GetRowByItem( const wxDataViewItem & item ) const;
@@ -226,21 +229,32 @@ public: // utility functions not part of the API
// return the column displayed at the given position in the control
wxDataViewColumn *GetColumnAt(unsigned int pos) const;
+ virtual wxDataViewColumn *GetCurrentColumn() const;
+
+ virtual void OnInternalIdle();
+
private:
virtual wxDataViewItem DoGetCurrentItem() const;
virtual void DoSetCurrentItem(const wxDataViewItem& item);
void InvalidateColBestWidths();
void InvalidateColBestWidth(int idx);
+ void UpdateColWidths();
wxDataViewColumnList m_cols;
// cached column best widths or 0 if not computed, values are for
// respective columns from m_cols and the arrays have same size
wxVector m_colsBestWidths;
+ // m_colsBestWidths partially invalid, needs recomputing
+ bool m_colsDirty;
+
wxDataViewModelNotifier *m_notifier;
wxDataViewMainWindow *m_clientArea;
wxDataViewHeaderWindow *m_headerArea;
+ // user defined color to draw row lines, may be invalid
+ wxColour m_alternateRowColour;
+
// the index of the column currently used for sorting or -1
int m_sortingColumnIdx;
diff --git a/Externals/wxWidgets3/include/wx/generic/datectrl.h b/Externals/wxWidgets3/include/wx/generic/datectrl.h
index b92e89990b..fe7dd57299 100644
--- a/Externals/wxWidgets3/include/wx/generic/datectrl.h
+++ b/Externals/wxWidgets3/include/wx/generic/datectrl.h
@@ -4,7 +4,7 @@
// Author: Andreas Pflug
// Modified by:
// Created: 2005-01-19
-// RCS-ID: $Id: datectrl.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: datectrl.h 70736 2012-02-28 14:41:30Z VZ $
// Copyright: (c) 2005 Andreas Pflug
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -82,6 +82,10 @@ private:
void OnSize(wxSizeEvent& event);
void OnFocus(wxFocusEvent& event);
+#ifdef __WXOSX_COCOA__
+ virtual void OSXGenerateEvent(const wxDateTime& WXUNUSED(dt)) { }
+#endif
+
wxComboCtrl* m_combo;
wxCalendarComboPopup* m_popup;
diff --git a/Externals/wxWidgets3/include/wx/generic/dvrenderer.h b/Externals/wxWidgets3/include/wx/generic/dvrenderer.h
index cfa70c9067..8e4eb7761c 100644
--- a/Externals/wxWidgets3/include/wx/generic/dvrenderer.h
+++ b/Externals/wxWidgets3/include/wx/generic/dvrenderer.h
@@ -3,7 +3,7 @@
// Purpose: wxDataViewRenderer for generic wxDataViewCtrl implementation
// Author: Robert Roebling, Vadim Zeitlin
// Created: 2009-11-07 (extracted from wx/generic/dataview.h)
-// RCS-ID: $Id: dvrenderer.h 67099 2011-03-01 12:16:49Z VS $
+// RCS-ID: $Id: dvrenderer.h 69473 2011-10-19 16:20:17Z VS $
// Copyright: (c) 2006 Robert Roebling
// (c) 2009 Vadim Zeitlin
// Licence: wxWindows licence
@@ -41,23 +41,16 @@ public:
// implementation
- // These callbacks are used by generic implementation of wxDVC itself.
- // They're different from the corresponding Activate/LeftClick() methods
- // which should only be overridable for the custom renderers while the
- // generic implementation uses these ones for all of them, including the
- // standard ones.
+ // This callback is used by generic implementation of wxDVC itself. It's
+ // different from the corresponding ActivateCell() method which should only
+ // be overridable for the custom renderers while the generic implementation
+ // uses this one for all of them, including the standard ones.
- virtual bool WXOnActivate(const wxRect& WXUNUSED(cell),
- wxDataViewModel *WXUNUSED(model),
- const wxDataViewItem & WXUNUSED(item),
- unsigned int WXUNUSED(col))
- { return false; }
-
- virtual bool WXOnLeftClick(const wxPoint& WXUNUSED(cursor),
- const wxRect& WXUNUSED(cell),
- wxDataViewModel *WXUNUSED(model),
- const wxDataViewItem & WXUNUSED(item),
- unsigned int WXUNUSED(col) )
+ virtual bool WXActivateCell(const wxRect& WXUNUSED(cell),
+ wxDataViewModel *WXUNUSED(model),
+ const wxDataViewItem & WXUNUSED(item),
+ unsigned int WXUNUSED(col),
+ const wxMouseEvent* WXUNUSED(mouseEvent))
{ return false; }
private:
diff --git a/Externals/wxWidgets3/include/wx/generic/dvrenderers.h b/Externals/wxWidgets3/include/wx/generic/dvrenderers.h
index 14040bdaa5..e5ca2c71ec 100644
--- a/Externals/wxWidgets3/include/wx/generic/dvrenderers.h
+++ b/Externals/wxWidgets3/include/wx/generic/dvrenderers.h
@@ -3,7 +3,7 @@
// Purpose: All generic wxDataViewCtrl renderer classes
// Author: Robert Roebling, Vadim Zeitlin
// Created: 2009-11-07 (extracted from wx/generic/dataview.h)
-// RCS-ID: $Id: dvrenderers.h 67099 2011-03-01 12:16:49Z VS $
+// RCS-ID: $Id: dvrenderers.h 69473 2011-10-19 16:20:17Z VS $
// Copyright: (c) 2006 Robert Roebling
// (c) 2009 Vadim Zeitlin
// Licence: wxWindows licence
@@ -26,21 +26,13 @@ public:
// see the explanation of the following WXOnXXX() methods in wx/generic/dvrenderer.h
- virtual bool WXOnActivate(const wxRect& cell,
- wxDataViewModel *model,
- const wxDataViewItem& item,
- unsigned int col)
+ virtual bool WXActivateCell(const wxRect& cell,
+ wxDataViewModel *model,
+ const wxDataViewItem& item,
+ unsigned int col,
+ const wxMouseEvent *mouseEvent)
{
- return Activate(cell, model, item, col);
- }
-
- virtual bool WXOnLeftClick(const wxPoint& cursor,
- const wxRect& cell,
- wxDataViewModel *model,
- const wxDataViewItem &item,
- unsigned int col)
- {
- return LeftClick(cursor, cell, model, item, col);
+ return ActivateCell(cell, model, item, col, mouseEvent);
}
private:
@@ -67,9 +59,9 @@ public:
// in-place editing
virtual bool HasEditorCtrl() const;
- virtual wxControl* CreateEditorCtrl( wxWindow *parent, wxRect labelRect,
- const wxVariant &value );
- virtual bool GetValueFromEditorCtrl( wxControl* editor, wxVariant &value );
+ virtual wxWindow* CreateEditorCtrl( wxWindow *parent, wxRect labelRect,
+ const wxVariant &value );
+ virtual bool GetValueFromEditorCtrl( wxWindow* editor, wxVariant &value );
protected:
wxString m_text;
@@ -121,11 +113,11 @@ public:
wxSize GetSize() const;
// Implementation only, don't use nor override
- virtual bool WXOnLeftClick(const wxPoint& cursor,
- const wxRect& cell,
- wxDataViewModel *model,
- const wxDataViewItem& item,
- unsigned int col);
+ virtual bool WXActivateCell(const wxRect& cell,
+ wxDataViewModel *model,
+ const wxDataViewItem& item,
+ unsigned int col,
+ const wxMouseEvent *mouseEvent);
private:
bool m_toggle;
@@ -177,9 +169,9 @@ public:
virtual wxSize GetSize() const;
virtual bool HasEditorCtrl() const { return true; }
- virtual wxControl* CreateEditorCtrl( wxWindow *parent, wxRect labelRect,
- const wxVariant &value );
- virtual bool GetValueFromEditorCtrl( wxControl* editor, wxVariant &value );
+ virtual wxWindow* CreateEditorCtrl( wxWindow *parent, wxRect labelRect,
+ const wxVariant &value );
+ virtual bool GetValueFromEditorCtrl( wxWindow* editor, wxVariant &value );
private:
wxDataViewIconText m_value;
@@ -188,36 +180,5 @@ protected:
DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewIconTextRenderer)
};
-// ---------------------------------------------------------
-// wxDataViewDateRenderer
-// ---------------------------------------------------------
-
-class WXDLLIMPEXP_ADV wxDataViewDateRenderer: public wxDataViewRenderer
-{
-public:
- wxDataViewDateRenderer( const wxString &varianttype = wxT("datetime"),
- wxDataViewCellMode mode = wxDATAVIEW_CELL_ACTIVATABLE,
- int align = wxDVR_DEFAULT_ALIGNMENT );
-
- bool SetValue( const wxVariant &value );
- bool GetValue( wxVariant& value ) const;
-
- virtual bool Render( wxRect cell, wxDC *dc, int state );
- virtual wxSize GetSize() const;
-
- // Implementation only, don't use nor override
- virtual bool WXOnActivate(const wxRect& cell,
- wxDataViewModel *model,
- const wxDataViewItem& item,
- unsigned int col);
-
-private:
- wxDateTime m_date;
-
-protected:
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewDateRenderer)
-};
-
-
#endif // _WX_GENERIC_DVRENDERERS_H_
diff --git a/Externals/wxWidgets3/include/wx/generic/filepickerg.h b/Externals/wxWidgets3/include/wx/generic/filepickerg.h
index 34749fb190..f1283915c1 100644
--- a/Externals/wxWidgets3/include/wx/generic/filepickerg.h
+++ b/Externals/wxWidgets3/include/wx/generic/filepickerg.h
@@ -5,7 +5,7 @@
// Modified by:
// Created: 14/4/2006
// Copyright: (c) Francesco Montorsi
-// RCS-ID: $Id: filepickerg.h 63690 2010-03-16 00:23:57Z VZ $
+// RCS-ID: $Id: filepickerg.h 70043 2011-12-18 12:34:47Z VZ $
// Licence: wxWindows Licence
/////////////////////////////////////////////////////////////////////////////
@@ -49,7 +49,7 @@ public:
virtual wxControl *AsControl() { return this; }
-public: // overrideable
+public: // overridable
virtual wxDialog *CreateDialog() = 0;
@@ -58,6 +58,8 @@ public: // overrideable
virtual wxEventType GetEventType() const = 0;
+ virtual void SetInitialDirectory(const wxString& dir);
+
public:
bool Create(wxWindow *parent, wxWindowID id,
@@ -82,6 +84,9 @@ protected:
// just doesn't make sense to use picker styles for wxButton anyhow
long m_pickerStyle;
+ // Initial directory set by SetInitialDirectory() call or empty.
+ wxString m_initialDir;
+
private:
// common part of all ctors
void Init() { m_pickerStyle = -1; }
@@ -114,7 +119,7 @@ public:
pos, size, style, validator, name);
}
-public: // overrideable
+public: // overridable
virtual long GetDialogStyle() const
{
@@ -140,16 +145,7 @@ public: // overrideable
return filedlgstyle;
}
- virtual wxDialog *CreateDialog()
- {
- wxFileDialog *p = new wxFileDialog(GetDialogParent(), m_message,
- wxEmptyString, wxEmptyString,
- m_wildcard, GetDialogStyle());
-
- // this sets both the default folder and the default file of the dialog
- p->SetPath(m_path);
- return p;
- }
+ virtual wxDialog *CreateDialog();
wxEventType GetEventType() const
{ return wxEVT_COMMAND_FILEPICKER_CHANGED; }
@@ -160,6 +156,10 @@ protected:
void UpdatePathFromDialog(wxDialog *p)
{ m_path = wxStaticCast(p, wxFileDialog)->GetPath(); }
+ // Set the initial directory for the dialog but without overriding the
+ // directory of the currently selected file, if any.
+ void DoSetInitialDirectory(wxFileDialog* dialog, const wxString& dir);
+
private:
DECLARE_DYNAMIC_CLASS(wxGenericFileButton)
};
@@ -190,7 +190,7 @@ public:
pos, size, style, validator, name);
}
-public: // overrideable
+public: // overridable
virtual long GetDialogStyle() const
{
@@ -204,11 +204,7 @@ public: // overrideable
return dirdlgstyle;
}
- virtual wxDialog *CreateDialog()
- {
- return new wxDirDialog(GetDialogParent(), m_message, m_path,
- GetDialogStyle());
- }
+ virtual wxDialog *CreateDialog();
wxEventType GetEventType() const
{ return wxEVT_COMMAND_DIRPICKER_CHANGED; }
diff --git a/Externals/wxWidgets3/include/wx/generic/grid.h b/Externals/wxWidgets3/include/wx/generic/grid.h
index 18e5a267af..21b380023e 100644
--- a/Externals/wxWidgets3/include/wx/generic/grid.h
+++ b/Externals/wxWidgets3/include/wx/generic/grid.h
@@ -4,7 +4,7 @@
// Author: Michael Bedward (based on code by Julian Smart, Robin Dunn)
// Modified by: Santiago Palacios
// Created: 1/08/1999
-// RCS-ID: $Id: grid.h 65451 2010-08-30 22:18:52Z VZ $
+// RCS-ID: $Id: grid.h 70825 2012-03-06 10:23:44Z SC $
// Copyright: (c) Michael Bedward
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -432,9 +432,9 @@ public:
void SetKind(wxAttrKind kind) { m_attrkind = kind; }
// accessors
- bool HasTextColour() const { return m_colText.Ok(); }
- bool HasBackgroundColour() const { return m_colBack.Ok(); }
- bool HasFont() const { return m_font.Ok(); }
+ bool HasTextColour() const { return m_colText.IsOk(); }
+ bool HasBackgroundColour() const { return m_colBack.IsOk(); }
+ bool HasFont() const { return m_font.IsOk(); }
bool HasAlignment() const
{
return m_hAlign != wxALIGN_INVALID || m_vAlign != wxALIGN_INVALID;
@@ -1637,7 +1637,7 @@ public:
// unset any existing sorting column
void UnsetSortingColumn() { SetSortingColumn(wxNOT_FOUND); }
-#ifdef WXWIN_COMPATIBILITY_2_8
+#if WXWIN_COMPATIBILITY_2_8
// ------ For compatibility with previous wxGrid only...
//
// ************************************************
@@ -2160,7 +2160,7 @@ private:
// --------------------------------
// process mouse drag event in WXGRID_CURSOR_SELECT_CELL mode
- void DoGridCellDrag(wxMouseEvent& event,
+ bool DoGridCellDrag(wxMouseEvent& event,
const wxGridCellCoords& coords,
bool isFirstDrag);
diff --git a/Externals/wxWidgets3/include/wx/generic/gridctrl.h b/Externals/wxWidgets3/include/wx/generic/gridctrl.h
index a14d98111c..2cc9859025 100644
--- a/Externals/wxWidgets3/include/wx/generic/gridctrl.h
+++ b/Externals/wxWidgets3/include/wx/generic/gridctrl.h
@@ -4,7 +4,7 @@
// Author: Paul Gammans, Roger Gammans
// Modified by:
// Created: 11/04/2001
-// RCS-ID: $Id: gridctrl.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: gridctrl.h 69856 2011-11-28 13:23:33Z VZ $
// Copyright: (c) The Computer Surgery (paul@compsurg.co.uk)
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -81,13 +81,17 @@ protected:
class WXDLLIMPEXP_ADV wxGridCellFloatRenderer : public wxGridCellStringRenderer
{
public:
- wxGridCellFloatRenderer(int width = -1, int precision = -1);
+ wxGridCellFloatRenderer(int width = -1,
+ int precision = -1,
+ int format = wxGRID_FLOAT_FORMAT_DEFAULT);
// get/change formatting parameters
int GetWidth() const { return m_width; }
void SetWidth(int width) { m_width = width; m_format.clear(); }
int GetPrecision() const { return m_precision; }
void SetPrecision(int precision) { m_precision = precision; m_format.clear(); }
+ int GetFormat() const { return m_style; }
+ void SetFormat(int format) { m_style = format; m_format.clear(); }
// draw the string right aligned with given width/precision
virtual void Draw(wxGrid& grid,
@@ -102,7 +106,8 @@ public:
wxDC& dc,
int row, int col);
- // parameters string format is "width[,precision]"
+ // parameters string format is "width[,precision[,format]]"
+ // with format being one of f|e|g|E|F|G
virtual void SetParameters(const wxString& params);
virtual wxGridCellRenderer *Clone() const;
@@ -115,6 +120,7 @@ private:
int m_width,
m_precision;
+ int m_style;
wxString m_format;
};
diff --git a/Externals/wxWidgets3/include/wx/generic/grideditors.h b/Externals/wxWidgets3/include/wx/generic/grideditors.h
index 006b66232d..c3309e0470 100644
--- a/Externals/wxWidgets3/include/wx/generic/grideditors.h
+++ b/Externals/wxWidgets3/include/wx/generic/grideditors.h
@@ -4,7 +4,7 @@
// Author: Michael Bedward (based on code by Julian Smart, Robin Dunn)
// Modified by: Santiago Palacios
// Created: 1/08/1999
-// RCS-ID: $Id: grideditors.h 61508 2009-07-23 20:30:22Z VZ $
+// RCS-ID: $Id: grideditors.h 70693 2012-02-25 23:49:55Z VZ $
// Copyright: (c) Michael Bedward
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -154,11 +154,38 @@ private:
wxDECLARE_NO_COPY_CLASS(wxGridCellNumberEditor);
};
+
+enum wxGridCellFloatFormat
+{
+ // Decimal floating point (%f)
+ wxGRID_FLOAT_FORMAT_FIXED = 0x0010,
+
+ // Scientific notation (mantise/exponent) using e character (%e)
+ wxGRID_FLOAT_FORMAT_SCIENTIFIC = 0x0020,
+
+ // Use the shorter of %e or %f (%g)
+ wxGRID_FLOAT_FORMAT_COMPACT = 0x0040,
+
+ // To use in combination with one of the above formats (%F/%E/%G)
+ wxGRID_FLOAT_FORMAT_UPPER = 0x0080,
+
+ // Format used by default.
+ wxGRID_FLOAT_FORMAT_DEFAULT = wxGRID_FLOAT_FORMAT_FIXED,
+
+ // A mask to extract format from the combination of flags.
+ wxGRID_FLOAT_FORMAT_MASK = wxGRID_FLOAT_FORMAT_FIXED |
+ wxGRID_FLOAT_FORMAT_SCIENTIFIC |
+ wxGRID_FLOAT_FORMAT_COMPACT |
+ wxGRID_FLOAT_FORMAT_UPPER
+};
+
// the editor for floating point numbers (double) data
class WXDLLIMPEXP_ADV wxGridCellFloatEditor : public wxGridCellTextEditor
{
public:
- wxGridCellFloatEditor(int width = -1, int precision = -1);
+ wxGridCellFloatEditor(int width = -1,
+ int precision = -1,
+ int format = wxGRID_FLOAT_FORMAT_DEFAULT);
virtual void Create(wxWindow* parent,
wxWindowID id,
@@ -176,18 +203,22 @@ public:
virtual wxGridCellEditor *Clone() const
{ return new wxGridCellFloatEditor(m_width, m_precision); }
- // parameters string format is "width,precision"
+ // parameters string format is "width[,precision[,format]]"
+ // format to choose beween f|e|g|E|G (f is used by default)
virtual void SetParameters(const wxString& params);
protected:
// string representation of our value
- wxString GetString() const;
+ wxString GetString();
private:
int m_width,
m_precision;
double m_value;
+ int m_style;
+ wxString m_format;
+
wxDECLARE_NO_COPY_CLASS(wxGridCellFloatEditor);
};
@@ -264,6 +295,8 @@ public:
wxWindowID id,
wxEvtHandler* evtHandler);
+ virtual void SetSize(const wxRect& rect);
+
virtual void PaintBackground(const wxRect& rectCell, wxGridCellAttr *attr);
virtual void BeginEdit(int row, int col, wxGrid* grid);
diff --git a/Externals/wxWidgets3/include/wx/generic/hyperlink.h b/Externals/wxWidgets3/include/wx/generic/hyperlink.h
index 7a495ef09f..c834a7fd3b 100644
--- a/Externals/wxWidgets3/include/wx/generic/hyperlink.h
+++ b/Externals/wxWidgets3/include/wx/generic/hyperlink.h
@@ -4,7 +4,7 @@
// Author: David Norris , Otto Wyss
// Modified by: Ryan Norton, Francesco Montorsi
// Created: 04/02/2005
-// RCS-ID: $Id: hyperlink.h 65334 2010-08-17 16:55:32Z VZ $
+// RCS-ID: $Id: hyperlink.h 67948 2011-06-15 21:56:23Z VZ $
// Copyright: (c) 2005 David Norris
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -75,6 +75,12 @@ protected:
// Renders the hyperlink.
void OnPaint(wxPaintEvent& event);
+ // Handle set/kill focus events (invalidate for painting focus rect)
+ void OnFocus(wxFocusEvent& event);
+
+ // Fire a HyperlinkEvent on space
+ void OnChar(wxKeyEvent& event);
+
// Returns the wxRect of the label of this hyperlink.
// This is different from the clientsize's rectangle when
// clientsize != bestsize and this rectangle is influenced
diff --git a/Externals/wxWidgets3/include/wx/generic/listctrl.h b/Externals/wxWidgets3/include/wx/generic/listctrl.h
index 069be51688..19622cac39 100644
--- a/Externals/wxWidgets3/include/wx/generic/listctrl.h
+++ b/Externals/wxWidgets3/include/wx/generic/listctrl.h
@@ -3,7 +3,7 @@
// Purpose: Generic list control
// Author: Robert Roebling
// Created: 01/02/97
-// RCS-ID: $Id: listctrl.h 64884 2010-07-11 10:44:08Z VZ $
+// RCS-ID: $Id: listctrl.h 70282 2012-01-07 15:09:43Z VZ $
// Copyright: (c) 1998 Robert Roebling and Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -14,8 +14,6 @@
#include "wx/scrolwin.h"
#include "wx/textctrl.h"
-class WXDLLIMPEXP_FWD_CORE wxImageList;
-
#if wxUSE_DRAG_AND_DROP
class WXDLLIMPEXP_FWD_CORE wxDropTarget;
#endif
@@ -31,7 +29,7 @@ class WXDLLIMPEXP_FWD_CORE wxListMainWindow;
// wxListCtrl
//-----------------------------------------------------------------------------
-class WXDLLIMPEXP_CORE wxGenericListCtrl: public wxControl,
+class WXDLLIMPEXP_CORE wxGenericListCtrl: public wxListCtrlBase,
public wxScrollHelper
{
public:
@@ -66,7 +64,7 @@ public:
const wxString &name = wxListCtrlNameStr);
bool GetColumn( int col, wxListItem& item ) const;
- bool SetColumn( int col, wxListItem& item );
+ bool SetColumn( int col, const wxListItem& item );
int GetColumnWidth( int col ) const;
bool SetColumnWidth( int col, int width);
int GetCountPerPage() const; // not the same in wxGLC as in Windows, I think
@@ -134,18 +132,9 @@ public:
long InsertItem( long index, const wxString& label );
long InsertItem( long index, int imageIndex );
long InsertItem( long index, const wxString& label, int imageIndex );
- long InsertColumn( long col, wxListItem& info );
- long InsertColumn( long col, const wxString& heading,
- int format = wxLIST_FORMAT_LEFT, int width = -1 );
bool ScrollList( int dx, int dy );
bool SortItems( wxListCtrlCompare fn, wxIntPtr data );
- // are we in report mode?
- bool InReportView() const { return HasFlag(wxLC_REPORT); }
-
- // are we in virtual report mode?
- bool IsVirtual() const { return HasFlag(wxLC_VIRTUAL); }
-
// do we have a header window?
bool HasHeader() const
{ return InReportView() && !HasFlag(wxLC_NO_HEADER); }
@@ -214,6 +203,10 @@ public:
wxListMainWindow *m_mainWin;
protected:
+ // Implement base class pure virtual methods.
+ long DoInsertColumn(long col, const wxListItem& info);
+
+
virtual bool DoPopupMenu( wxMenu *menu, int x, int y );
// take into account the coordinates difference between the container
diff --git a/Externals/wxWidgets3/include/wx/generic/logg.h b/Externals/wxWidgets3/include/wx/generic/logg.h
index 2881dba02a..3ef9eacdc3 100644
--- a/Externals/wxWidgets3/include/wx/generic/logg.h
+++ b/Externals/wxWidgets3/include/wx/generic/logg.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 29/01/98
-// RCS-ID: $Id: logg.h 61346 2009-07-08 13:47:33Z VZ $
+// RCS-ID: $Id: logg.h 67656 2011-04-30 10:57:04Z DS $
// Copyright: (c) 1998 Vadim Zeitlin
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -104,7 +104,7 @@ private:
// ----------------------------------------------------------------------------
// (background) log window: this class forwards all log messages to the log
// target which was active when it was instantiated, but also collects them
-// to the log window. This window has it's own menu which allows the user to
+// to the log window. This window has its own menu which allows the user to
// close it, clear the log contents or save it to the file.
// ----------------------------------------------------------------------------
diff --git a/Externals/wxWidgets3/include/wx/generic/msgdlgg.h b/Externals/wxWidgets3/include/wx/generic/msgdlgg.h
index aa9a95be13..73fe48b4a7 100644
--- a/Externals/wxWidgets3/include/wx/generic/msgdlgg.h
+++ b/Externals/wxWidgets3/include/wx/generic/msgdlgg.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
-// RCS-ID: $Id: msgdlgg.h 65449 2010-08-30 21:48:21Z VZ $
+// RCS-ID: $Id: msgdlgg.h 68537 2011-08-04 22:53:42Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -32,6 +32,7 @@ protected:
void OnYes(wxCommandEvent& event);
void OnNo(wxCommandEvent& event);
+ void OnHelp(wxCommandEvent& event);
void OnCancel(wxCommandEvent& event);
// can be overridden to provide more contents to the dialog
diff --git a/Externals/wxWidgets3/include/wx/generic/notebook.h b/Externals/wxWidgets3/include/wx/generic/notebook.h
index 0a2b3a4531..e2c405e7ab 100644
--- a/Externals/wxWidgets3/include/wx/generic/notebook.h
+++ b/Externals/wxWidgets3/include/wx/generic/notebook.h
@@ -3,7 +3,7 @@
// Purpose: wxNotebook class (a.k.a. property sheet, tabbed dialog)
// Author: Julian Smart
// Modified by:
-// RCS-ID: $Id: notebook.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: notebook.h 68810 2011-08-21 14:08:49Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -107,7 +107,7 @@ public:
wxNotebookPage *pPage,
const wxString& strText,
bool bSelect = false,
- int imageId = -1);
+ int imageId = NO_IMAGE);
// callbacks
// ---------
diff --git a/Externals/wxWidgets3/include/wx/generic/panelg.h b/Externals/wxWidgets3/include/wx/generic/panelg.h
index bd05855a1f..79dfe85c5c 100644
--- a/Externals/wxWidgets3/include/wx/generic/panelg.h
+++ b/Externals/wxWidgets3/include/wx/generic/panelg.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
-// RCS-ID: $Id: panelg.h 67253 2011-03-20 00:00:49Z VZ $
+// RCS-ID: $Id: panelg.h 70098 2011-12-23 05:59:59Z PC $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -30,7 +30,7 @@ public:
Create(parent, winid, pos, size, style, name);
}
-#ifdef WXWIN_COMPATIBILITY_2_8
+#if WXWIN_COMPATIBILITY_2_8
wxDEPRECATED_CONSTRUCTOR(
wxPanel(wxWindow *parent,
int x, int y, int width, int height,
@@ -42,18 +42,7 @@ public:
)
#endif // WXWIN_COMPATIBILITY_2_8
-protected:
- virtual void DoSetBackgroundBitmap(const wxBitmap& bmp);
-
private:
- // Event handler for erasing the background which is only used when we have
- // a valid background bitmap.
- void OnEraseBackground(wxEraseEvent& event);
-
-
- // The bitmap used for painting the background if valid.
- wxBitmap m_bitmapBg;
-
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxPanel);
};
diff --git a/Externals/wxWidgets3/include/wx/generic/private/grid.h b/Externals/wxWidgets3/include/wx/generic/private/grid.h
index f217481c3f..ab763a9c22 100644
--- a/Externals/wxWidgets3/include/wx/generic/private/grid.h
+++ b/Externals/wxWidgets3/include/wx/generic/private/grid.h
@@ -4,7 +4,7 @@
// Author: Michael Bedward (based on code by Julian Smart, Robin Dunn)
// Modified by: Santiago Palacios
// Created: 1/08/1999
-// RCS-ID: $Id: grid.h 66792 2011-01-27 18:35:01Z SC $
+// RCS-ID: $Id: grid.h 69861 2011-11-28 19:15:59Z VZ $
// Copyright: (c) Michael Bedward
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -301,6 +301,8 @@ public:
m_owner = owner;
}
+ virtual wxWindow *GetMainWindowOfCompositeControl() { return m_owner; }
+
virtual bool AcceptsFocus() const { return false; }
wxGrid *GetOwner() { return m_owner; }
@@ -546,6 +548,11 @@ public:
// implemented for the lines
virtual int GetLineAt(const wxGrid *grid, int pos) const = 0;
+ // Return the display position of the line with the given index.
+ //
+ // NB: As GetLineAt(), currently this is always identity for rows.
+ virtual int GetLinePos(const wxGrid *grid, int line) const = 0;
+
// Return the index of the line just before the given one.
virtual int GetLineBefore(const wxGrid* grid, int line) const = 0;
@@ -613,7 +620,9 @@ public:
virtual void SetDefaultLineSize(wxGrid *grid, int size, bool resizeExisting) const
{ grid->SetDefaultRowSize(size, resizeExisting); }
- virtual int GetLineAt(const wxGrid * WXUNUSED(grid), int line) const
+ virtual int GetLineAt(const wxGrid * WXUNUSED(grid), int pos) const
+ { return pos; } // TODO: implement row reordering
+ virtual int GetLinePos(const wxGrid * WXUNUSED(grid), int line) const
{ return line; } // TODO: implement row reordering
virtual int GetLineBefore(const wxGrid* WXUNUSED(grid), int line) const
@@ -677,8 +686,10 @@ public:
virtual void SetDefaultLineSize(wxGrid *grid, int size, bool resizeExisting) const
{ grid->SetDefaultColSize(size, resizeExisting); }
- virtual int GetLineAt(const wxGrid *grid, int line) const
- { return grid->GetColAt(line); }
+ virtual int GetLineAt(const wxGrid *grid, int pos) const
+ { return grid->GetColAt(pos); }
+ virtual int GetLinePos(const wxGrid *grid, int line) const
+ { return grid->GetColPos(line); }
virtual int GetLineBefore(const wxGrid* grid, int line) const
{ return grid->GetColAt(wxMax(0, grid->GetColPos(line) - 1)); }
@@ -691,7 +702,10 @@ public:
// This class abstracts the difference between operations going forward
// (down/right) and backward (up/left) and allows to use the same code for
-// functions which differ only in the direction of grid traversal
+// functions which differ only in the direction of grid traversal.
+//
+// Notice that all operations in this class work with display positions and not
+// internal indices which can be different if the columns were reordered.
//
// Like wxGridOperations it's an ABC with two concrete subclasses below. Unlike
// it, this is a normal object and not just a function dispatch table and has a
@@ -720,6 +734,12 @@ public:
// Find the line at the given distance, in pixels, away from this one
// (this uses clipping, i.e. anything after the last line is counted as the
// last one and anything before the first one as 0)
+ //
+ // TODO: Implementation of this method currently doesn't support column
+ // reordering as it mixes up indices and positions. But this doesn't
+ // really matter as it's only called for rows (Page Up/Down only work
+ // vertically) and row reordering is not currently supported. We'd
+ // need to fix it if this ever changes however.
virtual int MoveByPixelDistance(int line, int distance) const = 0;
// This class is never used polymorphically but give it a virtual dtor
@@ -727,6 +747,28 @@ public:
virtual ~wxGridDirectionOperations() { }
protected:
+ // Get the position of the row or column from the given coordinates pair.
+ //
+ // This is just a shortcut to avoid repeating m_oper and m_grid multiple
+ // times in the derived classes code.
+ int GetLinePos(const wxGridCellCoords& coords) const
+ {
+ return m_oper.GetLinePos(m_grid, m_oper.Select(coords));
+ }
+
+ // Get the index of the row or column from the position.
+ int GetLineAt(int pos) const
+ {
+ return m_oper.GetLineAt(m_grid, pos);
+ }
+
+ // Check if the given line is visible, i.e. has non 0 size.
+ bool IsLineVisible(int line) const
+ {
+ return m_oper.GetLineSize(m_grid, line) != 0;
+ }
+
+
wxGrid * const m_grid;
const wxGridOperations& m_oper;
};
@@ -743,14 +785,38 @@ public:
{
wxASSERT_MSG( m_oper.Select(coords) >= 0, "invalid row/column" );
- return m_oper.Select(coords) == 0;
+ int pos = GetLinePos(coords);
+ while ( pos )
+ {
+ // Check the previous line.
+ int line = GetLineAt(--pos);
+ if ( IsLineVisible(line) )
+ {
+ // There is another visible line before this one, hence it's
+ // not at boundary.
+ return false;
+ }
+ }
+
+ // We reached the boundary without finding any visible lines.
+ return true;
}
virtual void Advance(wxGridCellCoords& coords) const
{
- wxASSERT( !IsAtBoundary(coords) );
+ int pos = GetLinePos(coords);
+ for ( ;; )
+ {
+ // This is not supposed to happen if IsAtBoundary() returned false.
+ wxCHECK_RET( pos, "can't advance when already at boundary" );
- m_oper.Set(coords, m_oper.Select(coords) - 1);
+ int line = GetLineAt(--pos);
+ if ( IsLineVisible(line) )
+ {
+ m_oper.Set(coords, line);
+ break;
+ }
+ }
}
virtual int MoveByPixelDistance(int line, int distance) const
@@ -760,6 +826,8 @@ public:
}
};
+// Please refer to the comments above when reading this class code, it's
+// absolutely symmetrical to wxGridBackwardOperations.
class wxGridForwardOperations : public wxGridDirectionOperations
{
public:
@@ -773,14 +841,32 @@ public:
{
wxASSERT_MSG( m_oper.Select(coords) < m_numLines, "invalid row/column" );
- return m_oper.Select(coords) == m_numLines - 1;
+ int pos = GetLinePos(coords);
+ while ( pos < m_numLines - 1 )
+ {
+ int line = GetLineAt(++pos);
+ if ( IsLineVisible(line) )
+ return false;
+ }
+
+ return true;
}
virtual void Advance(wxGridCellCoords& coords) const
{
- wxASSERT( !IsAtBoundary(coords) );
+ int pos = GetLinePos(coords);
+ for ( ;; )
+ {
+ wxCHECK_RET( pos < m_numLines - 1,
+ "can't advance when already at boundary" );
- m_oper.Set(coords, m_oper.Select(coords) + 1);
+ int line = GetLineAt(++pos);
+ if ( IsLineVisible(line) )
+ {
+ m_oper.Set(coords, line);
+ break;
+ }
+ }
}
virtual int MoveByPixelDistance(int line, int distance) const
diff --git a/Externals/wxWidgets3/include/wx/generic/private/listctrl.h b/Externals/wxWidgets3/include/wx/generic/private/listctrl.h
index e2a8de78cb..3d7838a883 100644
--- a/Externals/wxWidgets3/include/wx/generic/private/listctrl.h
+++ b/Externals/wxWidgets3/include/wx/generic/private/listctrl.h
@@ -3,7 +3,7 @@
// Purpose: private definitions of wxListCtrl helpers
// Author: Robert Roebling
// Vadim Zeitlin (virtual list control support)
-// Id: $Id: listctrl.h 67254 2011-03-20 00:14:35Z DS $
+// Id: $Id: listctrl.h 70285 2012-01-07 15:09:54Z VZ $
// Copyright: (c) 1998 Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -402,6 +402,10 @@ public:
wxTextCtrl *GetText() const { return m_text; }
+ // Check if the given key event should stop editing and return true if it
+ // does or false otherwise.
+ bool CheckForEndEditKey(const wxKeyEvent& event);
+
// Different reasons for calling EndEdit():
//
// It was called because:
@@ -557,6 +561,7 @@ public:
// called to switch the selection from the current item to newCurrent,
void OnArrowChar( size_t newCurrent, const wxKeyEvent& event );
+ void OnCharHook( wxKeyEvent &event );
void OnChar( wxKeyEvent &event );
void OnKeyDown( wxKeyEvent &event );
void OnKeyUp( wxKeyEvent &event );
@@ -570,13 +575,12 @@ public:
void DrawImage( int index, wxDC *dc, int x, int y );
void GetImageSize( int index, int &width, int &height ) const;
- int GetTextLength( const wxString &s ) const;
void SetImageList( wxImageList *imageList, int which );
void SetItemSpacing( int spacing, bool isSmall = false );
int GetItemSpacing( bool isSmall = false );
- void SetColumn( int col, wxListItem &item );
+ void SetColumn( int col, const wxListItem &item );
void SetColumnWidth( int col, int width );
void GetColumn( int col, wxListItem &item ) const;
int GetColumnWidth( int col ) const;
@@ -640,7 +644,7 @@ public:
long FindItem( const wxPoint& pt );
long HitTest( int x, int y, int &flags ) const;
void InsertItem( wxListItem &item );
- void InsertColumn( long col, wxListItem &item );
+ void InsertColumn( long col, const wxListItem &item );
int GetItemWidthWithImage(wxListItem * item);
void SortItems( wxListCtrlCompare fn, wxIntPtr data );
@@ -788,6 +792,10 @@ private:
// delete all items but don't refresh: called from dtor
void DoDeleteAllItems();
+ // Compute the minimal width needed to fully display the column header.
+ int ComputeMinHeaderWidth(const wxListHeaderData* header) const;
+
+
// the height of one line using the current font
wxCoord m_lineHeight;
diff --git a/Externals/wxWidgets3/include/wx/generic/private/richtooltip.h b/Externals/wxWidgets3/include/wx/generic/private/richtooltip.h
new file mode 100644
index 0000000000..0ca479dadb
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/generic/private/richtooltip.h
@@ -0,0 +1,62 @@
+///////////////////////////////////////////////////////////////////////////////
+// Name: wx/generic/private/richtooltip.h
+// Purpose: wxRichToolTipGenericImpl declaration.
+// Author: Vadim Zeitlin
+// Created: 2011-10-18
+// RCS-ID: $Id: richtooltip.h 69488 2011-10-20 16:20:19Z VZ $
+// Copyright: (c) 2011 Vadim Zeitlin
+// Licence: wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_GENERIC_PRIVATE_RICHTOOLTIP_H_
+#define _GENERIC_PRIVATE_RICHTOOLTIP_H_
+
+#include "wx/icon.h"
+#include "wx/colour.h"
+
+// ----------------------------------------------------------------------------
+// wxRichToolTipGenericImpl: defines generic wxRichToolTip implementation.
+// ----------------------------------------------------------------------------
+
+class wxRichToolTipGenericImpl : public wxRichToolTipImpl
+{
+public:
+ wxRichToolTipGenericImpl(const wxString& title, const wxString& message) :
+ m_title(title),
+ m_message(message)
+ {
+ m_tipKind = wxTipKind_Auto;
+
+ // This is pretty arbitrary, we could follow MSW and use some multiple
+ // of double-click time here.
+ m_timeout = 5000;
+ }
+
+ virtual void SetBackgroundColour(const wxColour& col,
+ const wxColour& colEnd);
+ virtual void SetCustomIcon(const wxIcon& icon);
+ virtual void SetStandardIcon(int icon);
+ virtual void SetTimeout(unsigned milliseconds);
+ virtual void SetTipKind(wxTipKind tipKind);
+ virtual void SetTitleFont(const wxFont& font);
+
+ virtual void ShowFor(wxWindow* win);
+
+protected:
+ wxString m_title,
+ m_message;
+
+private:
+ wxIcon m_icon;
+
+ wxColour m_colStart,
+ m_colEnd;
+
+ unsigned m_timeout;
+
+ wxTipKind m_tipKind;
+
+ wxFont m_titleFont;
+};
+
+#endif // _WX_GENERIC_PRIVATE_RICHTOOLTIP_H_
diff --git a/Externals/wxWidgets3/include/wx/generic/prntdlgg.h b/Externals/wxWidgets3/include/wx/generic/prntdlgg.h
index 1cd69143b1..e3317e1cc6 100644
--- a/Externals/wxWidgets3/include/wx/generic/prntdlgg.h
+++ b/Externals/wxWidgets3/include/wx/generic/prntdlgg.h
@@ -5,7 +5,7 @@
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
-// RCS-ID: $Id: prntdlgg.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: prntdlgg.h 70636 2012-02-20 21:55:55Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ class WXDLLIMPEXP_FWD_CORE wxCheckBox;
class WXDLLIMPEXP_FWD_CORE wxComboBox;
class WXDLLIMPEXP_FWD_CORE wxStaticText;
class WXDLLIMPEXP_FWD_CORE wxRadioBox;
-class WXDLLIMPEXP_FWD_CORE wxPageSetupData;
+class WXDLLIMPEXP_FWD_CORE wxPageSetupDialogData;
// ----------------------------------------------------------------------------
// constants
diff --git a/Externals/wxWidgets3/include/wx/generic/progdlgg.h b/Externals/wxWidgets3/include/wx/generic/progdlgg.h
index 518f43212b..38b69241db 100644
--- a/Externals/wxWidgets3/include/wx/generic/progdlgg.h
+++ b/Externals/wxWidgets3/include/wx/generic/progdlgg.h
@@ -4,7 +4,7 @@
// Author: Karsten Ballueder
// Modified by: Francesco Montorsi
// Created: 09.05.1999
-// RCS-ID: $Id: progdlgg.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: progdlgg.h 70512 2012-02-05 14:18:25Z VZ $
// Copyright: (c) Karsten Ballueder
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -27,6 +27,7 @@ class WXDLLIMPEXP_FWD_CORE wxWindowDisabler;
class WXDLLIMPEXP_CORE wxGenericProgressDialog : public wxDialog
{
public:
+ wxGenericProgressDialog();
wxGenericProgressDialog(const wxString& title, const wxString& message,
int maximum = 100,
wxWindow *parent = NULL,
@@ -34,6 +35,12 @@ public:
virtual ~wxGenericProgressDialog();
+ bool Create(const wxString& title,
+ const wxString& message,
+ int maximum = 100,
+ wxWindow *parent = NULL,
+ int style = wxPD_APP_MODAL | wxPD_AUTO_HIDE);
+
virtual bool Update(int value, const wxString& newmsg = wxEmptyString, bool *skip = NULL);
virtual bool Pulse(const wxString& newmsg = wxEmptyString, bool *skip = NULL);
@@ -67,15 +74,6 @@ public:
};
protected:
- // This ctor is used by the native MSW implementation only.
- wxGenericProgressDialog(wxWindow *parent, int style);
-
- void Create(const wxString& title,
- const wxString& message,
- int maximum,
- wxWindow *parent,
- int style);
-
// Update just the m_maximum field, this is used by public SetRange() but,
// unlike it, doesn't update the controls state. This makes it useful for
// both this class and its derived classes that don't use m_gauge to
@@ -95,7 +93,7 @@ protected:
// Return the progress dialog style. Prefer to use HasPDFlag() if possible.
int GetPDStyle() const { return m_pdStyle; }
-
+ void SetPDStyle(int pdStyle) { m_pdStyle = pdStyle; }
// Updates estimated times from a given progress bar value and stores the
// results in provided arguments.
@@ -123,6 +121,10 @@ protected:
// the dialog was shown
void ReenableOtherWindows();
+ // Set the top level parent we store from the parent window provided when
+ // creating the dialog.
+ void SetTopParent(wxWindow* parent);
+
// return the top level parent window of this dialog (may be NULL)
wxWindow *GetTopParent() const { return m_parentTop; }
@@ -151,7 +153,7 @@ private:
static void SetTimeLabel(unsigned long val, wxStaticText *label);
// common part of all ctors
- void Init(wxWindow *parent, int style);
+ void Init();
// create the label with given text and another one to show the time nearby
// as the next windows in the sizer, returns the created control
diff --git a/Externals/wxWidgets3/include/wx/generic/spinctlg.h b/Externals/wxWidgets3/include/wx/generic/spinctlg.h
index 6115fce04e..36c777940e 100644
--- a/Externals/wxWidgets3/include/wx/generic/spinctlg.h
+++ b/Externals/wxWidgets3/include/wx/generic/spinctlg.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 28.10.99
-// RCS-ID: $Id: spinctlg.h 67199 2011-03-15 11:10:38Z VZ $
+// RCS-ID: $Id: spinctlg.h 70432 2012-01-21 17:03:52Z VZ $
// Copyright: (c) Vadim Zeitlin
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -81,7 +81,6 @@ public:
// forward these functions to all subcontrols
virtual bool Enable(bool enable = true);
virtual bool Show(bool show = true);
- virtual bool Reparent(wxWindowBase *newParent);
#if wxUSE_TOOLTIPS
virtual void DoSetToolTip(wxToolTip *tip);
#endif // wxUSE_TOOLTIPS
@@ -92,7 +91,7 @@ public:
// forwarded events from children windows
void OnSpinButton(wxSpinEvent& event);
- void OnTextLostFocus();
+ void OnTextLostFocus(wxFocusEvent& event);
void OnTextChar(wxKeyEvent& event);
// this window itself is used only as a container for its sub windows so it
@@ -108,6 +107,11 @@ protected:
virtual wxSize DoGetBestSize() const;
virtual void DoMoveWindow(int x, int y, int width, int height);
+#ifdef __WXMSW__
+ // and, for MSW, enabling this window itself
+ virtual void DoEnable(bool enable);
+#endif // __WXMSW__
+
// generic double valued functions
double DoGetValue() const { return m_value; }
bool DoSetValue(double val);
@@ -148,6 +152,8 @@ protected:
private:
// common part of all ctors
void Init();
+
+ DECLARE_EVENT_TABLE()
};
#else // !wxUSE_SPINBTN
diff --git a/Externals/wxWidgets3/include/wx/generic/splash.h b/Externals/wxWidgets3/include/wx/generic/splash.h
index a435975544..a98704a639 100644
--- a/Externals/wxWidgets3/include/wx/generic/splash.h
+++ b/Externals/wxWidgets3/include/wx/generic/splash.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created: 28/6/2000
-// RCS-ID: $Id: splash.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: splash.h 69796 2011-11-22 13:18:55Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows Licence
/////////////////////////////////////////////////////////////////////////////
@@ -13,8 +13,9 @@
#define _WX_SPLASH_H_
#include "wx/bitmap.h"
-#include "wx/timer.h"
+#include "wx/eventfilter.h"
#include "wx/frame.h"
+#include "wx/timer.h"
/*
@@ -33,11 +34,12 @@ class WXDLLIMPEXP_FWD_ADV wxSplashScreenWindow;
* wxSplashScreen
*/
-class WXDLLIMPEXP_ADV wxSplashScreen: public wxFrame
+class WXDLLIMPEXP_ADV wxSplashScreen: public wxFrame,
+ public wxEventFilter
{
public:
// for RTTI macros only
- wxSplashScreen() {}
+ wxSplashScreen() { Init(); }
wxSplashScreen(const wxBitmap& bitmap, long splashStyle, int milliseconds,
wxWindow* parent, wxWindowID id,
const wxPoint& pos = wxDefaultPosition,
@@ -52,7 +54,13 @@ public:
wxSplashScreenWindow* GetSplashWindow() const { return m_window; }
int GetTimeout() const { return m_milliseconds; }
+ // Override wxEventFilter method to hide splash screen on any user input.
+ virtual int FilterEvent(wxEvent& event);
+
protected:
+ // Common part of all ctors.
+ void Init();
+
wxSplashScreenWindow* m_window;
long m_splashStyle;
int m_milliseconds;
@@ -74,8 +82,6 @@ public:
void OnPaint(wxPaintEvent& event);
void OnEraseBackground(wxEraseEvent& event);
- void OnMouseEvent(wxMouseEvent& event);
- void OnChar(wxKeyEvent& event);
void SetBitmap(const wxBitmap& bitmap) { m_bitmap = bitmap; }
wxBitmap& GetBitmap() { return m_bitmap; }
diff --git a/Externals/wxWidgets3/include/wx/generic/splitter.h b/Externals/wxWidgets3/include/wx/generic/splitter.h
index 00a6c88583..47bdebceed 100644
--- a/Externals/wxWidgets3/include/wx/generic/splitter.h
+++ b/Externals/wxWidgets3/include/wx/generic/splitter.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
-// RCS-ID: $Id: splitter.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: splitter.h 70840 2012-03-08 13:23:39Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -49,7 +49,7 @@ enum
// to prevent flickering. (WS_CLIPCHILDREN doesn't work in all cases so can't be
// standard).
-class WXDLLIMPEXP_CORE wxSplitterWindow: public wxWindow
+class WXDLLIMPEXP_CORE wxSplitterWindow: public wxNavigationEnabled
{
public:
@@ -136,8 +136,14 @@ public:
// Sets the border size
void SetBorderSize(int WXUNUSED(width)) { }
- // Gets the sash size
+ // Hide or show the sash and test whether it's currently hidden.
+ void SetSashInvisible(bool invisible = true);
+ bool IsSashInvisible() const { return HasFlag(wxSP_NOSASH); }
+
+ // Gets the current sash size which may be 0 if it's hidden and the default
+ // sash size.
int GetSashSize() const;
+ int GetDefaultSashSize() const;
// Gets the border size
int GetBorderSize() const;
@@ -211,9 +217,6 @@ public:
// Resizes subwindows
virtual void SizeWindows();
- void SetNeedUpdating(bool needUpdating) { m_needUpdating = needUpdating; }
- bool GetNeedUpdating() const { return m_needUpdating ; }
-
#ifdef __WXMAC__
virtual bool MacClipGrandChildren() const { return true ; }
#endif
@@ -297,11 +300,8 @@ protected:
bool m_needUpdating:1;
bool m_permitUnsplitAlways:1;
bool m_isHot:1;
- bool m_checkRequestedSashPosition:1;
private:
- WX_DECLARE_CONTROL_CONTAINER();
-
DECLARE_DYNAMIC_CLASS(wxSplitterWindow)
DECLARE_EVENT_TABLE()
wxDECLARE_NO_COPY_CLASS(wxSplitterWindow);
diff --git a/Externals/wxWidgets3/include/wx/generic/srchctlg.h b/Externals/wxWidgets3/include/wx/generic/srchctlg.h
index 33af7b7631..864efcd142 100644
--- a/Externals/wxWidgets3/include/wx/generic/srchctlg.h
+++ b/Externals/wxWidgets3/include/wx/generic/srchctlg.h
@@ -3,7 +3,7 @@
// Purpose: generic wxSearchCtrl class
// Author: Vince Harron
// Created: 2006-02-19
-// RCS-ID: $Id: srchctlg.h 59269 2009-03-02 14:49:55Z VZ $
+// RCS-ID: $Id: srchctlg.h 68911 2011-08-27 12:13:23Z VZ $
// Copyright: Vince Harron
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -191,6 +191,7 @@ public:
// wxWindow overrides
virtual bool SetFont(const wxFont& font);
+ virtual bool SetBackgroundColour(const wxColour& colour);
// search control generic only
void SetSearchBitmap( const wxBitmap& bitmap );
@@ -235,6 +236,9 @@ protected:
private:
friend class wxSearchButton;
+ // Implement pure virtual function inherited from wxCompositeWindow.
+ virtual wxWindowList GetCompositeWindowParts() const;
+
#if wxUSE_MENUS
void PopupSearchMenu();
#endif // wxUSE_MENUS
diff --git a/Externals/wxWidgets3/include/wx/generic/statbmpg.h b/Externals/wxWidgets3/include/wx/generic/statbmpg.h
index f62acc721c..930e3943b9 100644
--- a/Externals/wxWidgets3/include/wx/generic/statbmpg.h
+++ b/Externals/wxWidgets3/include/wx/generic/statbmpg.h
@@ -3,7 +3,7 @@
// Purpose: wxGenericStaticBitmap header
// Author: Marcin Wojdyr, Stefan Csomor
// Created: 2008-06-16
-// RCS-ID: $Id: statbmpg.h 61724 2009-08-21 10:41:26Z VZ $
+// RCS-ID: $Id: statbmpg.h 67681 2011-05-03 16:29:04Z DS $
// Copyright: wxWidgets developers
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -61,7 +61,7 @@ public:
private:
wxSize GetBitmapSize()
{
- return m_bitmap.Ok() ? wxSize(m_bitmap.GetWidth(), m_bitmap.GetHeight())
+ return m_bitmap.IsOk() ? wxSize(m_bitmap.GetWidth(), m_bitmap.GetHeight())
: wxSize(16, 16); // this is completely arbitrary
}
diff --git a/Externals/wxWidgets3/include/wx/generic/statusbr.h b/Externals/wxWidgets3/include/wx/generic/statusbr.h
index 0f5511235b..dc2a3f88a4 100644
--- a/Externals/wxWidgets3/include/wx/generic/statusbr.h
+++ b/Externals/wxWidgets3/include/wx/generic/statusbr.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by: VZ at 05.02.00 to derive from wxStatusBarBase
// Created: 01/02/97
-// RCS-ID: $Id: statusbr.h 61624 2009-08-06 00:01:43Z VZ $
+// RCS-ID: $Id: statusbr.h 67384 2011-04-03 20:31:32Z DS $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -81,7 +81,7 @@ protected:
virtual void InitColours();
// true if the status bar shows the size grip: for this it must have
- // wxSTB_SIZEGRIP style and the window it is attached to must be resizeable
+ // wxSTB_SIZEGRIP style and the window it is attached to must be resizable
// and not maximized
bool ShowsSizeGrip() const;
diff --git a/Externals/wxWidgets3/include/wx/generic/tabg.h b/Externals/wxWidgets3/include/wx/generic/tabg.h
index e7f07fcbf5..ea21a32a6d 100644
--- a/Externals/wxWidgets3/include/wx/generic/tabg.h
+++ b/Externals/wxWidgets3/include/wx/generic/tabg.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
-// RCS-ID: $Id: tabg.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: tabg.h 70165 2011-12-29 14:42:13Z SN $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -130,7 +130,7 @@ public:
// Called when a tab is activated
virtual void OnTabActivate(int activateId, int deactivateId);
// Allows vetoing
- virtual bool OnTabPreActivate(int WXUNUSED(activateId), int WXUNUSED(deactivateId) ) { return true; };
+ virtual bool OnTabPreActivate(int WXUNUSED(activateId), int WXUNUSED(deactivateId) ) { return true; }
// Allows use of application-supplied wxTabControl classes.
virtual wxTabControl *OnCreateTabControl(void) { return new wxTabControl(this); }
diff --git a/Externals/wxWidgets3/include/wx/generic/timectrl.h b/Externals/wxWidgets3/include/wx/generic/timectrl.h
new file mode 100644
index 0000000000..c04ab8f254
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/generic/timectrl.h
@@ -0,0 +1,70 @@
+///////////////////////////////////////////////////////////////////////////////
+// Name: wx/generic/timectrl.h
+// Purpose: Generic implementation of wxTimePickerCtrl.
+// Author: Paul Breen, Vadim Zeitlin
+// Created: 2011-09-22
+// RCS-ID: $Id: timectrl.h 69489 2011-10-20 16:45:48Z VZ $
+// Copyright: (c) 2011 Vadim Zeitlin
+// Licence: wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_GENERIC_TIMECTRL_H_
+#define _WX_GENERIC_TIMECTRL_H_
+
+#include "wx/containr.h"
+#include "wx/compositewin.h"
+
+class WXDLLIMPEXP_ADV wxTimePickerCtrlGeneric
+ : public wxCompositeWindow< wxNavigationEnabled >
+{
+public:
+ typedef wxCompositeWindow< wxNavigationEnabled > Base;
+
+ // Creating the control.
+ wxTimePickerCtrlGeneric() { Init(); }
+ virtual ~wxTimePickerCtrlGeneric();
+ wxTimePickerCtrlGeneric(wxWindow *parent,
+ wxWindowID id,
+ const wxDateTime& date = wxDefaultDateTime,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxTP_DEFAULT,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxTimePickerCtrlNameStr)
+ {
+ Init();
+
+ (void)Create(parent, id, date, pos, size, style, validator, name);
+ }
+
+ bool Create(wxWindow *parent,
+ wxWindowID id,
+ const wxDateTime& date = wxDefaultDateTime,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxTP_DEFAULT,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxTimePickerCtrlNameStr);
+
+ // Implement pure virtual wxTimePickerCtrlBase methods.
+ virtual void SetValue(const wxDateTime& date);
+ virtual wxDateTime GetValue() const;
+
+protected:
+ virtual wxSize DoGetBestSize() const;
+
+ virtual void DoMoveWindow(int x, int y, int width, int height);
+
+private:
+ void Init();
+
+ // Return the list of the windows composing this one.
+ virtual wxWindowList GetCompositeWindowParts() const;
+
+ // Implementation data.
+ class wxTimePickerGenericImpl* m_impl;
+
+ wxDECLARE_NO_COPY_CLASS(wxTimePickerCtrlGeneric);
+};
+
+#endif // _WX_GENERIC_TIMECTRL_H_
diff --git a/Externals/wxWidgets3/include/wx/geometry.h b/Externals/wxWidgets3/include/wx/geometry.h
index 5ece43eb50..d8981c5756 100644
--- a/Externals/wxWidgets3/include/wx/geometry.h
+++ b/Externals/wxWidgets3/include/wx/geometry.h
@@ -4,7 +4,7 @@
// Author: Stefan Csomor
// Modified by:
// Created: 08/05/99
-// RCS-ID: $Id: geometry.h 59019 2009-02-19 07:36:27Z PC $
+// RCS-ID: $Id: geometry.h 70493 2012-01-31 19:39:43Z VZ $
// Copyright: (c) 1999 Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -88,12 +88,9 @@ inline wxPoint2DInt operator+(const wxPoint2DInt& pt1 , const wxPoint2DInt& pt2)
inline wxPoint2DInt operator-(const wxPoint2DInt& pt1 , const wxPoint2DInt& pt2);
inline wxPoint2DInt operator*(const wxPoint2DInt& pt1 , const wxPoint2DInt& pt2);
inline wxPoint2DInt operator*(wxInt32 n , const wxPoint2DInt& pt);
-inline wxPoint2DInt operator*(wxInt32 n , const wxPoint2DInt& pt);
-inline wxPoint2DInt operator*(const wxPoint2DInt& pt , wxInt32 n);
inline wxPoint2DInt operator*(const wxPoint2DInt& pt , wxInt32 n);
inline wxPoint2DInt operator/(const wxPoint2DInt& pt1 , const wxPoint2DInt& pt2);
inline wxPoint2DInt operator/(const wxPoint2DInt& pt , wxInt32 n);
-inline wxPoint2DInt operator/(const wxPoint2DInt& pt , wxInt32 n);
inline wxPoint2DInt::wxPoint2DInt()
{
@@ -534,8 +531,8 @@ public:
inline wxSize GetSize()
{ return wxSize((int) m_width, (int) m_height); }
- // for the edge and corner accessors there are two setters conterparts, the Set.. functions keep the other corners at their
- // position whenever sensible, the Move.. functions keep the size of the rect and move the other corners apropriately
+ // for the edge and corner accessors there are two setters counterparts, the Set.. functions keep the other corners at their
+ // position whenever sensible, the Move.. functions keep the size of the rect and move the other corners appropriately
inline wxDouble GetLeft() const { return m_x; }
inline void SetLeft( wxDouble n ) { m_width += m_x - n; m_x = n; }
@@ -661,8 +658,8 @@ public:
inline wxPoint2DInt GetPosition() { return wxPoint2DInt(m_x, m_y); }
inline wxSize GetSize() { return wxSize(m_width, m_height); }
- // for the edge and corner accessors there are two setters conterparts, the Set.. functions keep the other corners at their
- // position whenever sensible, the Move.. functions keep the size of the rect and move the other corners apropriately
+ // for the edge and corner accessors there are two setters counterparts, the Set.. functions keep the other corners at their
+ // position whenever sensible, the Move.. functions keep the size of the rect and move the other corners appropriately
inline wxInt32 GetLeft() const { return m_x; }
inline void SetLeft( wxInt32 n ) { m_width += m_x - n; m_x = n; }
diff --git a/Externals/wxWidgets3/include/wx/glcanvas.h b/Externals/wxWidgets3/include/wx/glcanvas.h
index b45a96ffd6..c0ae3dbdf9 100644
--- a/Externals/wxWidgets3/include/wx/glcanvas.h
+++ b/Externals/wxWidgets3/include/wx/glcanvas.h
@@ -5,7 +5,7 @@
// Modified by:
// Created:
// Copyright: (c) Julian Smart
-// RCS-ID: $Id: glcanvas.h 66088 2010-11-10 13:52:04Z VZ $
+// RCS-ID: $Id: glcanvas.h 70165 2011-12-29 14:42:13Z SN $
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -49,7 +49,7 @@ enum
WX_GL_MIN_ACCUM_BLUE, // use blue buffer with most bits (> MIN_ACCUM_BLUE bits)
WX_GL_MIN_ACCUM_ALPHA, // use alpha buffer with most bits (> MIN_ACCUM_ALPHA bits)
WX_GL_SAMPLE_BUFFERS, // 1 for multisampling support (antialiasing)
- WX_GL_SAMPLES // 4 for 2x2 antialising supersampling on most graphics cards
+ WX_GL_SAMPLES // 4 for 2x2 antialiasing supersampling on most graphics cards
};
#define wxGLCanvasName wxT("GLCanvas")
@@ -143,7 +143,7 @@ public:
#ifdef __WXUNIVERSAL__
// resolve the conflict with wxWindowUniv::SetCurrent()
- virtual bool SetCurrent(bool doit) { return wxWindow::SetCurrent(doit); };
+ virtual bool SetCurrent(bool doit) { return wxWindow::SetCurrent(doit); }
#endif
protected:
diff --git a/Externals/wxWidgets3/include/wx/graphics.h b/Externals/wxWidgets3/include/wx/graphics.h
index 64b62bd7d7..0b2420faa8 100644
--- a/Externals/wxWidgets3/include/wx/graphics.h
+++ b/Externals/wxWidgets3/include/wx/graphics.h
@@ -5,7 +5,7 @@
// Modified by:
// Created:
// Copyright: (c) Stefan Csomor
-// RCS-ID: $Id: graphics.h 66514 2011-01-01 11:10:35Z SC $
+// RCS-ID: $Id: graphics.h 69485 2011-10-20 04:49:12Z RD $
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -19,12 +19,27 @@
#include "wx/geometry.h"
#include "wx/dynarray.h"
#include "wx/dc.h"
+#include "wx/image.h"
#include "wx/vector.h"
enum wxAntialiasMode
{
wxANTIALIAS_NONE, // should be 0
- wxANTIALIAS_DEFAULT,
+ wxANTIALIAS_DEFAULT
+};
+
+enum wxInterpolationQuality
+{
+ // default interpolation
+ wxINTERPOLATION_DEFAULT,
+ // no interpolation
+ wxINTERPOLATION_NONE,
+ // fast interpolation, suited for interactivity
+ wxINTERPOLATION_FAST,
+ // better quality
+ wxINTERPOLATION_GOOD,
+ // best quality, not suited for interactivity
+ wxINTERPOLATION_BEST
};
enum wxCompositionMode
@@ -35,6 +50,7 @@ enum wxCompositionMode
// classic Porter-Duff compositions
// http://keithp.com/~keithp/porterduff/p253-porter.pdf
+ wxCOMPOSITION_INVALID = -1, /* indicates invalid/unsupported mode */
wxCOMPOSITION_CLEAR, /* R = 0 */
wxCOMPOSITION_SOURCE, /* R = S */
wxCOMPOSITION_OVER, /* R = S + D*(1 - Sa) */
@@ -50,7 +66,7 @@ enum wxCompositionMode
wxCOMPOSITION_XOR, /* R = S*(1 - Da) + D*(1 - Sa) */
// mathematical compositions
- wxCOMPOSITION_ADD, /* R = S + D */
+ wxCOMPOSITION_ADD /* R = S + D */
};
class WXDLLIMPEXP_FWD_CORE wxWindowDC;
@@ -151,6 +167,14 @@ class WXDLLIMPEXP_CORE wxGraphicsBitmap : public wxGraphicsObject
public:
wxGraphicsBitmap() {}
virtual ~wxGraphicsBitmap() {}
+
+ // Convert bitmap to wxImage: this is more efficient than converting to
+ // wxBitmap first and then to wxImage and also works without X server
+ // connection under Unix that wxBitmap requires.
+#if wxUSE_IMAGE
+ wxImage ConvertToImage() const;
+#endif // wxUSE_IMAGE
+
private:
DECLARE_DYNAMIC_CLASS(wxGraphicsBitmap)
};
@@ -410,6 +434,13 @@ public:
static wxGraphicsContext* Create( wxWindow* window );
+#if wxUSE_IMAGE
+ // Create a context for drawing onto a wxImage. The image life time must be
+ // greater than that of the context itself as when the context is destroyed
+ // it will copy its contents to the specified image.
+ static wxGraphicsContext* Create(wxImage& image);
+#endif // wxUSE_IMAGE
+
// create a context that can be used for measuring texts only, no drawing allowed
static wxGraphicsContext * Create();
@@ -459,11 +490,18 @@ public:
wxDouble xc, wxDouble yc, wxDouble radius,
const wxGraphicsGradientStops& stops) const;
- // sets the font
+ // creates a font
virtual wxGraphicsFont CreateFont( const wxFont &font , const wxColour &col = *wxBLACK ) const;
+ virtual wxGraphicsFont CreateFont(double sizeInPixels,
+ const wxString& facename,
+ int flags = wxFONTFLAG_DEFAULT,
+ const wxColour& col = *wxBLACK) const;
// create a native bitmap representation
virtual wxGraphicsBitmap CreateBitmap( const wxBitmap &bitmap ) const;
+#if wxUSE_IMAGE
+ wxGraphicsBitmap CreateBitmapFromImage(const wxImage& image) const;
+#endif // wxUSE_IMAGE
// create a native bitmap representation
virtual wxGraphicsBitmap CreateSubBitmap( const wxGraphicsBitmap &bitmap, wxDouble x, wxDouble y, wxDouble w, wxDouble h ) const;
@@ -496,6 +534,12 @@ public:
// sets the antialiasing mode, returns true if it supported
virtual bool SetAntialiasMode(wxAntialiasMode antialias) = 0;
+ // returns the current interpolation quality
+ virtual wxInterpolationQuality GetInterpolationQuality() const { return m_interpolation; }
+
+ // sets the interpolation quality, returns true if it supported
+ virtual bool SetInterpolationQuality(wxInterpolationQuality interpolation) = 0;
+
// returns the current compositing operator
virtual wxCompositionMode GetCompositionMode() const { return m_composition; }
@@ -503,7 +547,13 @@ public:
virtual bool SetCompositionMode(wxCompositionMode op) = 0;
// returns the size of the graphics context in device coordinates
- virtual void GetSize( wxDouble* width, wxDouble* height);
+ void GetSize(wxDouble* width, wxDouble* height)
+ {
+ if ( width )
+ *width = m_width;
+ if ( height )
+ *height = m_height;
+ }
// returns the resolution of the graphics context in device points per inch
virtual void GetDPI( wxDouble* dpiX, wxDouble* dpiY);
@@ -636,14 +686,26 @@ public:
// helper to determine if a 0.5 offset should be applied for the drawing operation
virtual bool ShouldOffset() const { return false; }
-
+
+ // indicates whether the context should try to offset for pixel boundaries, this only makes sense on
+ // bitmap devices like screen, by default this is turned off
+ virtual void EnableOffset(bool enable = true);
+
+ void DisableOffset() { EnableOffset(false); }
+ bool OffsetEnabled() { return m_enableOffset; }
+
protected:
+ // These fields must be initialized in the derived class ctors.
+ wxDouble m_width,
+ m_height;
wxGraphicsPen m_pen;
wxGraphicsBrush m_brush;
wxGraphicsFont m_font;
wxAntialiasMode m_antialias;
wxCompositionMode m_composition;
+ wxInterpolationQuality m_interpolation;
+ bool m_enableOffset;
protected:
// implementations of overloaded public functions: we use different names
@@ -733,6 +795,10 @@ public:
virtual wxGraphicsContext * CreateContext( wxWindow* window ) = 0;
+#if wxUSE_IMAGE
+ virtual wxGraphicsContext * CreateContextFromImage(wxImage& image) = 0;
+#endif // wxUSE_IMAGE
+
// create a context that can be used for measuring texts only, no drawing allowed
virtual wxGraphicsContext * CreateMeasuringContext() = 0;
@@ -767,9 +833,17 @@ public:
// sets the font
virtual wxGraphicsFont CreateFont( const wxFont &font , const wxColour &col = *wxBLACK ) = 0;
+ virtual wxGraphicsFont CreateFont(double sizeInPixels,
+ const wxString& facename,
+ int flags = wxFONTFLAG_DEFAULT,
+ const wxColour& col = *wxBLACK) = 0;
// create a native bitmap representation
virtual wxGraphicsBitmap CreateBitmap( const wxBitmap &bitmap ) = 0;
+#if wxUSE_IMAGE
+ virtual wxGraphicsBitmap CreateBitmapFromImage(const wxImage& image) = 0;
+ virtual wxImage CreateImageFromBitmap(const wxGraphicsBitmap& bmp) = 0;
+#endif // wxUSE_IMAGE
// create a graphics bitmap from a native bitmap
virtual wxGraphicsBitmap CreateBitmapFromNativeBitmap( void* bitmap ) = 0;
@@ -782,6 +856,16 @@ private:
DECLARE_ABSTRACT_CLASS(wxGraphicsRenderer)
};
-#endif
+
+#if wxUSE_IMAGE
+inline
+wxImage wxGraphicsBitmap::ConvertToImage() const
+{
+ wxGraphicsRenderer* renderer = GetRenderer();
+ return renderer ? renderer->CreateImageFromBitmap(*this) : wxNullImage;
+}
+#endif // wxUSE_IMAGE
+
+#endif // wxUSE_GRAPHICS_CONTEXT
#endif // _WX_GRAPHICS_H_
diff --git a/Externals/wxWidgets3/include/wx/gtk/animate.h b/Externals/wxWidgets3/include/wx/gtk/animate.h
index 7dc5e96b6c..b48fb3a543 100644
--- a/Externals/wxWidgets3/include/wx/gtk/animate.h
+++ b/Externals/wxWidgets3/include/wx/gtk/animate.h
@@ -4,7 +4,7 @@
// Author: Julian Smart and Guillermo Rodriguez Garcia
// Modified by: Francesco Montorsi
// Created: 13/8/99
-// RCS-ID: $Id: animate.h 53629 2008-05-17 22:51:52Z VZ $
+// RCS-ID: $Id: animate.h 70520 2012-02-05 22:53:39Z SN $
// Copyright: (c) Julian Smart and Guillermo Rodriguez Garcia
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
diff --git a/Externals/wxWidgets3/include/wx/gtk/anybutton.h b/Externals/wxWidgets3/include/wx/gtk/anybutton.h
new file mode 100644
index 0000000000..7dee3e096d
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/gtk/anybutton.h
@@ -0,0 +1,81 @@
+/////////////////////////////////////////////////////////////////////////////
+// Name: wx/gtk/anybutton.h
+// Purpose: wxGTK wxAnyButton class declaration
+// Author: Robert Roebling
+// Created: 1998-05-20 (extracted from button.h)
+// Id: $Id: anybutton.h 67931 2011-06-14 13:00:42Z VZ $
+// Copyright: (c) 1998 Robert Roebling
+// Licence: wxWindows licence
+/////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_GTK_ANYBUTTON_H_
+#define _WX_GTK_ANYBUTTON_H_
+
+//-----------------------------------------------------------------------------
+// wxAnyButton
+//-----------------------------------------------------------------------------
+
+class WXDLLIMPEXP_CORE wxAnyButton : public wxAnyButtonBase
+{
+public:
+ wxAnyButton()
+ {
+ m_isCurrent =
+ m_isPressed = false;
+ }
+
+ virtual bool Enable( bool enable = true );
+
+ // implementation
+ // --------------
+
+ static wxVisualAttributes
+ GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
+
+ // called from GTK callbacks: they update the button state and call
+ // GTKUpdateBitmap()
+ void GTKMouseEnters();
+ void GTKMouseLeaves();
+ void GTKPressed();
+ void GTKReleased();
+
+protected:
+ virtual GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const;
+
+ virtual wxBitmap DoGetBitmap(State which) const;
+ virtual void DoSetBitmap(const wxBitmap& bitmap, State which);
+ virtual void DoSetBitmapPosition(wxDirection dir);
+
+private:
+ typedef wxAnyButtonBase base_type;
+
+ // focus event handler: calls GTKUpdateBitmap()
+ void GTKOnFocus(wxFocusEvent& event);
+
+ // update the bitmap to correspond to the current button state
+ void GTKUpdateBitmap();
+
+ // return the current button state from m_isXXX flags (which means that it
+ // might not correspond to the real current state as e.g. m_isCurrent will
+ // never be true if we don't have a valid current bitmap)
+ State GTKGetCurrentState() const;
+
+ // show the given bitmap (must be valid)
+ void GTKDoShowBitmap(const wxBitmap& bitmap);
+
+
+ // the bitmaps for the different state of the buttons, all of them may be
+ // invalid and the button only shows a bitmap at all if State_Normal bitmap
+ // is valid
+ wxBitmap m_bitmaps[State_Max];
+
+ // true iff mouse is currently over the button
+ bool m_isCurrent;
+
+ // true iff the button is in pressed state
+ bool m_isPressed;
+
+ wxDECLARE_NO_COPY_CLASS(wxAnyButton);
+};
+
+#endif // _WX_GTK_ANYBUTTON_H_
diff --git a/Externals/wxWidgets3/include/wx/gtk/app.h b/Externals/wxWidgets3/include/wx/gtk/app.h
index c7ed113db6..00028aca9d 100644
--- a/Externals/wxWidgets3/include/wx/gtk/app.h
+++ b/Externals/wxWidgets3/include/wx/gtk/app.h
@@ -2,7 +2,7 @@
// Name: wx/gtk/app.h
// Purpose: wxApp definition for wxGTK
// Author: Robert Roebling
-// Id: $Id: app.h 63091 2010-01-07 18:30:18Z PC $
+// Id: $Id: app.h 69020 2011-09-07 16:56:50Z PC $
// Copyright: (c) 1998 Robert Roebling, Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -75,7 +75,7 @@ private:
#if wxUSE_THREADS
wxMutex m_idleMutex;
#endif
- guint m_idleSourceId;
+ unsigned m_idleSourceId;
#if wxUSE_LIBHILDON || wxUSE_LIBHILDON2
HildonProgram *m_hildonProgram;
diff --git a/Externals/wxWidgets3/include/wx/gtk/assertdlg_gtk.h b/Externals/wxWidgets3/include/wx/gtk/assertdlg_gtk.h
index 35b2b82be3..91197215b6 100644
--- a/Externals/wxWidgets3/include/wx/gtk/assertdlg_gtk.h
+++ b/Externals/wxWidgets3/include/wx/gtk/assertdlg_gtk.h
@@ -2,19 +2,13 @@
// Name: wx/gtk/assertdlg_gtk.h
// Purpose: GtkAssertDialog
// Author: Francesco Montorsi
-// Id: $Id: assertdlg_gtk.h 67254 2011-03-20 00:14:35Z DS $
+// Id: $Id: assertdlg_gtk.h 67338 2011-03-30 05:35:24Z PC $
// Copyright: (c) 2006 Francesco Montorsi
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////// */
-#ifndef __GTK_ASSERTDLG_H__
-#define __GTK_ASSERTDLG_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
-#include
+#ifndef _WX_GTK_ASSERTDLG_H_
+#define _WX_GTK_ASSERTDLG_H_
#define GTK_TYPE_ASSERT_DIALOG (gtk_assert_dialog_get_type ())
#define GTK_ASSERT_DIALOG(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_ASSERT_DIALOG, GtkAssertDialog))
@@ -82,10 +76,4 @@ void gtk_assert_dialog_append_stack_frame(GtkAssertDialog *dlg,
const gchar *sourcefile,
guint line_number);
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
-#endif /* __GTK_ASSERTDLG_H__ */
-
-
+#endif /* _WX_GTK_ASSERTDLG_H_ */
diff --git a/Externals/wxWidgets3/include/wx/gtk/bitmap.h b/Externals/wxWidgets3/include/wx/gtk/bitmap.h
index c82ef8a1cb..a6e6634320 100644
--- a/Externals/wxWidgets3/include/wx/gtk/bitmap.h
+++ b/Externals/wxWidgets3/include/wx/gtk/bitmap.h
@@ -2,7 +2,7 @@
// Name: wx/gtk/bitmap.h
// Purpose:
// Author: Robert Roebling
-// RCS-ID: $Id: bitmap.h 63774 2010-03-28 23:20:49Z VZ $
+// RCS-ID: $Id: bitmap.h 70165 2011-12-29 14:42:13Z SN $
// Copyright: (c) 1998 Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -30,8 +30,8 @@ public:
virtual ~wxMask();
// implementation
- GdkBitmap *m_bitmap;
- GdkBitmap *GetBitmap() const;
+ GdkPixmap* m_bitmap;
+ GdkPixmap* GetBitmap() const;
protected:
virtual void FreeData();
@@ -94,7 +94,7 @@ public:
#if wxUSE_PALETTE
wxPalette *GetPalette() const;
void SetPalette(const wxPalette& palette);
- wxPalette *GetColourMap() const { return GetPalette(); };
+ wxPalette *GetColourMap() const { return GetPalette(); }
#endif // wxUSE_PALETTE
static void InitStandardHandlers();
diff --git a/Externals/wxWidgets3/include/wx/gtk/button.h b/Externals/wxWidgets3/include/wx/gtk/button.h
index 9be049b5ef..6b8988ed7e 100644
--- a/Externals/wxWidgets3/include/wx/gtk/button.h
+++ b/Externals/wxWidgets3/include/wx/gtk/button.h
@@ -2,7 +2,7 @@
// Name: wx/gtk/button.h
// Purpose: wxGTK wxButton class declaration
// Author: Robert Roebling
-// Id: $Id: button.h 67066 2011-02-27 12:48:30Z VZ $
+// Id: $Id: button.h 67931 2011-06-14 13:00:42Z VZ $
// Copyright: (c) 1998 Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -17,7 +17,7 @@
class WXDLLIMPEXP_CORE wxButton : public wxButtonBase
{
public:
- wxButton() { Init(); }
+ wxButton() {}
wxButton(wxWindow *parent, wxWindowID id,
const wxString& label = wxEmptyString,
const wxPoint& pos = wxDefaultPosition,
@@ -25,8 +25,6 @@ public:
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr)
{
- Init();
-
Create(parent, id, label, pos, size, style, validator, name);
}
@@ -39,7 +37,6 @@ public:
virtual wxWindow *SetDefault();
virtual void SetLabel( const wxString &label );
- virtual bool Enable( bool enable = true );
// implementation
// --------------
@@ -61,12 +58,6 @@ protected:
virtual wxSize DoGetBestSize() const;
virtual void DoApplyWidgetStyle(GtkRcStyle *style);
- virtual GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const;
-
- virtual wxBitmap DoGetBitmap(State which) const;
- virtual void DoSetBitmap(const wxBitmap& bitmap, State which);
- virtual void DoSetBitmapPosition(wxDirection dir);
-
#if wxUSE_MARKUP
virtual bool DoSetLabelMarkup(const wxString& markup);
#endif // wxUSE_MARKUP
@@ -74,42 +65,9 @@ protected:
private:
typedef wxButtonBase base_type;
- // common part of all ctors
- void Init()
- {
- m_isCurrent =
- m_isPressed = false;
- }
-
- // focus event handler: calls GTKUpdateBitmap()
- void GTKOnFocus(wxFocusEvent& event);
-
- // update the bitmap to correspond to the current button state
- void GTKUpdateBitmap();
-
- // return the current button state from m_isXXX flags (which means that it
- // might not correspond to the real current state as e.g. m_isCurrent will
- // never be true if we don't have a valid current bitmap)
- State GTKGetCurrentState() const;
-
- // show the given bitmap (must be valid)
- void GTKDoShowBitmap(const wxBitmap& bitmap);
-
// Return the GtkLabel used by this button.
GtkLabel *GTKGetLabel() const;
-
- // the bitmaps for the different state of the buttons, all of them may be
- // invalid and the button only shows a bitmap at all if State_Normal bitmap
- // is valid
- wxBitmap m_bitmaps[State_Max];
-
- // true iff mouse is currently over the button
- bool m_isCurrent;
-
- // true iff the button is in pressed state
- bool m_isPressed;
-
DECLARE_DYNAMIC_CLASS(wxButton)
};
diff --git a/Externals/wxWidgets3/include/wx/gtk/calctrl.h b/Externals/wxWidgets3/include/wx/gtk/calctrl.h
index 9b2a10d1df..a0cab6253f 100644
--- a/Externals/wxWidgets3/include/wx/gtk/calctrl.h
+++ b/Externals/wxWidgets3/include/wx/gtk/calctrl.h
@@ -2,7 +2,7 @@
// Name: wx/gtk/calctrl.h
// Purpose: wxGtkCalendarCtrl control
// Author: Marcin Wojdyr
-// RCS-ID: $Id: calctrl.h 58757 2009-02-08 11:45:59Z VZ $
+// RCS-ID: $Id: calctrl.h 67987 2011-06-19 22:46:36Z VZ $
// Copyright: (C) 2008 Marcin Wojdyr
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -38,15 +38,31 @@ public:
virtual bool SetDate(const wxDateTime& date);
virtual wxDateTime GetDate() const;
+ virtual bool SetDateRange(const wxDateTime& lowerdate = wxDefaultDateTime,
+ const wxDateTime& upperdate = wxDefaultDateTime);
+ virtual bool GetDateRange(wxDateTime *lowerdate, wxDateTime *upperdate) const;
+
virtual bool EnableMonthChange(bool enable = true);
virtual void Mark(size_t day, bool mark);
// implementation
// --------------
- wxDateTime m_selectedDate;
+
+ void GTKGenerateEvent(wxEventType type);
private:
+ bool IsInValidRange(const wxDateTime& dt) const;
+
+ // Range of the dates that can be selected by user, either or both may be
+ // invalid to indicate that no corresponding restriction is set.
+ wxDateTime m_validStart,
+ m_validEnd;
+
+ // Last known selected date, may be different from the real selection in
+ // the control while a handler for day-selected is running.
+ wxDateTime m_selectedDate;
+
DECLARE_DYNAMIC_CLASS(wxGtkCalendarCtrl)
wxDECLARE_NO_COPY_CLASS(wxGtkCalendarCtrl);
};
diff --git a/Externals/wxWidgets3/include/wx/gtk/combobox.h b/Externals/wxWidgets3/include/wx/gtk/combobox.h
index 4af492976f..87154df510 100644
--- a/Externals/wxWidgets3/include/wx/gtk/combobox.h
+++ b/Externals/wxWidgets3/include/wx/gtk/combobox.h
@@ -3,7 +3,7 @@
// Purpose:
// Author: Robert Roebling
// Created: 01/02/97
-// Id: $Id: combobox.h 65324 2010-08-16 17:48:28Z RR $
+// Id: $Id: combobox.h 70880 2012-03-11 23:55:19Z VZ $
// Copyright: (c) 1998 Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -88,6 +88,9 @@ public:
{
return wxItemContainer::GetStringSelection();
}
+
+ virtual void SetString(unsigned int n, const wxString& string);
+
virtual void Popup();
virtual void Dismiss();
@@ -97,7 +100,9 @@ public:
wxItemContainer::Clear();
}
- bool IsEmpty() const { return wxItemContainer::IsEmpty(); }
+ // See wxComboBoxBase discussion of IsEmpty().
+ bool IsListEmpty() const { return wxItemContainer::IsEmpty(); }
+ bool IsTextEmpty() const { return wxTextEntry::IsEmpty(); }
void OnChar( wxKeyEvent &event );
diff --git a/Externals/wxWidgets3/include/wx/gtk/control.h b/Externals/wxWidgets3/include/wx/gtk/control.h
index ad55168658..3d00b42278 100644
--- a/Externals/wxWidgets3/include/wx/gtk/control.h
+++ b/Externals/wxWidgets3/include/wx/gtk/control.h
@@ -2,7 +2,7 @@
// Name: wx/gtk/control.h
// Purpose:
// Author: Robert Roebling
-// Id: $Id: control.h 67254 2011-03-20 00:14:35Z DS $
+// Id: $Id: control.h 70714 2012-02-27 17:49:33Z PC $
// Copyright: (c) 1998 Robert Roebling, Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -20,7 +20,7 @@ typedef struct _GtkFrame GtkFrame;
// C-linkage function pointer types for GetDefaultAttributesFromGTKWidget
extern "C" {
typedef GtkWidget* (*wxGtkWidgetNew_t)(void);
- typedef GtkWidget* (*wxGtkWidgetNewFromStr_t)(const gchar*);
+ typedef GtkWidget* (*wxGtkWidgetNewFromStr_t)(const char*);
typedef GtkWidget* (*wxGtkWidgetNewFromAdj_t)(GtkAdjustment*);
}
@@ -75,20 +75,20 @@ protected:
static wxVisualAttributes
GetDefaultAttributesFromGTKWidget(GtkWidget* widget,
bool useBase = false,
- int state = -1);
+ int state = 0);
static wxVisualAttributes
GetDefaultAttributesFromGTKWidget(wxGtkWidgetNew_t,
bool useBase = false,
- int state = -1);
+ int state = 0);
static wxVisualAttributes
GetDefaultAttributesFromGTKWidget(wxGtkWidgetNewFromStr_t,
bool useBase = false,
- int state = -1);
+ int state = 0);
static wxVisualAttributes
GetDefaultAttributesFromGTKWidget(wxGtkWidgetNewFromAdj_t,
bool useBase = false,
- int state = -1);
+ int state = 0);
// Widgets that use the style->base colour for the BG colour should
// override this and return true.
diff --git a/Externals/wxWidgets3/include/wx/gtk/dataview.h b/Externals/wxWidgets3/include/wx/gtk/dataview.h
index 5a82a93625..75463bd02d 100644
--- a/Externals/wxWidgets3/include/wx/gtk/dataview.h
+++ b/Externals/wxWidgets3/include/wx/gtk/dataview.h
@@ -2,7 +2,7 @@
// Name: wx/gtk/dataview.h
// Purpose: wxDataViewCtrl GTK+2 implementation header
// Author: Robert Roebling
-// Id: $Id: dataview.h 65562 2010-09-17 19:07:02Z RR $
+// Id: $Id: dataview.h 70377 2012-01-17 14:05:17Z VS $
// Copyright: (c) 1998 Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -44,9 +44,8 @@ public:
virtual void SetSortable( bool sortable );
virtual void SetSortOrder( bool ascending );
- virtual void SetAsSortKey(bool sort = true);
- virtual void SetResizeable( bool resizeable );
+ virtual void SetResizeable( bool resizable );
virtual void SetHidden( bool hidden );
virtual void SetMinWidth( int minWidth );
@@ -76,8 +75,7 @@ public:
virtual int GetFlags() const { return GetFromIndividualFlags(); }
// implementation
- GtkWidget* GetGtkHandle() { return m_column; }
- GtkWidget* GetConstGtkHandle() const { return m_column; }
+ GtkWidget* GetGtkHandle() const { return m_column; }
private:
// holds the GTK handle
@@ -143,7 +141,7 @@ public:
virtual wxDataViewColumn *GetSortingColumn() const;
- virtual wxDataViewItem GetSelection() const;
+ virtual int GetSelectedItemsCount() const;
virtual int GetSelections( wxDataViewItemArray & sel ) const;
virtual void SetSelections( const wxDataViewItemArray & sel );
virtual void Select( const wxDataViewItem & item );
@@ -160,6 +158,10 @@ public:
virtual wxRect GetItemRect( const wxDataViewItem &item,
const wxDataViewColumn *column = NULL ) const;
+ virtual bool SetRowHeight( int rowHeight );
+
+ virtual void EditItem(const wxDataViewItem& item, const wxDataViewColumn *column);
+
virtual void Expand( const wxDataViewItem & item );
virtual void Collapse( const wxDataViewItem & item );
virtual bool IsExpanded( const wxDataViewItem & item ) const;
@@ -167,6 +169,8 @@ public:
virtual bool EnableDragSource( const wxDataFormat &format );
virtual bool EnableDropTarget( const wxDataFormat &format );
+ virtual wxDataViewColumn *GetCurrentColumn() const;
+
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
@@ -181,6 +185,8 @@ public:
virtual void OnInternalIdle();
+ int GTKGetUniformRowHeight() const { return m_uniformRowHeight; }
+
protected:
virtual void DoSetExpanderColumn();
virtual void DoSetIndent();
@@ -193,6 +199,12 @@ private:
virtual wxDataViewItem DoGetCurrentItem() const;
virtual void DoSetCurrentItem(const wxDataViewItem& item);
+ // Return wxDataViewColumn matching the given GtkTreeViewColumn.
+ //
+ // If the input argument is NULL, return NULL too. Otherwise we must find
+ // the matching column and assert if we didn't.
+ wxDataViewColumn* FromGTKColumn(GtkTreeViewColumn *gtk_col) const;
+
friend class wxDataViewCtrlDCImpl;
friend class wxDataViewColumn;
friend class wxDataViewCtrlInternal;
@@ -202,6 +214,11 @@ private:
wxDataViewColumnList m_cols;
wxDataViewItem m_ensureVisibleDefered;
+ // By default this is set to -1 and the height of the rows is determined by
+ // GetRect() methods of the renderers but this can be set to a positive
+ // value to force the height of all rows to the given value.
+ int m_uniformRowHeight;
+
virtual void AddChildGTK(wxWindowGTK* child);
void GtkEnableSelectionEvents();
void GtkDisableSelectionEvents();
diff --git a/Externals/wxWidgets3/include/wx/gtk/dc.h b/Externals/wxWidgets3/include/wx/gtk/dc.h
index 0d00acbd15..3a2cc8afdc 100644
--- a/Externals/wxWidgets3/include/wx/gtk/dc.h
+++ b/Externals/wxWidgets3/include/wx/gtk/dc.h
@@ -2,7 +2,7 @@
// Name: wx/gtk/dc.h
// Purpose:
// Author: Robert Roebling
-// Id: $Id: dc.h 50547 2007-12-06 16:22:00Z PC $
+// Id: $Id: dc.h 70165 2011-12-29 14:42:13Z SN $
// Copyright: (c) 1998 Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -23,7 +23,7 @@ public:
virtual ~wxGTKDCImpl();
#if wxUSE_PALETTE
- void SetColourMap( const wxPalette& palette ) { SetPalette(palette); };
+ void SetColourMap( const wxPalette& palette ) { SetPalette(palette); }
#endif // wxUSE_PALETTE
// Resolution in pixels per logical inch
diff --git a/Externals/wxWidgets3/include/wx/gtk/dirdlg.h b/Externals/wxWidgets3/include/wx/gtk/dirdlg.h
index ad969b56e9..78e8c02a96 100644
--- a/Externals/wxWidgets3/include/wx/gtk/dirdlg.h
+++ b/Externals/wxWidgets3/include/wx/gtk/dirdlg.h
@@ -2,7 +2,7 @@
// Name: wx/gtk/dirdlg.h
// Purpose: wxDirDialog
// Author: Francesco Montorsi
-// Id: $Id: dirdlg.h 67254 2011-03-20 00:14:35Z DS $
+// Id: $Id: dirdlg.h 70898 2012-03-14 12:32:27Z VZ $
// Copyright: (c) 2006 Francesco Montorsi
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,13 @@ public:
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
const wxString& name = wxDirDialogNameStr);
-
+ bool Create(wxWindow *parent,
+ const wxString& message = wxDirSelectorPromptStr,
+ const wxString& defaultPath = wxEmptyString,
+ long style = wxDD_DEFAULT_STYLE,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ const wxString& name = wxDirDialogNameStr);
virtual ~wxDirDialog() { }
diff --git a/Externals/wxWidgets3/include/wx/gtk/dnd.h b/Externals/wxWidgets3/include/wx/gtk/dnd.h
index 74cdd71bc1..f7725017b5 100644
--- a/Externals/wxWidgets3/include/wx/gtk/dnd.h
+++ b/Externals/wxWidgets3/include/wx/gtk/dnd.h
@@ -2,7 +2,7 @@
// Name: wx/gtk/dnd.h
// Purpose: declaration of the wxDropTarget class
// Author: Robert Roebling
-// RCS-ID: $Id: dnd.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: dnd.h 69020 2011-09-07 16:56:50Z PC $
// Copyright: (c) 1998 Vadim Zeitlin, Robert Roebling
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -50,13 +50,13 @@ public:
GdkDragContext *m_dragContext;
GtkWidget *m_dragWidget;
GtkSelectionData *m_dragData;
- guint m_dragTime;
+ unsigned m_dragTime;
bool m_firstMotion; // gdk has no "gdk_drag_enter" event
void GTKSetDragContext( GdkDragContext *dc ) { m_dragContext = dc; }
void GTKSetDragWidget( GtkWidget *w ) { m_dragWidget = w; }
void GTKSetDragData( GtkSelectionData *sd ) { m_dragData = sd; }
- void GTKSetDragTime( guint time ) { m_dragTime = time; }
+ void GTKSetDragTime(unsigned time) { m_dragTime = time; }
};
//-------------------------------------------------------------------------
diff --git a/Externals/wxWidgets3/include/wx/gtk/dvrenderer.h b/Externals/wxWidgets3/include/wx/gtk/dvrenderer.h
index 195360fdf7..a8a75dc4fd 100644
--- a/Externals/wxWidgets3/include/wx/gtk/dvrenderer.h
+++ b/Externals/wxWidgets3/include/wx/gtk/dvrenderer.h
@@ -3,7 +3,7 @@
// Purpose: wxDataViewRenderer for GTK wxDataViewCtrl implementation
// Author: Robert Roebling, Vadim Zeitlin
// Created: 2009-11-07 (extracted from wx/gtk/dataview.h)
-// RCS-ID: $Id: dvrenderer.h 66404 2010-12-19 19:43:46Z RR $
+// RCS-ID: $Id: dvrenderer.h 69020 2011-09-07 16:56:50Z PC $
// Copyright: (c) 2006 Robert Roebling
// (c) 2009 Vadim Zeitlin
// Licence: wxWindows licence
@@ -48,11 +48,11 @@ public:
//
// it validates the new value and notifies the model about the change by
// calling GtkOnCellChanged() if it was accepted
- virtual void GtkOnTextEdited(const gchar *itempath, const wxString& value);
+ virtual void GtkOnTextEdited(const char *itempath, const wxString& value);
GtkCellRenderer* GetGtkHandle() { return m_renderer; }
void GtkInitHandlers();
- void GtkUpdateAlignment();
+ void GtkUpdateAlignment() { GtkApplyAlignment(m_renderer); }
// should be overridden to return true if the renderer supports properties
// corresponding to wxDataViewItemAttr field, see wxGtkTreeCellDataFunc()
@@ -85,6 +85,9 @@ protected:
const wxDataViewItem& item,
unsigned col);
+ // Apply our effective alignment (i.e. m_alignment if specified or the
+ // associated column alignment by default) to the given renderer.
+ void GtkApplyAlignment(GtkCellRenderer *renderer);
GtkCellRenderer *m_renderer;
int m_alignment;
diff --git a/Externals/wxWidgets3/include/wx/gtk/dvrenderers.h b/Externals/wxWidgets3/include/wx/gtk/dvrenderers.h
index 2199a7e851..95b84d416b 100644
--- a/Externals/wxWidgets3/include/wx/gtk/dvrenderers.h
+++ b/Externals/wxWidgets3/include/wx/gtk/dvrenderers.h
@@ -3,7 +3,7 @@
// Purpose: All GTK wxDataViewCtrl renderer classes
// Author: Robert Roebling, Vadim Zeitlin
// Created: 2009-11-07 (extracted from wx/gtk/dataview.h)
-// RCS-ID: $Id: dvrenderers.h 67120 2011-03-03 17:51:52Z PC $
+// RCS-ID: $Id: dvrenderers.h 70300 2012-01-09 06:31:07Z PC $
// Copyright: (c) 2006 Robert Roebling
// (c) 2009 Vadim Zeitlin
// Licence: wxWindows licence
@@ -117,18 +117,12 @@ public:
wxDC *dc,
int state);
+ struct GTKRenderParams;
+
// store GTK render call parameters for possible later use
- void GTKStashRenderParams(GdkWindow *window,
- GtkWidget *widget,
- GdkRectangle *background_area,
- GdkRectangle *expose_area,
- int flags)
+ void GTKSetRenderParams(GTKRenderParams* renderParams)
{
- m_renderParams.window = window;
- m_renderParams.widget = widget;
- m_renderParams.background_area = background_area;
- m_renderParams.expose_area = expose_area;
- m_renderParams.flags = flags;
+ m_renderParams = renderParams;
}
// we may or not support attributes, as we don't know it, return true to
@@ -147,20 +141,17 @@ protected:
bool Init(wxDataViewCellMode mode, int align);
private:
+ // Called from GtkGetTextRenderer() to really create the renderer if
+ // necessary.
+ void GtkInitTextRenderer();
+
wxDC *m_dc;
GtkCellRendererText *m_text_renderer;
// parameters of the original render() call stored so that we could pass
// them forward to m_text_renderer if our RenderText() is called
- struct GTKRenderParams
- {
- GdkWindow *window;
- GtkWidget *widget;
- GdkRectangle *background_area;
- GdkRectangle *expose_area;
- int flags;
- } m_renderParams;
+ GTKRenderParams* m_renderParams;
DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewCustomRenderer)
};
@@ -185,9 +176,17 @@ public:
virtual wxSize GetSize() const;
private:
+ void GTKSetLabel();
+
wxString m_label;
int m_value;
+#if !wxUSE_UNICODE
+ // Flag used to indicate that we need to set the label because we were
+ // unable to do it in the ctor (see comments there).
+ bool m_needsToSetLabel;
+#endif // !wxUSE_UNICODE
+
protected:
DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewProgressRenderer)
};
@@ -223,34 +222,6 @@ private:
DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewIconTextRenderer)
};
-// ---------------------------------------------------------
-// wxDataViewDateRenderer
-// ---------------------------------------------------------
-
-class WXDLLIMPEXP_ADV wxDataViewDateRenderer: public wxDataViewCustomRenderer
-{
-public:
- wxDataViewDateRenderer( const wxString &varianttype = "datetime",
- wxDataViewCellMode mode = wxDATAVIEW_CELL_ACTIVATABLE,
- int align = wxDVR_DEFAULT_ALIGNMENT );
-
- bool SetValue( const wxVariant &value );
- bool GetValue( wxVariant &value ) const;
-
- virtual bool Render( wxRect cell, wxDC *dc, int state );
- virtual wxSize GetSize() const;
- virtual bool Activate( const wxRect& cell,
- wxDataViewModel *model,
- const wxDataViewItem &item,
- unsigned int col );
-
-private:
- wxDateTime m_date;
-
-protected:
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewDateRenderer)
-};
-
// -------------------------------------
// wxDataViewChoiceRenderer
// -------------------------------------
@@ -291,7 +262,7 @@ public:
virtual bool GetValue( wxVariant &value ) const;
private:
- virtual void GtkOnTextEdited(const gchar *itempath, const wxString& str);
+ virtual void GtkOnTextEdited(const char *itempath, const wxString& str);
};
diff --git a/Externals/wxWidgets3/include/wx/gtk/filectrl.h b/Externals/wxWidgets3/include/wx/gtk/filectrl.h
index 43c3a76b97..1551923ec3 100644
--- a/Externals/wxWidgets3/include/wx/gtk/filectrl.h
+++ b/Externals/wxWidgets3/include/wx/gtk/filectrl.h
@@ -4,7 +4,7 @@
// Author: Diaa M. Sami
// Modified by:
// Created: Aug-10-2007
-// RCS-ID: $Id: filectrl.h 64429 2010-05-29 10:35:47Z VZ $
+// RCS-ID: $Id: filectrl.h 70165 2011-12-29 14:42:13Z SN $
// Copyright: (c) Diaa M. Sami
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -88,7 +88,7 @@ public:
Create( parent, id, defaultDirectory, defaultFilename, wildCard, style, pos, size, name );
}
- virtual ~wxGtkFileCtrl() {};
+ virtual ~wxGtkFileCtrl() {}
void Init();
bool Create( wxWindow *parent,
diff --git a/Externals/wxWidgets3/include/wx/gtk/filedlg.h b/Externals/wxWidgets3/include/wx/gtk/filedlg.h
index 7afb9b1745..667e94a359 100644
--- a/Externals/wxWidgets3/include/wx/gtk/filedlg.h
+++ b/Externals/wxWidgets3/include/wx/gtk/filedlg.h
@@ -2,7 +2,7 @@
// Name: wx/gtk/filedlg.h
// Purpose:
// Author: Robert Roebling
-// Id: $Id: filedlg.h 67254 2011-03-20 00:14:35Z DS $
+// Id: $Id: filedlg.h 70898 2012-03-14 12:32:27Z VZ $
// Copyright: (c) 1998 Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -30,6 +30,15 @@ public:
const wxPoint& pos = wxDefaultPosition,
const wxSize& sz = wxDefaultSize,
const wxString& name = wxFileDialogNameStr);
+ bool Create(wxWindow *parent,
+ const wxString& message = wxFileSelectorPromptStr,
+ const wxString& defaultDir = wxEmptyString,
+ const wxString& defaultFile = wxEmptyString,
+ const wxString& wildCard = wxFileSelectorDefaultWildcardStr,
+ long style = wxFD_DEFAULT_STYLE,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& sz = wxDefaultSize,
+ const wxString& name = wxFileDialogNameStr);
virtual ~wxFileDialog();
virtual wxString GetPath() const;
diff --git a/Externals/wxWidgets3/include/wx/gtk/filepicker.h b/Externals/wxWidgets3/include/wx/gtk/filepicker.h
index 782af3d680..ad6be66083 100644
--- a/Externals/wxWidgets3/include/wx/gtk/filepicker.h
+++ b/Externals/wxWidgets3/include/wx/gtk/filepicker.h
@@ -5,7 +5,7 @@
// Modified by:
// Created: 14/4/2006
// Copyright: (c) Francesco Montorsi
-// RCS-ID: $Id: filepicker.h 63690 2010-03-16 00:23:57Z VZ $
+// RCS-ID: $Id: filepicker.h 70043 2011-12-18 12:34:47Z VZ $
// Licence: wxWindows Licence
/////////////////////////////////////////////////////////////////////////////
@@ -101,6 +101,7 @@ public: // overrides
void OnDialogOK(wxCommandEvent &);
virtual void SetPath(const wxString &str);
+ virtual void SetInitialDirectory(const wxString& dir);
// see macro defined above
FILEDIRBTN_OVERRIDES
@@ -171,6 +172,7 @@ public: // overrides
}
virtual void SetPath(const wxString &str);
+ virtual void SetInitialDirectory(const wxString& dir);
// see macro defined above
FILEDIRBTN_OVERRIDES
diff --git a/Externals/wxWidgets3/include/wx/gtk/font.h b/Externals/wxWidgets3/include/wx/gtk/font.h
index b14fb7e921..53bc2d6441 100644
--- a/Externals/wxWidgets3/include/wx/gtk/font.h
+++ b/Externals/wxWidgets3/include/wx/gtk/font.h
@@ -2,7 +2,7 @@
// Name: wx/gtk/font.h
// Purpose:
// Author: Robert Roebling
-// Id: $Id: font.h 67254 2011-03-20 00:14:35Z DS $
+// Id: $Id: font.h 70476 2012-01-29 08:14:34Z PC $
// Copyright: (c) 1998 Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -63,6 +63,12 @@ public:
SetPixelSize(pixelSize);
}
+ wxFont(int pointSize,
+ wxFontFamily family,
+ int flags = wxFONTFLAG_DEFAULT,
+ const wxString& face = wxEmptyString,
+ wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
+
bool Create(int size,
wxFontFamily family,
wxFontStyle style,
@@ -82,6 +88,7 @@ public:
virtual wxFontWeight GetWeight() const;
virtual wxString GetFaceName() const;
virtual bool GetUnderlined() const;
+ virtual bool GetStrikethrough() const;
virtual wxFontEncoding GetEncoding() const;
virtual const wxNativeFontInfo *GetNativeFontInfo() const;
virtual bool IsFixedWidth() const;
@@ -92,10 +99,18 @@ public:
virtual void SetWeight(wxFontWeight weight);
virtual bool SetFaceName( const wxString& faceName );
virtual void SetUnderlined( bool underlined );
+ virtual void SetStrikethrough(bool strikethrough);
virtual void SetEncoding(wxFontEncoding encoding);
wxDECLARE_COMMON_FONT_METHODS();
+ // Set Pango attributes in the specified layout. Currently only
+ // underlined and strike-through attributes are handled by this function.
+ //
+ // If neither of them is specified, returns false, otherwise sets up the
+ // attributes and returns true.
+ bool GTKSetPangoAttrs(PangoLayout* layout) const;
+
// implementation from now on
void Unshare();
diff --git a/Externals/wxWidgets3/include/wx/gtk/fontpicker.h b/Externals/wxWidgets3/include/wx/gtk/fontpicker.h
index 27be02dfbd..505090e762 100644
--- a/Externals/wxWidgets3/include/wx/gtk/fontpicker.h
+++ b/Externals/wxWidgets3/include/wx/gtk/fontpicker.h
@@ -5,7 +5,7 @@
// Modified by:
// Created: 14/4/2006
// Copyright: (c) Francesco Montorsi
-// RCS-ID: $Id: fontpicker.h 49668 2007-11-06 00:32:34Z MR $
+// RCS-ID: $Id: fontpicker.h 69020 2011-09-07 16:56:50Z PC $
// Licence: wxWindows Licence
/////////////////////////////////////////////////////////////////////////////
@@ -52,7 +52,7 @@ protected:
public: // used by the GTK callback only
- void SetNativeFontInfo(const gchar *gtkdescription)
+ void SetNativeFontInfo(const char *gtkdescription)
{ m_selectedFont.SetNativeFontInfo(wxString::FromAscii(gtkdescription)); }
private:
diff --git a/Externals/wxWidgets3/include/wx/gtk/gauge.h b/Externals/wxWidgets3/include/wx/gtk/gauge.h
index 1c91c40512..7f065f2657 100644
--- a/Externals/wxWidgets3/include/wx/gtk/gauge.h
+++ b/Externals/wxWidgets3/include/wx/gtk/gauge.h
@@ -2,7 +2,7 @@
// Name: wx/gtk/gauge.h
// Purpose:
// Author: Robert Roebling
-// Id: $Id: gauge.h 42077 2006-10-17 14:44:52Z ABX $
+// Id: $Id: gauge.h 70165 2011-12-29 14:42:13Z SN $
// Copyright: (c) 1998 Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -43,8 +43,8 @@ public:
void SetShadowWidth( int WXUNUSED(w) ) { }
void SetBezelFace( int WXUNUSED(w) ) { }
- int GetShadowWidth() const { return 0; };
- int GetBezelFace() const { return 0; };
+ int GetShadowWidth() const { return 0; }
+ int GetBezelFace() const { return 0; }
// determinate mode API
void SetRange( int r );
diff --git a/Externals/wxWidgets3/include/wx/gtk/hyperlink.h b/Externals/wxWidgets3/include/wx/gtk/hyperlink.h
index a3419bf64c..7fdb40f020 100644
--- a/Externals/wxWidgets3/include/wx/gtk/hyperlink.h
+++ b/Externals/wxWidgets3/include/wx/gtk/hyperlink.h
@@ -4,13 +4,13 @@
// Author: Francesco Montorsi
// Modified by:
// Created: 14/2/2007
-// RCS-ID: $Id: hyperlink.h 44647 2007-03-07 22:12:47Z VZ $
+// RCS-ID: $Id: hyperlink.h 67378 2011-04-02 20:43:29Z PC $
// Copyright: (c) 2007 Francesco Montorsi
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifndef __GTKHYPERLINKCTRLH__
-#define __GTKHYPERLINKCTRLH__
+#ifndef _WX_GTKHYPERLINKCTRL_H_
+#define _WX_GTKHYPERLINKCTRL_H_
#include "wx/generic/hyperlink.h"
@@ -62,16 +62,12 @@ public:
virtual void SetLabel(const wxString &label);
protected:
- // overridden base class virtuals
-
- // Returns the best size for the window, which is the size needed
- // to display the text label.
virtual wxSize DoGetBestSize() const;
+ virtual wxSize DoGetBestClientSize() const;
virtual GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const;
-private:
DECLARE_DYNAMIC_CLASS(wxHyperlinkCtrl)
};
-#endif // __GTKHYPERLINKCTRLH__
+#endif // _WX_GTKHYPERLINKCTRL_H_
diff --git a/Externals/wxWidgets3/include/wx/gtk/listbox.h b/Externals/wxWidgets3/include/wx/gtk/listbox.h
index 6af95eb831..b2862a935f 100644
--- a/Externals/wxWidgets3/include/wx/gtk/listbox.h
+++ b/Externals/wxWidgets3/include/wx/gtk/listbox.h
@@ -2,7 +2,7 @@
// Name: wx/gtk/listbox.h
// Purpose: wxListBox class declaration
// Author: Robert Roebling
-// Id: $Id: listbox.h 65936 2010-10-27 23:22:00Z VZ $
+// Id: $Id: listbox.h 67298 2011-03-23 17:36:10Z PC $
// Copyright: (c) 1998 Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -82,11 +82,7 @@ public:
// implementation from now on
- GtkWidget *GetConnectWidget();
-
-#if wxUSE_TOOLTIPS
- void GTKApplyToolTip( GtkTooltips *tips, const gchar *tip );
-#endif // wxUSE_TOOLTIPS
+ virtual GtkWidget *GetConnectWidget();
struct _GtkTreeView *m_treeview;
struct _GtkListStore *m_liststore;
diff --git a/Externals/wxWidgets3/include/wx/gtk/mdi.h b/Externals/wxWidgets3/include/wx/gtk/mdi.h
index 43a6a06b7f..6b7b50da20 100644
--- a/Externals/wxWidgets3/include/wx/gtk/mdi.h
+++ b/Externals/wxWidgets3/include/wx/gtk/mdi.h
@@ -3,7 +3,7 @@
// Purpose: TDI-based MDI implementation for wxGTK
// Author: Robert Roebling
// Modified by: 2008-10-31 Vadim Zeitlin: derive from the base classes
-// Id: $Id: mdi.h 59523 2009-03-14 01:24:45Z FM $
+// Id: $Id: mdi.h 69528 2011-10-25 16:56:57Z PC $
// Copyright: (c) 1998 Robert Roebling
// (c) 2008 Vadim Zeitlin
// Licence: wxWindows licence
@@ -118,9 +118,9 @@ public:
void OnActivate( wxActivateEvent& event );
void OnMenuHighlight( wxMenuEvent& event );
+ virtual void GTKHandleRealized();
wxMenuBar *m_menuBar;
- GtkNotebookPage *m_page;
bool m_justInserted;
private:
diff --git a/Externals/wxWidgets3/include/wx/gtk/menu.h b/Externals/wxWidgets3/include/wx/gtk/menu.h
index 1c70606a61..25302e3ace 100644
--- a/Externals/wxWidgets3/include/wx/gtk/menu.h
+++ b/Externals/wxWidgets3/include/wx/gtk/menu.h
@@ -2,7 +2,7 @@
// Name: wx/gtk/menu.h
// Purpose:
// Author: Robert Roebling
-// Id: $Id: menu.h 66180 2010-11-17 05:57:21Z PC $
+// Id: $Id: menu.h 70350 2012-01-15 13:41:17Z VZ $
// Copyright: (c) 1998 Robert Roebling, Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -33,6 +33,7 @@ public:
virtual wxMenuItem* FindItem( int id, wxMenu **menu = NULL ) const;
virtual void EnableTop( size_t pos, bool flag );
+ virtual bool IsEnabledTop(size_t pos) const;
virtual void SetMenuLabel( size_t pos, const wxString& label );
virtual wxString GetMenuLabel( size_t pos ) const;
@@ -51,7 +52,7 @@ public:
private:
// common part of Append and Insert
- bool GtkAppend(wxMenu *menu, const wxString& title, int pos=-1);
+ void GtkAppend(wxMenu* menu, const wxString& title, int pos = -1);
void Init(size_t n, wxMenu *menus[], const wxString titles[], long style);
@@ -99,9 +100,8 @@ private:
void Init();
// common part of Append (if pos == -1) and Insert
- bool GtkAppend(wxMenuItem *item, int pos=-1);
+ void GtkAppend(wxMenuItem* item, int pos = -1);
- GtkWidget *m_prevRadio;
DECLARE_DYNAMIC_CLASS(wxMenu)
};
diff --git a/Externals/wxWidgets3/include/wx/gtk/msgdlg.h b/Externals/wxWidgets3/include/wx/gtk/msgdlg.h
index 86489d335b..90cc21da1f 100644
--- a/Externals/wxWidgets3/include/wx/gtk/msgdlg.h
+++ b/Externals/wxWidgets3/include/wx/gtk/msgdlg.h
@@ -4,7 +4,7 @@
// Author: Vaclav Slavik
// Modified by:
// Created: 2003/02/28
-// RCS-ID: $Id: msgdlg.h 65348 2010-08-18 22:48:28Z VZ $
+// RCS-ID: $Id: msgdlg.h 68537 2011-08-04 22:53:42Z VZ $
// Copyright: (c) Vaclav Slavik, 2003
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -40,6 +40,7 @@ private:
virtual wxString GetDefaultNoLabel() const;
virtual wxString GetDefaultOKLabel() const;
virtual wxString GetDefaultCancelLabel() const;
+ virtual wxString GetDefaultHelpLabel() const;
// create the real GTK+ dialog: this is done from ShowModal() to allow
// changing the message between constructing the dialog and showing it
diff --git a/Externals/wxWidgets3/include/wx/gtk/nonownedwnd.h b/Externals/wxWidgets3/include/wx/gtk/nonownedwnd.h
new file mode 100644
index 0000000000..8dcb75a696
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/gtk/nonownedwnd.h
@@ -0,0 +1,44 @@
+///////////////////////////////////////////////////////////////////////////////
+// Name: wx/gtk/nonownedwnd.h
+// Purpose: wxGTK-specific wxNonOwnedWindow declaration.
+// Author: Vadim Zeitlin
+// Created: 2011-10-12
+// RCS-ID: $Id: nonownedwnd.h 69462 2011-10-18 21:56:52Z VZ $
+// Copyright: (c) 2011 Vadim Zeitlin
+// Licence: wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_GTK_NONOWNEDWND_H_
+#define _WX_GTK_NONOWNEDWND_H_
+
+class wxNonOwnedWindowShapeImpl;
+
+// ----------------------------------------------------------------------------
+// wxNonOwnedWindow contains code common to wx{Popup,TopLevel}Window in wxGTK.
+// ----------------------------------------------------------------------------
+
+class WXDLLIMPEXP_CORE wxNonOwnedWindow : public wxNonOwnedWindowBase
+{
+public:
+ wxNonOwnedWindow() { m_shapeImpl = NULL; }
+ virtual ~wxNonOwnedWindow();
+
+ // Overridden to actually set the shape when the window becomes realized.
+ virtual void GTKHandleRealized();
+
+protected:
+ virtual bool DoClearShape();
+ virtual bool DoSetRegionShape(const wxRegion& region);
+#if wxUSE_GRAPHICS_CONTEXT
+ virtual bool DoSetPathShape(const wxGraphicsPath& path);
+#endif // wxUSE_GRAPHICS_CONTEXT
+
+
+private:
+ // If non-NULL, contains information about custom window shape.
+ wxNonOwnedWindowShapeImpl* m_shapeImpl;
+
+ wxDECLARE_NO_COPY_CLASS(wxNonOwnedWindow);
+};
+
+#endif // _WX_GTK_NONOWNEDWND_H_
diff --git a/Externals/wxWidgets3/include/wx/gtk/notebook.h b/Externals/wxWidgets3/include/wx/gtk/notebook.h
index 266b1b4e1b..50cedf0171 100644
--- a/Externals/wxWidgets3/include/wx/gtk/notebook.h
+++ b/Externals/wxWidgets3/include/wx/gtk/notebook.h
@@ -3,7 +3,7 @@
// Purpose: wxNotebook class
// Author: Robert Roebling
// Modified by:
-// RCS-ID: $Id: notebook.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: notebook.h 70112 2011-12-24 18:19:26Z VZ $
// Copyright: (c) Julian Smart and Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -68,13 +68,13 @@ public:
bool SetPageImage(size_t nPage, int nImage);
// control the appearance of the notebook pages
- // set the size (the same for all pages)
- void SetPageSize(const wxSize& size);
// set the padding between tabs (in pixels)
void SetPadding(const wxSize& padding);
// sets the size of the tabs (assumes all tabs are the same size)
void SetTabSize(const wxSize& sz);
+ // geometry
+ virtual wxSize CalcSizeFromPage(const wxSize& sizePage) const;
virtual int HitTest(const wxPoint& pt, long *flags = NULL) const;
// operations
@@ -89,7 +89,7 @@ public:
wxNotebookPage *win,
const wxString& strText,
bool bSelect = false,
- int imageId = -1 );
+ int imageId = NO_IMAGE );
// handler for tab navigation
// --------------------------
diff --git a/Externals/wxWidgets3/include/wx/gtk/pen.h b/Externals/wxWidgets3/include/wx/gtk/pen.h
index 0f32910275..137066611c 100644
--- a/Externals/wxWidgets3/include/wx/gtk/pen.h
+++ b/Externals/wxWidgets3/include/wx/gtk/pen.h
@@ -2,7 +2,7 @@
// Name: wx/gtk/pen.h
// Purpose:
// Author: Robert Roebling
-// Id: $Id: pen.h 54273 2008-06-17 17:28:26Z VZ $
+// Id: $Id: pen.h 69020 2011-09-07 16:56:50Z PC $
// Copyright: (c) 1998 Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -10,7 +10,7 @@
#ifndef _WX_GTK_PEN_H_
#define _WX_GTK_PEN_H_
-typedef gint8 wxGTKDash;
+typedef signed char wxGTKDash;
//-----------------------------------------------------------------------------
// wxPen
diff --git a/Externals/wxWidgets3/include/wx/gtk/popupwin.h b/Externals/wxWidgets3/include/wx/gtk/popupwin.h
index d71c539128..616ae41618 100644
--- a/Externals/wxWidgets3/include/wx/gtk/popupwin.h
+++ b/Externals/wxWidgets3/include/wx/gtk/popupwin.h
@@ -3,7 +3,7 @@
// Purpose:
// Author: Robert Roebling
// Created:
-// Id: $Id: popupwin.h 67254 2011-03-20 00:14:35Z DS $
+// Id: $Id: popupwin.h 70739 2012-02-28 17:25:59Z PC $
// Copyright: (c) 2001 Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -42,9 +42,6 @@ protected:
virtual void DoMoveWindow(int x, int y, int width, int height);
-private:
- virtual void AddChildGTK(wxWindowGTK* child);
-
#ifdef __WXUNIVERSAL__
DECLARE_EVENT_TABLE()
#endif
diff --git a/Externals/wxWidgets3/include/wx/gtk/private.h b/Externals/wxWidgets3/include/wx/gtk/private.h
index 86168ca47b..321ba28f3c 100644
--- a/Externals/wxWidgets3/include/wx/gtk/private.h
+++ b/Externals/wxWidgets3/include/wx/gtk/private.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 12.03.02
-// RCS-ID: $Id: private.h 63805 2010-03-30 16:14:11Z PC $
+// RCS-ID: $Id: private.h 70475 2012-01-29 08:00:15Z PC $
// Copyright: (c) 2002 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -15,6 +15,7 @@
#include
#include "wx/gtk/private/string.h"
+#include "wx/gtk/private/gtk2-compat.h"
// pango_version_check symbol is quite recent ATM (4/2007)... so we
// use our own wrapper which implements a smart trick.
@@ -51,13 +52,13 @@ extern const gchar *wx_pango_version_check(int major, int minor, int micro);
// helper: use the encoding of the given font if it's valid
inline wxCharBuffer wxConvertToGTK(const wxString& s, const wxFont& font)
{
- return wxConvertToGTK(s, font.Ok() ? font.GetEncoding()
+ return wxConvertToGTK(s, font.IsOk() ? font.GetEncoding()
: wxFONTENCODING_SYSTEM);
}
inline wxCharBuffer wxConvertFromGTK(const wxString& s, const wxFont& font)
{
- return wxConvertFromGTK(s, font.Ok() ? font.GetEncoding()
+ return wxConvertFromGTK(s, font.IsOk() ? font.GetEncoding()
: wxFONTENCODING_SYSTEM);
}
@@ -113,4 +114,3 @@ GtkWidget *GetTreeWidget();
} // wxGTKPrivate
#endif // _WX_GTK_PRIVATE_H_
-
diff --git a/Externals/wxWidgets3/include/wx/gtk/private/event.h b/Externals/wxWidgets3/include/wx/gtk/private/event.h
new file mode 100644
index 0000000000..7c1254fea8
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/gtk/private/event.h
@@ -0,0 +1,80 @@
+///////////////////////////////////////////////////////////////////////////////
+// Name: wx/gtk/private/event.h
+// Purpose: Helper functions for working with GDK and wx events
+// Author: Vaclav Slavik
+// Created: 2011-10-14
+// RCS-ID: $Id$
+// Copyright: (c) 2011 Vaclav Slavik
+// Licence: wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _GTK_PRIVATE_EVENT_H_
+#define _GTK_PRIVATE_EVENT_H_
+
+#if !GTK_CHECK_VERSION(2,10,0)
+ // GTK+ can reliably detect Meta key state only since 2.10 when
+ // GDK_META_MASK was introduced -- there wasn't any way to detect it
+ // in older versions. wxGTK used GDK_MOD2_MASK for this purpose, but
+ // GDK_MOD2_MASK is documented as:
+ //
+ // the fifth modifier key (it depends on the modifier mapping of the X
+ // server which key is interpreted as this modifier)
+ //
+ // In other words, it isn't guaranteed to map to Meta. This is a real
+ // problem: it is common to map NumLock to it (in fact, it's an exception
+ // if the X server _doesn't_ use it for NumLock). So the old code caused
+ // wxKeyEvent::MetaDown() to always return true as long as NumLock was on
+ // on many systems, which broke all applications using
+ // wxKeyEvent::GetModifiers() to check modifiers state (see e.g. here:
+ // http://tinyurl.com/56lsk2).
+ //
+ // Because of this, it's better to not detect Meta key state at all than
+ // to detect it incorrectly. Hence the following #define, which causes
+ // m_metaDown to be always set to false.
+ #define GDK_META_MASK 0
+#endif
+
+namespace wxGTKImpl
+{
+
+// init wxMouseEvent with the info from GdkEventXXX struct
+template void InitMouseEvent(wxWindowGTK *win,
+ wxMouseEvent& event,
+ T *gdk_event)
+{
+ event.m_shiftDown = (gdk_event->state & GDK_SHIFT_MASK) != 0;
+ event.m_controlDown = (gdk_event->state & GDK_CONTROL_MASK) != 0;
+ event.m_altDown = (gdk_event->state & GDK_MOD1_MASK) != 0;
+ event.m_metaDown = (gdk_event->state & GDK_META_MASK) != 0;
+ event.m_leftDown = (gdk_event->state & GDK_BUTTON1_MASK) != 0;
+ event.m_middleDown = (gdk_event->state & GDK_BUTTON2_MASK) != 0;
+ event.m_rightDown = (gdk_event->state & GDK_BUTTON3_MASK) != 0;
+
+ // In gdk/win32 VK_XBUTTON1 is translated to GDK_BUTTON4_MASK
+ // and VK_XBUTTON2 to GDK_BUTTON5_MASK. In x11/gdk buttons 4/5
+ // are wheel rotation and buttons 8/9 don't change the state.
+ event.m_aux1Down = (gdk_event->state & GDK_BUTTON4_MASK) != 0;
+ event.m_aux2Down = (gdk_event->state & GDK_BUTTON5_MASK) != 0;
+
+ wxPoint pt = win->GetClientAreaOrigin();
+ event.m_x = (wxCoord)gdk_event->x - pt.x;
+ event.m_y = (wxCoord)gdk_event->y - pt.y;
+
+ if ((win->m_wxwindow) && (win->GetLayoutDirection() == wxLayout_RightToLeft))
+ {
+ // origin in the upper right corner
+ GtkAllocation a;
+ gtk_widget_get_allocation(win->m_wxwindow, &a);
+ int window_width = a.width;
+ event.m_x = window_width - event.m_x;
+ }
+
+ event.SetEventObject( win );
+ event.SetId( win->GetId() );
+ event.SetTimestamp( gdk_event->time );
+}
+
+} // namespace wxGTKImpl
+
+#endif // _GTK_PRIVATE_EVENT_H_
+
diff --git a/Externals/wxWidgets3/include/wx/gtk/private/gtk2-compat.h b/Externals/wxWidgets3/include/wx/gtk/private/gtk2-compat.h
new file mode 100644
index 0000000000..fddeaafca9
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/gtk/private/gtk2-compat.h
@@ -0,0 +1,376 @@
+///////////////////////////////////////////////////////////////////////////////
+// Name: wx/gtk/private/compat.h
+// Purpose: Compatibility code for older GTK+ versions
+// Author: Vaclav Slavik
+// Created: 2011-03-25
+// RCS-ID: $Id$
+// Copyright: (c) 2011 Vaclav Slavik
+// Licence: wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_GTK_PRIVATE_COMPAT_H_
+#define _WX_GTK_PRIVATE_COMPAT_H_
+
+// ----------------------------------------------------------------------------
+// Implementations of new accessors for older GTK+ versions
+// ----------------------------------------------------------------------------
+
+// GTK+ deprecated direct access to struct members and some other stuff,
+// replacing them with simple accessor functions. These aren't available in
+// older versions, though, so we have to provide them for compatibility.
+//
+// Note: wx_ prefix is used to avoid symbol conflicts at runtime
+//
+// Note 2: We support building against newer GTK+ version and using an older
+// one at runtime, so we must provide our implementations of these
+// functions even if GTK_CHECK_VERSION would indicate the function is
+// already available in GTK+.
+
+#if !GTK_CHECK_VERSION(3,0,0) && !(defined(GTK_DISABLE_DEPRECATED) || defined(GSEAL_ENABLE))
+
+// ----------------------------------------------------------------------------
+// the following were introduced in GTK+ 2.8
+
+static inline GtkWidget* wx_gtk_scrolled_window_get_hscrollbar(GtkScrolledWindow* scrolled_window)
+{
+ return scrolled_window->hscrollbar;
+}
+#define gtk_scrolled_window_get_hscrollbar wx_gtk_scrolled_window_get_hscrollbar
+
+static inline GtkWidget* wx_gtk_scrolled_window_get_vscrollbar(GtkScrolledWindow* scrolled_window)
+{
+ return scrolled_window->vscrollbar;
+}
+#define gtk_scrolled_window_get_vscrollbar wx_gtk_scrolled_window_get_vscrollbar
+
+// ----------------------------------------------------------------------------
+// the following were introduced in GLib 2.10
+
+static inline gpointer wx_g_object_ref_sink(gpointer object)
+{
+ g_object_ref(object);
+ gtk_object_sink(GTK_OBJECT(object));
+ return object;
+}
+#define g_object_ref_sink wx_g_object_ref_sink
+
+// ----------------------------------------------------------------------------
+// the following were introduced in GTK+ 2.12 and GtkAboutDialog itself is not
+// in 2.4 so skip this if we don't have it.
+#if GTK_CHECK_VERSION(2,6,0)
+
+static inline void wx_gtk_about_dialog_set_program_name(GtkAboutDialog* about, const gchar* name)
+{
+ gtk_about_dialog_set_name(about, name);
+}
+#define gtk_about_dialog_set_program_name wx_gtk_about_dialog_set_program_name
+#endif // 2.6.0
+
+// ----------------------------------------------------------------------------
+// the following were introduced in GTK+ 2.14
+
+static inline gdouble wx_gtk_adjustment_get_lower(GtkAdjustment* adjustment)
+{
+ return adjustment->lower;
+}
+#define gtk_adjustment_get_lower wx_gtk_adjustment_get_lower
+
+static inline gdouble wx_gtk_adjustment_get_page_increment(GtkAdjustment* adjustment)
+{
+ return adjustment->page_increment;
+}
+#define gtk_adjustment_get_page_increment wx_gtk_adjustment_get_page_increment
+
+static inline gdouble wx_gtk_adjustment_get_page_size(GtkAdjustment* adjustment)
+{
+ return adjustment->page_size;
+}
+#define gtk_adjustment_get_page_size wx_gtk_adjustment_get_page_size
+
+static inline gdouble wx_gtk_adjustment_get_step_increment(GtkAdjustment* adjustment)
+{
+ return adjustment->step_increment;
+}
+#define gtk_adjustment_get_step_increment wx_gtk_adjustment_get_step_increment
+
+static inline gdouble wx_gtk_adjustment_get_upper(GtkAdjustment* adjustment)
+{
+ return adjustment->upper;
+}
+#define gtk_adjustment_get_upper wx_gtk_adjustment_get_upper
+
+static inline void wx_gtk_adjustment_set_page_size(GtkAdjustment* adjustment, gdouble page_size)
+{
+ adjustment->page_size = page_size;
+}
+#define gtk_adjustment_set_page_size wx_gtk_adjustment_set_page_size
+
+static inline GtkWidget* wx_gtk_color_selection_dialog_get_color_selection(GtkColorSelectionDialog* csd)
+{
+ return csd->colorsel;
+}
+#define gtk_color_selection_dialog_get_color_selection wx_gtk_color_selection_dialog_get_color_selection
+
+static inline GtkWidget* wx_gtk_dialog_get_content_area(GtkDialog* dialog)
+{
+ return dialog->vbox;
+}
+#define gtk_dialog_get_content_area wx_gtk_dialog_get_content_area
+
+static inline GtkWidget* wx_gtk_dialog_get_action_area(GtkDialog* dialog)
+{
+ return dialog->action_area;
+}
+#define gtk_dialog_get_action_area wx_gtk_dialog_get_action_area
+
+static inline guint16 wx_gtk_entry_get_text_length(GtkEntry* entry)
+{
+ return entry->text_length;
+}
+#define gtk_entry_get_text_length wx_gtk_entry_get_text_length
+
+static inline GtkWidget* wx_gtk_font_selection_dialog_get_cancel_button(GtkFontSelectionDialog* fsd)
+{
+ return fsd->cancel_button;
+}
+#define gtk_font_selection_dialog_get_cancel_button wx_gtk_font_selection_dialog_get_cancel_button
+
+static inline GtkWidget* wx_gtk_font_selection_dialog_get_ok_button(GtkFontSelectionDialog* fsd)
+{
+ return fsd->ok_button;
+}
+#define gtk_font_selection_dialog_get_ok_button wx_gtk_font_selection_dialog_get_ok_button
+
+static inline const guchar* wx_gtk_selection_data_get_data(GtkSelectionData* selection_data)
+{
+ return selection_data->data;
+}
+#define gtk_selection_data_get_data wx_gtk_selection_data_get_data
+
+static inline GdkAtom wx_gtk_selection_data_get_data_type(GtkSelectionData* selection_data)
+{
+ return selection_data->type;
+}
+#define gtk_selection_data_get_data_type wx_gtk_selection_data_get_data_type
+
+static inline gint wx_gtk_selection_data_get_format(GtkSelectionData* selection_data)
+{
+ return selection_data->format;
+}
+#define gtk_selection_data_get_format wx_gtk_selection_data_get_format
+
+static inline gint wx_gtk_selection_data_get_length(GtkSelectionData* selection_data)
+{
+ return selection_data->length;
+}
+#define gtk_selection_data_get_length wx_gtk_selection_data_get_length
+
+static inline GdkAtom wx_gtk_selection_data_get_target(GtkSelectionData* selection_data)
+{
+ return selection_data->target;
+}
+#define gtk_selection_data_get_target wx_gtk_selection_data_get_target
+
+static inline GdkWindow* wx_gtk_widget_get_window(GtkWidget* widget)
+{
+ return widget->window;
+}
+#define gtk_widget_get_window wx_gtk_widget_get_window
+
+static inline GtkWidget* wx_gtk_window_get_default_widget(GtkWindow* window)
+{
+ return window->default_widget;
+}
+#define gtk_window_get_default_widget wx_gtk_window_get_default_widget
+
+// ----------------------------------------------------------------------------
+// the following were introduced in GTK+ 2.16
+
+static inline GdkAtom wx_gtk_selection_data_get_selection(GtkSelectionData* selection_data)
+{
+ return selection_data->selection;
+}
+#define gtk_selection_data_get_selection wx_gtk_selection_data_get_selection
+
+// ----------------------------------------------------------------------------
+// the following were introduced in GTK+ 2.18
+
+static inline void wx_gtk_cell_renderer_get_alignment(GtkCellRenderer* cell, gfloat* xalign, gfloat* yalign)
+{
+ *xalign = cell->xalign;
+ *yalign = cell->yalign;
+}
+#define gtk_cell_renderer_get_alignment wx_gtk_cell_renderer_get_alignment
+
+static inline void wx_gtk_cell_renderer_get_padding(GtkCellRenderer* cell, gint* xpad, gint* ypad)
+{
+ *xpad = cell->xpad;
+ *ypad = cell->ypad;
+}
+#define gtk_cell_renderer_get_padding wx_gtk_cell_renderer_get_padding
+
+static inline void wx_gtk_widget_get_allocation(GtkWidget* widget, GtkAllocation* allocation)
+{
+ *allocation = widget->allocation;
+}
+#define gtk_widget_get_allocation wx_gtk_widget_get_allocation
+
+inline gboolean wx_gtk_widget_get_has_window(GtkWidget *widget)
+{
+ return !GTK_WIDGET_NO_WINDOW(widget);
+}
+#define gtk_widget_get_has_window wx_gtk_widget_get_has_window
+
+
+inline gboolean wx_gtk_widget_get_has_grab(GtkWidget *widget)
+{
+ return GTK_WIDGET_HAS_GRAB(widget);
+}
+#define gtk_widget_get_has_grab wx_gtk_widget_get_has_grab
+
+
+inline gboolean wx_gtk_widget_get_visible(GtkWidget *widget)
+{
+ return GTK_WIDGET_VISIBLE(widget);
+}
+#define gtk_widget_get_visible wx_gtk_widget_get_visible
+
+
+inline gboolean wx_gtk_widget_get_sensitive(GtkWidget *widget)
+{
+ return GTK_WIDGET_SENSITIVE(widget);
+}
+#define gtk_widget_get_sensitive wx_gtk_widget_get_sensitive
+
+
+inline gboolean wx_gtk_widget_is_drawable(GtkWidget *widget)
+{
+ return GTK_WIDGET_DRAWABLE(widget);
+}
+#define gtk_widget_is_drawable wx_gtk_widget_is_drawable
+
+
+inline gboolean wx_gtk_widget_get_can_focus(GtkWidget *widget)
+{
+ return GTK_WIDGET_CAN_FOCUS(widget);
+}
+#define gtk_widget_get_can_focus wx_gtk_widget_get_can_focus
+
+inline void wx_gtk_widget_set_can_focus(GtkWidget *widget, gboolean can)
+{
+ if ( can )
+ GTK_WIDGET_SET_FLAGS(widget, GTK_CAN_FOCUS);
+ else
+ GTK_WIDGET_UNSET_FLAGS(widget, GTK_CAN_FOCUS);
+}
+#define gtk_widget_set_can_focus wx_gtk_widget_set_can_focus
+
+
+inline gboolean wx_gtk_widget_get_can_default(GtkWidget *widget)
+{
+ return GTK_WIDGET_CAN_DEFAULT(widget);
+}
+#define gtk_widget_get_can_default wx_gtk_widget_get_can_default
+
+inline void wx_gtk_widget_set_can_default(GtkWidget *widget, gboolean can)
+{
+ if ( can )
+ GTK_WIDGET_SET_FLAGS(widget, GTK_CAN_DEFAULT);
+ else
+ GTK_WIDGET_UNSET_FLAGS(widget, GTK_CAN_DEFAULT);
+}
+#define gtk_widget_set_can_default wx_gtk_widget_set_can_default
+
+
+inline gboolean wx_gtk_widget_has_default(GtkWidget *widget)
+{
+ return GTK_WIDGET_HAS_DEFAULT(widget);
+}
+#define gtk_widget_has_default wx_gtk_widget_has_default
+
+
+inline GtkStateType wx_gtk_widget_get_state(GtkWidget *widget)
+{
+ return (GtkStateType)GTK_WIDGET_STATE(widget);
+}
+#define gtk_widget_get_state wx_gtk_widget_get_state
+
+
+inline gboolean wx_gtk_widget_get_double_buffered(GtkWidget *widget)
+{
+ return GTK_WIDGET_DOUBLE_BUFFERED(widget);
+}
+#define gtk_widget_get_double_buffered wx_gtk_widget_get_double_buffered
+
+static inline gboolean wx_gtk_widget_has_grab(GtkWidget* widget)
+{
+ return GTK_WIDGET_HAS_GRAB(widget);
+}
+#define gtk_widget_has_grab wx_gtk_widget_has_grab
+
+static inline void wx_gtk_widget_set_allocation(GtkWidget* widget, const GtkAllocation* allocation)
+{
+ widget->allocation = *allocation;
+}
+#define gtk_widget_set_allocation wx_gtk_widget_set_allocation
+
+// ----------------------------------------------------------------------------
+// the following were introduced in GTK+ 2.20
+
+inline gboolean wx_gtk_widget_get_realized(GtkWidget *widget)
+{
+ return GTK_WIDGET_REALIZED(widget);
+}
+#define gtk_widget_get_realized wx_gtk_widget_get_realized
+
+
+inline gboolean wx_gtk_widget_get_mapped(GtkWidget *widget)
+{
+ return GTK_WIDGET_MAPPED(widget);
+}
+#define gtk_widget_get_mapped wx_gtk_widget_get_mapped
+
+static inline void wx_gtk_widget_get_requisition(GtkWidget* widget, GtkRequisition* requisition)
+{
+ *requisition = widget->requisition;
+}
+#define gtk_widget_get_requisition wx_gtk_widget_get_requisition
+
+static inline GdkWindow* wx_gtk_entry_get_text_window(GtkEntry* entry)
+{
+ return entry->text_area;
+}
+#define gtk_entry_get_text_window wx_gtk_entry_get_text_window
+
+// ----------------------------------------------------------------------------
+// the following were introduced in GTK+ 2.24
+
+static inline gint wx_gdk_window_get_height(GdkWindow* window)
+{
+ int h;
+ gdk_drawable_get_size(window, NULL, &h);
+ return h;
+}
+#define gdk_window_get_height wx_gdk_window_get_height
+
+static inline gint wx_gdk_window_get_width(GdkWindow* window)
+{
+ int w;
+ gdk_drawable_get_size(window, &w, NULL);
+ return w;
+}
+#define gdk_window_get_width wx_gdk_window_get_width
+
+#if GTK_CHECK_VERSION(2,10,0)
+static inline void wx_gdk_cairo_set_source_window(cairo_t* cr, GdkWindow* window, gdouble x, gdouble y)
+{
+ gdk_cairo_set_source_pixmap(cr, window, x, y);
+}
+#define gdk_cairo_set_source_window wx_gdk_cairo_set_source_window
+#endif
+
+#endif // !GTK_CHECK_VERSION(3,0,0) && !defined(GTK_DISABLE_DEPRECATED)
+
+
+#endif // _WX_GTK_PRIVATE_COMPAT_H_
+
diff --git a/Externals/wxWidgets3/include/wx/gtk/private/list.h b/Externals/wxWidgets3/include/wx/gtk/private/list.h
new file mode 100644
index 0000000000..0ec669317d
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/gtk/private/list.h
@@ -0,0 +1,33 @@
+///////////////////////////////////////////////////////////////////////////////
+// Name: wx/gtk/private/list.h
+// Purpose: wxGtkList class.
+// Author: Vadim Zeitlin
+// Created: 2011-08-21
+// RCS-ID: $Id: list.h 68842 2011-08-22 12:41:00Z VZ $
+// Copyright: (c) 2011 Vadim Zeitlin
+// Licence: wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_GTK_PRIVATE_LIST_H_
+#define _WX_GTK_PRIVATE_LIST_H_
+
+// ----------------------------------------------------------------------------
+// Convenience class for calling g_list_free() automatically
+// ----------------------------------------------------------------------------
+
+class wxGtkList
+{
+public:
+ explicit wxGtkList(GList* list) : m_list(list) { }
+ ~wxGtkList() { g_list_free(m_list); }
+
+ operator GList *() const { return m_list; }
+ GList * operator->() const { return m_list; }
+
+protected:
+ GList* const m_list;
+
+ wxDECLARE_NO_COPY_CLASS(wxGtkList);
+};
+
+#endif // _WX_GTK_PRIVATE_LIST_H_
diff --git a/Externals/wxWidgets3/include/wx/gtk/private/timer.h b/Externals/wxWidgets3/include/wx/gtk/private/timer.h
index 1d845fd873..509303cda6 100644
--- a/Externals/wxWidgets3/include/wx/gtk/private/timer.h
+++ b/Externals/wxWidgets3/include/wx/gtk/private/timer.h
@@ -2,7 +2,7 @@
// Name: wx/gtk/private/timer.h
// Purpose: wxTimerImpl for wxGTK
// Author: Robert Roebling
-// Id: $Id: timer.h 67254 2011-03-20 00:14:35Z DS $
+// Id: $Id: timer.h 70165 2011-12-29 14:42:13Z SN $
// Copyright: (c) 1998 Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -21,7 +21,7 @@
class WXDLLIMPEXP_CORE wxGTKTimerImpl : public wxTimerImpl
{
public:
- wxGTKTimerImpl(wxTimer* timer) : wxTimerImpl(timer) { m_sourceId = 0; };
+ wxGTKTimerImpl(wxTimer* timer) : wxTimerImpl(timer) { m_sourceId = 0; }
virtual bool Start( int millisecs = -1, bool oneShot = false );
virtual void Stop();
diff --git a/Externals/wxWidgets3/include/wx/gtk/radiobox.h b/Externals/wxWidgets3/include/wx/gtk/radiobox.h
index cf875dd5ac..ced13bc390 100644
--- a/Externals/wxWidgets3/include/wx/gtk/radiobox.h
+++ b/Externals/wxWidgets3/include/wx/gtk/radiobox.h
@@ -2,7 +2,7 @@
// Name: wx/gtk/radiobox.h
// Purpose:
// Author: Robert Roebling
-// Id: $Id: radiobox.h 60885 2009-06-03 22:33:32Z VZ $
+// Id: $Id: radiobox.h 67298 2011-03-23 17:36:10Z PC $
// Copyright: (c) 1998 Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -131,7 +131,7 @@ public:
void GtkDisableEvents();
void GtkEnableEvents();
#if wxUSE_TOOLTIPS
- void GTKApplyToolTip( GtkTooltips *tips, const gchar *tip );
+ virtual void GTKApplyToolTip(const char* tip);
#endif // wxUSE_TOOLTIPS
wxRadioBoxButtonsInfoList m_buttonsInfo;
diff --git a/Externals/wxWidgets3/include/wx/gtk/region.h b/Externals/wxWidgets3/include/wx/gtk/region.h
index cba99cf1cd..18b2f26169 100644
--- a/Externals/wxWidgets3/include/wx/gtk/region.h
+++ b/Externals/wxWidgets3/include/wx/gtk/region.h
@@ -2,7 +2,7 @@
// Name: wx/gtk/region.h
// Purpose:
// Author: Robert Roebling
-// Id: $Id: region.h 61724 2009-08-21 10:41:26Z VZ $
+// Id: $Id: region.h 69815 2011-11-25 00:52:24Z PC $
// Copyright: (c) 1998 Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -122,13 +122,11 @@ private:
void Init();
void CreateRects( const wxRegion& r );
- size_t m_current;
wxRegion m_region;
-
wxRect *m_rects;
- size_t m_numRects;
+ int m_numRects;
+ int m_current;
-private:
DECLARE_DYNAMIC_CLASS(wxRegionIterator)
};
diff --git a/Externals/wxWidgets3/include/wx/gtk/scrolbar.h b/Externals/wxWidgets3/include/wx/gtk/scrolbar.h
index 980504935d..2ab5353ed8 100644
--- a/Externals/wxWidgets3/include/wx/gtk/scrolbar.h
+++ b/Externals/wxWidgets3/include/wx/gtk/scrolbar.h
@@ -2,7 +2,7 @@
// Name: wx/gtk/scrolbar.h
// Purpose:
// Author: Robert Roebling
-// Id: $Id: scrolbar.h 67254 2011-03-20 00:14:35Z DS $
+// Id: $Id: scrolbar.h 67326 2011-03-28 06:27:49Z PC $
// Copyright: (c) 1998 Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -10,14 +10,6 @@
#ifndef _WX_GTK_SCROLLBAR_H_
#define _WX_GTK_SCROLLBAR_H_
-#include "wx/defs.h"
-
-//-----------------------------------------------------------------------------
-// classes
-//-----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_FWD_CORE wxScrollBar;
-
//-----------------------------------------------------------------------------
// wxScrollBar
//-----------------------------------------------------------------------------
@@ -57,10 +49,6 @@ public:
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
-protected:
- virtual GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const;
-
-private:
DECLARE_DYNAMIC_CLASS(wxScrollBar)
};
diff --git a/Externals/wxWidgets3/include/wx/gtk/statbox.h b/Externals/wxWidgets3/include/wx/gtk/statbox.h
index 7860451813..0d9ab6f624 100644
--- a/Externals/wxWidgets3/include/wx/gtk/statbox.h
+++ b/Externals/wxWidgets3/include/wx/gtk/statbox.h
@@ -2,7 +2,7 @@
// Name: wx/gtk/statbox.h
// Purpose:
// Author: Robert Roebling
-// Id: $Id: statbox.h 67254 2011-03-20 00:14:35Z DS $
+// Id: $Id: statbox.h 70738 2012-02-28 17:06:56Z PC $
// Copyright: (c) 1998 Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -40,7 +40,7 @@ public:
// implementation
- virtual bool IsTransparentForMouse() const { return true; }
+ virtual bool GTKIsTransparentForMouse() const { return true; }
virtual void GetBordersForSizer(int *borderTop, int *borderOther) const;
diff --git a/Externals/wxWidgets3/include/wx/gtk/textctrl.h b/Externals/wxWidgets3/include/wx/gtk/textctrl.h
index 0582485fa1..fb214dc5f9 100644
--- a/Externals/wxWidgets3/include/wx/gtk/textctrl.h
+++ b/Externals/wxWidgets3/include/wx/gtk/textctrl.h
@@ -3,7 +3,7 @@
// Purpose:
// Author: Robert Roebling
// Created: 01/02/97
-// Id: $Id: textctrl.h 64404 2010-05-26 17:37:55Z RR $
+// Id: $Id: textctrl.h 68450 2011-07-29 15:11:54Z VZ $
// Copyright: (c) 1998 Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -167,6 +167,8 @@ protected:
virtual void DoSetValue(const wxString &value, int flags = 0);
+ virtual wxPoint DoPositionToCoords(long pos) const;
+
// wrappers hiding the differences between functions doing the same thing
// for GtkTextView and GtkEntry (all of them use current window style to
// set the given characteristic)
@@ -214,6 +216,7 @@ private:
GtkTextBuffer *m_buffer;
GtkTextMark* m_showPositionOnThaw;
+ GSList* m_anonymousMarkList;
// For wxTE_AUTO_URL
void OnUrlMouseEvent(wxMouseEvent&);
diff --git a/Externals/wxWidgets3/include/wx/gtk/textentry.h b/Externals/wxWidgets3/include/wx/gtk/textentry.h
index e9fb99c444..c9084a53f4 100644
--- a/Externals/wxWidgets3/include/wx/gtk/textentry.h
+++ b/Externals/wxWidgets3/include/wx/gtk/textentry.h
@@ -3,7 +3,7 @@
// Purpose: wxGTK-specific wxTextEntry implementation
// Author: Vadim Zeitlin
// Created: 2007-09-24
-// RCS-ID: $Id: textentry.h 61834 2009-09-05 12:39:12Z JMS $
+// RCS-ID: $Id: textentry.h 67509 2011-04-16 17:27:04Z VZ $
// Copyright: (c) 2007 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -43,8 +43,6 @@ public:
virtual void SetSelection(long from, long to);
virtual void GetSelection(long *from, long *to) const;
- virtual bool AutoComplete(const wxArrayString& choices);
-
virtual bool IsEditable() const;
virtual void SetEditable(bool editable);
@@ -60,6 +58,8 @@ protected:
virtual bool DoSetMargins(const wxPoint& pt);
virtual wxPoint DoGetMargins() const;
+ virtual bool DoAutoCompleteStrings(const wxArrayString& choices);
+
private:
// implement this to return the associated GtkEntry or another widget
// implementing GtkEditable
diff --git a/Externals/wxWidgets3/include/wx/gtk/tglbtn.h b/Externals/wxWidgets3/include/wx/gtk/tglbtn.h
index 1bdbeb3673..514f5e4e7e 100644
--- a/Externals/wxWidgets3/include/wx/gtk/tglbtn.h
+++ b/Externals/wxWidgets3/include/wx/gtk/tglbtn.h
@@ -5,7 +5,7 @@
// Author: John Norris, minor changes by Axel Schlueter
// Modified by:
// Created: 08.02.01
-// RCS-ID: $Id: tglbtn.h 66992 2011-02-22 13:25:30Z VZ $
+// RCS-ID: $Id: tglbtn.h 67931 2011-06-14 13:00:42Z VZ $
// Copyright: (c) 2000 Johnny C. Norris II
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -22,67 +22,6 @@
class WXDLLIMPEXP_FWD_CORE wxToggleButton;
class WXDLLIMPEXP_FWD_CORE wxToggleBitmapButton;
-//-----------------------------------------------------------------------------
-// wxBitmapToggleButton
-//-----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxBitmapToggleButton: public wxToggleButtonBase
-{
-public:
- // construction/destruction
- wxBitmapToggleButton() {}
- wxBitmapToggleButton(wxWindow *parent,
- wxWindowID id,
- const wxBitmap& label,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxCheckBoxNameStr)
- {
- Create(parent, id, label, pos, size, style, validator, name);
- }
-
- // Create the control
- bool Create(wxWindow *parent,
- wxWindowID id,
- const wxBitmap& label,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize, long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxCheckBoxNameStr);
-
- // Get/set the value
- void SetValue(bool state);
- bool GetValue() const;
-
- // Set the label
- virtual void SetLabel(const wxString& label) { wxControl::SetLabel(label); }
- virtual void SetLabel(const wxBitmap& label);
- bool Enable(bool enable = true);
-
- static wxVisualAttributes
- GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
-
- // implementation
- wxBitmap m_bitmap;
-
- void OnSetBitmap();
-
-protected:
- void GTKDisableEvents();
- void GTKEnableEvents();
-
- virtual wxSize DoGetBestSize() const;
- virtual void DoApplyWidgetStyle(GtkRcStyle *style);
- virtual GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const;
-
-private:
- typedef wxToggleButtonBase base_type;
-
- DECLARE_DYNAMIC_CLASS(wxBitmapToggleButton)
-};
-
//-----------------------------------------------------------------------------
// wxToggleButton
//-----------------------------------------------------------------------------
@@ -119,7 +58,6 @@ public:
// Set the label
void SetLabel(const wxString& label);
- bool Enable(bool enable = true);
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
@@ -130,13 +68,61 @@ protected:
virtual wxSize DoGetBestSize() const;
virtual void DoApplyWidgetStyle(GtkRcStyle *style);
- virtual GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const;
+
+#if wxUSE_MARKUP
+ virtual bool DoSetLabelMarkup(const wxString& markup);
+#endif // wxUSE_MARKUP
private:
typedef wxToggleButtonBase base_type;
+ // Return the GtkLabel used by this toggle button.
+ GtkLabel *GTKGetLabel() const;
+
DECLARE_DYNAMIC_CLASS(wxToggleButton)
};
+//-----------------------------------------------------------------------------
+// wxBitmapToggleButton
+//-----------------------------------------------------------------------------
+
+class WXDLLIMPEXP_CORE wxBitmapToggleButton: public wxToggleButton
+{
+public:
+ // construction/destruction
+ wxBitmapToggleButton() {}
+ wxBitmapToggleButton(wxWindow *parent,
+ wxWindowID id,
+ const wxBitmap& label,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = 0,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxCheckBoxNameStr)
+ {
+ Create(parent, id, label, pos, size, style, validator, name);
+ }
+
+ // Create the control
+ bool Create(wxWindow *parent,
+ wxWindowID id,
+ const wxBitmap& label,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize, long style = 0,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxCheckBoxNameStr);
+
+ // deprecated synonym for SetBitmapLabel()
+ wxDEPRECATED_INLINE( void SetLabel(const wxBitmap& bitmap),
+ SetBitmapLabel(bitmap); )
+ // prevent virtual function hiding
+ virtual void SetLabel(const wxString& label) { wxToggleButton::SetLabel(label); }
+
+private:
+ typedef wxToggleButtonBase base_type;
+
+ DECLARE_DYNAMIC_CLASS(wxBitmapToggleButton)
+};
+
#endif // _WX_GTK_TOGGLEBUTTON_H_
diff --git a/Externals/wxWidgets3/include/wx/gtk/toolbar.h b/Externals/wxWidgets3/include/wx/gtk/toolbar.h
index f97fe264e8..ea71a5c91b 100644
--- a/Externals/wxWidgets3/include/wx/gtk/toolbar.h
+++ b/Externals/wxWidgets3/include/wx/gtk/toolbar.h
@@ -2,7 +2,7 @@
// Name: wx/gtk/toolbar.h
// Purpose: GTK toolbar
// Author: Robert Roebling
-// RCS-ID: $Id: toolbar.h 66633 2011-01-07 18:15:21Z PC $
+// RCS-ID: $Id: toolbar.h 70854 2012-03-10 00:01:09Z RD $
// Copyright: (c) Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -12,6 +12,8 @@
#if wxUSE_TOOLBAR
+typedef struct _GtkTooltips GtkTooltips;
+
// ----------------------------------------------------------------------------
// wxToolBar
// ----------------------------------------------------------------------------
@@ -56,6 +58,17 @@ public:
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
+ virtual wxToolBarToolBase *CreateTool(int id,
+ const wxString& label,
+ const wxBitmap& bitmap1,
+ const wxBitmap& bitmap2 = wxNullBitmap,
+ wxItemKind kind = wxITEM_NORMAL,
+ wxObject *clientData = NULL,
+ const wxString& shortHelpString = wxEmptyString,
+ const wxString& longHelpString = wxEmptyString);
+ virtual wxToolBarToolBase *CreateTool(wxControl *control,
+ const wxString& label);
+
// implementation from now on
// --------------------------
@@ -71,17 +84,6 @@ protected:
virtual void DoToggleTool(wxToolBarToolBase *tool, bool toggle);
virtual void DoSetToggle(wxToolBarToolBase *tool, bool toggle);
- virtual wxToolBarToolBase *CreateTool(int id,
- const wxString& label,
- const wxBitmap& bitmap1,
- const wxBitmap& bitmap2,
- wxItemKind kind,
- wxObject *clientData,
- const wxString& shortHelpString,
- const wxString& longHelpString);
- virtual wxToolBarToolBase *CreateTool(wxControl *control,
- const wxString& label);
-
private:
void Init();
void GtkSetStyle();
diff --git a/Externals/wxWidgets3/include/wx/gtk/tooltip.h b/Externals/wxWidgets3/include/wx/gtk/tooltip.h
index 3e4589140c..e82880d638 100644
--- a/Externals/wxWidgets3/include/wx/gtk/tooltip.h
+++ b/Externals/wxWidgets3/include/wx/gtk/tooltip.h
@@ -2,15 +2,14 @@
// Name: wx/gtk/tooltip.h
// Purpose: wxToolTip class
// Author: Robert Roebling
-// Id: $Id: tooltip.h 67254 2011-03-20 00:14:35Z DS $
+// Id: $Id: tooltip.h 67298 2011-03-23 17:36:10Z PC $
// Copyright: (c) 1998 Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifndef __GTKTOOLTIPH__
-#define __GTKTOOLTIPH__
+#ifndef _WX_GTKTOOLTIP_H_
+#define _WX_GTKTOOLTIP_H_
-#include "wx/defs.h"
#include "wx/string.h"
#include "wx/object.h"
@@ -18,7 +17,6 @@
// forward declarations
//-----------------------------------------------------------------------------
-class WXDLLIMPEXP_FWD_CORE wxToolTip;
class WXDLLIMPEXP_FWD_CORE wxWindow;
//-----------------------------------------------------------------------------
@@ -43,15 +41,10 @@ public:
wxString GetTip() const { return m_text; }
wxWindow *GetWindow() const { return m_window; }
- bool IsOk() const { return m_window != NULL; }
-
- // this forwards back to wxWindow::GTKApplyToolTip()
- void GTKApply( wxWindow *win );
-
- // this just sets the given tooltip for the specified widget
- // tip must be UTF-8 encoded
- static void GTKApply(GtkWidget *w, const gchar *tip);
+ // Implementation
+ void GTKSetWindow(wxWindow* win);
+ static void GTKApply(GtkWidget* widget, const char* tip);
private:
wxString m_text;
@@ -60,4 +53,4 @@ private:
DECLARE_ABSTRACT_CLASS(wxToolTip)
};
-#endif // __GTKTOOLTIPH__
+#endif // _WX_GTKTOOLTIP_H_
diff --git a/Externals/wxWidgets3/include/wx/gtk/toplevel.h b/Externals/wxWidgets3/include/wx/gtk/toplevel.h
index cbfa47d34c..c17f62ed77 100644
--- a/Externals/wxWidgets3/include/wx/gtk/toplevel.h
+++ b/Externals/wxWidgets3/include/wx/gtk/toplevel.h
@@ -2,7 +2,7 @@
// Name: wx/gtk/toplevel.h
// Purpose:
// Author: Robert Roebling
-// Id: $Id: toplevel.h 65373 2010-08-21 09:53:25Z RR $
+// Id: $Id: toplevel.h 70165 2011-12-29 14:42:13Z SN $
// Copyright: (c) 1998 Robert Roebling, Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -55,9 +55,7 @@ public:
virtual void ShowWithoutActivating();
virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
- virtual bool IsFullScreen() const { return m_fsIsShowing; };
-
- virtual bool SetShape(const wxRegion& region);
+ virtual bool IsFullScreen() const { return m_fsIsShowing; }
virtual void RequestUserAttention(int flags = wxUSER_ATTENTION_INFO);
@@ -95,6 +93,8 @@ public:
// GTK callbacks
virtual void OnInternalIdle();
+ virtual void GTKHandleRealized();
+
// do *not* call this to iconize the frame, this is a private function!
void SetIconizeState(bool iconic);
@@ -111,12 +111,11 @@ public:
// size of WM decorations
wxSize m_decorSize;
- // shape of the frame
- wxRegion m_shape;
-
// 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;
+ // timer for detecting WM with broken _NET_REQUEST_FRAME_EXTENTS handling
+ unsigned m_netFrameExtentsTimerId;
// return the size of the window without WM decorations
void GTKDoGetSize(int *width, int *height) const;
diff --git a/Externals/wxWidgets3/include/wx/gtk/treeentry_gtk.h b/Externals/wxWidgets3/include/wx/gtk/treeentry_gtk.h
index f5c5f84363..5a2c926151 100644
--- a/Externals/wxWidgets3/include/wx/gtk/treeentry_gtk.h
+++ b/Externals/wxWidgets3/include/wx/gtk/treeentry_gtk.h
@@ -2,7 +2,7 @@
// Name: wx/gtk/treeentry_gtk.h
// Purpose: GtkTreeEntry - a string/userdata combo for use with treeview
// Author: Ryan Norton
-// Id: $Id: treeentry_gtk.h 67254 2011-03-20 00:14:35Z DS $
+// Id: $Id: treeentry_gtk.h 67326 2011-03-28 06:27:49Z PC $
// Copyright: (c) 2006 Ryan Norton
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////// */
@@ -19,9 +19,9 @@ extern "C" {
#include "wx/dlimpexp.h"
#define GTK_TYPE_TREE_ENTRY (gtk_tree_entry_get_type())
-#define GTK_TREE_ENTRY(obj) (GTK_CHECK_CAST (obj, gtk_tree_entry_get_type (), GtkTreeEntry))
-#define GTK_TREE_ENTRY_CLASS(klass) (GTK_CHECK_CLASS_CAST (klass, gtk_tree_entry_get_type (), GtkTreeEntryClass))
-#define GTK_IS_TREE_ENTRY(obj) (GTK_CHECK_TYPE (obj, gtk_tree_entry_get_type ()))
+#define GTK_TREE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, gtk_tree_entry_get_type (), GtkTreeEntry))
+#define GTK_TREE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST (klass, gtk_tree_entry_get_type (), GtkTreeEntryClass))
+#define GTK_IS_TREE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj, gtk_tree_entry_get_type ()))
typedef struct _GtkTreeEntry GtkTreeEntry;
typedef struct _GtkTreeEntryClass GtkTreeEntryClass;
@@ -47,7 +47,7 @@ WXDLLIMPEXP_CORE
GtkTreeEntry* gtk_tree_entry_new (void);
WXDLLIMPEXP_CORE
-GtkType gtk_tree_entry_get_type (void);
+GType gtk_tree_entry_get_type (void);
WXDLLIMPEXP_CORE
gchar* gtk_tree_entry_get_collate_key (GtkTreeEntry* entry);
diff --git a/Externals/wxWidgets3/include/wx/gtk/webview_webkit.h b/Externals/wxWidgets3/include/wx/gtk/webview_webkit.h
new file mode 100644
index 0000000000..cfb7e08aaa
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/gtk/webview_webkit.h
@@ -0,0 +1,156 @@
+/////////////////////////////////////////////////////////////////////////////
+// Name: include/gtk/wx/webview.h
+// Purpose: GTK webkit backend for web view component
+// Author: Robert Roebling, Marianne Gagnon
+// Id: $Id: webview_webkit.h 70768 2012-03-01 16:44:31Z PC $
+// Copyright: (c) 2010 Marianne Gagnon, 1998 Robert Roebling
+// Licence: wxWindows licence
+/////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_GTK_WEBKITCTRL_H_
+#define _WX_GTK_WEBKITCTRL_H_
+
+#include "wx/setup.h"
+
+#if wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT && defined(__WXGTK__)
+
+#include "wx/sharedptr.h"
+#include "wx/webview.h"
+
+typedef struct _WebKitWebView WebKitWebView;
+
+//-----------------------------------------------------------------------------
+// wxWebViewWebKit
+//-----------------------------------------------------------------------------
+
+class WXDLLIMPEXP_WEBVIEW wxWebViewWebKit : public wxWebView
+{
+public:
+ wxWebViewWebKit() { Init(); }
+
+ wxWebViewWebKit(wxWindow *parent,
+ wxWindowID id = wxID_ANY,
+ const wxString& url = wxWebViewDefaultURLStr,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize, long style = 0,
+ const wxString& name = wxWebViewNameStr)
+ {
+ Init();
+
+ Create(parent, id, url, pos, size, style, name);
+ }
+
+ virtual bool Create(wxWindow *parent,
+ wxWindowID id = wxID_ANY,
+ const wxString& url = wxWebViewDefaultURLStr,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize, long style = 0,
+ const wxString& name = wxWebViewNameStr);
+
+ virtual bool Enable( bool enable = true );
+
+ // implementation
+ // --------------
+
+ static wxVisualAttributes
+ GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
+
+ virtual void Stop();
+ virtual void LoadURL(const wxString& url);
+ virtual void GoBack();
+ virtual void GoForward();
+ virtual void Reload(wxWebViewReloadFlags flags = wxWEB_VIEW_RELOAD_DEFAULT);
+ virtual bool CanGoBack() const;
+ virtual bool CanGoForward() const;
+ virtual void ClearHistory();
+ virtual void EnableHistory(bool enable = true);
+ virtual wxVector > GetBackwardHistory();
+ virtual wxVector > GetForwardHistory();
+ virtual void LoadHistoryItem(wxSharedPtr item);
+ virtual wxString GetCurrentURL() const;
+ virtual wxString GetCurrentTitle() const;
+ virtual wxString GetPageSource() const;
+ virtual wxString GetPageText() const;
+ //We do not want to hide the other overloads
+ using wxWebView::SetPage;
+ virtual void SetPage(const wxString& html, const wxString& baseUrl);
+ virtual void Print();
+ virtual bool IsBusy() const;
+
+ void SetZoomType(wxWebViewZoomType);
+ wxWebViewZoomType GetZoomType() const;
+ bool CanSetZoomType(wxWebViewZoomType) const;
+ virtual wxWebViewZoom GetZoom() const;
+ virtual void SetZoom(wxWebViewZoom);
+
+ //Clipboard functions
+ virtual bool CanCut() const;
+ virtual bool CanCopy() const;
+ virtual bool CanPaste() const;
+ virtual void Cut();
+ virtual void Copy();
+ virtual void Paste();
+
+ //Undo / redo functionality
+ virtual bool CanUndo() const;
+ virtual bool CanRedo() const;
+ virtual void Undo();
+ virtual void Redo();
+
+ //Editing functions
+ virtual void SetEditable(bool enable = true);
+ virtual bool IsEditable() const;
+
+ //Selection
+ virtual void DeleteSelection();
+ virtual bool HasSelection() const;
+ virtual void SelectAll();
+ virtual wxString GetSelectedText() const;
+ virtual wxString GetSelectedSource() const;
+ virtual void ClearSelection();
+
+ virtual void RunScript(const wxString& javascript);
+
+ //Virtual Filesystem Support
+ virtual void RegisterHandler(wxSharedPtr handler);
+ virtual wxVector > GetHandlers() { return m_handlerList; }
+
+ /** TODO: check if this can be made private
+ * The native control has a getter to check for busy state, but except in
+ * very recent versions of webkit this getter doesn't say everything we need
+ * (namely it seems to stay indefinitely busy when loading is cancelled by
+ * user)
+ */
+ bool m_busy;
+
+ wxString m_vfsurl;
+
+ //We use this flag to stop recursion when we load a page from the navigation
+ //callback, mainly when loading a VFS page
+ bool m_guard;
+
+protected:
+
+ virtual GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const;
+
+private:
+
+ void ZoomIn();
+ void ZoomOut();
+ void SetWebkitZoom(float level);
+ float GetWebkitZoom() const;
+
+ // focus event handler: calls GTKUpdateBitmap()
+ void GTKOnFocus(wxFocusEvent& event);
+
+ WebKitWebView *m_web_view;
+ int m_historyLimit;
+
+ wxVector > m_handlerList;
+
+ wxDECLARE_DYNAMIC_CLASS(wxWebViewWebKit);
+};
+
+#endif // wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT && defined(__WXGTK__)
+
+#endif
diff --git a/Externals/wxWidgets3/include/wx/gtk/webviewhistoryitem_webkit.h b/Externals/wxWidgets3/include/wx/gtk/webviewhistoryitem_webkit.h
new file mode 100644
index 0000000000..cbadf4ef5f
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/gtk/webviewhistoryitem_webkit.h
@@ -0,0 +1,34 @@
+/////////////////////////////////////////////////////////////////////////////
+// Name: include/wx/gtk/webviewhistoryitem.h
+// Purpose: wxWebViewHistoryItem header for GTK
+// Author: Steven Lamerton
+// Id: $Id: webviewhistoryitem_webkit.h 69770 2011-11-17 01:23:03Z RD $
+// Copyright: (c) 2011 Steven Lamerton
+// Licence: wxWindows licence
+/////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_GTK_WEBVIEWHISTORYITEM_H_
+#define _WX_GTK_WEBVIEWHISTORYITEM_H_
+
+#include "wx/setup.h"
+
+#if wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT && defined(__WXGTK__)
+
+class WXDLLIMPEXP_WEBVIEW wxWebViewHistoryItem
+{
+public:
+ wxWebViewHistoryItem(const wxString& url, const wxString& title) :
+ m_url(url), m_title(title) {}
+ wxString GetUrl() { return m_url; }
+ wxString GetTitle() { return m_title; }
+
+ friend class wxWebViewWebKit;
+
+private:
+ wxString m_url, m_title;
+ void* m_histItem;
+};
+
+#endif // wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT && defined(__WXGTK__)
+
+#endif // _WX_GTK_WEBVIEWHISTORYITEM_H_
diff --git a/Externals/wxWidgets3/include/wx/gtk/window.h b/Externals/wxWidgets3/include/wx/gtk/window.h
index 7d2e6ed4fb..7238d6149b 100644
--- a/Externals/wxWidgets3/include/wx/gtk/window.h
+++ b/Externals/wxWidgets3/include/wx/gtk/window.h
@@ -2,7 +2,7 @@
// Name: wx/gtk/window.h
// Purpose:
// Author: Robert Roebling
-// Id: $Id: window.h 65680 2010-09-30 11:44:45Z VZ $
+// Id: $Id: window.h 70569 2012-02-11 16:26:52Z VZ $
// Copyright: (c) 1998 Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -18,6 +18,13 @@ struct wxGtkIMData;
WX_DEFINE_EXPORTED_ARRAY_PTR(GdkWindow *, wxArrayGdkWindows);
+extern "C"
+{
+
+typedef void (*wxGTKCallback)();
+
+}
+
//-----------------------------------------------------------------------------
// wxWindowGTK
//-----------------------------------------------------------------------------
@@ -52,8 +59,6 @@ public:
virtual bool Show( bool show = true );
- virtual void SetWindowStyleFlag( long style );
-
virtual bool IsRetained() const;
virtual void SetFocus();
@@ -76,6 +81,7 @@ public:
virtual bool SetFont( const wxFont &font );
virtual bool SetBackgroundStyle(wxBackgroundStyle style) ;
+ virtual bool IsTransparentBackgroundSupported(wxString* reason = NULL) const;
virtual int GetCharHeight() const;
virtual int GetCharWidth() const;
@@ -187,6 +193,10 @@ public:
void GTKHandleFocusOutNoDeferring();
static void GTKHandleDeferredFocusOut();
+ // Called when m_widget becomes realized. Derived classes must call the
+ // base class method if they override it.
+ virtual void GTKHandleRealized();
+
protected:
// for controls composed of multiple GTK widgets, return true to eliminate
// spurious focus events if the focus changes between GTK+ children within
@@ -218,7 +228,7 @@ public:
#if wxUSE_TOOLTIPS
// applies tooltip to the widget (tip must be UTF-8 encoded)
- virtual void GTKApplyToolTip( GtkTooltips *tips, const gchar *tip );
+ virtual void GTKApplyToolTip(const char* tip);
#endif // wxUSE_TOOLTIPS
// Called when a window should delay showing itself
@@ -370,7 +380,7 @@ protected:
//
// This is just a wrapper for g_signal_connect() and returns the handler id
// just as it does.
- gulong GTKConnectWidget(const char *signal, void (*callback)());
+ unsigned long GTKConnectWidget(const char *signal, wxGTKCallback callback);
// Return true from here if PostCreation() should connect to size_request
// signal: this is done by default but doesn't work for some native
@@ -390,7 +400,6 @@ private:
bool DoScrollByUnits(ScrollDir dir, ScrollUnit unit, int units);
virtual void AddChildGTK(wxWindowGTK* child);
-
DECLARE_DYNAMIC_CLASS(wxWindowGTK)
wxDECLARE_NO_COPY_CLASS(wxWindowGTK);
};
diff --git a/Externals/wxWidgets3/include/wx/hash.h b/Externals/wxWidgets3/include/wx/hash.h
index d20c83c668..c30644fcfb 100644
--- a/Externals/wxWidgets3/include/wx/hash.h
+++ b/Externals/wxWidgets3/include/wx/hash.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by: VZ at 25.02.00: type safe hashes with WX_DECLARE_HASH()
// Created: 01/02/97
-// RCS-ID: $Id: hash.h 58757 2009-02-08 11:45:59Z VZ $
+// RCS-ID: $Id: hash.h 67343 2011-03-30 14:16:04Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -15,7 +15,7 @@
#include "wx/defs.h"
#include "wx/string.h"
-#if !wxUSE_STL
+#if !wxUSE_STD_CONTAINERS
#include "wx/object.h"
#else
class WXDLLIMPEXP_FWD_BASE wxObject;
@@ -80,7 +80,7 @@ protected:
};
class WXDLLIMPEXP_BASE wxHashTableBase
-#if !wxUSE_STL
+#if !wxUSE_STD_CONTAINERS
: public wxObject
#endif
{
diff --git a/Externals/wxWidgets3/include/wx/hashmap.h b/Externals/wxWidgets3/include/wx/hashmap.h
index 058c5c9e38..f7288a6df0 100644
--- a/Externals/wxWidgets3/include/wx/hashmap.h
+++ b/Externals/wxWidgets3/include/wx/hashmap.h
@@ -4,7 +4,7 @@
// Author: Mattia Barbon
// Modified by:
// Created: 29/01/2002
-// RCS-ID: $Id: hashmap.h 66711 2011-01-19 10:47:49Z VZ $
+// RCS-ID: $Id: hashmap.h 69568 2011-10-27 22:26:10Z VZ $
// Copyright: (c) Mattia Barbon
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -15,9 +15,9 @@
#include "wx/string.h"
#include "wx/wxcrt.h"
-// In wxUSE_STL build we prefer to use the standard hash map class but it can
-// be either in non-standard hash_map header (old g++ and some other STL
-// implementations) or in C++0x standard unordered_map which can in turn be
+// In wxUSE_STD_CONTAINERS build we prefer to use the standard hash map class
+// but it can be either in non-standard hash_map header (old g++ and some other
+// STL implementations) or in C++0x standard unordered_map which can in turn be
// available either in std::tr1 or std namespace itself
//
// To summarize: if std::unordered_map is available use it, otherwise use tr1
@@ -28,7 +28,7 @@
#define HAVE_STL_HASH_MAP
#endif
-#if wxUSE_STL && \
+#if wxUSE_STD_CONTAINERS && \
(defined(HAVE_STD_UNORDERED_MAP) || defined(HAVE_TR1_UNORDERED_MAP))
#if defined(HAVE_STD_UNORDERED_MAP)
@@ -42,7 +42,7 @@
#define _WX_DECLARE_HASH_MAP( KEY_T, VALUE_T, HASH_T, KEY_EQ_T, CLASSNAME, CLASSEXP ) \
typedef WX_HASH_MAP_NAMESPACE::unordered_map< KEY_T, VALUE_T, HASH_T, KEY_EQ_T > CLASSNAME
-#elif wxUSE_STL && defined(HAVE_STL_HASH_MAP)
+#elif wxUSE_STD_CONTAINERS && defined(HAVE_STL_HASH_MAP)
#if defined(HAVE_EXT_HASH_MAP)
#include
@@ -59,7 +59,7 @@
#define _WX_DECLARE_HASH_MAP( KEY_T, VALUE_T, HASH_T, KEY_EQ_T, CLASSNAME, CLASSEXP ) \
typedef WX_HASH_MAP_NAMESPACE::hash_map< KEY_T, VALUE_T, HASH_T, KEY_EQ_T > CLASSNAME
-#else // !wxUSE_STL || no std::{hash,unordered}_map class available
+#else // !wxUSE_STD_CONTAINERS || no std::{hash,unordered}_map class available
#define wxNEEDS_WX_HASH_MAP
@@ -127,7 +127,9 @@ protected:
}
};
-#define _WX_DECLARE_HASHTABLE( VALUE_T, KEY_T, HASH_T, KEY_EX_T, KEY_EQ_T, CLASSNAME, CLASSEXP, SHOULD_GROW, SHOULD_SHRINK ) \
+#define _WX_DECLARE_HASHTABLE( VALUE_T, KEY_T, HASH_T, KEY_EX_T, KEY_EQ_T,\
+ PTROPERATOR, CLASSNAME, CLASSEXP, \
+ SHOULD_GROW, SHOULD_SHRINK ) \
CLASSEXP CLASSNAME : protected _wxHashTableBase2 \
{ \
public: \
@@ -217,7 +219,7 @@ public: \
iterator& operator++() { PlusPlus(); return *this; } \
iterator operator++(int) { iterator it=*this;PlusPlus();return it; } \
reference operator *() const { return m_node->m_value; } \
- pointer operator ->() const { return &(m_node->m_value); } \
+ PTROPERATOR(pointer) \
}; \
\
CLASSEXP const_iterator : public Iterator \
@@ -230,7 +232,7 @@ public: \
const_iterator& operator++() { PlusPlus();return *this; } \
const_iterator operator++(int) { const_iterator it=*this;PlusPlus();return it; } \
const_reference operator *() const { return m_node->m_value; } \
- const_pointer operator ->() const { return &(m_node->m_value); } \
+ PTROPERATOR(const_pointer) \
}; \
\
CLASSNAME( size_type sz = 10, const hasher& hfun = hasher(), \
@@ -632,10 +634,16 @@ public:
#ifdef wxNEEDS_WX_HASH_MAP
+#define wxPTROP_NORMAL(pointer) \
+ pointer operator ->() const { return &(m_node->m_value); }
+#define wxPTROP_NOP(pointer)
+
#define _WX_DECLARE_HASH_MAP( KEY_T, VALUE_T, HASH_T, KEY_EQ_T, CLASSNAME, CLASSEXP ) \
_WX_DECLARE_PAIR( KEY_T, VALUE_T, CLASSNAME##_wxImplementation_Pair, CLASSEXP ) \
_WX_DECLARE_HASH_MAP_KEY_EX( KEY_T, CLASSNAME##_wxImplementation_Pair, CLASSNAME##_wxImplementation_KeyEx, CLASSEXP ) \
-_WX_DECLARE_HASHTABLE( CLASSNAME##_wxImplementation_Pair, KEY_T, HASH_T, CLASSNAME##_wxImplementation_KeyEx, KEY_EQ_T, CLASSNAME##_wxImplementation_HashTable, CLASSEXP, grow_lf70, never_shrink ) \
+_WX_DECLARE_HASHTABLE( CLASSNAME##_wxImplementation_Pair, KEY_T, HASH_T, \
+ CLASSNAME##_wxImplementation_KeyEx, KEY_EQ_T, wxPTROP_NORMAL, \
+ CLASSNAME##_wxImplementation_HashTable, CLASSEXP, grow_lf70, never_shrink ) \
CLASSEXP CLASSNAME:public CLASSNAME##_wxImplementation_HashTable \
{ \
public: \
@@ -676,7 +684,7 @@ public: \
\
size_type erase( const key_type& k ) \
{ return CLASSNAME##_wxImplementation_HashTable::erase( k ); } \
- void erase( const iterator& it ) { erase( it->first ); } \
+ void erase( const iterator& it ) { erase( (*it).first ); } \
\
/* count() == 0 | 1 */ \
size_type count( const const_key_type& key ) \
diff --git a/Externals/wxWidgets3/include/wx/hashset.h b/Externals/wxWidgets3/include/wx/hashset.h
index 54a7779c4a..e5f4d10eca 100644
--- a/Externals/wxWidgets3/include/wx/hashset.h
+++ b/Externals/wxWidgets3/include/wx/hashset.h
@@ -4,7 +4,7 @@
// Author: Mattia Barbon
// Modified by:
// Created: 11/08/2003
-// RCS-ID: $Id: hashset.h 60410 2009-04-27 13:26:19Z VZ $
+// RCS-ID: $Id: hashset.h 69568 2011-10-27 22:26:10Z VZ $
// Copyright: (c) Mattia Barbon
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -17,7 +17,7 @@
// see comment in wx/hashmap.h which also applies to different standard hash
// set classes
-#if wxUSE_STL && \
+#if wxUSE_STD_CONTAINERS && \
(defined(HAVE_STD_UNORDERED_SET) || defined(HAVE_TR1_UNORDERED_SET))
#if defined(HAVE_STD_UNORDERED_SET)
@@ -30,7 +30,7 @@
#error Update this code: unordered_set is available, but I do not know where.
#endif
-#elif wxUSE_STL && defined(HAVE_STL_HASH_MAP)
+#elif wxUSE_STD_CONTAINERS && defined(HAVE_STL_HASH_MAP)
#if defined(HAVE_EXT_HASH_MAP)
#include
@@ -46,7 +46,7 @@
// we need to define the class declared by _WX_DECLARE_HASH_SET as a class and
// not a typedef to allow forward declaring it
-#define _WX_DECLARE_HASH_SET( KEY_T, HASH_T, KEY_EQ_T, CLASSNAME, CLASSEXP ) \
+#define _WX_DECLARE_HASH_SET( KEY_T, HASH_T, KEY_EQ_T, PTROP, CLASSNAME, CLASSEXP ) \
CLASSEXP CLASSNAME \
: public WX_HASH_SET_BASE_TEMPLATE< KEY_T, HASH_T, KEY_EQ_T > \
{ \
@@ -89,9 +89,11 @@ public: \
CLASSNAME& operator=(const CLASSNAME&) { return *this; } \
};
-#define _WX_DECLARE_HASH_SET( KEY_T, HASH_T, KEY_EQ_T, CLASSNAME, CLASSEXP )\
+#define _WX_DECLARE_HASH_SET( KEY_T, HASH_T, KEY_EQ_T, PTROP, CLASSNAME, CLASSEXP )\
_WX_DECLARE_HASH_SET_KEY_EX( KEY_T, CLASSNAME##_wxImplementation_KeyEx, CLASSEXP ) \
-_WX_DECLARE_HASHTABLE( KEY_T, KEY_T, HASH_T, CLASSNAME##_wxImplementation_KeyEx, KEY_EQ_T, CLASSNAME##_wxImplementation_HashTable, CLASSEXP, grow_lf70, never_shrink ) \
+_WX_DECLARE_HASHTABLE( KEY_T, KEY_T, HASH_T, \
+ CLASSNAME##_wxImplementation_KeyEx, KEY_EQ_T, PTROP, \
+ CLASSNAME##_wxImplementation_HashTable, CLASSEXP, grow_lf70, never_shrink ) \
CLASSEXP CLASSNAME:public CLASSNAME##_wxImplementation_HashTable \
{ \
public: \
@@ -134,17 +136,27 @@ public: \
// these macros are to be used in the user code
#define WX_DECLARE_HASH_SET( KEY_T, HASH_T, KEY_EQ_T, CLASSNAME) \
- _WX_DECLARE_HASH_SET( KEY_T, HASH_T, KEY_EQ_T, CLASSNAME, class )
+ _WX_DECLARE_HASH_SET( KEY_T, HASH_T, KEY_EQ_T, wxPTROP_NORMAL, CLASSNAME, class )
// and these do exactly the same thing but should be used inside the
// library
#define WX_DECLARE_HASH_SET_WITH_DECL( KEY_T, HASH_T, KEY_EQ_T, CLASSNAME, DECL) \
- _WX_DECLARE_HASH_SET( KEY_T, HASH_T, KEY_EQ_T, CLASSNAME, DECL )
+ _WX_DECLARE_HASH_SET( KEY_T, HASH_T, KEY_EQ_T, wxPTROP_NORMAL, CLASSNAME, DECL )
#define WX_DECLARE_EXPORTED_HASH_SET( KEY_T, HASH_T, KEY_EQ_T, CLASSNAME) \
WX_DECLARE_HASH_SET_WITH_DECL( KEY_T, HASH_T, KEY_EQ_T, \
CLASSNAME, class WXDLLIMPEXP_CORE )
+// Finally these versions allow to define hash sets of non-objects (including
+// pointers, hence the confusing but wxArray-compatible name) without
+// operator->() which can't be used for them. This is mostly used inside the
+// library itself to avoid warnings when using such hash sets with some less
+// common compilers (notably Sun CC).
+#define WX_DECLARE_HASH_SET_PTR( KEY_T, HASH_T, KEY_EQ_T, CLASSNAME) \
+ _WX_DECLARE_HASH_SET( KEY_T, HASH_T, KEY_EQ_T, wxPTROP_NOP, CLASSNAME, class )
+#define WX_DECLARE_HASH_SET_WITH_DECL_PTR( KEY_T, HASH_T, KEY_EQ_T, CLASSNAME, DECL) \
+ _WX_DECLARE_HASH_SET( KEY_T, HASH_T, KEY_EQ_T, wxPTROP_NOP, CLASSNAME, DECL )
+
// delete all hash elements
//
// NB: the class declaration of the hash elements must be visible from the
diff --git a/Externals/wxWidgets3/include/wx/headercol.h b/Externals/wxWidgets3/include/wx/headercol.h
index d3a47d3054..34231fe83e 100644
--- a/Externals/wxWidgets3/include/wx/headercol.h
+++ b/Externals/wxWidgets3/include/wx/headercol.h
@@ -3,7 +3,7 @@
// Purpose: declaration of wxHeaderColumn class
// Author: Vadim Zeitlin
// Created: 2008-12-02
-// RCS-ID: $Id: headercol.h 65948 2010-10-30 15:57:41Z VS $
+// RCS-ID: $Id: headercol.h 69174 2011-09-21 15:07:46Z VZ $
// Copyright: (c) 2008 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -97,7 +97,7 @@ public:
// unspecified/default
virtual int GetWidth() const = 0;
- // minimal width can be set for resizeable columns to forbid resizing them
+ // minimal width can be set for resizable columns to forbid resizing them
// below the specified size (set to 0 to remove)
virtual int GetMinWidth() const = 0;
@@ -177,8 +177,8 @@ public:
void ClearFlag(int flag);
void ToggleFlag(int flag);
- virtual void SetResizeable(bool resizeable)
- { ChangeFlag(wxCOL_RESIZABLE, resizeable); }
+ virtual void SetResizeable(bool resizable)
+ { ChangeFlag(wxCOL_RESIZABLE, resizable); }
virtual void SetSortable(bool sortable)
{ ChangeFlag(wxCOL_SORTABLE, sortable); }
virtual void SetReorderable(bool reorderable)
@@ -186,8 +186,12 @@ public:
virtual void SetHidden(bool hidden)
{ ChangeFlag(wxCOL_HIDDEN, hidden); }
- virtual void SetAsSortKey(bool sort = true) = 0;
- void UnsetAsSortKey() { SetAsSortKey(false); }
+ // This function can be called to indicate that this column is not used for
+ // sorting any more. Under some platforms it's not necessary to do anything
+ // in this case as just setting another column as a sort key takes care of
+ // everything but under MSW we currently need to call this explicitly to
+ // reset the sort indicator displayed on the column.
+ virtual void UnsetAsSortKey() { }
virtual void SetSortOrder(bool ascending) = 0;
void ToggleSortOrder() { SetSortOrder(!IsSortOrderAscending()); }
@@ -249,10 +253,15 @@ public:
virtual void SetFlags(int flags) { m_flags = flags; }
virtual int GetFlags() const { return m_flags; }
- virtual void SetAsSortKey(bool sort = true) { m_sort = sort; }
virtual bool IsSortKey() const { return m_sort; }
+ virtual void UnsetAsSortKey() { m_sort = false; }
+
+ virtual void SetSortOrder(bool ascending)
+ {
+ m_sort = true;
+ m_sortAscending = ascending;
+ }
- virtual void SetSortOrder(bool ascending) { m_sortAscending = ascending; }
virtual bool IsSortOrderAscending() const { return m_sortAscending; }
private:
diff --git a/Externals/wxWidgets3/include/wx/headerctrl.h b/Externals/wxWidgets3/include/wx/headerctrl.h
index 600778b5fc..5477ea568d 100644
--- a/Externals/wxWidgets3/include/wx/headerctrl.h
+++ b/Externals/wxWidgets3/include/wx/headerctrl.h
@@ -3,7 +3,7 @@
// Purpose: wxHeaderCtrlBase class: interface of wxHeaderCtrl
// Author: Vadim Zeitlin
// Created: 2008-12-01
-// RCS-ID: $Id: headerctrl.h 58757 2009-02-08 11:45:59Z VZ $
+// RCS-ID: $Id: headerctrl.h 70338 2012-01-14 16:51:57Z VS $
// Copyright: (c) 2008 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -154,6 +154,8 @@ public:
// specified) and if the control has wxHD_ALLOW_REORDER style as well
bool ShowCustomizeDialog();
+ // compute column title width
+ int GetColumnTitleWidth(const wxHeaderColumn& col);
// implementation only from now on
// -------------------------------
diff --git a/Externals/wxWidgets3/include/wx/help.h b/Externals/wxWidgets3/include/wx/help.h
index 0dae79dfae..e76d713189 100644
--- a/Externals/wxWidgets3/include/wx/help.h
+++ b/Externals/wxWidgets3/include/wx/help.h
@@ -5,7 +5,7 @@
// Modified by:
// Created:
// Copyright: (c) Julian Smart
-// RCS-ID: $Id: help.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: help.h 70345 2012-01-15 01:05:28Z VZ $
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -22,10 +22,6 @@
#include "wx/msw/wince/helpwce.h"
#define wxHelpController wxWinceHelpController
-#elif defined(__WXPALMOS__)
- #include "wx/palmos/help.h"
-
- #define wxHelpController wxPalmHelpController
#elif defined(__WXMSW__)
#include "wx/msw/helpchm.h"
diff --git a/Externals/wxWidgets3/include/wx/htmllbox.h b/Externals/wxWidgets3/include/wx/htmllbox.h
index 46a15de7bc..8e051b371f 100644
--- a/Externals/wxWidgets3/include/wx/htmllbox.h
+++ b/Externals/wxWidgets3/include/wx/htmllbox.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 31.05.03
-// RCS-ID: $Id: htmllbox.h 66751 2011-01-25 05:03:17Z RD $
+// RCS-ID: $Id: htmllbox.h 68460 2011-07-30 11:30:08Z VZ $
// Copyright: (c) 2003 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -196,8 +196,8 @@ private:
#define wxHLB_DEFAULT_STYLE wxBORDER_SUNKEN
#define wxHLB_MULTIPLE wxLB_MULTIPLE
-class WXDLLIMPEXP_HTML wxSimpleHtmlListBox : public wxHtmlListBox,
- public wxItemContainer
+class WXDLLIMPEXP_HTML wxSimpleHtmlListBox :
+ public wxWindowWithItems
{
DECLARE_ABSTRACT_CLASS(wxSimpleHtmlListBox)
public:
@@ -254,9 +254,6 @@ public:
int GetSelection() const
{ return wxVListBox::GetSelection(); }
- // see ctrlsub.h for more info about this:
- wxCONTROL_ITEMCONTAINER_CLIENTDATAOBJECT_RECAST
-
// accessing strings
// -----------------
diff --git a/Externals/wxWidgets3/include/wx/icon.h b/Externals/wxWidgets3/include/wx/icon.h
index 7e5265389b..421f7c5ba6 100644
--- a/Externals/wxWidgets3/include/wx/icon.h
+++ b/Externals/wxWidgets3/include/wx/icon.h
@@ -5,7 +5,7 @@
// Modified by:
// Created:
// Copyright: (c) Julian Smart
-// RCS-ID: $Id: icon.h 66772 2011-01-26 15:53:31Z SC $
+// RCS-ID: $Id: icon.h 70353 2012-01-15 14:46:41Z VZ $
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -23,10 +23,7 @@
// constant defines the default argument value for wxIcon ctor and wxIcon::LoadFile()
// functions.
-#if defined(__WXPALMOS__)
- #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
- #include "wx/generic/icon.h"
-#elif defined(__WXMSW__)
+#if defined(__WXMSW__)
#define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICO_RESOURCE
#include "wx/msw/icon.h"
#elif defined(__WXMOTIF__)
@@ -41,9 +38,6 @@
#elif defined(__WXX11__)
#define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
#include "wx/generic/icon.h"
-#elif defined(__WXMGL__)
- #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICO_RESOURCE
- #include "wx/generic/icon.h"
#elif defined(__WXDFB__)
#define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
#include "wx/generic/icon.h"
diff --git a/Externals/wxWidgets3/include/wx/iconbndl.h b/Externals/wxWidgets3/include/wx/iconbndl.h
index 32c62fd475..f0bbb403d9 100644
--- a/Externals/wxWidgets3/include/wx/iconbndl.h
+++ b/Externals/wxWidgets3/include/wx/iconbndl.h
@@ -4,7 +4,7 @@
// Author: Mattia barbon
// Modified by:
// Created: 23.03.02
-// RCS-ID: $Id: iconbndl.h 63942 2010-04-12 00:36:31Z VZ $
+// RCS-ID: $Id: iconbndl.h 70455 2012-01-24 22:17:47Z VZ $
// Copyright: (c) Mattia Barbon
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -28,6 +28,23 @@ WX_DECLARE_EXPORTED_OBJARRAY(wxIcon, wxIconArray);
class WXDLLIMPEXP_CORE wxIconBundle : public wxGDIObject
{
public:
+ // Flags that determine what happens if GetIcon() doesn't find the icon of
+ // exactly the requested size.
+ enum
+ {
+ // Return invalid icon if exact size is not found.
+ FALLBACK_NONE = 0,
+
+ // Return the icon of the system icon size if exact size is not found.
+ // May be combined with other non-NONE enum elements to determine what
+ // happens if the system icon size is not found neither.
+ FALLBACK_SYSTEM = 1,
+
+ // Return the icon of closest larger size or, if there is no icon of
+ // larger size in the bundle, the closest icon of smaller size.
+ FALLBACK_NEAREST_LARGER = 2
+ };
+
// default constructor
wxIconBundle();
@@ -60,13 +77,13 @@ public:
void AddIcon(const wxIcon& icon);
// returns the icon with the given size; if no such icon exists,
- // returns the icon with size wxSYS_ICON_[XY]; if no such icon exists,
- // returns the first icon in the bundle
- wxIcon GetIcon(const wxSize& size) const;
+ // behavior is specified by the flags.
+ wxIcon GetIcon(const wxSize& size, int flags = FALLBACK_SYSTEM) const;
// equivalent to GetIcon(wxSize(size, size))
- wxIcon GetIcon(wxCoord size = wxDefaultCoord) const
- { return GetIcon(wxSize(size, size)); }
+ wxIcon GetIcon(wxCoord size = wxDefaultCoord,
+ int flags = FALLBACK_SYSTEM) const
+ { return GetIcon(wxSize(size, size), flags); }
// returns the icon exactly of the specified size or wxNullIcon if no icon
// of exactly given size are available
diff --git a/Externals/wxWidgets3/include/wx/iconloc.h b/Externals/wxWidgets3/include/wx/iconloc.h
index 41abc8fa7a..c2c6ef5485 100644
--- a/Externals/wxWidgets3/include/wx/iconloc.h
+++ b/Externals/wxWidgets3/include/wx/iconloc.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 21.06.2003
-// RCS-ID: $Id: iconloc.h 27408 2004-05-23 20:53:33Z JS $
+// RCS-ID: $Id: iconloc.h 70808 2012-03-04 20:31:42Z VZ $
// Copyright: (c) 2003 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -39,9 +39,9 @@ private:
wxString m_filename;
};
-// under MSW the same file may contain several icons so we also store the
+// under Windows the same file may contain several icons so we also store the
// index of the icon
-#if defined(__WXMSW__)
+#if defined(__WINDOWS__)
class WXDLLIMPEXP_BASE wxIconLocation : public wxIconLocationBase
{
@@ -65,7 +65,7 @@ wxIconLocation::wxIconLocation(const wxString& file, int num)
SetIndex(num);
}
-#else // !MSW
+#else // !__WINDOWS__
// must be a class because we forward declare it as class
class WXDLLIMPEXP_BASE wxIconLocation : public wxIconLocationBase
diff --git a/Externals/wxWidgets3/include/wx/image.h b/Externals/wxWidgets3/include/wx/image.h
index 393c0a6f69..70167b104c 100644
--- a/Externals/wxWidgets3/include/wx/image.h
+++ b/Externals/wxWidgets3/include/wx/image.h
@@ -2,7 +2,7 @@
// Name: wx/image.h
// Purpose: wxImage class
// Author: Robert Roebling
-// RCS-ID: $Id: image.h 67203 2011-03-15 16:42:34Z DS $
+// RCS-ID: $Id: image.h 69760 2011-11-14 13:35:52Z VZ $
// Copyright: (c) Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -28,17 +28,20 @@
// which breaks the compilation below
#undef index
-#define wxIMAGE_OPTION_QUALITY wxString(wxT("quality"))
-#define wxIMAGE_OPTION_FILENAME wxString(wxT("FileName"))
+#define wxIMAGE_OPTION_QUALITY wxString(wxS("quality"))
+#define wxIMAGE_OPTION_FILENAME wxString(wxS("FileName"))
-#define wxIMAGE_OPTION_RESOLUTION wxString(wxT("Resolution"))
-#define wxIMAGE_OPTION_RESOLUTIONX wxString(wxT("ResolutionX"))
-#define wxIMAGE_OPTION_RESOLUTIONY wxString(wxT("ResolutionY"))
+#define wxIMAGE_OPTION_RESOLUTION wxString(wxS("Resolution"))
+#define wxIMAGE_OPTION_RESOLUTIONX wxString(wxS("ResolutionX"))
+#define wxIMAGE_OPTION_RESOLUTIONY wxString(wxS("ResolutionY"))
-#define wxIMAGE_OPTION_RESOLUTIONUNIT wxString(wxT("ResolutionUnit"))
+#define wxIMAGE_OPTION_RESOLUTIONUNIT wxString(wxS("ResolutionUnit"))
-#define wxIMAGE_OPTION_MAX_WIDTH wxString(wxT("MaxWidth"))
-#define wxIMAGE_OPTION_MAX_HEIGHT wxString(wxT("MaxHeight"))
+#define wxIMAGE_OPTION_MAX_WIDTH wxString(wxS("MaxWidth"))
+#define wxIMAGE_OPTION_MAX_HEIGHT wxString(wxS("MaxHeight"))
+
+#define wxIMAGE_OPTION_ORIGINAL_WIDTH wxString(wxS("OriginalWidth"))
+#define wxIMAGE_OPTION_ORIGINAL_HEIGHT wxString(wxS("OriginalHeight"))
// constants used with wxIMAGE_OPTION_RESOLUTIONUNIT
//
diff --git a/Externals/wxWidgets3/include/wx/imaglist.h b/Externals/wxWidgets3/include/wx/imaglist.h
index 2d501d93a4..9e5719a145 100644
--- a/Externals/wxWidgets3/include/wx/imaglist.h
+++ b/Externals/wxWidgets3/include/wx/imaglist.h
@@ -5,7 +5,7 @@
// Modified by:
// Created:
// Copyright: (c) Julian Smart
-// RCS-ID: $Id: imaglist.h 63553 2010-02-25 00:03:53Z VZ $
+// RCS-ID: $Id: imaglist.h 70345 2012-01-15 01:05:28Z VZ $
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ enum
#define wxIMAGELIST_DRAW_SELECTED 0x0004
#define wxIMAGELIST_DRAW_FOCUSED 0x0008
-#if defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXPALMOS__)
+#if defined(__WXMSW__) || defined(__WXMAC__)
#define wxHAS_NATIVE_IMAGELIST
#endif
@@ -52,8 +52,6 @@ enum
#include "wx/msw/imaglist.h"
#elif defined(__WXMAC__)
#include "wx/osx/imaglist.h"
-#elif defined(__WXPALMOS__)
- #include "wx/palmos/imaglist.h"
#endif
#endif // _WX_IMAGLIST_H_BASE_
diff --git a/Externals/wxWidgets3/include/wx/imagtiff.h b/Externals/wxWidgets3/include/wx/imagtiff.h
index ad91d3d5d3..e9b00aa989 100644
--- a/Externals/wxWidgets3/include/wx/imagtiff.h
+++ b/Externals/wxWidgets3/include/wx/imagtiff.h
@@ -2,7 +2,7 @@
// Name: wx/imagtiff.h
// Purpose: wxImage TIFF handler
// Author: Robert Roebling
-// RCS-ID: $Id: imagtiff.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: imagtiff.h 68785 2011-08-19 03:47:40Z DS $
// Copyright: (c) Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -22,10 +22,17 @@
#include "wx/versioninfo.h"
// defines for wxImage::SetOption
-#define wxIMAGE_OPTION_BITSPERSAMPLE wxString(wxT("BitsPerSample"))
-#define wxIMAGE_OPTION_SAMPLESPERPIXEL wxString(wxT("SamplesPerPixel"))
-#define wxIMAGE_OPTION_COMPRESSION wxString(wxT("Compression"))
-#define wxIMAGE_OPTION_IMAGEDESCRIPTOR wxString(wxT("ImageDescriptor"))
+#define wxIMAGE_OPTION_TIFF_BITSPERSAMPLE wxString(wxT("BitsPerSample"))
+#define wxIMAGE_OPTION_TIFF_SAMPLESPERPIXEL wxString(wxT("SamplesPerPixel"))
+#define wxIMAGE_OPTION_TIFF_COMPRESSION wxString(wxT("Compression"))
+#define wxIMAGE_OPTION_TIFF_PHOTOMETRIC wxString(wxT("Photometric"))
+#define wxIMAGE_OPTION_TIFF_IMAGEDESCRIPTOR wxString(wxT("ImageDescriptor"))
+
+// for backwards compatibility
+#define wxIMAGE_OPTION_BITSPERSAMPLE wxIMAGE_OPTION_TIFF_BITSPERSAMPLE
+#define wxIMAGE_OPTION_SAMPLESPERPIXEL wxIMAGE_OPTION_TIFF_SAMPLESPERPIXEL
+#define wxIMAGE_OPTION_COMPRESSION wxIMAGE_OPTION_TIFF_COMPRESSION
+#define wxIMAGE_OPTION_IMAGEDESCRIPTOR wxIMAGE_OPTION_TIFF_IMAGEDESCRIPTOR
class WXDLLIMPEXP_CORE wxTIFFHandler: public wxImageHandler
{
diff --git a/Externals/wxWidgets3/include/wx/intl.h b/Externals/wxWidgets3/include/wx/intl.h
index be563dd495..a2785fd97f 100644
--- a/Externals/wxWidgets3/include/wx/intl.h
+++ b/Externals/wxWidgets3/include/wx/intl.h
@@ -5,7 +5,7 @@
// Modified by: Michael N. Filippov
// (2003/09/30 - plural forms support)
// Created: 29/01/98
-// RCS-ID: $Id: intl.h 64215 2010-05-05 12:27:07Z VS $
+// RCS-ID: $Id: intl.h 70796 2012-03-04 00:29:31Z VZ $
// Copyright: (c) 1998 Vadim Zeitlin
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -60,17 +60,17 @@ struct WXDLLIMPEXP_BASE wxLanguageInfo
{
int Language; // wxLanguage id
wxString CanonicalName; // Canonical name, e.g. fr_FR
-#ifdef __WXMSW__
+#ifdef __WINDOWS__
wxUint32 WinLang, // Win32 language identifiers
WinSublang;
-#endif // __WXMSW__
+#endif // __WINDOWS__
wxString Description; // human-readable name of the language
wxLayoutDirection LayoutDirection;
-#ifdef __WXMSW__
+#ifdef __WINDOWS__
// return the LCID corresponding to this language
wxUint32 GetLCID() const;
-#endif // __WXMSW__
+#endif // __WINDOWS__
// return the locale name corresponding to this language usable with
// setlocale() on the current system
@@ -79,9 +79,9 @@ struct WXDLLIMPEXP_BASE wxLanguageInfo
// for Unix systems GetLocaleName() is trivial so implement it inline here, for
// MSW it's implemented in intl.cpp
-#ifndef __WXMSW__
+#ifndef __WINDOWS__
inline wxString wxLanguageInfo::GetLocaleName() const { return CanonicalName; }
-#endif // !__WXMSW__
+#endif // !__WINDOWS__
// ----------------------------------------------------------------------------
diff --git a/Externals/wxWidgets3/include/wx/iosfwrap.h b/Externals/wxWidgets3/include/wx/iosfwrap.h
index a4df4bfb9b..020d45882d 100644
--- a/Externals/wxWidgets3/include/wx/iosfwrap.h
+++ b/Externals/wxWidgets3/include/wx/iosfwrap.h
@@ -4,7 +4,7 @@
// Author: Jan van Dijk
// Modified by:
// Created: 18.12.2002
-// RCS-ID: $Id: iosfwrap.h 33555 2005-04-12 21:06:03Z ABX $
+// RCS-ID: $Id: iosfwrap.h 70796 2012-03-04 00:29:31Z VZ $
// Copyright: wxWidgets team
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -18,7 +18,7 @@
# include
#endif
-#ifdef __WXMSW__
+#ifdef __WINDOWS__
# include "wx/msw/winundef.h"
#endif
diff --git a/Externals/wxWidgets3/include/wx/ioswrap.h b/Externals/wxWidgets3/include/wx/ioswrap.h
index 25932450fd..50ba04a1dc 100644
--- a/Externals/wxWidgets3/include/wx/ioswrap.h
+++ b/Externals/wxWidgets3/include/wx/ioswrap.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 03.02.99
-// RCS-ID: $Id: ioswrap.h 47644 2007-07-22 09:20:42Z VS $
+// RCS-ID: $Id: ioswrap.h 70796 2012-03-04 00:29:31Z VZ $
// Copyright: (c) 1998 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -21,7 +21,7 @@
#include "wx/afterstd.h"
-#ifdef __WXMSW__
+#ifdef __WINDOWS__
# include "wx/msw/winundef.h"
#endif
diff --git a/Externals/wxWidgets3/include/wx/ipc.h b/Externals/wxWidgets3/include/wx/ipc.h
index 34d056dde4..14650aea1d 100644
--- a/Externals/wxWidgets3/include/wx/ipc.h
+++ b/Externals/wxWidgets3/include/wx/ipc.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 15.04.02
-// RCS-ID: $Id: ipc.h 35698 2005-09-25 20:49:40Z MW $
+// RCS-ID: $Id: ipc.h 70796 2012-03-04 00:29:31Z VZ $
// Copyright: (c) 2002 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -16,7 +16,7 @@
// 0, or if the platform is not Windows, use TCP/IP for IPC implementation
#if !defined(wxUSE_DDE_FOR_IPC)
- #ifdef __WXMSW__
+ #ifdef __WINDOWS__
#define wxUSE_DDE_FOR_IPC 1
#else
#define wxUSE_DDE_FOR_IPC 0
diff --git a/Externals/wxWidgets3/include/wx/itemid.h b/Externals/wxWidgets3/include/wx/itemid.h
new file mode 100644
index 0000000000..ff867ef3ec
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/itemid.h
@@ -0,0 +1,62 @@
+///////////////////////////////////////////////////////////////////////////////
+// Name: wx/itemid.h
+// Purpose: wxItemId class declaration.
+// Author: Vadim Zeitlin
+// Created: 2011-08-17
+// RCS-ID: $Id: itemid.h 68916 2011-08-27 14:11:03Z VZ $
+// Copyright: (c) 2011 Vadim Zeitlin
+// Licence: wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_ITEMID_H_
+#define _WX_ITEMID_H_
+
+// ----------------------------------------------------------------------------
+// wxItemId: an opaque item identifier used with wx{Tree,TreeList,DataView}Ctrl.
+// ----------------------------------------------------------------------------
+
+// The template argument T is typically a pointer to some opaque type. While
+// wxTreeItemId and wxDataViewItem use a pointer to void, this is dangerous and
+// not recommended for the new item id classes.
+template
+class wxItemId
+{
+public:
+ typedef T Type;
+
+ // This ctor is implicit which is fine for non-void* types, but if you use
+ // this class with void* you're strongly advised to make the derived class
+ // ctor explicit as implicitly converting from any pointer is simply too
+ // dangerous.
+ wxItemId(Type item = NULL) : m_pItem(item) { }
+
+ // Default copy ctor, assignment operator and dtor are ok.
+
+ bool IsOk() const { return m_pItem != NULL; }
+ Type GetID() const { return m_pItem; }
+ operator const Type() const { return m_pItem; }
+
+ // This is used for implementation purposes only.
+ Type operator->() const { return m_pItem; }
+
+ void Unset() { m_pItem = NULL; }
+
+ // This field is public *only* for compatibility with the old wxTreeItemId
+ // implementation and must not be used in any new code.
+//private:
+ Type m_pItem;
+};
+
+template
+bool operator==(const wxItemId& left, const wxItemId& right)
+{
+ return left.GetID() == right.GetID();
+}
+
+template
+bool operator!=(const wxItemId& left, const wxItemId& right)
+{
+ return !(left == right);
+}
+
+#endif // _WX_ITEMID_H_
diff --git a/Externals/wxWidgets3/include/wx/joystick.h b/Externals/wxWidgets3/include/wx/joystick.h
index 5a42af2a0f..ba36f5e956 100644
--- a/Externals/wxWidgets3/include/wx/joystick.h
+++ b/Externals/wxWidgets3/include/wx/joystick.h
@@ -5,7 +5,7 @@
// Modified by:
// Created:
// Copyright: (c) wxWidgets Team
-// RCS-ID: $Id: joystick.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: joystick.h 70808 2012-03-04 20:31:42Z VZ $
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -16,7 +16,7 @@
#if wxUSE_JOYSTICK
-#if defined(__WXMSW__)
+#if defined(__WINDOWS__)
#include "wx/msw/joystick.h"
#elif defined(__WXMOTIF__)
#include "wx/unix/joystick.h"
diff --git a/Externals/wxWidgets3/include/wx/kbdstate.h b/Externals/wxWidgets3/include/wx/kbdstate.h
index 851ec3c013..d3f927f77a 100644
--- a/Externals/wxWidgets3/include/wx/kbdstate.h
+++ b/Externals/wxWidgets3/include/wx/kbdstate.h
@@ -3,7 +3,7 @@
// Purpose: Declaration of wxKeyboardState class
// Author: Vadim Zeitlin
// Created: 2008-09-19
-// RCS-ID: $Id: kbdstate.h 55747 2008-09-19 23:59:39Z VZ $
+// RCS-ID: $Id: kbdstate.h 70579 2012-02-13 15:23:33Z SC $
// Copyright: (c) 2008 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -28,6 +28,9 @@ public:
m_shiftDown(shiftDown),
m_altDown(altDown),
m_metaDown(metaDown)
+#ifdef __WXOSX__
+ ,m_rawControlDown(false)
+#endif
{
}
@@ -45,6 +48,9 @@ public:
return (m_controlDown ? wxMOD_CONTROL : 0) |
(m_shiftDown ? wxMOD_SHIFT : 0) |
(m_metaDown ? wxMOD_META : 0) |
+#ifdef __WXOSX__
+ (m_rawControlDown ? wxMOD_RAW_CONTROL : 0) |
+#endif
(m_altDown ? wxMOD_ALT : 0);
}
@@ -53,6 +59,14 @@ public:
// accessors for individual modifier keys
bool ControlDown() const { return m_controlDown; }
+ bool RawControlDown() const
+ {
+#ifdef __WXOSX__
+ return m_rawControlDown;
+#else
+ return m_controlDown;
+#endif
+ }
bool ShiftDown() const { return m_shiftDown; }
bool MetaDown() const { return m_metaDown; }
bool AltDown() const { return m_altDown; }
@@ -64,17 +78,21 @@ public:
// purpose under Mac)
bool CmdDown() const
{
-#if defined(__WXMAC__) || defined(__WXCOCOA__)
- return MetaDown();
-#else
return ControlDown();
-#endif
}
// these functions are mostly used by wxWidgets itself
// ---------------------------------------------------
void SetControlDown(bool down) { m_controlDown = down; }
+ void SetRawControlDown(bool down)
+ {
+#ifdef __WXOSX__
+ m_rawControlDown = down;
+#else
+ m_controlDown = down;
+#endif
+ }
void SetShiftDown(bool down) { m_shiftDown = down; }
void SetAltDown(bool down) { m_altDown = down; }
void SetMetaDown(bool down) { m_metaDown = down; }
@@ -84,10 +102,13 @@ public:
// members of wxKeyEvent directly, these variables are public, however you
// should not use them in any new code, please use the accessors instead
public:
- bool m_controlDown : 1;
- bool m_shiftDown : 1;
- bool m_altDown : 1;
- bool m_metaDown : 1;
+ bool m_controlDown : 1;
+ bool m_shiftDown : 1;
+ bool m_altDown : 1;
+ bool m_metaDown : 1;
+#ifdef __WXOSX__
+ bool m_rawControlDown : 1;
+#endif
};
#endif // _WX_KBDSTATE_H_
diff --git a/Externals/wxWidgets3/include/wx/list.h b/Externals/wxWidgets3/include/wx/list.h
index cceaa09d23..a74a8fc7b8 100644
--- a/Externals/wxWidgets3/include/wx/list.h
+++ b/Externals/wxWidgets3/include/wx/list.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by: VZ at 16/11/98: WX_DECLARE_LIST() and typesafe lists added
// Created: 29/01/98
-// RCS-ID: $Id: list.h 66829 2011-02-02 13:49:44Z SC $
+// RCS-ID: $Id: list.h 70165 2011-12-29 14:42:13Z SN $
// Copyright: (c) 1998 Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -33,7 +33,7 @@
#include "wx/object.h"
#include "wx/string.h"
-#if wxUSE_STL
+#if wxUSE_STD_CONTAINERS
#include "wx/beforestd.h"
#include
#include
@@ -48,7 +48,7 @@
class WXDLLIMPEXP_FWD_BASE wxObjectListNode;
typedef wxObjectListNode wxNode;
-#if wxUSE_STL
+#if wxUSE_STD_CONTAINERS
#define wxLIST_COMPATIBILITY
@@ -346,7 +346,7 @@ inline const void *wxListCastElementToVoidPtr(const wxString& str)
#define WX_DEFINE_EXPORTED_LIST(name) WX_DEFINE_LIST(name)
#define WX_DEFINE_USER_EXPORTED_LIST(name) WX_DEFINE_LIST(name)
-#else // if !wxUSE_STL
+#else // if !wxUSE_STD_CONTAINERS
// undef it to get rid of old, deprecated functions
@@ -1148,7 +1148,7 @@ private:
#define WX_DEFINE_EXPORTED_LIST(name) WX_DEFINE_LIST(name)
#define WX_DEFINE_USER_EXPORTED_LIST(name) WX_DEFINE_LIST(name)
-#endif // !wxUSE_STL
+#endif // !wxUSE_STD_CONTAINERS
// ============================================================================
// now we can define classes 100% compatible with the old ones
@@ -1162,7 +1162,7 @@ private:
// inline compatibility functions
-#if !wxUSE_STL
+#if !wxUSE_STD_CONTAINERS
// ----------------------------------------------------------------------------
// wxNodeBase deprecated methods
@@ -1197,26 +1197,26 @@ WX_DECLARE_LIST_2(wxObject, wxObjectList, wxObjectListNode,
class WXDLLIMPEXP_BASE wxList : public wxObjectList
{
public:
-#if defined(wxWARN_COMPAT_LIST_USE) && !wxUSE_STL
- wxList() { };
+#if defined(wxWARN_COMPAT_LIST_USE) && !wxUSE_STD_CONTAINERS
+ wxList() { }
wxDEPRECATED( wxList(int key_type) );
-#elif !wxUSE_STL
+#elif !wxUSE_STD_CONTAINERS
wxList(int key_type = wxKEY_NONE);
#endif
// this destructor is required for Darwin
~wxList() { }
-#if !wxUSE_STL
+#if !wxUSE_STD_CONTAINERS
wxList& operator=(const wxList& list)
{ if (&list != this) Assign(list); return *this; }
// compatibility methods
void Sort(wxSortCompareFunction compfunc) { wxListBase::Sort(compfunc); }
-#endif // !wxUSE_STL
+#endif // !wxUSE_STD_CONTAINERS
};
-#if !wxUSE_STL
+#if !wxUSE_STD_CONTAINERS
// -----------------------------------------------------------------------------
// wxStringList class for compatibility with the old code
@@ -1268,7 +1268,7 @@ private:
void DoCopy(const wxStringList&); // common part of copy ctor and operator=
};
-#else // if wxUSE_STL
+#else // if wxUSE_STD_CONTAINERS
WX_DECLARE_LIST_XO(wxString, wxStringListBase, class WXDLLIMPEXP_BASE);
@@ -1291,7 +1291,7 @@ public:
{ push_front(s); return GetFirst(); }
};
-#endif // wxUSE_STL
+#endif // wxUSE_STD_CONTAINERS
#endif // wxLIST_COMPATIBILITY
diff --git a/Externals/wxWidgets3/include/wx/listbase.h b/Externals/wxWidgets3/include/wx/listbase.h
index 618c5dea7e..b28b9f64a3 100644
--- a/Externals/wxWidgets3/include/wx/listbase.h
+++ b/Externals/wxWidgets3/include/wx/listbase.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 04.12.99
-// RCS-ID: $Id: listbase.h 60732 2009-05-24 18:04:37Z VZ $
+// RCS-ID: $Id: listbase.h 70286 2012-01-07 16:11:10Z VZ $
// Copyright: (c) wxWidgets team
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -16,6 +16,9 @@
#include "wx/font.h"
#include "wx/gdicmn.h"
#include "wx/event.h"
+#include "wx/control.h"
+
+class WXDLLIMPEXP_FWD_CORE wxImageList;
// ----------------------------------------------------------------------------
// types
@@ -23,7 +26,7 @@
// type of compare function for wxListCtrl sort operation
typedef
-int (wxCALLBACK *wxListCtrlCompare)(long item1, long item2, wxIntPtr sortData);
+int (wxCALLBACK *wxListCtrlCompare)(wxIntPtr item1, wxIntPtr item2, wxIntPtr sortData);
// ----------------------------------------------------------------------------
// wxListCtrl constants
@@ -183,9 +186,9 @@ public:
void SetFont(const wxFont& font) { m_font = font; }
// accessors
- bool HasTextColour() const { return m_colText.Ok(); }
- bool HasBackgroundColour() const { return m_colBack.Ok(); }
- bool HasFont() const { return m_font.Ok(); }
+ bool HasTextColour() const { return m_colText.IsOk(); }
+ bool HasBackgroundColour() const { return m_colBack.IsOk(); }
+ bool HasFont() const { return m_font.IsOk(); }
const wxColour& GetTextColour() const { return m_colText; }
const wxColour& GetBackgroundColour() const { return m_colBack; }
@@ -354,7 +357,7 @@ protected:
void Init()
{
m_mask = 0;
- m_itemId = 0;
+ m_itemId = -1;
m_col = 0;
m_state = 0;
m_stateMask = 0;
@@ -371,6 +374,94 @@ private:
DECLARE_DYNAMIC_CLASS(wxListItem)
};
+// ----------------------------------------------------------------------------
+// wxListCtrlBase: the base class for the main control itself.
+// ----------------------------------------------------------------------------
+
+// Unlike other base classes, this class doesn't currently define the API of
+// the real control class but is just used for implementation convenience. We
+// should define the public class functions as pure virtual here in the future
+// however.
+class WXDLLIMPEXP_CORE wxListCtrlBase : public wxControl
+{
+public:
+ wxListCtrlBase() { }
+
+ // Image list methods.
+ // -------------------
+
+ // Associate the given (possibly NULL to indicate that no images will be
+ // used) image list with the control. The ownership of the image list
+ // passes to the control, i.e. it will be deleted when the control itself
+ // is destroyed.
+ //
+ // The value of "which" must be one of wxIMAGE_LIST_{NORMAL,SMALL,STATE}.
+ virtual void AssignImageList(wxImageList* imageList, int which) = 0;
+
+ // Same as AssignImageList() but the control does not delete the image list
+ // so it can be shared among several controls.
+ virtual void SetImageList(wxImageList* imageList, int which) = 0;
+
+ // Return the currently used image list, may be NULL.
+ virtual wxImageList* GetImageList(int which) const = 0;
+
+
+ // Column-related methods.
+ // -----------------------
+
+ // All these methods can only be used in report view mode.
+
+ // Appends a new column.
+ //
+ // Returns the index of the newly inserted column or -1 on error.
+ long AppendColumn(const wxString& heading,
+ int format = wxLIST_FORMAT_LEFT,
+ int width = -1);
+
+ // Add a new column to the control at the position "col".
+ //
+ // Returns the index of the newly inserted column or -1 on error.
+ long InsertColumn(long col, const wxListItem& info);
+ long InsertColumn(long col,
+ const wxString& heading,
+ int format = wxLIST_FORMAT_LEFT,
+ int width = wxLIST_AUTOSIZE);
+
+ // Delete the given or all columns.
+ virtual bool DeleteColumn(int col) = 0;
+ virtual bool DeleteAllColumns() = 0;
+
+ // Return the current number of columns.
+ virtual int GetColumnCount() const = 0;
+
+ // Get or update information about the given column. Set item mask to
+ // indicate the fields to retrieve or change.
+ //
+ // Returns false on error, e.g. if the column index is invalid.
+ virtual bool GetColumn(int col, wxListItem& item) const = 0;
+ virtual bool SetColumn(int col, const wxListItem& item) = 0;
+
+ // Convenient wrappers for the above methods which get or update just the
+ // column width.
+ virtual int GetColumnWidth(int col) const = 0;
+ virtual bool SetColumnWidth(int col, int width) = 0;
+
+
+ // Other miscellaneous accessors.
+ // ------------------------------
+
+ // Convenient functions for testing the list control mode:
+ bool InReportView() const { return HasFlag(wxLC_REPORT); }
+ bool IsVirtual() const { return HasFlag(wxLC_VIRTUAL); }
+
+protected:
+ // Real implementations methods to which our public forwards.
+ virtual long DoInsertColumn(long col, const wxListItem& info) = 0;
+
+ // Overridden methods of the base class.
+ virtual wxSize DoGetBestClientSize() const;
+};
+
// ----------------------------------------------------------------------------
// wxListEvent - the event class for the wxListCtrl notifications
// ----------------------------------------------------------------------------
diff --git a/Externals/wxWidgets3/include/wx/listbook.h b/Externals/wxWidgets3/include/wx/listbook.h
index 02f4cd4634..f7e4bfc389 100644
--- a/Externals/wxWidgets3/include/wx/listbook.h
+++ b/Externals/wxWidgets3/include/wx/listbook.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 19.08.03
-// RCS-ID: $Id: listbook.h 65931 2010-10-27 16:54:36Z VZ $
+// RCS-ID: $Id: listbook.h 68810 2011-08-21 14:08:49Z VZ $
// Copyright: (c) 2003 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -69,7 +69,7 @@ public:
wxWindow *page,
const wxString& text,
bool bSelect = false,
- int imageId = -1);
+ int imageId = NO_IMAGE);
virtual int SetSelection(size_t n) { return DoSetSelection(n, SetSelection_SendEvent); }
virtual int ChangeSelection(size_t n) { return DoSetSelection(n); }
virtual int HitTest(const wxPoint& pt, long *flags = NULL) const;
diff --git a/Externals/wxWidgets3/include/wx/listctrl.h b/Externals/wxWidgets3/include/wx/listctrl.h
index 704b4ef81f..5f17cfde7d 100644
--- a/Externals/wxWidgets3/include/wx/listctrl.h
+++ b/Externals/wxWidgets3/include/wx/listctrl.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 04.12.99
-// RCS-ID: $Id: listctrl.h 58182 2009-01-17 13:38:04Z SC $
+// RCS-ID: $Id: listctrl.h 70808 2012-03-04 20:31:42Z VZ $
// Copyright: (c) wxWidgets team
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -28,7 +28,7 @@ extern WXDLLIMPEXP_DATA_CORE(const char) wxListCtrlNameStr[];
// include the wxListCtrl class declaration
// ----------------------------------------------------------------------------
-#if defined(__WIN32__) && !defined(__WXUNIVERSAL__)
+#if defined(__WXMSW__) && !defined(__WXUNIVERSAL__)
#include "wx/msw/listctrl.h"
#elif defined(__WXMAC__) && !defined(__WXUNIVERSAL__) && wxOSX_USE_CARBON
#include "wx/osx/listctrl.h"
diff --git a/Externals/wxWidgets3/include/wx/listimpl.cpp b/Externals/wxWidgets3/include/wx/listimpl.cpp
index e9ebeae038..771b41dcc2 100644
--- a/Externals/wxWidgets3/include/wx/listimpl.cpp
+++ b/Externals/wxWidgets3/include/wx/listimpl.cpp
@@ -4,12 +4,12 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 16/11/98
-// RCS-ID: $Id: listimpl.cpp 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: listimpl.cpp 67343 2011-03-30 14:16:04Z VZ $
// Copyright: (c) 1998 Vadim Zeitlin
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#if wxUSE_STL
+#if wxUSE_STD_CONTAINERS
#undef WX_DEFINE_LIST
#define WX_DEFINE_LIST(name) \
@@ -19,7 +19,7 @@
} \
name::BaseListType name::EmptyList;
-#else // !wxUSE_STL
+#else // !wxUSE_STD_CONTAINERS
#undef WX_DEFINE_LIST_2
#define WX_DEFINE_LIST_2(T, name) \
void wx##name##Node::DeleteData() \
@@ -32,5 +32,5 @@
#undef WX_DEFINE_LIST
#define WX_DEFINE_LIST(name) WX_DEFINE_LIST_2(_WX_LIST_ITEM_TYPE_##name, name)
-#endif // wxUSE_STL/!wxUSE_STL
+#endif // wxUSE_STD_CONTAINERS/!wxUSE_STD_CONTAINERS
diff --git a/Externals/wxWidgets3/include/wx/log.h b/Externals/wxWidgets3/include/wx/log.h
index 1b1ac53c5e..8f0679b243 100644
--- a/Externals/wxWidgets3/include/wx/log.h
+++ b/Externals/wxWidgets3/include/wx/log.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 29/01/98
-// RCS-ID: $Id: log.h 66966 2011-02-19 12:32:59Z VZ $
+// RCS-ID: $Id: log.h 70796 2012-03-04 00:29:31Z VZ $
// Copyright: (c) 1998 Vadim Zeitlin
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -29,7 +29,7 @@ typedef unsigned long wxLogLevel;
#define wxTraceResAlloc 0x0004 // trace GDI resource allocation
#define wxTraceRefCount 0x0008 // trace various ref counting operations
- #ifdef __WXMSW__
+ #ifdef __WINDOWS__
#define wxTraceOleCalls 0x0100 // OLE interface calls
#endif
@@ -57,11 +57,9 @@ class WXDLLIMPEXP_FWD_BASE wxObject;
#include "wx/arrstr.h"
-#ifndef __WXPALMOS5__
#ifndef __WXWINCE__
#include // for time_t
#endif
-#endif // ! __WXPALMOS5__
#include "wx/dynarray.h"
#include "wx/hashmap.h"
@@ -130,7 +128,7 @@ enum wxLogLevelValues
#define wxTRACE_ResAlloc wxT("resalloc") // trace GDI resource allocation
#define wxTRACE_RefCount wxT("refcount") // trace various ref counting operations
-#ifdef __WXMSW__
+#ifdef __WINDOWS__
#define wxTRACE_OleCalls wxT("ole") // OLE interface calls
#endif
@@ -309,6 +307,34 @@ struct wxLogRecord
wxLogRecordInfo info;
};
+// ----------------------------------------------------------------------------
+// Derive from this class to customize format of log messages.
+// ----------------------------------------------------------------------------
+
+class WXDLLIMPEXP_BASE wxLogFormatter
+{
+public:
+ // Default constructor.
+ wxLogFormatter() { }
+
+ // Trivial but virtual destructor for the base class.
+ virtual ~wxLogFormatter() { }
+
+
+ // Override this method to implement custom formatting of the given log
+ // record. The default implementation simply prepends a level-dependent
+ // prefix to the message and optionally adds a time stamp.
+ virtual wxString Format(wxLogLevel level,
+ const wxString& msg,
+ const wxLogRecordInfo& info) const;
+
+protected:
+ // Override this method to change just the time stamp formatting. It is
+ // called by default Format() implementation.
+ virtual wxString FormatTime(time_t t) const;
+};
+
+
// ----------------------------------------------------------------------------
// derive from this class to redirect (or suppress, or ...) log messages
// normally, only a single instance of this class exists but it's not enforced
@@ -318,7 +344,7 @@ class WXDLLIMPEXP_BASE wxLog
{
public:
// ctor
- wxLog() { }
+ wxLog() : m_formatter(new wxLogFormatter) { }
// make dtor virtual for all derived classes
virtual ~wxLog();
@@ -455,6 +481,26 @@ public:
// call AddTraceMask() concurrently
static const wxArrayString& GetTraceMasks();
+ // is this trace mask in the list?
+ static bool IsAllowedTraceMask(const wxString& mask);
+
+
+ // log formatting
+ // -----------------
+
+ // Change wxLogFormatter object used by wxLog to format the log messages.
+ //
+ // wxLog takes ownership of the pointer passed in but the caller is
+ // responsible for deleting the returned pointer.
+ wxLogFormatter* SetFormatter(wxLogFormatter* formatter);
+
+
+ // All the time stamp related functions below only work when the default
+ // wxLogFormatter is being used. Defining a custom formatter overrides them
+ // as it could use its own time stamp format or format messages without
+ // using time stamp at all.
+
+
// sets the time stamp string format: this is used as strftime() format
// string for the log targets which add time stamps to the messages; set
// it to empty string to disable time stamping completely.
@@ -464,9 +510,6 @@ public:
static void DisableTimestamp() { SetTimestamp(wxEmptyString); }
- // is this trace mask in the list?
- static bool IsAllowedTraceMask(const wxString& mask);
-
// get the current timestamp format string (maybe empty)
static const wxString& GetTimestamp() { return ms_timestamp; }
@@ -475,9 +518,10 @@ public:
// helpers: all functions in this section are mostly for internal use only,
// don't call them from your code even if they are not formally deprecated
- // put the time stamp into the string if ms_timestamp != NULL (don't
- // change it otherwise)
+ // put the time stamp into the string if ms_timestamp is not empty (don't
+ // change it otherwise); the first overload uses the current time.
static void TimeStamp(wxString *str);
+ static void TimeStamp(wxString *str, time_t t);
// these methods should only be called from derived classes DoLogRecord(),
// DoLogTextAtLevel() and DoLogText() implementations respectively and
@@ -621,6 +665,12 @@ private:
const wxLogRecordInfo& info);
+ // variables
+ // ----------------
+
+ wxLogFormatter *m_formatter; // We own this pointer.
+
+
// static variables
// ----------------
diff --git a/Externals/wxWidgets3/include/wx/longlong.h b/Externals/wxWidgets3/include/wx/longlong.h
index bcc4575f4e..e190ec804b 100644
--- a/Externals/wxWidgets3/include/wx/longlong.h
+++ b/Externals/wxWidgets3/include/wx/longlong.h
@@ -5,7 +5,7 @@
// Author: Jeffrey C. Ollie , Vadim Zeitlin
// Modified by:
// Created: 10.02.99
-// RCS-ID: $Id: longlong.h 61508 2009-07-23 20:30:22Z VZ $
+// RCS-ID: $Id: longlong.h 68472 2011-07-31 13:25:33Z VS $
// Copyright: (c) 1998 Vadim Zeitlin
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -404,15 +404,20 @@ public:
// convert to ulong with range checking in debug mode (only!)
unsigned long ToULong() const
{
- wxASSERT_MSG( m_ll <= LONG_MAX,
+ wxASSERT_MSG( m_ll <= ULONG_MAX,
wxT("wxULongLong to long conversion loss of precision") );
return wx_truncate_cast(unsigned long, m_ll);
}
// convert to double
-#ifdef _MSC_VER
- double ToDouble() const { return wx_truncate_cast(double, (__int64) m_ll); }
+ //
+ // For some completely obscure reasons compiling the cast below with
+ // VC6 in DLL builds only (!) results in "error C2520: conversion from
+ // unsigned __int64 to double not implemented, use signed __int64" so
+ // we must use a different version for that compiler.
+#ifdef __VISUALC6__
+ double ToDouble() const;
#else
double ToDouble() const { return wx_truncate_cast(double, m_ll); }
#endif
@@ -1075,6 +1080,66 @@ WXDLLIMPEXP_BASE class wxTextInputStream &operator>>(class wxTextInputStream &st
#endif
+// ----------------------------------------------------------------------------
+// Specialize numeric_limits<> for our long long wrapper classes.
+// ----------------------------------------------------------------------------
+
+#if wxUSE_LONGLONG_NATIVE
+
+// VC6 is known to not have __int64 specializations of numeric_limits<> in its
+// anyhow so don't bother including it, especially as it results in
+// tons of warnings because the standard header itself uses obsolete template
+// specialization syntax.
+#ifndef __VISUALC6__
+
+#include
+
+namespace std
+{
+
+#ifdef __clang__
+ // libstdc++ (used by Clang) uses struct for numeric_limits; unlike gcc, clang
+ // warns about this
+ template<> struct numeric_limits : public numeric_limits {};
+ template<> struct numeric_limits : public numeric_limits {};
+#else
+ template<> class numeric_limits : public numeric_limits {};
+ template<> class numeric_limits : public numeric_limits {};
+#endif
+
+} // namespace std
+
+#endif // !VC6
+
+#endif // wxUSE_LONGLONG_NATIVE
+
+// ----------------------------------------------------------------------------
+// Specialize wxArgNormalizer to allow using wxLongLong directly with wx pseudo
+// vararg functions.
+// ----------------------------------------------------------------------------
+
+// Notice that this must be done here and not in wx/strvararg.h itself because
+// we can't include wx/longlong.h from there as this header itself includes
+// wx/string.h which includes wx/strvararg.h too, so to avoid the circular
+// dependencies we can only do it here (or add another header just for this but
+// it doesn't seem necessary).
+#include "wx/strvararg.h"
+
+template<>
+struct WXDLLIMPEXP_BASE wxArgNormalizer
+{
+ wxArgNormalizer(wxLongLong value,
+ const wxFormatString *fmt, unsigned index)
+ : m_value(value)
+ {
+ wxASSERT_ARG_TYPE( fmt, index, wxFormatString::Arg_LongLongInt );
+ }
+
+ wxLongLong_t get() const { return m_value.GetValue(); }
+
+ wxLongLong m_value;
+};
+
#endif // wxUSE_LONGLONG
#endif // _WX_LONGLONG_H
diff --git a/Externals/wxWidgets3/include/wx/math.h b/Externals/wxWidgets3/include/wx/math.h
index a71078a54f..0978a84dcc 100644
--- a/Externals/wxWidgets3/include/wx/math.h
+++ b/Externals/wxWidgets3/include/wx/math.h
@@ -4,7 +4,7 @@
* Author: John Labenski and others
* Modified by:
* Created: 02/02/03
-* RCS-ID: $Id: math.h 63194 2010-01-19 22:02:59Z VS $
+* RCS-ID: $Id: math.h 70796 2012-03-04 00:29:31Z VZ $
* Copyright: (c) John Labenski
* Licence: wxWindows licence
*/
@@ -58,8 +58,10 @@
#include
#define wxFinite(x) _finite(x)
#elif defined(__MINGW64__)
- // add more compilers with C99 support here: using C99 isfinite() is
- // preferable to using BSD-ish finite()
+ /*
+ add more compilers with C99 support here: using C99 isfinite() is
+ preferable to using BSD-ish finite()
+ */
#define wxFinite(x) isfinite(x)
#elif ( defined(__GNUG__)||defined(__GNUWIN32__)||defined(__DJGPP__)|| \
defined(__SGI_CC__)||defined(__SUNCC__)||defined(__XLC__)|| \
@@ -126,7 +128,7 @@
#endif /* __cplusplus */
-#if defined(__WXMSW__) && !defined(__WXWINCE__)
+#if defined(__WINDOWS__) && !defined(__WXWINCE__)
#define wxMulDivInt32( a , b , c ) ::MulDiv( a , b , c )
#else
#define wxMulDivInt32( a , b , c ) (wxRound((a)*(((wxDouble)b)/((wxDouble)c))))
@@ -144,7 +146,7 @@
#if WXWIN_COMPATIBILITY_2_8
wxDEPRECATED( WXDLLIMPEXP_BASE wxFloat64 ConvertFromIeeeExtended(const wxInt8 *bytes) );
wxDEPRECATED( WXDLLIMPEXP_BASE void ConvertToIeeeExtended(wxFloat64 num, wxInt8 *bytes) );
-#endif // WXWIN_COMPATIBILITY_2_8
+#endif
#ifdef __cplusplus
}
diff --git a/Externals/wxWidgets3/include/wx/mdi.h b/Externals/wxWidgets3/include/wx/mdi.h
index 35820a90f9..df6283eb2a 100644
--- a/Externals/wxWidgets3/include/wx/mdi.h
+++ b/Externals/wxWidgets3/include/wx/mdi.h
@@ -5,7 +5,7 @@
// Vadim Zeitlin (base MDI classes refactoring)
// Copyright: (c) 1998 Julian Smart
// (c) 2008 Vadim Zeitlin
-// RCS-ID: $Id: mdi.h 58457 2009-01-27 14:48:20Z VZ $
+// RCS-ID: $Id: mdi.h 70790 2012-03-04 00:29:03Z VZ $
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -81,7 +81,7 @@ public:
#if wxUSE_MENUS
// return the pointer to the current window menu or NULL if we don't have
// because of wxFRAME_NO_WINDOW_MENU style
- wxMenu* GetWindowMenu() const { return m_windowMenu; };
+ wxMenu* GetWindowMenu() const { return m_windowMenu; }
// use the given menu instead of the default window menu
//
@@ -176,6 +176,16 @@ public:
// level windows too
virtual bool IsTopLevel() const { return false; }
+ // In all ports keyboard navigation must stop at MDI child frame level and
+ // can't cross its boundary. Indicate this by overriding this function to
+ // return true.
+ virtual bool IsTopNavigationDomain() const { return true; }
+
+ // Raising any frame is supposed to show it but wxFrame Raise()
+ // implementation doesn't work for MDI child frames in most forms so
+ // forward this to Activate() which serves the same purpose by default.
+ virtual void Raise() { Activate(); }
+
protected:
wxMDIParentFrame *m_mdiParent;
};
diff --git a/Externals/wxWidgets3/include/wx/memory.h b/Externals/wxWidgets3/include/wx/memory.h
index 480411d38a..17f1149b7b 100644
--- a/Externals/wxWidgets3/include/wx/memory.h
+++ b/Externals/wxWidgets3/include/wx/memory.h
@@ -4,7 +4,7 @@
// Author: Arthur Seaton, Julian Smart
// Modified by:
// Created: 29/01/98
-// RCS-ID: $Id: memory.h 59711 2009-03-21 23:36:37Z VZ $
+// RCS-ID: $Id: memory.h 70796 2012-03-04 00:29:31Z VZ $
// Copyright: (c) 1998 Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -60,7 +60,7 @@ WXDLLIMPEXP_BASE void wxDebugFree(void * buf, bool isVect = false);
// devik 2000-8-29: All new/delete ops are now inline because they can't
// be marked as dllexport/dllimport. It then leads to weird bugs when
// used on MSW as DLL
-#if defined(__WXMSW__) && (defined(WXUSINGDLL) || defined(WXMAKINGDLL_BASE))
+#if defined(__WINDOWS__) && (defined(WXUSINGDLL) || defined(WXMAKINGDLL_BASE))
inline void * operator new (size_t size, wxChar * fileName, int lineNum)
{
return wxDebugAlloc(size, fileName, lineNum, false, false);
@@ -108,7 +108,7 @@ void * operator new[] (size_t size, wxChar * fileName, int lineNum);
void operator delete[] (void * buf);
#endif // wxUSE_ARRAY_MEMORY_OPERATORS
-#endif // defined(__WXMSW__) && (defined(WXUSINGDLL) || defined(WXMAKINGDLL_BASE))
+#endif // defined(__WINDOWS__) && (defined(WXUSINGDLL) || defined(WXMAKINGDLL_BASE))
// VC++ 6.0 and MWERKS
#if ( defined(__VISUALC__) && (__VISUALC__ >= 1200) ) || defined(__MWERKS__)
diff --git a/Externals/wxWidgets3/include/wx/menu.h b/Externals/wxWidgets3/include/wx/menu.h
index f3ee7c9060..552ca8b286 100644
--- a/Externals/wxWidgets3/include/wx/menu.h
+++ b/Externals/wxWidgets3/include/wx/menu.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 26.10.99
-// RCS-ID: $Id: menu.h 66640 2011-01-07 21:51:19Z SC $
+// RCS-ID: $Id: menu.h 70345 2012-01-15 01:05:28Z VZ $
// Copyright: (c) wxWidgets team
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -580,8 +580,6 @@ protected:
#else // !wxUSE_BASE_CLASSES_ONLY
#if defined(__WXUNIVERSAL__)
#include "wx/univ/menu.h"
-#elif defined(__WXPALMOS__)
- #include "wx/palmos/menu.h"
#elif defined(__WXMSW__)
#include "wx/msw/menu.h"
#elif defined(__WXMOTIF__)
diff --git a/Externals/wxWidgets3/include/wx/menuitem.h b/Externals/wxWidgets3/include/wx/menuitem.h
index 0e4a99efd9..3c0fdfc41b 100644
--- a/Externals/wxWidgets3/include/wx/menuitem.h
+++ b/Externals/wxWidgets3/include/wx/menuitem.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 25.10.99
-// RCS-ID: $Id: menuitem.h 66966 2011-02-19 12:32:59Z VZ $
+// RCS-ID: $Id: menuitem.h 70345 2012-01-15 01:05:28Z VZ $
// Copyright: (c) 1999 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -189,8 +189,6 @@ inline void wxMenuItemBase::SetText(const wxString& text) { SetItemLabel(text);
#else // !wxUSE_BASE_CLASSES_ONLY
#if defined(__WXUNIVERSAL__)
#include "wx/univ/menuitem.h"
-#elif defined(__WXPALMOS__)
- #include "wx/palmos/menuitem.h"
#elif defined(__WXMSW__)
#include "wx/msw/menuitem.h"
#elif defined(__WXMOTIF__)
diff --git a/Externals/wxWidgets3/include/wx/meta/movable.h b/Externals/wxWidgets3/include/wx/meta/movable.h
index 55877b129d..0217a121c7 100644
--- a/Externals/wxWidgets3/include/wx/meta/movable.h
+++ b/Externals/wxWidgets3/include/wx/meta/movable.h
@@ -3,7 +3,7 @@
// Purpose: Test if a type is movable using memmove() etc.
// Author: Vaclav Slavik
// Created: 2008-01-21
-// RCS-ID: $Id: movable.h 64589 2010-06-14 15:12:37Z JMS $
+// RCS-ID: $Id: movable.h 67343 2011-03-30 14:16:04Z VZ $
// Copyright: (c) 2008 Vaclav Slavik
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -38,7 +38,7 @@ struct wxIsMovable
// (NB: we don't put this into string.h and choose to include wx/string.h from
// here instead so that rarely-used wxIsMovable code isn't included by
// everything)
-#if !wxUSE_STL && !wxUSE_STRING_POS_CACHE
+#if !wxUSE_STD_STRING && !wxUSE_STRING_POS_CACHE
WX_DECLARE_TYPE_MOVABLE(wxString)
#endif
diff --git a/Externals/wxWidgets3/include/wx/metafile.h b/Externals/wxWidgets3/include/wx/metafile.h
index 4a501965d2..feaac82e7f 100644
--- a/Externals/wxWidgets3/include/wx/metafile.h
+++ b/Externals/wxWidgets3/include/wx/metafile.h
@@ -4,7 +4,7 @@
// Author: wxWidgets team
// Modified by:
// Created: 13.01.00
-// RCS-ID: $Id: metafile.h 54125 2008-06-11 19:17:41Z SC $
+// RCS-ID: $Id: metafile.h 70345 2012-01-15 01:05:28Z VZ $
// Copyright: (c) wxWidgets team
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -25,11 +25,7 @@
#if defined(__WXMSW__)
#if wxUSE_ENH_METAFILE
- #if defined(__WXPALMOS__)
- #include "wx/palmos/enhmeta.h"
- #else
- #include "wx/msw/enhmeta.h"
- #endif
+ #include "wx/msw/enhmeta.h"
#if wxUSE_WIN_METAFILES_ALWAYS
// use normal metafiles as well
@@ -45,11 +41,7 @@
#define wxMETAFILE_IS_ENH
#endif // wxUSE_WIN_METAFILES_ALWAYS
#else // !wxUSE_ENH_METAFILE
- #if defined(__WXPALMOS__)
- #include "wx/palmos/metafile.h"
- #else
- #include "wx/msw/metafile.h"
- #endif
+ #include "wx/msw/metafile.h"
#endif
#elif defined(__WXPM__)
#include "wx/os2/metafile.h"
diff --git a/Externals/wxWidgets3/include/wx/mimetype.h b/Externals/wxWidgets3/include/wx/mimetype.h
index 45eb578d61..a7933cd989 100644
--- a/Externals/wxWidgets3/include/wx/mimetype.h
+++ b/Externals/wxWidgets3/include/wx/mimetype.h
@@ -5,7 +5,7 @@
// Modified by:
// Chris Elliott (biol75@york.ac.uk) 5 Dec 00: write support for Win32
// Created: 23.09.98
-// RCS-ID: $Id: mimetype.h 65707 2010-10-01 13:05:42Z VZ $
+// RCS-ID: $Id: mimetype.h 67384 2011-04-03 20:31:32Z DS $
// Copyright: (c) 1998 Vadim Zeitlin
// Licence: wxWindows licence (part of wxExtra library)
/////////////////////////////////////////////////////////////////////////////
@@ -389,7 +389,7 @@ public:
// operations
// expand a string in the format of GetOpenCommand (which may contain
- // '%s' and '%t' format specificators for the file name and mime type
+ // '%s' and '%t' format specifiers for the file name and mime type
// and %{param} constructions).
static wxString ExpandCommand(const wxString& command,
const MessageParameters& params);
diff --git a/Externals/wxWidgets3/include/wx/minifram.h b/Externals/wxWidgets3/include/wx/minifram.h
index d7d66ce25f..8907b69ba4 100644
--- a/Externals/wxWidgets3/include/wx/minifram.h
+++ b/Externals/wxWidgets3/include/wx/minifram.h
@@ -5,7 +5,7 @@
// Modified by:
// Created:
// Copyright: (c) Julian Smart
-// RCS-ID: $Id: minifram.h 54125 2008-06-11 19:17:41Z SC $
+// RCS-ID: $Id: minifram.h 70345 2012-01-15 01:05:28Z VZ $
// Licence: wxWindows Licence
/////////////////////////////////////////////////////////////////////////////
@@ -16,9 +16,7 @@
#if wxUSE_MINIFRAME
-#if defined(__WXPALMOS__)
-#include "wx/palmos/minifram.h"
-#elif defined(__WXMSW__)
+#if defined(__WXMSW__)
#include "wx/msw/minifram.h"
#elif defined(__WXMOTIF__)
#include "wx/motif/minifram.h"
diff --git a/Externals/wxWidgets3/include/wx/mousestate.h b/Externals/wxWidgets3/include/wx/mousestate.h
index 719052951c..334b13fb15 100644
--- a/Externals/wxWidgets3/include/wx/mousestate.h
+++ b/Externals/wxWidgets3/include/wx/mousestate.h
@@ -3,7 +3,7 @@
// Purpose: Declaration of wxMouseState class
// Author: Vadim Zeitlin
// Created: 2008-09-19 (extracted from wx/utils.h)
-// RCS-ID: $Id: mousestate.h 65379 2010-08-22 22:15:07Z VZ $
+// RCS-ID: $Id: mousestate.h 70098 2011-12-23 05:59:59Z PC $
// Copyright: (c) 2008 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -79,10 +79,6 @@ public:
{
switch ( but )
{
- default:
- wxFAIL_MSG(wxT("invalid parameter in wxMouseState::ButtonIsDown"));
- // fall through
-
case wxMOUSE_BTN_ANY:
return LeftIsDown() || MiddleIsDown() || RightIsDown() ||
Aux1IsDown() || Aux2IsDown();
@@ -101,6 +97,15 @@ public:
case wxMOUSE_BTN_AUX2:
return Aux2IsDown();
+
+ case wxMOUSE_BTN_NONE:
+ case wxMOUSE_BTN_MAX:
+ wxFAIL_MSG(wxS("invalid parameter"));
+ return false;
+
+ default:
+ wxFAIL_MSG(wxS("unknown parameter"));
+ return false;
}
}
@@ -123,7 +128,7 @@ public:
// version of wxMouseState but their names are confusing as wxMouseEvent
// has methods with the same names which do something quite different so
// don't use them any more
-#ifdef WXWIN_COMPATIBILITY_2_8
+#if WXWIN_COMPATIBILITY_2_8
wxDEPRECATED_INLINE(bool LeftDown() const, return LeftIsDown(); )
wxDEPRECATED_INLINE(bool MiddleDown() const, return MiddleIsDown(); )
wxDEPRECATED_INLINE(bool RightDown() const, return RightIsDown(); )
diff --git a/Externals/wxWidgets3/include/wx/msgdlg.h b/Externals/wxWidgets3/include/wx/msgdlg.h
index be95fbc5e9..6da9e0cd7f 100644
--- a/Externals/wxWidgets3/include/wx/msgdlg.h
+++ b/Externals/wxWidgets3/include/wx/msgdlg.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created:
-// RCS-ID: $Id: msgdlg.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: msgdlg.h 70345 2012-01-15 01:05:28Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -177,10 +177,16 @@ public:
return true;
}
+ virtual bool SetHelpLabel(const ButtonLabel& help)
+ {
+ DoSetCustomLabel(m_help, help);
+ return true;
+ }
+
// test if any custom labels were set
bool HasCustomLabels() const
{
- return !(m_ok.empty() && m_cancel.empty() &&
+ return !(m_ok.empty() && m_cancel.empty() && m_help.empty() &&
m_yes.empty() && m_no.empty());
}
@@ -195,6 +201,8 @@ public:
{ return m_ok.empty() ? GetDefaultOKLabel() : m_ok; }
wxString GetCancelLabel() const
{ return m_cancel.empty() ? GetDefaultCancelLabel() : m_cancel; }
+ wxString GetHelpLabel() const
+ { return m_help.empty() ? GetDefaultHelpLabel() : m_help; }
// based on message dialog style, returns exactly one of: wxICON_NONE,
// wxICON_ERROR, wxICON_WARNING, wxICON_QUESTION, wxICON_INFORMATION
@@ -250,6 +258,7 @@ protected:
const wxString& GetCustomYesLabel() const { return m_yes; }
const wxString& GetCustomNoLabel() const { return m_no; }
const wxString& GetCustomOKLabel() const { return m_ok; }
+ const wxString& GetCustomHelpLabel() const { return m_help; }
const wxString& GetCustomCancelLabel() const { return m_cancel; }
private:
@@ -259,13 +268,15 @@ private:
virtual wxString GetDefaultNoLabel() const { return wxGetTranslation("No"); }
virtual wxString GetDefaultOKLabel() const { return wxGetTranslation("OK"); }
virtual wxString GetDefaultCancelLabel() const { return wxGetTranslation("Cancel"); }
+ virtual wxString GetDefaultHelpLabel() const { return wxGetTranslation("Help"); }
// labels for the buttons, initially empty meaning that the defaults should
// be used, use GetYes/No/OK/CancelLabel() to access them
wxString m_yes,
m_no,
m_ok,
- m_cancel;
+ m_cancel,
+ m_help;
wxDECLARE_NO_COPY_CLASS(wxMessageDialogBase);
};
@@ -279,8 +290,6 @@ private:
#define wxMessageDialog wxGenericMessageDialog
#elif defined(__WXCOCOA__)
#include "wx/cocoa/msgdlg.h"
-#elif defined(__WXPALMOS__)
- #include "wx/palmos/msgdlg.h"
#elif defined(__WXMSW__)
#include "wx/msw/msgdlg.h"
#elif defined(__WXMOTIF__)
diff --git a/Externals/wxWidgets3/include/wx/msw/anybutton.h b/Externals/wxWidgets3/include/wx/msw/anybutton.h
new file mode 100644
index 0000000000..cda386e798
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/msw/anybutton.h
@@ -0,0 +1,81 @@
+/////////////////////////////////////////////////////////////////////////////
+// Name: wx/msw/anybutton.h
+// Purpose: wxAnyButton class
+// Author: Julian Smart
+// Created: 1997-02-01 (extracted from button.h)
+// RCS-ID: $Id: anybutton.h 67931 2011-06-14 13:00:42Z VZ $
+// Copyright: (c) Julian Smart
+// Licence: wxWindows licence
+/////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_MSW_ANYBUTTON_H_
+#define _WX_MSW_ANYBUTTON_H_
+
+// ----------------------------------------------------------------------------
+// Common button functionality
+// ----------------------------------------------------------------------------
+
+class WXDLLIMPEXP_CORE wxAnyButton : public wxAnyButtonBase
+{
+public:
+ wxAnyButton()
+ {
+ m_imageData = NULL;
+#if wxUSE_MARKUP
+ m_markupText = NULL;
+#endif // wxUSE_MARKUP
+ }
+
+ virtual ~wxAnyButton();
+
+ // overridden base class methods
+ virtual void SetLabel(const wxString& label);
+ virtual bool SetBackgroundColour(const wxColour &colour);
+ virtual bool SetForegroundColour(const wxColour &colour);
+
+ // implementation from now on
+ virtual WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
+
+ virtual bool MSWOnDraw(WXDRAWITEMSTRUCT *item);
+ virtual State GetNormalState() const { return State_Normal; }
+
+ // returns true if the platform should explicitly apply a theme border
+ virtual bool CanApplyThemeBorder() const { return false; }
+
+protected:
+ // usually overridden base class virtuals
+ virtual wxSize DoGetBestSize() const;
+
+ virtual wxBitmap DoGetBitmap(State which) const;
+ virtual void DoSetBitmap(const wxBitmap& bitmap, State which);
+ virtual wxSize DoGetBitmapMargins() const;
+ virtual void DoSetBitmapMargins(wxCoord x, wxCoord y);
+ virtual void DoSetBitmapPosition(wxDirection dir);
+
+#if wxUSE_MARKUP
+ virtual bool DoSetLabelMarkup(const wxString& markup);
+#endif // wxUSE_MARKUP
+
+ // Increases the passed in size to account for the button image.
+ //
+ // Should only be called if we do have a button, i.e. if m_imageData is
+ // non-NULL.
+ void AdjustForBitmapSize(wxSize& size) const;
+
+ class wxButtonImageData *m_imageData;
+
+#if wxUSE_MARKUP
+ class wxMarkupText *m_markupText;
+#endif // wxUSE_MARKUP
+
+ // Switches button into owner-drawn mode: this is used if we need to draw
+ // something not supported by the native control, such as using non default
+ // colours or a bitmap on pre-XP systems.
+ void MakeOwnerDrawn();
+ bool IsOwnerDrawn() const;
+
+private:
+ wxDECLARE_NO_COPY_CLASS(wxAnyButton);
+};
+
+#endif // _WX_MSW_ANYBUTTON_H_
diff --git a/Externals/wxWidgets3/include/wx/msw/bmpbuttn.h b/Externals/wxWidgets3/include/wx/msw/bmpbuttn.h
index d753a82701..894260f4a0 100644
--- a/Externals/wxWidgets3/include/wx/msw/bmpbuttn.h
+++ b/Externals/wxWidgets3/include/wx/msw/bmpbuttn.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
-// RCS-ID: $Id: bmpbuttn.h 61071 2009-06-15 23:10:16Z VZ $
+// RCS-ID: $Id: bmpbuttn.h 67931 2011-06-14 13:00:42Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -19,7 +19,7 @@
class WXDLLIMPEXP_CORE wxBitmapButton : public wxBitmapButtonBase
{
public:
- wxBitmapButton() { Init(); }
+ wxBitmapButton() {}
wxBitmapButton(wxWindow *parent,
wxWindowID id,
@@ -30,8 +30,6 @@ public:
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr)
{
- Init();
-
Create(parent, id, bitmap, pos, size, style, validator, name);
}
@@ -45,25 +43,6 @@ public:
const wxString& name = wxButtonNameStr);
protected:
- // common part of all ctors
- void Init()
- {
- m_disabledSetByUser =
- m_hoverSetByUser = false;
- }
-
- // reimplement some base class virtuals
- virtual void DoSetBitmap(const wxBitmap& bitmap, State which);
-
- // true if disabled bitmap was set by user, false if we created it
- // ourselves from the normal one
- bool m_disabledSetByUser;
-
- // true if hover bitmap was set by user, false if it was set from focused
- // one
- bool m_hoverSetByUser;
-
-
DECLARE_EVENT_TABLE()
DECLARE_DYNAMIC_CLASS_NO_COPY(wxBitmapButton)
};
diff --git a/Externals/wxWidgets3/include/wx/msw/button.h b/Externals/wxWidgets3/include/wx/msw/button.h
index 898aeaac99..ac3545b6eb 100644
--- a/Externals/wxWidgets3/include/wx/msw/button.h
+++ b/Externals/wxWidgets3/include/wx/msw/button.h
@@ -4,13 +4,13 @@
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
-// RCS-ID: $Id: button.h 67065 2011-02-27 12:48:26Z VZ $
+// RCS-ID: $Id: button.h 69984 2011-12-11 17:03:56Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifndef _WX_BUTTON_H_
-#define _WX_BUTTON_H_
+#ifndef _WX_MSW_BUTTON_H_
+#define _WX_MSW_BUTTON_H_
// ----------------------------------------------------------------------------
// Pushbutton
@@ -47,22 +47,13 @@ public:
virtual wxWindow *SetDefault();
- // overridden base class methods
- virtual void SetLabel(const wxString& label);
- virtual bool SetBackgroundColour(const wxColour &colour);
- virtual bool SetForegroundColour(const wxColour &colour);
-
// implementation from now on
virtual void Command(wxCommandEvent& event);
virtual WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
virtual bool MSWCommand(WXUINT param, WXWORD id);
- virtual bool MSWOnDraw(WXDRAWITEMSTRUCT *item);
virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
- // returns true if the platform should explicitly apply a theme border
- virtual bool CanApplyThemeBorder() const { return false; }
-
protected:
// send a notification event, return true if processed
bool SendClickEvent();
@@ -74,32 +65,8 @@ protected:
// set or unset BS_DEFPUSHBUTTON style
static void SetDefaultStyle(wxButton *btn, bool on);
- // usually overridden base class virtuals
- virtual wxSize DoGetBestSize() const;
-
virtual bool DoGetAuthNeeded() const;
virtual void DoSetAuthNeeded(bool show);
- virtual wxBitmap DoGetBitmap(State which) const;
- virtual void DoSetBitmap(const wxBitmap& bitmap, State which);
- virtual wxSize DoGetBitmapMargins() const;
- virtual void DoSetBitmapMargins(wxCoord x, wxCoord y);
- virtual void DoSetBitmapPosition(wxDirection dir);
-
-#if wxUSE_MARKUP
- virtual bool DoSetLabelMarkup(const wxString& markup);
-#endif // wxUSE_MARKUP
-
- // Increases the passed in size to account for the button image.
- //
- // Should only be called if we do have a button, i.e. if m_imageData is
- // non-NULL.
- void AdjustForBitmapSize(wxSize& size) const;
-
- class wxButtonImageData *m_imageData;
-
-#if wxUSE_MARKUP
- class wxMarkupText *m_markupText;
-#endif // wxUSE_MARKUP
// true if the UAC symbol is shown
bool m_authNeeded;
@@ -107,19 +74,13 @@ protected:
private:
void Init()
{
- m_imageData = NULL;
-#if wxUSE_MARKUP
- m_markupText = NULL;
-#endif // wxUSE_MARKUP
m_authNeeded = false;
}
- // Switches button into owner-drawn mode: this is used if we need to draw
- // something not supported by the native control, such as using non default
- // colours or a bitmap on pre-XP systems.
- void MakeOwnerDrawn();
+ void OnCharHook(wxKeyEvent& event);
+ wxDECLARE_EVENT_TABLE();
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxButton);
};
-#endif // _WX_BUTTON_H_
+#endif // _WX_MSW_BUTTON_H_
diff --git a/Externals/wxWidgets3/include/wx/msw/chkconf.h b/Externals/wxWidgets3/include/wx/msw/chkconf.h
index 7e547f91b0..637155d5f8 100644
--- a/Externals/wxWidgets3/include/wx/msw/chkconf.h
+++ b/Externals/wxWidgets3/include/wx/msw/chkconf.h
@@ -4,7 +4,7 @@
* Author: Julian Smart
* Modified by:
* Created: 01/02/97
- * RCS-ID: $Id: chkconf.h 63832 2010-04-02 19:30:41Z VZ $
+ * RCS-ID: $Id: chkconf.h 69845 2011-11-27 19:52:13Z VZ $
* Copyright: (c) Julian Smart
* Licence: wxWindows licence
*/
@@ -224,11 +224,6 @@
*/
#ifdef __WIN64__
# if wxUSE_STACKWALKER
- /* this is not currently supported under Win64, volunteers needed to
- make it work */
-# undef wxUSE_STACKWALKER
-# define wxUSE_STACKWALKER 0
-
# undef wxUSE_CRASHREPORT
# define wxUSE_CRASHREPORT 0
# endif
@@ -239,7 +234,7 @@
Compiler-specific checks.
*/
-// Borland
+/* Borland */
#ifdef __BORLANDC__
#if __BORLANDC__ < 0x500
@@ -336,6 +331,14 @@
#endif /* !wxUSE_DYNAMIC_LOADER */
#if !wxUSE_DYNLIB_CLASS
+# if wxUSE_DC_TRANSFORM_MATRIX
+# ifdef wxABORT_ON_CONFIG_ERROR
+# error "wxUSE_DC_TRANSFORM_MATRIX requires wxUSE_DYNLIB_CLASS"
+# else
+# undef wxUSE_DC_TRANSFORM_MATRIX
+# define wxUSE_DC_TRANSFORM_MATRIX 0
+# endif
+# endif
# if wxUSE_UXTHEME
# ifdef wxABORT_ON_CONFIG_ERROR
# error "wxUSE_UXTHEME requires wxUSE_DYNLIB_CLASS"
@@ -400,6 +403,14 @@
# define wxUSE_MEDIACTRL 0
# endif
# endif
+# if wxUSE_WEB
+# ifdef wxABORT_ON_CONFIG_ERROR
+# error "wxWebView requires wxActiveXContainer under MSW"
+# else
+# undef wxUSE_WEB
+# define wxUSE_WEB 0
+# endif
+# endif
#endif /* !wxUSE_ACTIVEX */
#if !wxUSE_THREADS
@@ -413,6 +424,18 @@
# endif
#endif /* !wxUSE_THREADS */
+
+#if !wxUSE_OLE_AUTOMATION
+# if wxUSE_WEB
+# ifdef wxABORT_ON_CONFIG_ERROR
+# error "wxWebView requires wxUSE_OLE_AUTOMATION under MSW"
+# else
+# undef wxUSE_WEB
+# define wxUSE_WEB 0
+# endif
+# endif
+#endif /* !wxUSE_OLE_AUTOMATION */
+
#if defined(__WXUNIVERSAL__) && wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW && !wxUSE_POSTSCRIPT
# undef wxUSE_POSTSCRIPT
# define wxUSE_POSTSCRIPT 1
diff --git a/Externals/wxWidgets3/include/wx/msw/combobox.h b/Externals/wxWidgets3/include/wx/msw/combobox.h
index d0b6ee8234..5b7c63d67a 100644
--- a/Externals/wxWidgets3/include/wx/msw/combobox.h
+++ b/Externals/wxWidgets3/include/wx/msw/combobox.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
-// RCS-ID: $Id: combobox.h 63242 2010-01-24 01:00:45Z VZ $
+// RCS-ID: $Id: combobox.h 68808 2011-08-21 12:06:16Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -75,6 +75,10 @@ public:
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxComboBoxNameStr);
+ // See wxComboBoxBase discussion of IsEmpty().
+ bool IsListEmpty() const { return wxItemContainer::IsEmpty(); }
+ bool IsTextEmpty() const { return wxTextEntry::IsEmpty(); }
+
// resolve ambiguities among virtual functions inherited from both base
// classes
virtual void Clear();
diff --git a/Externals/wxWidgets3/include/wx/msw/custombgwin.h b/Externals/wxWidgets3/include/wx/msw/custombgwin.h
new file mode 100644
index 0000000000..fe5481f710
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/msw/custombgwin.h
@@ -0,0 +1,58 @@
+///////////////////////////////////////////////////////////////////////////////
+// Name: wx/msw/custombgwin.h
+// Purpose: wxMSW implementation of wxCustomBackgroundWindow
+// Author: Vadim Zeitlin
+// Created: 2011-10-10
+// RCS-ID: $Id: custombgwin.h 69378 2011-10-11 17:07:43Z VZ $
+// Copyright: (c) 2011 Vadim Zeitlin
+// Licence: wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_MSW_CUSTOMBGWIN_H_
+#define _WX_MSW_CUSTOMBGWIN_H_
+
+#include "wx/bitmap.h"
+#include "wx/brush.h"
+
+// ----------------------------------------------------------------------------
+// wxCustomBackgroundWindow
+// ----------------------------------------------------------------------------
+
+template
+class wxCustomBackgroundWindow : public W,
+ public wxCustomBackgroundWindowBase
+{
+public:
+ typedef W BaseWindowClass;
+
+ wxCustomBackgroundWindow() { m_backgroundBrush = NULL; }
+
+ virtual ~wxCustomBackgroundWindow() { delete m_backgroundBrush; }
+
+protected:
+ virtual void DoSetBackgroundBitmap(const wxBitmap& bmp)
+ {
+ delete m_backgroundBrush;
+ m_backgroundBrush = bmp.IsOk() ? new wxBrush(bmp) : NULL;
+
+ // Our transparent children should use our background if we have it,
+ // otherwise try to restore m_inheritBgCol to some reasonable value: true
+ // if we also have non-default background colour or false otherwise.
+ BaseWindowClass::m_inheritBgCol = bmp.IsOk()
+ || BaseWindowClass::UseBgCol();
+ }
+
+ virtual WXHBRUSH MSWGetCustomBgBrush()
+ {
+ if ( m_backgroundBrush )
+ return (WXHBRUSH)m_backgroundBrush->GetResourceHandle();
+
+ return BaseWindowClass::MSWGetCustomBgBrush();
+ }
+
+ wxBrush *m_backgroundBrush;
+
+ wxDECLARE_NO_COPY_TEMPLATE_CLASS(wxCustomBackgroundWindow, W);
+};
+
+#endif // _WX_MSW_CUSTOMBGWIN_H_
diff --git a/Externals/wxWidgets3/include/wx/msw/datectrl.h b/Externals/wxWidgets3/include/wx/msw/datectrl.h
index 8a0cabdf9a..7015019f53 100644
--- a/Externals/wxWidgets3/include/wx/msw/datectrl.h
+++ b/Externals/wxWidgets3/include/wx/msw/datectrl.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 2005-01-09
-// RCS-ID: $Id: datectrl.h 49893 2007-11-13 12:10:34Z JS $
+// RCS-ID: $Id: datectrl.h 69222 2011-09-29 13:43:02Z VZ $
// Copyright: (c) 2005 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -43,30 +43,21 @@ public:
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxDatePickerCtrlNameStr);
- // set/get the date
+ // Override this one to add date-specific (and time-ignoring) checks.
virtual void SetValue(const wxDateTime& dt);
virtual wxDateTime GetValue() const;
- // set/get the allowed valid range for the dates, if either/both of them
- // are invalid, there is no corresponding limit and if neither is set
- // GetRange() returns false
+ // Implement the base class pure virtuals.
virtual void SetRange(const wxDateTime& dt1, const wxDateTime& dt2);
virtual bool GetRange(wxDateTime *dt1, wxDateTime *dt2) const;
+ // Override MSW-specific functions used during control creation.
virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
- virtual bool MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result);
-
- // returns true if the platform should explicitly apply a theme border
- virtual bool CanApplyThemeBorder() const { return false; }
-
protected:
- virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
- virtual wxSize DoGetBestSize() const;
-
- // the date currently shown by the control, may be invalid
- wxDateTime m_date;
-
+ virtual wxLocaleInfo MSWGetFormat() const;
+ virtual bool MSWAllowsNone() const { return HasFlag(wxDP_ALLOWNONE); }
+ virtual bool MSWOnDateTimeChange(const tagNMDATETIMECHANGE& dtch);
DECLARE_DYNAMIC_CLASS_NO_COPY(wxDatePickerCtrl)
};
diff --git a/Externals/wxWidgets3/include/wx/msw/datetimectrl.h b/Externals/wxWidgets3/include/wx/msw/datetimectrl.h
new file mode 100644
index 0000000000..0c783511c2
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/msw/datetimectrl.h
@@ -0,0 +1,87 @@
+///////////////////////////////////////////////////////////////////////////////
+// Name: wx/msw/datetimectrl.h
+// Purpose: wxDateTimePickerCtrl for Windows.
+// Author: Vadim Zeitlin
+// Created: 2011-09-22 (extracted from wx/msw/datectrl.h).
+// RCS-ID: $Id: datetimectrl.h 69489 2011-10-20 16:45:48Z VZ $
+// Copyright: (c) 2005-2011 Vadim Zeitlin
+// Licence: wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_MSW_DATETIMECTRL_H_
+#define _WX_MSW_DATETIMECTRL_H_
+
+#include "wx/intl.h"
+
+// Forward declare a struct from Platform SDK.
+struct tagNMDATETIMECHANGE;
+
+// ----------------------------------------------------------------------------
+// wxDateTimePickerCtrl
+// ----------------------------------------------------------------------------
+
+class WXDLLIMPEXP_ADV wxDateTimePickerCtrl : public wxDateTimePickerCtrlBase
+{
+public:
+ // set/get the date
+ virtual void SetValue(const wxDateTime& dt);
+ virtual wxDateTime GetValue() const;
+
+ // returns true if the platform should explicitly apply a theme border
+ virtual bool CanApplyThemeBorder() const { return false; }
+
+ virtual bool MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result);
+
+protected:
+ virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
+ virtual wxSize DoGetBestSize() const;
+
+ // Helper for the derived classes Create(): creates a native control with
+ // the specified attributes.
+ bool MSWCreateDateTimePicker(wxWindow *parent,
+ wxWindowID id,
+ const wxDateTime& dt,
+ const wxPoint& pos,
+ const wxSize& size,
+ long style,
+ const wxValidator& validator,
+ const wxString& name);
+
+ // Notice that the methods below must be overridden in all native MSW
+ // classes inheriting from this one but they can't be pure virtual because
+ // the generic implementations, not needing nor able to implement them, is
+ // also derived from this class currently. The real problem is, of course,
+ // this wrong class structure because the generic classes also inherit the
+ // wrong implementations of Set/GetValue() and DoGetBestSize() but as they
+ // override these methods anyhow, it does work -- but is definitely ugly
+ // and need to be changed (but how?) in the future.
+
+ // Override to return the date/time format used by this control.
+ virtual wxLocaleInfo MSWGetFormat() const /* = 0 */
+ {
+ wxFAIL_MSG( "Unreachable" );
+ return wxLOCALE_TIME_FMT;
+ }
+
+ // Override to indicate whether we can have no date at all.
+ virtual bool MSWAllowsNone() const /* = 0 */
+ {
+ wxFAIL_MSG( "Unreachable" );
+ return false;
+ }
+
+ // Override to update m_date and send the event when the control contents
+ // changes, return true if the event was handled.
+ virtual bool MSWOnDateTimeChange(const tagNMDATETIMECHANGE& dtch) /* = 0 */
+ {
+ wxUnusedVar(dtch);
+ wxFAIL_MSG( "Unreachable" );
+ return false;
+ }
+
+
+ // the date currently shown by the control, may be invalid
+ wxDateTime m_date;
+};
+
+#endif // _WX_MSW_DATETIMECTRL_H_
diff --git a/Externals/wxWidgets3/include/wx/msw/dc.h b/Externals/wxWidgets3/include/wx/msw/dc.h
index e55eb54715..48fa925c24 100644
--- a/Externals/wxWidgets3/include/wx/msw/dc.h
+++ b/Externals/wxWidgets3/include/wx/msw/dc.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
-// RCS-ID: $Id: dc.h 67063 2011-02-27 12:48:13Z VZ $
+// RCS-ID: $Id: dc.h 67588 2011-04-23 16:03:10Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -87,6 +87,13 @@ public:
virtual void SetDeviceOrigin(wxCoord x, wxCoord y);
virtual void SetAxisOrientation(bool xLeftRight, bool yBottomUp);
+#if wxUSE_DC_TRANSFORM_MATRIX
+ virtual bool CanUseTransformMatrix() const;
+ virtual bool SetTransformMatrix(const wxAffineMatrix2D& matrix);
+ virtual wxAffineMatrix2D GetTransformMatrix() const;
+ virtual void ResetTransformMatrix();
+#endif // wxUSE_DC_TRANSFORM_MATRIX
+
virtual void SetLogicalFunction(wxRasterOperationMode function);
// implementation from now on
diff --git a/Externals/wxWidgets3/include/wx/msw/debughlp.h b/Externals/wxWidgets3/include/wx/msw/debughlp.h
index e4337ce751..f5c34ec2b3 100644
--- a/Externals/wxWidgets3/include/wx/msw/debughlp.h
+++ b/Externals/wxWidgets3/include/wx/msw/debughlp.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 2005-01-08 (extracted from msw/crashrpt.cpp)
-// RCS-ID: $Id: debughlp.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: debughlp.h 69845 2011-11-27 19:52:13Z VZ $
// Copyright: (c) 2003-2005 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -146,9 +146,9 @@ public:
PGET_MODULE_BASE_ROUTINE,
PTRANSLATE_ADDRESS_ROUTINE);
typedef BOOL (WINAPI *SymFromAddr_t)(HANDLE, DWORD64, PDWORD64, PSYMBOL_INFO);
- typedef LPVOID (WINAPI *SymFunctionTableAccess_t)(HANDLE, DWORD);
- typedef DWORD (WINAPI *SymGetModuleBase_t)(HANDLE, DWORD);
- typedef BOOL (WINAPI *SymGetLineFromAddr_t)(HANDLE, DWORD,
+ typedef LPVOID (WINAPI *SymFunctionTableAccess_t)(HANDLE, DWORD_PTR);
+ typedef DWORD_PTR (WINAPI *SymGetModuleBase_t)(HANDLE, DWORD_PTR);
+ typedef BOOL (WINAPI *SymGetLineFromAddr_t)(HANDLE, DWORD_PTR,
PDWORD, PIMAGEHLP_LINE);
typedef BOOL (WINAPI *SymSetContext_t)(HANDLE, PIMAGEHLP_STACK_FRAME,
PIMAGEHLP_CONTEXT);
@@ -164,23 +164,44 @@ public:
CONST PMINIDUMP_USER_STREAM_INFORMATION,
CONST PMINIDUMP_CALLBACK_INFORMATION);
- #define wxDO_FOR_ALL_SYM_FUNCS(what) \
- what(SymGetOptions); \
- what(SymSetOptions); \
- what(SymInitialize); \
- what(StackWalk); \
- what(SymFromAddr); \
- what(SymFunctionTableAccess); \
- what(SymGetModuleBase); \
- what(SymGetLineFromAddr); \
- what(SymSetContext); \
- what(SymEnumSymbols); \
- what(SymGetTypeInfo); \
- what(SymCleanup); \
- what(EnumerateLoadedModules); \
- what(MiniDumpWriteDump)
+ // The macro called by wxDO_FOR_ALL_SYM_FUNCS() below takes 2 arguments:
+ // the name of the function in the program code, which never has "64"
+ // suffix, and the name of the function in the DLL which can have "64"
+ // suffix in some cases. These 2 helper macros call the macro with the
+ // correct arguments in both cases.
+ #define wxSYM_CALL(what, name) what(name, name)
+#if defined(_M_AMD64)
+ #define wxSYM_CALL_64(what, name) what(name, name ## 64)
- #define wxDECLARE_SYM_FUNCTION(func) static func ## _t func
+ // Also undo all the "helpful" definitions done by imagehlp.h that map 32
+ // bit functions to 64 bit ones, we don't need this as we do it ourselves.
+ #undef StackWalk
+ #undef SymFunctionTableAccess
+ #undef SymGetModuleBase
+ #undef SymGetLineFromAddr
+ #undef EnumerateLoadedModules
+#else
+ #define wxSYM_CALL_64(what, name) what(name, name)
+#endif
+
+ #define wxDO_FOR_ALL_SYM_FUNCS(what) \
+ wxSYM_CALL_64(what, StackWalk); \
+ wxSYM_CALL_64(what, SymFunctionTableAccess); \
+ wxSYM_CALL_64(what, SymGetModuleBase); \
+ wxSYM_CALL_64(what, SymGetLineFromAddr); \
+ wxSYM_CALL_64(what, EnumerateLoadedModules); \
+ \
+ wxSYM_CALL(what, SymGetOptions); \
+ wxSYM_CALL(what, SymSetOptions); \
+ wxSYM_CALL(what, SymInitialize); \
+ wxSYM_CALL(what, SymFromAddr); \
+ wxSYM_CALL(what, SymSetContext); \
+ wxSYM_CALL(what, SymEnumSymbols); \
+ wxSYM_CALL(what, SymGetTypeInfo); \
+ wxSYM_CALL(what, SymCleanup); \
+ wxSYM_CALL(what, MiniDumpWriteDump)
+
+ #define wxDECLARE_SYM_FUNCTION(func, name) static func ## _t func
wxDO_FOR_ALL_SYM_FUNCS(wxDECLARE_SYM_FUNCTION);
diff --git a/Externals/wxWidgets3/include/wx/msw/dialog.h b/Externals/wxWidgets3/include/wx/msw/dialog.h
index 9ea9a3766b..ad192925e1 100644
--- a/Externals/wxWidgets3/include/wx/msw/dialog.h
+++ b/Externals/wxWidgets3/include/wx/msw/dialog.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
-// RCS-ID: $Id: dialog.h 60559 2009-05-09 12:26:15Z VZ $
+// RCS-ID: $Id: dialog.h 70511 2012-02-05 14:18:22Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -16,7 +16,7 @@
// this option is always enabled (there doesn't seem to be any good reason to
// disable it) for desktop Windows versions but Windows CE dialogs are usually
-// not resizeable and never show resize gripper anyhow so don't use it there
+// not resizable and never show resize gripper anyhow so don't use it there
#ifdef __WXWINCE__
#define wxUSE_DIALOG_SIZEGRIP 0
#else
@@ -92,9 +92,9 @@ public:
// override some base class virtuals
virtual bool Show(bool show = true);
- virtual void Raise();
-
+#if wxUSE_DIALOG_SIZEGRIP
virtual void SetWindowStyleFlag(long style);
+#endif // wxUSE_DIALOG_SIZEGRIP
#ifdef __POCKETPC__
// Responds to the OK button in a PocketPC titlebar. This
@@ -114,7 +114,7 @@ protected:
private:
#if wxUSE_DIALOG_SIZEGRIP
// these functions deal with the gripper window shown in the corner of
- // resizeable dialogs
+ // resizable dialogs
void CreateGripper();
void DestroyGripper();
void ShowGripper(bool show);
diff --git a/Externals/wxWidgets3/include/wx/msw/dragimag.h b/Externals/wxWidgets3/include/wx/msw/dragimag.h
index 44dafc0025..5118833235 100644
--- a/Externals/wxWidgets3/include/wx/msw/dragimag.h
+++ b/Externals/wxWidgets3/include/wx/msw/dragimag.h
@@ -5,7 +5,7 @@
// Author: Julian Smart
// Modified by:
// Created: 08/04/99
-// RCS-ID: $Id: dragimag.h 58757 2009-02-08 11:45:59Z VZ $
+// RCS-ID: $Id: dragimag.h 70584 2012-02-15 00:35:25Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -114,14 +114,6 @@ public:
Create(image, cursor);
}
- // Deprecated form of the above
- wxDragImage(const wxBitmap& image, const wxCursor& cursor, const wxPoint& cursorHotspot)
- {
- Init();
-
- Create(image, cursor, cursorHotspot);
- }
-
wxDragImage(const wxIcon& image, const wxCursor& cursor = wxNullCursor)
{
Init();
@@ -129,14 +121,6 @@ public:
Create(image, cursor);
}
- // Deprecated form of the above
- wxDragImage(const wxIcon& image, const wxCursor& cursor, const wxPoint& cursorHotspot)
- {
- Init();
-
- Create(image, cursor, cursorHotspot);
- }
-
wxDragImage(const wxString& str, const wxCursor& cursor = wxNullCursor)
{
Init();
@@ -144,14 +128,6 @@ public:
Create(str, cursor);
}
- // Deprecated form of the above
- wxDragImage(const wxString& str, const wxCursor& cursor, const wxPoint& cursorHotspot)
- {
- Init();
-
- Create(str, cursor, cursorHotspot);
- }
-
#if wxUSE_TREECTRL
wxDragImage(const wxTreeCtrl& treeCtrl, wxTreeItemId& id)
{
@@ -180,27 +156,12 @@ public:
// Create a drag image from a bitmap and optional cursor
bool Create(const wxBitmap& image, const wxCursor& cursor = wxNullCursor);
- bool Create(const wxBitmap& image, const wxCursor& cursor, const wxPoint& WXUNUSED(cursorHotspot))
- {
- wxLogDebug(wxT("wxDragImage::Create: use of a cursor hotspot is now deprecated. Please omit this argument."));
- return Create(image, cursor);
- }
// Create a drag image from an icon and optional cursor
bool Create(const wxIcon& image, const wxCursor& cursor = wxNullCursor);
- bool Create(const wxIcon& image, const wxCursor& cursor, const wxPoint& WXUNUSED(cursorHotspot))
- {
- wxLogDebug(wxT("wxDragImage::Create: use of a cursor hotspot is now deprecated. Please omit this argument."));
- return Create(image, cursor);
- }
// Create a drag image from a string and optional cursor
bool Create(const wxString& str, const wxCursor& cursor = wxNullCursor);
- bool Create(const wxString& str, const wxCursor& cursor, const wxPoint& WXUNUSED(cursorHotspot))
- {
- wxLogDebug(wxT("wxDragImage::Create: use of a cursor hotspot is now deprecated. Please omit this argument."));
- return Create(str, cursor);
- }
#if wxUSE_TREECTRL
// Create a drag image for the given tree control item
@@ -248,6 +209,16 @@ public:
WXHIMAGELIST GetCursorHIMAGELIST() const { return m_hCursorImageList; }
#endif
+ // don't use in new code, use versions without hot spot parameter
+#if WXWIN_COMPATIBILITY_2_8
+ wxDEPRECATED_CONSTRUCTOR( wxDragImage(const wxBitmap& image, const wxCursor& cursor, const wxPoint& cursorHotspot) );
+ wxDEPRECATED_CONSTRUCTOR( wxDragImage(const wxString& str, const wxCursor& cursor, const wxPoint& cursorHotspot) );
+ wxDEPRECATED_CONSTRUCTOR( wxDragImage(const wxIcon& image, const wxCursor& cursor, const wxPoint& cursorHotspot) );
+ wxDEPRECATED( bool Create(const wxBitmap& image, const wxCursor& cursor, const wxPoint& cursorHotspot) );
+ wxDEPRECATED( bool Create(const wxIcon& image, const wxCursor& cursor, const wxPoint& cursorHotspot) );
+ wxDEPRECATED( bool Create(const wxString& str, const wxCursor& cursor, const wxPoint& cursorHotspot) );
+#endif // WXWIN_COMPATIBILITY_2_8
+
protected:
WXHIMAGELIST m_hImageList;
diff --git a/Externals/wxWidgets3/include/wx/msw/enhmeta.h b/Externals/wxWidgets3/include/wx/msw/enhmeta.h
index 89fa8cfa18..e1168ec707 100644
--- a/Externals/wxWidgets3/include/wx/msw/enhmeta.h
+++ b/Externals/wxWidgets3/include/wx/msw/enhmeta.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 13.01.00
-// RCS-ID: $Id: enhmeta.h 60843 2009-05-31 19:11:15Z VS $
+// RCS-ID: $Id: enhmeta.h 68317 2011-07-21 13:49:59Z VZ $
// Copyright: (c) 2000 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -89,6 +89,7 @@ public:
// as above, but takes reference DC as first argument to take resolution,
// size, font metrics etc. from
+ wxEXPLICIT
wxEnhMetaFileDC(const wxDC& referenceDC,
const wxString& filename = wxEmptyString,
int width = 0, int height = 0,
diff --git a/Externals/wxWidgets3/include/wx/msw/font.h b/Externals/wxWidgets3/include/wx/msw/font.h
index ef4d59f7c1..8c29e0e6dd 100644
--- a/Externals/wxWidgets3/include/wx/msw/font.h
+++ b/Externals/wxWidgets3/include/wx/msw/font.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
-// RCS-ID: $Id: font.h 65670 2010-09-29 13:46:09Z VZ $
+// RCS-ID: $Id: font.h 70446 2012-01-23 11:28:28Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -91,6 +91,12 @@ public:
Create(info, hFont);
}
+ wxFont(int pointSize,
+ wxFontFamily family,
+ int flags = wxFONTFLAG_DEFAULT,
+ const wxString& face = wxEmptyString,
+ wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
+
wxFont(const wxString& fontDesc);
@@ -117,6 +123,7 @@ public:
virtual wxFontStyle GetStyle() const;
virtual wxFontWeight GetWeight() const;
virtual bool GetUnderlined() const;
+ virtual bool GetStrikethrough() const;
virtual wxString GetFaceName() const;
virtual wxFontEncoding GetEncoding() const;
virtual const wxNativeFontInfo *GetNativeFontInfo() const;
@@ -128,6 +135,7 @@ public:
virtual void SetWeight(wxFontWeight weight);
virtual bool SetFaceName(const wxString& faceName);
virtual void SetUnderlined(bool underlined);
+ virtual void SetStrikethrough(bool strikethrough);
virtual void SetEncoding(wxFontEncoding encoding);
wxDECLARE_COMMON_FONT_METHODS();
diff --git a/Externals/wxWidgets3/include/wx/msw/frame.h b/Externals/wxWidgets3/include/wx/msw/frame.h
index fa66386469..7483e1c992 100644
--- a/Externals/wxWidgets3/include/wx/msw/frame.h
+++ b/Externals/wxWidgets3/include/wx/msw/frame.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
-// RCS-ID: $Id: frame.h 60337 2009-04-25 12:59:09Z FM $
+// RCS-ID: $Id: frame.h 70511 2012-02-05 14:18:22Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,6 @@ public:
// implement base class pure virtuals
virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
- virtual void Raise();
// implementation only from now on
// -------------------------------
@@ -79,7 +78,6 @@ public:
bool HandleSize(int x, int y, WXUINT flag);
bool HandleCommand(WXWORD id, WXWORD cmd, WXHWND control);
bool HandleMenuSelect(WXWORD nItem, WXWORD nFlags, WXHMENU hMenu);
- bool HandleMenuLoop(const wxEventType& evtType, WXWORD isPopup);
// tooltip management
#if wxUSE_TOOLTIPS
@@ -133,8 +131,17 @@ protected:
// wxMDIChildFrame
bool MSWDoTranslateMessage(wxFrame *frame, WXMSG *msg);
- // handle WM_INITMENUPOPUP message to generate wxEVT_MENU_OPEN
- bool HandleInitMenuPopup(WXHMENU hMenu);
+#if wxUSE_MENUS
+ // handle WM_EXITMENULOOP message for Win95 only
+ bool HandleExitMenuLoop(WXWORD isPopup);
+
+ // handle WM_(UN)INITMENUPOPUP message to generate wxEVT_MENU_OPEN/CLOSE
+ bool HandleMenuPopup(wxEventType evtType, WXHMENU hMenu);
+
+ // Command part of HandleMenuPopup() and HandleExitMenuLoop().
+ bool DoSendMenuOpenCloseEvent(wxEventType evtType, wxMenu* menu, bool popup);
+#endif // wxUSE_MENUS
+
virtual bool IsMDIChild() const { return false; }
diff --git a/Externals/wxWidgets3/include/wx/msw/fswatcher.h b/Externals/wxWidgets3/include/wx/msw/fswatcher.h
index a88d81a869..ea7ca41379 100644
--- a/Externals/wxWidgets3/include/wx/msw/fswatcher.h
+++ b/Externals/wxWidgets3/include/wx/msw/fswatcher.h
@@ -3,7 +3,7 @@
// Purpose: wxMSWFileSystemWatcher
// Author: Bartosz Bekier
// Created: 2009-05-26
-// RCS-ID: $Id: fswatcher.h 62474 2009-10-22 11:35:43Z VZ $
+// RCS-ID: $Id: fswatcher.h 67693 2011-05-03 23:31:39Z VZ $
// Copyright: (c) 2009 Bartosz Bekier
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -23,6 +23,12 @@ public:
wxMSWFileSystemWatcher(const wxFileName& path,
int events = wxFSW_EVENT_ALL);
+ // Override the base class function to provide a much more efficient
+ // implementation for it using the platform native support for watching the
+ // entire directory trees.
+ virtual bool AddTree(const wxFileName& path, int events = wxFSW_EVENT_ALL,
+ const wxString& filter = wxEmptyString);
+
protected:
bool Init();
};
diff --git a/Externals/wxWidgets3/include/wx/msw/helpchm.h b/Externals/wxWidgets3/include/wx/msw/helpchm.h
index 711d74dfb1..d3fdc9272b 100644
--- a/Externals/wxWidgets3/include/wx/msw/helpchm.h
+++ b/Externals/wxWidgets3/include/wx/msw/helpchm.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created: 16/04/2000
-// RCS-ID: $Id: helpchm.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: helpchm.h 67880 2011-06-07 14:28:55Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -82,7 +82,7 @@ protected:
wxString m_helpFile;
- DECLARE_CLASS(wxCHMHelpController)
+ DECLARE_DYNAMIC_CLASS(wxCHMHelpController)
};
#endif // wxUSE_MS_HTML_HELP
diff --git a/Externals/wxWidgets3/include/wx/msw/helpwin.h b/Externals/wxWidgets3/include/wx/msw/helpwin.h
index d209f93f83..828d2b6b4f 100644
--- a/Externals/wxWidgets3/include/wx/msw/helpwin.h
+++ b/Externals/wxWidgets3/include/wx/msw/helpwin.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created: 04/01/98
-// RCS-ID: $Id: helpwin.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: helpwin.h 67882 2011-06-07 16:48:36Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -20,7 +20,7 @@
class WXDLLIMPEXP_CORE wxWinHelpController: public wxHelpControllerBase
{
- DECLARE_CLASS(wxWinHelpController)
+ DECLARE_DYNAMIC_CLASS(wxWinHelpController)
public:
wxWinHelpController(wxWindow* parentWindow = NULL): wxHelpControllerBase(parentWindow) {}
diff --git a/Externals/wxWidgets3/include/wx/msw/listctrl.h b/Externals/wxWidgets3/include/wx/msw/listctrl.h
index 5b4eacae95..ff49f754bb 100644
--- a/Externals/wxWidgets3/include/wx/msw/listctrl.h
+++ b/Externals/wxWidgets3/include/wx/msw/listctrl.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by: Agron Selimaj
// Created: 01/02/97
-// RCS-ID: $Id: listctrl.h 64532 2010-06-09 13:55:48Z FM $
+// RCS-ID: $Id: listctrl.h 70282 2012-01-07 15:09:43Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -16,7 +16,6 @@
#include "wx/dynarray.h"
#include "wx/vector.h"
-class WXDLLIMPEXP_FWD_CORE wxImageList;
class wxMSWListItemData;
// define this symbol to indicate the availability of SetColumnsOrder() and
@@ -77,7 +76,7 @@ class wxMSWListItemData;
*/
-class WXDLLIMPEXP_CORE wxListCtrl: public wxControl
+class WXDLLIMPEXP_CORE wxListCtrl: public wxListCtrlBase
{
public:
/*
@@ -256,12 +255,6 @@ public:
void SetImageList(wxImageList *imageList, int which);
void AssignImageList(wxImageList *imageList, int which);
- // are we in report mode?
- bool InReportView() const { return HasFlag(wxLC_REPORT); }
-
- // are we in virtual report mode?
- bool IsVirtual() const { return HasFlag(wxLC_VIRTUAL); }
-
// refresh items selectively (only useful for virtual list controls)
void RefreshItem(long item);
void RefreshItems(long itemFrom, long itemTo);
@@ -326,14 +319,6 @@ public:
// Insert an image/string item
long InsertItem(long index, const wxString& label, int imageIndex);
- // For list view mode (only), inserts a column.
- long InsertColumn(long col, const wxListItem& info);
-
- long InsertColumn(long col,
- const wxString& heading,
- int format = wxLIST_FORMAT_LEFT,
- int width = -1);
-
// set the number of items in a virtual list control
void SetItemCount(long count);
@@ -399,6 +384,9 @@ protected:
// common part of all ctors
void Init();
+ // Implement base class pure virtual methods.
+ long DoInsertColumn(long col, const wxListItem& info);
+
// free memory taken by all internal data
void FreeAllInternalData();
@@ -466,6 +454,10 @@ private:
// destroy m_textCtrl if it's currently valid and reset it to NULL
void DeleteEditControl();
+ // Intercept Escape and Enter keys to avoid them being stolen from our
+ // in-place editor control.
+ void OnCharHook(wxKeyEvent& event);
+
DECLARE_DYNAMIC_CLASS(wxListCtrl)
DECLARE_EVENT_TABLE()
diff --git a/Externals/wxWidgets3/include/wx/msw/menu.h b/Externals/wxWidgets3/include/wx/msw/menu.h
index e5cc5d0142..53bea80f91 100644
--- a/Externals/wxWidgets3/include/wx/msw/menu.h
+++ b/Externals/wxWidgets3/include/wx/msw/menu.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by: Vadim Zeitlin (wxMenuItem is now in separate file)
// Created: 01/02/97
-// RCS-ID: $Id: menu.h 66178 2010-11-17 01:20:50Z VZ $
+// RCS-ID: $Id: menu.h 70350 2012-01-15 13:41:17Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -25,6 +25,7 @@ class WXDLLIMPEXP_FWD_CORE wxFrame;
class WXDLLIMPEXP_FWD_CORE wxToolBar;
#endif
+class wxMenuRadioItemsData;
// Not using a combined wxToolBar/wxMenuBar? then use
// a commandbar in WinCE .NET to implement the
@@ -60,16 +61,27 @@ public:
virtual void SetTitle(const wxString& title);
+ // MSW-only methods
+ // ----------------
+
+ // Create a new menu from the given native HMENU. Takes ownership of the
+ // menu handle and will delete it when this object is destroyed.
+ static wxMenu *MSWNewFromHMENU(WXHMENU hMenu) { return new wxMenu(hMenu); }
+
+
// implementation only from now on
// -------------------------------
- virtual void Attach(wxMenuBarBase *menubar);
-
bool MSWCommand(WXUINT param, WXWORD id);
// get the native menu handle
WXHMENU GetHMenu() const { return m_hMenu; }
+ // Return the start and end position of the radio group to which the item
+ // at the given position belongs. Returns false if there is no radio group
+ // containing this position.
+ bool MSWGetRadioGroupRange(int pos, int *start, int *end) const;
+
#if wxUSE_ACCEL
// called by wxMenuBar to build its accel table from the accels of all menus
bool HasAccels() const { return !m_accels.empty(); }
@@ -102,6 +114,9 @@ public:
m_maxAccelWidth = -1;
}
+ // get the menu with given handle (recursively)
+ wxMenu* MSWGetMenu(WXHMENU hMenu);
+
private:
void CalculateMaxAccelWidth();
@@ -113,21 +128,30 @@ protected:
virtual wxMenuItem* DoRemove(wxMenuItem *item);
private:
- // common part of all ctors
+ // This constructor is private, use MSWNewFromHMENU() to use it.
+ wxMenu(WXHMENU hMenu);
+
+ // Common part of all ctors, it doesn't create a new HMENU.
+ void InitNoCreate();
+
+ // Common part of all ctors except of the one above taking a native menu
+ // handler: calls InitNoCreate() and also creates a new menu.
void Init();
// common part of Append/Insert (behaves as Append is pos == (size_t)-1)
bool DoInsertOrAppend(wxMenuItem *item, size_t pos = (size_t)-1);
- // terminate the current radio group, if any
- void EndRadioGroup();
+
+ // This variable contains the description of the radio item groups and
+ // allows to find whether an item at the given position is part of the
+ // group and also where its group starts and ends.
+ //
+ // It is initially NULL and only allocated if we have any radio items.
+ wxMenuRadioItemsData *m_radioData;
// if true, insert a breal before appending the next item
bool m_doBreak;
- // the position of the first item in the current radio group or -1
- int m_startRadioGroup;
-
// the menu handle of this menu
WXHMENU m_hMenu;
@@ -173,6 +197,7 @@ public:
virtual wxMenu *Remove(size_t pos);
virtual void EnableTop( size_t pos, bool flag );
+ virtual bool IsEnabledTop(size_t pos) const;
virtual void SetMenuLabel( size_t pos, const wxString& label );
virtual wxString GetMenuLabel( size_t pos ) const;
@@ -208,6 +233,9 @@ public:
void Refresh( bool eraseBackground,
const wxRect *rect = (const wxRect *) NULL ) { wxWindow::Refresh(eraseBackground, rect); }
+ // get the menu with given handle (recursively)
+ wxMenu* MSWGetMenu(WXHMENU hMenu);
+
protected:
// common part of all ctors
void Init();
diff --git a/Externals/wxWidgets3/include/wx/msw/menuitem.h b/Externals/wxWidgets3/include/wx/msw/menuitem.h
index 8cf0698c63..1ccc75bdea 100644
--- a/Externals/wxWidgets3/include/wx/msw/menuitem.h
+++ b/Externals/wxWidgets3/include/wx/msw/menuitem.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 11.11.97
-// RCS-ID: $Id: menuitem.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: menuitem.h 70801 2012-03-04 00:29:55Z VZ $
// Copyright: (c) 1998 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -61,11 +61,6 @@ public:
// Win32 API
WXWPARAM GetMSWId() const;
- // mark item as belonging to the given radio group
- void SetAsRadioGroupStart();
- void SetRadioGroupStart(int start);
- void SetRadioGroupEnd(int end);
-
#if WXWIN_COMPATIBILITY_2_8
// compatibility only, don't use in new code
wxDEPRECATED(
@@ -124,24 +119,21 @@ private:
// helper function for draw std menu check mark
void DrawStdCheckMark(WXHDC hdc, const tagRECT* rc, wxODStatus stat);
-#endif // wxUSE_OWNER_DRAWN
+#else // !wxUSE_OWNER_DRAWN
+ // Provide stubs for the public functions above to ensure that the code
+ // still compiles without wxUSE_OWNER_DRAWN -- it makes sense to just drop
+ // the bitmaps then instead of failing compilation.
+ void SetBitmaps(const wxBitmap& WXUNUSED(bmpChecked),
+ const wxBitmap& WXUNUSED(bmpUnchecked) = wxNullBitmap) { }
+ void SetBitmap(const wxBitmap& WXUNUSED(bmp),
+ bool WXUNUSED(bChecked) = true) { }
+ const wxBitmap& GetBitmap() const { return wxNullBitmap; }
+#endif // wxUSE_OWNER_DRAWN/!wxUSE_OWNER_DRAWN
private:
// common part of all ctors
void Init();
- // the positions of the first and last items of the radio group this item
- // belongs to or -1: start is the radio group start and is valid for all
- // but first radio group items (m_isRadioGroupStart == false), end is valid
- // only for the first one
- union
- {
- int start;
- int end;
- } m_radioGroup;
-
- // does this item start a radio group?
- bool m_isRadioGroupStart;
#if wxUSE_OWNER_DRAWN
// item bitmaps
diff --git a/Externals/wxWidgets3/include/wx/msw/missing.h b/Externals/wxWidgets3/include/wx/msw/missing.h
index 0888d1322e..34184c596d 100644
--- a/Externals/wxWidgets3/include/wx/msw/missing.h
+++ b/Externals/wxWidgets3/include/wx/msw/missing.h
@@ -3,7 +3,7 @@
// Purpose: Declarations for parts of the Win32 SDK that are missing in
// the versions that come with some compilers
// Created: 2002/04/23
-// RCS-ID: $Id: missing.h 66996 2011-02-22 13:26:06Z VZ $
+// RCS-ID: $Id: missing.h 69844 2011-11-27 19:50:53Z VZ $
// Copyright: (c) 2002 Mattia Barbon
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -94,6 +94,7 @@
#define VK_OEM_5 0xDC
#define VK_OEM_6 0xDD
#define VK_OEM_7 0xDE
+ #define VK_OEM_102 0xE2
#endif
#ifndef VK_OEM_COMMA
@@ -514,6 +515,152 @@ typedef struct
#endif
+#endif
+
+//Various defines that will be needed by mingw and possibly VC++6
+//Used by the webview library
+
+#ifndef DISPID_COMMANDSTATECHANGE
+#define DISPID_COMMANDSTATECHANGE 105
+#endif
+
+#ifndef DISPID_NAVIGATECOMPLETE2
+#define DISPID_NAVIGATECOMPLETE2 252
+#endif
+
+#ifndef DISPID_NAVIGATEERROR
+#define DISPID_NAVIGATEERROR 271
+#endif
+
+#ifndef DISPID_NEWWINDOW3
+#define DISPID_NEWWINDOW3 273
+#endif
+
+#ifndef INET_E_ERROR_FIRST
+#define INET_E_ERROR_FIRST 0x800C0002L
+#endif
+
+#ifndef INET_E_INVALID_URL
+#define INET_E_INVALID_URL 0x800C0002L
+#endif
+
+#ifndef INET_E_NO_SESSION
+#define INET_E_NO_SESSION 0x800C0003L
+#endif
+
+#ifndef INET_E_CANNOT_CONNECT
+#define INET_E_CANNOT_CONNECT 0x800C0004L
+#endif
+
+#ifndef INET_E_RESOURCE_NOT_FOUND
+#define INET_E_RESOURCE_NOT_FOUND 0x800C0005L
+#endif
+
+#ifndef INET_E_OBJECT_NOT_FOUND
+#define INET_E_OBJECT_NOT_FOUND 0x800C0006L
+#endif
+
+#ifndef INET_E_DATA_NOT_AVAILABLE
+#define INET_E_DATA_NOT_AVAILABLE 0x800C0007L
+#endif
+
+#ifndef INET_E_DOWNLOAD_FAILURE
+#define INET_E_DOWNLOAD_FAILURE 0x800C0008L
+#endif
+
+#ifndef INET_E_AUTHENTICATION_REQUIRED
+#define INET_E_AUTHENTICATION_REQUIRED 0x800C0009L
+#endif
+
+#ifndef INET_E_NO_VALID_MEDIA
+#define INET_E_NO_VALID_MEDIA 0x800C000AL
+#endif
+
+#ifndef INET_E_CONNECTION_TIMEOUT
+#define INET_E_CONNECTION_TIMEOUT 0x800C000BL
+#endif
+
+#ifndef INET_E_INVALID_REQUEST
+#define INET_E_INVALID_REQUEST 0x800C000CL
+#endif
+
+#ifndef INET_E_UNKNOWN_PROTOCOL
+#define INET_E_UNKNOWN_PROTOCOL 0x800C000DL
+#endif
+
+#ifndef INET_E_SECURITY_PROBLEM
+#define INET_E_SECURITY_PROBLEM 0x800C000EL
+#endif
+
+#ifndef INET_E_CANNOT_LOAD_DATA
+#define INET_E_CANNOT_LOAD_DATA 0x800C000FL
+#endif
+
+#ifndef INET_E_CANNOT_INSTANTIATE_OBJECT
+#define INET_E_CANNOT_INSTANTIATE_OBJECT 0x800C0010L
+#endif
+
+#ifndef INET_E_QUERYOPTION_UNKNOWN
+#define INET_E_QUERYOPTION_UNKNOWN 0x800C0013L
+#endif
+
+#ifndef INET_E_REDIRECT_FAILED
+#define INET_E_REDIRECT_FAILED 0x800C0014L
+#endif
+
+#ifndef INET_E_REDIRECT_TO_DIR
+#define INET_E_REDIRECT_TO_DIR 0x800C0015L
+#endif
+
+#ifndef INET_E_CANNOT_LOCK_REQUEST
+#define INET_E_CANNOT_LOCK_REQUEST 0x800C0016L
+#endif
+
+#ifndef INET_E_USE_EXTEND_BINDING
+#define INET_E_USE_EXTEND_BINDING 0x800C0017L
+#endif
+
+#ifndef INET_E_TERMINATED_BIND
+#define INET_E_TERMINATED_BIND 0x800C0018L
+#endif
+
+#ifndef INET_E_INVALID_CERTIFICATE
+#define INET_E_INVALID_CERTIFICATE 0x800C0019L
+#endif
+
+#ifndef INET_E_CODE_DOWNLOAD_DECLINED
+#define INET_E_CODE_DOWNLOAD_DECLINED 0x800C0100L
+#endif
+
+#ifndef INET_E_RESULT_DISPATCHED
+#define INET_E_RESULT_DISPATCHED 0x800C0200L
+#endif
+
+#ifndef INET_E_CANNOT_REPLACE_SFP_FILE
+#define INET_E_CANNOT_REPLACE_SFP_FILE 0x800C0300L
+#endif
+
+#ifndef INET_E_CODE_INSTALL_BLOCKED_BY_HASH_POLICY
+#define INET_E_CODE_INSTALL_BLOCKED_BY_HASH_POLICY 0x800C0500L
+#endif
+
+#ifndef INET_E_CODE_INSTALL_SUPPRESSED
+#define INET_E_CODE_INSTALL_SUPPRESSED 0x800C0400L
+#endif
+
+//We need to check if we are using MinGW or mingw-w64 as their
+//definitions are different
+
+#ifdef __MINGW32__
+#include <_mingw.h>
+#endif
+
+#if defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR)
+typedef enum CommandStateChangeConstants {
+ CSC_UPDATECOMMANDS = (int) 0xFFFFFFFF,
+ CSC_NAVIGATEFORWARD = 0x1,
+ CSC_NAVIGATEBACK = 0x2
+} CommandStateChangeConstants;
#endif
/*
diff --git a/Externals/wxWidgets3/include/wx/msw/nonownedwnd.h b/Externals/wxWidgets3/include/wx/msw/nonownedwnd.h
new file mode 100644
index 0000000000..789a836aea
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/msw/nonownedwnd.h
@@ -0,0 +1,39 @@
+///////////////////////////////////////////////////////////////////////////////
+// Name: wx/msw/nonownedwnd.h
+// Purpose: wxNonOwnedWindow declaration for wxMSW.
+// Author: Vadim Zeitlin
+// Created: 2011-10-09
+// RCS-ID: $Id: nonownedwnd.h 69462 2011-10-18 21:56:52Z VZ $
+// Copyright: (c) 2011 Vadim Zeitlin
+// Licence: wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_MSW_NONOWNEDWND_H_
+#define _WX_MSW_NONOWNEDWND_H_
+
+class wxNonOwnedWindowShapeImpl;
+
+// ----------------------------------------------------------------------------
+// wxNonOwnedWindow
+// ----------------------------------------------------------------------------
+
+class WXDLLIMPEXP_CORE wxNonOwnedWindow : public wxNonOwnedWindowBase
+{
+public:
+ wxNonOwnedWindow();
+ virtual ~wxNonOwnedWindow();
+
+protected:
+ virtual bool DoClearShape();
+ virtual bool DoSetRegionShape(const wxRegion& region);
+#if wxUSE_GRAPHICS_CONTEXT
+ virtual bool DoSetPathShape(const wxGraphicsPath& path);
+
+private:
+ wxNonOwnedWindowShapeImpl* m_shapeImpl;
+#endif // wxUSE_GRAPHICS_CONTEXT
+
+ wxDECLARE_NO_COPY_CLASS(wxNonOwnedWindow);
+};
+
+#endif // _WX_MSW_NONOWNEDWND_H_
diff --git a/Externals/wxWidgets3/include/wx/msw/notebook.h b/Externals/wxWidgets3/include/wx/msw/notebook.h
index 644231a4d6..bfed8f9794 100644
--- a/Externals/wxWidgets3/include/wx/msw/notebook.h
+++ b/Externals/wxWidgets3/include/wx/msw/notebook.h
@@ -3,7 +3,7 @@
// Purpose: MSW/GTK compatible notebook (a.k.a. property sheet)
// Author: Robert Roebling
// Modified by: Vadim Zeitlin for Windows version
-// RCS-ID: $Id: notebook.h 67250 2011-03-20 00:00:29Z VZ $
+// RCS-ID: $Id: notebook.h 69793 2011-11-22 13:18:45Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -96,7 +96,7 @@ public:
wxNotebookPage *pPage,
const wxString& strText,
bool bSelect = false,
- int imageId = -1);
+ int imageId = NO_IMAGE);
// Windows-only at present. Also, you must use the wxNB_FIXEDWIDTH
// style.
@@ -194,6 +194,9 @@ protected:
// true if we have already subclassed our updown control
bool m_hasSubclassedUpdown;
+
+ // true if we already refreshed the current page after showing the window
+ bool m_doneUpdateHack;
#endif // __WXWINCE__
#if wxUSE_UXTHEME
diff --git a/Externals/wxWidgets3/include/wx/msw/ole/activex.h b/Externals/wxWidgets3/include/wx/msw/ole/activex.h
index a0047ae0cc..2acd893ace 100644
--- a/Externals/wxWidgets3/include/wx/msw/ole/activex.h
+++ b/Externals/wxWidgets3/include/wx/msw/ole/activex.h
@@ -4,7 +4,7 @@
// Author: Ryan Norton
// Modified by:
// Created: 8/18/05
-// RCS-ID: $Id: activex.h 64533 2010-06-09 14:28:08Z FM $
+// RCS-ID: $Id: activex.h 70361 2012-01-15 19:05:34Z SJL $
// Copyright: (c) Ryan Norton
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -168,6 +168,8 @@ public:
void OnPaint(wxPaintEvent&);
void OnSetFocus(wxFocusEvent&);
void OnKillFocus(wxFocusEvent&);
+ virtual bool MSWTranslateMessage(WXMSG* pMsg);
+ virtual bool QueryClientSiteInterface(REFIID iid, void **_interface, const char *&desc);
protected:
friend class FrameSite;
diff --git a/Externals/wxWidgets3/include/wx/msw/ole/oleutils.h b/Externals/wxWidgets3/include/wx/msw/ole/oleutils.h
index f52e1a294d..dffb3b266e 100644
--- a/Externals/wxWidgets3/include/wx/msw/ole/oleutils.h
+++ b/Externals/wxWidgets3/include/wx/msw/ole/oleutils.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 19.02.1998
-// RCS-ID: $Id: oleutils.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: oleutils.h 70162 2011-12-29 11:26:05Z SN $
// Copyright: (c) 1998 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -82,7 +82,7 @@ inline void ReleaseInterface(IUnknown *pIUnk)
#define RELEASE_AND_NULL(p) if ( (p) != NULL ) { p->Release(); p = NULL; };
// return true if the iid is in the array
-extern bool IsIidFromList(REFIID riid, const IID *aIids[], size_t nCount);
+extern WXDLLIMPEXP_CORE bool IsIidFromList(REFIID riid, const IID *aIids[], size_t nCount);
// ============================================================================
// IUnknown implementation helpers
@@ -140,9 +140,10 @@ private:
wxAutoULong m_cRef
// macros for declaring supported interfaces
-// NB: you should write ADD_INTERFACE(Foo) and not ADD_INTERFACE(IID_IFoo)!
+// NB: ADD_IID prepends IID_I whereas ADD_RAW_IID does not
#define BEGIN_IID_TABLE(cname) const IID *cname::ms_aIids[] = {
#define ADD_IID(iid) &IID_I##iid,
+#define ADD_RAW_IID(iid) &iid,
#define END_IID_TABLE }
// implementation is as straightforward as possible
@@ -197,11 +198,11 @@ private:
// ----------------------------------------------------------------------------
// tries to translate riid into a symbolic name, if possible
-void wxLogQueryInterface(const wxChar *szInterface, REFIID riid);
+WXDLLIMPEXP_CORE void wxLogQueryInterface(const wxChar *szInterface, REFIID riid);
// these functions print out the new value of reference counter
-void wxLogAddRef (const wxChar *szInterface, ULONG cRef);
-void wxLogRelease(const wxChar *szInterface, ULONG cRef);
+WXDLLIMPEXP_CORE void wxLogAddRef (const wxChar *szInterface, ULONG cRef);
+WXDLLIMPEXP_CORE void wxLogRelease(const wxChar *szInterface, ULONG cRef);
#else //!__WXDEBUG__
#define wxLogQueryInterface(szInterface, riid)
diff --git a/Externals/wxWidgets3/include/wx/msw/palette.h b/Externals/wxWidgets3/include/wx/msw/palette.h
index b6e737a8a8..35560e6012 100644
--- a/Externals/wxWidgets3/include/wx/msw/palette.h
+++ b/Externals/wxWidgets3/include/wx/msw/palette.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
-// RCS-ID: $Id: palette.h 52834 2008-03-26 15:06:00Z FM $
+// RCS-ID: $Id: palette.h 70040 2011-12-17 23:52:47Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -19,13 +19,13 @@ class WXDLLIMPEXP_CORE wxPalette : public wxPaletteBase
public:
wxPalette() { }
wxPalette(int n,
- unsigned char *red, unsigned char *green, unsigned char *blue)
+ const unsigned char *red, const unsigned char *green, const unsigned char *blue)
{
Create(n, red, green, blue);
}
bool Create(int n,
- unsigned char *red, unsigned char *green, unsigned char *blue);
+ const unsigned char *red, const unsigned char *green, const unsigned char *blue);
virtual int GetColoursCount() const;
diff --git a/Externals/wxWidgets3/include/wx/msw/panel.h b/Externals/wxWidgets3/include/wx/msw/panel.h
index 6007a6010b..9a2ab283c1 100644
--- a/Externals/wxWidgets3/include/wx/msw/panel.h
+++ b/Externals/wxWidgets3/include/wx/msw/panel.h
@@ -3,7 +3,7 @@
// Purpose: wxMSW-specific wxPanel class.
// Author: Vadim Zeitlin
// Created: 2011-03-18
-// RCS-ID: $Id: panel.h 67253 2011-03-20 00:00:49Z VZ $
+// RCS-ID: $Id: panel.h 70098 2011-12-23 05:59:59Z PC $
// Copyright: (c) 2011 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -20,7 +20,7 @@ class WXDLLIMPEXP_FWD_CORE wxBrush;
class WXDLLIMPEXP_CORE wxPanel : public wxPanelBase
{
public:
- wxPanel() { Init(); }
+ wxPanel() { }
wxPanel(wxWindow *parent,
wxWindowID winid = wxID_ANY,
@@ -29,8 +29,6 @@ public:
long style = wxTAB_TRAVERSAL | wxNO_BORDER,
const wxString& name = wxPanelNameStr)
{
- Init();
-
Create(parent, winid, pos, size, style, name);
}
@@ -40,7 +38,7 @@ public:
virtual bool HasTransparentBackground();
-#ifdef WXWIN_COMPATIBILITY_2_8
+#if WXWIN_COMPATIBILITY_2_8
wxDEPRECATED_CONSTRUCTOR(
wxPanel(wxWindow *parent,
int x, int y, int width, int height,
@@ -52,18 +50,7 @@ public:
)
#endif // WXWIN_COMPATIBILITY_2_8
-protected:
- void Init()
- {
- m_backgroundBrush = NULL;
- }
-
- virtual void DoSetBackgroundBitmap(const wxBitmap& bmp);
- virtual WXHBRUSH MSWGetCustomBgBrush();
-
private:
- wxBrush *m_backgroundBrush;
-
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxPanel);
};
diff --git a/Externals/wxWidgets3/include/wx/msw/printdlg.h b/Externals/wxWidgets3/include/wx/msw/printdlg.h
index f656e75720..a8362bdd06 100644
--- a/Externals/wxWidgets3/include/wx/msw/printdlg.h
+++ b/Externals/wxWidgets3/include/wx/msw/printdlg.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
-// RCS-ID: $Id: printdlg.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: printdlg.h 70636 2012-02-20 21:55:55Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -20,6 +20,7 @@
#include "wx/printdlg.h"
class WXDLLIMPEXP_FWD_CORE wxDC;
+class WinPrinter;
//----------------------------------------------------------------------------
// wxWindowsPrintNativeData
@@ -37,6 +38,7 @@ public:
virtual bool Ok() const { return IsOk(); }
virtual bool IsOk() const;
+ void InitializeDevMode(const wxString &printerName = wxEmptyString, WinPrinter* printer = NULL);
void* GetDevMode() const { return m_devMode; }
void SetDevMode(void* data) { m_devMode = data; }
void* GetDevNames() const { return m_devNames; }
@@ -105,7 +107,7 @@ public:
bool ConvertToNative( wxPageSetupDialogData &data );
bool ConvertFromNative( wxPageSetupDialogData &data );
- virtual wxPageSetupData& GetPageSetupDialogData() { return m_pageSetupData; }
+ virtual wxPageSetupDialogData& GetPageSetupDialogData() { return m_pageSetupData; }
private:
wxPageSetupDialogData m_pageSetupData;
diff --git a/Externals/wxWidgets3/include/wx/msw/private.h b/Externals/wxWidgets3/include/wx/msw/private.h
index 45217c0aae..75f5c65382 100644
--- a/Externals/wxWidgets3/include/wx/msw/private.h
+++ b/Externals/wxWidgets3/include/wx/msw/private.h
@@ -6,7 +6,7 @@
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
-// RCS-ID: $Id: private.h 65958 2010-10-30 23:50:45Z VZ $
+// RCS-ID: $Id: private.h 69758 2011-11-14 12:51:53Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -454,7 +454,7 @@ private:
void DoInit(HGDIOBJ hgdiobj) { m_hgdiobj = ::SelectObject(m_hdc, hgdiobj); }
public:
- SelectInHDC() : m_hdc(NULL) { }
+ SelectInHDC() : m_hdc(NULL), m_hgdiobj(NULL) { }
SelectInHDC(HDC hdc, HGDIOBJ hgdiobj) : m_hdc(hdc) { DoInit(hgdiobj); }
void Init(HDC hdc, HGDIOBJ hgdiobj)
@@ -923,6 +923,9 @@ WXDLLIMPEXP_BASE wxWinVersion wxGetWinVersion();
extern HCURSOR wxGetCurrentBusyCursor(); // from msw/utils.cpp
extern const wxCursor *wxGetGlobalCursor(); // from msw/cursor.cpp
+// GetCursorPos can fail without populating the POINT. This falls back to GetMessagePos.
+WXDLLIMPEXP_CORE void wxGetCursorPosMSW(POINT* pt);
+
WXDLLIMPEXP_CORE void wxGetCharSize(WXHWND wnd, int *x, int *y, const wxFont& the_font);
WXDLLIMPEXP_CORE void wxFillLogFont(LOGFONT *logFont, const wxFont *font);
WXDLLIMPEXP_CORE wxFont wxCreateFontFromLogFont(const LOGFONT *logFont);
diff --git a/Externals/wxWidgets3/include/wx/msw/private/button.h b/Externals/wxWidgets3/include/wx/msw/private/button.h
index 8f16b885c3..c45bcf167a 100644
--- a/Externals/wxWidgets3/include/wx/msw/private/button.h
+++ b/Externals/wxWidgets3/include/wx/msw/private/button.h
@@ -3,7 +3,7 @@
// Purpose: helper functions used with native BUTTON control
// Author: Vadim Zeitlin
// Created: 2008-06-07
-// RCS-ID: $Id: button.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: button.h 68922 2011-08-27 14:11:28Z VZ $
// Copyright: (c) 2008 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -44,7 +44,8 @@ void UpdateMultilineStyle(HWND hwnd, const wxString& label);
// flags for ComputeBestSize() and GetFittingSize()
enum
{
- Size_AuthNeeded = 1
+ Size_AuthNeeded = 1,
+ Size_ExactFit = 2
};
// NB: All the functions below are implemented in src/msw/button.cpp
diff --git a/Externals/wxWidgets3/include/wx/msw/private/fswatcher.h b/Externals/wxWidgets3/include/wx/msw/private/fswatcher.h
index d03d4db8ca..f5ef3bbd38 100644
--- a/Externals/wxWidgets3/include/wx/msw/private/fswatcher.h
+++ b/Externals/wxWidgets3/include/wx/msw/private/fswatcher.h
@@ -3,7 +3,7 @@
// Purpose: File system watcher impl classes
// Author: Bartosz Bekier
// Created: 2009-05-26
-// RCS-ID: $Id: fswatcher.h 62678 2009-11-18 09:56:52Z VZ $
+// RCS-ID: $Id: fswatcher.h 67806 2011-05-28 19:35:13Z VZ $
// Copyright: (c) 2009 Bartosz Bekier
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -50,7 +50,7 @@ public:
m_path);
}
}
- delete m_overlapped;
+ free(m_overlapped);
}
bool IsOk() const
@@ -104,7 +104,6 @@ private:
wxDECLARE_NO_COPY_CLASS(wxFSWatchEntryMSW);
};
-
// ============================================================================
// wxFSWatcherImplMSW helper classes implementations
// ============================================================================
@@ -156,6 +155,48 @@ public:
return m_watches.insert(val).second;
}
+ // Removes a watch we're currently using. Notice that this doesn't happen
+ // immediately, CompleteRemoval() must be called later when it's really
+ // safe to delete the watch, i.e. after completion of the IO operation
+ // using it.
+ bool ScheduleForRemoval(const wxSharedPtr& watch)
+ {
+ wxCHECK_MSG( m_iocp != INVALID_HANDLE_VALUE, false, "IOCP not init" );
+ wxCHECK_MSG( watch->IsOk(), false, "Invalid watch" );
+
+ const wxString path = watch->GetPath();
+ wxFSWatchEntries::iterator it = m_watches.find(path);
+ wxCHECK_MSG( it != m_watches.end(), false,
+ "Can't remove a watch we don't use" );
+
+ // We can't just delete the watch here as we can have pending events
+ // for it and if we destroyed it now, we could get a dangling (or,
+ // worse, reused to point to another object) pointer in ReadEvents() so
+ // just remember that this one should be removed when CompleteRemoval()
+ // is called later.
+ m_removedWatches.insert(wxFSWatchEntries::value_type(path, watch));
+ m_watches.erase(it);
+
+ return true;
+ }
+
+ // Really remove the watch previously passed to ScheduleForRemoval().
+ //
+ // It's ok to call this for a watch that hadn't been removed before, in
+ // this case we'll just return false and do nothing.
+ bool CompleteRemoval(wxFSWatchEntryMSW* watch)
+ {
+ wxFSWatchEntries::iterator it = m_removedWatches.find(watch->GetPath());
+ if ( it == m_removedWatches.end() )
+ return false;
+
+ // Removing the object from the map will result in deleting the watch
+ // itself as it's not referenced from anywhere else now.
+ m_removedWatches.erase(it);
+
+ return true;
+ }
+
// post completion packet
bool PostEmptyStatus()
{
@@ -203,7 +244,13 @@ protected:
}
HANDLE m_iocp;
+
+ // The hash containing all the wxFSWatchEntryMSW objects currently being
+ // watched keyed by their paths.
wxFSWatchEntries m_watches;
+
+ // Contains the watches which had been removed but are still pending.
+ wxFSWatchEntries m_removedWatches;
};
diff --git a/Externals/wxWidgets3/include/wx/msw/private/hiddenwin.h b/Externals/wxWidgets3/include/wx/msw/private/hiddenwin.h
new file mode 100644
index 0000000000..7f592e2e2e
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/msw/private/hiddenwin.h
@@ -0,0 +1,31 @@
+///////////////////////////////////////////////////////////////////////////////
+// Name: wx/msw/private/hiddenwin.h
+// Purpose: Helper for creating a hidden window used by wxMSW internally.
+// Author: Vadim Zeitlin
+// Created: 2011-09-16
+// RCS-ID: $Id: hiddenwin.h 69170 2011-09-21 15:07:32Z VZ $
+// Copyright: (c) 2011 Vadim Zeitlin
+// Licence: wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_MSW_PRIVATE_HIDDENWIN_H_
+#define _WX_MSW_PRIVATE_HIDDENWIN_H_
+
+#include "wx/msw/private.h"
+
+/*
+ Creates a hidden window with supplied window proc registering the class for
+ it if necessary (i.e. the first time only). Caller is responsible for
+ destroying the window and unregistering the class (note that this must be
+ done because wxWidgets may be used as a DLL and so may be loaded/unloaded
+ multiple times into/from the same process so we can't rely on automatic
+ Windows class unregistration).
+
+ pclassname is a pointer to a caller stored classname, which must initially be
+ NULL. classname is the desired wndclass classname. If function successfully
+ registers the class, pclassname will be set to classname.
+ */
+extern "C" WXDLLIMPEXP_BASE HWND
+wxCreateHiddenWindow(LPCTSTR *pclassname, LPCTSTR classname, WNDPROC wndproc);
+
+#endif // _WX_MSW_PRIVATE_HIDDENWIN_H_
diff --git a/Externals/wxWidgets3/include/wx/msw/private/msgdlg.h b/Externals/wxWidgets3/include/wx/msw/private/msgdlg.h
index 339b2f5528..9598f7fc11 100644
--- a/Externals/wxWidgets3/include/wx/msw/private/msgdlg.h
+++ b/Externals/wxWidgets3/include/wx/msw/private/msgdlg.h
@@ -3,7 +3,7 @@
// Purpose: helper functions used with native message dialog
// Author: Rickard Westerlund
// Created: 2010-07-12
-// RCS-ID: $Id: msgdlg.h 65348 2010-08-18 22:48:28Z VZ $
+// RCS-ID: $Id: msgdlg.h 68537 2011-08-04 22:53:42Z VZ $
// Copyright: (c) 2010 wxWidgets team
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -19,7 +19,10 @@
// by the task dialogs only. Also notice that task dialogs are available for
// Unicode applications only.
#if defined(TD_WARNING_ICON) && wxUSE_UNICODE
- #define wxHAS_MSW_TASKDIALOG
+// (shuffle2) This is turned off because as of wxW svn r70933,
+// there is a bug with the wxPD_AUTO_HIDE style which can cause a non-dolphin
+// window to come to the foreground after auto-closing of the TaskDialog.
+// #define wxHAS_MSW_TASKDIALOG
#endif
// Provides methods for creating a task dialog.
@@ -30,8 +33,10 @@ namespace wxMSWMessageDialog
class wxMSWTaskDialogConfig
{
public:
+ enum { MAX_BUTTONS = 4 };
+
wxMSWTaskDialogConfig()
- : buttons(new TASKDIALOG_BUTTON[3]),
+ : buttons(new TASKDIALOG_BUTTON[MAX_BUTTONS]),
parent(NULL),
iconId(0),
style(0),
@@ -53,6 +58,7 @@ namespace wxMSWMessageDialog
wxString btnNoLabel;
wxString btnOKLabel;
wxString btnCancelLabel;
+ wxString btnHelpLabel;
// Will create a task dialog with it's paremeters for it's creation
// stored in the provided TASKDIALOGCONFIG parameter.
diff --git a/Externals/wxWidgets3/include/wx/msw/private/timer.h b/Externals/wxWidgets3/include/wx/msw/private/timer.h
index 145995f9dc..c45ba1df7e 100644
--- a/Externals/wxWidgets3/include/wx/msw/private/timer.h
+++ b/Externals/wxWidgets3/include/wx/msw/private/timer.h
@@ -3,7 +3,7 @@
// Purpose: wxTimer class
// Author: Julian Smart
// Created: 01/02/97
-// RCS-ID: $Id: timer.h 63486 2010-02-15 17:34:21Z RD $
+// RCS-ID: $Id: timer.h 70165 2011-12-29 14:42:13Z SN $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -19,7 +19,7 @@
class WXDLLIMPEXP_BASE wxMSWTimerImpl : public wxTimerImpl
{
public:
- wxMSWTimerImpl(wxTimer *timer) : wxTimerImpl(timer) { m_id = 0; };
+ wxMSWTimerImpl(wxTimer *timer) : wxTimerImpl(timer) { m_id = 0; }
virtual bool Start(int milliseconds = -1, bool oneShot = false);
virtual void Stop();
diff --git a/Externals/wxWidgets3/include/wx/msw/progdlg.h b/Externals/wxWidgets3/include/wx/msw/progdlg.h
index 3c1f69407b..096c89a94d 100644
--- a/Externals/wxWidgets3/include/wx/msw/progdlg.h
+++ b/Externals/wxWidgets3/include/wx/msw/progdlg.h
@@ -3,7 +3,7 @@
// Purpose: wxProgressDialog
// Author: Rickard Westerlund
// Created: 2010-07-22
-// RCS-ID: $Id: progdlg.h 65574 2010-09-20 13:11:03Z VZ $
+// RCS-ID: $Id: progdlg.h 69041 2011-09-10 03:26:37Z RD $
// Copyright: (c) 2010 wxWidgets team
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -47,6 +47,8 @@ public:
// Must provide overload to avoid hiding it (and warnings about it)
virtual void Update() { wxGenericProgressDialog::Update(); }
+ virtual WXWidget GetHandle() const;
+
private:
// Performs common routines to Update() and Pulse(). Requires the
// shared object to have been entered.
diff --git a/Externals/wxWidgets3/include/wx/msw/radiobox.h b/Externals/wxWidgets3/include/wx/msw/radiobox.h
index 589bcdc462..4caefafb8f 100644
--- a/Externals/wxWidgets3/include/wx/msw/radiobox.h
+++ b/Externals/wxWidgets3/include/wx/msw/radiobox.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
-// RCS-ID: $Id: radiobox.h 65957 2010-10-30 23:50:39Z VZ $
+// RCS-ID: $Id: radiobox.h 70498 2012-02-02 14:26:06Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -149,6 +149,9 @@ protected:
// get the total size occupied by the radio box buttons
wxSize GetTotalButtonSize(const wxSize& sizeBtn) const;
+ // Adjust all the buttons to the new window size.
+ void PositionAllButtons(int x, int y, int width, int height);
+
virtual void DoSetSize(int x, int y,
int width, int height,
int sizeFlags = wxSIZE_AUTO);
@@ -163,6 +166,8 @@ protected:
virtual WXHRGN MSWGetRegionWithoutChildren();
#endif // __WXWINCE__
+ // resolve ambiguity in base classes
+ virtual wxBorder GetDefaultBorder() const { return wxRadioBoxBase::GetDefaultBorder(); }
// the buttons we contain
wxSubwindows *m_radioButtons;
diff --git a/Externals/wxWidgets3/include/wx/msw/setup0.h b/Externals/wxWidgets3/include/wx/msw/setup0.h
index f3c5cf733c..7b0bf0b25f 100644
--- a/Externals/wxWidgets3/include/wx/msw/setup0.h
+++ b/Externals/wxWidgets3/include/wx/msw/setup0.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
-// RCS-ID: $Id: setup0.h 67062 2011-02-27 12:48:07Z VZ $
+// RCS-ID: $Id: setup0.h 69463 2011-10-18 21:57:02Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -201,15 +201,6 @@
// Recommended setting: 0 (this is still work in progress...)
#define wxUSE_EXTENDED_RTTI 0
-// Set wxUSE_STL to 1 to derive wxList(Foo) and wxArray(Foo) from
-// std::list and std::vector, with a compatibility interface,
-// and for wxHashMap to be implemented with templates.
-//
-// Default is 0
-//
-// Recommended setting: YMMV
-#define wxUSE_STL 0
-
// Support for message/error logging. This includes wxLogXXX() functions and
// wxLog and derived classes. Don't set this to 0 unless you really know what
// you are doing.
@@ -261,44 +252,6 @@
// Recommended setting: 1 as setting it to 0 disables many other things
#define wxUSE_STREAMS 1
-// This is not a real option but is used as the default value for
-// wxUSE_STD_IOSTREAM and wxUSE_STD_STRING.
-//
-// Currently the Digital Mars and Watcom compilers come without standard C++
-// library headers by default, wxUSE_STD_STRING can be set to 1 if you do have
-// them (e.g. from STLPort).
-//
-// VC++ 5.0 does include standard C++ library headers, however they produce
-// many warnings that can't be turned off when compiled at warning level 4.
-#if defined(__DMC__) || defined(__WATCOMC__) \
- || (defined(_MSC_VER) && _MSC_VER < 1200)
- #define wxUSE_STD_DEFAULT 0
-#else
- #define wxUSE_STD_DEFAULT 1
-#endif
-
-// Use standard C++ streams if 1 instead of wx streams in some places. If
-// disabled (default), wx streams are used everywhere and wxWidgets doesn't
-// depend on the standard streams library.
-//
-// Notice that enabling this does not replace wx streams with std streams
-// everywhere, in a lot of places wx streams are used no matter what.
-//
-// Default is 0
-//
-// Recommended setting: 1 if you use the standard streams anyhow and so
-// dependency on the standard streams library is not a
-// problem
-#define wxUSE_STD_IOSTREAM wxUSE_STD_DEFAULT
-
-// Enable conversion to standard C++ string if 1.
-//
-// Default is 1 for most compilers.
-//
-// Recommended setting: 1 unless you want to ensure your program doesn't use
-// the standard C++ library at all.
-#define wxUSE_STD_STRING wxUSE_STD_DEFAULT
-
// Support for positional parameters (e.g. %1$d, %2$s ...) in wxVsnprintf.
// Note that if the system's implementation does not support positional
// parameters, setting this to 1 forces the use of the wxWidgets implementation
@@ -314,6 +267,107 @@
// Recommended setting: 1 if you want to support multiple languages
#define wxUSE_PRINTF_POS_PARAMS 1
+
+// ----------------------------------------------------------------------------
+// Interoperability with the standard library.
+// ----------------------------------------------------------------------------
+
+// Set wxUSE_STL to 1 to enable maximal interoperability with the standard
+// library, even at the cost of backwards compatibility.
+//
+// Default is 0
+//
+// Recommended setting: 0 as the options below already provide a relatively
+// good level of interoperability and changing this option arguably isn't worth
+// diverging from the official builds of the library.
+#define wxUSE_STL 0
+
+// This is not a real option but is used as the default value for
+// wxUSE_STD_IOSTREAM, wxUSE_STD_STRING and wxUSE_STD_CONTAINERS.
+//
+// Currently the Digital Mars and Watcom compilers come without standard C++
+// library headers by default, wxUSE_STD_STRING can be set to 1 if you do have
+// them (e.g. from STLPort).
+//
+// VC++ 5.0 does include standard C++ library headers, however they produce
+// many warnings that can't be turned off when compiled at warning level 4.
+#if defined(__DMC__) || defined(__WATCOMC__) \
+ || (defined(_MSC_VER) && _MSC_VER < 1200)
+ #define wxUSE_STD_DEFAULT 0
+#else
+ #define wxUSE_STD_DEFAULT 1
+#endif
+
+// Use standard C++ containers to implement wxVector<>, wxStack<>, wxDList<>
+// and wxHashXXX<> classes. If disabled, wxWidgets own (mostly compatible but
+// usually more limited) implementations are used which allows to avoid the
+// dependency on the C++ run-time library.
+//
+// Notice that the compilers mentioned in wxUSE_STD_DEFAULT comment above don't
+// support using standard containers and that VC6 needs non-default options for
+// such build to avoid getting "fatal error C1076: compiler limit : internal
+// heap limit reached; use /Zm to specify a higher limit" in its own standard
+// headers, so you need to ensure you do increase the heap size before enabling
+// this option for this compiler.
+//
+// Default is 0 for compatibility reasons.
+//
+// Recommended setting: 1 unless compatibility with the official wxWidgets
+// build and/or the existing code is a concern.
+#define wxUSE_STD_CONTAINERS 0
+
+// Use standard C++ streams if 1 instead of wx streams in some places. If
+// disabled, wx streams are used everywhere and wxWidgets doesn't depend on the
+// standard streams library.
+//
+// Notice that enabling this does not replace wx streams with std streams
+// everywhere, in a lot of places wx streams are used no matter what.
+//
+// Default is 1 if compiler supports it.
+//
+// Recommended setting: 1 if you use the standard streams anyhow and so
+// dependency on the standard streams library is not a
+// problem
+#define wxUSE_STD_IOSTREAM wxUSE_STD_DEFAULT
+
+// Enable minimal interoperability with the standard C++ string class if 1.
+// "Minimal" means that wxString can be constructed from std::string or
+// std::wstring but can't be implicitly converted to them. You need to enable
+// the option below for the latter.
+//
+// Default is 1 for most compilers.
+//
+// Recommended setting: 1 unless you want to ensure your program doesn't use
+// the standard C++ library at all.
+#define wxUSE_STD_STRING wxUSE_STD_DEFAULT
+
+// Make wxString as much interchangeable with std::[w]string as possible, in
+// particular allow implicit conversion of wxString to either of these classes.
+// This comes at a price (or a benefit, depending on your point of view) of not
+// allowing implicit conversion to "const char *" and "const wchar_t *".
+//
+// Because a lot of existing code relies on these conversions, this option is
+// disabled by default but can be enabled for your build if you don't care
+// about compatibility.
+//
+// Default is 0 if wxUSE_STL has its default value or 1 if it is enabled.
+//
+// Recommended setting: 0 to remain compatible with the official builds of
+// wxWidgets.
+#define wxUSE_STD_STRING_CONV_IN_WXSTRING wxUSE_STL
+
+// VC++ 4.2 and above allows and but you can't mix
+// them. Set this option to 1 to use , 0 to use .
+//
+// Note that newer compilers (including VC++ 7.1 and later) don't support
+// wxUSE_IOSTREAMH == 1 and so will be used anyhow.
+//
+// Default is 0.
+//
+// Recommended setting: 0, only set to 1 if you use a really old compiler
+#define wxUSE_IOSTREAMH 0
+
+
// ----------------------------------------------------------------------------
// non GUI features selection
// ----------------------------------------------------------------------------
@@ -651,6 +705,34 @@
// Recommended setting: 1
#define wxUSE_STC 1
+// Use wxWidget's web viewing classes
+//
+// Default is 1
+//
+// Recommended setting: 1
+#define wxUSE_WEBVIEW 1
+
+// Use the IE wxWebView backend
+//
+// Default is 1 on MSW
+//
+// Recommended setting: 1
+#ifdef __WXMSW__
+#define wxUSE_WEBVIEW_IE 1
+#else
+#define wxUSE_WEBVIEW_IE 0
+#endif
+
+// Use the WebKit wxWebView backend
+//
+// Default is 1 on GTK and OSX
+//
+// Recommended setting: 1
+#if defined(__WXGTK__) || defined(__WXOSX__)
+#define wxUSE_WEBVIEW_WEBKIT 1
+#else
+#define wxUSE_WEBVIEW_WEBKIT 0
+#endif
// Enable the new wxGraphicsPath and wxGraphicsContext classes for an advanced
// 2D drawing API. (Still somewhat experimental)
@@ -749,6 +831,7 @@
//
// Recommended setting: 1
#define wxUSE_ANIMATIONCTRL 1 // wxAnimationCtrl
+#define wxUSE_BANNERWINDOW 1 // wxBannerWindow
#define wxUSE_BUTTON 1 // wxButton
#define wxUSE_BMPBUTTON 1 // wxBitmapButton
#define wxUSE_CALENDARCTRL 1 // wxCalendarCtrl
@@ -784,8 +867,10 @@
#define wxUSE_STATTEXT 1 // wxStaticText
#define wxUSE_STATBMP 1 // wxStaticBitmap
#define wxUSE_TEXTCTRL 1 // wxTextCtrl
+#define wxUSE_TIMEPICKCTRL 1 // wxTimePickerCtrl
#define wxUSE_TOGGLEBTN 1 // requires wxButton
#define wxUSE_TREECTRL 1 // wxTreeCtrl
+#define wxUSE_TREELISTCTRL 1 // wxTreeListCtrl
// Use a status bar class? Depending on the value of wxUSE_NATIVE_STATUSBAR
// below either wxStatusBar95 or a generic wxStatusBar will be used.
@@ -1002,6 +1087,14 @@
// Recommended setting: 1
#define wxUSE_NOTIFICATION_MESSAGE 1
+// wxRichToolTip is a customizable tooltip class which has more functionality
+// than the stock (but native, unlike this class) wxToolTip.
+//
+// Default is 1.
+//
+// Recommended setting: 1 (but can be safely set to 0 if you don't need it)
+#define wxUSE_RICHTOOLTIP 1
+
// Use wxSashWindow class.
//
// Default is 1.
@@ -1307,28 +1400,15 @@
// to create files in SVG (Scalable Vector Graphics) format.
#define wxUSE_SVG 1
-// ----------------------------------------------------------------------------
-// other compiler (mis)features
-// ----------------------------------------------------------------------------
-
-// Set this to 0 if your compiler can't cope with omission of prototype
-// parameters.
+// Should wxDC provide SetTransformMatrix() and related methods?
//
-// Default is 1.
+// Default is 1 but can be set to 0 if this functionality is not used. Notice
+// that currently only wxMSW supports this so setting this to 0 doesn't change
+// much for non-MSW platforms (although it will still save a few bytes
+// probably).
//
-// Recommended setting: 1 (should never need to set this to 0)
-#define REMOVE_UNUSED_ARG 1
-
-// VC++ 4.2 and above allows and but you can't mix
-// them. Set this option to 1 to use , 0 to use .
-//
-// Note that newer compilers (including VC++ 7.1 and later) don't support
-// wxUSE_IOSTREAMH == 1 and so will be used anyhow.
-//
-// Default is 0.
-//
-// Recommended setting: 0, only set to 1 if you use a really old compiler
-#define wxUSE_IOSTREAMH 0
+// Recommended setting: 1.
+#define wxUSE_DC_TRANSFORM_MATRIX 1
// ----------------------------------------------------------------------------
// image format support
@@ -1452,7 +1532,7 @@
// Recommended setting: 1, required by wxMediaCtrl
#define wxUSE_ACTIVEX 1
-// wxDC cacheing implementation
+// wxDC caching implementation
#define wxUSE_DC_CACHEING 1
// Set this to 1 to enable wxDIB class used internally for manipulating
@@ -1533,6 +1613,14 @@
// Recommended setting: 0, this is mainly used for testing
#define wxUSE_DATEPICKCTRL_GENERIC 0
+// Set this to 1 to be able to use wxTimePickerCtrlGeneric in addition to the
+// native wxTimePickerCtrl for the platforms that have the latter (MSW).
+//
+// Default is 0.
+//
+// Recommended setting: 0, this is mainly used for testing
+#define wxUSE_TIMEPICKCTRL_GENERIC 0
+
// ----------------------------------------------------------------------------
// Crash debugging helpers
// ----------------------------------------------------------------------------
diff --git a/Externals/wxWidgets3/include/wx/msw/setup_inc.h b/Externals/wxWidgets3/include/wx/msw/setup_inc.h
index 5a24539c8b..176796629d 100644
--- a/Externals/wxWidgets3/include/wx/msw/setup_inc.h
+++ b/Externals/wxWidgets3/include/wx/msw/setup_inc.h
@@ -3,7 +3,7 @@
// Purpose: MSW-specific setup.h options
// Author: Vadim Zeitlin
// Created: 2007-07-21 (extracted from wx/msw/setup0.h)
-// RCS-ID: $Id: setup_inc.h 50586 2007-12-08 20:51:21Z VZ $
+// RCS-ID: $Id: setup_inc.h 69224 2011-09-29 13:43:15Z VZ $
// Copyright: (c) 2007 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -63,7 +63,7 @@
// Recommended setting: 1, required by wxMediaCtrl
#define wxUSE_ACTIVEX 1
-// wxDC cacheing implementation
+// wxDC caching implementation
#define wxUSE_DC_CACHEING 1
// Set this to 1 to enable wxDIB class used internally for manipulating
@@ -144,6 +144,14 @@
// Recommended setting: 0, this is mainly used for testing
#define wxUSE_DATEPICKCTRL_GENERIC 0
+// Set this to 1 to be able to use wxTimePickerCtrlGeneric in addition to the
+// native wxTimePickerCtrl for the platforms that have the latter (MSW).
+//
+// Default is 0.
+//
+// Recommended setting: 0, this is mainly used for testing
+#define wxUSE_TIMEPICKCTRL_GENERIC 0
+
// ----------------------------------------------------------------------------
// Crash debugging helpers
// ----------------------------------------------------------------------------
diff --git a/Externals/wxWidgets3/include/wx/msw/slider.h b/Externals/wxWidgets3/include/wx/msw/slider.h
index 7ac25508c5..99267d7ca3 100644
--- a/Externals/wxWidgets3/include/wx/msw/slider.h
+++ b/Externals/wxWidgets3/include/wx/msw/slider.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
-// RCS-ID: $Id: slider.h 66844 2011-02-05 16:36:30Z VZ $
+// RCS-ID: $Id: slider.h 68230 2011-07-11 22:49:33Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -106,6 +106,10 @@ protected:
wxRect GetBoundingBox() const;
// Get the height and, if the pointers are non NULL, widths of both labels.
+ //
+ // Notice that the return value will be 0 if we don't have wxSL_LABELS
+ // style but we do fill widthMin and widthMax even if we don't have
+ // wxSL_MIN_MAX_LABELS style set so the caller should account for it.
int GetLabelsSize(int *widthMin = NULL, int *widthMax = NULL) const;
@@ -123,8 +127,6 @@ protected:
int m_pageSize;
int m_lineSize;
int m_tickFreq;
- int m_minLabelWidth;
- int m_maxLabelWidth;
// flag needed to detect whether we're getting THUMBRELEASE event because
// of dragging the thumb or scrolling the mouse wheel
diff --git a/Externals/wxWidgets3/include/wx/msw/sound.h b/Externals/wxWidgets3/include/wx/msw/sound.h
index d6d3061f7b..f8b1134229 100644
--- a/Externals/wxWidgets3/include/wx/msw/sound.h
+++ b/Externals/wxWidgets3/include/wx/msw/sound.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
-// RCS-ID: $Id: sound.h 58757 2009-02-08 11:45:59Z VZ $
+// RCS-ID: $Id: sound.h 69178 2011-09-21 15:08:02Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -19,14 +19,14 @@ class WXDLLIMPEXP_ADV wxSound : public wxSoundBase
public:
wxSound();
wxSound(const wxString& fileName, bool isResource = false);
- wxSound(int size, const wxByte* data);
+ wxSound(size_t size, const void* data);
virtual ~wxSound();
// Create from resource or file
bool Create(const wxString& fileName, bool isResource = false);
// Create from data
- bool Create(int size, const wxByte* data);
+ bool Create(size_t size, const void* data);
bool IsOk() const { return m_data != NULL; }
diff --git a/Externals/wxWidgets3/include/wx/msw/spinctrl.h b/Externals/wxWidgets3/include/wx/msw/spinctrl.h
index 6e986bf94e..c1c0f7975d 100644
--- a/Externals/wxWidgets3/include/wx/msw/spinctrl.h
+++ b/Externals/wxWidgets3/include/wx/msw/spinctrl.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 22.07.99
-// RCS-ID: $Id: spinctrl.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: spinctrl.h 70799 2012-03-04 00:29:48Z VZ $
// Copyright: (c) Vadim Zeitlin
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -30,7 +30,7 @@ WX_DEFINE_EXPORTED_ARRAY_PTR(wxSpinCtrl *, wxArraySpins);
class WXDLLIMPEXP_CORE wxSpinCtrl : public wxSpinButton
{
public:
- wxSpinCtrl() { }
+ wxSpinCtrl() { Init(); }
wxSpinCtrl(wxWindow *parent,
wxWindowID id = wxID_ANY,
@@ -41,6 +41,8 @@ public:
int min = 0, int max = 100, int initial = 0,
const wxString& name = wxT("wxSpinCtrl"))
{
+ Init();
+
Create(parent, id, value, pos, size, style, min, max, initial, name);
}
@@ -143,6 +145,9 @@ protected:
bool m_blockEvent;
private:
+ // Common part of all ctors.
+ void Init();
+
DECLARE_DYNAMIC_CLASS(wxSpinCtrl)
DECLARE_EVENT_TABLE()
wxDECLARE_NO_COPY_CLASS(wxSpinCtrl);
diff --git a/Externals/wxWidgets3/include/wx/msw/statusbar.h b/Externals/wxWidgets3/include/wx/msw/statusbar.h
index 290fda2c08..c69be90c93 100644
--- a/Externals/wxWidgets3/include/wx/msw/statusbar.h
+++ b/Externals/wxWidgets3/include/wx/msw/statusbar.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 04.04.98
-// RCS-ID: $Id: statusbar.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: statusbar.h 70310 2012-01-10 17:01:09Z VZ $
// Copyright: (c) 1998 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -76,8 +76,10 @@ protected:
// used by DoUpdateStatusText()
wxClientDC *m_pDC;
+#if wxUSE_TOOLTIPS
// the tooltips used when wxSTB_SHOW_TIPS is given
wxVector m_tooltips;
+#endif
private:
struct MSWBorders
diff --git a/Externals/wxWidgets3/include/wx/msw/textctrl.h b/Externals/wxWidgets3/include/wx/msw/textctrl.h
index 0c5dda1db6..cbcf8b772e 100644
--- a/Externals/wxWidgets3/include/wx/msw/textctrl.h
+++ b/Externals/wxWidgets3/include/wx/msw/textctrl.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
-// RCS-ID: $Id: textctrl.h 65564 2010-09-18 16:26:30Z VZ $
+// RCS-ID: $Id: textctrl.h 68450 2011-07-29 15:11:54Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -198,6 +198,8 @@ protected:
virtual void DoSetValue(const wxString &value, int flags = 0);
+ virtual wxPoint DoPositionToCoords(long pos) const;
+
// return true if this control has a user-set limit on amount of text (i.e.
// the limit is due to a previous call to SetMaxLength() and not built in)
bool HasSpaceLimit(unsigned int *len) const;
diff --git a/Externals/wxWidgets3/include/wx/msw/textentry.h b/Externals/wxWidgets3/include/wx/msw/textentry.h
index 0f5b195092..3ba6dcb2ea 100644
--- a/Externals/wxWidgets3/include/wx/msw/textentry.h
+++ b/Externals/wxWidgets3/include/wx/msw/textentry.h
@@ -3,7 +3,7 @@
// Purpose: wxMSW-specific wxTextEntry implementation
// Author: Vadim Zeitlin
// Created: 2007-09-26
-// RCS-ID: $Id: textentry.h 61834 2009-09-05 12:39:12Z JMS $
+// RCS-ID: $Id: textentry.h 68918 2011-08-27 14:11:13Z VZ $
// Copyright: (c) 2007 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -11,6 +11,8 @@
#ifndef _WX_MSW_TEXTENTRY_H_
#define _WX_MSW_TEXTENTRY_H_
+class wxTextAutoCompleteData; // private class used only by wxTextEntry itself
+
// ----------------------------------------------------------------------------
// wxTextEntry: common part of wxComboBox and (single line) wxTextCtrl
// ----------------------------------------------------------------------------
@@ -18,12 +20,8 @@
class WXDLLIMPEXP_CORE wxTextEntry : public wxTextEntryBase
{
public:
- wxTextEntry()
- {
-#if wxUSE_OLE
- m_enumStrings = NULL;
-#endif // wxUSE_OLE
- }
+ wxTextEntry();
+ virtual ~wxTextEntry();
// implement wxTextEntryBase pure virtual methods
virtual void WriteText(const wxString& text);
@@ -46,13 +44,6 @@ public:
{ DoSetSelection(from, to); }
virtual void GetSelection(long *from, long *to) const;
- // auto-completion uses COM under Windows so they won't work without
- // wxUSE_OLE as OleInitialize() is not called then
-#if wxUSE_OLE
- virtual bool AutoComplete(const wxArrayString& choices);
- virtual bool AutoCompleteFileNames();
-#endif // wxUSE_OLE
-
virtual bool IsEditable() const;
virtual void SetEditable(bool editable);
@@ -80,13 +71,29 @@ protected:
virtual bool DoSetMargins(const wxPoint& pt);
virtual wxPoint DoGetMargins() const;
+ // auto-completion uses COM under Windows so they won't work without
+ // wxUSE_OLE as OleInitialize() is not called then
+#if wxUSE_OLE
+ virtual bool DoAutoCompleteStrings(const wxArrayString& choices);
+ virtual bool DoAutoCompleteFileNames(int flags);
+ virtual bool DoAutoCompleteCustom(wxTextCompleter *completer);
+#endif // wxUSE_OLE
+
private:
// implement this to return the HWND of the EDIT control
virtual WXHWND GetEditHWND() const = 0;
#if wxUSE_OLE
- // enumerator for strings currently used for auto-completion or NULL
- class wxIEnumString *m_enumStrings;
+ // Get the auto-complete object creating it if necessary. Returns NULL if
+ // creating it failed.
+ wxTextAutoCompleteData *GetOrCreateCompleter();
+
+ // Various auto-completion-related stuff, only used if any of AutoComplete()
+ // methods are called. Use the function above to access it.
+ wxTextAutoCompleteData *m_autoCompleteData;
+
+ // It needs to call our GetEditableWindow() and GetEditHWND() methods.
+ friend class wxTextAutoCompleteData;
#endif // wxUSE_OLE
};
diff --git a/Externals/wxWidgets3/include/wx/msw/tglbtn.h b/Externals/wxWidgets3/include/wx/msw/tglbtn.h
index ec15dea83a..7711f70bb6 100644
--- a/Externals/wxWidgets3/include/wx/msw/tglbtn.h
+++ b/Externals/wxWidgets3/include/wx/msw/tglbtn.h
@@ -5,7 +5,7 @@
// Author: John Norris, minor changes by Axel Schlueter
// Modified by:
// Created: 08.02.01
-// RCS-ID: $Id: tglbtn.h 66992 2011-02-22 13:25:30Z VZ $
+// RCS-ID: $Id: tglbtn.h 67931 2011-06-14 13:00:42Z VZ $
// Copyright: (c) 2000 Johnny C. Norris II
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -15,71 +15,11 @@
#include "wx/bitmap.h"
-//-----------------------------------------------------------------------------
-// wxBitmapToggleButton
-//-----------------------------------------------------------------------------
-
-
-class WXDLLIMPEXP_CORE wxBitmapToggleButton: public wxToggleButtonBase
-{
-public:
- // construction/destruction
- wxBitmapToggleButton() { Init(); }
- wxBitmapToggleButton(wxWindow *parent,
- wxWindowID id,
- const wxBitmap& label,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxCheckBoxNameStr)
- {
- Create(parent, id, label, pos, size, style, validator, name);
- }
-
- // Create the control
- bool Create(wxWindow *parent,
- wxWindowID id,
- const wxBitmap& label,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize, long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxCheckBoxNameStr);
-
- // Get/set the value
- void SetValue(bool state);
- bool GetValue() const;
-
- // Set the label
- virtual void SetLabel(const wxString& label) { wxControl::SetLabel(label); }
- virtual void SetLabel(const wxBitmap& label);
- bool Enable(bool enable = true);
-
-protected:
- void Init();
-
- wxBitmap m_bitmap;
- wxBitmap m_disabledBitmap;
- bool m_capturing;
- bool m_depressed,m_oldValue;
-
- void OnPaint(wxPaintEvent &event);
- void OnMouse(wxMouseEvent &event);
- void OnChar(wxKeyEvent &event);
- void OnSize(wxSizeEvent &event);
-
- virtual wxSize DoGetBestSize() const;
-
-private:
- DECLARE_EVENT_TABLE()
- DECLARE_DYNAMIC_CLASS(wxBitmapToggleButton)
-};
-
// Checkbox item (single checkbox)
class WXDLLIMPEXP_CORE wxToggleButton : public wxToggleButtonBase
{
public:
- wxToggleButton() {}
+ wxToggleButton() { Init(); }
wxToggleButton(wxWindow *parent,
wxWindowID id,
const wxString& label,
@@ -104,23 +44,68 @@ public:
virtual void SetValue(bool value);
virtual bool GetValue() const ;
- virtual void SetLabel(const wxString& label);
-
virtual bool MSWCommand(WXUINT param, WXWORD id);
virtual void Command(wxCommandEvent& event);
+ virtual State GetNormalState() const;
+
// returns true if the platform should explicitly apply a theme border
virtual bool CanApplyThemeBorder() const { return false; }
protected:
virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
- virtual wxSize DoGetBestSize() const;
virtual WXDWORD MSWGetStyle(long flags, WXDWORD *exstyle = NULL) const;
+ void Init();
+
+ // current state of the button (when owner-drawn)
+ bool m_state;
+
private:
DECLARE_DYNAMIC_CLASS_NO_COPY(wxToggleButton)
};
+//-----------------------------------------------------------------------------
+// wxBitmapToggleButton
+//-----------------------------------------------------------------------------
+
+
+class WXDLLIMPEXP_CORE wxBitmapToggleButton: public wxToggleButton
+{
+public:
+ // construction/destruction
+ wxBitmapToggleButton() {}
+ wxBitmapToggleButton(wxWindow *parent,
+ wxWindowID id,
+ const wxBitmap& label,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = 0,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxCheckBoxNameStr)
+ {
+ Create(parent, id, label, pos, size, style, validator, name);
+ }
+
+ // Create the control
+ bool Create(wxWindow *parent,
+ wxWindowID id,
+ const wxBitmap& label,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize, long style = 0,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxCheckBoxNameStr);
+
+ // deprecated synonym for SetBitmapLabel()
+ wxDEPRECATED_INLINE( void SetLabel(const wxBitmap& bitmap),
+ SetBitmapLabel(bitmap); )
+ // prevent virtual function hiding
+ virtual void SetLabel(const wxString& label) { wxToggleButton::SetLabel(label); }
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxBitmapToggleButton)
+};
+
#endif // _WX_TOGGLEBUTTON_H_
diff --git a/Externals/wxWidgets3/include/wx/msw/timectrl.h b/Externals/wxWidgets3/include/wx/msw/timectrl.h
new file mode 100644
index 0000000000..8fbb70196e
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/msw/timectrl.h
@@ -0,0 +1,61 @@
+///////////////////////////////////////////////////////////////////////////////
+// Name: wx/msw/timectrl.h
+// Purpose: wxTimePickerCtrl for Windows.
+// Author: Vadim Zeitlin
+// Created: 2011-09-22
+// RCS-ID: $Id: timectrl.h 69224 2011-09-29 13:43:15Z VZ $
+// Copyright: (c) 2011 Vadim Zeitlin
+// Licence: wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_MSW_TIMECTRL_H_
+#define _WX_MSW_TIMECTRL_H_
+
+// ----------------------------------------------------------------------------
+// wxTimePickerCtrl
+// ----------------------------------------------------------------------------
+
+class WXDLLIMPEXP_ADV wxTimePickerCtrl : public wxTimePickerCtrlBase
+{
+public:
+ // ctors
+ wxTimePickerCtrl() { }
+
+ wxTimePickerCtrl(wxWindow *parent,
+ wxWindowID id,
+ const wxDateTime& dt = wxDefaultDateTime,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxTP_DEFAULT,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxTimePickerCtrlNameStr)
+ {
+ Create(parent, id, dt, pos, size, style, validator, name);
+ }
+
+ bool Create(wxWindow *parent,
+ wxWindowID id,
+ const wxDateTime& dt = wxDefaultDateTime,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxTP_DEFAULT,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxTimePickerCtrlNameStr)
+ {
+ return MSWCreateDateTimePicker(parent, id, dt,
+ pos, size, style,
+ validator, name);
+ }
+
+ // Override MSW-specific functions used during control creation.
+ virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
+
+protected:
+ virtual wxLocaleInfo MSWGetFormat() const;
+ virtual bool MSWAllowsNone() const { return false; }
+ virtual bool MSWOnDateTimeChange(const tagNMDATETIMECHANGE& dtch);
+
+ wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxTimePickerCtrl);
+};
+
+#endif // _WX_MSW_TIMECTRL_H_
diff --git a/Externals/wxWidgets3/include/wx/msw/toolbar.h b/Externals/wxWidgets3/include/wx/msw/toolbar.h
index 9f1c702ee4..1fe458f2aa 100644
--- a/Externals/wxWidgets3/include/wx/msw/toolbar.h
+++ b/Externals/wxWidgets3/include/wx/msw/toolbar.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
-// RCS-ID: $Id: toolbar.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: toolbar.h 70854 2012-03-10 00:01:09Z RD $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -85,6 +85,17 @@ public:
virtual WXHBRUSH MSWGetBgBrushForChild(WXHDC hDC, wxWindowMSW *child);
#endif // wxHAS_MSW_BACKGROUND_ERASE_HOOK
+ virtual wxToolBarToolBase *CreateTool(int id,
+ const wxString& label,
+ const wxBitmap& bmpNormal,
+ const wxBitmap& bmpDisabled = wxNullBitmap,
+ wxItemKind kind = wxITEM_NORMAL,
+ wxObject *clientData = NULL,
+ const wxString& shortHelp = wxEmptyString,
+ const wxString& longHelp = wxEmptyString);
+
+ virtual wxToolBarToolBase *CreateTool(wxControl *control,
+ const wxString& label);
protected:
// common part of all ctors
void Init();
@@ -103,18 +114,6 @@ protected:
virtual void DoToggleTool(wxToolBarToolBase *tool, bool toggle);
virtual void DoSetToggle(wxToolBarToolBase *tool, bool toggle);
- virtual wxToolBarToolBase *CreateTool(int id,
- const wxString& label,
- const wxBitmap& bmpNormal,
- const wxBitmap& bmpDisabled,
- wxItemKind kind,
- wxObject *clientData,
- const wxString& shortHelp,
- const wxString& longHelp);
-
- virtual wxToolBarToolBase *CreateTool(wxControl *control,
- const wxString& label);
-
// return the appropriate size and flags for the toolbar control
virtual wxSize DoGetBestSize() const;
diff --git a/Externals/wxWidgets3/include/wx/msw/toplevel.h b/Externals/wxWidgets3/include/wx/msw/toplevel.h
index 48ef335a42..55afcbdb17 100644
--- a/Externals/wxWidgets3/include/wx/msw/toplevel.h
+++ b/Externals/wxWidgets3/include/wx/msw/toplevel.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 20.09.01
-// RCS-ID: $Id: toplevel.h 65556 2010-09-16 09:05:48Z VS $
+// RCS-ID: $Id: toplevel.h 70881 2012-03-12 11:42:49Z JS $
// Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -57,12 +57,10 @@ public:
virtual void SetLayoutDirection(wxLayoutDirection dir);
-#ifndef __WXWINCE__
- virtual bool SetShape(const wxRegion& region);
-#endif // __WXWINCE__
virtual void RequestUserAttention(int flags = wxUSER_ATTENTION_INFO);
virtual bool Show(bool show = true);
+ virtual void Raise();
virtual void ShowWithoutActivating();
virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
@@ -77,6 +75,19 @@ public:
virtual bool CanSetTransparent();
+ // MSW-specific methods
+ // --------------------
+
+ // Return the menu representing the "system" menu of the window. You can
+ // call wxMenu::AppendWhatever() methods on it but removing items from it
+ // is in general not a good idea.
+ //
+ // The pointer returned by this method belongs to the window and will be
+ // deleted when the window itself is, do not delete it yourself. May return
+ // NULL if getting the system menu failed.
+ wxMenu *MSWGetSystemMenu() const;
+
+
// implementation from now on
// --------------------------
@@ -141,8 +152,6 @@ protected:
virtual void DoFreeze();
virtual void DoThaw();
- virtual void DoEnable(bool enable);
-
// helper of SetIcons(): calls gets the icon with the size specified by the
// given system metrics (SM_C{X|Y}[SM]ICON) from the bundle and sets it
// using WM_SETICON with the specified wParam (ICOM_SMALL or ICON_BIG);
@@ -170,7 +179,16 @@ protected:
bool m_fsIsMaximized;
bool m_fsIsShowing;
- // the last focused child: we restore focus to it on activation
+ // Save the current focus to m_winLastFocused if we're not iconized (the
+ // focus is always NULL when we're iconized).
+ void DoSaveLastFocus();
+
+ // Restore focus to m_winLastFocused if possible and needed.
+ void DoRestoreLastFocus();
+
+ // The last focused child: we remember it when we're deactivated and
+ // restore focus to it when we're activated (this is done here) or restored
+ // from iconic state (done by wxFrame).
wxWindow *m_winLastFocused;
#if defined(__SMARTPHONE__) && defined(__WXWINCE__)
@@ -214,6 +232,10 @@ private:
void* m_activateInfo;
#endif
+ // The system menu: initially NULL but can be set (once) by
+ // MSWGetSystemMenu(). Owned by this window.
+ wxMenu *m_menuSystem;
+
DECLARE_EVENT_TABLE()
wxDECLARE_NO_COPY_CLASS(wxTopLevelWindowMSW);
};
diff --git a/Externals/wxWidgets3/include/wx/msw/webview_ie.h b/Externals/wxWidgets3/include/wx/msw/webview_ie.h
new file mode 100644
index 0000000000..62b9a49a01
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/msw/webview_ie.h
@@ -0,0 +1,518 @@
+/////////////////////////////////////////////////////////////////////////////
+// Name: include/wx/msw/webviewie.h
+// Purpose: wxMSW IE wxWebView backend
+// Author: Marianne Gagnon
+// Id: $Id: webview_ie.h 70499 2012-02-02 20:32:08Z SJL $
+// Copyright: (c) 2010 Marianne Gagnon, 2011 Steven Lamerton
+// Licence: wxWindows licence
+/////////////////////////////////////////////////////////////////////////////
+
+#ifndef wxWebViewIE_H
+#define wxWebViewIE_H
+
+#include "wx/setup.h"
+
+#if wxUSE_WEBVIEW && wxUSE_WEBVIEW_IE && defined(__WXMSW__)
+
+#include "wx/control.h"
+#include "wx/webview.h"
+#include "wx/msw/ole/automtn.h"
+#include "wx/msw/ole/activex.h"
+#include "wx/msw/ole/oleutils.h"
+#include "wx/msw/wrapwin.h"
+#include "wx/msw/missing.h"
+#include "wx/sharedptr.h"
+#include "wx/vector.h"
+
+/* Classes and definitions from urlmon.h vary in their
+ * completeness between compilers and versions of compilers.
+ * We implement our own versions here which should work
+ * for all compilers. The definitions are taken from the
+ * mingw-w64 headers which are public domain.
+ */
+
+#ifndef REFRESH_NORMAL
+#define REFRESH_NORMAL 0
+#endif
+
+#ifndef REFRESH_COMPLETELY
+#define REFRESH_COMPLETELY 3
+#endif
+
+typedef enum __wxMIDL_IBindStatusCallback_0006
+{
+ wxBSCF_FIRSTDATANOTIFICATION = 0x1,
+ wxBSCF_INTERMEDIATEDATANOTIFICATION = 0x2,
+ wxBSCF_LASTDATANOTIFICATION = 0x4,
+ wxBSCF_DATAFULLYAVAILABLE = 0x8,
+ wxBSCF_AVAILABLEDATASIZEUNKNOWN = 0x10
+} wxBSCF;
+
+EXTERN_C const IID CLSID_FileProtocol;
+
+typedef struct _tagwxBINDINFO
+{
+ ULONG cbSize;
+ LPWSTR szExtraInfo;
+ STGMEDIUM stgmedData;
+ DWORD grfBindInfoF;
+ DWORD dwBindVerb;
+ LPWSTR szCustomVerb;
+ DWORD cbstgmedData;
+ DWORD dwOptions;
+ DWORD dwOptionsFlags;
+ DWORD dwCodePage;
+ SECURITY_ATTRIBUTES securityAttributes;
+ IID iid;
+ IUnknown *pUnk;
+ DWORD dwReserved;
+} wxBINDINFO;
+
+typedef struct _tagwxPROTOCOLDATA
+{
+ DWORD grfFlags;
+ DWORD dwState;
+ LPVOID pData;
+ ULONG cbData;
+} wxPROTOCOLDATA;
+
+class wxIInternetBindInfo : public IUnknown
+{
+public:
+ virtual HRESULT wxSTDCALL GetBindInfo(DWORD *grfBINDF,wxBINDINFO *pbindinfo) = 0;
+ virtual HRESULT wxSTDCALL GetBindString(ULONG ulStringType,LPOLESTR *ppwzStr,
+ ULONG cEl,ULONG *pcElFetched) = 0;
+};
+
+class wxIInternetProtocolSink : public IUnknown
+{
+public:
+ virtual HRESULT wxSTDCALL Switch(wxPROTOCOLDATA *pProtocolData) = 0;
+ virtual HRESULT wxSTDCALL ReportProgress(ULONG ulStatusCode,
+ LPCWSTR szStatusText) = 0;
+ virtual HRESULT wxSTDCALL ReportData(DWORD grfBSCF,ULONG ulProgress,
+ ULONG ulProgressMax) = 0;
+ virtual HRESULT wxSTDCALL ReportResult(HRESULT hrResult,DWORD dwError,
+ LPCWSTR szResult) = 0;
+};
+
+class wxIInternetProtocolRoot : public IUnknown
+{
+public:
+ virtual HRESULT wxSTDCALL Start(LPCWSTR szUrl,wxIInternetProtocolSink *pOIProtSink,
+ wxIInternetBindInfo *pOIBindInfo,DWORD grfPI,
+ HANDLE_PTR dwReserved) = 0;
+ virtual HRESULT wxSTDCALL Continue(wxPROTOCOLDATA *pProtocolData) = 0;
+ virtual HRESULT wxSTDCALL Abort(HRESULT hrReason,DWORD dwOptions) = 0;
+ virtual HRESULT wxSTDCALL Terminate(DWORD dwOptions) = 0;
+ virtual HRESULT wxSTDCALL Suspend(void) = 0;
+ virtual HRESULT wxSTDCALL Resume(void) = 0;
+};
+
+
+class wxIInternetProtocol : public wxIInternetProtocolRoot
+{
+public:
+ virtual HRESULT wxSTDCALL Read(void *pv,ULONG cb,ULONG *pcbRead) = 0;
+ virtual HRESULT wxSTDCALL Seek(LARGE_INTEGER dlibMove,DWORD dwOrigin,
+ ULARGE_INTEGER *plibNewPosition) = 0;
+ virtual HRESULT wxSTDCALL LockRequest(DWORD dwOptions) = 0;
+ virtual HRESULT wxSTDCALL UnlockRequest(void) = 0;
+};
+
+
+class wxIInternetSession : public IUnknown
+{
+ public:
+ virtual HRESULT wxSTDCALL RegisterNameSpace(IClassFactory *pCF,REFCLSID rclsid,
+ LPCWSTR pwzProtocol,
+ ULONG cPatterns,
+ const LPCWSTR *ppwzPatterns,
+ DWORD dwReserved) = 0;
+ virtual HRESULT wxSTDCALL UnregisterNameSpace(IClassFactory *pCF,
+ LPCWSTR pszProtocol) = 0;
+ virtual HRESULT wxSTDCALL RegisterMimeFilter(IClassFactory *pCF,
+ REFCLSID rclsid,
+ LPCWSTR pwzType) = 0;
+ virtual HRESULT wxSTDCALL UnregisterMimeFilter(IClassFactory *pCF,
+ LPCWSTR pwzType) = 0;
+ virtual HRESULT wxSTDCALL CreateBinding(LPBC pBC,LPCWSTR szUrl,
+ IUnknown *pUnkOuter,IUnknown **ppUnk,
+ wxIInternetProtocol **ppOInetProt,
+ DWORD dwOption) = 0;
+ virtual HRESULT wxSTDCALL SetSessionOption(DWORD dwOption,LPVOID pBuffer,
+ DWORD dwBufferLength,
+ DWORD dwReserved) = 0;
+ virtual HRESULT wxSTDCALL GetSessionOption(DWORD dwOption,LPVOID pBuffer,
+ DWORD *pdwBufferLength,
+ DWORD dwReserved) = 0;
+};
+
+/* END OF URLMON.H implementation */
+
+/* Same goes for the mshtmhst.h, these are also taken
+ * from mingw-w64 headers.
+ */
+
+typedef enum _tagwxDOCHOSTUIFLAG
+{
+ DOCHOSTUIFLAG_DIALOG = 0x1,
+ DOCHOSTUIFLAG_DISABLE_HELP_MENU = 0x2,
+ DOCHOSTUIFLAG_NO3DBORDER = 0x4,
+ DOCHOSTUIFLAG_SCROLL_NO = 0x8,
+ DOCHOSTUIFLAG_DISABLE_SCRIPT_INACTIVE = 0x10,
+ DOCHOSTUIFLAG_OPENNEWWIN = 0x20,
+ DOCHOSTUIFLAG_DISABLE_OFFSCREEN = 0x40,
+ DOCHOSTUIFLAG_FLAT_SCROLLBAR = 0x80,
+ DOCHOSTUIFLAG_DIV_BLOCKDEFAULT = 0x100,
+ DOCHOSTUIFLAG_ACTIVATE_CLIENTHIT_ONLY = 0x200,
+ DOCHOSTUIFLAG_OVERRIDEBEHAVIORFACTORY = 0x400,
+ DOCHOSTUIFLAG_CODEPAGELINKEDFONTS = 0x800,
+ DOCHOSTUIFLAG_URL_ENCODING_DISABLE_UTF8 = 0x1000,
+ DOCHOSTUIFLAG_URL_ENCODING_ENABLE_UTF8 = 0x2000,
+ DOCHOSTUIFLAG_ENABLE_FORMS_AUTOCOMPLETE = 0x4000,
+ DOCHOSTUIFLAG_ENABLE_INPLACE_NAVIGATION = 0x10000,
+ DOCHOSTUIFLAG_IME_ENABLE_RECONVERSION = 0x20000,
+ DOCHOSTUIFLAG_THEME = 0x40000,
+ DOCHOSTUIFLAG_NOTHEME = 0x80000,
+ DOCHOSTUIFLAG_NOPICS = 0x100000,
+ DOCHOSTUIFLAG_NO3DOUTERBORDER = 0x200000,
+ DOCHOSTUIFLAG_DISABLE_EDIT_NS_FIXUP = 0x400000,
+ DOCHOSTUIFLAG_LOCAL_MACHINE_ACCESS_CHECK = 0x800000,
+ DOCHOSTUIFLAG_DISABLE_UNTRUSTEDPROTOCOL = 0x1000000
+} DOCHOSTUIFLAG;
+
+typedef struct _tagwxDOCHOSTUIINFO
+{
+ ULONG cbSize;
+ DWORD dwFlags;
+ DWORD dwDoubleClick;
+ OLECHAR *pchHostCss;
+ OLECHAR *pchHostNS;
+} DOCHOSTUIINFO;
+
+class wxIDocHostUIHandler : public IUnknown
+{
+public:
+ virtual HRESULT wxSTDCALL ShowContextMenu(DWORD dwID, POINT *ppt,
+ IUnknown *pcmdtReserved,
+ IDispatch *pdispReserved) = 0;
+
+ virtual HRESULT wxSTDCALL GetHostInfo(DOCHOSTUIINFO *pInfo) = 0;
+
+ virtual HRESULT wxSTDCALL ShowUI(DWORD dwID,
+ IOleInPlaceActiveObject *pActiveObject,
+ IOleCommandTarget *pCommandTarget,
+ IOleInPlaceFrame *pFrame,
+ IOleInPlaceUIWindow *pDoc) = 0;
+
+ virtual HRESULT wxSTDCALL HideUI(void) = 0;
+
+ virtual HRESULT wxSTDCALL UpdateUI(void) = 0;
+
+ virtual HRESULT wxSTDCALL EnableModeless(BOOL fEnable) = 0;
+
+ virtual HRESULT wxSTDCALL OnDocWindowActivate(BOOL fActivate) = 0;
+
+ virtual HRESULT wxSTDCALL OnFrameWindowActivate(BOOL fActivate) = 0;
+
+ virtual HRESULT wxSTDCALL ResizeBorder(LPCRECT prcBorder,
+ IOleInPlaceUIWindow *pUIWindow,
+ BOOL fRameWindow) = 0;
+
+ virtual HRESULT wxSTDCALL TranslateAccelerator(LPMSG lpMsg,
+ const GUID *pguidCmdGroup,
+ DWORD nCmdID) = 0;
+
+ virtual HRESULT wxSTDCALL GetOptionKeyPath(LPOLESTR *pchKey,
+ DWORD dw) = 0;
+
+ virtual HRESULT wxSTDCALL GetDropTarget(IDropTarget *pDropTarget,
+ IDropTarget **ppDropTarget) = 0;
+
+ virtual HRESULT wxSTDCALL GetExternal(IDispatch **ppDispatch) = 0;
+
+ virtual HRESULT wxSTDCALL TranslateUrl(DWORD dwTranslate,
+ OLECHAR *pchURLIn,
+ OLECHAR **ppchURLOut) = 0;
+
+ virtual HRESULT wxSTDCALL FilterDataObject(IDataObject *pDO,
+ IDataObject **ppDORet) = 0;
+};
+
+/* END OF MSHTMHST.H implementation */
+
+struct IHTMLDocument2;
+class wxFSFile;
+class ClassFactory;
+class wxIEContainer;
+class DocHostUIHandler;
+
+class WXDLLIMPEXP_WEBVIEW wxWebViewIE : public wxWebView
+{
+public:
+
+ wxWebViewIE() {}
+
+ wxWebViewIE(wxWindow* parent,
+ wxWindowID id,
+ const wxString& url = wxWebViewDefaultURLStr,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = 0,
+ const wxString& name = wxWebViewNameStr)
+ {
+ Create(parent, id, url, pos, size, style, name);
+ }
+
+ ~wxWebViewIE();
+
+ bool Create(wxWindow* parent,
+ wxWindowID id,
+ const wxString& url = wxWebViewDefaultURLStr,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = 0,
+ const wxString& name = wxWebViewNameStr);
+
+ virtual void LoadURL(const wxString& url);
+ virtual void LoadHistoryItem(wxSharedPtr item);
+ virtual wxVector > GetBackwardHistory();
+ virtual wxVector > GetForwardHistory();
+
+ virtual bool CanGoForward() const;
+ virtual bool CanGoBack() const;
+ virtual void GoBack();
+ virtual void GoForward();
+ virtual void ClearHistory();
+ virtual void EnableHistory(bool enable = true);
+ virtual void Stop();
+ virtual void Reload(wxWebViewReloadFlags flags = wxWEB_VIEW_RELOAD_DEFAULT);
+
+ virtual wxString GetPageSource() const;
+ virtual wxString GetPageText() const;
+
+ virtual bool IsBusy() const;
+ virtual wxString GetCurrentURL() const;
+ virtual wxString GetCurrentTitle() const;
+
+ virtual void SetZoomType(wxWebViewZoomType);
+ virtual wxWebViewZoomType GetZoomType() const;
+ virtual bool CanSetZoomType(wxWebViewZoomType) const;
+
+ virtual void Print();
+
+ virtual void SetPage(const wxString& html, const wxString& baseUrl);
+
+ virtual wxWebViewZoom GetZoom() const;
+ virtual void SetZoom(wxWebViewZoom zoom);
+
+ //Clipboard functions
+ virtual bool CanCut() const;
+ virtual bool CanCopy() const;
+ virtual bool CanPaste() const;
+ virtual void Cut();
+ virtual void Copy();
+ virtual void Paste();
+
+ //Undo / redo functionality
+ virtual bool CanUndo() const;
+ virtual bool CanRedo() const;
+ virtual void Undo();
+ virtual void Redo();
+
+ //Editing functions
+ virtual void SetEditable(bool enable = true);
+ virtual bool IsEditable() const;
+
+ //Selection
+ virtual void SelectAll();
+ virtual bool HasSelection() const;
+ virtual void DeleteSelection();
+ virtual wxString GetSelectedText() const;
+ virtual wxString GetSelectedSource() const;
+ virtual void ClearSelection();
+
+ virtual void RunScript(const wxString& javascript);
+
+ //Virtual Filesystem Support
+ virtual void RegisterHandler(wxSharedPtr handler);
+
+ // ---- IE-specific methods
+
+ // FIXME: I seem to be able to access remote webpages even in offline mode...
+ bool IsOfflineMode();
+ void SetOfflineMode(bool offline);
+
+ wxWebViewZoom GetIETextZoom() const;
+ void SetIETextZoom(wxWebViewZoom level);
+
+ wxWebViewZoom GetIEOpticalZoom() const;
+ void SetIEOpticalZoom(wxWebViewZoom level);
+
+ void onActiveXEvent(wxActiveXEvent& evt);
+ void onEraseBg(wxEraseEvent&) {}
+
+ DECLARE_EVENT_TABLE();
+
+private:
+ wxIEContainer* m_container;
+ wxAutomationObject m_ie;
+ IWebBrowser2* m_webBrowser;
+ DWORD m_dwCookie;
+ DocHostUIHandler* m_uiHandler;
+
+ //We store the current zoom type;
+ wxWebViewZoomType m_zoomType;
+
+ /** The "Busy" property of IWebBrowser2 does not always return busy when
+ * we'd want it to; this variable may be set to true in cases where the
+ * Busy property is false but should be true.
+ */
+ bool m_isBusy;
+ //We manage our own history, the history list contains the history items
+ //which are added as documentcomplete events arrive, unless we are loading
+ //an item from the history. The position is stored as an int, and reflects
+ //where we are in the history list.
+ wxVector > m_historyList;
+ wxVector m_factories;
+ int m_historyPosition;
+ bool m_historyLoadingFromList;
+ bool m_historyEnabled;
+
+ //Generic helper functions for IHtmlDocument commands
+ bool CanExecCommand(wxString command) const;
+ void ExecCommand(wxString command);
+ IHTMLDocument2* GetDocument() const;
+ //Toggles control features see INTERNETFEATURELIST for values.
+ bool EnableControlFeature(long flag, bool enable = true);
+
+ wxDECLARE_DYNAMIC_CLASS(wxWebViewIE);
+};
+
+class VirtualProtocol : public wxIInternetProtocol
+{
+protected:
+ wxIInternetProtocolSink* m_protocolSink;
+ wxString m_html;
+ VOID * fileP;
+
+ wxFSFile* m_file;
+ wxSharedPtr m_handler;
+
+public:
+ VirtualProtocol(wxSharedPtr handler);
+ ~VirtualProtocol() {}
+
+ //IUnknown
+ DECLARE_IUNKNOWN_METHODS;
+
+ //IInternetProtocolRoot
+ HRESULT STDMETHODCALLTYPE Abort(HRESULT WXUNUSED(hrReason),
+ DWORD WXUNUSED(dwOptions))
+ { return E_NOTIMPL; }
+ HRESULT STDMETHODCALLTYPE Continue(wxPROTOCOLDATA *WXUNUSED(pProtocolData))
+ { return S_OK; }
+ HRESULT STDMETHODCALLTYPE Resume() { return S_OK; }
+ HRESULT STDMETHODCALLTYPE Start(LPCWSTR szUrl,
+ wxIInternetProtocolSink *pOIProtSink,
+ wxIInternetBindInfo *pOIBindInfo,
+ DWORD grfPI,
+ HANDLE_PTR dwReserved);
+ HRESULT STDMETHODCALLTYPE Suspend() { return S_OK; }
+ HRESULT STDMETHODCALLTYPE Terminate(DWORD WXUNUSED(dwOptions)) { return S_OK; }
+
+ //IInternetProtocol
+ HRESULT STDMETHODCALLTYPE LockRequest(DWORD WXUNUSED(dwOptions))
+ { return S_OK; }
+ HRESULT STDMETHODCALLTYPE Read(void *pv, ULONG cb, ULONG *pcbRead);
+ HRESULT STDMETHODCALLTYPE Seek(LARGE_INTEGER WXUNUSED(dlibMove),
+ DWORD WXUNUSED(dwOrigin),
+ ULARGE_INTEGER* WXUNUSED(plibNewPosition))
+ { return E_FAIL; }
+ HRESULT STDMETHODCALLTYPE UnlockRequest() { return S_OK; }
+};
+
+class ClassFactory : public IClassFactory
+{
+public:
+ ClassFactory(wxSharedPtr handler) : m_handler(handler) {}
+
+ //IClassFactory
+ HRESULT STDMETHODCALLTYPE CreateInstance(IUnknown* pUnkOuter,
+ REFIID riid, void** ppvObject);
+ HRESULT STDMETHODCALLTYPE LockServer(BOOL fLock);
+
+ //IUnknown
+ DECLARE_IUNKNOWN_METHODS;
+
+private:
+ wxSharedPtr m_handler;
+};
+
+class wxIEContainer : public wxActiveXContainer
+{
+public:
+ wxIEContainer(wxWindow *parent, REFIID iid, IUnknown *pUnk, DocHostUIHandler* uiHandler = NULL);
+ virtual ~wxIEContainer();
+ virtual bool QueryClientSiteInterface(REFIID iid, void **_interface, const char *&desc);
+private:
+ DocHostUIHandler* m_uiHandler;
+};
+
+class DocHostUIHandler : public wxIDocHostUIHandler
+{
+public:
+ DocHostUIHandler() {};
+ ~DocHostUIHandler() {};
+ virtual HRESULT wxSTDCALL ShowContextMenu(DWORD dwID, POINT *ppt,
+ IUnknown *pcmdtReserved,
+ IDispatch *pdispReserved);
+
+ virtual HRESULT wxSTDCALL GetHostInfo(DOCHOSTUIINFO *pInfo);
+
+ virtual HRESULT wxSTDCALL ShowUI(DWORD dwID,
+ IOleInPlaceActiveObject *pActiveObject,
+ IOleCommandTarget *pCommandTarget,
+ IOleInPlaceFrame *pFrame,
+ IOleInPlaceUIWindow *pDoc);
+
+ virtual HRESULT wxSTDCALL HideUI(void);
+
+ virtual HRESULT wxSTDCALL UpdateUI(void);
+
+ virtual HRESULT wxSTDCALL EnableModeless(BOOL fEnable);
+
+ virtual HRESULT wxSTDCALL OnDocWindowActivate(BOOL fActivate);
+
+ virtual HRESULT wxSTDCALL OnFrameWindowActivate(BOOL fActivate);
+
+ virtual HRESULT wxSTDCALL ResizeBorder(LPCRECT prcBorder,
+ IOleInPlaceUIWindow *pUIWindow,
+ BOOL fRameWindow);
+
+ virtual HRESULT wxSTDCALL TranslateAccelerator(LPMSG lpMsg,
+ const GUID *pguidCmdGroup,
+ DWORD nCmdID);
+
+ virtual HRESULT wxSTDCALL GetOptionKeyPath(LPOLESTR *pchKey,
+ DWORD dw);
+
+ virtual HRESULT wxSTDCALL GetDropTarget(IDropTarget *pDropTarget,
+ IDropTarget **ppDropTarget);
+
+ virtual HRESULT wxSTDCALL GetExternal(IDispatch **ppDispatch);
+
+ virtual HRESULT wxSTDCALL TranslateUrl(DWORD dwTranslate,
+ OLECHAR *pchURLIn,
+ OLECHAR **ppchURLOut);
+
+ virtual HRESULT wxSTDCALL FilterDataObject(IDataObject *pDO,
+ IDataObject **ppDORet);
+ //IUnknown
+ DECLARE_IUNKNOWN_METHODS;
+};
+
+#endif // wxUSE_WEBVIEW && wxUSE_WEBVIEW_IE && defined(__WXMSW__)
+
+#endif // wxWebViewIE_H
diff --git a/Externals/wxWidgets3/include/wx/msw/webviewhistoryitem_ie.h b/Externals/wxWidgets3/include/wx/msw/webviewhistoryitem_ie.h
new file mode 100644
index 0000000000..acfec70014
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/msw/webviewhistoryitem_ie.h
@@ -0,0 +1,31 @@
+/////////////////////////////////////////////////////////////////////////////
+// Name: include/wx/msw/webviewhistoryitem.h
+// Purpose: wxWebViewHistoryItem header for MSW
+// Author: Steven Lamerton
+// Id: $Id: webviewhistoryitem_ie.h 69074 2011-09-12 18:35:39Z SJL $
+// Copyright: (c) 2011 Steven Lamerton
+// Licence: wxWindows licence
+/////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_MSW_WEBVIEWHISTORYITEM_H_
+#define _WX_MSW_WEBVIEWHISTORYITEM_H_
+
+#include "wx/setup.h"
+
+#if wxUSE_WEBVIEW && wxUSE_WEBVIEW_IE && defined(__WXMSW__)
+
+class WXDLLIMPEXP_WEBVIEW wxWebViewHistoryItem
+{
+public:
+ wxWebViewHistoryItem(const wxString& url, const wxString& title) :
+ m_url(url), m_title(title) {}
+ wxString GetUrl() { return m_url; }
+ wxString GetTitle() { return m_title; }
+
+private:
+ wxString m_url, m_title;
+};
+
+#endif // wxUSE_WEBVIEW && wxUSE_WEBVIEW_IE && defined(__WXMSW__)
+
+#endif // _WX_MSW_WEBVIEWHISTORYITEM_H_
diff --git a/Externals/wxWidgets3/include/wx/msw/wince/setup.h b/Externals/wxWidgets3/include/wx/msw/wince/setup.h
index 0f84386008..a22f9ec48f 100644
--- a/Externals/wxWidgets3/include/wx/msw/wince/setup.h
+++ b/Externals/wxWidgets3/include/wx/msw/wince/setup.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
-// RCS-ID: $Id: setup.h 67062 2011-02-27 12:48:07Z VZ $
+// RCS-ID: $Id: setup.h 69463 2011-10-18 21:57:02Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -201,15 +201,6 @@
// Recommended setting: 0 (this is still work in progress...)
#define wxUSE_EXTENDED_RTTI 0
-// Set wxUSE_STL to 1 to derive wxList(Foo) and wxArray(Foo) from
-// std::list and std::vector, with a compatibility interface,
-// and for wxHashMap to be implemented with templates.
-//
-// Default is 0
-//
-// Recommended setting: YMMV
-#define wxUSE_STL 0
-
// Support for message/error logging. This includes wxLogXXX() functions and
// wxLog and derived classes. Don't set this to 0 unless you really know what
// you are doing.
@@ -261,44 +252,6 @@
// Recommended setting: 1 as setting it to 0 disables many other things
#define wxUSE_STREAMS 1
-// This is not a real option but is used as the default value for
-// wxUSE_STD_IOSTREAM and wxUSE_STD_STRING.
-//
-// Currently the Digital Mars and Watcom compilers come without standard C++
-// library headers by default, wxUSE_STD_STRING can be set to 1 if you do have
-// them (e.g. from STLPort).
-//
-// VC++ 5.0 does include standard C++ library headers, however they produce
-// many warnings that can't be turned off when compiled at warning level 4.
-#if defined(__DMC__) || defined(__WATCOMC__) \
- || (defined(_MSC_VER) && _MSC_VER < 1200)
- #define wxUSE_STD_DEFAULT 0
-#else
- #define wxUSE_STD_DEFAULT 1
-#endif
-
-// Use standard C++ streams if 1 instead of wx streams in some places. If
-// disabled (default), wx streams are used everywhere and wxWidgets doesn't
-// depend on the standard streams library.
-//
-// Notice that enabling this does not replace wx streams with std streams
-// everywhere, in a lot of places wx streams are used no matter what.
-//
-// Default is 0
-//
-// Recommended setting: 1 if you use the standard streams anyhow and so
-// dependency on the standard streams library is not a
-// problem
-#define wxUSE_STD_IOSTREAM wxUSE_STD_DEFAULT
-
-// Enable conversion to standard C++ string if 1.
-//
-// Default is 1 for most compilers.
-//
-// Recommended setting: 1 unless you want to ensure your program doesn't use
-// the standard C++ library at all.
-#define wxUSE_STD_STRING wxUSE_STD_DEFAULT
-
// Support for positional parameters (e.g. %1$d, %2$s ...) in wxVsnprintf.
// Note that if the system's implementation does not support positional
// parameters, setting this to 1 forces the use of the wxWidgets implementation
@@ -314,6 +267,107 @@
// Recommended setting: 1 if you want to support multiple languages
#define wxUSE_PRINTF_POS_PARAMS 1
+
+// ----------------------------------------------------------------------------
+// Interoperability with the standard library.
+// ----------------------------------------------------------------------------
+
+// Set wxUSE_STL to 1 to enable maximal interoperability with the standard
+// library, even at the cost of backwards compatibility.
+//
+// Default is 0
+//
+// Recommended setting: 0 as the options below already provide a relatively
+// good level of interoperability and changing this option arguably isn't worth
+// diverging from the official builds of the library.
+#define wxUSE_STL 0
+
+// This is not a real option but is used as the default value for
+// wxUSE_STD_IOSTREAM, wxUSE_STD_STRING and wxUSE_STD_CONTAINERS.
+//
+// Currently the Digital Mars and Watcom compilers come without standard C++
+// library headers by default, wxUSE_STD_STRING can be set to 1 if you do have
+// them (e.g. from STLPort).
+//
+// VC++ 5.0 does include standard C++ library headers, however they produce
+// many warnings that can't be turned off when compiled at warning level 4.
+#if defined(__DMC__) || defined(__WATCOMC__) \
+ || (defined(_MSC_VER) && _MSC_VER < 1200)
+ #define wxUSE_STD_DEFAULT 0
+#else
+ #define wxUSE_STD_DEFAULT 1
+#endif
+
+// Use standard C++ containers to implement wxVector<>, wxStack<>, wxDList<>
+// and wxHashXXX<> classes. If disabled, wxWidgets own (mostly compatible but
+// usually more limited) implementations are used which allows to avoid the
+// dependency on the C++ run-time library.
+//
+// Notice that the compilers mentioned in wxUSE_STD_DEFAULT comment above don't
+// support using standard containers and that VC6 needs non-default options for
+// such build to avoid getting "fatal error C1076: compiler limit : internal
+// heap limit reached; use /Zm to specify a higher limit" in its own standard
+// headers, so you need to ensure you do increase the heap size before enabling
+// this option for this compiler.
+//
+// Default is 0 for compatibility reasons.
+//
+// Recommended setting: 1 unless compatibility with the official wxWidgets
+// build and/or the existing code is a concern.
+#define wxUSE_STD_CONTAINERS 0
+
+// Use standard C++ streams if 1 instead of wx streams in some places. If
+// disabled, wx streams are used everywhere and wxWidgets doesn't depend on the
+// standard streams library.
+//
+// Notice that enabling this does not replace wx streams with std streams
+// everywhere, in a lot of places wx streams are used no matter what.
+//
+// Default is 1 if compiler supports it.
+//
+// Recommended setting: 1 if you use the standard streams anyhow and so
+// dependency on the standard streams library is not a
+// problem
+#define wxUSE_STD_IOSTREAM wxUSE_STD_DEFAULT
+
+// Enable minimal interoperability with the standard C++ string class if 1.
+// "Minimal" means that wxString can be constructed from std::string or
+// std::wstring but can't be implicitly converted to them. You need to enable
+// the option below for the latter.
+//
+// Default is 1 for most compilers.
+//
+// Recommended setting: 1 unless you want to ensure your program doesn't use
+// the standard C++ library at all.
+#define wxUSE_STD_STRING wxUSE_STD_DEFAULT
+
+// Make wxString as much interchangeable with std::[w]string as possible, in
+// particular allow implicit conversion of wxString to either of these classes.
+// This comes at a price (or a benefit, depending on your point of view) of not
+// allowing implicit conversion to "const char *" and "const wchar_t *".
+//
+// Because a lot of existing code relies on these conversions, this option is
+// disabled by default but can be enabled for your build if you don't care
+// about compatibility.
+//
+// Default is 0 if wxUSE_STL has its default value or 1 if it is enabled.
+//
+// Recommended setting: 0 to remain compatible with the official builds of
+// wxWidgets.
+#define wxUSE_STD_STRING_CONV_IN_WXSTRING wxUSE_STL
+
+// VC++ 4.2 and above allows and but you can't mix
+// them. Set this option to 1 to use , 0 to use .
+//
+// Note that newer compilers (including VC++ 7.1 and later) don't support
+// wxUSE_IOSTREAMH == 1 and so will be used anyhow.
+//
+// Default is 0.
+//
+// Recommended setting: 0, only set to 1 if you use a really old compiler
+#define wxUSE_IOSTREAMH 0
+
+
// ----------------------------------------------------------------------------
// non GUI features selection
// ----------------------------------------------------------------------------
@@ -651,6 +705,34 @@
// Recommended setting: 1
#define wxUSE_STC 1
+// Use wxWidget's web viewing classes
+//
+// Default is 1
+//
+// Recommended setting: 1
+#define wxUSE_WEBVIEW 1
+
+// Use the IE wxWebView backend
+//
+// Default is 1 on MSW
+//
+// Recommended setting: 1
+#ifdef __WXMSW__
+#define wxUSE_WEBVIEW_IE 1
+#else
+#define wxUSE_WEBVIEW_IE 0
+#endif
+
+// Use the WebKit wxWebView backend
+//
+// Default is 1 on GTK and OSX
+//
+// Recommended setting: 1
+#if defined(__WXGTK__) || defined(__WXOSX__)
+#define wxUSE_WEBVIEW_WEBKIT 1
+#else
+#define wxUSE_WEBVIEW_WEBKIT 0
+#endif
// Enable the new wxGraphicsPath and wxGraphicsContext classes for an advanced
// 2D drawing API. (Still somewhat experimental)
@@ -749,6 +831,7 @@
//
// Recommended setting: 1
#define wxUSE_ANIMATIONCTRL 1 // wxAnimationCtrl
+#define wxUSE_BANNERWINDOW 1 // wxBannerWindow
#define wxUSE_BUTTON 1 // wxButton
#define wxUSE_BMPBUTTON 1 // wxBitmapButton
#define wxUSE_CALENDARCTRL 1 // wxCalendarCtrl
@@ -784,8 +867,10 @@
#define wxUSE_STATTEXT 1 // wxStaticText
#define wxUSE_STATBMP 1 // wxStaticBitmap
#define wxUSE_TEXTCTRL 1 // wxTextCtrl
+#define wxUSE_TIMEPICKCTRL 1 // wxTimePickerCtrl
#define wxUSE_TOGGLEBTN 1 // requires wxButton
#define wxUSE_TREECTRL 1 // wxTreeCtrl
+#define wxUSE_TREELISTCTRL 1 // wxTreeListCtrl
// Use a status bar class? Depending on the value of wxUSE_NATIVE_STATUSBAR
// below either wxStatusBar95 or a generic wxStatusBar will be used.
@@ -1002,6 +1087,14 @@
// Recommended setting: 1
#define wxUSE_NOTIFICATION_MESSAGE 1
+// wxRichToolTip is a customizable tooltip class which has more functionality
+// than the stock (but native, unlike this class) wxToolTip.
+//
+// Default is 1.
+//
+// Recommended setting: 1 (but can be safely set to 0 if you don't need it)
+#define wxUSE_RICHTOOLTIP 1
+
// Use wxSashWindow class.
//
// Default is 1.
@@ -1307,28 +1400,15 @@
// to create files in SVG (Scalable Vector Graphics) format.
#define wxUSE_SVG 1
-// ----------------------------------------------------------------------------
-// other compiler (mis)features
-// ----------------------------------------------------------------------------
-
-// Set this to 0 if your compiler can't cope with omission of prototype
-// parameters.
+// Should wxDC provide SetTransformMatrix() and related methods?
//
-// Default is 1.
+// Default is 1 but can be set to 0 if this functionality is not used. Notice
+// that currently only wxMSW supports this so setting this to 0 doesn't change
+// much for non-MSW platforms (although it will still save a few bytes
+// probably).
//
-// Recommended setting: 1 (should never need to set this to 0)
-#define REMOVE_UNUSED_ARG 1
-
-// VC++ 4.2 and above allows and but you can't mix
-// them. Set this option to 1 to use , 0 to use .
-//
-// Note that newer compilers (including VC++ 7.1 and later) don't support
-// wxUSE_IOSTREAMH == 1 and so will be used anyhow.
-//
-// Default is 0.
-//
-// Recommended setting: 0, only set to 1 if you use a really old compiler
-#define wxUSE_IOSTREAMH 0
+// Recommended setting: 1.
+#define wxUSE_DC_TRANSFORM_MATRIX 1
// ----------------------------------------------------------------------------
// image format support
diff --git a/Externals/wxWidgets3/include/wx/msw/window.h b/Externals/wxWidgets3/include/wx/msw/window.h
index 303aeee24b..afb6df7a60 100644
--- a/Externals/wxWidgets3/include/wx/msw/window.h
+++ b/Externals/wxWidgets3/include/wx/msw/window.h
@@ -5,7 +5,7 @@
// Modified by: Vadim Zeitlin on 13.05.99: complete refont of message handling,
// elimination of Default(), ...
// Created: 01/02/97
-// RCS-ID: $Id: window.h 67250 2011-03-20 00:00:29Z VZ $
+// RCS-ID: $Id: window.h 69348 2011-10-09 22:01:57Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -366,7 +366,21 @@ public:
bool HandlePower(WXWPARAM wParam, WXLPARAM lParam, bool *vetoed);
- // Window procedure
+ // The main body of common window proc for all wxWindow objects. It tries
+ // to handle the given message and returns true if it was handled (the
+ // appropriate return value is then put in result, which must be non-NULL)
+ // or false if it wasn't.
+ //
+ // This function should be overridden in any new code instead of
+ // MSWWindowProc() even if currently most of the code overrides
+ // MSWWindowProc() as it had been written before this function was added.
+ virtual bool MSWHandleMessage(WXLRESULT *result,
+ WXUINT message,
+ WXWPARAM wParam,
+ WXLPARAM lParam);
+
+ // Common Window procedure for all wxWindow objects: forwards to
+ // MSWHandleMessage() and MSWDefWindowProc() if the message wasn't handled.
virtual WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
// Calls an appropriate default window procedure
@@ -453,7 +467,13 @@ public:
// This should be overridden to return true for the controls which have
// themed background that should through their children. Currently only
// wxNotebook uses this.
- virtual bool MSWHasInheritableBackground() const { return false; }
+ //
+ // The base class version already returns true if we have a solid
+ // background colour that should be propagated to our children.
+ virtual bool MSWHasInheritableBackground() const
+ {
+ return InheritsBackgroundColour();
+ }
#if !defined(__WXWINCE__) && !defined(__WXUNIVERSAL__)
#define wxHAS_MSW_BACKGROUND_ERASE_HOOK
@@ -599,6 +619,14 @@ protected:
WXWPARAM wParam,
WXLPARAM lParam = 0) const;
+ // Another helper for creating wxKeyEvent for wxEVT_CHAR and related types.
+ //
+ // The wParam and lParam here must come from WM_CHAR event parameters, i.e.
+ // wParam must be a character and not a virtual code.
+ wxKeyEvent CreateCharEvent(wxEventType evType,
+ WXWPARAM wParam,
+ WXLPARAM lParam) const;
+
// default OnEraseBackground() implementation, return true if we did erase
// the background, false otherwise (i.e. the system should erase it)
diff --git a/Externals/wxWidgets3/include/wx/msw/wrapwin.h b/Externals/wxWidgets3/include/wx/msw/wrapwin.h
index 85ee355f8a..8ddd5fe79e 100644
--- a/Externals/wxWidgets3/include/wx/msw/wrapwin.h
+++ b/Externals/wxWidgets3/include/wx/msw/wrapwin.h
@@ -3,7 +3,7 @@
// Purpose: Wrapper around , to be included instead of it
// Author: Vaclav Slavik
// Created: 2003/07/22
-// RCS-ID: $Id: wrapwin.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: wrapwin.h 69784 2011-11-17 16:43:34Z VZ $
// Copyright: (c) 2003 Vaclav Slavik
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -80,6 +80,7 @@
#if (!defined(_MSC_VER) || (_MSC_VER < 1300)) && !defined(__WIN64__)
#define UINT_PTR unsigned int
#define INT_PTR int
+ #define HANDLE_PTR unsigned long
#define LONG_PTR long
#define ULONG_PTR unsigned long
#define DWORD_PTR unsigned long
diff --git a/Externals/wxWidgets3/include/wx/nonownedwnd.h b/Externals/wxWidgets3/include/wx/nonownedwnd.h
index 25e21b670e..03888e4140 100644
--- a/Externals/wxWidgets3/include/wx/nonownedwnd.h
+++ b/Externals/wxWidgets3/include/wx/nonownedwnd.h
@@ -4,7 +4,7 @@
// Author: Vaclav Slavik
// Modified by:
// Created: 2006-12-24
-// RCS-ID: $Id: nonownedwnd.h 54125 2008-06-11 19:17:41Z SC $
+// RCS-ID: $Id: nonownedwnd.h 70813 2012-03-05 13:00:57Z VZ $
// Copyright: (c) 2006 TT-Solutions
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -12,15 +12,103 @@
#ifndef _WX_NONOWNEDWND_H_
#define _WX_NONOWNEDWND_H_
+#include "wx/window.h"
+
+// Styles that can be used with any wxNonOwnedWindow:
+#define wxFRAME_SHAPED 0x0010 // Create a window that is able to be shaped
+
+class WXDLLIMPEXP_FWD_CORE wxGraphicsPath;
+
+// ----------------------------------------------------------------------------
+// wxNonOwnedWindow: a window that is not a child window of another one.
+// ----------------------------------------------------------------------------
+
+class WXDLLIMPEXP_CORE wxNonOwnedWindowBase : public wxWindow
+{
+public:
+ // Set the shape of the window to the given region.
+ // Returns true if the platform supports this feature (and the
+ // operation is successful.)
+ bool SetShape(const wxRegion& region)
+ {
+ // This style is in fact only needed by wxOSX/Carbon so once we don't
+ // use this port any more, we could get rid of this requirement, but
+ // for now you must specify wxFRAME_SHAPED for SetShape() to work on
+ // all platforms.
+ wxCHECK_MSG
+ (
+ HasFlag(wxFRAME_SHAPED), false,
+ wxS("Shaped windows must be created with the wxFRAME_SHAPED style.")
+ );
+
+ return region.IsEmpty() ? DoClearShape() : DoSetRegionShape(region);
+ }
+
+#if wxUSE_GRAPHICS_CONTEXT
+ // Set the shape using the specified path.
+ bool SetShape(const wxGraphicsPath& path)
+ {
+ wxCHECK_MSG
+ (
+ HasFlag(wxFRAME_SHAPED), false,
+ wxS("Shaped windows must be created with the wxFRAME_SHAPED style.")
+ );
+
+ return DoSetPathShape(path);
+ }
+#endif // wxUSE_GRAPHICS_CONTEXT
+
+
+ // Overridden base class methods.
+ // ------------------------------
+
+ virtual void AdjustForParentClientOrigin(int& WXUNUSED(x), int& WXUNUSED(y),
+ int WXUNUSED(sizeFlags) = 0) const
+ {
+ // Non owned windows positions don't need to be adjusted for parent
+ // client area origin so simply do nothing here.
+ }
+
+ virtual void InheritAttributes()
+ {
+ // Non owned windows don't inherit attributes from their parent window
+ // (if the parent frame is red, it doesn't mean that all dialogs shown
+ // by it should be red as well), so don't do anything here neither.
+ }
+
+protected:
+ virtual bool DoClearShape()
+ {
+ return false;
+ }
+
+ virtual bool DoSetRegionShape(const wxRegion& WXUNUSED(region))
+ {
+ return false;
+ }
+
+#if wxUSE_GRAPHICS_CONTEXT
+ virtual bool DoSetPathShape(const wxGraphicsPath& WXUNUSED(path))
+ {
+ return false;
+ }
+#endif // wxUSE_GRAPHICS_CONTEXT
+};
+
#if defined(__WXDFB__)
#include "wx/dfb/nonownedwnd.h"
+#elif defined(__WXGTK20__)
+ #include "wx/gtk/nonownedwnd.h"
#elif defined(__WXMAC__)
#include "wx/osx/nonownedwnd.h"
+#elif defined(__WXMSW__) && !defined(__WXWINCE__)
+ #include "wx/msw/nonownedwnd.h"
#else
- // other ports can derive both wxTLW and wxPopupWindow directly
- // from wxWindow:
- #include "wx/window.h"
- typedef wxWindow wxNonOwnedWindow;
+ // No special class needed in other ports, they can derive both wxTLW and
+ // wxPopupWindow directly from wxWindow and don't implement SetShape().
+ class wxNonOwnedWindow : public wxNonOwnedWindowBase
+ {
+ };
#endif
#endif // _WX_NONOWNEDWND_H_
diff --git a/Externals/wxWidgets3/include/wx/odcombo.h b/Externals/wxWidgets3/include/wx/odcombo.h
index 04dccc0731..6e2d9efb86 100644
--- a/Externals/wxWidgets3/include/wx/odcombo.h
+++ b/Externals/wxWidgets3/include/wx/odcombo.h
@@ -4,7 +4,7 @@
// Author: Jaakko Salli
// Modified by:
// Created: Apr-30-2006
-// RCS-ID: $Id: odcombo.h 66412 2010-12-20 14:54:04Z JMS $
+// RCS-ID: $Id: odcombo.h 68460 2011-07-30 11:30:08Z VZ $
// Copyright: (c) Jaakko Salli
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -233,15 +233,15 @@ private:
// the wxComboCtrl.
// ----------------------------------------------------------------------------
-class WXDLLIMPEXP_ADV wxOwnerDrawnComboBox : public wxComboCtrl,
- public wxItemContainer
+class WXDLLIMPEXP_ADV wxOwnerDrawnComboBox :
+ public wxWindowWithItems
{
//friend class wxComboPopupWindow;
friend class wxVListBoxComboPopup;
public:
// ctors and such
- wxOwnerDrawnComboBox() : wxComboCtrl() { Init(); }
+ wxOwnerDrawnComboBox() { Init(); }
wxOwnerDrawnComboBox(wxWindow *parent,
wxWindowID id,
@@ -253,7 +253,6 @@ public:
long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxComboBoxNameStr)
- : wxComboCtrl()
{
Init();
@@ -339,8 +338,6 @@ public:
virtual bool IsSorted() const { return HasFlag(wxCB_SORT); }
- wxCONTROL_ITEMCONTAINER_CLIENTDATAOBJECT_RECAST
-
protected:
virtual void DoClear();
virtual void DoDeleteOneItem(unsigned int n);
diff --git a/Externals/wxWidgets3/include/wx/osx/anybutton.h b/Externals/wxWidgets3/include/wx/osx/anybutton.h
new file mode 100644
index 0000000000..9e11031ae8
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/osx/anybutton.h
@@ -0,0 +1,59 @@
+/////////////////////////////////////////////////////////////////////////////
+// Name: anybutton.h
+// Purpose: wxAnyButton class
+// Author: Stefan Csomor
+// Created: 1998-01-01 (extracted from button.h)
+// RCS-ID: $Id: anybutton.h 67931 2011-06-14 13:00:42Z VZ $
+// Copyright: (c) Stefan Csomor
+// Licence: wxWindows licence
+/////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_OSX_ANYBUTTON_H_
+#define _WX_OSX_ANYBUTTON_H_
+
+// Any button
+class WXDLLIMPEXP_CORE wxAnyButton : public wxAnyButtonBase
+{
+public:
+ wxAnyButton() {}
+
+ static wxSize GetDefaultSize();
+
+ virtual void SetLabel(const wxString& label);
+
+protected:
+ virtual wxSize DoGetBestSize() const ;
+
+ void OnEnterWindow( wxMouseEvent& event);
+ void OnLeaveWindow( wxMouseEvent& event);
+
+ virtual wxBitmap DoGetBitmap(State which) const;
+ virtual void DoSetBitmap(const wxBitmap& bitmap, State which);
+ virtual void DoSetBitmapPosition(wxDirection dir);
+
+ virtual void DoSetBitmapMargins(int x, int y)
+ {
+ m_marginX = x;
+ m_marginY = y;
+ InvalidateBestSize();
+ }
+
+#if wxUSE_MARKUP && wxOSX_USE_COCOA
+ virtual bool DoSetLabelMarkup(const wxString& markup);
+#endif // wxUSE_MARKUP && wxOSX_USE_COCOA
+
+
+ // the margins around the bitmap
+ int m_marginX;
+ int m_marginY;
+
+ // the bitmaps for the different state of the buttons, all of them may be
+ // invalid and the button only shows a bitmap at all if State_Normal bitmap
+ // is valid
+ wxBitmap m_bitmaps[State_Max];
+
+ wxDECLARE_NO_COPY_CLASS(wxAnyButton);
+ DECLARE_EVENT_TABLE()
+};
+
+#endif // _WX_OSX_ANYBUTTON_H_
diff --git a/Externals/wxWidgets3/include/wx/osx/app.h b/Externals/wxWidgets3/include/wx/osx/app.h
index 74ff369b34..3814c79462 100644
--- a/Externals/wxWidgets3/include/wx/osx/app.h
+++ b/Externals/wxWidgets3/include/wx/osx/app.h
@@ -4,7 +4,7 @@
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id: app.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: app.h 68617 2011-08-09 22:17:12Z DS $
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -122,7 +122,10 @@ public:
virtual short MacHandleAEQuit(const WXAPPLEEVENTREF event , WXAPPLEEVENTREF reply) ;
virtual short MacHandleAERApp(const WXAPPLEEVENTREF event , WXAPPLEEVENTREF reply) ;
#endif
- // in response of an open-document apple event
+ // in response of an openFiles message with Cocoa and an
+ // open-document apple event with Carbon
+ virtual void MacOpenFiles(const wxArrayString &fileNames) ;
+ // called by MacOpenFiles for each file.
virtual void MacOpenFile(const wxString &fileName) ;
// in response of a get-url apple event
virtual void MacOpenURL(const wxString &url) ;
diff --git a/Externals/wxWidgets3/include/wx/osx/button.h b/Externals/wxWidgets3/include/wx/osx/button.h
index dad3e4cc05..a9a7abbd99 100644
--- a/Externals/wxWidgets3/include/wx/osx/button.h
+++ b/Externals/wxWidgets3/include/wx/osx/button.h
@@ -4,7 +4,7 @@
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id: button.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: button.h 67931 2011-06-14 13:00:42Z VZ $
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -41,8 +41,6 @@ public:
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr);
- static wxSize GetDefaultSize();
-
virtual void SetLabel(const wxString& label);
virtual wxWindow *SetDefault();
virtual void Command(wxCommandEvent& event);
@@ -52,38 +50,7 @@ public:
virtual bool OSXHandleClicked( double timestampsec );
protected:
- virtual wxSize DoGetBestSize() const ;
-
- void OnEnterWindow( wxMouseEvent& event);
- void OnLeaveWindow( wxMouseEvent& event);
-
- virtual wxBitmap DoGetBitmap(State which) const;
- virtual void DoSetBitmap(const wxBitmap& bitmap, State which);
- virtual void DoSetBitmapPosition(wxDirection dir);
-
- virtual void DoSetBitmapMargins(int x, int y)
- {
- m_marginX = x;
- m_marginY = y;
- InvalidateBestSize();
- }
-
-#if wxUSE_MARKUP && wxOSX_USE_COCOA
- virtual bool DoSetLabelMarkup(const wxString& markup);
-#endif // wxUSE_MARKUP && wxOSX_USE_COCOA
-
-
- // the margins around the bitmap
- int m_marginX;
- int m_marginY;
-
- // the bitmaps for the different state of the buttons, all of them may be
- // invalid and the button only shows a bitmap at all if State_Normal bitmap
- // is valid
- wxBitmap m_bitmaps[State_Max];
-
DECLARE_DYNAMIC_CLASS(wxButton)
- DECLARE_EVENT_TABLE()
};
// OS X specific class, not part of public wx API
diff --git a/Externals/wxWidgets3/include/wx/osx/carbon/dataview.h b/Externals/wxWidgets3/include/wx/osx/carbon/dataview.h
index 056a2a895c..e4dfeb2940 100644
--- a/Externals/wxWidgets3/include/wx/osx/carbon/dataview.h
+++ b/Externals/wxWidgets3/include/wx/osx/carbon/dataview.h
@@ -406,6 +406,8 @@ public:
//
virtual wxDataViewItem GetCurrentItem() const;
virtual void SetCurrentItem(const wxDataViewItem& item);
+ virtual wxDataViewColumn *GetCurrentColumn() const;
+ virtual int GetSelectedItemsCount() const;
virtual int GetSelections(wxDataViewItemArray& sel) const;
virtual bool IsSelected (wxDataViewItem const& item) const;
virtual void Select (wxDataViewItem const& item);
@@ -427,6 +429,8 @@ public:
virtual void SetRowHeight(wxDataViewItem const& item, unsigned int height);
virtual void OnSize ();
+ virtual void StartEditor( const wxDataViewItem & item, unsigned int column );
+
//
// other methods
//
diff --git a/Externals/wxWidgets3/include/wx/osx/carbon/evtloop.h b/Externals/wxWidgets3/include/wx/osx/carbon/evtloop.h
index 2811e5c8c8..c327fff427 100644
--- a/Externals/wxWidgets3/include/wx/osx/carbon/evtloop.h
+++ b/Externals/wxWidgets3/include/wx/osx/carbon/evtloop.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 2006-01-12
-// RCS-ID: $Id: evtloop.h 65680 2010-09-30 11:44:45Z VZ $
+// RCS-ID: $Id: evtloop.h 68302 2011-07-19 17:56:57Z SC $
// Copyright: (c) 2006 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -20,6 +20,8 @@ class WXDLLIMPEXP_CORE wxGUIEventLoop : public wxCFEventLoop
public:
wxGUIEventLoop();
+ virtual void WakeUp();
+
protected:
virtual int DoDispatchTimeout(unsigned long timeout);
diff --git a/Externals/wxWidgets3/include/wx/osx/carbon/region.h b/Externals/wxWidgets3/include/wx/osx/carbon/region.h
index 22ae118508..e15ca339d8 100644
--- a/Externals/wxWidgets3/include/wx/osx/carbon/region.h
+++ b/Externals/wxWidgets3/include/wx/osx/carbon/region.h
@@ -4,7 +4,7 @@
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id: region.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: region.h 69459 2011-10-18 21:56:40Z VZ $
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -17,12 +17,13 @@
class WXDLLIMPEXP_CORE wxRegion : public wxRegionWithCombine
{
public:
+ wxRegion() { }
wxRegion(long x, long y, long w, long h);
wxRegion(const wxPoint& topLeft, const wxPoint& bottomRight);
wxRegion(const wxRect& rect);
wxRegion( WXHRGN hRegion );
wxRegion(size_t n, const wxPoint *points, wxPolygonFillMode fillStyle = wxODDEVEN_RULE );
- wxRegion();
+#if wxUSE_IMAGE
wxRegion(const wxBitmap& bmp)
{
Union(bmp);
@@ -32,6 +33,7 @@ public:
{
Union(bmp, transColour, tolerance);
}
+#endif
virtual ~wxRegion();
diff --git a/Externals/wxWidgets3/include/wx/osx/carbon/statbmp.h b/Externals/wxWidgets3/include/wx/osx/carbon/statbmp.h
index 6d378e2d49..4ec79b1054 100644
--- a/Externals/wxWidgets3/include/wx/osx/carbon/statbmp.h
+++ b/Externals/wxWidgets3/include/wx/osx/carbon/statbmp.h
@@ -4,7 +4,7 @@
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id: statbmp.h 67280 2011-03-22 14:17:38Z DS $
+// RCS-ID: $Id: statbmp.h 70165 2011-12-29 14:42:13Z SN $
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -39,8 +39,8 @@ class WXDLLIMPEXP_CORE wxStaticBitmap: public wxStaticBitmapBase
virtual void SetBitmap(const wxBitmap& bitmap);
- virtual void Command(wxCommandEvent& WXUNUSED(event)) {};
- virtual void ProcessCommand(wxCommandEvent& WXUNUSED(event)) {};
+ virtual void Command(wxCommandEvent& WXUNUSED(event)) {}
+ virtual void ProcessCommand(wxCommandEvent& WXUNUSED(event)) {}
void OnPaint( wxPaintEvent &event ) ;
wxBitmap GetBitmap() const { return m_bitmap; }
diff --git a/Externals/wxWidgets3/include/wx/osx/chkconf.h b/Externals/wxWidgets3/include/wx/osx/chkconf.h
index 98446dc66f..211411c961 100644
--- a/Externals/wxWidgets3/include/wx/osx/chkconf.h
+++ b/Externals/wxWidgets3/include/wx/osx/chkconf.h
@@ -4,7 +4,7 @@
* Author: Vadim Zeitlin
* Modified by:
* Created: 2005-04-05 (extracted from wx/chkconf.h)
- * RCS-ID: $Id: chkconf.h 66955 2011-02-18 18:44:43Z SC $
+ * RCS-ID: $Id: chkconf.h 67497 2011-04-15 19:18:34Z DS $
* Copyright: (c) 2005 Vadim Zeitlin
* Licence: wxWindows licence
*/
@@ -107,4 +107,4 @@
#include "wx/osx/cocoa/chkconf.h"
#endif
-#endif // _WX_OSX_CHKCONF_H_
+#endif /* _WX_OSX_CHKCONF_H_ */
diff --git a/Externals/wxWidgets3/include/wx/osx/cocoa/dataview.h b/Externals/wxWidgets3/include/wx/osx/cocoa/dataview.h
index 335bce5ad7..0859b2dbae 100644
--- a/Externals/wxWidgets3/include/wx/osx/cocoa/dataview.h
+++ b/Externals/wxWidgets3/include/wx/osx/cocoa/dataview.h
@@ -474,6 +474,8 @@ public:
//
virtual wxDataViewItem GetCurrentItem() const;
virtual void SetCurrentItem(const wxDataViewItem& item);
+ virtual wxDataViewColumn *GetCurrentColumn() const;
+ virtual int GetSelectedItemsCount() const;
virtual int GetSelections(wxDataViewItemArray& sel) const;
virtual bool IsSelected(const wxDataViewItem& item) const;
virtual void Select(const wxDataViewItem& item);
@@ -496,6 +498,8 @@ public:
wxDataViewColumn*& columnPtr) const;
virtual void SetRowHeight(const wxDataViewItem& item, unsigned int height);
virtual void OnSize();
+
+ virtual void StartEditor( const wxDataViewItem & item, unsigned int column );
// drag & drop helper methods
wxDataFormat GetDnDDataFormat(wxDataObjectComposite* dataObjects);
diff --git a/Externals/wxWidgets3/include/wx/osx/cocoa/evtloop.h b/Externals/wxWidgets3/include/wx/osx/cocoa/evtloop.h
index d3ae6c76d1..4dae4c2184 100644
--- a/Externals/wxWidgets3/include/wx/osx/cocoa/evtloop.h
+++ b/Externals/wxWidgets3/include/wx/osx/cocoa/evtloop.h
@@ -3,7 +3,7 @@
// Purpose: declaration of wxGUIEventLoop for wxOSX/Cocoa
// Author: Vadim Zeitlin
// Created: 2008-12-28
-// RCS-ID: $Id: evtloop.h 67129 2011-03-05 12:21:20Z SC $
+// RCS-ID: $Id: evtloop.h 68301 2011-07-19 16:17:44Z SC $
// Copyright: (c) 2006 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -21,6 +21,8 @@ public:
void EndModalSession();
+ virtual void WakeUp();
+
protected:
virtual int DoDispatchTimeout(unsigned long timeout);
@@ -31,7 +33,12 @@ protected:
virtual CFRunLoopRef CFGetCurrentRunLoop() const;
void* m_modalSession;
+
+ wxWindow* m_modalWindow;
+
WXWindow m_dummyWindow;
+
+ int m_modalNestedLevel;
};
#endif // _WX_OSX_COCOA_EVTLOOP_H_
diff --git a/Externals/wxWidgets3/include/wx/osx/cocoa/private.h b/Externals/wxWidgets3/include/wx/osx/cocoa/private.h
index 9449772324..0e4a19ac8c 100644
--- a/Externals/wxWidgets3/include/wx/osx/cocoa/private.h
+++ b/Externals/wxWidgets3/include/wx/osx/cocoa/private.h
@@ -6,7 +6,7 @@
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id: private.h 67233 2011-03-18 15:45:51Z SC $
+// RCS-ID: $Id: private.h 70863 2012-03-10 13:13:51Z SC $
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -145,13 +145,13 @@ public :
virtual unsigned int draggingUpdated(void* sender, WXWidget slf, void* _cmd);
virtual bool performDragOperation(void* sender, WXWidget slf, void* _cmd);
virtual void mouseEvent(WX_NSEvent event, WXWidget slf, void* _cmd);
+ virtual void cursorUpdate(WX_NSEvent event, WXWidget slf, void* _cmd);
virtual void keyEvent(WX_NSEvent event, WXWidget slf, void* _cmd);
virtual void insertText(NSString* text, WXWidget slf, void* _cmd);
virtual bool performKeyEquivalent(WX_NSEvent event, WXWidget slf, void* _cmd);
virtual bool acceptsFirstResponder(WXWidget slf, void* _cmd);
virtual bool becomeFirstResponder(WXWidget slf, void* _cmd);
virtual bool resignFirstResponder(WXWidget slf, void* _cmd);
- virtual void resetCursorRects(WXWidget slf, void* _cmd);
virtual bool isFlipped(WXWidget slf, void* _cmd);
virtual void drawRect(void* rect, WXWidget slf, void* _cmd);
@@ -239,6 +239,8 @@ public :
virtual void SetModified(bool modified);
virtual bool IsModified() const;
+ virtual void SetRepresentedFilename(const wxString& filename);
+
wxNonOwnedWindow* GetWXPeer() { return m_wxPeer; }
CGWindowLevel GetWindowLevel() const { return m_macWindowLevel; }
@@ -352,6 +354,21 @@ protected :
- (void)sheetDidEnd:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo;
@end
+ // This interface must be exported in shared 64 bit multilib build but
+ // using WXEXPORT with Objective C interfaces doesn't work with old (4.0.1)
+ // gcc when using 10.4 SDK. It does work with newer gcc even in 32 bit
+ // builds but seems to be unnecessary there so to avoid the expense of a
+ // configure check verifying if this does work or not with the current
+ // compiler we just only use it for 64 bit builds where this is always
+ // supported.
+ //
+ // NB: Currently this is the only place where we need to export an
+ // interface but if we need to do it elsewhere we should define a
+ // WXEXPORT_OBJC macro once and reuse it in all places it's needed
+ // instead of duplicating this preprocessor check.
+#ifdef __LP64__
+ WXEXPORT
+#endif // 64 bit builds
@interface wxNSAppController : NSObject wxOSX_10_6_AND_LATER()
{
}
diff --git a/Externals/wxWidgets3/include/wx/osx/cocoa/private/date.h b/Externals/wxWidgets3/include/wx/osx/cocoa/private/date.h
new file mode 100644
index 0000000000..09624ab3f9
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/osx/cocoa/private/date.h
@@ -0,0 +1,51 @@
+///////////////////////////////////////////////////////////////////////////////
+// Name: wx/osx/cocoa/private/date.h
+// Purpose: NSDate-related helpers
+// Author: Vadim Zeitlin
+// Created: 2011-12-19
+// RCS-ID: $Id: date.h 70070 2011-12-20 21:27:09Z VZ $
+// Copyright: (c) 2011 Vadim Zeitlin
+// Licence: wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_OSX_COCOA_PRIVATE_DATE_H_
+#define _WX_OSX_COCOA_PRIVATE_DATE_H_
+
+#include "wx/datetime.h"
+
+namespace wxOSXImpl
+{
+
+// Functions to convert between NSDate and wxDateTime.
+
+// Returns an NSDate corresponding to the given wxDateTime which can be invalid
+// (in which case nil is returned).
+inline NSDate* NSDateFromWX(const wxDateTime& dt)
+{
+ if ( !dt.IsValid() )
+ return nil;
+
+ // Get the internal representation as a double used by NSDate.
+ double ticks = dt.GetValue().ToDouble();
+
+ // wxDateTime uses milliseconds while NSDate uses (fractional) seconds.
+ return [NSDate dateWithTimeIntervalSince1970:ticks/1000.];
+}
+
+
+// Returns wxDateTime corresponding to the given NSDate (which may be nil).
+inline wxDateTime NSDateToWX(const NSDate* d)
+{
+ if ( !d )
+ return wxDefaultDateTime;
+
+ // Reverse everything done above.
+ wxLongLong ll;
+ ll.Assign([d timeIntervalSince1970]*1000);
+ wxDateTime dt(ll);
+ return dt;
+}
+
+} // namespace wxOSXImpl
+
+#endif // _WX_OSX_COCOA_PRIVATE_DATE_H_
diff --git a/Externals/wxWidgets3/include/wx/osx/cocoa/private/textimpl.h b/Externals/wxWidgets3/include/wx/osx/cocoa/private/textimpl.h
index a977555e35..841bf5bd08 100644
--- a/Externals/wxWidgets3/include/wx/osx/cocoa/private/textimpl.h
+++ b/Externals/wxWidgets3/include/wx/osx/cocoa/private/textimpl.h
@@ -4,7 +4,7 @@
// Author: Stefan Csomor
// Modified by:
// Created: 03/02/99
-// RCS-ID: $Id: textimpl.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: textimpl.h 70354 2012-01-15 15:53:56Z SC $
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -28,6 +28,9 @@ public :
wxNSTextFieldControl( wxWindow *wxPeer, wxTextEntry *entry, WXWidget w );
virtual ~wxNSTextFieldControl();
+ virtual bool CanClipMaxLength() const { return true; }
+ virtual void SetMaxLength(unsigned long len);
+
virtual wxString GetStringValue() const ;
virtual void SetStringValue( const wxString &str) ;
virtual void Copy() ;
@@ -105,6 +108,9 @@ public :
virtual wxString GetStringAtIndex(int pos) const;
virtual int FindString(const wxString& text) const;
+ virtual void Popup();
+ virtual void Dismiss();
+
private:
NSComboBox* m_comboBox;
};
diff --git a/Externals/wxWidgets3/include/wx/osx/combobox.h b/Externals/wxWidgets3/include/wx/osx/combobox.h
index 0aad2f019d..ba55d4f160 100644
--- a/Externals/wxWidgets3/include/wx/osx/combobox.h
+++ b/Externals/wxWidgets3/include/wx/osx/combobox.h
@@ -4,7 +4,7 @@
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id: combobox.h 66993 2011-02-22 13:25:38Z VZ $
+// RCS-ID: $Id: combobox.h 69956 2011-12-08 14:47:37Z VZ $
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -25,7 +25,14 @@ class wxComboBoxChoice;
class wxComboWidgetImpl;
// Combobox item
-class WXDLLIMPEXP_CORE wxComboBox : public wxControl, public wxComboBoxBase
+class WXDLLIMPEXP_CORE wxComboBox :
+ public wxWindowWithItems<
+#if wxOSX_USE_CARBON
+ wxNavigationEnabled,
+#else
+ wxControl,
+#endif
+ wxComboBoxBase>
{
DECLARE_DYNAMIC_CLASS(wxComboBox)
@@ -42,7 +49,7 @@ class WXDLLIMPEXP_CORE wxComboBox : public wxControl, public wxComboBoxBase
virtual void DelegateTextChanged( const wxString& value );
virtual void DelegateChoice( const wxString& value );
- wxComboBox() { Init(); }
+ wxComboBox() { }
wxComboBox(wxWindow *parent, wxWindowID id,
const wxString& value = wxEmptyString,
@@ -53,7 +60,6 @@ class WXDLLIMPEXP_CORE wxComboBox : public wxControl, public wxComboBoxBase
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxComboBoxNameStr)
{
- Init();
Create(parent, id, value, pos, size, n, choices, style, validator, name);
}
@@ -66,7 +72,6 @@ class WXDLLIMPEXP_CORE wxComboBox : public wxControl, public wxComboBoxBase
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxComboBoxNameStr)
{
- Init();
Create(parent, id, value, pos, size, choices, style, validator, name);
}
@@ -134,25 +139,20 @@ class WXDLLIMPEXP_CORE wxComboBox : public wxControl, public wxComboBoxBase
virtual wxTextWidgetImpl* GetTextPeer() const;
#endif // wxOSX_USE_CARBON
+#if wxOSX_USE_COCOA
+ virtual void Popup();
+ virtual void Dismiss();
+#endif // wxOSX_USE_COCOA
// osx specific event handling common for all osx-ports
virtual bool OSXHandleClicked( double timestampsec );
-#if wxOSX_USE_CARBON
- wxCONTROL_ITEMCONTAINER_CLIENTDATAOBJECT_RECAST
-
- WX_DECLARE_CONTROL_CONTAINER();
-#endif
-
#if wxOSX_USE_COCOA
wxComboWidgetImpl* GetComboPeer() const;
#endif
protected:
- // common part of all ctors
- void Init();
-
// List functions
virtual void DoDeleteOneItem(unsigned int n);
virtual void DoClear();
@@ -187,10 +187,6 @@ protected:
wxComboBoxChoice* m_choice;
wxComboBoxDataArray m_datas;
-
-#if wxOSX_USE_CARBON
- DECLARE_EVENT_TABLE()
-#endif
};
#endif // _WX_COMBOBOX_H_
diff --git a/Externals/wxWidgets3/include/wx/osx/config_xcode.h b/Externals/wxWidgets3/include/wx/osx/config_xcode.h
index 5321a98ee3..5c92ac2032 100644
--- a/Externals/wxWidgets3/include/wx/osx/config_xcode.h
+++ b/Externals/wxWidgets3/include/wx/osx/config_xcode.h
@@ -4,7 +4,7 @@
// Author: Stefan Csomor
// Modified by:
// Created: 29.04.04
-// RCS-ID: $Id: config_xcode.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: config_xcode.h 70021 2011-12-16 22:12:49Z VZ $
// Copyright: (c) wxWidgets team
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -133,9 +133,9 @@
#define WXWIN_OS_DESCRIPTION "Darwin 7.9.0 Power Macintosh"
#define PACKAGE_BUGREPORT "wx-dev@lists.wxwidgets.org"
#define PACKAGE_NAME "wxWidgets"
-#define PACKAGE_STRING "wxWidgets 2.9.2"
+#define PACKAGE_STRING "wxWidgets 2.9.4"
#define PACKAGE_TARNAME "wxwidgets"
-#define PACKAGE_VERSION "2.9.2"
+#define PACKAGE_VERSION "2.9.4"
// for regex
#define WX_NO_REGEX_ADVANCED 1
diff --git a/Externals/wxWidgets3/include/wx/osx/core/colour.h b/Externals/wxWidgets3/include/wx/osx/core/colour.h
index 827c26db69..2765a4c20b 100644
--- a/Externals/wxWidgets3/include/wx/osx/core/colour.h
+++ b/Externals/wxWidgets3/include/wx/osx/core/colour.h
@@ -4,7 +4,7 @@
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id: colour.h 67068 2011-02-27 12:48:42Z VZ $
+// RCS-ID: $Id: colour.h 70165 2011-12-29 14:42:13Z SN $
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -42,10 +42,10 @@ public:
bool operator != (const wxColour& colour) const { return !(*this == colour); }
- CGColorRef GetPixel() const { return m_cgColour; };
+ CGColorRef GetPixel() const { return m_cgColour; }
- CGColorRef GetCGColor() const { return m_cgColour; };
- CGColorRef CreateCGColor() const { return wxCFRetain( (CGColorRef)m_cgColour ); };
+ CGColorRef GetCGColor() const { return m_cgColour; }
+ CGColorRef CreateCGColor() const { return wxCFRetain( (CGColorRef)m_cgColour ); }
#if wxOSX_USE_COCOA_OR_CARBON
void GetRGBColor( RGBColor *col ) const;
diff --git a/Externals/wxWidgets3/include/wx/osx/core/dataview.h b/Externals/wxWidgets3/include/wx/osx/core/dataview.h
index 8a24aaefd3..f02d328eea 100644
--- a/Externals/wxWidgets3/include/wx/osx/core/dataview.h
+++ b/Externals/wxWidgets3/include/wx/osx/core/dataview.h
@@ -89,6 +89,9 @@ public:
virtual wxDataViewItem GetCurrentItem() const = 0;
virtual void SetCurrentItem(const wxDataViewItem& item) = 0;
+ virtual wxDataViewColumn *GetCurrentColumn() const = 0;
+
+ virtual int GetSelectedItemsCount() const = 0;
virtual int GetSelections(wxDataViewItemArray& sel) const = 0; // returns all selected items in the native control
virtual bool IsSelected (wxDataViewItem const& item) const = 0; // checks if the passed item is selected in the native control
virtual void Select (wxDataViewItem const& item) = 0; // selects the passed item in the native control
@@ -109,6 +112,7 @@ public:
virtual void HitTest (wxPoint const& point, wxDataViewItem& item, wxDataViewColumn*& columnPtr) const = 0; // return the item and column pointer that contains with the passed point
virtual void SetRowHeight(wxDataViewItem const& item, unsigned int height) = 0; // sets the height of the row containg the passed item in the native control
virtual void OnSize (void) = 0; // updates the layout of the native control after a size event
+ virtual void StartEditor( const wxDataViewItem & item, unsigned int column ) = 0; // starts editing the passed in item and column
};
#endif // _WX_DATAVIEWCTRL_CORE_H_
diff --git a/Externals/wxWidgets3/include/wx/osx/core/mimetype.h b/Externals/wxWidgets3/include/wx/osx/core/mimetype.h
index b018d7a560..a6e5b1ead9 100644
--- a/Externals/wxWidgets3/include/wx/osx/core/mimetype.h
+++ b/Externals/wxWidgets3/include/wx/osx/core/mimetype.h
@@ -4,7 +4,7 @@
// Author: Neil Perkins
// Modified by:
// Created: 2010-05-15
-// RCS-ID: $Id: mimetype.h 67232 2011-03-18 15:10:15Z DS $
+// RCS-ID: $Id: mimetype.h 68563 2011-08-05 19:02:26Z VZ $
// Copyright: (C) 2010 Neil Perkins
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -56,6 +56,7 @@ private:
bool GetMimeTypes(const wxString& uti, wxArrayString& mimeTypes);
bool GetIcon(const wxString& uti, wxIconLocation *iconLoc);
bool GetDescription(const wxString& uti, wxString *desc);
+ bool GetApplication(const wxString& uti, wxString *command);
// Structure to represent file types
typedef struct FileTypeData
@@ -63,6 +64,7 @@ private:
wxArrayString extensions;
wxArrayString mimeTypes;
wxIconLocation iconLoc;
+ wxString application;
wxString description;
}
FileTypeInfo;
@@ -95,9 +97,9 @@ public:
bool GetMimeTypes(wxArrayString& mimeTypes) const ;
bool GetIcon(wxIconLocation *iconLoc) const ;
bool GetDescription(wxString *desc) const ;
+ bool GetOpenCommand(wxString *openCmd, const wxFileType::MessageParameters& params) const;
// These functions are only stubs on Mac OS X
- bool GetOpenCommand(wxString *openCmd, const wxFileType::MessageParameters& params) const;
bool GetPrintCommand(wxString *printCmd, const wxFileType::MessageParameters& params) const;
size_t GetAllCommands(wxArrayString *verbs, wxArrayString *commands, const wxFileType::MessageParameters& params) const;
bool SetCommand(const wxString& cmd, const wxString& verb, bool overwriteprompt = TRUE);
diff --git a/Externals/wxWidgets3/include/wx/osx/core/private.h b/Externals/wxWidgets3/include/wx/osx/core/private.h
index 06f660ccc5..4b69c9bb90 100644
--- a/Externals/wxWidgets3/include/wx/osx/core/private.h
+++ b/Externals/wxWidgets3/include/wx/osx/core/private.h
@@ -6,7 +6,7 @@
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id: private.h 67233 2011-03-18 15:45:51Z SC $
+// RCS-ID: $Id: private.h 70354 2012-01-15 15:53:56Z SC $
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -32,7 +32,7 @@
#define wxOSX_10_6_AND_LATER(x)
#endif
-#if !wxUSE_GUI || wxOSX_USE_COCOA_OR_CARBON
+#if ( !wxUSE_GUI && !wxOSX_USE_IPHONE ) || wxOSX_USE_COCOA_OR_CARBON
// Carbon functions are currently still used in wxOSX/Cocoa too (including
// wxBase part of it).
@@ -47,6 +47,11 @@ WXDLLIMPEXP_BASE wxString wxMacFSRefToPath( const FSRef *fsRef , CFStringRef add
WXDLLIMPEXP_BASE OSStatus wxMacPathToFSRef( const wxString&path , FSRef *fsRef );
WXDLLIMPEXP_BASE wxString wxMacHFSUniStrToString( ConstHFSUniStr255Param uniname );
+// keycode utils from app.cpp
+
+WXDLLIMPEXP_BASE CGKeyCode wxCharCodeWXToOSX(wxKeyCode code);
+WXDLLIMPEXP_BASE long wxMacTranslateKey(unsigned char key, unsigned char code);
+
#endif
#if wxUSE_GUI
@@ -626,6 +631,9 @@ public :
virtual void GetSelection( long* from, long* to ) const = 0 ;
virtual void WriteText( const wxString& str ) = 0 ;
+ virtual bool CanClipMaxLength() const { return false; }
+ virtual void SetMaxLength(unsigned long WXUNUSED(len)) {}
+
virtual bool GetStyle( long position, wxTextAttr& style);
virtual void SetStyle( long start, long end, const wxTextAttr& style ) ;
virtual void Copy() ;
@@ -675,16 +683,18 @@ public :
virtual ~wxComboWidgetImpl() {}
- virtual int GetSelectedItem() const { return -1; };
- virtual void SetSelectedItem(int WXUNUSED(item)) {};
+ virtual int GetSelectedItem() const { return -1; }
+ virtual void SetSelectedItem(int WXUNUSED(item)) {}
- virtual int GetNumberOfItems() const { return -1; };
+ virtual int GetNumberOfItems() const { return -1; }
virtual void InsertItem(int WXUNUSED(pos), const wxString& WXUNUSED(item)) {}
virtual void RemoveItem(int WXUNUSED(pos)) {}
virtual void Clear() {}
+ virtual void Popup() {}
+ virtual void Dismiss() {}
virtual wxString GetStringAtIndex(int WXUNUSED(pos)) const { return wxEmptyString; }
@@ -856,6 +866,8 @@ public :
virtual void SetModified(bool WXUNUSED(modified)) { }
virtual bool IsModified() const { return false; }
+ virtual void SetRepresentedFilename(const wxString& WXUNUSED(filename)) { }
+
#if wxOSX_USE_IPHONE
virtual CGFloat GetWindowLevel() const { return 0.0; }
#else
diff --git a/Externals/wxWidgets3/include/wx/osx/core/private/datetimectrl.h b/Externals/wxWidgets3/include/wx/osx/core/private/datetimectrl.h
new file mode 100644
index 0000000000..499ff1b94a
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/osx/core/private/datetimectrl.h
@@ -0,0 +1,71 @@
+///////////////////////////////////////////////////////////////////////////////
+// Name: wx/osx/core/private/datetime.h
+// Purpose:
+// Author: Vadim Zeitlin
+// Created: 2011-12-19
+// RCS-ID: $Id: datetimectrl.h 70071 2011-12-20 21:27:14Z VZ $
+// Copyright: (c) 2011 Vadim Zeitlin
+// Licence: wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_OSX_CORE_PRIVATE_DATETIMECTRL_H_
+#define _WX_OSX_CORE_PRIVATE_DATETIMECTRL_H_
+
+#if wxUSE_DATEPICKCTRL
+
+#include "wx/osx/private.h"
+
+#include "wx/datetime.h"
+
+enum wxDateTimeWidgetKind
+{
+ wxDateTimeWidget_YearMonthDay,
+ wxDateTimeWidget_HourMinuteSecond
+};
+
+// ----------------------------------------------------------------------------
+// wxDateTimeWidgetImpl: peer class for wxDateTimePickerCtrl.
+// ----------------------------------------------------------------------------
+
+class wxDateTimeWidgetImpl
+#if wxOSX_USE_COCOA
+ : public wxWidgetCocoaImpl
+#elif wxOSX_USE_CARBON
+ : public wxMacControl
+#else
+ #error "Unsupported platform"
+#endif
+{
+public:
+ static wxDateTimeWidgetImpl*
+ CreateDateTimePicker(wxDateTimePickerCtrl* wxpeer,
+ const wxDateTime& dt,
+ const wxPoint& pos,
+ const wxSize& size,
+ long style,
+ wxDateTimeWidgetKind kind);
+
+ virtual void SetDateTime(const wxDateTime& dt) = 0;
+ virtual wxDateTime GetDateTime() const = 0;
+
+ virtual void SetDateRange(const wxDateTime& dt1, const wxDateTime& dt2) = 0;
+ virtual bool GetDateRange(wxDateTime* dt1, wxDateTime* dt2) = 0;
+
+ virtual ~wxDateTimeWidgetImpl() { }
+
+protected:
+#if wxOSX_USE_COCOA
+ wxDateTimeWidgetImpl(wxDateTimePickerCtrl* wxpeer, WXWidget view)
+ : wxWidgetCocoaImpl(wxpeer, view)
+ {
+ }
+#elif wxOSX_USE_CARBON
+ // There is no Carbon implementation of this control yet so we don't need
+ // any ctor for it yet but it should be added here if Carbon version is
+ // written later.
+#endif
+};
+
+#endif // wxUSE_DATEPICKCTRL
+
+#endif // _WX_OSX_CORE_PRIVATE_DATETIMECTRL_H_
diff --git a/Externals/wxWidgets3/include/wx/osx/dataview.h b/Externals/wxWidgets3/include/wx/osx/dataview.h
index 5380d55a38..f54188e3df 100644
--- a/Externals/wxWidgets3/include/wx/osx/dataview.h
+++ b/Externals/wxWidgets3/include/wx/osx/dataview.h
@@ -2,7 +2,7 @@
// Name: wx/osx/dataview.h
// Purpose: wxDataViewCtrl native implementation header for OSX
// Author:
-// Id: $Id: dataview.h 66634 2011-01-07 18:26:58Z VS $
+// Id: $Id: dataview.h 70496 2012-02-02 14:19:30Z VZ $
// Copyright: (c) 2009
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -60,12 +60,11 @@ public:
virtual void SetMaxWidth (int maxWidth);
virtual void SetMinWidth (int minWidth);
virtual void SetReorderable(bool reorderable);
- virtual void SetResizeable (bool resizeable);
+ virtual void SetResizeable (bool resizable);
virtual void SetSortable (bool sortable);
virtual void SetSortOrder (bool ascending);
virtual void SetTitle (wxString const& title);
virtual void SetWidth (int width);
- virtual void SetAsSortKey (bool sort = true);
// implementation only
wxDataViewColumnNativeData* GetNativeData() const
@@ -151,7 +150,7 @@ public:
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxDataViewCtrlNameStr);
- virtual wxControl* GetMainWindow() // not used for the native implementation
+ virtual wxWindow* GetMainWindow() // not used for the native implementation
{
return this;
}
@@ -175,8 +174,9 @@ public:
virtual bool IsExpanded(const wxDataViewItem & item) const;
virtual unsigned int GetCount() const;
- virtual wxRect GetItemRect(const wxDataViewItem& item, const wxDataViewColumn* columnPtr) const;
- virtual wxDataViewItem GetSelection() const;
+ virtual wxRect GetItemRect(const wxDataViewItem& item,
+ const wxDataViewColumn* columnPtr = NULL) const;
+ virtual int GetSelectedItemsCount() const;
virtual int GetSelections(wxDataViewItemArray& sel) const;
virtual void HitTest(const wxPoint& point, wxDataViewItem& item, wxDataViewColumn*& columnPtr) const;
@@ -201,6 +201,8 @@ public:
// finishes editing of custom items; if no custom item is currently edited the method does nothing
void FinishCustomItemEditing();
+
+ virtual void EditItem(const wxDataViewItem& item, const wxDataViewColumn *column);
// returns the n-th pointer to a column;
// this method is different from GetColumn(unsigned int pos) because here 'n' is not a position in the control but the n-th
@@ -255,6 +257,8 @@ public:
m_Deleting = deleting;
}
+ virtual wxDataViewColumn *GetCurrentColumn() const;
+
virtual wxVisualAttributes GetDefaultAttributes() const
{
return GetClassDefaultAttributes(GetWindowVariant());
diff --git a/Externals/wxWidgets3/include/wx/osx/datectrl.h b/Externals/wxWidgets3/include/wx/osx/datectrl.h
new file mode 100644
index 0000000000..026361aa2f
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/osx/datectrl.h
@@ -0,0 +1,55 @@
+///////////////////////////////////////////////////////////////////////////////
+// Name: wx/osx/datectrl.h
+// Purpose: Declaration of wxOSX-specific wxDatePickerCtrl class.
+// Author: Vadim Zeitlin
+// Created: 2011-12-18
+// RCS-ID: $Id: datectrl.h 70071 2011-12-20 21:27:14Z VZ $
+// Copyright: (c) 2011 Vadim Zeitlin
+// Licence: wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_OSX_DATECTRL_H_
+#define _WX_OSX_DATECTRL_H_
+
+// ----------------------------------------------------------------------------
+// wxDatePickerCtrl
+// ----------------------------------------------------------------------------
+
+class WXDLLIMPEXP_ADV wxDatePickerCtrl : public wxDatePickerCtrlBase
+{
+public:
+ // Constructors.
+ wxDatePickerCtrl() { }
+
+ wxDatePickerCtrl(wxWindow *parent,
+ wxWindowID id,
+ const wxDateTime& dt = wxDefaultDateTime,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxDP_DEFAULT | wxDP_SHOWCENTURY,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxDatePickerCtrlNameStr)
+ {
+ Create(parent, id, dt, pos, size, style, validator, name);
+ }
+
+ bool Create(wxWindow *parent,
+ wxWindowID id,
+ const wxDateTime& dt = wxDefaultDateTime,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxDP_DEFAULT | wxDP_SHOWCENTURY,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxDatePickerCtrlNameStr);
+
+ // Implement the base class pure virtuals.
+ virtual void SetRange(const wxDateTime& dt1, const wxDateTime& dt2);
+ virtual bool GetRange(wxDateTime *dt1, wxDateTime *dt2) const;
+
+ virtual void OSXGenerateEvent(const wxDateTime& dt);
+
+private:
+ wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxDatePickerCtrl);
+};
+
+#endif // _WX_OSX_DATECTRL_H_
diff --git a/Externals/wxWidgets3/include/wx/osx/datetimectrl.h b/Externals/wxWidgets3/include/wx/osx/datetimectrl.h
new file mode 100644
index 0000000000..2184229b12
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/osx/datetimectrl.h
@@ -0,0 +1,34 @@
+///////////////////////////////////////////////////////////////////////////////
+// Name: wx/osx/datetimectrl.h
+// Purpose: Declaration of wxOSX-specific wxDateTimePickerCtrl class.
+// Author: Vadim Zeitlin
+// Created: 2011-12-18
+// RCS-ID: $Id: datetimectrl.h 70071 2011-12-20 21:27:14Z VZ $
+// Copyright: (c) 2011 Vadim Zeitlin
+// Licence: wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_OSX_DATETIMECTRL_H_
+#define _WX_OSX_DATETIMECTRL_H_
+
+class wxDateTimeWidgetImpl;
+
+// ----------------------------------------------------------------------------
+// wxDateTimePickerCtrl
+// ----------------------------------------------------------------------------
+
+class WXDLLIMPEXP_ADV wxDateTimePickerCtrl : public wxDateTimePickerCtrlBase
+{
+public:
+ // Implement the base class pure virtuals.
+ virtual void SetValue(const wxDateTime& dt);
+ virtual wxDateTime GetValue() const;
+
+ // Implementation only.
+ virtual void OSXGenerateEvent(const wxDateTime& dt) = 0;
+
+protected:
+ wxDateTimeWidgetImpl* GetDateTimePeer() const;
+};
+
+#endif // _WX_OSX_DATETIMECTRL_H_
diff --git a/Externals/wxWidgets3/include/wx/osx/dirdlg.h b/Externals/wxWidgets3/include/wx/osx/dirdlg.h
index 9ff101b44e..1ea6fd2739 100644
--- a/Externals/wxWidgets3/include/wx/osx/dirdlg.h
+++ b/Externals/wxWidgets3/include/wx/osx/dirdlg.h
@@ -4,7 +4,7 @@
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id: dirdlg.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: dirdlg.h 67896 2011-06-09 00:28:28Z SC $
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -23,6 +23,10 @@ public:
const wxSize& size = wxDefaultSize,
const wxString& name = wxDirDialogNameStr);
+#if wxOSX_USE_COCOA
+ ~wxDirDialog();
+#endif
+
virtual int ShowModal();
#if wxOSX_USE_COCOA
@@ -33,6 +37,10 @@ public:
protected:
DECLARE_DYNAMIC_CLASS(wxDirDialog)
+
+#if wxOSX_USE_COCOA
+ WX_NSObject m_sheetDelegate;
+#endif
};
#endif
diff --git a/Externals/wxWidgets3/include/wx/osx/evtloop.h b/Externals/wxWidgets3/include/wx/osx/evtloop.h
index f427594d59..26c75a7ac5 100644
--- a/Externals/wxWidgets3/include/wx/osx/evtloop.h
+++ b/Externals/wxWidgets3/include/wx/osx/evtloop.h
@@ -6,7 +6,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 2006-01-12
-// RCS-ID: $Id: evtloop.h 65680 2010-09-30 11:44:45Z VZ $
+// RCS-ID: $Id: evtloop.h 67724 2011-05-11 06:46:07Z SC $
// Copyright: (c) 2006 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -53,9 +53,14 @@ public:
AddSourceForFD(int fd, wxEventLoopSourceHandler *handler, int flags);
#endif // wxUSE_EVENTLOOP_SOURCE
- void ObserverCallBack(CFRunLoopObserverRef observer, int activity);
protected:
+ void CommonModeObserverCallBack(CFRunLoopObserverRef observer, int activity);
+ void DefaultModeObserverCallBack(CFRunLoopObserverRef observer, int activity);
+
+ static void OSXCommonModeObserverCallBack(CFRunLoopObserverRef observer, int activity, void *info);
+ static void OSXDefaultModeObserverCallBack(CFRunLoopObserverRef observer, int activity, void *info);
+
// get the currently executing CFRunLoop
virtual CFRunLoopRef CFGetCurrentRunLoop() const;
@@ -74,8 +79,11 @@ protected:
// cfrunloop
CFRunLoopRef m_runLoop;
- // runloop observer
- CFRunLoopObserverRef m_runLoopObserver;
+ // common modes runloop observer
+ CFRunLoopObserverRef m_commonModeRunLoopObserver;
+
+ // default mode runloop observer
+ CFRunLoopObserverRef m_defaultModeRunLoopObserver;
private:
// process all already pending events and dispatch a new one (blocking
diff --git a/Externals/wxWidgets3/include/wx/osx/filedlg.h b/Externals/wxWidgets3/include/wx/osx/filedlg.h
index 4ac1d59404..6dbc0cb50c 100644
--- a/Externals/wxWidgets3/include/wx/osx/filedlg.h
+++ b/Externals/wxWidgets3/include/wx/osx/filedlg.h
@@ -4,7 +4,7 @@
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id: filedlg.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: filedlg.h 67896 2011-06-09 00:28:28Z SC $
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -41,6 +41,10 @@ public:
const wxSize& sz = wxDefaultSize,
const wxString& name = wxFileDialogNameStr);
+#if wxOSX_USE_COCOA
+ ~wxFileDialog();
+#endif
+
virtual void GetPaths(wxArrayString& paths) const { paths = m_paths; }
virtual void GetFilenames(wxArrayString& files) const { files = m_fileNames ; }
@@ -70,6 +74,7 @@ protected:
#if wxOSX_USE_COCOA
virtual wxWindow* CreateFilterPanel(wxWindow *extracontrol);
+ void DoOnFilterSelected(int index);
virtual void OnFilterSelected(wxCommandEvent &event);
wxArrayString m_filterExtensions;
@@ -80,6 +85,7 @@ protected:
int m_firstFileTypeFilter;
wxArrayString m_currentExtensions;
WX_NSObject m_delegate;
+ WX_NSObject m_sheetDelegate;
#endif
};
diff --git a/Externals/wxWidgets3/include/wx/osx/font.h b/Externals/wxWidgets3/include/wx/osx/font.h
index fc53a77bc8..e1fe572e58 100644
--- a/Externals/wxWidgets3/include/wx/osx/font.h
+++ b/Externals/wxWidgets3/include/wx/osx/font.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
-// RCS-ID: $Id: font.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: font.h 70445 2012-01-23 11:28:21Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -79,6 +79,19 @@ public:
SetPixelSize(pixelSize);
}
+ wxFont(int pointSize,
+ wxFontFamily family,
+ int flags = wxFONTFLAG_DEFAULT,
+ const wxString& face = wxEmptyString,
+ wxFontEncoding encoding = wxFONTENCODING_DEFAULT)
+ {
+ Create(pointSize, family,
+ GetStyleFromFlags(flags),
+ GetWeightFromFlags(flags),
+ GetUnderlinedFromFlags(flags),
+ face, encoding);
+ }
+
bool Create(int size,
wxFontFamily family,
wxFontStyle style,
diff --git a/Externals/wxWidgets3/include/wx/osx/fontdlg.h b/Externals/wxWidgets3/include/wx/osx/fontdlg.h
index 81ecf877a7..966a8fa937 100644
--- a/Externals/wxWidgets3/include/wx/osx/fontdlg.h
+++ b/Externals/wxWidgets3/include/wx/osx/fontdlg.h
@@ -4,7 +4,7 @@
// Author: Ryan Norton
// Modified by:
// Created: 2004-09-25
-// RCS-ID: $Id: fontdlg.h 66615 2011-01-07 05:26:57Z PC $
+// RCS-ID: $Id: fontdlg.h 70497 2012-02-02 14:19:34Z VZ $
// Copyright: (c) Ryan Norton
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -35,9 +35,11 @@ class WXDLLIMPEXP_CORE wxFontDialog : public wxDialog
{
public:
wxFontDialog();
+ wxFontDialog(wxWindow *parent);
wxFontDialog(wxWindow *parent, const wxFontData& data);
virtual ~wxFontDialog();
+ bool Create(wxWindow *parent);
bool Create(wxWindow *parent, const wxFontData& data);
int ShowModal();
diff --git a/Externals/wxWidgets3/include/wx/osx/frame.h b/Externals/wxWidgets3/include/wx/osx/frame.h
index 08d91de60e..ca6ffb51da 100644
--- a/Externals/wxWidgets3/include/wx/osx/frame.h
+++ b/Externals/wxWidgets3/include/wx/osx/frame.h
@@ -4,7 +4,7 @@
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id: frame.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: frame.h 70765 2012-03-01 15:04:42Z JS $
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -59,7 +59,6 @@ public:
// event handlers
void OnActivate(wxActivateEvent& event);
void OnSysColourChanged(wxSysColourChangedEvent& event);
- void OnSize(wxSizeEvent& event);
// Toolbar
#if wxUSE_TOOLBAR
@@ -84,6 +83,8 @@ public:
void PositionBars();
+ // internal response to size events
+ virtual void MacOnInternalSize() { PositionBars(); }
protected:
// common part of all ctors
diff --git a/Externals/wxWidgets3/include/wx/osx/iphone/chkconf.h b/Externals/wxWidgets3/include/wx/osx/iphone/chkconf.h
index ccbe8206f6..c402458f67 100644
--- a/Externals/wxWidgets3/include/wx/osx/iphone/chkconf.h
+++ b/Externals/wxWidgets3/include/wx/osx/iphone/chkconf.h
@@ -4,7 +4,7 @@
* Author: Stefan Csomor
* Modified by:
* Created: 2008-07-30
- * RCS-ID: $Id: chkconf.h 67232 2011-03-18 15:10:15Z DS $
+ * RCS-ID: $Id: chkconf.h 69818 2011-11-25 14:37:03Z SC $
* Copyright: (c) Stefan Csomor
* Licence: wxWindows licence
*/
@@ -66,6 +66,11 @@
#define wxUSE_DATAVIEWCTRL 0
#endif
+#if wxUSE_TREELISTCTRL
+#undef wxUSE_TREELISTCTRL
+#define wxUSE_TREELISTCTRL 0
+#endif
+
#if wxUSE_DRAG_AND_DROP
#undef wxUSE_DRAG_AND_DROP
#define wxUSE_DRAG_AND_DROP 0
@@ -348,6 +353,16 @@
#define wxUSE_RICHTEXT 0
#endif
+#if wxUSE_TIMEPICKCTRL
+#undef wxUSE_TIMEPICKCTRL
+#define wxUSE_TIMEPICKCTRL 0
+#endif
+
+#if wxUSE_RICHTOOLTIP
+#undef wxUSE_RICHTOOLTIP
+#define wxUSE_RICHTOOLTIP 0
+#endif
+
#endif
/* _WX_OSX_IPHONE_CHKCONF_H_ */
diff --git a/Externals/wxWidgets3/include/wx/osx/joystick.h b/Externals/wxWidgets3/include/wx/osx/joystick.h
index 3608bc1cea..d9d2f06481 100644
--- a/Externals/wxWidgets3/include/wx/osx/joystick.h
+++ b/Externals/wxWidgets3/include/wx/osx/joystick.h
@@ -4,7 +4,7 @@
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id: joystick.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: joystick.h 70165 2011-12-29 14:42:13Z SN $
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -22,7 +22,7 @@ class WXDLLIMPEXP_ADV wxJoystick: public wxObject
* Public interface
*/
- wxJoystick(int joystick = wxJOYSTICK1) { m_joystick = joystick; };
+ wxJoystick(int joystick = wxJOYSTICK1) { m_joystick = joystick; }
// Attributes
////////////////////////////////////////////////////////////////////////////
diff --git a/Externals/wxWidgets3/include/wx/osx/listctrl.h b/Externals/wxWidgets3/include/wx/osx/listctrl.h
index 7b55e8ff6c..b0412f25f7 100644
--- a/Externals/wxWidgets3/include/wx/osx/listctrl.h
+++ b/Externals/wxWidgets3/include/wx/osx/listctrl.h
@@ -4,7 +4,7 @@
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id: listctrl.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: listctrl.h 70290 2012-01-08 00:55:22Z VZ $
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -23,7 +23,7 @@ class wxListCtrlRenameTimer;
WX_DECLARE_EXPORTED_LIST(wxListItem, wxColumnList);
-class WXDLLIMPEXP_CORE wxListCtrl: public wxControl
+class WXDLLIMPEXP_CORE wxListCtrl: public wxListCtrlBase
{
DECLARE_DYNAMIC_CLASS(wxListCtrl)
public:
@@ -63,8 +63,7 @@ class WXDLLIMPEXP_CORE wxListCtrl: public wxControl
bool GetColumn(int col, wxListItem& item) const;
// Sets information about this column
- // TODO: NOT const to be compatible with wxGenericListCtrl API
- bool SetColumn(int col, wxListItem& item) ;
+ bool SetColumn(int col, const wxListItem& item) ;
// Gets the column width
int GetColumnWidth(int col) const;
@@ -160,11 +159,6 @@ class WXDLLIMPEXP_CORE wxListCtrl: public wxControl
// list or report view
long GetTopItem() const ;
- // are we in report mode?
- bool InReportView() const { return HasFlag(wxLC_REPORT); }
-
- bool IsVirtual() const { return HasFlag(wxLC_VIRTUAL); }
-
// Add or remove a single window style
void SetSingleStyle(long style, bool add = true) ;
@@ -257,12 +251,6 @@ class WXDLLIMPEXP_CORE wxListCtrl: public wxControl
// Insert an image/string item
long InsertItem(long index, const wxString& label, int imageIndex);
- // For list view mode (only), inserts a column.
- long InsertColumn(long col, wxListItem& info);
-
- long InsertColumn(long col, const wxString& heading, int format = wxLIST_FORMAT_LEFT,
- int width = -1);
-
// Scrolls the list control. If in icon, small icon or report view mode,
// x specifies the number of pixels to scroll. If in list view mode, x
// specifies the number of columns to scroll.
@@ -314,10 +302,10 @@ class WXDLLIMPEXP_CORE wxListCtrl: public wxControl
bool Update(long item);
*/
- void Command(wxCommandEvent& event) { ProcessCommand(event); };
+ void Command(wxCommandEvent& event) { ProcessCommand(event); }
- wxListCtrlCompare GetCompareFunc() { return m_compareFunc; };
- wxIntPtr GetCompareFuncData() { return m_compareFuncData; };
+ wxListCtrlCompare GetCompareFunc() { return m_compareFunc; }
+ wxIntPtr GetCompareFuncData() { return m_compareFuncData; }
// public overrides needed for pimpl approach
@@ -376,14 +364,14 @@ class WXDLLIMPEXP_CORE wxListCtrl: public wxControl
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
protected:
+ // Implement base class pure virtual methods.
+ long DoInsertColumn(long col, const wxListItem& info);
// protected overrides needed for pimpl approach
virtual void DoSetSize(int x, int y,
int width, int height,
int sizeFlags = wxSIZE_AUTO);
- virtual wxSize DoGetBestSize() const;
-
long m_current;
wxListCtrlTextCtrlWrapper *m_textctrlWrapper;
wxListCtrlRenameTimer *m_renameTimer;
diff --git a/Externals/wxWidgets3/include/wx/osx/menu.h b/Externals/wxWidgets3/include/wx/osx/menu.h
index fa62ad500a..6429ca657d 100644
--- a/Externals/wxWidgets3/include/wx/osx/menu.h
+++ b/Externals/wxWidgets3/include/wx/osx/menu.h
@@ -4,7 +4,7 @@
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id: menu.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: menu.h 70350 2012-01-15 13:41:17Z VZ $
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -83,6 +83,10 @@ private:
// terminate the current radio group, if any
void EndRadioGroup();
+ // Common part of HandleMenu{Opened,Closed}().
+ void DoHandleMenuOpenedOrClosed(wxEventType evtType);
+
+
// if TRUE, insert a breal before appending the next item
bool m_doBreak;
@@ -127,6 +131,7 @@ public:
virtual wxMenu *Remove(size_t pos);
virtual void EnableTop( size_t pos, bool flag );
+ virtual bool IsEnabledTop(size_t pos) const;
virtual void SetMenuLabel( size_t pos, const wxString& label );
virtual wxString GetMenuLabel( size_t pos ) const;
virtual bool Enable( bool enable = true );
diff --git a/Externals/wxWidgets3/include/wx/osx/metafile.h b/Externals/wxWidgets3/include/wx/osx/metafile.h
index 646f60462f..2a7e13e252 100644
--- a/Externals/wxWidgets3/include/wx/osx/metafile.h
+++ b/Externals/wxWidgets3/include/wx/osx/metafile.h
@@ -6,7 +6,7 @@
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id: metafile.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: metafile.h 70710 2012-02-27 15:37:24Z SC $
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -56,13 +56,6 @@ public:
// Implementation
WXHMETAFILE GetHMETAFILE() const ;
void SetHMETAFILE(WXHMETAFILE mf) ;
-#if wxOSX_USE_COCOA_OR_CARBON && !defined( __LP64__ )
- // Since the native metafile format is PDF for Quartz
- // we need a call that allows setting PICT content for
- // backwards compatibility
- void SetPICT(void* pictHandle) ;
-#endif
-
protected:
virtual wxGDIRefData *CreateGDIRefData() const;
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
@@ -145,7 +138,7 @@ class WXDLLIMPEXP_CORE wxMetafileDataObject : public wxDataObjectSimple
public:
// ctors
wxMetafileDataObject()
- : wxDataObjectSimple(wxDF_METAFILE) { };
+ : wxDataObjectSimple(wxDF_METAFILE) { }
wxMetafileDataObject(const wxMetafile& metafile)
: wxDataObjectSimple(wxDF_METAFILE), m_metafile(metafile) { }
diff --git a/Externals/wxWidgets3/include/wx/osx/msgdlg.h b/Externals/wxWidgets3/include/wx/osx/msgdlg.h
index 00b096e920..173cab4994 100644
--- a/Externals/wxWidgets3/include/wx/osx/msgdlg.h
+++ b/Externals/wxWidgets3/include/wx/osx/msgdlg.h
@@ -5,7 +5,7 @@
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id: msgdlg.h 65680 2010-09-30 11:44:45Z VZ $
+// RCS-ID: $Id: msgdlg.h 68537 2011-08-04 22:53:42Z VZ $
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -22,6 +22,10 @@ public:
long style = wxOK|wxCENTRE,
const wxPoint& pos = wxDefaultPosition);
+#if wxOSX_USE_COCOA
+ ~wxMessageDialog();
+#endif
+
virtual int ShowModal();
#if wxOSX_USE_COCOA
@@ -39,9 +43,12 @@ protected:
void* ConstructNSAlert();
#endif
- int m_buttonId[3];
+ int m_buttonId[4];
int m_buttonCount;
+#if wxOSX_USE_COCOA
+ WX_NSObject m_sheetDelegate;
+#endif
DECLARE_DYNAMIC_CLASS(wxMessageDialog)
};
diff --git a/Externals/wxWidgets3/include/wx/osx/nonownedwnd.h b/Externals/wxWidgets3/include/wx/osx/nonownedwnd.h
index 8c674bfce2..b6b014f30b 100644
--- a/Externals/wxWidgets3/include/wx/osx/nonownedwnd.h
+++ b/Externals/wxWidgets3/include/wx/osx/nonownedwnd.h
@@ -4,7 +4,7 @@
// Author: Stefan Csomor
// Modified by:
// Created: 2008-03-24
-// RCS-ID: $Id: nonownedwnd.h 67232 2011-03-18 15:10:15Z DS $
+// RCS-ID: $Id: nonownedwnd.h 70488 2012-01-31 17:39:39Z SC $
// Copyright: (c) 2008 Stefan Csomor
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -14,6 +14,8 @@
#include "wx/window.h"
+#include "wx/graphics.h"
+
#if wxUSE_SYSTEM_OPTIONS
#define wxMAC_WINDOW_PLAIN_TRANSITION wxT("mac.window-plain-transition")
#endif
@@ -30,7 +32,7 @@
class wxNonOwnedWindowImpl;
-class WXDLLIMPEXP_CORE wxNonOwnedWindow : public wxWindow
+class WXDLLIMPEXP_CORE wxNonOwnedWindow : public wxNonOwnedWindowBase
{
public:
// constructors and such
@@ -79,8 +81,11 @@ public:
// implementation from now on
// --------------------------
- virtual bool DoSetShape(const wxRegion& region);
+ // These accessors are Mac-specific and don't exist in other ports.
const wxRegion& GetShape() const { return m_shape; }
+#if wxUSE_GRAPHICS_CONTEXT
+ const wxGraphicsPath& GetShapePath() { return m_shapePath; }
+#endif // wxUSE_GRAPHICS_CONTEXT
// activation hooks only necessary for MDI Implementation
static void MacDelayedDeactivation(long timestamp);
@@ -109,6 +114,8 @@ public:
virtual void HandleResized( double timestampsec );
virtual void HandleMoved( double timestampsec );
virtual void HandleResizing( double timestampsec, wxRect* rect );
+
+ void WindowWasPainted();
virtual bool Destroy();
@@ -125,6 +132,12 @@ protected:
wxShowEffect effect,
unsigned timeout);
+ virtual bool DoClearShape();
+ virtual bool DoSetRegionShape(const wxRegion& region);
+#if wxUSE_GRAPHICS_CONTEXT
+ virtual bool DoSetPathShape(const wxGraphicsPath& path);
+#endif // wxUSE_GRAPHICS_CONTEXT
+
virtual void WillBeDestroyed();
wxNonOwnedWindowImpl* m_nowpeer ;
@@ -134,7 +147,12 @@ protected:
static wxNonOwnedWindow *s_macDeactivateWindow;
private :
+ static clock_t s_lastFlush;
+
wxRegion m_shape;
+#if wxUSE_GRAPHICS_CONTEXT
+ wxGraphicsPath m_shapePath;
+#endif // wxUSE_GRAPHICS_CONTEXT
};
// list of all frames and modeless dialogs
diff --git a/Externals/wxWidgets3/include/wx/osx/notebook.h b/Externals/wxWidgets3/include/wx/osx/notebook.h
index 8dd48fd9ca..62a1accc33 100644
--- a/Externals/wxWidgets3/include/wx/osx/notebook.h
+++ b/Externals/wxWidgets3/include/wx/osx/notebook.h
@@ -3,7 +3,7 @@
// Purpose: MSW/GTK compatible notebook (a.k.a. property sheet)
// Author: Stefan Csomor
// Modified by:
-// RCS-ID: $Id: notebook.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: notebook.h 68810 2011-08-21 14:08:49Z VZ $
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -95,7 +95,7 @@ public:
wxNotebookPage *pPage,
const wxString& strText,
bool bSelect = false,
- int imageId = -1);
+ int imageId = NO_IMAGE);
// callbacks
// ---------
diff --git a/Externals/wxWidgets3/include/wx/osx/pnghand.h b/Externals/wxWidgets3/include/wx/osx/pnghand.h
index ce2a8d6daf..135725528b 100644
--- a/Externals/wxWidgets3/include/wx/osx/pnghand.h
+++ b/Externals/wxWidgets3/include/wx/osx/pnghand.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created: 04/01/98
-// RCS-ID: $Id: pnghand.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: pnghand.h 70165 2011-12-29 14:42:13Z SN $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -25,7 +25,7 @@ public:
SetName(wxT("PNG bitmap file"));
SetExtension(wxT("bmp"));
SetType(wxBITMAP_TYPE_PNG);
- };
+ }
virtual bool LoadFile(wxBitmap *bitmap, const wxString& name, long flags,
int desiredWidth, int desiredHeight);
diff --git a/Externals/wxWidgets3/include/wx/osx/pngread.h b/Externals/wxWidgets3/include/wx/osx/pngread.h
index 222a2c5589..bdf466b8a3 100644
--- a/Externals/wxWidgets3/include/wx/osx/pngread.h
+++ b/Externals/wxWidgets3/include/wx/osx/pngread.h
@@ -61,10 +61,10 @@ public:
bool ReadFile( char* ImageFileName=0 );
bool SaveFile( char* ImageFileName=0 );
bool SaveXPM(char *filename, char *name = 0);
- int GetWidth( void ) const { return Width; };
- int GetHeight( void ) const { return Height; };
- int GetDepth( void ) const { return Depth; };
- int GetColorType( void ) const { return ColorType; };
+ int GetWidth( void ) const { return Width; }
+ int GetHeight( void ) const { return Height; }
+ int GetDepth( void ) const { return Depth; }
+ int GetColorType( void ) const { return ColorType; }
int GetIndex(int x, int y);
bool GetRGB(int x, int y, byte* r, byte* g, byte* b);
diff --git a/Externals/wxWidgets3/include/wx/osx/popupwin.h b/Externals/wxWidgets3/include/wx/osx/popupwin.h
index caeaa004f5..3027d5f26c 100644
--- a/Externals/wxWidgets3/include/wx/osx/popupwin.h
+++ b/Externals/wxWidgets3/include/wx/osx/popupwin.h
@@ -4,7 +4,7 @@
// Author: Stefan Csomor
// Modified by:
// Created:
-// RCS-ID: $Id: popupwin.h 65680 2010-09-30 11:44:45Z VZ $
+// RCS-ID: $Id: popupwin.h 70848 2012-03-09 05:50:58Z PC $
// Copyright: (c) 2006 Stefan Csomor
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -27,9 +27,8 @@ public:
bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
- virtual bool Show(bool show);
+ virtual bool Show(bool show = true);
-protected:
DECLARE_DYNAMIC_CLASS_NO_COPY(wxPopupWindow)
};
diff --git a/Externals/wxWidgets3/include/wx/osx/printdlg.h b/Externals/wxWidgets3/include/wx/osx/printdlg.h
index 459a1d4e23..ab87b870e0 100644
--- a/Externals/wxWidgets3/include/wx/osx/printdlg.h
+++ b/Externals/wxWidgets3/include/wx/osx/printdlg.h
@@ -6,7 +6,7 @@
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id: printdlg.h 64943 2010-07-13 13:29:58Z VZ $
+// RCS-ID: $Id: printdlg.h 70636 2012-02-20 21:55:55Z VZ $
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -58,16 +58,16 @@ private:
class WXDLLIMPEXP_CORE wxMacPageSetupDialog: public wxPageSetupDialogBase
{
public:
- wxMacPageSetupDialog(wxWindow *parent, wxPageSetupData *data = NULL);
+ wxMacPageSetupDialog(wxWindow *parent, wxPageSetupDialogData *data = NULL);
virtual ~wxMacPageSetupDialog();
- virtual wxPageSetupData& GetPageSetupDialogData();
+ virtual wxPageSetupDialogData& GetPageSetupDialogData();
- bool Create(wxWindow *parent, wxPageSetupData *data = NULL);
+ bool Create(wxWindow *parent, wxPageSetupDialogData *data = NULL);
virtual int ShowModal();
private:
- wxPageSetupData m_pageSetupData;
+ wxPageSetupDialogData m_pageSetupData;
wxWindow* m_dialogParent;
private:
@@ -85,14 +85,14 @@ class WXDLLIMPEXP_FWD_CORE wxTextCtrl;
class WXDLLIMPEXP_CORE wxMacPageMarginsDialog : public wxDialog
{
public:
- wxMacPageMarginsDialog(wxFrame* parent, wxPageSetupData* data);
+ wxMacPageMarginsDialog(wxFrame* parent, wxPageSetupDialogData* data);
bool TransferToWindow();
bool TransferDataFromWindow();
- virtual wxPageSetupData& GetPageSetupDialogData() { return *m_pageSetupDialogData; }
+ virtual wxPageSetupDialogData& GetPageSetupDialogData() { return *m_pageSetupDialogData; }
private:
- wxPageSetupData* m_pageSetupDialogData;
+ wxPageSetupDialogData* m_pageSetupDialogData;
wxPoint m_MinMarginTopLeft;
wxPoint m_MinMarginBottomRight;
diff --git a/Externals/wxWidgets3/include/wx/osx/radiobox.h b/Externals/wxWidgets3/include/wx/osx/radiobox.h
index 8738e2514e..5ca8856e20 100644
--- a/Externals/wxWidgets3/include/wx/osx/radiobox.h
+++ b/Externals/wxWidgets3/include/wx/osx/radiobox.h
@@ -4,7 +4,7 @@
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id: radiobox.h 64943 2010-07-13 13:29:58Z VZ $
+// RCS-ID: $Id: radiobox.h 69544 2011-10-26 05:39:18Z RD $
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -89,6 +89,9 @@ public:
void OnRadioButton( wxCommandEvent& event ) ;
protected:
+ // resolve ambiguity in base classes
+ virtual wxBorder GetDefaultBorder() const { return wxRadioBoxBase::GetDefaultBorder(); }
+
wxRadioButton *m_radioButtonCycle;
unsigned int m_noItems;
diff --git a/Externals/wxWidgets3/include/wx/osx/setup0.h b/Externals/wxWidgets3/include/wx/osx/setup0.h
index 15da2d8110..46bad79d19 100644
--- a/Externals/wxWidgets3/include/wx/osx/setup0.h
+++ b/Externals/wxWidgets3/include/wx/osx/setup0.h
@@ -4,7 +4,7 @@
// Author: Stefan Csomor
// Modified by: Stefan Csomor
// Created: 1998-01-01
-// RCS-ID: $Id: setup0.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: setup0.h 70395 2012-01-19 08:55:41Z SC $
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -202,15 +202,6 @@
// Recommended setting: 0 (this is still work in progress...)
#define wxUSE_EXTENDED_RTTI 0
-// Set wxUSE_STL to 1 to derive wxList(Foo) and wxArray(Foo) from
-// std::list and std::vector, with a compatibility interface,
-// and for wxHashMap to be implemented with templates.
-//
-// Default is 0
-//
-// Recommended setting: YMMV
-#define wxUSE_STL 0
-
// Support for message/error logging. This includes wxLogXXX() functions and
// wxLog and derived classes. Don't set this to 0 unless you really know what
// you are doing.
@@ -262,44 +253,6 @@
// Recommended setting: 1 as setting it to 0 disables many other things
#define wxUSE_STREAMS 1
-// This is not a real option but is used as the default value for
-// wxUSE_STD_IOSTREAM and wxUSE_STD_STRING.
-//
-// Currently the Digital Mars and Watcom compilers come without standard C++
-// library headers by default, wxUSE_STD_STRING can be set to 1 if you do have
-// them (e.g. from STLPort).
-//
-// VC++ 5.0 does include standard C++ library headers, however they produce
-// many warnings that can't be turned off when compiled at warning level 4.
-#if defined(__DMC__) || defined(__WATCOMC__) \
- || (defined(_MSC_VER) && _MSC_VER < 1200)
- #define wxUSE_STD_DEFAULT 0
-#else
- #define wxUSE_STD_DEFAULT 1
-#endif
-
-// Use standard C++ streams if 1 instead of wx streams in some places. If
-// disabled (default), wx streams are used everywhere and wxWidgets doesn't
-// depend on the standard streams library.
-//
-// Notice that enabling this does not replace wx streams with std streams
-// everywhere, in a lot of places wx streams are used no matter what.
-//
-// Default is 0
-//
-// Recommended setting: 1 if you use the standard streams anyhow and so
-// dependency on the standard streams library is not a
-// problem
-#define wxUSE_STD_IOSTREAM wxUSE_STD_DEFAULT
-
-// Enable conversion to standard C++ string if 1.
-//
-// Default is 1 for most compilers.
-//
-// Recommended setting: 1 unless you want to ensure your program doesn't use
-// the standard C++ library at all.
-#define wxUSE_STD_STRING wxUSE_STD_DEFAULT
-
// Support for positional parameters (e.g. %1$d, %2$s ...) in wxVsnprintf.
// Note that if the system's implementation does not support positional
// parameters, setting this to 1 forces the use of the wxWidgets implementation
@@ -315,6 +268,107 @@
// Recommended setting: 1 if you want to support multiple languages
#define wxUSE_PRINTF_POS_PARAMS 1
+
+// ----------------------------------------------------------------------------
+// Interoperability with the standard library.
+// ----------------------------------------------------------------------------
+
+// Set wxUSE_STL to 1 to enable maximal interoperability with the standard
+// library, even at the cost of backwards compatibility.
+//
+// Default is 0
+//
+// Recommended setting: 0 as the options below already provide a relatively
+// good level of interoperability and changing this option arguably isn't worth
+// diverging from the official builds of the library.
+#define wxUSE_STL 0
+
+// This is not a real option but is used as the default value for
+// wxUSE_STD_IOSTREAM, wxUSE_STD_STRING and wxUSE_STD_CONTAINERS.
+//
+// Currently the Digital Mars and Watcom compilers come without standard C++
+// library headers by default, wxUSE_STD_STRING can be set to 1 if you do have
+// them (e.g. from STLPort).
+//
+// VC++ 5.0 does include standard C++ library headers, however they produce
+// many warnings that can't be turned off when compiled at warning level 4.
+#if defined(__DMC__) || defined(__WATCOMC__) \
+ || (defined(_MSC_VER) && _MSC_VER < 1200)
+ #define wxUSE_STD_DEFAULT 0
+#else
+ #define wxUSE_STD_DEFAULT 1
+#endif
+
+// Use standard C++ containers to implement wxVector<>, wxStack<>, wxDList<>
+// and wxHashXXX<> classes. If disabled, wxWidgets own (mostly compatible but
+// usually more limited) implementations are used which allows to avoid the
+// dependency on the C++ run-time library.
+//
+// Notice that the compilers mentioned in wxUSE_STD_DEFAULT comment above don't
+// support using standard containers and that VC6 needs non-default options for
+// such build to avoid getting "fatal error C1076: compiler limit : internal
+// heap limit reached; use /Zm to specify a higher limit" in its own standard
+// headers, so you need to ensure you do increase the heap size before enabling
+// this option for this compiler.
+//
+// Default is 0 for compatibility reasons.
+//
+// Recommended setting: 1 unless compatibility with the official wxWidgets
+// build and/or the existing code is a concern.
+#define wxUSE_STD_CONTAINERS 0
+
+// Use standard C++ streams if 1 instead of wx streams in some places. If
+// disabled, wx streams are used everywhere and wxWidgets doesn't depend on the
+// standard streams library.
+//
+// Notice that enabling this does not replace wx streams with std streams
+// everywhere, in a lot of places wx streams are used no matter what.
+//
+// Default is 1 if compiler supports it.
+//
+// Recommended setting: 1 if you use the standard streams anyhow and so
+// dependency on the standard streams library is not a
+// problem
+#define wxUSE_STD_IOSTREAM wxUSE_STD_DEFAULT
+
+// Enable minimal interoperability with the standard C++ string class if 1.
+// "Minimal" means that wxString can be constructed from std::string or
+// std::wstring but can't be implicitly converted to them. You need to enable
+// the option below for the latter.
+//
+// Default is 1 for most compilers.
+//
+// Recommended setting: 1 unless you want to ensure your program doesn't use
+// the standard C++ library at all.
+#define wxUSE_STD_STRING wxUSE_STD_DEFAULT
+
+// Make wxString as much interchangeable with std::[w]string as possible, in
+// particular allow implicit conversion of wxString to either of these classes.
+// This comes at a price (or a benefit, depending on your point of view) of not
+// allowing implicit conversion to "const char *" and "const wchar_t *".
+//
+// Because a lot of existing code relies on these conversions, this option is
+// disabled by default but can be enabled for your build if you don't care
+// about compatibility.
+//
+// Default is 0 if wxUSE_STL has its default value or 1 if it is enabled.
+//
+// Recommended setting: 0 to remain compatible with the official builds of
+// wxWidgets.
+#define wxUSE_STD_STRING_CONV_IN_WXSTRING wxUSE_STL
+
+// VC++ 4.2 and above allows and but you can't mix
+// them. Set this option to 1 to use , 0 to use .
+//
+// Note that newer compilers (including VC++ 7.1 and later) don't support
+// wxUSE_IOSTREAMH == 1 and so will be used anyhow.
+//
+// Default is 0.
+//
+// Recommended setting: 0, only set to 1 if you use a really old compiler
+#define wxUSE_IOSTREAMH 0
+
+
// ----------------------------------------------------------------------------
// non GUI features selection
// ----------------------------------------------------------------------------
@@ -652,6 +706,34 @@
// Recommended setting: 1
#define wxUSE_STC 1
+// Use wxWidget's web viewing classes
+//
+// Default is 1
+//
+// Recommended setting: 1
+#define wxUSE_WEBVIEW 1
+
+// Use the IE wxWebView backend
+//
+// Default is 1 on MSW
+//
+// Recommended setting: 1
+#ifdef __WXMSW__
+#define wxUSE_WEBVIEW_IE 1
+#else
+#define wxUSE_WEBVIEW_IE 0
+#endif
+
+// Use the WebKit wxWebView backend
+//
+// Default is 1 on GTK and OSX
+//
+// Recommended setting: 1
+#if defined(__WXGTK__) || defined(__WXOSX__)
+#define wxUSE_WEBVIEW_WEBKIT 1
+#else
+#define wxUSE_WEBVIEW_WEBKIT 0
+#endif
// Enable the new wxGraphicsPath and wxGraphicsContext classes for an advanced
// 2D drawing API. (Still somewhat experimental)
@@ -750,6 +832,7 @@
//
// Recommended setting: 1
#define wxUSE_ANIMATIONCTRL 1 // wxAnimationCtrl
+#define wxUSE_BANNERWINDOW 1 // wxBannerWindow
#define wxUSE_BUTTON 1 // wxButton
#define wxUSE_BMPBUTTON 1 // wxBitmapButton
#define wxUSE_CALENDARCTRL 1 // wxCalendarCtrl
@@ -785,8 +868,10 @@
#define wxUSE_STATTEXT 1 // wxStaticText
#define wxUSE_STATBMP 1 // wxStaticBitmap
#define wxUSE_TEXTCTRL 1 // wxTextCtrl
+#define wxUSE_TIMEPICKCTRL 1 // wxTimePickerCtrl
#define wxUSE_TOGGLEBTN 1 // requires wxButton
#define wxUSE_TREECTRL 1 // wxTreeCtrl
+#define wxUSE_TREELISTCTRL 1 // wxTreeListCtrl
// Use a status bar class? Depending on the value of wxUSE_NATIVE_STATUSBAR
// below either wxStatusBar95 or a generic wxStatusBar will be used.
@@ -1003,6 +1088,14 @@
// Recommended setting: 1
#define wxUSE_NOTIFICATION_MESSAGE 1
+// wxRichToolTip is a customizable tooltip class which has more functionality
+// than the stock (but native, unlike this class) wxToolTip.
+//
+// Default is 1.
+//
+// Recommended setting: 1 (but can be safely set to 0 if you don't need it)
+#define wxUSE_RICHTOOLTIP 1
+
// Use wxSashWindow class.
//
// Default is 1.
@@ -1308,28 +1401,15 @@
// to create files in SVG (Scalable Vector Graphics) format.
#define wxUSE_SVG 1
-// ----------------------------------------------------------------------------
-// other compiler (mis)features
-// ----------------------------------------------------------------------------
-
-// Set this to 0 if your compiler can't cope with omission of prototype
-// parameters.
+// Should wxDC provide SetTransformMatrix() and related methods?
//
-// Default is 1.
+// Default is 1 but can be set to 0 if this functionality is not used. Notice
+// that currently only wxMSW supports this so setting this to 0 doesn't change
+// much for non-MSW platforms (although it will still save a few bytes
+// probably).
//
-// Recommended setting: 1 (should never need to set this to 0)
-#define REMOVE_UNUSED_ARG 1
-
-// VC++ 4.2 and above allows and but you can't mix
-// them. Set this option to 1 to use , 0 to use .
-//
-// Note that newer compilers (including VC++ 7.1 and later) don't support
-// wxUSE_IOSTREAMH == 1 and so will be used anyhow.
-//
-// Default is 0.
-//
-// Recommended setting: 0, only set to 1 if you use a really old compiler
-#define wxUSE_IOSTREAMH 0
+// Recommended setting: 1.
+#define wxUSE_DC_TRANSFORM_MATRIX 1
// ----------------------------------------------------------------------------
// image format support
@@ -1397,6 +1477,26 @@
/* --- end common options --- */
+// ----------------------------------------------------------------------------
+// Unix-specific options settings
+// ----------------------------------------------------------------------------
+
+// use wxSelectDispatcher class
+#define wxUSE_SELECT_DISPATCHER 1
+
+// use wxEpollDispatcher class (Linux only)
+#define wxUSE_EPOLL_DISPATCHER 0
+
+/*
+ Use GStreamer for Unix.
+
+ Default is 0 as this requires a lot of dependencies which might not be
+ available.
+
+ Recommended setting: 1 (wxMediaCtrl won't work by default without it).
+ */
+#define wxUSE_GSTREAMER 0
+
// ----------------------------------------------------------------------------
// Mac-specific settings
// ----------------------------------------------------------------------------
diff --git a/Externals/wxWidgets3/include/wx/osx/sound.h b/Externals/wxWidgets3/include/wx/osx/sound.h
index 1318e76315..45538773d0 100644
--- a/Externals/wxWidgets3/include/wx/osx/sound.h
+++ b/Externals/wxWidgets3/include/wx/osx/sound.h
@@ -5,7 +5,7 @@
// Author: Ryan Norton, Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id: sound.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: sound.h 69178 2011-09-21 15:08:02Z VZ $
// Copyright: (c) Ryan Norton, Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -49,13 +49,13 @@ class WXDLLIMPEXP_ADV wxSound : public wxSoundBase
public:
wxSound();
wxSound(const wxString& fileName, bool isResource = false);
- wxSound(int size, const wxByte* data);
+ wxSound(size_t size, const void* data);
virtual ~wxSound();
// Create from resource or file
bool Create(const wxString& fileName, bool isResource = false);
// Create from data
- bool Create(int size, const wxByte* data);
+ bool Create(size_t size, const void* data);
bool IsOk() const { return m_data != NULL; }
diff --git a/Externals/wxWidgets3/include/wx/osx/spinctrl.h b/Externals/wxWidgets3/include/wx/osx/spinctrl.h
index c274fb33f2..3803f9d526 100644
--- a/Externals/wxWidgets3/include/wx/osx/spinctrl.h
+++ b/Externals/wxWidgets3/include/wx/osx/spinctrl.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 28.10.99
-// RCS-ID: $Id: spinctrl.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: spinctrl.h 68366 2011-07-24 22:19:33Z VZ $
// Copyright: (c) Vadim Zeitlin
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -33,7 +33,7 @@ class WXDLLIMPEXP_FWD_CORE wxSpinCtrlButton;
// wxSpinCtrl is a combination of wxTextCtrl and wxSpinButton
// ----------------------------------------------------------------------------
-class WXDLLIMPEXP_CORE wxSpinCtrl : public wxControl
+class WXDLLIMPEXP_CORE wxSpinCtrl : public wxNavigationEnabled
{
public:
wxSpinCtrl() { Init(); }
@@ -93,8 +93,6 @@ public:
// number is out of range
bool GetTextValue(int *val) const;
- WX_DECLARE_CONTROL_CONTAINER();
-
protected:
// override the base class virtuals involved into geometry calculations
virtual wxSize DoGetBestSize() const;
@@ -113,7 +111,6 @@ private:
int m_oldValue;
private:
- DECLARE_EVENT_TABLE()
DECLARE_DYNAMIC_CLASS(wxSpinCtrl)
};
diff --git a/Externals/wxWidgets3/include/wx/osx/statbox.h b/Externals/wxWidgets3/include/wx/osx/statbox.h
index df046443fe..cdbdead32e 100644
--- a/Externals/wxWidgets3/include/wx/osx/statbox.h
+++ b/Externals/wxWidgets3/include/wx/osx/statbox.h
@@ -4,7 +4,7 @@
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id: statbox.h 67254 2011-03-20 00:14:35Z DS $
+// RCS-ID: $Id: statbox.h 70165 2011-12-29 14:42:13Z SN $
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -38,8 +38,8 @@ class WXDLLIMPEXP_CORE wxStaticBox: public wxControl
long style = 0,
const wxString& name = wxStaticBoxNameStr);
- virtual void Command(wxCommandEvent& WXUNUSED(event)) {};
- virtual void ProcessCommand(wxCommandEvent& WXUNUSED(event)) {};
+ virtual void Command(wxCommandEvent& WXUNUSED(event)) {}
+ virtual void ProcessCommand(wxCommandEvent& WXUNUSED(event)) {}
virtual void GetBordersForSizer(int *borderTop, int *borderOther) const;
diff --git a/Externals/wxWidgets3/include/wx/osx/textctrl.h b/Externals/wxWidgets3/include/wx/osx/textctrl.h
index 411bfbf30e..70e0863c35 100644
--- a/Externals/wxWidgets3/include/wx/osx/textctrl.h
+++ b/Externals/wxWidgets3/include/wx/osx/textctrl.h
@@ -4,7 +4,7 @@
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id: textctrl.h 66770 2011-01-26 15:51:39Z SC $
+// RCS-ID: $Id: textctrl.h 70355 2012-01-15 15:54:53Z SC $
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -75,10 +75,6 @@ public:
virtual void MarkDirty();
virtual void DiscardEdits();
- // set the max number of characters which may be entered
- // in a single line text control
- virtual void SetMaxLength(unsigned long len);
-
// set the grayed out hint text
virtual bool SetHint(const wxString& hint);
virtual wxString GetHint() const;
diff --git a/Externals/wxWidgets3/include/wx/osx/textentry.h b/Externals/wxWidgets3/include/wx/osx/textentry.h
index 07ae94e81c..7a6a66f58b 100644
--- a/Externals/wxWidgets3/include/wx/osx/textentry.h
+++ b/Externals/wxWidgets3/include/wx/osx/textentry.h
@@ -4,7 +4,7 @@
// Author: Stefan Csomor
// Modified by: Kevin Ollivier
// Created: 1998-01-01
-// RCS-ID: $Id: textentry.h 67232 2011-03-18 15:10:15Z DS $
+// RCS-ID: $Id: textentry.h 67526 2011-04-17 23:14:15Z VZ $
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -32,12 +32,8 @@ class WXDLLIMPEXP_CORE wxTextEntry: public wxTextEntryBase
{
public:
- wxTextEntry()
- : m_editable(true),
- m_maxLength(0)
- { }
-
- virtual ~wxTextEntry() {};
+ wxTextEntry();
+ virtual ~wxTextEntry();
virtual bool IsEditable() const;
@@ -88,10 +84,18 @@ public:
// --------------
virtual wxTextWidgetImpl * GetTextPeer() const;
+ wxTextCompleter *OSXGetCompleter() const { return m_completer; }
+
protected:
virtual wxString DoGetValue() const;
+ virtual bool DoAutoCompleteStrings(const wxArrayString& choices);
+ virtual bool DoAutoCompleteCustom(wxTextCompleter *completer);
+
+ // The object providing auto-completions or NULL if none.
+ wxTextCompleter *m_completer;
+
bool m_editable;
// need to make this public because of the current implementation via callbacks
diff --git a/Externals/wxWidgets3/include/wx/osx/tglbtn.h b/Externals/wxWidgets3/include/wx/osx/tglbtn.h
index 9ea7406baa..e68a2ba60c 100644
--- a/Externals/wxWidgets3/include/wx/osx/tglbtn.h
+++ b/Externals/wxWidgets3/include/wx/osx/tglbtn.h
@@ -5,7 +5,7 @@
// Author: Stefan Csomor
// Modified by:
// Created: 08.02.01
-// RCS-ID: $Id: tglbtn.h 66992 2011-02-22 13:25:30Z VZ $
+// RCS-ID: $Id: tglbtn.h 67949 2011-06-16 00:43:22Z RD $
// Copyright: (c) 2004 Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -13,53 +13,6 @@
#ifndef _WX_TOGGLEBUTTON_H_
#define _WX_TOGGLEBUTTON_H_
-class WXDLLIMPEXP_CORE wxBitmapToggleButton : public wxToggleButtonBase
-{
-public:
- wxBitmapToggleButton() {}
- wxBitmapToggleButton(wxWindow *parent,
- wxWindowID id,
- const wxBitmap& label,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxCheckBoxNameStr)
- {
- Create(parent, id, label, pos, size, style, validator, name);
- }
-
- bool Create(wxWindow *parent,
- wxWindowID id,
- const wxBitmap& label,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxCheckBoxNameStr);
-
- virtual void SetValue(bool value);
- virtual bool GetValue() const ;
-
- virtual bool OSXHandleClicked( double timestampsec );
-
- virtual void Command(wxCommandEvent& event);
-
-private:
- wxBitmap m_bitmap;
-
- int m_marginX,
- m_marginY;
-
-protected:
- virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
- virtual wxSize DoGetBestSize() const;
-
-private:
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxBitmapToggleButton)
-};
-
-
class WXDLLIMPEXP_CORE wxToggleButton : public wxToggleButtonBase
{
public:
@@ -94,11 +47,40 @@ public:
protected:
virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
- virtual wxSize DoGetBestSize() const;
private:
DECLARE_DYNAMIC_CLASS_NO_COPY(wxToggleButton)
};
+
+class WXDLLIMPEXP_CORE wxBitmapToggleButton : public wxToggleButton
+{
+public:
+ wxBitmapToggleButton() {}
+ wxBitmapToggleButton(wxWindow *parent,
+ wxWindowID id,
+ const wxBitmap& label,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = 0,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxCheckBoxNameStr)
+ {
+ Create(parent, id, label, pos, size, style, validator, name);
+ }
+
+ bool Create(wxWindow *parent,
+ wxWindowID id,
+ const wxBitmap& label,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = 0,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxCheckBoxNameStr);
+
+private:
+ DECLARE_DYNAMIC_CLASS_NO_COPY(wxBitmapToggleButton)
+};
+
#endif // _WX_TOGGLEBUTTON_H_
diff --git a/Externals/wxWidgets3/include/wx/osx/timectrl.h b/Externals/wxWidgets3/include/wx/osx/timectrl.h
new file mode 100644
index 0000000000..2d093acd54
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/osx/timectrl.h
@@ -0,0 +1,51 @@
+///////////////////////////////////////////////////////////////////////////////
+// Name: wx/osx/timectrl.h
+// Purpose: Declaration of wxOSX-specific wxTimePickerCtrl class.
+// Author: Vadim Zeitlin
+// Created: 2011-12-18
+// RCS-ID: $Id: timectrl.h 70071 2011-12-20 21:27:14Z VZ $
+// Copyright: (c) 2011 Vadim Zeitlin
+// Licence: wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_OSX_TIMECTRL_H_
+#define _WX_OSX_TIMECTRL_H_
+
+// ----------------------------------------------------------------------------
+// wxTimePickerCtrl
+// ----------------------------------------------------------------------------
+
+class WXDLLIMPEXP_ADV wxTimePickerCtrl : public wxTimePickerCtrlBase
+{
+public:
+ // Constructors.
+ wxTimePickerCtrl() { }
+
+ wxTimePickerCtrl(wxWindow *parent,
+ wxWindowID id,
+ const wxDateTime& dt = wxDefaultDateTime,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxTP_DEFAULT,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxTimePickerCtrlNameStr)
+ {
+ Create(parent, id, dt, pos, size, style, validator, name);
+ }
+
+ bool Create(wxWindow *parent,
+ wxWindowID id,
+ const wxDateTime& dt = wxDefaultDateTime,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxTP_DEFAULT,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxTimePickerCtrlNameStr);
+
+ virtual void OSXGenerateEvent(const wxDateTime& dt);
+
+private:
+ wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxTimePickerCtrl);
+};
+
+#endif // _WX_OSX_TIMECTRL_H_
diff --git a/Externals/wxWidgets3/include/wx/osx/toolbar.h b/Externals/wxWidgets3/include/wx/osx/toolbar.h
index 7ebb40e028..f4a21982a6 100644
--- a/Externals/wxWidgets3/include/wx/osx/toolbar.h
+++ b/Externals/wxWidgets3/include/wx/osx/toolbar.h
@@ -4,7 +4,7 @@
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id: toolbar.h 66993 2011-02-22 13:25:38Z VZ $
+// RCS-ID: $Id: toolbar.h 70854 2012-03-10 00:01:09Z RD $
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -77,6 +77,18 @@ class WXDLLIMPEXP_CORE wxToolBar: public wxToolBarBase
bool MacWantsNativeToolbar();
bool MacTopLevelHasNativeToolbar(bool *ownToolbarInstalled) const;
#endif
+
+ virtual wxToolBarToolBase *CreateTool(int id,
+ const wxString& label,
+ const wxBitmap& bmpNormal,
+ const wxBitmap& bmpDisabled = wxNullBitmap,
+ wxItemKind kind = wxITEM_NORMAL,
+ wxObject *clientData = NULL,
+ const wxString& shortHelp = wxEmptyString,
+ const wxString& longHelp = wxEmptyString);
+ virtual wxToolBarToolBase *CreateTool(wxControl *control,
+ const wxString& label);
+
protected:
// common part of all ctors
void Init();
@@ -86,8 +98,11 @@ protected:
void DoSetSize(int x, int y, int width, int height, int sizeFlags);
#ifndef __WXOSX_IPHONE__
- virtual void DoGetSize(int *width, int *height) const;
+ virtual void DoGetSize(int *width, int *height) const;
virtual wxSize DoGetBestSize() const;
+#endif
+#ifdef __WXOSX_COCOA__
+ virtual void DoGetPosition(int*x, int *y) const;
#endif
virtual bool DoInsertTool(size_t pos, wxToolBarToolBase *tool);
virtual bool DoDeleteTool(size_t pos, wxToolBarToolBase *tool);
@@ -96,17 +111,6 @@ protected:
virtual void DoToggleTool(wxToolBarToolBase *tool, bool toggle);
virtual void DoSetToggle(wxToolBarToolBase *tool, bool toggle);
- virtual wxToolBarToolBase *CreateTool(int id,
- const wxString& label,
- const wxBitmap& bmpNormal,
- const wxBitmap& bmpDisabled,
- wxItemKind kind,
- wxObject *clientData,
- const wxString& shortHelp,
- const wxString& longHelp);
- virtual wxToolBarToolBase *CreateTool(wxControl *control,
- const wxString& label);
-
DECLARE_EVENT_TABLE()
#if wxOSX_USE_NATIVE_TOOLBAR
bool m_macUsesNativeToolbar ;
diff --git a/Externals/wxWidgets3/include/wx/osx/toplevel.h b/Externals/wxWidgets3/include/wx/osx/toplevel.h
index c0c6373e08..afe1f1d80f 100644
--- a/Externals/wxWidgets3/include/wx/osx/toplevel.h
+++ b/Externals/wxWidgets3/include/wx/osx/toplevel.h
@@ -4,7 +4,7 @@
// Author: Stefan Csomor
// Modified by:
// Created: 20.09.01
-// RCS-ID: $Id: toplevel.h 65680 2010-09-30 11:44:45Z VZ $
+// RCS-ID: $Id: toplevel.h 70295 2012-01-08 14:52:47Z VZ $
// Copyright: (c) 2001 Stefan Csomor
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -51,9 +51,6 @@ public:
virtual wxPoint GetClientAreaOrigin() const;
- virtual bool SetShape(const wxRegion& region)
- { return DoSetShape(region); }
-
// Attracts the users attention to this window if the application is
// inactive (should be called when a background event occurs)
virtual void RequestUserAttention(int flags = wxUSER_ATTENTION_INFO);
@@ -80,6 +77,8 @@ public:
virtual void OSXSetModified(bool modified);
virtual bool OSXIsModified() const;
+ virtual void SetRepresentedFilename(const wxString& filename);
+
protected:
// common part of all ctors
void Init();
diff --git a/Externals/wxWidgets3/include/wx/osx/treectrl.h b/Externals/wxWidgets3/include/wx/osx/treectrl.h
index 1f5e9bcc00..090111624f 100644
--- a/Externals/wxWidgets3/include/wx/osx/treectrl.h
+++ b/Externals/wxWidgets3/include/wx/osx/treectrl.h
@@ -4,7 +4,7 @@
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id: treectrl.h 64943 2010-07-13 13:29:58Z VZ $
+// RCS-ID: $Id: treectrl.h 70165 2011-12-29 14:42:13Z SN $
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -225,7 +225,7 @@ public:
bool SortChildren(long item);
bool EnsureVisible(long item);
- void Command(wxCommandEvent& event) { ProcessCommand(event); };
+ void Command(wxCommandEvent& event) { ProcessCommand(event); }
protected:
wxTextCtrl* m_textCtrl;
diff --git a/Externals/wxWidgets3/include/wx/osx/webview_webkit.h b/Externals/wxWidgets3/include/wx/osx/webview_webkit.h
new file mode 100644
index 0000000000..d0a93e653e
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/osx/webview_webkit.h
@@ -0,0 +1,163 @@
+/////////////////////////////////////////////////////////////////////////////
+// Name: include/wx/osx/webkit.h
+// Purpose: wxWebViewWebKit - embeddable web kit control,
+// OS X implementation of web view component
+// Author: Jethro Grassie / Kevin Ollivier / Marianne Gagnon
+// Modified by:
+// Created: 2004-4-16
+// RCS-ID: $Id: webview_webkit.h 69074 2011-09-12 18:35:39Z SJL $
+// Copyright: (c) Jethro Grassie / Kevin Ollivier / Marianne Gagnon
+// Licence: wxWindows licence
+/////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_WEBKIT_H
+#define _WX_WEBKIT_H
+
+#include "wx/setup.h"
+
+#if wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT && (defined(__WXOSX_COCOA__) \
+ || defined(__WXOSX_CARBON__))
+
+#include "wx/control.h"
+#include "wx/webview.h"
+
+// ----------------------------------------------------------------------------
+// Web Kit Control
+// ----------------------------------------------------------------------------
+
+class WXDLLIMPEXP_WEBVIEW wxWebViewWebKit : public wxWebView
+{
+public:
+ wxDECLARE_DYNAMIC_CLASS(wxWebViewWebKit);
+
+ wxWebViewWebKit() {}
+ wxWebViewWebKit(wxWindow *parent,
+ wxWindowID winID = wxID_ANY,
+ const wxString& strURL = wxWebViewDefaultURLStr,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize, long style = 0,
+ const wxString& name = wxWebViewNameStr)
+ {
+ Create(parent, winID, strURL, pos, size, style, name);
+ }
+ bool Create(wxWindow *parent,
+ wxWindowID winID = wxID_ANY,
+ const wxString& strURL = wxWebViewDefaultURLStr,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize, long style = 0,
+ const wxString& name = wxWebViewNameStr);
+ virtual ~wxWebViewWebKit();
+
+ virtual bool CanGoBack() const;
+ virtual bool CanGoForward() const;
+ virtual void GoBack();
+ virtual void GoForward();
+ virtual void Reload(wxWebViewReloadFlags flags = wxWEB_VIEW_RELOAD_DEFAULT);
+ virtual void Stop();
+ virtual wxString GetPageSource() const;
+ virtual wxString GetPageText() const;
+
+ //We do not want to hide the other overloads
+ using wxWebView::SetPage;
+ virtual void SetPage(const wxString& html, const wxString& baseUrl);
+
+ virtual void Print();
+
+ virtual void LoadURL(const wxString& url);
+ virtual wxString GetCurrentURL() const;
+ virtual wxString GetCurrentTitle() const;
+ virtual wxWebViewZoom GetZoom() const;
+ virtual void SetZoom(wxWebViewZoom zoom);
+
+ virtual void SetZoomType(wxWebViewZoomType zoomType);
+ virtual wxWebViewZoomType GetZoomType() const;
+ virtual bool CanSetZoomType(wxWebViewZoomType type) const;
+
+ virtual bool IsBusy() const { return m_busy; }
+
+ //History functions
+ virtual void ClearHistory();
+ virtual void EnableHistory(bool enable = true);
+ virtual wxVector > GetBackwardHistory();
+ virtual wxVector > GetForwardHistory();
+ virtual void LoadHistoryItem(wxSharedPtr item);
+
+ //Undo / redo functionality
+ virtual bool CanUndo() const;
+ virtual bool CanRedo() const;
+ virtual void Undo();
+ virtual void Redo();
+
+ //Clipboard functions
+ virtual bool CanCut() const { return true; }
+ virtual bool CanCopy() const { return true; }
+ virtual bool CanPaste() const { return true; }
+ virtual void Cut();
+ virtual void Copy();
+ virtual void Paste();
+
+ //Editing functions
+ virtual void SetEditable(bool enable = true);
+ virtual bool IsEditable() const;
+
+ //Selection
+ virtual void DeleteSelection();
+ virtual bool HasSelection() const;
+ virtual void SelectAll();
+ virtual wxString GetSelectedText() const;
+ virtual wxString GetSelectedSource() const;
+ virtual void ClearSelection();
+
+ void RunScript(const wxString& javascript);
+
+ //Virtual Filesystem Support
+ virtual void RegisterHandler(wxSharedPtr handler);
+
+ // ---- methods not from the parent (common) interface
+ bool CanGetPageSource() const;
+
+ void SetScrollPos(int pos);
+ int GetScrollPos();
+
+ bool CanIncreaseTextSize() const;
+ void IncreaseTextSize();
+ bool CanDecreaseTextSize() const;
+ void DecreaseTextSize();
+
+ float GetWebkitZoom() const;
+ void SetWebkitZoom(float zoom);
+
+ // don't hide base class virtuals
+ virtual void SetScrollPos( int orient, int pos, bool refresh = true )
+ { return wxControl::SetScrollPos(orient, pos, refresh); }
+ virtual int GetScrollPos( int orient ) const
+ { return wxControl::GetScrollPos(orient); }
+
+ //we need to resize the webview when the control size changes
+ void OnSize(wxSizeEvent &event);
+ void OnMove(wxMoveEvent &event);
+ void OnMouseEvents(wxMouseEvent &event);
+
+ bool m_busy;
+
+protected:
+ DECLARE_EVENT_TABLE()
+ void MacVisibilityChanged();
+
+private:
+ wxWindow *m_parent;
+ wxWindowID m_windowID;
+ wxString m_pageTitle;
+
+ struct objc_object *m_webView;
+
+ // we may use this later to setup our own mouse events,
+ // so leave it in for now.
+ void* m_webKitCtrlEventHandler;
+ //It should be WebView*, but WebView is an Objective-C class
+ //TODO: look into using DECLARE_WXCOCOA_OBJC_CLASS rather than this.
+};
+
+#endif // wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT
+
+#endif // _WX_WEBKIT_H_
diff --git a/Externals/wxWidgets3/include/wx/osx/webviewhistoryitem_webkit.h b/Externals/wxWidgets3/include/wx/osx/webviewhistoryitem_webkit.h
new file mode 100644
index 0000000000..05976803f5
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/osx/webviewhistoryitem_webkit.h
@@ -0,0 +1,35 @@
+/////////////////////////////////////////////////////////////////////////////
+// Name: include/wx/osx/webviewhistoryitem.h
+// Purpose: wxWebViewHistoryItem header for OSX
+// Author: Steven Lamerton
+// Id: $Id: webviewhistoryitem_webkit.h 69074 2011-09-12 18:35:39Z SJL $
+// Copyright: (c) 2011 Steven Lamerton
+// Licence: wxWindows licence
+/////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_OSX_WEBVIEWHISTORYITEM_H_
+#define _WX_OSX_WEBVIEWHISTORYITEM_H_
+
+#include "wx/setup.h"
+
+#if wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT && (defined(__WXOSX_COCOA__) \
+ || defined(__WXOSX_CARBON__))
+
+class WXDLLIMPEXP_WEBVIEW wxWebViewHistoryItem
+{
+public:
+ wxWebViewHistoryItem(const wxString& url, const wxString& title) :
+ m_url(url), m_title(title) {}
+ wxString GetUrl() { return m_url; }
+ wxString GetTitle() { return m_title; }
+
+ friend class wxWebViewWebKit;
+
+private:
+ wxString m_url, m_title;
+ struct objc_object *m_histItem;
+};
+
+#endif // wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT
+
+#endif // _WX_OSX_WEBVIEWHISTORYITEM_H_
diff --git a/Externals/wxWidgets3/include/wx/osx/window.h b/Externals/wxWidgets3/include/wx/osx/window.h
index 49aa250906..1ac3916a8c 100644
--- a/Externals/wxWidgets3/include/wx/osx/window.h
+++ b/Externals/wxWidgets3/include/wx/osx/window.h
@@ -4,7 +4,7 @@
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id: window.h 67280 2011-03-22 14:17:38Z DS $
+// RCS-ID: $Id: window.h 70765 2012-03-01 15:04:42Z JS $
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -114,6 +114,14 @@ public:
virtual bool Reparent( wxWindowBase *newParent );
+#if wxUSE_HOTKEY && wxOSX_USE_COCOA_OR_CARBON
+ // hot keys (system wide accelerators)
+ // -----------------------------------
+
+ virtual bool RegisterHotKey(int hotkeyId, int modifiers, int keycode);
+ virtual bool UnregisterHotKey(int hotkeyId);
+#endif // wxUSE_HOTKEY
+
#if wxUSE_DRAG_AND_DROP
virtual void SetDropTarget( wxDropTarget *dropTarget );
#endif
@@ -280,6 +288,9 @@ public:
float GetContentScaleFactor() const ;
+ // internal response to size events
+ virtual void MacOnInternalSize() {}
+
protected:
// For controls like radio buttons which are genuinely composite
wxList m_subControls;
diff --git a/Externals/wxWidgets3/include/wx/palette.h b/Externals/wxWidgets3/include/wx/palette.h
index dab7040c58..4c29f23b98 100644
--- a/Externals/wxWidgets3/include/wx/palette.h
+++ b/Externals/wxWidgets3/include/wx/palette.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created:
-// RCS-ID: $Id: palette.h 61508 2009-07-23 20:30:22Z VZ $
+// RCS-ID: $Id: palette.h 70353 2012-01-15 14:46:41Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows Licence
/////////////////////////////////////////////////////////////////////////////
@@ -28,16 +28,12 @@ public:
virtual int GetColoursCount() const { wxFAIL_MSG( wxT("not implemented") ); return 0; }
};
-#if defined(__WXPALMOS__)
- #include "wx/palmos/palette.h"
-#elif defined(__WXMSW__)
+#if defined(__WXMSW__)
#include "wx/msw/palette.h"
#elif defined(__WXX11__) || defined(__WXMOTIF__)
#include "wx/x11/palette.h"
#elif defined(__WXGTK__) || defined(__WXCOCOA__)
#include "wx/generic/paletteg.h"
-#elif defined(__WXMGL__)
- #include "wx/mgl/palette.h"
#elif defined(__WXMAC__)
#include "wx/osx/palette.h"
#elif defined(__WXPM__)
diff --git a/Externals/wxWidgets3/include/wx/panel.h b/Externals/wxWidgets3/include/wx/panel.h
index 8241cc51d0..18c7aacd47 100644
--- a/Externals/wxWidgets3/include/wx/panel.h
+++ b/Externals/wxWidgets3/include/wx/panel.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created:
-// RCS-ID: $Id: panel.h 67253 2011-03-20 00:00:49Z VZ $
+// RCS-ID: $Id: panel.h 69378 2011-10-11 17:07:43Z VZ $
// Copyright: (c) Julian Smart
// (c) 2011 Vadim Zeitlin
// Licence: wxWindows Licence
@@ -28,10 +28,10 @@ extern WXDLLIMPEXP_DATA_CORE(const char) wxPanelNameStr[];
// wxPanel contains other controls and implements TAB traversal between them
// ----------------------------------------------------------------------------
-class WXDLLIMPEXP_CORE wxPanelBase : public wxWindow
+class WXDLLIMPEXP_CORE wxPanelBase : public wxNavigationEnabled
{
public:
- wxPanelBase();
+ wxPanelBase() { }
// Derived classes should also provide this constructor:
/*
@@ -52,31 +52,12 @@ public:
const wxString& name = wxPanelNameStr);
- // Use the given bitmap to tile the background of this panel. This bitmap
- // will show through any transparent children.
- //
- // Notice that you must not prevent the base class EVT_ERASE_BACKGROUND
- // handler from running (i.e. not to handle this event yourself) for this
- // to work.
- void SetBackgroundBitmap(const wxBitmap& bmp)
- {
- DoSetBackgroundBitmap(bmp);
- }
-
-
// implementation from now on
// --------------------------
virtual void InitDialog();
- WX_DECLARE_CONTROL_CONTAINER();
-
-protected:
- virtual void DoSetBackgroundBitmap(const wxBitmap& bmp) = 0;
-
private:
- wxDECLARE_EVENT_TABLE();
-
wxDECLARE_NO_COPY_CLASS(wxPanelBase);
};
diff --git a/Externals/wxWidgets3/include/wx/pen.h b/Externals/wxWidgets3/include/wx/pen.h
index 01895e35f4..75147dcf37 100644
--- a/Externals/wxWidgets3/include/wx/pen.h
+++ b/Externals/wxWidgets3/include/wx/pen.h
@@ -4,7 +4,7 @@
// Author: Julian Smart
// Modified by:
// Created:
-// RCS-ID: $Id: pen.h 66054 2010-11-07 13:16:20Z VZ $
+// RCS-ID: $Id: pen.h 70353 2012-01-15 14:46:41Z VZ $
// Copyright: (c) Julian Smart
// Licence: wxWindows Licence
/////////////////////////////////////////////////////////////////////////////
@@ -99,9 +99,7 @@ public:
}
};
-#if defined(__WXPALMOS__)
- #include "wx/palmos/pen.h"
-#elif defined(__WXMSW__)
+#if defined(__WXMSW__)
#include "wx/msw/pen.h"
#elif defined(__WXMOTIF__) || defined(__WXX11__)
#include "wx/x11/pen.h"
@@ -109,8 +107,6 @@ public:
#include "wx/gtk/pen.h"
#elif defined(__WXGTK__)
#include "wx/gtk1/pen.h"
-#elif defined(__WXMGL__)
- #include "wx/mgl/pen.h"
#elif defined(__WXDFB__)
#include "wx/dfb/pen.h"
#elif defined(__WXMAC__)
diff --git a/Externals/wxWidgets3/include/wx/persist.h b/Externals/wxWidgets3/include/wx/persist.h
index e238da9a26..2ac6a4423e 100644
--- a/Externals/wxWidgets3/include/wx/persist.h
+++ b/Externals/wxWidgets3/include/wx/persist.h
@@ -3,7 +3,7 @@
// Purpose: common classes for persistence support
// Author: Vadim Zeitlin
// Created: 2009-01-18
-// RCS-ID: $Id: persist.h 64887 2010-07-11 10:44:23Z VZ $
+// RCS-ID: $Id: persist.h 69583 2011-10-30 10:08:18Z VZ $
// Copyright: (c) 2009 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -44,6 +44,14 @@ wxPersistentObject *wxCreatePersistentObject(T *obj);
class WXDLLIMPEXP_CORE wxPersistenceManager
{
public:
+ // Call this method to specify a non-default persistence manager to use.
+ // This function should usually be called very early to affect creation of
+ // all persistent controls and the object passed to it must have a lifetime
+ // long enough to be still alive when the persistent controls are destroyed
+ // and need it to save their state so typically this would be a global or a
+ // wxApp member.
+ static void Set(wxPersistenceManager& manager);
+
// accessor to the unique persistence manager object
static wxPersistenceManager& Get();
@@ -133,7 +141,7 @@ public:
#undef wxPERSIST_DECLARE_SAVE_RESTORE_FOR
-private:
+protected:
// ctor is private, use Get()
wxPersistenceManager()
{
@@ -142,15 +150,18 @@ private:
}
- // helpers of Save/Restore()
- //
- // TODO: make this customizable by allowing
- // (a) specifying custom wxConfig object to use
- // (b) allowing to use something else entirely
- wxConfigBase *GetConfig() const { return wxConfigBase::Get(); }
- wxString GetKey(const wxPersistentObject& who, const wxString& name) const;
+ // Return the config object to use, by default just the global one but a
+ // different one could be used by the derived class if needed.
+ virtual wxConfigBase *GetConfig() const { return wxConfigBase::Get(); }
+
+ // Return the path to use for saving the setting with the given name for
+ // the specified object (notice that the name is the name of the setting,
+ // not the name of the object itself which can be retrieved with GetName()).
+ virtual wxString GetKey(const wxPersistentObject& who,
+ const wxString& name) const;
+private:
// map with the registered objects as keys and associated
// wxPersistentObjects as values
wxPersistentObjectsMap m_persistentObjects;
diff --git a/Externals/wxWidgets3/include/wx/persist/splitter.h b/Externals/wxWidgets3/include/wx/persist/splitter.h
new file mode 100644
index 0000000000..5f8fe34158
--- /dev/null
+++ b/Externals/wxWidgets3/include/wx/persist/splitter.h
@@ -0,0 +1,69 @@
+///////////////////////////////////////////////////////////////////////////////
+// Name: wx/persist/splitter.h
+// Purpose: Persistence support for wxSplitterWindow.
+// Author: Vadim Zeitlin
+// Created: 2011-08-31
+// RCS-ID: $Id: splitter.h 69582 2011-10-30 10:08:14Z VZ $
+// Copyright: (c) 2011 Vadim Zeitlin
+// Licence: wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_PERSIST_SPLITTER_H_
+#define _WX_PERSIST_SPLITTER_H_
+
+#include "wx/persist/window.h"
+
+#include "wx/splitter.h"
+
+// ----------------------------------------------------------------------------
+// string constants used by wxPersistentSplitter
+// ----------------------------------------------------------------------------
+
+#define wxPERSIST_SPLITTER_KIND "Splitter"
+
+// Special position value of -1 means the splitter is not split at all.
+#define wxPERSIST_SPLITTER_POSITION "Position"
+
+// ----------------------------------------------------------------------------
+// wxPersistentSplitter: supports saving/restoring splitter position
+// ----------------------------------------------------------------------------
+
+class wxPersistentSplitter : public wxPersistentWindow
+{
+public:
+ wxPersistentSplitter(wxSplitterWindow* splitter)
+ : wxPersistentWindow(splitter)
+ {
+ }
+
+ virtual void Save() const
+ {
+ wxSplitterWindow* const splitter = Get();
+
+ int pos = splitter->IsSplit() ? splitter->GetSashPosition() : -1;
+ SaveValue(wxPERSIST_SPLITTER_POSITION, pos);
+ }
+
+ virtual bool Restore()
+ {
+ int pos;
+ if ( !RestoreValue(wxPERSIST_SPLITTER_POSITION, &pos) )
+ return false;
+
+ if ( pos == -1 )
+ Get()->Unsplit();
+ else
+ Get()->SetSashPosition(pos);
+
+ return true;
+ }
+
+ virtual wxString GetKind() const { return wxPERSIST_SPLITTER_KIND; }
+};
+
+inline wxPersistentObject *wxCreatePersistentObject(wxSplitterWindow* splitter)
+{
+ return new wxPersistentSplitter(splitter);
+}
+
+#endif // _WX_PERSIST_SPLITTER_H_
diff --git a/Externals/wxWidgets3/include/wx/pickerbase.h b/Externals/wxWidgets3/include/wx/pickerbase.h
index c578a157a0..ff5c86f0de 100644
--- a/Externals/wxWidgets3/include/wx/pickerbase.h
+++ b/Externals/wxWidgets3/include/wx/pickerbase.h
@@ -5,7 +5,7 @@
// Modified by:
// Created: 14/4/2006
// Copyright: (c) Vadim Zeitlin, Francesco Montorsi
-// RCS-ID: $Id: pickerbase.h 52834 2008-03-26 15:06:00Z FM $
+// RCS-ID: $Id: pickerbase.h 68921 2011-08-27 14:11:25Z VZ $
// Licence: wxWindows Licence
/////////////////////////////////////////////////////////////////////////////
@@ -31,13 +31,14 @@ extern WXDLLIMPEXP_DATA_CORE(const char) wxButtonNameStr[];
// ----------------------------------------------------------------------------
#define wxPB_USE_TEXTCTRL 0x0002
+#define wxPB_SMALL 0x8000
-class WXDLLIMPEXP_CORE wxPickerBase : public wxControl
+class WXDLLIMPEXP_CORE wxPickerBase : public wxNavigationEnabled
{
public:
// ctor: text is the associated text control
wxPickerBase() : m_text(NULL), m_picker(NULL), m_sizer(NULL)
- { WX_INIT_CONTROL_CONTAINER(); }
+ { }
virtual ~wxPickerBase() {}
@@ -121,8 +122,6 @@ protected:
void OnTextCtrlUpdate(wxCommandEvent &);
void OnTextCtrlKillFocus(wxFocusEvent &);
- void OnSize(wxSizeEvent &);
-
// returns the set of styles for the attached wxTextCtrl
// from given wxPickerBase's styles
virtual long GetTextCtrlStyle(long style) const
@@ -178,10 +177,6 @@ protected:
private:
DECLARE_ABSTRACT_CLASS(wxPickerBase)
- DECLARE_EVENT_TABLE()
-
- // This class must be something just like a panel...
- WX_DECLARE_CONTROL_CONTAINER();
};
diff --git a/Externals/wxWidgets3/include/wx/platform.h b/Externals/wxWidgets3/include/wx/platform.h
index c6861ca5c2..74ad218a3a 100644
--- a/Externals/wxWidgets3/include/wx/platform.h
+++ b/Externals/wxWidgets3/include/wx/platform.h
@@ -4,7 +4,7 @@
* Author: Vadim Zeitlin
* Modified by:
* Created: 29.10.01 (extracted from wx/defs.h)
-* RCS-ID: $Id: platform.h 66077 2010-11-09 23:53:42Z VZ $
+* RCS-ID: $Id: platform.h 70757 2012-02-29 22:40:24Z VZ $
* Copyright: (c) 1997-2001 Vadim Zeitlin
* Licence: wxWindows licence
*/
@@ -15,23 +15,35 @@
#define _WX_PLATFORM_H_
+
/*
Codewarrior doesn't define any Windows symbols until some headers
are included
*/
#ifdef __MWERKS__
# include
-
-# if !defined(__WXMAC__) && !defined(__WINDOWS__) && !defined(WIN32) && !defined(_WIN32_WCE)
-# define __PALMOS__ 0x05000000
-# endif
#endif
#ifdef __WXMAC_XCODE__
# include
# include
# include
+# ifndef MAC_OS_X_VERSION_10_4
+# define MAC_OS_X_VERSION_10_4 1040
+# endif
+# ifndef MAC_OS_X_VERSION_10_5
+# define MAC_OS_X_VERSION_10_5 1050
+# endif
+# ifndef MAC_OS_X_VERSION_10_6
+# define MAC_OS_X_VERSION_10_6 1060
+# endif
# include "wx/osx/config_xcode.h"
+# ifndef __WXOSX__
+# define __WXOSX__ 1
+# endif
+# ifndef __WXMAC__
+# define __WXMAC__ 1
+# endif
#endif
/*
@@ -44,33 +56,6 @@
# endif
#endif
-#if defined(__PALMOS__)
-# if __PALMOS__ == 0x06000000
-# define __WXPALMOS6__ 1
-# endif
-# if __PALMOS__ == 0x05000000
-# define __WXPALMOS5__ 1
-# endif
-# ifndef __WXPALMOS__
-# define __WXPALMOS__ 1
-# endif
-# ifdef __WXMSW__
-# undef __WXMSW__
-# endif
-# ifdef __WINDOWS__
-# undef __WINDOWS__
-# endif
-# ifdef __WIN32__
-# undef __WIN32__
-# endif
-# ifdef WIN32
-# undef WIN32
-# endif
-# ifdef _WIN32
-# undef _WIN32
-# endif
-#endif
-
#if defined(_WIN64)
# ifndef _WIN32
/*
@@ -164,6 +149,11 @@
# define __WXHANDHELD__
#endif
+#ifdef __ANDROID__
+# define __WXANDROID__
+# include "wx/android/config_android.h"
+#endif
+
/*
Include wx/setup.h for the Unix platform defines generated by configure and
the library compilation options
@@ -182,6 +172,13 @@
#include "wx/setup_gccxml.h"
#endif
+/*
+ Convenience for any optional classes that use the wxAnyButton base class.
+ */
+#if wxUSE_TOGGLEBTN || wxUSE_BUTTON
+ #define wxHAS_ANY_BUTTON
+#endif
+
/*
Hardware platform detection.
@@ -273,7 +270,7 @@
/*
Preprocessor in older Borland compilers have major problems
concatenating with ##. Specifically, if the string operands being
- concatenated have special meaning (e.g L"str", 123i64 etc)
+ concatenated have special meaning (e.g. L"str", 123i64 etc)
then ## will not concatenate the operands correctly.
As a workaround, define wxPREPEND* and wxAPPEND* without using
@@ -434,20 +431,6 @@
# endif
# define wxSIZE_T_IS_UINT
-/*
- OS: Palm OS
- */
-#elif defined(__PALMOS__)
-# ifdef __WIN32__
-# error "__WIN32__ should not be defined for PalmOS"
-# endif
-# ifdef __WINDOWS__
-# error "__WINDOWS__ should not be defined for PalmOS"
-# endif
-# ifdef __WXMSW__
-# error "__WXMSW__ should not be defined for PalmOS"
-# endif
-
/*
OS: Otherwise it must be Windows
*/
@@ -486,6 +469,8 @@
# define __VISUALC9__
# elif __VISUALC__ < 1700
# define __VISUALC10__
+# elif __VISUALC__ < 1800
+# define __VISUALC11__
# else
# pragma message("Please update wx/platform.h to recognize this VC++ version")
# endif
@@ -586,8 +571,7 @@
!defined(__WXPM__) && \
!defined(__WXMOTIF__) && \
!defined(__WXGTK__) && \
- !defined(__WXX11__) && \
- !defined(__WXPALMOS__)
+ !defined(__WXX11__)
# include "wx/msw/gccpriv.h"
#else
# undef wxCHECK_W32API_VERSION
@@ -789,7 +773,7 @@
* Presently, only Windows and GTK+ support wxEVT_MENU_OPEN.
*/
#ifndef wxUSE_IDLEMENUUPDATES
-# if (defined(__WXMSW__) || defined(__WXGTK__)) && !defined(__WXUNIVERSAL__)
+# if (defined(__WXMSW__) || defined(__WXGTK__) || defined(__WXOSX__)) && !defined(__WXUNIVERSAL__)
# define wxUSE_IDLEMENUUPDATES 0
# else
# define wxUSE_IDLEMENUUPDATES 1
@@ -818,31 +802,6 @@
# define wxUSE_WXDIB 1
#endif
-#if defined (__WXPALMOS__)
-#include "wx/palmos/missing.h"
-#endif // __WXPALMOS__
-
-#if !defined (__WXPALMOS5__)
-#define POSSEC_APPBASE
-#define POSSEC_ARCHIVE
-#define POSSEC_CLNTDATA
-#define POSSEC_CMDLINE
-#define POSSEC_CONFIG
-#define POSSEC_DATETIME
-#define POSSEC_DATETIME2
-#define POSSEC_DATSTRM
-#define POSSEC_DIRCMN
-#define POSSEC_DYNARRAY
-#define POSSEC_DYNLIB
-#define POSSEC_DYNLOAD
-#define POSSEC_ENCCONV
-#define POSSEC_EXTENDED
-#define POSSEC_FFILE
-#define POSSEC_FILE
-#define POSSEC_FILECONF
-#define POSSEC_FILEFN
-#endif // __WXPALMOS5__
-
/*
Optionally supported C++ features.
*/
@@ -866,6 +825,6 @@
# define wxNO_RTTI
# endif
# endif
-#endif // wxNO_RTTI
+#endif /* wxNO_RTTI */
#endif /* _WX_PLATFORM_H_ */
diff --git a/Externals/wxWidgets3/include/wx/platinfo.h b/Externals/wxWidgets3/include/wx/platinfo.h
index 59a99db827..8adabba16b 100644
--- a/Externals/wxWidgets3/include/wx/platinfo.h
+++ b/Externals/wxWidgets3/include/wx/platinfo.h
@@ -4,7 +4,7 @@
// Author: Francesco Montorsi
// Modified by:
// Created: 07.07.2006 (based on wxToolkitInfo)
-// RCS-ID: $Id: platinfo.h 64940 2010-07-13 13:29:13Z VZ $
+// RCS-ID: $Id: platinfo.h 70353 2012-01-15 14:46:41Z VZ $
// Copyright: (c) 2006 Francesco Montorsi
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -58,11 +58,7 @@ enum wxOperatingSystemId
// 1<<13 and 1<<14 available for other Unix flavours
wxOS_DOS = 1 << 15, // Microsoft DOS
- wxOS_OS2 = 1 << 16, // OS/2
-
- wxOS_PALM_OS = 1 << 17, // Pure Palm OS
- wxOS_PALM_LINUX = 1 << 18, // Palm over linux
- wxOS_PALM = wxOS_PALM_OS | wxOS_PALM_LINUX
+ wxOS_OS2 = 1 << 16 // OS/2
};
// list of wxWidgets ports - some of them can be used with more than
@@ -76,16 +72,14 @@ enum wxPortId
wxPORT_MSW = 1 << 1, // wxMSW, native toolkit is Windows API
wxPORT_MOTIF = 1 << 2, // wxMotif, using [Open]Motif or Lesstif
wxPORT_GTK = 1 << 3, // wxGTK, using GTK+ 1.x, 2.x, GPE or Maemo
- wxPORT_MGL = 1 << 4, // wxMGL, using wxUniversal
+ wxPORT_DFB = 1 << 4, // wxDFB, using wxUniversal
wxPORT_X11 = 1 << 5, // wxX11, using wxUniversal
wxPORT_PM = 1 << 6, // wxOS2, using OS/2 Presentation Manager
wxPORT_OS2 = wxPORT_PM, // wxOS2, using OS/2 Presentation Manager
wxPORT_MAC = 1 << 7, // wxOSX (former wxMac), using Cocoa, Carbon or iPhone API
wxPORT_OSX = wxPORT_MAC, // wxOSX, using Cocoa, Carbon or iPhone API
wxPORT_COCOA = 1 << 8, // wxCocoa, using Cocoa NextStep/Mac API
- wxPORT_WINCE = 1 << 9, // wxWinCE, toolkit is WinCE SDK API
- wxPORT_PALMOS = 1 << 10, // wxPalmOS, toolkit is PalmOS API
- wxPORT_DFB = 1 << 11 // wxDFB, using wxUniversal
+ wxPORT_WINCE = 1 << 9 // wxWinCE, toolkit is WinCE SDK API
};
// architecture of the operating system
@@ -366,9 +360,7 @@ protected:
#define wxWinCE wxOS_WINDOWS_CE
#define wxWIN32S wxOS_WINDOWS_9X
- #define wxPalmOS wxPORT_PALMOS
#define wxOS2 wxPORT_OS2
- #define wxMGL wxPORT_MGL
#define wxCocoa wxPORT_MAC
#define wxMac wxPORT_MAC
#define wxMotif wxPORT_MOTIF
diff --git a/Externals/wxWidgets3/include/wx/popupwin.h b/Externals/wxWidgets3/include/wx/popupwin.h
index 901fee0613..e6ed10c4e3 100644
--- a/Externals/wxWidgets3/include/wx/popupwin.h
+++ b/Externals/wxWidgets3/include/wx/popupwin.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 06.01.01
-// RCS-ID: $Id: popupwin.h 67244 2011-03-19 11:57:06Z VZ $
+// RCS-ID: $Id: popupwin.h 70353 2012-01-15 14:46:41Z VZ $
// Copyright: (c) 2001 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -66,8 +66,6 @@ public:
#include "wx/motif/popupwin.h"
#elif defined(__WXDFB__)
#include "wx/dfb/popupwin.h"
-#elif defined(__WXMGL__)
- #include "wx/mgl/popupwin.h"
#elif defined(__WXMAC__)
#include "wx/osx/popupwin.h"
#else
@@ -112,6 +110,9 @@ public:
// Overridden to grab the input on some plaforms
virtual bool Show( bool show = true );
+ // Override to implement delayed destruction of this window.
+ virtual bool Destroy();
+
protected:
// common part of all ctors
void Init();
@@ -129,8 +130,9 @@ protected:
// get alerted when child gets deleted from under us
void OnDestroy(wxWindowDestroyEvent& event);
-#if defined( __WXMSW__ ) || defined( __WXMAC__)
- // check if the mouse needs captured or released
+#if defined(__WXMSW__) ||(defined(__WXMAC__) && wxOSX_USE_CARBON)
+ // Check if the mouse needs to be captured or released: we must release
+ // when it's inside our window if we want the embedded controls to work.
void OnIdle(wxIdleEvent& event);
#endif
diff --git a/Externals/wxWidgets3/include/wx/power.h b/Externals/wxWidgets3/include/wx/power.h
index 71a2a8bffe..ea3a11c9fc 100644
--- a/Externals/wxWidgets3/include/wx/power.h
+++ b/Externals/wxWidgets3/include/wx/power.h
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 2006-05-27
-// RCS-ID: $Id: power.h 58718 2009-02-07 18:59:25Z VZ $
+// RCS-ID: $Id: power.h 70796 2012-03-04 00:29:31Z VZ $
// Copyright: (c) 2006 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ enum wxBatteryState
// compiling in the code for handling them which is never going to be invoked
// under the other platforms, we define wxHAS_POWER_EVENTS symbol if this event
// is available, it should be used to guard all code using wxPowerEvent
-#ifdef __WXMSW__
+#ifdef __WINDOWS__
#define wxHAS_POWER_EVENTS
diff --git a/Externals/wxWidgets3/include/wx/private/fontmgr.h b/Externals/wxWidgets3/include/wx/private/fontmgr.h
index 68d7fc7ab3..e29ac1eece 100644
--- a/Externals/wxWidgets3/include/wx/private/fontmgr.h
+++ b/Externals/wxWidgets3/include/wx/private/fontmgr.h
@@ -3,7 +3,7 @@
// Purpose: font management for ports that don't have their own
// Author: Vaclav Slavik
// Created: 2006-11-18
-// RCS-ID: $Id: fontmgr.h 62349 2009-10-09 13:04:59Z VZ $
+// RCS-ID: $Id: fontmgr.h 70353 2012-01-15 14:46:41Z VZ $
// Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
// (c) 2006 REA Elektronik GmbH
// Licence: wxWindows licence
@@ -192,9 +192,7 @@ protected:
-#if defined(__WXMGL__)
- #include "wx/mgl/private/fontmgr.h"
-#elif defined(__WXDFB__)
+#if defined(__WXDFB__)
#include "wx/dfb/private/fontmgr.h"
#endif
diff --git a/Externals/wxWidgets3/include/wx/private/fswatcher.h b/Externals/wxWidgets3/include/wx/private/fswatcher.h
index c0438243a9..8f6f72ed47 100644
--- a/Externals/wxWidgets3/include/wx/private/fswatcher.h
+++ b/Externals/wxWidgets3/include/wx/private/fswatcher.h
@@ -3,7 +3,7 @@
// Purpose: File system watcher impl classes
// Author: Bartosz Bekier
// Created: 2009-05-26
-// RCS-ID: $Id: fswatcher.h 62475 2009-10-22 11:36:35Z VZ $
+// RCS-ID: $Id: fswatcher.h 70796 2012-03-04 00:29:31Z VZ $
// Copyright: (c) 2009 Bartosz Bekier
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -23,7 +23,7 @@
#define wxFSWatchEntry wxFSWatchEntryKq
WX_DECLARE_STRING_HASH_MAP(wxSharedPtr,wxFSWatchEntries);
#include "wx/unix/private/fswatcher_kqueue.h"
-#elif defined(__WXMSW__)
+#elif defined(__WINDOWS__)
class wxFSWatchEntryMSW;
#define wxFSWatchEntry wxFSWatchEntryMSW
WX_DECLARE_STRING_HASH_MAP(wxSharedPtr,wxFSWatchEntries);
diff --git a/Externals/wxWidgets3/include/wx/private/markupparserattr.h b/Externals/wxWidgets3/include/wx/private/markupparserattr.h
index 3bf3ddcba6..1cce2f8cce 100644
--- a/Externals/wxWidgets3/include/wx/private/markupparserattr.h
+++ b/Externals/wxWidgets3/include/wx/private/markupparserattr.h
@@ -3,7 +3,7 @@
// Purpose: Classes mapping markup attributes to wxFont/wxColour.
// Author: Vadim Zeitlin
// Created: 2011-02-18
-// RCS-ID: $Id: markupparserattr.h 67073 2011-02-27 14:01:36Z VZ $
+// RCS-ID: $Id: markupparserattr.h 70447 2012-01-23 11:28:32Z VZ $
// Copyright: (c) 2011 Vadim Zeitlin