]> git.saurik.com Git - wxWidgets.git/blame - src/osx/carbon/dialog.cpp
using Run of base class
[wxWidgets.git] / src / osx / carbon / dialog.cpp
CommitLineData
489468fe 1/////////////////////////////////////////////////////////////////////////////
524c47aa 2// Name: src/osx/carbon/dialog.cpp
489468fe
SC
3// Purpose: wxDialog class
4// Author: Stefan Csomor
5// Modified by:
6// Created: 1998-01-01
489468fe
SC
7// Copyright: (c) Stefan Csomor
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11#include "wx/wxprec.h"
12
13#include "wx/dialog.h"
14
15#ifndef WX_PRECOMP
16 #include "wx/app.h"
17 #include "wx/utils.h"
18 #include "wx/frame.h"
19 #include "wx/settings.h"
20#endif // WX_PRECOMP
21
524c47aa
SC
22#include "wx/osx/private.h"
23#include "wx/evtloop.h"
489468fe 24
9482c644
KO
25void wxDialog::EndWindowModal()
26{
27 // Nothing to do for now.
28}
29
4d572a2c 30void wxDialog::DoShowWindowModal()
9482c644 31{
ce00f59b 32 // If someone wants to add support for this to wxOSX Carbon, here would
9482c644
KO
33 // be the place to start: http://trac.wxwidgets.org/ticket/9459
34 // Unfortunately, supporting sheets in Carbon isn't as straightforward
35 // as with Cocoa, so it will probably take some tweaking.
3039af96
SC
36
37 m_modality = wxDIALOG_MODALITY_APP_MODAL;
38 ShowModal();
39 SendWindowModalDialogEvent ( wxEVT_WINDOW_MODAL_DIALOG_CLOSED );
9482c644 40}