]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/dialog.h
Add wxActivateEvent::GetActivationReason().
[wxWidgets.git] / include / wx / gtk / dialog.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/dialog.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Created:
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_GTKDIALOG_H_
11 #define _WX_GTKDIALOG_H_
12
13 class WXDLLIMPEXP_FWD_CORE wxGUIEventLoop;
14
15 //-----------------------------------------------------------------------------
16 // wxDialog
17 //-----------------------------------------------------------------------------
18
19 class WXDLLIMPEXP_CORE wxDialog: public wxDialogBase
20 {
21 public:
22 wxDialog() { Init(); }
23 wxDialog( wxWindow *parent, wxWindowID id,
24 const wxString &title,
25 const wxPoint &pos = wxDefaultPosition,
26 const wxSize &size = wxDefaultSize,
27 long style = wxDEFAULT_DIALOG_STYLE,
28 const wxString &name = wxDialogNameStr );
29 bool Create( wxWindow *parent, wxWindowID id,
30 const wxString &title,
31 const wxPoint &pos = wxDefaultPosition,
32 const wxSize &size = wxDefaultSize,
33 long style = wxDEFAULT_DIALOG_STYLE,
34 const wxString &name = wxDialogNameStr );
35 virtual ~wxDialog();
36
37 virtual bool Show( bool show = true );
38 virtual int ShowModal();
39 virtual void EndModal( int retCode );
40 virtual bool IsModal() const;
41
42 // implementation
43 // --------------
44
45 bool m_modalShowing;
46
47 private:
48 // common part of all ctors
49 void Init();
50 wxGUIEventLoop *m_modalLoop;
51 DECLARE_DYNAMIC_CLASS(wxDialog)
52 };
53
54 #endif // _WX_GTKDIALOG_H_