]> git.saurik.com Git - wxWidgets.git/commit - src/msw/colordlg.cpp
Add a public wxModalDialogHook class for intercepting modal dialogs.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 20 May 2013 13:15:41 +0000 (13:15 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 20 May 2013 13:15:41 +0000 (13:15 +0000)
commit691745ab412824d74d036930ad69accbe37d97b4
treec67e6dc45dc13eb52d6592db3ea846a1527f3207
parent9bc3af3e642709425476f6232a19fe4f1bbb42b8
Add a public wxModalDialogHook class for intercepting modal dialogs.

Extract wxModalDialogHook from wx/testing.h into its own wx/modalhook.h,
extend it to allow to be notified not only about showing modal dialogs but
also about dismissing them and document it and show its use in the dialogs
sample.

Also replace all the WX_TESTING_SHOW_MODAL_HOOK macros occurrences with
WX_HOOK_MODAL_DIALOG.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
64 files changed:
Makefile.in
build/bakefiles/files.bkl
build/msw/makefile.bcc
build/msw/makefile.gcc
build/msw/makefile.vc
build/msw/makefile.wat
build/msw/wx_core.dsp
build/msw/wx_vc7_core.vcproj
build/msw/wx_vc8_core.vcproj
build/msw/wx_vc9_core.vcproj
docs/changes.txt
include/wx/modalhook.h [new file with mode: 0644]
include/wx/testing.h
interface/wx/modalhook.h [new file with mode: 0644]
samples/dialogs/dialogs.cpp
samples/dialogs/dialogs.h
src/cocoa/dialog.mm
src/cocoa/dirdlg.mm
src/cocoa/filedlg.mm
src/cocoa/msgdlg.mm
src/common/dlgcmn.cpp
src/common/modalhook.cpp [new file with mode: 0644]
src/generic/filedlgg.cpp
src/generic/msgdlgg.cpp
src/gtk/colordlg.cpp
src/gtk/dialog.cpp
src/gtk/filedlg.cpp
src/gtk/gnome/gprint.cpp
src/gtk/msgdlg.cpp
src/gtk/print.cpp
src/gtk1/dialog.cpp
src/gtk1/filedlg.cpp
src/motif/dialog.cpp
src/motif/filedlg.cpp
src/motif/msgdlg.cpp
src/msw/colordlg.cpp
src/msw/dialog.cpp
src/msw/dirdlg.cpp
src/msw/filedlg.cpp
src/msw/fontdlg.cpp
src/msw/msgdlg.cpp
src/msw/printdlg.cpp
src/msw/richmsgdlg.cpp
src/msw/wince/filedlgwce.cpp
src/os2/dialog.cpp
src/os2/dirdlg.cpp
src/os2/filedlg.cpp
src/os2/fontdlg.cpp
src/os2/msgdlg.cpp
src/osx/carbon/colordlg.cpp
src/osx/carbon/colordlgosx.mm
src/osx/carbon/dirdlg.cpp
src/osx/carbon/filedlg.cpp
src/osx/carbon/fontdlg.cpp
src/osx/carbon/fontdlgosx.mm
src/osx/carbon/msgdlg.cpp
src/osx/carbon/printdlg.cpp
src/osx/cocoa/dirdlg.mm
src/osx/cocoa/filedlg.mm
src/osx/cocoa/msgdlg.mm
src/osx/cocoa/printdlg.mm
src/osx/dialog_osx.cpp
src/osx/iphone/msgdlg.mm
src/univ/dialog.cpp