]> git.saurik.com Git - wxWidgets.git/blob - src/osx/iphone/dialog.mm
storing modal returncode correctly for carbon
[wxWidgets.git] / src / osx / iphone / dialog.mm
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/osx/cocoa/dialog.cpp
3 // Purpose: wxDialog class
4 // Author: Stefan Csomor
5 // Modified by:
6 // Created: 1998-01-01
7 // RCS-ID: $Id: dialog.cpp 54820 2008-07-29 20:04:11Z SC $
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #include "wx/wxprec.h"
13
14 #include "wx/dialog.h"
15
16 #ifndef WX_PRECOMP
17 #include "wx/app.h"
18 #include "wx/utils.h"
19 #include "wx/frame.h"
20 #include "wx/settings.h"
21 #endif // WX_PRECOMP
22
23 #include "wx/osx/private.h"
24
25 extern wxList wxModalDialogs;
26
27 void wxDialog::ShowWindowModal()
28 {
29 }
30
31 void wxDialog::EndWindowModal()
32 {
33 }
34
35 void wxDialog::DoShowModal()
36 {
37 wxCHECK_RET( !IsModal(), wxT("DoShowModal() called twice") );
38
39 wxModalDialogs.Append(this);
40
41 SetFocus() ;
42 /*
43 WindowGroupRef windowGroup;
44 WindowGroupRef formerParentGroup;
45 bool resetGroupParent = false;
46
47 if ( GetParent() == NULL )
48 {
49 windowGroup = GetWindowGroup(windowRef) ;
50 formerParentGroup = GetWindowGroupParent( windowGroup );
51 SetWindowGroupParent( windowGroup, GetWindowGroupOfClass( kMovableModalWindowClass ) );
52 resetGroupParent = true;
53 }
54 */
55
56 /*
57 if ( resetGroupParent )
58 {
59 SetWindowGroupParent( windowGroup , formerParentGroup );
60 }
61 */
62 }