1//--------------------------------------------------------------------------- 2// This file is generated by wxPython's SIP generator. Do not edit by hand. 3// 4// Copyright: (c) 2018 by Total Control Software 5// License: wxWindows License 6// 7// This file will be included by _core.sip 8// 9//--------------------------------------------------------------------------- 10 11//--------------------------------------------------------------------------- 12 13class wxModalDialogHook 14{ 15 %Docstring 16 ModalDialogHook() 17 18 Allows intercepting all modal dialog calls. 19 %End 20 %TypeHeaderCode 21 #include <wx/modalhook.h> 22 %End 23 24public: 25 wxModalDialogHook(); 26 27 virtual 28 ~wxModalDialogHook(); 29 30 void Register(); 31 %Docstring 32 Register() 33 34 Register this hook as being active. 35 %End 36 37 void Unregister(); 38 %Docstring 39 Unregister() 40 41 Unregister this hook. 42 %End 43 44 private: 45 wxModalDialogHook(const wxModalDialogHook&); 46 47 48 49protected: 50 virtual 51 int Enter( 52 wxDialog * dialog 53 ) = 0; 54 %Docstring 55 Enter(dialog) -> int 56 57 Called by wxWidgets before showing any modal dialogs. 58 %End 59 60 virtual 61 void Exit( 62 wxDialog * dialog 63 ); 64 %Docstring 65 Exit(dialog) 66 67 Called by wxWidgets after dismissing the modal dialog. 68 %End 69 70}; // end of class wxModalDialogHook 71 72 73 74//--------------------------------------------------------------------------- 75 76