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